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

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 (154) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
  4. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
  5. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
  6. package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
  7. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
  10. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  11. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
  16. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  19. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  21. package/dist/Drawer-By9V-B5L.mjs +178 -0
  22. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
  23. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  24. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
  25. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
  28. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  29. package/dist/LineChart-BF4QA-Lx.mjs +580 -0
  30. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
  31. package/dist/Loader-DUaFpDGv.mjs +24 -0
  32. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
  33. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  34. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  35. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
  36. package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
  37. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
  38. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
  39. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
  40. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
  41. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
  42. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  43. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  44. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  45. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  46. package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
  47. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
  48. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  49. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  50. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  51. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  52. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  53. package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
  54. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
  55. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
  56. package/dist/accounts/index.es.js +200 -197
  57. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  58. package/dist/accounts/utils/Accounts.d.ts +1 -2
  59. package/dist/analytics/index.es.js +27 -27
  60. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  61. package/dist/budgets/index.es.js +703 -669
  62. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +420 -404
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +3 -6
  66. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  67. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  68. package/dist/common/components/Loader.d.ts +2 -1
  69. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  70. package/dist/common/components/barchart/Bar.d.ts +25 -0
  71. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  72. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  73. package/dist/common/components/barchart/Legend.d.ts +8 -0
  74. package/dist/common/components/barchart/Util.d.ts +42 -0
  75. package/dist/common/components/barchart/index.d.ts +1 -0
  76. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  77. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  78. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  79. package/dist/common/components/index.d.ts +1 -0
  80. package/dist/common/hooks/index.d.ts +2 -0
  81. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  82. package/dist/common/hooks/usePrevious.d.ts +2 -0
  83. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  84. package/dist/common/index.es.js +712 -436
  85. package/dist/common/stores/AppDataStore.d.ts +1 -3
  86. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  87. package/dist/common/stores/GlobalStore.d.ts +3 -3
  88. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  89. package/dist/common/stores/UserStore.d.ts +2 -3
  90. package/dist/common/types/Account.d.ts +6 -9
  91. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  92. package/dist/common/utils/Theme.d.ts +3 -1
  93. package/dist/dashboard/index.es.js +93 -91
  94. package/dist/debts/components/DebtsChart.d.ts +2 -1
  95. package/dist/debts/index.es.js +529 -527
  96. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
  97. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  98. package/dist/finstrong/index.es.js +876 -867
  99. package/dist/goals/index.es.js +526 -525
  100. package/dist/goals/stores/GoalStore.d.ts +4 -17
  101. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  102. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  103. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  104. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  105. package/dist/help/index.es.js +13 -9
  106. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  107. package/dist/investments/index.es.js +534 -531
  108. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  109. package/dist/merchants/index.es.js +8 -8
  110. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  111. package/dist/microinsights/index.d.ts +1 -0
  112. package/dist/microinsights/index.es.js +101 -14
  113. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  114. package/dist/networth/index.es.js +284 -285
  115. package/dist/notifications/index.es.js +95 -94
  116. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  117. package/dist/recurringtransactions/index.es.js +582 -562
  118. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
  119. package/dist/settings/index.es.js +340 -337
  120. package/dist/spending/index.es.js +281 -268
  121. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  122. package/dist/transactions/index.es.js +253 -255
  123. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  124. package/dist/transactions/stores/UiStore.d.ts +2 -0
  125. package/dist/trends/components/TrendsTable.d.ts +0 -2
  126. package/dist/trends/index.es.js +838 -793
  127. package/dist/trends/utils/TrendsData.d.ts +1 -0
  128. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  129. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  130. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  131. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  132. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  133. package/package.json +57 -52
  134. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  135. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  136. package/dist/Accounts-CRUehOiy.mjs +0 -27
  137. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  138. package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
  139. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  140. package/dist/Drawer-BF40nbsH.mjs +0 -163
  141. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  142. package/dist/LineChart-C1PxNf7P.mjs +0 -581
  143. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  144. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  145. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  146. package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
  147. package/dist/SearchBox-B7km148n.mjs +0 -39
  148. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  149. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  150. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
  151. package/dist/TransactionStore-DbwAutwC.mjs +0 -671
  152. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  153. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  154. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
@@ -1,581 +0,0 @@
1
- import { jsxs as a, Fragment as $, jsx as t } from "react/jsx-runtime";
2
- import X from "@mui/material/Box";
3
- import { useTheme as Y } from "@mui/material/styles";
4
- import { ResponsiveChartContainer as fe, ChartsReferenceLine as xe, AreaPlot as ye, LinePlot as ge, MarkPlot as pe, BarPlot as be, ChartsXAxis as ke, ChartsYAxis as Me, ChartsAxisHighlight as Ce } from "@mui/x-charts";
5
- import { f as p, c as F } from "./NumberFormatting-DjTD0t3W.mjs";
6
- import we from "@mui/material/useMediaQuery";
7
- import { observer as Le } from "mobx-react-lite";
8
- import W from "@mui/material/Stack";
9
- import { Text as l } from "@mxenabled/mxui";
10
- import { u as ve } from "./hooks-C41HAxM5.mjs";
11
- import { useTheme as Se, Stack as M, Box as H } from "@mui/material";
12
- import { ChartsTooltip as Te } from "@mui/x-charts/ChartsTooltip";
13
- const De = (e) => {
14
- const r = Y(), s = e.showLabel, o = e.style, b = o?.markLabelStyles, x = Number(e.x), m = Number(e.y), h = e.handlers?.onMarkClick, u = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, i = we(r.breakpoints.up("sm")), f = e.valueFormatterString ? p(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), d = i ? r.typography.body2?.fontSize : r.typography.caption?.fontSize, T = 30, D = 24, A = x - T / 2, I = m - 30;
15
- return /* @__PURE__ */ a($, { children: [
16
- s && /* @__PURE__ */ a($, { children: [
17
- e.labelBackgroundColor && /* @__PURE__ */ t(
18
- "rect",
19
- {
20
- fill: e.labelBackgroundColor,
21
- height: D,
22
- rx: "3",
23
- width: T,
24
- x: A,
25
- y: I
26
- }
27
- ),
28
- /* @__PURE__ */ t(
29
- "text",
30
- {
31
- className: "MuiLineChart-markLabel",
32
- dominantBaseline: "middle",
33
- fill: e.labelFontColor ? e.labelFontColor : r.palette.text.primary,
34
- style: {
35
- fontSize: e.labelFontSize ? e.labelFontSize : d,
36
- ...b
37
- },
38
- textAnchor: "middle",
39
- x,
40
- y: m - 28 + D / 2,
41
- children: f
42
- }
43
- )
44
- ] }),
45
- e.showMark && /* @__PURE__ */ t(
46
- "path",
47
- {
48
- cursor: h ? "pointer" : "unset",
49
- d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
50
- height: "20px",
51
- onClick: (j) => {
52
- h?.(j, e.dataIndex);
53
- },
54
- onMouseEnter: () => {
55
- u?.(e.dataIndex);
56
- },
57
- onMouseLeave: () => {
58
- c?.();
59
- },
60
- style: {
61
- fill: o?.fill ? o.fill : r.palette.background.paper,
62
- stroke: o?.stroke ? o.stroke : r.palette.primary.main,
63
- strokeWidth: 2,
64
- transform: `translate(${e.x}px, ${e.y}px)`,
65
- transformOrigin: `${e.x}px, ${e.y}px`,
66
- filter: o?.filter ? o.filter : "none"
67
- },
68
- width: "20px"
69
- }
70
- )
71
- ] });
72
- }, Ae = (e) => /* @__PURE__ */ a($, { children: [
73
- /* @__PURE__ */ t("clipPath", { id: e.id, children: /* @__PURE__ */ t("rect", { height: e.height, width: e.width, x: "0", y: "0" }) }),
74
- /* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
75
- "path",
76
- {
77
- cursor: "unset",
78
- d: e.d,
79
- style: {
80
- strokeWidth: 2,
81
- strokeLinejoin: "round",
82
- fill: "none",
83
- stroke: e.lineColor ? e.lineColor : e.stroke,
84
- transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
85
- opacity: 1
86
- }
87
- }
88
- ) })
89
- ] }), Ie = ({
90
- label: e,
91
- customLegendVariant: r
92
- }) => {
93
- const s = r || "body2";
94
- return typeof e == "string" ? /* @__PURE__ */ t(l, { variant: s, children: e }) : typeof e == "object" && e.amount !== void 0 && e.label ? /* @__PURE__ */ a($, { children: [
95
- /* @__PURE__ */ t(l, { variant: s, children: e.label }),
96
- /* @__PURE__ */ t(l, { bold: !0, sx: { marginLeft: 8 }, variant: s, children: p(e.amount, "0,0") })
97
- ] }) : null;
98
- }, Re = ({
99
- average: e,
100
- customLegendVariant: r,
101
- customLegendBoxSx: s,
102
- labels: o = [],
103
- series: b,
104
- style: x,
105
- title: m,
106
- valueFormatterString: h
107
- }) => {
108
- const { common: u } = ve(), c = r || "body2";
109
- return /* @__PURE__ */ a(W, { style: { flexDirection: "row", gap: 24, ...x }, children: [
110
- b.map((i, f) => {
111
- const d = o[f];
112
- return d ? /* @__PURE__ */ a(
113
- W,
114
- {
115
- style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
116
- children: [
117
- /* @__PURE__ */ t(
118
- X,
119
- {
120
- sx: {
121
- width: 10,
122
- height: 10,
123
- backgroundColor: i.color,
124
- marginRight: 8,
125
- ...s
126
- }
127
- }
128
- ),
129
- /* @__PURE__ */ t(Ie, { customLegendVariant: r, label: d })
130
- ]
131
- },
132
- f
133
- ) : null;
134
- }),
135
- e && /* @__PURE__ */ a(W, { sx: { alignItems: "center", flexDirection: "row" }, children: [
136
- /* @__PURE__ */ t(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
137
- /* @__PURE__ */ a(l, { variant: c, children: [
138
- m || u.average,
139
- "  "
140
- ] }),
141
- /* @__PURE__ */ t(l, { bold: !0, variant: c, children: h ? p(e, h) : e })
142
- ] })
143
- ] });
144
- }, $e = Le(Re);
145
- function je({
146
- customLabels: e,
147
- labels: r = [],
148
- valueFormatterString: s = "0,0"
149
- }) {
150
- const o = Se();
151
- return /* @__PURE__ */ t(
152
- Te,
153
- {
154
- showCrosshair: !0,
155
- slots: {
156
- axisContent: (b) => {
157
- const { axisValue: x, dataIndex: m, series: h } = b, u = m ?? 0;
158
- if (e) {
159
- const c = e[u]?.[0]?.header || String(x);
160
- return /* @__PURE__ */ a(
161
- M,
162
- {
163
- sx: {
164
- backgroundColor: o.palette.background.paper,
165
- boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
166
- flexDirection: "column",
167
- alignItems: "flex-start",
168
- borderRadius: "4px",
169
- width: 250,
170
- gap: 8,
171
- px: 16,
172
- py: 12
173
- },
174
- children: [
175
- /* @__PURE__ */ a(
176
- M,
177
- {
178
- sx: {
179
- flexDirection: "row",
180
- justifyContent: "space-between",
181
- alignItems: "center",
182
- alignSelf: "stretch",
183
- gap: 8,
184
- marginTop: 4
185
- },
186
- children: [
187
- /* @__PURE__ */ t(l, { variant: "h3", children: c }),
188
- /* @__PURE__ */ t(l, { bold: !0, variant: "h3", children: p(h[0]?.data[u], s) })
189
- ]
190
- }
191
- ),
192
- e[u]?.some((i) => (typeof i == "string" ? 0 : i.amount) !== 0) ? e[u]?.map((i) => {
193
- const f = typeof i == "string" ? i : i.label, d = typeof i == "string" ? 0 : i.amount;
194
- return d === 0 ? null : /* @__PURE__ */ a(
195
- M,
196
- {
197
- sx: {
198
- flexDirection: "row",
199
- justifyContent: "space-between",
200
- alignItems: "center",
201
- alignSelf: "stretch",
202
- gap: 8,
203
- marginTop: 4
204
- },
205
- children: [
206
- /* @__PURE__ */ a(
207
- M,
208
- {
209
- sx: {
210
- flexDirection: "row",
211
- alignItems: "center",
212
- gap: 8,
213
- flex: 1,
214
- minWidth: 0
215
- },
216
- children: [
217
- /* @__PURE__ */ t(
218
- H,
219
- {
220
- sx: {
221
- width: "12px",
222
- height: "12px",
223
- backgroundColor: h[0]?.color,
224
- borderRadius: "4px"
225
- }
226
- }
227
- ),
228
- /* @__PURE__ */ t(l, { variant: "body1", children: f })
229
- ]
230
- }
231
- ),
232
- /* @__PURE__ */ t(l, { bold: !0, variant: "body1", children: p(Math.abs(d), s) })
233
- ]
234
- },
235
- f
236
- );
237
- }) : /* @__PURE__ */ t(l, { variant: "body1", children: "No data" })
238
- ]
239
- }
240
- );
241
- }
242
- return /* @__PURE__ */ a(
243
- M,
244
- {
245
- sx: {
246
- backgroundColor: o.palette.background.paper,
247
- boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
248
- flexDirection: "column",
249
- alignItems: "flex-start",
250
- borderRadius: "4px",
251
- width: 225,
252
- gap: 8,
253
- px: 16,
254
- py: 12
255
- },
256
- children: [
257
- /* @__PURE__ */ t(l, { variant: "h3", children: String(x) }),
258
- h.map((c, i) => /* @__PURE__ */ a(
259
- M,
260
- {
261
- sx: {
262
- flexDirection: "row",
263
- justifyContent: "space-between",
264
- alignItems: "center",
265
- alignSelf: "stretch",
266
- gap: 8,
267
- marginTop: 4
268
- },
269
- children: [
270
- /* @__PURE__ */ a(M, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
271
- /* @__PURE__ */ t(
272
- H,
273
- {
274
- sx: {
275
- width: "12px",
276
- height: "12px",
277
- backgroundColor: c.color,
278
- borderRadius: "4px"
279
- }
280
- }
281
- ),
282
- /* @__PURE__ */ t(l, { variant: "body1", children: typeof r[i] == "string" ? r[i] : r[i]?.label })
283
- ] }),
284
- /* @__PURE__ */ t(l, { bold: !0, variant: "body1", children: p(c.data[u], s) })
285
- ]
286
- },
287
- c.id
288
- ))
289
- ]
290
- }
291
- );
292
- }
293
- },
294
- trigger: "axis"
295
- }
296
- );
297
- }
298
- const Qe = ({
299
- areaColor: e,
300
- axisColor: r,
301
- baseline: s = "max",
302
- chartFor: o,
303
- chartXaxisSx: b,
304
- chartYaxisSx: x,
305
- colors: m,
306
- curveType: h = "linear",
307
- customLegendVariant: u,
308
- customLegendSx: c,
309
- customLegendBoxSx: i,
310
- customTooltipLabels: f,
311
- datasets: d,
312
- height: T,
313
- isGraphClippingXAxis: D = !1,
314
- labels: A,
315
- labelBackgroundColor: I,
316
- labelFontColor: j,
317
- labelFontSize: q,
318
- margin: Q,
319
- markHandlers: U,
320
- markStyles: V,
321
- minRange: J,
322
- maxRange: K,
323
- onItemClick: z,
324
- peerAverage: B,
325
- showArea: E = !1,
326
- showAverage: G = !1,
327
- showAxisHighlight: Z = !1,
328
- showBars: N = !1,
329
- showLegend: _ = !1,
330
- showMark: ee = !0,
331
- showMarkLabel: te = !1,
332
- showTooltip: ne = !1,
333
- showXAxis: re = !1,
334
- showXAxisTicks: ae = !1,
335
- showYAxis: ie = !1,
336
- showYAxisTicks: oe = !1,
337
- title: le,
338
- useCustomMark: se = !1,
339
- valueFormatterString: k,
340
- width: ce,
341
- xAxisScaleType: de
342
- }) => {
343
- const y = Y(), he = d.flat().map((n) => n.x), C = d.flat().map((n) => n.y), O = B || Math.round(C.reduce((n, S) => S + n, 0) / C.length), w = Math.floor(Math.min(...C) / 100) * 100, L = Math.ceil(Math.max(...C) / 100) * 100, P = d.map((n, S) => ({
344
- type: N ? "bar" : "line",
345
- curve: h,
346
- color: N ? y.palette.chart?.chart6 : m[S] ?? y.palette.primary.main,
347
- data: n.map((g) => g.y),
348
- area: E,
349
- baseline: s,
350
- showMark: !0,
351
- valueFormatter: (g) => k ? p(g || 0, k) : String(g)
352
- })), ue = {
353
- ...{
354
- top: 60,
355
- right: 35,
356
- bottom: 50,
357
- left: 50
358
- },
359
- ...Q
360
- };
361
- let v = J ?? w, R = K ?? L;
362
- if (o === "networthChart") {
363
- const n = L - w, S = n < L * 0.05 ? 0.25 : 0.2, g = Math.max(n * S, L * 0.015);
364
- v = w - g < 0 ? w : w - g, R = L + g;
365
- }
366
- const me = () => {
367
- if (o === "creditOverTime")
368
- return F(v, 850, 5);
369
- if (o === "networthChart")
370
- return F(v, R, 5);
371
- };
372
- return /* @__PURE__ */ a(
373
- X,
374
- {
375
- sx: {
376
- position: "relative",
377
- touchAction: "pan-y",
378
- // Allow vertical scrolling
379
- "& svg": {
380
- touchAction: "pan-y",
381
- // Allow vertical scrolling on SVG
382
- userSelect: "none"
383
- // Prevent text selection
384
- },
385
- "& .recharts-wrapper": {
386
- touchAction: "pan-y"
387
- // For Recharts library specifically
388
- }
389
- },
390
- children: [
391
- /* @__PURE__ */ a(
392
- fe,
393
- {
394
- height: T,
395
- margin: ue,
396
- series: P,
397
- sx: {
398
- "& .MuiBarLabel-root": {
399
- fontSize: 10,
400
- fontWeight: 600
401
- },
402
- "& .MuiAreaElement-root": {
403
- opacity: 0.15
404
- },
405
- "& .MuiChartsAxis-tickLabel > tspan": {
406
- fontFamily: y.typography.body2.fontFamily
407
- },
408
- "& .MuiLineChart-markLabel": {
409
- fontFamily: y.typography.body2.fontFamily
410
- }
411
- },
412
- width: ce,
413
- xAxis: [{ data: he, scaleType: de || (N ? "band" : "point") }],
414
- yAxis: [
415
- {
416
- tickInterval: me(),
417
- min: D ? -22 : v,
418
- max: R || 100,
419
- colorMap: E && P.length < 2 ? {
420
- type: "continuous",
421
- min: v,
422
- max: R,
423
- color: [
424
- y.palette.background.paper,
425
- m[0] ?? y.palette.primary.main
426
- ]
427
- } : void 0,
428
- valueFormatter: (n) => k ? p(n, k) : String(n)
429
- }
430
- ],
431
- children: [
432
- G && /* @__PURE__ */ t(
433
- xe,
434
- {
435
- lineStyle: {
436
- stroke: I ? y.palette.neutral.main : y.palette.neutral.dark,
437
- strokeDasharray: "10, 8",
438
- strokeWidth: 2
439
- },
440
- y: O
441
- }
442
- ),
443
- /* @__PURE__ */ t(
444
- ye,
445
- {
446
- onItemClick: z,
447
- ...e && {
448
- slots: {
449
- area: (n) => /* @__PURE__ */ a("g", { children: [
450
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
451
- /* @__PURE__ */ t("stop", { offset: "0%", stopColor: e }),
452
- /* @__PURE__ */ t("stop", { offset: "100%", stopColor: e, stopOpacity: 0.02 })
453
- ] }) }),
454
- /* @__PURE__ */ t("path", { ...n, fill: "url(#customGradient)" })
455
- ] })
456
- }
457
- }
458
- }
459
- ),
460
- /* @__PURE__ */ t(
461
- ge,
462
- {
463
- onItemClick: z,
464
- slots: {
465
- line: (n) => /* @__PURE__ */ t(
466
- Ae,
467
- {
468
- ...n,
469
- lineColor: e ?? n.ownerState.color ?? y.palette.primary.main
470
- }
471
- )
472
- }
473
- }
474
- ),
475
- /* @__PURE__ */ t(
476
- pe,
477
- {
478
- onItemClick: z,
479
- slots: se ? {
480
- mark: (n) => /* @__PURE__ */ t(
481
- De,
482
- {
483
- handlers: U,
484
- labelBackgroundColor: I,
485
- labelFontColor: j,
486
- labelFontSize: q,
487
- showLabel: te,
488
- showMark: ee || n.dataIndex === d[0].length - 1,
489
- style: V?.(n.dataIndex) ?? {},
490
- valueFormatterString: k,
491
- yData: C,
492
- ...n
493
- }
494
- )
495
- } : void 0
496
- }
497
- ),
498
- /* @__PURE__ */ t(
499
- be,
500
- {
501
- barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
502
- borderRadius: 10
503
- }
504
- ),
505
- /* @__PURE__ */ t(
506
- ke,
507
- {
508
- disableLine: !re,
509
- disableTicks: !ae,
510
- slotProps: r ? {
511
- axisLine: {
512
- style: {
513
- stroke: r
514
- }
515
- },
516
- axisTick: {
517
- style: {
518
- stroke: r
519
- }
520
- }
521
- } : {},
522
- sx: { ...b }
523
- }
524
- ),
525
- /* @__PURE__ */ t(
526
- Me,
527
- {
528
- disableLine: !ie,
529
- disableTicks: !oe,
530
- slotProps: r ? {
531
- axisLine: {
532
- style: {
533
- stroke: r
534
- }
535
- },
536
- axisTick: {
537
- style: {
538
- stroke: r
539
- }
540
- }
541
- } : {},
542
- sx: { ...x }
543
- }
544
- ),
545
- Z && /* @__PURE__ */ t(Ce, { x: "line" }),
546
- ne && /* @__PURE__ */ t(
547
- je,
548
- {
549
- customLabels: f,
550
- labels: A,
551
- valueFormatterString: k
552
- }
553
- )
554
- ]
555
- }
556
- ),
557
- _ && /* @__PURE__ */ t(
558
- $e,
559
- {
560
- average: G ? O : void 0,
561
- customLegendBoxSx: i,
562
- customLegendVariant: u,
563
- labels: A,
564
- series: P,
565
- style: {
566
- position: "absolute",
567
- top: 16,
568
- left: 16,
569
- ...c
570
- },
571
- title: le,
572
- valueFormatterString: k
573
- }
574
- )
575
- ]
576
- }
577
- );
578
- };
579
- export {
580
- Qe as L
581
- };
@@ -1,21 +0,0 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import s from "@mui/material/CircularProgress";
3
- import c from "@mui/material/Stack";
4
- import { Text as i } from "@mxenabled/mxui";
5
- const f = ({ height: t = 250, label: r = "", size: e = 32 }) => /* @__PURE__ */ n(
6
- c,
7
- {
8
- alignItems: "center",
9
- gap: 32,
10
- height: t,
11
- justifyContent: "center",
12
- sx: { backgroundColor: "background.paper" },
13
- children: [
14
- /* @__PURE__ */ o(s, { size: e }),
15
- r && /* @__PURE__ */ o(i, { children: r })
16
- ]
17
- }
18
- );
19
- export {
20
- f as L
21
- };
@@ -1,45 +0,0 @@
1
- import { jsxs as p, jsx as r, Fragment as f } from "react/jsx-runtime";
2
- import x from "@mui/material/Button";
3
- import C from "@mui/material/Card";
4
- import b from "@mui/material/CardContent";
5
- import g from "@mui/material/CardHeader";
6
- import { H3 as u, P as v } from "@mxenabled/mxui";
7
- import { ChevronRight as W } from "@mxenabled/mx-icons";
8
- import { u as w } from "./useDimensions-27p2evRx.mjs";
9
- import { W as H } from "./hooks-C41HAxM5.mjs";
10
- const D = ({
11
- children: i,
12
- className: o,
13
- ctaLabel: n,
14
- onCTAClick: a,
15
- subHeader: t,
16
- sx: s,
17
- title: d,
18
- variant: c = "borderless"
19
- }) => {
20
- const [m, { height: l, width: h }] = w(), e = /* @__PURE__ */ p(f, { children: [
21
- /* @__PURE__ */ r(
22
- g,
23
- {
24
- action: /* @__PURE__ */ r(
25
- x,
26
- {
27
- endIcon: /* @__PURE__ */ r(W, { size: 20 }),
28
- onClick: a,
29
- size: "small",
30
- variant: "text",
31
- children: n
32
- }
33
- ),
34
- subheader: t && /* @__PURE__ */ r(v, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
35
- sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
36
- title: /* @__PURE__ */ r(u, { sx: { width: "calc(100% - 10px)" }, children: d })
37
- }
38
- ),
39
- /* @__PURE__ */ r(b, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(H, { availableHeight: l, availableWidth: h, children: i }) })
40
- ] });
41
- return c === "borderless" ? e : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: e });
42
- };
43
- export {
44
- D as M
45
- };
@@ -1,56 +0,0 @@
1
- import { jsxs as i, jsx as r, Fragment as x } from "react/jsx-runtime";
2
- import g from "@mui/material/Box";
3
- import b from "@mui/material/Button";
4
- import u from "@mui/material/Card";
5
- import C from "@mui/material/CardHeader";
6
- import v from "@mui/material/CardContent";
7
- import z from "@mui/material/IconButton";
8
- import { Icon as H, ChevronRight as I } from "@mxenabled/mx-icons";
9
- import { H3 as W, Text as y, P as B } from "@mxenabled/mxui";
10
- import { u as j } from "./useDimensions-27p2evRx.mjs";
11
- import { W as w } from "./hooks-C41HAxM5.mjs";
12
- const G = ({
13
- children: m,
14
- className: a = "mx-cmn-mini-widget",
15
- closeLabel: d,
16
- contentStyles: l,
17
- onClose: e,
18
- onPrimaryCtaClick: o,
19
- primaryCtaLabel: s = "",
20
- subTitle: t = "",
21
- sx: c = {},
22
- title: n = ""
23
- }) => {
24
- const [p, { height: h, width: f }] = j();
25
- return /* @__PURE__ */ i(u, { className: a, sx: { ...c }, children: [
26
- /* @__PURE__ */ r(
27
- C,
28
- {
29
- sx: { pb: 8 },
30
- title: /* @__PURE__ */ i(x, { children: [
31
- /* @__PURE__ */ i(
32
- g,
33
- {
34
- sx: {
35
- alignItems: "center",
36
- display: "grid",
37
- gap: 2,
38
- gridTemplateColumns: "1fr auto",
39
- pb: 4
40
- },
41
- children: [
42
- n && /* @__PURE__ */ r(W, { children: n }),
43
- e ? /* @__PURE__ */ r(z, { "aria-label": d, onClick: e, size: "small", children: /* @__PURE__ */ r(H, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ r(b, { endIcon: /* @__PURE__ */ r(I, {}), onClick: o, size: "small", children: /* @__PURE__ */ r(y, { bold: !0, variant: "body2", children: s }) })
44
- ]
45
- }
46
- ),
47
- t && /* @__PURE__ */ r(B, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "body2", children: t })
48
- ] })
49
- }
50
- ),
51
- /* @__PURE__ */ r(v, { ref: p, sx: { p: 0, ...l }, children: /* @__PURE__ */ r(w, { availableHeight: h, availableWidth: f, children: m }) })
52
- ] });
53
- };
54
- export {
55
- G as M
56
- };