@mx-cartographer/experiences 9.3.8-alpha.al1 → 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 +14 -3
- 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/BudgetDetailsDrawer.es.js +95 -134
- package/dist/budgets/components/BudgetDetailsDrawer.es.js.map +1 -1
- package/dist/budgets/components/BudgetsEmptyState.es.js +7 -7
- package/dist/budgets/components/budgetdetails/AddSubBudget.es.js +56 -57
- package/dist/budgets/components/budgetdetails/AddSubBudget.es.js.map +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.es.js +34 -35
- package/dist/budgets/components/budgetdetails/SubBudgetList.es.js.map +1 -1
- package/dist/budgets/components/shared/BudgetAmount.d.ts +3 -7
- package/dist/budgets/components/shared/BudgetAmount.es.js +19 -40
- package/dist/budgets/components/shared/BudgetAmount.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,41 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export interface UpcomingBillDay {
|
|
4
|
+
/** Day-of-week label, e.g. "Sun". */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Day-of-month number, e.g. "26". */
|
|
7
|
+
date: string;
|
|
8
|
+
/** Whether this is the highlighted due day (blue label + filled date cell). */
|
|
9
|
+
highlighted?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface UpcomingBillCardProps {
|
|
12
|
+
/** The seven days of the week strip (exactly 7 items, one for each day). The due day should have `highlighted`. */
|
|
13
|
+
days: [
|
|
14
|
+
UpcomingBillDay,
|
|
15
|
+
UpcomingBillDay,
|
|
16
|
+
UpcomingBillDay,
|
|
17
|
+
UpcomingBillDay,
|
|
18
|
+
UpcomingBillDay,
|
|
19
|
+
UpcomingBillDay,
|
|
20
|
+
UpcomingBillDay
|
|
21
|
+
];
|
|
22
|
+
/** Merchant logo/icon (24x24), rendered left of the merchant name. */
|
|
23
|
+
logo: ReactNode;
|
|
24
|
+
/** Merchant name, e.g. "Power Plus". */
|
|
25
|
+
merchantName: string;
|
|
26
|
+
/** Bill amount, formatted (e.g. "$75.00"). */
|
|
27
|
+
amount: string;
|
|
28
|
+
/** 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. */
|
|
29
|
+
highlightedAriaLabel?: string;
|
|
30
|
+
sx?: SxProps<Theme>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Upcoming Bill content: a seven-day week strip with the due day highlighted
|
|
34
|
+
* (blue label + filled blue date cell) above a tinted bill row (merchant logo,
|
|
35
|
+
* name, and amount).
|
|
36
|
+
*
|
|
37
|
+
* Figma: Upcoming Bill Content (Full variant). Scope is the Content section
|
|
38
|
+
* only.
|
|
39
|
+
*/
|
|
40
|
+
declare const UpcomingBillCard: ({ amount, days, highlightedAriaLabel, logo, merchantName, sx, }: UpcomingBillCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export default UpcomingBillCard;
|
|
@@ -0,0 +1,99 @@
|
|
|
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";
|
|
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, {
|
|
7
|
+
sx: {
|
|
8
|
+
bgcolor: "background.paper",
|
|
9
|
+
border: "1px solid",
|
|
10
|
+
borderColor: "divider",
|
|
11
|
+
borderRadius: 2,
|
|
12
|
+
p: 12,
|
|
13
|
+
...c
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ t(o, {
|
|
16
|
+
sx: { gap: 12 },
|
|
17
|
+
children: [/* @__PURE__ */ t(l, {
|
|
18
|
+
sx: {
|
|
19
|
+
display: "grid",
|
|
20
|
+
gridTemplateColumns: "repeat(7, 1fr)",
|
|
21
|
+
rowGap: "2px"
|
|
22
|
+
},
|
|
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" },
|
|
27
|
+
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,
|
|
32
|
+
sx: {
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
display: "flex",
|
|
35
|
+
height: 36,
|
|
36
|
+
justifyContent: "center",
|
|
37
|
+
justifySelf: "center",
|
|
38
|
+
width: 36,
|
|
39
|
+
...r.highlighted === !0 && {
|
|
40
|
+
bgcolor: "primary.main",
|
|
41
|
+
borderRadius: "4px"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ e(i, {
|
|
45
|
+
color: r.highlighted === !0 ? "primary.contrastText" : "text.secondary",
|
|
46
|
+
variant: "body1",
|
|
47
|
+
children: r.date
|
|
48
|
+
})
|
|
49
|
+
}, `date-${r.label}-${r.date}`))]
|
|
50
|
+
}), /* @__PURE__ */ t(o, {
|
|
51
|
+
sx: {
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
backgroundColor: (r) => s(r.palette.primary.main, 0.15),
|
|
54
|
+
border: "1px solid",
|
|
55
|
+
borderColor: "primary.main",
|
|
56
|
+
borderRadius: "4px",
|
|
57
|
+
flexDirection: "row",
|
|
58
|
+
gap: 12,
|
|
59
|
+
justifyContent: "space-between",
|
|
60
|
+
px: 12,
|
|
61
|
+
py: 10
|
|
62
|
+
},
|
|
63
|
+
children: [/* @__PURE__ */ t(o, {
|
|
64
|
+
sx: {
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
flexDirection: "row",
|
|
67
|
+
gap: 8,
|
|
68
|
+
minWidth: 0
|
|
69
|
+
},
|
|
70
|
+
children: [/* @__PURE__ */ e(l, {
|
|
71
|
+
sx: {
|
|
72
|
+
flexShrink: 0,
|
|
73
|
+
height: 24,
|
|
74
|
+
width: 24
|
|
75
|
+
},
|
|
76
|
+
children: h
|
|
77
|
+
}), /* @__PURE__ */ e(i, {
|
|
78
|
+
color: "text.primary",
|
|
79
|
+
truncate: !0,
|
|
80
|
+
variant: "subtitle2",
|
|
81
|
+
children: p
|
|
82
|
+
})]
|
|
83
|
+
}), /* @__PURE__ */ e(i, {
|
|
84
|
+
color: "text.primary",
|
|
85
|
+
sx: {
|
|
86
|
+
flexShrink: 0,
|
|
87
|
+
fontWeight: 600
|
|
88
|
+
},
|
|
89
|
+
variant: "subtitle2",
|
|
90
|
+
children: n
|
|
91
|
+
})]
|
|
92
|
+
})]
|
|
93
|
+
})
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
f as default
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=UpcomingBillCard.es.js.map
|
|
@@ -0,0 +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 /** The seven days of the week strip (exactly 7 items, one for each day). The due day should have `highlighted`. */\n days: [\n UpcomingBillDay,\n UpcomingBillDay,\n UpcomingBillDay,\n UpcomingBillDay,\n UpcomingBillDay,\n UpcomingBillDay,\n UpcomingBillDay,\n ]\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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
+
/**
|
|
2
|
+
* Decorative celebration washes used behind confetti-backed "complete"/milestone states.
|
|
3
|
+
* Shared so both the block layer (`AccountBlock`) and the presentational
|
|
4
|
+
* components/stories reference one source instead of re-declaring the string.
|
|
5
|
+
*
|
|
6
|
+
* - WARM_LIME_ACCENT_GRADIENT: 20%-opacity warm→lime wash; layer over `background.paper`
|
|
7
|
+
* for a tinted background. Used for merchant categorization and deposit celebration states.
|
|
8
|
+
* - CELEBRATION_GRADIENT: 20%-opacity warm→pink wash; layer over `background.paper`.
|
|
9
|
+
* - DISCOVERED_ACCOUNTS_GRADIENT: Fully opaque (100% opacity); use as the sole background.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Warm → lime accent wash at 20% opacity. Used as a tinted background behind
|
|
13
|
+
* merchant categorization highlights and deposit celebration callouts.
|
|
14
|
+
*/
|
|
15
|
+
export declare const WARM_LIME_ACCENT_GRADIENT = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)";
|
|
16
|
+
/** Warm → pink wash behind balance/savings milestones. */
|
|
17
|
+
export declare const CELEBRATION_GRADIENT = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)";
|
|
18
|
+
/** Peach → pink gradient for Discovered Accounts success state. */
|
|
19
|
+
export declare const DISCOVERED_ACCOUNTS_GRADIENT = "linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var r = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", a = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)";
|
|
2
|
+
export {
|
|
3
|
+
a as CELEBRATION_GRADIENT,
|
|
4
|
+
r as WARM_LIME_ACCENT_GRADIENT
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=celebrationGradients.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["/**\n * Decorative celebration washes used behind confetti-backed \"complete\"/milestone states.\n * Shared so both the block layer (`AccountBlock`) and the presentational\n * components/stories reference one source instead of re-declaring the string.\n *\n * - WARM_LIME_ACCENT_GRADIENT: 20%-opacity warm→lime wash; layer over `background.paper`\n * for a tinted background. Used for merchant categorization and deposit celebration states.\n * - CELEBRATION_GRADIENT: 20%-opacity warm→pink wash; layer over `background.paper`.\n * - DISCOVERED_ACCOUNTS_GRADIENT: Fully opaque (100% opacity); use as the sole background.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and deposit celebration callouts.\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/** 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/** 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"],"mappings":"AAeA,IAAa,IACX,+FAGW,IACX"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { BarChartV2Props } from '../../../insights/types/Charts/BarChart';
|
|
2
|
+
export declare const BarChartV2: ({ amounts, color, data, heightOverride, margin, onBarClick, legendPosition, monthlyAmountLabel, removeSelectedTabColorChange, selectedTabIndex, trendAmountLabel, }: BarChartV2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { useContainerDimensions as V } from "../../../insights/hooks/useContainerDimensions.es.js";
|
|
2
|
+
import { LegendV2 as D } from "../../../insights/components/shared/Charts/BarChart/ChartLegendV2.es.js";
|
|
3
|
+
import { CustomBarPlotV2 as _ } from "../../../insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js";
|
|
4
|
+
import m from "react";
|
|
5
|
+
import j from "@mui/material/Stack";
|
|
6
|
+
import { jsx as n, jsxs as M } from "react/jsx-runtime";
|
|
7
|
+
import { useTheme as W } from "@mui/material/styles";
|
|
8
|
+
import z from "@mui/material/Box";
|
|
9
|
+
import { BarPlot as G, ChartContainer as N, ChartsReferenceLine as b, ChartsXAxis as X } from "@mui/x-charts";
|
|
10
|
+
var Q = ({ amounts: c, color: s, data: e, heightOverride: f, margin: a = {
|
|
11
|
+
bottom: 30,
|
|
12
|
+
left: 16,
|
|
13
|
+
right: 16,
|
|
14
|
+
top: 20
|
|
15
|
+
}, onBarClick: S, legendPosition: h = "bottom", monthlyAmountLabel: y, removeSelectedTabColorChange: u, selectedTabIndex: o, trendAmountLabel: x }) => {
|
|
16
|
+
const A = m.useRef(null), { height: d, width: R } = V(A), g = W(), k = m.useMemo(() => {
|
|
17
|
+
const t = e.map(({ value: l }) => l), r = Math.min(...t), i = Math.max(...t);
|
|
18
|
+
return {
|
|
19
|
+
series: [{
|
|
20
|
+
data: t,
|
|
21
|
+
type: "bar"
|
|
22
|
+
}],
|
|
23
|
+
xAxis: [{
|
|
24
|
+
data: e.map(({ label: l }) => l),
|
|
25
|
+
scaleType: "band",
|
|
26
|
+
categoryGapRatio: 0.45
|
|
27
|
+
}],
|
|
28
|
+
yAxis: [{
|
|
29
|
+
scaleType: "linear",
|
|
30
|
+
min: r < 0 ? r * 1.2 : 0,
|
|
31
|
+
max: i > 0 ? i : 0
|
|
32
|
+
}]
|
|
33
|
+
};
|
|
34
|
+
}, [e]), v = m.useMemo(() => {
|
|
35
|
+
const t = `${s}80`;
|
|
36
|
+
return u ? e.map(() => s) : o == null ? [...new Array(e.length - 1).fill(t), s] : e.map((r, i) => i === o ? s : t);
|
|
37
|
+
}, [
|
|
38
|
+
s,
|
|
39
|
+
e,
|
|
40
|
+
o
|
|
41
|
+
]), B = m.useMemo(() => e[o ?? e.length - 1], [e, o]), p = e.reduce((t, r) => Math.min(t, r.value), 1 / 0) < 0, C = /* @__PURE__ */ n(D, {
|
|
42
|
+
color: s,
|
|
43
|
+
legendStyle: { pl: a.left },
|
|
44
|
+
monthlyAmount: B.formattedAmount,
|
|
45
|
+
monthlyAmountLabel: y,
|
|
46
|
+
trendAmount: c?.formattedAverage,
|
|
47
|
+
trendAmountLabel: x
|
|
48
|
+
}), w = y || x, L = (t, { dataIndex: r }) => S?.(r);
|
|
49
|
+
return /* @__PURE__ */ M(j, {
|
|
50
|
+
sx: {
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
width: "100%"
|
|
53
|
+
},
|
|
54
|
+
children: [
|
|
55
|
+
w && h === "top" && C,
|
|
56
|
+
/* @__PURE__ */ n(z, {
|
|
57
|
+
ref: A,
|
|
58
|
+
sx: {
|
|
59
|
+
height: f || 122,
|
|
60
|
+
mb: h === "top" ? 0 : 4,
|
|
61
|
+
mt: h === "top" ? 4 : 0,
|
|
62
|
+
touchAction: "pan-y",
|
|
63
|
+
width: "100%",
|
|
64
|
+
"& svg": {
|
|
65
|
+
touchAction: "pan-y",
|
|
66
|
+
userSelect: "none"
|
|
67
|
+
},
|
|
68
|
+
"& .recharts-wrapper": { touchAction: "pan-y" }
|
|
69
|
+
},
|
|
70
|
+
children: /* @__PURE__ */ M(N, {
|
|
71
|
+
height: d,
|
|
72
|
+
margin: {
|
|
73
|
+
bottom: a.bottom,
|
|
74
|
+
left: a.left,
|
|
75
|
+
right: a.right,
|
|
76
|
+
top: a.top || 45
|
|
77
|
+
},
|
|
78
|
+
series: k.series,
|
|
79
|
+
width: R,
|
|
80
|
+
xAxis: k.xAxis,
|
|
81
|
+
yAxis: [{ width: 0 }],
|
|
82
|
+
children: [
|
|
83
|
+
c?.average && /* @__PURE__ */ n(b, {
|
|
84
|
+
labelAlign: "middle",
|
|
85
|
+
lineStyle: {
|
|
86
|
+
stroke: g.palette.chart.chart7,
|
|
87
|
+
strokeDasharray: "4",
|
|
88
|
+
strokeLinecap: "round",
|
|
89
|
+
strokeWidth: 1
|
|
90
|
+
},
|
|
91
|
+
y: c?.average
|
|
92
|
+
}),
|
|
93
|
+
p && /* @__PURE__ */ n(b, {
|
|
94
|
+
labelAlign: "middle",
|
|
95
|
+
lineStyle: { stroke: g.palette.chart.chart7 },
|
|
96
|
+
y: 0
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ n(X, {
|
|
99
|
+
slots: { axisTickLabel: ({ text: t, ownerState: r, ...i }) => {
|
|
100
|
+
const l = e[o ?? e.length - 1]?.label;
|
|
101
|
+
return /* @__PURE__ */ n("text", {
|
|
102
|
+
...i,
|
|
103
|
+
style: {
|
|
104
|
+
...i.style,
|
|
105
|
+
fontWeight: !u && l === t ? "bold" : 400
|
|
106
|
+
},
|
|
107
|
+
children: t
|
|
108
|
+
});
|
|
109
|
+
} },
|
|
110
|
+
sx: (t) => ({
|
|
111
|
+
"& .MuiChartsAxis-line": { stroke: p ? "none" : t.palette.text?.primary },
|
|
112
|
+
"& .MuiChartsAxis-tickContainer:first-of-type .MuiChartsAxis-tick": { display: "none" },
|
|
113
|
+
"& .MuiChartsAxis-tickLabel": { transform: p ? "translateY(15px)" : {} }
|
|
114
|
+
}),
|
|
115
|
+
tickLabelStyle: { fontSize: 11 }
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ n(G, {
|
|
118
|
+
onItemClick: L,
|
|
119
|
+
slots: { bar: (t) => {
|
|
120
|
+
const { ownerState: r, ...i } = t;
|
|
121
|
+
return /* @__PURE__ */ n(_, {
|
|
122
|
+
...i,
|
|
123
|
+
colorRange: v,
|
|
124
|
+
data: e,
|
|
125
|
+
dataIndex: r.dataIndex,
|
|
126
|
+
removeSelectedTabColorChange: u,
|
|
127
|
+
selectedTabIndex: o ?? e.length - 1,
|
|
128
|
+
style: {
|
|
129
|
+
height: t.height,
|
|
130
|
+
x: t.x,
|
|
131
|
+
y: t.y,
|
|
132
|
+
width: t.width
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
} }
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
}),
|
|
140
|
+
w && h === "bottom" && C
|
|
141
|
+
]
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
Q as BarChartV2
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
//# sourceMappingURL=BarchartV2.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarchartV2.es.js","names":[],"sources":["../../../../src/insights-v2/components/chartblocks/BarchartV2.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { type Theme, useTheme } from '@mui/material/styles'\nimport {\n BarPlot,\n type BarSeriesType,\n ChartContainer as ResponsiveChartContainer,\n ChartsReferenceLine,\n ChartsXAxis,\n} from '@mui/x-charts'\n\nimport { useContainerDimensions } from '../../../insights/hooks/useContainerDimensions'\nimport type { BarChartV2Props } from '../../../insights/types/Charts/BarChart'\nimport { LegendV2 } from '../../../insights/components/shared/Charts/BarChart/ChartLegendV2'\nimport { CustomBarPlotV2 } from '../../../insights/components/shared/Charts/BarChart/CustomBarPlotV2'\n\nexport const BarChartV2 = ({\n amounts,\n color,\n data,\n heightOverride,\n margin = {\n bottom: 30,\n left: 16,\n right: 16,\n top: 20,\n },\n onBarClick,\n legendPosition = 'bottom',\n monthlyAmountLabel,\n removeSelectedTabColorChange,\n selectedTabIndex,\n trendAmountLabel,\n}: BarChartV2Props) => {\n const containerRef = React.useRef<HTMLDivElement>(null)\n const { height, width } = useContainerDimensions(containerRef)\n const theme = useTheme()\n\n const chartData = React.useMemo(() => {\n const values = data.map(({ value }) => value)\n const minValue = Math.min(...values)\n const maxValue = Math.max(...values)\n\n return {\n series: [\n {\n data: values,\n type: 'bar',\n },\n ] as BarSeriesType[],\n xAxis: [\n {\n data: data.map(({ label }) => label),\n scaleType: 'band' as const,\n categoryGapRatio: 0.45,\n },\n ],\n yAxis: [\n {\n scaleType: 'linear' as const,\n min: minValue < 0 ? minValue * 1.2 : 0,\n max: maxValue > 0 ? maxValue : 0,\n },\n ],\n }\n }, [data])\n\n const colorRange = React.useMemo(() => {\n const defaultColor = `${color}80`\n if (removeSelectedTabColorChange) return data.map(() => color)\n\n if (selectedTabIndex == null) {\n return [...new Array(data.length - 1).fill(defaultColor), color]\n }\n return data.map((_, index) => (index === selectedTabIndex ? color : defaultColor))\n }, [color, data, selectedTabIndex])\n\n const selectedData = React.useMemo(\n () => data[selectedTabIndex ?? data.length - 1],\n [data, selectedTabIndex],\n )\n\n const lowestValue = data.reduce((min, item) => Math.min(min, item.value), Infinity)\n const isNegative = lowestValue < 0\n\n const legendComponent = (\n <LegendV2\n color={color}\n legendStyle={{ pl: margin.left }}\n monthlyAmount={selectedData.formattedAmount}\n monthlyAmountLabel={monthlyAmountLabel}\n trendAmount={amounts?.formattedAverage}\n trendAmountLabel={trendAmountLabel}\n />\n )\n\n const shouldShowLegend = monthlyAmountLabel || trendAmountLabel\n\n const handleBarClick = (\n _: React.MouseEvent<SVGElement, MouseEvent>,\n { dataIndex }: { dataIndex: number },\n ) => onBarClick?.(dataIndex)\n\n return (\n <Stack sx={{ alignItems: 'center', width: '100%' }}>\n {shouldShowLegend && legendPosition === 'top' && legendComponent}\n <Box\n ref={containerRef}\n sx={{\n height: heightOverride ? heightOverride : 122,\n mb: legendPosition === 'top' ? 0 : 4,\n mt: legendPosition === 'top' ? 4 : 0,\n touchAction: 'pan-y',\n width: '100%',\n '& svg': {\n touchAction: 'pan-y',\n userSelect: 'none',\n },\n '& .recharts-wrapper': {\n touchAction: 'pan-y',\n },\n }}\n >\n <ResponsiveChartContainer\n height={height}\n margin={{\n bottom: margin.bottom,\n left: margin.left,\n right: margin.right,\n top: margin.top || 45,\n }}\n series={chartData.series}\n width={width}\n xAxis={chartData.xAxis}\n yAxis={[{ width: 0 }]}\n >\n {amounts?.average && (\n <ChartsReferenceLine\n labelAlign=\"middle\"\n lineStyle={{\n stroke: theme.palette.chart.chart7,\n strokeDasharray: '4',\n strokeLinecap: 'round',\n strokeWidth: 1,\n }}\n y={amounts?.average}\n />\n )}\n\n {isNegative && (\n <ChartsReferenceLine\n labelAlign=\"middle\"\n lineStyle={{\n stroke: theme.palette.chart.chart7,\n }}\n y={0}\n />\n )}\n\n <ChartsXAxis\n slots={{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n axisTickLabel: ({ text, ownerState: _, ...restProps }) => {\n const label = data[selectedTabIndex ?? data.length - 1]?.label\n return (\n <text\n {...restProps}\n style={\n {\n ...restProps.style,\n fontWeight: !removeSelectedTabColorChange && label === text ? 'bold' : 400,\n } as React.CSSProperties\n }\n >\n {text}\n </text>\n )\n },\n }}\n sx={(theme) => ({\n '& .MuiChartsAxis-line': {\n stroke: !isNegative ? (theme as Theme).palette.text?.primary : 'none',\n },\n '& .MuiChartsAxis-tickContainer:first-of-type .MuiChartsAxis-tick': {\n display: 'none',\n },\n '& .MuiChartsAxis-tickLabel': {\n transform: isNegative ? 'translateY(15px)' : {},\n },\n })}\n tickLabelStyle={{\n fontSize: 11,\n }}\n />\n <BarPlot\n onItemClick={handleBarClick}\n slots={{\n bar: (props) => {\n const { ownerState, ...defaultProps } = props\n return (\n <CustomBarPlotV2\n {...defaultProps}\n colorRange={colorRange}\n data={data}\n dataIndex={ownerState.dataIndex}\n removeSelectedTabColorChange={removeSelectedTabColorChange}\n selectedTabIndex={selectedTabIndex ?? data.length - 1}\n style={{\n height: props.height,\n x: props.x,\n y: props.y,\n width: props.width,\n }}\n />\n )\n },\n }}\n />\n </ResponsiveChartContainer>\n </Box>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AE,YAAA,GAAY,GAAG,EAAA,IAAiB;AACxC,uBACE,gBAAA,EAAC,GAAD;AAAA,kBACE,GAAI;AAAA,kBACQ,YAAA;AAAA,kBACN,MAAA;AAAA,kBACN,WAAW,EAAW;AAAA,kBACQ,8BAAA;AAAA,kBAC9B,kBAAkB,KAAoB,EAAK,SAAS;AAAA,kBACpD,OAAO;AAAA,oBACL,QAAQ,EAAM;AAAA,oBACd,GAAG,EAAM;AAAA,oBACT,GAAG,EAAM;AAAA,oBACT,OAAO,EAAM;AAAA,kBACf;AAAA,gBACD,CAAA;AAAA,cAEL,EACF;AAAA,YACD,CAAA;AAAA,UACuB;AAAA;MACvB,CAAA;AAAA,MACJ,KAAoB,MAAmB,YAAY;AAAA,IAC/C;AAAA;AAEX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function EmptyBarChart(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactComponent as r } from "../../../insights/components/shared/images/EmptyBarChart.es.js";
|
|
2
|
+
import { ThemedSVGImage as o } from "./ThemedSVGImage.es.js";
|
|
3
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
+
function p() {
|
|
5
|
+
return /* @__PURE__ */ m(o, {
|
|
6
|
+
divProps: { style: {} },
|
|
7
|
+
image: r
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
p as EmptyBarChart
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=EmptyBarChart.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyBarChart.es.js","names":[],"sources":["../../../../src/insights-v2/components/chartblocks/EmptyBarChart.tsx"],"sourcesContent":["import { ReactComponent as BarChartEmptyState } from '../../../../src/insights/components/shared/images/EmptyBarChart.svg'\nimport { ThemedSVGImage } from './ThemedSVGImage'\n\nexport function EmptyBarChart() {\n return <ThemedSVGImage divProps={{ style: {} }} image={BarChartEmptyState} />\n}\n"],"mappings":";;;AAGA,SAAgB,IAAgB;AAC9B,SAAO,gBAAA,EAAC,GAAD;AAAA,IAAgB,UAAU,EAAE,OAAO,CAAC,EAAE;AAAA,IAAG,OAAO;AAAA,EAAqB,CAAA;AAC9E"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useEffect as y, useRef as u } from "react";
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { useTheme as d } from "@mui/material/styles";
|
|
4
|
+
var h = 200, v = 130, b = (r) => r || null, c = (r, o) => {
|
|
5
|
+
r.forEach((n) => {
|
|
6
|
+
const e = b(n);
|
|
7
|
+
if (e) {
|
|
8
|
+
const t = e.getAttribute("stroke"), l = e.getAttribute("fill");
|
|
9
|
+
if (t && t !== "white" && e.style.setProperty("stroke", o), l) {
|
|
10
|
+
const a = l === "white" ? "white" : o;
|
|
11
|
+
e.style.setProperty("fill", a);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
}, E = ({ divProps: r, image: o, isMini: n = !1 }) => {
|
|
16
|
+
const e = d(), t = u(null), l = {
|
|
17
|
+
100: e.palette.primary.lighter,
|
|
18
|
+
200: e.palette.primary.light,
|
|
19
|
+
300: e.palette.primary.main,
|
|
20
|
+
400: e.palette.primary.dark,
|
|
21
|
+
500: e.palette.primary.darker
|
|
22
|
+
};
|
|
23
|
+
return y(() => {
|
|
24
|
+
if (!t.current) return;
|
|
25
|
+
const a = t.current, m = a.querySelectorAll(".Overlay");
|
|
26
|
+
[
|
|
27
|
+
"brand100",
|
|
28
|
+
"brand200",
|
|
29
|
+
"brand300",
|
|
30
|
+
"brand400",
|
|
31
|
+
"brand500"
|
|
32
|
+
].forEach((i) => {
|
|
33
|
+
const f = a.querySelectorAll(`.${i}`), p = i.replace("brand", "");
|
|
34
|
+
c(f, l[p]);
|
|
35
|
+
}), c(m, l[300]);
|
|
36
|
+
}, [l]), /* @__PURE__ */ s("div", {
|
|
37
|
+
style: {
|
|
38
|
+
maxWidth: n ? v : h,
|
|
39
|
+
width: "100%"
|
|
40
|
+
},
|
|
41
|
+
...r,
|
|
42
|
+
children: /* @__PURE__ */ s(o, { ref: t })
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
E as ThemedSVGImage
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=ThemedSVGImage.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemedSVGImage.es.js","names":[],"sources":["../../../../src/insights-v2/components/chartblocks/ThemedSVGImage.tsx"],"sourcesContent":["/* eslint-disable react/jsx-pascal-case */\n\nimport { useEffect, useRef } from 'react'\n\nimport { useTheme } from '@mui/material/styles'\nimport type { ThemedSVGImageProps } from '../../../core'\n\nconst MAX_SVG_WIDTH = 200\nconst MINI_SVG_WIDTH = 130\n\n// Utility function to get an SVG element from a DOM node\nconst getSVGElement = (element: Element | null): SVGElement | null => {\n return element ? (element as SVGElement) : null\n}\n\n// Utility function to apply color to SVG elements\nconst applyColorToSVG = (elements: NodeListOf<Element>, color: string) => {\n elements.forEach((element) => {\n const svgElement = getSVGElement(element)\n if (svgElement) {\n const strokeAttr = svgElement.getAttribute('stroke')\n const fillAttr = svgElement.getAttribute('fill')\n\n if (strokeAttr && strokeAttr !== 'white') {\n svgElement.style.setProperty('stroke', color)\n }\n\n if (fillAttr) {\n const fillColor = fillAttr === 'white' ? 'white' : color\n svgElement.style.setProperty('fill', fillColor)\n }\n }\n })\n}\n\nexport const ThemedSVGImage = ({ divProps, image: SVG, isMini = false }: ThemedSVGImageProps) => {\n const theme = useTheme()\n const containerRef = useRef<SVGSVGElement | null>(null)\n\n const colors = {\n '100': (theme as any).palette.primary.lighter,\n '200': theme.palette.primary.light,\n '300': theme.palette.primary.main,\n '400': theme.palette.primary.dark,\n '500': (theme as any).palette.primary.darker,\n }\n\n // If the client does not have a color scheme aka widget brand color, set the colors to the primary kyper token colors\n // Apply color scheme to SVG elements when component mounts or colors change\n useEffect(() => {\n if (!containerRef.current) return\n\n const container = containerRef.current\n\n const overlayElements = container.querySelectorAll('.Overlay')\n const brandElements = ['brand100', 'brand200', 'brand300', 'brand400', 'brand500']\n\n brandElements.forEach((className) => {\n const elements = container.querySelectorAll(`.${className}`)\n const colorKey = className.replace('brand', '') as keyof typeof colors\n applyColorToSVG(elements, colors[colorKey])\n })\n\n // Apply the color for overlays separately (using the 300 color scheme)\n applyColorToSVG(overlayElements, colors['300'])\n }, [colors])\n\n return (\n <div\n style={{\n maxWidth: isMini ? MINI_SVG_WIDTH : MAX_SVG_WIDTH,\n width: '100%',\n }}\n {...divProps}\n >\n <SVG ref={containerRef} />\n </div>\n )\n}\n"],"mappings":";;;AAOA,IAAM,IAAgB,KAChB,IAAiB,KAGjB,IAAA,CAAiB,MACd,KAAoC,MAIvC,IAAA,CAAmB,GAA+B,MAAkB;AACxE,EAAA,EAAS,QAAA,CAAS,MAAY;AAC5B,UAAM,IAAa,EAAc,CAAO;AACxC,QAAI,GAAY;AACd,YAAM,IAAa,EAAW,aAAa,QAAQ,GAC7C,IAAW,EAAW,aAAa,MAAM;AAM/C,UAJI,KAAc,MAAe,WAC/B,EAAW,MAAM,YAAY,UAAU,CAAK,GAG1C,GAAU;AACZ,cAAM,IAAY,MAAa,UAAU,UAAU;AACnD,QAAA,EAAW,MAAM,YAAY,QAAQ,CAAS;AAAA,MAChD;AAAA,IACF;AAAA,EACF,CAAC;AACH,GAEa,IAAA,CAAkB,EAAE,UAAA,GAAU,OAAO,GAAK,QAAA,IAAS,GAAA,MAAiC;AAC/F,QAAM,IAAQ,EAAS,GACjB,IAAe,EAA6B,IAAI,GAEhD,IAAS;AAAA,IACb,KAAQ,EAAc,QAAQ,QAAQ;AAAA,IACtC,KAAO,EAAM,QAAQ,QAAQ;AAAA,IAC7B,KAAO,EAAM,QAAQ,QAAQ;AAAA,IAC7B,KAAO,EAAM,QAAQ,QAAQ;AAAA,IAC7B,KAAQ,EAAc,QAAQ,QAAQ;AAAA,EACxC;AAIA,SAAA,EAAA,MAAgB;AACd,QAAI,CAAC,EAAa,QAAS;AAE3B,UAAM,IAAY,EAAa,SAEzB,IAAkB,EAAU,iBAAiB,UAAU;AAG7D;AAAA,MAFuB;AAAA,MAAY;AAAA,MAAY;AAAA,MAAY;AAAA,MAAY;AAAA,IAEvE,EAAc,QAAA,CAAS,MAAc;AACnC,YAAM,IAAW,EAAU,iBAAiB,IAAI,CAAA,EAAW,GACrD,IAAW,EAAU,QAAQ,SAAS,EAAE;AAC9C,MAAA,EAAgB,GAAU,EAAO,CAAA,CAAS;AAAA,IAC5C,CAAC,GAGD,EAAgB,GAAiB,EAAO,GAAA,CAAM;AAAA,EAChD,GAAG,CAAC,CAAM,CAAC,GAGT,gBAAA,EAAC,OAAD;AAAA,IACE,OAAO;AAAA,MACL,UAAU,IAAS,IAAiB;AAAA,MACpC,OAAO;AAAA,IACT;AAAA,IACA,GAAI;AAAA,IAEJ,UAAA,gBAAA,EAAC,GAAD,EAAK,KAAK,EAAe,CAAA;AAAA,EACtB,CAAA;AAET"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
/**
|
|
3
|
+
* Offset of the logo drop-shadow, in px. The shadow is painted with CSS
|
|
4
|
+
* `box-shadow`, which takes no layout space — so consumers that need the shadow
|
|
5
|
+
* to occupy layout (e.g. so a flex `gap` starts from the shadow's outer edge,
|
|
6
|
+
* not the logo's border) must reserve `.x`/`.y` as margin.
|
|
7
|
+
*/
|
|
8
|
+
export declare const LOGO_SHADOW_OFFSET: {
|
|
9
|
+
readonly x: 8;
|
|
10
|
+
readonly y: 6;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The offset drop-shadow used behind brand/merchant logo tiles across the
|
|
14
|
+
* insights-v2 components (MerchantLogo, P2PLogoStack, …).
|
|
15
|
+
*
|
|
16
|
+
* Figma renders a solid 75%-opacity black shape offset to the bottom-right of
|
|
17
|
+
* each logo tile; reproduced here as a single `boxShadow` (matches the shared
|
|
18
|
+
* v1 `P2PMultipleCategorization`).
|
|
19
|
+
*/
|
|
20
|
+
export declare const getLogoShadow: (theme: Theme) => string;
|
|
21
|
+
/**
|
|
22
|
+
* The soft elevation shadow on the logo tiles in Monthly Subscription Aggregate
|
|
23
|
+
* V2 (Figma `DROP_SHADOW` 0 / 2 / blur 8, black @ 0.12). Unlike `getLogoShadow`
|
|
24
|
+
* this has no horizontal offset, so it stays within a padded row's edges.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getLogoElevation: (theme: Theme) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { alpha as p } from "@mui/material/styles";
|
|
2
|
+
var a = {
|
|
3
|
+
x: 8,
|
|
4
|
+
y: 6
|
|
5
|
+
}, x = (o) => `${a.x}px ${a.y}px 0 ${p(o.palette.common.black, 0.75)}`, e = (o) => `0px 2px 8px 0px ${p(o.palette.common.black, 0.12)}`;
|
|
6
|
+
export {
|
|
7
|
+
a as LOGO_SHADOW_OFFSET,
|
|
8
|
+
e as getLogoElevation,
|
|
9
|
+
x as getLogoShadow
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=logoShadow.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logoShadow.es.js","names":[],"sources":["../../../src/insights-v2/components/logoShadow.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Offset of the logo drop-shadow, in px. The shadow is painted with CSS\n * `box-shadow`, which takes no layout space — so consumers that need the shadow\n * to occupy layout (e.g. so a flex `gap` starts from the shadow's outer edge,\n * not the logo's border) must reserve `.x`/`.y` as margin.\n */\nexport const LOGO_SHADOW_OFFSET = { x: 8, y: 6 } as const\n\n/**\n * The offset drop-shadow used behind brand/merchant logo tiles across the\n * insights-v2 components (MerchantLogo, P2PLogoStack, …).\n *\n * Figma renders a solid 75%-opacity black shape offset to the bottom-right of\n * each logo tile; reproduced here as a single `boxShadow` (matches the shared\n * v1 `P2PMultipleCategorization`).\n */\nexport const getLogoShadow = (theme: Theme) =>\n `${LOGO_SHADOW_OFFSET.x}px ${LOGO_SHADOW_OFFSET.y}px 0 ${alpha(theme.palette.common.black, 0.75)}`\n\n/**\n * The soft elevation shadow on the logo tiles in Monthly Subscription Aggregate\n * V2 (Figma `DROP_SHADOW` 0 / 2 / blur 8, black @ 0.12). Unlike `getLogoShadow`\n * this has no horizontal offset, so it stays within a padded row's edges.\n */\nexport const getLogoElevation = (theme: Theme) =>\n `0px 2px 8px 0px ${alpha(theme.palette.common.black, 0.12)}`\n"],"mappings":";AAQA,IAAa,IAAqB;AAAA,EAAE,GAAG;AAAA,EAAG,GAAG;AAAE,GAUlC,IAAA,CAAiB,MAC5B,GAAG,EAAmB,CAAA,MAAO,EAAmB,CAAA,QAAS,EAAM,EAAM,QAAQ,OAAO,OAAO,IAAI,CAAA,IAOpF,IAAA,CAAoB,MAC/B,mBAAmB,EAAM,EAAM,QAAQ,OAAO,OAAO,IAAI,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface ConfettiProps {
|
|
2
|
+
/** Height of the burst area in pixels. */
|
|
3
|
+
height?: number;
|
|
4
|
+
/** Width of the burst area in pixels. */
|
|
5
|
+
width?: number;
|
|
6
|
+
/** Whether the confetti animation plays. */
|
|
7
|
+
shouldRun?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Shared confetti burst for insights-v2 celebratory beats. Fires once from the center and
|
|
11
|
+
* settles (`recycle={false}`). Decorative only — `aria-hidden`. Callers size it via
|
|
12
|
+
* `width`/`height` (measure the container with `useContainerDimensions`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const Confetti: ({ height, width, shouldRun }: ConfettiProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Confetti;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import o from "react-confetti";
|
|
3
|
+
var n = ({ height: e = 0, width: t = 0, shouldRun: i = !1 }) => /* @__PURE__ */ r(o, {
|
|
4
|
+
"aria-hidden": !0,
|
|
5
|
+
colors: [
|
|
6
|
+
"#3F9FEB",
|
|
7
|
+
"#C331B6",
|
|
8
|
+
"#30C434",
|
|
9
|
+
"#F1CE31",
|
|
10
|
+
"#EE3B7C"
|
|
11
|
+
],
|
|
12
|
+
confettiSource: {
|
|
13
|
+
x: t / 2,
|
|
14
|
+
y: e / 2,
|
|
15
|
+
w: 20,
|
|
16
|
+
h: 20
|
|
17
|
+
},
|
|
18
|
+
gravity: 0.05,
|
|
19
|
+
height: e,
|
|
20
|
+
initialVelocityX: 7,
|
|
21
|
+
initialVelocityY: 8,
|
|
22
|
+
numberOfPieces: 200,
|
|
23
|
+
recycle: !1,
|
|
24
|
+
run: i,
|
|
25
|
+
style: { inset: "auto" },
|
|
26
|
+
width: t
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
n as Confetti,
|
|
30
|
+
n as default
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=Confetti.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Confetti.es.js","names":[],"sources":["../../../../src/insights-v2/components/shared/Confetti.tsx"],"sourcesContent":["import ReactConfetti from 'react-confetti'\n\ninterface ConfettiProps {\n /** Height of the burst area in pixels. */\n height?: number\n /** Width of the burst area in pixels. */\n width?: number\n /** Whether the confetti animation plays. */\n shouldRun?: boolean\n}\n\n/**\n * Shared confetti burst for insights-v2 celebratory beats. Fires once from the center and\n * settles (`recycle={false}`). Decorative only — `aria-hidden`. Callers size it via\n * `width`/`height` (measure the container with `useContainerDimensions`).\n */\nexport const Confetti = ({ height = 0, width = 0, shouldRun = false }: ConfettiProps) => {\n return (\n <ReactConfetti\n aria-hidden={true}\n colors={['#3F9FEB', '#C331B6', '#30C434', '#F1CE31', '#EE3B7C']}\n confettiSource={{\n x: width / 2,\n y: height / 2,\n w: 20,\n h: 20,\n }}\n gravity={0.05}\n height={height}\n initialVelocityX={7}\n initialVelocityY={8}\n numberOfPieces={200}\n recycle={false}\n run={shouldRun}\n style={{ inset: 'auto' }}\n width={width}\n />\n )\n}\n\nexport default Confetti\n"],"mappings":";;AAgBA,IAAa,IAAA,CAAY,EAAE,QAAA,IAAS,GAAG,OAAA,IAAQ,GAAG,WAAA,IAAY,GAAA,MAE1D,gBAAA,EAAC,GAAD;AAAA,EACE,eAAa;AAAA,EACb,QAAQ;AAAA,IAAC;AAAA,IAAW;AAAA,IAAW;AAAA,IAAW;AAAA,IAAW;AAAA,EAAS;AAAA,EAC9D,gBAAgB;AAAA,IACd,GAAG,IAAQ;AAAA,IACX,GAAG,IAAS;AAAA,IACZ,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAAA,EACA,SAAS;AAAA,EACD,QAAA;AAAA,EACR,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO,EAAE,OAAO,OAAO;AAAA,EAChB,OAAA;AACR,CAAA"}
|