@mx-cartographer/experiences 9.7.15 → 9.7.16

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [9.7.16] - 10-20-2026
2
+
3
+ - **ADDED** - `AmountBreakdownCard` presentational component (MEW2-3346)
4
+
1
5
  ## [9.7.15] - 10-20-2026
2
6
 
3
7
  - **CHANGED** - The `detailed_primary` / `detailed_success` account hero moves out of `AccountBlock` into its own `DetailedAccountBlock` block, which `account_block` still routes those variants to. Its stories move with it and gain a `detailed_celebration` confetti variant (MEW2-3344)
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AmountBreakdownRow {
3
+ label: ReactNode;
4
+ amount: ReactNode;
5
+ }
6
+ export interface AmountBreakdownTotal {
7
+ amount: ReactNode;
8
+ label: ReactNode;
9
+ }
10
+ export interface AmountBreakdownCardProps {
11
+ rows: AmountBreakdownRow[];
12
+ total: AmountBreakdownTotal;
13
+ }
14
+ declare const AmountBreakdownCard: ({ rows, total }: AmountBreakdownCardProps) => import("react/jsx-runtime").JSX.Element | null;
15
+ export default AmountBreakdownCard;
@@ -0,0 +1,90 @@
1
+ import { useId as c } from "react";
2
+ import e from "@mui/material/Stack";
3
+ import { Text as t } from "@mxenabled/mxui";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import p from "@mui/material/Divider";
6
+ var h = ({ rows: o, total: n }) => {
7
+ const a = c();
8
+ return o.length === 0 ? null : /* @__PURE__ */ i(e, {
9
+ sx: {
10
+ bgcolor: "background.paper",
11
+ borderRadius: "8px",
12
+ boxShadow: 1,
13
+ gap: 16,
14
+ p: 16,
15
+ width: "100%"
16
+ },
17
+ children: [/* @__PURE__ */ r(e, {
18
+ divider: /* @__PURE__ */ r(p, {
19
+ "aria-hidden": !0,
20
+ role: "presentation"
21
+ }),
22
+ role: "list",
23
+ sx: {
24
+ border: "1px solid",
25
+ borderColor: "divider",
26
+ borderRadius: "8px",
27
+ overflow: "hidden",
28
+ width: "100%"
29
+ },
30
+ children: o.map((d, l) => /* @__PURE__ */ i(e, {
31
+ role: "listitem",
32
+ sx: {
33
+ alignItems: "center",
34
+ flexDirection: "row",
35
+ gap: 16,
36
+ justifyContent: "space-between",
37
+ minHeight: 44,
38
+ px: 12,
39
+ py: 14
40
+ },
41
+ children: [/* @__PURE__ */ r(t, {
42
+ color: "text.primary",
43
+ truncate: !0,
44
+ variant: "body1",
45
+ children: d.label
46
+ }), /* @__PURE__ */ r(t, {
47
+ bold: !0,
48
+ color: "text.primary",
49
+ sx: {
50
+ flexShrink: 0,
51
+ fontVariantNumeric: "tabular-nums",
52
+ letterSpacing: "-0.15px"
53
+ },
54
+ variant: "body1",
55
+ children: d.amount
56
+ })]
57
+ }, l))
58
+ }), /* @__PURE__ */ i(e, {
59
+ sx: {
60
+ alignItems: "center",
61
+ bgcolor: "background.default",
62
+ borderRadius: "8px",
63
+ justifyContent: "center",
64
+ minHeight: 72,
65
+ p: 12,
66
+ width: "100%"
67
+ },
68
+ children: [/* @__PURE__ */ r(t, {
69
+ "aria-describedby": a,
70
+ color: "text.primary",
71
+ component: "p",
72
+ sx: { fontVariantNumeric: "tabular-nums" },
73
+ variant: "h2",
74
+ children: n.amount
75
+ }), /* @__PURE__ */ r(t, {
76
+ color: "text.secondary",
77
+ component: "p",
78
+ id: a,
79
+ sx: { fontWeight: 400 },
80
+ variant: "subtitle2",
81
+ children: n.label
82
+ })]
83
+ })]
84
+ });
85
+ };
86
+ export {
87
+ h as default
88
+ };
89
+
90
+ //# sourceMappingURL=AmountBreakdownCard.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmountBreakdownCard.es.js","names":[],"sources":["../../../src/insights-v2/components/AmountBreakdownCard.tsx"],"sourcesContent":["import { useId, type ReactNode } from 'react'\n\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nexport interface AmountBreakdownRow {\n label: ReactNode\n amount: ReactNode\n}\n\nexport interface AmountBreakdownTotal {\n amount: ReactNode\n label: ReactNode\n}\n\nexport interface AmountBreakdownCardProps {\n rows: AmountBreakdownRow[]\n total: AmountBreakdownTotal\n}\n\nconst AmountBreakdownCard = ({ rows, total }: AmountBreakdownCardProps) => {\n const totalLabelId = useId()\n\n if (rows.length === 0) return null\n\n return (\n <Stack\n sx={{\n bgcolor: 'background.paper',\n borderRadius: '8px',\n boxShadow: 1,\n gap: 16,\n p: 16,\n width: '100%',\n }}\n >\n <Stack\n divider={<Divider aria-hidden={true} role=\"presentation\" />}\n role=\"list\"\n sx={{\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: '8px',\n overflow: 'hidden',\n width: '100%',\n }}\n >\n {rows.map((row, index) => (\n <Stack\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n role=\"listitem\"\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 16,\n justifyContent: 'space-between',\n minHeight: 44,\n px: 12,\n py: 14,\n }}\n >\n <Text color=\"text.primary\" truncate={true} variant=\"body1\">\n {row.label}\n </Text>\n <Text\n bold={true}\n color=\"text.primary\"\n sx={{ flexShrink: 0, fontVariantNumeric: 'tabular-nums', letterSpacing: '-0.15px' }}\n variant=\"body1\"\n >\n {row.amount}\n </Text>\n </Stack>\n ))}\n </Stack>\n\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: 'background.default',\n borderRadius: '8px',\n justifyContent: 'center',\n minHeight: 72,\n p: 12,\n width: '100%',\n }}\n >\n <Text\n aria-describedby={totalLabelId}\n color=\"text.primary\"\n component=\"p\"\n sx={{ fontVariantNumeric: 'tabular-nums' }}\n variant=\"h2\"\n >\n {total.amount}\n </Text>\n <Text\n color=\"text.secondary\"\n component=\"p\"\n id={totalLabelId}\n sx={{ fontWeight: 400 }}\n variant=\"subtitle2\"\n >\n {total.label}\n </Text>\n </Stack>\n </Stack>\n )\n}\n\nexport default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,MACE,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,cAAc;AAAA,QACd,gBAAgB;AAAA,QAChB,WAAW;AAAA,QACX,GAAG;AAAA,QACH,OAAO;AAAA,MACT;AAAA,MATF,UAAA,CAWE,gBAAA,EAAC,GAAD;AAAA,QACE,oBAAkB;AAAA,QAClB,OAAM;AAAA,QACN,WAAU;AAAA,QACV,IAAI,EAAE,oBAAoB,eAAe;AAAA,QACzC,SAAQ;AAAA,QAEP,UAAA,EAAM;AAAA,MACH,CAAA,GACN,gBAAA,EAAC,GAAD;AAAA,QACE,OAAM;AAAA,QACN,WAAU;AAAA,QACV,IAAI;AAAA,QACJ,IAAI,EAAE,YAAY,IAAI;AAAA,QACtB,SAAQ;AAAA,QAEP,UAAA,EAAM;AAAA,MACH,CAAA,CACD;AAAA,IACF,CAAA,CAAA;AAAA;AAEX"}
@@ -4,6 +4,7 @@ export { default as ConnectionDetailDrillDown, type ConnectionDetailContent, } f
4
4
  export { default as DirectDepositCard, type DirectDepositCardStyleProps, type DirectDepositPillConfig, } from './components/DirectDepositCard';
5
5
  export { default as DebtPayoffCard, type DebtPayoffCardStyleProps, type DebtPayoffPillConfig, type DebtPayoffStat, } from './components/DebtPayoffCard';
6
6
  export { default as AmountPill } from './components/AmountPill';
7
+ export { default as AmountBreakdownCard, type AmountBreakdownCardProps, type AmountBreakdownRow, type AmountBreakdownTotal, } from './components/AmountBreakdownCard';
7
8
  export { default as BadgedTile } from './components/BadgedTile';
8
9
  export { default as StatusBadge, type StatusTone } from './components/StatusBadge';
9
10
  export { default as DesignateEmergencySavingsCard, type DesignateEmergencySavingsOption, } from './components/DesignateEmergencySavingsCard';
@@ -1,16 +1,16 @@
1
1
  import r from "./components/StatusPill.es.js";
2
- import { resolveInsightRender as i } from "./resolveInsightRender.es.js";
2
+ import { resolveInsightRender as m } from "./resolveInsightRender.es.js";
3
3
  import { useBeatActions as a } from "./beatActions.es.js";
4
4
  import { BAR_ARIA_LABEL as e, BAR_CHART_VARIANTS as f, barChartVariant as n, buildChartData as c, buildDataSeries as l } from "./blocks/ChartBlocks/BarchartBlock/utils.es.js";
5
5
  import { HOST_ACTIONS as d } from "./ctaActions/hostActions.es.js";
6
- import { useBeatCtaActions as g, useCtaHandler as C } from "./ctaActions/useCtaAction.es.js";
6
+ import { useBeatCtaActions as C, useCtaHandler as g } from "./ctaActions/useCtaAction.es.js";
7
7
  import { BarchartBlock as k } from "./blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js";
8
8
  import { DoubleBarChartBlock as S } from "./blocks/ChartBlocks/DoubleBarChartBlock/DoubleBarChartBlock.es.js";
9
9
  import h from "./blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js";
10
10
  import L from "./blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js";
11
11
  import I from "./blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
12
- import R, { isLogoGuid as H } from "./components/LogoFromGuid.es.js";
13
- import V from "./components/AccountHeroCard.es.js";
12
+ import R, { isLogoGuid as w } from "./components/LogoFromGuid.es.js";
13
+ import O from "./components/AccountHeroCard.es.js";
14
14
  import y from "./components/DirectDepositCard.es.js";
15
15
  import { detailedAccountVariant as M, directDepositVariant as P, isDetailedAccountVariant as _ } from "./blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js";
16
16
  import x from "./blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
@@ -22,21 +22,21 @@ import Q from "./components/DebtPayoffCard.es.js";
22
22
  import Y from "./components/InsightTransactionRow.es.js";
23
23
  import $ from "./components/TransactionListCard.es.js";
24
24
  import ro from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
25
- import io from "./components/UpcomingBillCard.es.js";
25
+ import mo from "./components/UpcomingBillCard.es.js";
26
26
  import ao from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
27
27
  import eo from "./components/SaveAnExtraCard.es.js";
28
28
  import no from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
29
29
  import lo from "./components/SavingsOpportunityCard.es.js";
30
30
  import Bo from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
31
- import Co from "./components/StatusMessageCard.es.js";
31
+ import go from "./components/StatusMessageCard.es.js";
32
32
  import { transactionBlockVariant as ko } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
33
33
  import { TransactionBlock as So } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
34
34
  import ho from "./components/AmountPill.es.js";
35
35
  import Lo from "./components/SubscriptionHeroCard.es.js";
36
36
  import Io from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
37
37
  import Ro from "./components/WithdrawalCard.es.js";
38
- import Oo from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
39
- import { SVGImageBlock as wo } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
38
+ import Ho from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
39
+ import { SVGImageBlock as Vo } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
40
40
  import Eo from "./components/shared/StatusSnackbar.es.js";
41
41
  import Po from "./components/FeedbackDialog.es.js";
42
42
  import Fo from "./components/FeedbackModal.es.js";
@@ -49,65 +49,67 @@ import { OverflowMenu as Xo } from "./components/OverflowMenu.es.js";
49
49
  import { InsightOptionsMenu as Zo } from "./components/InsightOptionsMenu.es.js";
50
50
  import or from "./components/StatusBadge.es.js";
51
51
  import tr from "./components/CompactInsightCard.es.js";
52
- import mr from "./components/DesignateEmergencySavingsCard.es.js";
53
- import { FeedbackBar as pr } from "./components/FeedbackBar.es.js";
54
- import { DismissInsightDialog as fr } from "./components/DismissInsightDialog.es.js";
55
- import { HiddenConfirmationCard as cr } from "./components/HiddenConfirmationCard.es.js";
56
- import { LoadingCard as sr } from "./components/LoadingCard.es.js";
57
- import { ObsolesceBanner as Br } from "./components/ObsolesceBanner.es.js";
58
- import Cr from "./components/BaseLayout.es.js";
59
- import kr from "./components/LogoTile.es.js";
60
- import Sr from "./components/LogoClusterCard.es.js";
61
- import hr from "./components/MerchantHighlightCard.es.js";
62
- import Lr from "./components/P2PLogoStack.es.js";
52
+ import ir from "./components/AmountBreakdownCard.es.js";
53
+ import pr from "./components/DesignateEmergencySavingsCard.es.js";
54
+ import { FeedbackBar as fr } from "./components/FeedbackBar.es.js";
55
+ import { DismissInsightDialog as cr } from "./components/DismissInsightDialog.es.js";
56
+ import { HiddenConfirmationCard as sr } from "./components/HiddenConfirmationCard.es.js";
57
+ import { LoadingCard as Br } from "./components/LoadingCard.es.js";
58
+ import { ObsolesceBanner as gr } from "./components/ObsolesceBanner.es.js";
59
+ import kr from "./components/BaseLayout.es.js";
60
+ import Sr from "./components/LogoTile.es.js";
61
+ import hr from "./components/LogoClusterCard.es.js";
62
+ import Lr from "./components/MerchantHighlightCard.es.js";
63
+ import Ir from "./components/P2PLogoStack.es.js";
63
64
  export {
64
65
  U as AccountBlock,
65
- V as AccountHeroCard,
66
+ O as AccountHeroCard,
66
67
  q as AccountSwitchBlock,
68
+ ir as AmountBreakdownCard,
67
69
  ho as AmountPill,
68
70
  e as BAR_ARIA_LABEL,
69
71
  f as BAR_CHART_VARIANTS,
70
72
  Ko as BadgedTile,
71
73
  k as BarchartBlock,
72
- Cr as BaseLayout,
74
+ kr as BaseLayout,
73
75
  J as BudgetBlock,
74
76
  tr as CompactInsightCard,
75
77
  Go as ConnectionDetailDrillDown,
76
78
  Q as DebtPayoffCard,
77
79
  ro as DebtsBlock,
78
- mr as DesignateEmergencySavingsCard,
80
+ pr as DesignateEmergencySavingsCard,
79
81
  x as DetailedAccountBlock,
80
82
  x as DirectDepositBlock,
81
83
  y as DirectDepositCard,
82
- fr as DismissInsightDialog,
84
+ cr as DismissInsightDialog,
83
85
  L as DonutChartBlock,
84
86
  S as DoubleBarChartBlock,
85
87
  I as DoubleProgressBarBlock,
86
88
  zo as ErrorCard,
87
- pr as FeedbackBar,
89
+ fr as FeedbackBar,
88
90
  Po as FeedbackDialog,
89
91
  Fo as FeedbackModal,
90
92
  d as HOST_ACTIONS,
91
- cr as HiddenConfirmationCard,
93
+ sr as HiddenConfirmationCard,
92
94
  jo as InsightErrorCard,
93
95
  Zo as InsightOptionsMenu,
94
96
  Y as InsightTransactionRow,
95
- sr as LoadingCard,
96
- Sr as LogoClusterCard,
97
+ Br as LoadingCard,
98
+ hr as LogoClusterCard,
97
99
  R as LogoFromGuid,
98
- kr as LogoTile,
99
- hr as MerchantHighlightCard,
100
- Br as ObsolesceBanner,
100
+ Sr as LogoTile,
101
+ Lr as MerchantHighlightCard,
102
+ gr as ObsolesceBanner,
101
103
  Xo as OverflowMenu,
102
- Lr as P2PLogoStack,
104
+ Ir as P2PLogoStack,
103
105
  ao as RepeatingTransactionBlock,
104
- wo as SVGImageBlock,
106
+ Vo as SVGImageBlock,
105
107
  eo as SaveAnExtraCard,
106
108
  no as SaveExtraBlock,
107
109
  Bo as SavingsOpportunityBlock,
108
110
  lo as SavingsOpportunityCard,
109
111
  or as StatusBadge,
110
- Co as StatusMessageCard,
112
+ go as StatusMessageCard,
111
113
  r as StatusPill,
112
114
  Eo as StatusSnackbar,
113
115
  h as StepChartBlock,
@@ -117,9 +119,9 @@ export {
117
119
  $ as TransactionListCard,
118
120
  W as TransferLogoCard,
119
121
  ao as UpcomingBillBlock,
120
- io as UpcomingBillCard,
122
+ mo as UpcomingBillCard,
121
123
  Io as UpcomingSubscriptionBlock,
122
- Oo as WithdrawalBlock,
124
+ Ho as WithdrawalBlock,
123
125
  Ro as WithdrawalCard,
124
126
  n as barChartVariant,
125
127
  c as buildChartData,
@@ -127,10 +129,10 @@ export {
127
129
  M as detailedAccountVariant,
128
130
  P as directDepositVariant,
129
131
  _ as isDetailedAccountVariant,
130
- H as isLogoGuid,
131
- i as resolveInsightRender,
132
+ w as isLogoGuid,
133
+ m as resolveInsightRender,
132
134
  ko as transactionBlockVariant,
133
135
  a as useBeatActions,
134
- g as useBeatCtaActions,
135
- C as useCtaHandler
136
+ C as useBeatCtaActions,
137
+ g as useCtaHandler
136
138
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.15",
3
+ "version": "9.7.16",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",