@mx-cartographer/experiences 9.7.196 → 9.7.197

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +3 -1
  3. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js +29 -21
  4. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js.map +1 -1
  5. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.d.ts +3 -1
  6. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +68 -63
  7. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
  8. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +94 -91
  9. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
  10. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +2 -0
  11. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +7 -5
  12. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
  13. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +59 -56
  14. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
  15. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +1 -1
  16. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +22 -11
  17. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
  18. package/dist/insights-v2/components/LogoClusterCard.es.js +9 -8
  19. package/dist/insights-v2/components/LogoClusterCard.es.js.map +1 -1
  20. package/dist/insights-v2/components/chartblocks/BarchartV2.d.ts +9 -1
  21. package/dist/insights-v2/components/chartblocks/BarchartV2.es.js +109 -85
  22. package/dist/insights-v2/components/chartblocks/BarchartV2.es.js.map +1 -1
  23. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
+ ## [9.7.197] - 11-20-2026
2
+
3
+ - **FIXED** - Monthly Top Merchant Spending V4: rank badges are bold and the logo cascade matches Figma's stagger and overlap (WEC-2383)
4
+ - **CHANGED** - Monthly Top Merchant Spending V4 Merchant History drawer: no month tabs or Transactions / Export CSV row, as Figma; the chart bars select the month by ...
5
+
1
6
  ## [9.7.196] - 11-20-2026
2
7
 
3
- - **ADDED** - Step chart `milestone_progress` variant: the 00 / 00 / ,000 goal stepper for Monthly Emergency Savings Reminder V2 (WEC-2401)
8
+ - **ADDED** - Step chart `milestone_progress` variant: the $100 / $500 / $1,000 goal stepper for Monthly Emergency Savings Reminder V2 (WEC-2401)
4
9
  - **CHANGED** - Emergency Savings drawer draws the Insights 2.0 layout (progress card, month contribution banner, next goal estimate and calculator) from the opening CTA's drilldown_data; cards without it keep the legacy drawer (WEC-2401)
5
10
  - **ADDED** - Monthly Emergency Savings Reminder V2 Storybook QA page with every state and widget (WEC-2401)
6
11
 
@@ -13,9 +13,11 @@ export interface CustomBarPlotV2Props {
13
13
  removeSelectedTabColorChange?: boolean;
14
14
  selectedTabIndex: number;
15
15
  style: BarStyleProps;
16
+ /** Makes the bar a focusable button that selects it on Enter / Space. Absent: no keyboard role. */
17
+ onKeyboardSelect?: (dataIndex: number) => void;
16
18
  xOrigin?: number;
17
19
  yOrigin?: number;
18
20
  skipAnimation?: boolean;
19
21
  }
20
- export declare const CustomBarPlotV2: ({ colorRange, data, dataIndex, removeSelectedTabColorChange, selectedTabIndex, style, xOrigin: _xOrigin, yOrigin: _yOrigin, skipAnimation: _skipAnimation, ...restProps }: CustomBarPlotV2Props) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const CustomBarPlotV2: ({ colorRange, data, dataIndex, removeSelectedTabColorChange, selectedTabIndex, style, onKeyboardSelect, xOrigin: _xOrigin, yOrigin: _yOrigin, skipAnimation: _skipAnimation, ...restProps }: CustomBarPlotV2Props) => import("react/jsx-runtime").JSX.Element;
21
23
  export {};
@@ -1,32 +1,40 @@
1
1
  import "react";
2
- import { jsx as a, jsxs as x } from "react/jsx-runtime";
3
- import { useTheme as p } from "@mui/material/styles";
4
- var g = (i, r) => {
5
- if (i <= 0 || r <= 0) return "";
6
- const t = Math.min(4, i / 2, r / 2);
7
- return `M${t},0 L${i - t},0 Q${i},0 ${i},${t} L${i},${r} L0,${r} L0,${t} Q0,0 ${t},0 Z`;
8
- }, _ = ({ colorRange: i, data: r, dataIndex: t, removeSelectedTabColorChange: s, selectedTabIndex: c, style: o, xOrigin: A, yOrigin: L, skipAnimation: b, ...l }) => {
9
- const h = p(), { ariaLabel: $, formattedAmount: d } = r[t], f = c === t ? "bold" : 400, n = o.x ?? 0, e = o.y ?? 0, m = o.width ?? 0, u = o.height ?? 0;
10
- return /* @__PURE__ */ x("g", {
2
+ import { jsx as h, jsxs as A } from "react/jsx-runtime";
3
+ import { useTheme as d } from "@mui/material/styles";
4
+ var y = (r, i) => {
5
+ if (r <= 0 || i <= 0) return "";
6
+ const t = Math.min(4, r / 2, i / 2);
7
+ return `M${t},0 L${r - t},0 Q${r},0 ${r},${t} L${r},${i} L0,${i} L0,${t} Q0,0 ${t},0 Z`;
8
+ }, j = ({ colorRange: r, data: i, dataIndex: t, removeSelectedTabColorChange: u, selectedTabIndex: e, style: o, onKeyboardSelect: m, xOrigin: L, yOrigin: b, skipAnimation: k, ...c }) => {
9
+ const f = d(), { ariaLabel: $, formattedAmount: p } = i[t], g = e === t ? "bold" : 400, a = o.x ?? 0, s = o.y ?? 0, l = o.width ?? 0, x = o.height ?? 0;
10
+ return /* @__PURE__ */ A("g", {
11
11
  "aria-label": $,
12
- children: [/* @__PURE__ */ a("path", {
13
- ...l,
14
- d: g(m, u),
15
- fill: i[t],
16
- transform: `translate(${n}, ${e})`
17
- }), /* @__PURE__ */ a("text", {
18
- fill: h.palette.text.primary,
12
+ ...m && {
13
+ "aria-pressed": e === t,
14
+ onKeyDown: (n) => {
15
+ n.key !== "Enter" && n.key !== " " || (n.preventDefault(), m(t));
16
+ },
17
+ role: "button",
18
+ tabIndex: 0
19
+ },
20
+ children: [/* @__PURE__ */ h("path", {
21
+ ...c,
22
+ d: y(l, x),
23
+ fill: r[t],
24
+ transform: `translate(${a}, ${s})`
25
+ }), /* @__PURE__ */ h("text", {
26
+ fill: f.palette.text.primary,
19
27
  fontSize: 11,
20
- fontWeight: s ? "bold" : f,
28
+ fontWeight: u ? "bold" : g,
21
29
  textAnchor: "middle",
22
- x: n + m / 2,
23
- y: e - 8,
24
- children: d
30
+ x: a + l / 2,
31
+ y: s - 8,
32
+ children: p
25
33
  })]
26
34
  });
27
35
  };
28
36
  export {
29
- _ as CustomBarPlotV2
37
+ j as CustomBarPlotV2
30
38
  };
31
39
 
32
40
  //# sourceMappingURL=CustomBarPlotV2.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomBarPlotV2.es.js","names":[],"sources":["../../../../../../src/insights/components/shared/Charts/BarChart/CustomBarPlotV2.tsx"],"sourcesContent":["import React from 'react'\n\nimport { useTheme } from '@mui/material/styles'\n\nimport type { BarDataProps } from '../../../../types/Charts/BarChart'\n\ninterface BarStyleProps extends React.CSSProperties {\n x?: number\n y?: number\n width?: number\n height?: number\n}\n\nexport interface CustomBarPlotV2Props {\n colorRange: string[]\n data: BarDataProps[]\n dataIndex: number\n removeSelectedTabColorChange?: boolean\n selectedTabIndex: number\n style: BarStyleProps\n // Non-DOM props forwarded by the x-charts BarPlot `bar` slot; declared so we\n // can destructure them out before spreading restProps onto <path>.\n xOrigin?: number\n yOrigin?: number\n skipAnimation?: boolean\n}\n\nconst createRoundedRectPath = (w: number, h: number) => {\n if (w <= 0 || h <= 0) return ''\n\n const r = Math.min(4, w / 2, h / 2)\n return `M${r},0 L${w - r},0 Q${w},0 ${w},${r} L${w},${h} L0,${h} L0,${r} Q0,0 ${r},0 Z`\n}\n\nexport const CustomBarPlotV2 = ({\n colorRange,\n data,\n dataIndex,\n removeSelectedTabColorChange,\n selectedTabIndex,\n style,\n // Non-DOM props forwarded by the @mui/x-charts BarPlot `bar` slot. They are\n // not valid SVG attributes, so pull them out of restProps before spreading\n // onto <path> to avoid React \"does not recognize the prop\" warnings.\n xOrigin: _xOrigin,\n yOrigin: _yOrigin,\n skipAnimation: _skipAnimation,\n ...restProps\n}: CustomBarPlotV2Props) => {\n const theme = useTheme()\n\n const { ariaLabel, formattedAmount } = data[dataIndex]\n\n const shouldAmountAmountTextBeBold = selectedTabIndex === dataIndex ? 'bold' : 400\n\n const x = style.x ?? 0\n const y = style.y ?? 0\n const width = style.width ?? 0\n const height = style.height ?? 0\n\n return (\n <g aria-label={ariaLabel}>\n <path\n {...restProps}\n d={createRoundedRectPath(width, height)}\n fill={colorRange[dataIndex]}\n transform={`translate(${x}, ${y})`}\n />\n <text\n fill={theme.palette.text.primary}\n fontSize={11}\n fontWeight={removeSelectedTabColorChange ? 'bold' : shouldAmountAmountTextBeBold}\n textAnchor=\"middle\"\n x={x + width / 2}\n y={y - 8}\n >\n {formattedAmount}\n </text>\n </g>\n )\n}\n"],"mappings":";;;AA2BA,IAAM,IAAA,CAAyB,GAAW,MAAc;AACtD,MAAI,KAAK,KAAK,KAAK,EAAG,QAAO;AAE7B,QAAM,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAClC,SAAO,IAAI,CAAA,OAAQ,IAAI,CAAA,OAAQ,CAAA,MAAO,CAAA,IAAK,CAAA,KAAM,CAAA,IAAK,CAAA,OAAQ,CAAA,OAAQ,CAAA,SAAU,CAAA;AAClF,GAEa,IAAA,CAAmB,EAC9B,YAAA,GACA,MAAA,GACA,WAAA,GACA,8BAAA,GACA,kBAAA,GACA,OAAA,GAIA,SAAS,GACT,SAAS,GACT,eAAe,GACf,GAAG,EAAA,MACuB;AAC1B,QAAM,IAAQ,EAAS,GAEjB,EAAE,WAAA,GAAW,iBAAA,EAAA,IAAoB,EAAK,CAAA,GAEtC,IAA+B,MAAqB,IAAY,SAAS,KAEzE,IAAI,EAAM,KAAK,GACf,IAAI,EAAM,KAAK,GACf,IAAQ,EAAM,SAAS,GACvB,IAAS,EAAM,UAAU;AAE/B,SACE,gBAAA,EAAC,KAAD;AAAA,IAAG,cAAY;AAAA,IAAf,UAAA,CACE,gBAAA,EAAC,QAAD;AAAA,MACE,GAAI;AAAA,MACJ,GAAG,EAAsB,GAAO,CAAM;AAAA,MACtC,MAAM,EAAW,CAAA;AAAA,MACjB,WAAW,aAAa,CAAA,KAAM,CAAA;AAAA,IAC/B,CAAA,GACD,gBAAA,EAAC,QAAD;AAAA,MACE,MAAM,EAAM,QAAQ,KAAK;AAAA,MACzB,UAAU;AAAA,MACV,YAAY,IAA+B,SAAS;AAAA,MACpD,YAAW;AAAA,MACX,GAAG,IAAI,IAAQ;AAAA,MACf,GAAG,IAAI;AAAA,MAEN,UAAA;AAAA,IACG,CAAA,CACL;AAAA;AAEP"}
1
+ {"version":3,"file":"CustomBarPlotV2.es.js","names":[],"sources":["../../../../../../src/insights/components/shared/Charts/BarChart/CustomBarPlotV2.tsx"],"sourcesContent":["import React from 'react'\n\nimport { useTheme } from '@mui/material/styles'\n\nimport type { BarDataProps } from '../../../../types/Charts/BarChart'\n\ninterface BarStyleProps extends React.CSSProperties {\n x?: number\n y?: number\n width?: number\n height?: number\n}\n\nexport interface CustomBarPlotV2Props {\n colorRange: string[]\n data: BarDataProps[]\n dataIndex: number\n removeSelectedTabColorChange?: boolean\n selectedTabIndex: number\n style: BarStyleProps\n /** Makes the bar a focusable button that selects it on Enter / Space. Absent: no keyboard role. */\n onKeyboardSelect?: (dataIndex: number) => void\n // Non-DOM props forwarded by the x-charts BarPlot `bar` slot; declared so we\n // can destructure them out before spreading restProps onto <path>.\n xOrigin?: number\n yOrigin?: number\n skipAnimation?: boolean\n}\n\nconst createRoundedRectPath = (w: number, h: number) => {\n if (w <= 0 || h <= 0) return ''\n\n const r = Math.min(4, w / 2, h / 2)\n return `M${r},0 L${w - r},0 Q${w},0 ${w},${r} L${w},${h} L0,${h} L0,${r} Q0,0 ${r},0 Z`\n}\n\nexport const CustomBarPlotV2 = ({\n colorRange,\n data,\n dataIndex,\n removeSelectedTabColorChange,\n selectedTabIndex,\n style,\n onKeyboardSelect,\n // Non-DOM props forwarded by the @mui/x-charts BarPlot `bar` slot. They are\n // not valid SVG attributes, so pull them out of restProps before spreading\n // onto <path> to avoid React \"does not recognize the prop\" warnings.\n xOrigin: _xOrigin,\n yOrigin: _yOrigin,\n skipAnimation: _skipAnimation,\n ...restProps\n}: CustomBarPlotV2Props) => {\n const theme = useTheme()\n\n const { ariaLabel, formattedAmount } = data[dataIndex]\n\n const shouldAmountAmountTextBeBold = selectedTabIndex === dataIndex ? 'bold' : 400\n\n const x = style.x ?? 0\n const y = style.y ?? 0\n const width = style.width ?? 0\n const height = style.height ?? 0\n\n const keyboardProps = onKeyboardSelect && {\n 'aria-pressed': selectedTabIndex === dataIndex,\n onKeyDown: (event: React.KeyboardEvent<SVGGElement>) => {\n if (event.key !== 'Enter' && event.key !== ' ') return\n event.preventDefault()\n onKeyboardSelect(dataIndex)\n },\n role: 'button',\n tabIndex: 0,\n }\n\n return (\n <g aria-label={ariaLabel} {...keyboardProps}>\n <path\n {...restProps}\n d={createRoundedRectPath(width, height)}\n fill={colorRange[dataIndex]}\n transform={`translate(${x}, ${y})`}\n />\n <text\n fill={theme.palette.text.primary}\n fontSize={11}\n fontWeight={removeSelectedTabColorChange ? 'bold' : shouldAmountAmountTextBeBold}\n textAnchor=\"middle\"\n x={x + width / 2}\n y={y - 8}\n >\n {formattedAmount}\n </text>\n </g>\n )\n}\n"],"mappings":";;;AA6BA,IAAM,IAAA,CAAyB,GAAW,MAAc;AACtD,MAAI,KAAK,KAAK,KAAK,EAAG,QAAO;AAE7B,QAAM,IAA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IACG,CAAA,CACL;AAAA;AAEP"}
@@ -21,8 +21,10 @@ interface TransactionDrillDownProps {
21
21
  transactionFilter?: (selectedIndex: number) => (transaction: Transaction) => boolean;
22
22
  baseTransactions?: Transaction[];
23
23
  subTabs?: Omit<SubTabsProps, 'id'>;
24
+ showTransactionsHeader?: boolean;
25
+ listLabel?: string;
24
26
  }
25
- export declare const TransactionDrillDown: (({ ariaLabel, heading, subHeadingText, icon, logo, tabs, selectedIndex, top, onSelectionChange, transactionFilter, tipSection, onEachRowClick, baseTransactions, subTabs, }: TransactionDrillDownProps) => import("react/jsx-runtime").JSX.Element) & {
27
+ export declare const TransactionDrillDown: (({ ariaLabel, heading, subHeadingText, icon, logo, tabs, selectedIndex, top, onSelectionChange, transactionFilter, tipSection, onEachRowClick, baseTransactions, subTabs, showTransactionsHeader, listLabel, }: TransactionDrillDownProps) => import("react/jsx-runtime").JSX.Element) & {
26
28
  displayName: string;
27
29
  };
28
30
  export default TransactionDrillDown;
@@ -1,50 +1,50 @@
1
- import { useGlobalCopyStore as A, useTransactionStore as R } from "../../../common/context/hooks.es.js";
2
- import { exportTransactionsToCSV as E } from "../../../core/utils/TransactionUtils.es.js";
3
- import G from "../../../transactions/components/shared/TransactionList.es.js";
4
- import { TipSection as N } from "../../../insights/components/shared/ChartDrawerTemplate/TipSection.es.js";
5
- import { DRAWER_TIP_ICON as O } from "../../components/drawerTip.es.js";
6
- import { SubTabs as U, subTabPanelProps as V } from "../../components/SubTabs.es.js";
1
+ import { useGlobalCopyStore as E, useTransactionStore as G } from "../../../common/context/hooks.es.js";
2
+ import { exportTransactionsToCSV as N } from "../../../core/utils/TransactionUtils.es.js";
3
+ import O from "../../../transactions/components/shared/TransactionList.es.js";
4
+ import { TipSection as U } from "../../../insights/components/shared/ChartDrawerTemplate/TipSection.es.js";
5
+ import { DRAWER_TIP_ICON as V } from "../../components/drawerTip.es.js";
6
+ import { SubTabs as q, subTabPanelProps as z } from "../../components/SubTabs.es.js";
7
7
  import "react";
8
- import { observer as q } from "mobx-react-lite";
9
- import e from "@mui/material/Stack";
10
- import { H3 as z, Text as p } from "@mxenabled/mxui";
11
- import J from "@mui/material/Button";
12
- import { Icon as K } from "@mxenabled/mx-icons";
13
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
14
- import t from "@mui/material/Box";
15
- import M from "@mui/material/Tab";
16
- import Q from "@mui/material/Tabs";
17
- var y = "transaction-drill-down-panel", S = (b) => `transaction-details-tab-${b}`, w = "transaction-drill-down-series", pr = q(function({ ariaLabel: C, heading: l, subHeadingText: s, icon: D, logo: h, tabs: f, selectedIndex: c, top: x, onSelectionChange: I, transactionFilter: T, tipSection: u, onEachRowClick: B, baseTransactions: k, subTabs: v }) {
18
- const { transactions: d } = A(), { sortedTransactionsWithSplits: W, tags: P, detailedTransactions: L } = R(), m = !!f?.length, a = v?.tabs.length ? v : void 0, $ = C ?? d.transactions_title, j = (i, n) => {
19
- I?.(n);
20
- }, g = T ? (k ?? L).filter(T(c)) : void 0, _ = g ?? W;
21
- return /* @__PURE__ */ o(t, {
8
+ import { observer as J } from "mobx-react-lite";
9
+ import l from "@mui/material/Stack";
10
+ import { H3 as K, Text as m } from "@mxenabled/mxui";
11
+ import M from "@mui/material/Button";
12
+ import { Icon as Q } from "@mxenabled/mx-icons";
13
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
14
+ import o from "@mui/material/Box";
15
+ import X from "@mui/material/Tab";
16
+ import Y from "@mui/material/Tabs";
17
+ var S = "transaction-drill-down-panel", w = (b) => `transaction-details-tab-${b}`, C = "transaction-drill-down-series", hr = J(function({ ariaLabel: D, heading: s, subHeadingText: c, icon: I, logo: h, tabs: f, selectedIndex: d, top: x, onSelectionChange: B, transactionFilter: u, tipSection: v, onEachRowClick: k, baseTransactions: W, subTabs: T, showTransactionsHeader: $ = !0, listLabel: g }) {
18
+ const { transactions: a } = E(), { sortedTransactionsWithSplits: P, tags: j, detailedTransactions: A } = G(), p = !!f?.length, i = T?.tabs.length ? T : void 0, L = D ?? a.transactions_title, R = (n, e) => {
19
+ B?.(e);
20
+ }, _ = u ? (W ?? A).filter(u(d)) : void 0, y = _ ?? P;
21
+ return /* @__PURE__ */ t(o, {
22
22
  sx: {
23
23
  bgcolor: "background.paper",
24
24
  width: "100%"
25
25
  },
26
- children: [m && /* @__PURE__ */ r(Q, {
27
- "aria-label": $,
28
- onChange: j,
26
+ children: [p && /* @__PURE__ */ r(Y, {
27
+ "aria-label": L,
28
+ onChange: R,
29
29
  sx: { mb: 0 },
30
- value: c,
30
+ value: d,
31
31
  variant: "fullWidth",
32
- children: f.map((i, n) => /* @__PURE__ */ r(M, {
33
- "aria-controls": y,
34
- "aria-label": i.ariaLabel,
35
- id: S(n),
36
- label: i.label,
32
+ children: f.map((n, e) => /* @__PURE__ */ r(X, {
33
+ "aria-controls": S,
34
+ "aria-label": n.ariaLabel,
35
+ id: w(e),
36
+ label: n.label,
37
37
  sx: {
38
38
  minWidth: "auto",
39
39
  px: 0
40
40
  }
41
- }, `${i.label}-${n}`))
42
- }), /* @__PURE__ */ o(t, {
43
- "aria-labelledby": m ? S(c) : void 0,
44
- id: y,
45
- role: m ? "tabpanel" : void 0,
41
+ }, `${n.label}-${e}`))
42
+ }), /* @__PURE__ */ t(o, {
43
+ "aria-labelledby": p ? w(d) : void 0,
44
+ id: S,
45
+ role: p ? "tabpanel" : void 0,
46
46
  children: [
47
- (l || s) && /* @__PURE__ */ o(e, {
47
+ (s || c) && /* @__PURE__ */ t(l, {
48
48
  sx: {
49
49
  alignItems: "center",
50
50
  flexDirection: "row",
@@ -52,53 +52,53 @@ var y = "transaction-drill-down-panel", S = (b) => `transaction-details-tab-${b}
52
52
  pt: 16,
53
53
  px: 24
54
54
  },
55
- children: [h && /* @__PURE__ */ r(t, {
55
+ children: [h && /* @__PURE__ */ r(o, {
56
56
  "aria-hidden": !0,
57
57
  sx: {
58
58
  display: "flex",
59
59
  flexShrink: 0
60
60
  },
61
61
  children: h
62
- }), /* @__PURE__ */ o(e, {
62
+ }), /* @__PURE__ */ t(l, {
63
63
  sx: {
64
64
  flexGrow: 1,
65
65
  gap: 4,
66
66
  minWidth: 0
67
67
  },
68
- children: [l && /* @__PURE__ */ r(z, { children: l }), s && /* @__PURE__ */ o(e, {
68
+ children: [s && /* @__PURE__ */ r(K, { children: s }), c && /* @__PURE__ */ t(l, {
69
69
  sx: {
70
70
  alignItems: "center",
71
71
  flexDirection: "row",
72
72
  gap: 8
73
73
  },
74
- children: [D, /* @__PURE__ */ r(p, {
74
+ children: [I, /* @__PURE__ */ r(m, {
75
75
  color: "text.secondary",
76
76
  sx: { letterSpacing: "0.52px" },
77
77
  textTransform: "uppercase",
78
78
  variant: "body2",
79
- children: s
79
+ children: c
80
80
  })]
81
81
  })]
82
82
  })]
83
83
  }),
84
- x && /* @__PURE__ */ r(t, {
84
+ x && /* @__PURE__ */ r(o, {
85
85
  sx: {
86
86
  pb: 16,
87
87
  pt: 16
88
88
  },
89
89
  children: x
90
90
  }),
91
- u && /* @__PURE__ */ r(N, {
92
- icon: O,
93
- ...u
91
+ v && /* @__PURE__ */ r(U, {
92
+ icon: V,
93
+ ...v
94
94
  }),
95
- a && /* @__PURE__ */ r(U, {
96
- ...a,
97
- id: w
95
+ i && /* @__PURE__ */ r(q, {
96
+ ...i,
97
+ id: C
98
98
  }),
99
- /* @__PURE__ */ o(t, {
100
- ...a && V(w, a.selectedIndex),
101
- children: [/* @__PURE__ */ o(e, {
99
+ /* @__PURE__ */ t(o, {
100
+ ...i && z(C, i.selectedIndex),
101
+ children: [$ && /* @__PURE__ */ t(l, {
102
102
  sx: {
103
103
  alignItems: "center",
104
104
  borderBottomColor: "divider",
@@ -110,27 +110,32 @@ var y = "transaction-drill-down-panel", S = (b) => `transaction-details-tab-${b}
110
110
  pt: 16,
111
111
  px: 24
112
112
  },
113
- children: [/* @__PURE__ */ r(p, {
113
+ children: [/* @__PURE__ */ r(m, {
114
114
  bold: !0,
115
115
  variant: "body1",
116
- children: d.transactions_title
117
- }), _.length > 0 && /* @__PURE__ */ r(J, {
116
+ children: a.transactions_title
117
+ }), y.length > 0 && /* @__PURE__ */ r(M, {
118
118
  onClick: () => {
119
- E(_, P);
119
+ N(y, j);
120
120
  },
121
- startIcon: /* @__PURE__ */ r(K, { name: "ios_share" }),
121
+ startIcon: /* @__PURE__ */ r(Q, { name: "ios_share" }),
122
122
  sx: { height: 28 },
123
- children: /* @__PURE__ */ r(p, {
123
+ children: /* @__PURE__ */ r(m, {
124
124
  bold: !0,
125
125
  variant: "body2",
126
- children: d.export_csv_btn
126
+ children: a.export_csv_btn
127
127
  })
128
128
  })]
129
- }), /* @__PURE__ */ r(t, {
129
+ }), /* @__PURE__ */ r(o, {
130
+ ...g && {
131
+ "aria-label": `${a.transactions_title}, ${g}`,
132
+ "aria-live": "polite",
133
+ role: "region"
134
+ },
130
135
  sx: { bgcolor: "background.default" },
131
- children: /* @__PURE__ */ r(G, {
132
- transaction: g,
133
- onClick: B
136
+ children: /* @__PURE__ */ r(O, {
137
+ transaction: _,
138
+ onClick: k
134
139
  })
135
140
  })]
136
141
  })
@@ -139,8 +144,8 @@ var y = "transaction-drill-down-panel", S = (b) => `transaction-details-tab-${b}
139
144
  });
140
145
  });
141
146
  export {
142
- pr as TransactionDrillDown,
143
- pr as default
147
+ hr as TransactionDrillDown,
148
+ hr as default
144
149
  };
145
150
 
146
151
  //# sourceMappingURL=TransactionDrillDown.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionDrillDown.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport Tab from '@mui/material/Tab'\nimport Tabs from '@mui/material/Tabs'\nimport { observer } from 'mobx-react-lite'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { H3, Text } from '@mxenabled/mxui'\n\nimport {\n TipSection,\n type TipSectionProps,\n} from '../../../insights/components/shared/ChartDrawerTemplate/TipSection'\nimport { useGlobalCopyStore, useTransactionStore } from '../../../common'\nimport type { Transaction } from '../../../core'\nimport { exportTransactionsToCSV } from '../../../core/utils/TransactionUtils'\nimport { DRAWER_TIP_ICON } from '../../components/drawerTip'\nimport { TransactionList } from '../../../transactions'\nimport { SubTabs, subTabPanelProps, type SubTabsProps } from '../../components/SubTabs'\n\ninterface TabItem {\n label: string\n ariaLabel?: string\n}\n\nconst PANEL_ID = 'transaction-drill-down-panel'\nconst tabId = (index: number) => `transaction-details-tab-${index}`\nconst SUB_TABS_ID = 'transaction-drill-down-series'\n\ninterface TransactionDrillDownProps {\n ariaLabel?: string\n heading?: string\n subHeadingText?: string\n icon?: React.ReactNode\n // A logo left of the heading and sub-heading (Top Merchant's merchant, Figma `<Logo>` 40px).\n logo?: React.ReactNode\n tabs?: TabItem[]\n selectedIndex: number\n top: React.ReactNode\n tipSection?: TipSectionProps | false\n onSelectionChange?: (selectedIndex: number) => void\n onEachRowClick?: (guid: string) => void\n transactionFilter?: (selectedIndex: number) => (transaction: Transaction) => boolean\n baseTransactions?: Transaction[]\n // A second row of tabs between the chart and the list (the double-bar drawer's main / comparison\n // series, e.g. Spend / Income). Omitted for every single-series drawer.\n subTabs?: Omit<SubTabsProps, 'id'>\n}\n\nexport const TransactionDrillDown = observer(function TransactionDrillDown({\n ariaLabel,\n heading,\n subHeadingText,\n icon,\n logo,\n tabs,\n selectedIndex,\n top,\n onSelectionChange,\n transactionFilter,\n tipSection,\n onEachRowClick,\n baseTransactions,\n subTabs,\n}: TransactionDrillDownProps) {\n const { transactions: transactionsCopy } = useGlobalCopyStore()\n const { sortedTransactionsWithSplits, tags, detailedTransactions } = useTransactionStore()\n\n const hasTabs = !!tabs?.length\n // Only a non-empty row gets the tabs and their panel.\n const seriesTabs = subTabs?.tabs.length ? subTabs : undefined\n const tablistLabel = ariaLabel ?? transactionsCopy.transactions_title\n\n const handlePrimaryChange = (_event: React.SyntheticEvent, newValue: number) => {\n onSelectionChange?.(newValue)\n }\n\n const filteredTransactions = transactionFilter\n ? (baseTransactions ?? detailedTransactions).filter(transactionFilter(selectedIndex))\n : undefined\n\n const exportTransactions = filteredTransactions ?? sortedTransactionsWithSplits\n\n return (\n <Box sx={{ bgcolor: 'background.paper', width: '100%' }}>\n {hasTabs && (\n <Tabs\n aria-label={tablistLabel}\n onChange={handlePrimaryChange}\n // The title sits 16px below the tab bar, as in every Figma chart drawer; the theme's 8px\n // gap under Tabs would make it 24.\n sx={{ mb: 0 }}\n value={selectedIndex}\n variant=\"fullWidth\"\n >\n {tabs!.map((tab, index) => (\n <Tab\n aria-controls={PANEL_ID}\n aria-label={tab.ariaLabel}\n id={tabId(index)}\n key={`${tab.label}-${index}`}\n label={tab.label}\n sx={{ minWidth: 'auto', px: 0 }}\n />\n ))}\n </Tabs>\n )}\n\n <Box\n aria-labelledby={hasTabs ? tabId(selectedIndex) : undefined}\n id={PANEL_ID}\n role={hasTabs ? 'tabpanel' : undefined}\n >\n {(heading || subHeadingText) && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12, pt: 16, px: 24 }}>\n {logo && (\n <Box aria-hidden={true} sx={{ display: 'flex', flexShrink: 0 }}>\n {logo}\n </Box>\n )}\n <Stack sx={{ flexGrow: 1, gap: 4, minWidth: 0 }}>\n {heading && <H3>{heading}</H3>}\n {subHeadingText && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n {icon}\n <Text\n color=\"text.secondary\"\n sx={{ letterSpacing: '0.52px' }}\n textTransform=\"uppercase\"\n variant=\"body2\"\n >\n {subHeadingText}\n </Text>\n </Stack>\n )}\n </Stack>\n </Stack>\n )}\n\n {/* Figma's chart drawer pads the chart 16px above and below; a drawer with no chart has no box. */}\n {top && <Box sx={{ pb: 16, pt: 16 }}>{top}</Box>}\n\n {/* Every Figma chart drawer puts the tip under the chart, above any sub-tabs. */}\n {tipSection && <TipSection icon={DRAWER_TIP_ICON} {...tipSection} />}\n\n {seriesTabs && <SubTabs {...seriesTabs} id={SUB_TABS_ID} />}\n\n {/* The content the sub-tabs control, as the month tabs' panel above. */}\n <Box {...(seriesTabs && subTabPanelProps(SUB_TABS_ID, seriesTabs.selectedIndex))}>\n <Stack\n sx={{\n alignItems: 'center',\n borderBottomColor: 'divider',\n borderBottomStyle: 'solid',\n borderBottomWidth: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n pb: 4,\n pt: 16,\n px: 24,\n }}\n >\n <Text bold={true} variant=\"body1\">\n {transactionsCopy.transactions_title}\n </Text>\n {exportTransactions.length > 0 && (\n <Button\n onClick={() => {\n exportTransactionsToCSV(exportTransactions, tags)\n }}\n startIcon={<Icon name=\"ios_share\" />}\n sx={{ height: 28 }}\n >\n <Text bold={true} variant=\"body2\">\n {transactionsCopy.export_csv_btn}\n </Text>\n </Button>\n )}\n </Stack>\n\n {/* The list's scroll box is taller than its rows; Figma fills the space below the last row\n with background.default, and each row paints its own paper. */}\n <Box sx={{ bgcolor: 'background.default' }}>\n <TransactionList transaction={filteredTransactions} onClick={onEachRowClick} />\n </Box>\n </Box>\n </Box>\n </Box>\n )\n})\n\nexport default TransactionDrillDown\n"],"mappings":";;;;;;;;;;;;;;;;AA4BA,IAAM,IAAW,gCACX,IAAA,CAAS,MAAkB,2BAA2B,CAAA,IACtD,IAAc,iCAsBP,KAAuB,EAAS,SAA8B,EACzE,WAAA,GACA,SAAA,GACA,gBAAA,GACA,MAAA,GACA,MAAA,GACA,MAAA,GACA,eAAA,GACA,KAAA,GACA,mBAAA,GACA,mBAAA,GACA,YAAA,GACA,gBAAA,GACA,kBAAA,GACA,SAAA,EAAA,GAC4B;AAC5B,QAAM,EAAE,cAAc,EAAA,IAAqB,EAAmB,GACxD,EAAE,8BAAA,GAA8B,MAAA,GAAM,sBAAA,EAAA,IAAyB,EAAoB,GAEnF,IAAU,CAAC,CAAC,GAAM,QAElB,IAAa,GAAS,KAAK,SAAS,IAAU,QAC9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,SAAQ;AAAA,cACvB,UAAA,EAAiB;AAAA,YACd,CAAA,GACL,EAAmB,SAAS,KAC3B,gBAAA,EAAC,GAAD;AAAA,cACE,SAAA,MAAe;AACb,gBAAA,EAAwB,GAAoB,CAAI;AAAA,cAClD;AAAA,cACA,WAAW,gBAAA,EAAC,GAAD,EAAM,MAAK,YAAa,CAAA;AAAA,cACnC,IAAI,EAAE,QAAQ,GAAG;AAAA,cAEjB,UAAA,gBAAA,EAAC,GAAD;AAAA,gBAAM,MAAM;AAAA,gBAAM,SAAQ;AAAA,gBACvB,UAAA,EAAiB;AAAA,cACd,CAAA;AAAA,YACA,CAAA,CAEL;AAAA,UAIP,CAAA,GAAA,gBAAA,EAAC,GAAD;AAAA,YAAK,IAAI,EAAE,SAAS,qBAAqB;AAAA,YACvC,UAAA,gBAAA,EAAC,GAAD;AAAA,cAAiB,aAAa;AAAA,cAAsB,SAAS;AAAA,YAAiB,CAAA;AAAA,UAC3E,CAAA,CACF;AAAA;MACF;AAAA,IACF,CAAA,CAAA;AAAA;AAET,CAAC"}
1
+ {"version":3,"file":"TransactionDrillDown.es.js","names":[],"sources":["../../../../src/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Button from '@mui/material/Button'\nimport Stack from '@mui/material/Stack'\nimport Tab from '@mui/material/Tab'\nimport Tabs from '@mui/material/Tabs'\nimport { observer } from 'mobx-react-lite'\n\nimport { Icon } from '@mxenabled/mx-icons'\nimport { H3, Text } from '@mxenabled/mxui'\n\nimport {\n TipSection,\n type TipSectionProps,\n} from '../../../insights/components/shared/ChartDrawerTemplate/TipSection'\nimport { useGlobalCopyStore, useTransactionStore } from '../../../common'\nimport type { Transaction } from '../../../core'\nimport { exportTransactionsToCSV } from '../../../core/utils/TransactionUtils'\nimport { DRAWER_TIP_ICON } from '../../components/drawerTip'\nimport { TransactionList } from '../../../transactions'\nimport { SubTabs, subTabPanelProps, type SubTabsProps } from '../../components/SubTabs'\n\ninterface TabItem {\n label: string\n ariaLabel?: string\n}\n\nconst PANEL_ID = 'transaction-drill-down-panel'\nconst tabId = (index: number) => `transaction-details-tab-${index}`\nconst SUB_TABS_ID = 'transaction-drill-down-series'\n\ninterface TransactionDrillDownProps {\n ariaLabel?: string\n heading?: string\n subHeadingText?: string\n icon?: React.ReactNode\n // A logo left of the heading and sub-heading (Top Merchant's merchant, Figma `<Logo>` 40px).\n logo?: React.ReactNode\n tabs?: TabItem[]\n selectedIndex: number\n top: React.ReactNode\n tipSection?: TipSectionProps | false\n onSelectionChange?: (selectedIndex: number) => void\n onEachRowClick?: (guid: string) => void\n transactionFilter?: (selectedIndex: number) => (transaction: Transaction) => boolean\n baseTransactions?: Transaction[]\n // A second row of tabs between the chart and the list (the double-bar drawer's main / comparison\n // series, e.g. Spend / Income). Omitted for every single-series drawer.\n subTabs?: Omit<SubTabsProps, 'id'>\n // false hides the \"Transactions\" heading and its Export CSV button.\n showTransactionsHeader?: boolean\n // With no tabs or heading to name it, the list is a polite live region named \"Transactions,\n // {listLabel}\" (the selected month): screen-reader users can find it, tell which month it lists, and\n // hear that it changed when a keyboard bar picks another month.\n listLabel?: string\n}\n\nexport const TransactionDrillDown = observer(function TransactionDrillDown({\n ariaLabel,\n heading,\n subHeadingText,\n icon,\n logo,\n tabs,\n selectedIndex,\n top,\n onSelectionChange,\n transactionFilter,\n tipSection,\n onEachRowClick,\n baseTransactions,\n subTabs,\n showTransactionsHeader = true,\n listLabel,\n}: TransactionDrillDownProps) {\n const { transactions: transactionsCopy } = useGlobalCopyStore()\n const { sortedTransactionsWithSplits, tags, detailedTransactions } = useTransactionStore()\n\n const hasTabs = !!tabs?.length\n // Only a non-empty row gets the tabs and their panel.\n const seriesTabs = subTabs?.tabs.length ? subTabs : undefined\n const tablistLabel = ariaLabel ?? transactionsCopy.transactions_title\n\n const handlePrimaryChange = (_event: React.SyntheticEvent, newValue: number) => {\n onSelectionChange?.(newValue)\n }\n\n const filteredTransactions = transactionFilter\n ? (baseTransactions ?? detailedTransactions).filter(transactionFilter(selectedIndex))\n : undefined\n\n const exportTransactions = filteredTransactions ?? sortedTransactionsWithSplits\n\n return (\n <Box sx={{ bgcolor: 'background.paper', width: '100%' }}>\n {hasTabs && (\n <Tabs\n aria-label={tablistLabel}\n onChange={handlePrimaryChange}\n // The title sits 16px below the tab bar, as in every Figma chart drawer; the theme's 8px\n // gap under Tabs would make it 24.\n sx={{ mb: 0 }}\n value={selectedIndex}\n variant=\"fullWidth\"\n >\n {tabs!.map((tab, index) => (\n <Tab\n aria-controls={PANEL_ID}\n aria-label={tab.ariaLabel}\n id={tabId(index)}\n key={`${tab.label}-${index}`}\n label={tab.label}\n sx={{ minWidth: 'auto', px: 0 }}\n />\n ))}\n </Tabs>\n )}\n\n <Box\n aria-labelledby={hasTabs ? tabId(selectedIndex) : undefined}\n id={PANEL_ID}\n role={hasTabs ? 'tabpanel' : undefined}\n >\n {(heading || subHeadingText) && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 12, pt: 16, px: 24 }}>\n {logo && (\n <Box aria-hidden={true} sx={{ display: 'flex', flexShrink: 0 }}>\n {logo}\n </Box>\n )}\n <Stack sx={{ flexGrow: 1, gap: 4, minWidth: 0 }}>\n {heading && <H3>{heading}</H3>}\n {subHeadingText && (\n <Stack sx={{ alignItems: 'center', flexDirection: 'row', gap: 8 }}>\n {icon}\n <Text\n color=\"text.secondary\"\n sx={{ letterSpacing: '0.52px' }}\n textTransform=\"uppercase\"\n variant=\"body2\"\n >\n {subHeadingText}\n </Text>\n </Stack>\n )}\n </Stack>\n </Stack>\n )}\n\n {/* Figma's chart drawer pads the chart 16px above and below; a drawer with no chart has no box. */}\n {top && <Box sx={{ pb: 16, pt: 16 }}>{top}</Box>}\n\n {/* Every Figma chart drawer puts the tip under the chart, above any sub-tabs. */}\n {tipSection && <TipSection icon={DRAWER_TIP_ICON} {...tipSection} />}\n\n {seriesTabs && <SubTabs {...seriesTabs} id={SUB_TABS_ID} />}\n\n {/* The content the sub-tabs control, as the month tabs' panel above. */}\n <Box {...(seriesTabs && subTabPanelProps(SUB_TABS_ID, seriesTabs.selectedIndex))}>\n {showTransactionsHeader && (\n <Stack\n sx={{\n alignItems: 'center',\n borderBottomColor: 'divider',\n borderBottomStyle: 'solid',\n borderBottomWidth: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n pb: 4,\n pt: 16,\n px: 24,\n }}\n >\n <Text bold={true} variant=\"body1\">\n {transactionsCopy.transactions_title}\n </Text>\n {exportTransactions.length > 0 && (\n <Button\n onClick={() => {\n exportTransactionsToCSV(exportTransactions, tags)\n }}\n startIcon={<Icon name=\"ios_share\" />}\n sx={{ height: 28 }}\n >\n <Text bold={true} variant=\"body2\">\n {transactionsCopy.export_csv_btn}\n </Text>\n </Button>\n )}\n </Stack>\n )}\n\n {/* The list's scroll box is taller than its rows; Figma fills the space below the last row\n with background.default, and each row paints its own paper. */}\n <Box\n {...(listLabel && {\n 'aria-label': `${transactionsCopy.transactions_title}, ${listLabel}`,\n 'aria-live': 'polite' as const,\n role: 'region',\n })}\n sx={{ bgcolor: 'background.default' }}\n >\n <TransactionList transaction={filteredTransactions} onClick={onEachRowClick} />\n </Box>\n </Box>\n </Box>\n </Box>\n )\n})\n\nexport default TransactionDrillDown\n"],"mappings":";;;;;;;;;;;;;;;;AA4BA,IAAM,IAAW,gCACX,IAAA,CAAS,MAAkB,2BAA2B,CAAA,IACtD,IAAc,iCA4BP,KAAuB,EAAS,SAA8B,EACzE,WAAA,GACA,SAAA,GACA,gBAAA,GACA,MAAA,GACA,MAAA,GACA,MAAA,GACA,eAAA,GACA,KAAA,GACA,mBAAA,GACA,mBAAA,GACA,YAAA,GACA,gBAAA,GACA,kBAAA,GACA,SAAA,GACA,wBAAA,IAAyB,IACzB,WAAA,EAAA,GAC4B;AAC5B,QAAM,EAAE,cAAc,EAAA,IAAqB,EAAmB,GACxD,EAAE,8BAAA,GAA8B,MAA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