@mx-cartographer/experiences 8.0.0-alpha.sms1 → 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.
- package/dist/{Account-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
- package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
- package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
- package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
- package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
- package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
- package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
- package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
- package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
- package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
- package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
- package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
- package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
- package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
- package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
- package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
- package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
- package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
- package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
- package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
- package/dist/accounts/index.es.js +71 -71
- package/dist/analytics/index.es.js +7 -7
- package/dist/budgets/index.es.js +110 -110
- package/dist/cashflow/index.es.js +68 -68
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +248 -248
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +12 -12
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
- package/dist/finstrong/index.es.js +18 -18
- package/dist/goals/index.es.js +19 -19
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +12 -12
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +11 -11
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +16 -16
- package/dist/settings/index.es.js +62 -62
- package/dist/spending/index.es.js +26 -26
- package/dist/transactions/index.es.js +58 -58
- package/dist/trends/index.es.js +59 -59
- package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/package.json +16 -21
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +0 -56
package/dist/trends/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as C, jsx as e, Fragment as dt } from "react/jsx-runtime";
|
|
2
2
|
import c, { useRef as ut, useState as ht, useEffect as gt } from "react";
|
|
3
3
|
import { observer as R } from "mobx-react-lite";
|
|
4
|
-
import { CategoryIcon as ve, Text as
|
|
4
|
+
import { CategoryIcon as ve, Text as z, Icon as Se, P as me, H3 as Pe, ChevronRightIcon as mt } from "@mxenabled/mxui";
|
|
5
5
|
import W from "@mui/material/Box";
|
|
6
6
|
import b from "@mui/material/Stack";
|
|
7
7
|
import be from "@mui/material/Button";
|
|
8
|
-
import { addSeconds as
|
|
8
|
+
import { addSeconds as Fe } from "date-fns/addSeconds";
|
|
9
9
|
import { differenceInCalendarMonths as Ae } from "date-fns/differenceInCalendarMonths";
|
|
10
10
|
import { useTheme as we } from "@mui/material/styles";
|
|
11
11
|
import { LineChart as pt } from "@mui/x-charts";
|
|
@@ -15,30 +15,30 @@ import Ct from "@mui/material/Card";
|
|
|
15
15
|
import yt from "@mui/material/CardContent";
|
|
16
16
|
import Re from "@mui/material/Divider";
|
|
17
17
|
import We from "@mui/material/Grid";
|
|
18
|
-
import { u as O, m as Y, g as P, b as fe, h as De, d as Le, w as Ce, q as
|
|
19
|
-
import { b as
|
|
18
|
+
import { u as O, m as Y, g as P, b as fe, h as De, d as Le, w as Ce, q as ze, f as He, n as _t, a as Tt } from "../hooks-C41HAxM5.mjs";
|
|
19
|
+
import { b as $e } from "../Localization-2MODESHW.mjs";
|
|
20
20
|
import { C as xe } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
21
21
|
import { useTheme as St, Card as bt, CardContent as xt, Box as vt, Stack as wt } from "@mui/material";
|
|
22
|
-
import { f as Q, a as
|
|
23
|
-
import {
|
|
22
|
+
import { f as Q, a as F } from "../Dialog-CDV0kKxj.mjs";
|
|
23
|
+
import { a as Me, c as Dt } from "../Category-Ccoew_sA.mjs";
|
|
24
24
|
import { f as oe, a as Lt } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
25
|
-
import { a as Et, g as It, L as Ke } from "../TrendsStore-
|
|
26
|
-
import { T as
|
|
27
|
-
import { i as Mt, c as At, d as Rt, e as kt, f as Ht, h as Nt,
|
|
25
|
+
import { a as Et, g as It, L as Ke } from "../TrendsStore-_mRaFUdf.mjs";
|
|
26
|
+
import { T as zn } from "../TrendsStore-_mRaFUdf.mjs";
|
|
27
|
+
import { i as Mt, c as At, d as Rt, e as kt, f as Ht, h as Nt, g as je, b as Ye, j as Oe } from "../SpendingData-DPQ96k3x.mjs";
|
|
28
28
|
import Wt from "@mui/material/ToggleButton";
|
|
29
29
|
import Ot from "@mui/material/ToggleButtonGroup";
|
|
30
30
|
import { DataGridPro as Gt } from "@mui/x-data-grid-pro";
|
|
31
31
|
import { H as Ge } from "../HeaderCell-DjuifqHJ.mjs";
|
|
32
|
-
import { T as V, b as Bt } from "../ViewMoreMicroCard-
|
|
33
|
-
import { A as w, W as Ue } from "../WidgetContainer-
|
|
34
|
-
import { a as Xe, T as Ze } from "../TransactionDetails-
|
|
35
|
-
import { D as ke } from "../Drawer-
|
|
36
|
-
import { L as pe } from "../Loader-
|
|
32
|
+
import { T as V, b as Bt } from "../ViewMoreMicroCard-CH9E-jOx.mjs";
|
|
33
|
+
import { A as w, W as Ue } from "../WidgetContainer-B1Jzb4XA.mjs";
|
|
34
|
+
import { a as Xe, T as Ze } from "../TransactionDetails-Duv1X9ec.mjs";
|
|
35
|
+
import { D as ke } from "../Drawer-Dqe5EqvA.mjs";
|
|
36
|
+
import { L as pe } from "../Loader-BSWSYqvn.mjs";
|
|
37
37
|
import { L as Ne } from "../LineChart-bc1D9xBE.mjs";
|
|
38
|
-
import { M as Vt } from "../MiniWidgetContainer-
|
|
38
|
+
import { M as Vt } from "../MiniWidgetContainer-D7MkHG15.mjs";
|
|
39
39
|
import { subMonths as Pt } from "date-fns";
|
|
40
|
-
import { TrendingUp as
|
|
41
|
-
import { M as Yt } from "../MicroWidgetContainer-
|
|
40
|
+
import { TrendingUp as Ft, TrendingDown as zt, MultilineChart as $t, ExpandLess as Kt, ExpandMore as jt } from "@mxenabled/mx-icons";
|
|
41
|
+
import { M as Yt } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
|
|
42
42
|
import Ut from "@mui/material/Collapse";
|
|
43
43
|
import Xt from "@mui/material/List";
|
|
44
44
|
import Zt from "@mui/material/ListItem";
|
|
@@ -47,24 +47,24 @@ import Qt from "@mui/material/ListItemIcon";
|
|
|
47
47
|
import Jt from "@mui/material/ListItemText";
|
|
48
48
|
import qe from "@mui/material/styles/useTheme";
|
|
49
49
|
import eo from "@mui/material/Paper";
|
|
50
|
-
import { b as to } from "../CategoryUtil-
|
|
51
|
-
import { E as oo } from "../ExportCsvAction-
|
|
50
|
+
import { b as to } from "../CategoryUtil-DfVKKkRf.mjs";
|
|
51
|
+
import { E as oo } from "../ExportCsvAction-CQ1grpwo.mjs";
|
|
52
52
|
import { u as no } from "../useInsightsEnabled-CNjP5cfR.mjs";
|
|
53
53
|
import { E as so } from "../EmptyState-DoxNUae-.mjs";
|
|
54
|
-
import { l as ao } from "../ConnectDrawer-
|
|
54
|
+
import { l as ao } from "../ConnectDrawer-Dn1MlqLz.mjs";
|
|
55
55
|
const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
56
56
|
const { categories: t } = O(), { getCategoryName: n } = Y(), s = n(o);
|
|
57
57
|
return /* @__PURE__ */ C(b, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
58
58
|
/* @__PURE__ */ e(
|
|
59
59
|
W,
|
|
60
60
|
{
|
|
61
|
-
"aria-label":
|
|
61
|
+
"aria-label": $e(t.category_icon_label_aria, s),
|
|
62
62
|
mb: 4,
|
|
63
63
|
role: "img",
|
|
64
64
|
children: /* @__PURE__ */ e(ve, { categoryGuid: a })
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */ e(
|
|
67
|
+
/* @__PURE__ */ e(z, { variant: "Body", children: s })
|
|
68
68
|
] });
|
|
69
69
|
}, ro = ({
|
|
70
70
|
categoryGuids: { guid: o, topLevelGuid: a },
|
|
@@ -97,14 +97,14 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
97
97
|
children: /* @__PURE__ */ C(yt, { children: [
|
|
98
98
|
/* @__PURE__ */ C(W, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
99
99
|
/* @__PURE__ */ e(Qe, { categoryGuid: o, topLevelCategoryGuid: a }),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
100
|
+
/* @__PURE__ */ e(z, { variant: "Small", children: `${t.length}-month total` }),
|
|
101
101
|
/* @__PURE__ */ e(xe, { amount: d, bold: !0, formatString: "0,0", variant: "body2" })
|
|
102
102
|
] }),
|
|
103
103
|
/* @__PURE__ */ e(Re, { sx: { my: 16, width: "100%" } }),
|
|
104
104
|
/* @__PURE__ */ e(We, { container: !0, children: t.map((f, p) => /* @__PURE__ */ C(c.Fragment, { children: [
|
|
105
105
|
p > 0 && p % 3 === 0 && /* @__PURE__ */ e(Re, { sx: { my: 16, width: "100%" } }),
|
|
106
106
|
/* @__PURE__ */ e(We, { item: !0, xs: 4, children: /* @__PURE__ */ C(W, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
107
|
-
/* @__PURE__ */ e(
|
|
107
|
+
/* @__PURE__ */ e(z, { color: l.palette.text.secondary, variant: "XSmall", children: f.x }),
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
xe,
|
|
110
110
|
{
|
|
@@ -128,7 +128,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
128
128
|
const l = St(), m = n.data[t], h = s[t];
|
|
129
129
|
return m === void 0 || !h ? null : /* @__PURE__ */ e(bt, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ C(vt, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
130
130
|
/* @__PURE__ */ e(Qe, { categoryGuid: o, topLevelCategoryGuid: a }),
|
|
131
|
-
/* @__PURE__ */ e(
|
|
131
|
+
/* @__PURE__ */ e(z, { color: l.palette.text.secondary, variant: "Small", children: Q(h, F.MONTH_SHORT_YEAR) }),
|
|
132
132
|
/* @__PURE__ */ e(xe, { amount: String(m), bold: !0, formatString: "0,0", variant: "Body" })
|
|
133
133
|
] }) }) });
|
|
134
134
|
}, lo = ({
|
|
@@ -181,7 +181,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
),
|
|
184
|
-
/* @__PURE__ */ e(
|
|
184
|
+
/* @__PURE__ */ e(z, { variant: "Body", children: h(i) })
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
187
|
i
|
|
@@ -213,7 +213,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
213
213
|
(r, T) => s.reduce((L, j) => L + j.dataset[T]?.y || 0, 0)
|
|
214
214
|
) ?? [0], se = Math.max(...B), ae = Math.max(
|
|
215
215
|
...l.flatMap((r) => r.dataset.map((T) => T.y))
|
|
216
|
-
),
|
|
216
|
+
), $ = Math.floor(Math.min(...ue) / 100) * 100, ye = Math.ceil(Math.max(se, ae) / 100) * 100, U = s.map((r, T) => ({
|
|
217
217
|
id: `stacked-${T}`,
|
|
218
218
|
guid: r.category_guid,
|
|
219
219
|
top_level_guid: r.top_level_category_guid,
|
|
@@ -371,14 +371,14 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
371
371
|
{
|
|
372
372
|
data: H,
|
|
373
373
|
scaleType: "time",
|
|
374
|
-
valueFormatter: (r) => Q(r,
|
|
374
|
+
valueFormatter: (r) => Q(r, F.MONTH_SHORT_YEAR),
|
|
375
375
|
tickNumber: ne
|
|
376
376
|
// How many ticks to show on the x-axis
|
|
377
377
|
}
|
|
378
378
|
],
|
|
379
379
|
yAxis: [
|
|
380
380
|
{
|
|
381
|
-
min:
|
|
381
|
+
min: $,
|
|
382
382
|
max: ye || 100
|
|
383
383
|
}
|
|
384
384
|
]
|
|
@@ -403,7 +403,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
403
403
|
cursorPosition: k,
|
|
404
404
|
hoveredAreaData: x.map((r) => ({
|
|
405
405
|
...r,
|
|
406
|
-
x: Q(r.x,
|
|
406
|
+
x: Q(r.x, F.MONTH_SHORT_YEAR)
|
|
407
407
|
}))
|
|
408
408
|
}
|
|
409
409
|
)
|
|
@@ -425,16 +425,16 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
425
425
|
const { trends: t } = O(), { isMobile: n, isDesktop: s } = J(), { getCategoryName: l } = Y(), m = c.useMemo(() => {
|
|
426
426
|
const h = Q(
|
|
427
427
|
o.start,
|
|
428
|
-
n ?
|
|
428
|
+
n ? F.MONTH_SHORT_YEAR : F.MONTH_YEAR
|
|
429
429
|
), i = Q(
|
|
430
430
|
o.end,
|
|
431
|
-
n ?
|
|
431
|
+
n ? F.MONTH_SHORT_YEAR : F.MONTH_YEAR
|
|
432
432
|
);
|
|
433
433
|
return `${h} - ${i}`;
|
|
434
434
|
}, [o, n]);
|
|
435
435
|
return /* @__PURE__ */ C(W, { sx: { mr: 10, minWidth: "60%" }, children: [
|
|
436
436
|
/* @__PURE__ */ e(
|
|
437
|
-
|
|
437
|
+
z,
|
|
438
438
|
{
|
|
439
439
|
display: "block",
|
|
440
440
|
fontWeight: 700,
|
|
@@ -447,7 +447,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
447
447
|
children: l(a) || t.sub_title
|
|
448
448
|
}
|
|
449
449
|
),
|
|
450
|
-
/* @__PURE__ */ e(
|
|
450
|
+
/* @__PURE__ */ e(z, { variant: s ? "Body" : "Small", children: m })
|
|
451
451
|
] });
|
|
452
452
|
}, ho = (o) => {
|
|
453
453
|
const a = o.row[o.field];
|
|
@@ -458,12 +458,12 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
458
458
|
/* @__PURE__ */ e(
|
|
459
459
|
W,
|
|
460
460
|
{
|
|
461
|
-
"aria-label":
|
|
461
|
+
"aria-label": $e(n.category_icon_label_aria, s),
|
|
462
462
|
role: "img",
|
|
463
463
|
children: /* @__PURE__ */ e(ve, { categoryGuid: a })
|
|
464
464
|
}
|
|
465
465
|
),
|
|
466
|
-
/* @__PURE__ */ e(
|
|
466
|
+
/* @__PURE__ */ e(z, { sx: { ml: 12, pb: 6 }, variant: "Small", children: s })
|
|
467
467
|
] });
|
|
468
468
|
}, mo = (o) => /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
469
469
|
go,
|
|
@@ -474,7 +474,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
474
474
|
) }), po = (o, a) => {
|
|
475
475
|
const t = [], n = new Date(o);
|
|
476
476
|
for (; n <= a; ) {
|
|
477
|
-
const s = Q(n,
|
|
477
|
+
const s = Q(n, F.MONTH);
|
|
478
478
|
t.push(s), n.setMonth(n.getMonth() + 1);
|
|
479
479
|
}
|
|
480
480
|
return t;
|
|
@@ -486,7 +486,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
486
486
|
height: s = "100dvh",
|
|
487
487
|
sx: l = {}
|
|
488
488
|
}) => {
|
|
489
|
-
const { onEvent: m } = P(), h = Q(/* @__PURE__ */ new Date(),
|
|
489
|
+
const { onEvent: m } = P(), h = Q(/* @__PURE__ */ new Date(), F.MONTH_SHORT), [i, d] = c.useState([
|
|
490
490
|
{ field: h, sort: "desc" }
|
|
491
491
|
]), f = c.useMemo(() => po(a.start, a.end), [a]), p = [
|
|
492
492
|
{
|
|
@@ -529,7 +529,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
529
529
|
category_guid: E,
|
|
530
530
|
top_level_category_guid: I
|
|
531
531
|
});
|
|
532
|
-
const G = Q(new Date(k, x - 1),
|
|
532
|
+
const G = Q(new Date(k, x - 1), F.MONTH_SHORT);
|
|
533
533
|
return g[A][G] || (g[A][G] = 0), g[A][G] = g[A][G] + Math.abs(M), g;
|
|
534
534
|
},
|
|
535
535
|
{}
|
|
@@ -606,9 +606,9 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
606
606
|
isTransactionDataLoaded: y,
|
|
607
607
|
loadTransactionData: S,
|
|
608
608
|
sortedTransactions: g
|
|
609
|
-
} = De(), { selectedDateRange: v, setSelectedDateRange: E } = Ce(), { isInitialized: I, selectedAccounts: x, setSelectedAccounts: M } = fe(), { trends: k } = O(), [A, G] = c.useState(!1), [ee, ne] = c.useState(!1), [H, ue] = c.useState("Chart"), [B, se] = c.useState(""), [ae,
|
|
609
|
+
} = De(), { selectedDateRange: v, setSelectedDateRange: E } = Ce(), { isInitialized: I, selectedAccounts: x, setSelectedAccounts: M } = fe(), { trends: k } = O(), [A, G] = c.useState(!1), [ee, ne] = c.useState(!1), [H, ue] = c.useState("Chart"), [B, se] = c.useState(""), [ae, $] = c.useState(window.innerHeight), U = ae - (l ? 315 : 345);
|
|
610
610
|
c.useEffect(() => {
|
|
611
|
-
const D = () =>
|
|
611
|
+
const D = () => $(window.innerHeight);
|
|
612
612
|
return window.addEventListener("resize", D), m || h().finally(), d || f().finally(), y || S().finally(), () => window.removeEventListener("resize", D);
|
|
613
613
|
}, []), c.useEffect(() => {
|
|
614
614
|
M(i);
|
|
@@ -631,13 +631,13 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
631
631
|
(T) => T.top_level_category_guid === B || T.category_guid === B
|
|
632
632
|
) : Rt(D);
|
|
633
633
|
return {
|
|
634
|
-
stackedDatasets: r.filter(
|
|
635
|
-
unstackedDatasets: r.filter(
|
|
634
|
+
stackedDatasets: r.filter(Ht),
|
|
635
|
+
unstackedDatasets: r.filter(kt)
|
|
636
636
|
};
|
|
637
637
|
}, [_, B, v]), re = (D, r) => {
|
|
638
638
|
ue(r ?? H), t(w.TRENDS_CLICK_TOGGLE_VIEW);
|
|
639
639
|
}, X = (D) => {
|
|
640
|
-
const r =
|
|
640
|
+
const r = Fe(D?.[0], 1), T = D?.[1], L = Ae(T, r);
|
|
641
641
|
E({ start: r, end: T }), t(w.TRENDS_CLICK_TIME_WINDOW, {
|
|
642
642
|
time_period: L + "M"
|
|
643
643
|
});
|
|
@@ -738,7 +738,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
738
738
|
}
|
|
739
739
|
);
|
|
740
740
|
}, On = R(_o), To = () => {
|
|
741
|
-
const { monthlyCategoryTotals: o } = Y(), { trends: a } = O(), t = we(), { availableHeight: n = 300 } =
|
|
741
|
+
const { monthlyCategoryTotals: o } = Y(), { trends: a } = O(), t = we(), { availableHeight: n = 300 } = ze(), s = Nt(o);
|
|
742
742
|
return /* @__PURE__ */ e(
|
|
743
743
|
Ne,
|
|
744
744
|
{
|
|
@@ -783,7 +783,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
783
783
|
secondaryLabel: s,
|
|
784
784
|
shouldDisplayPercentage: l
|
|
785
785
|
}) => {
|
|
786
|
-
const { availableWidth: m } =
|
|
786
|
+
const { availableWidth: m } = ze(), h = c.useRef(null), i = c.useRef(null), d = Lt(Number(Math.abs(n)), {
|
|
787
787
|
style: "percent",
|
|
788
788
|
minimumIntegerDigits: 1
|
|
789
789
|
}), f = m === 288 && oe(a, "0,0.00").length > 10 ? oe(a, "0,0") : oe(a, "0,0.00"), p = t === "spending" ? n > 0 : n >= 0, _ = t === "spending" ? "error.main" : "success.main", u = t === "spending" ? "success.main" : "text.secondary", y = h?.current, S = i?.current, g = y && S ? y.scrollWidth > S.clientWidth - xo : !1;
|
|
@@ -811,7 +811,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
811
811
|
children: [
|
|
812
812
|
/* @__PURE__ */ e(me, { color: "text.secondary", variant: "caption", children: o }),
|
|
813
813
|
l && /* @__PURE__ */ C(b, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
814
|
-
p ? /* @__PURE__ */ e(
|
|
814
|
+
p ? /* @__PURE__ */ e(Ft, { size: 20, sx: { color: _ } }) : /* @__PURE__ */ e(zt, { size: 20, sx: { color: u } }),
|
|
815
815
|
/* @__PURE__ */ e(
|
|
816
816
|
me,
|
|
817
817
|
{
|
|
@@ -862,7 +862,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
862
862
|
}, vo = R(() => {
|
|
863
863
|
const { trends: o } = O();
|
|
864
864
|
return /* @__PURE__ */ C(b, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
865
|
-
/* @__PURE__ */ e(
|
|
865
|
+
/* @__PURE__ */ e($t, { size: 32 }),
|
|
866
866
|
/* @__PURE__ */ C(b, { children: [
|
|
867
867
|
/* @__PURE__ */ e(me, { fontWeight: 600, variant: "body1", children: o.zero_state_content_header }),
|
|
868
868
|
/* @__PURE__ */ e(me, { color: "text.secondary", variant: "subtitle2", children: o.zero_state_content_description })
|
|
@@ -888,8 +888,8 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
888
888
|
}, [_, f]);
|
|
889
889
|
const { spendingData: u, incomeData: y } = c.useMemo(
|
|
890
890
|
() => ({
|
|
891
|
-
spendingData:
|
|
892
|
-
incomeData:
|
|
891
|
+
spendingData: Ye(l, i),
|
|
892
|
+
incomeData: je(l, i)
|
|
893
893
|
}),
|
|
894
894
|
[l, i]
|
|
895
895
|
), [S, g] = u, [v, E] = y, I = Oe(g.y, S.y), x = Oe(E.y, v.y), M = _ && !n?.length, k = () => {
|
|
@@ -949,7 +949,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
949
949
|
{
|
|
950
950
|
sx: { color: t.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
951
951
|
children: [
|
|
952
|
-
/* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(
|
|
952
|
+
/* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(z, { bold: !0, variant: "body2", children: o ? "View less" : "View more" }) }),
|
|
953
953
|
/* @__PURE__ */ e(Qt, { sx: { color: t.palette.primary.main }, children: o ? /* @__PURE__ */ e(Kt, {}) : /* @__PURE__ */ e(
|
|
954
954
|
jt,
|
|
955
955
|
{
|
|
@@ -1131,7 +1131,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
1131
1131
|
),
|
|
1132
1132
|
/* @__PURE__ */ e(Io, { chartColor: S, chartLabel: g }),
|
|
1133
1133
|
/* @__PURE__ */ C(b, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
|
|
1134
|
-
/* @__PURE__ */ e(
|
|
1134
|
+
/* @__PURE__ */ e(z, { bold: !0, variant: "body1", children: v }),
|
|
1135
1135
|
/* @__PURE__ */ e(oo, { filter: I })
|
|
1136
1136
|
] })
|
|
1137
1137
|
] }),
|
|
@@ -1159,7 +1159,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
);
|
|
1161
1161
|
}), Ao = (o, a) => {
|
|
1162
|
-
const t =
|
|
1162
|
+
const t = je(o, a), n = Ye(o, a);
|
|
1163
1163
|
return [t, n].filter((s) => s.length > 0);
|
|
1164
1164
|
}, Ro = (o, a) => {
|
|
1165
1165
|
const [t, n] = o, s = t, l = n ?? t, m = [];
|
|
@@ -1246,7 +1246,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
1246
1246
|
loadDateRangeCategoryTotals: y,
|
|
1247
1247
|
loadMonthlyCategoryTotals: S,
|
|
1248
1248
|
monthlyCategoryTotals: g
|
|
1249
|
-
} = Y(), { isTransactionDataLoaded: v, loadTransactionData: E, setFilter: I } = De(), { selectedDateRange: x, setSelectedCategoryData: M, setSelectedDateRange: k } = Ce(), { isInitialized: A, selectedAccounts: G, selectedAccountGuids: ee, setSelectedAccounts: ne } = fe(), { trends: H, connect: ue } = O(), { beatStore: B } = He(), ae = no() && l.show_insights_widget_in_master,
|
|
1249
|
+
} = Y(), { isTransactionDataLoaded: v, loadTransactionData: E, setFilter: I } = De(), { selectedDateRange: x, setSelectedCategoryData: M, setSelectedDateRange: k } = Ce(), { isInitialized: A, selectedAccounts: G, selectedAccountGuids: ee, setSelectedAccounts: ne } = fe(), { trends: H, connect: ue } = O(), { beatStore: B } = He(), ae = no() && l.show_insights_widget_in_master, $ = h || m, [ye, U] = c.useState(!1), [K, re] = c.useState(!1), [X, Z] = c.useState("Chart"), [te, ie] = c.useState(""), [he, ce] = c.useState(!1), [le, D] = c.useState(window.innerHeight), r = $ ? 56 : 0, T = le - 208, L = le - (ae ? 550 + r : 266), [j, _e] = c.useState(!1), Ee = l.show_connections_widget_in_master ? "buttons" : "no-buttons", de = c.useMemo(
|
|
1250
1250
|
() => p && p.length === 0 || g.length === 0,
|
|
1251
1251
|
[p, g]
|
|
1252
1252
|
), Te = c.useMemo(() => K ? B.getFilteredBeats({ templates: No }) : [], [K]);
|
|
@@ -1294,7 +1294,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
1294
1294
|
toggleView: q
|
|
1295
1295
|
});
|
|
1296
1296
|
}, at = (N) => {
|
|
1297
|
-
const q =
|
|
1297
|
+
const q = Fe(N?.[0], 1), ge = N?.[1], lt = Ae(ge, q);
|
|
1298
1298
|
k({ start: q, end: ge }), n(w.TRENDS_CLICK_TIME_WINDOW, {
|
|
1299
1299
|
...V,
|
|
1300
1300
|
time_period: lt + "M"
|
|
@@ -1362,9 +1362,9 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
1362
1362
|
/* @__PURE__ */ e(Se, { name: "arrow_back" }),
|
|
1363
1363
|
H.all_categories
|
|
1364
1364
|
] }) }) }),
|
|
1365
|
-
/* @__PURE__ */ C(b, { flexDirection:
|
|
1365
|
+
/* @__PURE__ */ C(b, { flexDirection: $ ? "row" : "column", gap: $ ? 48 : 16, children: [
|
|
1366
1366
|
X === "Chart" && /* @__PURE__ */ C(dt, { children: [
|
|
1367
|
-
/* @__PURE__ */ e(W, { sx: { width:
|
|
1367
|
+
/* @__PURE__ */ e(W, { sx: { width: $ ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
1368
1368
|
Ho,
|
|
1369
1369
|
{
|
|
1370
1370
|
availableHeight: T,
|
|
@@ -1373,7 +1373,7 @@ const Qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
|
1373
1373
|
totals: g
|
|
1374
1374
|
}
|
|
1375
1375
|
) }),
|
|
1376
|
-
/* @__PURE__ */ C(b, { gap: 16, sx: { width:
|
|
1376
|
+
/* @__PURE__ */ C(b, { gap: 16, sx: { width: $ ? "32%" : "100%" }, children: [
|
|
1377
1377
|
ae && K && Te.length > 0 && /* @__PURE__ */ e(
|
|
1378
1378
|
Eo,
|
|
1379
1379
|
{
|
|
@@ -1421,6 +1421,6 @@ export {
|
|
|
1421
1421
|
On as TrendsFullWidget,
|
|
1422
1422
|
Bn as TrendsMicroWidget,
|
|
1423
1423
|
Gn as TrendsMiniWidget,
|
|
1424
|
-
|
|
1424
|
+
zn as TrendsStore,
|
|
1425
1425
|
Vn as TrendsWidget
|
|
1426
1426
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-cartographer/experiences",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.sms2",
|
|
4
4
|
"description": "Library containing experience widgets",
|
|
5
5
|
"author": "MX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -204,15 +204,10 @@
|
|
|
204
204
|
"devDependencies": {
|
|
205
205
|
"@babel/core": "^7.26.10",
|
|
206
206
|
"@babel/eslint-parser": "^7.26.10",
|
|
207
|
-
"@storybook/addon-a11y": "
|
|
208
|
-
"@storybook/addon-
|
|
209
|
-
"@storybook/addon-
|
|
210
|
-
"@storybook/
|
|
211
|
-
"@storybook/blocks": "^8.6.4",
|
|
212
|
-
"@storybook/react": "^8.6.4",
|
|
213
|
-
"@storybook/react-vite": "^8.6.4",
|
|
214
|
-
"@storybook/test": "^8.6.4",
|
|
215
|
-
"@storybook/theming": "^8.6.4",
|
|
207
|
+
"@storybook/addon-a11y": "9.1.16",
|
|
208
|
+
"@storybook/addon-docs": "9.1.16",
|
|
209
|
+
"@storybook/addon-links": "9.1.16",
|
|
210
|
+
"@storybook/react-vite": "9.1.16",
|
|
216
211
|
"@testing-library/dom": "^10.4.0",
|
|
217
212
|
"@testing-library/jest-dom": "^6.6.3",
|
|
218
213
|
"@testing-library/react": "^16.2.0",
|
|
@@ -227,10 +222,11 @@
|
|
|
227
222
|
"@types/uuid": "^10.0.0",
|
|
228
223
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
229
224
|
"@typescript-eslint/parser": "^7.16.0",
|
|
230
|
-
"@vitejs/plugin-react": "^
|
|
231
|
-
"@vitest/coverage-v8": "^
|
|
232
|
-
"@vitest/ui": "^
|
|
233
|
-
"@
|
|
225
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
226
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
227
|
+
"@vitest/ui": "^4.0.15",
|
|
228
|
+
"@vueless/storybook-dark-mode": "^10.0.4",
|
|
229
|
+
"@yarnpkg/sdks": "^3.2.3",
|
|
234
230
|
"css-mediaquery": "^0.1.2",
|
|
235
231
|
"eslint": "^8.56.0",
|
|
236
232
|
"eslint-config-mx": "^4.0.0",
|
|
@@ -239,7 +235,7 @@
|
|
|
239
235
|
"eslint-plugin-react": "^7.33.2",
|
|
240
236
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
241
237
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
242
|
-
"eslint-plugin-storybook": "
|
|
238
|
+
"eslint-plugin-storybook": "9.1.16",
|
|
243
239
|
"global-jsdom": "^9.2.0",
|
|
244
240
|
"husky": "^9.1.7",
|
|
245
241
|
"jsdom": "^23.0.1",
|
|
@@ -247,15 +243,14 @@
|
|
|
247
243
|
"path": "^0.12.7",
|
|
248
244
|
"prettier": "^3.5.3",
|
|
249
245
|
"prop-types": "^15.8.1",
|
|
250
|
-
"storybook": "
|
|
251
|
-
"storybook-addon-mock": "^
|
|
252
|
-
"storybook-dark-mode": "4.0.1",
|
|
246
|
+
"storybook": "9.1.16",
|
|
247
|
+
"storybook-addon-mock": "^6.0.1",
|
|
253
248
|
"typescript": "^5.8.2",
|
|
254
249
|
"vi-canvas-mock": "^1.0.0",
|
|
255
|
-
"vite": "^
|
|
256
|
-
"vite-plugin-dts": "^4.5.
|
|
250
|
+
"vite": "^7.2.7",
|
|
251
|
+
"vite-plugin-dts": "^4.5.4",
|
|
257
252
|
"vite-tsconfig-paths": "^5.1.4",
|
|
258
|
-
"vitest": "^
|
|
253
|
+
"vitest": "^4.0.15"
|
|
259
254
|
},
|
|
260
255
|
"peerDependencies": {
|
|
261
256
|
"@mui/material": "^5",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Button";
|
|
3
|
-
import C from "@mui/material/Card";
|
|
4
|
-
import g from "@mui/material/CardContent";
|
|
5
|
-
import b from "@mui/material/CardHeader";
|
|
6
|
-
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
|
-
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
-
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-C41HAxM5.mjs";
|
|
10
|
-
const H = ({
|
|
11
|
-
children: e,
|
|
12
|
-
className: o,
|
|
13
|
-
ctaLabel: n,
|
|
14
|
-
onCTAClick: a,
|
|
15
|
-
subHeader: t,
|
|
16
|
-
sx: s,
|
|
17
|
-
title: c,
|
|
18
|
-
variant: d = "borderless"
|
|
19
|
-
}) => {
|
|
20
|
-
const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
|
|
21
|
-
/* @__PURE__ */ r(
|
|
22
|
-
b,
|
|
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(u, { 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(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
|
|
40
|
-
] });
|
|
41
|
-
return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
|
|
42
|
-
}, F = H;
|
|
43
|
-
export {
|
|
44
|
-
F as M
|
|
45
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Box";
|
|
3
|
-
import C from "@mui/material/Button";
|
|
4
|
-
import u from "@mui/material/Card";
|
|
5
|
-
import v from "@mui/material/CardHeader";
|
|
6
|
-
import b from "@mui/material/CardContent";
|
|
7
|
-
import W from "@mui/material/IconButton";
|
|
8
|
-
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
|
-
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
|
-
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
-
import { W as j } from "./hooks-C41HAxM5.mjs";
|
|
12
|
-
const w = ({
|
|
13
|
-
children: a,
|
|
14
|
-
className: m = "mx-cmn-mini-widget",
|
|
15
|
-
closeLabel: l,
|
|
16
|
-
contentStyles: d,
|
|
17
|
-
onClose: e,
|
|
18
|
-
onPrimaryCtaClick: o,
|
|
19
|
-
primaryCtaLabel: s = "",
|
|
20
|
-
subTitle: n = "",
|
|
21
|
-
sx: c = {},
|
|
22
|
-
title: t = ""
|
|
23
|
-
}) => {
|
|
24
|
-
const [p, { height: h, width: f }] = S();
|
|
25
|
-
return /* @__PURE__ */ r(u, { className: m, sx: { ...c }, children: [
|
|
26
|
-
/* @__PURE__ */ i(
|
|
27
|
-
v,
|
|
28
|
-
{
|
|
29
|
-
sx: { pb: 8 },
|
|
30
|
-
title: /* @__PURE__ */ r(g, { children: [
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
x,
|
|
33
|
-
{
|
|
34
|
-
sx: {
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
display: "grid",
|
|
37
|
-
gap: 2,
|
|
38
|
-
gridTemplateColumns: "1fr auto",
|
|
39
|
-
pb: 4
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
t && /* @__PURE__ */ i(I, { children: t }),
|
|
43
|
-
e ? /* @__PURE__ */ i(W, { "aria-label": l, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(C, { endIcon: /* @__PURE__ */ i(H, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: s }) })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...d }, children: /* @__PURE__ */ i(j, { availableHeight: h, availableWidth: f, children: a }) })
|
|
52
|
-
] });
|
|
53
|
-
}, G = w;
|
|
54
|
-
export {
|
|
55
|
-
G as M
|
|
56
|
-
};
|