@mx-cartographer/experiences 9.3.8-alpha.al0 → 9.4.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.
- package/CHANGELOG.md +15 -0
- package/dist/accounts/components/AccountListItem.es.js +4 -4
- package/dist/accounts/components/AccountsListCompact.es.js +15 -15
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActions.es.js +6 -6
- package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection.es.js +6 -6
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetails.es.js +11 -11
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent.es.js +6 -6
- package/dist/accounts/components/detailsdrawer/Accounts/ConnectionErrorMessage.es.js +7 -7
- package/dist/accounts/components/detailsdrawer/Transactions/TransactionsTab.es.js +4 -4
- package/dist/budgets/components/BudgetsEmptyState.es.js +7 -7
- package/dist/budgets/components/budgetdetails/SubBudgetList.es.js +16 -16
- package/dist/budgets/components/budgetdetails/SubBudgetList.es.js.map +1 -1
- package/dist/cashflow/CashflowOnboarding.es.js +13 -13
- package/dist/cashflow/components/CashflowHeading.es.js +4 -4
- package/dist/cashflow/components/DetailsExpenseHeader.es.js +4 -4
- package/dist/common/components/DataRow.es.js +6 -6
- package/dist/common/components/MiniWidgetContainer.es.js +9 -9
- package/dist/common/components/charts/linechart/CustomLine.es.js +2 -2
- package/dist/common/components/charts/linechart/CustomMark.es.js +2 -2
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/context/hooks.es.js +12 -11
- package/dist/common/context/hooks.es.js.map +1 -1
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +116 -115
- package/dist/core/index.es.js +27 -25
- package/dist/core/stores/BudgetsStore.es.js +21 -28
- package/dist/core/stores/BudgetsStore.es.js.map +1 -1
- package/dist/core/stores/GlobalStore.d.ts +2 -1
- package/dist/core/stores/GlobalStore.es.js +11 -9
- package/dist/core/stores/GlobalStore.es.js.map +1 -1
- package/dist/core/stores/InsightsV2Store.d.ts +24 -0
- package/dist/core/stores/InsightsV2Store.es.js +41 -0
- package/dist/core/stores/InsightsV2Store.es.js.map +1 -0
- package/dist/core/stores/index.d.ts +2 -0
- package/dist/core/types/Beat.d.ts +2 -0
- package/dist/core/types/Beat.es.js.map +1 -1
- package/dist/core/types/Insights.d.ts +90 -0
- package/dist/core/types/InsightsInstanceSlotData.d.ts +93 -0
- package/dist/core/types/InsightsInstanceSlotData.es.js +8 -0
- package/dist/core/types/InsightsInstanceSlotData.es.js.map +1 -0
- package/dist/core/types/index.d.ts +1 -0
- package/dist/core/utils/BudgetUtil.es.js +50 -56
- package/dist/core/utils/BudgetUtil.es.js.map +1 -1
- package/dist/debts/DebtsWidget.es.js +5 -5
- package/dist/debts/components/debtsdrawer/DebtDetailsContent.es.js +3 -3
- package/dist/debts/components/debtsdrawer/DebtDetailsTab.es.js +6 -6
- package/dist/debts/components/debtsdrawer/DebtScheduleTab.es.js +8 -8
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.es.js +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.es.js +8 -8
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.es.js +5 -5
- package/dist/finstrong/components/shared/Accounts.es.js +24 -24
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.es.js +2 -2
- package/dist/finstrong/components/shared/Transactions.es.js +28 -28
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
- package/dist/goals/GoalsWidget.es.js +12 -12
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.es.js +13 -13
- package/dist/insights/components/insights/UserFeedback/UserFeedback.es.js +14 -14
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.es.js +2 -2
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.es.js +9 -9
- package/dist/insights/components/shared/InsightsCard/BeatCard.es.js +4 -4
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.es.js +4 -4
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.es.js +2 -2
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.es.js +2 -2
- package/dist/insights/components/shared/MenuAction.es.js +16 -16
- package/dist/insights-v2/CommonUtils.d.ts +1 -0
- package/dist/insights-v2/CommonUtils.es.js +7 -0
- package/dist/insights-v2/CommonUtils.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.d.ts +3 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js +28 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/layout.d.ts +9 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/layout.es.js +9 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.d.ts +18 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js +34 -0
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.d.ts +13 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js +87 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.d.ts +4 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +23 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +19 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +15 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.d.ts +3 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.es.js +11 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/ChartLegend.d.ts +7 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/ChartLegend.es.js +48 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/ChartLegend.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/CustomDoubleBar.d.ts +18 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/CustomDoubleBar.es.js +45 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/CustomDoubleBar.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChart.d.ts +2 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChart.es.js +125 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChart.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.d.ts +8 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +10 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.d.ts +4 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js +28 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/ProgressBar.d.ts +8 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/ProgressBar.es.js +44 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/ProgressBar.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleProgressBarBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +4 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +15 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +9 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +13 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/utils.d.ts +19 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/utils.es.js +27 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/utils.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.d.ts +5 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js +78 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithoutText.d.ts +5 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithoutText.es.js +81 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithoutText.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/index.d.ts +5 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.d.ts +4 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +200 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/HeaderComponent.d.ts +5 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/HeaderComponent.es.js +26 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/HeaderComponent.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/IconComponent.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/IconComponent.es.js +64 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/IconComponent.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.d.ts +32 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +100 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/ActionBlock/ActionBlockLayer.d.ts +8 -0
- package/dist/insights-v2/blocks/ComponentBlocks/ActionBlock/ActionBlockLayer.es.js +41 -0
- package/dist/insights-v2/blocks/ComponentBlocks/ActionBlock/ActionBlockLayer.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/ActionBlock/PlaceholderActionBlock.d.ts +4 -0
- package/dist/insights-v2/blocks/ComponentBlocks/ActionBlock/PlaceholderActionBlock.es.js +32 -0
- package/dist/insights-v2/blocks/ComponentBlocks/ActionBlock/PlaceholderActionBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.d.ts +3 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js +50 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/util.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/util.es.js +12 -0
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/util.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +2 -0
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.d.ts +4 -0
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js +35 -0
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.d.ts +3 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js +20 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js +296 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js +449 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHolidayCibc.es.js +89 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHolidayCibc.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/UpcomingTaxDeadlineAlert.es.js +235 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/UpcomingTaxDeadlineAlert.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/UpcomingTaxDeadlineAlertCIBC.es.js +57 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/UpcomingTaxDeadlineAlertCIBC.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.d.ts +7 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js +15 -0
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ImageBlocks/index.d.ts +2 -0
- package/dist/insights-v2/blocks/index.d.ts +4 -0
- package/dist/insights-v2/blocks/types.d.ts +8 -0
- package/dist/insights-v2/components/AccountHeroCard.d.ts +35 -0
- package/dist/insights-v2/components/AccountHeroCard.es.js +91 -0
- package/dist/insights-v2/components/AccountHeroCard.es.js.map +1 -0
- package/dist/insights-v2/components/AmountPill.d.ts +16 -0
- package/dist/insights-v2/components/AmountPill.es.js +25 -0
- package/dist/insights-v2/components/AmountPill.es.js.map +1 -0
- package/dist/insights-v2/components/BaseLayout.d.ts +6 -0
- package/dist/insights-v2/components/BaseLayout.es.js +77 -0
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -0
- package/dist/insights-v2/components/ComponentBlocks/DepositLogo.d.ts +22 -0
- package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js +33 -0
- package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js.map +1 -0
- package/dist/insights-v2/components/ComponentBlocks/StatusIndicator.d.ts +14 -0
- package/dist/insights-v2/components/ComponentBlocks/StatusIndicator.es.js +65 -0
- package/dist/insights-v2/components/ComponentBlocks/StatusIndicator.es.js.map +1 -0
- package/dist/insights-v2/components/DesignateEmergencySavingsCard.d.ts +33 -0
- package/dist/insights-v2/components/DesignateEmergencySavingsCard.es.js +78 -0
- package/dist/insights-v2/components/DesignateEmergencySavingsCard.es.js.map +1 -0
- package/dist/insights-v2/components/Footer.d.ts +9 -0
- package/dist/insights-v2/components/Footer.es.js +25 -0
- package/dist/insights-v2/components/Footer.es.js.map +1 -0
- package/dist/insights-v2/components/Header.d.ts +8 -0
- package/dist/insights-v2/components/Header.es.js +41 -0
- package/dist/insights-v2/components/Header.es.js.map +1 -0
- package/dist/insights-v2/components/InsightTransactionRow.d.ts +23 -0
- package/dist/insights-v2/components/InsightTransactionRow.es.js +52 -0
- package/dist/insights-v2/components/InsightTransactionRow.es.js.map +1 -0
- package/dist/insights-v2/components/LogoClusterCard.d.ts +40 -0
- package/dist/insights-v2/components/LogoClusterCard.es.js +104 -0
- package/dist/insights-v2/components/LogoClusterCard.es.js.map +1 -0
- package/dist/insights-v2/components/LogoTile.d.ts +31 -0
- package/dist/insights-v2/components/LogoTile.es.js +34 -0
- package/dist/insights-v2/components/LogoTile.es.js.map +1 -0
- package/dist/insights-v2/components/MerchantHighlightCard.d.ts +34 -0
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +64 -0
- package/dist/insights-v2/components/MerchantHighlightCard.es.js.map +1 -0
- package/dist/insights-v2/components/P2PLogoStack.d.ts +32 -0
- package/dist/insights-v2/components/P2PLogoStack.es.js +55 -0
- package/dist/insights-v2/components/P2PLogoStack.es.js.map +1 -0
- package/dist/insights-v2/components/SaveAnExtraCard.d.ts +27 -0
- package/dist/insights-v2/components/SaveAnExtraCard.es.js +57 -0
- package/dist/insights-v2/components/SaveAnExtraCard.es.js.map +1 -0
- package/dist/insights-v2/components/SavingsOpportunityCard.d.ts +18 -0
- package/dist/insights-v2/components/SavingsOpportunityCard.es.js +71 -0
- package/dist/insights-v2/components/SavingsOpportunityCard.es.js.map +1 -0
- package/dist/insights-v2/components/StatusMessageCard.d.ts +28 -0
- package/dist/insights-v2/components/StatusMessageCard.es.js +45 -0
- package/dist/insights-v2/components/StatusMessageCard.es.js.map +1 -0
- package/dist/insights-v2/components/StatusPill.d.ts +26 -0
- package/dist/insights-v2/components/StatusPill.es.js +30 -0
- package/dist/insights-v2/components/StatusPill.es.js.map +1 -0
- package/dist/insights-v2/components/SubHeader.d.ts +6 -0
- package/dist/insights-v2/components/SubHeader.es.js +40 -0
- package/dist/insights-v2/components/SubHeader.es.js.map +1 -0
- package/dist/insights-v2/components/SubscriptionHeroCard.d.ts +27 -0
- package/dist/insights-v2/components/SubscriptionHeroCard.es.js +63 -0
- package/dist/insights-v2/components/SubscriptionHeroCard.es.js.map +1 -0
- package/dist/insights-v2/components/TransactionListCard.d.ts +45 -0
- package/dist/insights-v2/components/TransactionListCard.es.js +118 -0
- package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -0
- package/dist/insights-v2/components/TransferLogoCard.d.ts +44 -0
- package/dist/insights-v2/components/TransferLogoCard.es.js +121 -0
- package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -0
- package/dist/insights-v2/components/UpcomingBillCard.d.ts +41 -0
- package/dist/insights-v2/components/UpcomingBillCard.es.js +99 -0
- package/dist/insights-v2/components/UpcomingBillCard.es.js.map +1 -0
- package/dist/insights-v2/components/celebrationGradients.d.ts +19 -0
- package/dist/insights-v2/components/celebrationGradients.es.js +7 -0
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -0
- package/dist/insights-v2/components/chartblocks/BarchartV2.d.ts +2 -0
- package/dist/insights-v2/components/chartblocks/BarchartV2.es.js +148 -0
- package/dist/insights-v2/components/chartblocks/BarchartV2.es.js.map +1 -0
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.d.ts +1 -0
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +14 -0
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js.map +1 -0
- package/dist/insights-v2/components/chartblocks/ThemedSVGImage.d.ts +2 -0
- package/dist/insights-v2/components/chartblocks/ThemedSVGImage.es.js +49 -0
- package/dist/insights-v2/components/chartblocks/ThemedSVGImage.es.js.map +1 -0
- package/dist/insights-v2/components/logoShadow.d.ts +26 -0
- package/dist/insights-v2/components/logoShadow.es.js +12 -0
- package/dist/insights-v2/components/logoShadow.es.js.map +1 -0
- package/dist/insights-v2/components/shared/Confetti.d.ts +15 -0
- package/dist/insights-v2/components/shared/Confetti.es.js +33 -0
- package/dist/insights-v2/components/shared/Confetti.es.js.map +1 -0
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js +338 -0
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js.map +1 -0
- package/dist/insights-v2/components/shared/images/PaidOffCard.es.js +85 -0
- package/dist/insights-v2/components/shared/images/PaidOffCard.es.js.map +1 -0
- package/dist/insights-v2/components/shared/images/SavingsAccountDeposit.es.js +124 -0
- package/dist/insights-v2/components/shared/images/SavingsAccountDeposit.es.js.map +1 -0
- package/dist/insights-v2/components/shared/images/SavingsOpportunityLeft.es.js +104 -0
- package/dist/insights-v2/components/shared/images/SavingsOpportunityLeft.es.js.map +1 -0
- package/dist/insights-v2/components/shared/images/SavingsOpportunityLeftDark.es.js +104 -0
- package/dist/insights-v2/components/shared/images/SavingsOpportunityLeftDark.es.js.map +1 -0
- package/dist/insights-v2/components/shared/images/SavingsOpportunityPerforation.es.js +38 -0
- package/dist/insights-v2/components/shared/images/SavingsOpportunityPerforation.es.js.map +1 -0
- package/dist/insights-v2/components/statusTokens.d.ts +12 -0
- package/dist/insights-v2/components/statusTokens.es.js +10 -0
- package/dist/insights-v2/components/statusTokens.es.js.map +1 -0
- package/dist/insights-v2/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights-v2/hooks/useContainerDimensions.es.js +26 -0
- package/dist/insights-v2/hooks/useContainerDimensions.es.js.map +1 -0
- package/dist/insights-v2/index.d.ts +18 -0
- package/dist/insights-v2/index.es.js +55 -0
- package/dist/insights-v2/mappings/blocks.d.ts +14 -0
- package/dist/insights-v2/mappings/blocks.es.js +32 -0
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -0
- package/dist/investments/InvestmentsWidget.es.js +10 -10
- package/dist/investments/components/AnalysisDetails.es.js +4 -4
- package/dist/investments/components/allocation/InvestementAllocationList.es.js +27 -27
- package/dist/microinsights/MicroCardTemplate.es.js +4 -4
- package/dist/microinsights/carousel/BeatList.es.js +9 -9
- package/dist/networth/NetWorthWidget.es.js +6 -6
- package/dist/networth/components/AssetsLiabilitiesDetail.es.js +2 -2
- package/dist/networth/components/GainsLossesDetail.es.js +13 -13
- package/dist/notifications/components/NotificationDrawer.es.js +5 -5
- package/dist/notifications/components/NotificationList.es.js +13 -13
- package/dist/recurringtransactions/components/MicroWidgetContent.es.js +13 -13
- package/dist/recurringtransactions/components/RecurrenceRow.es.js +6 -6
- package/dist/recurringtransactions/components/RecurringStatus.es.js +4 -4
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js +19 -19
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.es.js +9 -9
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceDay.es.js +5 -5
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransaction.es.js +25 -25
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageIncome.es.js +5 -5
- package/dist/settings/components/notifications/NotificationSettings.es.js +12 -12
- package/dist/settings/components/profile/ProfileTab.es.js +20 -20
- package/dist/trends/TrendsWidget.es.js +25 -25
- package/package.json +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { getStepStyles as c } from "../utils.es.js";
|
|
2
|
+
import x from "react";
|
|
3
|
+
import t from "@mui/material/Stack";
|
|
4
|
+
import { Text as h } from "@mxenabled/mxui";
|
|
5
|
+
import { SavingsIcon as f } from "@mxenabled/mx-icons";
|
|
6
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
import { alpha as g } from "@mui/material/styles";
|
|
8
|
+
import l from "@mui/material/Box";
|
|
9
|
+
var m = 3, u = [
|
|
10
|
+
0,
|
|
11
|
+
1,
|
|
12
|
+
2,
|
|
13
|
+
3
|
|
14
|
+
], j = ({ slotData: d }) => {
|
|
15
|
+
const { completed_steps: o, label_1: n } = d, i = o === m;
|
|
16
|
+
return /* @__PURE__ */ a(t, {
|
|
17
|
+
sx: {
|
|
18
|
+
border: "1px solid",
|
|
19
|
+
borderColor: "divider",
|
|
20
|
+
borderRadius: "8px",
|
|
21
|
+
gap: 8,
|
|
22
|
+
pb: 16,
|
|
23
|
+
pt: 12,
|
|
24
|
+
px: 16
|
|
25
|
+
},
|
|
26
|
+
children: [/* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(h, {
|
|
27
|
+
bold: !0,
|
|
28
|
+
variant: "caption",
|
|
29
|
+
children: n
|
|
30
|
+
}) }), /* @__PURE__ */ a(l, {
|
|
31
|
+
sx: {
|
|
32
|
+
display: "grid",
|
|
33
|
+
placeItems: "center"
|
|
34
|
+
},
|
|
35
|
+
children: [/* @__PURE__ */ r(t, { sx: (e) => ({
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
bgcolor: g(e.palette[i ? "success" : "primary"].main, 0.15),
|
|
38
|
+
borderTopLeftRadius: "26px",
|
|
39
|
+
borderBottomLeftRadius: "26px",
|
|
40
|
+
gridArea: "1 / 1",
|
|
41
|
+
height: 26,
|
|
42
|
+
justifySelf: "start",
|
|
43
|
+
ml: -8,
|
|
44
|
+
width: `${34 * o}%`
|
|
45
|
+
}) }), /* @__PURE__ */ r(t, {
|
|
46
|
+
sx: {
|
|
47
|
+
height: 36,
|
|
48
|
+
gridArea: "1 / 1"
|
|
49
|
+
},
|
|
50
|
+
children: /* @__PURE__ */ r(t, {
|
|
51
|
+
sx: {
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
flexDirection: "row"
|
|
54
|
+
},
|
|
55
|
+
children: u.map((e) => {
|
|
56
|
+
const p = e < o;
|
|
57
|
+
return /* @__PURE__ */ a(x.Fragment, { children: [o === e ? /* @__PURE__ */ r(t, {
|
|
58
|
+
sx: {
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
bgcolor: i ? "success.main" : "primary.main",
|
|
61
|
+
borderRadius: "99999px",
|
|
62
|
+
height: 36,
|
|
63
|
+
p: 8,
|
|
64
|
+
width: 36
|
|
65
|
+
},
|
|
66
|
+
children: /* @__PURE__ */ r(f, {
|
|
67
|
+
filled: !0,
|
|
68
|
+
sx: { color: "primary.contrastText" }
|
|
69
|
+
})
|
|
70
|
+
}) : /* @__PURE__ */ r(l, { sx: (s) => c(s, p, i).dot }), e !== m && /* @__PURE__ */ r(l, { sx: (s) => c(s, p, i).connector })] }, e);
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
})]
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
j as default
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=WithoutText.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithoutText.es.js","names":[],"sources":["../../../../../../src/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithoutText.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { alpha } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\nimport { SavingsIcon } from '@mxenabled/mx-icons'\n\nimport type { StepChartBlockData } from '../../../../../core/types/InsightsInstanceSlotData'\n\nimport { getStepStyles } from '../utils'\n\nconst LAST_STEP = 3\nconst STEP_INDICES = [0, 1, 2, 3] as const\n\nconst WithoutText = ({ slotData }: { slotData: StepChartBlockData }) => {\n const { completed_steps: completedSteps, label_1 } = slotData\n const allCompleted = completedSteps === LAST_STEP\n\n return (\n <Stack\n sx={{\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: '8px',\n gap: 8,\n pb: 16,\n pt: 12,\n px: 16,\n }}\n >\n <Stack>\n <Text bold={true} variant=\"caption\">\n {label_1}\n </Text>\n </Stack>\n <Box sx={{ display: 'grid', placeItems: 'center' }}>\n <Stack\n sx={(theme) => ({\n alignItems: 'center',\n bgcolor: alpha(theme.palette[allCompleted ? 'success' : 'primary'].main, 0.15),\n borderTopLeftRadius: '26px',\n borderBottomLeftRadius: '26px',\n gridArea: '1 / 1',\n height: 26,\n justifySelf: 'start',\n ml: -8,\n width: `${34 * completedSteps}%`,\n })}\n />\n <Stack sx={{ height: 36, gridArea: '1 / 1' }}>\n <Stack sx={{ alignItems: 'center', flexDirection: 'row' }}>\n {STEP_INDICES.map((index) => {\n const completed = index < completedSteps\n\n return (\n <React.Fragment key={index}>\n {completedSteps === index ? (\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: allCompleted ? 'success.main' : 'primary.main',\n borderRadius: '99999px',\n height: 36,\n p: 8,\n width: 36,\n }}\n >\n <SavingsIcon filled={true} sx={{ color: 'primary.contrastText' }} />\n </Stack>\n ) : (\n <Box sx={(theme) => getStepStyles(theme, completed, allCompleted).dot} />\n )}\n {index !== LAST_STEP && (\n <Box sx={(theme) => getStepStyles(theme, completed, allCompleted).connector} />\n )}\n </React.Fragment>\n )\n })}\n </Stack>\n </Stack>\n </Box>\n </Stack>\n )\n}\n\nexport default WithoutText\n"],"mappings":";;;;;;;;AAaA,IAAM,IAAY,GACZ,IAAe;AAAA,EAAC;AAAA,EAAG;AAAA,EAAG;AAAA,EAAG;AAAC,GAE1B,IAAA,CAAe,EAAE,UAAA,EAAA,MAAiD;AACtE,QAAM,EAAE,iBAAiB,GAAgB,SAAA,EAAA,IAAY,GAC/C,IAAe,MAAmB;AAExC,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,cAAc;AAAA,MACd,KAAK;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IATF,UAAA,CAWE,gBAAA,EAAC,GAAD,EAAA,UACE,gBA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,EAAE,IAAM,CAAA,GAEzE,MAAU,KACT,gBAAA,EAAC,GAAD,EAAK,IAAA,CAAK,MAAU,EAAc,GAAO,GAAW,CAAY,EAAE,UAAY,CAAA,CAElE,EAAA,GApBK,CAoBL;AAAA,UAEpB,CAAC;AAAA,QACI,CAAA;AAAA,MACF,CAAA,CACJ;AAAA,IACA,CAAA,CAAA;AAAA;AAEX"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './BarchartBlock';
|
|
2
|
+
export * from './BarchartBlock/utils';
|
|
3
|
+
export * from './DoubleBarChartBlock';
|
|
4
|
+
export { default as DonutChartBlock } from './DonutChartBlock/DonutChartBlock';
|
|
5
|
+
export { default as DoubleProgressBarBlock } from './DoubleProgressBarBlock/DoubleProgressBarBlock';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AccountBlockData } from '../../../../core/types/InsightsInstanceSlotData';
|
|
2
|
+
import { BlockProps } from '../../types';
|
|
3
|
+
declare const AccountBlock: ({ payload }: BlockProps<AccountBlockData>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default AccountBlock;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { formatCurrency as b } from "../../../../core/utils/NumberFormatting.es.js";
|
|
2
|
+
import { useContainerDimensions as D } from "../../../hooks/useContainerDimensions.es.js";
|
|
3
|
+
import { DepositLogo as z } from "../../../components/ComponentBlocks/DepositLogo.es.js";
|
|
4
|
+
import { Confetti as L } from "../../../components/shared/Confetti.es.js";
|
|
5
|
+
import { ReactComponent as $ } from "../../../components/shared/images/PaidOffCard.es.js";
|
|
6
|
+
import { ReactComponent as F } from "../../../components/shared/images/SavingsAccountDeposit.es.js";
|
|
7
|
+
import { HeaderComponent as G } from "./HeaderComponent.es.js";
|
|
8
|
+
import { getLayoutConfig as N } from "./layout.es.js";
|
|
9
|
+
import { IconComponent as O } from "./IconComponent.es.js";
|
|
10
|
+
import { useRef as P } from "react";
|
|
11
|
+
import t from "@mui/material/Stack";
|
|
12
|
+
import { Text as a } from "@mxenabled/mxui";
|
|
13
|
+
import { Icon as j } from "@mxenabled/mx-icons";
|
|
14
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
15
|
+
import { useTheme as B } from "@mui/material/styles";
|
|
16
|
+
import i from "@mui/material/Box";
|
|
17
|
+
var E = {
|
|
18
|
+
UnifiedDeposit: "payments",
|
|
19
|
+
UnifiedDepositEmergencyFund: "payments",
|
|
20
|
+
MonthlyObligationsStatusOnTrack: "monetization_on"
|
|
21
|
+
}, to = ({ payload: y }) => {
|
|
22
|
+
const w = B(), c = P(null), { height: d, width: l } = D(c), { instance_slot: v, instance_slot_data: m } = y, { variant: s } = v, { amount: p, sub_text: R, header_text: n, institution_guid: h, institution_name: u, icon_name: _, label: C, merchant_guid: T, merchant_name: f, category_guid: k } = m, e = N(w)[s];
|
|
23
|
+
if (e?.isConfetti) {
|
|
24
|
+
const I = {
|
|
25
|
+
paidOffCard: /* @__PURE__ */ o(i, {
|
|
26
|
+
sx: {
|
|
27
|
+
flexShrink: 0,
|
|
28
|
+
height: 32,
|
|
29
|
+
position: "relative",
|
|
30
|
+
width: 44
|
|
31
|
+
},
|
|
32
|
+
children: /* @__PURE__ */ o($, {
|
|
33
|
+
"aria-hidden": !0,
|
|
34
|
+
role: "presentation",
|
|
35
|
+
style: {
|
|
36
|
+
left: 0,
|
|
37
|
+
position: "absolute",
|
|
38
|
+
top: -14
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
savings: /* @__PURE__ */ o(F, {
|
|
43
|
+
"aria-hidden": !0,
|
|
44
|
+
height: 55,
|
|
45
|
+
role: "presentation",
|
|
46
|
+
width: 55
|
|
47
|
+
}),
|
|
48
|
+
logo: /* @__PURE__ */ o(i, {
|
|
49
|
+
sx: {
|
|
50
|
+
borderRadius: "4px",
|
|
51
|
+
flexShrink: 0,
|
|
52
|
+
height: 48,
|
|
53
|
+
overflow: "hidden",
|
|
54
|
+
width: 48
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ o(z, {
|
|
57
|
+
categoryGuid: k,
|
|
58
|
+
iconName: E[s] ?? "payments",
|
|
59
|
+
institutionGuid: h,
|
|
60
|
+
institutionName: u,
|
|
61
|
+
merchantGuid: T,
|
|
62
|
+
merchantName: f
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
}[e.graphic ?? "logo"], g = e.secondarySource === "merchant" ? f ?? u : C, x = g ? /* @__PURE__ */ o(a, {
|
|
66
|
+
color: e.secondaryColor,
|
|
67
|
+
variant: e.secondaryVariant,
|
|
68
|
+
children: g
|
|
69
|
+
}) : null, S = /* @__PURE__ */ o(a, {
|
|
70
|
+
bold: !0,
|
|
71
|
+
color: "success.dark",
|
|
72
|
+
variant: e.amountVariant,
|
|
73
|
+
children: `${e.amountPrefix ?? ""}${b(p, "0,0.00")}`
|
|
74
|
+
});
|
|
75
|
+
return /* @__PURE__ */ r(i, {
|
|
76
|
+
ref: c,
|
|
77
|
+
sx: {
|
|
78
|
+
backgroundImage: e.gradient,
|
|
79
|
+
bgcolor: "background.paper",
|
|
80
|
+
overflow: "hidden",
|
|
81
|
+
position: "relative",
|
|
82
|
+
p: 16,
|
|
83
|
+
width: "100%"
|
|
84
|
+
},
|
|
85
|
+
children: [/* @__PURE__ */ o(i, {
|
|
86
|
+
sx: {
|
|
87
|
+
inset: 0,
|
|
88
|
+
pointerEvents: "none",
|
|
89
|
+
position: "absolute",
|
|
90
|
+
zIndex: 1
|
|
91
|
+
},
|
|
92
|
+
children: /* @__PURE__ */ o(L, {
|
|
93
|
+
height: d,
|
|
94
|
+
shouldRun: d > 0 && l > 0,
|
|
95
|
+
width: l
|
|
96
|
+
})
|
|
97
|
+
}), /* @__PURE__ */ r(t, {
|
|
98
|
+
sx: {
|
|
99
|
+
borderRadius: "8px",
|
|
100
|
+
overflow: "hidden",
|
|
101
|
+
position: "relative",
|
|
102
|
+
width: "100%",
|
|
103
|
+
zIndex: 2
|
|
104
|
+
},
|
|
105
|
+
children: [e.categoryStrip && n && /* @__PURE__ */ o(i, {
|
|
106
|
+
sx: {
|
|
107
|
+
bgcolor: "success.main",
|
|
108
|
+
px: 12,
|
|
109
|
+
py: 4
|
|
110
|
+
},
|
|
111
|
+
children: /* @__PURE__ */ o(a, {
|
|
112
|
+
color: "success.contrastText",
|
|
113
|
+
variant: "caption",
|
|
114
|
+
children: n
|
|
115
|
+
})
|
|
116
|
+
}), /* @__PURE__ */ r(t, {
|
|
117
|
+
sx: {
|
|
118
|
+
alignItems: "center",
|
|
119
|
+
bgcolor: "success.lighter",
|
|
120
|
+
border: "1px solid",
|
|
121
|
+
borderColor: "success.main",
|
|
122
|
+
borderRadius: "8px",
|
|
123
|
+
...e.categoryStrip && {
|
|
124
|
+
borderTopLeftRadius: 0,
|
|
125
|
+
borderTopRightRadius: 0,
|
|
126
|
+
borderTop: 0
|
|
127
|
+
},
|
|
128
|
+
flexDirection: "row",
|
|
129
|
+
...e.rowSx
|
|
130
|
+
},
|
|
131
|
+
children: [/* @__PURE__ */ o(i, {
|
|
132
|
+
sx: {
|
|
133
|
+
display: "flex",
|
|
134
|
+
flexShrink: 0
|
|
135
|
+
},
|
|
136
|
+
children: I
|
|
137
|
+
}), /* @__PURE__ */ r(t, {
|
|
138
|
+
sx: {
|
|
139
|
+
flex: "1 0 0",
|
|
140
|
+
minWidth: 0
|
|
141
|
+
},
|
|
142
|
+
children: [
|
|
143
|
+
e.secondaryPosition === "above" && x,
|
|
144
|
+
S,
|
|
145
|
+
e.secondaryPosition === "below" && x
|
|
146
|
+
]
|
|
147
|
+
})]
|
|
148
|
+
})]
|
|
149
|
+
})]
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
return /* @__PURE__ */ r(t, {
|
|
153
|
+
sx: {
|
|
154
|
+
p: 16,
|
|
155
|
+
...e
|
|
156
|
+
},
|
|
157
|
+
children: [n && /* @__PURE__ */ o(G, { headerText: n }), /* @__PURE__ */ r(t, {
|
|
158
|
+
sx: {
|
|
159
|
+
alignItems: "center",
|
|
160
|
+
bgcolor: "background.paper",
|
|
161
|
+
borderRadius: "8px",
|
|
162
|
+
...n && {
|
|
163
|
+
borderTopLeftRadius: "0",
|
|
164
|
+
borderTopRightRadius: "0"
|
|
165
|
+
},
|
|
166
|
+
gap: 16,
|
|
167
|
+
p: 16,
|
|
168
|
+
width: "100%",
|
|
169
|
+
...(h || _) && { flexDirection: "row" }
|
|
170
|
+
},
|
|
171
|
+
children: [/* @__PURE__ */ o(O, {
|
|
172
|
+
blockData: m,
|
|
173
|
+
variant: s
|
|
174
|
+
}), /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ o(a, {
|
|
175
|
+
variant: "h1",
|
|
176
|
+
children: b(p, "0,0.00")
|
|
177
|
+
}), /* @__PURE__ */ r(t, {
|
|
178
|
+
sx: {
|
|
179
|
+
gap: 8,
|
|
180
|
+
flexDirection: "row",
|
|
181
|
+
alignItems: "center"
|
|
182
|
+
},
|
|
183
|
+
children: [e?.sub_logo && /* @__PURE__ */ o(j, {
|
|
184
|
+
color: "warning",
|
|
185
|
+
fill: !0,
|
|
186
|
+
name: e.sub_logo,
|
|
187
|
+
size: 20
|
|
188
|
+
}), /* @__PURE__ */ o(a, {
|
|
189
|
+
variant: "body2",
|
|
190
|
+
children: R
|
|
191
|
+
})]
|
|
192
|
+
})] })]
|
|
193
|
+
})]
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
export {
|
|
197
|
+
to as default
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
//# sourceMappingURL=AccountBlock.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { useRef } from 'react'\nimport { useTheme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport { AccountBlockData } from '../../../../core/types/InsightsInstanceSlotData'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\nimport { DepositLogo } from '../../../components/ComponentBlocks/DepositLogo'\nimport { Confetti } from '../../../components/shared/Confetti'\nimport { ReactComponent as PaidOffCardGraphic } from '../../../components/shared/images/PaidOffCard.svg'\nimport { ReactComponent as SavingsGraphic } from '../../../components/shared/images/SavingsAccountDeposit.svg'\nimport { useContainerDimensions } from '../../../hooks/useContainerDimensions'\n\nimport type { BlockProps } from '../../types'\n\nimport { HeaderComponent } from './HeaderComponent'\nimport { IconComponent } from './IconComponent'\nimport { getLayoutConfig } from './layout'\n\n/** Default generic-tile icon per deposit variant, used when no merchant/institution logo. */\nconst depositIcons: Record<string, string> = {\n UnifiedDeposit: 'payments',\n UnifiedDepositEmergencyFund: 'payments',\n MonthlyObligationsStatusOnTrack: 'monetization_on',\n}\n\nconst AccountBlock = ({ payload }: BlockProps<AccountBlockData>) => {\n const theme = useTheme()\n const containerRef = useRef<HTMLDivElement>(null)\n const { height, width } = useContainerDimensions(containerRef)\n const { instance_slot, instance_slot_data } = payload\n const { variant } = instance_slot\n const {\n amount,\n sub_text,\n header_text,\n institution_guid,\n institution_name,\n icon_name,\n label,\n merchant_guid,\n merchant_name,\n category_guid,\n } = instance_slot_data\n const layoutConfig = getLayoutConfig(theme)[variant as keyof ReturnType<typeof getLayoutConfig>]\n\n // Confetti-backed celebration variants (deposits, payoff, savings) — a success-tinted card\n // on a gradient + confetti wash. Everything variant-specific is flat on `layoutConfig`.\n if (layoutConfig?.isConfetti) {\n const graphics: Record<string, React.ReactNode> = {\n paidOffCard: (\n // SVG is 58x46 but the card sits at (0,14) with the check badge overflowing top-right.\n // Box it to the card's real 44x32 footprint and shift the SVG up so it aligns with the text.\n <Box sx={{ flexShrink: 0, height: 32, position: 'relative', width: 44 }}>\n <PaidOffCardGraphic\n aria-hidden={true}\n role=\"presentation\"\n style={{ left: 0, position: 'absolute', top: -14 }}\n />\n </Box>\n ),\n savings: <SavingsGraphic aria-hidden={true} height={55} role=\"presentation\" width={55} />,\n logo: (\n <Box\n sx={{\n borderRadius: '4px',\n flexShrink: 0,\n height: 48,\n overflow: 'hidden',\n width: 48,\n }}\n >\n <DepositLogo\n categoryGuid={category_guid}\n iconName={depositIcons[variant as keyof typeof depositIcons] ?? 'payments'}\n institutionGuid={institution_guid}\n institutionName={institution_name}\n merchantGuid={merchant_guid}\n merchantName={merchant_name}\n />\n </Box>\n ),\n }\n const graphic = graphics[layoutConfig.graphic ?? 'logo']\n\n // Deposit cards show the payer name — a merchant when we have one, otherwise the institution.\n const secondaryText =\n layoutConfig.secondarySource === 'merchant' ? (merchant_name ?? institution_name) : label\n const secondary = secondaryText ? (\n <Text color={layoutConfig.secondaryColor} variant={layoutConfig.secondaryVariant}>\n {secondaryText}\n </Text>\n ) : null\n const amountText = (\n <Text bold={true} color=\"success.dark\" variant={layoutConfig.amountVariant}>\n {`${layoutConfig.amountPrefix ?? ''}${formatCurrency(amount, '0,0.00')}`}\n </Text>\n )\n\n return (\n <Box\n ref={containerRef}\n sx={{\n backgroundImage: layoutConfig.gradient,\n bgcolor: 'background.paper',\n overflow: 'hidden',\n position: 'relative',\n p: 16,\n width: '100%',\n }}\n >\n <Box\n sx={{\n inset: 0,\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 1,\n }}\n >\n <Confetti height={height} shouldRun={height > 0 && width > 0} width={width} />\n </Box>\n\n <Stack\n sx={{\n borderRadius: '8px',\n overflow: 'hidden',\n position: 'relative',\n width: '100%',\n zIndex: 2,\n }}\n >\n {layoutConfig.categoryStrip && header_text && (\n <Box sx={{ bgcolor: 'success.main', px: 12, py: 4 }}>\n <Text color=\"success.contrastText\" variant=\"caption\">\n {header_text}\n </Text>\n </Box>\n )}\n\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'success.lighter',\n border: '1px solid',\n borderColor: 'success.main',\n borderRadius: '8px',\n // With a strip above, the body's top corners tuck under it (no double border line).\n ...(layoutConfig.categoryStrip && {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n borderTop: 0,\n }),\n flexDirection: 'row',\n ...layoutConfig.rowSx,\n }}\n >\n <Box sx={{ display: 'flex', flexShrink: 0 }}>{graphic}</Box>\n\n <Stack sx={{ flex: '1 0 0', minWidth: 0 }}>\n {layoutConfig.secondaryPosition === 'above' && secondary}\n {amountText}\n {layoutConfig.secondaryPosition === 'below' && secondary}\n </Stack>\n </Stack>\n </Stack>\n </Box>\n )\n }\n\n return (\n <Stack\n sx={{\n p: 16,\n ...layoutConfig,\n }}\n >\n {header_text && <HeaderComponent headerText={header_text} />}\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'background.paper',\n borderRadius: '8px',\n ...(header_text && {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n }),\n gap: 16,\n p: 16,\n width: '100%',\n ...((institution_guid || icon_name) && {\n flexDirection: 'row',\n }),\n }}\n >\n <IconComponent blockData={instance_slot_data} variant={variant} />\n\n <Stack>\n <Text variant=\"h1\">{formatCurrency(amount, '0,0.00')}</Text>\n <Stack sx={{ gap: 8, flexDirection: 'row', alignItems: 'center' }}>\n {layoutConfig?.sub_logo && (\n <Icon color=\"warning\" fill={true} name={layoutConfig.sub_logo} size={20} />\n )}\n <Text variant=\"body2\">{sub_text}</Text>\n </Stack>\n </Stack>\n </Stack>\n </Stack>\n )\n}\n\nexport default AccountBlock\n"],"mappings":";;;;;;;;;;;;;;;;AAuBA,IAAM,IAAuC;AAAA,EAC3C,gBAAgB;AAAA,EAChB,6BAA6B;AAAA,EAC7B,iCAAiC;AACnC,GAEM,KAAA,CAAgB,EAAE,SAAA,EAAA,MAA4C;AAClE,QAAM,IAAQ,EAAS,GACjB,IAAe,EAAuB,IAAI,GAC1C,EAAE,QAAA,GAAQ,OAAA,EAAA,IAAU,EAAuB,CAAY,GACvD,EAAE,eAAA,GAAe,oBAAA,EAA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,QAAM,UAAA,EAAe,GAAQ,QAAQ;AAAA,MAAQ,CAAA,GAC3D,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,KAAK;AAAA,UAAG,eAAe;AAAA,UAAO,YAAY;AAAA,QAAS;AAAA,QAAhE,UAAA,CACG,GAAc,YACb,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAU,MAAM;AAAA,UAAM,MAAM,EAAa;AAAA,UAAU,MAAM;AAAA,QAAK,CAAA,GAE5E,gBAAA,EAAC,GAAD;AAAA,UAAM,SAAQ;AAAA,UAAS,UAAA;AAAA,QAAe,CAAA,CACjC;AAAA,MACF,CAAA,CAAA,EAAA,CAAA,CACF;AAAA,IACF,CAAA,CAAA;AAAA;AAEX"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import t from "@mui/material/Stack";
|
|
2
|
+
import { Text as e } from "@mxenabled/mxui";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
var a = ({ headerText: r }) => /* @__PURE__ */ o(t, {
|
|
5
|
+
sx: {
|
|
6
|
+
bgcolor: "background.default",
|
|
7
|
+
borderBottomColor: "divider",
|
|
8
|
+
borderBottomStyle: "solid",
|
|
9
|
+
borderBottomWidth: "1px",
|
|
10
|
+
borderTopLeftRadius: "8px",
|
|
11
|
+
borderTopRightRadius: "8px",
|
|
12
|
+
px: 16,
|
|
13
|
+
py: 8,
|
|
14
|
+
width: "100%"
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ o(e, {
|
|
17
|
+
sx: { color: "text.secondary" },
|
|
18
|
+
variant: "caption",
|
|
19
|
+
children: r
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
a as HeaderComponent
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=HeaderComponent.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderComponent.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountBlock/HeaderComponent.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\nimport { Text } from '@mxenabled/mxui'\n\ninterface HeaderComponentProps {\n headerText?: string\n}\n\nexport const HeaderComponent = ({ headerText }: HeaderComponentProps) => {\n return (\n <Stack\n sx={{\n bgcolor: 'background.default',\n borderBottomColor: 'divider',\n borderBottomStyle: 'solid',\n borderBottomWidth: '1px',\n borderTopLeftRadius: '8px',\n borderTopRightRadius: '8px',\n px: 16,\n py: 8,\n width: '100%',\n }}\n >\n <Text sx={{ color: 'text.secondary' }} variant=\"caption\">\n {headerText}\n </Text>\n </Stack>\n )\n}\n"],"mappings":";;;AAOA,IAAa,IAAA,CAAmB,EAAE,YAAA,EAAA,MAE9B,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,sBAAsB;AAAA,IACtB,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,IAAI,EAAE,OAAO,iBAAiB;AAAA,IAAG,SAAQ;AAAA,IAC5C,UAAA;AAAA,EACG,CAAA;AACD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InsightsInstanceSlotData } from '../../../../core/types/InsightsInstanceSlotData';
|
|
2
|
+
interface IconComponentProps {
|
|
3
|
+
blockData: InsightsInstanceSlotData;
|
|
4
|
+
variant: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const IconComponent: ({ blockData, variant }: IconComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import l from "../../../../common/components/IconBacking.es.js";
|
|
2
|
+
import { getLayoutConfig as m } from "./layout.es.js";
|
|
3
|
+
import { InstitutionLogo as c } from "@mxenabled/mxui";
|
|
4
|
+
import { Icon as t } from "@mxenabled/mx-icons";
|
|
5
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { useTheme as d } from "@mui/material/styles";
|
|
7
|
+
import { Stack as e } from "@mui/material";
|
|
8
|
+
var I = ({ blockData: o, variant: n }) => {
|
|
9
|
+
const s = d(), i = m(s)[n];
|
|
10
|
+
return o.institution_guid ? /* @__PURE__ */ u(e, {
|
|
11
|
+
sx: {
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
flexDirection: "row",
|
|
14
|
+
position: "relative"
|
|
15
|
+
},
|
|
16
|
+
children: [/* @__PURE__ */ r(c, {
|
|
17
|
+
alt: `${o.institution_name}`,
|
|
18
|
+
institutionGuid: `${o.institution_guid}`,
|
|
19
|
+
size: 48
|
|
20
|
+
}), /* @__PURE__ */ r(l, {
|
|
21
|
+
size: 20,
|
|
22
|
+
sx: {
|
|
23
|
+
position: "absolute",
|
|
24
|
+
right: -8,
|
|
25
|
+
top: -8
|
|
26
|
+
},
|
|
27
|
+
children: /* @__PURE__ */ r(t, {
|
|
28
|
+
color: "error",
|
|
29
|
+
fill: !0,
|
|
30
|
+
name: "error",
|
|
31
|
+
size: 20,
|
|
32
|
+
sx: {
|
|
33
|
+
gridColumn: 1,
|
|
34
|
+
gridRow: 1,
|
|
35
|
+
zIndex: 2
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
})]
|
|
39
|
+
}) : o.icon_name ? /* @__PURE__ */ r(e, {
|
|
40
|
+
sx: {
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
bgcolor: i.logo_bGcolor,
|
|
43
|
+
borderRadius: "6px",
|
|
44
|
+
height: 48,
|
|
45
|
+
justifyContent: "center",
|
|
46
|
+
width: 48,
|
|
47
|
+
...i.logo_border_color && {
|
|
48
|
+
borderColor: i.logo_border_color,
|
|
49
|
+
borderStyle: "solid",
|
|
50
|
+
borderWidth: 1.5
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
children: /* @__PURE__ */ r(t, {
|
|
54
|
+
name: o.icon_name,
|
|
55
|
+
size: 24,
|
|
56
|
+
sx: { color: i.logo_color }
|
|
57
|
+
})
|
|
58
|
+
}) : null;
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
I as IconComponent
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=IconComponent.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconComponent.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountBlock/IconComponent.tsx"],"sourcesContent":["import { Stack } from '@mui/material'\nimport { Icon } from '@mxenabled/mx-icons'\nimport { InstitutionLogo } from '@mxenabled/mxui'\nimport { IconBacking } from '../../../../common'\nimport { getLayoutConfig } from './layout'\nimport { useTheme } from '@mui/material/styles'\nimport type { InsightsInstanceSlotData } from '../../../../core/types/InsightsInstanceSlotData'\n\ninterface IconComponentProps {\n blockData: InsightsInstanceSlotData\n variant: string | null\n}\n\nexport const IconComponent = ({ blockData, variant }: IconComponentProps) => {\n const theme = useTheme()\n const layoutConfig = getLayoutConfig(theme)[variant as keyof ReturnType<typeof getLayoutConfig>]\n\n if (blockData.institution_guid) {\n return (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', position: 'relative' }}>\n <InstitutionLogo\n alt={`${blockData.institution_name}`}\n institutionGuid={`${blockData.institution_guid}`}\n size={48}\n />\n <IconBacking size={20} sx={{ position: 'absolute', right: -8, top: -8 }}>\n <Icon\n color=\"error\"\n fill={true}\n name=\"error\"\n size={20}\n sx={{ gridColumn: 1, gridRow: 1, zIndex: 2 }}\n />\n </IconBacking>\n </Stack>\n )\n }\n\n if (blockData.icon_name) {\n return (\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: layoutConfig.logo_bGcolor,\n borderRadius: '6px',\n height: 48,\n justifyContent: 'center',\n width: 48,\n ...(layoutConfig.logo_border_color && {\n borderColor: layoutConfig.logo_border_color,\n borderStyle: 'solid',\n borderWidth: 1.5,\n }),\n }}\n >\n <Icon\n name={blockData.icon_name}\n size={24}\n sx={{\n color: layoutConfig.logo_color,\n }}\n />\n </Stack>\n )\n }\n\n return null\n}\n"],"mappings":";;;;;;;AAaA,IAAa,IAAA,CAAiB,EAAE,WAAA,GAAW,SAAA,EAAA,MAAkC;AAC3E,QAAM,IAAQ,EAAS,GACjB,IAAe,EAAgB,CAAK,EAAE,CAAA;AAE5C,SAAI,EAAU,mBAEV,gBAAA,EAAC,GAAD;AAAA,IAAO,IAAI;AAAA,MAAE,YAAY;AAAA,MAAU,eAAe;AAAA,MAAO,UAAU;AAAA,IAAW;AAAA,IAA9E,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,MACE,KAAK,GAAG,EAAU,gBAAA;AAAA,MAClB,iBAAiB,GAAG,EAAU,gBAAA;AAAA,MAC9B,MAAM;AAAA,IACP,CAAA,GACD,gBAAA,EAAC,GAAD;AAAA,MAAa,MAAM;AAAA,MAAI,IAAI;AAAA,QAAE,UAAU;AAAA,QAAY,OAAO;AAAA,QAAI,KAAK;AAAA,MAAG;AAAA,MACpE,UAAA,gBAAA,EAAC,GAAD;AAAA,QACE,OAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAK;AAAA,QACL,MAAM;AAAA,QACN,IAAI;AAAA,UAAE,YAAY;AAAA,UAAG,SAAS;AAAA,UAAG,QAAQ;AAAA,QAAE;AAAA,MAC5C,CAAA;AAAA,IACU,CAAA,CACR;AAAA,OAIP,EAAU,YAEV,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,SAAS,EAAa;AAAA,MACtB,cAAc;AAAA,MACd,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,OAAO;AAAA,MACP,GAAI,EAAa,qBAAqB;AAAA,QACpC,aAAa,EAAa;AAAA,QAC1B,aAAa;AAAA,QACb,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,MAAM,EAAU;AAAA,MAChB,MAAM;AAAA,MACN,IAAI,EACF,OAAO,EAAa,WACtB;AAAA,IACD,CAAA;AAAA,EACI,CAAA,IAIJ;AACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AccountBlock } from './AccountBlock';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
+
export interface BlockLayoutConfig {
|
|
3
|
+
background?: string;
|
|
4
|
+
logo_color?: string;
|
|
5
|
+
logo_bGcolor?: string;
|
|
6
|
+
logo_border_color?: string;
|
|
7
|
+
/** mx-icons glyph shown before `sub_text` (e.g. a warning icon on TransparentOverdraft). */
|
|
8
|
+
sub_logo?: string;
|
|
9
|
+
/** When true, AccountBlock renders the confetti-backed celebration card using the fields below. */
|
|
10
|
+
isConfetti?: boolean;
|
|
11
|
+
/** Gradient wash layered over `background.paper` for the confetti card. */
|
|
12
|
+
gradient?: string;
|
|
13
|
+
/** Which illustration sits left of the text. `logo` is the data-driven merchant/institution logo. */
|
|
14
|
+
graphic?: 'paidOffCard' | 'savings' | 'logo';
|
|
15
|
+
/** Amount typography variant — `h2` for milestones, `h3` for deposits. */
|
|
16
|
+
amountVariant?: 'h2' | 'h3';
|
|
17
|
+
/** Prefix prepended to the formatted amount, e.g. `+` for deposits. */
|
|
18
|
+
amountPrefix?: string;
|
|
19
|
+
/** Render the colored category strip (`header_text`) at the top of the card. */
|
|
20
|
+
categoryStrip?: boolean;
|
|
21
|
+
/** Layout overrides for the graphic+text row (padding, gap). */
|
|
22
|
+
rowSx?: SxProps;
|
|
23
|
+
/** Which payload field feeds the secondary line beside the amount. */
|
|
24
|
+
secondarySource?: 'merchant' | 'label';
|
|
25
|
+
/** Whether the secondary line sits above or below the amount. */
|
|
26
|
+
secondaryPosition?: 'above' | 'below';
|
|
27
|
+
/** Typography variant for the secondary line. */
|
|
28
|
+
secondaryVariant?: 'body2' | 'caption';
|
|
29
|
+
/** Theme color path for the secondary line. */
|
|
30
|
+
secondaryColor?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const getLayoutConfig: (theme: Theme) => Record<string, BlockLayoutConfig>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { CELEBRATION_GRADIENT as a, WARM_LIME_ACCENT_GRADIENT as r } from "../../../components/celebrationGradients.es.js";
|
|
2
|
+
import { alpha as e } from "@mui/material/styles";
|
|
3
|
+
var i = (o) => ({
|
|
4
|
+
TransparentOverdraft: {
|
|
5
|
+
background: o.palette.warning.light,
|
|
6
|
+
sub_logo: "error"
|
|
7
|
+
},
|
|
8
|
+
LowAccountBalance: { background: "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)" },
|
|
9
|
+
MonthlyObligationsStatusOffTrack: {
|
|
10
|
+
logo_color: "background.paper",
|
|
11
|
+
logo_bGcolor: "error.main",
|
|
12
|
+
background: "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)"
|
|
13
|
+
},
|
|
14
|
+
MonthlyCreditCardInterestSummary: {
|
|
15
|
+
logo_color: "text.primary",
|
|
16
|
+
logo_bGcolor: e(o.palette.categories?.feesCharges || "", 0.25),
|
|
17
|
+
logo_border_color: "categories.feesCharges",
|
|
18
|
+
background: "linear-gradient(256.82deg, rgba(227, 39, 39, 0.2) 1.86%, rgba(255, 123, 0, 0.2) 101.54%)"
|
|
19
|
+
},
|
|
20
|
+
UnifiedDeposit: {
|
|
21
|
+
isConfetti: !0,
|
|
22
|
+
gradient: r,
|
|
23
|
+
graphic: "logo",
|
|
24
|
+
amountVariant: "h3",
|
|
25
|
+
amountPrefix: "+",
|
|
26
|
+
categoryStrip: !0,
|
|
27
|
+
rowSx: {
|
|
28
|
+
gap: 12,
|
|
29
|
+
p: 12
|
|
30
|
+
},
|
|
31
|
+
secondarySource: "merchant",
|
|
32
|
+
secondaryPosition: "below",
|
|
33
|
+
secondaryVariant: "body2",
|
|
34
|
+
secondaryColor: "text.primary"
|
|
35
|
+
},
|
|
36
|
+
UnifiedDepositEmergencyFund: {
|
|
37
|
+
isConfetti: !0,
|
|
38
|
+
gradient: r,
|
|
39
|
+
graphic: "logo",
|
|
40
|
+
amountVariant: "h3",
|
|
41
|
+
amountPrefix: "+",
|
|
42
|
+
categoryStrip: !0,
|
|
43
|
+
rowSx: {
|
|
44
|
+
gap: 12,
|
|
45
|
+
p: 12
|
|
46
|
+
},
|
|
47
|
+
secondarySource: "merchant",
|
|
48
|
+
secondaryPosition: "below",
|
|
49
|
+
secondaryVariant: "body2",
|
|
50
|
+
secondaryColor: "text.primary"
|
|
51
|
+
},
|
|
52
|
+
MonthlyObligationsStatusOnTrack: {
|
|
53
|
+
isConfetti: !0,
|
|
54
|
+
gradient: r,
|
|
55
|
+
graphic: "logo",
|
|
56
|
+
amountVariant: "h2",
|
|
57
|
+
rowSx: {
|
|
58
|
+
gap: 16,
|
|
59
|
+
p: 16
|
|
60
|
+
},
|
|
61
|
+
secondarySource: "label",
|
|
62
|
+
secondaryPosition: "below",
|
|
63
|
+
secondaryVariant: "caption",
|
|
64
|
+
secondaryColor: "text.secondary"
|
|
65
|
+
},
|
|
66
|
+
CelebrateCreditCardPayoff: {
|
|
67
|
+
isConfetti: !0,
|
|
68
|
+
gradient: a,
|
|
69
|
+
graphic: "paidOffCard",
|
|
70
|
+
amountVariant: "h2",
|
|
71
|
+
rowSx: {
|
|
72
|
+
gap: 24,
|
|
73
|
+
px: 24,
|
|
74
|
+
py: 16
|
|
75
|
+
},
|
|
76
|
+
secondarySource: "label",
|
|
77
|
+
secondaryPosition: "below",
|
|
78
|
+
secondaryVariant: "caption",
|
|
79
|
+
secondaryColor: "text.secondary"
|
|
80
|
+
},
|
|
81
|
+
SavingsAccountDeposit: {
|
|
82
|
+
isConfetti: !0,
|
|
83
|
+
gradient: a,
|
|
84
|
+
graphic: "savings",
|
|
85
|
+
amountVariant: "h2",
|
|
86
|
+
rowSx: {
|
|
87
|
+
gap: 16,
|
|
88
|
+
p: 16
|
|
89
|
+
},
|
|
90
|
+
secondarySource: "label",
|
|
91
|
+
secondaryPosition: "above",
|
|
92
|
+
secondaryVariant: "body2",
|
|
93
|
+
secondaryColor: "text.primary"
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
i as getLayoutConfig
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=layout.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.ts"],"sourcesContent":["import { alpha, type SxProps, type Theme } from '@mui/material/styles'\n\nimport {\n CELEBRATION_GRADIENT,\n WARM_LIME_ACCENT_GRADIENT,\n} from '../../../components/celebrationGradients'\n\nexport interface BlockLayoutConfig {\n background?: string\n logo_color?: string\n logo_bGcolor?: string\n logo_border_color?: string\n /** mx-icons glyph shown before `sub_text` (e.g. a warning icon on TransparentOverdraft). */\n sub_logo?: string\n /** When true, AccountBlock renders the confetti-backed celebration card using the fields below. */\n isConfetti?: boolean\n /** Gradient wash layered over `background.paper` for the confetti card. */\n gradient?: string\n /** Which illustration sits left of the text. `logo` is the data-driven merchant/institution logo. */\n graphic?: 'paidOffCard' | 'savings' | 'logo'\n /** Amount typography variant — `h2` for milestones, `h3` for deposits. */\n amountVariant?: 'h2' | 'h3'\n /** Prefix prepended to the formatted amount, e.g. `+` for deposits. */\n amountPrefix?: string\n /** Render the colored category strip (`header_text`) at the top of the card. */\n categoryStrip?: boolean\n /** Layout overrides for the graphic+text row (padding, gap). */\n rowSx?: SxProps\n /** Which payload field feeds the secondary line beside the amount. */\n secondarySource?: 'merchant' | 'label'\n /** Whether the secondary line sits above or below the amount. */\n secondaryPosition?: 'above' | 'below'\n /** Typography variant for the secondary line. */\n secondaryVariant?: 'body2' | 'caption'\n /** Theme color path for the secondary line. */\n secondaryColor?: string\n}\n\nexport const getLayoutConfig = (theme: Theme): Record<string, BlockLayoutConfig> => {\n return {\n TransparentOverdraft: {\n background: theme.palette.warning.light,\n sub_logo: 'error',\n },\n LowAccountBalance: {\n background:\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)',\n },\n MonthlyObligationsStatusOffTrack: {\n logo_color: 'background.paper',\n logo_bGcolor: 'error.main',\n background:\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)',\n },\n MonthlyCreditCardInterestSummary: {\n logo_color: 'text.primary',\n logo_bGcolor: alpha(theme.palette.categories?.feesCharges || '', 0.25),\n logo_border_color: 'categories.feesCharges',\n background:\n 'linear-gradient(256.82deg, rgba(227, 39, 39, 0.2) 1.86%, rgba(255, 123, 0, 0.2) 101.54%)',\n },\n UnifiedDeposit: {\n isConfetti: true,\n gradient: WARM_LIME_ACCENT_GRADIENT,\n graphic: 'logo',\n amountVariant: 'h3',\n amountPrefix: '+',\n categoryStrip: true,\n rowSx: { gap: 12, p: 12 },\n secondarySource: 'merchant',\n secondaryPosition: 'below',\n secondaryVariant: 'body2',\n secondaryColor: 'text.primary',\n },\n UnifiedDepositEmergencyFund: {\n isConfetti: true,\n gradient: WARM_LIME_ACCENT_GRADIENT,\n graphic: 'logo',\n amountVariant: 'h3',\n amountPrefix: '+',\n categoryStrip: true,\n rowSx: { gap: 12, p: 12 },\n secondarySource: 'merchant',\n secondaryPosition: 'below',\n secondaryVariant: 'body2',\n secondaryColor: 'text.primary',\n },\n MonthlyObligationsStatusOnTrack: {\n isConfetti: true,\n gradient: WARM_LIME_ACCENT_GRADIENT,\n graphic: 'logo',\n amountVariant: 'h2',\n rowSx: { gap: 16, p: 16 },\n secondarySource: 'label',\n secondaryPosition: 'below',\n secondaryVariant: 'caption',\n secondaryColor: 'text.secondary',\n },\n CelebrateCreditCardPayoff: {\n isConfetti: true,\n gradient: CELEBRATION_GRADIENT,\n graphic: 'paidOffCard',\n amountVariant: 'h2',\n rowSx: { gap: 24, px: 24, py: 16 },\n secondarySource: 'label',\n secondaryPosition: 'below',\n secondaryVariant: 'caption',\n secondaryColor: 'text.secondary',\n },\n SavingsAccountDeposit: {\n isConfetti: true,\n gradient: CELEBRATION_GRADIENT,\n graphic: 'savings',\n amountVariant: 'h2',\n rowSx: { gap: 16, p: 16 },\n secondarySource: 'label',\n secondaryPosition: 'above',\n secondaryVariant: 'body2',\n secondaryColor: 'text.primary',\n },\n }\n}\n"],"mappings":";;AAsCA,IAAa,IAAA,CAAmB,OACvB;AAAA,EACL,sBAAsB;AAAA,IACpB,YAAY,EAAM,QAAQ,QAAQ;AAAA,IAClC,UAAU;AAAA,EACZ;AAAA,EACA,mBAAmB,EACjB,YACE,0FACJ;AAAA,EACA,kCAAkC;AAAA,IAChC,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,YACE;AAAA,EACJ;AAAA,EACA,kCAAkC;AAAA,IAChC,YAAY;AAAA,IACZ,cAAc,EAAM,EAAM,QAAQ,YAAY,eAAe,IAAI,IAAI;AAAA,IACrE,mBAAmB;AAAA,IACnB,YACE;AAAA,EACJ;AAAA,EACA,gBAAgB;AAAA,IACd,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,IACf,cAAc;AAAA,IACd,eAAe;AAAA,IACf,OAAO;AAAA,MAAE,KAAK;AAAA,MAAI,GAAG;AAAA,IAAG;AAAA,IACxB,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAClB;AAAA,EACA,6BAA6B;AAAA,IAC3B,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,IACf,cAAc;AAAA,IACd,eAAe;AAAA,IACf,OAAO;AAAA,MAAE,KAAK;AAAA,MAAI,GAAG;AAAA,IAAG;AAAA,IACxB,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAClB;AAAA,EACA,iCAAiC;AAAA,IAC/B,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,IACf,OAAO;AAAA,MAAE,KAAK;AAAA,MAAI,GAAG;AAAA,IAAG;AAAA,IACxB,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAClB;AAAA,EACA,2BAA2B;AAAA,IACzB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,IACf,OAAO;AAAA,MAAE,KAAK;AAAA,MAAI,IAAI;AAAA,MAAI,IAAI;AAAA,IAAG;AAAA,IACjC,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAClB;AAAA,EACA,uBAAuB;AAAA,IACrB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,IACf,OAAO;AAAA,MAAE,KAAK;AAAA,MAAI,GAAG;AAAA,IAAG;AAAA,IACxB,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,EAClB;AACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Beat } from '../../../../core';
|
|
2
|
+
interface ActionBlockLayerProps {
|
|
3
|
+
beat: Beat;
|
|
4
|
+
}
|
|
5
|
+
export declare const ActionBlockLayer: (({ beat, }: ActionBlockLayerProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export {};
|