@mx-cartographer/experiences 7.0.55-alpha.mega3 → 7.0.55-alpha.mega4

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.
@@ -6,8 +6,8 @@ import { startOfMonth as q } from "date-fns/startOfMonth";
6
6
  import F from "@mui/material/Box";
7
7
  import S from "@mui/material/Stack";
8
8
  import Q from "@mui/material/styles/useTheme";
9
- import { Text as y, CategoryIcon as W, Icon as N, H1 as ze, H3 as xe } from "@mxenabled/mxui";
10
- import H from "@mui/material/List";
9
+ import { Text as y, CategoryIcon as H, Icon as N, H1 as ze, H3 as xe } from "@mxenabled/mxui";
10
+ import W from "@mui/material/List";
11
11
  import { u as w, i as D, j as ee, m as j, p as te, g as X, b as ne, h as oe, a as Ue, d as ve } from "../hooks-CE2TKk4a.mjs";
12
12
  import { f as T } from "../NumberFormatting-CtWHhyBX.mjs";
13
13
  import Ae from "@mui/material/Button";
@@ -19,9 +19,9 @@ import Y from "@mui/material/ListItemText";
19
19
  import { b as M } from "../Localization-2MODESHW.mjs";
20
20
  import { D as k } from "../Drawer-kEE73B87.mjs";
21
21
  import Fe from "@mui/material/ListItemSecondaryAction";
22
- import { C as We } from "../CurrencyInput-CRtdzs3o.mjs";
22
+ import { C as He } from "../CurrencyInput-CRtdzs3o.mjs";
23
23
  import { a as $ } from "../Dialog-CWW597AF.mjs";
24
- import { C as He } from "../ConnectionsDrawer-CU3E2RLw.mjs";
24
+ import { C as We } from "../ConnectionsDrawer-CU3E2RLw.mjs";
25
25
  import * as O from "d3";
26
26
  import Xe from "@mui/material/Tooltip";
27
27
  import { u as se } from "../useScreenSize-B6JyS_Lj.mjs";
@@ -73,7 +73,7 @@ const it = I(() => {
73
73
  }, [o, i]);
74
74
  return /* @__PURE__ */ m(l.Fragment, { children: [
75
75
  /* @__PURE__ */ e(K, { children: /* @__PURE__ */ m(V, { children: [
76
- /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(W, { categoryGuid: t.guid, variant: "filled" }) }),
76
+ /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid, variant: "filled" }) }),
77
77
  /* @__PURE__ */ e(Y, { primary: t.name, secondary: s })
78
78
  ] }) }),
79
79
  /* @__PURE__ */ e(ae, {})
@@ -99,7 +99,7 @@ const it = I(() => {
99
99
  /* @__PURE__ */ e(y, { bold: !0, variant: "Body", children: o.recalculate_description_top }),
100
100
  /* @__PURE__ */ e(y, { variant: "ParagraphSmall", children: o.recalculate_description_bottom })
101
101
  ] }),
102
- /* @__PURE__ */ e(F, { bgcolor: "background.paper", children: /* @__PURE__ */ e(H, { children: d.map((u) => /* @__PURE__ */ e(ct, { category: u }, u.guid)) }) })
102
+ /* @__PURE__ */ e(F, { bgcolor: "background.paper", children: /* @__PURE__ */ e(W, { children: d.map((u) => /* @__PURE__ */ e(ct, { category: u }, u.guid)) }) })
103
103
  ] })
104
104
  }
105
105
  )
@@ -119,7 +119,7 @@ const it = I(() => {
119
119
  /* @__PURE__ */ e(y, { children: M(s.add_description_bottom, o) })
120
120
  ] }),
121
121
  /* @__PURE__ */ e(
122
- We,
122
+ He,
123
123
  {
124
124
  amount: t,
125
125
  autoFocus: !0,
@@ -136,7 +136,7 @@ const it = I(() => {
136
136
  );
137
137
  return /* @__PURE__ */ m(l.Fragment, { children: [
138
138
  /* @__PURE__ */ e(K, { children: /* @__PURE__ */ m(V, { onClick: () => n(!0), children: [
139
- /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(W, { categoryGuid: t.guid }) }),
139
+ /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(H, { categoryGuid: t.guid }) }),
140
140
  /* @__PURE__ */ e(
141
141
  Y,
142
142
  {
@@ -165,7 +165,7 @@ const it = I(() => {
165
165
  };
166
166
  return /* @__PURE__ */ m(S, { children: [
167
167
  /* @__PURE__ */ e(it, {}),
168
- /* @__PURE__ */ e(F, { bgcolor: "background.paper", children: /* @__PURE__ */ e(H, { children: a.map((r) => /* @__PURE__ */ e(
168
+ /* @__PURE__ */ e(F, { bgcolor: "background.paper", children: /* @__PURE__ */ e(W, { children: a.map((r) => /* @__PURE__ */ e(
169
169
  dt,
170
170
  {
171
171
  category: r,
@@ -396,7 +396,7 @@ const xt = ({
396
396
  onConnectAccountsClick: o,
397
397
  createBudgetOnClick: i
398
398
  }) => {
399
- const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d = c, [g, u] = l.useState(!1), [h, _] = l.useState(!1), [p, b] = l.useState(!1), B = l.useMemo(() => [...a.filter((C) => C.totalAverageAmount > 0)], [a]), f = async () => {
399
+ const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d = c && t, [g, u] = l.useState(!1), [h, _] = l.useState(!1), [p, b] = l.useState(!1), B = l.useMemo(() => [...a.filter((C) => C.totalAverageAmount > 0)], [a]), f = async () => {
400
400
  b(!0);
401
401
  const { data: C, isSuccess: v } = await s(B);
402
402
  b(!1), v ? (C.length === 0 && _(!0), u(!1)) : u(!0);
@@ -509,7 +509,7 @@ const xt = ({
509
509
  }
510
510
  ),
511
511
  /* @__PURE__ */ e(
512
- He,
512
+ We,
513
513
  {
514
514
  onClose: () => b(!1),
515
515
  showConnectionsWidget: p,
@@ -605,7 +605,7 @@ const xt = ({
605
605
  }
606
606
  ];
607
607
  return /* @__PURE__ */ e(pe, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(he, { children: /* @__PURE__ */ m(S, { alignItems: "center", gap: 16, children: [
608
- /* @__PURE__ */ e(W, { categoryGuid: a, size: 56 }),
608
+ /* @__PURE__ */ e(H, { categoryGuid: a, size: 56 }),
609
609
  /* @__PURE__ */ e(ze, { children: `${T(r, "0,0")} / ${T(o, "0,0")}` }),
610
610
  /* @__PURE__ */ e(y, { bold: !0, variant: "XSmall", children: s }),
611
611
  /* @__PURE__ */ e(ge, { data: c, height: 10 })
@@ -626,7 +626,7 @@ const xt = ({
626
626
  transaction_total: n
627
627
  } = t, { setSelectedSubBudget: r } = D();
628
628
  return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ m(V, { onClick: () => r(t), children: [
629
- /* @__PURE__ */ e(re, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(we, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(W, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
629
+ /* @__PURE__ */ e(re, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(we, { color: i, percent: a, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: s.parent_guid, variant: "basic" }) }) }),
630
630
  /* @__PURE__ */ e(
631
631
  Y,
632
632
  {
@@ -667,7 +667,7 @@ const xt = ({
667
667
  isOpen: c,
668
668
  onClose: () => d(!1),
669
669
  title: i.add_sub_budget_title,
670
- children: /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(ot, { category: t, subCategories: t.subCategories }) })
670
+ children: /* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(ot, { category: t, subCategories: t.subCategories }) })
671
671
  }
672
672
  ),
673
673
  /* @__PURE__ */ e(
@@ -712,7 +712,7 @@ const xt = ({
712
712
  }), c(void 0);
713
713
  };
714
714
  return /* @__PURE__ */ m(l.Fragment, { children: [
715
- /* @__PURE__ */ m(H, { sx: { bgcolor: "background.paper" }, children: [
715
+ /* @__PURE__ */ m(W, { sx: { bgcolor: "background.paper" }, children: [
716
716
  i.length === 0 ? /* @__PURE__ */ e(Dt, {}) : i.map((x) => /* @__PURE__ */ m(l.Fragment, { children: [
717
717
  /* @__PURE__ */ e(It, { budget: x }),
718
718
  /* @__PURE__ */ e(ae, {})
@@ -918,7 +918,7 @@ const xt = ({
918
918
  transaction_total: g
919
919
  } = t;
920
920
  return /* @__PURE__ */ e(K, { children: /* @__PURE__ */ m(V, { onClick: () => o?.(t), children: [
921
- /* @__PURE__ */ e(re, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(we, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(W, { categoryGuid: n, variant: "basic" }) }) }),
921
+ /* @__PURE__ */ e(re, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ e(we, { color: s, percent: c, size: 40, children: /* @__PURE__ */ e(H, { categoryGuid: n, variant: "basic" }) }) }),
922
922
  /* @__PURE__ */ e(
923
923
  Y,
924
924
  {
@@ -945,7 +945,7 @@ const xt = ({
945
945
  };
946
946
  return /* @__PURE__ */ m(pe, { elevation: 2, children: [
947
947
  /* @__PURE__ */ e(De, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(xe, { children: o.budget_categories_title }) }),
948
- /* @__PURE__ */ e(he, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ e(H, { children: i.map((n) => /* @__PURE__ */ m(l.Fragment, { children: [
948
+ /* @__PURE__ */ e(he, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ e(W, { children: i.map((n) => /* @__PURE__ */ m(l.Fragment, { children: [
949
949
  /* @__PURE__ */ e(Lt, { budget: n, onClick: a }),
950
950
  /* @__PURE__ */ e(ae, {})
951
951
  ] }, n.guid)) }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.55-alpha.mega3",
3
+ "version": "7.0.55-alpha.mega4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",