@mx-cartographer/experiences 7.0.56 → 7.0.57-alpha.mega3

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.
@@ -2,10 +2,10 @@ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import o from "@mui/material/Button";
3
3
  import i from "@mui/material/Stack";
4
4
  import { Icon as d } from "@mxenabled/mx-icons";
5
- import { H2 as f, Text as h } from "@mxenabled/mxui";
5
+ import { H2 as h, Text as f } from "@mxenabled/mxui";
6
6
  const S = ({
7
- icon: x,
8
- iconColor: c,
7
+ icon: c,
8
+ iconColor: x,
9
9
  header: s,
10
10
  onClick: a,
11
11
  primaryButton: r,
@@ -23,13 +23,13 @@ const S = ({
23
23
  ...l
24
24
  },
25
25
  children: [
26
- /* @__PURE__ */ t(d, { name: x, size: 54, sx: { color: c } }),
27
- /* @__PURE__ */ t(f, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: s }),
26
+ /* @__PURE__ */ t(d, { name: c, size: 54, sx: { color: x } }),
27
+ /* @__PURE__ */ t(h, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: s }),
28
28
  /* @__PURE__ */ t(
29
- h,
29
+ f,
30
30
  {
31
31
  color: "text.secondary",
32
- sx: { textAlign: "center", textWrap: "wrap" },
32
+ sx: { textAlign: "center", textWrap: "wrap", width: "calc(100% - 8px)" },
33
33
  variant: "Paragraph",
34
34
  children: p
35
35
  }
@@ -26,7 +26,7 @@ import * as O from "d3";
26
26
  import Xe from "@mui/material/Tooltip";
27
27
  import { u as se } from "../useScreenSize-B6JyS_Lj.mjs";
28
28
  import { L as G } from "../Loader-DUaFpDGv.mjs";
29
- import { E as de } from "../EmptyState-Cu00ZWJL.mjs";
29
+ import { E as de } from "../EmptyState-w2yYDuKG.mjs";
30
30
  import { A as L, W as Ke } from "../WidgetContainer-B8MRJ5Y1.mjs";
31
31
  import { u as Ve } from "../BudgetUtil-2EncZLBQ.mjs";
32
32
  import { M as Ye } from "../MiniWidgetContainer-DTQdRK-3.mjs";
@@ -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 && 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 () => {
399
+ const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d = t && 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 () => {
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);
@@ -419,7 +419,7 @@ const xt = ({
419
419
  width: 208,
420
420
  ...d && { mt: 16, button: { height: "max-content" } }
421
421
  },
422
- ...d && { mt: 0, svg: { height: 32, width: 32 } }
422
+ ...d && { justifyContent: "center", mt: 0, svg: { height: 32, width: 32 } }
423
423
  }
424
424
  }
425
425
  ) : /* @__PURE__ */ e(je, { children: h ? /* @__PURE__ */ e(
@@ -444,7 +444,7 @@ const xt = ({
444
444
  ...d && { mt: 16, button: { height: "max-content" } }
445
445
  },
446
446
  padding: t ? 5 : 0,
447
- ...d && { svg: { height: 32, width: 32 } }
447
+ ...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
448
448
  }
449
449
  }
450
450
  ) : /* @__PURE__ */ e(
@@ -469,7 +469,7 @@ const xt = ({
469
469
  ...d && { mt: 24, button: { height: "max-content" } }
470
470
  },
471
471
  padding: t ? 4 : 0,
472
- ...d && { svg: { height: 32, width: 32 } }
472
+ ...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
473
473
  }
474
474
  }
475
475
  ) });
@@ -491,32 +491,39 @@ const xt = ({
491
491
  }, C = () => {
492
492
  b(!0), r(L.ACCOUNTS_CLICK_CONNECT);
493
493
  };
494
- return d ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(B), children: /* @__PURE__ */ e(G, {}) }) : /* @__PURE__ */ m(F, { ml: a || _ ? 0 : 24, sx: { alignSelf: "center" }, children: [
495
- a || !g ? /* @__PURE__ */ e(
496
- At,
497
- {
498
- createBudgetOnClick: t,
499
- isMiniWidget: s,
500
- onConnectAccountsClick: C
501
- }
502
- ) : /* @__PURE__ */ e(
503
- vt,
504
- {
505
- height: o,
506
- isDraggable: i,
507
- onClick: f,
508
- width: B
509
- }
510
- ),
511
- /* @__PURE__ */ e(
512
- We,
513
- {
514
- onClose: () => b(!1),
515
- showConnectionsWidget: p,
516
- title: u.manage_connections
517
- }
518
- )
519
- ] });
494
+ return d ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(B), children: /* @__PURE__ */ e(G, {}) }) : /* @__PURE__ */ m(
495
+ F,
496
+ {
497
+ ml: a || _ ? 0 : 24,
498
+ sx: { alignSelf: "center", ...s && { height: "100%" } },
499
+ children: [
500
+ a || !g ? /* @__PURE__ */ e(
501
+ At,
502
+ {
503
+ createBudgetOnClick: t,
504
+ isMiniWidget: s,
505
+ onConnectAccountsClick: C
506
+ }
507
+ ) : /* @__PURE__ */ e(
508
+ vt,
509
+ {
510
+ height: o,
511
+ isDraggable: i,
512
+ onClick: f,
513
+ width: B
514
+ }
515
+ ),
516
+ /* @__PURE__ */ e(
517
+ We,
518
+ {
519
+ onClose: () => b(!1),
520
+ showConnectionsWidget: p,
521
+ title: u.manage_connections
522
+ }
523
+ )
524
+ ]
525
+ }
526
+ );
520
527
  }
521
528
  ), Tt = ({
522
529
  budgetsCopy: t,
@@ -28,7 +28,7 @@ import { I as hr } from "../CashflowStore-D9Dpuz7X.mjs";
28
28
  import { d as it } from "../GoalStore-DxOUk36P.mjs";
29
29
  import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-DxOUk36P.mjs";
30
30
  import { C as Sr } from "../CurrencyText-YUhH2caW.mjs";
31
- import { E as wr } from "../EmptyState-Cu00ZWJL.mjs";
31
+ import { E as wr } from "../EmptyState-w2yYDuKG.mjs";
32
32
  import { L as Cr } from "../ListItemAction-DSrYDGAP.mjs";
33
33
  import { T as ct } from "../TrendsStore-BKBnNQba.mjs";
34
34
  import { L as Dr, S as Ar } from "../TrendsStore-BKBnNQba.mjs";
@@ -48,7 +48,7 @@ import { isValid as ut } from "date-fns/isValid";
48
48
  import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
49
  import { DatePicker as pt } from "@mui/x-date-pickers";
50
50
  import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
51
- import { E as gt } from "../EmptyState-Cu00ZWJL.mjs";
51
+ import { E as gt } from "../EmptyState-w2yYDuKG.mjs";
52
52
  import { A as Y, W as bt } from "../WidgetContainer-B8MRJ5Y1.mjs";
53
53
  import { L as Ke } from "../Loader-DUaFpDGv.mjs";
54
54
  import ft from "@mui/material/Stack/Stack";
@@ -38,7 +38,7 @@ import { D as $e } from "../Drawer-kEE73B87.mjs";
38
38
  import { DataGridPro as qe } from "@mui/x-data-grid-pro";
39
39
  import { Stack as Ke } from "@mui/material";
40
40
  import { L as De } from "../Loader-DUaFpDGv.mjs";
41
- import { E as Ye } from "../EmptyState-Cu00ZWJL.mjs";
41
+ import { E as Ye } from "../EmptyState-w2yYDuKG.mjs";
42
42
  const de = ({ sx: t = {} }) => {
43
43
  const { investments: h } = E(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = H();
44
44
  return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
@@ -31,7 +31,7 @@ import { C as Me } from "../ConnectionsDrawer-CU3E2RLw.mjs";
31
31
  import He from "@mui/material/Collapse";
32
32
  import V from "@mui/material/ListItemIcon";
33
33
  import ie from "@mui/material/styles/useTheme";
34
- import { E as Be } from "../EmptyState-Cu00ZWJL.mjs";
34
+ import { E as Be } from "../EmptyState-w2yYDuKG.mjs";
35
35
  import { D as Y } from "../Drawer-kEE73B87.mjs";
36
36
  const Oe = ({
37
37
  chartData: t,
@@ -45,7 +45,7 @@ import Nt from "@mui/material/Paper";
45
45
  import { b as Ht } from "../CategoryUtil-BR3H5i6n.mjs";
46
46
  import { E as Wt } from "../ExportCsvAction-CBJAfyAw.mjs";
47
47
  import { u as Ot } from "../useInsightsEnabled-DSnpkUq0.mjs";
48
- import { E as Vt } from "../EmptyState-Cu00ZWJL.mjs";
48
+ import { E as Vt } from "../EmptyState-w2yYDuKG.mjs";
49
49
  import { k as Gt } from "../ConnectDrawer-DJA_S-rX.mjs";
50
50
  const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
51
51
  lt,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.56",
3
+ "version": "7.0.57-alpha.mega3",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",