@mx-cartographer/experiences 9.7.50 → 9.7.52
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 +8 -0
- package/dist/core/types/Insights.d.ts +1 -0
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/InsightsInstanceSlotData.d.ts +10 -1
- package/dist/core/types/InsightsInstanceSlotData.es.js.map +1 -1
- package/dist/core/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/core/utils/TransactionUtils.d.ts +1 -0
- package/dist/core/utils/TransactionUtils.es.js +19 -18
- package/dist/core/utils/TransactionUtils.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +9 -9
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.d.ts +6 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +74 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/index.d.ts +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +32 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +57 -0
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -0
- package/dist/insights-v2/components/AmountPill.es.js +9 -8
- package/dist/insights-v2/components/AmountPill.es.js.map +1 -1
- package/dist/insights-v2/components/MerchantHighlightCard.es.js +4 -4
- package/dist/insights-v2/components/celebrationGradients.d.ts +3 -0
- package/dist/insights-v2/components/celebrationGradients.es.js +5 -4
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/components/statusTokens.d.ts +5 -0
- package/dist/insights-v2/components/statusTokens.es.js +5 -0
- package/dist/insights-v2/components/statusTokens.es.js.map +1 -1
- package/dist/insights-v2/index.es.js +88 -86
- package/dist/insights-v2/mappings/blocks.es.js +78 -76
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/dist/transactions/TransactionWidget.es.js +37 -36
- package/dist/transactions/TransactionWidget.es.js.map +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.es.js +46 -45
- package/dist/transactions/components/shared/TransactionList.es.js.map +1 -1
- package/dist/transactions/components/shared/UnviewedIndicator.d.ts +6 -0
- package/dist/transactions/components/shared/UnviewedIndicator.es.js +21 -0
- package/dist/transactions/components/shared/UnviewedIndicator.es.js.map +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +2 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js +38 -37
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js.map +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js +23 -32
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design branches of the Merchant component block (architecture doc, Merchant row): one
|
|
3
|
+
* highlighted merchant (`single_*`, `MerchantHighlightCard`) or a row of merchant tiles
|
|
4
|
+
* (`multiple_*`, `LogoClusterCard`), each plain, celebrated (`success`) or flagged (`error`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const merchantBlockVariant: {
|
|
7
|
+
readonly SingleStandard: "single_standard";
|
|
8
|
+
readonly SingleLarge: "single_large";
|
|
9
|
+
readonly SingleSuccess: "single_success";
|
|
10
|
+
readonly SingleError: "single_error";
|
|
11
|
+
readonly MultipleStandard: "multiple_standard";
|
|
12
|
+
readonly MultipleSuccess: "multiple_success";
|
|
13
|
+
readonly MultipleError: "multiple_error";
|
|
14
|
+
};
|
|
15
|
+
export type MerchantBlockVariant = (typeof merchantBlockVariant)[keyof typeof merchantBlockVariant];
|
|
16
|
+
export type MerchantStatus = 'success' | 'error';
|
|
17
|
+
export interface MerchantBlockLayoutConfig {
|
|
18
|
+
kind: 'single' | 'multiple';
|
|
19
|
+
/** Single: the amount as a dark pill or plain text. */
|
|
20
|
+
amountVariant?: 'pill' | 'text';
|
|
21
|
+
/** A wash layered over the card. */
|
|
22
|
+
background?: string;
|
|
23
|
+
/** Draws `status_text` in a pill of this tone: beside the single name, under the multiple row. */
|
|
24
|
+
status?: MerchantStatus;
|
|
25
|
+
}
|
|
26
|
+
export declare const STATUS_PILL_TOKENS: Record<MerchantStatus, {
|
|
27
|
+
bgcolor: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const MERCHANT_LAYOUT: Record<MerchantBlockVariant, MerchantBlockLayoutConfig>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { STATUS_ERROR_TOKENS as l, STATUS_SUCCESS_TOKENS as i } from "../../../components/statusTokens.es.js";
|
|
2
|
+
import { ERROR_WASH_GRADIENT as e, WARM_LIME_ACCENT_GRADIENT as s } from "../../../components/celebrationGradients.es.js";
|
|
3
|
+
var a = {
|
|
4
|
+
SingleStandard: "single_standard",
|
|
5
|
+
SingleLarge: "single_large",
|
|
6
|
+
SingleSuccess: "single_success",
|
|
7
|
+
SingleError: "single_error",
|
|
8
|
+
MultipleStandard: "multiple_standard",
|
|
9
|
+
MultipleSuccess: "multiple_success",
|
|
10
|
+
MultipleError: "multiple_error"
|
|
11
|
+
}, u = {
|
|
12
|
+
success: {
|
|
13
|
+
...i,
|
|
14
|
+
icon: "check_circle"
|
|
15
|
+
},
|
|
16
|
+
error: {
|
|
17
|
+
...l,
|
|
18
|
+
icon: "error"
|
|
19
|
+
}
|
|
20
|
+
}, r = {
|
|
21
|
+
kind: "single",
|
|
22
|
+
amountVariant: "pill"
|
|
23
|
+
}, c = {
|
|
24
|
+
single_standard: {
|
|
25
|
+
kind: "single",
|
|
26
|
+
amountVariant: "text"
|
|
27
|
+
},
|
|
28
|
+
single_large: r,
|
|
29
|
+
single_success: {
|
|
30
|
+
...r,
|
|
31
|
+
background: s,
|
|
32
|
+
status: "success"
|
|
33
|
+
},
|
|
34
|
+
single_error: {
|
|
35
|
+
...r,
|
|
36
|
+
background: e,
|
|
37
|
+
status: "error"
|
|
38
|
+
},
|
|
39
|
+
multiple_standard: { kind: "multiple" },
|
|
40
|
+
multiple_success: {
|
|
41
|
+
kind: "multiple",
|
|
42
|
+
background: s,
|
|
43
|
+
status: "success"
|
|
44
|
+
},
|
|
45
|
+
multiple_error: {
|
|
46
|
+
kind: "multiple",
|
|
47
|
+
background: e,
|
|
48
|
+
status: "error"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
c as MERCHANT_LAYOUT,
|
|
53
|
+
u as STATUS_PILL_TOKENS,
|
|
54
|
+
a as merchantBlockVariant
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=layout.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.ts"],"sourcesContent":["import {\n ERROR_WASH_GRADIENT,\n WARM_LIME_ACCENT_GRADIENT,\n} from '../../../components/celebrationGradients'\nimport { STATUS_ERROR_TOKENS, STATUS_SUCCESS_TOKENS } from '../../../components/statusTokens'\n\n/**\n * Design branches of the Merchant component block (architecture doc, Merchant row): one\n * highlighted merchant (`single_*`, `MerchantHighlightCard`) or a row of merchant tiles\n * (`multiple_*`, `LogoClusterCard`), each plain, celebrated (`success`) or flagged (`error`).\n */\nexport const merchantBlockVariant = {\n SingleStandard: 'single_standard',\n SingleLarge: 'single_large',\n SingleSuccess: 'single_success',\n SingleError: 'single_error',\n MultipleStandard: 'multiple_standard',\n MultipleSuccess: 'multiple_success',\n MultipleError: 'multiple_error',\n} as const\n\nexport type MerchantBlockVariant = (typeof merchantBlockVariant)[keyof typeof merchantBlockVariant]\n\nexport type MerchantStatus = 'success' | 'error'\n\nexport interface MerchantBlockLayoutConfig {\n kind: 'single' | 'multiple'\n /** Single: the amount as a dark pill or plain text. */\n amountVariant?: 'pill' | 'text'\n /** A wash layered over the card. */\n background?: string\n /** Draws `status_text` in a pill of this tone: beside the single name, under the multiple row. */\n status?: MerchantStatus\n}\n\nexport const STATUS_PILL_TOKENS: Record<\n MerchantStatus,\n { bgcolor: string; borderColor: string; textColor: string; icon: string }\n> = {\n success: { ...STATUS_SUCCESS_TOKENS, icon: 'check_circle' },\n error: { ...STATUS_ERROR_TOKENS, icon: 'error' },\n}\n\nconst SINGLE_LARGE: MerchantBlockLayoutConfig = { kind: 'single', amountVariant: 'pill' }\n\nexport const MERCHANT_LAYOUT: Record<MerchantBlockVariant, MerchantBlockLayoutConfig> = {\n single_standard: { kind: 'single', amountVariant: 'text' },\n single_large: SINGLE_LARGE,\n single_success: { ...SINGLE_LARGE, background: WARM_LIME_ACCENT_GRADIENT, status: 'success' },\n single_error: { ...SINGLE_LARGE, background: ERROR_WASH_GRADIENT, status: 'error' },\n multiple_standard: { kind: 'multiple' },\n multiple_success: { kind: 'multiple', background: WARM_LIME_ACCENT_GRADIENT, status: 'success' },\n multiple_error: { kind: 'multiple', background: ERROR_WASH_GRADIENT, status: 'error' },\n}\n"],"mappings":";;AAWA,IAAa,IAAuB;AAAA,EAClC,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,eAAe;AAAA,EACf,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,eAAe;AACjB,GAgBa,IAGT;AAAA,EACF,SAAS;AAAA,IAAE,GAAG;AAAA,IAAuB,MAAM;AAAA,EAAe;AAAA,EAC1D,OAAO;AAAA,IAAE,GAAG;AAAA,IAAqB,MAAM;AAAA,EAAQ;AACjD,GAEM,IAA0C;AAAA,EAAE,MAAM;AAAA,EAAU,eAAe;AAAO,GAE3E,IAA2E;AAAA,EACtF,iBAAiB;AAAA,IAAE,MAAM;AAAA,IAAU,eAAe;AAAA,EAAO;AAAA,EACzD,cAAc;AAAA,EACd,gBAAgB;AAAA,IAAE,GAAG;AAAA,IAAc,YAAY;AAAA,IAA2B,QAAQ;AAAA,EAAU;AAAA,EAC5F,cAAc;AAAA,IAAE,GAAG;AAAA,IAAc,YAAY;AAAA,IAAqB,QAAQ;AAAA,EAAQ;AAAA,EAClF,mBAAmB,EAAE,MAAM,WAAW;AAAA,EACtC,kBAAkB;AAAA,IAAE,MAAM;AAAA,IAAY,YAAY;AAAA,IAA2B,QAAQ;AAAA,EAAU;AAAA,EAC/F,gBAAgB;AAAA,IAAE,MAAM;AAAA,IAAY,YAAY;AAAA,IAAqB,QAAQ;AAAA,EAAQ;AACvF"}
|
|
@@ -4,6 +4,7 @@ export * from './BudgetBlock';
|
|
|
4
4
|
export * from './DebtsBlock';
|
|
5
5
|
export * from './DetailedAccountBlock';
|
|
6
6
|
export * from './GoalsBlock';
|
|
7
|
+
export * from './MerchantBlock';
|
|
7
8
|
export * from './NoSpendDaysBlock';
|
|
8
9
|
export * from './RepeatingTransactionBlock';
|
|
9
10
|
export * from './SaveExtraBlock';
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { Text as
|
|
2
|
-
import { jsx as
|
|
1
|
+
import { Text as e } from "@mxenabled/mxui";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import i from "@mui/material/Box";
|
|
4
|
-
var
|
|
4
|
+
var p = ({ children: r, px: a = 16, sx: o }) => /* @__PURE__ */ t(i, {
|
|
5
|
+
"data-testid": "amount-pill",
|
|
5
6
|
sx: {
|
|
6
7
|
alignItems: "center",
|
|
7
8
|
alignSelf: "flex-start",
|
|
8
9
|
bgcolor: "text.primary",
|
|
9
10
|
borderRadius: 999,
|
|
10
11
|
display: "flex",
|
|
11
|
-
px:
|
|
12
|
+
px: a,
|
|
12
13
|
py: 2,
|
|
13
|
-
...
|
|
14
|
+
...o
|
|
14
15
|
},
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ t(e, {
|
|
16
17
|
color: "primary.contrastText",
|
|
17
18
|
variant: "subtitle2",
|
|
18
|
-
children:
|
|
19
|
+
children: r
|
|
19
20
|
})
|
|
20
21
|
});
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
p as default
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
//# sourceMappingURL=AmountPill.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountPill.es.js","names":[],"sources":["../../../src/insights-v2/components/AmountPill.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\ninterface AmountPillProps {\n /** Pill content (amount / price string). */\n children: ReactNode\n /** Horizontal padding in px (Figma varies: 16 inline, 10 in the hero). */\n px?: number\n sx?: SxProps\n}\n\n/**\n * A dark rounded amount/price pill: `text.primary` surface with\n * `primary.contrastText` `subtitle2` text. Shared by MerchantHighlightCard and\n * SubscriptionHeroCard.\n */\nconst AmountPill = ({ children, px = 16, sx }: AmountPillProps) => (\n <Box\n sx={{\n alignItems: 'center',\n alignSelf: 'flex-start',\n bgcolor: 'text.primary',\n borderRadius: 999,\n display: 'flex',\n px,\n py: 2,\n ...sx,\n }}\n >\n <Text color=\"primary.contrastText\" variant=\"subtitle2\">\n {children}\n </Text>\n </Box>\n)\n\nexport default AmountPill\n"],"mappings":";;;AAoBA,IAAM,IAAA,CAAc,EAAE,UAAA,GAAU,IAAA,IAAK,IAAI,IAAA,EAAA,MACvC,gBAAA,EAAC,GAAD;AAAA,EACE,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,cAAc;AAAA,IACd,SAAS;AAAA,IACT,IAAA;AAAA,IACA,IAAI;AAAA,IACJ,GAAG;AAAA,EACL;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAuB,SAAQ;AAAA,IACxC,UAAA;AAAA,EACG,CAAA;AACH,CAAA"}
|
|
1
|
+
{"version":3,"file":"AmountPill.es.js","names":[],"sources":["../../../src/insights-v2/components/AmountPill.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nimport Box from '@mui/material/Box'\nimport type { SxProps } from '@mui/material/styles'\n\nimport { Text } from '@mxenabled/mxui'\n\ninterface AmountPillProps {\n /** Pill content (amount / price string). */\n children: ReactNode\n /** Horizontal padding in px (Figma varies: 16 inline, 10 in the hero). */\n px?: number\n sx?: SxProps\n}\n\n/**\n * A dark rounded amount/price pill: `text.primary` surface with\n * `primary.contrastText` `subtitle2` text. Shared by MerchantHighlightCard and\n * SubscriptionHeroCard.\n */\nconst AmountPill = ({ children, px = 16, sx }: AmountPillProps) => (\n <Box\n data-testid=\"amount-pill\"\n sx={{\n alignItems: 'center',\n alignSelf: 'flex-start',\n bgcolor: 'text.primary',\n borderRadius: 999,\n display: 'flex',\n px,\n py: 2,\n ...sx,\n }}\n >\n <Text color=\"primary.contrastText\" variant=\"subtitle2\">\n {children}\n </Text>\n </Box>\n)\n\nexport default AmountPill\n"],"mappings":";;;AAoBA,IAAM,IAAA,CAAc,EAAE,UAAA,GAAU,IAAA,IAAK,IAAI,IAAA,EAAA,MACvC,gBAAA,EAAC,GAAD;AAAA,EACE,eAAY;AAAA,EACZ,IAAI;AAAA,IACF,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,cAAc;AAAA,IACd,SAAS;AAAA,IACT,IAAA;AAAA,IACA,IAAI;AAAA,IACJ,GAAG;AAAA,EACL;AAAA,EAEA,UAAA,gBAAA,EAAC,GAAD;AAAA,IAAM,OAAM;AAAA,IAAuB,SAAQ;AAAA,IACxC,UAAA;AAAA,EACG,CAAA;AACH,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import v from "./
|
|
2
|
-
import w from "./
|
|
1
|
+
import v from "./LogoTile.es.js";
|
|
2
|
+
import w from "./AmountPill.es.js";
|
|
3
3
|
import i from "@mui/material/Stack";
|
|
4
4
|
import { Text as l } from "@mxenabled/mxui";
|
|
5
5
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
var A = ({ amount: t, amountVariant: o = "text", background: n, bgcolor: h = "grey.200", borderColor: d, eyebrow: a, logo: p, logoShadow: s = !0, name: x, nameVariant: m, trailing: u, sx: f }) => {
|
|
7
7
|
const g = m ?? (o === "pill" ? "h2" : "h3");
|
|
8
8
|
let e = u;
|
|
9
|
-
return e == null && t != null && (e = o === "pill" ? /* @__PURE__ */ r(
|
|
9
|
+
return e == null && t != null && (e = o === "pill" ? /* @__PURE__ */ r(w, { children: t }) : /* @__PURE__ */ r(l, {
|
|
10
10
|
color: "text.secondary",
|
|
11
11
|
variant: "body1",
|
|
12
12
|
children: t
|
|
@@ -30,7 +30,7 @@ var A = ({ amount: t, amountVariant: o = "text", background: n, bgcolor: h = "gr
|
|
|
30
30
|
p: 16,
|
|
31
31
|
width: "100%"
|
|
32
32
|
},
|
|
33
|
-
children: [/* @__PURE__ */ r(
|
|
33
|
+
children: [/* @__PURE__ */ r(v, {
|
|
34
34
|
shadow: s,
|
|
35
35
|
children: p
|
|
36
36
|
}), /* @__PURE__ */ c(i, {
|
|
@@ -7,6 +7,7 @@ import { Theme } from '@mui/material/styles';
|
|
|
7
7
|
* - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.
|
|
8
8
|
* - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.
|
|
9
9
|
* - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).
|
|
10
|
+
* - ERROR_WASH_GRADIENT: an account or merchant needing attention (Low Account Balance, off-track status).
|
|
10
11
|
* - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.
|
|
11
12
|
*/
|
|
12
13
|
/**
|
|
@@ -30,6 +31,8 @@ export declare const ACCOUNT_CONNECTED_GRADIENT = "linear-gradient(257deg, rgba(
|
|
|
30
31
|
* stays a literal like the other washes here rather than being derived from `palette.warning`.
|
|
31
32
|
*/
|
|
32
33
|
export declare const WARNING_WASH_GRADIENT = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)";
|
|
34
|
+
/** Red wash at 20% opacity behind a low balance, an off-track status or a flagged merchant. */
|
|
35
|
+
export declare const ERROR_WASH_GRADIENT = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)";
|
|
33
36
|
/**
|
|
34
37
|
* Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →
|
|
35
38
|
* `primary.main` at 75% over paper, built from the live palette so it follows the theme.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { alpha as a } from "@mui/material/styles";
|
|
2
|
-
var
|
|
2
|
+
var e = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", i = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)", n = "linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)", d = "linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)", A = "linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)", E = ({ palette: r }) => `linear-gradient(173deg, ${a(r.primary.light, 0.75)} 46.41%, ${a(r.primary.main, 0.75)} 78.14%)`;
|
|
3
3
|
export {
|
|
4
4
|
n as ACCOUNT_CONNECTED_GRADIENT,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
i as CELEBRATION_GRADIENT,
|
|
6
|
+
A as ERROR_WASH_GRADIENT,
|
|
7
|
+
e as WARM_LIME_ACCENT_GRADIENT,
|
|
7
8
|
d as WARNING_WASH_GRADIENT,
|
|
8
|
-
|
|
9
|
+
E as getPrimaryWashGradient
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
//# sourceMappingURL=celebrationGradients.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Decorative slot washes shared by the block layouts and the presentational components, so\n * one source holds each gradient. The 20%–25% washes layer over `background.paper` via\n * `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` is opaque and stands alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and deposit celebration callouts.\n */\nexport const WARM_LIME_ACCENT_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)'\n\n/** Warm → pink wash behind balance/savings milestones. */\nexport const CELEBRATION_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)'\n\n/** Peach → pink gradient for Discovered Accounts success state. */\nexport const DISCOVERED_ACCOUNTS_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)'\n\n/**\n * Warm → pink wash at 20% opacity for the account-connected success state.\n * Layer over `background.paper` (the Figma spec's `#FFF` base), not the\n * `background` shorthand — a 20% gradient over transparency renders wrong.\n */\nexport const ACCOUNT_CONNECTED_GRADIENT =\n 'linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)'\n\n/**\n * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription\n * Payment). Figma \"Warning Gradient 1\": a bespoke two-stop blend with no palette token, so it\n * stays a literal like the other washes here rather than being derived from `palette.warning`.\n */\nexport const WARNING_WASH_GRADIENT =\n 'linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)'\n\n/**\n * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →\n * `primary.main` at 75% over paper, built from the live palette so it follows the theme.\n */\nexport const getPrimaryWashGradient = ({ palette }: Theme) =>\n `linear-gradient(173deg, ${alpha(palette.primary.light, 0.75)} 46.41%, ${alpha(palette.primary.main, 0.75)} 78.14%)`\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"celebrationGradients.es.js","names":[],"sources":["../../../src/insights-v2/components/celebrationGradients.ts"],"sourcesContent":["import { alpha, type Theme } from '@mui/material/styles'\n\n/**\n * Decorative slot washes shared by the block layouts and the presentational components, so\n * one source holds each gradient. The 20%–25% washes layer over `background.paper` via\n * `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` is opaque and stands alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - ERROR_WASH_GRADIENT: an account or merchant needing attention (Low Account Balance, off-track status).\n * - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.\n */\n\n/**\n * Warm → lime accent wash at 20% opacity. Used as a tinted background behind\n * merchant categorization highlights and deposit celebration callouts.\n */\nexport const WARM_LIME_ACCENT_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)'\n\n/** Warm → pink wash behind balance/savings milestones. */\nexport const CELEBRATION_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)'\n\n/** Peach → pink gradient for Discovered Accounts success state. */\nexport const DISCOVERED_ACCOUNTS_GRADIENT =\n 'linear-gradient(200.73deg, rgba(255, 224, 153, 1) 1.86%, rgba(255, 129, 230, 1) 101.54%)'\n\n/**\n * Warm → pink wash at 20% opacity for the account-connected success state.\n * Layer over `background.paper` (the Figma spec's `#FFF` base), not the\n * `background` shorthand — a 20% gradient over transparency renders wrong.\n */\nexport const ACCOUNT_CONNECTED_GRADIENT =\n 'linear-gradient(257deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)'\n\n/**\n * Orange → red-orange wash at 25% opacity behind a flagged charge (Unexpected Subscription\n * Payment). Figma \"Warning Gradient 1\": a bespoke two-stop blend with no palette token, so it\n * stays a literal like the other washes here rather than being derived from `palette.warning`.\n */\nexport const WARNING_WASH_GRADIENT =\n 'linear-gradient(201deg, rgba(255, 170, 0, 0.25) 1.86%, rgba(255, 68, 0, 0.25) 101.54%)'\n\n/** Red wash at 20% opacity behind a low balance, an off-track status or a flagged merchant. */\nexport const ERROR_WASH_GRADIENT =\n 'linear-gradient(256.82deg, rgba(255, 47, 40, 0.2) 1.86%, rgba(255, 0, 72, 0.2) 101.54%)'\n\n/**\n * Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →\n * `primary.main` at 75% over paper, built from the live palette so it follows the theme.\n */\nexport const getPrimaryWashGradient = ({ palette }: Theme) =>\n `linear-gradient(173deg, ${alpha(palette.primary.light, 0.75)} 46.41%, ${alpha(palette.primary.main, 0.75)} 78.14%)`\n"],"mappings":";AAkBA,IAAa,IACX,+FAGW,IACX,gGAWW,IACX,6FAOW,IACX,0FAGW,IACX,2FAMW,IAAA,CAA0B,EAAE,SAAA,EAAA,MACvC,2BAA2B,EAAM,EAAQ,QAAQ,OAAO,IAAI,CAAA,YAAa,EAAM,EAAQ,QAAQ,MAAM,IAAI,CAAA"}
|
|
@@ -10,3 +10,8 @@ export declare const STATUS_SUCCESS_TOKENS: {
|
|
|
10
10
|
readonly borderColor: "success.main";
|
|
11
11
|
readonly textColor: "success.darker";
|
|
12
12
|
};
|
|
13
|
+
export declare const STATUS_ERROR_TOKENS: {
|
|
14
|
+
readonly bgcolor: "error.lighter";
|
|
15
|
+
readonly borderColor: "error.main";
|
|
16
|
+
readonly textColor: "error.darker";
|
|
17
|
+
};
|
|
@@ -2,8 +2,13 @@ var r = {
|
|
|
2
2
|
bgcolor: "success.100",
|
|
3
3
|
borderColor: "success.main",
|
|
4
4
|
textColor: "success.darker"
|
|
5
|
+
}, o = {
|
|
6
|
+
bgcolor: "error.lighter",
|
|
7
|
+
borderColor: "error.main",
|
|
8
|
+
textColor: "error.darker"
|
|
5
9
|
};
|
|
6
10
|
export {
|
|
11
|
+
o as STATUS_ERROR_TOKENS,
|
|
7
12
|
r as STATUS_SUCCESS_TOKENS
|
|
8
13
|
};
|
|
9
14
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusTokens.es.js","names":[],"sources":["../../../src/insights-v2/components/statusTokens.ts"],"sourcesContent":["/**\n * Shared success/status color tokens for the insights-v2 status surfaces\n * (`StatusPill`, `StatusMessageCard`). Both render a check-icon + text on a\n * green tinted, bordered surface and differ only in geometry (pill vs\n * full-width card), so they share these defaults rather than each hardcoding\n * the same `success.*` tokens.\n */\nexport const STATUS_SUCCESS_TOKENS = {\n bgcolor: 'success.100',\n borderColor: 'success.main',\n textColor: 'success.darker',\n} as const\n"],"mappings":"AAOA,IAAa,IAAwB;AAAA,EACnC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AACb"}
|
|
1
|
+
{"version":3,"file":"statusTokens.es.js","names":[],"sources":["../../../src/insights-v2/components/statusTokens.ts"],"sourcesContent":["/**\n * Shared success/status color tokens for the insights-v2 status surfaces\n * (`StatusPill`, `StatusMessageCard`). Both render a check-icon + text on a\n * green tinted, bordered surface and differ only in geometry (pill vs\n * full-width card), so they share these defaults rather than each hardcoding\n * the same `success.*` tokens.\n */\nexport const STATUS_SUCCESS_TOKENS = {\n bgcolor: 'success.100',\n borderColor: 'success.main',\n textColor: 'success.darker',\n} as const\n\nexport const STATUS_ERROR_TOKENS = {\n bgcolor: 'error.lighter',\n borderColor: 'error.main',\n textColor: 'error.darker',\n} as const\n"],"mappings":"AAOA,IAAa,IAAwB;AAAA,EACnC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AACb,GAEa,IAAsB;AAAA,EACjC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,WAAW;AACb"}
|
|
@@ -11,8 +11,8 @@ import L from "./blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js";
|
|
|
11
11
|
import I from "./blocks/ChartBlocks/DoubleProgressBarBlock/DoubleProgressBarBlock.es.js";
|
|
12
12
|
import R, { isLogoGuid as w } from "./components/LogoFromGuid.es.js";
|
|
13
13
|
import H from "./components/AccountHeroCard.es.js";
|
|
14
|
-
import
|
|
15
|
-
import { detailedAccountVariant as
|
|
14
|
+
import O from "./components/DirectDepositCard.es.js";
|
|
15
|
+
import { detailedAccountVariant as V, directDepositVariant as E, isDetailedAccountVariant as G } from "./blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js";
|
|
16
16
|
import F from "./blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js";
|
|
17
17
|
import N from "./blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js";
|
|
18
18
|
import W from "./components/TransferLogoCard.es.js";
|
|
@@ -24,120 +24,122 @@ import $ from "./components/TransactionListCard.es.js";
|
|
|
24
24
|
import ro from "./blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js";
|
|
25
25
|
import mo from "./components/GoalProgressCard.es.js";
|
|
26
26
|
import ao from "./blocks/ComponentBlocks/GoalsBlock/GoalsBlock.es.js";
|
|
27
|
-
import eo from "./
|
|
28
|
-
import no from "./components/
|
|
29
|
-
import lo from "./
|
|
30
|
-
import Bo from "./components/
|
|
31
|
-
import go from "./blocks/ComponentBlocks/
|
|
32
|
-
import ko from "./
|
|
33
|
-
import So from "./
|
|
34
|
-
import ho from "./
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import Ro from "./components/
|
|
38
|
-
import yo from "./
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import _o from "./components/
|
|
43
|
-
import
|
|
44
|
-
import Uo from "./components/
|
|
45
|
-
import jo from "./
|
|
46
|
-
import zo from "./components/
|
|
47
|
-
import Ko from "./
|
|
48
|
-
import Xo from "./components/
|
|
49
|
-
import Zo from "./components/
|
|
50
|
-
import
|
|
51
|
-
import tr from "./components/
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import fr from "./components/
|
|
55
|
-
import cr from "./components/
|
|
56
|
-
import sr from "./components/
|
|
57
|
-
import {
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import {
|
|
62
|
-
import Lr from "./components/
|
|
63
|
-
import Ir from "./components/
|
|
64
|
-
import Rr from "./components/
|
|
65
|
-
import yr from "./components/
|
|
66
|
-
import
|
|
27
|
+
import eo from "./components/LogoTile.es.js";
|
|
28
|
+
import no from "./components/LogoClusterCard.es.js";
|
|
29
|
+
import lo from "./components/AmountPill.es.js";
|
|
30
|
+
import Bo from "./components/MerchantHighlightCard.es.js";
|
|
31
|
+
import go from "./blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js";
|
|
32
|
+
import ko from "./blocks/ComponentBlocks/NoSpendDaysBlock/NoSpendDaysBlock.es.js";
|
|
33
|
+
import So from "./components/UpcomingBillCard.es.js";
|
|
34
|
+
import ho from "./blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js";
|
|
35
|
+
import Lo from "./components/SaveAnExtraCard.es.js";
|
|
36
|
+
import Io from "./blocks/ComponentBlocks/SaveExtraBlock/SaveExtraBlock.es.js";
|
|
37
|
+
import Ro from "./components/SavingsOpportunityCard.es.js";
|
|
38
|
+
import yo from "./blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js";
|
|
39
|
+
import Mo from "./components/StatusMessageCard.es.js";
|
|
40
|
+
import { transactionBlockVariant as Po } from "./blocks/ComponentBlocks/TransactionBlock/layout.es.js";
|
|
41
|
+
import { TransactionBlock as Eo } from "./blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js";
|
|
42
|
+
import _o from "./components/SubscriptionHeroCard.es.js";
|
|
43
|
+
import xo from "./blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js";
|
|
44
|
+
import Uo from "./components/WithdrawalCard.es.js";
|
|
45
|
+
import jo from "./blocks/ComponentBlocks/WithdrawalBlock/WithdrawalBlock.es.js";
|
|
46
|
+
import zo from "./components/DesignateEmergencySavingsCard.es.js";
|
|
47
|
+
import { SVGImageBlock as Ko } from "./blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js";
|
|
48
|
+
import Xo from "./components/shared/StatusSnackbar.es.js";
|
|
49
|
+
import Zo from "./components/FeedbackDialog.es.js";
|
|
50
|
+
import or from "./components/FeedbackModal.es.js";
|
|
51
|
+
import tr from "./components/ConnectionDetailDrillDown.es.js";
|
|
52
|
+
import ir from "./components/SurveyModal.es.js";
|
|
53
|
+
import pr from "./components/InsightErrorCard.es.js";
|
|
54
|
+
import { ErrorCard as fr } from "./components/ErrorCard.es.js";
|
|
55
|
+
import cr from "./components/BadgedTile.es.js";
|
|
56
|
+
import { OverflowMenu as sr } from "./components/OverflowMenu.es.js";
|
|
57
|
+
import { InsightOptionsMenu as Br } from "./components/InsightOptionsMenu.es.js";
|
|
58
|
+
import gr from "./components/StatusBadge.es.js";
|
|
59
|
+
import kr from "./components/CompactInsightCard.es.js";
|
|
60
|
+
import Sr from "./components/AmountBreakdownCard.es.js";
|
|
61
|
+
import { FeedbackBar as hr } from "./components/FeedbackBar.es.js";
|
|
62
|
+
import { DismissInsightDialog as Lr } from "./components/DismissInsightDialog.es.js";
|
|
63
|
+
import { HiddenConfirmationCard as Ir } from "./components/HiddenConfirmationCard.es.js";
|
|
64
|
+
import { LoadingCard as Rr } from "./components/LoadingCard.es.js";
|
|
65
|
+
import { ObsolesceBanner as yr } from "./components/ObsolesceBanner.es.js";
|
|
66
|
+
import Mr from "./components/BaseLayout.es.js";
|
|
67
|
+
import Pr from "./components/P2PLogoStack.es.js";
|
|
67
68
|
export {
|
|
68
69
|
N as AccountBlock,
|
|
69
70
|
H as AccountHeroCard,
|
|
70
71
|
q as AccountSwitchBlock,
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
Sr as AmountBreakdownCard,
|
|
73
|
+
lo as AmountPill,
|
|
73
74
|
e as BAR_ARIA_LABEL,
|
|
74
75
|
f as BAR_CHART_VARIANTS,
|
|
75
|
-
|
|
76
|
+
cr as BadgedTile,
|
|
76
77
|
k as BarchartBlock,
|
|
77
|
-
|
|
78
|
+
Mr as BaseLayout,
|
|
78
79
|
J as BudgetBlock,
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
kr as CompactInsightCard,
|
|
81
|
+
tr as ConnectionDetailDrillDown,
|
|
81
82
|
Q as DebtPayoffCard,
|
|
82
83
|
ro as DebtsBlock,
|
|
83
|
-
|
|
84
|
+
zo as DesignateEmergencySavingsCard,
|
|
84
85
|
F as DetailedAccountBlock,
|
|
85
86
|
F as DirectDepositBlock,
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
O as DirectDepositCard,
|
|
88
|
+
Lr as DismissInsightDialog,
|
|
88
89
|
L as DonutChartBlock,
|
|
89
90
|
S as DoubleBarChartBlock,
|
|
90
91
|
I as DoubleProgressBarBlock,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
fr as ErrorCard,
|
|
93
|
+
hr as FeedbackBar,
|
|
94
|
+
Zo as FeedbackDialog,
|
|
95
|
+
or as FeedbackModal,
|
|
95
96
|
mo as GoalProgressCard,
|
|
96
97
|
ao as GoalsBlock,
|
|
97
98
|
d as HOST_ACTIONS,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
Ir as HiddenConfirmationCard,
|
|
100
|
+
pr as InsightErrorCard,
|
|
101
|
+
Br as InsightOptionsMenu,
|
|
101
102
|
Y as InsightTransactionRow,
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
Rr as LoadingCard,
|
|
104
|
+
no as LogoClusterCard,
|
|
104
105
|
R as LogoFromGuid,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
eo as LogoTile,
|
|
107
|
+
go as MerchantBlock,
|
|
108
|
+
Bo as MerchantHighlightCard,
|
|
109
|
+
ko as NoSpendDaysBlock,
|
|
110
|
+
yr as ObsolesceBanner,
|
|
111
|
+
sr as OverflowMenu,
|
|
112
|
+
Pr as P2PLogoStack,
|
|
113
|
+
ho as RepeatingTransactionBlock,
|
|
114
|
+
Ko as SVGImageBlock,
|
|
115
|
+
Lo as SaveAnExtraCard,
|
|
116
|
+
Io as SaveExtraBlock,
|
|
117
|
+
yo as SavingsOpportunityBlock,
|
|
118
|
+
Ro as SavingsOpportunityCard,
|
|
119
|
+
gr as StatusBadge,
|
|
120
|
+
Mo as StatusMessageCard,
|
|
119
121
|
r as StatusPill,
|
|
120
|
-
|
|
122
|
+
Xo as StatusSnackbar,
|
|
121
123
|
h as StepChartBlock,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
_o as SubscriptionHeroCard,
|
|
125
|
+
ir as SurveyModal,
|
|
126
|
+
Eo as TransactionBlock,
|
|
125
127
|
$ as TransactionListCard,
|
|
126
128
|
W as TransferLogoCard,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
ho as UpcomingBillBlock,
|
|
130
|
+
So as UpcomingBillCard,
|
|
131
|
+
xo as UpcomingSubscriptionBlock,
|
|
132
|
+
jo as WithdrawalBlock,
|
|
133
|
+
Uo as WithdrawalCard,
|
|
132
134
|
n as barChartVariant,
|
|
133
135
|
c as buildChartData,
|
|
134
136
|
l as buildDataSeries,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
V as detailedAccountVariant,
|
|
138
|
+
E as directDepositVariant,
|
|
137
139
|
G as isDetailedAccountVariant,
|
|
138
140
|
w as isLogoGuid,
|
|
139
141
|
m as resolveInsightRender,
|
|
140
|
-
|
|
142
|
+
Po as transactionBlockVariant,
|
|
141
143
|
a as useBeatActions,
|
|
142
144
|
C as useBeatCtaActions,
|
|
143
145
|
g as useCtaHandler
|