@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms2

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 (90) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-Cp30A3ad.mjs} +1 -1
  2. package/dist/AccountDetailsContent-C1HumFnW.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-NMx79DGs.mjs} +17 -17
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-CW6cIthP.mjs} +8 -8
  5. package/dist/AccountListItem-DxmAs98Z.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DUHkUyK4.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-CIDAPPPT.mjs} +30 -30
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-naOtJcwo.mjs} +22 -15
  10. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +26 -26
  11. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +60 -61
  12. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
  13. package/dist/CurrencyInput-BrGvhgVK.mjs +85 -0
  14. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-hi1cqrRk.mjs} +3 -3
  15. package/dist/{Drawer-BF40nbsH.mjs → Drawer-Dqe5EqvA.mjs} +6 -6
  16. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
  17. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-dKZOZ2hM.mjs} +3 -3
  18. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-CFeAJloA.mjs} +3 -3
  19. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  20. package/dist/{Help-DBfsTkAi.mjs → Help-i4OasOO-.mjs} +176 -158
  21. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  22. package/dist/Loader-BSWSYqvn.mjs +24 -0
  23. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-D_qVX5dN.mjs} +44 -44
  24. package/dist/{MiniWidgetContainer-CKzf_Ira.mjs → MiniWidgetContainer-D7MkHG15.mjs} +12 -12
  25. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-8FFC1Bs0.mjs} +2 -2
  26. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-BsWiYD94.mjs} +67 -67
  27. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-62e0mU_3.mjs} +7 -7
  28. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
  29. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-Bhx56aA3.mjs} +76 -76
  30. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
  31. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-C6KH8JH4.mjs} +1 -1
  32. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  33. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +1 -1
  34. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CZzDb-7d.mjs} +10 -10
  35. package/dist/TransactionDetails-Duv1X9ec.mjs +1379 -0
  36. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-DgLrYW4C.mjs} +3 -3
  37. package/dist/{User-BklmOUSd.mjs → User-DqNX2GAK.mjs} +107 -107
  38. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +178 -177
  39. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-B1Jzb4XA.mjs} +6 -6
  40. package/dist/accounts/index.es.js +45 -45
  41. package/dist/analytics/index.es.js +22 -22
  42. package/dist/budgets/index.es.js +266 -265
  43. package/dist/cashflow/index.es.js +155 -154
  44. package/dist/categories/index.es.js +1 -1
  45. package/dist/common/components/Loader.d.ts +2 -1
  46. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  47. package/dist/common/components/barchart/Bar.d.ts +25 -0
  48. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  49. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  50. package/dist/common/components/barchart/Legend.d.ts +8 -0
  51. package/dist/common/components/barchart/Util.d.ts +42 -0
  52. package/dist/common/components/barchart/index.d.ts +1 -0
  53. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  54. package/dist/common/components/index.d.ts +1 -0
  55. package/dist/common/index.es.js +659 -394
  56. package/dist/common/utils/Theme.d.ts +3 -1
  57. package/dist/dashboard/index.es.js +21 -21
  58. package/dist/debts/components/DebtsChart.d.ts +2 -1
  59. package/dist/debts/index.es.js +438 -438
  60. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +1 -1
  61. package/dist/finstrong/index.es.js +113 -113
  62. package/dist/goals/index.es.js +379 -385
  63. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  64. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  65. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  66. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  67. package/dist/help/index.es.js +3 -3
  68. package/dist/investments/index.es.js +279 -278
  69. package/dist/merchants/index.es.js +16 -16
  70. package/dist/microinsights/index.es.js +1 -1
  71. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  72. package/dist/networth/index.es.js +185 -191
  73. package/dist/notifications/index.es.js +29 -29
  74. package/dist/recurringtransactions/index.es.js +82 -82
  75. package/dist/settings/index.es.js +254 -254
  76. package/dist/spending/index.es.js +43 -43
  77. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  78. package/dist/transactions/index.es.js +150 -149
  79. package/dist/trends/index.es.js +297 -296
  80. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
  81. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  82. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  83. package/package.json +30 -30
  84. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  85. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  86. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  87. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  88. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  89. package/dist/SearchBox-B7km148n.mjs +0 -39
  90. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -7,30 +7,30 @@ import v from "@mui/material/Box";
7
7
  import b from "@mui/material/Stack";
8
8
  import k from "@mui/material/Tab";
9
9
  import at from "@mui/material/Tabs";
10
- import { useTheme as mt } from "@mui/material/styles";
11
- import { g as it, a as rt, S as G, b as q } from "../SpendingLegend-6FqtMcBV.mjs";
10
+ import mt from "@mui/material/styles/useTheme";
11
+ import { g as it, a as rt, S as B, b as Y } from "../SpendingLegend-CZzDb-7d.mjs";
12
12
  import { Text as C, Icon as ht } from "@mxenabled/mxui";
13
13
  import { f as R } from "../NumberFormatting-DjTD0t3W.mjs";
14
14
  import { u as L, m as W, d as st, b as P, a as F, h as ct, g as ft, n as bt } from "../hooks-C41HAxM5.mjs";
15
- import { L as lt } from "../Loader-Ckqi9Rx6.mjs";
16
- import { M as _t } from "../MiniWidgetContainer-CKzf_Ira.mjs";
17
- import { startOfToday as J } from "date-fns/startOfToday";
15
+ import { L as lt } from "../Loader-BSWSYqvn.mjs";
16
+ import { M as _t } from "../MiniWidgetContainer-D7MkHG15.mjs";
17
+ import { startOfToday as q } from "date-fns/startOfToday";
18
18
  import yt from "@mui/material/Button";
19
19
  import { useTheme as Ct } from "@mui/material";
20
- import { e as St } from "../exportTransactionsToCSV-BgV_wTLT.mjs";
21
- import { T as Tt, a as Mt } from "../TransactionDetails-Bn0qY5Hw.mjs";
20
+ import { e as St } from "../exportTransactionsToCSV-BFpuIAXW.mjs";
21
+ import { T as Tt, a as Mt } from "../TransactionDetails-Duv1X9ec.mjs";
22
22
  import Dt from "@mui/material/Collapse";
23
23
  import z from "@mui/material/Divider";
24
- import Q from "@mui/material/List";
25
- import X from "@mui/material/ListItem";
24
+ import J from "@mui/material/List";
25
+ import Q from "@mui/material/ListItem";
26
26
  import xt from "@mui/material/ListItemButton";
27
- import { u as vt } from "../useScreenSize-B5afALev.mjs";
28
- import { D as Z } from "../Drawer-BF40nbsH.mjs";
27
+ import { u as vt } from "../useScreenSize-B6JyS_Lj.mjs";
28
+ import { D as Z } from "../Drawer-Dqe5EqvA.mjs";
29
29
  import { b as x } from "../Category-Ccoew_sA.mjs";
30
- import { A as tt, W as wt } from "../WidgetContainer-CDh9fjpR.mjs";
31
- const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column", children: [
32
- /* @__PURE__ */ t(C, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
33
- /* @__PURE__ */ t(C, { variant: "caption", children: R(n, "0,0") })
30
+ import { A as tt, W as wt } from "../WidgetContainer-B1Jzb4XA.mjs";
31
+ const G = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column", children: [
32
+ /* @__PURE__ */ t(C, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: d }),
33
+ /* @__PURE__ */ t(C, { variant: "XSmall", children: R(n, "0,0") })
34
34
  ] }), Lt = () => {
35
35
  const n = mt(), { goals: d, spending: o } = L(), { categories: r, dateRangeCategoryTotals: a } = W(), c = i.useMemo(
36
36
  () => [
@@ -68,7 +68,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
68
68
  "aria-controls": "spending-tabpanel",
69
69
  id: "spending-tab",
70
70
  label: /* @__PURE__ */ t(
71
- j,
71
+ G,
72
72
  {
73
73
  amount: m.totalAmount,
74
74
  label: o.spend_tab_title
@@ -83,7 +83,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
83
83
  "aria-controls": "income-tabpanel",
84
84
  id: "income-tab",
85
85
  label: /* @__PURE__ */ t(
86
- j,
86
+ G,
87
87
  {
88
88
  amount: p.totalAmount,
89
89
  label: o.income_tab_title
@@ -104,7 +104,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
104
104
  role: "tabpanel",
105
105
  children: /* @__PURE__ */ s(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
106
106
  /* @__PURE__ */ t(
107
- G,
107
+ B,
108
108
  {
109
109
  data: m,
110
110
  onSelected: f,
@@ -112,7 +112,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
112
112
  totalLabel: o.total_spending
113
113
  }
114
114
  ),
115
- /* @__PURE__ */ t(q, { data: m, onSelected: f, selectedId: e })
115
+ /* @__PURE__ */ t(Y, { data: m, onSelected: f, selectedId: e })
116
116
  ] })
117
117
  }
118
118
  ),
@@ -125,7 +125,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
125
125
  role: "tabpanel",
126
126
  children: /* @__PURE__ */ s(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
127
127
  /* @__PURE__ */ t(
128
- G,
128
+ B,
129
129
  {
130
130
  data: p,
131
131
  isIncome: !0,
@@ -134,7 +134,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
134
134
  totalLabel: o.total_income
135
135
  }
136
136
  ),
137
- /* @__PURE__ */ t(q, { data: p, onSelected: f, selectedId: e })
137
+ /* @__PURE__ */ t(Y, { data: p, onSelected: f, selectedId: e })
138
138
  ] })
139
139
  }
140
140
  )
@@ -172,9 +172,9 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
172
172
  return /* @__PURE__ */ s(b, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
173
173
  /* @__PURE__ */ t(C, { bold: !0, sx: { py: 12 }, children: `${r} ${a.by_category}` }),
174
174
  /* @__PURE__ */ t(z, { "aria-hidden": "true" }),
175
- /* @__PURE__ */ t(Q, { children: n.categoryData.map((e) => /* @__PURE__ */ s(i.Fragment, { children: [
175
+ /* @__PURE__ */ t(J, { children: n.categoryData.map((e) => /* @__PURE__ */ s(i.Fragment, { children: [
176
176
  /* @__PURE__ */ t(
177
- X,
177
+ Q,
178
178
  {
179
179
  disableGutters: !0,
180
180
  disablePadding: !0,
@@ -207,7 +207,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
207
207
  width: "100%",
208
208
  children: [
209
209
  /* @__PURE__ */ t(C, { bold: o === e.guid, children: e.name }),
210
- /* @__PURE__ */ t(C, { bold: o === e.guid, variant: "body1", children: R(e.amount, "0,0") })
210
+ /* @__PURE__ */ t(C, { bold: o === e.guid, variant: "Body", children: R(e.amount, "0,0") })
211
211
  ]
212
212
  }
213
213
  )
@@ -217,9 +217,9 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
217
217
  }
218
218
  ),
219
219
  /* @__PURE__ */ t(z, {}),
220
- e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(Dt, { in: c?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ s(Q, { children: [
220
+ e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(Dt, { in: c?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ s(J, { children: [
221
221
  c?.categoryTotals?.map((l) => /* @__PURE__ */ t(
222
- X,
222
+ Q,
223
223
  {
224
224
  sx: {
225
225
  pl: 24,
@@ -260,7 +260,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
260
260
  px: 8,
261
261
  children: [
262
262
  l && /* @__PURE__ */ t(
263
- G,
263
+ B,
264
264
  {
265
265
  data: {
266
266
  categoryData: [],
@@ -276,7 +276,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
276
276
  }
277
277
  ),
278
278
  !l && /* @__PURE__ */ t(
279
- G,
279
+ B,
280
280
  {
281
281
  data: n,
282
282
  onSelected: d,
@@ -308,27 +308,27 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
308
308
  sortedTransactions: p,
309
309
  sortedTransactionsWithSplits: A,
310
310
  tags: f
311
- } = ct(), y = o?.master?.deep_link_params?.account_guids, T = o?.master?.deep_link_params?.view, [M, N] = i.useState(""), [D, S] = i.useState(T === "income" ? 1 : 0), [O, I] = i.useState(""), [dt, H] = i.useState(!1), $ = i.useMemo(
311
+ } = ct(), y = o?.master?.deep_link_params?.account_guids, T = o?.master?.deep_link_params?.view, [M, N] = i.useState(""), [D, S] = i.useState(T === "income" ? 1 : 0), [O, I] = i.useState(""), [dt, H] = i.useState(!1), j = i.useMemo(
312
312
  () => it(r, c, n, a),
313
313
  [r, a]
314
314
  ), K = i.useMemo(
315
315
  () => rt(r, a, Ot(n)),
316
316
  [r, a]
317
- ), B = i.useMemo(
317
+ ), $ = i.useMemo(
318
318
  () => p.find((u) => u.guid === O),
319
319
  [O, p]
320
320
  ), gt = (u, E) => {
321
321
  S(E), N("");
322
322
  }, U = (u) => {
323
323
  N(M === u || u === "0" ? "" : u);
324
- }, Y = (u) => {
324
+ }, X = (u) => {
325
325
  const E = {
326
326
  accounts: y || _,
327
327
  dateRange: g
328
328
  };
329
329
  if (D === 0)
330
330
  if (u === "other") {
331
- const h = $.categoryData.find((V) => V.guid === "other");
331
+ const h = j.categoryData.find((V) => V.guid === "other");
332
332
  m({
333
333
  ...E,
334
334
  custom: (V) => !!h?.categoryTotals?.find((ut) => ut.guid === V.top_level_category_guid)
@@ -354,9 +354,9 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
354
354
  k,
355
355
  {
356
356
  label: /* @__PURE__ */ t(
357
- j,
357
+ G,
358
358
  {
359
- amount: $.totalAmount,
359
+ amount: j.totalAmount,
360
360
  label: e.spend_tab_title
361
361
  }
362
362
  )
@@ -366,7 +366,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
366
366
  k,
367
367
  {
368
368
  label: /* @__PURE__ */ t(
369
- j,
369
+ G,
370
370
  {
371
371
  amount: K.totalAmount,
372
372
  label: e.income_tab_title
@@ -378,9 +378,9 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
378
378
  D === 0 && /* @__PURE__ */ t(
379
379
  et,
380
380
  {
381
- data: $,
381
+ data: j,
382
382
  onSelected: U,
383
- onViewTransactions: Y,
383
+ onViewTransactions: X,
384
384
  selectedId: M,
385
385
  title: e.spend_tab_title
386
386
  }
@@ -390,7 +390,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
390
390
  {
391
391
  data: K,
392
392
  onSelected: U,
393
- onViewTransactions: Y,
393
+ onViewTransactions: X,
394
394
  selectedId: M,
395
395
  title: e.income_tab_title
396
396
  }
@@ -420,14 +420,14 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
420
420
  Z,
421
421
  {
422
422
  ariaLabelClose: e.close_drawer_aria,
423
- isOpen: !!B,
423
+ isOpen: !!$,
424
424
  onClose: () => I(""),
425
425
  title: e.transaction_details_drawer_title,
426
- children: B && /* @__PURE__ */ t(Mt, { transaction: B })
426
+ children: $ && /* @__PURE__ */ t(Mt, { transaction: $ })
427
427
  }
428
428
  )
429
429
  ] });
430
- }, kt = w(Rt), Gt = ({ onBackClick: n, sx: d = {} }) => {
430
+ }, kt = w(Rt), Bt = ({ onBackClick: n, sx: d = {} }) => {
431
431
  const { visibleAccounts: o, isAccountDataLoaded: r, loadAccountData: a } = st(), { categoriesLoaded: c, loadCategories: e, loadDateRangeCategoryTotals: l } = W(), { isTransactionDataLoaded: g, loadTransactionData: _ } = ct(), { spending: m } = L(), {
432
432
  displayedDateRange: p,
433
433
  isInitialized: A,
@@ -436,7 +436,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
436
436
  selectedAccounts: T
437
437
  } = P(), { onEvent: M } = ft(), { onLoad: N } = bt(), { clientConfig: D } = F(), S = D?.master?.deep_link_params?.date_range;
438
438
  i.useEffect(() => {
439
- S && Array.isArray(S) && S.length === 2 ? f(S[0], S[1]) : f(nt(J()), ot(J())), r || a().finally(), c || e().finally(), g || _().finally(), M(tt.SPENDING_VIEW);
439
+ S && Array.isArray(S) && S.length === 2 ? f(S[0], S[1]) : f(nt(q()), ot(q())), r || a().finally(), c || e().finally(), g || _().finally(), M(tt.SPENDING_VIEW);
440
440
  }, []), i.useEffect(() => {
441
441
  y(o);
442
442
  }, [o]), i.useEffect(() => {
@@ -463,7 +463,7 @@ const j = ({ amount: n, label: d }) => /* @__PURE__ */ s(b, { direction: "column
463
463
  children: /* @__PURE__ */ t(v, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(kt, {}) })
464
464
  }
465
465
  ) : /* @__PURE__ */ t(lt, {});
466
- }, he = w(Gt);
466
+ }, he = w(Bt);
467
467
  export {
468
468
  me as SpendingMiniWidget,
469
469
  he as SpendingWidget
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface DateRowProps {
3
+ bgcolor?: string;
4
+ date: number;
5
+ }
6
+ declare const DateRow: React.FC<DateRowProps>;
7
+ export default DateRow;