@mx-cartographer/experiences 9.7.206 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +2 -0
  3. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js +39 -23
  4. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js.map +1 -1
  5. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +3 -1
  6. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js +37 -33
  7. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js.map +1 -1
  8. package/dist/accounts/utils/AccountFields.d.ts +3 -1
  9. package/dist/accounts/utils/AccountFields.es.js +39 -39
  10. package/dist/accounts/utils/AccountFields.es.js.map +1 -1
  11. package/dist/common/components/charts/LineChart.d.ts +4 -0
  12. package/dist/common/components/charts/LineChart.es.js +114 -112
  13. package/dist/common/components/charts/LineChart.es.js.map +1 -1
  14. package/dist/common/components/charts/linechart/CustomLegend.es.js +24 -21
  15. package/dist/common/components/charts/linechart/CustomLegend.es.js.map +1 -1
  16. package/dist/core/types/Insights.d.ts +9 -1
  17. package/dist/core/types/Insights.es.js.map +1 -1
  18. package/dist/core/types/localization/InsightsFeedCopy.d.ts +42 -0
  19. package/dist/core/types/localization/index.d.ts +1 -1
  20. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.d.ts +7 -1
  21. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js +39 -20
  22. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js.map +1 -1
  23. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.d.ts +4 -0
  24. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js +42 -0
  25. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js.map +1 -0
  26. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.d.ts +7 -0
  27. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js +54 -0
  28. package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js.map +1 -0
  29. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +10 -10
  30. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +24 -23
  31. package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -1
  32. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +75 -73
  33. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
  34. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +5 -1
  35. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +21 -21
  36. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
  37. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +11 -0
  38. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +65 -58
  39. package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
  40. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +17 -17
  41. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -1
  42. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js +9 -10
  43. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js.map +1 -1
  44. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js +21 -22
  45. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js.map +1 -1
  46. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js +35 -35
  47. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js.map +1 -1
  48. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.d.ts +1 -1
  49. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js +44 -49
  50. package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js.map +1 -1
  51. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.d.ts +1 -1
  52. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js +19 -16
  53. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js.map +1 -1
  54. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.d.ts +2 -2
  55. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js +212 -166
  56. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js.map +1 -1
  57. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.d.ts +4 -0
  58. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js +24 -0
  59. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js.map +1 -0
  60. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.d.ts +6 -5
  61. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js +38 -38
  62. package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js.map +1 -1
  63. package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +1 -1
  64. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.d.ts +1 -5
  65. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +37 -36
  66. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js.map +1 -1
  67. package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.d.ts +9 -11
  68. package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js +12 -6
  69. package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js.map +1 -1
  70. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +46 -40
  71. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
  72. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +141 -126
  73. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
  74. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +8 -1
  75. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +243 -200
  76. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
  77. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +2 -0
  78. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
  79. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js +54 -53
  80. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js.map +1 -1
  81. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +6 -1
  82. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +14 -13
  83. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
  84. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +4 -3
  85. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +24 -21
  86. package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
  87. package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +14 -4
  88. package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +79 -67
  89. package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
  90. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.d.ts +3 -1
  91. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js +48 -32
  92. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js.map +1 -1
  93. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +19 -14
  94. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -1
  95. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +4 -0
  96. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +19 -15
  97. package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -1
  98. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js +26 -19
  99. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js.map +1 -1
  100. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.d.ts +1 -0
  101. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +17 -21
  102. package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -1
  103. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
  104. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +11 -11
  105. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
  106. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +15 -11
  107. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
  108. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.d.ts +20 -0
  109. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js +21 -0
  110. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js.map +1 -0
  111. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +2 -4
  112. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +78 -82
  113. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -1
  114. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.d.ts +10 -2
  115. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js +115 -54
  116. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js.map +1 -1
  117. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.d.ts +1 -1
  118. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +37 -36
  119. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
  120. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +27 -22
  121. package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
  122. package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js +8 -8
  123. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.d.ts +7 -0
  124. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js +46 -0
  125. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js.map +1 -0
  126. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/index.d.ts +3 -0
  127. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.d.ts +13 -0
  128. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +22 -0
  129. package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
  130. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +29 -21
  131. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map +1 -1
  132. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.d.ts +0 -2
  133. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +17 -21
  134. package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -1
  135. package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js +5 -6
  136. package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js.map +1 -1
  137. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.d.ts +3 -7
  138. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js +120 -306
  139. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js.map +1 -1
  140. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.d.ts +17 -0
  141. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js +93 -0
  142. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js.map +1 -0
  143. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.d.ts +5 -0
  144. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js +21 -0
  145. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js.map +1 -0
  146. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.d.ts +18 -0
  147. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js +71 -0
  148. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js.map +1 -0
  149. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.d.ts +82 -8
  150. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js +66 -15
  151. package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js.map +1 -1
  152. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +46 -63
  153. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
  154. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +3 -3
  155. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +44 -53
  156. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
  157. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.d.ts +1 -1
  158. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +30 -31
  159. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js.map +1 -1
  160. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js +25 -20
  161. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js.map +1 -1
  162. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.d.ts +22 -0
  163. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js +24 -0
  164. package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js.map +1 -0
  165. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.d.ts +7 -0
  166. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js +89 -0
  167. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js.map +1 -0
  168. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/index.d.ts +1 -0
  169. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.d.ts +43 -0
  170. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js +28 -0
  171. package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js.map +1 -0
  172. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +54 -53
  173. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js.map +1 -1
  174. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +7 -3
  175. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +20 -11
  176. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
  177. package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +29 -28
  178. package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
  179. package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +2 -0
  180. package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js +6 -5
  181. package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js.map +1 -1
  182. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js +117 -71
  183. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js.map +1 -1
  184. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.d.ts +1 -1
  185. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js +10 -7
  186. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js.map +1 -1
  187. package/dist/insights-v2/components/AccountHeroCard.d.ts +3 -1
  188. package/dist/insights-v2/components/AccountHeroCard.es.js.map +1 -1
  189. package/dist/insights-v2/components/BaseLayout.d.ts +3 -1
  190. package/dist/insights-v2/components/BaseLayout.es.js +134 -119
  191. package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
  192. package/dist/insights-v2/components/CompactDirectDepositCard.d.ts +28 -0
  193. package/dist/insights-v2/components/CompactDirectDepositCard.es.js +78 -0
  194. package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
  195. package/dist/insights-v2/components/CompactInsightCard.es.js +122 -118
  196. package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
  197. package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
  198. package/dist/insights-v2/components/DirectDepositCard.es.js +24 -22
  199. package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
  200. package/dist/insights-v2/components/LoadingCard.es.js +13 -9
  201. package/dist/insights-v2/components/LoadingCard.es.js.map +1 -1
  202. package/dist/insights-v2/components/LogoFromGuid.d.ts +1 -1
  203. package/dist/insights-v2/components/LogoFromGuid.es.js.map +1 -1
  204. package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
  205. package/dist/insights-v2/components/SaveAnExtraCard.d.ts +4 -1
  206. package/dist/insights-v2/components/SaveAnExtraCard.es.js +32 -20
  207. package/dist/insights-v2/components/SaveAnExtraCard.es.js.map +1 -1
  208. package/dist/insights-v2/components/SubTabs.d.ts +2 -1
  209. package/dist/insights-v2/components/SubTabs.es.js +29 -24
  210. package/dist/insights-v2/components/SubTabs.es.js.map +1 -1
  211. package/dist/insights-v2/components/TransactionListCard.d.ts +3 -1
  212. package/dist/insights-v2/components/TransactionListCard.es.js +39 -37
  213. package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -1
  214. package/dist/insights-v2/components/TransferLogoCard.es.js +1 -0
  215. package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -1
  216. package/dist/insights-v2/components/UpcomingBillCard.es.js +39 -35
  217. package/dist/insights-v2/components/UpcomingBillCard.es.js.map +1 -1
  218. package/dist/insights-v2/components/celebrationGradients.d.ts +17 -8
  219. package/dist/insights-v2/components/celebrationGradients.es.js +14 -14
  220. package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
  221. package/dist/insights-v2/components/chartblocks/ChartLegend.es.js +16 -10
  222. package/dist/insights-v2/components/chartblocks/ChartLegend.es.js.map +1 -1
  223. package/dist/insights-v2/components/chartblocks/DoubleBarChart.d.ts +10 -4
  224. package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js +62 -61
  225. package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js.map +1 -1
  226. package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +13 -6
  227. package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js.map +1 -1
  228. package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js +2 -3
  229. package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js.map +1 -1
  230. package/dist/insights-v2/components/statusIcon.d.ts +2 -1
  231. package/dist/insights-v2/components/statusIcon.es.js +10 -8
  232. package/dist/insights-v2/components/statusIcon.es.js.map +1 -1
  233. package/dist/insights-v2/ctaActions/ctaConfig.es.js +19 -17
  234. package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
  235. package/dist/insights-v2/ctaActions/ctaHandlers.d.ts +5 -1
  236. package/dist/insights-v2/ctaActions/ctaHandlers.es.js +71 -54
  237. package/dist/insights-v2/ctaActions/ctaHandlers.es.js.map +1 -1
  238. package/dist/insights-v2/ctaActions/ctaPostMessages.es.js +41 -24
  239. package/dist/insights-v2/ctaActions/ctaPostMessages.es.js.map +1 -1
  240. package/dist/insights-v2/ctaActions/feedbackSurvey.d.ts +9 -0
  241. package/dist/insights-v2/ctaActions/feedbackSurvey.es.js +51 -0
  242. package/dist/insights-v2/ctaActions/feedbackSurvey.es.js.map +1 -0
  243. package/dist/insights-v2/ctaActions/runCtaAction.es.js +36 -35
  244. package/dist/insights-v2/ctaActions/runCtaAction.es.js.map +1 -1
  245. package/dist/insights-v2/ctaActions/types.d.ts +7 -0
  246. package/dist/insights-v2/index.es.js +126 -120
  247. package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -1
  248. package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -1
  249. package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
  250. package/dist/insights-v2/mappings/blocks.es.js +126 -122
  251. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  252. package/dist/microinsights/MicroCardTemplate.es.js +1 -1
  253. package/dist/microinsights/MicroCardTemplate.es.js.map +1 -1
  254. package/dist/microinsights/cards/InsightCard.es.js +53 -53
  255. package/dist/microinsights/cards/InsightCard.es.js.map +1 -1
  256. package/package.json +1 -1
  257. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +0 -13
  258. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js +0 -296
  259. package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SubTabs.es.js","names":[],"sources":["../../../src/insights-v2/components/SubTabs.tsx"],"sourcesContent":["import type React from 'react'\n\nimport Tab from '@mui/material/Tab'\nimport Tabs from '@mui/material/Tabs'\n\nimport { ANALYTICS_EVENTS_CONFIG, useAnalyticsEvent } from '../analytics'\n\nexport interface SubTabItem {\n label: string\n // Screen-reader name when it differs from the visible label (legacy pulse: \"Spend transactions\").\n ariaLabel?: string\n}\n\nexport interface SubTabsProps {\n // Base id: tab N is `${id}-tab-N` and controls `${id}-panel`; render that panel with subTabPanelProps.\n id: string\n tabs: SubTabItem[]\n selectedIndex: number\n onChange: (index: number) => void\n // Tablist name; defaults to the visible labels joined (\"Spend / Income\").\n ariaLabel?: string\n // False for tabs that aren't a transaction-type filter: no \"Filtered By Type\" event.\n isTypeFilter?: boolean\n}\n\nconst subTabId = (id: string, index: number) => `${id}-tab-${index}`\nconst subPanelId = (id: string) => `${id}-panel`\n\n/** The tabpanel attributes for the content the sub-tabs control, labelled by the selected tab. */\nexport const subTabPanelProps = (id: string, selectedIndex: number) => ({\n 'aria-labelledby': subTabId(id, selectedIndex),\n id: subPanelId(id),\n role: 'tabpanel' as const,\n})\n\n/**\n * The drill-down drawers' second tab row (e.g. Spend / Income). Fires pulse's\n * \"Transactions Filtered By Type\" on a change, so every drawer that uses it keeps legacy analytics.\n */\nexport const SubTabs = ({\n id,\n tabs,\n selectedIndex,\n onChange,\n ariaLabel,\n isTypeFilter = true,\n}: SubTabsProps) => {\n const fireAnalyticsEvent = useAnalyticsEvent()\n\n if (!tabs.length) return null\n\n // MUI only calls onChange for a different tab, never on mount (legacy parity).\n const handleChange = (_event: React.SyntheticEvent, index: number) => {\n if (isTypeFilter) fireAnalyticsEvent(ANALYTICS_EVENTS_CONFIG.TYPE_FILTER_SELECTED)\n onChange(index)\n }\n\n return (\n <Tabs\n aria-label={ariaLabel ?? tabs.map((tab) => tab.label).join(' / ')}\n onChange={handleChange}\n value={selectedIndex}\n variant=\"fullWidth\"\n >\n {tabs.map((tab, index) => (\n <Tab\n aria-controls={subPanelId(id)}\n aria-label={tab.ariaLabel}\n id={subTabId(id, index)}\n key={tab.label}\n label={tab.label}\n sx={{ minWidth: 'auto', px: 0 }}\n />\n ))}\n </Tabs>\n )\n}\n"],"mappings":";;;;;AAyBA,IAAM,IAAA,CAAY,GAAY,MAAkB,GAAG,CAAA,QAAU,CAAA,IACvD,IAAA,CAAc,MAAe,GAAG,CAAA,UAGzB,IAAA,CAAoB,GAAY,OAA2B;AAAA,EACtE,mBAAmB,EAAS,GAAI,CAAa;AAAA,EAC7C,IAAI,EAAW,CAAE;AAAA,EACjB,MAAM;AACR,IAMa,IAAA,CAAW,EACtB,IAAA,GACA,MAAA,GACA,eAAA,GACA,UAAA,GACA,WAAA,GACA,cAAA,IAAe,GAAA,MACG;AAClB,QAAM,IAAqB,EAAkB;AAE7C,MAAI,CAAC,EAAK,OAAQ,QAAO;AAGzB,QAAM,IAAA,CAAgB,GAA8B,MAAkB;AACpE,IAAI,KAAc,EAAmB,EAAwB,oBAAoB,GACjF,EAAS,CAAK;AAAA,EAChB;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,cAAY,KAAa,EAAK,IAAA,CAAK,MAAQ,EAAI,KAAK,EAAE,KAAK,KAAK;AAAA,IAChE,UAAU;AAAA,IACV,OAAO;AAAA,IACP,SAAQ;AAAA,IAEP,UAAA,EAAK,IAAA,CAAK,GAAK,MACd,gBAAA,EAAC,GAAD;AAAA,MACE,iBAAe,EAAW,CAAE;AAAA,MAC5B,cAAY,EAAI;AAAA,MAChB,IAAI,EAAS,GAAI,CAAK;AAAA,MAEtB,OAAO,EAAI;AAAA,MACX,IAAI;AAAA,QAAE,UAAU;AAAA,QAAQ,IAAI;AAAA,MAAE;AAAA,IAC/B,GAHM,EAAI,KAGV,CACF;AAAA,EACG,CAAA;AAEV"}
1
+ {"version":3,"file":"SubTabs.es.js","names":[],"sources":["../../../src/insights-v2/components/SubTabs.tsx"],"sourcesContent":["import type React from 'react'\n\nimport Tab from '@mui/material/Tab'\nimport Tabs from '@mui/material/Tabs'\n\nimport { ANALYTICS_EVENTS_CONFIG, useAnalyticsEvent } from '../analytics'\n\nexport interface SubTabItem {\n label: string\n // Screen-reader name when it differs from the visible label (legacy pulse: \"Spend transactions\").\n ariaLabel?: string\n}\n\nexport interface SubTabsProps {\n // Base id: tab N is `${id}-tab-N` and controls `${id}-panel`; render that panel with subTabPanelProps.\n id: string\n tabs: SubTabItem[]\n selectedIndex: number\n onChange: (index: number) => void\n // Tablist name; defaults to the visible labels joined (\"Spend / Income\").\n ariaLabel?: string\n // False for tabs that aren't a transaction-type filter: no \"Filtered By Type\" event.\n isTypeFilter?: boolean\n // Tab row height; absent keeps MUI's 48. The transaction drawers pass Figma's 44.\n tabHeight?: number\n}\n\nconst subTabId = (id: string, index: number) => `${id}-tab-${index}`\nconst subPanelId = (id: string) => `${id}-panel`\n\n/** The tabpanel attributes for the content the sub-tabs control, labelled by the selected tab. */\nexport const subTabPanelProps = (id: string, selectedIndex: number) => ({\n 'aria-labelledby': subTabId(id, selectedIndex),\n id: subPanelId(id),\n role: 'tabpanel' as const,\n})\n\n/**\n * The drill-down drawers' second tab row (e.g. Spend / Income). Fires pulse's\n * \"Transactions Filtered By Type\" on a change, so every drawer that uses it keeps legacy analytics.\n */\nexport const SubTabs = ({\n id,\n tabs,\n selectedIndex,\n onChange,\n ariaLabel,\n isTypeFilter = true,\n tabHeight,\n}: SubTabsProps) => {\n const fireAnalyticsEvent = useAnalyticsEvent()\n\n if (!tabs.length) return null\n\n const heightSx = tabHeight != null ? { minHeight: tabHeight } : undefined\n\n // MUI only calls onChange for a different tab, never on mount (legacy parity).\n const handleChange = (_event: React.SyntheticEvent, index: number) => {\n if (isTypeFilter) fireAnalyticsEvent(ANALYTICS_EVENTS_CONFIG.TYPE_FILTER_SELECTED)\n onChange(index)\n }\n\n return (\n <Tabs\n aria-label={ariaLabel ?? tabs.map((tab) => tab.label).join(' / ')}\n onChange={handleChange}\n sx={heightSx}\n value={selectedIndex}\n variant=\"fullWidth\"\n >\n {tabs.map((tab, index) => (\n <Tab\n aria-controls={subPanelId(id)}\n aria-label={tab.ariaLabel}\n id={subTabId(id, index)}\n key={tab.label}\n label={tab.label}\n sx={{ minWidth: 'auto', px: 0, ...(heightSx && { ...heightSx, py: 0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  /** Theme colour for the header label, over the variant's own. */
14
14
  headerColor?: string;
15
+ /** The header label in the regular weight instead of the `default` variant's bold; no effect on `primary`. */
16
+ headerRegular?: boolean;
15
17
  /** One or more transaction rows. */
16
18
  rows: InsightTransactionRowProps[];
17
19
  /** Optional summary/total row rendered beneath a divider. */
@@ -49,5 +51,5 @@ interface TransactionListCardProps {
49
51
  *
50
52
  * Scope is the Content section only; Header/Description are out of scope.
51
53
  */
52
- declare const TransactionListCard: ({ background, badge, elevated, footer, header, headerColor, raised, rows, variant, sx, }: TransactionListCardProps) => import("react/jsx-runtime").JSX.Element | null;
54
+ declare const TransactionListCard: ({ background, badge, elevated, footer, header, headerColor, headerRegular, raised, rows, variant, sx, }: TransactionListCardProps) => import("react/jsx-runtime").JSX.Element | null;
53
55
  export default TransactionListCard;
@@ -1,12 +1,12 @@
1
- import { ELEVATION_SHADOW as I } from "./shared/elevation.es.js";
2
- import S from "./InsightTransactionRow.es.js";
3
- import { Fragment as L } from "react";
4
- import d from "@mui/material/Stack";
5
- import { Text as m } from "@mxenabled/mxui";
6
- import { Fragment as g, jsx as r, jsxs as i } from "react/jsx-runtime";
1
+ import { ELEVATION_SHADOW as S } from "./shared/elevation.es.js";
2
+ import L from "./InsightTransactionRow.es.js";
3
+ import { Fragment as j } from "react";
4
+ import i from "@mui/material/Stack";
5
+ import { Text as u } from "@mxenabled/mxui";
6
+ import { Fragment as b, jsx as r, jsxs as a } from "react/jsx-runtime";
7
7
  import B from "@mui/material/Box";
8
- import u from "@mui/material/Divider";
9
- var j = (n) => n === "primary" ? {
8
+ import m from "@mui/material/Divider";
9
+ var H = (n) => n === "primary" ? {
10
10
  radius: "8px",
11
11
  borderColor: "primary.main",
12
12
  headerBg: "primary.main",
@@ -30,21 +30,21 @@ var j = (n) => n === "primary" ? {
30
30
  px: 16,
31
31
  py: 2
32
32
  }
33
- }, z = ({ background: n, badge: c, elevated: y = !1, footer: l, header: a, headerColor: C, raised: v = !1, rows: x, variant: f = "default", sx: w }) => {
33
+ }, N = ({ background: n, badge: c, elevated: y = !1, footer: l, header: d, headerColor: C, headerRegular: v = !1, raised: w = !1, rows: x, variant: f = "default", sx: R }) => {
34
34
  if (x.length === 0) return null;
35
- const e = j(f), o = !!n, t = o ? "8px" : e.radius, s = !!a && !o && e.headerInsideBorder, R = f === "default" ? C ?? e.headerColor : e.headerColor, h = a ? /* @__PURE__ */ r(d, {
35
+ const e = H(f), o = !!n, t = o ? "8px" : e.radius, s = !!d && !o && e.headerInsideBorder, T = f === "default" ? C ?? e.headerColor : e.headerColor, h = d ? /* @__PURE__ */ r(i, {
36
36
  sx: {
37
37
  bgcolor: e.headerBg,
38
38
  justifyContent: "center",
39
39
  ...e.headerSx
40
40
  },
41
- children: /* @__PURE__ */ r(m, {
42
- color: R,
43
- sx: e.headerBold ? { fontWeight: 700 } : void 0,
41
+ children: /* @__PURE__ */ r(u, {
42
+ color: T,
43
+ sx: e.headerBold ? { fontWeight: v ? 400 : 700 } : void 0,
44
44
  variant: "caption",
45
- children: a
45
+ children: d
46
46
  })
47
- }) : null, T = l ? /* @__PURE__ */ i(g, { children: [/* @__PURE__ */ r(u, {}), /* @__PURE__ */ i(d, {
47
+ }) : null, k = l ? /* @__PURE__ */ a(b, { children: [/* @__PURE__ */ r(m, {}), /* @__PURE__ */ a(i, {
48
48
  sx: {
49
49
  alignItems: "center",
50
50
  bgcolor: o ? "background.paper" : "background.default",
@@ -54,25 +54,25 @@ var j = (n) => n === "primary" ? {
54
54
  px: 16,
55
55
  py: 2
56
56
  },
57
- children: [/* @__PURE__ */ r(m, {
57
+ children: [/* @__PURE__ */ r(u, {
58
58
  color: "text.secondary",
59
59
  variant: "caption",
60
60
  children: l.label
61
- }), /* @__PURE__ */ r(m, {
61
+ }), /* @__PURE__ */ r(u, {
62
62
  bold: !0,
63
63
  color: l.amountColor ?? "text.primary",
64
64
  variant: "body2",
65
65
  children: l.amount
66
66
  })]
67
- })] }) : null, k = /* @__PURE__ */ r(d, {
67
+ })] }) : null, I = /* @__PURE__ */ r(i, {
68
68
  role: "list",
69
69
  sx: { width: "100%" },
70
- children: x.map((p, b) => /* @__PURE__ */ i(L, { children: [b > 0 && /* @__PURE__ */ r(u, { role: "presentation" }), /* @__PURE__ */ r(B, {
70
+ children: x.map((p, g) => /* @__PURE__ */ a(j, { children: [g > 0 && /* @__PURE__ */ r(m, { role: "presentation" }), /* @__PURE__ */ r(B, {
71
71
  role: "listitem",
72
- children: /* @__PURE__ */ r(S, { ...p })
73
- })] }, b))
72
+ children: /* @__PURE__ */ r(L, { ...p })
73
+ })] }, g))
74
74
  });
75
- return /* @__PURE__ */ i(d, {
75
+ return /* @__PURE__ */ a(i, {
76
76
  "data-testid": "transaction-list-card",
77
77
  sx: {
78
78
  ...o ? {
@@ -84,7 +84,7 @@ var j = (n) => n === "primary" ? {
84
84
  },
85
85
  ...o && c ? { position: "relative" } : {},
86
86
  width: "100%",
87
- ...w
87
+ ...R
88
88
  },
89
89
  children: [
90
90
  o && c && /* @__PURE__ */ r(B, {
@@ -96,7 +96,7 @@ var j = (n) => n === "primary" ? {
96
96
  },
97
97
  children: c
98
98
  }),
99
- !s && h && /* @__PURE__ */ r(d, {
99
+ !s && h && /* @__PURE__ */ r(i, {
100
100
  sx: {
101
101
  borderTopLeftRadius: t,
102
102
  borderTopRightRadius: t,
@@ -104,41 +104,43 @@ var j = (n) => n === "primary" ? {
104
104
  },
105
105
  children: h
106
106
  }),
107
- /* @__PURE__ */ i(d, {
107
+ /* @__PURE__ */ a(i, {
108
108
  sx: {
109
109
  ...o ? {
110
110
  bgcolor: "background.paper",
111
111
  ...y && {
112
112
  backgroundImage: (p) => p.vars?.overlays?.[1] ?? "none",
113
- boxShadow: I[1]
113
+ boxShadow: S[1]
114
114
  },
115
- ...v && {
116
- border: "1px solid",
117
- borderColor: "divider",
115
+ ...w && {
116
+ outline: "1px solid",
117
+ outlineColor: "divider",
118
+ outlineOffset: "-1px",
118
119
  boxShadow: 1
119
120
  }
120
121
  } : {
121
- border: "1px solid",
122
- borderColor: e.borderColor
122
+ outline: "1px solid",
123
+ outlineColor: e.borderColor,
124
+ outlineOffset: "-1px"
123
125
  },
124
126
  borderBottomLeftRadius: t,
125
127
  borderBottomRightRadius: t,
126
- borderTopLeftRadius: s || !a ? t : 0,
127
- borderTopRightRadius: s || !a ? t : 0,
128
+ borderTopLeftRadius: s || !d ? t : 0,
129
+ borderTopRightRadius: s || !d ? t : 0,
128
130
  overflow: "hidden",
129
131
  width: "100%"
130
132
  },
131
133
  children: [
132
- s && /* @__PURE__ */ i(g, { children: [h, /* @__PURE__ */ r(u, {})] }),
133
- k,
134
- T
134
+ s && /* @__PURE__ */ a(b, { children: [h, /* @__PURE__ */ r(m, {})] }),
135
+ I,
136
+ k
135
137
  ]
136
138
  })
137
139
  ]
138
140
  });
139
141
  };
140
142
  export {
141
- z as default
143
+ N as default
142
144
  };
143
145
 
144
146
  //# sourceMappingURL=TransactionListCard.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionListCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransactionListCard.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport InsightTransactionRow, { type InsightTransactionRowProps } from './InsightTransactionRow'\nimport { ELEVATION_SHADOW } from './shared/elevation'\n\nexport interface FooterRow {\n label: ReactNode\n amount: ReactNode\n amountColor?: string\n}\n\ntype TransactionListCardVariant = 'default' | 'primary'\n\ninterface TransactionListCardProps {\n /** Optional header label above the rows (e.g. \"{Date}\", \"3 transactions\"). */\n header?: ReactNode\n /** Theme colour for the header label, over the variant's own. */\n headerColor?: string\n /** One or more transaction rows. */\n rows: InsightTransactionRowProps[]\n /** Optional summary/total row rendered beneath a divider. */\n footer?: FooterRow\n /**\n * Card style:\n * - `default` — grey utility header, hairline border, radius 4.\n * - `primary` — filled `primary.main` header with white text and a matching\n * border, radius 8 (Figma \"Multi\" variant).\n *\n * In both cases the header is borderless; the border wraps the content block\n * below it.\n */\n variant?: TransactionListCardVariant\n /**\n * Optional background applied to the Slot behind the card. Must be a valid CSS\n * background string (gradient or color in CSS format); MUI theme tokens are\n * not resolved here (this is the CSS `background` shorthand, not `bgcolor`), so\n * use a CSS color literal instead. When set, the inner card renders borderless\n * on a white surface inside the padded Slot (Figma HSA Deposit), unless `raised`.\n */\n background?: string\n /** Status disc over the card's corner (needs `background`). */\n badge?: ReactNode\n /** Card at elevation/1 on the wash; not with `raised` (its shadow wins). */\n elevated?: boolean\n /** Border and shadow on the inner card; only with `background` (Figma Transaction Row). */\n raised?: boolean\n sx?: SxProps\n}\n\nconst getVariantStyles = (variant: TransactionListCardVariant) => {\n switch (variant) {\n case 'primary':\n // Borderless filled header on top of the bordered rows block.\n return {\n radius: '8px',\n borderColor: 'primary.main',\n headerBg: 'primary.main',\n headerColor: 'primary.contrastText',\n headerBold: false,\n headerInsideBorder: false,\n headerSx: { minHeight: 24, px: 12, py: 4 } as const,\n }\n default:\n // A single border wraps the card; the grey header sits inside it.\n return {\n radius: '8px',\n borderColor: 'divider',\n headerBg: 'background.default',\n headerColor: 'text.primary',\n headerBold: true,\n headerInsideBorder: true,\n headerSx: { minHeight: 40, px: 16, py: 2 } as const,\n }\n }\n}\n\n/**\n * List card composing an optional header label, one or more\n * `InsightTransactionRow`s (divided), and an optional footer/total row.\n * `variant` supplies the Figma design defaults for the two card styles.\n *\n * Scope is the Content section only; Header/Description are out of scope.\n */\nconst TransactionListCard = ({\n background,\n badge,\n elevated = false,\n footer,\n header,\n headerColor,\n raised = false,\n rows,\n variant = 'default',\n sx,\n}: TransactionListCardProps) => {\n // rows usually comes from mapped API data, so an empty array is reachable and\n // would render a broken border shell; render nothing instead.\n if (rows.length === 0) return null\n\n const styles = getVariantStyles(variant)\n const hasBackground = Boolean(background)\n const radius = hasBackground ? '8px' : styles.radius\n // The header sits inside the border only for the bordered `default` variant;\n // for `primary`/backgrounded cards it sits above a separately-bordered body.\n const headerInsideBorder = Boolean(header) && !hasBackground && styles.headerInsideBorder\n\n const headerTextColor =\n variant === 'default' ? (headerColor ?? styles.headerColor) : styles.headerColor\n\n const headerBlock = header ? (\n <Stack sx={{ bgcolor: styles.headerBg, justifyContent: 'center', ...styles.headerSx }}>\n <Text\n color={headerTextColor}\n sx={styles.headerBold ? { fontWeight: 700 } : undefined}\n variant=\"caption\"\n >\n {header}\n </Text>\n </Stack>\n ) : null\n\n const footerBlock = footer ? (\n <>\n <Divider />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: hasBackground ? 'background.paper' : 'background.default',\n flexDirection: 'row',\n justifyContent: 'space-between',\n minHeight: 40,\n px: 16,\n py: 2,\n }}\n >\n <Text color=\"text.secondary\" variant=\"caption\">\n {footer.label}\n </Text>\n <Text bold={true} color={footer.amountColor ?? 'text.primary'} variant=\"body2\">\n {footer.amount}\n </Text>\n </Stack>\n </>\n ) : null\n\n const rowsBlock = (\n <Stack role=\"list\" sx={{ width: '100%' }}>\n {rows.map((row, index) => (\n // Static, caller-ordered list that may contain identical rows, so the\n // array index is the correct key (a content-based key would collide).\n // eslint-disable-next-line react/no-array-index-key\n <Fragment key={index}>\n {index > 0 && <Divider role=\"presentation\" />}\n <Box role=\"listitem\">\n <InsightTransactionRow {...row} />\n </Box>\n </Fragment>\n ))}\n </Stack>\n )\n\n return (\n <Stack\n data-testid=\"transaction-list-card\"\n sx={{\n ...(hasBackground ? { background, p: 16 } : { pt: 8, px: 16 }),\n ...(hasBackground && badge ? { position: 'relative' } : {}),\n width: '100%',\n ...sx,\n }}\n >\n {hasBackground &&\n badge && (\n // Centred on the card's top-left corner.\n <Box sx={{ left: 16, position: 'absolute', top: 12, zIndex: 1 }}>{badge}</Box>\n )}\n {/* Header above the border for `primary`/backgrounded cards; top-rounded. */}\n {!headerInsideBorder && headerBlock && (\n <Stack\n sx={{\n borderTopLeftRadius: radius,\n borderTopRightRadius: radius,\n overflow: 'hidden',\n }}\n >\n {headerBlock}\n </Stack>\n )}\n\n <Stack\n sx={{\n ...(hasBackground\n ? {\n bgcolor: 'background.paper',\n // elevation/1 shadow plus the dark-mode tint.\n ...(elevated && {\n backgroundImage: (theme: Theme) => theme.vars?.overlays?.[1] ?? 'none',\n boxShadow: ELEVATION_SHADOW[1],\n }),\n ...(raised && { border: '1px solid', borderColor: 'divider', boxShadow: 1 }),\n }\n : { border: '1px solid', borderColor: styles.borderColor }),\n borderBottomLeftRadius: radius,\n borderBottomRightRadius: radius,\n borderTopLeftRadius: headerInsideBorder || !header ? radius : 0,\n borderTopRightRadius: headerInsideBorder || !header ? radius : 0,\n overflow: 'hidden',\n width: '100%',\n }}\n >\n {/* Header inside the border for the `default` table variant. */}\n {headerInsideBorder && (\n <>\n {headerBlock}\n <Divider />\n </>\n )}\n {rowsBlock}\n {footerBlock}\n </Stack>\n </Stack>\n )\n}\n\nexport default TransactionListCard\n"],"mappings":";;;;;;;;AAwDA,IAAM,IAAA,CAAoB,MAChB,MACD,YAEI;AAAA,EACL,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,UAAU;AAAA,EACV,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,UAAU;AAAA,IAAE,WAAW;AAAA,IAAI,IAAI;AAAA,IAAI,IAAI;AAAA,EAAE;AAC3C,IAGO;AAAA,EACL,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,UAAU;AAAA,EACV,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,UAAU;AAAA,IAAE,WAAW;AAAA,IAAI,IAAI;AAAA,IAAI,IAAI;AAAA,EAAE;AAC3C,GAWA,IAAA,CAAuB,EAC3B,YAAA,GACA,OAAA,GACA,UAAA,IAAW,IACX,QAAA,GACA,QAAA,GACA,aAAA,GACA,QAAA,IAAS,IACT,MAAA,GACA,SAAA,IAAU,WACV,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Q;AAAA,cAAa,aAAa;AAAA,cAAW,WAAW;AAAA,YAAE;AAAA,UAC5E,IACA;AAAA,YAAE,QAAQ;AAAA,YAAa,aAAa,EAAO;AAAA,UAAY;AAAA,UAC3D,wBAAwB;AAAA,UACxB,yBAAyB;AAAA,UACzB,qBAAqB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC9D,sBAAsB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC/D,UAAU;AAAA,UACV,OAAO;AAAA,QACT;AAAA,QAnBF,UAAA;AAAA,UAsBG,KACC,gBAAA,EAAA,GAAA,EAAA,UAAA,CACG,GACD,gBAAA,EAAC,GAAD,CAAU,CAAA,CACV,EAAA,CAAA;AAAA,UAEH;AAAA,UACA;AAAA,QACI;AAAA;IACF;AAAA;AAEX"}
1
+ {"version":3,"file":"TransactionListCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransactionListCard.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport InsightTransactionRow, { type InsightTransactionRowProps } from './InsightTransactionRow'\nimport { ELEVATION_SHADOW } from './shared/elevation'\n\nexport interface FooterRow {\n label: ReactNode\n amount: ReactNode\n amountColor?: string\n}\n\ntype TransactionListCardVariant = 'default' | 'primary'\n\ninterface TransactionListCardProps {\n /** Optional header label above the rows (e.g. \"{Date}\", \"3 transactions\"). */\n header?: ReactNode\n /** Theme colour for the header label, over the variant's own. */\n headerColor?: string\n /** The header label in the regular weight instead of the `default` variant's bold; no effect on `primary`. */\n headerRegular?: boolean\n /** One or more transaction rows. */\n rows: InsightTransactionRowProps[]\n /** Optional summary/total row rendered beneath a divider. */\n footer?: FooterRow\n /**\n * Card style:\n * - `default` — grey utility header, hairline border, radius 4.\n * - `primary` — filled `primary.main` header with white text and a matching\n * border, radius 8 (Figma \"Multi\" variant).\n *\n * In both cases the header is borderless; the border wraps the content block\n * below it.\n */\n variant?: TransactionListCardVariant\n /**\n * Optional background applied to the Slot behind the card. Must be a valid CSS\n * background string (gradient or color in CSS format); MUI theme tokens are\n * not resolved here (this is the CSS `background` shorthand, not `bgcolor`), so\n * use a CSS color literal instead. When set, the inner card renders borderless\n * on a white surface inside the padded Slot (Figma HSA Deposit), unless `raised`.\n */\n background?: string\n /** Status disc over the card's corner (needs `background`). */\n badge?: ReactNode\n /** Card at elevation/1 on the wash; not with `raised` (its shadow wins). */\n elevated?: boolean\n /** Border and shadow on the inner card; only with `background` (Figma Transaction Row). */\n raised?: boolean\n sx?: SxProps\n}\n\nconst getVariantStyles = (variant: TransactionListCardVariant) => {\n switch (variant) {\n case 'primary':\n // Borderless filled header on top of the bordered rows block.\n return {\n radius: '8px',\n borderColor: 'primary.main',\n headerBg: 'primary.main',\n headerColor: 'primary.contrastText',\n headerBold: false,\n headerInsideBorder: false,\n headerSx: { minHeight: 24, px: 12, py: 4 } as const,\n }\n default:\n // A single border wraps the card; the grey header sits inside it.\n return {\n radius: '8px',\n borderColor: 'divider',\n headerBg: 'background.default',\n headerColor: 'text.primary',\n headerBold: true,\n headerInsideBorder: true,\n headerSx: { minHeight: 40, px: 16, py: 2 } as const,\n }\n }\n}\n\n/**\n * List card composing an optional header label, one or more\n * `InsightTransactionRow`s (divided), and an optional footer/total row.\n * `variant` supplies the Figma design defaults for the two card styles.\n *\n * Scope is the Content section only; Header/Description are out of scope.\n */\nconst TransactionListCard = ({\n background,\n badge,\n elevated = false,\n footer,\n header,\n headerColor,\n headerRegular = false,\n raised = false,\n rows,\n variant = 'default',\n sx,\n}: TransactionListCardProps) => {\n // rows usually comes from mapped API data, so an empty array is reachable and\n // would render a broken border shell; render nothing instead.\n if (rows.length === 0) return null\n\n const styles = getVariantStyles(variant)\n const hasBackground = Boolean(background)\n const radius = hasBackground ? '8px' : styles.radius\n // The header sits inside the border only for the bordered `default` variant;\n // for `primary`/backgrounded cards it sits above a separately-bordered body.\n const headerInsideBorder = Boolean(header) && !hasBackground && styles.headerInsideBorder\n\n const headerTextColor =\n variant === 'default' ? (headerColor ?? styles.headerColor) : styles.headerColor\n\n const headerBlock = header ? (\n <Stack sx={{ bgcolor: styles.headerBg, justifyContent: 'center', ...styles.headerSx }}>\n <Text\n color={headerTextColor}\n sx={styles.headerBold ? { fontWeight: headerRegular ? 400 : 700 } : undefined}\n variant=\"caption\"\n >\n {header}\n </Text>\n </Stack>\n ) : null\n\n const footerBlock = footer ? (\n <>\n <Divider />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: hasBackground ? 'background.paper' : 'background.default',\n flexDirection: 'row',\n justifyContent: 'space-between',\n minHeight: 40,\n px: 16,\n py: 2,\n }}\n >\n <Text color=\"text.secondary\" variant=\"caption\">\n {footer.label}\n </Text>\n <Text bold={true} color={footer.amountColor ?? 'text.primary'} variant=\"body2\">\n {footer.amount}\n </Text>\n </Stack>\n </>\n ) : null\n\n const rowsBlock = (\n <Stack role=\"list\" sx={{ width: '100%' }}>\n {rows.map((row, index) => (\n // Static, caller-ordered list that may contain identical rows, so the\n // array index is the correct key (a content-based key would collide).\n // eslint-disable-next-line react/no-array-index-key\n <Fragment key={index}>\n {index > 0 && <Divider role=\"presentation\" />}\n <Box role=\"listitem\">\n <InsightTransactionRow {...row} />\n </Box>\n </Fragment>\n ))}\n </Stack>\n )\n\n return (\n <Stack\n data-testid=\"transaction-list-card\"\n sx={{\n ...(hasBackground ? { background, p: 16 } : { pt: 8, px: 16 }),\n ...(hasBackground && badge ? { position: 'relative' } : {}),\n width: '100%',\n ...sx,\n }}\n >\n {hasBackground &&\n badge && (\n // Centred on the card's top-left corner.\n <Box sx={{ left: 16, position: 'absolute', top: 12, zIndex: 1 }}>{badge}</Box>\n )}\n {/* Header above the border for `primary`/backgrounded cards; top-rounded. */}\n {!headerInsideBorder && headerBlock && (\n <Stack\n sx={{\n borderTopLeftRadius: radius,\n borderTopRightRadius: radius,\n overflow: 'hidden',\n }}\n >\n {headerBlock}\n </Stack>\n )}\n\n <Stack\n sx={{\n ...(hasBackground\n ? {\n bgcolor: 'background.paper',\n // elevation/1 shadow plus the dark-mode tint.\n ...(elevated && {\n backgroundImage: (theme: Theme) => theme.vars?.overlays?.[1] ?? 'none',\n boxShadow: ELEVATION_SHADOW[1],\n }),\n // Figma's inside stroke: no added height, and unlike a box-shadow it isn't hidden under a child's own background and still shows in forced-colors mode (see UpcomingBillCard's insetStroke).\n ...(raised && {\n outline: '1px solid',\n outlineColor: 'divider',\n outlineOffset: '-1px',\n boxShadow: 1,\n }),\n }\n : // Same as the raised outline above; sx resolves outlineColor as a palette token itself, so no ternary is needed here.\n { outline: '1px solid', outlineColor: styles.borderColor, outlineOffset: '-1px' }),\n\n borderBottomLeftRadius: radius,\n borderBottomRightRadius: radius,\n borderTopLeftRadius: headerInsideBorder || !header ? radius : 0,\n borderTopRightRadius: headerInsideBorder || !header ? radius : 0,\n overflow: 'hidden',\n width: '100%',\n }}\n >\n {/* Header inside the border for the `default` table variant. */}\n {headerInsideBorder && (\n <>\n {headerBlock}\n <Divider />\n </>\n )}\n {rowsBlock}\n {footerBlock}\n </Stack>\n </Stack>\n )\n}\n\nexport default TransactionListCard\n"],"mappings":";;;;;;;;AA0DA,IAAM,IAAA,CAAoB,MAChB,MACD,YAEI;AAAA,EACL,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,UAAU;AAAA,EACV,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,UAAU;AAAA,IAAE,WAAW;AAAA,IAAI,IAAI;AAAA,IAAI,IAAI;AAAA,EAAE;AAC3C,IAGO;AAAA,EACL,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,UAAU;AAAA,EACV,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,oBAAoB;AAAA,EACpB,UAAU;AAAA,IAAE,WAAW;AAAA,IAAI,IAAI;AAAA,IAAI,IAAI;AAAA,E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AAAA,YACE,SAAS;AAAA,YAET,GAAI,KAAY;AAAA,cACd,iBAAA,CAAkB,MAAiB,EAAM,MAAM,WAAW,CAAA,KAAM;AAAA,cAChE,WAAW,EAAiB,CAAA;AAAA,YAC9B;AAAA,YAEA,GAAI,KAAU;AAAA,cACZ,SAAS;AAAA,cACT,cAAc;AAAA,cACd,eAAe;AAAA,cACf,WAAW;AAAA,YACb;AAAA,UACF,IAEA;AAAA,YAAE,SAAS;AAAA,YAAa,cAAc,EAAO;AAAA,YAAa,eAAe;AAAA,UAAO;AAAA,UAEpF,wBAAwB;AAAA,UACxB,yBAAyB;AAAA,UACzB,qBAAqB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC9D,sBAAsB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC/D,UAAU;AAAA,UACV,OAAO;AAAA,QACT;AAAA,QA3BF,UAAA;AAAA,UA8BG,KACC,gBAAA,EAAA,GAAA,EAAA,UAAA,CACG,GACD,gBAAA,EAAC,GAAD,CAAU,CAAA,CACV,EAAA,CAAA;AAAA,UAEH;AAAA,UACA;AAAA,QACI;AAAA;IACF;AAAA;AAEX"}
@@ -34,6 +34,7 @@ var R = 40, x = 16, y = 324, S = 32, T = /* @__PURE__ */ r(I, {
34
34
  },
35
35
  children: [u && /* @__PURE__ */ r(w, {}), /* @__PURE__ */ r(b, {
36
36
  sx: {
37
+ "&&&": { height: "auto" },
37
38
  position: "relative",
38
39
  py: 16,
39
40
  zIndex: 1
@@ -1 +1 @@
1
- {"version":3,"file":"TransferLogoCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransferLogoCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\n// Figma (Discovered Accounts, Switch Direct Deposit): a 40px track inset 16 from the inner card's\n// edges, behind a row of logos, dots and badge that spans the card with 32 padding up to 324 wide.\nconst TRACK_HEIGHT = 40\nconst TRACK_INSET = 16\nconst ROW_MAX_WIDTH = 324\nconst ROW_PADDING_X = 32\n\ninterface TransferLogoCardProps {\n /** Source institution logo (left). */\n from: ReactNode\n /** Destination institution logo (right). */\n to: ReactNode\n /** Logo tile size in px (Figma: 64). */\n size?: number\n /** Arrow icon rendered in the center badge. Defaults to a right arrow. */\n icon?: ReactNode\n /**\n * Enlarge the inner connector dots (6px vs 4px), matching the Discovered\n * Accounts insight for cross-insight consistency. Default true.\n */\n hasBigDots?: boolean\n /** Connector-dot color token. Default `neutral.darker` (theme-aware). */\n dotColor?: string\n /** Center badge background color token. Default `neutral.darker` (dark circle\n * for Switch DD default; set to `success.main` for Discovered Accounts success). */\n badgeBgColor?: string\n /** Slot surface color token. Default `primary.lighter` (Figma's tinted slot,\n * theme-aware: light-blue in light mode, navy in dark). */\n bgcolor?: string\n /**\n * Optional background image (e.g., celebration gradient) for success states.\n * Layered over the `bgcolor` via `backgroundImage` (not `background` shorthand).\n */\n backgroundImage?: string\n /**\n * Show a confetti animation filling the slot (for success/celebration states).\n * Requires `useContainerDimensions` to measure the slot. Default false.\n */\n showConfetti?: boolean\n sx?: SxProps\n}\n\n// Default center-badge glyph. Hoisted to a stable reference so it isn't\n// re-created each render (`neutral.lighter` is the theme-aware inverse of the\n// badge fill: light glyph on dark badge, and vice-versa in dark).\nconst defaultTransferIcon = (\n <Icon aria-hidden={true} name=\"arrow_forward\" size={20} sx={{ color: 'neutral.lighter' }} />\n)\n\n// Connector dot: a small rounded square that reads as a dot at this size\n// (matches v1 `ConnectionCard`'s `Dot`). `neutral.darker` is theme-aware. The\n// inner pair is larger (`bigDots`, as Discovered Accounts uses) than the outer.\nconst Dot = ({ color = 'neutral.darker', size = 4 }: { color?: string; size?: number }) => (\n <Box sx={{ bgcolor: color, borderRadius: '4px', flexShrink: 0, height: size, width: size }} />\n)\n\n/**\n * A from → to account transfer visual: two institution logos on a rounded track\n * with a central arrow badge and connector dots between them.\n *\n * Figma: Switch Direct Deposit (default) and Discovered Accounts Content. Scope is the Content\n * section only.\n */\nconst TransferLogoCard = ({\n badgeBgColor = 'neutral.darker',\n bgcolor = 'primary.lighter',\n backgroundImage,\n dotColor = 'neutral.darker',\n from,\n hasBigDots = true,\n icon = defaultTransferIcon,\n showConfetti = false,\n size = 64,\n to,\n sx,\n}: TransferLogoCardProps) => {\n const dotSize = hasBigDots ? 6 : 4\n const logoSx = {\n borderRadius: '4px',\n flexShrink: 0,\n height: size,\n overflow: 'hidden',\n width: size,\n } as const\n\n return (\n <Box\n sx={{\n bgcolor,\n ...(backgroundImage && { backgroundImage }),\n p: 16,\n // Positioned wrapper so the confetti overlay can fill the slot; the card\n // sits above it (zIndex). No `overflow: hidden` — that would clip the\n // burst's upper area (per the figma-to-code confetti guidance).\n position: 'relative',\n width: '100%',\n ...sx,\n }}\n >\n {showConfetti && <ConfettiOverlay />}\n <Card sx={{ position: 'relative', py: 16, zIndex: 1 }}>\n <Box\n sx={{\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n {/* Track, vertically centred behind the row and inset from the card's edges. */}\n <Box\n sx={{\n bgcolor: 'divider',\n borderRadius: '24px',\n height: TRACK_HEIGHT,\n left: TRACK_INSET,\n position: 'absolute',\n right: TRACK_INSET,\n top: '50%',\n transform: 'translateY(-50%)',\n }}\n />\n {/* Seven direct items, so space-between spreads the dots and badge evenly between the logos. */}\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n height: size,\n justifyContent: 'space-between',\n maxWidth: ROW_MAX_WIDTH,\n position: 'relative',\n px: ROW_PADDING_X,\n width: '100%',\n }}\n >\n <Box sx={logoSx}>{from}</Box>\n <Dot color={dotColor} />\n <Dot color={dotColor} size={dotSize} />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: badgeBgColor,\n borderRadius: '50%',\n flexShrink: 0,\n height: 28,\n justifyContent: 'center',\n width: 28,\n }}\n >\n {icon}\n </Stack>\n <Dot color={dotColor} size={dotSize} />\n <Dot color={dotColor} />\n <Box sx={logoSx}>{to}</Box>\n </Stack>\n </Box>\n </Card>\n </Box>\n )\n}\n\nexport default TransferLogoCard\n"],"mappings":";;;;;;AAYA,IAAM,IAAe,IACf,IAAc,IACd,IAAgB,KAChB,IAAgB,IAwChB,IACJ,gBAAA,EAAC,GAAD;AAAA,EAAM,eAAa;AAAA,EAAM,MAAK;AAAA,EAAgB,MAAM;AAAA,EAAI,IAAI,EAAE,OAAO,kBAAkB;AAAI,CAAA,GAMvF,IAAA,CAAO,EAAE,OAAA,IAAQ,kBAAkB,MAAA,IAAO,EAAA,MAC9C,gBAAA,EAAC,GAAD,EAAK,IAAI;AAAA,EAAE,SAAS;AAAA,EAAO,cAAc;AAAA,EAAO,YAAY;AAAA,EAAG,QAAQ;AAAA,EAAM,OAAO;AAAK,EAAI,CAAA,GAUzF,IAAA,CAAoB,EACxB,cAAA,IAAe,kBACf,SAAA,IAAU,mBACV,iBAAA,GACA,UAAA,IAAW,kBACX,MAAA,GACA,YAAA,IAAa,IACb,MAAA,IAAO,GACP,cAAA,IAAe,IACf,MAAA,IAAO,IACP,IAAA,GACA,IAAA,EAAA,MAC2B;AAC3B,QAAM,IAAU,IAAa,IAAI,GAC3B,IAAS;AAAA,IACb,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,SAAA;AAAA,MACA,GAAI,KAAmB,EAAE,iBAAA,EAAgB;AAAA,MACzC,GAAG;AAAA,MAIH,UAAU;AAAA,MACV,OAAO;AAAA,MACP,GAAG;AAAA,IACL;AAAA,IAXF,UAAA,CAaG,KAAgB,gBAAA,EAAC,GAAD,CAAkB,CAAA,GACnC,gBAAA,EAAC,GAAD;AAAA,MAAM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A,YACvB,gBAAA,EAAC,GAAD;AAAA,cAAK,IAAI;AAAA,cAAS,UAAA;AAAA,YAAQ,CAAA;AAAA,UACrB;AAAA,QACJ,CAAA,CAAA;AAAA;IACD,CAAA,CACH;AAAA;AAET"}
1
+ {"version":3,"file":"TransferLogoCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransferLogoCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\n// Figma (Discovered Accounts, Switch Direct Deposit): a 40px track inset 16 from the inner card's\n// edges, behind a row of logos, dots and badge that spans the card with 32 padding up to 324 wide.\nconst TRACK_HEIGHT = 40\nconst TRACK_INSET = 16\nconst ROW_MAX_WIDTH = 324\nconst ROW_PADDING_X = 32\n\ninterface TransferLogoCardProps {\n /** Source institution logo (left). */\n from: ReactNode\n /** Destination institution logo (right). */\n to: ReactNode\n /** Logo tile size in px (Figma: 64). */\n size?: number\n /** Arrow icon rendered in the center badge. Defaults to a right arrow. */\n icon?: ReactNode\n /**\n * Enlarge the inner connector dots (6px vs 4px), matching the Discovered\n * Accounts insight for cross-insight consistency. Default true.\n */\n hasBigDots?: boolean\n /** Connector-dot color token. Default `neutral.darker` (theme-aware). */\n dotColor?: string\n /** Center badge background color token. Default `neutral.darker` (dark circle\n * for Switch DD default; set to `success.main` for Discovered Accounts success). */\n badgeBgColor?: string\n /** Slot surface color token. Default `primary.lighter` (Figma's tinted slot,\n * theme-aware: light-blue in light mode, navy in dark). */\n bgcolor?: string\n /**\n * Optional background image (e.g., celebration gradient) for success states.\n * Layered over the `bgcolor` via `backgroundImage` (not `background` shorthand).\n */\n backgroundImage?: string\n /**\n * Show a confetti animation filling the slot (for success/celebration states).\n * Requires `useContainerDimensions` to measure the slot. Default false.\n */\n showConfetti?: boolean\n sx?: SxProps\n}\n\n// Default center-badge glyph. Hoisted to a stable reference so it isn't\n// re-created each render (`neutral.lighter` is the theme-aware inverse of the\n// badge fill: light glyph on dark badge, and vice-versa in dark).\nconst defaultTransferIcon = (\n <Icon aria-hidden={true} name=\"arrow_forward\" size={20} sx={{ color: 'neutral.lighter' }} />\n)\n\n// Connector dot: a small rounded square that reads as a dot at this size\n// (matches v1 `ConnectionCard`'s `Dot`). `neutral.darker` is theme-aware. The\n// inner pair is larger (`bigDots`, as Discovered Accounts uses) than the outer.\nconst Dot = ({ color = 'neutral.darker', size = 4 }: { color?: string; size?: number }) => (\n <Box sx={{ bgcolor: color, borderRadius: '4px', flexShrink: 0, height: size, width: size }} />\n)\n\n/**\n * A from → to account transfer visual: two institution logos on a rounded track\n * with a central arrow badge and connector dots between them.\n *\n * Figma: Switch Direct Deposit (default) and Discovered Accounts Content. Scope is the Content\n * section only.\n */\nconst TransferLogoCard = ({\n badgeBgColor = 'neutral.darker',\n bgcolor = 'primary.lighter',\n backgroundImage,\n dotColor = 'neutral.darker',\n from,\n hasBigDots = true,\n icon = defaultTransferIcon,\n showConfetti = false,\n size = 64,\n to,\n sx,\n}: TransferLogoCardProps) => {\n const dotSize = hasBigDots ? 6 : 4\n const logoSx = {\n borderRadius: '4px',\n flexShrink: 0,\n height: size,\n overflow: 'hidden',\n width: size,\n } as const\n\n return (\n <Box\n sx={{\n bgcolor,\n ...(backgroundImage && { backgroundImage }),\n p: 16,\n // Positioned wrapper so the confetti overlay can fill the slot; the card\n // sits above it (zIndex). No `overflow: hidden` — that would clip the\n // burst's upper area (per the figma-to-code confetti guidance).\n position: 'relative',\n width: '100%',\n ...sx,\n }}\n >\n {showConfetti && <ConfettiOverlay />}\n {/* Pulse's mini slide sets every `.MuiCard-root` to 100% (`.slot .MuiCard-root`, two classes); `&&&` outranks\n it, so the card keeps its content height with no empty space under the logos (design QA #22). */}\n <Card sx={{ '&&&': { height: 'auto' }, position: 'relative', py: 16, zIndex: 1 }}>\n <Box\n sx={{\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n {/* Track, vertically centred behind the row and inset from the card's edges. */}\n <Box\n sx={{\n bgcolor: 'divider',\n borderRadius: '24px',\n height: TRACK_HEIGHT,\n left: TRACK_INSET,\n position: 'absolute',\n right: TRACK_INSET,\n top: '50%',\n transform: 'translateY(-50%)',\n }}\n />\n {/* Seven direct items, so space-between spreads the dots and badge evenly between the logos. */}\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n height: size,\n justifyContent: 'space-between',\n maxWidth: ROW_MAX_WIDTH,\n position: 'relative',\n px: ROW_PADDING_X,\n width: '100%',\n }}\n >\n <Box sx={logoSx}>{from}</Box>\n <Dot color={dotColor} />\n <Dot color={dotColor} size={dotSize} />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: badgeBgColor,\n borderRadius: '50%',\n flexShrink: 0,\n height: 28,\n justifyContent: 'center',\n width: 28,\n }}\n >\n {icon}\n </Stack>\n <Dot color={dotColor} size={dotSize} />\n <Dot color={dotColor} />\n <Box sx={logoSx}>{to}</Box>\n </Stack>\n </Box>\n </Card>\n </Box>\n )\n}\n\nexport default TransferLogoCard\n"],"mappings":";;;;;;AAYA,IAAM,IAAe,IACf,IAAc,IACd,IAAgB,KAChB,IAAgB,IAwChB,IACJ,gBAAA,EAAC,GAAD;AAAA,EAAM,eAAa;AAAA,EAAM,MAAK;AAAA,EAAgB,MAAM;AAAA,EAAI,IAAI,EAAE,OAAO,kBAAkB;AAAI,CAAA,GAMvF,IAAA,CAAO,EAAE,OAAA,IAAQ,kBAAkB,MAAA,IAAO,EAAA,MAC9C,gBAAA,EAAC,GAAD,EAAK,IAAI;AAAA,EAAE,SAAS;AAAA,EAAO,cAAc;AAAA,EAAO,YAAY;AAAA,EAAG,QAAQ;AAAA,EAAM,OAAO;AAAK,EAAI,CAAA,GAUzF,IAAA,CAAoB,EACxB,cAAA,IAAe,kBACf,SA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AA,UACT;AAAA,UAVF,UAAA;AAAA,YAYE,gBAAA,EAAC,GAAD;AAAA,cAAK,IAAI;AAAA,cAAS,UAAA;AAAA,YAAU,CAAA;AAAA,YAC5B,gBAAA,EAAC,GAAD,EAAK,OAAO,EAAW,CAAA;AAAA,YACvB,gBAAA,EAAC,GAAD;AAAA,cAAK,OAAO;AAAA,cAAU,MAAM;AAAA,YAAU,CAAA;AAAA,YACtC,gBAAA,EAAC,GAAD;AAAA,cACE,IAAI;AAAA,gBACF,YAAY;AAAA,gBACZ,SAAS;AAAA,gBACT,cAAc;AAAA,gBACd,YAAY;AAAA,gBACZ,QAAQ;AAAA,gBACR,gBAAgB;AAAA,gBAChB,OAAO;AAAA,cACT;AAAA,cAEC,UAAA;AAAA,YACI,CAAA;AAAA,YACP,gBAAA,EAAC,GAAD;AAAA,cAAK,OAAO;AAAA,cAAU,MAAM;AAAA,YAAU,CAAA;AAAA,YACtC,gBAAA,EAAC,GAAD,EAAK,OAAO,EAAW,CAAA;AAAA,YACvB,gBAAA,EAAC,GAAD;AAAA,cAAK,IAAI;AAAA,cAAS,UAAA;AAAA,YAAQ,CAAA;AAAA,UACrB;AAAA,QACJ,CAAA,CAAA;AAAA;IACD,CAAA,CACH;AAAA;AAET"}
@@ -1,34 +1,39 @@
1
- import o from "@mui/material/Stack";
2
- import { Text as i } from "@mxenabled/mxui";
3
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
4
- import { alpha as s } from "@mui/material/styles";
1
+ import n from "@mui/material/Stack";
2
+ import { Text as t } from "@mxenabled/mxui";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import { alpha as g } from "@mui/material/styles";
5
5
  import l from "@mui/material/Box";
6
- var f = ({ amount: n, days: a, highlightedAriaLabel: d, logo: h, merchantName: p, sx: c }) => /* @__PURE__ */ e(l, {
6
+ var h = (o) => ({
7
+ outline: "1px solid",
8
+ outlineColor: o,
9
+ outlineOffset: "-1px"
10
+ }), v = ({ amount: o, days: a, highlightedAriaLabel: d, logo: p, merchantName: c, sx: s }) => /* @__PURE__ */ r(l, {
7
11
  sx: {
8
12
  bgcolor: "background.paper",
9
- border: "1px solid",
10
- borderColor: "divider",
13
+ ...h("divider"),
11
14
  borderRadius: 2,
12
15
  p: 12,
13
- ...c
16
+ ...s
14
17
  },
15
- children: /* @__PURE__ */ t(o, {
18
+ children: /* @__PURE__ */ i(n, {
16
19
  sx: { gap: 12 },
17
- children: [/* @__PURE__ */ t(l, {
20
+ children: [/* @__PURE__ */ i(l, {
18
21
  sx: {
19
22
  display: "grid",
20
23
  gridTemplateColumns: "repeat(7, 1fr)",
21
24
  rowGap: "2px"
22
25
  },
23
- children: [a.map((r) => /* @__PURE__ */ e(i, {
24
- bold: r.highlighted === !0,
25
- color: r.highlighted === !0 ? "primary.main" : "text.secondary",
26
- sx: { textAlign: "center" },
26
+ children: [a.map((e) => /* @__PURE__ */ r(t, {
27
+ color: e.highlighted === !0 ? "primary.main" : "text.secondary",
28
+ sx: {
29
+ fontWeight: e.highlighted === !0 ? "fontWeightBold" : void 0,
30
+ textAlign: "center"
31
+ },
27
32
  variant: "caption",
28
- children: r.label
29
- }, `label-${r.label}-${r.date}`)), a.map((r) => /* @__PURE__ */ e(l, {
30
- "aria-current": r.highlighted === !0 ? "date" : void 0,
31
- "aria-label": r.highlighted === !0 ? d ?? `${r.label} ${r.date}, bill due` : void 0,
33
+ children: e.label
34
+ }, `label-${e.label}-${e.date}`)), a.map((e) => /* @__PURE__ */ r(l, {
35
+ "aria-current": e.highlighted === !0 ? "date" : void 0,
36
+ "aria-label": e.highlighted === !0 ? d ?? `${e.label} ${e.date}, bill due` : void 0,
32
37
  sx: {
33
38
  alignItems: "center",
34
39
  display: "flex",
@@ -36,23 +41,22 @@ var f = ({ amount: n, days: a, highlightedAriaLabel: d, logo: h, merchantName: p
36
41
  justifyContent: "center",
37
42
  justifySelf: "center",
38
43
  width: 36,
39
- ...r.highlighted === !0 && {
44
+ ...e.highlighted === !0 && {
40
45
  bgcolor: "primary.main",
41
46
  borderRadius: "4px"
42
47
  }
43
48
  },
44
- children: /* @__PURE__ */ e(i, {
45
- color: r.highlighted === !0 ? "primary.contrastText" : "text.secondary",
49
+ children: /* @__PURE__ */ r(t, {
50
+ color: e.highlighted === !0 ? "primary.contrastText" : "text.secondary",
46
51
  variant: "body1",
47
- children: r.date
52
+ children: e.date
48
53
  })
49
- }, `date-${r.label}-${r.date}`))]
50
- }), /* @__PURE__ */ t(o, {
54
+ }, `date-${e.label}-${e.date}`))]
55
+ }), /* @__PURE__ */ i(n, {
51
56
  sx: {
52
57
  alignItems: "center",
53
- backgroundColor: (r) => s(r.palette.primary.main, 0.15),
54
- border: "1px solid",
55
- borderColor: "primary.main",
58
+ backgroundColor: (e) => g(e.palette.primary.main, 0.15),
59
+ ...h("primary.main"),
56
60
  borderRadius: "4px",
57
61
  flexDirection: "row",
58
62
  gap: 12,
@@ -60,40 +64,40 @@ var f = ({ amount: n, days: a, highlightedAriaLabel: d, logo: h, merchantName: p
60
64
  px: 12,
61
65
  py: 10
62
66
  },
63
- children: [/* @__PURE__ */ t(o, {
67
+ children: [/* @__PURE__ */ i(n, {
64
68
  sx: {
65
69
  alignItems: "center",
66
70
  flexDirection: "row",
67
71
  gap: 8,
68
72
  minWidth: 0
69
73
  },
70
- children: [/* @__PURE__ */ e(l, {
74
+ children: [/* @__PURE__ */ r(l, {
71
75
  sx: {
72
76
  flexShrink: 0,
73
77
  height: 24,
74
78
  width: 24
75
79
  },
76
- children: h
77
- }), /* @__PURE__ */ e(i, {
80
+ children: p
81
+ }), /* @__PURE__ */ r(t, {
78
82
  color: "text.primary",
79
83
  truncate: !0,
80
84
  variant: "subtitle2",
81
- children: p
85
+ children: c
82
86
  })]
83
- }), /* @__PURE__ */ e(i, {
87
+ }), /* @__PURE__ */ r(t, {
84
88
  color: "text.primary",
85
89
  sx: {
86
90
  flexShrink: 0,
87
91
  fontWeight: 600
88
92
  },
89
93
  variant: "subtitle2",
90
- children: n
94
+ children: o
91
95
  })]
92
96
  })]
93
97
  })
94
98
  });
95
99
  export {
96
- f as default
100
+ v as default
97
101
  };
98
102
 
99
103
  //# sourceMappingURL=UpcomingBillCard.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpcomingBillCard.es.js","names":[],"sources":["../../../src/insights-v2/components/UpcomingBillCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { alpha, type SxProps, type Theme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nexport interface UpcomingBillDay {\n /** Day-of-week label, e.g. \"Sun\". */\n label: string\n /** Day-of-month number, e.g. \"26\". */\n date: string\n /** Whether this is the highlighted due day (blue label + filled date cell). */\n highlighted?: boolean\n}\n\nexport interface UpcomingBillCardProps {\n days: UpcomingBillDay[]\n /** Merchant logo/icon (24x24), rendered left of the merchant name. */\n logo: ReactNode\n /** Merchant name, e.g. \"Power Plus\". */\n merchantName: string\n /** Bill amount, formatted (e.g. \"$75.00\"). */\n amount: string\n /** Custom aria-label for the highlighted due date cell (accessibility). Pass a localized string from copy/GlobalCopyStore; defaults to English \"bill due\" if not provided. */\n highlightedAriaLabel?: string\n sx?: SxProps<Theme>\n}\n\n/**\n * Upcoming Bill content: a seven-day week strip with the due day highlighted\n * (blue label + filled blue date cell) above a tinted bill row (merchant logo,\n * name, and amount).\n *\n * Figma: Upcoming Bill Content (Full variant). Scope is the Content section\n * only.\n */\nconst UpcomingBillCard = ({\n amount,\n days,\n highlightedAriaLabel,\n logo,\n merchantName,\n sx,\n}: UpcomingBillCardProps) => {\n return (\n <Box\n sx={{\n bgcolor: 'background.paper',\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: 2,\n p: 12,\n ...sx,\n }}\n >\n <Stack sx={{ gap: 12 }}>\n {/* Week strip: labels row + date-cells row, aligned into 7 columns */}\n <Box\n sx={{\n display: 'grid',\n gridTemplateColumns: 'repeat(7, 1fr)',\n rowGap: '2px',\n }}\n >\n {days.map((day) => (\n <Text\n bold={day.highlighted === true}\n color={day.highlighted === true ? 'primary.main' : 'text.secondary'}\n key={`label-${day.label}-${day.date}`}\n sx={{ textAlign: 'center' }}\n variant=\"caption\"\n >\n {day.label}\n </Text>\n ))}\n {days.map((day) => (\n <Box\n aria-current={day.highlighted === true ? 'date' : undefined}\n aria-label={\n day.highlighted === true\n ? (highlightedAriaLabel ?? `${day.label} ${day.date}, bill due`)\n : undefined\n }\n key={`date-${day.label}-${day.date}`}\n sx={{\n alignItems: 'center',\n display: 'flex',\n height: 36,\n justifyContent: 'center',\n justifySelf: 'center',\n width: 36,\n ...(day.highlighted === true && {\n bgcolor: 'primary.main',\n borderRadius: '4px',\n }),\n }}\n >\n <Text\n color={day.highlighted === true ? 'primary.contrastText' : 'text.secondary'}\n variant=\"body1\"\n >\n {day.date}\n </Text>\n </Box>\n ))}\n </Box>\n\n {/* Bill row */}\n <Stack\n sx={{\n alignItems: 'center',\n // Figma fill: primary.main at 15% opacity (a translucent overlay),\n // with a solid primary.main 1px border.\n backgroundColor: (theme) => alpha(theme.palette.primary.main, 0.15),\n border: '1px solid',\n borderColor: 'primary.main',\n borderRadius: '4px',\n flexDirection: 'row',\n gap: 12,\n justifyContent: 'space-between',\n px: 12,\n py: 10,\n }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8, minWidth: 0 }}>\n <Box sx={{ flexShrink: 0, height: 24, width: 24 }}>{logo}</Box>\n <Text color=\"text.primary\" truncate={true} variant=\"subtitle2\">\n {merchantName}\n </Text>\n </Stack>\n <Text color=\"text.primary\" sx={{ flexShrink: 0, fontWeight: 600 }} variant=\"subtitle2\">\n {amount}\n </Text>\n </Stack>\n </Stack>\n </Box>\n )\n}\n\nexport default UpcomingBillCard\n"],"mappings":";;;;;AAsCA,IAAM,IAAA,CAAoB,EACxB,QAAA,GACA,MAAA,GACA,sBAAA,GACA,MAAA,GACA,cAAA,GACA,IAAA,EAAA,MA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AI,IAAA,EAoB3B,CACN,CACE;AAAA,IAGL,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,YAAY;AAAA,QAGZ,iBAAA,CAAkB,MAAU,EAAM,EAAM,QAAQ,QAAQ,MAAM,IAAI;AAAA,QAClE,QAAQ;AAAA,QACR,aAAa;AAAA,QACb,cAAc;AAAA,QACd,eAAe;AAAA,QACf,KAAK;AAAA,QACL,gBAAgB;AAAA,QAChB,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,MAdF,UAAA,CAgBE,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,YAAY;AAAA,UAAU,eAAe;AAAA,UAAO,KAAK;AAAA,UAAG,UAAU;AAAA,QAAE;AAAA,QAA7E,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAK,IAAI;AAAA,YAAE,YAAY;AAAA,YAAG,QAAQ;AAAA,YAAI,OAAO;AAAA,UAAG;AAAA,UAAI,UAAA;AAAA,QAAU,CAAA,GAC9D,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAe,UAAU;AAAA,UAAM,SAAQ;AAAA,UAChD,UAAA;AAAA,QACG,CAAA,CACD;AAAA,MACP,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,QAAM,OAAM;AAAA,QAAe,IAAI;AAAA,UAAE,YAAY;AAAA,UAAG,YAAY;AAAA,QAAI;AAAA,QAAG,SAAQ;AAAA,QACxE,UAAA;AAAA,MACG,CAAA,CACD;AAAA,IACF,CAAA,CAAA;AAAA;AACJ,CAAA"}
1
+ {"version":3,"file":"UpcomingBillCard.es.js","names":[],"sources":["../../../src/insights-v2/components/UpcomingBillCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { alpha, type SxProps, type Theme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nexport interface UpcomingBillDay {\n /** Day-of-week label, e.g. \"Sun\". */\n label: string\n /** Day-of-month number, e.g. \"26\". */\n date: string\n /** Whether this is the highlighted due day (blue label + filled date cell). */\n highlighted?: boolean\n}\n\nexport interface UpcomingBillCardProps {\n days: UpcomingBillDay[]\n /** Merchant logo/icon (24x24), rendered left of the merchant name. */\n logo: ReactNode\n /** Merchant name, e.g. \"Power Plus\". */\n merchantName: string\n /** Bill amount, formatted (e.g. \"$75.00\"). */\n amount: string\n /** Custom aria-label for the highlighted due date cell (accessibility). Pass a localized string from copy/GlobalCopyStore; defaults to English \"bill due\" if not provided. */\n highlightedAriaLabel?: string\n sx?: SxProps<Theme>\n}\n\n// Figma's inside stroke: no added height, and unlike a box-shadow it shows in forced-colors mode.\nconst insetStroke = (color: string) => ({\n outline: '1px solid',\n outlineColor: color,\n outlineOffset: '-1px',\n})\n\n/**\n * Upcoming Bill content: a seven-day week strip with the due day highlighted\n * (blue label + filled blue date cell) above a tinted bill row (merchant logo,\n * name, and amount).\n *\n * Figma: Upcoming Bill Content (Full variant). Scope is the Content section\n * only.\n */\nconst UpcomingBillCard = ({\n amount,\n days,\n highlightedAriaLabel,\n logo,\n merchantName,\n sx,\n}: UpcomingBillCardProps) => {\n return (\n <Box\n sx={{\n bgcolor: 'background.paper',\n ...insetStroke('divider'),\n borderRadius: 2,\n p: 12,\n ...sx,\n }}\n >\n <Stack sx={{ gap: 12 }}>\n {/* Week strip: labels row + date-cells row, aligned into 7 columns */}\n <Box\n sx={{\n display: 'grid',\n gridTemplateColumns: 'repeat(7, 1fr)',\n rowGap: '2px',\n }}\n >\n {days.map((day) => (\n <Text\n color={day.highlighted === true ? 'primary.main' : 'text.secondary'}\n key={`label-${day.label}-${day.date}`}\n sx={{\n // Figma: 700, above mxui's bold (600).\n fontWeight: day.highlighted === true ? 'fontWeightBold' : undefined,\n textAlign: 'center',\n }}\n variant=\"caption\"\n >\n {day.label}\n </Text>\n ))}\n {days.map((day) => (\n <Box\n aria-current={day.highlighted === true ? 'date' : undefined}\n aria-label={\n day.highlighted === true\n ? (highlightedAriaLabel ?? `${day.label} ${day.date}, bill due`)\n : undefined\n }\n key={`date-${day.label}-${day.date}`}\n sx={{\n alignItems: 'center',\n display: 'flex',\n height: 36,\n justifyContent: 'center',\n justifySelf: 'center',\n width: 36,\n ...(day.highlighted === true && {\n bgcolor: 'primary.main',\n borderRadius: '4px',\n }),\n }}\n >\n <Text\n color={day.highlighted === true ? 'primary.contrastText' : 'text.secondary'}\n variant=\"body1\"\n >\n {day.date}\n </Text>\n </Box>\n ))}\n </Box>\n\n {/* Bill row */}\n <Stack\n sx={{\n alignItems: 'center',\n backgroundColor: (theme) => alpha(theme.palette.primary.main, 0.15),\n ...insetStroke('primary.main'),\n borderRadius: '4px',\n flexDirection: 'row',\n gap: 12,\n justifyContent: 'space-between',\n px: 12,\n py: 10,\n }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8, minWidth: 0 }}>\n <Box sx={{ flexShrink: 0, height: 24, width: 24 }}>{logo}</Box>\n <Text color=\"text.primary\" truncate={true} variant=\"subtitle2\">\n {merchantName}\n </Text>\n </Stack>\n <Text color=\"text.primary\" sx={{ flexShrink: 0, fontWeight: 600 }} variant=\"subtitle2\">\n {amount}\n </Text>\n </Stack>\n </Stack>\n </Box>\n )\n}\n\nexport default UpcomingBillCard\n"],"mappings":";;;;;AA+BA,IAAM,IAAA,CAAe,OAAmB;AAAA,EACtC,SAAS;AAAA,EACT,cAAc;AAAA,EACd,eAAe;AACjB,IAUM,IAAA,CAAoB,EACxB,QAAA,GACA,MAAA,GACA,sBAAA,GACA,MAAA,GACA,cAAA,GACA,IAAA,EAAA,MAGE,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,SAAS;AAAA,IACT,GAAG,EAAY,SAAS;AAAA,IACxB,cAAc;AAAA,IACd,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI,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E,GAAG,EAAY,cAAc;AAAA,QAC7B,cAAc;AAAA,QACd,eAAe;AAAA,QACf,KAAK;AAAA,QACL,gBAAgB;AAAA,QAChB,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,MAXF,UAAA,CAaE,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,YAAY;AAAA,UAAU,eAAe;AAAA,UAAO,KAAK;AAAA,UAAG,UAAU;AAAA,QAAE;AAAA,QAA7E,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAK,IAAI;AAAA,YAAE,YAAY;AAAA,YAAG,QAAQ;AAAA,YAAI,OAAO;AAAA,UAAG;AAAA,UAAI,UAAA;AAAA,QAAU,CAAA,GAC9D,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAe,UAAU;AAAA,UAAM,SAAQ;AAAA,UAChD,UAAA;AAAA,QACG,CAAA,CACD;AAAA,MACP,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,QAAM,OAAM;AAAA,QAAe,IAAI;AAAA,UAAE,YAAY;AAAA,UAAG,YAAY;AAAA,QAAI;AAAA,QAAG,SAAQ;AAAA,QACxE,UAAA;AAAA,MACG,CAAA,CACD;AAAA,IACF,CAAA,CAAA;AAAA;AACJ,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { Theme } from '@mui/material/styles';
2
2
  /**
3
3
  * Decorative slot washes shared by the block layouts and the presentational components, so
4
- * one source holds each gradient. The 20%–25% washes layer over `background.paper` via
5
- * `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` and the tile gradients are opaque and stand alone.
4
+ * one source holds each gradient. The 20%–25% washes and the 75% tile gradients layer over
5
+ * `background.paper` via `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` is opaque and stands alone.
6
6
  *
7
7
  * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and on-track states.
8
8
  * - DIRECT_DEPOSIT_COMPLETE_GRADIENT: the direct deposit complete tile and the deposit tile.
@@ -47,15 +47,24 @@ export declare const WARNING_WASH_GRADIENT = "linear-gradient(201deg, rgba(255,
47
47
  export declare const ERROR_WASH_GRADIENT = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)";
48
48
  /** Red → orange wash at 25%: fees and interest charges (Figma 1365:301242, error.main → warning.main). */
49
49
  export declare const FEES_WASH_GRADIENT = "linear-gradient(239.66deg, rgba(227, 39, 39, 0.25) 1.86%, rgba(255, 123, 0, 0.25) 101.54%)";
50
- /** Blue tile, per theme mode (Missing Interest Rate before the rate is added). */
50
+ /**
51
+ * Blue tile (Missing Interest Rate before the rate is added): Figma's own CSS for the slot
52
+ * (781:55181), `var()` fallbacks taken as the literal colors — `primary/light` → `primary/main`
53
+ * at 75%, over `background.paper`. Figma's light and dark frames carry the identical gradient; the
54
+ * mode shows through `background.paper` underneath, not a separate dark gradient.
55
+ */
51
56
  export declare const PRIMARY_TILE_GRADIENTS: {
52
- readonly light: "linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)";
53
- readonly dark: "linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)";
57
+ readonly light: "linear-gradient(127deg, rgba(160, 185, 248, 0.75) 46.41%, rgba(44, 100, 239, 0.75) 78.14%)";
58
+ readonly dark: "linear-gradient(127deg, rgba(160, 185, 248, 0.75) 46.41%, rgba(44, 100, 239, 0.75) 78.14%)";
54
59
  };
55
- /** Green tile, per theme mode (Missing Interest Rate once the rate is added). */
60
+ /**
61
+ * Green tile (Missing Interest Rate once the rate is added): Figma's own CSS for the slot
62
+ * (781:55181) — `success/light` → `success/main` at 75%, over `background.paper`. The first stop
63
+ * sits before 0% (Figma: -12.46%). Light and dark frames carry the identical gradient, as above.
64
+ */
56
65
  export declare const SUCCESS_TILE_GRADIENTS: {
57
- readonly light: "linear-gradient(180deg, #94C9B7 0%, #12875E 100%)";
58
- readonly dark: "linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)";
66
+ readonly light: "linear-gradient(273deg, rgba(148, 201, 183, 0.75) -12.46%, rgba(18, 135, 94, 0.75) 96.31%)";
67
+ readonly dark: "linear-gradient(273deg, rgba(148, 201, 183, 0.75) -12.46%, rgba(18, 135, 94, 0.75) 96.31%)";
59
68
  };
60
69
  /**
61
70
  * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →
@@ -1,23 +1,23 @@
1
1
  import { alpha as a } from "@mui/material/styles";
2
- var d = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", E = "linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(173, 248, 44, 0.2) 101.54%)", n = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)", e = (r) => `linear-gradient(${r}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`, A = e(200.73), t = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)", _ = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)", R = "linear-gradient(239.66deg, rgba(227, 39, 39, 0.25) 1.86%, rgba(255, 123, 0, 0.25) 101.54%)", T = {
3
- light: "linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)",
4
- dark: "linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)"
5
- }, I = {
6
- light: "linear-gradient(180deg, #94C9B7 0%, #12875E 100%)",
7
- dark: "linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)"
8
- }, l = ({ palette: r }, g = 173) => `linear-gradient(${g}deg, ${a(r.primary.light, 0.75)} 46.41%, ${a(r.primary.main, 0.75)} 78.14%)`;
2
+ var d = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", n = "linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(173, 248, 44, 0.2) 101.54%)", E = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)", e = (r) => `linear-gradient(${r}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`, b = e(200.73), t = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)", _ = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)", A = "linear-gradient(239.66deg, rgba(227, 39, 39, 0.25) 1.86%, rgba(255, 123, 0, 0.25) 101.54%)", R = {
3
+ light: "linear-gradient(127deg, rgba(160, 185, 248, 0.75) 46.41%, rgba(44, 100, 239, 0.75) 78.14%)",
4
+ dark: "linear-gradient(127deg, rgba(160, 185, 248, 0.75) 46.41%, rgba(44, 100, 239, 0.75) 78.14%)"
5
+ }, T = {
6
+ light: "linear-gradient(273deg, rgba(148, 201, 183, 0.75) -12.46%, rgba(18, 135, 94, 0.75) 96.31%)",
7
+ dark: "linear-gradient(273deg, rgba(148, 201, 183, 0.75) -12.46%, rgba(18, 135, 94, 0.75) 96.31%)"
8
+ }, I = ({ palette: r }, g = 173) => `linear-gradient(${g}deg, ${a(r.primary.light, 0.75)} 46.41%, ${a(r.primary.main, 0.75)} 78.14%)`;
9
9
  export {
10
- A as ACCOUNT_CONNECTED_GRADIENT,
11
- n as CELEBRATION_GRADIENT,
12
- E as DIRECT_DEPOSIT_COMPLETE_GRADIENT,
10
+ b as ACCOUNT_CONNECTED_GRADIENT,
11
+ E as CELEBRATION_GRADIENT,
12
+ n as DIRECT_DEPOSIT_COMPLETE_GRADIENT,
13
13
  _ as ERROR_WASH_GRADIENT,
14
- R as FEES_WASH_GRADIENT,
15
- T as PRIMARY_TILE_GRADIENTS,
16
- I as SUCCESS_TILE_GRADIENTS,
14
+ A as FEES_WASH_GRADIENT,
15
+ R as PRIMARY_TILE_GRADIENTS,
16
+ T as SUCCESS_TILE_GRADIENTS,
17
17
  d as WARM_LIME_ACCENT_GRADIENT,
18
18
  t as WARNING_WASH_GRADIENT,
19
19
  e as celebrateGradient,
20
- l as getPrimaryWashGradient
20
+ I as getPrimaryWashGradient
21
21
  };
22
22
 
23
23
  //# sourceMappingURL=celebrationGradients.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Decorative slot washes shared by the block layouts and the presentational components, so\n * one source holds each gradient. The 20%–25% washes layer over `background.paper` via\n * `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` and the tile gradients are opaque and stand alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and on-track states.\n * - DIRECT_DEPOSIT_COMPLETE_GRADIENT: the direct deposit complete tile and the deposit tile.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - celebrateGradient(angle): Figma's Celebrate Gradient at any angle.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - ERROR_WASH_GRADIENT: low balance, off-track status.\n * - FEES_WASH_GRADIENT: fees and interest charges.\n * - PRIMARY_TILE_GRADIENTS / SUCCESS_TILE_GRADIENTS: blue and green tiles, per theme mode.\n * - getPrimaryWashGradient(theme, angle?): pending connect / detected subscription, from the palette.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and on-track states.\n */\nexport const WARM_LIME_ACCENT_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)'\n\n/**\n * Warm → lime wash at 20% behind the Direct Deposit complete tile (Set Up / Switch Direct Deposit) and\n * the deposit tile (Unified Deposit).\n * Figma gives it its own angle and stops, so it does not reuse WARM_LIME_ACCENT_GRADIENT.\n */\nexport const DIRECT_DEPOSIT_COMPLETE_GRADIENT =\n 'linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(173, 248, 44, 0.2) 101.54%)'\n\n/** Warm → pink wash behind balance/savings milestones. */\nexport const CELEBRATION_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)'\n\n/** Figma Celebrate Gradient; its angle varies per slot. */\nexport const celebrateGradient = (angleDeg: number) =>\n `linear-gradient(${angleDeg}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`\n\n/** Peach → pink gradient for Discovered Accounts success state. */\nexport const DISCOVERED_ACCOUNTS_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)'\n\n/**\n * Warm → pink wash at 20% opacity for the account-connected success state.\n * Layer over `background.paper` (the Figma spec's `#FFF` base), not the\n * `background` shorthand — a 20% gradient over transparency renders wrong.\n */\nexport const ACCOUNT_CONNECTED_GRADIENT = celebrateGradient(200.73)\n\n/**\n * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription\n * Payment). Figma \"Warning Gradient 1\": a bespoke two-stop blend with no palette token, so it\n * stays a literal like the other washes here rather than being derived from `palette.warning`.\n */\nexport const WARNING_WASH_GRADIENT =\n 'linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)'\n\n/** Red wash at 20%: low balance, off-track status. */\nexport const ERROR_WASH_GRADIENT =\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)'\n\n/** Red → orange wash at 25%: fees and interest charges (Figma 1365:301242, error.main → warning.main). */\nexport const FEES_WASH_GRADIENT =\n 'linear-gradient(239.66deg, rgba(227, 39, 39, 0.25) 1.86%, rgba(255, 123, 0, 0.25) 101.54%)'\n\n/** Blue tile, per theme mode (Missing Interest Rate before the rate is added). */\nexport const PRIMARY_TILE_GRADIENTS = {\n light: 'linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)',\n dark: 'linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)',\n} as const\n\n/** Green tile, per theme mode (Missing Interest Rate once the rate is added). */\nexport const SUCCESS_TILE_GRADIENTS = {\n light: 'linear-gradient(180deg, #94C9B7 0%, #12875E 100%)',\n dark: 'linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)',\n} as const\n\n/**\n * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →\n * `primary.main` at 75% over paper, built from the live palette so it follows the theme. Figma's\n * angle follows the slot's shape, so a slot passes its own.\n */\nexport const getPrimaryWashGradient = ({ palette }: Theme, angleDeg = 173) =>\n `linear-gradient(${angleDeg}deg, ${alpha(palette.primary.light, 0.75)} 46.41%, ${alpha(palette.primary.main, 0.75)} 78.14%)`\n"],"mappings":";AAsBA,IAAa,IACX,+FAOW,IACX,4FAGW,IACX,gGAGW,IAAA,CAAqB,MAChC,mBAAmB,CAAA,0EAWR,IAA6B,EAAkB,MAAM,GAOrD,IACX,0FAGW,IACX,2FAGW,IACX,8FAGW,IAAyB;AAAA,EACpC,OAAO;AAAA,EACP,MAAM;AACR,GAGa,IAAyB;AAAA,EACpC,OAAO;AAAA,EACP,MAAM;AACR,GAOa,IAAA,CAA0B,EAAE,SAAA,EAAA,GAAkB,IAAW,QACpE,mBAAmB,CAAA,QAAgB,EAAM,EAAQ,QAAQ,OAAO,IAAI,CAAA,YAAa,EAAM,EAAQ,QAAQ,MAAM,IAAI,CAAA"}
1
+ {"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Decorative slot washes shared by the block layouts and the presentational components, so\n * one source holds each gradient. The 20%–25% washes and the 75% tile gradients layer over\n * `background.paper` via `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` is opaque and stands alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and on-track states.\n * - DIRECT_DEPOSIT_COMPLETE_GRADIENT: the direct deposit complete tile and the deposit tile.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - celebrateGradient(angle): Figma's Celebrate Gradient at any angle.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - ERROR_WASH_GRADIENT: low balance, off-track status.\n * - FEES_WASH_GRADIENT: fees and interest charges.\n * - PRIMARY_TILE_GRADIENTS / SUCCESS_TILE_GRADIENTS: blue and green tiles, per theme mode.\n * - getPrimaryWashGradient(theme, angle?): pending connect / detected subscription, from the palette.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and on-track states.\n */\nexport const WARM_LIME_ACCENT_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)'\n\n/**\n * Warm → lime wash at 20% behind the Direct Deposit complete tile (Set Up / Switch Direct Deposit) and\n * the deposit tile (Unified Deposit).\n * Figma gives it its own angle and stops, so it does not reuse WARM_LIME_ACCENT_GRADIENT.\n */\nexport const DIRECT_DEPOSIT_COMPLETE_GRADIENT =\n 'linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(173, 248, 44, 0.2) 101.54%)'\n\n/** Warm → pink wash behind balance/savings milestones. */\nexport const CELEBRATION_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)'\n\n/** Figma Celebrate Gradient; its angle varies per slot. */\nexport const celebrateGradient = (angleDeg: number) =>\n `linear-gradient(${angleDeg}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`\n\n/** Peach → pink gradient for Discovered Accounts success state. */\nexport const DISCOVERED_ACCOUNTS_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)'\n\n/**\n * Warm → pink wash at 20% opacity for the account-connected success state.\n * Layer over `background.paper` (the Figma spec's `#FFF` base), not the\n * `background` shorthand — a 20% gradient over transparency renders wrong.\n */\nexport const ACCOUNT_CONNECTED_GRADIENT = celebrateGradient(200.73)\n\n/**\n * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription\n * Payment). Figma \"Warning Gradient 1\": a bespoke two-stop blend with no palette token, so it\n * stays a literal like the other washes here rather than being derived from `palette.warning`.\n */\nexport const WARNING_WASH_GRADIENT =\n 'linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)'\n\n/** Red wash at 20%: low balance, off-track status. */\nexport const ERROR_WASH_GRADIENT =\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)'\n\n/** Red → orange wash at 25%: fees and interest charges (Figma 1365:301242, error.main → warning.main). */\nexport const FEES_WASH_GRADIENT =\n 'linear-gradient(239.66deg, rgba(227, 39, 39, 0.25) 1.86%, rgba(255, 123, 0, 0.25) 101.54%)'\n\n/**\n * Blue tile (Missing Interest Rate before the rate is added): Figma's own CSS for the slot\n * (781:55181), `var()` fallbacks taken as the literal colors — `primary/light` → `primary/main`\n * at 75%, over `background.paper`. Figma's light and dark frames carry the identical gradient; the\n * mode shows through `background.paper` underneath, not a separate dark gradient.\n */\nexport const PRIMARY_TILE_GRADIENTS = {\n light:\n 'linear-gradient(127deg, rgba(160, 185, 248, 0.75) 46.41%, rgba(44, 100, 239, 0.75) 78.14%)',\n dark: 'linear-gradient(127deg, rgba(160, 185, 248, 0.75) 46.41%, rgba(44, 100, 239, 0.75) 78.14%)',\n} as const\n\n/**\n * Green tile (Missing Interest Rate once the rate is added): Figma's own CSS for the slot\n * (781:55181) — `success/light` → `success/main` at 75%, over `background.paper`. The first stop\n * sits before 0% (Figma: -12.46%). Light and dark frames carry the identical gradient, as above.\n */\nexport const SUCCESS_TILE_GRADIENTS = {\n light:\n 'linear-gradient(273deg, rgba(148, 201, 183, 0.75) -12.46%, rgba(18, 135, 94, 0.75) 96.31%)',\n dark: 'linear-gradient(273deg, rgba(148, 201, 183, 0.75) -12.46%, rgba(18, 135, 94, 0.75) 96.31%)',\n} as const\n\n/**\n * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →\n * `primary.main` at 75% over paper, built from the live palette so it follows the theme. Figma's\n * angle follows the slot's shape, so a slot passes its own.\n */\nexport const getPrimaryWashGradient = ({ palette }: Theme, angleDeg = 173) =>\n `linear-gradient(${angleDeg}deg, ${alpha(palette.primary.light, 0.75)} 46.41%, ${alpha(palette.primary.main, 0.75)} 78.14%)`\n"],"mappings":";AAsBA,IAAa,IACX,+FAOW,IACX,4FAGW,IACX,gGAGW,IAAA,CAAqB,MAChC,mBAAmB,CAAA,0EAWR,IAA6B,EAAkB,MAAM,GAOrD,IACX,0FAGW,IACX,2FAGW,IACX,8FAQW,IAAyB;AAAA,EACpC,OACE;AAAA,EACF,MAAM;AACR,GAOa,IAAyB;AAAA,EACpC,OACE;AAAA,EACF,MAAM;AACR,GAOa,IAAA,CAA0B,EAAE,SAAA,EAAA,GAAkB,IAAW,QACpE,mBAAmB,CAAA,QAAgB,EAAM,EAAQ,QAAQ,OAAO,IAAI,CAAA,YAAa,EAAM,EAAQ,QAAQ,MAAM,IAAI,CAAA"}