@mx-cartographer/experiences 9.0.1 → 9.0.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
+ ## [9.0.2] - 05-18-2026
2
+
3
+ - **UPDATED** - Widget size changed event to return content size instead of container size
4
+
1
5
  ## [9.0.1] - 05-15-2026
2
6
 
3
7
  - **FIXED** - Bug Fixed - Edit Budget Dialog was cutting out of the frame for smaller devices - Bug Fixed
@@ -1,56 +1,56 @@
1
- import { jsxs as g, jsx as e } from "react/jsx-runtime";
2
- import u from "react";
3
- import { observer as ne } from "mobx-react-lite";
4
- import H from "@mui/material/Button";
5
- import de from "@mui/material/Card";
6
- import me from "@mui/material/CardContent";
7
- import ce from "@mui/material/Divider";
1
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
+ import p from "react";
3
+ import { observer as ie } from "mobx-react-lite";
4
+ import z from "@mui/material/Button";
5
+ import pe from "@mui/material/Card";
6
+ import he from "@mui/material/CardContent";
7
+ import ge from "@mui/material/Divider";
8
8
  import $ from "@mui/material/IconButton";
9
- import ue from "@mui/material/Paper";
10
- import B from "@mui/material/Stack";
11
- import { ChevronLeft as pe } from "@mxenabled/mx-icons";
12
- import { Icon as D, Text as W, DateRangePicker as Z } from "@mxenabled/mxui";
13
- import { u as ge } from "./useDimensions-CeDR9V8N.mjs";
14
- import { G as he } from "./GlobalAccountFilter-7Cg2-9A5.mjs";
15
- import { b as ie, u as se, g as fe, a as be, W as _e } from "./hooks-BaO_gOI6.mjs";
16
- import { addMonths as J } from "date-fns/addMonths";
17
- import { addDays as Re } from "date-fns/addDays";
18
- import { addYears as ee } from "date-fns/addYears";
19
- import { differenceInCalendarDays as Ce } from "date-fns/differenceInCalendarDays";
20
- import { endOfDay as xe } from "date-fns/endOfDay";
21
- import { endOfMonth as z } from "date-fns/endOfMonth";
22
- import { endOfToday as te } from "date-fns/endOfToday";
23
- import { endOfYear as De } from "date-fns/endOfYear";
24
- import { startOfMonth as ye } from "date-fns/startOfMonth";
25
- import { startOfToday as ke } from "date-fns/startOfToday";
26
- import { startOfYear as Te } from "date-fns/startOfYear";
9
+ import fe from "@mui/material/Paper";
10
+ import Y from "@mui/material/Stack";
11
+ import { ChevronLeft as be } from "@mxenabled/mx-icons";
12
+ import { Icon as x, Text as F, DateRangePicker as Z } from "@mxenabled/mxui";
13
+ import { u as J } from "./useDimensions-CeDR9V8N.mjs";
14
+ import { G as _e } from "./GlobalAccountFilter-7Cg2-9A5.mjs";
15
+ import { b as se, u as le, g as Re, a as Ce, W as xe } from "./hooks-BaO_gOI6.mjs";
16
+ import { addMonths as ee } from "date-fns/addMonths";
17
+ import { addDays as De } from "date-fns/addDays";
18
+ import { addYears as te } from "date-fns/addYears";
19
+ import { differenceInCalendarDays as ye } from "date-fns/differenceInCalendarDays";
20
+ import { endOfDay as ke } from "date-fns/endOfDay";
21
+ import { endOfMonth as W } from "date-fns/endOfMonth";
22
+ import { endOfToday as ae } from "date-fns/endOfToday";
23
+ import { endOfYear as Te } from "date-fns/endOfYear";
24
+ import { startOfMonth as ve } from "date-fns/startOfMonth";
25
+ import { startOfToday as Me } from "date-fns/startOfToday";
26
+ import { startOfYear as Pe } from "date-fns/startOfYear";
27
27
  import { subMonths as K } from "date-fns/subMonths";
28
- import { subDays as ve } from "date-fns/subDays";
29
- import { subYears as ae } from "date-fns/subYears";
30
- import re from "@mui/material/Box";
31
- import Me from "@mui/material/ButtonGroup";
32
- import Pe from "@mui/material/Tab";
33
- import Se from "@mui/material/Tabs";
34
- import Ee from "@mui/material/ToggleButton";
35
- import Ye from "@mui/material/ToggleButtonGroup";
36
- import { useTheme as Le } from "@mui/material/styles";
37
- import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
38
- import { D as Be } from "./Dialog-Bvd2n8hz.mjs";
39
- import { D as we } from "./Drawer-BXqqBMxg.mjs";
40
- import { u as le } from "./useScreenSize-mWpmnh5w.mjs";
41
- import { f as P, D as S } from "./DateFormats-HudZ3Bjs.mjs";
42
- import { L as Ne } from "./Loader-CxeBwuPG.mjs";
43
- import Oe from "@mui/material/useMediaQuery";
44
- import { A as oe } from "./Analytics-CzGzz_sE.mjs";
45
- const Ie = (n) => {
46
- const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = le(n), i = Oe("(min-width:900px)"), _ = 24;
47
- let s = 48, y = 32, h = 0, c = "h1", R = !1;
28
+ import { subDays as Se } from "date-fns/subDays";
29
+ import { subYears as re } from "date-fns/subYears";
30
+ import oe from "@mui/material/Box";
31
+ import Ee from "@mui/material/ButtonGroup";
32
+ import Ye from "@mui/material/Tab";
33
+ import Le from "@mui/material/Tabs";
34
+ import Ae from "@mui/material/ToggleButton";
35
+ import we from "@mui/material/ToggleButtonGroup";
36
+ import { useTheme as Be } from "@mui/material/styles";
37
+ import { u as Ne } from "./useAriaLive-MkYebyUR.mjs";
38
+ import { D as Oe } from "./Dialog-Bvd2n8hz.mjs";
39
+ import { D as Ie } from "./Drawer-BXqqBMxg.mjs";
40
+ import { u as de } from "./useScreenSize-mWpmnh5w.mjs";
41
+ import { f as M, D as P } from "./DateFormats-HudZ3Bjs.mjs";
42
+ import { L as Ge } from "./Loader-CxeBwuPG.mjs";
43
+ import He from "@mui/material/useMediaQuery";
44
+ import { A as ne } from "./Analytics-CzGzz_sE.mjs";
45
+ const We = (n) => {
46
+ const { isDesktop: d, isMobile: a, isSmallTablet: m, isTablet: r } = de(n), s = He("(min-width:900px)"), _ = 24;
47
+ let l = 48, D = 32, g = 0, c = "h1", R = !1;
48
48
  const o = a || m;
49
- r && !m ? (s = 24, y = 24, c = "h2") : o && (s = 8, y = 10, h = 10, c = "h3", R = !0);
50
- const A = {
49
+ r && !m ? (l = 24, D = 24, c = "h2") : o && (l = 8, D = 10, g = 10, c = "h3", R = !0);
50
+ const S = {
51
51
  pb: o ? 12 : 0,
52
52
  ...o && {
53
- px: s,
53
+ px: l,
54
54
  "& .mx-cmn-date-range-selector": { m: 0, width: "100%" },
55
55
  "& .mx-cmn-date-range-selector > .MuiBox-root": { display: "flex", justifyContent: "center" },
56
56
  "& .MuiButtonGroup-root": { width: "100%" },
@@ -62,24 +62,24 @@ const Ie = (n) => {
62
62
  actionsFlex: o ? 0 : 1,
63
63
  containerSquareCorners: R,
64
64
  headerHeadingLevel: c,
65
- headerPaddingBottom: h,
66
- headerPaddingTop: y,
67
- headerPaddingX: s,
65
+ headerPaddingBottom: g,
66
+ headerPaddingTop: D,
67
+ headerPaddingX: l,
68
68
  iconSize: _,
69
69
  isCompact: o,
70
70
  isDesktop: d,
71
- isViewportAbove900: i,
72
- slotSx: A
71
+ isViewportAbove900: s,
72
+ slotSx: S
73
73
  };
74
- }, Ge = ({
74
+ }, ze = ({
75
75
  calendarActions: n,
76
76
  color: d = "primary",
77
77
  copy: a,
78
- range: m = [ye(ke()), z(te())],
78
+ range: m = [ve(Me()), W(ae())],
79
79
  shouldShrinkToIcon: r = !0,
80
- variant: i = "outlined"
80
+ variant: s = "outlined"
81
81
  }) => {
82
- const _ = Le(), { isMobile: s } = le(), { announce: y, ariaLive: h } = Ae(), [c, R] = u.useState(m), [o, A] = u.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, w] = u.useState(c), [k, x] = u.useState(!1), [N, F] = u.useState(!0), [E, j] = u.useState(6), O = {
82
+ const _ = Be(), { isMobile: l } = de(), { announce: D, ariaLive: g } = Ne(), [c, R] = p.useState(m), [o, S] = p.useState(a.dateRangePickerCopy.dateRangeThisMonth), [C, L] = p.useState(c), [E, y] = p.useState(!1), [j, A] = p.useState(!0), [k, w] = p.useState(6), B = {
83
83
  buttons: [
84
84
  { ariaLabel: "3 Months", label: "3M", value: 3 },
85
85
  { ariaLabel: "6 Months", label: "6M", value: 6 },
@@ -93,47 +93,47 @@ const Ie = (n) => {
93
93
  { label: "1 Year", value: 12 }
94
94
  ]
95
95
  };
96
- u.useEffect(() => {
97
- R(m), w(m);
98
- }, [m]), u.useEffect(() => {
99
- (i === "timeframebuttons" || i === "timeframetabs") && n.onRangeChanged(V());
100
- }, [E]);
96
+ p.useEffect(() => {
97
+ R(m), L(m);
98
+ }, [m]), p.useEffect(() => {
99
+ (s === "timeframebuttons" || s === "timeframetabs") && n.onRangeChanged(V());
100
+ }, [k]);
101
101
  const V = () => {
102
- const t = z(te());
103
- return [z(K(t, E)), t];
104
- }, I = (t) => {
105
- const [l, p] = c, f = t === "previous";
102
+ const t = W(ae());
103
+ return [W(K(t, k)), t];
104
+ }, N = (t) => {
105
+ const [i, u] = c, f = t === "previous";
106
106
  let b;
107
107
  if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
108
108
  b = [
109
- f ? K(l, 1) : J(l, 1),
110
- z(f ? K(p, 1) : J(p, 1))
109
+ f ? K(i, 1) : ee(i, 1),
110
+ W(f ? K(u, 1) : ee(u, 1))
111
111
  ];
112
112
  else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
113
- const v = Te(l), M = De(l);
113
+ const T = Pe(i), v = Te(i);
114
114
  b = [
115
- f ? ae(v, 1) : ee(v, 1),
116
- f ? ae(M, 1) : ee(M, 1)
115
+ f ? re(T, 1) : te(T, 1),
116
+ f ? re(v, 1) : te(v, 1)
117
117
  ];
118
118
  } else {
119
- const v = Ce(p, l), M = f ? ve : Re;
120
- b = [M(l, v), M(p, v)];
119
+ const T = ye(u, i), v = f ? Se : De;
120
+ b = [v(i, T), v(u, T)];
121
121
  }
122
122
  R(b), n.onRangeChanged(b);
123
- }, Y = () => {
124
- R(C), F(
123
+ }, O = () => {
124
+ R(C), A(
125
125
  o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
126
126
  ), n.onRangeChanged(C);
127
- }, T = (t, l) => {
127
+ }, I = (t, i) => {
128
128
  t[1] = t[1] ?? t[0];
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
- w(p), A(l), y(`${a.dateRangePickerCopy}: ${f} - ${b}`);
131
- }, L = (t) => {
132
- j(t);
129
+ const u = [t[0], t[1] ? ke(t[1]) : t[1]], f = M(u[0], P.MONTH_DAY_YEAR), b = M(u[1], P.MONTH_DAY_YEAR);
130
+ L(u), S(i), D(`${a.dateRangePickerCopy}: ${f} - ${b}`);
131
+ }, G = (t) => {
132
+ w(t);
133
133
  };
134
- return /* @__PURE__ */ g(re, { className: "mx-cmn-date-range-selector", m: 4, children: [
135
- /* @__PURE__ */ g(
136
- re,
134
+ return /* @__PURE__ */ h(oe, { className: "mx-cmn-date-range-selector", m: 4, children: [
135
+ /* @__PURE__ */ h(
136
+ oe,
137
137
  {
138
138
  sx: {
139
139
  [_.breakpoints.down("sm")]: {
@@ -143,81 +143,81 @@ const Ie = (n) => {
143
143
  [_.breakpoints.up("sm")]: { display: "inline-flex" }
144
144
  },
145
145
  children: [
146
- i === "readonly" && /* @__PURE__ */ g(B, { alignItems: "center", direction: "row", gap: 8, children: [
147
- /* @__PURE__ */ e(D, { name: "calendar_month", size: 24 }),
148
- /* @__PURE__ */ e(W, { bold: !0, children: P(C[0], S.MONTH_DAY) }),
149
- /* @__PURE__ */ e(D, { name: "remove" }),
150
- /* @__PURE__ */ e(W, { bold: !0, children: P(C[1], S.MONTH_DAY_YEAR) })
146
+ s === "readonly" && /* @__PURE__ */ h(Y, { alignItems: "center", direction: "row", gap: 8, children: [
147
+ /* @__PURE__ */ e(x, { name: "calendar_month", size: 24 }),
148
+ /* @__PURE__ */ e(F, { bold: !0, children: M(C[0], P.MONTH_DAY) }),
149
+ /* @__PURE__ */ e(x, { name: "remove" }),
150
+ /* @__PURE__ */ e(F, { bold: !0, children: M(C[1], P.MONTH_DAY_YEAR) })
151
151
  ] }),
152
- i !== "readonly" && i !== "timeframebuttons" && i !== "timeframetabs" && /* @__PURE__ */ g(
153
- Me,
152
+ s !== "readonly" && s !== "timeframebuttons" && s !== "timeframetabs" && /* @__PURE__ */ h(
153
+ Ee,
154
154
  {
155
155
  color: d,
156
156
  sx: {
157
157
  "& .MuiButtonGroup-grouped": {
158
- padding: s ? 0 : 12
158
+ padding: l ? 0 : 12
159
159
  },
160
160
  "& .MuiButtonGroup-middleButton": {
161
161
  px: 24
162
162
  },
163
163
  height: 44
164
164
  },
165
- variant: i,
165
+ variant: s,
166
166
  children: [
167
167
  /* @__PURE__ */ e(
168
- H,
168
+ z,
169
169
  {
170
170
  "aria-disabled": n.shouldDisablePrevious,
171
171
  "aria-label": a.dateRangePreviousAria,
172
172
  color: n.shouldDisablePrevious ? "secondary" : "primary",
173
- onClick: () => n.shouldDisablePrevious ? null : I("previous"),
174
- children: /* @__PURE__ */ e(D, { name: "chevron_left", size: 20 })
173
+ onClick: () => n.shouldDisablePrevious ? null : N("previous"),
174
+ children: /* @__PURE__ */ e(x, { name: "chevron_left", size: 20 })
175
175
  }
176
176
  ),
177
177
  /* @__PURE__ */ e(
178
- H,
178
+ z,
179
179
  {
180
180
  "aria-disabled": n.shouldDisablePicker,
181
181
  color: d,
182
- onClick: () => n.shouldDisablePicker ? null : x(!0),
183
- startIcon: /* @__PURE__ */ e(D, { name: "calendar_month", size: 20 }),
182
+ onClick: () => n.shouldDisablePicker ? null : y(!0),
183
+ startIcon: /* @__PURE__ */ e(x, { name: "calendar_month", size: 20 }),
184
184
  sx: {
185
- p: s ? 0 : 8
185
+ p: l ? 0 : 8
186
186
  },
187
- children: N ? P(c[0], S.MONTH_YEAR) : /* @__PURE__ */ g("span", { children: [
188
- P(c[0], S.MONTH_DAY_YEAR),
187
+ children: j ? M(c[0], P.MONTH_YEAR) : /* @__PURE__ */ h("span", { children: [
188
+ M(c[0], P.MONTH_DAY_YEAR),
189
189
  " -",
190
190
  " ",
191
- P(c[1], S.MONTH_DAY_YEAR)
191
+ M(c[1], P.MONTH_DAY_YEAR)
192
192
  ] })
193
193
  }
194
194
  ),
195
195
  /* @__PURE__ */ e(
196
- H,
196
+ z,
197
197
  {
198
198
  "aria-disabled": n.shouldDisableNext,
199
199
  "aria-label": a.dateRangeNextAria,
200
200
  color: n.shouldDisableNext ? "secondary" : "primary",
201
- onClick: () => n.shouldDisableNext ? null : I("next"),
202
- children: /* @__PURE__ */ e(D, { name: "chevron_right", size: 20 })
201
+ onClick: () => n.shouldDisableNext ? null : N("next"),
202
+ children: /* @__PURE__ */ e(x, { name: "chevron_right", size: 20 })
203
203
  }
204
204
  )
205
205
  ]
206
206
  }
207
207
  ),
208
- i === "timeframebuttons" && /* @__PURE__ */ e(
209
- Ye,
208
+ s === "timeframebuttons" && /* @__PURE__ */ e(
209
+ we,
210
210
  {
211
211
  "aria-label": a.dateRangeEditTitle,
212
212
  color: d,
213
213
  exclusive: !0,
214
214
  orientation: "horizontal",
215
- value: E,
216
- children: O.buttons.map((t) => /* @__PURE__ */ e(
217
- Ee,
215
+ value: k,
216
+ children: B.buttons.map((t) => /* @__PURE__ */ e(
217
+ Ae,
218
218
  {
219
219
  "aria-label": t.ariaLabel,
220
- onClick: () => L(t.value),
220
+ onClick: () => G(t.value),
221
221
  sx: { width: 56 },
222
222
  value: t.value,
223
223
  children: t.label
@@ -226,18 +226,18 @@ const Ie = (n) => {
226
226
  ))
227
227
  }
228
228
  ),
229
- i === "timeframetabs" && /* @__PURE__ */ e(
230
- Se,
229
+ s === "timeframetabs" && /* @__PURE__ */ e(
230
+ Le,
231
231
  {
232
232
  indicatorColor: "primary",
233
- onChange: (t, l) => L(l),
233
+ onChange: (t, i) => G(i),
234
234
  textColor: "primary",
235
- value: E,
235
+ value: k,
236
236
  variant: "fullWidth",
237
- children: O.tabs.map((t) => /* @__PURE__ */ e(
238
- Pe,
237
+ children: B.tabs.map((t) => /* @__PURE__ */ e(
238
+ Ye,
239
239
  {
240
- label: /* @__PURE__ */ e(W, { bold: !0, variant: "body1", children: t.label }),
240
+ label: /* @__PURE__ */ e(F, { bold: !0, variant: "body1", children: t.label }),
241
241
  sx: { minWidth: 80 },
242
242
  value: t.value
243
243
  },
@@ -248,25 +248,25 @@ const Ie = (n) => {
248
248
  ]
249
249
  }
250
250
  ),
251
- k && s && /* @__PURE__ */ g(
252
- we,
251
+ E && l && /* @__PURE__ */ h(
252
+ Ie,
253
253
  {
254
254
  ariaLabelClose: a.dateRangeCloseAria,
255
- isOpen: k,
256
- onClose: () => x(!1),
255
+ isOpen: E,
256
+ onClose: () => y(!1),
257
257
  onPrimaryAction: () => {
258
- Y(), x(!1);
258
+ O(), y(!1);
259
259
  },
260
260
  primaryText: a.dateRangeEditApply,
261
261
  title: a.dateRangeEditTitle,
262
262
  children: [
263
- h,
263
+ g,
264
264
  /* @__PURE__ */ e(
265
265
  Z,
266
266
  {
267
267
  copy: a.dateRangePickerCopy,
268
268
  dateRange: C,
269
- onRangeChanged: T,
269
+ onRangeChanged: I,
270
270
  selectedShortcut: o,
271
271
  sx: { p: 0 }
272
272
  }
@@ -274,13 +274,13 @@ const Ie = (n) => {
274
274
  ]
275
275
  }
276
276
  ),
277
- k && !s && /* @__PURE__ */ g(
278
- Be,
277
+ E && !l && /* @__PURE__ */ h(
278
+ Oe,
279
279
  {
280
280
  copy: { title: a.dateRangeEditTitle },
281
281
  isOpen: !0,
282
- onClose: () => x(!1),
283
- onPrimaryAction: () => Y(),
282
+ onClose: () => y(!1),
283
+ onPrimaryAction: () => O(),
284
284
  primaryText: a.dateRangeEditApply,
285
285
  sx: {
286
286
  "& .MuiDialogContent-root": {
@@ -288,13 +288,13 @@ const Ie = (n) => {
288
288
  }
289
289
  },
290
290
  children: [
291
- h,
291
+ g,
292
292
  /* @__PURE__ */ e(
293
293
  Z,
294
294
  {
295
295
  copy: a.dateRangePickerCopy,
296
296
  dateRange: C,
297
- onRangeChanged: T,
297
+ onRangeChanged: I,
298
298
  selectedShortcut: o,
299
299
  sx: {
300
300
  pt: 0,
@@ -308,9 +308,9 @@ const Ie = (n) => {
308
308
  }
309
309
  )
310
310
  ] });
311
- }, ze = ne(
311
+ }, Fe = ie(
312
312
  ({ calendarActions: n, dateRange: d, dateRangeVariant: a }) => {
313
- const { displayedDateRange: m } = ie(), { common: r } = se(), i = {
313
+ const { displayedDateRange: m } = se(), { common: r } = le(), s = {
314
314
  dateRangePickerCopy: {
315
315
  dateRangeFrom: r.date_range_picker.from,
316
316
  dateRangeTo: r.date_range_picker.to,
@@ -328,92 +328,95 @@ const Ie = (n) => {
328
328
  dateRangeEditTitle: r.date_range_picker.edit_title,
329
329
  dateRangeNextAria: r.date_range_picker.next_aria,
330
330
  dateRangePreviousAria: r.date_range_picker.previous_aria
331
- }, _ = d ? d.start : m.start, s = d ? d.end : m.end;
331
+ }, _ = d ? d.start : m.start, l = d ? d.end : m.end;
332
332
  return /* @__PURE__ */ e(
333
- Ge,
333
+ ze,
334
334
  {
335
335
  calendarActions: n,
336
- copy: i,
337
- range: [_, s],
336
+ copy: s,
337
+ range: [_, l],
338
338
  shouldShrinkToIcon: !1,
339
339
  variant: a
340
340
  }
341
341
  );
342
342
  }
343
- ), Yt = ne(
343
+ ), wt = ie(
344
344
  ({
345
345
  actions: n,
346
346
  allowedAccountTypes: d,
347
347
  calendarActions: a,
348
348
  children: m,
349
349
  className: r = "mx-cmn-widget",
350
- dateRange: i,
350
+ dateRange: s,
351
351
  dateRangeVariant: _,
352
- hasDivider: s = !1,
353
- onAccountsFilterClick: y,
354
- onBackClick: h,
352
+ hasDivider: l = !1,
353
+ onAccountsFilterClick: D,
354
+ onBackClick: g,
355
355
  onMenuClick: c,
356
356
  showAccountFilter: R = !0,
357
357
  slotComponent: o,
358
- sx: A = {},
358
+ sx: S = {},
359
359
  title: C = ""
360
360
  }) => {
361
- const [w, { height: k, width: x }] = ge(), { onEvent: N } = fe(), {
362
- actionsFlex: F,
363
- containerSquareCorners: E,
364
- headerHeadingLevel: j,
361
+ const [L, { height: E, width: y }] = J(), [j, { height: A, width: k }] = J(), { onEvent: w } = Re(), {
362
+ actionsFlex: B,
363
+ containerSquareCorners: V,
364
+ headerHeadingLevel: N,
365
365
  headerPaddingBottom: O,
366
- headerPaddingTop: V,
367
- headerPaddingX: I,
368
- iconSize: Y,
369
- isCompact: T,
370
- isDesktop: L,
371
- isViewportAbove900: t,
372
- slotSx: l
373
- } = Ie(x), { isCopyLoaded: p } = ie(), { common: f } = se(), {
374
- config: { display_widget_headings: b }
375
- } = be(), v = () => {
376
- h && (h(), N(oe.WIDGET_BACK_CLICK));
366
+ headerPaddingTop: I,
367
+ headerPaddingX: G,
368
+ iconSize: t,
369
+ isCompact: i,
370
+ isDesktop: u,
371
+ isViewportAbove900: f,
372
+ slotSx: b
373
+ } = We(y), { isCopyLoaded: T } = se(), { common: v } = le(), {
374
+ config: { display_widget_headings: me }
375
+ } = Ce(), ce = () => {
376
+ g && (g(), w(ne.WIDGET_BACK_CLICK));
377
377
  };
378
- if (u.useEffect(() => {
379
- N(oe.WIDGET_SIZE_CHANGED, { height: k, width: x });
380
- }, [k]), !p)
381
- return /* @__PURE__ */ e(Ne, {});
382
- const M = () => c && T && !t ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(D, { name: "menu_open", size: Y, sx: { transform: "rotate(180deg)" } }) }) : h ? /* @__PURE__ */ e(
378
+ if (p.useEffect(() => {
379
+ w(ne.WIDGET_SIZE_CHANGED, {
380
+ height: A,
381
+ width: k
382
+ });
383
+ }, [A, k]), !T)
384
+ return /* @__PURE__ */ e(Ge, {});
385
+ const ue = () => c && i && !f ? /* @__PURE__ */ e($, { color: "primary", onClick: c, sx: { p: 10 }, children: /* @__PURE__ */ e(x, { name: "menu_open", size: t, sx: { transform: "rotate(180deg)" } }) }) : g ? /* @__PURE__ */ e(
383
386
  $,
384
387
  {
385
- "aria-label": f.back_to_dashboard,
388
+ "aria-label": v.back_to_dashboard,
386
389
  color: "primary",
387
- onClick: v,
390
+ onClick: ce,
388
391
  sx: { p: 10 },
389
- children: /* @__PURE__ */ e(pe, { size: 24 })
392
+ children: /* @__PURE__ */ e(be, { size: 24 })
390
393
  }
391
- ) : null, X = a && /* @__PURE__ */ e(B, { alignItems: "center", sx: l, children: /* @__PURE__ */ e(
392
- ze,
394
+ ) : null, X = a && /* @__PURE__ */ e(Y, { alignItems: "center", sx: b, children: /* @__PURE__ */ e(
395
+ Fe,
393
396
  {
394
397
  calendarActions: a,
395
- dateRange: i,
398
+ dateRange: s,
396
399
  dateRangeVariant: _
397
400
  }
398
401
  ) });
399
402
  return /* @__PURE__ */ e(
400
- ue,
403
+ fe,
401
404
  {
402
405
  className: r,
403
406
  elevation: 1,
404
- ref: w,
405
- square: E,
407
+ ref: L,
408
+ square: V,
406
409
  sx: {
407
410
  borderBottomLeftRadius: 0,
408
411
  borderBottomRightRadius: 0,
409
412
  margin: 0,
410
413
  overflowY: "auto",
411
414
  height: "100%",
412
- ...A
415
+ ...S
413
416
  },
414
- children: /* @__PURE__ */ g(de, { children: [
415
- /* @__PURE__ */ g(
416
- B,
417
+ children: /* @__PURE__ */ h(pe, { children: [
418
+ /* @__PURE__ */ h(
419
+ Y,
417
420
  {
418
421
  alignItems: "center",
419
422
  alignSelf: "stretch",
@@ -421,42 +424,42 @@ const Ie = (n) => {
421
424
  justifyContent: "space-between",
422
425
  sx: {
423
426
  pb: O,
424
- pt: V,
425
- px: I
427
+ pt: I,
428
+ px: G
426
429
  },
427
430
  children: [
428
- M(),
429
- /* @__PURE__ */ e(B, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: b && /* @__PURE__ */ e(W, { sx: { width: "100%" }, truncate: !0, variant: j, children: C }) }),
430
- !T && (o || X),
431
- /* @__PURE__ */ g(
432
- B,
431
+ ue(),
432
+ /* @__PURE__ */ e(Y, { alignItems: "flex-start", minWidth: 0, sx: { flex: 1 }, children: me && /* @__PURE__ */ e(F, { sx: { width: "100%" }, truncate: !0, variant: N, children: C }) }),
433
+ !i && (o || X),
434
+ /* @__PURE__ */ h(
435
+ Y,
433
436
  {
434
437
  alignItems: "center",
435
438
  direction: "row",
436
439
  justifyContent: "flex-end",
437
- sx: { flex: F, flexShrink: 0 },
440
+ sx: { flex: B, flexShrink: 0 },
438
441
  children: [
439
442
  R && /* @__PURE__ */ e(
440
- he,
443
+ _e,
441
444
  {
442
445
  allowedAccountTypes: d,
443
- isDesktop: L,
444
- onAccountFilterClick: y
446
+ isDesktop: u,
447
+ onAccountFilterClick: D
445
448
  }
446
449
  ),
447
450
  n?.map((q) => {
448
- if (u.isValidElement(q))
449
- return u.cloneElement(q, { isDesktop: L });
450
- const { iconName: G, onClick: Q, label: U } = q;
451
- return L ? /* @__PURE__ */ e(
452
- H,
451
+ if (p.isValidElement(q))
452
+ return p.cloneElement(q, { isDesktop: u });
453
+ const { iconName: H, onClick: Q, label: U } = q;
454
+ return u ? /* @__PURE__ */ e(
455
+ z,
453
456
  {
454
457
  onClick: Q,
455
- startIcon: /* @__PURE__ */ e(D, { name: G, size: Y }),
458
+ startIcon: /* @__PURE__ */ e(x, { name: H, size: t }),
456
459
  children: U
457
460
  },
458
- G
459
- ) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(D, { name: G, size: Y }) }, G);
461
+ H
462
+ ) : /* @__PURE__ */ e($, { "aria-label": U, color: "primary", onClick: Q, children: /* @__PURE__ */ e(x, { name: H, size: t }) }, H);
460
463
  })
461
464
  ]
462
465
  }
@@ -464,16 +467,16 @@ const Ie = (n) => {
464
467
  ]
465
468
  }
466
469
  ),
467
- T && (o || X),
468
- T && s && /* @__PURE__ */ e(ce, {}),
469
- /* @__PURE__ */ e(me, { sx: { p: 0 }, children: /* @__PURE__ */ e(_e, { availableHeight: k, availableWidth: x, children: m }) })
470
+ i && (o || X),
471
+ i && l && /* @__PURE__ */ e(ge, {}),
472
+ /* @__PURE__ */ e(he, { ref: j, sx: { p: 0 }, children: /* @__PURE__ */ e(xe, { availableHeight: E, availableWidth: y, children: m }) })
470
473
  ] })
471
474
  }
472
475
  );
473
476
  }
474
477
  );
475
478
  export {
476
- Ge as D,
477
- Yt as W,
478
- Ie as u
479
+ ze as D,
480
+ wt as W,
481
+ We as u
479
482
  };
@@ -62,7 +62,7 @@ import { C as s3 } from "../ConnectionsDrawer-CtfPXk0M.mjs";
62
62
  import { u as V1 } from "../useScreenSize-mWpmnh5w.mjs";
63
63
  import { u as o1 } from "../useWidgetLoadTimer-CJb-RELP.mjs";
64
64
  import { L as i1 } from "../Loader-CxeBwuPG.mjs";
65
- import { W as l3 } from "../WidgetContainer-BU3nCHZo.mjs";
65
+ import { W as l3 } from "../WidgetContainer-CmbU4CBH.mjs";
66
66
  import { M as A1 } from "../MiniWidgetContainer-BdPiUU-u.mjs";
67
67
  const r3 = (t, o) => {
68
68
  const n = g1.includes(o) ? S1(t) : [], c = H1.includes(o) ? T1(t) : [], i = v1.includes(o) ? D1(t) : [];
@@ -47,7 +47,7 @@ import { subDays as rt } from "date-fns/subDays";
47
47
  import st from "@mui/material/IconButton";
48
48
  import { M as it } from "../ManageIncome-D1yBODQi.mjs";
49
49
  import { u as je } from "../useWidgetLoadTimer-CJb-RELP.mjs";
50
- import { W as ct } from "../WidgetContainer-BU3nCHZo.mjs";
50
+ import { W as ct } from "../WidgetContainer-CmbU4CBH.mjs";
51
51
  import { g as lt, a as dt } from "../BudgetUtil-Bg2AQJpQ.mjs";
52
52
  import { M as ut } from "../MiniWidgetContainer-BdPiUU-u.mjs";
53
53
  import { b as mt } from "../CurrencyDialog-DumQCTPO.mjs";
@@ -38,7 +38,7 @@ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-D1y
38
38
  import { D as He } from "../Drawer-BXqqBMxg.mjs";
39
39
  import { subDays as We } from "date-fns/subDays";
40
40
  import { endOfToday as dt } from "date-fns/endOfToday";
41
- import { W as mt } from "../WidgetContainer-BU3nCHZo.mjs";
41
+ import { W as mt } from "../WidgetContainer-CmbU4CBH.mjs";
42
42
  import { A as X } from "../Account-BaJmiJAG.mjs";
43
43
  import { A as Se } from "../Analytics-CzGzz_sE.mjs";
44
44
  import { formatISO as ut } from "date-fns/formatISO";
@@ -4,7 +4,7 @@ import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatt
4
4
  import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
5
5
  import { C as ar } from "../CurrencyInput-adTIRtL3.mjs";
6
6
  import { D as nr, S as ir } from "../Select-BFt-HD-L.mjs";
7
- import { D as lr, W as mr, u as dr } from "../WidgetContainer-BU3nCHZo.mjs";
7
+ import { D as lr, W as mr, u as dr } from "../WidgetContainer-CmbU4CBH.mjs";
8
8
  import { D as fr } from "../Dialog-Bvd2n8hz.mjs";
9
9
  import { D as yr } from "../Donut-SzzfZDHF.mjs";
10
10
  import { D as xr } from "../Drawer-BXqqBMxg.mjs";
@@ -42,7 +42,7 @@ import it from "@mui/material/ListItem";
42
42
  import lt from "@mui/material/Popover";
43
43
  import { u as st } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { L as ct } from "../Loader-CxeBwuPG.mjs";
45
- import { W as dt } from "../WidgetContainer-BU3nCHZo.mjs";
45
+ import { W as dt } from "../WidgetContainer-CmbU4CBH.mjs";
46
46
  import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
47
47
  import { C as ut } from "../ConnectDrawer-Cnjr3Ddg.mjs";
48
48
  function ht(r, n, o = 0) {
@@ -78,7 +78,7 @@ import So from "@mui/material/Accordion";
78
78
  import vo from "@mui/material/AccordionDetails";
79
79
  import wo from "@mui/material/AccordionSummary";
80
80
  import { u as ko } from "../useWidgetLoadTimer-CJb-RELP.mjs";
81
- import { W as Mo } from "../WidgetContainer-BU3nCHZo.mjs";
81
+ import { W as Mo } from "../WidgetContainer-CmbU4CBH.mjs";
82
82
  const Ae = {
83
83
  creditScore: {
84
84
  poor: 600,
@@ -51,7 +51,7 @@ import { D as pt } from "../Dialog-Bvd2n8hz.mjs";
51
51
  import { u as Me } from "../useWidgetLoadTimer-CJb-RELP.mjs";
52
52
  import { A as $ } from "../Analytics-CzGzz_sE.mjs";
53
53
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
54
- import { W as ht } from "../WidgetContainer-BU3nCHZo.mjs";
54
+ import { W as ht } from "../WidgetContainer-CmbU4CBH.mjs";
55
55
  import { E as bt } from "../EmptyState-CJUDc3kD.mjs";
56
56
  import ft from "@mui/material/Box";
57
57
  import { useTheme as gt } from "@mui/material/styles";
@@ -4,7 +4,7 @@ import { H as s } from "../Help-DJ8PrVHX.mjs";
4
4
  import { b as a } from "../hooks-BaO_gOI6.mjs";
5
5
  import { u as p } from "../useWidgetLoadTimer-CJb-RELP.mjs";
6
6
  import { L as d } from "../Loader-CxeBwuPG.mjs";
7
- import { W as f } from "../WidgetContainer-BU3nCHZo.mjs";
7
+ import { W as f } from "../WidgetContainer-CmbU4CBH.mjs";
8
8
  const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
9
9
  const { isInitialized: o } = a();
10
10
  return p({
@@ -38,7 +38,7 @@ import { DataGridPro as $e } from "@mui/x-data-grid-pro";
38
38
  import { Stack as Pe } from "@mui/material";
39
39
  import { L as De } from "../Loader-CxeBwuPG.mjs";
40
40
  import { u as qe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
- import { W as Ke } from "../WidgetContainer-BU3nCHZo.mjs";
41
+ import { W as Ke } from "../WidgetContainer-CmbU4CBH.mjs";
42
42
  import { A as Ye } from "../Account-BaJmiJAG.mjs";
43
43
  import { E as Qe } from "../EmptyState-CJUDc3kD.mjs";
44
44
  const me = ({ sx: t = {} }) => {
@@ -32,7 +32,7 @@ import xe from "@mui/material/Collapse";
32
32
  import K from "@mui/material/ListItemIcon";
33
33
  import { g as U } from "../NetWorthUtils-DilGN1nW.mjs";
34
34
  import { D as V } from "../Drawer-BXqqBMxg.mjs";
35
- import { W as ge } from "../WidgetContainer-BU3nCHZo.mjs";
35
+ import { W as ge } from "../WidgetContainer-CmbU4CBH.mjs";
36
36
  import { E as ye } from "../EmptyState-CJUDc3kD.mjs";
37
37
  const Ce = ({ amount: t, copy: s, trendValue: i }) => {
38
38
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
@@ -56,7 +56,7 @@ import { S as Le } from "../StatusBar-CPfSXe80.mjs";
56
56
  import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
57
57
  import { u as oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
58
58
  import { L as ae } from "../Loader-CxeBwuPG.mjs";
59
- import { W as ht } from "../WidgetContainer-BU3nCHZo.mjs";
59
+ import { W as ht } from "../WidgetContainer-CmbU4CBH.mjs";
60
60
  import { M as ft } from "../MiniWidgetContainer-BdPiUU-u.mjs";
61
61
  import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
62
62
  import { M as bt } from "../MicroWidgetContainer-CfKdQfhi.mjs";
@@ -42,7 +42,7 @@ import { ChevronRight as Le } from "@mxenabled/mx-icons";
42
42
  import { D as Be } from "../Drawer-BXqqBMxg.mjs";
43
43
  import { u as ne } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { H as He } from "../Help-DJ8PrVHX.mjs";
45
- import { W as q } from "../WidgetContainer-BU3nCHZo.mjs";
45
+ import { W as q } from "../WidgetContainer-CmbU4CBH.mjs";
46
46
  const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
47
  const i = L(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = O(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [p, k] = m.useState({
48
48
  first_name: d.first_name,
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-BXqqBMxg.mjs";
31
31
  import { C as w } from "../Category-DEKZGLYe.mjs";
32
32
  import { parseISO as et } from "date-fns/parseISO";
33
33
  import { A as nt } from "../Analytics-CzGzz_sE.mjs";
34
- import { W as It } from "../WidgetContainer-BU3nCHZo.mjs";
34
+ import { W as It } from "../WidgetContainer-CmbU4CBH.mjs";
35
35
  const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
37
37
  /* @__PURE__ */ t(T, { variant: "caption", children: k(n, o === "mini" ? "0,0" : "0,0.00") })
@@ -37,7 +37,7 @@ import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
37
37
  import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
38
38
  import { u as _t } from "../useScreenSize-mWpmnh5w.mjs";
39
39
  import { u as pt } from "../useWidgetLoadTimer-CJb-RELP.mjs";
40
- import { W as gt } from "../WidgetContainer-BU3nCHZo.mjs";
40
+ import { W as gt } from "../WidgetContainer-CmbU4CBH.mjs";
41
41
  import { S as ht } from "../SearchBox-Cpgu_gdO.mjs";
42
42
  import { D as te } from "../Drawer-BXqqBMxg.mjs";
43
43
  const ft = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
@@ -39,7 +39,7 @@ import { T as dt } from "../TransactionDetails-DctXr07p.mjs";
39
39
  import { D as Pe } from "../Drawer-BXqqBMxg.mjs";
40
40
  import { u as Ie } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
41
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
42
- import { W as ut } from "../WidgetContainer-BU3nCHZo.mjs";
42
+ import { W as ut } from "../WidgetContainer-CmbU4CBH.mjs";
43
43
  import { L as Ve } from "../LineChart-CejWS_rh.mjs";
44
44
  import { M as Qt } from "../MiniWidgetContainer-BdPiUU-u.mjs";
45
45
  import { subMonths as qt } from "date-fns";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.1",
3
+ "version": "9.0.2",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",