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

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.0.58] - 10-24-2025
2
+
3
+ - **UPDATED** - Cash Flow mini widget zero state
4
+
1
5
  ## [7.0.57] - 10-22-2025
2
6
 
3
7
  - **FIXED** - Layout cutoff issue on Create Budgets for mobile devices
@@ -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
  ),
@@ -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;