@mx-cartographer/experiences 9.7.149 → 9.7.151

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/core/types/Insights.d.ts +0 -6
  3. package/dist/core/types/Insights.es.js.map +1 -1
  4. package/dist/core/types/localization/InsightsFeedCopy.d.ts +10 -7
  5. package/dist/core/utils/NumberFormatting.d.ts +2 -0
  6. package/dist/core/utils/NumberFormatting.es.js +18 -17
  7. package/dist/core/utils/NumberFormatting.es.js.map +1 -1
  8. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlock.es.js +57 -57
  9. package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlock.es.js.map +1 -1
  10. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.d.ts +4 -23
  11. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js +95 -72
  12. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js.map +1 -1
  13. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +6 -6
  14. package/dist/insights-v2/blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js +24 -25
  15. package/dist/insights-v2/blocks/ComponentBlocks/SavingsSummaryBlock/SavingsSummaryBlock.es.js.map +1 -1
  16. package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +4 -4
  17. package/dist/insights-v2/index.d.ts +0 -1
  18. package/dist/insights-v2/index.es.js +104 -106
  19. package/dist/insights-v2/mappings/blocks.es.js +1 -0
  20. package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.d.ts +0 -17
  23. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.es.js +0 -24
  24. package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/layout.es.js.map +0 -1
  25. package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js +0 -30
  26. package/dist/insights-v2/components/ComponentBlocks/DepositLogo.es.js.map +0 -1
  27. package/dist/insights-v2/components/DebtPayoffCard.d.ts +0 -48
  28. package/dist/insights-v2/components/DebtPayoffCard.es.js +0 -132
  29. package/dist/insights-v2/components/DebtPayoffCard.es.js.map +0 -1
@@ -1,132 +0,0 @@
1
- import u from "./StatusPill.es.js";
2
- import e from "@mui/material/Stack";
3
- import { Text as o } from "@mxenabled/mxui";
4
- import { Fragment as v, jsx as r, jsxs as t } from "react/jsx-runtime";
5
- import x from "@mui/material/Box";
6
- import y from "@mui/material/Divider";
7
- var w = {
8
- bgcolor: "grey.200",
9
- labelColor: "text.primary"
10
- }, h = (i) => typeof i == "string" ? i : void 0, I = ({ balance: i, balanceLabel: l, bgcolor: m = "background.default", logo: s, name: d, pill: a = w, stats: c = [], statusLabel: p, subtitle: n }) => /* @__PURE__ */ r(e, {
11
- sx: {
12
- px: 16,
13
- width: "100%"
14
- },
15
- children: /* @__PURE__ */ r(x, {
16
- sx: {
17
- bgcolor: m,
18
- borderRadius: "8px",
19
- p: 16,
20
- width: "100%"
21
- },
22
- children: /* @__PURE__ */ t(e, {
23
- sx: {
24
- bgcolor: "background.paper",
25
- border: "1px solid",
26
- borderColor: "divider",
27
- borderRadius: "8px",
28
- gap: 12,
29
- p: 16,
30
- width: "100%"
31
- },
32
- children: [
33
- /* @__PURE__ */ t(e, {
34
- sx: {
35
- alignItems: "center",
36
- flexDirection: "row",
37
- gap: 12
38
- },
39
- children: [
40
- /* @__PURE__ */ r(x, {
41
- sx: {
42
- borderRadius: "4px",
43
- display: "flex",
44
- flexShrink: 0,
45
- height: 40,
46
- overflow: "hidden",
47
- width: 40
48
- },
49
- children: s
50
- }),
51
- /* @__PURE__ */ t(e, {
52
- sx: {
53
- flexGrow: 1,
54
- minWidth: 0
55
- },
56
- children: [/* @__PURE__ */ r(o, {
57
- sx: { fontWeight: 600 },
58
- title: h(d),
59
- truncate: !0,
60
- variant: "body2",
61
- children: d
62
- }), n && /* @__PURE__ */ r(o, {
63
- color: "text.secondary",
64
- title: h(n),
65
- truncate: !0,
66
- variant: "caption",
67
- children: n
68
- })]
69
- }),
70
- p && /* @__PURE__ */ r(u, {
71
- bgcolor: a.bgcolor,
72
- label: p,
73
- labelColor: a.labelColor,
74
- labelVariant: "caption",
75
- sx: {
76
- alignSelf: "center",
77
- border: "none",
78
- flexShrink: 0,
79
- px: 12
80
- }
81
- })
82
- ]
83
- }),
84
- i != null && l != null && /* @__PURE__ */ t(e, { children: [/* @__PURE__ */ r(o, {
85
- color: "text.secondary",
86
- variant: "caption",
87
- children: l
88
- }), /* @__PURE__ */ r(o, {
89
- bold: !0,
90
- color: "text.primary",
91
- component: "p",
92
- variant: "h2",
93
- children: i
94
- })] }),
95
- c.length > 0 && /* @__PURE__ */ t(v, { children: [/* @__PURE__ */ r(y, {}), /* @__PURE__ */ r(e, {
96
- component: "dl",
97
- sx: {
98
- gap: 8,
99
- m: 0
100
- },
101
- children: c.map(({ label: f, value: g }, b) => /* @__PURE__ */ t(e, {
102
- sx: {
103
- alignItems: "baseline",
104
- flexDirection: "row",
105
- gap: 12,
106
- justifyContent: "space-between"
107
- },
108
- children: [/* @__PURE__ */ r(o, {
109
- color: "text.secondary",
110
- component: "dt",
111
- variant: "caption",
112
- children: f
113
- }), /* @__PURE__ */ r(o, {
114
- component: "dd",
115
- sx: {
116
- fontWeight: 600,
117
- m: 0
118
- },
119
- variant: "body2",
120
- children: g
121
- })]
122
- }, b))
123
- })] })
124
- ]
125
- })
126
- })
127
- });
128
- export {
129
- I as default
130
- };
131
-
132
- //# sourceMappingURL=DebtPayoffCard.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DebtPayoffCard.es.js","names":[],"sources":["../../../src/insights-v2/components/DebtPayoffCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport StatusPill from './StatusPill'\n\nexport interface DebtPayoffStat {\n /** Row label, e.g. \"Projected payoff\". */\n label: ReactNode\n /** Pre-formatted row value, e.g. \"Mar 2027\". */\n value: ReactNode\n}\n\nexport interface DebtPayoffPillConfig {\n /** Pill background color token. The pill is borderless. */\n bgcolor: string\n /** Pill label color token. */\n labelColor: string\n}\n\n/**\n * Style props for the card. The Debts block supplies them for its look; the card itself\n * is variant-agnostic. Only what a caller sets today is here; add a knob with its first caller.\n */\nexport interface DebtPayoffCardStyleProps {\n /** Slot surface token behind the white card. Default `background.default`. */\n bgcolor?: string\n /** Status pill color tokens. */\n pill?: DebtPayoffPillConfig\n}\n\ninterface DebtPayoffCardProps extends DebtPayoffCardStyleProps {\n /** Institution/account logo rendered beside the account name. */\n logo: ReactNode\n /** Primary line, e.g. \"Epic Bank Credit *0987\". */\n name: ReactNode\n /** Optional secondary line beneath the name, e.g. \"Credit Card\". */\n subtitle?: ReactNode\n /** Caption above the balance, e.g. \"Current balance\". Rendered only together with `balance`. */\n balanceLabel?: ReactNode\n /** Pre-formatted balance, e.g. \"$4,500.00\". Omitted (with its caption) when unknown. */\n balance?: ReactNode\n /** Label/value rows beneath the balance (payoff date, monthly payment, rate). */\n stats?: DebtPayoffStat[]\n /** Optional status pill label beside the account, e.g. the payoff strategy name. */\n statusLabel?: ReactNode\n}\n\nconst NEUTRAL_PILL: DebtPayoffPillConfig = { bgcolor: 'grey.200', labelColor: 'text.primary' }\n\n/** Native tooltip with the full value for a truncated line, when the value is plain text. */\nconst titleOf = (value: ReactNode) => (typeof value === 'string' ? value : undefined)\n\n/**\n * A debt account card: logo + account name row (with an optional status pill), the current\n * balance, and a divided list of label/value payoff stats, on a tinted slot.\n *\n * Purely presentational — it knows nothing about beats or variants; the Debts block passes\n * the style props for its look.\n */\nconst DebtPayoffCard = ({\n balance,\n balanceLabel,\n bgcolor = 'background.default',\n logo,\n name,\n pill = NEUTRAL_PILL,\n stats = [],\n statusLabel,\n subtitle,\n}: DebtPayoffCardProps) => (\n <Stack sx={{ px: 16, width: '100%' }}>\n <Box sx={{ bgcolor, borderRadius: '8px', p: 16, width: '100%' }}>\n <Stack\n sx={{\n bgcolor: 'background.paper',\n border: '1px solid',\n borderColor: 'divider',\n borderRadius: '8px',\n gap: 12,\n p: 16,\n width: '100%',\n }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12 }}>\n <Box\n sx={{\n borderRadius: '4px',\n display: 'flex',\n flexShrink: 0,\n height: 40,\n overflow: 'hidden',\n width: 40,\n }}\n >\n {logo}\n </Box>\n <Stack sx={{ flexGrow: 1, minWidth: 0 }}>\n <Text sx={{ fontWeight: 600 }} title={titleOf(name)} truncate={true} variant=\"body2\">\n {name}\n </Text>\n {subtitle && (\n <Text\n color=\"text.secondary\"\n title={titleOf(subtitle)}\n truncate={true}\n variant=\"caption\"\n >\n {subtitle}\n </Text>\n )}\n </Stack>\n {statusLabel && (\n <StatusPill\n bgcolor={pill.bgcolor}\n label={statusLabel}\n labelColor={pill.labelColor}\n labelVariant=\"caption\"\n sx={{ alignSelf: 'center', border: 'none', flexShrink: 0, px: 12 }}\n />\n )}\n </Stack>\n\n {balance != null && balanceLabel != null && (\n <Stack>\n <Text color=\"text.secondary\" variant=\"caption\">\n {balanceLabel}\n </Text>\n {/* Display-size figure, not a heading: the feed owns the heading outline. */}\n <Text bold={true} color=\"text.primary\" component=\"p\" variant=\"h2\">\n {balance}\n </Text>\n </Stack>\n )}\n\n {stats.length > 0 && (\n <>\n <Divider />\n <Stack component=\"dl\" sx={{ gap: 8, m: 0 }}>\n {stats.map(({ label, value }, index) => (\n <Stack\n key={index}\n sx={{\n alignItems: 'baseline',\n flexDirection: 'row',\n gap: 12,\n justifyContent: 'space-between',\n }}\n >\n <Text color=\"text.secondary\" component=\"dt\" variant=\"caption\">\n {label}\n </Text>\n <Text component=\"dd\" sx={{ fontWeight: 600, m: 0 }} variant=\"body2\">\n {value}\n </Text>\n </Stack>\n ))}\n </Stack>\n </>\n )}\n </Stack>\n </Box>\n </Stack>\n)\n\nexport default DebtPayoffCard\n"],"mappings":";;;;;;AAoDA,IAAM,IAAqC;AAAA,EAAE,SAAS;AAAA,EAAY,YAAY;AAAe,GAGvF,IAAA,CAAW,MAAsB,OAAO,KAAU,WAAW,IAAQ,QASrE,IAAA,CAAkB,EACtB,SAAA,GACA,cAAA,GACA,SAAA,IAAU,sBACV,MAAA,GACA,MAAA,GACA,MAAA,IAAO,GACP,OAAA,IAAQ,CAAC,GACT,aAAA,GACA,UAAA,EAAA,MAEA,gBAAA,EAAC,GAAD;AAAA,EAAO,IAAI;AAAA,IAAE,IAAI;AAAA,IAAI,OAAO;AAAA,EAAO;AAAA,EACjC,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAK,IAAI;AAAA,MAAE,SAAA;AAAA,MAAS,cAAc;AAAA,MAAO,GAAG;AAAA,MAAI,OAAO;AAAA,IAAO;AAAA,IAC5D,UAAA,gBAAA,EAAC,GAAD;AAAA,MACE,IAAI;AAAA,QACF,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,aAAa;AAAA,QACb,cAAc;AAAA,QACd,KAAK;AAAA,QACL,GAAG;AAAA,QACH,OAAO;AAAA,MACT;AAAA,MATF,UAAA;AAAA,QAWE,gBAAA,EAAC,GAAD;AAAA,UAAO,IAAI;AAAA,YAAE,YAAY;AAAA,YAAU,eAAe;AAAA,YAAO,KAAK;AAAA,UAAG;AAAA,UAAjE,UAAA;AAAA,YACE,gBAAA,EAAC,GAAD;AAAA,cACE,IAAI;AAAA,gBACF,cAAc;AAAA,gBACd,SAAS;AAAA,gBACT,YAAY;AAAA,gBACZ,QAAQ;AAAA,gBACR,UAAU;AAAA,gBACV,OAAO;AAAA,cACT;AAAA,cAEC,UAAA;AAAA,YACE,CAAA;AAAA,Y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