@mx-cartographer/experiences 9.0.3 → 9.1.0-alpha.bb1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -4
- package/dist/Analytics-BKzTPees.mjs +61 -0
- package/dist/GlobalCopyApi-BeXzaDH9.mjs +487 -0
- package/dist/HeaderCell-EhCUSjvj.mjs +10 -0
- package/dist/Loader-BlVzRtUd.mjs +73 -0
- package/dist/MiniWidgetContainer-COwnjfy7.mjs +110 -0
- package/dist/OriginalBalanceAction-sbiqaxok.mjs +110 -0
- package/dist/SpendingLegend-D15ixlQ1.mjs +222 -0
- package/dist/accounts/index.es.js +12 -1598
- package/dist/accounts-DkyAiLpg.mjs +15632 -0
- package/dist/analytics/index.es.js +155 -139
- package/dist/budgets/index.es.js +1317 -1266
- package/dist/cashflow/index.es.js +1047 -942
- package/dist/categories/index.es.js +4 -4
- package/dist/common/index.es.js +101 -310
- package/dist/core/index.es.js +80 -104
- package/dist/core-BexP5oiV.mjs +4047 -0
- package/dist/dashboard/index.es.js +185 -141
- package/dist/debts/index.es.js +1384 -1272
- package/dist/finstrong/index.es.js +3366 -3471
- package/dist/goals/index.es.js +1103 -984
- package/dist/help/index.es.js +3 -25
- package/dist/help-CctDYrAH.mjs +2308 -0
- package/dist/insights/index.es.js +93 -4843
- package/dist/investments/index.es.js +1533 -1522
- package/dist/merchants/index.es.js +75 -64
- package/dist/microinsights/index.es.js +15 -824
- package/dist/microinsights-CRf3ChsJ.mjs +1814 -0
- package/dist/networth/index.es.js +550 -503
- package/dist/notifications/index.es.js +169 -161
- package/dist/recurringtransactions/index.es.js +10 -962
- package/dist/recurringtransactions-gbJ_NA8u.mjs +1564 -0
- package/dist/settings/index.es.js +13 -880
- package/dist/settings-ZMHe439l.mjs +1526 -0
- package/dist/spending/index.es.js +400 -456
- package/dist/transactions/index.es.js +10 -603
- package/dist/trends/index.es.js +1268 -1407
- package/package.json +28 -28
- package/dist/Account-BaJmiJAG.mjs +0 -118
- package/dist/Account-BxHMlV9R.mjs +0 -30
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
- package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
- package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
- package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
- package/dist/AccountUtils-T5_Odvos.mjs +0 -27
- package/dist/Accounts-CseLC3lL.mjs +0 -5
- package/dist/Analytics-CkYXKvco.mjs +0 -53
- package/dist/Analytics-CzGzz_sE.mjs +0 -136
- package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -49
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -74
- package/dist/Category-DEKZGLYe.mjs +0 -301
- package/dist/CategorySelectorDrawer-8soGrhB8.mjs +0 -430
- package/dist/Connect-Dk6GZEsA.mjs +0 -39
- package/dist/ConnectCard-CCep7Zqe.mjs +0 -54
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +0 -58
- package/dist/ConnectionsDrawer-CtfPXk0M.mjs +0 -54
- package/dist/CurrencyDialog-DumQCTPO.mjs +0 -373
- package/dist/CurrencyInput-adTIRtL3.mjs +0 -87
- package/dist/CurrencyText-CCbE6MmF.mjs +0 -20
- package/dist/DateFormats-HudZ3Bjs.mjs +0 -64
- package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
- package/dist/DebtUtils-DD3186U-.mjs +0 -153
- package/dist/Dialog-Bvd2n8hz.mjs +0 -66
- package/dist/Donut-SzzfZDHF.mjs +0 -88
- package/dist/Drawer-BXqqBMxg.mjs +0 -174
- package/dist/EmbeddedCard-DPwJjqMH.mjs +0 -856
- package/dist/EmptyState-CJUDc3kD.mjs +0 -84
- package/dist/Error-Dogaw2jO.mjs +0 -84
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -23
- package/dist/ExportCsvAction-Bw02ZJEj.mjs +0 -24
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +0 -237
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -128
- package/dist/GoalsUtil-C9EnLWvC.mjs +0 -107
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Help-CkQTjORd.mjs +0 -299
- package/dist/Help-DJ8PrVHX.mjs +0 -3209
- package/dist/IconBacking-DgT8DCeh.mjs +0 -39
- package/dist/InformationTooltip-4su8bn1e.mjs +0 -41
- package/dist/InvestmentUtil-BItV7uEs.mjs +0 -134
- package/dist/LineChart-CejWS_rh.mjs +0 -612
- package/dist/ListItemAction-CzZ8s39Z.mjs +0 -69
- package/dist/ListItemRow-kH1rn8Xu.mjs +0 -67
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +0 -42
- package/dist/Loader-CxeBwuPG.mjs +0 -21
- package/dist/Localization-DnoVyBNK.mjs +0 -38
- package/dist/ManageIncome-D1yBODQi.mjs +0 -595
- package/dist/MicroWidgetContainer-CfKdQfhi.mjs +0 -45
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +0 -66
- package/dist/NetWorthUtils-DilGN1nW.mjs +0 -95
- package/dist/Notification-DTNYSd8P.mjs +0 -7
- package/dist/NotificationSettings-B4JA5IKE.mjs +0 -677
- package/dist/NotificationUtils-BRGFTePr.mjs +0 -23
- package/dist/NumberFormatting--XMeeBfr.mjs +0 -49
- package/dist/OriginalBalanceAction-BybTXDtO.mjs +0 -114
- package/dist/RecurringSettings-D2xbNb67.mjs +0 -88
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
- package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -45
- package/dist/SearchBox-Cpgu_gdO.mjs +0 -50
- package/dist/Select-BFt-HD-L.mjs +0 -55
- package/dist/SelectionBox-B4xELRgp.mjs +0 -48
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -69
- package/dist/Sizes-DISGrlUg.mjs +0 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-Fii_xATx.mjs +0 -53
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +0 -193
- package/dist/StatusBar-CPfSXe80.mjs +0 -30
- package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
- package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -91
- package/dist/TransactionDetails-DctXr07p.mjs +0 -1714
- package/dist/TransactionUtils-BphBJBbU.mjs +0 -234
- package/dist/TrendsUtil-D9z3kIj_.mjs +0 -69
- package/dist/UserStore-CRpKQjpP.mjs +0 -3002
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +0 -1295
- package/dist/WidgetContainer-CmbU4CBH.mjs +0 -482
- package/dist/hooks-BaO_gOI6.mjs +0 -77
- package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
- package/dist/useAriaLive-MkYebyUR.mjs +0 -35
- package/dist/useDimensions-CeDR9V8N.mjs +0 -36
- package/dist/useInsightsEnabled-DaNLPmUU.mjs +0 -11
- package/dist/useScreenSize-mWpmnh5w.mjs +0 -36
- package/dist/useWidgetLoadTimer-CJb-RELP.mjs +0 -19
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { getDate as D } from "date-fns/getDate";
|
|
2
|
-
import { addMonths as A } from "date-fns/addMonths";
|
|
3
|
-
import { fromUnixTime as d } from "date-fns/fromUnixTime";
|
|
4
|
-
import { getUnixTime as M } from "date-fns/getUnixTime";
|
|
5
|
-
import { startOfMonth as I } from "date-fns/startOfMonth";
|
|
6
|
-
import { A as w } from "./Account-BaJmiJAG.mjs";
|
|
7
|
-
const H = 12, C = 100;
|
|
8
|
-
var y = /* @__PURE__ */ ((t) => (t[t.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", t[t.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", t[t.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", t[t.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", t))(y || {});
|
|
9
|
-
const N = {
|
|
10
|
-
unnamed_label: "Unnamed Debt"
|
|
11
|
-
}, W = (t, n, e = 0) => {
|
|
12
|
-
const o = t.map((r) => ({ ...r }));
|
|
13
|
-
L(o, n);
|
|
14
|
-
const s = /* @__PURE__ */ new Date(), a = [];
|
|
15
|
-
let i = 0, m = 1;
|
|
16
|
-
for (const r of o)
|
|
17
|
-
a.push({
|
|
18
|
-
...r,
|
|
19
|
-
// Start with the initial balance
|
|
20
|
-
dataset: [{ x: new Date(s), y: r.balance }]
|
|
21
|
-
});
|
|
22
|
-
for (; o.some((r) => r.balance >= 0.01 && !r.is_impossible); ) {
|
|
23
|
-
let r = !1, _ = !1, l = !1;
|
|
24
|
-
for (const [p, c] of o.entries()) {
|
|
25
|
-
if (c.balance <= 0.01) continue;
|
|
26
|
-
const u = a[p].dataset, x = (c.interest_rate ?? 0) / 100 / 12, E = c.balance * x, T = c.monthly_payment ?? 0;
|
|
27
|
-
let S = T, h = 0;
|
|
28
|
-
!l && e > 0 && (S += e, l = !0), !_ && i > 0 && (h = i, _ = !0), c.balance += E;
|
|
29
|
-
const f = Math.min(c.balance, S + h);
|
|
30
|
-
if (f <= E) {
|
|
31
|
-
c.is_impossible = !0, a[p].is_impossible = !0, a[p].priority = void 0, u.push({ x: new Date(s), y: c.balance });
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
c.balance -= f, c.balance = c.balance < 0.01 ? 0 : c.balance, u.push({
|
|
35
|
-
x: new Date(s),
|
|
36
|
-
y: Math.max(0, c.balance),
|
|
37
|
-
payment: f,
|
|
38
|
-
extra: h
|
|
39
|
-
}), c.balance <= 0 && (i += T, a[p].projected_payoff_date = new Date(s)), f > 0 && (r = !0);
|
|
40
|
-
}
|
|
41
|
-
r && s.setMonth(s.getMonth() + 1);
|
|
42
|
-
}
|
|
43
|
-
return a.forEach((r) => {
|
|
44
|
-
(r.interest_rate === void 0 || r.monthly_payment === void 0) && (r.projected_payoff_date = void 0);
|
|
45
|
-
}), a.forEach((r) => {
|
|
46
|
-
r.priority = !r.is_paid_off && !r.is_impossible ? m++ : void 0;
|
|
47
|
-
}), a;
|
|
48
|
-
}, Y = (t, n, e) => ({
|
|
49
|
-
description: n ? t.empty_state_description : t.empty_state_description_no_aggregation,
|
|
50
|
-
header: n ? t.empty_state_header : t.empty_state_header_no_aggregation,
|
|
51
|
-
onClickHandler: n ? e : void 0,
|
|
52
|
-
primaryButton: n ? t.connect_accounts : void 0
|
|
53
|
-
});
|
|
54
|
-
function K(t, n) {
|
|
55
|
-
const e = t.filter((a) => a.account_type === w.CHECKING_LINE_OF_CREDIT ? Number(a.balance) <= 0 : a.is_excluded_from_debts !== !0), o = n.filter((a) => e.some((i) => i.guid === a.account_guid)).map(
|
|
56
|
-
(a) => F(e.find((i) => i.guid === a.account_guid), a)
|
|
57
|
-
), s = e.filter((a) => !o.some((i) => i.account.guid === a.guid)).map((a) => F(a));
|
|
58
|
-
return [...o, ...s];
|
|
59
|
-
}
|
|
60
|
-
function F(t, n) {
|
|
61
|
-
const e = { account: t, goal: n, guid: t.guid };
|
|
62
|
-
if (n) {
|
|
63
|
-
const o = n.payment_due_at ? D(d(n.payment_due_at)) : 1, s = I(/* @__PURE__ */ new Date()).setDate(o);
|
|
64
|
-
e.balance = Math.abs(n.amount - n.current_amount), e.interest_rate = n.interest_rate, e.is_paid_off = n.is_complete, e.monthly_payment = n.monthly_payment, e.name = n.name, e.original_balance = n.initial_amount, e.payment_due_date = s;
|
|
65
|
-
} else {
|
|
66
|
-
const o = t.payment_due_at ? D(d(t.payment_due_at)) : 1, s = I(/* @__PURE__ */ new Date()).setDate(o), a = t.balance ?? 0, i = t.minimum_payment ?? void 0, m = t.interest_rate ?? t.apr ?? t.apy;
|
|
67
|
-
e.balance = Math.max(a, 0), e.interest_rate = m, e.is_paid_off = a === 0, e.monthly_payment = i, e.name = t?.name ?? N.unnamed_label, e.original_balance = t.original_balance, e.payment_due_date = s;
|
|
68
|
-
}
|
|
69
|
-
return e.is_impossible = !1, e.priority = void 0, e.projected_payoff_date = void 0, e;
|
|
70
|
-
}
|
|
71
|
-
const v = (t) => (t[t.length - 1] || {}).timestamp, L = (t, n) => {
|
|
72
|
-
const [e, o] = t.reduce(
|
|
73
|
-
([s, a], i) => (i.is_paid_off || i.is_impossible ? a.push({ ...i, minimumPayments: [] }) : s.push(R(i)), [s, a]),
|
|
74
|
-
[[], []]
|
|
75
|
-
);
|
|
76
|
-
switch (n) {
|
|
77
|
-
case y.FASTEST_PAYOFF_FIRST:
|
|
78
|
-
e.sort((s, a) => (s.minimumFinalPayment ?? 0) - (a.minimumFinalPayment ?? 0));
|
|
79
|
-
break;
|
|
80
|
-
case y.HIGHEST_INTEREST:
|
|
81
|
-
e.sort((s, a) => (a.interest_rate ?? 0) - (s.interest_rate ?? 0));
|
|
82
|
-
break;
|
|
83
|
-
case y.LOWEST_BALANCE:
|
|
84
|
-
e.sort((s, a) => s.balance - a.balance);
|
|
85
|
-
break;
|
|
86
|
-
case y.HIGHEST_BALANCE:
|
|
87
|
-
e.sort((s, a) => a.balance - s.balance);
|
|
88
|
-
break;
|
|
89
|
-
default:
|
|
90
|
-
e.sort((s, a) => s.balance - a.balance);
|
|
91
|
-
}
|
|
92
|
-
t.splice(0, t.length, ...e, ...o);
|
|
93
|
-
}, R = (t) => {
|
|
94
|
-
const { monthly_payment: n, interest_rate: e, balance: o, payment_due_date: s } = t, a = O(o, e ?? 0, n ?? 0), i = B(
|
|
95
|
-
a,
|
|
96
|
-
o,
|
|
97
|
-
e ?? 0,
|
|
98
|
-
n ?? 0,
|
|
99
|
-
s
|
|
100
|
-
), m = v(i);
|
|
101
|
-
return {
|
|
102
|
-
...t,
|
|
103
|
-
minimumFinalPayment: m,
|
|
104
|
-
minimumPayments: i
|
|
105
|
-
};
|
|
106
|
-
}, O = (t, n = 0, e = 0) => {
|
|
107
|
-
if (e === 0) return 0;
|
|
108
|
-
const o = n / (H * C);
|
|
109
|
-
return Math.ceil(
|
|
110
|
-
o === 0 ? t / e : -Math.log(1 - o * t / e) / Math.log(1 + o)
|
|
111
|
-
);
|
|
112
|
-
}, B = (t, n, e, o, s) => {
|
|
113
|
-
const a = [];
|
|
114
|
-
if (e === 0) {
|
|
115
|
-
for (let m = 0; m < t; m++) {
|
|
116
|
-
const r = n - o * (m + 1), _ = n - o * m, l = r >= 0 ? o : _;
|
|
117
|
-
a.push({
|
|
118
|
-
balance: r >= 0 ? r : 0,
|
|
119
|
-
interest: e,
|
|
120
|
-
payment: l,
|
|
121
|
-
principal: l,
|
|
122
|
-
timestamp: M(
|
|
123
|
-
A(
|
|
124
|
-
d(s),
|
|
125
|
-
// convert seconds → Date
|
|
126
|
-
m + 1
|
|
127
|
-
// add (index + 1) months
|
|
128
|
-
)
|
|
129
|
-
)
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
return a;
|
|
133
|
-
}
|
|
134
|
-
const i = e / 1200;
|
|
135
|
-
for (let m = 0; m < t; m++) {
|
|
136
|
-
const r = M(A(d(s), m + 1)), _ = Math.pow(1 + i, m), l = n * _ - o * ((_ - 1) / i), p = Math.pow(1 + i, m + 1), c = n * p - o * ((p - 1) / i), u = o + Math.min(c, 0), b = l * i;
|
|
137
|
-
a.push({
|
|
138
|
-
balance: Math.max(0, c),
|
|
139
|
-
interest: b,
|
|
140
|
-
payment: u,
|
|
141
|
-
principal: u - b,
|
|
142
|
-
timestamp: r
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
return a;
|
|
146
|
-
};
|
|
147
|
-
export {
|
|
148
|
-
y as D,
|
|
149
|
-
Y as b,
|
|
150
|
-
K as l,
|
|
151
|
-
L as s,
|
|
152
|
-
W as t
|
|
153
|
-
};
|
package/dist/Dialog-Bvd2n8hz.mjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import y from "@mui/material/Dialog";
|
|
3
|
-
import P from "@mui/material/DialogContent";
|
|
4
|
-
import { DialogHeader as S, DialogFooter as A } from "@mxenabled/mxui";
|
|
5
|
-
import { u as M } from "./useScreenSize-mWpmnh5w.mjs";
|
|
6
|
-
const W = ({
|
|
7
|
-
className: l,
|
|
8
|
-
copy: o,
|
|
9
|
-
disablePrimaryButton: t = !1,
|
|
10
|
-
isOpen: n = !1,
|
|
11
|
-
onClose: a,
|
|
12
|
-
onPrimaryAction: s,
|
|
13
|
-
primaryColor: c = "primary",
|
|
14
|
-
primaryText: m = "Confirm",
|
|
15
|
-
onSecondaryAction: e,
|
|
16
|
-
secondaryColor: p = "primary",
|
|
17
|
-
secondaryText: d = "Cancel",
|
|
18
|
-
children: g,
|
|
19
|
-
...f
|
|
20
|
-
}) => {
|
|
21
|
-
const r = o?.title ?? "", u = o?.close_aria ?? "Close", { isSmallMobile: h } = M(), D = () => {
|
|
22
|
-
s?.(), a();
|
|
23
|
-
}, b = () => {
|
|
24
|
-
e && e(), a();
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ i("div", { className: `mx-cmn-dialog ${l}`, children: /* @__PURE__ */ x(
|
|
27
|
-
y,
|
|
28
|
-
{
|
|
29
|
-
"aria-label": r,
|
|
30
|
-
"aria-labelledby": void 0,
|
|
31
|
-
maxWidth: "xs",
|
|
32
|
-
onClose: a,
|
|
33
|
-
open: n,
|
|
34
|
-
slotProps: {
|
|
35
|
-
paper: { "aria-label": r }
|
|
36
|
-
},
|
|
37
|
-
sx: {
|
|
38
|
-
"& .MuiDialog-paperScrollPaper": {
|
|
39
|
-
backgroundColor: "background.default"
|
|
40
|
-
},
|
|
41
|
-
...h && { "& .MuiDialog-paper": { minWidth: "100%" } },
|
|
42
|
-
height: "100%"
|
|
43
|
-
},
|
|
44
|
-
...f,
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ i(S, { copy: { title: r, close_aria: u }, onClose: a, truncate: !0 }),
|
|
47
|
-
/* @__PURE__ */ i(P, { sx: { lineHeight: 1.5 }, children: g }),
|
|
48
|
-
/* @__PURE__ */ i(
|
|
49
|
-
A,
|
|
50
|
-
{
|
|
51
|
-
isPrimaryDisabled: t,
|
|
52
|
-
onPrimaryAction: D,
|
|
53
|
-
onSecondaryAction: b,
|
|
54
|
-
primaryColor: c,
|
|
55
|
-
primaryText: m,
|
|
56
|
-
secondaryColor: p,
|
|
57
|
-
secondaryText: d
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
) });
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
W as D
|
|
66
|
-
};
|
package/dist/Donut-SzzfZDHF.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import R from "react";
|
|
3
|
-
import { selectAll as b, interpolateString as m, arc as x } from "d3";
|
|
4
|
-
import u from "@mui/material/Box";
|
|
5
|
-
import { useTheme as I, darken as S, lighten as E } from "@mui/material/styles";
|
|
6
|
-
const _ = 100, v = 140, B = 10, K = ({
|
|
7
|
-
data: h,
|
|
8
|
-
hoveredId: p,
|
|
9
|
-
onClick: a,
|
|
10
|
-
onMouseEnter: l,
|
|
11
|
-
onMouseLeave: s,
|
|
12
|
-
selectedId: i,
|
|
13
|
-
size: t = 300,
|
|
14
|
-
children: f
|
|
15
|
-
}) => {
|
|
16
|
-
const c = I();
|
|
17
|
-
let r = 0;
|
|
18
|
-
const g = (o, n) => {
|
|
19
|
-
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), a?.(n));
|
|
20
|
-
}, y = (o) => {
|
|
21
|
-
l?.(o);
|
|
22
|
-
}, k = (o) => {
|
|
23
|
-
s?.(o);
|
|
24
|
-
};
|
|
25
|
-
return R.useEffect(() => {
|
|
26
|
-
b(".arc-outer").transition("roll").duration(500).attrTween("transform", () => m("rotate(0)", "rotate(360)"));
|
|
27
|
-
}, []), /* @__PURE__ */ d(u, { height: t, position: "relative", width: t, children: [
|
|
28
|
-
/* @__PURE__ */ e(u, { height: "100%", width: "100%", children: f }),
|
|
29
|
-
/* @__PURE__ */ d(
|
|
30
|
-
"svg",
|
|
31
|
-
{
|
|
32
|
-
height: t,
|
|
33
|
-
style: { position: "absolute", top: 0, left: 0, touchAction: "manipulation" },
|
|
34
|
-
viewBox: "-150 -150 300 300",
|
|
35
|
-
width: t,
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ e("style", { children: `
|
|
38
|
-
.arc-outer:focus,
|
|
39
|
-
.arc-outer:focus-visible {
|
|
40
|
-
stroke: ${c.palette.primary.main};
|
|
41
|
-
stroke-width: 3;
|
|
42
|
-
stroke-opacity: 0.8;
|
|
43
|
-
}
|
|
44
|
-
` }),
|
|
45
|
-
/* @__PURE__ */ e("g", { children: h.map((o) => {
|
|
46
|
-
const n = r;
|
|
47
|
-
r = r + 2 * Math.PI * (o.value / 100);
|
|
48
|
-
const w = r, A = x().cornerRadius(4)({
|
|
49
|
-
innerRadius: _,
|
|
50
|
-
outerRadius: v + (o.id === i || o.id === p ? B : 0),
|
|
51
|
-
startAngle: n,
|
|
52
|
-
endAngle: w,
|
|
53
|
-
padAngle: 0.025
|
|
54
|
-
});
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
56
|
-
"path",
|
|
57
|
-
{
|
|
58
|
-
"aria-label": o.label || `Segment ${o.id}`,
|
|
59
|
-
"aria-pressed": o.id === i,
|
|
60
|
-
className: "arc-outer",
|
|
61
|
-
d: A,
|
|
62
|
-
fill: o.color,
|
|
63
|
-
onBlur: () => k(o.id),
|
|
64
|
-
onClick: () => a?.(o.id),
|
|
65
|
-
onFocus: () => y(o.id),
|
|
66
|
-
onKeyDown: (D) => g(D, o.id),
|
|
67
|
-
onMouseEnter: () => l?.(o.id),
|
|
68
|
-
onMouseLeave: () => s?.(o.id),
|
|
69
|
-
role: "button",
|
|
70
|
-
stroke: c.palette.mode === "light" ? S(o.color, 0.3) : E(o.color, 0.3),
|
|
71
|
-
strokeWidth: 2,
|
|
72
|
-
style: {
|
|
73
|
-
cursor: "pointer",
|
|
74
|
-
outline: "none"
|
|
75
|
-
},
|
|
76
|
-
tabIndex: 0
|
|
77
|
-
},
|
|
78
|
-
o.id
|
|
79
|
-
);
|
|
80
|
-
}) })
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] });
|
|
85
|
-
};
|
|
86
|
-
export {
|
|
87
|
-
K as D
|
|
88
|
-
};
|
package/dist/Drawer-BXqqBMxg.mjs
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import s from "@mui/material/Box";
|
|
3
|
-
import h from "@mui/material/Stack";
|
|
4
|
-
import { H2 as D, Drawer as v } from "@mxenabled/mxui";
|
|
5
|
-
import b from "@mui/material/Button";
|
|
6
|
-
import B from "@mui/material/IconButton";
|
|
7
|
-
import { ArrowBack as j } from "@mxenabled/mx-icons";
|
|
8
|
-
const $ = ({
|
|
9
|
-
footerStyles: a = {},
|
|
10
|
-
hasSecondaryAction: t = !0,
|
|
11
|
-
isPrimaryDisabled: i,
|
|
12
|
-
onPrimaryAction: e,
|
|
13
|
-
onSecondaryAction: o,
|
|
14
|
-
primaryButtonProps: l = {},
|
|
15
|
-
primaryColor: c = "primary",
|
|
16
|
-
primaryText: d = "Save",
|
|
17
|
-
secondaryColor: n = "primary",
|
|
18
|
-
secondaryText: p = "Cancel"
|
|
19
|
-
}) => /* @__PURE__ */ u(
|
|
20
|
-
h,
|
|
21
|
-
{
|
|
22
|
-
sx: {
|
|
23
|
-
bgcolor: "background.paper",
|
|
24
|
-
flexDirection: "row",
|
|
25
|
-
gap: 16,
|
|
26
|
-
justifyContent: "flex-end",
|
|
27
|
-
p: 24,
|
|
28
|
-
...a
|
|
29
|
-
},
|
|
30
|
-
children: [
|
|
31
|
-
t && /* @__PURE__ */ r(
|
|
32
|
-
b,
|
|
33
|
-
{
|
|
34
|
-
color: n,
|
|
35
|
-
onClick: o,
|
|
36
|
-
variant: e ? "outlined" : "contained",
|
|
37
|
-
children: p
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
e && /* @__PURE__ */ r(
|
|
41
|
-
b,
|
|
42
|
-
{
|
|
43
|
-
...l,
|
|
44
|
-
color: c,
|
|
45
|
-
disabled: i,
|
|
46
|
-
onClick: e,
|
|
47
|
-
variant: "contained",
|
|
48
|
-
children: d
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
), L = ({
|
|
54
|
-
ariaLabelClose: a,
|
|
55
|
-
onClose: t,
|
|
56
|
-
shouldShowBorders: i,
|
|
57
|
-
shouldShowShadow: e,
|
|
58
|
-
title: o
|
|
59
|
-
}) => /* @__PURE__ */ u(
|
|
60
|
-
h,
|
|
61
|
-
{
|
|
62
|
-
"aria-labelledby": `${o?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
|
|
63
|
-
direction: "row",
|
|
64
|
-
sx: {
|
|
65
|
-
alignItems: "center",
|
|
66
|
-
backgroundColor: "background.paper",
|
|
67
|
-
...i && {
|
|
68
|
-
borderBottom: 1,
|
|
69
|
-
borderColor: "divider"
|
|
70
|
-
},
|
|
71
|
-
...e && {
|
|
72
|
-
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
73
|
-
},
|
|
74
|
-
padding: "8px 8px 8px 8px"
|
|
75
|
-
},
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ r(B, { "aria-label": a, color: "primary", onClick: t, children: /* @__PURE__ */ r(j, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
78
|
-
/* @__PURE__ */ r(
|
|
79
|
-
s,
|
|
80
|
-
{
|
|
81
|
-
sx: {
|
|
82
|
-
flexGrow: 1,
|
|
83
|
-
margin: "auto",
|
|
84
|
-
textAlign: "center"
|
|
85
|
-
},
|
|
86
|
-
children: /* @__PURE__ */ r(
|
|
87
|
-
D,
|
|
88
|
-
{
|
|
89
|
-
bold: !0,
|
|
90
|
-
id: `${o?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
|
|
91
|
-
variant: "body1",
|
|
92
|
-
children: o
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
/* @__PURE__ */ r(s, { width: "44px" })
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
), R = ({
|
|
101
|
-
ariaLabelClose: a = "Close",
|
|
102
|
-
children: t,
|
|
103
|
-
footerStyles: i = {},
|
|
104
|
-
hasSecondaryAction: e = !0,
|
|
105
|
-
id: o,
|
|
106
|
-
isOpen: l,
|
|
107
|
-
isPrimaryDisabled: c,
|
|
108
|
-
onClose: d,
|
|
109
|
-
onPrimaryAction: n,
|
|
110
|
-
onSecondaryAction: p,
|
|
111
|
-
primaryButtonProps: g,
|
|
112
|
-
primaryColor: m = "primary",
|
|
113
|
-
primaryText: w,
|
|
114
|
-
secondaryColor: f = "secondary",
|
|
115
|
-
secondaryText: k,
|
|
116
|
-
shouldShowHeaderBorders: C = !0,
|
|
117
|
-
shouldShowHeaderShadow: y = !1,
|
|
118
|
-
title: x,
|
|
119
|
-
...S
|
|
120
|
-
}) => /* @__PURE__ */ r(
|
|
121
|
-
v,
|
|
122
|
-
{
|
|
123
|
-
id: o,
|
|
124
|
-
isOpen: l,
|
|
125
|
-
onClose: d,
|
|
126
|
-
slotProps: {
|
|
127
|
-
paper: {
|
|
128
|
-
"aria-labelledby": `${x?.replace(/\s+/g, "-").toLowerCase()}-header-title`
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
sx: {
|
|
132
|
-
"& .MuiDrawer-paper": {
|
|
133
|
-
backgroundColor: "background.default",
|
|
134
|
-
borderRadius: 0
|
|
135
|
-
},
|
|
136
|
-
height: "100%",
|
|
137
|
-
"& .MuiToolbar-root": {
|
|
138
|
-
backgroundColor: "background.paper"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
...S,
|
|
142
|
-
children: /* @__PURE__ */ u(h, { height: "100%", justifyContent: "space-between", children: [
|
|
143
|
-
/* @__PURE__ */ r(
|
|
144
|
-
L,
|
|
145
|
-
{
|
|
146
|
-
ariaLabelClose: a,
|
|
147
|
-
onClose: d,
|
|
148
|
-
shouldShowBorders: C,
|
|
149
|
-
shouldShowShadow: y,
|
|
150
|
-
title: x
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ r(s, { height: "100%", overflow: "auto", children: t }),
|
|
154
|
-
n && /* @__PURE__ */ r(
|
|
155
|
-
$,
|
|
156
|
-
{
|
|
157
|
-
footerStyles: i,
|
|
158
|
-
hasSecondaryAction: e,
|
|
159
|
-
isPrimaryDisabled: c,
|
|
160
|
-
onPrimaryAction: n,
|
|
161
|
-
onSecondaryAction: p ?? d,
|
|
162
|
-
primaryButtonProps: g,
|
|
163
|
-
primaryColor: m,
|
|
164
|
-
primaryText: w,
|
|
165
|
-
secondaryColor: f,
|
|
166
|
-
secondaryText: k
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
] })
|
|
170
|
-
}
|
|
171
|
-
);
|
|
172
|
-
export {
|
|
173
|
-
R as D
|
|
174
|
-
};
|