@mx-cartographer/experiences 9.7.195 → 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 (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/common/components/Select.d.ts +1 -1
  3. package/dist/common/components/Select.es.js +27 -20
  4. package/dist/common/components/Select.es.js.map +1 -1
  5. package/dist/core/types/localization/InsightsFeedCopy.d.ts +16 -0
  6. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +3 -1
  7. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js +29 -21
  8. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js.map +1 -1
  9. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js +54 -37
  10. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsBlock.es.js.map +1 -1
  11. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.d.ts +23 -0
  12. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js +352 -0
  13. package/dist/insights-v2/actionBlocks/EmergencySavingsBlock/EmergencySavingsV2.es.js.map +1 -0
  14. package/dist/insights-v2/actionBlocks/QuizMerchantBlock/QuizMerchantBlock.es.js +4 -4
  15. package/dist/insights-v2/actionBlocks/SubscriptionStatusModalBlock.es.js +4 -4
  16. package/dist/insights-v2/actionBlocks/TopMerchantsBlock/TopMerchantsBlock.es.js +4 -4
  17. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.d.ts +3 -1
  18. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js +68 -63
  19. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionDrillDown.es.js.map +1 -1
  20. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +94 -91
  21. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
  22. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +2 -0
  23. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +7 -5
  24. package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
  25. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.d.ts +1 -1
  26. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js +12 -7
  27. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/StepChartBlock.es.js.map +1 -1
  28. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.d.ts +4 -0
  29. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js +7 -5
  30. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/index.es.js.map +1 -1
  31. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.d.ts +19 -0
  32. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js +126 -0
  33. package/dist/insights-v2/blocks/ChartBlocks/StepChartBlock/variants/MilestoneProgress.es.js.map +1 -0
  34. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +59 -56
  35. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js.map +1 -1
  36. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.d.ts +1 -1
  37. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js +22 -11
  38. package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/layout.es.js.map +1 -1
  39. package/dist/insights-v2/blocks/ComponentBlocks/QuizBlock/QuizBlock.es.js +10 -10
  40. package/dist/insights-v2/components/LogoClusterCard.es.js +9 -8
  41. package/dist/insights-v2/components/LogoClusterCard.es.js.map +1 -1
  42. package/dist/insights-v2/components/TransactionListCard.es.js +4 -4
  43. package/dist/insights-v2/components/chartblocks/BarchartV2.d.ts +9 -1
  44. package/dist/insights-v2/components/chartblocks/BarchartV2.es.js +109 -85
  45. package/dist/insights-v2/components/chartblocks/BarchartV2.es.js.map +1 -1
  46. package/package.json +1 -1
@@ -1,148 +1,172 @@
1
- import { useContainerDimensions as _ } from "../../../insights/hooks/useContainerDimensions.es.js";
2
- import { LegendV2 as j } from "../../../insights/components/shared/Charts/BarChart/ChartLegendV2.es.js";
3
- import { CustomBarPlotV2 as W } from "../../../insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js";
4
- import m from "react";
5
- import z from "@mui/material/Stack";
6
- import { jsx as o, jsxs as b } from "react/jsx-runtime";
7
- import { alpha as G, useTheme as N } from "@mui/material/styles";
8
- import X from "@mui/material/Box";
9
- import { BarPlot as Y, ChartContainer as $, ChartsReferenceLine as S, ChartsXAxis as q } from "@mui/x-charts";
10
- var P = ({ amounts: c, color: n, data: e, heightOverride: x, margin: a = {
1
+ import { useContainerDimensions as z } from "../../../insights/hooks/useContainerDimensions.es.js";
2
+ import { LegendV2 as G } from "../../../insights/components/shared/Charts/BarChart/ChartLegendV2.es.js";
3
+ import { CustomBarPlotV2 as K } from "../../../insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js";
4
+ import l from "react";
5
+ import N from "@mui/material/Stack";
6
+ import { jsx as i, jsxs as d } from "react/jsx-runtime";
7
+ import { alpha as X, useTheme as Y } from "@mui/material/styles";
8
+ import $ from "@mui/material/Box";
9
+ import { BarPlot as q, ChartContainer as E, ChartsReferenceLine as L, ChartsXAxis as F } from "@mui/x-charts";
10
+ var S = l.createContext(null), H = ({ ownerState: a, ...r }) => {
11
+ const t = l.useContext(S);
12
+ return t ? /* @__PURE__ */ i(K, {
13
+ ...r,
14
+ ...t,
15
+ dataIndex: a.dataIndex,
16
+ style: {
17
+ height: r.height,
18
+ x: r.x,
19
+ y: r.y,
20
+ width: r.width
21
+ }
22
+ }) : null;
23
+ }, et = ({ amounts: a, color: r, data: t, heightOverride: g, keyboardSelectable: p = !1, margin: h = {
11
24
  bottom: 30,
12
25
  left: 16,
13
26
  right: 16,
14
27
  top: 20
15
- }, onBarClick: d, legendPosition: h = "bottom", monthlyAmountLabel: y, removeSelectedTabColorChange: f, selectedTabIndex: s, showMonthlyAmount: v = !0, trendAmountLabel: g, unselectedOpacity: u }) => {
16
- const A = m.useRef(null), { height: R, width: B } = _(A), k = N(), C = m.useMemo(() => {
17
- const t = e.map(({ value: l }) => l), r = Math.min(...t), i = Math.max(...t);
28
+ }, onBarClick: f, legendPosition: u = "bottom", monthlyAmountLabel: k, removeSelectedTabColorChange: c, selectedTabIndex: o, showMonthlyAmount: V = !0, trendAmountLabel: C, unselectedOpacity: x }) => {
29
+ const v = l.useRef(null), { height: D, width: W } = z(v), y = Y(), M = l.useMemo(() => {
30
+ const e = t.map(({ value: m }) => m), n = Math.min(...e), s = Math.max(...e);
18
31
  return {
19
32
  series: [{
20
- data: t,
33
+ data: e,
21
34
  type: "bar"
22
35
  }],
23
36
  xAxis: [{
24
- data: e.map(({ label: l }) => l),
37
+ data: t.map(({ label: m }) => m),
25
38
  scaleType: "band",
26
39
  categoryGapRatio: 0.45
27
40
  }],
28
41
  yAxis: [{
29
42
  scaleType: "linear",
30
- min: r < 0 ? r * 1.2 : 0,
31
- max: i > 0 ? i : 0
43
+ min: n < 0 ? n * 1.2 : 0,
44
+ max: s > 0 ? s : 0
32
45
  }]
33
46
  };
34
- }, [e]), L = m.useMemo(() => {
35
- const t = u === void 0 ? `${n}80` : G(n, u);
36
- return f ? e.map(() => n) : s == null ? [...new Array(e.length - 1).fill(t), n] : e.map((r, i) => i === s ? n : t);
47
+ }, [t]), w = l.useMemo(() => {
48
+ const e = x === void 0 ? `${r}80` : X(r, x);
49
+ return c ? t.map(() => r) : o == null ? [...new Array(t.length - 1).fill(e), r] : t.map((n, s) => s === o ? r : e);
37
50
  }, [
38
- n,
39
- e,
40
- s,
41
- u
42
- ]), V = m.useMemo(() => e[s ?? e.length - 1], [e, s]), p = e.reduce((t, r) => Math.min(t, r.value), 1 / 0) < 0, w = /* @__PURE__ */ o(j, {
43
- color: n,
44
- legendStyle: { pl: a.left },
45
- monthlyAmount: v ? V.formattedAmount : void 0,
46
- monthlyAmountLabel: y,
47
- trendAmount: c?.formattedAverage,
48
- trendAmountLabel: g
49
- }), M = y || g, D = (t, { dataIndex: r }) => d?.(r);
50
- return /* @__PURE__ */ b(z, {
51
+ r,
52
+ t,
53
+ o,
54
+ x
55
+ ]), _ = l.useMemo(() => t[o ?? t.length - 1], [t, o]), A = t.reduce((e, n) => Math.min(e, n.value), 1 / 0) < 0, B = /* @__PURE__ */ i(G, {
56
+ color: r,
57
+ legendStyle: { pl: h.left },
58
+ monthlyAmount: V ? _.formattedAmount : void 0,
59
+ monthlyAmountLabel: k,
60
+ trendAmount: a?.formattedAverage,
61
+ trendAmountLabel: C
62
+ }), R = k || C, b = l.useMemo(() => ({
63
+ colorRange: w,
64
+ data: t,
65
+ onKeyboardSelect: p ? f : void 0,
66
+ removeSelectedTabColorChange: c,
67
+ selectedTabIndex: o ?? t.length - 1
68
+ }), [
69
+ w,
70
+ t,
71
+ p,
72
+ f,
73
+ c,
74
+ o
75
+ ]), j = (e, { dataIndex: n }) => f?.(n);
76
+ return /* @__PURE__ */ d(N, {
51
77
  sx: {
52
78
  alignItems: "center",
53
79
  width: "100%"
54
80
  },
55
81
  children: [
56
- M && h === "top" && w,
57
- /* @__PURE__ */ o(X, {
58
- ref: A,
82
+ R && u === "top" && B,
83
+ /* @__PURE__ */ i($, {
84
+ ref: v,
59
85
  sx: {
60
- height: x || 122,
61
- mb: h === "top" ? 0 : 4,
62
- mt: h === "top" ? 4 : 0,
86
+ height: g || 122,
87
+ mb: u === "top" ? 0 : 4,
88
+ mt: u === "top" ? 4 : 0,
63
89
  touchAction: "pan-y",
64
90
  width: "100%",
65
91
  "& svg": {
66
92
  touchAction: "pan-y",
67
93
  userSelect: "none"
94
+ },
95
+ ...p && {
96
+ '& [role="button"]': {
97
+ cursor: "pointer",
98
+ outline: "none"
99
+ },
100
+ '& [role="button"]:focus-visible path': {
101
+ stroke: y.palette.primary.main,
102
+ strokeOpacity: 0.8,
103
+ strokeWidth: 3
104
+ }
68
105
  }
69
106
  },
70
- children: /* @__PURE__ */ b($, {
71
- height: R,
107
+ children: /* @__PURE__ */ d(E, {
108
+ height: D,
72
109
  margin: {
73
- bottom: a.bottom,
74
- left: a.left,
75
- right: a.right,
76
- top: a.top || 45
110
+ bottom: h.bottom,
111
+ left: h.left,
112
+ right: h.right,
113
+ top: h.top || 45
77
114
  },
78
- series: C.series,
79
- width: B,
80
- xAxis: C.xAxis,
115
+ series: M.series,
116
+ width: W,
117
+ xAxis: M.xAxis,
81
118
  yAxis: [{ width: 0 }],
82
119
  children: [
83
- c?.average && /* @__PURE__ */ o(S, {
120
+ a?.average && /* @__PURE__ */ i(L, {
84
121
  labelAlign: "middle",
85
122
  lineStyle: {
86
- stroke: k.palette.chart.chart7,
123
+ stroke: y.palette.chart.chart7,
87
124
  strokeDasharray: "4",
88
125
  strokeLinecap: "round",
89
126
  strokeWidth: 1
90
127
  },
91
- y: c?.average
128
+ y: a?.average
92
129
  }),
93
- p && /* @__PURE__ */ o(S, {
130
+ A && /* @__PURE__ */ i(L, {
94
131
  labelAlign: "middle",
95
- lineStyle: { stroke: k.palette.chart.chart7 },
132
+ lineStyle: { stroke: y.palette.chart.chart7 },
96
133
  y: 0
97
134
  }),
98
- /* @__PURE__ */ o(q, {
99
- slots: { axisTickLabel: ({ text: t, ownerState: r, ...i }) => {
100
- const l = e[s ?? e.length - 1]?.label;
101
- return /* @__PURE__ */ o("text", {
102
- ...i,
135
+ /* @__PURE__ */ i(F, {
136
+ slots: { axisTickLabel: ({ text: e, ownerState: n, ...s }) => {
137
+ const m = t[o ?? t.length - 1]?.label;
138
+ return /* @__PURE__ */ i("text", {
139
+ ...s,
103
140
  style: {
104
- ...i.style,
105
- fontWeight: !f && l === t ? "bold" : 400
141
+ ...s.style,
142
+ fontWeight: !c && m === e ? "bold" : 400
106
143
  },
107
- children: t
144
+ children: e
108
145
  });
109
146
  } },
110
- sx: (t) => ({
111
- "& .MuiChartsAxis-line": { stroke: p ? "none" : t.palette.text?.primary },
147
+ sx: (e) => ({
148
+ "& .MuiChartsAxis-line": { stroke: A ? "none" : e.palette.text?.primary },
112
149
  "& .MuiChartsAxis-tickContainer:first-of-type .MuiChartsAxis-tick": { display: "none" },
113
- "& .MuiChartsAxis-tickLabel": { transform: p ? "translateY(15px)" : {} }
150
+ "& .MuiChartsAxis-tickLabel": { transform: A ? "translateY(15px)" : {} }
114
151
  }),
115
152
  tickLabelStyle: { fontSize: 11 }
116
153
  }),
117
- /* @__PURE__ */ o(Y, {
118
- onItemClick: D,
119
- slots: { bar: (t) => {
120
- const { ownerState: r, ...i } = t;
121
- return /* @__PURE__ */ o(W, {
122
- ...i,
123
- colorRange: L,
124
- data: e,
125
- dataIndex: r.dataIndex,
126
- removeSelectedTabColorChange: f,
127
- selectedTabIndex: s ?? e.length - 1,
128
- style: {
129
- height: t.height,
130
- x: t.x,
131
- y: t.y,
132
- width: t.width
133
- }
134
- });
135
- } }
154
+ /* @__PURE__ */ i(S.Provider, {
155
+ value: b,
156
+ children: /* @__PURE__ */ i(q, {
157
+ onItemClick: j,
158
+ slots: { bar: H }
159
+ })
136
160
  })
137
161
  ]
138
162
  })
139
163
  }),
140
- M && h === "bottom" && w
164
+ R && u === "bottom" && B
141
165
  ]
142
166
  });
143
167
  };
144
168
  export {
145
- P as BarChartV2
169
+ et as BarChartV2
146
170
  };
147
171
 
148
172
  //# sourceMappingURL=BarchartV2.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BarchartV2.es.js","names":[],"sources":["../../../../src/insights-v2/components/chartblocks/BarchartV2.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { type Theme, alpha, useTheme } from '@mui/material/styles'\nimport {\n BarPlot,\n type BarSeriesType,\n ChartContainer as ResponsiveChartContainer,\n ChartsReferenceLine,\n ChartsXAxis,\n} from '@mui/x-charts'\n\nimport { useContainerDimensions } from '../../../insights/hooks/useContainerDimensions'\nimport type { BarChartV2Props } from '../../../insights/types/Charts/BarChart'\nimport { LegendV2 } from '../../../insights/components/shared/Charts/BarChart/ChartLegendV2'\nimport { CustomBarPlotV2 } from '../../../insights/components/shared/Charts/BarChart/CustomBarPlotV2'\n\nexport const BarChartV2 = ({\n amounts,\n color,\n data,\n heightOverride,\n margin = {\n bottom: 30,\n left: 16,\n right: 16,\n top: 20,\n },\n onBarClick,\n legendPosition = 'bottom',\n monthlyAmountLabel,\n removeSelectedTabColorChange,\n selectedTabIndex,\n showMonthlyAmount = true,\n trendAmountLabel,\n unselectedOpacity,\n}: BarChartV2Props) => {\n const containerRef = React.useRef<HTMLDivElement>(null)\n const { height, width } = useContainerDimensions(containerRef)\n const theme = useTheme()\n\n const chartData = React.useMemo(() => {\n const values = data.map(({ value }) => value)\n const minValue = Math.min(...values)\n const maxValue = Math.max(...values)\n\n return {\n series: [\n {\n data: values,\n type: 'bar',\n },\n ] as BarSeriesType[],\n xAxis: [\n {\n data: data.map(({ label }) => label),\n scaleType: 'band' as const,\n categoryGapRatio: 0.45,\n },\n ],\n yAxis: [\n {\n scaleType: 'linear' as const,\n min: minValue < 0 ? minValue * 1.2 : 0,\n max: maxValue > 0 ? maxValue : 0,\n },\n ],\n }\n }, [data])\n\n const colorRange = React.useMemo(() => {\n const defaultColor =\n unselectedOpacity === undefined ? `${color}80` : alpha(color, unselectedOpacity)\n if (removeSelectedTabColorChange) return data.map(() => color)\n\n if (selectedTabIndex == null) {\n return [...new Array(data.length - 1).fill(defaultColor), color]\n }\n return data.map((_, index) => (index === selectedTabIndex ? color : defaultColor))\n }, [color, data, selectedTabIndex, unselectedOpacity])\n\n const selectedData = React.useMemo(\n () => data[selectedTabIndex ?? data.length - 1],\n [data, selectedTabIndex],\n )\n\n const lowestValue = data.reduce((min, item) => Math.min(min, item.value), Infinity)\n const isNegative = lowestValue < 0\n\n const legendComponent = (\n <LegendV2\n color={color}\n legendStyle={{ pl: margin.left }}\n monthlyAmount={showMonthlyAmount ? selectedData.formattedAmount : undefined}\n monthlyAmountLabel={monthlyAmountLabel}\n trendAmount={amounts?.formattedAverage}\n trendAmountLabel={trendAmountLabel}\n />\n )\n\n const shouldShowLegend = monthlyAmountLabel || trendAmountLabel\n\n const handleBarClick = (\n _: React.MouseEvent<SVGElement, MouseEvent>,\n { dataIndex }: { dataIndex: number },\n ) => onBarClick?.(dataIndex)\n\n return (\n <Stack sx={{ alignItems: 'center', width: '100%' }}>\n {shouldShowLegend && legendPosition === 'top' && legendComponent}\n <Box\n ref={containerRef}\n sx={{\n height: heightOverride ? heightOverride : 122,\n mb: legendPosition === 'top' ? 0 : 4,\n mt: legendPosition === 'top' ? 4 : 0,\n touchAction: 'pan-y',\n width: '100%',\n '& svg': {\n touchAction: 'pan-y',\n userSelect: 'none',\n },\n }}\n >\n <ResponsiveChartContainer\n height={height}\n margin={{\n bottom: margin.bottom,\n left: margin.left,\n right: margin.right,\n top: margin.top || 45,\n }}\n series={chartData.series}\n width={width}\n xAxis={chartData.xAxis}\n yAxis={[{ width: 0 }]}\n >\n {amounts?.average && (\n <ChartsReferenceLine\n labelAlign=\"middle\"\n lineStyle={{\n stroke: theme.palette.chart.chart7,\n strokeDasharray: '4',\n strokeLinecap: 'round',\n strokeWidth: 1,\n }}\n y={amounts?.average}\n />\n )}\n\n {isNegative && (\n <ChartsReferenceLine\n labelAlign=\"middle\"\n lineStyle={{\n stroke: theme.palette.chart.chart7,\n }}\n y={0}\n />\n )}\n\n <ChartsXAxis\n slots={{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n axisTickLabel: ({ text, ownerState: _, ...restProps }) => {\n const label = data[selectedTabIndex ?? data.length - 1]?.label\n return (\n <text\n {...restProps}\n style={\n {\n ...restProps.style,\n fontWeight: !removeSelectedTabColorChange && label === text ? 'bold' : 400,\n } as React.CSSProperties\n }\n >\n {text}\n </text>\n )\n },\n }}\n sx={(theme) => ({\n '& .MuiChartsAxis-line': {\n stroke: !isNegative ? (theme as Theme).palette.text?.primary : 'none',\n },\n '& .MuiChartsAxis-tickContainer:first-of-type .MuiChartsAxis-tick': {\n display: 'none',\n },\n '& .MuiChartsAxis-tickLabel': {\n transform: isNegative ? 'translateY(15px)' : {},\n },\n })}\n tickLabelStyle={{\n fontSize: 11,\n }}\n />\n <BarPlot\n onItemClick={handleBarClick}\n slots={{\n bar: (props) => {\n const { ownerState, ...defaultProps } = props\n return (\n <CustomBarPlotV2\n {...defaultProps}\n colorRange={colorRange}\n data={data}\n dataIndex={ownerState.dataIndex}\n removeSelectedTabColorChange={removeSelectedTabColorChange}\n selectedTabIndex={selectedTabIndex ?? data.length - 1}\n style={{\n height: props.height,\n x: props.x,\n y: props.y,\n width: props.width,\n }}\n />\n )\n },\n }}\n />\n </ResponsiveChartContainer>\n </Box>\n {shouldShowLegend && legendPosition === 'bottom' && legendComponent}\n </Stack>\n )\n}\n"],"mappings":";;;;;;;;;AAkBA,IAAa,IAAA,CAAc,EACzB,SAAA,GACA,OAAA,GACA,MAAA,GACA,gBAAA,GACA,QAAA,IAAS;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AACP,GACA,YAAA,GACA,gBAAA,IAAiB,UACjB,oBAAA,GACA,8BAAA,GACA,kBAAA,GACA,mBAAA,IAAoB,IACpB,kBAAA,GACA,mBAAA,EAAA,MACqB;AACrB,QAAM,IAAe,EAAM,OAAuB,IAAI,GAChD,EAAE,QAAA,GAAQ,OAAA,EAAA,IAAU,EAAuB,CAAY,GACvD,IAAQ,EAAS,GAEjB,IAAY,EAAM,QAAA,MAAc;AACpC,UAAM,IAAS,EAAK,IAAA,CAAK,EAAE,OAAA,EAAA,MAAY,CAAK,GACtC,IAAW,KAAK,IAAI,G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-v2/components/chartblocks/BarchartV2.tsx"],"sourcesContent":["import React from 'react'\n\nimport Box from '@mui/material/Box'\nimport Stack from '@mui/material/Stack'\nimport { type Theme, alpha, useTheme } from '@mui/material/styles'\nimport {\n BarPlot,\n type BarProps,\n type BarSeriesType,\n ChartContainer as ResponsiveChartContainer,\n ChartsReferenceLine,\n ChartsXAxis,\n} from '@mui/x-charts'\n\nimport { useContainerDimensions } from '../../../insights/hooks/useContainerDimensions'\nimport type { BarChartV2Props } from '../../../insights/types/Charts/BarChart'\nimport { LegendV2 } from '../../../insights/components/shared/Charts/BarChart/ChartLegendV2'\nimport {\n CustomBarPlotV2,\n type CustomBarPlotV2Props,\n} from '../../../insights/components/shared/Charts/BarChart/CustomBarPlotV2'\n\ntype BarChartProps = BarChartV2Props & {\n /**\n * Each bar is a focusable button (Enter / Space call `onBarClick`), for a chart that is the only way\n * to pick a bar, e.g. a drawer without month tabs. Absent: bars are mouse-only.\n */\n keyboardSelectable?: boolean\n}\n\n// What each bar needs from its chart, beyond the props x-charts hands the `bar` slot.\ntype ChartBarContextValue = Pick<\n CustomBarPlotV2Props,\n 'colorRange' | 'data' | 'onKeyboardSelect' | 'removeSelectedTabColorChange' | 'selectedTabIndex'\n>\n\nconst ChartBarContext = React.createContext<ChartBarContextValue | null>(null)\n\n/**\n * The `bar` slot. A module-level component (chart state comes through ChartBarContext), so a re-render\n * such as a new selection updates the bars in place instead of re-mounting them, and a keyboard user's\n * focused bar keeps focus.\n */\nconst ChartBar = ({ ownerState, ...barProps }: BarProps) => {\n const chart = React.useContext(ChartBarContext)\n if (!chart) return null\n\n return (\n <CustomBarPlotV2\n {...barProps}\n {...chart}\n dataIndex={ownerState.dataIndex}\n style={{ height: barProps.height, x: barProps.x, y: barProps.y, width: barProps.width }}\n />\n )\n}\n\nexport const BarChartV2 = ({\n amounts,\n color,\n data,\n heightOverride,\n keyboardSelectable = false,\n margin = {\n bottom: 30,\n left: 16,\n right: 16,\n top: 20,\n },\n onBarClick,\n legendPosition = 'bottom',\n monthlyAmountLabel,\n removeSelectedTabColorChange,\n selectedTabIndex,\n showMonthlyAmount = true,\n trendAmountLabel,\n unselectedOpacity,\n}: BarChartProps) => {\n const containerRef = React.useRef<HTMLDivElement>(null)\n const { height, width } = useContainerDimensions(containerRef)\n const theme = useTheme()\n\n const chartData = React.useMemo(() => {\n const values = data.map(({ value }) => value)\n const minValue = Math.min(...values)\n const maxValue = Math.max(...values)\n\n return {\n series: [\n {\n data: values,\n type: 'bar',\n },\n ] as BarSeriesType[],\n xAxis: [\n {\n data: data.map(({ label }) => label),\n scaleType: 'band' as const,\n categoryGapRatio: 0.45,\n },\n ],\n yAxis: [\n {\n scaleType: 'linear' as const,\n min: minValue < 0 ? minValue * 1.2 : 0,\n max: maxValue > 0 ? maxValue : 0,\n },\n ],\n }\n }, [data])\n\n const colorRange = React.useMemo(() => {\n const defaultColor =\n unselectedOpacity === undefined ? `${color}80` : alpha(color, unselectedOpacity)\n if (removeSelectedTabColorChange) return data.map(() => color)\n\n if (selectedTabIndex == null) {\n return [...new Array(data.length - 1).fill(defaultColor), color]\n }\n return data.map((_, index) => (index === selectedTabIndex ? color : defaultColor))\n }, [color, data, selectedTabIndex, unselectedOpacity])\n\n const selectedData = React.useMemo(\n () => data[selectedTabIndex ?? data.length - 1],\n [data, selectedTabIndex],\n )\n\n const lowestValue = data.reduce((min, item) => Math.min(min, item.value), Infinity)\n const isNegative = lowestValue < 0\n\n const legendComponent = (\n <LegendV2\n color={color}\n legendStyle={{ pl: margin.left }}\n monthlyAmount={showMonthlyAmount ? selectedData.formattedAmount : undefined}\n monthlyAmountLabel={monthlyAmountLabel}\n trendAmount={amounts?.formattedAverage}\n trendAmountLabel={trendAmountLabel}\n />\n )\n\n const shouldShowLegend = monthlyAmountLabel || trendAmountLabel\n\n const chartBar = React.useMemo<ChartBarContextValue>(\n () => ({\n colorRange,\n data,\n onKeyboardSelect: keyboardSelectable ? onBarClick : undefined,\n removeSelectedTabColorChange,\n selectedTabIndex: selectedTabIndex ?? data.length - 1,\n }),\n [\n colorRange,\n data,\n keyboardSelectable,\n onBarClick,\n removeSelectedTabColorChange,\n selectedTabIndex,\n ],\n )\n\n const handleBarClick = (\n _: React.MouseEvent<SVGElement, MouseEvent>,\n { dataIndex }: { dataIndex: number },\n ) => onBarClick?.(dataIndex)\n\n return (\n <Stack sx={{ alignItems: 'center', width: '100%' }}>\n {shouldShowLegend && legendPosition === 'top' && legendComponent}\n <Box\n ref={containerRef}\n sx={{\n height: heightOverride ? heightOverride : 122,\n mb: legendPosition === 'top' ? 0 : 4,\n mt: legendPosition === 'top' ? 4 : 0,\n touchAction: 'pan-y',\n width: '100%',\n '& svg': {\n touchAction: 'pan-y',\n userSelect: 'none',\n },\n // Keyboard bars draw their focus as a ring on the bar, as the Donut's segments do.\n ...(keyboardSelectable && {\n '& [role=\"button\"]': { cursor: 'pointer', outline: 'none' },\n '& [role=\"button\"]:focus-visible path': {\n stroke: theme.palette.primary.main,\n strokeOpacity: 0.8,\n strokeWidth: 3,\n },\n }),\n }}\n >\n <ResponsiveChartContainer\n height={height}\n margin={{\n bottom: margin.bottom,\n left: margin.left,\n right: margin.right,\n top: margin.top || 45,\n }}\n series={chartData.series}\n width={width}\n xAxis={chartData.xAxis}\n yAxis={[{ width: 0 }]}\n >\n {amounts?.average && (\n <ChartsReferenceLine\n labelAlign=\"middle\"\n lineStyle={{\n stroke: theme.palette.chart.chart7,\n strokeDasharray: '4',\n strokeLinecap: 'round',\n strokeWidth: 1,\n }}\n y={amounts?.average}\n />\n )}\n\n {isNegative && (\n <ChartsReferenceLine\n labelAlign=\"middle\"\n lineStyle={{\n stroke: theme.palette.chart.chart7,\n }}\n y={0}\n />\n )}\n\n <ChartsXAxis\n slots={{\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n axisTickLabel: ({ text, ownerState: _, ...restProps }) => {\n const label = data[selectedTabIndex ?? data.length - 1]?.label\n return (\n <text\n {...restProps}\n style={\n {\n ...restProps.style,\n fontWeight: !removeSelectedTabColorChange && label === text ? 'bold' : 400,\n } as React.CSSProperties\n }\n >\n {text}\n </text>\n )\n },\n }}\n sx={(theme) => ({\n '& .MuiChartsAxis-line': {\n stroke: !isNegative ? (theme as Theme).palette.text?.primary : 'none',\n },\n '& .MuiChartsAxis-tickContainer:first-of-type .MuiChartsAxis-tick': {\n display: 'none',\n },\n '& .MuiChartsAxis-tickLabel': {\n transform: isNegative ? 'translateY(15px)' : {},\n },\n })}\n tickLabelStyle={{\n fontSize: 11,\n }}\n />\n <ChartBarContext.Provider value={chartBar}>\n <BarPlot onItemClick={handleBarClick} slots={{ bar: ChartBar }} />\n </ChartBarContext.Provider>\n </ResponsiveChartContainer>\n </Box>\n {shouldShowLegend && legendPosition === 'bottom' && legendComponent}\n </Stack>\n )\n}\n"],"mappings":";;;;;;;;;AAoCA,IAAM,IAAkB,EAAM,cAA2C,IAAI,GAOvE,IAAA,CAAY,EAAE,YAAA,GAAY,GAAG,EAAA,MAAyB;AAC1D,QAAM,IAAQ,EAAM,WAAW,CAAe;AAC9C,SAAK,IAGH,gBAAA,EAAC,GAAD;AAAA,IACE,GAAI;AAAA,IACJ,GAAI;AAAA,IACJ,WAAW,EAAW;AAAA,IACtB,OAAO;AAAA,MAAE,QAAQ,EAAS;AAAA,MAAQ,GAAG,EAAS;AAAA,MAAG,GAAG,EAAS;AAAA,MAAG,OAAO,EAAS;AAAA,IAAM;AAAA,EACvF,CAAA,IARgB;AAUrB,GAEa,KAAA,CAAc,EACzB,SAAA,GACA,OAAA,GACA,MAAA,GACA,gBAAA,GACA,oBAAA,IAAqB,IACrB,QAAA,IAAS;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AACP,GACA,YAAA,GACA,gBAAA,IAAiB,UACjB,oBAAA,GACA,8BAAA,GACA,kBAAA,GACA,mBAAA,IAAoB,IACpB,kBAAA,GACA,mBAAA,EAAA,MACmB;AACnB,QAAM,IAAe,EAAM,OAA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gBAAgB,EACd,UAAU,GACZ;AAAA,YACD,CAAA;AAAA,YACD,gBAAA,EAAC,EAAgB,UAAjB;AAAA,cAA0B,OAAO;AAAA,cAC/B,UAAA,gBAAA,EAAC,GAAD;AAAA,gBAAS,aAAa;AAAA,gBAAgB,OAAO,EAAE,KAAK,EAAS;AAAA,cAAI,CAAA;AAAA,YACzC,CAAA;AAAA,UACF;AAAA;MACvB,CAAA;AAAA,MACJ,KAAoB,MAAmB,YAAY;AAAA,IAC/C;AAAA;AAEX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.7.195",
3
+ "version": "9.7.197",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",