@mx-cartographer/experiences 9.7.206 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +2 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js +39 -23
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js.map +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +3 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js +37 -33
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js.map +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -1
- package/dist/accounts/utils/AccountFields.es.js +39 -39
- package/dist/accounts/utils/AccountFields.es.js.map +1 -1
- package/dist/common/components/charts/LineChart.d.ts +4 -0
- package/dist/common/components/charts/LineChart.es.js +114 -112
- package/dist/common/components/charts/LineChart.es.js.map +1 -1
- package/dist/common/components/charts/linechart/CustomLegend.es.js +24 -21
- package/dist/common/components/charts/linechart/CustomLegend.es.js.map +1 -1
- package/dist/core/types/Insights.d.ts +9 -1
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +42 -0
- package/dist/core/types/localization/index.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.d.ts +7 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js +39 -20
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/AccountDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.d.ts +4 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js +42 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsIncomeChart.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.d.ts +7 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js +54 -0
- package/dist/insights-v2/actionBlocks/AccountDetailsBlock/SpendVsPaymentChart.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +10 -10
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +24 -23
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +75 -73
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +5 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +21 -21
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +11 -0
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +65 -58
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +17 -17
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js +9 -10
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/BalanceStepper.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js +21 -22
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/SaveEnoughToLiveOnBottomSection.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js +35 -35
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffCalculatorBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js +44 -49
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.d.ts +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js +19 -16
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.d.ts +2 -2
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js +212 -166
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.d.ts +4 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js +24 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/StepIcon.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.d.ts +6 -5
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js +38 -38
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +1 -1
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.d.ts +1 -5
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +37 -36
- package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.d.ts +9 -11
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js +12 -6
- package/dist/insights-v2/actionBlocks/TransactionDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +46 -40
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +141 -126
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +8 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +243 -200
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js +54 -53
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +6 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +14 -13
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +4 -3
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +24 -21
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +14 -4
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +79 -67
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.d.ts +3 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js +48 -32
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChart.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +19 -14
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +4 -0
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +19 -15
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js +26 -19
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.d.ts +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +17 -21
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +11 -11
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +15 -11
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.d.ts +20 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js +21 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +2 -4
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +78 -82
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.d.ts +10 -2
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js +115 -54
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +37 -36
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +27 -22
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/BudgetBlock/BudgetBlock.es.js +8 -8
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js +46 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/CompactDirectDepositBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/index.d.ts +3 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.d.ts +13 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +22 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +29 -21
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.d.ts +0 -2
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +17 -21
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js +5 -6
- package/dist/insights-v2/blocks/ComponentBlocks/FeeChargedBlock/FeeChargedBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.d.ts +3 -7
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js +120 -306
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/FeedbackBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.d.ts +17 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js +93 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/RatingScale.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.d.ts +5 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js +21 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/StepBar.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.d.ts +18 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js +71 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/SurveyResult.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.d.ts +82 -8
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js +66 -15
- package/dist/insights-v2/blocks/ComponentBlocks/FeedbackBlock/survey.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +46 -63
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +3 -3
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +44 -53
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +30 -31
- package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js +25 -20
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.d.ts +22 -0
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js +24 -0
- package/dist/insights-v2/blocks/ComponentBlocks/SaveExtraBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.d.ts +7 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js +89 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/StrategiesBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.d.ts +43 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js +28 -0
- package/dist/insights-v2/blocks/ComponentBlocks/StrategiesBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +54 -53
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +7 -3
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +20 -11
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +29 -28
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +2 -0
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js +6 -5
- package/dist/insights-v2/blocks/ImageBlocks/ImageBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js +117 -71
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/FederalBankHoliday.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.d.ts +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js +10 -7
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/components/AccountHeroCard.d.ts +3 -1
- package/dist/insights-v2/components/AccountHeroCard.es.js.map +1 -1
- package/dist/insights-v2/components/BaseLayout.d.ts +3 -1
- package/dist/insights-v2/components/BaseLayout.es.js +134 -119
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
- package/dist/insights-v2/components/CompactDirectDepositCard.d.ts +28 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js +78 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
- package/dist/insights-v2/components/CompactInsightCard.es.js +122 -118
- package/dist/insights-v2/components/CompactInsightCard.es.js.map +1 -1
- package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +24 -22
- package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
- package/dist/insights-v2/components/LoadingCard.es.js +13 -9
- package/dist/insights-v2/components/LoadingCard.es.js.map +1 -1
- package/dist/insights-v2/components/LogoFromGuid.d.ts +1 -1
- package/dist/insights-v2/components/LogoFromGuid.es.js.map +1 -1
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
- package/dist/insights-v2/components/SaveAnExtraCard.d.ts +4 -1
- package/dist/insights-v2/components/SaveAnExtraCard.es.js +32 -20
- package/dist/insights-v2/components/SaveAnExtraCard.es.js.map +1 -1
- package/dist/insights-v2/components/SubTabs.d.ts +2 -1
- package/dist/insights-v2/components/SubTabs.es.js +29 -24
- package/dist/insights-v2/components/SubTabs.es.js.map +1 -1
- package/dist/insights-v2/components/TransactionListCard.d.ts +3 -1
- package/dist/insights-v2/components/TransactionListCard.es.js +39 -37
- package/dist/insights-v2/components/TransactionListCard.es.js.map +1 -1
- package/dist/insights-v2/components/TransferLogoCard.es.js +1 -0
- package/dist/insights-v2/components/TransferLogoCard.es.js.map +1 -1
- package/dist/insights-v2/components/UpcomingBillCard.es.js +39 -35
- package/dist/insights-v2/components/UpcomingBillCard.es.js.map +1 -1
- package/dist/insights-v2/components/celebrationGradients.d.ts +17 -8
- package/dist/insights-v2/components/celebrationGradients.es.js +14 -14
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/ChartLegend.es.js +16 -10
- package/dist/insights-v2/components/chartblocks/ChartLegend.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.d.ts +10 -4
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js +62 -61
- package/dist/insights-v2/components/chartblocks/DoubleBarChart.es.js.map +1 -1
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js +13 -6
- package/dist/insights-v2/components/chartblocks/EmptyBarChart.es.js.map +1 -1
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js +2 -3
- package/dist/insights-v2/components/shared/images/DesignateEmergencySavings.es.js.map +1 -1
- package/dist/insights-v2/components/statusIcon.d.ts +2 -1
- package/dist/insights-v2/components/statusIcon.es.js +10 -8
- package/dist/insights-v2/components/statusIcon.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaConfig.es.js +19 -17
- package/dist/insights-v2/ctaActions/ctaConfig.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaHandlers.d.ts +5 -1
- package/dist/insights-v2/ctaActions/ctaHandlers.es.js +71 -54
- package/dist/insights-v2/ctaActions/ctaHandlers.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js +41 -24
- package/dist/insights-v2/ctaActions/ctaPostMessages.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/feedbackSurvey.d.ts +9 -0
- package/dist/insights-v2/ctaActions/feedbackSurvey.es.js +51 -0
- package/dist/insights-v2/ctaActions/feedbackSurvey.es.js.map +1 -0
- package/dist/insights-v2/ctaActions/runCtaAction.es.js +36 -35
- package/dist/insights-v2/ctaActions/runCtaAction.es.js.map +1 -1
- package/dist/insights-v2/ctaActions/types.d.ts +7 -0
- package/dist/insights-v2/index.es.js +126 -120
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +126 -122
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/microinsights/MicroCardTemplate.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.es.js.map +1 -1
- package/dist/microinsights/cards/InsightCard.es.js +53 -53
- package/dist/microinsights/cards/InsightCard.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +0 -13
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js +0 -296
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/images/DesignateEmergencySavingsAccount.es.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/StepChartBlock/layout.ts"],"sourcesContent":["import { WARM_LIME_ACCENT_GRADIENT } from '../../../components/celebrationGradients'\n\n/** step_chart_block variants: the V1 component names and ditto's Insights 2.0 layouts. */\nexport const stepChartVariant = {\n WithText: 'WithText',\n WithoutText: 'WithoutText',\n /** Emergency Savings Milestone Reached: the $100 / $500 / $1,000 stepper drawn by WithText. */\n MilestoneAmounts: 'milestone_amounts',\n} as const\n\nexport interface StepChartLayoutConfig {\n /** Gradient wash with confetti behind the card, which is raised to elevation/1; none = the bare card. */\n wash?: string\n /** Uppercase, letter-spaced eyebrow. */\n capsEyebrow?: boolean\n /** Track segments share the row width instead of a fixed 54px each. */\n fluidTrack?: boolean\n /** Bold amount under each reached step. */\n boldReached?: boolean\n /** Steps as a list with aria-current and a hidden \"completed\" / \"not reached\" status. */\n announceSteps?: boolean\n}\n\nexport const STEP_CHART_LAYOUT: Record<string, StepChartLayoutConfig> = {\n [stepChartVariant.WithText]: {},\n [stepChartVariant.MilestoneAmounts]: {\n wash: WARM_LIME_ACCENT_GRADIENT,\n capsEyebrow: true,\n fluidTrack: true,\n boldReached: true,\n announceSteps: true,\n },\n}\n"],"mappings":";AAGA,IAAa,IAAmB;AAAA,EAC9B,UAAU;AAAA,EACV,aAAa;AAAA,EAEb,kBAAkB;AACpB,GAea,IAA2D;AAAA,EACrE,CAAA,EAAiB,QAAA,GAAW,CAAC;AAAA,EAC7B,CAAA,EAAiB,gBAAA,GAAmB;AAAA,IACnC,MAAM;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,eAAe;AAAA,EACjB;AACF"}
|
|
@@ -8,12 +8,10 @@ interface MilestoneProgressProps {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
/** Full's headline ("$500 in Savings"). */
|
|
10
10
|
headline?: string;
|
|
11
|
-
/** Mini's one-line headline ("Nice Work!"), shown instead of the eyebrow and headline. */
|
|
12
|
-
miniHeadline?: string;
|
|
13
11
|
isMini: boolean;
|
|
14
12
|
}
|
|
15
13
|
/** The $100 / $500 / $1,000 goal stepper (Figma 1132:26517): checks before the current goal, a ring on it. */
|
|
16
|
-
declare const MilestoneProgress: ({ currentStep, headline, isMini, label
|
|
14
|
+
declare const MilestoneProgress: ({ currentStep, headline, isMini, label }: MilestoneProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
15
|
export default MilestoneProgress;
|
|
18
|
-
/** step_chart_block / milestone_progress: full shows the eyebrow and headline, mini the
|
|
16
|
+
/** step_chart_block / milestone_progress: full shows the eyebrow and headline, mini the headline only. */
|
|
19
17
|
export declare const MilestoneProgressBlock: ({ beatGuid, payload }: BlockProps<StepChartBlockData>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { slot as
|
|
2
|
-
import { CURRENCY_FORMAT as
|
|
3
|
-
import { asNonEmptyText as
|
|
4
|
-
import { ELEVATION_SHADOW as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { Text as
|
|
8
|
-
import { CheckCircle as
|
|
1
|
+
import { slot as m } from "../../../../../core/types/Insights.es.js";
|
|
2
|
+
import { CURRENCY_FORMAT as b, formatCurrency as w } from "../../../../../core/utils/NumberFormatting.es.js";
|
|
3
|
+
import { asNonEmptyText as h } from "../../../slotReaders.es.js";
|
|
4
|
+
import { ELEVATION_SHADOW as C } from "../../../../components/shared/elevation.es.js";
|
|
5
|
+
import v from "react";
|
|
6
|
+
import s from "@mui/material/Stack";
|
|
7
|
+
import { Text as c } from "@mxenabled/mxui";
|
|
8
|
+
import { CheckCircle as S } from "@mxenabled/mx-icons";
|
|
9
9
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
10
|
-
import { alpha as
|
|
11
|
-
import
|
|
12
|
-
var
|
|
10
|
+
import { alpha as g } from "@mui/material/styles";
|
|
11
|
+
import l from "@mui/material/Box";
|
|
12
|
+
var f = [
|
|
13
13
|
100,
|
|
14
14
|
500,
|
|
15
15
|
1e3
|
|
16
|
-
],
|
|
16
|
+
], u = 0.25, M = (r) => Number.isInteger(r) && r >= 1 && r <= f.length, x = ({ solid: r }) => /* @__PURE__ */ e(l, {
|
|
17
17
|
"aria-hidden": !0,
|
|
18
18
|
sx: (t) => ({
|
|
19
|
-
bgcolor: r ? "primary.main" :
|
|
19
|
+
bgcolor: r ? "primary.main" : g(t.palette.primary.main, u),
|
|
20
20
|
flex: 1,
|
|
21
21
|
height: 2,
|
|
22
22
|
mt: 11
|
|
23
23
|
})
|
|
24
|
-
}),
|
|
24
|
+
}), R = ({ state: r }) => r === "reached" ? /* @__PURE__ */ e(S, {
|
|
25
25
|
"aria-hidden": !0,
|
|
26
26
|
filled: !0,
|
|
27
27
|
size: 24,
|
|
28
28
|
sx: { color: "primary.main" }
|
|
29
|
-
}) : /* @__PURE__ */ e(
|
|
29
|
+
}) : /* @__PURE__ */ e(l, {
|
|
30
30
|
"aria-hidden": !0,
|
|
31
31
|
sx: {
|
|
32
32
|
alignItems: "center",
|
|
@@ -35,92 +35,88 @@ var u = [
|
|
|
35
35
|
justifyContent: "center",
|
|
36
36
|
width: 24
|
|
37
37
|
},
|
|
38
|
-
children: /* @__PURE__ */ e(
|
|
38
|
+
children: /* @__PURE__ */ e(l, { sx: (t) => r === "current" ? {
|
|
39
39
|
border: "2px solid",
|
|
40
40
|
borderColor: "primary.main",
|
|
41
41
|
borderRadius: "50%",
|
|
42
42
|
height: 20,
|
|
43
43
|
width: 20
|
|
44
44
|
} : {
|
|
45
|
-
bgcolor:
|
|
45
|
+
bgcolor: g(t.palette.primary.main, u),
|
|
46
46
|
borderRadius: "50%",
|
|
47
47
|
height: 20,
|
|
48
48
|
width: 20
|
|
49
49
|
} })
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}), _ = ({ currentStep: r, headline: t, isMini: o, label: i }) => /* @__PURE__ */ e(l, {
|
|
51
|
+
sx: {
|
|
52
|
+
px: 16,
|
|
53
|
+
py: 4
|
|
54
|
+
},
|
|
55
|
+
children: /* @__PURE__ */ n(s, {
|
|
53
56
|
sx: {
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
bgcolor: "primary.lighter",
|
|
58
|
+
border: "1px solid",
|
|
59
|
+
borderColor: "primary.main",
|
|
60
|
+
borderRadius: "8px",
|
|
61
|
+
boxShadow: C[1],
|
|
62
|
+
gap: 16,
|
|
63
|
+
py: 16
|
|
56
64
|
},
|
|
57
|
-
children: /* @__PURE__ */ n(
|
|
58
|
-
sx: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
children: [/* @__PURE__ */ n(s, {
|
|
66
|
+
sx: { px: 16 },
|
|
67
|
+
children: [!o && i && /* @__PURE__ */ e(c, {
|
|
68
|
+
color: "text.secondary",
|
|
69
|
+
sx: {
|
|
70
|
+
letterSpacing: "0.27px",
|
|
71
|
+
textTransform: "uppercase"
|
|
72
|
+
},
|
|
73
|
+
variant: "tiny",
|
|
74
|
+
children: i
|
|
75
|
+
}), t && /* @__PURE__ */ e(c, {
|
|
76
|
+
component: "p",
|
|
77
|
+
sx: { color: "primary.dark" },
|
|
78
|
+
variant: "h3",
|
|
79
|
+
children: t
|
|
80
|
+
})]
|
|
81
|
+
}), /* @__PURE__ */ n(s, {
|
|
82
|
+
"aria-label": i ?? t,
|
|
83
|
+
role: "list",
|
|
84
|
+
sx: { flexDirection: "row" },
|
|
85
|
+
children: [f.map((d, y) => {
|
|
86
|
+
const p = y + 1, a = p < r ? "reached" : p === r ? "current" : "upcoming";
|
|
87
|
+
return /* @__PURE__ */ n(v.Fragment, { children: [/* @__PURE__ */ e(x, { solid: p <= r }), /* @__PURE__ */ n(s, {
|
|
88
|
+
"aria-current": a === "current" ? "step" : void 0,
|
|
89
|
+
role: "listitem",
|
|
71
90
|
sx: {
|
|
72
|
-
|
|
73
|
-
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
width: 24
|
|
74
93
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}), p && /* @__PURE__ */ e(h, {
|
|
78
|
-
component: "p",
|
|
79
|
-
sx: { color: "primary.dark" },
|
|
80
|
-
variant: "h3",
|
|
81
|
-
children: p
|
|
82
|
-
})]
|
|
83
|
-
}), /* @__PURE__ */ n(l, {
|
|
84
|
-
"aria-label": o ?? p,
|
|
85
|
-
role: "list",
|
|
86
|
-
sx: { flexDirection: "row" },
|
|
87
|
-
children: [u.map((x, w) => {
|
|
88
|
-
const c = w + 1, a = c < r ? "reached" : c === r ? "current" : "upcoming";
|
|
89
|
-
return /* @__PURE__ */ n(_.Fragment, { children: [/* @__PURE__ */ e(g, { solid: c <= r }), /* @__PURE__ */ n(l, {
|
|
90
|
-
"aria-current": a === "current" ? "step" : void 0,
|
|
91
|
-
role: "listitem",
|
|
94
|
+
children: [/* @__PURE__ */ e(R, { state: a }), /* @__PURE__ */ e(c, {
|
|
95
|
+
color: a === "upcoming" ? "text.secondary" : "text.primary",
|
|
92
96
|
sx: {
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
fontWeight: a === "upcoming" ? "fontWeightRegular" : "fontWeightBold",
|
|
98
|
+
whiteSpace: "nowrap"
|
|
95
99
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
}, H = ({ beatGuid: r, payload: t }) => {
|
|
111
|
-
const { data: i } = t.instance_slot, o = s(i, "current_step");
|
|
112
|
-
return k(o) ? /* @__PURE__ */ e(M, {
|
|
113
|
-
currentStep: o,
|
|
114
|
-
headline: d(s(i, "headline")),
|
|
100
|
+
variant: "caption",
|
|
101
|
+
children: w(d, b.whole)
|
|
102
|
+
})]
|
|
103
|
+
})] }, d);
|
|
104
|
+
}), /* @__PURE__ */ e(x, { solid: !1 })]
|
|
105
|
+
})]
|
|
106
|
+
})
|
|
107
|
+
}), D = ({ beatGuid: r, payload: t }) => {
|
|
108
|
+
const { data: o } = t.instance_slot, i = m(o, "current_step");
|
|
109
|
+
return M(i) ? /* @__PURE__ */ e(_, {
|
|
110
|
+
currentStep: i,
|
|
111
|
+
headline: h(m(o, "headline")),
|
|
115
112
|
isMini: t.widget_type === "mini",
|
|
116
|
-
label:
|
|
117
|
-
|
|
118
|
-
}) : (console.warn(`[StepChartBlock] ${r ?? "unknown beat"}: milestone_progress current_step invalid (${typeof o}), rendering nothing`), null);
|
|
113
|
+
label: h(m(o, "label"))
|
|
114
|
+
}) : (console.warn(`[StepChartBlock] ${r ?? "unknown beat"}: milestone_progress current_step invalid (${typeof i}), rendering nothing`), null);
|
|
119
115
|
};
|
|
120
116
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
D as MilestoneProgressBlock,
|
|
118
|
+
_ as default,
|
|
119
|
+
M as isMilestoneProgressStep
|
|
124
120
|
};
|
|
125
121
|
|
|
126
122
|
//# sourceMappingURL=MilestoneProgress.es.js.map
|
package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MilestoneProgress.es.js","names":[],"sources":["../../../../../../src/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.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 { CheckCircle } from '@mxenabled/mx-icons'\n\nimport { slot } from '../../../../../core/types/Insights'\nimport type { StepChartBlockData } from '../../../../../core/types/InsightsInstanceSlotData'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../../core/utils/NumberFormatting'\nimport { ELEVATION_SHADOW } from '../../../../components/shared/elevation'\nimport { asNonEmptyText } from '../../../slotReaders'\nimport type { BlockProps } from '../../../types'\n\nconst MILESTONES = [100, 500, 1000] as const\nconst UPCOMING_OPACITY = 0.25\n\nexport type MilestoneProgressStep = 1 | 2 | 3\n\nexport const isMilestoneProgressStep = (value: unknown): value is MilestoneProgressStep =>\n Number.isInteger(value) && (value as number) >= 1 && (value as number) <= MILESTONES.length\n\ntype StepState = 'reached' | 'current' | 'upcoming'\n\n/** A track segment: solid primary up to the current goal, 25% primary after it. */\nconst Segment = ({ solid }: { solid: boolean }) => (\n <Box\n aria-hidden={true}\n sx={(theme) => ({\n bgcolor: solid ? 'primary.main' : alpha(theme.palette.primary.main, UPCOMING_OPACITY),\n flex: 1,\n height: 2,\n mt: 11,\n })}\n />\n)\n\n/** Reached: the filled check. Current: a 20px primary ring. Upcoming: a 25% primary disc. */\nconst StepMark = ({ state }: { state: StepState }) => {\n if (state === 'reached') {\n return <CheckCircle aria-hidden={true} filled={true} size={24} sx={{ color: 'primary.main' }} />\n }\n\n return (\n <Box\n aria-hidden={true}\n sx={{\n alignItems: 'center',\n display: 'flex',\n height: 24,\n justifyContent: 'center',\n width: 24,\n }}\n >\n <Box\n sx={(theme) =>\n state === 'current'\n ? {\n border: '2px solid',\n borderColor: 'primary.main',\n borderRadius: '50%',\n height: 20,\n width: 20,\n }\n : {\n bgcolor: alpha(theme.palette.primary.main, UPCOMING_OPACITY),\n borderRadius: '50%',\n height: 20,\n width: 20,\n }\n }\n />\n </Box>\n )\n}\n\ninterface MilestoneProgressProps {\n currentStep: MilestoneProgressStep\n /** Full's eyebrow (\"Step two\"). */\n label?: string\n /** Full's headline (\"$500 in Savings\"). */\n headline?: string\n
|
|
1
|
+
{"version":3,"file":"MilestoneProgress.es.js","names":[],"sources":["../../../../../../src/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.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 { CheckCircle } from '@mxenabled/mx-icons'\n\nimport { slot } from '../../../../../core/types/Insights'\nimport type { StepChartBlockData } from '../../../../../core/types/InsightsInstanceSlotData'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../../core/utils/NumberFormatting'\nimport { ELEVATION_SHADOW } from '../../../../components/shared/elevation'\nimport { asNonEmptyText } from '../../../slotReaders'\nimport type { BlockProps } from '../../../types'\n\nconst MILESTONES = [100, 500, 1000] as const\nconst UPCOMING_OPACITY = 0.25\n\nexport type MilestoneProgressStep = 1 | 2 | 3\n\nexport const isMilestoneProgressStep = (value: unknown): value is MilestoneProgressStep =>\n Number.isInteger(value) && (value as number) >= 1 && (value as number) <= MILESTONES.length\n\ntype StepState = 'reached' | 'current' | 'upcoming'\n\n/** A track segment: solid primary up to the current goal, 25% primary after it. */\nconst Segment = ({ solid }: { solid: boolean }) => (\n <Box\n aria-hidden={true}\n sx={(theme) => ({\n bgcolor: solid ? 'primary.main' : alpha(theme.palette.primary.main, UPCOMING_OPACITY),\n flex: 1,\n height: 2,\n mt: 11,\n })}\n />\n)\n\n/** Reached: the filled check. Current: a 20px primary ring. Upcoming: a 25% primary disc. */\nconst StepMark = ({ state }: { state: StepState }) => {\n if (state === 'reached') {\n return <CheckCircle aria-hidden={true} filled={true} size={24} sx={{ color: 'primary.main' }} />\n }\n\n return (\n <Box\n aria-hidden={true}\n sx={{\n alignItems: 'center',\n display: 'flex',\n height: 24,\n justifyContent: 'center',\n width: 24,\n }}\n >\n <Box\n sx={(theme) =>\n state === 'current'\n ? {\n border: '2px solid',\n borderColor: 'primary.main',\n borderRadius: '50%',\n height: 20,\n width: 20,\n }\n : {\n bgcolor: alpha(theme.palette.primary.main, UPCOMING_OPACITY),\n borderRadius: '50%',\n height: 20,\n width: 20,\n }\n }\n />\n </Box>\n )\n}\n\ninterface MilestoneProgressProps {\n currentStep: MilestoneProgressStep\n /** Full's eyebrow (\"Step two\"). */\n label?: string\n /** Full's headline (\"$500 in Savings\"). */\n headline?: string\n isMini: boolean\n}\n\n/** The $100 / $500 / $1,000 goal stepper (Figma 1132:26517): checks before the current goal, a ring on it. */\nconst MilestoneProgress = ({ currentStep, headline, isMini, label }: MilestoneProgressProps) => {\n return (\n <Box sx={{ px: 16, py: 4 }}>\n <Stack\n sx={{\n bgcolor: 'primary.lighter',\n border: '1px solid',\n borderColor: 'primary.main',\n borderRadius: '8px',\n boxShadow: ELEVATION_SHADOW[1],\n gap: 16,\n py: 16,\n }}\n >\n <Stack sx={{ px: 16 }}>\n {/* Mini shows full's headline (design QA), without the eyebrow. */}\n {!isMini && label && (\n <Text\n color=\"text.secondary\"\n sx={{ letterSpacing: '0.27px', textTransform: 'uppercase' }}\n variant=\"tiny\"\n >\n {label}\n </Text>\n )}\n {headline && (\n <Text component=\"p\" sx={{ color: 'primary.dark' }} variant=\"h3\">\n {headline}\n </Text>\n )}\n </Stack>\n {/* The aria-hidden track segments stay out of the accessibility tree; only the goals are items. */}\n <Stack aria-label={label ?? headline} role=\"list\" sx={{ flexDirection: 'row' }}>\n {MILESTONES.map((amount, index) => {\n const step = index + 1\n const state: StepState =\n step < currentStep ? 'reached' : step === currentStep ? 'current' : 'upcoming'\n\n return (\n <React.Fragment key={amount}>\n <Segment solid={step <= currentStep} />\n <Stack\n aria-current={state === 'current' ? 'step' : undefined}\n role=\"listitem\"\n sx={{ alignItems: 'center', width: 24 }}\n >\n <StepMark state={state} />\n <Text\n color={state === 'upcoming' ? 'text.secondary' : 'text.primary'}\n sx={{\n fontWeight: state === 'upcoming' ? 'fontWeightRegular' : 'fontWeightBold',\n whiteSpace: 'nowrap',\n }}\n variant=\"caption\"\n >\n {formatCurrency(amount, CURRENCY_FORMAT.whole)}\n </Text>\n </Stack>\n </React.Fragment>\n )\n })}\n <Segment solid={false} />\n </Stack>\n </Stack>\n </Box>\n )\n}\n\nexport default MilestoneProgress\n\n/** step_chart_block / milestone_progress: full shows the eyebrow and headline, mini the headline only. */\nexport const MilestoneProgressBlock = ({ beatGuid, payload }: BlockProps<StepChartBlockData>) => {\n const { data } = payload.instance_slot\n const currentStep = slot(data, 'current_step')\n if (!isMilestoneProgressStep(currentStep)) {\n console.warn(\n `[StepChartBlock] ${beatGuid ?? 'unknown beat'}: milestone_progress current_step invalid (${typeof currentStep}), rendering nothing`,\n )\n return null\n }\n\n return (\n <MilestoneProgress\n currentStep={currentStep}\n headline={asNonEmptyText(slot(data, 'headline'))}\n isMini={payload.widget_type === 'mini'}\n label={asNonEmptyText(slot(data, 'label'))}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;AAgBA,IAAM,IAAa;AAAA,EAAC;AAAA,EAAK;AAAA,EAAK;AAAI,GAC5B,IAAmB,MAIZ,IAAA,CAA2B,MACtC,OAAO,UAAU,CAAK,KAAM,KAAoB,KAAM,KAAoB,EAAW,QAKjF,IAAA,CAAW,EAAE,OAAA,EAAA,MACjB,gBAAA,EAAC,GAAD;AAAA,EACE,eAAa;AAAA,EACb,IAAA,CAAK,OAAW;AAAA,IACd,SAAS,IAAQ,iBAAiB,EAAM,EAAM,QAAQ,QAAQ,MAAM,CA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A;AACJ,CAAA,GAOI,IAAA,CAA0B,EAAE,UAAA,GAAU,SAAA,EAAA,MAA8C;AAC/F,QAAM,EAAE,MAAA,EAAA,IAAS,EAAQ,eACnB,IAAc,EAAK,GAAM,cAAc;AAC7C,SAAK,EAAwB,CAAW,IAQtC,gBAAA,EAAC,GAAD;AAAA,IACe,aAAA;AAAA,IACb,UAAU,EAAe,EAAK,GAAM,UAAU,CAAC;AAAA,IAC/C,QAAQ,EAAQ,gBAAgB;AAAA,IAChC,OAAO,EAAe,EAAK,GAAM,OAAO,CAAC;AAAA,EAC1C,CAAA,KAZD,QAAQ,KACN,oBAAoB,KAAY,cAAA,8CAA4D,OAAO,CAAA,sBACrG,GACO;AAWX"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { StepChartBlockData } from '../../../../../core/types/InsightsInstanceSlotData';
|
|
2
|
-
|
|
2
|
+
import { BlockProps } from '../../../types';
|
|
3
|
+
import { StepChartLayoutConfig } from '../layout';
|
|
4
|
+
export declare const isMilestoneStepCount: (value: unknown) => value is 1 | 2 | 3;
|
|
5
|
+
interface WithTextProps {
|
|
3
6
|
slotData: StepChartBlockData;
|
|
4
|
-
|
|
7
|
+
layout?: StepChartLayoutConfig;
|
|
8
|
+
}
|
|
9
|
+
/** Eyebrow, headline and the $100 / $500 / $1,000 stepper; `layout` sets the per-variant look. */
|
|
10
|
+
declare const WithText: ({ layout, slotData }: WithTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
11
|
export default WithText;
|
|
12
|
+
/** Insights 2.0 WithText layouts (milestone_amounts): reads `instance_slot.data`; a blank label drops the eyebrow (mini). */
|
|
13
|
+
export declare const WithTextSlotBlock: ({ beatGuid, payload }: BlockProps<StepChartBlockData>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,78 +1,139 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { slot as m } from "../../../../../core/types/Insights.es.js";
|
|
2
|
+
import { CURRENCY_FORMAT as _, formatCurrency as T } from "../../../../../core/utils/NumberFormatting.es.js";
|
|
3
|
+
import { VISUALLY_HIDDEN_SX as C } from "../../../../../common/constants/Styles.es.js";
|
|
4
|
+
import { asNonEmptyText as y, asText as I } from "../../../slotReaders.es.js";
|
|
5
|
+
import { ELEVATION_SHADOW as E } from "../../../../components/shared/elevation.es.js";
|
|
6
|
+
import { getStepColor as b } from "../utils.es.js";
|
|
7
|
+
import { ConfettiOverlay as k } from "../../../../components/shared/ConfettiOverlay.es.js";
|
|
8
|
+
import { STEP_CHART_LAYOUT as w } from "../layout.es.js";
|
|
9
|
+
import A from "react";
|
|
10
|
+
import l from "@mui/material/Stack";
|
|
11
|
+
import { H3 as L, Text as S } from "@mxenabled/mxui";
|
|
12
|
+
import { CheckCircle as O, CircleIcon as R } from "@mxenabled/mx-icons";
|
|
13
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
14
|
+
import v from "@mui/material/Box";
|
|
15
|
+
var h = [
|
|
10
16
|
100,
|
|
11
17
|
500,
|
|
12
18
|
1e3
|
|
13
|
-
],
|
|
14
|
-
0,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
], D = {}, N = (e) => Number.isInteger(e) && e >= 1 && e <= h.length, g = ({ completed: e, fluid: o }) => /* @__PURE__ */ t(v, {
|
|
20
|
+
"aria-hidden": !0,
|
|
21
|
+
sx: (r) => ({
|
|
22
|
+
bgcolor: b(r, e),
|
|
23
|
+
height: 2,
|
|
24
|
+
...o ? {
|
|
25
|
+
flex: 1,
|
|
26
|
+
mt: 11
|
|
27
|
+
} : {
|
|
28
|
+
mt: 12,
|
|
29
|
+
width: 54
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
}), U = ({ amount: e, completed: o, current: r, layout: n }) => {
|
|
33
|
+
const { announceSteps: i, boldReached: s } = n;
|
|
34
|
+
return /* @__PURE__ */ c(l, {
|
|
35
|
+
...i && {
|
|
36
|
+
"aria-current": r ? "step" : void 0,
|
|
37
|
+
role: "listitem"
|
|
38
|
+
},
|
|
39
|
+
sx: {
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
width: 24
|
|
42
|
+
},
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ t(o ? O : R, {
|
|
45
|
+
"aria-hidden": i || void 0,
|
|
46
|
+
filled: !0,
|
|
47
|
+
size: 24,
|
|
48
|
+
sx: (a) => ({ color: b(a, o) })
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ t(S, {
|
|
51
|
+
bold: s && o,
|
|
52
|
+
color: o ? "text.primary" : "text.secondary",
|
|
53
|
+
variant: "caption",
|
|
54
|
+
children: T(e, _.whole)
|
|
55
|
+
}),
|
|
56
|
+
i && /* @__PURE__ */ t(v, {
|
|
57
|
+
component: "span",
|
|
58
|
+
sx: C,
|
|
59
|
+
children: o ? "completed" : "not reached"
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
}, H = ({ layout: e = D, slotData: o }) => {
|
|
64
|
+
const { completed_steps: r, label_1: n, label_2: i } = o, { announceSteps: s, capsEyebrow: x, fluidTrack: a, wash: p } = e, f = /* @__PURE__ */ c(l, {
|
|
20
65
|
sx: {
|
|
21
66
|
bgcolor: "success.lighter",
|
|
22
67
|
border: "1px solid",
|
|
23
68
|
borderColor: "success.main",
|
|
24
69
|
borderRadius: "8px",
|
|
25
70
|
gap: 16,
|
|
26
|
-
py: 16
|
|
71
|
+
py: 16,
|
|
72
|
+
...p && {
|
|
73
|
+
boxShadow: E[1],
|
|
74
|
+
position: "relative",
|
|
75
|
+
zIndex: 1
|
|
76
|
+
}
|
|
27
77
|
},
|
|
28
|
-
children: [/* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ c(l, {
|
|
29
79
|
sx: { px: 16 },
|
|
30
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [n && /* @__PURE__ */ t(S, {
|
|
31
81
|
color: "text.secondary",
|
|
82
|
+
sx: x ? {
|
|
83
|
+
letterSpacing: "0.27px",
|
|
84
|
+
textTransform: "uppercase"
|
|
85
|
+
} : void 0,
|
|
32
86
|
variant: "tiny",
|
|
33
|
-
children:
|
|
34
|
-
}), /* @__PURE__ */
|
|
87
|
+
children: n
|
|
88
|
+
}), i && /* @__PURE__ */ t(L, {
|
|
35
89
|
color: "success.dark",
|
|
36
|
-
children:
|
|
90
|
+
children: i
|
|
37
91
|
})]
|
|
38
|
-
}), /* @__PURE__ */
|
|
39
|
-
sx: { height: 40 },
|
|
40
|
-
children: /* @__PURE__ */
|
|
92
|
+
}), /* @__PURE__ */ t(l, {
|
|
93
|
+
sx: { height: a ? void 0 : 40 },
|
|
94
|
+
children: /* @__PURE__ */ c(l, {
|
|
95
|
+
role: s ? "list" : void 0,
|
|
41
96
|
sx: { flexDirection: "row" },
|
|
42
|
-
children: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children: [/* @__PURE__ */ r(f, {
|
|
55
|
-
filled: !0,
|
|
56
|
-
size: 24,
|
|
57
|
-
sx: (l) => ({ color: i(l, c) })
|
|
58
|
-
}), /* @__PURE__ */ r(m, {
|
|
59
|
-
color: c ? "text.primary" : "text.secondary",
|
|
60
|
-
variant: "caption",
|
|
61
|
-
children: C(a[e], g.whole)
|
|
62
|
-
})]
|
|
63
|
-
})] }, e);
|
|
64
|
-
}), /* @__PURE__ */ r(n, { sx: (e) => ({
|
|
65
|
-
bgcolor: i(e, x),
|
|
66
|
-
height: 2,
|
|
67
|
-
mt: 12,
|
|
68
|
-
width: 54
|
|
69
|
-
}) })]
|
|
97
|
+
children: [h.map((u, d) => /* @__PURE__ */ c(A.Fragment, { children: [/* @__PURE__ */ t(g, {
|
|
98
|
+
completed: d < r,
|
|
99
|
+
fluid: a
|
|
100
|
+
}), /* @__PURE__ */ t(U, {
|
|
101
|
+
amount: u,
|
|
102
|
+
completed: d < r,
|
|
103
|
+
current: d === r - 1,
|
|
104
|
+
layout: e
|
|
105
|
+
})] }, u)), /* @__PURE__ */ t(g, {
|
|
106
|
+
completed: r === h.length,
|
|
107
|
+
fluid: a
|
|
108
|
+
})]
|
|
70
109
|
})
|
|
71
110
|
})]
|
|
72
111
|
});
|
|
112
|
+
return p ? /* @__PURE__ */ c(l, {
|
|
113
|
+
sx: {
|
|
114
|
+
backgroundImage: p,
|
|
115
|
+
bgcolor: "background.paper",
|
|
116
|
+
justifyContent: "center",
|
|
117
|
+
p: 16,
|
|
118
|
+
position: "relative"
|
|
119
|
+
},
|
|
120
|
+
children: [/* @__PURE__ */ t(k, {}), f]
|
|
121
|
+
}) : f;
|
|
122
|
+
}, K = ({ beatGuid: e, payload: o }) => {
|
|
123
|
+
const { data: r, variant: n } = o.instance_slot, i = m(r, "completed_steps");
|
|
124
|
+
return N(i) ? /* @__PURE__ */ t(H, {
|
|
125
|
+
layout: n ? w[n] : void 0,
|
|
126
|
+
slotData: {
|
|
127
|
+
completed_steps: i,
|
|
128
|
+
label_1: y(m(r, "label")) ?? "",
|
|
129
|
+
label_2: I(m(r, "headline"))
|
|
130
|
+
}
|
|
131
|
+
}) : (console.warn(`[StepChartBlock] ${e ?? "unknown beat"}: ${n} completed_steps invalid (${typeof i}), rendering nothing`), null);
|
|
73
132
|
};
|
|
74
133
|
export {
|
|
75
|
-
|
|
134
|
+
K as WithTextSlotBlock,
|
|
135
|
+
H as default,
|
|
136
|
+
N as isMilestoneStepCount
|
|
76
137
|
};
|
|
77
138
|
|
|
78
139
|
//# sourceMappingURL=WithText.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithText.es.js","names":[],"sources":["../../../../../../src/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { H3, Text } from '@mxenabled/mxui'\nimport { CheckCircle, CircleIcon } from '@mxenabled/mx-icons'\n\nimport type { StepChartBlockData } from '../../../../../core/types/InsightsInstanceSlotData'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../../core/utils/NumberFormatting'\n\nimport { getStepColor } from '../utils'\n\nconst MILESTONES = [100, 500, 1000] as const\nconst
|
|
1
|
+
{"version":3,"file":"WithText.es.js","names":[],"sources":["../../../../../../src/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/WithText.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { H3, Text } from '@mxenabled/mxui'\nimport { CheckCircle, CircleIcon } from '@mxenabled/mx-icons'\n\nimport { VISUALLY_HIDDEN_SX } from '../../../../../common/constants/Styles'\nimport { slot } from '../../../../../core/types/Insights'\nimport type { StepChartBlockData } from '../../../../../core/types/InsightsInstanceSlotData'\nimport { CURRENCY_FORMAT, formatCurrency } from '../../../../../core/utils/NumberFormatting'\nimport { ConfettiOverlay } from '../../../../components/shared/ConfettiOverlay'\nimport { ELEVATION_SHADOW } from '../../../../components/shared/elevation'\nimport { asNonEmptyText, asText } from '../../../slotReaders'\nimport type { BlockProps } from '../../../types'\n\nimport { STEP_CHART_LAYOUT, type StepChartLayoutConfig } from '../layout'\nimport { getStepColor } from '../utils'\n\nconst MILESTONES = [100, 500, 1000] as const\n\nconst DEFAULT_LAYOUT: StepChartLayoutConfig = {}\n\nexport const isMilestoneStepCount = (value: unknown): value is 1 | 2 | 3 =>\n Number.isInteger(value) && (value as number) >= 1 && (value as number) <= MILESTONES.length\n\n/** A track segment, coloured when the milestone it leads into is reached. */\nconst Segment = ({ completed, fluid }: { completed: boolean; fluid?: boolean }) => (\n <Box\n aria-hidden={true}\n sx={(theme) => ({\n bgcolor: getStepColor(theme, completed),\n height: 2,\n ...(fluid ? { flex: 1, mt: 11 } : { mt: 12, width: 54 }),\n })}\n />\n)\n\ninterface StepProps {\n amount: number\n completed: boolean\n current: boolean\n layout: StepChartLayoutConfig\n}\n\n/** One milestone: check or empty circle over its amount; announced as a list item when the layout asks. */\nconst Step = ({ amount, completed, current, layout }: StepProps) => {\n const { announceSteps, boldReached } = layout\n const Icon = completed ? CheckCircle : CircleIcon\n\n return (\n <Stack\n {...(announceSteps && { 'aria-current': current ? 'step' : undefined, role: 'listitem' })}\n sx={{ alignItems: 'center', width: 24 }}\n >\n <Icon\n aria-hidden={announceSteps || undefined}\n filled={true}\n size={24}\n sx={(theme) => ({ color: getStepColor(theme, completed) })}\n />\n <Text\n bold={boldReached && completed}\n color={completed ? 'text.primary' : 'text.secondary'}\n variant=\"caption\"\n >\n {formatCurrency(amount, CURRENCY_FORMAT.whole)}\n </Text>\n {announceSteps && (\n <Box component=\"span\" sx={VISUALLY_HIDDEN_SX}>\n {completed ? 'completed' : 'not reached'}\n </Box>\n )}\n </Stack>\n )\n}\n\ninterface WithTextProps {\n slotData: StepChartBlockData\n layout?: StepChartLayoutConfig\n}\n\n/** Eyebrow, headline and the $100 / $500 / $1,000 stepper; `layout` sets the per-variant look. */\nconst WithText = ({ layout = DEFAULT_LAYOUT, slotData }: WithTextProps) => {\n const { completed_steps: completedSteps, label_1, label_2 } = slotData\n const { announceSteps, capsEyebrow, fluidTrack, wash } = layout\n\n const card = (\n <Stack\n sx={{\n bgcolor: 'success.lighter',\n border: '1px solid',\n borderColor: 'success.main',\n borderRadius: '8px',\n gap: 16,\n py: 16,\n ...(wash && { boxShadow: ELEVATION_SHADOW[1], position: 'relative', zIndex: 1 }),\n }}\n >\n <Stack sx={{ px: 16 }}>\n {label_1 && (\n <Text\n color=\"text.secondary\"\n sx={capsEyebrow ? { letterSpacing: '0.27px', textTransform: 'uppercase' } : undefined}\n variant=\"tiny\"\n >\n {label_1}\n </Text>\n )}\n {label_2 && <H3 color=\"success.dark\">{label_2}</H3>}\n </Stack>\n <Stack sx={{ height: fluidTrack ? undefined : 40 }}>\n <Stack role={announceSteps ? 'list' : undefined} sx={{ flexDirection: 'row' }}>\n {MILESTONES.map((amount, index) => (\n <React.Fragment key={amount}>\n <Segment completed={index < completedSteps} fluid={fluidTrack} />\n <Step\n amount={amount}\n completed={index < completedSteps}\n current={index === completedSteps - 1}\n layout={layout}\n />\n </React.Fragment>\n ))}\n <Segment completed={completedSteps === MILESTONES.length} fluid={fluidTrack} />\n </Stack>\n </Stack>\n </Stack>\n )\n\n if (!wash) return card\n\n return (\n <Stack\n sx={{\n backgroundImage: wash,\n bgcolor: 'background.paper',\n justifyContent: 'center',\n p: 16,\n position: 'relative',\n }}\n >\n <ConfettiOverlay />\n {card}\n </Stack>\n )\n}\n\nexport default WithText\n\n/** Insights 2.0 WithText layouts (milestone_amounts): reads `instance_slot.data`; a blank label drops the eyebrow (mini). */\nexport const WithTextSlotBlock = ({ beatGuid, payload }: BlockProps<StepChartBlockData>) => {\n const { data, variant } = payload.instance_slot\n const completedSteps = slot(data, 'completed_steps')\n if (!isMilestoneStepCount(completedSteps)) {\n console.warn(\n `[StepChartBlock] ${beatGuid ?? 'unknown beat'}: ${variant} completed_steps invalid (${typeof completedSteps}), rendering nothing`,\n )\n return null\n }\n\n return (\n <WithText\n layout={variant ? STEP_CHART_LAYOUT[variant] : undefined}\n slotData={{\n completed_steps: completedSteps,\n label_1: asNonEmptyText(slot(data, 'label')) ?? '',\n label_2: asText(slot(data, 'headline')),\n }}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;AAoBA,IAAM,IAAa;AAAA,EAAC;AAAA,EAAK;AAAA,EAAK;AAAI,GAE5B,IAAwC,CAAC,GAElC,IAAA,CAAwB,MACnC,OAAO,UAAU,CAAK,KAAM,KAAoB,KAAM,KAAoB,EAAW,QAGjF,IAAA,CAAW,EAAE,WAAA,GAAW,OAAA,EAAA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K,CAQL,CACjB,GACD,gBAAA,EAAC,GAAD;AAAA,UAAS,WAAW,MAAmB,EAAW;AAAA,UAAQ,OAAO;AAAA,QAAa,CAAA,CACzE;AAAA;IACF,CAAA,CACF;AAAA;AAGT,SAAK,IAGH,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,GAAG;AAAA,MACH,UAAU;AAAA,IACZ;AAAA,IAPF,UAAA,CASE,gBAAA,EAAC,GAAD,CAAkB,CAAA,GACjB,CACI;AAAA,OAdS;AAgBpB,GAKa,IAAA,CAAqB,EAAE,UAAA,GAAU,SAAA,EAAA,MAA8C;AAC1F,QAAM,EAAE,MAAA,GAAM,SAAA,EAAA,IAAY,EAAQ,eAC5B,IAAiB,EAAK,GAAM,iBAAiB;AACnD,SAAK,EAAqB,CAAc,IAQtC,gBAAA,EAAC,GAAD;AAAA,IACE,QAAQ,IAAU,EAAkB,CAAA,IAAW;AAAA,IAC/C,UAAU;AAAA,MACR,iBAAiB;AAAA,MACjB,SAAS,EAAe,EAAK,GAAM,OAAO,CAAC,KAAK;AAAA,MAChD,SAAS,EAAO,EAAK,GAAM,UAAU,CAAC;AAAA,IACxC;AAAA,EACD,CAAA,KAdD,QAAQ,KACN,oBAAoB,KAAY,cAAA,KAAmB,CAAA,6BAAoC,OAAO,CAAA,sBAChG,GACO;AAaX"}
|
|
@@ -2,5 +2,5 @@ import { InsightsPayload } from '../../../../core';
|
|
|
2
2
|
declare const AccountBlock: ({ payload }: {
|
|
3
3
|
payload: InsightsPayload;
|
|
4
4
|
beatGuid?: string;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
export default AccountBlock;
|