@mx-cartographer/experiences 7.11.11 → 7.11.12

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.11.12] - 03-05-2026
2
+
3
+ - **UPDATED** - Tweaks to `CategorySpendingV2MUI` and `BudgetDetailsDrawerV2`
4
+
1
5
  ## [7.11.11] - 03-04-2026
2
6
 
3
7
  - **FIXED** - Issue with including bi-weekly recurrences in past months
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as h, runInAction as a } from "mobx";
2
- import { i as g } from "./User-CCSM9p05.mjs";
2
+ import { i as g } from "./User-CoANIQIA.mjs";
3
3
  import { A as d } from "./AccountApi-JlrX0MwM.mjs";
4
4
  import { d as m } from "./Accounts-M-LTzStv.mjs";
5
5
  import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
@@ -18,7 +18,7 @@ import { parseISO as me } from "date-fns/parseISO";
18
18
  import Z 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 J, u as fe, S as ge, a as Ce } from "./TransactionList-BibbhhS9.mjs";
21
- import { T as be } from "./TransactionDetails-Cedp4OOg.mjs";
21
+ import { T as be } from "./TransactionDetails-CCLMsk_N.mjs";
22
22
  import { addYears as K } 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-Bx6Uw4fv.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-CerJpiYw.mjs";
11
11
  import { u as _, j as A, g as f } from "./hooks-zu7yblbi.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-C8Cy-9DA.mjs";
13
13
  import { A as m } from "./Analytics-i5h6BxR1.mjs";
@@ -8,7 +8,7 @@ import te from "@mui/material/Paper";
8
8
  import v from "@mui/material/Stack";
9
9
  import { useTheme as V } from "@mui/material/styles";
10
10
  import { CategoryIcon as he, CategoryIconVariants as Ce, Text as C, P as X, MerchantLogo as Se, TextField as ye, Icon as ae, IconWeight as ue, Toast as ke } from "@mxenabled/mxui";
11
- import { C as Pe, a as Me, b as Ge, i as Be } from "./User-CCSM9p05.mjs";
11
+ import { C as Pe, a as Me, b as Ge, i as Be } from "./User-CoANIQIA.mjs";
12
12
  import se from "@mui/material/Button";
13
13
  import $e from "@mui/material/FormGroup";
14
14
  import J from "@mui/material/IconButton";
@@ -1,20 +1,20 @@
1
1
  import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
2
  import b from "react";
3
- import { css as M } from "@mxenabled/cssinjs";
4
- import { addDays as H } from "date-fns/addDays";
5
- import { addMonths as O } from "date-fns/addMonths";
6
- import { eachDayOfInterval as W } from "date-fns/eachDayOfInterval";
3
+ import { css as E } from "@mxenabled/cssinjs";
4
+ import { addDays as W } from "date-fns/addDays";
5
+ import { addMonths as H } from "date-fns/addMonths";
6
+ import { eachDayOfInterval as O } from "date-fns/eachDayOfInterval";
7
7
  import { eachWeekOfInterval as F } from "date-fns/eachWeekOfInterval";
8
8
  import { endOfMonth as L } from "date-fns/endOfMonth";
9
- import { format as j } from "date-fns/format";
9
+ import { format as _ } from "date-fns/format";
10
10
  import { isBefore as z } from "date-fns/isBefore";
11
- import { isSameMonth as G } from "date-fns/isSameMonth";
12
- import { startOfMonth as Y } from "date-fns/startOfMonth";
11
+ import { isSameMonth as D } from "date-fns/isSameMonth";
12
+ import { startOfMonth as G } from "date-fns/startOfMonth";
13
13
  import { startOfToday as $ } from "date-fns/startOfToday";
14
- import { subMonths as Z } from "date-fns/subMonths";
14
+ import { subMonths as Y } from "date-fns/subMonths";
15
15
  import C from "@mui/material/Button";
16
- import q from "@mui/material/Paper";
17
- import { H2 as D, Text as _, H3 as J, P as K } from "@mxenabled/mxui";
16
+ import Z from "@mui/material/Paper";
17
+ import { H2 as q, Text as T, H3 as J, P as K } from "@mxenabled/mxui";
18
18
  import { ChevronLeft as P, ChevronRight as Q, Icon as U } from "@mxenabled/mx-icons";
19
19
  import { f as V, D as X } from "./DateFormats-Cs-NbEZ7.mjs";
20
20
  import { isSameDay as d } from "date-fns/isSameDay";
@@ -25,18 +25,19 @@ import ot from "@mui/material/DialogActions";
25
25
  import rt from "@mui/material/DialogContent";
26
26
  import at from "@mui/material/IconButton";
27
27
  import it from "@mui/material/InputAdornment";
28
- import B from "@mui/material/Stack";
28
+ import j from "@mui/material/Stack";
29
29
  import lt from "@mui/material/TextField";
30
+ import { u as mt } from "./useScreenSize-B6JyS_Lj.mjs";
30
31
  const ct = ({ copy: t, date: o, onNextClick: e, onPreviousClick: l }) => {
31
- const m = mt();
32
- return /* @__PURE__ */ p("div", { className: `mx-cmn-calendar-header ${m}`, children: [
33
- /* @__PURE__ */ n(D, { className: "mx-cmn-calendar-header-title", variant: "H3", children: V(o, X.MONTH_YEAR) }),
32
+ const c = st();
33
+ return /* @__PURE__ */ p("div", { className: `mx-cmn-calendar-header ${c}`, children: [
34
+ /* @__PURE__ */ n(q, { className: "mx-cmn-calendar-header-title", variant: "H3", children: V(o, X.MONTH_YEAR) }),
34
35
  /* @__PURE__ */ p("div", { className: "mx-cmn-calendar-header-button-container", children: [
35
36
  /* @__PURE__ */ n(C, { "aria-label": t.prevAria, onClick: l, children: /* @__PURE__ */ n(P, { size: 24 }) }),
36
37
  /* @__PURE__ */ n(C, { "aria-label": t.nextAria, onClick: e, children: /* @__PURE__ */ n(Q, { size: 24 }) })
37
38
  ] })
38
39
  ] });
39
- }, mt = () => M({
40
+ }, st = () => E({
40
41
  alignItems: "center",
41
42
  display: "flex",
42
43
  marginBottom: 16,
@@ -49,8 +50,8 @@ const ct = ({ copy: t, date: o, onNextClick: e, onPreviousClick: l }) => {
49
50
  display: "flex",
50
51
  gap: 4
51
52
  }
52
- }), st = ({ beginDate: t, date: o, endDate: e, isInMonth: l, onClick: m }) => {
53
- const h = nt(), x = dt(h), a = t && e && tt(o, { start: t, end: e }) && !d(o, t) && !d(o, e), f = t && e && d(t, o) && !d(t, e), c = e && t && d(e, o) && !d(t, e), i = t && d(t, o) || e && d(e, o), u = d(o, $());
53
+ }), dt = ({ beginDate: t, date: o, endDate: e, isInMonth: l, onClick: c }) => {
54
+ const h = nt(), x = ht(h), a = t && e && tt(o, { start: t, end: e }) && !d(o, t) && !d(o, e), f = t && e && d(t, o) && !d(t, e), m = e && t && d(e, o) && !d(t, e), i = t && d(t, o) || e && d(e, o), u = d(o, $());
54
55
  return /* @__PURE__ */ n(
55
56
  "div",
56
57
  {
@@ -66,29 +67,29 @@ const ct = ({ copy: t, date: o, onNextClick: e, onPreviousClick: l }) => {
66
67
  className: `
67
68
  mx-cmn-calendar-day-button
68
69
  ${f ? "mx-cmn-range-start" : ""}
69
- ${c ? "mx-cmn-range-end" : ""}
70
+ ${m ? "mx-cmn-range-end" : ""}
70
71
  `,
71
72
  color: i ? "primary" : "secondary",
72
- onClick: () => m(o),
73
+ onClick: () => c(o),
73
74
  variant: i ? "contained" : "text",
74
75
  children: /* @__PURE__ */ n(
75
- _,
76
+ T,
76
77
  {
77
78
  className: `
78
79
  mx-cmn-calendar-day-text
79
80
  ${i ? "mx-cmn-day-selected" : ""}
80
81
  ${u ? "mx-cmn-today" : ""}`,
81
82
  variant: "Small",
82
- children: j(o, "d")
83
+ children: _(o, "d")
83
84
  }
84
85
  )
85
86
  }
86
87
  )
87
88
  }
88
89
  );
89
- }, dt = (t) => M({
90
- height: w,
91
- width: w,
90
+ }, ht = (t) => E({
91
+ height: S,
92
+ width: S,
92
93
  display: "flex",
93
94
  justifyContent: "center",
94
95
  "&.mx-cmn-out-of-month": {
@@ -131,72 +132,72 @@ const ct = ({ copy: t, date: o, onNextClick: e, onPreviousClick: l }) => {
131
132
  paddingBottom: 5
132
133
  }
133
134
  }
134
- }), ht = 340, w = 44;
135
- var ft = /* @__PURE__ */ ((t) => (t.None = "None", t.Single = "Single", t.Range = "Range", t))(ft || {});
136
- const pt = ({
135
+ }), ft = 340, S = 44;
136
+ var pt = /* @__PURE__ */ ((t) => (t.None = "None", t.Single = "Single", t.Range = "Range", t))(pt || {});
137
+ const xt = ({
137
138
  copy: t,
138
139
  beginDate: o = void 0,
139
140
  endDate: e = void 0,
140
141
  onDateSelected: l,
141
- onRangeSelected: m,
142
+ onRangeSelected: c,
142
143
  selectionType: h = "Single"
143
144
  /* Single */
144
145
  }) => {
145
- const x = xt(), [a, f] = b.useState($), [c, i] = b.useState(o), [u, s] = b.useState(e);
146
+ const x = ut(), [a, f] = b.useState($), [m, i] = b.useState(o), [u, s] = b.useState(e);
146
147
  b.useEffect(() => {
147
148
  i(o), s(e), o && f(o);
148
149
  }, [o, e]);
149
150
  const k = b.useMemo(() => {
150
- const r = F({ start: Y(a), end: L(a) }), y = [];
151
+ const r = F({ start: G(a), end: L(a) }), y = [];
151
152
  for (let v = 0; v < r.length; v++) {
152
- const N = r[v], E = W({ start: N, end: H(N, 6) }), A = [];
153
- for (let R = 0; R < E.length; R++)
154
- A.push(E[R]);
155
- y.push(A);
153
+ const w = r[v], A = O({ start: w, end: W(w, 6) }), B = [];
154
+ for (let R = 0; R < A.length; R++)
155
+ B.push(A[R]);
156
+ y.push(B);
156
157
  }
157
158
  return y;
158
- }, [a]), S = (r) => {
159
+ }, [a]), N = (r) => {
159
160
  if (h !== "None") {
160
161
  if (h === "Single") {
161
162
  i(r), l?.(r);
162
163
  return;
163
164
  }
164
- !c || u ? (i(r), s(void 0)) : z(r, c) ? (s(c), i(r), m?.(r, c)) : (s(r), m?.(c, r));
165
+ !m || u ? (i(r), s(void 0)) : z(r, m) ? (s(m), i(r), c?.(r, m)) : (s(r), c?.(m, r));
165
166
  }
166
167
  }, I = () => {
167
168
  const r = $();
168
- f(r), h !== "None" && (i(r), h === "Single" ? l?.(r) : (s(r), m?.(r, r)));
169
+ f(r), h !== "None" && (i(r), h === "Single" ? l?.(r) : (s(r), c?.(r, r)));
170
+ }, M = () => {
171
+ f(H(a, 1));
169
172
  }, g = () => {
170
- f(O(a, 1));
171
- }, T = () => {
172
- f(Z(a, 1));
173
+ f(Y(a, 1));
173
174
  };
174
- return /* @__PURE__ */ n("div", { className: `mx-cmn-calendar ${x}`, children: /* @__PURE__ */ p(q, { sx: { boxShadow: "none" }, children: [
175
+ return /* @__PURE__ */ n("div", { className: `mx-cmn-calendar ${x}`, children: /* @__PURE__ */ p(Z, { sx: { boxShadow: "none" }, children: [
175
176
  /* @__PURE__ */ n(
176
177
  ct,
177
178
  {
178
179
  copy: t,
179
180
  date: a,
180
- onNextClick: g,
181
- onPreviousClick: T
181
+ onNextClick: M,
182
+ onPreviousClick: g
182
183
  }
183
184
  ),
184
- /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-header-row", children: k[0].map((r, y) => /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ n(_, { bold: !0, variant: "Small", children: j(r, "EEEEE") }) }, y)) }),
185
- k.map((r, y) => /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-week", children: r.map((v, N) => /* @__PURE__ */ n(
186
- st,
185
+ /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-header-row", children: k[0].map((r, y) => /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ n(T, { bold: !0, variant: "Small", children: _(r, "EEEEE") }) }, y)) }),
186
+ k.map((r, y) => /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-week", children: r.map((v, w) => /* @__PURE__ */ n(
187
+ dt,
187
188
  {
188
- beginDate: c,
189
+ beginDate: m,
189
190
  date: v,
190
191
  endDate: u,
191
- isInMonth: G(v, a),
192
- onClick: S
192
+ isInMonth: D(v, a),
193
+ onClick: N
193
194
  },
194
- N
195
+ w
195
196
  )) }, `w-${y}`)),
196
197
  /* @__PURE__ */ n("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ n(C, { onClick: I, size: "small", variant: "text", children: t.today }) })
197
198
  ] }) });
198
- }, xt = () => M({
199
- width: ht,
199
+ }, ut = () => E({
200
+ width: ft,
200
201
  "& .MuiPaper-root": {
201
202
  paddingLeft: 24,
202
203
  paddingRight: 24,
@@ -208,9 +209,9 @@ const pt = ({
208
209
  justifyContent: "center",
209
210
  textAlign: "center",
210
211
  "& .mx-cmn-calendar-header-cell": {
211
- height: w,
212
- width: w,
213
- minWidth: w,
212
+ height: S,
213
+ width: S,
214
+ minWidth: S,
214
215
  "& .kmui-text": {
215
216
  alignItems: "center",
216
217
  display: "flex",
@@ -236,23 +237,23 @@ const pt = ({
236
237
  marginRight: "auto"
237
238
  }
238
239
  }
239
- }), Dt = pt, ut = ({
240
+ }), Kt = xt, gt = ({
240
241
  closeAriaLabel: t,
241
242
  content: o,
242
243
  inputLabel: e,
243
244
  inputValue: l,
244
- isOpen: m,
245
+ isOpen: c,
245
246
  handleInputChange: h,
246
247
  handleModalClose: x,
247
248
  handlePrimaryAction: a,
248
249
  handleSecondaryAction: f,
249
- primaryColor: c = "primary",
250
+ primaryColor: m = "primary",
250
251
  primaryText: i,
251
252
  secondaryColor: u = "primary",
252
253
  secondaryText: s,
253
254
  title: k
254
255
  }) => {
255
- const S = parseFloat(l ?? "0"), I = l !== "" && l !== "0" && !isNaN(S);
256
+ const N = parseFloat(l ?? "0"), I = l !== "" && l !== "0" && !isNaN(N), { isSmallMobile: M } = mt();
256
257
  return /* @__PURE__ */ n(
257
258
  et,
258
259
  {
@@ -260,9 +261,12 @@ const pt = ({
260
261
  "aria-labelledby": "modal-title",
261
262
  maxWidth: "xs",
262
263
  onClose: x,
263
- open: m,
264
+ open: c,
264
265
  role: "dialog",
265
- sx: { "& .MuiDialogContent-root": { p: 0 } },
266
+ sx: {
267
+ "& .MuiDialogContent-root": { p: 0 },
268
+ ...M && { "& .MuiDialog-paper": { minWidth: "100%" } }
269
+ },
266
270
  children: /* @__PURE__ */ n(rt, { children: /* @__PURE__ */ p(
267
271
  "form",
268
272
  {
@@ -271,7 +275,7 @@ const pt = ({
271
275
  },
272
276
  children: [
273
277
  /* @__PURE__ */ p(
274
- B,
278
+ j,
275
279
  {
276
280
  sx: {
277
281
  alignItems: "center",
@@ -297,7 +301,7 @@ const pt = ({
297
301
  ]
298
302
  }
299
303
  ),
300
- /* @__PURE__ */ p(B, { sx: { gap: 24, px: 24 }, children: [
304
+ /* @__PURE__ */ p(j, { sx: { gap: 24, px: 24 }, children: [
301
305
  /* @__PURE__ */ n(K, { variant: "subtitle1", children: o }),
302
306
  e && /* @__PURE__ */ n(
303
307
  lt,
@@ -344,7 +348,7 @@ const pt = ({
344
348
  C,
345
349
  {
346
350
  "aria-label": i,
347
- color: c,
351
+ color: m,
348
352
  disabled: e ? !I : !1,
349
353
  onClick: a,
350
354
  variant: "contained",
@@ -359,10 +363,10 @@ const pt = ({
359
363
  ) })
360
364
  }
361
365
  );
362
- }, Jt = ut, Kt = (t, o) => !!t.find((e) => e.feature_name === o)?.is_enabled;
366
+ }, Pt = gt, Qt = (t, o) => !!t.find((e) => e.feature_name === o)?.is_enabled;
363
367
  export {
364
- Dt as C,
365
- ft as a,
366
- Jt as b,
367
- Kt as i
368
+ Kt as C,
369
+ pt as a,
370
+ Pt as b,
371
+ Qt as i
368
372
  };
@@ -56,7 +56,7 @@ 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
58
  import { T as a3 } from "../TransactionList-BibbhhS9.mjs";
59
- import { T as s3 } from "../TransactionDetails-Cedp4OOg.mjs";
59
+ import { T as s3 } from "../TransactionDetails-CCLMsk_N.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-DjTD0t3W.mjs";
62
62
  import { C as l3 } from "../ConnectionsDrawer-c7HaKeRj.mjs";
@@ -66,7 +66,7 @@ import { L as o1 } from "../Loader-D3rjKx72.mjs";
66
66
  import { W as r3 } from "../WidgetContainer-sC5KLXHI.mjs";
67
67
  import { M as A1 } from "../MiniWidgetContainer-DhEx4qKi.mjs";
68
68
  import { A as l2 } from "../AccountApi-JlrX0MwM.mjs";
69
- import { A as d2 } from "../AccountStore-CSLinWGm.mjs";
69
+ import { A as d2 } from "../AccountStore-rFyEPMss.mjs";
70
70
  const d3 = (t, o) => {
71
71
  const n = _1.includes(o) ? b1(t) : [], i = L1.includes(o) ? S1(t) : [], c = f1.includes(o) ? R1(t) : [];
72
72
  return [n, i, c].filter((l) => l.length > 0);