@mx-cartographer/experiences 8.1.3 → 8.1.4

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.1.4] - 04-22-2026
2
+
3
+ - **FIXED** - Cash Flow widget | center read-only date range
4
+
1
5
  ## [8.1.3] - 04-22-2026
2
6
 
3
7
  - **ADDED** - widget_size_changed event when the widget container size changes.
@@ -21,8 +21,8 @@ import { endOfDay as xe } from "date-fns/endOfDay";
21
21
  import { endOfMonth as z } from "date-fns/endOfMonth";
22
22
  import { endOfToday as te } from "date-fns/endOfToday";
23
23
  import { endOfYear as De } from "date-fns/endOfYear";
24
- import { startOfMonth as ke } from "date-fns/startOfMonth";
25
- import { startOfToday as ye } from "date-fns/startOfToday";
24
+ import { startOfMonth as ye } from "date-fns/startOfMonth";
25
+ import { startOfToday as ke } from "date-fns/startOfToday";
26
26
  import { startOfYear as Te } from "date-fns/startOfYear";
27
27
  import { subMonths as K } from "date-fns/subMonths";
28
28
  import { subDays as ve } from "date-fns/subDays";
@@ -44,15 +44,15 @@ import we from "@mui/material/useMediaQuery";
44
44
  import { A as oe } from "./Analytics-CzGzz_sE.mjs";
45
45
  const Ie = (n) => {
46
46
  const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = le(n), i = we("(min-width:900px)"), _ = 24;
47
- let s = 48, k = 32, h = 0, c = "h1", R = !1;
47
+ let s = 48, y = 32, h = 0, c = "h1", R = !1;
48
48
  const o = a || m;
49
- r && !m ? (s = 24, k = 24, c = "h2") : o && (s = 8, k = 10, h = 10, c = "h3", R = !0);
49
+ r && !m ? (s = 24, y = 24, c = "h2") : o && (s = 8, y = 10, h = 10, c = "h3", R = !0);
50
50
  const A = {
51
51
  pb: o ? 12 : 0,
52
52
  ...o && {
53
53
  px: s,
54
54
  "& .mx-cmn-date-range-selector": { m: 0, width: "100%" },
55
- "& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex" },
55
+ "& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex", justifyContent: "center" },
56
56
  "& .MuiButtonGroup-root": { width: "100%" },
57
57
  "& .MuiButtonGroup-middleButton": { flex: 1 },
58
58
  "& .MuiToggleButtonGroup-root": { width: "100%", justifyContent: "center" }
@@ -63,7 +63,7 @@ const Ie = (n) => {
63
63
  containerSquareCorners: R,
64
64
  headerHeadingLevel: c,
65
65
  headerPaddingBottom: h,
66
- headerPaddingTop: k,
66
+ headerPaddingTop: y,
67
67
  headerPaddingX: s,
68
68
  iconSize: _,
69
69
  isCompact: o,
@@ -75,11 +75,11 @@ const Ie = (n) => {
75
75
  calendarActions: n,
76
76
  color: d = "primary",
77
77
  copy: a,
78
- range: m = [ke(ye()), z(te())],
78
+ range: m = [ye(ke()), z(te())],
79
79
  shouldShrinkToIcon: r = !0,
80
80
  variant: i = "outlined"
81
81
  }) => {
82
- const _ = Ye(), { isMobile: s } = le(), { announce: k, ariaLive: h } = Ae(), [c, R] = u.useState(m), [o, A] = u.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, N] = u.useState(c), [y, x] = u.useState(!1), [O, F] = u.useState(!0), [E, j] = u.useState(6), w = {
82
+ const _ = Ye(), { isMobile: s } = le(), { announce: y, ariaLive: h } = Ae(), [c, R] = u.useState(m), [o, A] = u.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, N] = u.useState(c), [k, x] = u.useState(!1), [O, F] = u.useState(!0), [E, j] = u.useState(6), w = {
83
83
  buttons: [
84
84
  { ariaLabel: "3 Months", label: "3M", value: 3 },
85
85
  { ariaLabel: "6 Months", label: "6M", value: 6 },
@@ -127,7 +127,7 @@ const Ie = (n) => {
127
127
  }, T = (t, l) => {
128
128
  t[1] = t[1] ?? t[0];
129
129
  const p = [t[0], t[1] ? xe(t[1]) : t[1]], f = P(p[0], S.MONTH_DAY_YEAR), b = P(p[1], S.MONTH_DAY_YEAR);
130
- N(p), A(l), k(`${a.dateRangePickerCopy}: ${f} - ${b}`);
130
+ N(p), A(l), y(`${a.dateRangePickerCopy}: ${f} - ${b}`);
131
131
  }, Y = (t) => {
132
132
  j(t);
133
133
  };
@@ -248,11 +248,11 @@ const Ie = (n) => {
248
248
  ]
249
249
  }
250
250
  ),
251
- y && s && /* @__PURE__ */ g(
251
+ k && s && /* @__PURE__ */ g(
252
252
  Ne,
253
253
  {
254
254
  ariaLabelClose: a.dateRangeCloseAria,
255
- isOpen: y,
255
+ isOpen: k,
256
256
  onClose: () => x(!1),
257
257
  onPrimaryAction: () => {
258
258
  L(), x(!1);
@@ -274,7 +274,7 @@ const Ie = (n) => {
274
274
  ]
275
275
  }
276
276
  ),
277
- y && !s && /* @__PURE__ */ g(
277
+ k && !s && /* @__PURE__ */ g(
278
278
  Be,
279
279
  {
280
280
  copy: { title: a.dateRangeEditTitle },
@@ -350,7 +350,7 @@ const Ie = (n) => {
350
350
  dateRange: i,
351
351
  dateRangeVariant: _,
352
352
  hasDivider: s = !1,
353
- onAccountsFilterClick: k,
353
+ onAccountsFilterClick: y,
354
354
  onBackClick: h,
355
355
  onMenuClick: c,
356
356
  showAccountFilter: R = !0,
@@ -358,7 +358,7 @@ const Ie = (n) => {
358
358
  sx: A = {},
359
359
  title: C = ""
360
360
  }) => {
361
- const [N, { height: y, width: x }] = ge(), { onEvent: O } = fe(), {
361
+ const [N, { height: k, width: x }] = ge(), { onEvent: O } = fe(), {
362
362
  actionsFlex: F,
363
363
  containerSquareCorners: E,
364
364
  headerHeadingLevel: j,
@@ -376,8 +376,8 @@ const Ie = (n) => {
376
376
  h && (h(), O(oe.WIDGET_BACK_CLICK));
377
377
  };
378
378
  if (u.useEffect(() => {
379
- O(oe.WIDGET_SIZE_CHANGED, { height: y, width: x });
380
- }, [y]), !p)
379
+ O(oe.WIDGET_SIZE_CHANGED, { height: k, width: x });
380
+ }, [k]), !p)
381
381
  return /* @__PURE__ */ e(Oe, {});
382
382
  const M = () => c && T && !t ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(D, { name: "menu_open", size: L, sx: { transform: "rotate(180deg)" } }) }) : h ? /* @__PURE__ */ e(
383
383
  $,
@@ -434,7 +434,7 @@ const Ie = (n) => {
434
434
  {
435
435
  allowedAccountTypes: d,
436
436
  isDesktop: Y,
437
- onAccountFilterClick: k
437
+ onAccountFilterClick: y
438
438
  }
439
439
  ),
440
440
  n?.map((q) => {
@@ -459,7 +459,7 @@ const Ie = (n) => {
459
459
  ),
460
460
  T && (o || X),
461
461
  T && s && /* @__PURE__ */ e(ce, {}),
462
- /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(_e, { availableHeight: y, availableWidth: x, children: m }) })
462
+ /* @__PURE__ */ e(me, { children: /* @__PURE__ */ e(_e, { availableHeight: k, availableWidth: x, children: m }) })
463
463
  ] })
464
464
  }
465
465
  );
@@ -63,7 +63,7 @@ import { C as l3 } from "../ConnectionsDrawer-DxpSlJN7.mjs";
63
63
  import { u as H1 } from "../useScreenSize-CeFhWTt_.mjs";
64
64
  import { u as n1 } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
65
65
  import { L as o1 } from "../Loader-CxeBwuPG.mjs";
66
- import { W as r3 } from "../WidgetContainer-CTgBAae_.mjs";
66
+ import { W as r3 } from "../WidgetContainer-_Fzy--dt.mjs";
67
67
  import { M as v1 } from "../MiniWidgetContainer-CmTGSUL5.mjs";
68
68
  import { A as l2 } from "../AccountStore-B3S_p5Qa.mjs";
69
69
  const d3 = (t, o) => {
@@ -48,7 +48,7 @@ import { subDays as st } from "date-fns/subDays";
48
48
  import it from "@mui/material/IconButton";
49
49
  import { M as ct } from "../ManageIncome-Deq2AZEM.mjs";
50
50
  import { u as ze } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
51
- import { W as lt } from "../WidgetContainer-CTgBAae_.mjs";
51
+ import { W as lt } from "../WidgetContainer-_Fzy--dt.mjs";
52
52
  import { u as dt, l as ut, d as mt } from "../BudgetUtil-DalEN9--.mjs";
53
53
  import { M as gt } from "../MiniWidgetContainer-CmTGSUL5.mjs";
54
54
  import { b as we } from "../CategoryUtil-BJOHgYKS.mjs";
@@ -40,7 +40,7 @@ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-Deq
40
40
  import { D as He } from "../Drawer-XPaLYjiO.mjs";
41
41
  import { subDays as We } from "date-fns/subDays";
42
42
  import { endOfToday as dt } from "date-fns/endOfToday";
43
- import { W as mt } from "../WidgetContainer-CTgBAae_.mjs";
43
+ import { W as mt } from "../WidgetContainer-_Fzy--dt.mjs";
44
44
  import { A as X } from "../Account-CMjOp7S2.mjs";
45
45
  import { A as Se } from "../Analytics-CzGzz_sE.mjs";
46
46
  import { formatISO as ut } from "date-fns/formatISO";
@@ -17,6 +17,7 @@ export declare const useWidgetHeaderStyles: (availableWidth?: number) => {
17
17
  } | undefined;
18
18
  '& .mx-cmn-date-range-selector > .MuiBox-root'?: {
19
19
  display: string;
20
+ justifyContent: string;
20
21
  } | undefined;
21
22
  '& .MuiButtonGroup-root'?: {
22
23
  width: string;
@@ -2,7 +2,7 @@ import { f as G, a as $, b as w } from "../BudgetUtil-DalEN9--.mjs";
2
2
  import { C as At, c as Tt, d as Et, g as Bt, e as vt, h as kt, j as Mt, k as It } from "../BudgetUtil-DalEN9--.mjs";
3
3
  import { C as Lt } from "../CurrencyInput-CSJ3zMgE.mjs";
4
4
  import { D as Pt, S as Ot } from "../RecurringTransactions-DCt94TN4.mjs";
5
- import { D as Ft, W as Gt, u as $t } from "../WidgetContainer-CTgBAae_.mjs";
5
+ import { D as Ft, W as Gt, u as $t } from "../WidgetContainer-_Fzy--dt.mjs";
6
6
  import { D as Wt } from "../Dialog-iLlBR8TG.mjs";
7
7
  import { D as Qt } from "../Donut-D7ekbgf5.mjs";
8
8
  import { D as Vt } from "../Drawer-XPaLYjiO.mjs";
@@ -46,7 +46,7 @@ import ct from "@mui/material/ListItem";
46
46
  import dt from "@mui/material/Popover";
47
47
  import { u as pt } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
48
48
  import { L as ht } from "../Loader-CxeBwuPG.mjs";
49
- import { W as mt } from "../WidgetContainer-CTgBAae_.mjs";
49
+ import { W as mt } from "../WidgetContainer-_Fzy--dt.mjs";
50
50
  import { E as ut } from "../EmptyState-DHAkGsjk.mjs";
51
51
  import { C as bt } from "../ConnectDrawer-5BpU4IQU.mjs";
52
52
  const _t = (r, o = 0, n = 0) => {
@@ -73,7 +73,7 @@ import vo from "@mui/material/Accordion";
73
73
  import wo from "@mui/material/AccordionDetails";
74
74
  import ko from "@mui/material/AccordionSummary";
75
75
  import { u as Mo } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
76
- import { W as Do } from "../WidgetContainer-CTgBAae_.mjs";
76
+ import { W as Do } from "../WidgetContainer-_Fzy--dt.mjs";
77
77
  const Io = ({
78
78
  dialScoreData: t,
79
79
  dataIndex: o,
@@ -52,7 +52,7 @@ import { D as _t } from "../Dialog-iLlBR8TG.mjs";
52
52
  import { u as Me } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
53
53
  import { A as H } from "../Analytics-CzGzz_sE.mjs";
54
54
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
55
- import { W as pt } from "../WidgetContainer-CTgBAae_.mjs";
55
+ import { W as pt } from "../WidgetContainer-_Fzy--dt.mjs";
56
56
  import { E as ht } from "../EmptyState-DHAkGsjk.mjs";
57
57
  import bt from "@mui/material/Stack/Stack";
58
58
  import ft from "@mui/material/Box";
@@ -4,7 +4,7 @@ import { H as s } from "../Help-BFlcaOO_.mjs";
4
4
  import { b as a } from "../hooks-HwStH7q_.mjs";
5
5
  import { u as p } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
6
6
  import { L as d } from "../Loader-CxeBwuPG.mjs";
7
- import { W as f } from "../WidgetContainer-CTgBAae_.mjs";
7
+ import { W as f } from "../WidgetContainer-_Fzy--dt.mjs";
8
8
  const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
9
9
  const { isInitialized: o } = a();
10
10
  return p({
@@ -39,7 +39,7 @@ import { DataGridPro as Pe } from "@mui/x-data-grid-pro";
39
39
  import { Stack as qe } from "@mui/material";
40
40
  import { L as De } from "../Loader-CxeBwuPG.mjs";
41
41
  import { u as Ke } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
42
- import { W as Ye } from "../WidgetContainer-CTgBAae_.mjs";
42
+ import { W as Ye } from "../WidgetContainer-_Fzy--dt.mjs";
43
43
  import { A as Qe } from "../Account-CMjOp7S2.mjs";
44
44
  import { E as Je } from "../EmptyState-DHAkGsjk.mjs";
45
45
  const me = ({ sx: t = {} }) => {
@@ -35,7 +35,7 @@ import { u as nt } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
35
35
  import { L as ot } from "../Loader-CxeBwuPG.mjs";
36
36
  import { M as gt } from "../MicroWidgetContainer-CEcwdfti.mjs";
37
37
  import { C as yt } from "../ConnectionsDrawer-DxpSlJN7.mjs";
38
- import { W as Ct } from "../WidgetContainer-CTgBAae_.mjs";
38
+ import { W as Ct } from "../WidgetContainer-_Fzy--dt.mjs";
39
39
  import { E as bt } from "../EmptyState-DHAkGsjk.mjs";
40
40
  const _t = () => {
41
41
  const { isMobile: e } = Y(), { availableWidth: s } = st(), i = z(), {
@@ -59,7 +59,7 @@ import { S as Le } from "../StatusBar-CPfSXe80.mjs";
59
59
  import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
60
60
  import { u as oe } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
61
61
  import { L as ae } from "../Loader-CxeBwuPG.mjs";
62
- import { W as ht } from "../WidgetContainer-CTgBAae_.mjs";
62
+ import { W as ht } from "../WidgetContainer-_Fzy--dt.mjs";
63
63
  import { M as ft } from "../MiniWidgetContainer-CmTGSUL5.mjs";
64
64
  import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
65
65
  import { M as bt } from "../MicroWidgetContainer-CEcwdfti.mjs";
@@ -43,7 +43,7 @@ import Be from "@mui/material/ListItemText";
43
43
  import { D as He } from "../Drawer-XPaLYjiO.mjs";
44
44
  import { u as ne } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
45
45
  import { H as Oe } from "../Help-BFlcaOO_.mjs";
46
- import { W as q } from "../WidgetContainer-CTgBAae_.mjs";
46
+ import { W as q } from "../WidgetContainer-_Fzy--dt.mjs";
47
47
  const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
48
48
  const i = xe(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = H(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = we(), [p, k] = m.useState({
49
49
  first_name: d.first_name,
@@ -31,7 +31,7 @@ import { D as Z } from "../Drawer-XPaLYjiO.mjs";
31
31
  import { b as w } from "../Category-Ccoew_sA.mjs";
32
32
  import { parseISO as tt } from "date-fns/parseISO";
33
33
  import { A as et } from "../Analytics-CzGzz_sE.mjs";
34
- import { W as It } from "../WidgetContainer-CTgBAae_.mjs";
34
+ import { W as It } from "../WidgetContainer-_Fzy--dt.mjs";
35
35
  const $ = ({ amount: n, label: c, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: c }),
37
37
  /* @__PURE__ */ t(T, { variant: "caption", children: N(n, o === "mini" ? "0,0" : "0,0.00") })
@@ -41,7 +41,7 @@ import { u as mt } from "../useAriaLive-MkYebyUR.mjs";
41
41
  import { S as _t } from "../SkeletonLoader-BaNboJjD.mjs";
42
42
  import { u as pt } from "../useScreenSize-CeFhWTt_.mjs";
43
43
  import { u as gt } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
44
- import { W as ht } from "../WidgetContainer-CTgBAae_.mjs";
44
+ import { W as ht } from "../WidgetContainer-_Fzy--dt.mjs";
45
45
  import { S as ft } from "../SearchBox-CwDgvWVJ.mjs";
46
46
  import { D as te } from "../Drawer-XPaLYjiO.mjs";
47
47
  const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
@@ -40,7 +40,7 @@ import { T as dt } from "../TransactionDetails-DLnK244l.mjs";
40
40
  import { D as Pe } from "../Drawer-XPaLYjiO.mjs";
41
41
  import { u as Ie } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
42
42
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
43
- import { W as ut } from "../WidgetContainer-CTgBAae_.mjs";
43
+ import { W as ut } from "../WidgetContainer-_Fzy--dt.mjs";
44
44
  import { L as Ve } from "../LineChart-jJVBE8V8.mjs";
45
45
  import { M as Jt } from "../MiniWidgetContainer-CmTGSUL5.mjs";
46
46
  import { subMonths as eo } from "date-fns";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "8.1.3",
3
+ "version": "8.1.4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",