@mx-cartographer/experiences 9.7.14 → 9.7.15
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 +5 -0
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +60 -67
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.d.ts +0 -8
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +82 -94
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.d.ts +6 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +28 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/index.d.ts +4 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.d.ts +18 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +73 -0
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.d.ts +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/index.d.ts +1 -1
- package/dist/insights-v2/components/DirectDepositCard.es.js +17 -14
- package/dist/insights-v2/components/DirectDepositCard.es.js.map +1 -1
- package/dist/insights-v2/index.es.js +116 -111
- package/dist/insights-v2/mappings/blocks.es.js +6 -6
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/DirectDepositBlock.d.ts +0 -16
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/DirectDepositBlock.es.js +0 -24
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/DirectDepositBlock.es.js.map +0 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/index.d.ts +0 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/layout.d.ts +0 -28
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/layout.es.js +0 -63
- package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/layout.es.js.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InsightsPayload } from '../../../../core';
|
|
2
|
-
interface DirectDepositBlockProps {
|
|
3
|
-
payload: InsightsPayload;
|
|
4
|
-
beatGuid?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Direct Deposit component block — the shared hero visual for the Set Up
|
|
8
|
-
* Direct Deposit, Switch Direct Deposit, and Missing Interest Rate beats.
|
|
9
|
-
*
|
|
10
|
-
* The backend picks the design branch via `instance_slot.variant` and carries
|
|
11
|
-
* the account facts flat on `instance_slot` (V2 contract — no
|
|
12
|
-
* `instance_slot_data`). Everything variant-specific is flat on the layout
|
|
13
|
-
* config (`./layout.ts`); `DirectDepositCard` is a variant-agnostic hero.
|
|
14
|
-
*/
|
|
15
|
-
declare const DirectDepositBlock: ({ payload }: DirectDepositBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default DirectDepositBlock;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { directDepositVariant as f, getLayoutConfig as l } from "./layout.es.js";
|
|
2
|
-
import D from "../../../components/DirectDepositCard.es.js";
|
|
3
|
-
import { DepositLogo as g } from "../../../components/ComponentBlocks/DepositLogo.es.js";
|
|
4
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
5
|
-
import { useTheme as _ } from "@mui/material/styles";
|
|
6
|
-
var L = ({ payload: i }) => {
|
|
7
|
-
const e = _(), { instance_slot: n } = i, { account_name: a, account_type: s, institution_guid: r, institution_name: c, status_text: m, variant: u } = n, t = l(e), p = t[u] ?? t[f.SetUpDirectDeposit];
|
|
8
|
-
return /* @__PURE__ */ o(D, {
|
|
9
|
-
...p,
|
|
10
|
-
logo: /* @__PURE__ */ o(g, {
|
|
11
|
-
iconName: "account_balance",
|
|
12
|
-
institutionName: c ?? "",
|
|
13
|
-
institutionGuid: r ?? ""
|
|
14
|
-
}),
|
|
15
|
-
name: a,
|
|
16
|
-
statusLabel: m,
|
|
17
|
-
subtitle: s
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
L as default
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=DirectDepositBlock.es.js.map
|
package/dist/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/DirectDepositBlock.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DirectDepositBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/DirectDepositBlock.tsx"],"sourcesContent":["import { useTheme } from '@mui/material/styles'\n\nimport type { InsightsPayload } from '../../../../core'\n\nimport DirectDepositCard from '../../../components/DirectDepositCard'\n\nimport { directDepositVariant, getLayoutConfig, type DirectDepositVariant } from './layout'\nimport DepositLogo from '../../../components/ComponentBlocks/DepositLogo'\n\ninterface DirectDepositBlockProps {\n payload: InsightsPayload\n beatGuid?: string\n}\n\n/**\n * Direct Deposit component block — the shared hero visual for the Set Up\n * Direct Deposit, Switch Direct Deposit, and Missing Interest Rate beats.\n *\n * The backend picks the design branch via `instance_slot.variant` and carries\n * the account facts flat on `instance_slot` (V2 contract — no\n * `instance_slot_data`). Everything variant-specific is flat on the layout\n * config (`./layout.ts`); `DirectDepositCard` is a variant-agnostic hero.\n */\nconst DirectDepositBlock = ({ payload }: DirectDepositBlockProps) => {\n const theme = useTheme()\n const { instance_slot } = payload\n const { account_name, account_type, institution_guid, institution_name, status_text, variant } =\n instance_slot\n\n const layoutConfig = getLayoutConfig(theme)\n // Unknown backend variants degrade to the pending setup styling rather than\n // crashing (mirrors createVariantBlock's fallback philosophy).\n const config =\n layoutConfig[variant as DirectDepositVariant] ??\n layoutConfig[directDepositVariant.SetUpDirectDeposit]\n\n return (\n <DirectDepositCard\n {...config}\n logo={\n <DepositLogo\n iconName=\"account_balance\"\n institutionName={institution_name ?? ''}\n institutionGuid={institution_guid ?? ''}\n />\n }\n name={account_name}\n statusLabel={status_text}\n subtitle={account_type}\n />\n )\n}\n\nexport default DirectDepositBlock\n"],"mappings":";;;;;AAuBA,IAAM,IAAA,CAAsB,EAAE,SAAA,EAAA,MAAuC;AACnE,QAAM,IAAQ,EAAS,GACjB,EAAE,eAAA,EAAA,IAAkB,GACpB,EAAE,cAAA,GAAc,cAAA,GAAc,kBAAA,GAAkB,kBAAA,GAAkB,aAAA,GAAa,SAAA,EAAA,IACnF,GAEI,IAAe,EAAgB,CAAK,GAGpC,IACJ,EAAa,CAAA,KACb,EAAa,EAAqB,kBAAA;AAEpC,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,MACE,gBAAA,EAAC,GAAD;AAAA,MACE,UAAS;AAAA,MACT,iBAAiB,KAAoB;AAAA,MACrC,iBAAiB,KAAoB;AAAA,IACtC,CAAA;AAAA,IAEH,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,EACX,CAAA;AAEL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DirectDepositBlock } from './DirectDepositBlock';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@mui/material/styles';
|
|
2
|
-
import { DirectDepositCardStyleProps, DirectDepositPillConfig } from '../../../components/DirectDepositCard';
|
|
3
|
-
/**
|
|
4
|
-
* Design branches of the Direct Deposit component block (Figma: "Direct
|
|
5
|
-
* Deposit" — Detailed Primary / Detailed Success / Deposit Completed):
|
|
6
|
-
*
|
|
7
|
-
* - `SetUpDirectDeposit` — pending setup: flat `primary.lighter` slot, neutral pill
|
|
8
|
-
* ("Direct Deposit Not Set Up").
|
|
9
|
-
* - `DirectDepositComplete` — Set Up / Switch Direct Deposit success: celebration wash +
|
|
10
|
-
* confetti, solid success pill with a check_circle glyph ("Direct Deposit Complete").
|
|
11
|
-
* - `MissingInterestRate` — pending rate: blue gradient slot, primary-tinted pill
|
|
12
|
-
* ("Unknown Interest Rate (APR)%").
|
|
13
|
-
* - `InterestRateAdded` — rate added: green gradient slot, solid success pill
|
|
14
|
-
* ("Interest Rate: 19.99% APR").
|
|
15
|
-
*/
|
|
16
|
-
export declare const directDepositVariant: {
|
|
17
|
-
readonly SetUpDirectDeposit: "set_up_direct_deposit";
|
|
18
|
-
readonly DirectDepositComplete: "direct_deposit_complete";
|
|
19
|
-
readonly MissingInterestRate: "missing_interest_rate";
|
|
20
|
-
readonly InterestRateAdded: "interest_rate_added";
|
|
21
|
-
};
|
|
22
|
-
export type DirectDepositVariant = (typeof directDepositVariant)[keyof typeof directDepositVariant];
|
|
23
|
-
export declare const NEUTRAL_PILL: DirectDepositPillConfig;
|
|
24
|
-
/**
|
|
25
|
-
* Per-variant style props for `DirectDepositCard`, keyed by the backend
|
|
26
|
-
* `instance_slot.variant` (mirrors AccountBlock's `getLayoutConfig`).
|
|
27
|
-
*/
|
|
28
|
-
export declare const getLayoutConfig: (theme: Theme) => Record<DirectDepositVariant, DirectDepositCardStyleProps>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { WARM_LIME_ACCENT_GRADIENT as o } from "../../../components/celebrationGradients.es.js";
|
|
2
|
-
var e = {
|
|
3
|
-
SetUpDirectDeposit: "set_up_direct_deposit",
|
|
4
|
-
DirectDepositComplete: "direct_deposit_complete",
|
|
5
|
-
MissingInterestRate: "missing_interest_rate",
|
|
6
|
-
InterestRateAdded: "interest_rate_added"
|
|
7
|
-
}, i = {
|
|
8
|
-
light: "linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)",
|
|
9
|
-
dark: "linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)"
|
|
10
|
-
}, l = {
|
|
11
|
-
light: "linear-gradient(180deg, #94C9B7 0%, #12875E 100%)",
|
|
12
|
-
dark: "linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)"
|
|
13
|
-
}, n = {
|
|
14
|
-
bgcolor: "grey.200",
|
|
15
|
-
borderColor: "grey.200",
|
|
16
|
-
labelColor: "text.primary"
|
|
17
|
-
}, d = {
|
|
18
|
-
bgcolor: "primary.lighter",
|
|
19
|
-
borderColor: "primary.lighter",
|
|
20
|
-
labelColor: "text.primary"
|
|
21
|
-
}, t = {
|
|
22
|
-
bgcolor: "success.main",
|
|
23
|
-
borderColor: "success.main",
|
|
24
|
-
labelColor: "success.contrastText"
|
|
25
|
-
}, c = (a) => {
|
|
26
|
-
const r = a.palette.mode;
|
|
27
|
-
return {
|
|
28
|
-
[e.SetUpDirectDeposit]: {
|
|
29
|
-
bgcolor: "primary.lighter",
|
|
30
|
-
nameVariant: "body2",
|
|
31
|
-
pill: n
|
|
32
|
-
},
|
|
33
|
-
[e.DirectDepositComplete]: {
|
|
34
|
-
backgroundImage: o,
|
|
35
|
-
bgcolor: "background.paper",
|
|
36
|
-
nameVariant: "body2",
|
|
37
|
-
pill: {
|
|
38
|
-
...t,
|
|
39
|
-
icon: "check_circle"
|
|
40
|
-
},
|
|
41
|
-
showConfetti: !0
|
|
42
|
-
},
|
|
43
|
-
[e.MissingInterestRate]: {
|
|
44
|
-
backgroundImage: i[r],
|
|
45
|
-
bgcolor: "background.paper",
|
|
46
|
-
nameVariant: "body1",
|
|
47
|
-
pill: d
|
|
48
|
-
},
|
|
49
|
-
[e.InterestRateAdded]: {
|
|
50
|
-
backgroundImage: l[r],
|
|
51
|
-
bgcolor: "background.paper",
|
|
52
|
-
nameVariant: "body1",
|
|
53
|
-
pill: t
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
n as NEUTRAL_PILL,
|
|
59
|
-
e as directDepositVariant,
|
|
60
|
-
c as getLayoutConfig
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
//# sourceMappingURL=layout.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/DirectDepositBlock/layout.ts"],"sourcesContent":["import type { Theme } from '@mui/material/styles'\n\nimport { WARM_LIME_ACCENT_GRADIENT } from '../../../components/celebrationGradients'\nimport type {\n DirectDepositCardStyleProps,\n DirectDepositPillConfig,\n} from '../../../components/DirectDepositCard'\n\n/**\n * Design branches of the Direct Deposit component block (Figma: \"Direct\n * Deposit\" — Detailed Primary / Detailed Success / Deposit Completed):\n *\n * - `SetUpDirectDeposit` — pending setup: flat `primary.lighter` slot, neutral pill\n * (\"Direct Deposit Not Set Up\").\n * - `DirectDepositComplete` — Set Up / Switch Direct Deposit success: celebration wash +\n * confetti, solid success pill with a check_circle glyph (\"Direct Deposit Complete\").\n * - `MissingInterestRate` — pending rate: blue gradient slot, primary-tinted pill\n * (\"Unknown Interest Rate (APR)%\").\n * - `InterestRateAdded` — rate added: green gradient slot, solid success pill\n * (\"Interest Rate: 19.99% APR\").\n */\nexport const directDepositVariant = {\n SetUpDirectDeposit: 'set_up_direct_deposit',\n DirectDepositComplete: 'direct_deposit_complete',\n MissingInterestRate: 'missing_interest_rate',\n InterestRateAdded: 'interest_rate_added',\n} as const\n\nexport type DirectDepositVariant = (typeof directDepositVariant)[keyof typeof directDepositVariant]\n\n// Figma slot gradients (opaque, vertical). Light/dark pairs are taken from the\n// light and dark pages of the Missing Interest Rates frame — they are bespoke\n// blends with no theme token, so they stay literal hexes keyed by palette mode.\nconst MISSING_RATE_GRADIENTS = {\n light: 'linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)',\n dark: 'linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)',\n} as const\n\nconst RATE_ADDED_GRADIENTS = {\n light: 'linear-gradient(180deg, #94C9B7 0%, #12875E 100%)',\n dark: 'linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)',\n} as const\n\n// Figma light-mode references: neutral pill #ececec, primary-tinted pill\n// #dfe8fd (`primary.lighter`), solid success pill #12875e (`success.main`).\nexport const NEUTRAL_PILL: DirectDepositPillConfig = {\n bgcolor: 'grey.200',\n borderColor: 'grey.200',\n labelColor: 'text.primary',\n}\n\nconst PRIMARY_TINT_PILL: DirectDepositPillConfig = {\n bgcolor: 'primary.lighter',\n borderColor: 'primary.lighter',\n labelColor: 'text.primary',\n}\n\nconst SUCCESS_PILL: DirectDepositPillConfig = {\n bgcolor: 'success.main',\n borderColor: 'success.main',\n labelColor: 'success.contrastText',\n}\n\n/**\n * Per-variant style props for `DirectDepositCard`, keyed by the backend\n * `instance_slot.variant` (mirrors AccountBlock's `getLayoutConfig`).\n */\nexport const getLayoutConfig = (\n theme: Theme,\n): Record<DirectDepositVariant, DirectDepositCardStyleProps> => {\n const mode = theme.palette.mode\n\n return {\n [directDepositVariant.SetUpDirectDeposit]: {\n bgcolor: 'primary.lighter',\n nameVariant: 'body2',\n pill: NEUTRAL_PILL,\n },\n [directDepositVariant.DirectDepositComplete]: {\n backgroundImage: WARM_LIME_ACCENT_GRADIENT,\n bgcolor: 'background.paper',\n nameVariant: 'body2',\n // Figma 1941:192796: 16px check_circle inside the complete pill.\n pill: { ...SUCCESS_PILL, icon: 'check_circle' },\n showConfetti: true,\n },\n [directDepositVariant.MissingInterestRate]: {\n backgroundImage: MISSING_RATE_GRADIENTS[mode],\n bgcolor: 'background.paper',\n nameVariant: 'body1',\n pill: PRIMARY_TINT_PILL,\n },\n [directDepositVariant.InterestRateAdded]: {\n backgroundImage: RATE_ADDED_GRADIENTS[mode],\n bgcolor: 'background.paper',\n nameVariant: 'body1',\n pill: SUCCESS_PILL,\n },\n }\n}\n"],"mappings":";AAqBA,IAAa,IAAuB;AAAA,EAClC,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,qBAAqB;AAAA,EACrB,mBAAmB;AACrB,GAOM,IAAyB;AAAA,EAC7B,OAAO;AAAA,EACP,MAAM;AACR,GAEM,IAAuB;AAAA,EAC3B,OAAO;AAAA,EACP,MAAM;AACR,GAIa,IAAwC;AAAA,EACnD,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AACd,GAEM,IAA6C;AAAA,EACjD,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AACd,GAEM,IAAwC;AAAA,EAC5C,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AACd,GAMa,IAAA,CACX,MAC8D;AAC9D,QAAM,IAAO,EAAM,QAAQ;AAE3B,SAAO;AAAA,IACJ,CAAA,EAAqB,kBAAA,GAAqB;AAAA,MACzC,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM;AAAA,IACR;AAAA,IACC,CAAA,EAAqB,qBAAA,GAAwB;AAAA,MAC5C,iBAAiB;AAAA,MACjB,SAAS;AAAA,MACT,aAAa;AAAA,MAEb,MAAM;AAAA,QAAE,GAAG;AAAA,QAAc,MAAM;AAAA,MAAe;AAAA,MAC9C,cAAc;AAAA,IAChB;AAAA,IACC,CAAA,EAAqB,mBAAA,GAAsB;AAAA,MAC1C,iBAAiB,EAAuB,CAAA;AAAA,MACxC,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM;AAAA,IACR;AAAA,IACC,CAAA,EAAqB,iBAAA,GAAoB;AAAA,MACxC,iBAAiB,EAAqB,CAAA;AAAA,MACtC,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM;AAAA,IACR;AAAA,EACF;AACF"}
|