@mx-cartographer/experiences 9.7.129 → 9.7.131
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/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.es.js +44 -43
- package/dist/insights-v2/actionBlocks/AccountListBlock/AccountListBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.es.js +1 -1
- package/dist/insights-v2/actionBlocks/AccountListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +38 -38
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/layout.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/layout.es.js +13 -12
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +46 -45
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/CreditUtilizationBlock/layout.es.js +23 -22
- package/dist/insights-v2/actionBlocks/CreditUtilizationBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js +26 -25
- package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/HelpBlock/layout.d.ts +0 -1
- package/dist/insights-v2/actionBlocks/HelpBlock/layout.es.js +6 -6
- package/dist/insights-v2/actionBlocks/HelpBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlock.es.js +74 -104
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/MakeTransferActionBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/layout.d.ts +14 -0
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/layout.es.js +58 -11
- package/dist/insights-v2/actionBlocks/MakeTransferActionBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/OverdraftBlock/layout.es.js +11 -13
- package/dist/insights-v2/actionBlocks/OverdraftBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js +19 -18
- package/dist/insights-v2/actionBlocks/PayoffCalculatorBlock/PayoffResults.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +14 -13
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js +10 -9
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +0 -3
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js +30 -33
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js +31 -30
- package/dist/insights-v2/actionBlocks/TransactionListBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +14 -14
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js +6 -6
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js +22 -28
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/RepeatingTransactionBlock/RepeatingTransactionBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js +11 -10
- package/dist/insights-v2/blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/UpcomingSubscriptionBlock/UpcomingSubscriptionBlock.es.js +5 -5
- package/dist/insights-v2/blocks/ComponentBlocks/WeeklySmallPurchasesBlock/WeeklySmallPurchasesBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/EmergencySavingsAccountPicker.es.js +1 -1
- package/dist/insights-v2/blocks/slotReaders.d.ts +5 -0
- package/dist/insights-v2/blocks/slotReaders.es.js +7 -5
- package/dist/insights-v2/blocks/slotReaders.es.js.map +1 -1
- package/dist/insights-v2/components/celebrationGradients.d.ts +15 -1
- package/dist/insights-v2/components/celebrationGradients.es.js +16 -7
- package/dist/insights-v2/components/celebrationGradients.es.js.map +1 -1
- package/dist/insights-v2/components/shared/elevation.d.ts +2 -0
- package/dist/insights-v2/components/shared/elevation.es.js +3 -2
- package/dist/insights-v2/components/shared/elevation.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { slot as
|
|
2
|
-
import { formatCurrency as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { slot as a } from "../../../../core/types/Insights.es.js";
|
|
2
|
+
import { formatCurrency as n } from "../../../../core/utils/NumberFormatting.es.js";
|
|
3
|
+
import { asNumber as i, asText as s } from "../../slotReaders.es.js";
|
|
4
|
+
import e from "../../../components/SavingsOpportunityCard.es.js";
|
|
5
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
6
|
+
var v = ({ payload: m }) => {
|
|
7
|
+
const t = m.instance_slot?.data, r = i(a(t, "amount")), o = s(a(t, "primary_text"));
|
|
8
|
+
return r === void 0 || o === void 0 ? null : /* @__PURE__ */ p(e, {
|
|
9
|
+
amount: n(r, "0,0.00"),
|
|
10
|
+
label: o,
|
|
10
11
|
slot: !0
|
|
11
12
|
});
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
v as default
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
//# sourceMappingURL=SavingsOpportunityBlock.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SavingsOpportunityBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.tsx"],"sourcesContent":["import { slot as readSlot, type InsightsPayload } from '../../../../core'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport SavingsOpportunityCard from '../../../components/SavingsOpportunityCard'\
|
|
1
|
+
{"version":3,"file":"SavingsOpportunityBlock.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ComponentBlocks/SavingsOpportunityBlock/SavingsOpportunityBlock.tsx"],"sourcesContent":["import { slot as readSlot, type InsightsPayload } from '../../../../core'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\n\nimport SavingsOpportunityCard from '../../../components/SavingsOpportunityCard'\nimport { asNumber, asText } from '../../slotReaders'\n\n/**\n * Savings Opportunity V2 coupon (ditto `savings_amount_block`, single `save_amount` variant): reads\n * `primary_text` and `amount` off `instance_slot.data`. `slot()` is an unchecked cast, so a payload\n * that omits the amount or sends a non-number / non-string renders nothing rather than a fabricated\n * `$0.00` card (same guard as `SaveExtraBlock`).\n */\nconst SavingsOpportunityBlock = ({ payload }: { payload: InsightsPayload }) => {\n const data = payload.instance_slot?.data\n const amount = asNumber(readSlot<unknown>(data, 'amount'))\n const primaryText = asText(readSlot<unknown>(data, 'primary_text'))\n\n if (amount === undefined || primaryText === undefined) return null\n\n return (\n <SavingsOpportunityCard amount={formatCurrency(amount, '0,0.00')} label={primaryText} slot />\n )\n}\n\nexport default SavingsOpportunityBlock\n"],"mappings":";;;;;AAYA,IAAM,IAAA,CAA2B,EAAE,SAAA,EAAA,MAA4C;AAC7E,QAAM,IAAO,EAAQ,eAAe,MAC9B,IAAS,EAAS,EAAkB,GAAM,QAAQ,CAAC,GACnD,IAAc,EAAO,EAAkB,GAAM,cAAc,CAAC;AAElE,SAAI,MAAW,UAAa,MAAgB,SAAkB,OAG5D,gBAAA,EAAC,GAAD;AAAA,IAAwB,QAAQ,EAAe,GAAQ,QAAQ;AAAA,IAAG,OAAO;AAAA,IAAa,MAAA;AAAA,EAAM,CAAA;AAEhG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useGlobalCopyStore as k } from "../../../../common/context/hooks.es.js";
|
|
2
2
|
import { slot as c } from "../../../../core/types/Insights.es.js";
|
|
3
3
|
import { formatCurrency as S } from "../../../../core/utils/NumberFormatting.es.js";
|
|
4
|
-
import z from "
|
|
5
|
-
import
|
|
4
|
+
import { asNumber as z, asText as h } from "../../slotReaders.es.js";
|
|
5
|
+
import b from "../../../components/LogoFromGuid.es.js";
|
|
6
6
|
import C from "../../../components/SubscriptionHeroCard.es.js";
|
|
7
7
|
import { createVariantBlock as $ } from "../../createVariantBlock.es.js";
|
|
8
8
|
import { CADENCE as B, upcomingSubscriptionVariant as T } from "./layout.es.js";
|
|
@@ -89,7 +89,7 @@ var w = [
|
|
|
89
89
|
top: 57.9
|
|
90
90
|
}
|
|
91
91
|
], x = ({ payload: i }) => {
|
|
92
|
-
const s = k().insights_feed?.upcoming_subscription_block, { instance_slot: p } = i, { data: e } = p, a = i.widget_type === "mini", l =
|
|
92
|
+
const s = k().insights_feed?.upcoming_subscription_block, { instance_slot: p } = i, { data: e } = p, a = i.widget_type === "mini", l = z(c(e, "recurrence_type")), m = z(c(e, "amount")), f = h(c(e, "merchant_name")), u = h(c(e, "merchant_guid")), d = l !== void 0 ? B[l] : void 0, y = s?.[d?.copyKey] ?? d?.word, n = u ? {
|
|
93
93
|
alt: f ?? "",
|
|
94
94
|
guid: u
|
|
95
95
|
} : null, g = m === void 0 ? "" : S(m, "0,0.00"), _ = g ? /* @__PURE__ */ j("span", {
|
|
@@ -118,7 +118,7 @@ var w = [
|
|
|
118
118
|
top: `${t.top}%`,
|
|
119
119
|
width: t.size
|
|
120
120
|
},
|
|
121
|
-
children: /* @__PURE__ */ o(
|
|
121
|
+
children: /* @__PURE__ */ o(b, {
|
|
122
122
|
logo: n,
|
|
123
123
|
size: t.size
|
|
124
124
|
})
|
|
@@ -129,7 +129,7 @@ var w = [
|
|
|
129
129
|
children: /* @__PURE__ */ o(C, {
|
|
130
130
|
backdrop: v,
|
|
131
131
|
compact: a,
|
|
132
|
-
logo: n ? /* @__PURE__ */ o(
|
|
132
|
+
logo: n ? /* @__PURE__ */ o(b, {
|
|
133
133
|
logo: n,
|
|
134
134
|
size: a ? 40 : 64
|
|
135
135
|
}) : null,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { buildDynamicCopy as x } from "../../../../core/utils/Localization.es.js";
|
|
2
2
|
import { useGlobalCopyStore as y } from "../../../../common/context/hooks.es.js";
|
|
3
3
|
import { formatCurrency as w } from "../../../../core/utils/NumberFormatting.es.js";
|
|
4
|
-
import C,
|
|
5
|
-
import {
|
|
4
|
+
import { asNumber as C, slotOrFlat as h } from "../../slotReaders.es.js";
|
|
5
|
+
import _, { isLogoGuid as L } from "../../../components/LogoFromGuid.es.js";
|
|
6
6
|
import f from "../../../components/LogoTile.es.js";
|
|
7
7
|
import i from "@mui/material/Stack";
|
|
8
8
|
import { Text as n } from "@mxenabled/mxui";
|
|
9
9
|
import { Icon as R } from "@mxenabled/mx-icons";
|
|
10
10
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
11
11
|
var g = 6, d = 32, S = (r) => typeof r == "object" && r !== null, G = ({ row: r }) => {
|
|
12
|
-
if (
|
|
12
|
+
if (L(r.logo?.guid)) return /* @__PURE__ */ o(_, {
|
|
13
13
|
logo: r.logo,
|
|
14
14
|
size: d
|
|
15
15
|
});
|
|
@@ -24,7 +24,7 @@ var g = 6, d = 32, S = (r) => typeof r == "object" && r !== null, G = ({ row: r
|
|
|
24
24
|
sx: { color: "text.secondary" }
|
|
25
25
|
});
|
|
26
26
|
}, B = ({ payload: r }) => {
|
|
27
|
-
const e = y().insights_feed?.general, { instance_slot: c = {} } = r, m =
|
|
27
|
+
const e = y().insights_feed?.general, { instance_slot: c = {} } = r, m = C(h(c, "amount"));
|
|
28
28
|
if (m === void 0) return null;
|
|
29
29
|
const p = h(c, "data_series"), t = (Array.isArray(p) ? p : []).filter(S), u = t.length > g ? t.slice(0, 5) : t, a = t.length - u.length, s = x(e?.more_merchants ?? "", `${a}`) || void 0;
|
|
30
30
|
return /* @__PURE__ */ o(i, {
|
package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/EmergencySavingsAccountPicker.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAccountStore as g, useInsightsV2Store as p } from "../../../../common/context/hooks.es.js";
|
|
2
|
+
import { asText as t } from "../../slotReaders.es.js";
|
|
2
3
|
import { ANALYTICS_EVENTS_CONFIG as _ } from "../../../analytics/analyticsEventsConfig.es.js";
|
|
3
4
|
import { useAnalyticsEvent as v } from "../../../analytics/useAnalyticsEvent.es.js";
|
|
4
|
-
import { asText as t } from "../../slotReaders.es.js";
|
|
5
5
|
import E from "../../../components/DesignateEmergencySavingsCard.es.js";
|
|
6
6
|
import { observer as S } from "mobx-react-lite";
|
|
7
7
|
import { jsx as d } from "react/jsx-runtime";
|
|
@@ -9,4 +9,9 @@ export type FlatSlotKey = Exclude<keyof InstanceSlot, 'data' | 'block' | 'varian
|
|
|
9
9
|
export declare const slotOrFlat: (instanceSlot: InstanceSlot, key: FlatSlotKey) => unknown;
|
|
10
10
|
/** A finite number, else undefined (so a card never shows a made-up value). */
|
|
11
11
|
export declare const asNumber: (value: unknown) => number | undefined;
|
|
12
|
+
/** Any string, empty included, else undefined. */
|
|
12
13
|
export declare const asText: (value: unknown) => string | undefined;
|
|
14
|
+
/** A string with more than whitespace, else undefined: a blank guid or label is no value. */
|
|
15
|
+
export declare const asNonEmptyText: (value: unknown) => string | undefined;
|
|
16
|
+
/** Guids, else undefined: an empty list or a blank guid names nothing to fetch or draw. */
|
|
17
|
+
export declare const asGuidList: (value: unknown) => string[] | undefined;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { slot as
|
|
2
|
-
var
|
|
1
|
+
import { slot as i } from "../../core/types/Insights.es.js";
|
|
2
|
+
var d = (r, t) => i(r.data, t) ?? r[t], m = (r) => typeof r == "number" && Number.isFinite(r) ? r : void 0, p = (r) => typeof r == "string" ? r : void 0, o = (r) => typeof r == "string" && r.trim() !== "" ? r : void 0, y = (r) => Array.isArray(r) && r.length > 0 && r.every((t) => o(t) !== void 0) ? r : void 0;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
m as
|
|
4
|
+
y as asGuidList,
|
|
5
|
+
o as asNonEmptyText,
|
|
6
|
+
m as asNumber,
|
|
7
|
+
p as asText,
|
|
8
|
+
d as slotOrFlat
|
|
7
9
|
};
|
|
8
10
|
|
|
9
11
|
//# sourceMappingURL=slotReaders.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotReaders.es.js","names":[],"sources":["../../../src/insights-v2/blocks/slotReaders.ts"],"sourcesContent":["import { slot, type InstanceSlot } from '../../core'\n\n/** A field V1 payloads carry flat on the slot, beside `data`. */\nexport type FlatSlotKey = Exclude<keyof InstanceSlot, 'data' | 'block' | 'variant'>\n\n/**\n * `data` first, then the flat field V1 payloads carry beside it. Any non-null `data` value wins,\n * even one of the wrong kind (`data` is the truth; the caller's guard then drops it). For blocks\n * that still accept V1; a V2-only block reads `slot()` so a stale flat field never shows.\n */\nexport const slotOrFlat = (instanceSlot: InstanceSlot, key: FlatSlotKey): unknown =>\n slot(instanceSlot.data, key) ?? instanceSlot[key]\n\n/** A finite number, else undefined (so a card never shows a made-up value). */\nexport const asNumber = (value: unknown): number | undefined =>\n typeof value === 'number' && Number.isFinite(value) ? value : undefined\n\nexport const asText = (value: unknown): string | undefined =>\n typeof value === 'string' ? value : undefined\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"slotReaders.es.js","names":[],"sources":["../../../src/insights-v2/blocks/slotReaders.ts"],"sourcesContent":["import { slot, type InstanceSlot } from '../../core'\n\n// Readers for untrusted payload values, in instance slots and drilldown_data: each returns the value\n// when it has the right shape, else undefined, so the caller drops it rather than drawing a guess.\n\n/** A field V1 payloads carry flat on the slot, beside `data`. */\nexport type FlatSlotKey = Exclude<keyof InstanceSlot, 'data' | 'block' | 'variant'>\n\n/**\n * `data` first, then the flat field V1 payloads carry beside it. Any non-null `data` value wins,\n * even one of the wrong kind (`data` is the truth; the caller's guard then drops it). For blocks\n * that still accept V1; a V2-only block reads `slot()` so a stale flat field never shows.\n */\nexport const slotOrFlat = (instanceSlot: InstanceSlot, key: FlatSlotKey): unknown =>\n slot(instanceSlot.data, key) ?? instanceSlot[key]\n\n/** A finite number, else undefined (so a card never shows a made-up value). */\nexport const asNumber = (value: unknown): number | undefined =>\n typeof value === 'number' && Number.isFinite(value) ? value : undefined\n\n/** Any string, empty included, else undefined. */\nexport const asText = (value: unknown): string | undefined =>\n typeof value === 'string' ? value : undefined\n\n/** A string with more than whitespace, else undefined: a blank guid or label is no value. */\nexport const asNonEmptyText = (value: unknown): string | undefined =>\n typeof value === 'string' && value.trim() !== '' ? value : undefined\n\n/** Guids, else undefined: an empty list or a blank guid names nothing to fetch or draw. */\nexport const asGuidList = (value: unknown): string[] | undefined =>\n Array.isArray(value) &&\n value.length > 0 &&\n value.every((item) => asNonEmptyText(item) !== undefined)\n ? (value as string[])\n : undefined\n"],"mappings":";AAaA,IAAa,IAAA,CAAc,GAA4B,MACrD,EAAK,EAAa,MAAM,CAAG,KAAK,EAAa,CAAA,GAGlC,IAAA,CAAY,MACvB,OAAO,KAAU,YAAY,OAAO,SAAS,CAAK,IAAI,IAAQ,QAGnD,IAAA,CAAU,MACrB,OAAO,KAAU,WAAW,IAAQ,QAGzB,IAAA,CAAkB,MAC7B,OAAO,KAAU,YAAY,EAAM,KAAK,MAAM,KAAK,IAAQ,QAGhD,IAAA,CAAc,MACzB,MAAM,QAAQ,CAAK,KACnB,EAAM,SAAS,KACf,EAAM,MAAA,CAAO,MAAS,EAAe,CAAI,MAAM,MAAS,IACnD,IACD"}
|
|
@@ -2,13 +2,15 @@ import { Theme } from '@mui/material/styles';
|
|
|
2
2
|
/**
|
|
3
3
|
* Decorative slot washes shared by the block layouts and the presentational components, so
|
|
4
4
|
* one source holds each gradient. The 20%–25% washes layer over `background.paper` via
|
|
5
|
-
* `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT`
|
|
5
|
+
* `backgroundImage`; `DISCOVERED_ACCOUNTS_GRADIENT` and the tile gradients are opaque and stand alone.
|
|
6
6
|
*
|
|
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
|
* - celebrateGradient(angle): Figma's Celebrate Gradient at any angle.
|
|
10
10
|
* - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).
|
|
11
11
|
* - ERROR_WASH_GRADIENT: low balance, off-track status.
|
|
12
|
+
* - FEES_WASH_GRADIENT: fees and interest charges.
|
|
13
|
+
* - PRIMARY_TILE_GRADIENTS / SUCCESS_TILE_GRADIENTS: blue and green tiles, per theme mode.
|
|
12
14
|
* - getPrimaryWashGradient(theme): pending connect / detected subscription, from the palette.
|
|
13
15
|
*/
|
|
14
16
|
/**
|
|
@@ -36,6 +38,18 @@ export declare const ACCOUNT_CONNECTED_GRADIENT: string;
|
|
|
36
38
|
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%)";
|
|
37
39
|
/** Red wash at 20%: low balance, off-track status. */
|
|
38
40
|
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%)";
|
|
41
|
+
/** Red → orange wash at 20%: fees and interest charges. */
|
|
42
|
+
export declare const FEES_WASH_GRADIENT = "linear-gradient(256.82deg, rgba(227, 39, 39, 0.2) 1.86%, rgba(255, 123, 0, 0.2) 101.54%)";
|
|
43
|
+
/** Blue tile, per theme mode (Missing Interest Rate before the rate is added). */
|
|
44
|
+
export declare const PRIMARY_TILE_GRADIENTS: {
|
|
45
|
+
readonly light: "linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)";
|
|
46
|
+
readonly dark: "linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)";
|
|
47
|
+
};
|
|
48
|
+
/** Green tile, per theme mode (Missing Interest Rate once the rate is added). */
|
|
49
|
+
export declare const SUCCESS_TILE_GRADIENTS: {
|
|
50
|
+
readonly light: "linear-gradient(180deg, #94C9B7 0%, #12875E 100%)";
|
|
51
|
+
readonly dark: "linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)";
|
|
52
|
+
};
|
|
39
53
|
/**
|
|
40
54
|
* Blue slot wash behind a pending connect / detected-subscription row: `primary.light` →
|
|
41
55
|
* `primary.main` at 75% over paper, built from the live palette so it follows the theme.
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { alpha as a } from "@mui/material/styles";
|
|
2
|
-
var i = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)",
|
|
2
|
+
var i = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(173, 248, 43, 0.2) 101.54%)", d = "linear-gradient(200.73deg, rgba(255, 223, 152, 0.2) 1.86%, rgba(255, 128, 229, 0.2) 101.54%)", e = (r) => `linear-gradient(${r}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 0.2) 101.54%)`, n = e(200.73), E = "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%)", t = "linear-gradient(256.82deg, rgba(227, 39, 39, 0.2) 1.86%, rgba(255, 123, 0, 0.2) 101.54%)", R = {
|
|
3
|
+
light: "linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)",
|
|
4
|
+
dark: "linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)"
|
|
5
|
+
}, _ = {
|
|
6
|
+
light: "linear-gradient(180deg, #94C9B7 0%, #12875E 100%)",
|
|
7
|
+
dark: "linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)"
|
|
8
|
+
}, l = ({ palette: r }) => `linear-gradient(173deg, ${a(r.primary.light, 0.75)} 46.41%, ${a(r.primary.main, 0.75)} 78.14%)`;
|
|
3
9
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
n as ACCOUNT_CONNECTED_GRADIENT,
|
|
11
|
+
d as CELEBRATION_GRADIENT,
|
|
12
|
+
A as ERROR_WASH_GRADIENT,
|
|
13
|
+
t as FEES_WASH_GRADIENT,
|
|
14
|
+
R as PRIMARY_TILE_GRADIENTS,
|
|
15
|
+
_ as SUCCESS_TILE_GRADIENTS,
|
|
7
16
|
i as WARM_LIME_ACCENT_GRADIENT,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
E as WARNING_WASH_GRADIENT,
|
|
18
|
+
e as celebrateGradient,
|
|
19
|
+
l as getPrimaryWashGradient
|
|
11
20
|
};
|
|
12
21
|
|
|
13
22
|
//# 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`
|
|
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` and the tile gradients are opaque and stand alone.\n *\n * - WARM_LIME_ACCENT_GRADIENT: merchant categorization and deposit celebration states.\n * - CELEBRATION_GRADIENT / ACCOUNT_CONNECTED_GRADIENT: balance milestones, account connected.\n * - celebrateGradient(angle): Figma's Celebrate Gradient at any angle.\n * - WARNING_WASH_GRADIENT: a flagged charge (Unexpected Subscription Payment).\n * - ERROR_WASH_GRADIENT: low balance, off-track status.\n * - FEES_WASH_GRADIENT: fees and interest charges.\n * - PRIMARY_TILE_GRADIENTS / SUCCESS_TILE_GRADIENTS: blue and green tiles, per theme mode.\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/** Figma Celebrate Gradient; its angle varies per slot. */\nexport const celebrateGradient = (angleDeg: number) =>\n `linear-gradient(${angleDeg}deg, rgba(255, 224, 153, 0.2) 1.86%, rgba(255, 129, 230, 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 = celebrateGradient(200.73)\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%: low balance, off-track status. */\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/** Red → orange wash at 20%: fees and interest charges. */\nexport const FEES_WASH_GRADIENT =\n 'linear-gradient(256.82deg, rgba(227, 39, 39, 0.2) 1.86%, rgba(255, 123, 0, 0.2) 101.54%)'\n\n/** Blue tile, per theme mode (Missing Interest Rate before the rate is added). */\nexport const PRIMARY_TILE_GRADIENTS = {\n light: 'linear-gradient(180deg, #A0B9F8 0%, #2C64EF 100%)',\n dark: 'linear-gradient(180deg, #1F46A7 0%, #6B92F4 100%)',\n} as const\n\n/** Green tile, per theme mode (Missing Interest Rate once the rate is added). */\nexport const SUCCESS_TILE_GRADIENTS = {\n light: 'linear-gradient(180deg, #94C9B7 0%, #12875E 100%)',\n dark: 'linear-gradient(180deg, #0D5F42 0%, #59AB8E 100%)',\n} as const\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":";AAqBA,IAAa,IACX,+FAGW,IACX,gGAGW,IAAA,CAAqB,MAChC,mBAAmB,CAAA,0EAWR,IAA6B,EAAkB,MAAM,GAOrD,IACX,0FAGW,IACX,2FAGW,IACX,4FAGW,IAAyB;AAAA,EACpC,OAAO;AAAA,EACP,MAAM;AACR,GAGa,IAAyB;AAAA,EACpC,OAAO;AAAA,EACP,MAAM;AACR,GAMa,IAAA,CAA0B,EAAE,SAAA,EAAA,MACvC,2BAA2B,EAAM,EAAQ,QAAQ,OAAO,IAAI,CAAA,YAAa,EAAM,EAAQ,QAAQ,MAAM,IAAI,CAAA"}
|
|
@@ -5,3 +5,5 @@ export declare const ELEVATION_SHADOW: {
|
|
|
5
5
|
/** `elevation/16`: dialogs, snackbars. */
|
|
6
6
|
readonly 16: "0px 12px 20px rgba(0, 0, 0, 0.22)";
|
|
7
7
|
};
|
|
8
|
+
/** Soft two-layer card shadow (Figma) for a raised result card; off the numbered scale above. */
|
|
9
|
+
export declare const RAISED_CARD_SHADOW = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
var p = {
|
|
2
2
|
1: "0px 2px 8px rgba(0, 0, 0, 0.12)",
|
|
3
3
|
16: "0px 12px 20px rgba(0, 0, 0, 0.22)"
|
|
4
|
-
};
|
|
4
|
+
}, x = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
|
|
5
5
|
export {
|
|
6
|
-
p as ELEVATION_SHADOW
|
|
6
|
+
p as ELEVATION_SHADOW,
|
|
7
|
+
x as RAISED_CARD_SHADOW
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
//# sourceMappingURL=elevation.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.es.js","names":[],"sources":["../../../../src/insights-v2/components/shared/elevation.ts"],"sourcesContent":["/** Figma elevation shadows (single drop shadows, not MUI's `shadows[n]`). */\nexport const ELEVATION_SHADOW = {\n /** `elevation/1`: rows on a wash. */\n 1: '0px 2px 8px rgba(0, 0, 0, 0.12)',\n /** `elevation/16`: dialogs, snackbars. */\n 16: '0px 12px 20px rgba(0, 0, 0, 0.22)',\n} as const\n"],"mappings":"AACA,IAAa,IAAmB;AAAA,EAE9B,GAAG;AAAA,EAEH,IAAI;AACN"}
|
|
1
|
+
{"version":3,"file":"elevation.es.js","names":[],"sources":["../../../../src/insights-v2/components/shared/elevation.ts"],"sourcesContent":["/** Figma elevation shadows (single drop shadows, not MUI's `shadows[n]`). */\nexport const ELEVATION_SHADOW = {\n /** `elevation/1`: rows on a wash. */\n 1: '0px 2px 8px rgba(0, 0, 0, 0.12)',\n /** `elevation/16`: dialogs, snackbars. */\n 16: '0px 12px 20px rgba(0, 0, 0, 0.22)',\n} as const\n\n/** Soft two-layer card shadow (Figma) for a raised result card; off the numbered scale above. */\nexport const RAISED_CARD_SHADOW =\n '0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)'\n"],"mappings":"AACA,IAAa,IAAmB;AAAA,EAE9B,GAAG;AAAA,EAEH,IAAI;AACN,GAGa,IACX"}
|