@mx-cartographer/experiences 9.7.197 → 9.7.199-alpha-moratorium
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/core/types/Insights.d.ts +1 -1
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +6 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.es.js +4 -4
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js +4 -4
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.es.js +4 -4
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.es.js +8 -8
- package/dist/insights/components/shared/Charts/EmptyBarChart.es.js +4 -4
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.es.js +4 -4
- package/dist/insights/index.es.js +84 -84
- 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/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/layout.d.ts +1 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +216 -185
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.d.ts +3 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js +12 -11
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListHeaderIconTile.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.d.ts +2 -2
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js +13 -13
- package/dist/insights-v2/actionBlocks/TransactionListBlock/TransactionListSummaryCard.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.d.ts +10 -4
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +78 -71
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- 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/ComponentBlocks/AccountBlock/layout.es.js +30 -24
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- 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 +10 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js +17 -0
- package/dist/insights-v2/blocks/ComponentBlocks/CompactDirectDepositBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +25 -25
- 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/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/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 +5 -3
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js +11 -9
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +28 -27
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -0
- 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/CompactDirectDepositCard.d.ts +26 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js +73 -0
- package/dist/insights-v2/components/CompactDirectDepositCard.es.js.map +1 -0
- package/dist/insights-v2/components/DirectDepositCard.d.ts +6 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +22 -20
- package/dist/insights-v2/components/DirectDepositCard.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/TransactionListCard.d.ts +3 -1
- package/dist/insights-v2/components/TransactionListCard.es.js +25 -25
- 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/index.es.js +120 -116
- package/dist/insights-v2/mappings/blocks.es.js +118 -116
- package/dist/insights-v2/mappings/blocks.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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DirectDepositPillConfig } from './DirectDepositCard';
|
|
3
|
+
export interface CompactDirectDepositCardProps {
|
|
4
|
+
/** Institution/account logo, drawn inline (not overhanging). */
|
|
5
|
+
logo: ReactNode;
|
|
6
|
+
/** Primary line, e.g. "Epic Bank Credit *0987". */
|
|
7
|
+
name: ReactNode;
|
|
8
|
+
/** Optional secondary line, e.g. "Credit Card". */
|
|
9
|
+
subtitle?: ReactNode;
|
|
10
|
+
/** Hero name typography; Missing Interest Rate's mini tile uses `body1`. */
|
|
11
|
+
nameVariant?: 'body1' | 'body2';
|
|
12
|
+
/** Status pill color tokens + optional leading glyph. */
|
|
13
|
+
pill?: DirectDepositPillConfig;
|
|
14
|
+
/** Optional status pill label, e.g. "Unknown Interest Rate (APR)%". */
|
|
15
|
+
statusLabel?: ReactNode;
|
|
16
|
+
/** Slot surface token behind the white card. Default `primary.lighter`. */
|
|
17
|
+
bgcolor?: string;
|
|
18
|
+
/** Decorative wash layered over `bgcolor` (gradient slots). */
|
|
19
|
+
backgroundImage?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The mini-tile Direct Deposit card, rendered by `compact_direct_deposit_block`: the logo inline left
|
|
23
|
+
* of the name, the status pill full width below (Figma: Missing Interest Rate mini, 16769:167465).
|
|
24
|
+
*/
|
|
25
|
+
declare const CompactDirectDepositCard: ({ backgroundImage, bgcolor, logo, name, nameVariant, pill, statusLabel, subtitle, }: CompactDirectDepositCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default CompactDirectDepositCard;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import s from "./StatusPill.es.js";
|
|
2
|
+
import { getLogoElevation as h } from "./logoShadow.es.js";
|
|
3
|
+
import { DIRECT_DEPOSIT_NEUTRAL_PILL as f, directDepositPillIcon as g } from "./DirectDepositCard.es.js";
|
|
4
|
+
import t from "@mui/material/Stack";
|
|
5
|
+
import { Text as n } from "@mxenabled/mxui";
|
|
6
|
+
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
7
|
+
import d from "@mui/material/Box";
|
|
8
|
+
var w = ({ backgroundImage: i, bgcolor: l = "primary.lighter", logo: p, name: x, nameVariant: m = "body2", pill: o = f, statusLabel: a, subtitle: c }) => /* @__PURE__ */ r(d, {
|
|
9
|
+
"data-testid": "compact-direct-deposit-card",
|
|
10
|
+
sx: {
|
|
11
|
+
bgcolor: l,
|
|
12
|
+
...i && { backgroundImage: i },
|
|
13
|
+
px: 16,
|
|
14
|
+
py: 19,
|
|
15
|
+
width: "100%"
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ e(t, {
|
|
18
|
+
sx: {
|
|
19
|
+
bgcolor: "background.paper",
|
|
20
|
+
borderRadius: "8px",
|
|
21
|
+
boxShadow: h,
|
|
22
|
+
gap: 12,
|
|
23
|
+
p: 16,
|
|
24
|
+
width: "100%"
|
|
25
|
+
},
|
|
26
|
+
children: [/* @__PURE__ */ e(t, {
|
|
27
|
+
sx: {
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
flexDirection: "row",
|
|
30
|
+
gap: 12,
|
|
31
|
+
minWidth: 0
|
|
32
|
+
},
|
|
33
|
+
children: [/* @__PURE__ */ r(d, {
|
|
34
|
+
sx: {
|
|
35
|
+
display: "flex",
|
|
36
|
+
flexShrink: 0
|
|
37
|
+
},
|
|
38
|
+
children: p
|
|
39
|
+
}), /* @__PURE__ */ e(t, {
|
|
40
|
+
sx: { minWidth: 0 },
|
|
41
|
+
children: [/* @__PURE__ */ r(n, {
|
|
42
|
+
sx: { fontWeight: 600 },
|
|
43
|
+
truncate: !0,
|
|
44
|
+
variant: m,
|
|
45
|
+
children: x
|
|
46
|
+
}), c && /* @__PURE__ */ r(n, {
|
|
47
|
+
color: "text.secondary",
|
|
48
|
+
truncate: !0,
|
|
49
|
+
variant: "caption",
|
|
50
|
+
children: c
|
|
51
|
+
})]
|
|
52
|
+
})]
|
|
53
|
+
}), a && /* @__PURE__ */ r(s, {
|
|
54
|
+
bgcolor: o.bgcolor,
|
|
55
|
+
borderColor: o.borderColor,
|
|
56
|
+
icon: g(o),
|
|
57
|
+
label: a,
|
|
58
|
+
labelColor: o.labelColor,
|
|
59
|
+
sx: {
|
|
60
|
+
alignSelf: "stretch",
|
|
61
|
+
border: "none",
|
|
62
|
+
gap: 4,
|
|
63
|
+
justifyContent: "center",
|
|
64
|
+
px: 12
|
|
65
|
+
}
|
|
66
|
+
})]
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
export {
|
|
70
|
+
w as default
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=CompactDirectDepositCard.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompactDirectDepositCard.es.js","names":[],"sources":["../../../src/insights-v2/components/CompactDirectDepositCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport {\n DIRECT_DEPOSIT_NEUTRAL_PILL,\n directDepositPillIcon,\n type DirectDepositPillConfig,\n} from './DirectDepositCard'\nimport { getLogoElevation } from './logoShadow'\nimport StatusPill from './StatusPill'\n\nexport interface CompactDirectDepositCardProps {\n /** Institution/account logo, drawn inline (not overhanging). */\n logo: ReactNode\n /** Primary line, e.g. \"Epic Bank Credit *0987\". */\n name: ReactNode\n /** Optional secondary line, e.g. \"Credit Card\". */\n subtitle?: ReactNode\n /** Hero name typography; Missing Interest Rate's mini tile uses `body1`. */\n nameVariant?: 'body1' | 'body2'\n /** Status pill color tokens + optional leading glyph. */\n pill?: DirectDepositPillConfig\n /** Optional status pill label, e.g. \"Unknown Interest Rate (APR)%\". */\n statusLabel?: ReactNode\n /** Slot surface token behind the white card. Default `primary.lighter`. */\n bgcolor?: string\n /** Decorative wash layered over `bgcolor` (gradient slots). */\n backgroundImage?: string\n}\n\n/**\n * The mini-tile Direct Deposit card, rendered by `compact_direct_deposit_block`: the logo inline left\n * of the name, the status pill full width below (Figma: Missing Interest Rate mini, 16769:167465).\n */\nconst CompactDirectDepositCard = ({\n backgroundImage,\n bgcolor = 'primary.lighter',\n logo,\n name,\n nameVariant = 'body2',\n pill = DIRECT_DEPOSIT_NEUTRAL_PILL,\n statusLabel,\n subtitle,\n}: CompactDirectDepositCardProps) => (\n <Box\n data-testid=\"compact-direct-deposit-card\"\n sx={{\n bgcolor,\n ...(backgroundImage && { backgroundImage }),\n px: 16,\n py: 19,\n width: '100%',\n }}\n >\n <Stack\n sx={{\n bgcolor: 'background.paper',\n borderRadius: '8px',\n boxShadow: getLogoElevation,\n gap: 12,\n p: 16,\n width: '100%',\n }}\n >\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12, minWidth: 0 }}>\n <Box sx={{ display: 'flex', flexShrink: 0 }}>{logo}</Box>\n <Stack sx={{ minWidth: 0 }}>\n <Text sx={{ fontWeight: 600 }} truncate={true} variant={nameVariant}>\n {name}\n </Text>\n {subtitle && (\n <Text color=\"text.secondary\" truncate={true} variant=\"caption\">\n {subtitle}\n </Text>\n )}\n </Stack>\n </Stack>\n {statusLabel && (\n <StatusPill\n bgcolor={pill.bgcolor}\n borderColor={pill.borderColor}\n icon={directDepositPillIcon(pill)}\n label={statusLabel}\n labelColor={pill.labelColor}\n // Figma pill geometry: 24px tall, 12px side padding, 4px glyph gap, no stroke, full\n // width and centred on the tile (vs. DirectDepositCard's left-aligned, intrinsic-width pill).\n sx={{ alignSelf: 'stretch', border: 'none', gap: 4, justifyContent: 'center', px: 12 }}\n />\n )}\n </Stack>\n </Box>\n)\n\nexport default CompactDirectDepositCard\n"],"mappings":";;;;;;;AAsCA,IAAM,IAAA,CAA4B,EAChC,iBAAA,GACA,SAAA,IAAU,mBACV,MAAA,GACA,MAAA,GACA,aAAA,IAAc,SACd,MAAA,IAAO,GACP,aAAA,GACA,UAAA,EAAA,MAEA,gBAAA,EAAC,GAAD;AAAA,EACE,eAAY;AAAA,EACZ,IAAI;AAAA,IACF,SAAA;AAAA,IACA,GAAI,KAAmB,EAAE,iBAAA,EAAgB;AAAA,IACzC,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,OAAO;AAAA,EACT;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,SAAS;AAAA,MACT,cAAc;AAAA,MACd,WAAW;AAAA,MACX,KAAK;AAAA,MACL,GAAG;AAAA,MACH,OAAO;AAAA,IACT;AAAA,IARF,UAAA,CAUE,gBAAA,EAAC,GAAD;AAAA,MAAO,IAAI;AAAA,QAAE,YAAY;AAAA,QAAU,eAAe;AAAA,QAAO,KAAK;AAAA,QAAI,UAAU;AAAA,MAAE;AAAA,MAA9E,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,QAAK,IAAI;AAAA,UAAE,SAAS;AAAA,UAAQ,YAAY;AAAA,QAAE;AAAA,QAAI,UAAA;AAAA,MAAU,CAAA,GACxD,gBAAA,EAAC,GAAD;AAAA,QAAO,IAAI,EAAE,UAAU,EAAE;AAAA,QAAzB,UAAA,CACE,gBAAA,EAAC,GAAD;AAAA,UAAM,IAAI,EAAE,YAAY,IAAI;AAAA,UAAG,UAAU;AAAA,UAAM,SAAS;AAAA,UACrD,UAAA;AAAA,QACG,CAAA,GACL,KACC,gBAAA,EAAC,GAAD;AAAA,UAAM,OAAM;AAAA,UAAiB,UAAU;AAAA,UAAM,SAAQ;AAAA,UAClD,UAAA;AAAA,QACG,CAAA,CAEH;AAAA,MACF,CAAA,CAAA;AAAA,IACN,CAAA,GAAA,KACC,gBAAA,EAAC,GAAD;AAAA,MACE,SAAS,EAAK;AAAA,MACd,aAAa,EAAK;AAAA,MAClB,MAAM,EAAsB,CAAI;AAAA,MAChC,OAAO;AAAA,MACP,YAAY,EAAK;AAAA,MAGjB,IAAI;AAAA,QAAE,WAAW;AAAA,QAAW,QAAQ;AAAA,QAAQ,KAAK;AAAA,QAAG,gBAAgB;AAAA,QAAU,IAAI;AAAA,MAAG;AAAA,IACtF,CAAA,CAEE;AAAA;AACJ,CAAA"}
|
|
@@ -25,6 +25,10 @@ export interface DirectDepositCardStyleProps {
|
|
|
25
25
|
/** Status pill color tokens + optional leading glyph. */
|
|
26
26
|
pill?: DirectDepositPillConfig;
|
|
27
27
|
}
|
|
28
|
+
/** The default pill when a caller passes none, shared by `DirectDepositCard` and `CompactDirectDepositCard`. */
|
|
29
|
+
export declare const DIRECT_DEPOSIT_NEUTRAL_PILL: DirectDepositPillConfig;
|
|
30
|
+
/** The pill's leading glyph, shared by `DirectDepositCard` and `CompactDirectDepositCard`. */
|
|
31
|
+
export declare const directDepositPillIcon: (pill: DirectDepositPillConfig) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
28
32
|
interface DirectDepositCardProps extends DirectDepositCardStyleProps {
|
|
29
33
|
/** Institution/account logo, rendered overhanging the hero card's top edge. */
|
|
30
34
|
logo: ReactNode;
|
|
@@ -42,7 +46,8 @@ interface DirectDepositCardProps extends DirectDepositCardStyleProps {
|
|
|
42
46
|
*
|
|
43
47
|
* Purely presentational — it knows nothing about beats or variants. The Direct
|
|
44
48
|
* Deposit block resolves `instance_slot.variant` to these style props via its
|
|
45
|
-
* `layout.ts` (`getLayoutConfig`).
|
|
49
|
+
* `layout.ts` (`getLayoutConfig`). The mini tile is `CompactDirectDepositCard`,
|
|
50
|
+
* a separate component — not a mode of this one.
|
|
46
51
|
*/
|
|
47
52
|
declare const DirectDepositCard: ({ backgroundImage, bgcolor, logo, name, nameVariant, pill, showConfetti, statusLabel, subtitle, }: DirectDepositCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
53
|
export default DirectDepositCard;
|
|
@@ -2,40 +2,42 @@ import m from "./StatusPill.es.js";
|
|
|
2
2
|
import n from "./AccountHeroCard.es.js";
|
|
3
3
|
import { ConfettiOverlay as C } from "./shared/ConfettiOverlay.es.js";
|
|
4
4
|
import { Icon as s } from "@mxenabled/mx-icons";
|
|
5
|
-
import { jsx as
|
|
6
|
-
var
|
|
5
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
6
|
+
var p = {
|
|
7
7
|
bgcolor: "grey.200",
|
|
8
8
|
borderColor: "grey.200",
|
|
9
9
|
labelColor: "text.primary"
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
}, f = (o) => o.icon ? /* @__PURE__ */ e(s, {
|
|
11
|
+
"aria-hidden": !0,
|
|
12
|
+
"data-testid": "pill-icon",
|
|
13
|
+
name: o.icon,
|
|
14
|
+
size: 16,
|
|
15
|
+
sx: { color: o.labelColor }
|
|
16
|
+
}) : void 0, D = ({ backgroundImage: o, bgcolor: a = "primary.lighter", logo: i, name: l, nameVariant: d = "body2", pill: r = p, showConfetti: c = !1, statusLabel: t, subtitle: b }) => /* @__PURE__ */ e(n, {
|
|
17
|
+
backdrop: c ? /* @__PURE__ */ e(C, {}) : void 0,
|
|
18
|
+
backgroundImage: o,
|
|
19
|
+
bgcolor: a,
|
|
14
20
|
logo: i,
|
|
15
21
|
name: l,
|
|
16
22
|
nameVariant: d,
|
|
17
|
-
status:
|
|
18
|
-
bgcolor:
|
|
19
|
-
borderColor:
|
|
20
|
-
icon:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
name: o.icon,
|
|
24
|
-
size: 16,
|
|
25
|
-
sx: { color: o.labelColor }
|
|
26
|
-
}) : void 0,
|
|
27
|
-
label: e,
|
|
28
|
-
labelColor: o.labelColor,
|
|
23
|
+
status: t ? /* @__PURE__ */ e(m, {
|
|
24
|
+
bgcolor: r.bgcolor,
|
|
25
|
+
borderColor: r.borderColor,
|
|
26
|
+
icon: f(r),
|
|
27
|
+
label: t,
|
|
28
|
+
labelColor: r.labelColor,
|
|
29
29
|
sx: {
|
|
30
30
|
border: "none",
|
|
31
31
|
gap: 4,
|
|
32
32
|
px: 12
|
|
33
33
|
}
|
|
34
34
|
}) : void 0,
|
|
35
|
-
subtitle:
|
|
35
|
+
subtitle: b
|
|
36
36
|
});
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
p as DIRECT_DEPOSIT_NEUTRAL_PILL,
|
|
39
|
+
D as default,
|
|
40
|
+
f as directDepositPillIcon
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
//# sourceMappingURL=DirectDepositCard.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectDepositCard.es.js","names":[],"sources":["../../../src/insights-v2/components/DirectDepositCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport AccountHeroCard from './AccountHeroCard'\nimport StatusPill from './StatusPill'\n\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\nexport interface DirectDepositPillConfig {\n /** Pill background color token. */\n bgcolor: string\n /** Pill border color token. */\n borderColor: string\n /** Pill label color token. */\n labelColor: string\n /** Optional mx-icons glyph rendered before the label (e.g. `check_circle`). */\n icon?: string\n}\n\n/**\n * Style props for the card. Variant-specific values live in the Direct Deposit\n * block's `layout.ts` (`getLayoutConfig`) — the card itself is variant-agnostic.\n */\nexport interface DirectDepositCardStyleProps {\n /** Slot surface token behind the white hero card. Default `primary.lighter`. */\n bgcolor?: string\n /** Decorative wash layered over `bgcolor` (celebration/gradient slots). */\n backgroundImage?: string\n /** Confetti burst behind the hero card (complete states). */\n showConfetti?: boolean\n /** Hero name typography. Default `body2` (13/16); rate variants use `body1` (15/20). */\n nameVariant?: 'body1' | 'body2'\n /** Status pill color tokens + optional leading glyph. */\n pill?: DirectDepositPillConfig\n}\n\
|
|
1
|
+
{"version":3,"file":"DirectDepositCard.es.js","names":[],"sources":["../../../src/insights-v2/components/DirectDepositCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport { Icon } from '@mxenabled/mx-icons'\n\nimport AccountHeroCard from './AccountHeroCard'\nimport StatusPill from './StatusPill'\n\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\nexport interface DirectDepositPillConfig {\n /** Pill background color token. */\n bgcolor: string\n /** Pill border color token. */\n borderColor: string\n /** Pill label color token. */\n labelColor: string\n /** Optional mx-icons glyph rendered before the label (e.g. `check_circle`). */\n icon?: string\n}\n\n/**\n * Style props for the card. Variant-specific values live in the Direct Deposit\n * block's `layout.ts` (`getLayoutConfig`) — the card itself is variant-agnostic.\n */\nexport interface DirectDepositCardStyleProps {\n /** Slot surface token behind the white hero card. Default `primary.lighter`. */\n bgcolor?: string\n /** Decorative wash layered over `bgcolor` (celebration/gradient slots). */\n backgroundImage?: string\n /** Confetti burst behind the hero card (complete states). */\n showConfetti?: boolean\n /** Hero name typography. Default `body2` (13/16); rate variants use `body1` (15/20). */\n nameVariant?: 'body1' | 'body2'\n /** Status pill color tokens + optional leading glyph. */\n pill?: DirectDepositPillConfig\n}\n\n/** The default pill when a caller passes none, shared by `DirectDepositCard` and `CompactDirectDepositCard`. */\nexport const DIRECT_DEPOSIT_NEUTRAL_PILL: DirectDepositPillConfig = {\n bgcolor: 'grey.200',\n borderColor: 'grey.200',\n labelColor: 'text.primary',\n}\n\n/** The pill's leading glyph, shared by `DirectDepositCard` and `CompactDirectDepositCard`. */\nexport const directDepositPillIcon = (pill: DirectDepositPillConfig) =>\n pill.icon ? (\n <Icon\n aria-hidden={true}\n data-testid=\"pill-icon\"\n name={pill.icon}\n size={16}\n sx={{ color: pill.labelColor }}\n />\n ) : undefined\n\ninterface DirectDepositCardProps extends DirectDepositCardStyleProps {\n /** Institution/account logo, rendered overhanging the hero card's top edge. */\n logo: ReactNode\n /** Primary line, e.g. \"Epic Bank Checking, *1234\". */\n name: ReactNode\n /** Optional secondary line, e.g. \"Checking Account\" / \"Credit Card\". */\n subtitle?: ReactNode\n /** Optional status pill label, e.g. \"Direct Deposit Not Set Up\". */\n statusLabel?: ReactNode\n}\n\n/**\n * The basic Direct Deposit hero card: an overhanging logo above a white card\n * with a name, optional subtitle, and a status pill, over a tinted/gradient\n * slot with an optional confetti backdrop.\n *\n * Purely presentational — it knows nothing about beats or variants. The Direct\n * Deposit block resolves `instance_slot.variant` to these style props via its\n * `layout.ts` (`getLayoutConfig`). The mini tile is `CompactDirectDepositCard`,\n * a separate component — not a mode of this one.\n */\nconst DirectDepositCard = ({\n backgroundImage,\n bgcolor = 'primary.lighter',\n logo,\n name,\n nameVariant = 'body2',\n pill = DIRECT_DEPOSIT_NEUTRAL_PILL,\n showConfetti = false,\n statusLabel,\n subtitle,\n}: DirectDepositCardProps) => {\n return (\n <AccountHeroCard\n backdrop={showConfetti ? <ConfettiOverlay /> : undefined}\n backgroundImage={backgroundImage}\n bgcolor={bgcolor}\n logo={logo}\n name={name}\n nameVariant={nameVariant}\n status={\n statusLabel ? (\n <StatusPill\n bgcolor={pill.bgcolor}\n borderColor={pill.borderColor}\n icon={directDepositPillIcon(pill)}\n label={statusLabel}\n labelColor={pill.labelColor}\n // Figma pill geometry: 24px tall, 12px side padding, 4px glyph gap, no stroke\n // (StatusPill defaults draw a 1px border, 16px padding and a 6px gap).\n sx={{ border: 'none', gap: 4, px: 12 }}\n />\n ) : undefined\n }\n subtitle={subtitle}\n />\n )\n}\n\nexport default DirectDepositCard\n"],"mappings":";;;;;AAsCA,IAAa,IAAuD;AAAA,EAClE,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AACd,GAGa,IAAA,CAAyB,MACpC,EAAK,OACH,gBAAA,EAAC,GAAD;AAAA,EACE,eAAa;AAAA,EACb,eAAY;AAAA,EACZ,MAAM,EAAK;AAAA,EACX,MAAM;AAAA,EACN,IAAI,EAAE,OAAO,EAAK,WAAW;AAC9B,CAAA,IACC,QAuBA,IAAA,CAAqB,EACzB,iBAAA,GACA,SAAA,IAAU,mBACV,MAAA,GACA,MAAA,GACA,aAAA,IAAc,SACd,MAAA,IAAO,GACP,cAAA,IAAe,IACf,aAAA,GACA,UAAA,EAAA,MAGE,gBAAA,EAAC,GAAD;AAAA,EACE,UAAU,IAAe,gBAAA,EAAC,GAAD,CAAkB,CAAA,IAAI;AAAA,EAC9B,iBAAA;AAAA,EACR,SAAA;AAAA,EACH,MAAA;AAAA,EACA,MAAA;AAAA,EACO,aAAA;AAAA,EACb,QACE,IACE,gBAAA,EAAC,GAAD;AAAA,IACE,SAAS,EAAK;AAAA,IACd,aAAa,EAAK;AAAA,IAClB,MAAM,EAAsB,CAAI;AAAA,IAChC,OAAO;AAAA,IACP,YAAY,EAAK;AAAA,IAGjB,IAAI;AAAA,MAAE,QAAQ;AAAA,MAAQ,KAAK;AAAA,MAAG,IAAI;AAAA,IAAG;AAAA,EACtC,CAAA,IACC;AAAA,EAEI,UAAA;AACX,CAAA"}
|
|
@@ -3,7 +3,7 @@ export declare const isLogoGuid: (guid?: string | null) => guid is string;
|
|
|
3
3
|
export interface LogoFromGuidProps {
|
|
4
4
|
/** The envelope's logo object: `{ guid, fallback_guid?, alt?, color? }` (`color` is read for `ICO-` icons). */
|
|
5
5
|
logo?: Pick<LogoRef, 'alt' | 'color' | 'fallback_guid' | 'guid'> | null;
|
|
6
|
-
/** Rendered square size in px (32 on rows
|
|
6
|
+
/** Rendered square size in px (32 on rows and the mini direct deposit tile, 33 on the notification row). */
|
|
7
7
|
size: number;
|
|
8
8
|
className?: string;
|
|
9
9
|
/** A category tile's tint: its colour at this opacity behind the glyph, bordered in it (budget tiles). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoFromGuid.es.js","names":[],"sources":["../../../src/insights-v2/components/LogoFromGuid.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\n\nimport type { LogoRef } from '../../core'\nimport LogoMark, { isKnownIcon } from './LogoMark'\nimport { logoFromRef } from './shared/EntityLogo'\n\n/**\n * The guid prefixes that name a logo entity. A prefix heuristic by design: the V2 envelope carries\n * the entity only in the guid, and the notification row relies on non-insight rows carrying account\n * or budget guids and legacy insight rows carrying the `\"PARENT-ENTITY\"` sentinel. Exported beside\n * the component so a caller's branch (`NotificationCard`) and the dispatch here cannot drift apart.\n */\nconst LOGO_GUID_PREFIX = /^(MCH|CAT|INS)-|^ICO-[a-z0-9_-]+$/\n\nexport const isLogoGuid = (guid?: string | null): guid is string =>\n !!guid && LOGO_GUID_PREFIX.test(guid)\n\nexport interface LogoFromGuidProps {\n /** The envelope's logo object: `{ guid, fallback_guid?, alt?, color? }` (`color` is read for `ICO-` icons). */\n logo?: Pick<LogoRef, 'alt' | 'color' | 'fallback_guid' | 'guid'> | null\n /** Rendered square size in px (32 on rows
|
|
1
|
+
{"version":3,"file":"LogoFromGuid.es.js","names":[],"sources":["../../../src/insights-v2/components/LogoFromGuid.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\n\nimport type { LogoRef } from '../../core'\nimport LogoMark, { isKnownIcon } from './LogoMark'\nimport { logoFromRef } from './shared/EntityLogo'\n\n/**\n * The guid prefixes that name a logo entity. A prefix heuristic by design: the V2 envelope carries\n * the entity only in the guid, and the notification row relies on non-insight rows carrying account\n * or budget guids and legacy insight rows carrying the `\"PARENT-ENTITY\"` sentinel. Exported beside\n * the component so a caller's branch (`NotificationCard`) and the dispatch here cannot drift apart.\n */\nconst LOGO_GUID_PREFIX = /^(MCH|CAT|INS)-|^ICO-[a-z0-9_-]+$/\n\nexport const isLogoGuid = (guid?: string | null): guid is string =>\n !!guid && LOGO_GUID_PREFIX.test(guid)\n\nexport interface LogoFromGuidProps {\n /** The envelope's logo object: `{ guid, fallback_guid?, alt?, color? }` (`color` is read for `ICO-` icons). */\n logo?: Pick<LogoRef, 'alt' | 'color' | 'fallback_guid' | 'guid'> | null\n /** Rendered square size in px (32 on rows and the mini direct deposit tile, 33 on the notification row). */\n size: number\n className?: string\n /** A category tile's tint: its colour at this opacity behind the glyph, bordered in it (budget tiles). */\n categoryTint?: number\n}\n\n/**\n * One component for every V2 logo. The envelope sends a single `{ guid, fallback_guid?, alt? }`\n * object whose prefix says what it is; anything else (`PARENT-ENTITY`, an `ACT-`/`BGT-` guid, an\n * empty guid) renders nothing, never a guess. The asset → category tile → `alt` fallback is mxui's.\n */\nconst LogoFromGuid = ({ categoryTint, className, logo, size }: LogoFromGuidProps) => {\n if (!logo || !isLogoGuid(logo.guid)) return null\n\n // Guid-only on purpose: `logoFromRef` lets a status `icon` win over `guid`, which is right for a\n // row but would silently turn this component into an icon renderer.\n const resolved = logoFromRef({\n alt: logo.alt,\n color: logo.color,\n fallback_guid: logo.fallback_guid,\n guid: logo.guid,\n })\n\n if (!resolved) return null\n\n // Checked before the sized box, so an unknown icon leaves no empty gap.\n if (resolved.logo_name && !isKnownIcon(resolved.logo_name)) return null\n\n return (\n <Box\n className={className}\n data-testid=\"logo-from-guid\"\n sx={{\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n height: size,\n justifyContent: 'center',\n width: size,\n }}\n >\n <LogoMark categoryTint={categoryTint} logo={resolved} size={size} />\n </Box>\n )\n}\n\nexport default LogoFromGuid\n"],"mappings":";;;;AAYA,IAAM,IAAmB,qCAEZ,IAAA,CAAc,MACzB,CAAC,CAAC,KAAQ,EAAiB,KAAK,CAAI,GAiBhC,IAAA,CAAgB,EAAE,cAAA,GAAc,WAAA,GAAW,MAAA,GAAM,MAAA,EAAA,MAA8B;AACnF,MAAI,CAAC,KAAQ,CAAC,EAAW,EAAK,IAAI,EAAG,QAAO;AAI5C,QAAM,IAAW,EAAY;AAAA,IAC3B,KAAK,EAAK;AAAA,IACV,OAAO,EAAK;AAAA,IACZ,eAAe,EAAK;AAAA,IACpB,MAAM,EAAK;AAAA,EACb,CAAC;AAKD,SAHI,CAAC,KAGD,EAAS,aAAa,CAAC,EAAY,EAAS,SAAS,IAAU,OAGjE,gBAAA,EAAC,GAAD;AAAA,IACa,WAAA;AAAA,IACX,eAAY;AAAA,IACZ,IAAI;AAAA,MACF,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,OAAO;AAAA,IACT;AAAA,IAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,MAAwB,cAAA;AAAA,MAAc,MAAM;AAAA,MAAgB,MAAA;AAAA,IAAO,CAAA;AAAA,EAChE,CAAA;AAET"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import N from "./
|
|
2
|
-
import R from "./
|
|
1
|
+
import N from "./AmountPill.es.js";
|
|
2
|
+
import R from "./LogoTile.es.js";
|
|
3
3
|
import i from "@mui/material/Stack";
|
|
4
4
|
import { Text as o } from "@mxenabled/mxui";
|
|
5
5
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
var H = ({ amount: t, amountPill: n, amountVariant: l = "text", background: d, bgcolor: x = "grey.200", borderColor: a, eyebrow: h, fullBleed: c = !1, gap: p = 16, logo: f, logoBorderColor: m, logoRadius: g, logoShadow: u = !0, logoSize: v, name: W, nameVariant: w, trailing: y, sx: b }) => {
|
|
7
7
|
const j = w ?? (l === "pill" ? "h2" : "h3");
|
|
8
8
|
let e = y;
|
|
9
|
-
return e == null && t != null && (e = l === "pill" ? /* @__PURE__ */ r(
|
|
9
|
+
return e == null && t != null && (e = l === "pill" ? /* @__PURE__ */ r(N, {
|
|
10
10
|
fontWeight: n?.fontWeight,
|
|
11
11
|
px: n?.px,
|
|
12
12
|
children: t
|
|
@@ -34,7 +34,7 @@ var H = ({ amount: t, amountPill: n, amountVariant: l = "text", background: d, b
|
|
|
34
34
|
p: 16,
|
|
35
35
|
width: "100%"
|
|
36
36
|
},
|
|
37
|
-
children: [/* @__PURE__ */ r(
|
|
37
|
+
children: [/* @__PURE__ */ r(R, {
|
|
38
38
|
borderColor: m,
|
|
39
39
|
borderRadius: g,
|
|
40
40
|
shadow: u,
|
|
@@ -12,6 +12,8 @@ interface TransactionListCardProps {
|
|
|
12
12
|
header?: ReactNode;
|
|
13
13
|
/** Theme colour for the header label, over the variant's own. */
|
|
14
14
|
headerColor?: string;
|
|
15
|
+
/** The header label in the regular weight instead of the `default` variant's bold; no effect on `primary`. */
|
|
16
|
+
headerRegular?: boolean;
|
|
15
17
|
/** One or more transaction rows. */
|
|
16
18
|
rows: InsightTransactionRowProps[];
|
|
17
19
|
/** Optional summary/total row rendered beneath a divider. */
|
|
@@ -49,5 +51,5 @@ interface TransactionListCardProps {
|
|
|
49
51
|
*
|
|
50
52
|
* Scope is the Content section only; Header/Description are out of scope.
|
|
51
53
|
*/
|
|
52
|
-
declare const TransactionListCard: ({ background, badge, elevated, footer, header, headerColor, raised, rows, variant, sx, }: TransactionListCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
54
|
+
declare const TransactionListCard: ({ background, badge, elevated, footer, header, headerColor, headerRegular, raised, rows, variant, sx, }: TransactionListCardProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
53
55
|
export default TransactionListCard;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ELEVATION_SHADOW as
|
|
2
|
-
import
|
|
3
|
-
import { Fragment as
|
|
1
|
+
import { ELEVATION_SHADOW as S } from "./shared/elevation.es.js";
|
|
2
|
+
import L from "./InsightTransactionRow.es.js";
|
|
3
|
+
import { Fragment as j } from "react";
|
|
4
4
|
import d from "@mui/material/Stack";
|
|
5
5
|
import { Text as m } from "@mxenabled/mxui";
|
|
6
|
-
import { Fragment as g, jsx as r, jsxs as
|
|
6
|
+
import { Fragment as g, jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import B from "@mui/material/Box";
|
|
8
8
|
import u from "@mui/material/Divider";
|
|
9
|
-
var
|
|
9
|
+
var H = (n) => n === "primary" ? {
|
|
10
10
|
radius: "8px",
|
|
11
11
|
borderColor: "primary.main",
|
|
12
12
|
headerBg: "primary.main",
|
|
@@ -30,21 +30,21 @@ var j = (n) => n === "primary" ? {
|
|
|
30
30
|
px: 16,
|
|
31
31
|
py: 2
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, N = ({ background: n, badge: c, elevated: y = !1, footer: l, header: i, headerColor: C, headerRegular: v = !1, raised: w = !1, rows: x, variant: f = "default", sx: R }) => {
|
|
34
34
|
if (x.length === 0) return null;
|
|
35
|
-
const e =
|
|
35
|
+
const e = H(f), o = !!n, t = o ? "8px" : e.radius, s = !!i && !o && e.headerInsideBorder, T = f === "default" ? C ?? e.headerColor : e.headerColor, h = i ? /* @__PURE__ */ r(d, {
|
|
36
36
|
sx: {
|
|
37
37
|
bgcolor: e.headerBg,
|
|
38
38
|
justifyContent: "center",
|
|
39
39
|
...e.headerSx
|
|
40
40
|
},
|
|
41
41
|
children: /* @__PURE__ */ r(m, {
|
|
42
|
-
color:
|
|
43
|
-
sx: e.headerBold ? { fontWeight: 700 } : void 0,
|
|
42
|
+
color: T,
|
|
43
|
+
sx: e.headerBold ? { fontWeight: v ? 400 : 700 } : void 0,
|
|
44
44
|
variant: "caption",
|
|
45
|
-
children:
|
|
45
|
+
children: i
|
|
46
46
|
})
|
|
47
|
-
}) : null,
|
|
47
|
+
}) : null, k = l ? /* @__PURE__ */ a(g, { children: [/* @__PURE__ */ r(u, {}), /* @__PURE__ */ a(d, {
|
|
48
48
|
sx: {
|
|
49
49
|
alignItems: "center",
|
|
50
50
|
bgcolor: o ? "background.paper" : "background.default",
|
|
@@ -64,15 +64,15 @@ var j = (n) => n === "primary" ? {
|
|
|
64
64
|
variant: "body2",
|
|
65
65
|
children: l.amount
|
|
66
66
|
})]
|
|
67
|
-
})] }) : null,
|
|
67
|
+
})] }) : null, I = /* @__PURE__ */ r(d, {
|
|
68
68
|
role: "list",
|
|
69
69
|
sx: { width: "100%" },
|
|
70
|
-
children: x.map((p, b) => /* @__PURE__ */
|
|
70
|
+
children: x.map((p, b) => /* @__PURE__ */ a(j, { children: [b > 0 && /* @__PURE__ */ r(u, { role: "presentation" }), /* @__PURE__ */ r(B, {
|
|
71
71
|
role: "listitem",
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r(L, { ...p })
|
|
73
73
|
})] }, b))
|
|
74
74
|
});
|
|
75
|
-
return /* @__PURE__ */
|
|
75
|
+
return /* @__PURE__ */ a(d, {
|
|
76
76
|
"data-testid": "transaction-list-card",
|
|
77
77
|
sx: {
|
|
78
78
|
...o ? {
|
|
@@ -84,7 +84,7 @@ var j = (n) => n === "primary" ? {
|
|
|
84
84
|
},
|
|
85
85
|
...o && c ? { position: "relative" } : {},
|
|
86
86
|
width: "100%",
|
|
87
|
-
...
|
|
87
|
+
...R
|
|
88
88
|
},
|
|
89
89
|
children: [
|
|
90
90
|
o && c && /* @__PURE__ */ r(B, {
|
|
@@ -104,15 +104,15 @@ var j = (n) => n === "primary" ? {
|
|
|
104
104
|
},
|
|
105
105
|
children: h
|
|
106
106
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ a(d, {
|
|
108
108
|
sx: {
|
|
109
109
|
...o ? {
|
|
110
110
|
bgcolor: "background.paper",
|
|
111
111
|
...y && {
|
|
112
112
|
backgroundImage: (p) => p.vars?.overlays?.[1] ?? "none",
|
|
113
|
-
boxShadow:
|
|
113
|
+
boxShadow: S[1]
|
|
114
114
|
},
|
|
115
|
-
...
|
|
115
|
+
...w && {
|
|
116
116
|
border: "1px solid",
|
|
117
117
|
borderColor: "divider",
|
|
118
118
|
boxShadow: 1
|
|
@@ -123,22 +123,22 @@ var j = (n) => n === "primary" ? {
|
|
|
123
123
|
},
|
|
124
124
|
borderBottomLeftRadius: t,
|
|
125
125
|
borderBottomRightRadius: t,
|
|
126
|
-
borderTopLeftRadius: s || !
|
|
127
|
-
borderTopRightRadius: s || !
|
|
126
|
+
borderTopLeftRadius: s || !i ? t : 0,
|
|
127
|
+
borderTopRightRadius: s || !i ? t : 0,
|
|
128
128
|
overflow: "hidden",
|
|
129
129
|
width: "100%"
|
|
130
130
|
},
|
|
131
131
|
children: [
|
|
132
|
-
s && /* @__PURE__ */
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
s && /* @__PURE__ */ a(g, { children: [h, /* @__PURE__ */ r(u, {})] }),
|
|
133
|
+
I,
|
|
134
|
+
k
|
|
135
135
|
]
|
|
136
136
|
})
|
|
137
137
|
]
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
N as default
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
//# sourceMappingURL=TransactionListCard.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionListCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransactionListCard.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport InsightTransactionRow, { type InsightTransactionRowProps } from './InsightTransactionRow'\nimport { ELEVATION_SHADOW } from './shared/elevation'\n\nexport interface FooterRow {\n label: ReactNode\n amount: ReactNode\n amountColor?: string\n}\n\ntype TransactionListCardVariant = 'default' | 'primary'\n\ninterface TransactionListCardProps {\n /** Optional header label above the rows (e.g. \"{Date}\", \"3 transactions\"). */\n header?: ReactNode\n /** Theme colour for the header label, over the variant's own. */\n headerColor?: string\n /** One or more transaction rows. */\n rows: InsightTransactionRowProps[]\n /** Optional summary/total row rendered beneath a divider. */\n footer?: FooterRow\n /**\n * Card style:\n * - `default` — grey utility header, hairline border, radius 4.\n * - `primary` — filled `primary.main` header with white text and a matching\n * border, radius 8 (Figma \"Multi\" variant).\n *\n * In both cases the header is borderless; the border wraps the content block\n * below it.\n */\n variant?: TransactionListCardVariant\n /**\n * Optional background applied to the Slot behind the card. Must be a valid CSS\n * background string (gradient or color in CSS format); MUI theme tokens are\n * not resolved here (this is the CSS `background` shorthand, not `bgcolor`), so\n * use a CSS color literal instead. When set, the inner card renders borderless\n * on a white surface inside the padded Slot (Figma HSA Deposit), unless `raised`.\n */\n background?: string\n /** Status disc over the card's corner (needs `background`). */\n badge?: ReactNode\n /** Card at elevation/1 on the wash; not with `raised` (its shadow wins). */\n elevated?: boolean\n /** Border and shadow on the inner card; only with `background` (Figma Transaction Row). */\n raised?: boolean\n sx?: SxProps\n}\n\nconst getVariantStyles = (variant: TransactionListCardVariant) => {\n switch (variant) {\n case 'primary':\n // Borderless filled header on top of the bordered rows block.\n return {\n radius: '8px',\n borderColor: 'primary.main',\n headerBg: 'primary.main',\n headerColor: 'primary.contrastText',\n headerBold: false,\n headerInsideBorder: false,\n headerSx: { minHeight: 24, px: 12, py: 4 } as const,\n }\n default:\n // A single border wraps the card; the grey header sits inside it.\n return {\n radius: '8px',\n borderColor: 'divider',\n headerBg: 'background.default',\n headerColor: 'text.primary',\n headerBold: true,\n headerInsideBorder: true,\n headerSx: { minHeight: 40, px: 16, py: 2 } as const,\n }\n }\n}\n\n/**\n * List card composing an optional header label, one or more\n * `InsightTransactionRow`s (divided), and an optional footer/total row.\n * `variant` supplies the Figma design defaults for the two card styles.\n *\n * Scope is the Content section only; Header/Description are out of scope.\n */\nconst TransactionListCard = ({\n background,\n badge,\n elevated = false,\n footer,\n header,\n headerColor,\n raised = false,\n rows,\n variant = 'default',\n sx,\n}: TransactionListCardProps) => {\n // rows usually comes from mapped API data, so an empty array is reachable and\n // would render a broken border shell; render nothing instead.\n if (rows.length === 0) return null\n\n const styles = getVariantStyles(variant)\n const hasBackground = Boolean(background)\n const radius = hasBackground ? '8px' : styles.radius\n // The header sits inside the border only for the bordered `default` variant;\n // for `primary`/backgrounded cards it sits above a separately-bordered body.\n const headerInsideBorder = Boolean(header) && !hasBackground && styles.headerInsideBorder\n\n const headerTextColor =\n variant === 'default' ? (headerColor ?? styles.headerColor) : styles.headerColor\n\n const headerBlock = header ? (\n <Stack sx={{ bgcolor: styles.headerBg, justifyContent: 'center', ...styles.headerSx }}>\n <Text\n color={headerTextColor}\n sx={styles.headerBold ? { fontWeight: 700 } : undefined}\n variant=\"caption\"\n >\n {header}\n </Text>\n </Stack>\n ) : null\n\n const footerBlock = footer ? (\n <>\n <Divider />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: hasBackground ? 'background.paper' : 'background.default',\n flexDirection: 'row',\n justifyContent: 'space-between',\n minHeight: 40,\n px: 16,\n py: 2,\n }}\n >\n <Text color=\"text.secondary\" variant=\"caption\">\n {footer.label}\n </Text>\n <Text bold={true} color={footer.amountColor ?? 'text.primary'} variant=\"body2\">\n {footer.amount}\n </Text>\n </Stack>\n </>\n ) : null\n\n const rowsBlock = (\n <Stack role=\"list\" sx={{ width: '100%' }}>\n {rows.map((row, index) => (\n // Static, caller-ordered list that may contain identical rows, so the\n // array index is the correct key (a content-based key would collide).\n // eslint-disable-next-line react/no-array-index-key\n <Fragment key={index}>\n {index > 0 && <Divider role=\"presentation\" />}\n <Box role=\"listitem\">\n <InsightTransactionRow {...row} />\n </Box>\n </Fragment>\n ))}\n </Stack>\n )\n\n return (\n <Stack\n data-testid=\"transaction-list-card\"\n sx={{\n ...(hasBackground ? { background, p: 16 } : { pt: 8, px: 16 }),\n ...(hasBackground && badge ? { position: 'relative' } : {}),\n width: '100%',\n ...sx,\n }}\n >\n {hasBackground &&\n badge && (\n // Centred on the card's top-left corner.\n <Box sx={{ left: 16, position: 'absolute', top: 12, zIndex: 1 }}>{badge}</Box>\n )}\n {/* Header above the border for `primary`/backgrounded cards; top-rounded. */}\n {!headerInsideBorder && headerBlock && (\n <Stack\n sx={{\n borderTopLeftRadius: radius,\n borderTopRightRadius: radius,\n overflow: 'hidden',\n }}\n >\n {headerBlock}\n </Stack>\n )}\n\n <Stack\n sx={{\n ...(hasBackground\n ? {\n bgcolor: 'background.paper',\n // elevation/1 shadow plus the dark-mode tint.\n ...(elevated && {\n backgroundImage: (theme: Theme) => theme.vars?.overlays?.[1] ?? 'none',\n boxShadow: ELEVATION_SHADOW[1],\n }),\n ...(raised && { border: '1px solid', borderColor: 'divider', boxShadow: 1 }),\n }\n : { border: '1px solid', borderColor: styles.borderColor }),\n borderBottomLeftRadius: radius,\n borderBottomRightRadius: radius,\n borderTopLeftRadius: headerInsideBorder || !header ? radius : 0,\n borderTopRightRadius: headerInsideBorder || !header ? radius : 0,\n overflow: 'hidden',\n width: '100%',\n }}\n >\n {/* Header inside the border for the `default` table variant. */}\n {headerInsideBorder && (\n <>\n {headerBlock}\n <Divider />\n </>\n )}\n {rowsBlock}\n {footerBlock}\n </Stack>\n </Stack>\n )\n}\n\nexport default TransactionListCard\n"],"mappings":";;;;;;;;AAwDA,IAAM,IAA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;AAAA,QAAK,IAAI;AAAA,UAAE,MAAM;AAAA,UAAI,UAAU;AAAA,UAAY,KAAK;AAAA,UAAI,QAAQ;AAAA,QAAE;AAAA,QAAI,UAAA;AAAA,MAAW,CAAA;AAAA,MAGhF,CAAC,KAAsB,KACtB,gBAAA,EAAC,GAAD;AAAA,QACE,IAAI;AAAA,UACF,qBAAqB;AAAA,UACrB,sBAAsB;AAAA,UACtB,UAAU;AAAA,QACZ;AAAA,QAEC,UAAA;AAAA,MACI,CAAA;AAAA,MAGT,gBAAA,EAAC,GAAD;AAAA,QACE,IAAI;AAAA,UACF,GAAI,IACA;AAAA,YACE,SAAS;AAAA,YAET,GAAI,KAAY;AAAA,cACd,iBAAA,CAAkB,MAAiB,EAAM,MAAM,WAAW,CAAA,KAAM;AAAA,cAChE,WAAW,EAAiB,CAAA;AAAA,YAC9B;AAAA,YACA,GAAI,KAAU;AAAA,cAAE,QAAQ;AAAA,cAAa,aAAa;AAAA,cAAW,WAAW;AAAA,YAAE;AAAA,UAC5E,IACA;AAAA,YAAE,QAAQ;AAAA,YAAa,aAAa,EAAO;AAAA,UAAY;AAAA,UAC3D,wBAAwB;AAAA,UACxB,yBAAyB;AAAA,UACzB,qBAAqB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC9D,sBAAsB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC/D,UAAU;AAAA,UACV,OAAO;AAAA,QACT;AAAA,QAnBF,UAAA;AAAA,UAsBG,KACC,gBAAA,EAAA,GAAA,EAAA,UAAA,CACG,GACD,gBAAA,EAAC,GAAD,CAAU,CAAA,CACV,EAAA,CAAA;AAAA,UAEH;AAAA,UACA;AAAA,QACI;AAAA;IACF;AAAA;AAEX"}
|
|
1
|
+
{"version":3,"file":"TransactionListCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransactionListCard.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Divider from '@mui/material/Divider'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\nimport InsightTransactionRow, { type InsightTransactionRowProps } from './InsightTransactionRow'\nimport { ELEVATION_SHADOW } from './shared/elevation'\n\nexport interface FooterRow {\n label: ReactNode\n amount: ReactNode\n amountColor?: string\n}\n\ntype TransactionListCardVariant = 'default' | 'primary'\n\ninterface TransactionListCardProps {\n /** Optional header label above the rows (e.g. \"{Date}\", \"3 transactions\"). */\n header?: ReactNode\n /** Theme colour for the header label, over the variant's own. */\n headerColor?: string\n /** The header label in the regular weight instead of the `default` variant's bold; no effect on `primary`. */\n headerRegular?: boolean\n /** One or more transaction rows. */\n rows: InsightTransactionRowProps[]\n /** Optional summary/total row rendered beneath a divider. */\n footer?: FooterRow\n /**\n * Card style:\n * - `default` — grey utility header, hairline border, radius 4.\n * - `primary` — filled `primary.main` header with white text and a matching\n * border, radius 8 (Figma \"Multi\" variant).\n *\n * In both cases the header is borderless; the border wraps the content block\n * below it.\n */\n variant?: TransactionListCardVariant\n /**\n * Optional background applied to the Slot behind the card. Must be a valid CSS\n * background string (gradient or color in CSS format); MUI theme tokens are\n * not resolved here (this is the CSS `background` shorthand, not `bgcolor`), so\n * use a CSS color literal instead. When set, the inner card renders borderless\n * on a white surface inside the padded Slot (Figma HSA Deposit), unless `raised`.\n */\n background?: string\n /** Status disc over the card's corner (needs `background`). */\n badge?: ReactNode\n /** Card at elevation/1 on the wash; not with `raised` (its shadow wins). */\n elevated?: boolean\n /** Border and shadow on the inner card; only with `background` (Figma Transaction Row). */\n raised?: boolean\n sx?: SxProps\n}\n\nconst getVariantStyles = (variant: TransactionListCardVariant) => {\n switch (variant) {\n case 'primary':\n // Borderless filled header on top of the bordered rows block.\n return {\n radius: '8px',\n borderColor: 'primary.main',\n headerBg: 'primary.main',\n headerColor: 'primary.contrastText',\n headerBold: false,\n headerInsideBorder: false,\n headerSx: { minHeight: 24, px: 12, py: 4 } as const,\n }\n default:\n // A single border wraps the card; the grey header sits inside it.\n return {\n radius: '8px',\n borderColor: 'divider',\n headerBg: 'background.default',\n headerColor: 'text.primary',\n headerBold: true,\n headerInsideBorder: true,\n headerSx: { minHeight: 40, px: 16, py: 2 } as const,\n }\n }\n}\n\n/**\n * List card composing an optional header label, one or more\n * `InsightTransactionRow`s (divided), and an optional footer/total row.\n * `variant` supplies the Figma design defaults for the two card styles.\n *\n * Scope is the Content section only; Header/Description are out of scope.\n */\nconst TransactionListCard = ({\n background,\n badge,\n elevated = false,\n footer,\n header,\n headerColor,\n headerRegular = false,\n raised = false,\n rows,\n variant = 'default',\n sx,\n}: TransactionListCardProps) => {\n // rows usually comes from mapped API data, so an empty array is reachable and\n // would render a broken border shell; render nothing instead.\n if (rows.length === 0) return null\n\n const styles = getVariantStyles(variant)\n const hasBackground = Boolean(background)\n const radius = hasBackground ? '8px' : styles.radius\n // The header sits inside the border only for the bordered `default` variant;\n // for `primary`/backgrounded cards it sits above a separately-bordered body.\n const headerInsideBorder = Boolean(header) && !hasBackground && styles.headerInsideBorder\n\n const headerTextColor =\n variant === 'default' ? (headerColor ?? styles.headerColor) : styles.headerColor\n\n const headerBlock = header ? (\n <Stack sx={{ bgcolor: styles.headerBg, justifyContent: 'center', ...styles.headerSx }}>\n <Text\n color={headerTextColor}\n sx={styles.headerBold ? { fontWeight: headerRegular ? 400 : 700 } : undefined}\n variant=\"caption\"\n >\n {header}\n </Text>\n </Stack>\n ) : null\n\n const footerBlock = footer ? (\n <>\n <Divider />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: hasBackground ? 'background.paper' : 'background.default',\n flexDirection: 'row',\n justifyContent: 'space-between',\n minHeight: 40,\n px: 16,\n py: 2,\n }}\n >\n <Text color=\"text.secondary\" variant=\"caption\">\n {footer.label}\n </Text>\n <Text bold={true} color={footer.amountColor ?? 'text.primary'} variant=\"body2\">\n {footer.amount}\n </Text>\n </Stack>\n </>\n ) : null\n\n const rowsBlock = (\n <Stack role=\"list\" sx={{ width: '100%' }}>\n {rows.map((row, index) => (\n // Static, caller-ordered list that may contain identical rows, so the\n // array index is the correct key (a content-based key would collide).\n // eslint-disable-next-line react/no-array-index-key\n <Fragment key={index}>\n {index > 0 && <Divider role=\"presentation\" />}\n <Box role=\"listitem\">\n <InsightTransactionRow {...row} />\n </Box>\n </Fragment>\n ))}\n </Stack>\n )\n\n return (\n <Stack\n data-testid=\"transaction-list-card\"\n sx={{\n ...(hasBackground ? { background, p: 16 } : { pt: 8, px: 16 }),\n ...(hasBackground && badge ? { position: 'relative' } : {}),\n width: '100%',\n ...sx,\n }}\n >\n {hasBackground &&\n badge && (\n // Centred on the card's top-left corner.\n <Box sx={{ left: 16, position: 'absolute', top: 12, zIndex: 1 }}>{badge}</Box>\n )}\n {/* Header above the border for `primary`/backgrounded cards; top-rounded. */}\n {!headerInsideBorder && headerBlock && (\n <Stack\n sx={{\n borderTopLeftRadius: radius,\n borderTopRightRadius: radius,\n overflow: 'hidden',\n }}\n >\n {headerBlock}\n </Stack>\n )}\n\n <Stack\n sx={{\n ...(hasBackground\n ? {\n bgcolor: 'background.paper',\n // elevation/1 shadow plus the dark-mode tint.\n ...(elevated && {\n backgroundImage: (theme: Theme) => theme.vars?.overlays?.[1] ?? 'none',\n boxShadow: ELEVATION_SHADOW[1],\n }),\n ...(raised && { border: '1px solid', borderColor: 'divider', boxShadow: 1 }),\n }\n : { border: '1px solid', borderColor: styles.borderColor }),\n borderBottomLeftRadius: radius,\n borderBottomRightRadius: radius,\n borderTopLeftRadius: headerInsideBorder || !header ? radius : 0,\n borderTopRightRadius: headerInsideBorder || !header ? radius : 0,\n overflow: 'hidden',\n width: '100%',\n }}\n >\n {/* Header inside the border for the `default` table variant. */}\n {headerInsideBorder && (\n <>\n {headerBlock}\n <Divider />\n </>\n )}\n {rowsBlock}\n {footerBlock}\n </Stack>\n </Stack>\n )\n}\n\nexport default TransactionListCard\n"],"mappings":";;;;;;;;AA0DA,IAAM,IAAA,CAAoB,MAChB,MACD,Y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AAC,GAAD;AAAA,QAAK,IAAI;AAAA,UAAE,MAAM;AAAA,UAAI,UAAU;AAAA,UAAY,KAAK;AAAA,UAAI,QAAQ;AAAA,QAAE;AAAA,QAAI,UAAA;AAAA,MAAW,CAAA;AAAA,MAGhF,CAAC,KAAsB,KACtB,gBAAA,EAAC,GAAD;AAAA,QACE,IAAI;AAAA,UACF,qBAAqB;AAAA,UACrB,sBAAsB;AAAA,UACtB,UAAU;AAAA,QACZ;AAAA,QAEC,UAAA;AAAA,MACI,CAAA;AAAA,MAGT,gBAAA,EAAC,GAAD;AAAA,QACE,IAAI;AAAA,UACF,GAAI,IACA;AAAA,YACE,SAAS;AAAA,YAET,GAAI,KAAY;AAAA,cACd,iBAAA,CAAkB,MAAiB,EAAM,MAAM,WAAW,CAAA,KAAM;AAAA,cAChE,WAAW,EAAiB,CAAA;AAAA,YAC9B;AAAA,YACA,GAAI,KAAU;AAAA,cAAE,QAAQ;AAAA,cAAa,aAAa;AAAA,cAAW,WAAW;AAAA,YAAE;AAAA,UAC5E,IACA;AAAA,YAAE,QAAQ;AAAA,YAAa,aAAa,EAAO;AAAA,UAAY;AAAA,UAC3D,wBAAwB;AAAA,UACxB,yBAAyB;AAAA,UACzB,qBAAqB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC9D,sBAAsB,KAAsB,CAAC,IAAS,IAAS;AAAA,UAC/D,UAAU;AAAA,UACV,OAAO;AAAA,QACT;AAAA,QAnBF,UAAA;AAAA,UAsBG,KACC,gBAAA,EAAA,GAAA,EAAA,UAAA,CACG,GACD,gBAAA,EAAC,GAAD,CAAU,CAAA,CACV,EAAA,CAAA;AAAA,UAEH;AAAA,UACA;AAAA,QACI;AAAA;IACF;AAAA;AAEX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferLogoCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransferLogoCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\n// Figma (Discovered Accounts, Switch Direct Deposit): a 40px track inset 16 from the inner card's\n// edges, behind a row of logos, dots and badge that spans the card with 32 padding up to 324 wide.\nconst TRACK_HEIGHT = 40\nconst TRACK_INSET = 16\nconst ROW_MAX_WIDTH = 324\nconst ROW_PADDING_X = 32\n\ninterface TransferLogoCardProps {\n /** Source institution logo (left). */\n from: ReactNode\n /** Destination institution logo (right). */\n to: ReactNode\n /** Logo tile size in px (Figma: 64). */\n size?: number\n /** Arrow icon rendered in the center badge. Defaults to a right arrow. */\n icon?: ReactNode\n /**\n * Enlarge the inner connector dots (6px vs 4px), matching the Discovered\n * Accounts insight for cross-insight consistency. Default true.\n */\n hasBigDots?: boolean\n /** Connector-dot color token. Default `neutral.darker` (theme-aware). */\n dotColor?: string\n /** Center badge background color token. Default `neutral.darker` (dark circle\n * for Switch DD default; set to `success.main` for Discovered Accounts success). */\n badgeBgColor?: string\n /** Slot surface color token. Default `primary.lighter` (Figma's tinted slot,\n * theme-aware: light-blue in light mode, navy in dark). */\n bgcolor?: string\n /**\n * Optional background image (e.g., celebration gradient) for success states.\n * Layered over the `bgcolor` via `backgroundImage` (not `background` shorthand).\n */\n backgroundImage?: string\n /**\n * Show a confetti animation filling the slot (for success/celebration states).\n * Requires `useContainerDimensions` to measure the slot. Default false.\n */\n showConfetti?: boolean\n sx?: SxProps\n}\n\n// Default center-badge glyph. Hoisted to a stable reference so it isn't\n// re-created each render (`neutral.lighter` is the theme-aware inverse of the\n// badge fill: light glyph on dark badge, and vice-versa in dark).\nconst defaultTransferIcon = (\n <Icon aria-hidden={true} name=\"arrow_forward\" size={20} sx={{ color: 'neutral.lighter' }} />\n)\n\n// Connector dot: a small rounded square that reads as a dot at this size\n// (matches v1 `ConnectionCard`'s `Dot`). `neutral.darker` is theme-aware. The\n// inner pair is larger (`bigDots`, as Discovered Accounts uses) than the outer.\nconst Dot = ({ color = 'neutral.darker', size = 4 }: { color?: string; size?: number }) => (\n <Box sx={{ bgcolor: color, borderRadius: '4px', flexShrink: 0, height: size, width: size }} />\n)\n\n/**\n * A from → to account transfer visual: two institution logos on a rounded track\n * with a central arrow badge and connector dots between them.\n *\n * Figma: Switch Direct Deposit (default) and Discovered Accounts Content. Scope is the Content\n * section only.\n */\nconst TransferLogoCard = ({\n badgeBgColor = 'neutral.darker',\n bgcolor = 'primary.lighter',\n backgroundImage,\n dotColor = 'neutral.darker',\n from,\n hasBigDots = true,\n icon = defaultTransferIcon,\n showConfetti = false,\n size = 64,\n to,\n sx,\n}: TransferLogoCardProps) => {\n const dotSize = hasBigDots ? 6 : 4\n const logoSx = {\n borderRadius: '4px',\n flexShrink: 0,\n height: size,\n overflow: 'hidden',\n width: size,\n } as const\n\n return (\n <Box\n sx={{\n bgcolor,\n ...(backgroundImage && { backgroundImage }),\n p: 16,\n // Positioned wrapper so the confetti overlay can fill the slot; the card\n // sits above it (zIndex). No `overflow: hidden` — that would clip the\n // burst's upper area (per the figma-to-code confetti guidance).\n position: 'relative',\n width: '100%',\n ...sx,\n }}\n >\n {showConfetti && <ConfettiOverlay />}\n <Card sx={{ position: 'relative', py: 16, zIndex: 1 }}>\n <Box\n sx={{\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n {/* Track, vertically centred behind the row and inset from the card's edges. */}\n <Box\n sx={{\n bgcolor: 'divider',\n borderRadius: '24px',\n height: TRACK_HEIGHT,\n left: TRACK_INSET,\n position: 'absolute',\n right: TRACK_INSET,\n top: '50%',\n transform: 'translateY(-50%)',\n }}\n />\n {/* Seven direct items, so space-between spreads the dots and badge evenly between the logos. */}\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n height: size,\n justifyContent: 'space-between',\n maxWidth: ROW_MAX_WIDTH,\n position: 'relative',\n px: ROW_PADDING_X,\n width: '100%',\n }}\n >\n <Box sx={logoSx}>{from}</Box>\n <Dot color={dotColor} />\n <Dot color={dotColor} size={dotSize} />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: badgeBgColor,\n borderRadius: '50%',\n flexShrink: 0,\n height: 28,\n justifyContent: 'center',\n width: 28,\n }}\n >\n {icon}\n </Stack>\n <Dot color={dotColor} size={dotSize} />\n <Dot color={dotColor} />\n <Box sx={logoSx}>{to}</Box>\n </Stack>\n </Box>\n </Card>\n </Box>\n )\n}\n\nexport default TransferLogoCard\n"],"mappings":";;;;;;AAYA,IAAM,IAAe,IACf,IAAc,IACd,IAAgB,KAChB,IAAgB,IAwChB,IACJ,gBAAA,EAAC,GAAD;AAAA,EAAM,eAAa;AAAA,EAAM,MAAK;AAAA,EAAgB,MAAM;AAAA,EAAI,IAAI,EAAE,OAAO,kBAAkB;AAAI,CAAA,GAMvF,IAAA,CAAO,EAAE,OAAA,IAAQ,kBAAkB,MAAA,IAAO,EAAA,MAC9C,gBAAA,EAAC,GAAD,EAAK,IAAI;AAAA,EAAE,SAAS;AAAA,EAAO,cAAc;AAAA,EAAO,YAAY;AAAA,EAAG,QAAQ;AAAA,EAAM,OAAO;AAAK,EAAI,CAAA,GAUzF,IAAA,CAAoB,EACxB,cAAA,IAAe,kBACf,SAAA,IAAU,mBACV,iBAAA,GACA,UAAA,IAAW,kBACX,MAAA,GACA,YAAA,IAAa,IACb,MAAA,IAAO,GACP,cAAA,IAAe,IACf,MAAA,IAAO,IACP,IAAA,GACA,IAAA,EAAA,MAC2B;AAC3B,QAAM,IAAU,IAAa,IAAI,GAC3B,IAAS;AAAA,IACb,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AAEA,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,IAAI;AAAA,MACF,SAAA;AAAA,MACA,GAAI,KAAmB,EAAE,iBAAA,EAAgB;AAAA,MACzC,GAAG;AAAA,MAIH,UAAU;AAAA,MACV,OAAO;AAAA,MACP,GAAG;AAAA,IACL;AAAA,IAXF,UAAA,CAaG,KAAgB,gBAAA,EAAC,GAAD,CAAkB,CAAA,
|
|
1
|
+
{"version":3,"file":"TransferLogoCard.es.js","names":[],"sources":["../../../src/insights-v2/components/TransferLogoCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport Card from '@mui/material/Card'\nimport Stack from '@mui/material/Stack'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { ConfettiOverlay } from './shared/ConfettiOverlay'\n\n// Figma (Discovered Accounts, Switch Direct Deposit): a 40px track inset 16 from the inner card's\n// edges, behind a row of logos, dots and badge that spans the card with 32 padding up to 324 wide.\nconst TRACK_HEIGHT = 40\nconst TRACK_INSET = 16\nconst ROW_MAX_WIDTH = 324\nconst ROW_PADDING_X = 32\n\ninterface TransferLogoCardProps {\n /** Source institution logo (left). */\n from: ReactNode\n /** Destination institution logo (right). */\n to: ReactNode\n /** Logo tile size in px (Figma: 64). */\n size?: number\n /** Arrow icon rendered in the center badge. Defaults to a right arrow. */\n icon?: ReactNode\n /**\n * Enlarge the inner connector dots (6px vs 4px), matching the Discovered\n * Accounts insight for cross-insight consistency. Default true.\n */\n hasBigDots?: boolean\n /** Connector-dot color token. Default `neutral.darker` (theme-aware). */\n dotColor?: string\n /** Center badge background color token. Default `neutral.darker` (dark circle\n * for Switch DD default; set to `success.main` for Discovered Accounts success). */\n badgeBgColor?: string\n /** Slot surface color token. Default `primary.lighter` (Figma's tinted slot,\n * theme-aware: light-blue in light mode, navy in dark). */\n bgcolor?: string\n /**\n * Optional background image (e.g., celebration gradient) for success states.\n * Layered over the `bgcolor` via `backgroundImage` (not `background` shorthand).\n */\n backgroundImage?: string\n /**\n * Show a confetti animation filling the slot (for success/celebration states).\n * Requires `useContainerDimensions` to measure the slot. Default false.\n */\n showConfetti?: boolean\n sx?: SxProps\n}\n\n// Default center-badge glyph. Hoisted to a stable reference so it isn't\n// re-created each render (`neutral.lighter` is the theme-aware inverse of the\n// badge fill: light glyph on dark badge, and vice-versa in dark).\nconst defaultTransferIcon = (\n <Icon aria-hidden={true} name=\"arrow_forward\" size={20} sx={{ color: 'neutral.lighter' }} />\n)\n\n// Connector dot: a small rounded square that reads as a dot at this size\n// (matches v1 `ConnectionCard`'s `Dot`). `neutral.darker` is theme-aware. The\n// inner pair is larger (`bigDots`, as Discovered Accounts uses) than the outer.\nconst Dot = ({ color = 'neutral.darker', size = 4 }: { color?: string; size?: number }) => (\n <Box sx={{ bgcolor: color, borderRadius: '4px', flexShrink: 0, height: size, width: size }} />\n)\n\n/**\n * A from → to account transfer visual: two institution logos on a rounded track\n * with a central arrow badge and connector dots between them.\n *\n * Figma: Switch Direct Deposit (default) and Discovered Accounts Content. Scope is the Content\n * section only.\n */\nconst TransferLogoCard = ({\n badgeBgColor = 'neutral.darker',\n bgcolor = 'primary.lighter',\n backgroundImage,\n dotColor = 'neutral.darker',\n from,\n hasBigDots = true,\n icon = defaultTransferIcon,\n showConfetti = false,\n size = 64,\n to,\n sx,\n}: TransferLogoCardProps) => {\n const dotSize = hasBigDots ? 6 : 4\n const logoSx = {\n borderRadius: '4px',\n flexShrink: 0,\n height: size,\n overflow: 'hidden',\n width: size,\n } as const\n\n return (\n <Box\n sx={{\n bgcolor,\n ...(backgroundImage && { backgroundImage }),\n p: 16,\n // Positioned wrapper so the confetti overlay can fill the slot; the card\n // sits above it (zIndex). No `overflow: hidden` — that would clip the\n // burst's upper area (per the figma-to-code confetti guidance).\n position: 'relative',\n width: '100%',\n ...sx,\n }}\n >\n {showConfetti && <ConfettiOverlay />}\n {/* Pulse's mini slide sets every `.MuiCard-root` to 100% (`.slot .MuiCard-root`, two classes); `&&&` outranks\n it, so the card keeps its content height with no empty space under the logos (design QA #22). */}\n <Card sx={{ '&&&': { height: 'auto' }, position: 'relative', py: 16, zIndex: 1 }}>\n <Box\n sx={{\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n position: 'relative',\n }}\n >\n {/* Track, vertically centred behind the row and inset from the card's edges. */}\n <Box\n sx={{\n bgcolor: 'divider',\n borderRadius: '24px',\n height: TRACK_HEIGHT,\n left: TRACK_INSET,\n position: 'absolute',\n right: TRACK_INSET,\n top: '50%',\n transform: 'translateY(-50%)',\n }}\n />\n {/* Seven direct items, so space-between spreads the dots and badge evenly between the logos. */}\n <Stack\n sx={{\n alignItems: 'center',\n flexDirection: 'row',\n height: size,\n justifyContent: 'space-between',\n maxWidth: ROW_MAX_WIDTH,\n position: 'relative',\n px: ROW_PADDING_X,\n width: '100%',\n }}\n >\n <Box sx={logoSx}>{from}</Box>\n <Dot color={dotColor} />\n <Dot color={dotColor} size={dotSize} />\n <Stack\n sx={{\n alignItems: 'center',\n bgcolor: badgeBgColor,\n borderRadius: '50%',\n flexShrink: 0,\n height: 28,\n justifyContent: 'center',\n width: 28,\n }}\n >\n {icon}\n </Stack>\n <Dot color={dotColor} size={dotSize} />\n <Dot color={dotColor} />\n <Box sx={logoSx}>{to}</Box>\n </Stack>\n </Box>\n </Card>\n </Box>\n )\n}\n\nexport default TransferLogoCard\n"],"mappings":";;;;;;AAYA,IAAM,IAAe,IACf,IAAc,IACd,IAAgB,KAChB,IAAgB,IAwChB,IACJ,gBAAA,EAAC,GAAD;AAAA,EAAM,eAAa;AAAA,EAAM,MAAK;AAAA,EAAgB,MAAM;AAAA,EAAI,IAAI,EAAE,OAAO,kBAAkB;AAAI,CAAA,GAMvF,IAAA,CAAO,EAAE,OAAA,IAAQ,kBAAkB,MAAA,IAAO,EAAA,MAC9C,gBAAA,EAAC,GAAD,EAAK,IAAI;AAAA,EAAE,SAAS;AAAA,EAAO,cAAc;AAAA,EAAO,YAAY;AAAA,EAAG,QAAQ;AAAA,EAAM,OAAO;AAAK,EAAI,CAAA,GAUzF,IAAA,CAAoB,EACxB,cAAA,IAAe,kBACf,SAAA,IAAU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