@mx-cartographer/experiences 8.0.15 → 8.0.16

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [8.0.16] - 04-13-2026
2
+
3
+ - **ADDED** - Replenish Savings | DrillDown card
4
+
1
5
  ## [8.0.15] - 04-13-2026
2
6
 
3
7
  - **UPDATED** - Added `Embedded Card in Transaction Details` and the View History functionality | Transaction History Drilldown drawer
@@ -3,7 +3,7 @@ import w, { useMemo as X, useState as K, useEffect as q } from "react";
3
3
  import A from "@mui/material/Box";
4
4
  import Y from "@mui/material/Button";
5
5
  import c from "@mui/material/Stack";
6
- import { Icon as E, P as N, H3 as J, Text as b, MerchantLogo as P, H2 as tt } from "@mxenabled/mxui";
6
+ import { Icon as E, P as N, H3 as J, Text as f, MerchantLogo as P, H2 as tt } from "@mxenabled/mxui";
7
7
  import { Receipt as et, Icon as rt } from "@mxenabled/mx-icons";
8
8
  import { L as nt, O as it, e as ot } from "./exportTransactionsToCSV-DgdB3TBt.mjs";
9
9
  import { observer as O } from "mobx-react-lite";
@@ -12,9 +12,9 @@ import st from "@mui/material/Divider";
12
12
  import lt from "@mui/material/List";
13
13
  import { G as ct, h as W, u as H, g as dt, b as ht } from "./hooks-BxkfR-Ff.mjs";
14
14
  import mt from "@mui/material/ListItemAvatar";
15
- import ut from "@mui/material/ListItemText";
15
+ import pt from "@mui/material/ListItemText";
16
16
  import { useTheme as z } from "@mui/material/styles";
17
- import { a as pt } from "./Transaction-C3Pg9TKf.mjs";
17
+ import { a as ut } from "./Transaction-C3Pg9TKf.mjs";
18
18
  import { f as B } from "./NumberFormatting-QCaNwbjv.mjs";
19
19
  import { fromUnixTime as R } from "date-fns/fromUnixTime";
20
20
  import { isSameDay as Z } from "date-fns/isSameDay";
@@ -29,7 +29,7 @@ import { ChartContainer as Ct, ChartsReferenceLine as j, ChartsXAxis as vt, BarP
29
29
  import { D as Dt } from "./Drawer-Bbe4AMB1.mjs";
30
30
  import St from "@mui/material/Card";
31
31
  const It = ({ message: t, tipAriaLabel: n, onDismiss: r, onAction: i, sx: o }) => {
32
- const l = i || r, d = i ? "chevron_right" : "close";
32
+ const l = i || r, h = i ? "chevron_right" : "close";
33
33
  return /* @__PURE__ */ a(
34
34
  c,
35
35
  {
@@ -58,7 +58,7 @@ const It = ({ message: t, tipAriaLabel: n, onDismiss: r, onAction: i, sx: o }) =
58
58
  onClick: l,
59
59
  size: "small",
60
60
  sx: { minHeight: 0, minWidth: 0, p: 0 },
61
- children: /* @__PURE__ */ e(E, { color: "primary", fill: !0, name: d, size: 20 })
61
+ children: /* @__PURE__ */ e(E, { color: "primary", fill: !0, name: h, size: 20 })
62
62
  }
63
63
  )
64
64
  ]
@@ -71,17 +71,17 @@ const It = ({ message: t, tipAriaLabel: n, onDismiss: r, onAction: i, sx: o }) =
71
71
  children: i,
72
72
  data: o,
73
73
  defaultSelectedIndex: l,
74
- icon: d,
75
- onTabChange: f,
74
+ icon: h,
75
+ onTabChange: g,
76
76
  tipSection: m
77
77
  }) => {
78
- const { heading: h, subHeading: p } = n, g = X(
78
+ const { heading: d, subHeading: u } = n, x = X(
79
79
  () => l ?? (o.length ? o.length - 1 : 0),
80
80
  [l, o.length]
81
- ), [y, u] = K(g), S = (v, T) => {
82
- f?.(T), u(T);
81
+ ), [y, p] = K(x), S = (v, T) => {
82
+ g?.(T), p(T);
83
83
  }, I = (v) => {
84
- u(v);
84
+ p(v);
85
85
  };
86
86
  return /* @__PURE__ */ a(A, { sx: { bgcolor: "background.paper", width: "100%" }, children: [
87
87
  /* @__PURE__ */ e(wt, { "aria-label": t, onChange: S, value: y, variant: "fullWidth", children: o.map((v, T) => /* @__PURE__ */ e(
@@ -93,11 +93,11 @@ const It = ({ message: t, tipAriaLabel: n, onDismiss: r, onAction: i, sx: o }) =
93
93
  },
94
94
  `${v.label}-${T}`
95
95
  )) }),
96
- /* @__PURE__ */ e(c, { sx: { pt: 16, px: 24 }, children: (h || p) && /* @__PURE__ */ a(c, { sx: { gap: 4 }, children: [
97
- h && /* @__PURE__ */ e(J, { children: h }),
98
- p && /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
99
- d,
100
- /* @__PURE__ */ e(b, { textTransform: "uppercase", variant: "body2", children: p.description })
96
+ /* @__PURE__ */ e(c, { sx: { pt: 16, px: 24 }, children: (d || u) && /* @__PURE__ */ a(c, { sx: { gap: 4 }, children: [
97
+ d && /* @__PURE__ */ e(J, { children: d }),
98
+ u && /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
99
+ h,
100
+ /* @__PURE__ */ e(f, { textTransform: "uppercase", variant: "body2", children: u.description })
101
101
  ] })
102
102
  ] }) }),
103
103
  r?.(y, I),
@@ -124,7 +124,7 @@ function $t(t) {
124
124
  });
125
125
  }
126
126
  const Et = ({ transaction: t, onClick: n }) => {
127
- const i = z().palette.mode === "dark", { associatedBeats: o } = W(), { expandedSplits: l } = V(), { transactions: d } = H(), { showInsights: f } = V(), m = t.transaction_type === pt.CREDIT, h = w.useMemo(() => o.find((p) => p.associated_transaction_guid === t.guid), [o, t]);
127
+ const i = z().palette.mode === "dark", { associatedBeats: o } = W(), { expandedSplits: l } = V(), { transactions: h } = H(), { showInsights: g } = V(), m = t.transaction_type === ut.CREDIT, d = w.useMemo(() => o.find((u) => u.associated_transaction_guid === t.guid), [o, t]);
128
128
  return (
129
129
  //TODO: implement common/components/ListItemRow.tsx
130
130
  /* @__PURE__ */ a(
@@ -141,7 +141,7 @@ const Et = ({ transaction: t, onClick: n }) => {
141
141
  }
142
142
  ) }),
143
143
  /* @__PURE__ */ e(
144
- ut,
144
+ pt,
145
145
  {
146
146
  disableTypography: !0,
147
147
  secondary: /* @__PURE__ */ a(c, { direction: "row", justifyContent: "space-between", children: [
@@ -157,28 +157,28 @@ const Et = ({ transaction: t, onClick: n }) => {
157
157
  ),
158
158
  t.is_hidden && /* @__PURE__ */ e(E, { name: "visibility_off", size: 16 }),
159
159
  t.has_been_split && /* @__PURE__ */ e(E, { name: "call_split", size: 16 }),
160
- /* @__PURE__ */ e(b, { variant: "caption", children: t.has_been_split ? d.split_transaction_category_label : t.category })
160
+ /* @__PURE__ */ e(f, { variant: "caption", children: t.has_been_split ? h.split_transaction_category_label : t.category })
161
161
  ] }),
162
- h && f && /* @__PURE__ */ e(
163
- b,
162
+ d && g && /* @__PURE__ */ e(
163
+ f,
164
164
  {
165
165
  bold: !0,
166
166
  color: "action.active",
167
- onClick: (p) => {
168
- p.stopPropagation(), p.preventDefault(), $t(h.guid);
167
+ onClick: (u) => {
168
+ u.stopPropagation(), u.preventDefault(), $t(d.guid);
169
169
  },
170
170
  variant: "caption",
171
- children: h.short_title
171
+ children: d.short_title
172
172
  }
173
173
  )
174
174
  ] }),
175
175
  children: /* @__PURE__ */ a(c, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
176
- /* @__PURE__ */ a(b, { bold: !0, variant: "body1", children: [
177
- t.is_hidden && d.hide_trnx_cancel_hidden_note,
176
+ /* @__PURE__ */ a(f, { bold: !0, variant: "body1", children: [
177
+ t.is_hidden && h.hide_trnx_cancel_hidden_note,
178
178
  t.payee || t.description || t.feed_description
179
179
  ] }),
180
180
  /* @__PURE__ */ a(
181
- b,
181
+ f,
182
182
  {
183
183
  bold: !0,
184
184
  color: m ? "success.main" : "text.primary",
@@ -200,12 +200,12 @@ const Et = ({ transaction: t, onClick: n }) => {
200
200
  }, Mt = O(Et), Rt = ({
201
201
  bgcolor: t = "background.default",
202
202
  children: n
203
- }) => /* @__PURE__ */ e(A, { display: "inline-block", sx: { bgcolor: t, py: 6, width: "100%" }, children: /* @__PURE__ */ e(b, { bold: !0, sx: { pl: 24 }, variant: "caption", children: n }) }), Wt = ({ showIcon: t = !0, showSubtitle: n = !0 }) => {
203
+ }) => /* @__PURE__ */ e(A, { display: "inline-block", sx: { bgcolor: t, py: 6, width: "100%" }, children: /* @__PURE__ */ e(f, { bold: !0, sx: { pl: 24 }, variant: "caption", children: n }) }), Wt = ({ showIcon: t = !0, showSubtitle: n = !0 }) => {
204
204
  const { transactions: r } = H();
205
205
  return /* @__PURE__ */ a(c, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
206
206
  t && /* @__PURE__ */ e(et, { color: "action", sx: { fontSize: 32 } }),
207
- /* @__PURE__ */ e(b, { bold: !0, color: "text.secondary", variant: "body2", children: r.zero_state_no_transactions }),
208
- n && /* @__PURE__ */ e(b, { color: "text.secondary", variant: "caption", children: r.zero_state_there_are_no_transactions })
207
+ /* @__PURE__ */ e(f, { bold: !0, color: "text.secondary", variant: "body2", children: r.zero_state_no_transactions }),
208
+ n && /* @__PURE__ */ e(f, { color: "text.secondary", variant: "caption", children: r.zero_state_there_are_no_transactions })
209
209
  ] });
210
210
  }, zt = O(Wt), G = (t, n) => {
211
211
  const r = R(n[t].date), i = R(n[t - 1]?.date);
@@ -231,32 +231,32 @@ const Et = ({ transaction: t, onClick: n }) => {
231
231
  loader: i = /* @__PURE__ */ e(Q, { label: "Loading", size: 40 }),
232
232
  onClick: o,
233
233
  showInsights: l = !1,
234
- showLoader: d = !1,
235
- showHiddenTransactions: f = !1,
234
+ showLoader: h = !1,
235
+ showHiddenTransactions: g = !1,
236
236
  transaction: m,
237
- width: h = "100%",
238
- zeroState: p = /* @__PURE__ */ e(zt, {})
237
+ width: d = "100%",
238
+ zeroState: u = /* @__PURE__ */ e(zt, {})
239
239
  }) => {
240
- const { isLoading: g, sortedTransactions: y } = W(), u = w.useMemo(() => {
241
- const x = n ? y.filter(n) : y, _ = m ?? x;
242
- return f ? _ : _.filter((s) => !s.is_hidden);
243
- }, [y, f, m]), { clearExpandedSplits: S, setShowInsights: I, toggleSplit: v } = V(), { onEvent: T } = dt(), M = (x) => {
244
- const _ = u.find((s) => s.guid === x);
240
+ const { isLoading: x, sortedTransactions: y } = W(), p = w.useMemo(() => {
241
+ const b = n ? y.filter(n) : y, _ = m ?? b;
242
+ return g ? _ : _.filter((s) => !s.is_hidden);
243
+ }, [y, g, m]), { clearExpandedSplits: S, setShowInsights: I, toggleSplit: v } = V(), { onEvent: T } = dt(), M = (b) => {
244
+ const _ = p.find((s) => s.guid === b);
245
245
  if (_?.has_been_split) {
246
246
  v(_.guid);
247
247
  return;
248
248
  }
249
249
  T(bt.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
250
250
  account_guid: _?.account_guid,
251
- transaction_guid: x
252
- }), o?.(x);
251
+ transaction_guid: b
252
+ }), o?.(b);
253
253
  }, L = w.useRef(null), k = at({
254
- count: u.length,
254
+ count: p.length,
255
255
  getScrollElement: () => L.current,
256
- estimateSize: (x) => U + (G(x, u) ? F : 0),
256
+ estimateSize: (b) => U + (G(b, p) ? F : 0),
257
257
  overscan: 5
258
258
  });
259
- return w.useEffect(() => k.measure(), [u]), w.useEffect(() => I(l), [l]), w.useEffect(() => () => S(), []), /* @__PURE__ */ e(lt, { component: "div", role: "list", sx: { width: h }, children: /* @__PURE__ */ e(A, { height: r, overflow: "auto", ref: L, role: "presentation", width: h, children: /* @__PURE__ */ a(
259
+ return w.useEffect(() => k.measure(), [p]), w.useEffect(() => I(l), [l]), w.useEffect(() => () => S(), []), /* @__PURE__ */ e(lt, { component: "div", role: "list", sx: { width: d }, children: /* @__PURE__ */ e(A, { height: r, overflow: "auto", ref: L, role: "presentation", width: d, children: /* @__PURE__ */ a(
260
260
  A,
261
261
  {
262
262
  height: (
@@ -267,10 +267,10 @@ const Et = ({ transaction: t, onClick: n }) => {
267
267
  role: "presentation",
268
268
  width: "100%",
269
269
  children: [
270
- (g || d) && i,
271
- !g && !d && k.getVirtualItems().length === 0 && p,
272
- !g && !d && k.getVirtualItems().length > 0 && k.getVirtualItems().map((x) => {
273
- const _ = u[x.index], s = G(x.index, u), C = Bt(x.index, u), D = U + (s ? F : 0);
270
+ (x || h) && i,
271
+ !x && !h && k.getVirtualItems().length === 0 && u,
272
+ !x && !h && k.getVirtualItems().length > 0 && k.getVirtualItems().map((b) => {
273
+ const _ = p[b.index], s = G(b.index, p), C = Bt(b.index, p), D = U + (s ? F : 0);
274
274
  return /* @__PURE__ */ a(
275
275
  A,
276
276
  {
@@ -278,7 +278,7 @@ const Et = ({ transaction: t, onClick: n }) => {
278
278
  sx: {
279
279
  height: D,
280
280
  position: "absolute",
281
- transform: `translateY(${x.start}px)`,
281
+ transform: `translateY(${b.start}px)`,
282
282
  width: "100%",
283
283
  bgcolor: "background.paper"
284
284
  },
@@ -321,7 +321,7 @@ const Et = ({ transaction: t, onClick: n }) => {
321
321
  trendAmount: o,
322
322
  trendAmountLabel: l
323
323
  }) => {
324
- const d = z();
324
+ const h = z();
325
325
  return /* @__PURE__ */ a(
326
326
  c,
327
327
  {
@@ -348,7 +348,7 @@ const Et = ({ transaction: t, onClick: n }) => {
348
348
  children: /* @__PURE__ */ e("rect", { fill: t, height: "12", rx: "2", width: "12" })
349
349
  }
350
350
  ),
351
- /* @__PURE__ */ a(b, { id: "chartLegendLabel", variant: "caption", children: [
351
+ /* @__PURE__ */ a(f, { id: "chartLegendLabel", variant: "caption", children: [
352
352
  i,
353
353
  ": ",
354
354
  r
@@ -364,10 +364,10 @@ const Et = ({ transaction: t, onClick: n }) => {
364
364
  height: "12",
365
365
  role: "figure",
366
366
  width: "12",
367
- children: /* @__PURE__ */ e("rect", { fill: d.palette.chart.chart7, height: "12", rx: "2", width: "12" })
367
+ children: /* @__PURE__ */ e("rect", { fill: h.palette.chart.chart7, height: "12", rx: "2", width: "12" })
368
368
  }
369
369
  ),
370
- /* @__PURE__ */ a(b, { id: "chartLegendLabel", variant: "caption", children: [
370
+ /* @__PURE__ */ a(f, { id: "chartLegendLabel", variant: "caption", children: [
371
371
  l,
372
372
  ": ",
373
373
  o
@@ -387,29 +387,29 @@ const Et = ({ transaction: t, onClick: n }) => {
387
387
  removeSelectedTabColorChange: i,
388
388
  selectedTabIndex: o,
389
389
  style: l,
390
- ...d
390
+ ...h
391
391
  }) => {
392
- const f = z(), { ariaLabel: m, formattedAmount: h } = n[r], p = o === r ? "bold" : 400, g = l.x ?? 0, y = l.y ?? 0, u = l.width ?? 0, S = l.height ?? 0;
392
+ const g = z(), { ariaLabel: m, formattedAmount: d } = n[r], u = o === r ? "bold" : 400, x = l.x ?? 0, y = l.y ?? 0, p = l.width ?? 0, S = l.height ?? 0;
393
393
  return /* @__PURE__ */ a("g", { "aria-label": m, children: [
394
394
  /* @__PURE__ */ e(
395
395
  "path",
396
396
  {
397
- ...d,
398
- d: jt(u, S),
397
+ ...h,
398
+ d: jt(p, S),
399
399
  fill: t[r],
400
- transform: `translate(${g}, ${y})`
400
+ transform: `translate(${x}, ${y})`
401
401
  }
402
402
  ),
403
403
  /* @__PURE__ */ e(
404
404
  "text",
405
405
  {
406
- fill: f.palette.text.primary,
406
+ fill: g.palette.text.primary,
407
407
  fontSize: 11,
408
- fontWeight: i ? "bold" : p,
408
+ fontWeight: i ? "bold" : u,
409
409
  textAnchor: "middle",
410
- x: g + u / 2,
410
+ x: x + p / 2,
411
411
  y: y - 8,
412
- children: h
412
+ children: d
413
413
  }
414
414
  )
415
415
  ] });
@@ -425,13 +425,13 @@ const Et = ({ transaction: t, onClick: n }) => {
425
425
  top: 20
426
426
  },
427
427
  onBarClick: l,
428
- legendPosition: d = "bottom",
429
- monthlyAmountLabel: f,
428
+ legendPosition: h = "bottom",
429
+ monthlyAmountLabel: g,
430
430
  removeSelectedTabColorChange: m,
431
- selectedTabIndex: h,
432
- trendAmountLabel: p
431
+ selectedTabIndex: d,
432
+ trendAmountLabel: u
433
433
  }) => {
434
- const g = w.useRef(null), { height: y, width: u } = Ot(g), S = z(), I = w.useMemo(() => {
434
+ const x = w.useRef(null), { height: y, width: p } = Ot(x), S = z(), I = w.useMemo(() => {
435
435
  const s = r.map(({ value: $ }) => $), C = Math.min(...s), D = Math.max(...s);
436
436
  return {
437
437
  series: [
@@ -457,31 +457,31 @@ const Et = ({ transaction: t, onClick: n }) => {
457
457
  };
458
458
  }, [r]), v = w.useMemo(() => {
459
459
  const s = `${n}80`;
460
- return m ? r.map(() => n) : h == null ? [...new Array(r.length - 1).fill(s), n] : r.map((C, D) => D === h ? n : s);
461
- }, [n, r, h]), T = w.useMemo(
462
- () => r[h ?? r.length - 1],
463
- [r, h]
460
+ return m ? r.map(() => n) : d == null ? [...new Array(r.length - 1).fill(s), n] : r.map((C, D) => D === d ? n : s);
461
+ }, [n, r, d]), T = w.useMemo(
462
+ () => r[d ?? r.length - 1],
463
+ [r, d]
464
464
  ), L = r.reduce((s, C) => Math.min(s, C.value), 1 / 0) < 0, k = /* @__PURE__ */ e(
465
465
  Ht,
466
466
  {
467
467
  color: n,
468
468
  legendStyle: { pl: o.left },
469
469
  monthlyAmount: T.formattedAmount,
470
- monthlyAmountLabel: f,
470
+ monthlyAmountLabel: g,
471
471
  trendAmount: t?.formattedAverage,
472
- trendAmountLabel: p
472
+ trendAmountLabel: u
473
473
  }
474
- ), x = f || p, _ = (s, { dataIndex: C }) => l?.(C);
474
+ ), b = g || u, _ = (s, { dataIndex: C }) => l?.(C);
475
475
  return /* @__PURE__ */ a(c, { sx: { alignItems: "center", width: "100%" }, children: [
476
- x && d === "top" && k,
476
+ b && h === "top" && k,
477
477
  /* @__PURE__ */ e(
478
478
  A,
479
479
  {
480
- ref: g,
480
+ ref: x,
481
481
  sx: {
482
482
  height: i || 122,
483
- mb: d === "top" ? 0 : 4,
484
- mt: d === "top" ? 4 : 0,
483
+ mb: h === "top" ? 0 : 4,
484
+ mt: h === "top" ? 4 : 0,
485
485
  touchAction: "pan-y",
486
486
  width: "100%",
487
487
  "& svg": {
@@ -503,7 +503,7 @@ const Et = ({ transaction: t, onClick: n }) => {
503
503
  top: o.top || 45
504
504
  },
505
505
  series: I.series,
506
- width: u,
506
+ width: p,
507
507
  xAxis: I.xAxis,
508
508
  yAxis: [{ width: 0 }],
509
509
  children: [
@@ -537,7 +537,7 @@ const Et = ({ transaction: t, onClick: n }) => {
537
537
  slots: {
538
538
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
539
539
  axisTickLabel: ({ text: s, ownerState: C, ...D }) => {
540
- const $ = r[h ?? r.length - 1]?.label;
540
+ const $ = r[d ?? r.length - 1]?.label;
541
541
  return /* @__PURE__ */ e(
542
542
  "text",
543
543
  {
@@ -582,7 +582,7 @@ const Et = ({ transaction: t, onClick: n }) => {
582
582
  data: r,
583
583
  dataIndex: C.dataIndex,
584
584
  removeSelectedTabColorChange: m,
585
- selectedTabIndex: h ?? r.length - 1,
585
+ selectedTabIndex: d ?? r.length - 1,
586
586
  style: {
587
587
  height: s.height,
588
588
  x: s.x,
@@ -600,7 +600,7 @@ const Et = ({ transaction: t, onClick: n }) => {
600
600
  )
601
601
  }
602
602
  ),
603
- x && d === "bottom" && k
603
+ b && h === "bottom" && k
604
604
  ] });
605
605
  }, Ft = ({
606
606
  ariaLabel: t,
@@ -609,15 +609,15 @@ const Et = ({ transaction: t, onClick: n }) => {
609
609
  data: i,
610
610
  defaultSelectedIndex: o = 0,
611
611
  icon: l,
612
- isOpen: d = !1,
613
- onClose: f,
612
+ isOpen: h = !1,
613
+ onClose: g,
614
614
  onTabChange: m,
615
- tipSection: h,
616
- title: p,
617
- transactionListProps: g = {}
615
+ tipSection: d,
616
+ title: u,
617
+ transactionListProps: x = {}
618
618
  }) => {
619
- const { common: y, transactions: u } = H(), { isCopyLoaded: S } = ht(), { sortedTransactionsWithSplits: I, tags: v } = W();
620
- return S ? /* @__PURE__ */ e(Dt, { ariaLabelClose: y.close_aria, isOpen: d, onClose: f, title: p, children: /* @__PURE__ */ e(
619
+ const { common: y, transactions: p } = H(), { isCopyLoaded: S } = ht(), { sortedTransactionsWithSplits: I, tags: v } = W();
620
+ return S ? /* @__PURE__ */ e(Dt, { ariaLabelClose: y.close_aria, isOpen: h, onClose: g, title: u, children: /* @__PURE__ */ e(
621
621
  Lt,
622
622
  {
623
623
  ariaLabel: t,
@@ -636,7 +636,7 @@ const Et = ({ transaction: t, onClick: n }) => {
636
636
  defaultSelectedIndex: o,
637
637
  icon: l,
638
638
  onTabChange: m,
639
- tipSection: h,
639
+ tipSection: d,
640
640
  children: () => /* @__PURE__ */ a(w.Fragment, { children: [
641
641
  /* @__PURE__ */ a(
642
642
  c,
@@ -653,43 +653,44 @@ const Et = ({ transaction: t, onClick: n }) => {
653
653
  px: 24
654
654
  },
655
655
  children: [
656
- /* @__PURE__ */ e(b, { bold: !0, variant: "body1", children: u.transactions_title }),
657
- (g?.transaction || I.length > 0) && /* @__PURE__ */ e(
656
+ /* @__PURE__ */ e(f, { bold: !0, variant: "body1", children: p.transactions_title }),
657
+ (x?.transaction || I.length > 0) && /* @__PURE__ */ e(
658
658
  Y,
659
659
  {
660
660
  onClick: () => {
661
661
  ot(
662
- g?.transaction || I,
662
+ x?.transaction || I,
663
663
  v
664
664
  );
665
665
  },
666
666
  startIcon: /* @__PURE__ */ e(rt, { name: "ios_share" }),
667
667
  sx: { height: 28 },
668
- children: /* @__PURE__ */ e(b, { bold: !0, variant: "body2", children: u.export_csv_btn })
668
+ children: /* @__PURE__ */ e(f, { bold: !0, variant: "body2", children: p.export_csv_btn })
669
669
  }
670
670
  )
671
671
  ]
672
672
  }
673
673
  ),
674
- /* @__PURE__ */ e(Nt, { ...g })
674
+ /* @__PURE__ */ e(Nt, { ...x })
675
675
  ] })
676
676
  }
677
677
  ) }) : /* @__PURE__ */ e(Q, {});
678
678
  }, De = Ft, Kt = ({
679
679
  amount: t,
680
680
  borderRadius: n = "2px",
681
- completeColor: r = "success.main",
682
- icon: i,
683
- label: o,
684
- leftLabel: l,
685
- percentComplete: d = 0,
686
- rightLabel: f,
687
- sx: m
688
- }) => /* @__PURE__ */ e(c, { sx: { p: 24, width: "100%", ...m }, children: /* @__PURE__ */ a(c, { className: "details-container", sx: { gap: 16 }, children: [
681
+ count: r,
682
+ completeColor: i = "success.main",
683
+ icon: o,
684
+ label: l,
685
+ leftLabel: h,
686
+ percentComplete: g = 0,
687
+ rightLabel: m,
688
+ sx: d
689
+ }) => /* @__PURE__ */ a(c, { className: "details-container", sx: { p: 24, width: "100%", gap: 16, ...d }, children: [
689
690
  /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
690
- /* @__PURE__ */ e(A, { children: i }),
691
+ /* @__PURE__ */ e(A, { children: o }),
691
692
  /* @__PURE__ */ a(c, { children: [
692
- /* @__PURE__ */ e(N, { variant: "body2", children: o }),
693
+ typeof r == "string" ? /* @__PURE__ */ e(N, { variant: "body2", children: l }) : r,
693
694
  typeof t == "string" ? /* @__PURE__ */ e(tt, { children: t }) : t
694
695
  ] })
695
696
  ] }),
@@ -701,28 +702,33 @@ const Et = ({ transaction: t, onClick: n }) => {
701
702
  bgcolor: "divider",
702
703
  borderRadius: n,
703
704
  flexDirection: "row",
704
- height: 16,
705
+ height: r ? 20 : 16,
705
706
  width: "100%"
706
707
  },
707
708
  children: /* @__PURE__ */ e(
708
709
  A,
709
710
  {
710
711
  sx: {
711
- bgcolor: r,
712
+ alignItems: "center",
713
+ display: "flex",
714
+ py: 2,
715
+ px: 12,
716
+ bgcolor: i,
712
717
  borderRadius: n,
713
- height: 16,
714
- width: `${d}%`
715
- }
718
+ height: r ? 20 : 16,
719
+ width: `${g}%`
720
+ },
721
+ children: /* @__PURE__ */ e(f, { sx: { color: "primary.dark" }, variant: "caption", children: r })
716
722
  }
717
723
  )
718
724
  }
719
725
  ),
720
- /* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
721
- /* @__PURE__ */ e(b, { variant: "body2", children: l }),
722
- /* @__PURE__ */ e(b, { variant: "body2", children: f })
726
+ !r && /* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
727
+ /* @__PURE__ */ e(f, { variant: "body2", children: h }),
728
+ /* @__PURE__ */ e(f, { variant: "body2", children: m })
723
729
  ] })
724
730
  ] })
725
- ] }) }), Se = Kt, Ie = ({
731
+ ] }), Se = Kt, Ie = ({
726
732
  title: t,
727
733
  description: n,
728
734
  callToAction: r,
@@ -740,7 +746,7 @@ const Et = ({ transaction: t, onClick: n }) => {
740
746
  pt: 4,
741
747
  pl: 8
742
748
  },
743
- children: /* @__PURE__ */ e(b, { bold: !0, variant: "body1", children: t })
749
+ children: /* @__PURE__ */ e(f, { bold: !0, variant: "body1", children: t })
744
750
  }
745
751
  ),
746
752
  /* @__PURE__ */ a(
@@ -17,8 +17,8 @@ import { endOfMonth as ue } from "date-fns/endOfMonth";
17
17
  import { parseISO as me } from "date-fns/parseISO";
18
18
  import J from "@mui/material/Button";
19
19
  import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
20
- import { T as V, u as fe, S as ge, a as Ce } from "./EmbeddedCard-B4U5fIbl.mjs";
21
- import { T as be } from "./TransactionDetails-B9rTYhMA.mjs";
20
+ import { T as V, u as fe, S as ge, a as Ce } from "./EmbeddedCard-xngm4vLT.mjs";
21
+ import { T as be } from "./TransactionDetails-KklNHa-s.mjs";
22
22
  import { addYears as j } from "date-fns/addYears";
23
23
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
24
24
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import b from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-DZ_6f0js.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-CvfRTf-j.mjs";
11
11
  import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
12
12
  import { R as y, F as N } from "./RepeatingTransaction-DF4vJn_v.mjs";
13
13
  import { A as m } from "./Analytics-0Xm_BjHU.mjs";
@@ -30,7 +30,7 @@ import Q from "@mui/material/ListItemAvatar";
30
30
  import z from "@mui/material/ListItemText";
31
31
  import { f as Le, D as we } from "./DateFormats-BMpMrZpW.mjs";
32
32
  import { BarChart as ot } from "@mui/x-charts";
33
- import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-B4U5fIbl.mjs";
33
+ import { b as it, T as st, u as oe, c as lt, d as ct, E as dt, C as ut } from "./EmbeddedCard-xngm4vLT.mjs";
34
34
  import X from "@mui/material/ListItemButton";
35
35
  import Z from "@mui/material/ListItemIcon";
36
36
  import { a as $e } from "./CategorySelectorDrawer-Dc9Widy9.mjs";
@@ -55,8 +55,8 @@ import e3 from "@mui/material/AlertTitle";
55
55
  import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
- import { T as a3 } from "../EmbeddedCard-B4U5fIbl.mjs";
59
- import { T as s3 } from "../TransactionDetails-B9rTYhMA.mjs";
58
+ import { T as a3 } from "../EmbeddedCard-xngm4vLT.mjs";
59
+ import { T as s3 } from "../TransactionDetails-KklNHa-s.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
62
62
  import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";
@@ -36,8 +36,8 @@ import { A as G } from "../Analytics-0Xm_BjHU.mjs";
36
36
  import Ee from "@mui/material/Tab";
37
37
  import et from "@mui/material/Tabs";
38
38
  import { e as tt } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
39
- import { T as Ae } from "../EmbeddedCard-B4U5fIbl.mjs";
40
- import { T as ot, c as nt } from "../TransactionDetails-B9rTYhMA.mjs";
39
+ import { T as Ae } from "../EmbeddedCard-xngm4vLT.mjs";
40
+ import { T as ot, c as nt } from "../TransactionDetails-KklNHa-s.mjs";
41
41
  import ve from "@mui/material/Card";
42
42
  import Te from "@mui/material/CardContent";
43
43
  import { S as Be } from "../StatusBar-BK_uYHAB.mjs";
@@ -46,7 +46,7 @@ import { u as at, b as rt } from "../CategorySelectorDrawer-Dc9Widy9.mjs";
46
46
  import je from "@mui/material/CardHeader";
47
47
  import { subDays as st } from "date-fns/subDays";
48
48
  import it from "@mui/material/IconButton";
49
- import { M as ct } from "../ManageIncome-DZ_6f0js.mjs";
49
+ import { M as ct } from "../ManageIncome-CvfRTf-j.mjs";
50
50
  import { u as ze } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
51
51
  import { W as lt } from "../WidgetContainer-D-pbSa7L.mjs";
52
52
  import { u as dt, g as ut, C as mt } from "../BudgetUtil-CLhRnCoX.mjs";
@@ -18,7 +18,7 @@ import { b as $ } from "../Localization-CPkpIwIx.mjs";
18
18
  import { M as Je } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
19
19
  import { E as Ze } from "../EmptyState-DHAkGsjk.mjs";
20
20
  import { u as Fe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
21
- import { R as et } from "../RecurringSettings-CJJndcMu.mjs";
21
+ import { R as et } from "../RecurringSettings-DJIUgK5A.mjs";
22
22
  import tt from "@mui/material/Tabs";
23
23
  import Ce from "@mui/material/Tab";
24
24
  import { getUnixTime as z } from "date-fns/getUnixTime";
@@ -36,7 +36,7 @@ import { alpha as it, keyframes as at } from "@mui/material/styles";
36
36
  import { DataGridPro as rt } from "@mui/x-data-grid-pro";
37
37
  import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
38
38
  import G from "@mui/material/Button";
39
- import { M as st, S as ct, i as lt, d as Se, c as dt } from "../ManageIncome-DZ_6f0js.mjs";
39
+ import { M as st, S as ct, i as lt, d as Se, c as dt } from "../ManageIncome-CvfRTf-j.mjs";
40
40
  import { D as Ge } from "../Drawer-Bbe4AMB1.mjs";
41
41
  import { subDays as Me } from "date-fns/subDays";
42
42
  import { endOfToday as mt } from "date-fns/endOfToday";
@@ -46,7 +46,7 @@ import { A as K } from "../Account-BiB1F8lL.mjs";
46
46
  import { formatISO as pt } from "date-fns/formatISO";
47
47
  import { fromUnixTime as De } from "date-fns/fromUnixTime";
48
48
  import { startOfMonth as ht } from "date-fns/startOfMonth";
49
- import { S as ft, a as gt } from "../EmbeddedCard-B4U5fIbl.mjs";
49
+ import { S as ft, a as gt } from "../EmbeddedCard-xngm4vLT.mjs";
50
50
  import { c as ve } from "../RecurringTransactions-BbZ6MQsX.mjs";
51
51
  import { h as bt } from "../DateUtil-wcYTmDRD.mjs";
52
52
  import { F as xt, R as Ae } from "../RepeatingTransaction-DF4vJn_v.mjs";
@@ -41,7 +41,7 @@ import { S as it, c as zn } from "../RecurringTransactions-BbZ6MQsX.mjs";
41
41
  import { A as He } from "../Account-BiB1F8lL.mjs";
42
42
  import { S as Gn } from "../StatusBar-BK_uYHAB.mjs";
43
43
  import { h as Mt } from "../DateUtil-wcYTmDRD.mjs";
44
- import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../EmbeddedCard-B4U5fIbl.mjs";
44
+ import { T as Hn, s as Nn, h as jn, S as Kn, a as Vn } from "../EmbeddedCard-xngm4vLT.mjs";
45
45
  import { f as Yn, D as Xn } from "../DateFormats-BMpMrZpW.mjs";
46
46
  import { T as de } from "../TabContentContainer-j01JYR_7.mjs";
47
47
  import qn from "@mui/material/useMediaQuery";
@@ -56,11 +56,11 @@ import { formatISO as oo } from "date-fns/formatISO";
56
56
  import { fromUnixTime as ro } from "date-fns/fromUnixTime";
57
57
  import { startOfToday as st } from "date-fns/startOfToday";
58
58
  import { subDays as ao } from "date-fns/subDays";
59
- import { c as io, d as ct, S as so, i as co } from "../ManageIncome-DZ_6f0js.mjs";
59
+ import { c as io, d as ct, S as so, i as co } from "../ManageIncome-CvfRTf-j.mjs";
60
60
  import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
61
61
  import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
62
62
  import { F as At, R as Ot } from "../RepeatingTransaction-DF4vJn_v.mjs";
63
- import { R as uo } from "../RecurringSettings-CJJndcMu.mjs";
63
+ import { R as uo } from "../RecurringSettings-DJIUgK5A.mjs";
64
64
  import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
65
65
  import { format as mo } from "date-fns/format";
66
66
  import go from "@mui/lab/Timeline";
@@ -3,12 +3,13 @@ interface StatusIndicatorProps {
3
3
  amount: string | React.ReactNode;
4
4
  borderRadius?: string;
5
5
  completeColor?: string;
6
+ count?: string;
6
7
  icon: React.ReactNode;
7
- label: string;
8
+ label: string | React.ReactNode;
8
9
  leftLabel?: string;
9
10
  percentComplete?: number;
10
11
  rightLabel?: string;
11
12
  sx?: SxProps;
12
13
  }
13
- declare const StatusIndicator: ({ amount, borderRadius, completeColor, icon, label, leftLabel, percentComplete, rightLabel, sx, }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const StatusIndicator: ({ amount, borderRadius, count, completeColor, icon, label, leftLabel, percentComplete, rightLabel, sx, }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export default StatusIndicator;
@@ -1,6 +1,6 @@
1
1
  import { B as $6 } from "../BeatStore-C6CAT-ce.mjs";
2
- import { e as T, B as Y1, b as Q1 } from "../EmbeddedCard-B4U5fIbl.mjs";
3
- import { f as t5, C as r5, E as i5 } from "../EmbeddedCard-B4U5fIbl.mjs";
2
+ import { e as T, B as Y1, b as Q1 } from "../EmbeddedCard-xngm4vLT.mjs";
3
+ import { f as t5, C as r5, E as i5 } from "../EmbeddedCard-xngm4vLT.mjs";
4
4
  import { jsx as t, jsxs as s, Fragment as O } from "react/jsx-runtime";
5
5
  import * as e from "react";
6
6
  import Z, { forwardRef as H, useRef as c1, useEffect as X1, useState as _, useLayoutEffect as D1 } from "react";
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
6
6
  import { startOfMonth as k } from "date-fns/startOfMonth";
7
7
  import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
- import { R as _e } from "../RecurringSettings-CJJndcMu.mjs";
10
- import { M as Yn } from "../RecurringSettings-CJJndcMu.mjs";
9
+ import { R as _e } from "../RecurringSettings-DJIUgK5A.mjs";
10
+ import { M as Yn } from "../RecurringSettings-DJIUgK5A.mjs";
11
11
  import { addMonths as He } from "date-fns/addMonths";
12
12
  import { subMonths as $e } from "date-fns/subMonths";
13
13
  import { isBefore as Be } from "date-fns/isBefore";
@@ -48,8 +48,8 @@ import { g as ye, d as dt } from "../RecurringTransactions-BbZ6MQsX.mjs";
48
48
  import ut from "@mui/material/ListItemAvatar";
49
49
  import mt from "@mui/material/ListItemButton";
50
50
  import pt from "@mui/material/ListItemText";
51
- import { b as gt } from "../ManageIncome-DZ_6f0js.mjs";
52
- import { c as qn, M as Zn, S as Xn } from "../ManageIncome-DZ_6f0js.mjs";
51
+ import { b as gt } from "../ManageIncome-CvfRTf-j.mjs";
52
+ import { c as qn, M as Zn, S as Xn } from "../ManageIncome-CvfRTf-j.mjs";
53
53
  import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
54
54
  import { D as ie } from "../Drawer-Bbe4AMB1.mjs";
55
55
  import O from "@mui/material/Box";
@@ -19,8 +19,8 @@ import { startOfToday as q } from "date-fns/startOfToday";
19
19
  import St from "@mui/material/Button";
20
20
  import { useTheme as Tt } from "@mui/material";
21
21
  import { e as Mt } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
22
- import { T as Dt } from "../EmbeddedCard-B4U5fIbl.mjs";
23
- import { T as xt } from "../TransactionDetails-B9rTYhMA.mjs";
22
+ import { T as Dt } from "../EmbeddedCard-xngm4vLT.mjs";
23
+ import { T as xt } from "../TransactionDetails-KklNHa-s.mjs";
24
24
  import vt from "@mui/material/Collapse";
25
25
  import wt from "@mui/material/Divider";
26
26
  import J from "@mui/material/List";
@@ -1,12 +1,12 @@
1
1
  import { T as wa } from "../TransactionApi-Ck5Ua-7F.mjs";
2
- import { C as Me, D as Re, M as Be, a as He, T as Pe } from "../TransactionDetails-B9rTYhMA.mjs";
3
- import { B as Da, b as Ia } from "../TransactionDetails-B9rTYhMA.mjs";
2
+ import { C as Me, D as Re, M as Be, a as He, T as Pe } from "../TransactionDetails-KklNHa-s.mjs";
3
+ import { B as Da, b as Ia } from "../TransactionDetails-KklNHa-s.mjs";
4
4
  import { e as $e } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
5
5
  import { O as Na } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
6
6
  import { S as Z, D as Ve } from "../TransactionStore-BUsgGRL1.mjs";
7
7
  import { T as Oa } from "../TransactionStore-BUsgGRL1.mjs";
8
- import { u as B, T as We } from "../EmbeddedCard-B4U5fIbl.mjs";
9
- import { a as La } from "../EmbeddedCard-B4U5fIbl.mjs";
8
+ import { u as B, T as We } from "../EmbeddedCard-xngm4vLT.mjs";
9
+ import { a as La } from "../EmbeddedCard-xngm4vLT.mjs";
10
10
  import { E as Ra } from "../ExportCsvAction-CHCmCCqf.mjs";
11
11
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
12
12
  import m from "react";
@@ -35,8 +35,8 @@ import { useGridApiContext as jt, useGridRootProps as Ut, DataGridPro as Xt } fr
35
35
  import Zt from "@mui/material/Badge";
36
36
  import Qt from "@mui/material/IconButton";
37
37
  import { A as v } from "../Analytics-0Xm_BjHU.mjs";
38
- import { T as ct } from "../EmbeddedCard-B4U5fIbl.mjs";
39
- import { T as dt } from "../TransactionDetails-B9rTYhMA.mjs";
38
+ import { T as ct } from "../EmbeddedCard-xngm4vLT.mjs";
39
+ import { T as dt } from "../TransactionDetails-KklNHa-s.mjs";
40
40
  import { D as Pe } from "../Drawer-Bbe4AMB1.mjs";
41
41
  import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
42
42
  import { L as Le } from "../Loader-D3rjKx72.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.0.15",
3
+ "version": "8.0.16",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",