@mx-cartographer/experiences 7.12.17 → 7.13.0

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
  3. package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
  4. package/dist/AccountListItem-LcJVJysf.mjs +90 -0
  5. package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
  6. package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
  7. package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
  8. package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
  9. package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
  10. package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
  11. package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
  12. package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
  13. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  14. package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
  15. package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
  16. package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
  17. package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
  18. package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
  19. package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
  20. package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
  21. package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
  22. package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
  23. package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
  24. package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
  25. package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
  26. package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
  27. package/dist/accounts/index.es.js +107 -107
  28. package/dist/analytics/index.es.js +18 -18
  29. package/dist/budgets/index.es.js +182 -182
  30. package/dist/cashflow/index.es.js +223 -223
  31. package/dist/categories/index.es.js +1 -1
  32. package/dist/common/index.es.js +54 -64
  33. package/dist/dashboard/index.es.js +9 -9
  34. package/dist/debts/index.es.js +469 -469
  35. package/dist/finstrong/index.es.js +68 -68
  36. package/dist/goals/index.es.js +437 -437
  37. package/dist/help/index.es.js +2 -2
  38. package/dist/insights/index.es.js +159 -159
  39. package/dist/investments/index.es.js +292 -292
  40. package/dist/merchants/index.es.js +12 -12
  41. package/dist/networth/index.es.js +175 -168
  42. package/dist/notifications/index.es.js +13 -13
  43. package/dist/recurringtransactions/index.es.js +69 -69
  44. package/dist/settings/index.es.js +187 -187
  45. package/dist/spending/index.es.js +58 -58
  46. package/dist/transactions/index.es.js +70 -70
  47. package/dist/trends/index.es.js +15 -15
  48. package/package.json +1 -1
  49. package/dist/AccountListItem-BAf03YhK.mjs +0 -90
  50. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
@@ -1,26 +1,26 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import u from "react";
3
3
  import { observer as D } from "mobx-react-lite";
4
- import { useVirtualizer as B } from "@tanstack/react-virtual";
5
- import b from "@mui/material/Box";
6
- import H from "@mui/material/Divider";
7
- import W from "@mui/material/List";
8
- import { G as X, h as E, u as R, g as K } from "./hooks-BxkfR-Ff.mjs";
9
- import { MerchantLogo as P, Icon as v, Text as l, P as Y, H2 as Z } from "@mxenabled/mxui";
10
- import F from "@mui/material/ListItemAvatar";
11
- import q from "@mui/material/ListItemText";
4
+ import { useVirtualizer as H } from "@tanstack/react-virtual";
5
+ import y from "@mui/material/Box";
6
+ import W from "@mui/material/Divider";
7
+ import B from "@mui/material/List";
8
+ import { G as K, h as E, u as R, g as P } from "./hooks-BxkfR-Ff.mjs";
9
+ import { MerchantLogo as Y, Icon as v, Text as l, P as Z, H2 as F } from "@mxenabled/mxui";
10
+ import q from "@mui/material/ListItemAvatar";
11
+ import J from "@mui/material/ListItemText";
12
12
  import s from "@mui/material/Stack";
13
- import { useTheme as J } from "@mui/material/styles";
14
- import { T as Q, L as ee, O as te } from "./Transaction-CqjlF6SO.mjs";
13
+ import { useTheme as Q } from "@mui/material/styles";
14
+ import { T as X, L as ee, O as te } from "./Transaction-CqjlF6SO.mjs";
15
15
  import { f as re } from "./NumberFormatting-QCaNwbjv.mjs";
16
16
  import { Receipt as oe } from "@mxenabled/mx-icons";
17
- import { fromUnixTime as y } from "date-fns/fromUnixTime";
17
+ import { fromUnixTime as w } from "date-fns/fromUnixTime";
18
18
  import { isSameDay as z } from "date-fns/isSameDay";
19
19
  import { h as ne } from "./DateUtil-wcYTmDRD.mjs";
20
20
  import { L as ie } from "./Loader-D3rjKx72.mjs";
21
21
  import { A as se } from "./Analytics-BYItVAe-.mjs";
22
22
  const C = () => {
23
- if (!u.useContext(X))
23
+ if (!u.useContext(K))
24
24
  throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
25
25
  return E().uiStore;
26
26
  };
@@ -39,7 +39,7 @@ function le(e) {
39
39
  });
40
40
  }
41
41
  const de = ({ transaction: e, onClick: r }) => {
42
- const c = J().palette.mode === "dark", { associatedBeats: m } = E(), { expandedSplits: h } = C(), { transactions: d } = R(), { showInsights: f } = C(), g = e.transaction_type === Q.CREDIT, _ = u.useMemo(() => m.find((x) => x.associated_transaction_guid === e.guid), [m, e]);
42
+ const c = Q().palette.mode === "dark", { associatedBeats: p } = E(), { expandedSplits: h } = C(), { transactions: d } = R(), { showInsights: f } = C(), g = e.transaction_type === X.CREDIT, _ = u.useMemo(() => p.find((x) => x.associated_transaction_guid === e.guid), [p, e]);
43
43
  return (
44
44
  //TODO: implement common/components/ListItemRow.tsx
45
45
  /* @__PURE__ */ n(
@@ -48,15 +48,15 @@ const de = ({ transaction: e, onClick: r }) => {
48
48
  clickEventName: te.ON_TRANSACTION_LIST_ITEM_CLICK,
49
49
  onClick: r ? () => r(e.guid) : void 0,
50
50
  children: [
51
- /* @__PURE__ */ t(F, { children: e.parent_guid && h.includes(e.parent_guid) ? /* @__PURE__ */ t(u.Fragment, {}) : /* @__PURE__ */ t(
52
- P,
51
+ /* @__PURE__ */ t(q, { children: e.parent_guid && h.includes(e.parent_guid) ? /* @__PURE__ */ t(u.Fragment, {}) : /* @__PURE__ */ t(
52
+ Y,
53
53
  {
54
54
  categoryGuid: e.top_level_category_guid || "",
55
55
  merchantGuid: e.merchant_guid || ""
56
56
  }
57
57
  ) }),
58
58
  /* @__PURE__ */ t(
59
- q,
59
+ J,
60
60
  {
61
61
  disableTypography: !0,
62
62
  secondary: /* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", children: [
@@ -72,7 +72,7 @@ const de = ({ transaction: e, onClick: r }) => {
72
72
  ),
73
73
  e.is_hidden && /* @__PURE__ */ t(v, { name: "visibility_off", size: 16 }),
74
74
  e.has_been_split && /* @__PURE__ */ t(v, { name: "call_split", size: 16 }),
75
- /* @__PURE__ */ t(l, { variant: "XSmall", children: e.has_been_split ? d.split_transaction_category_label : e.category })
75
+ /* @__PURE__ */ t(l, { variant: "caption", children: e.has_been_split ? d.split_transaction_category_label : e.category })
76
76
  ] }),
77
77
  _ && f && /* @__PURE__ */ t(
78
78
  l,
@@ -82,13 +82,13 @@ const de = ({ transaction: e, onClick: r }) => {
82
82
  onClick: (x) => {
83
83
  x.stopPropagation(), x.preventDefault(), le(_.guid);
84
84
  },
85
- variant: "XSmall",
85
+ variant: "caption",
86
86
  children: _.short_title
87
87
  }
88
88
  )
89
89
  ] }),
90
90
  children: /* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
91
- /* @__PURE__ */ n(l, { bold: !0, variant: "Body", children: [
91
+ /* @__PURE__ */ n(l, { bold: !0, variant: "body1", children: [
92
92
  e.is_hidden && d.hide_trnx_cancel_hidden_note,
93
93
  e.payee || e.description || e.feed_description
94
94
  ] }),
@@ -98,7 +98,7 @@ const de = ({ transaction: e, onClick: r }) => {
98
98
  bold: !0,
99
99
  color: g ? "success.main" : "text.primary",
100
100
  sx: { flexShrink: 0 },
101
- variant: "Body",
101
+ variant: "body1",
102
102
  children: [
103
103
  g ? "+" : "",
104
104
  re(e.amount, "0,0.00")
@@ -112,28 +112,28 @@ const de = ({ transaction: e, onClick: r }) => {
112
112
  }
113
113
  )
114
114
  );
115
- }, ue = D(de), me = ({
115
+ }, ue = D(de), pe = ({
116
116
  bgcolor: e = "background.default",
117
117
  children: r
118
- }) => /* @__PURE__ */ t(b, { display: "inline-block", sx: { bgcolor: e, py: 6, width: "100%" }, children: /* @__PURE__ */ t(l, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), pe = ({ showIcon: e = !0, showSubtitle: r = !0 }) => {
118
+ }) => /* @__PURE__ */ t(y, { display: "inline-block", sx: { bgcolor: e, py: 6, width: "100%" }, children: /* @__PURE__ */ t(l, { bold: !0, sx: { pl: 24 }, variant: "caption", children: r }) }), me = ({ showIcon: e = !0, showSubtitle: r = !0 }) => {
119
119
  const { transactions: o } = R();
120
120
  return /* @__PURE__ */ n(s, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
121
121
  e && /* @__PURE__ */ t(oe, { color: "action", sx: { fontSize: 32 } }),
122
- /* @__PURE__ */ t(l, { bold: !0, color: "text.secondary", variant: "Small", children: o.zero_state_no_transactions }),
123
- r && /* @__PURE__ */ t(l, { color: "text.secondary", variant: "XSmall", children: o.zero_state_there_are_no_transactions })
122
+ /* @__PURE__ */ t(l, { bold: !0, color: "text.secondary", variant: "body2", children: o.zero_state_no_transactions }),
123
+ r && /* @__PURE__ */ t(l, { color: "text.secondary", variant: "caption", children: o.zero_state_there_are_no_transactions })
124
124
  ] });
125
- }, he = D(pe), k = (e, r) => {
126
- const o = y(r[e].date), c = y(r[e - 1]?.date);
125
+ }, he = D(me), k = (e, r) => {
126
+ const o = w(r[e].date), c = w(r[e - 1]?.date);
127
127
  return !z(o, c);
128
128
  }, fe = (e, r) => {
129
- const o = y(r[e].date), c = y(r[e + 1]?.date);
129
+ const o = w(r[e].date), c = w(r[e + 1]?.date);
130
130
  return z(o, c);
131
131
  }, A = 65, N = 32, ge = ({
132
132
  bgcolor: e,
133
133
  filter: r,
134
134
  height: o = "calc(100dvh - 36px)",
135
135
  loader: c = /* @__PURE__ */ t(ie, { label: "Loading", size: 40 }),
136
- onClick: m,
136
+ onClick: p,
137
137
  showInsights: h = !1,
138
138
  showLoader: d = !1,
139
139
  showHiddenTransactions: f = !1,
@@ -141,11 +141,11 @@ const de = ({ transaction: e, onClick: r }) => {
141
141
  width: _ = "100%",
142
142
  zeroState: x = /* @__PURE__ */ t(he, {})
143
143
  }) => {
144
- const { isLoading: w, sortedTransactions: I } = E(), p = u.useMemo(() => {
144
+ const { isLoading: S, sortedTransactions: I } = E(), m = u.useMemo(() => {
145
145
  const i = r ? I.filter(r) : I, a = g ?? i;
146
- return f ? a : a.filter((S) => !S.is_hidden);
147
- }, [I, f]), { clearExpandedSplits: O, setShowInsights: G, toggleSplit: M } = C(), { onEvent: V } = K(), $ = (i) => {
148
- const a = p.find((S) => S.guid === i);
146
+ return f ? a : a.filter((T) => !T.is_hidden);
147
+ }, [I, f]), { clearExpandedSplits: O, setShowInsights: G, toggleSplit: M } = C(), { onEvent: V } = P(), $ = (i) => {
148
+ const a = m.find((T) => T.guid === i);
149
149
  if (a?.has_been_split) {
150
150
  M(a.guid);
151
151
  return;
@@ -153,30 +153,30 @@ const de = ({ transaction: e, onClick: r }) => {
153
153
  V(se.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
154
154
  account_guid: a?.account_guid,
155
155
  transaction_guid: i
156
- }), m?.(i);
157
- }, L = u.useRef(null), T = B({
158
- count: p.length,
156
+ }), p?.(i);
157
+ }, L = u.useRef(null), b = H({
158
+ count: m.length,
159
159
  getScrollElement: () => L.current,
160
- estimateSize: (i) => A + (k(i, p) ? N : 0),
160
+ estimateSize: (i) => A + (k(i, m) ? N : 0),
161
161
  overscan: 5
162
162
  });
163
- return u.useEffect(() => T.measure(), [p]), u.useEffect(() => G(h), [h]), u.useEffect(() => () => O(), []), /* @__PURE__ */ t(W, { component: "div", role: "list", sx: { width: _ }, children: /* @__PURE__ */ t(b, { height: o, overflow: "auto", ref: L, role: "presentation", width: _, children: /* @__PURE__ */ n(
164
- b,
163
+ return u.useEffect(() => b.measure(), [m]), u.useEffect(() => G(h), [h]), u.useEffect(() => () => O(), []), /* @__PURE__ */ t(B, { component: "div", role: "list", sx: { width: _ }, children: /* @__PURE__ */ t(y, { height: o, overflow: "auto", ref: L, role: "presentation", width: _, children: /* @__PURE__ */ n(
164
+ y,
165
165
  {
166
166
  height: (
167
167
  // set the height to auto when there are no transactions so the zero state isn't set to 0
168
- T.getVirtualItems().length === 0 ? "auto" : T.getTotalSize()
168
+ b.getVirtualItems().length === 0 ? "auto" : b.getTotalSize()
169
169
  ),
170
170
  position: "relative",
171
171
  role: "presentation",
172
172
  width: "100%",
173
173
  children: [
174
- (w || d) && c,
175
- !w && !d && T.getVirtualItems().length === 0 && x,
176
- !w && !d && T.getVirtualItems().length > 0 && T.getVirtualItems().map((i) => {
177
- const a = p[i.index], S = k(i.index, p), U = fe(i.index, p), j = A + (S ? N : 0);
174
+ (S || d) && c,
175
+ !S && !d && b.getVirtualItems().length === 0 && x,
176
+ !S && !d && b.getVirtualItems().length > 0 && b.getVirtualItems().map((i) => {
177
+ const a = m[i.index], T = k(i.index, m), U = fe(i.index, m), j = A + (T ? N : 0);
178
178
  return /* @__PURE__ */ n(
179
- b,
179
+ y,
180
180
  {
181
181
  role: "listitem",
182
182
  sx: {
@@ -187,15 +187,15 @@ const de = ({ transaction: e, onClick: r }) => {
187
187
  bgcolor: "background.paper"
188
188
  },
189
189
  children: [
190
- S && /* @__PURE__ */ t(me, { bgcolor: e, children: ne(a.date) }),
190
+ T && /* @__PURE__ */ t(pe, { bgcolor: e, children: ne(a.date) }),
191
191
  /* @__PURE__ */ t(
192
192
  ue,
193
193
  {
194
- ...m && { onClick: $ },
194
+ ...p && { onClick: $ },
195
195
  transaction: a
196
196
  }
197
197
  ),
198
- /* @__PURE__ */ t(H, { sx: { ml: U ? 68 : 0 } })
198
+ /* @__PURE__ */ t(W, { sx: { ml: U ? 68 : 0 } })
199
199
  ]
200
200
  },
201
201
  a.guid
@@ -209,17 +209,17 @@ const de = ({ transaction: e, onClick: r }) => {
209
209
  borderRadius: r = "2px",
210
210
  completeColor: o = "success.main",
211
211
  icon: c,
212
- label: m,
212
+ label: p,
213
213
  leftLabel: h,
214
214
  percentComplete: d = 0,
215
215
  rightLabel: f,
216
216
  sx: g
217
217
  }) => /* @__PURE__ */ t(s, { sx: { p: 24, width: "100%", ...g }, children: /* @__PURE__ */ n(s, { className: "details-container", sx: { gap: 16 }, children: [
218
218
  /* @__PURE__ */ n(s, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
219
- /* @__PURE__ */ t(b, { children: c }),
219
+ /* @__PURE__ */ t(y, { children: c }),
220
220
  /* @__PURE__ */ n(s, { children: [
221
- /* @__PURE__ */ t(Y, { variant: "body2", children: m }),
222
- typeof e == "string" ? /* @__PURE__ */ t(Z, { children: e }) : e
221
+ /* @__PURE__ */ t(Z, { variant: "body2", children: p }),
222
+ typeof e == "string" ? /* @__PURE__ */ t(F, { children: e }) : e
223
223
  ] })
224
224
  ] }),
225
225
  /* @__PURE__ */ n(s, { sx: { gap: 4 }, children: [
@@ -234,7 +234,7 @@ const de = ({ transaction: e, onClick: r }) => {
234
234
  width: "100%"
235
235
  },
236
236
  children: /* @__PURE__ */ t(
237
- b,
237
+ y,
238
238
  {
239
239
  sx: {
240
240
  bgcolor: o,
@@ -253,7 +253,7 @@ const de = ({ transaction: e, onClick: r }) => {
253
253
  ] })
254
254
  ] }) }), Ue = _e;
255
255
  export {
256
- me as S,
256
+ pe as S,
257
257
  $e as T,
258
258
  ue as a,
259
259
  Ue as b,