@mx-cartographer/experiences 7.0.59-alpha.al0 → 7.0.59

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,11 @@
1
+ ## [7.0.59] - 10-27-2025
2
+
3
+ - **UPDATED** - Cash Flow mini widget zero state
4
+
5
+ ## [7.0.58] - 10-24-2025
6
+
7
+ - **FIXED** - Trends Insights Micro Widget navigation overlapped in stand-alone widget
8
+
1
9
  ## [7.0.57] - 10-22-2025
2
10
 
3
11
  - **FIXED** - Layout cutoff issue on Create Budgets for mobile devices
@@ -1,41 +1,42 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import o from "@mui/material/Button";
3
- import i from "@mui/material/Stack";
4
- import { Icon as d } from "@mxenabled/mx-icons";
5
- import { H2 as h, Text as f } from "@mxenabled/mxui";
6
- const S = ({
7
- icon: c,
8
- iconColor: x,
9
- header: s,
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import i from "@mui/material/Button";
3
+ import c from "@mui/material/Stack";
4
+ import { Icon as x } from "@mxenabled/mx-icons";
5
+ import { H2 as f, Text as g } from "@mxenabled/mxui";
6
+ const k = ({
7
+ icon: s,
8
+ iconColor: l,
9
+ header: p,
10
10
  onClick: a,
11
11
  primaryButton: r,
12
+ primaryButtonStartIcon: n,
12
13
  secondaryButton: e,
13
- subText: p,
14
- sx: l,
15
- variant: m = "buttons"
16
- }) => /* @__PURE__ */ n(
17
- i,
14
+ subText: m,
15
+ sx: d,
16
+ variant: h = "buttons"
17
+ }) => /* @__PURE__ */ o(
18
+ c,
18
19
  {
19
20
  sx: {
20
21
  mt: 54,
21
22
  alignItems: "center",
22
23
  alignSelf: "center",
23
- ...l
24
+ ...d
24
25
  },
25
26
  children: [
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 }),
27
+ /* @__PURE__ */ t(x, { name: s, size: 54, sx: { color: l } }),
28
+ /* @__PURE__ */ t(f, { color: "text.primary", sx: { textWrap: "wrap", textAlign: "center" }, children: p }),
28
29
  /* @__PURE__ */ t(
29
- f,
30
+ g,
30
31
  {
31
32
  color: "text.secondary",
32
33
  sx: { textAlign: "center", textWrap: "wrap", width: "calc(100% - 8px)" },
33
34
  variant: "Paragraph",
34
- children: p
35
+ children: m
35
36
  }
36
37
  ),
37
- m === "buttons" && (r || e) && /* @__PURE__ */ n(
38
- i,
38
+ h === "buttons" && (r || e) && /* @__PURE__ */ o(
39
+ c,
39
40
  {
40
41
  className: "buttons-footer",
41
42
  sx: {
@@ -44,16 +45,17 @@ const S = ({
44
45
  },
45
46
  children: [
46
47
  r && /* @__PURE__ */ t(
47
- o,
48
+ i,
48
49
  {
49
50
  onClick: () => a?.("primary"),
51
+ startIcon: n ? /* @__PURE__ */ t(x, { name: n }) : void 0,
50
52
  sx: { textWrap: "nowrap" },
51
53
  variant: "contained",
52
54
  children: r
53
55
  }
54
56
  ),
55
57
  e && /* @__PURE__ */ t(
56
- o,
58
+ i,
57
59
  {
58
60
  onClick: () => a?.("secondary"),
59
61
  sx: { textWrap: "nowrap" },
@@ -68,5 +70,5 @@ const S = ({
68
70
  }
69
71
  );
70
72
  export {
71
- S as E
73
+ k as E
72
74
  };
@@ -1,24 +1,24 @@
1
1
  import { jsx as e, Fragment as x, jsxs as t } from "react/jsx-runtime";
2
- import m from "react";
3
- import { observer as u } from "mobx-react-lite";
4
- import s from "@mui/material/Box";
5
- import l from "@mui/material/Tab";
2
+ import u from "react";
3
+ import { observer as h } from "mobx-react-lite";
4
+ import c from "@mui/material/Box";
5
+ import p from "@mui/material/Tab";
6
6
  import b from "@mui/material/Tabs";
7
- import p from "@mui/material/Divider";
7
+ import d from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
10
  import { R as C, A as S, a as E, M as v } from "./ManageIncome-BX7dzGF8.mjs";
11
- import { u as h, j as A, g as _ } from "./hooks-CE2TKk4a.mjs";
11
+ import { u as _, j as A, g as f } from "./hooks-CE2TKk4a.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-DTUx9VN1.mjs";
13
- import { A as d } from "./WidgetContainer-B8MRJ5Y1.mjs";
14
- const I = u(() => {
15
- const { recurring: n } = h(), { repeatingTransactions: c } = A(), { onEvent: o } = _(), a = (r) => {
16
- o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
13
+ import { A as m } from "./WidgetContainer-B8MRJ5Y1.mjs";
14
+ const I = h(() => {
15
+ const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
16
+ o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
17
17
  repeating_transaction_guid: r.guid
18
18
  });
19
- }, g = () => {
20
- o(d.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
21
- }, i = c.filter(
19
+ }, a = () => {
20
+ o(m.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
21
+ }, i = n.filter(
22
22
  (r) => r.repeating_transaction_type !== y.Income && (r.transactions.length > 0 || r.recurrence_type === N.EveryYear)
23
23
  );
24
24
  return /* @__PURE__ */ e(x, { children: i.length !== 0 ? /* @__PURE__ */ t(
@@ -29,19 +29,19 @@ const I = u(() => {
29
29
  maxHeight: "calc(100vh - 109px)"
30
30
  },
31
31
  children: [
32
- /* @__PURE__ */ e(s, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(R, { sx: { bgcolor: "background.paper" }, children: i.map((r, f) => /* @__PURE__ */ t(m.Fragment, { children: [
33
- /* @__PURE__ */ e(C, { onClick: a, repeatingTransaction: r }),
32
+ /* @__PURE__ */ e(c, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(R, { sx: { bgcolor: "background.paper" }, children: i.map((r, s) => /* @__PURE__ */ t(u.Fragment, { children: [
33
+ /* @__PURE__ */ e(C, { onClick: l, repeatingTransaction: r }),
34
34
  /* @__PURE__ */ e(
35
- p,
35
+ d,
36
36
  {
37
- variant: f < i.length - 1 ? "inset" : "fullWidth"
37
+ variant: s < i.length - 1 ? "inset" : "fullWidth"
38
38
  }
39
39
  )
40
40
  ] }, r.guid)) }) }),
41
- /* @__PURE__ */ t(s, { children: [
42
- /* @__PURE__ */ e(p, {}),
41
+ /* @__PURE__ */ t(c, { children: [
42
+ /* @__PURE__ */ e(d, {}),
43
43
  /* @__PURE__ */ e(
44
- s,
44
+ c,
45
45
  {
46
46
  sx: {
47
47
  alignContent: "center",
@@ -51,30 +51,30 @@ const I = u(() => {
51
51
  py: 12,
52
52
  textAlign: "right"
53
53
  },
54
- children: /* @__PURE__ */ e(S, { label: n.add_expense, onAddRecurringTransaction: g })
54
+ children: /* @__PURE__ */ e(S, { label: g.add_expense, onAddRecurringTransaction: a })
55
55
  }
56
56
  )
57
57
  ] })
58
58
  ]
59
59
  }
60
60
  ) : /* @__PURE__ */ e(E, { zeroStateFor: "expenses" }) });
61
- }), X = u(() => {
62
- const [n, c] = m.useState(0), { onEvent: o } = _(), { recurring: a } = h();
63
- return /* @__PURE__ */ t(s, { bgcolor: "background.default", height: "100%", children: [
61
+ }), X = h(({ defaultSelectedTab: g = 0 }) => {
62
+ const [n, o] = u.useState(g), { onEvent: l } = f(), { recurring: a } = _();
63
+ return /* @__PURE__ */ t(c, { bgcolor: "background.default", height: "100%", children: [
64
64
  /* @__PURE__ */ t(
65
65
  b,
66
66
  {
67
- onChange: (i, r) => {
68
- c(r), o(
69
- r === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
67
+ onChange: (r, s) => {
68
+ o(s), l(
69
+ s === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
70
70
  );
71
71
  },
72
72
  sx: { bgcolor: "background.paper", mb: 0 },
73
73
  value: n,
74
74
  variant: "fullWidth",
75
75
  children: [
76
- /* @__PURE__ */ e(l, { label: a.expenses }),
77
- /* @__PURE__ */ e(l, { label: a.income })
76
+ /* @__PURE__ */ e(p, { label: a.expenses }),
77
+ /* @__PURE__ */ e(p, { label: a.income })
78
78
  ]
79
79
  }
80
80
  ),
@@ -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-w2yYDuKG.mjs";
29
+ import { E as de } from "../EmptyState-DsXpMcro.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";
@@ -1,6 +1,4 @@
1
- import { default as React } from 'react';
2
- interface CashflowWidgetContentProps {
3
- onAddIncomeClick?: () => void;
4
- }
5
- declare const _default: React.FunctionComponent<CashflowWidgetContentProps>;
1
+ declare const _default: (() => import("react/jsx-runtime").JSX.Element) & {
2
+ displayName: string;
3
+ };
6
4
  export default _default;