@mx-cartographer/experiences 9.7.161 → 9.7.163
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 +11 -1
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.es.js +6 -6
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js +11 -6
- package/dist/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js +17 -20
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
## [9.7.163] - 11-16-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - Monthly Spend to Income Comparison: the full card chart matches the Figma height (WEC-2329)
|
|
4
|
+
- **FIXED** - Replenish Savings and Monthly Subscription Aggregate: the drawer header icon matches the Figma size (WEC-2329)
|
|
5
|
+
|
|
6
|
+
## [9.7.162] - 11-16-2026
|
|
7
|
+
|
|
8
|
+
- **FIXED** - Federal Bank Holiday, Upcoming Tax Deadline Alert and Designate Emergency Savings Account: the Mini card illustration matches the Figma size (WEC-2320)
|
|
9
|
+
- **CHANGED** - Bar chart legends use the body2 text style, per design (WEC-2320)
|
|
10
|
+
|
|
1
11
|
## [9.7.161] - 11-16-2026
|
|
2
12
|
|
|
3
|
-
- **ADDED** - Credit Card Close to Limit
|
|
13
|
+
- **ADDED** - Credit Card Close to Limit on Insights 2.0: donut card, embedded card, Spending list with the alert marker, and the Edit Credit Limit Alert dialog, whose amount field can show a percent unit (WEC-2030)
|
|
4
14
|
|
|
5
15
|
## [9.7.160] - 11-16-2026
|
|
6
16
|
|
|
@@ -2,7 +2,7 @@ import t from "@mui/material/Stack";
|
|
|
2
2
|
import { Text as h } from "@mxenabled/mxui";
|
|
3
3
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { useTheme as o } from "@mui/material/styles";
|
|
5
|
-
var w = ({ color:
|
|
5
|
+
var w = ({ color: d, legendStyle: n = {}, monthlyAmount: a, monthlyAmountLabel: i, trendAmount: c, trendAmountLabel: l }) => {
|
|
6
6
|
const g = o();
|
|
7
7
|
return /* @__PURE__ */ r(t, {
|
|
8
8
|
sx: {
|
|
@@ -12,7 +12,7 @@ var w = ({ color: n, legendStyle: c = {}, monthlyAmount: a, monthlyAmountLabel:
|
|
|
12
12
|
justifyContent: "flex-start",
|
|
13
13
|
py: 4,
|
|
14
14
|
width: "100%",
|
|
15
|
-
...
|
|
15
|
+
...n
|
|
16
16
|
},
|
|
17
17
|
children: [i && /* @__PURE__ */ r(t, {
|
|
18
18
|
sx: {
|
|
@@ -28,14 +28,14 @@ var w = ({ color: n, legendStyle: c = {}, monthlyAmount: a, monthlyAmountLabel:
|
|
|
28
28
|
role: "figure",
|
|
29
29
|
width: "12",
|
|
30
30
|
children: /* @__PURE__ */ e("rect", {
|
|
31
|
-
fill:
|
|
31
|
+
fill: d,
|
|
32
32
|
height: "12",
|
|
33
33
|
rx: "2",
|
|
34
34
|
width: "12"
|
|
35
35
|
})
|
|
36
36
|
}), /* @__PURE__ */ e(h, {
|
|
37
37
|
id: "chartLegendLabel",
|
|
38
|
-
variant: "
|
|
38
|
+
variant: "body2",
|
|
39
39
|
children: a ? `${i}: ${a}` : i
|
|
40
40
|
})]
|
|
41
41
|
}), l && /* @__PURE__ */ r(t, {
|
|
@@ -59,11 +59,11 @@ var w = ({ color: n, legendStyle: c = {}, monthlyAmount: a, monthlyAmountLabel:
|
|
|
59
59
|
})
|
|
60
60
|
}), /* @__PURE__ */ r(h, {
|
|
61
61
|
id: "chartLegendLabel",
|
|
62
|
-
variant: "
|
|
62
|
+
variant: "body2",
|
|
63
63
|
children: [
|
|
64
64
|
l,
|
|
65
65
|
": ",
|
|
66
|
-
|
|
66
|
+
c
|
|
67
67
|
]
|
|
68
68
|
})]
|
|
69
69
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartLegendV2.es.js","names":[],"sources":["../../../../../../src/insights/components/shared/Charts/BarChart/ChartLegendV2.tsx"],"sourcesContent":["import { Text } from '@mxenabled/mxui'\n\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\nimport { type SxProps } from '@mui/material/styles'\n\nexport interface LegendV2Props {\n color: string\n legendStyle?: SxProps\n monthlyAmount?: string\n monthlyAmountLabel?: string\n trendAmount?: string\n trendAmountLabel?: string\n}\n\nexport const LegendV2 = ({\n color,\n legendStyle = {},\n monthlyAmount,\n monthlyAmountLabel,\n trendAmount,\n trendAmountLabel,\n}: LegendV2Props) => {\n const theme = useTheme()\n\n return (\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 24,\n justifyContent: 'flex-start',\n py: 4,\n width: '100%',\n ...legendStyle,\n }}\n >\n {monthlyAmountLabel && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <svg\n aria-hidden=\"true\"\n aria-labelledby=\"chartLegendLabel\"\n fill=\"none\"\n height=\"12\"\n role=\"figure\"\n width=\"12\"\n >\n <rect fill={color} height=\"12\" rx=\"2\" width=\"12\" />\n </svg>\n <Text id=\"chartLegendLabel\" variant=\"
|
|
1
|
+
{"version":3,"file":"ChartLegendV2.es.js","names":[],"sources":["../../../../../../src/insights/components/shared/Charts/BarChart/ChartLegendV2.tsx"],"sourcesContent":["import { Text } from '@mxenabled/mxui'\n\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\nimport { type SxProps } from '@mui/material/styles'\n\nexport interface LegendV2Props {\n color: string\n legendStyle?: SxProps\n monthlyAmount?: string\n monthlyAmountLabel?: string\n trendAmount?: string\n trendAmountLabel?: string\n}\n\nexport const LegendV2 = ({\n color,\n legendStyle = {},\n monthlyAmount,\n monthlyAmountLabel,\n trendAmount,\n trendAmountLabel,\n}: LegendV2Props) => {\n const theme = useTheme()\n\n return (\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n gap: 24,\n justifyContent: 'flex-start',\n py: 4,\n width: '100%',\n ...legendStyle,\n }}\n >\n {monthlyAmountLabel && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <svg\n aria-hidden=\"true\"\n aria-labelledby=\"chartLegendLabel\"\n fill=\"none\"\n height=\"12\"\n role=\"figure\"\n width=\"12\"\n >\n <rect fill={color} height=\"12\" rx=\"2\" width=\"12\" />\n </svg>\n <Text id=\"chartLegendLabel\" variant=\"body2\">\n {monthlyAmount ? `${monthlyAmountLabel}: ${monthlyAmount}` : monthlyAmountLabel}\n </Text>\n </Stack>\n )}\n\n {trendAmountLabel && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n <svg\n aria-hidden=\"true\"\n aria-labelledby=\"chartLegendLabel\"\n fill=\"none\"\n height=\"12\"\n role=\"figure\"\n width=\"12\"\n >\n <rect fill={theme.palette.chart.chart7} height=\"12\" rx=\"2\" width=\"12\" />\n </svg>\n <Text id=\"chartLegendLabel\" variant=\"body2\">\n {trendAmountLabel}: {trendAmount}\n </Text>\n </Stack>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;AAeA,IAAa,IAAA,CAAY,EACvB,OAAA,GACA,aAAA,IAAc,CAAC,GACf,eAAA,GACA,oBAAA,GACA,aAAA,GACA,kBAAA,EAAA,MACmB;AACnB,QAAM,IAAQ,EAAS;AAEvB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,KAAK;AAAA,MACL,gBAAgB;AAAA,MAChB,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,GAAG;AAAA,IACL;AAAA,IATF,UAAA,CAWG,KACC,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,YAAY;AAAA,QAAU,eAAe;AAAA,QAAO,KAAK;AAAA,MAAE;AAAA,MAAhE,UAAA,CACE,gBAAA,EAAC,OAAD;AAAA,QACE,eAAY;AAAA,QACZ,mBAAgB;AAAA,QAChB,MAAK;AAAA,QACL,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAA,EAAC,QAAD;AAAA,UAAM,MAAM;AAAA,UAAO,QAAO;AAAA,UAAK,IAAG;AAAA,UAAI,OAAM;AAAA,QAAM,CAAA;AAAA,MAC/C,CAAA,GACL,gBAAA,EAAC,GAAD;AAAA,QAAM,IAAG;AAAA,QAAmB,SAAQ;AAAA,QACjC,UAAA,IAAgB,GAAG,CAAA,KAAuB,CAAA,KAAkB;AAAA,MACzD,CAAA,CACD;AAAA,IAGR,CAAA,GAAA,KACC,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,YAAY;AAAA,QAAU,eAAe;AAAA,QAAO,KAAK;AAAA,MAAE;AAAA,MAAhE,UAAA,CACE,gBAAA,EAAC,OAAD;AAAA,QACE,eAAY;AAAA,QACZ,mBAAgB;AAAA,QAChB,MAAK;AAAA,QACL,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAA,EAAC,QAAD;AAAA,UAAM,MAAM,EAAM,QAAQ,MAAM;AAAA,UAAQ,QAAO;AAAA,UAAK,IAAG;AAAA,UAAI,OAAM;AAAA,QAAM,CAAA;AAAA,MACpE,CAAA,GACL,gBAAA,EAAC,GAAD;AAAA,QAAM,IAAG;AAAA,QAAmB,SAAQ;AAAA,QAApC,UAAA;AAAA,UACG;AAAA,UAAiB;AAAA,UAAG;AAAA,QACjB;AAAA,MACD,CAAA,CAAA;AAAA,IAEJ,CAAA,CAAA;AAAA;AAEX"}
|
package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionListHeaderIconTile.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { alpha } from '@mui/material/styles'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nexport interface TransactionListHeaderIconTileProps {\n /** An mx-icons name. */\n name: string\n}\n\n/** The icon tile that leads the Transaction List header cards. */\nexport const TransactionListHeaderIconTile = ({ name }: TransactionListHeaderIconTileProps) => (\n <Box\n sx={{\n alignItems: 'center',\n bgcolor: (theme) => alpha(theme.palette.primary.main, 0.15),\n borderRadius: '4px',\n color: 'primary.main',\n display: 'flex',\n height: 56,\n justifyContent: 'center',\n width: 56,\n }}\n >\n <Icon aria-hidden={true} fill={true} name={name} size={
|
|
1
|
+
{"version":3,"file":"TransactionListHeaderIconTile.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { alpha } from '@mui/material/styles'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nexport interface TransactionListHeaderIconTileProps {\n /** An mx-icons name. */\n name: string\n}\n\n/** The icon tile that leads the Transaction List header cards. */\nexport const TransactionListHeaderIconTile = ({ name }: TransactionListHeaderIconTileProps) => (\n <Box\n sx={{\n alignItems: 'center',\n bgcolor: (theme) => alpha(theme.palette.primary.main, 0.15),\n borderRadius: '4px',\n color: 'primary.main',\n display: 'flex',\n height: 56,\n justifyContent: 'center',\n width: 56,\n }}\n >\n <Icon aria-hidden={true} fill={true} name={name} size={24} />\n </Box>\n)\n\nexport default TransactionListHeaderIconTile\n"],"mappings":";;;;AAWA,IAAa,IAAA,CAAiC,EAAE,MAAA,EAAA,MAC9C,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,SAAA,CAAU,MAAU,EAAM,EAAM,QAAQ,QAAQ,MAAM,IAAI;AAAA,IAC1D,cAAc;AAAA,IACd,OAAO;AAAA,IACP,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,eAAa;AAAA,IAAM,MAAM;AAAA,IAAY,MAAA;AAAA,IAAM,MAAM;AAAA,EAAK,CAAA;AACzD,CAAA"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
var c = (o) => ({
|
|
2
2
|
boldLabel: !0,
|
|
3
|
-
color: [o.palette.chart.chart2, o.palette.chart.chart1]
|
|
4
|
-
|
|
3
|
+
color: [o.palette.chart.chart2, o.palette.chart.chart1],
|
|
4
|
+
plotSize: {
|
|
5
|
+
height: 122,
|
|
6
|
+
top: 0,
|
|
7
|
+
bottom: 16
|
|
8
|
+
}
|
|
9
|
+
}), e = (o) => ({
|
|
5
10
|
boldLabel: !0,
|
|
6
11
|
color: [o.palette.chartMono.chartMono5, o.palette.chartMono.chartMono3],
|
|
7
12
|
plotSize: {
|
|
@@ -9,7 +14,7 @@ var c = (o) => ({
|
|
|
9
14
|
top: 14,
|
|
10
15
|
bottom: 6
|
|
11
16
|
}
|
|
12
|
-
}),
|
|
17
|
+
}), r = (o, t) => {
|
|
13
18
|
const a = {
|
|
14
19
|
SpendToIncome: c(o),
|
|
15
20
|
spend_to_income: c(o),
|
|
@@ -17,13 +22,13 @@ var c = (o) => ({
|
|
|
17
22
|
boldLabel: !0,
|
|
18
23
|
color: [o.palette.chart.chart5, o.palette.chart.chart1]
|
|
19
24
|
},
|
|
20
|
-
SavingsToIncome:
|
|
21
|
-
savings_to_income:
|
|
25
|
+
SavingsToIncome: e(o),
|
|
26
|
+
savings_to_income: e(o)
|
|
22
27
|
};
|
|
23
28
|
return t && Object.hasOwn(a, t) ? a[t] : void 0;
|
|
24
29
|
};
|
|
25
30
|
export {
|
|
26
|
-
|
|
31
|
+
r as getLayoutConfig
|
|
27
32
|
};
|
|
28
33
|
|
|
29
34
|
//# sourceMappingURL=layout.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport type { PlotSize } from '../../../components/chartblocks/DoubleBarChart'\n\nexport interface DoubleBarLayoutConfig {\n boldLabel?: boolean\n color: string[]\n plotSize?: PlotSize\n}\n\n// One palette per comparison; ditto's snake_case variant shares the legacy PascalCase entry's palette.\n// Spend chart2, Income chart1 (Figma 1941:137446); the card and its drawer both read it. boldLabel: Figma\n// bolds the legend label (\"Spend:\") on these three beats; any other variant leaves it unset (regular).\nconst spendToIncome = (theme: Theme): DoubleBarLayoutConfig => ({\n boldLabel: true,\n color: [theme.palette.chart.chart2, theme.palette.chart.chart1] as string[],\n})\n\nconst savingsToIncome = (theme: Theme): DoubleBarLayoutConfig => ({\n boldLabel: true,\n color: [theme.palette.chartMono.chartMono5, theme.palette.chartMono.chartMono3] as string[],\n // Figma 1243:73833's full card plot.\n plotSize: { height: 144, top: 14, bottom: 6 },\n})\n\nexport const getLayoutConfig = (\n theme: Theme,\n variant?: string | null,\n): DoubleBarLayoutConfig | undefined => {\n const config: Record<string, DoubleBarLayoutConfig> = {\n SpendToIncome: spendToIncome(theme),\n // Insights 2.0: ditto's layout variant for Monthly Spend to Income Comparison.\n spend_to_income: spendToIncome(theme),\n // Insights 2.0: ditto's layout variant for Monthly Debt to Income Comparison. Debt (main) chart5,\n // Income chart1 (Figma 1117:8564); the card and its drawer both read it.\n debt_to_income: {\n boldLabel: true,\n color: [theme.palette.chart.chart5, theme.palette.chart.chart1] as string[],\n },\n SavingsToIncome: savingsToIncome(theme),\n // Insights 2.0: ditto's layout variant for Monthly Savings to Income Comparison.\n savings_to_income: savingsToIncome(theme),\n }\n // Object.hasOwn: the variant is backend-controlled, and an inherited name like `constructor`\n // would otherwise return a truthy non-config.\n return variant && Object.hasOwn(config, variant) ? config[variant] : undefined\n}\n"],"mappings":"AAaA,IAAM,IAAA,CAAiB,OAAyC;AAAA,EAC9D,WAAW;AAAA,EACX,OAAO,CAAC,EAAM,QAAQ,MAAM,QAAQ,EAAM,QAAQ,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/DoubleBarChartBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport type { PlotSize } from '../../../components/chartblocks/DoubleBarChart'\n\nexport interface DoubleBarLayoutConfig {\n boldLabel?: boolean\n color: string[]\n plotSize?: PlotSize\n}\n\n// One palette per comparison; ditto's snake_case variant shares the legacy PascalCase entry's palette.\n// Spend chart2, Income chart1 (Figma 1941:137446); the card and its drawer both read it. boldLabel: Figma\n// bolds the legend label (\"Spend:\") on these three beats; any other variant leaves it unset (regular).\nconst spendToIncome = (theme: Theme): DoubleBarLayoutConfig => ({\n boldLabel: true,\n color: [theme.palette.chart.chart2, theme.palette.chart.chart1] as string[],\n // Figma 1941:137490: a 122px chart above the legend, 150px slot in all.\n plotSize: { height: 122, top: 0, bottom: 16 },\n})\n\nconst savingsToIncome = (theme: Theme): DoubleBarLayoutConfig => ({\n boldLabel: true,\n color: [theme.palette.chartMono.chartMono5, theme.palette.chartMono.chartMono3] as string[],\n // Figma 1243:73833's full card plot.\n plotSize: { height: 144, top: 14, bottom: 6 },\n})\n\nexport const getLayoutConfig = (\n theme: Theme,\n variant?: string | null,\n): DoubleBarLayoutConfig | undefined => {\n const config: Record<string, DoubleBarLayoutConfig> = {\n SpendToIncome: spendToIncome(theme),\n // Insights 2.0: ditto's layout variant for Monthly Spend to Income Comparison.\n spend_to_income: spendToIncome(theme),\n // Insights 2.0: ditto's layout variant for Monthly Debt to Income Comparison. Debt (main) chart5,\n // Income chart1 (Figma 1117:8564); the card and its drawer both read it.\n debt_to_income: {\n boldLabel: true,\n color: [theme.palette.chart.chart5, theme.palette.chart.chart1] as string[],\n },\n SavingsToIncome: savingsToIncome(theme),\n // Insights 2.0: ditto's layout variant for Monthly Savings to Income Comparison.\n savings_to_income: savingsToIncome(theme),\n }\n // Object.hasOwn: the variant is backend-controlled, and an inherited name like `constructor`\n // would otherwise return a truthy non-config.\n return variant && Object.hasOwn(config, variant) ? config[variant] : undefined\n}\n"],"mappings":"AAaA,IAAM,IAAA,CAAiB,OAAyC;AAAA,EAC9D,WAAW;AAAA,EACX,OAAO,CAAC,EAAM,QAAQ,MAAM,QAAQ,EAAM,QAAQ,MAAM,MAAM;AAAA,EAE9D,UAAU;AAAA,IAAE,QAAQ;AAAA,IAAK,KAAK;AAAA,IAAG,QAAQ;AAAA,EAAG;AAC9C,IAEM,IAAA,CAAmB,OAAyC;AAAA,EAChE,WAAW;AAAA,EACX,OAAO,CAAC,EAAM,QAAQ,UAAU,YAAY,EAAM,QAAQ,UAAU,UAAU;AAAA,EAE9E,UAAU;AAAA,IAAE,QAAQ;AAAA,IAAK,KAAK;AAAA,IAAI,QAAQ;AAAA,EAAE;AAC9C,IAEa,IAAA,CACX,GACA,MACsC;AACtC,QAAM,IAAgD;AAAA,IACpD,eAAe,EAAc,CAAK;AAAA,IAElC,iBAAiB,EAAc,CAAK;AAAA,IAGpC,gBAAgB;AAAA,MACd,WAAW;AAAA,MACX,OAAO,CAAC,EAAM,QAAQ,MAAM,QAAQ,EAAM,QAAQ,MAAM,MAAM;AAAA,IAChE;AAAA,IACA,iBAAiB,EAAgB,CAAK;AAAA,IAEtC,mBAAmB,EAAgB,CAAK;AAAA,EAC1C;AAGA,SAAO,KAAW,OAAO,OAAO,GAAQ,CAAO,IAAI,EAAO,CAAA,IAAW;AACvE"}
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import { resolveVariantConfig as
|
|
2
|
-
import { ThemedSVGImage as
|
|
3
|
-
import { CtaStatus as
|
|
4
|
-
import { getLayoutConfig as
|
|
5
|
-
import { EmergencySavingsAccountPicker as
|
|
6
|
-
import
|
|
7
|
-
import { jsx as
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */
|
|
1
|
+
import { resolveVariantConfig as g } from "../../resolveVariantConfig.es.js";
|
|
2
|
+
import { ThemedSVGImage as f } from "../../../components/chartblocks/ThemedSVGImage.es.js";
|
|
3
|
+
import { CtaStatus as p } from "../../../components/CtaStatus.es.js";
|
|
4
|
+
import { getLayoutConfig as d } from "./layout.es.js";
|
|
5
|
+
import { EmergencySavingsAccountPicker as v } from "./EmergencySavingsAccountPicker.es.js";
|
|
6
|
+
import i from "@mui/material/Stack";
|
|
7
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
var I = ({ payload: { instance_slot: s, instance_slot_data: m, widget_type: c }, beatGuid: l }) => {
|
|
9
|
+
const a = c === "full", { variant: n, data: o } = s, t = g(d(m?.isCIBC), n, "savings", "SVGImageBlock"), r = typeof o?.saved_label == "string" ? o.saved_label.trim() : "";
|
|
10
|
+
return /* @__PURE__ */ h(i, {
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
sx: { width: "100%" },
|
|
13
13
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
/* @__PURE__ */ e(f, { image: t.image }),
|
|
15
|
+
t.showPicker && a && /* @__PURE__ */ e(v, {
|
|
16
|
+
beatGuid: l,
|
|
17
|
+
data: o
|
|
17
18
|
}),
|
|
18
|
-
|
|
19
|
-
beatGuid: c,
|
|
20
|
-
data: e
|
|
21
|
-
}),
|
|
22
|
-
i.showSavedLabel && a && r && /* @__PURE__ */ o(s, {
|
|
19
|
+
t.showSavedLabel && a && r && /* @__PURE__ */ e(i, {
|
|
23
20
|
sx: {
|
|
24
21
|
pt: 24,
|
|
25
22
|
px: 16,
|
|
26
23
|
width: "100%"
|
|
27
24
|
},
|
|
28
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ e(p, {
|
|
29
26
|
icon: "check_circle",
|
|
30
27
|
label: r,
|
|
31
28
|
tone: "success"
|
|
@@ -35,7 +32,7 @@ var V = ({ payload: { instance_slot: m, instance_slot_data: n, widget_type: t },
|
|
|
35
32
|
});
|
|
36
33
|
};
|
|
37
34
|
export {
|
|
38
|
-
|
|
35
|
+
I as SVGImageBlock
|
|
39
36
|
};
|
|
40
37
|
|
|
41
38
|
//# sourceMappingURL=SVGImageBlock.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGImageBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { getLayoutConfig } from './layout'\n\nimport type { SVGImageBlockData } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport { ThemedSVGImage } from '../../../components/chartblocks/ThemedSVGImage'\nimport { CtaStatus } from '../../../components/CtaStatus'\nimport { EmergencySavingsAccountPicker } from './EmergencySavingsAccountPicker'\n\nexport const SVGImageBlock = ({\n payload: { instance_slot, instance_slot_data, widget_type },\n beatGuid,\n}: BlockProps<SVGImageBlockData>) => {\n const
|
|
1
|
+
{"version":3,"file":"SVGImageBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.tsx"],"sourcesContent":["import Stack from '@mui/material/Stack'\n\nimport { BlockProps } from '../../types'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { getLayoutConfig } from './layout'\n\nimport type { SVGImageBlockData } from '../../../../core/types/InsightsInstanceSlotData'\n\nimport { ThemedSVGImage } from '../../../components/chartblocks/ThemedSVGImage'\nimport { CtaStatus } from '../../../components/CtaStatus'\nimport { EmergencySavingsAccountPicker } from './EmergencySavingsAccountPicker'\n\nexport const SVGImageBlock = ({\n payload: { instance_slot, instance_slot_data, widget_type },\n beatGuid,\n}: BlockProps<SVGImageBlockData>) => {\n const isFull = widget_type === 'full'\n const { variant, data } = instance_slot\n // An unknown variant (drift with ditto) warns and draws the plain illustration.\n const layoutConfig = resolveVariantConfig(\n getLayoutConfig(instance_slot_data?.isCIBC),\n variant,\n 'savings',\n 'SVGImageBlock',\n )\n\n const savedLabel = typeof data?.saved_label === 'string' ? data.saved_label.trim() : ''\n\n return (\n <Stack alignItems=\"center\" sx={{ width: '100%' }}>\n <ThemedSVGImage image={layoutConfig.image} />\n {layoutConfig.showPicker && isFull && (\n <EmergencySavingsAccountPicker beatGuid={beatGuid} data={data} />\n )}\n {layoutConfig.showSavedLabel &&\n isFull &&\n savedLabel && (\n // Figma 1943:219096: the saved status sits in the card body, under the illustration.\n <Stack sx={{ pt: 24, px: 16, width: '100%' }}>\n <CtaStatus icon=\"check_circle\" label={savedLabel} tone=\"success\" />\n </Stack>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;;;;AAYA,IAAa,IAAA,CAAiB,EAC5B,SAAS,EAAE,eAAA,GAAe,oBAAA,GAAoB,aAAA,EAAA,GAC9C,UAAA,EAAA,MACmC;AACnC,QAAM,IAAS,MAAgB,QACzB,EAAE,SAAA,GAAS,MAAA,EAAA,IAAS,GAEpB,IAAe,EACnB,EAAgB,GAAoB,MAAM,GAC1C,GACA,WACA,eACF,GAEM,IAAa,OAAO,GAAM,eAAgB,WAAW,EAAK,YAAY,KAAK,IAAI;AAErF,SACE,gBAAA,EAAC,GAAD;AAAA,IAAO,YAAW;AAAA,IAAS,IAAI,EAAE,OAAO,OAAO;AAAA,IAA/C,UAAA;AAAA,MACE,gBAAA,EAAC,GAAD,EAAgB,OAAO,EAAa,MAAQ,CAAA;AAAA,MAC3C,EAAa,cAAc,KAC1B,gBAAA,EAAC,GAAD;AAAA,QAAyC,UAAA;AAAA,QAAgB,MAAA;AAAA,MAAO,CAAA;AAAA,MAEjE,EAAa,kBACZ,KACA,KAEE,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI;AAAA,UAAE,IAAI;AAAA,UAAI,IAAI;AAAA,UAAI,OAAO;AAAA,QAAO;AAAA,QACzC,UAAA,gBAAA,EAAC,GAAD;AAAA,UAAW,MAAK;AAAA,UAAe,OAAO;AAAA,UAAY,MAAK;AAAA,QAAW,CAAA;AAAA,MAC7D,CAAA;AAAA,IAEN;AAAA;AAEX"}
|