@mx-cartographer/experiences 7.13.1 → 7.13.2

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
+ ## [7.13.2] - 03-25-2026
2
+
3
+ - **UPDATED** - Trends Widget to fix ADA issues with lists
4
+
1
5
  ## [7.13.1] - 03-25-2026
2
6
 
3
7
  - **ADDED** - New `icon_type` for InstitutionLogo.
@@ -1,4 +1,4 @@
1
- import { jsxs as i, jsx as e, Fragment as I } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as e, Fragment as E } from "react/jsx-runtime";
2
2
  import U from "@mui/material/Box";
3
3
  import { useTheme as N } from "@mui/material/styles";
4
4
  import { BarPlot as yt } from "@mui/x-charts/BarChart";
@@ -36,16 +36,16 @@ const B = {
36
36
  function Z(t) {
37
37
  return _[t % _.length];
38
38
  }
39
- const Pt = ({
39
+ const $t = ({
40
40
  label: t,
41
41
  customLegendVariant: r
42
42
  }) => {
43
43
  const l = r || "body2";
44
- return typeof t == "string" ? /* @__PURE__ */ e(s, { variant: l, children: t }) : typeof t == "object" && t.amount !== void 0 && t.label ? /* @__PURE__ */ i(I, { children: [
44
+ return typeof t == "string" ? /* @__PURE__ */ e(s, { variant: l, children: t }) : typeof t == "object" && t.amount !== void 0 && t.label ? /* @__PURE__ */ i(E, { children: [
45
45
  /* @__PURE__ */ e(s, { variant: l, children: t.label }),
46
46
  /* @__PURE__ */ e(s, { bold: !0, sx: { marginLeft: 8 }, variant: l, children: p(t.amount, "0,0") })
47
47
  ] }) : null;
48
- }, Et = ({
48
+ }, Pt = ({
49
49
  average: t,
50
50
  customLegendVariant: r,
51
51
  customLegendBoxSx: l,
@@ -94,7 +94,7 @@ const Pt = ({
94
94
  )
95
95
  }
96
96
  ),
97
- /* @__PURE__ */ e(Pt, { customLegendVariant: r, label: d })
97
+ /* @__PURE__ */ e($t, { customLegendVariant: r, label: d })
98
98
  ]
99
99
  },
100
100
  u
@@ -109,7 +109,7 @@ const Pt = ({
109
109
  /* @__PURE__ */ e(s, { bold: !0, variant: c, children: f ? p(t, f) : t })
110
110
  ] })
111
111
  ] });
112
- }, It = At(Et), $t = (t) => /* @__PURE__ */ i(I, { children: [
112
+ }, Et = At(Pt), It = (t) => /* @__PURE__ */ i(E, { children: [
113
113
  /* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
114
114
  /* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
115
115
  "path",
@@ -128,8 +128,8 @@ const Pt = ({
128
128
  ) })
129
129
  ] }), Wt = (t) => {
130
130
  const r = N(), l = t.showLabel, o = t.style, L = o?.markLabelStyles, x = Number(t.x), h = Number(t.y), f = t.handlers?.onMarkClick, m = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, a = Tt(r.breakpoints.up("sm")), u = t.valueFormatterString ? p(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), d = a ? r.typography.body2?.fontSize : r.typography.caption?.fontSize, A = 30, D = 24, T = x - A / 2, R = h - 30;
131
- return /* @__PURE__ */ i(I, { children: [
132
- l && /* @__PURE__ */ i(I, { children: [
131
+ return /* @__PURE__ */ i(E, { children: [
132
+ l && /* @__PURE__ */ i(E, { children: [
133
133
  t.labelBackgroundColor && /* @__PURE__ */ e(
134
134
  "rect",
135
135
  {
@@ -164,8 +164,8 @@ const Pt = ({
164
164
  cursor: f ? "pointer" : "unset",
165
165
  d: B[t.shape ?? "circle"],
166
166
  height: "20px",
167
- onClick: ($) => {
168
- f?.($, t.dataIndex);
167
+ onClick: (I) => {
168
+ f?.(I, t.dataIndex);
169
169
  },
170
170
  onMouseEnter: () => {
171
171
  m?.(t.dataIndex);
@@ -314,7 +314,7 @@ function jt({
314
314
  /* @__PURE__ */ e(s, { bold: !0, variant: "body1", children: p(c.data[m], o) })
315
315
  ]
316
316
  },
317
- c.id
317
+ `${c.id}-${a}`
318
318
  ))
319
319
  ]
320
320
  }
@@ -338,7 +338,7 @@ const ne = ({
338
338
  isGraphClippingXAxis: D = !1,
339
339
  labels: T,
340
340
  labelBackgroundColor: R,
341
- labelFontColor: $,
341
+ labelFontColor: I,
342
342
  labelFontSize: X,
343
343
  margin: Y,
344
344
  markHandlers: K,
@@ -365,7 +365,7 @@ const ne = ({
365
365
  width: ht,
366
366
  xAxisScaleType: mt
367
367
  }) => {
368
- const y = N(), ut = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = H || Math.round(w.reduce((n, M) => M + n, 0) / w.length), C = Math.floor(Math.min(...w) / 100) * 100, v = Math.ceil(Math.max(...w) / 100) * 100, P = d.map((n, M) => ({
368
+ const y = N(), ut = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = H || Math.round(w.reduce((n, M) => M + n, 0) / w.length), C = Math.floor(Math.min(...w) / 100) * 100, v = Math.ceil(Math.max(...w) / 100) * 100, $ = d.map((n, M) => ({
369
369
  type: j ? "bar" : "line",
370
370
  curve: f,
371
371
  color: j ? y.palette.chart?.chart6 : h[M] ?? y.palette.primary.main,
@@ -384,16 +384,16 @@ const ne = ({
384
384
  },
385
385
  ...Y
386
386
  };
387
- let S = V ?? C, E = J ?? v;
387
+ let S = V ?? C, P = J ?? v;
388
388
  if (o === "networthChart") {
389
389
  const n = v - C, M = n < v * 0.05 ? 0.25 : 0.2, g = Math.max(n * M, v * 0.015);
390
- S = C - g < 0 ? C : C - g, E = v + g;
390
+ S = C - g < 0 ? C : C - g, P = v + g;
391
391
  }
392
392
  const xt = () => {
393
393
  if (o === "creditOverTime")
394
394
  return O(S, 850, 5);
395
395
  if (o === "networthChart")
396
- return O(S, E, 5);
396
+ return O(S, P, 5);
397
397
  };
398
398
  return /* @__PURE__ */ i(
399
399
  U,
@@ -419,7 +419,7 @@ const ne = ({
419
419
  {
420
420
  height: A,
421
421
  margin: ft,
422
- series: P,
422
+ series: $,
423
423
  sx: {
424
424
  "& .MuiBarLabel-root": {
425
425
  fontSize: 10,
@@ -441,11 +441,11 @@ const ne = ({
441
441
  {
442
442
  tickInterval: xt(),
443
443
  min: D ? -22 : S,
444
- max: E || 100,
445
- colorMap: G && P.length < 2 ? {
444
+ max: P || 100,
445
+ colorMap: G && $.length < 2 ? {
446
446
  type: "continuous",
447
447
  min: S,
448
- max: E,
448
+ max: P,
449
449
  color: [
450
450
  y.palette.background.paper,
451
451
  h[0] ?? y.palette.primary.main
@@ -490,7 +490,7 @@ const ne = ({
490
490
  onItemClick: W,
491
491
  slots: {
492
492
  line: (n) => /* @__PURE__ */ e(
493
- $t,
493
+ It,
494
494
  {
495
495
  ...n,
496
496
  lineColor: t ?? n.ownerState.color ?? y.palette.primary.main
@@ -509,7 +509,7 @@ const ne = ({
509
509
  {
510
510
  handlers: K,
511
511
  labelBackgroundColor: R,
512
- labelFontColor: $,
512
+ labelFontColor: I,
513
513
  labelFontSize: X,
514
514
  showLabel: rt,
515
515
  showMark: nt || n.dataIndex === d[0].length - 1,
@@ -575,7 +575,7 @@ const ne = ({
575
575
  {
576
576
  customLabels: u,
577
577
  labels: T,
578
- series: P,
578
+ series: $,
579
579
  valueFormatterString: b
580
580
  }
581
581
  ) })
@@ -583,13 +583,13 @@ const ne = ({
583
583
  }
584
584
  ),
585
585
  et && /* @__PURE__ */ e(
586
- It,
586
+ Et,
587
587
  {
588
588
  average: q ? F : void 0,
589
589
  customLegendBoxSx: a,
590
590
  customLegendVariant: m,
591
591
  labels: T,
592
- series: P,
592
+ series: $,
593
593
  style: {
594
594
  position: "absolute",
595
595
  top: 16,
@@ -18,7 +18,7 @@ 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
20
  import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CIKUOoN_.mjs";
21
- import { T as be } from "./TransactionDetails-BpcWeXNU.mjs";
21
+ import { T as be } from "./TransactionDetails-CBrqmEw1.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-QvqN555q.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-6rzdF0hn.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 "./RecurringTransactions-BOzBqfdg.mjs";
13
13
  import { A as m } from "./Analytics-BYItVAe-.mjs";