@mxenabled/mxui 2.16.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +146 -145
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Palette.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as n, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import H from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as O, createTheme as
|
|
5
|
-
import { Icon as
|
|
3
|
+
import A from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as O, createTheme as U } from "@mui/material/styles";
|
|
5
|
+
import { Icon as ce, ExpandMore as de, Close as pe } from "@mxenabled/mx-icons";
|
|
6
6
|
import { endOfMonth as V } from "date-fns/endOfMonth";
|
|
7
|
-
import { endOfYear as
|
|
8
|
-
import { startOfToday as
|
|
7
|
+
import { endOfYear as ue } from "date-fns/endOfYear";
|
|
8
|
+
import { startOfToday as ge } from "date-fns/startOfToday";
|
|
9
9
|
import { startOfMonth as G } from "date-fns/startOfMonth";
|
|
10
10
|
import { startOfYear as K } from "date-fns/startOfYear";
|
|
11
11
|
import { subDays as Y } from "date-fns/subDays";
|
|
12
|
-
import { subMonths as
|
|
13
|
-
import { subYears as
|
|
14
|
-
import
|
|
15
|
-
import { usePickerContext as
|
|
16
|
-
import { AdapterDateFns as
|
|
12
|
+
import { subMonths as he } from "date-fns/subMonths";
|
|
13
|
+
import { subYears as fe } from "date-fns/subYears";
|
|
14
|
+
import me from "@mui/material/useMediaQuery";
|
|
15
|
+
import { usePickerContext as Q, useIsValidValue as J, LocalizationProvider as be, StaticDateRangePicker as xe } from "@mui/x-date-pickers-pro";
|
|
16
|
+
import { AdapterDateFns as Te } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
17
|
import L from "@mui/material/Box";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { usePickerLayout as
|
|
23
|
-
import
|
|
18
|
+
import Me from "@mui/material/ToggleButton";
|
|
19
|
+
import Re from "@mui/material/ToggleButtonGroup";
|
|
20
|
+
import Ce from "@mui/material/MenuItem";
|
|
21
|
+
import q from "@mui/material/TextField";
|
|
22
|
+
import { usePickerLayout as ye, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
|
|
23
|
+
import ee from "@mui/material/Slide";
|
|
24
24
|
import $ from "@mui/material/Button";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { FormControlLabel as
|
|
25
|
+
import re from "@mui/material/IconButton";
|
|
26
|
+
import te from "@mui/material/Typography";
|
|
27
|
+
import Ie from "@mui/material/Drawer";
|
|
28
|
+
import Oe from "@mui/material/Snackbar";
|
|
29
|
+
import ve from "@mui/material/Alert";
|
|
30
|
+
import { FormControlLabel as Ee, Box as _, Typography as X, Radio as B, Checkbox as ke, alpha as f, darken as F, lighten as v, getContrastRatio as j } from "@mui/material";
|
|
31
31
|
import { circularProgressClasses as Fe } from "@mui/material/CircularProgress";
|
|
32
32
|
import { LicenseInfo as Le } from "@mui/x-license";
|
|
33
33
|
const D = ({
|
|
@@ -48,7 +48,7 @@ const D = ({
|
|
|
48
48
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49
49
|
children: r
|
|
50
50
|
}
|
|
51
|
-
),
|
|
51
|
+
), M = ({ color: r, fill: i = !1, name: o, size: s = 20, sx: l, ...e }) => /* @__PURE__ */ n(ce, { color: r, fill: i, name: o, size: s, sx: l, ...e }), vr = ({
|
|
52
52
|
color: r = "currentColor",
|
|
53
53
|
...i
|
|
54
54
|
}) => /* @__PURE__ */ b(D, { ...i, children: [
|
|
@@ -66,7 +66,7 @@ const D = ({
|
|
|
66
66
|
fill: r
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
|
-
] }),
|
|
69
|
+
] }), Er = ({
|
|
70
70
|
color: r = "currentColor",
|
|
71
71
|
...i
|
|
72
72
|
}) => /* @__PURE__ */ b(D, { ...i, children: [
|
|
@@ -102,7 +102,7 @@ const D = ({
|
|
|
102
102
|
fillRule: "evenodd"
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
|
-
] }),
|
|
105
|
+
] }), kr = ({
|
|
106
106
|
color: r = "currentColor",
|
|
107
107
|
...i
|
|
108
108
|
}) => /* @__PURE__ */ n(D, { ...i, children: /* @__PURE__ */ n(
|
|
@@ -113,7 +113,7 @@ const D = ({
|
|
|
113
113
|
fill: r,
|
|
114
114
|
fillRule: "evenodd"
|
|
115
115
|
}
|
|
116
|
-
) }),
|
|
116
|
+
) }), Fr = ({
|
|
117
117
|
color: r = "currentColor",
|
|
118
118
|
...i
|
|
119
119
|
}) => /* @__PURE__ */ b(D, { ...i, children: [
|
|
@@ -142,7 +142,7 @@ const D = ({
|
|
|
142
142
|
)
|
|
143
143
|
] });
|
|
144
144
|
var g = /* @__PURE__ */ ((r) => (r.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", r.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", r.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", r.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", r.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", r.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", r.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", r.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", r.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", r.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", r.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", r.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", r.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", r.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", r.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", r.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", r.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", r.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", r.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", r.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", r.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", r))(g || {}), Ne = /* @__PURE__ */ ((r) => (r.Basic = "basic", r.Filled = "filled", r.Transparent = "transparent", r.TwoTone = "two-tone", r))(Ne || {});
|
|
145
|
-
const
|
|
145
|
+
const oe = {
|
|
146
146
|
guid: g.Uncategorized,
|
|
147
147
|
colorName: "uncategorized",
|
|
148
148
|
icon: "category"
|
|
@@ -247,7 +247,7 @@ const te = {
|
|
|
247
247
|
colorName: "travel",
|
|
248
248
|
icon: "airplane_ticket"
|
|
249
249
|
},
|
|
250
|
-
|
|
250
|
+
oe
|
|
251
251
|
], De = 0.625, we = ({
|
|
252
252
|
categoryGuid: r,
|
|
253
253
|
icon_ratio: i = De,
|
|
@@ -256,11 +256,11 @@ const te = {
|
|
|
256
256
|
variant: l = "filled"
|
|
257
257
|
}) => {
|
|
258
258
|
const e = O(), a = H.useMemo(
|
|
259
|
-
() => He.find((m) => m.guid === r) ??
|
|
259
|
+
() => He.find((m) => m.guid === r) ?? oe,
|
|
260
260
|
[r]
|
|
261
261
|
), c = e.palette.categories[a.colorName];
|
|
262
262
|
return /* @__PURE__ */ n(
|
|
263
|
-
|
|
263
|
+
A,
|
|
264
264
|
{
|
|
265
265
|
alignItems: "center",
|
|
266
266
|
bgcolor: () => {
|
|
@@ -276,11 +276,11 @@ const te = {
|
|
|
276
276
|
justifyContent: "center",
|
|
277
277
|
sx: [...Array.isArray(s) ? s : [s]],
|
|
278
278
|
width: o,
|
|
279
|
-
children: /* @__PURE__ */ n(
|
|
279
|
+
children: /* @__PURE__ */ n(M, { name: a.icon, size: o * i })
|
|
280
280
|
}
|
|
281
281
|
);
|
|
282
282
|
}, Pe = ({ items: r, selected: i }) => {
|
|
283
|
-
const o = O(), { setValue: s } =
|
|
283
|
+
const o = O(), { setValue: s } = Q(), l = J(), e = r?.map((a) => {
|
|
284
284
|
const c = a.getValue({ isValid: l });
|
|
285
285
|
return {
|
|
286
286
|
label: a.label,
|
|
@@ -290,8 +290,8 @@ const te = {
|
|
|
290
290
|
disabled: !l(c)
|
|
291
291
|
};
|
|
292
292
|
});
|
|
293
|
-
return /* @__PURE__ */ n(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: "4px", mt: "24px", mr: "32px" }, children: /* @__PURE__ */ n(
|
|
294
|
-
|
|
293
|
+
return /* @__PURE__ */ n(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: "4px", mt: "24px", mr: "32px" }, children: /* @__PURE__ */ n(Re, { color: "primary", orientation: "vertical", value: i, children: e?.map((a) => /* @__PURE__ */ n(
|
|
294
|
+
Me,
|
|
295
295
|
{
|
|
296
296
|
onClick: a.onClick,
|
|
297
297
|
sx: {
|
|
@@ -318,12 +318,12 @@ const te = {
|
|
|
318
318
|
},
|
|
319
319
|
a.label
|
|
320
320
|
)) }) });
|
|
321
|
-
},
|
|
321
|
+
}, _e = ({
|
|
322
322
|
items: r,
|
|
323
323
|
selected: i,
|
|
324
324
|
selectLabel: o
|
|
325
325
|
}) => {
|
|
326
|
-
const { setValue: s } =
|
|
326
|
+
const { setValue: s } = Q(), l = J(), e = r?.map((a) => {
|
|
327
327
|
const c = a.getValue({ isValid: l });
|
|
328
328
|
return {
|
|
329
329
|
label: a.label,
|
|
@@ -333,24 +333,24 @@ const te = {
|
|
|
333
333
|
disabled: !l(c)
|
|
334
334
|
};
|
|
335
335
|
});
|
|
336
|
-
return /* @__PURE__ */ n(
|
|
337
|
-
|
|
336
|
+
return /* @__PURE__ */ n(A, { sx: { py: "16px" }, children: /* @__PURE__ */ n(
|
|
337
|
+
q,
|
|
338
338
|
{
|
|
339
339
|
defaultValue: i,
|
|
340
340
|
id: "select",
|
|
341
341
|
label: o,
|
|
342
342
|
select: !0,
|
|
343
|
-
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent:
|
|
343
|
+
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: de } },
|
|
344
344
|
sx: { width: "100%" },
|
|
345
345
|
value: i,
|
|
346
346
|
variant: "outlined",
|
|
347
|
-
children: e?.map((a) => /* @__PURE__ */ n(
|
|
347
|
+
children: e?.map((a) => /* @__PURE__ */ n(Ce, { onClick: a.onClick, value: a.label, children: a.label }, a.label))
|
|
348
348
|
}
|
|
349
349
|
) });
|
|
350
|
-
},
|
|
351
|
-
const { toolbar: i, content: o, shortcuts: s, ownerState: l } =
|
|
350
|
+
}, Be = (r) => {
|
|
351
|
+
const { toolbar: i, content: o, shortcuts: s, ownerState: l } = ye(r);
|
|
352
352
|
return /* @__PURE__ */ b(
|
|
353
|
-
|
|
353
|
+
Se,
|
|
354
354
|
{
|
|
355
355
|
ownerState: l,
|
|
356
356
|
sx: {
|
|
@@ -368,12 +368,12 @@ const te = {
|
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
370
|
children: [
|
|
371
|
-
/* @__PURE__ */ b(
|
|
371
|
+
/* @__PURE__ */ b(A, { sx: { gridColumn: 1, gridRow: 1, p: "16px" }, children: [
|
|
372
372
|
s,
|
|
373
373
|
i
|
|
374
374
|
] }),
|
|
375
375
|
/* @__PURE__ */ n(
|
|
376
|
-
|
|
376
|
+
Ae,
|
|
377
377
|
{
|
|
378
378
|
className: P.contentWrapper,
|
|
379
379
|
ownerState: l,
|
|
@@ -383,15 +383,15 @@ const te = {
|
|
|
383
383
|
]
|
|
384
384
|
}
|
|
385
385
|
);
|
|
386
|
-
},
|
|
386
|
+
}, Lr = ({
|
|
387
387
|
copy: r,
|
|
388
388
|
dateRange: i,
|
|
389
389
|
onRangeChanged: o,
|
|
390
390
|
selectedShortcut: s = r.dateRangeThisMonth,
|
|
391
391
|
sx: l = {}
|
|
392
392
|
}) => {
|
|
393
|
-
const e = O(), a =
|
|
394
|
-
const t =
|
|
393
|
+
const e = O(), a = me(e.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
394
|
+
const t = ge(), m = he(t, 1), x = fe(t, 1);
|
|
395
395
|
return [
|
|
396
396
|
{
|
|
397
397
|
label: r.dateRangeThisMonth,
|
|
@@ -415,7 +415,7 @@ const te = {
|
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
label: r.dateRangeLastYear,
|
|
418
|
-
getValue: () => [K(x),
|
|
418
|
+
getValue: () => [K(x), ue(x)]
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
label: r.dateRangeCustom,
|
|
@@ -426,8 +426,8 @@ const te = {
|
|
|
426
426
|
const x = m.shortcut;
|
|
427
427
|
o?.(t, x ? x.label : r.dateRangeCustom);
|
|
428
428
|
};
|
|
429
|
-
return /* @__PURE__ */ n(
|
|
430
|
-
|
|
429
|
+
return /* @__PURE__ */ n(A, { gap: a ? 0 : "16px", m: a ? 0 : "8px", children: /* @__PURE__ */ n(be, { dateAdapter: Te, children: /* @__PURE__ */ n(
|
|
430
|
+
xe,
|
|
431
431
|
{
|
|
432
432
|
calendars: 1,
|
|
433
433
|
localeText: {
|
|
@@ -455,24 +455,24 @@ const te = {
|
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
457
|
slots: {
|
|
458
|
-
...a && { layout:
|
|
459
|
-
leftArrowIcon: () => /* @__PURE__ */ n(
|
|
458
|
+
...a && { layout: Be },
|
|
459
|
+
leftArrowIcon: () => /* @__PURE__ */ n(M, { name: "chevron_left", size: 28 }),
|
|
460
460
|
shortcuts: (t) => a ? /* @__PURE__ */ n(
|
|
461
|
-
|
|
461
|
+
_e,
|
|
462
462
|
{
|
|
463
463
|
selectLabel: r.dateRangeSelectARange,
|
|
464
464
|
selected: s,
|
|
465
465
|
...t
|
|
466
466
|
}
|
|
467
467
|
) : /* @__PURE__ */ n(Pe, { selected: s, ...t }),
|
|
468
|
-
rightArrowIcon: () => /* @__PURE__ */ n(
|
|
468
|
+
rightArrowIcon: () => /* @__PURE__ */ n(M, { name: "chevron_right", size: 28 })
|
|
469
469
|
},
|
|
470
470
|
sx: { ...l },
|
|
471
471
|
value: i
|
|
472
472
|
}
|
|
473
473
|
) }) });
|
|
474
|
-
},
|
|
475
|
-
return /* @__PURE__ */ n(
|
|
474
|
+
}, Nr = H.forwardRef(function(i, o) {
|
|
475
|
+
return /* @__PURE__ */ n(ee, { direction: "up", ref: o, ...i });
|
|
476
476
|
}), ze = ({
|
|
477
477
|
hasSecondaryAction: r = !0,
|
|
478
478
|
isPrimaryDisabled: i,
|
|
@@ -483,7 +483,7 @@ const te = {
|
|
|
483
483
|
secondaryColor: a = "primary",
|
|
484
484
|
secondaryText: c = "Cancel"
|
|
485
485
|
}) => /* @__PURE__ */ b(
|
|
486
|
-
|
|
486
|
+
A,
|
|
487
487
|
{
|
|
488
488
|
direction: "row",
|
|
489
489
|
gap: "16px",
|
|
@@ -521,7 +521,7 @@ const te = {
|
|
|
521
521
|
uppercase: a,
|
|
522
522
|
...c
|
|
523
523
|
}) => /* @__PURE__ */ n(
|
|
524
|
-
|
|
524
|
+
te,
|
|
525
525
|
{
|
|
526
526
|
className: `mx-kmui-text ${i}`,
|
|
527
527
|
color: s,
|
|
@@ -542,14 +542,14 @@ const te = {
|
|
|
542
542
|
...c,
|
|
543
543
|
children: o
|
|
544
544
|
}
|
|
545
|
-
), $e = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h1 ${r}`, component: "h1", variant: "h1", ...o, children: i }),
|
|
545
|
+
), $e = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h1 ${r}`, component: "h1", variant: "h1", ...o, children: i }), Hr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h2 ${r}`, component: "h2", variant: "h2", ...o, children: i }), Dr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h3 ${r}`, component: "h3", variant: "h3", ...o, children: i }), wr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text p ${r}`, component: "p", variant: "body1", ...o, children: i }), Pr = ({
|
|
546
546
|
ariaHidden: r = !1,
|
|
547
547
|
copy: i,
|
|
548
548
|
id: o,
|
|
549
549
|
onClose: s,
|
|
550
550
|
truncate: l = !1
|
|
551
551
|
}) => /* @__PURE__ */ b(
|
|
552
|
-
|
|
552
|
+
A,
|
|
553
553
|
{
|
|
554
554
|
sx: {
|
|
555
555
|
alignItems: "center",
|
|
@@ -569,10 +569,10 @@ const te = {
|
|
|
569
569
|
children: i.title
|
|
570
570
|
}
|
|
571
571
|
),
|
|
572
|
-
/* @__PURE__ */ n(
|
|
572
|
+
/* @__PURE__ */ n(re, { "aria-label": i.close_aria, onClick: s, sx: { mr: "-12px" }, children: /* @__PURE__ */ n(pe, {}) })
|
|
573
573
|
]
|
|
574
574
|
}
|
|
575
|
-
),
|
|
575
|
+
), _r = ({
|
|
576
576
|
className: r,
|
|
577
577
|
disableSave: i,
|
|
578
578
|
id: o,
|
|
@@ -584,7 +584,7 @@ const te = {
|
|
|
584
584
|
children: d,
|
|
585
585
|
...t
|
|
586
586
|
}) => /* @__PURE__ */ b(
|
|
587
|
-
|
|
587
|
+
Ie,
|
|
588
588
|
{
|
|
589
589
|
anchor: "right",
|
|
590
590
|
className: `mx-kmui-drawer ${r}`,
|
|
@@ -607,11 +607,11 @@ const te = {
|
|
|
607
607
|
)
|
|
608
608
|
]
|
|
609
609
|
}
|
|
610
|
-
),
|
|
610
|
+
), ie = 32, W = "https://content.moneydesktop.com/storage/MD_Assets", Z = `${W}/serenity/default_institution_logo.png`, Br = ({
|
|
611
611
|
alt: r,
|
|
612
612
|
institutionGuid: i,
|
|
613
613
|
logoUrl: o,
|
|
614
|
-
size: s =
|
|
614
|
+
size: s = ie,
|
|
615
615
|
...l
|
|
616
616
|
}) => /* @__PURE__ */ n(
|
|
617
617
|
"img",
|
|
@@ -620,20 +620,20 @@ const te = {
|
|
|
620
620
|
height: s,
|
|
621
621
|
onError: (e) => {
|
|
622
622
|
const a = e.target;
|
|
623
|
-
a.src !==
|
|
623
|
+
a.src !== Z && (a.src = Z);
|
|
624
624
|
},
|
|
625
|
-
src: o || `${
|
|
625
|
+
src: o || `${W}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
626
626
|
style: {
|
|
627
627
|
borderRadius: 4
|
|
628
628
|
},
|
|
629
629
|
width: s,
|
|
630
630
|
...l
|
|
631
631
|
}
|
|
632
|
-
),
|
|
632
|
+
), zr = ({
|
|
633
633
|
alt: r = "",
|
|
634
634
|
categoryGuid: i,
|
|
635
635
|
merchantGuid: o,
|
|
636
|
-
size: s =
|
|
636
|
+
size: s = ie,
|
|
637
637
|
...l
|
|
638
638
|
}) => {
|
|
639
639
|
const [e, a] = H.useState(!1), c = O();
|
|
@@ -645,7 +645,7 @@ const te = {
|
|
|
645
645
|
"aria-hidden": !r,
|
|
646
646
|
height: s,
|
|
647
647
|
onError: () => a(!0),
|
|
648
|
-
src: `${
|
|
648
|
+
src: `${W}/merchant_logos/${o}.png`,
|
|
649
649
|
style: {
|
|
650
650
|
backgroundColor: c.palette.common.white,
|
|
651
651
|
borderRadius: 4,
|
|
@@ -657,7 +657,7 @@ const te = {
|
|
|
657
657
|
),
|
|
658
658
|
/* @__PURE__ */ n(we, { categoryGuid: i, size: s })
|
|
659
659
|
] });
|
|
660
|
-
},
|
|
660
|
+
}, $r = ({
|
|
661
661
|
disabled: r = !1,
|
|
662
662
|
label: i = "",
|
|
663
663
|
shrink: o = !0,
|
|
@@ -665,7 +665,7 @@ const te = {
|
|
|
665
665
|
variant: l = "outlined",
|
|
666
666
|
...e
|
|
667
667
|
}) => /* @__PURE__ */ n(
|
|
668
|
-
|
|
668
|
+
q,
|
|
669
669
|
{
|
|
670
670
|
disabled: r,
|
|
671
671
|
label: i,
|
|
@@ -686,10 +686,10 @@ const te = {
|
|
|
686
686
|
...e
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
|
-
function
|
|
690
|
-
return /* @__PURE__ */ n(
|
|
689
|
+
function We(r) {
|
|
690
|
+
return /* @__PURE__ */ n(ee, { ...r, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const Wr = ({
|
|
693
693
|
open: r = !0,
|
|
694
694
|
handleClose: i,
|
|
695
695
|
closeAriaLabel: o,
|
|
@@ -702,15 +702,15 @@ const $r = ({
|
|
|
702
702
|
actionText: t = "Undo",
|
|
703
703
|
onActionClick: m
|
|
704
704
|
}) => {
|
|
705
|
-
const x = O(), k = d && /* @__PURE__ */ n(
|
|
705
|
+
const x = O(), k = d && /* @__PURE__ */ n(re, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ n(M, { fill: !0, name: "close" }) }), h = `${e}.main`;
|
|
706
706
|
return /* @__PURE__ */ n(
|
|
707
|
-
|
|
707
|
+
Oe,
|
|
708
708
|
{
|
|
709
709
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
710
710
|
autoHideDuration: l,
|
|
711
711
|
onClose: i,
|
|
712
712
|
open: r,
|
|
713
|
-
slots: { transition:
|
|
713
|
+
slots: { transition: We },
|
|
714
714
|
sx: {
|
|
715
715
|
...a,
|
|
716
716
|
maxWidth: 568,
|
|
@@ -718,7 +718,7 @@ const $r = ({
|
|
|
718
718
|
minHeight: 56
|
|
719
719
|
},
|
|
720
720
|
children: /* @__PURE__ */ n(
|
|
721
|
-
|
|
721
|
+
ve,
|
|
722
722
|
{
|
|
723
723
|
action: k,
|
|
724
724
|
severity: e,
|
|
@@ -738,7 +738,7 @@ const $r = ({
|
|
|
738
738
|
},
|
|
739
739
|
variant: "filled",
|
|
740
740
|
children: /* @__PURE__ */ b(
|
|
741
|
-
|
|
741
|
+
A,
|
|
742
742
|
{
|
|
743
743
|
sx: {
|
|
744
744
|
flexDirection: "row",
|
|
@@ -786,7 +786,7 @@ const $r = ({
|
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
788
|
}, Ur = ({
|
|
789
|
-
component: r =
|
|
789
|
+
component: r = B,
|
|
790
790
|
variant: i = "outlined",
|
|
791
791
|
selected: o,
|
|
792
792
|
onChange: s,
|
|
@@ -800,13 +800,13 @@ const $r = ({
|
|
|
800
800
|
sx: x = {},
|
|
801
801
|
...k
|
|
802
802
|
}) => {
|
|
803
|
-
const h = O(),
|
|
803
|
+
const h = O(), ae = () => h.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${h.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${h.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${h.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${h.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(h.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : h.shadows[1], ne = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.1), le = () => d || t ? w() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(h.palette.primary.main, 0.5)}` : w(), se = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.3);
|
|
804
804
|
return /* @__PURE__ */ n(
|
|
805
|
-
|
|
805
|
+
Ee,
|
|
806
806
|
{
|
|
807
807
|
checked: o,
|
|
808
|
-
control: r ===
|
|
809
|
-
|
|
808
|
+
control: r === B ? /* @__PURE__ */ n(
|
|
809
|
+
B,
|
|
810
810
|
{
|
|
811
811
|
name: a,
|
|
812
812
|
sx: {
|
|
@@ -821,7 +821,7 @@ const $r = ({
|
|
|
821
821
|
...k
|
|
822
822
|
}
|
|
823
823
|
) : /* @__PURE__ */ n(
|
|
824
|
-
|
|
824
|
+
ke,
|
|
825
825
|
{
|
|
826
826
|
name: a,
|
|
827
827
|
sx: {
|
|
@@ -837,9 +837,9 @@ const $r = ({
|
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
839
|
disabled: d,
|
|
840
|
-
label: /* @__PURE__ */ b(
|
|
841
|
-
m && /* @__PURE__ */ n(
|
|
842
|
-
/* @__PURE__ */ b(
|
|
840
|
+
label: /* @__PURE__ */ b(_, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
841
|
+
m && /* @__PURE__ */ n(_, { sx: { mr: "12px", mt: "8px", flexShrink: 0 }, children: m }),
|
|
842
|
+
/* @__PURE__ */ b(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
843
843
|
l && /* @__PURE__ */ n(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
844
844
|
/* @__PURE__ */ n(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: e })
|
|
845
845
|
] })
|
|
@@ -855,7 +855,7 @@ const $r = ({
|
|
|
855
855
|
mb: "16px",
|
|
856
856
|
cursor: d ? "not-allowed" : "pointer",
|
|
857
857
|
opacity: d ? 0.6 : 1,
|
|
858
|
-
backgroundColor:
|
|
858
|
+
backgroundColor: ae(),
|
|
859
859
|
border: "none",
|
|
860
860
|
boxShadow: w(),
|
|
861
861
|
boxSizing: "border-box",
|
|
@@ -863,11 +863,11 @@ const $r = ({
|
|
|
863
863
|
duration: h.transitions.duration.short
|
|
864
864
|
}),
|
|
865
865
|
"&:hover": {
|
|
866
|
-
backgroundColor:
|
|
867
|
-
boxShadow:
|
|
866
|
+
backgroundColor: ne(),
|
|
867
|
+
boxShadow: le()
|
|
868
868
|
},
|
|
869
869
|
"&:active": {
|
|
870
|
-
backgroundColor:
|
|
870
|
+
backgroundColor: se()
|
|
871
871
|
},
|
|
872
872
|
"&:focus-visible": {
|
|
873
873
|
outline: `2px solid ${h.palette.info.main}`,
|
|
@@ -880,7 +880,7 @@ const $r = ({
|
|
|
880
880
|
);
|
|
881
881
|
}, N = {
|
|
882
882
|
LIGHT: "light"
|
|
883
|
-
},
|
|
883
|
+
}, Vr = ({ color: r = "neutral", icon: i, label: o, size: s = "small", sx: l, ...e }) => /* @__PURE__ */ b(
|
|
884
884
|
L,
|
|
885
885
|
{
|
|
886
886
|
component: "span",
|
|
@@ -917,7 +917,7 @@ const $r = ({
|
|
|
917
917
|
}
|
|
918
918
|
),
|
|
919
919
|
/* @__PURE__ */ n(
|
|
920
|
-
|
|
920
|
+
te,
|
|
921
921
|
{
|
|
922
922
|
component: "span",
|
|
923
923
|
sx: { fontWeight: "bold", textTransform: "uppercase" },
|
|
@@ -927,7 +927,7 @@ const $r = ({
|
|
|
927
927
|
)
|
|
928
928
|
]
|
|
929
929
|
}
|
|
930
|
-
),
|
|
930
|
+
), R = (r) => ({
|
|
931
931
|
50: v(r, 0.95),
|
|
932
932
|
100: v(r, 0.85),
|
|
933
933
|
200: v(r, 0.7),
|
|
@@ -938,7 +938,7 @@ const $r = ({
|
|
|
938
938
|
700: F(r, 0.5),
|
|
939
939
|
800: F(r, 0.65),
|
|
940
940
|
900: F(r, 0.75)
|
|
941
|
-
}),
|
|
941
|
+
}), T = "#FFFFFF", C = "#000000", Ue = "#F9F9F9", Ve = "#000000", Ge = "#FFFFFF", Ke = "#000000", y = {
|
|
942
942
|
PRIMARY: "#2C64EF",
|
|
943
943
|
SECONDARY: "#808080",
|
|
944
944
|
INFO: "#2C64EF",
|
|
@@ -946,7 +946,7 @@ const $r = ({
|
|
|
946
946
|
WARNING: "#FF7B00",
|
|
947
947
|
ERROR: "#E32727",
|
|
948
948
|
GREY: "#808080"
|
|
949
|
-
},
|
|
949
|
+
}, S = {
|
|
950
950
|
CHART1: "#14A396",
|
|
951
951
|
CHART2: "#EC4899",
|
|
952
952
|
CHART3: "#F3DC46",
|
|
@@ -1007,13 +1007,13 @@ const $r = ({
|
|
|
1007
1007
|
TRANSFER: "#75C7B7",
|
|
1008
1008
|
TRAVEL: "#76ACF7",
|
|
1009
1009
|
UNCATEGORIZED: "#BCC6D4"
|
|
1010
|
-
}, Ye = (r, i) => {
|
|
1011
|
-
const o =
|
|
1010
|
+
}, Ye = 4.5, Xe = (r, i) => {
|
|
1011
|
+
const o = R(i?.primary || y.PRIMARY), s = R(i?.secondary || y.SECONDARY), l = R(i?.error || y.ERROR), e = R(i?.warning || y.WARNING), a = R(i?.info || y.INFO), c = R(i?.success || y.SUCCESS), d = R(i?.grey || y.GREY), t = r === N.LIGHT, m = t ? l[500] : l[400];
|
|
1012
1012
|
return {
|
|
1013
1013
|
mode: r,
|
|
1014
1014
|
common: {
|
|
1015
|
-
white:
|
|
1016
|
-
black:
|
|
1015
|
+
white: T,
|
|
1016
|
+
black: C
|
|
1017
1017
|
},
|
|
1018
1018
|
primary: {
|
|
1019
1019
|
...o,
|
|
@@ -1038,20 +1038,21 @@ const $r = ({
|
|
|
1038
1038
|
main: t ? d[500] : d[400],
|
|
1039
1039
|
dark: t ? d[700] : d[200],
|
|
1040
1040
|
darker: t ? d[800] : d[100],
|
|
1041
|
-
contrastText:
|
|
1041
|
+
contrastText: j(t ? d[700] : d[400], "#fff") > 4.5 ? T : d[900]
|
|
1042
1042
|
},
|
|
1043
1043
|
text: {
|
|
1044
|
-
primary: t ? f(
|
|
1045
|
-
secondary: t ? f(
|
|
1046
|
-
disabled: t ? f(
|
|
1044
|
+
primary: t ? f(C, 0.87) : T,
|
|
1045
|
+
secondary: t ? f(C, 0.6) : f(T, 0.7),
|
|
1046
|
+
disabled: t ? f(C, 0.38) : f(T, 0.38)
|
|
1047
1047
|
},
|
|
1048
1048
|
error: {
|
|
1049
1049
|
...l,
|
|
1050
1050
|
lighter: t ? l[100] : l[700],
|
|
1051
1051
|
light: t ? l[300] : l[600],
|
|
1052
|
-
main:
|
|
1052
|
+
main: m,
|
|
1053
1053
|
dark: t ? l[700] : l[200],
|
|
1054
|
-
darker: t ? l[800] : l[100]
|
|
1054
|
+
darker: t ? l[800] : l[100],
|
|
1055
|
+
contrastText: j(m, T) > Ye ? T : C
|
|
1055
1056
|
},
|
|
1056
1057
|
warning: {
|
|
1057
1058
|
...e,
|
|
@@ -1079,15 +1080,15 @@ const $r = ({
|
|
|
1079
1080
|
},
|
|
1080
1081
|
grey: d,
|
|
1081
1082
|
action: {
|
|
1082
|
-
active: t ? f(
|
|
1083
|
+
active: t ? f(C, 0.56) : f(T, 0.56)
|
|
1083
1084
|
},
|
|
1084
1085
|
background: {
|
|
1085
|
-
default: t ? i?.background?.default?.light ||
|
|
1086
|
+
default: t ? i?.background?.default?.light || Ue : i?.background?.default?.dark || Ve,
|
|
1086
1087
|
paper: t ? i?.background?.paper?.light || Ge : i?.background?.paper?.dark || Ke,
|
|
1087
1088
|
highlight: t ? d[200] : d[600],
|
|
1088
1089
|
highlightPrimary: t ? o[100] : o[500]
|
|
1089
1090
|
},
|
|
1090
|
-
divider: t ? f(
|
|
1091
|
+
divider: t ? f(C, 0.12) : f(T, 0.24),
|
|
1091
1092
|
categories: {
|
|
1092
1093
|
autoTransport: t ? p.AUTO_TRANSPORTT : u.AUTO_TRANSPORTT,
|
|
1093
1094
|
billsUtilities: t ? p.BILLS_UTILITIES : u.BILLS_UTILITIES,
|
|
@@ -1113,13 +1114,13 @@ const $r = ({
|
|
|
1113
1114
|
uncategorized: t ? p.UNCATEGORIZED : u.UNCATEGORIZED
|
|
1114
1115
|
},
|
|
1115
1116
|
chart: {
|
|
1116
|
-
chart1:
|
|
1117
|
-
chart2:
|
|
1118
|
-
chart3:
|
|
1119
|
-
chart4:
|
|
1120
|
-
chart5:
|
|
1121
|
-
chart6:
|
|
1122
|
-
chart7:
|
|
1117
|
+
chart1: S.CHART1,
|
|
1118
|
+
chart2: S.CHART2,
|
|
1119
|
+
chart3: S.CHART3,
|
|
1120
|
+
chart4: S.CHART4,
|
|
1121
|
+
chart5: S.CHART5,
|
|
1122
|
+
chart6: S.CHART6,
|
|
1123
|
+
chart7: S.CHART7
|
|
1123
1124
|
},
|
|
1124
1125
|
chartMono: {
|
|
1125
1126
|
chartMono1: I.CHART_MONO1,
|
|
@@ -1130,7 +1131,7 @@ const $r = ({
|
|
|
1130
1131
|
chartMono6: I.CHART_MONO6
|
|
1131
1132
|
}
|
|
1132
1133
|
};
|
|
1133
|
-
}, z = "Inter, Helvetica, Arial, sans-serif",
|
|
1134
|
+
}, z = "Inter, Helvetica, Arial, sans-serif", je = (r) => {
|
|
1134
1135
|
const i = r?.fontFamily ? `${r?.fontFamily}, ${z}` : z, o = r?.headerFontFamily ? `${r.headerFontFamily}, ${z}` : i;
|
|
1135
1136
|
return {
|
|
1136
1137
|
fontFamily: i,
|
|
@@ -1192,9 +1193,9 @@ const $r = ({
|
|
|
1192
1193
|
Le.setLicenseKey(
|
|
1193
1194
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1194
1195
|
);
|
|
1195
|
-
const
|
|
1196
|
-
const o =
|
|
1197
|
-
return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)",
|
|
1196
|
+
const Gr = (r, i) => {
|
|
1197
|
+
const o = Xe(r, i?.paletteOptions), s = je(i?.typographyOptions), l = [...U().shadows];
|
|
1198
|
+
return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", U({
|
|
1198
1199
|
breakpoints: i?.breakpoints || {
|
|
1199
1200
|
values: {
|
|
1200
1201
|
// TODO: Remove these default values in v3. Users should provide their own breakpoints if they want to.
|
|
@@ -1221,10 +1222,10 @@ const Vr = (r, i) => {
|
|
|
1221
1222
|
MuiAlert: {
|
|
1222
1223
|
defaultProps: {
|
|
1223
1224
|
iconMapping: {
|
|
1224
|
-
success: /* @__PURE__ */ n(
|
|
1225
|
-
error: /* @__PURE__ */ n(
|
|
1226
|
-
warning: /* @__PURE__ */ n(
|
|
1227
|
-
info: /* @__PURE__ */ n(
|
|
1225
|
+
success: /* @__PURE__ */ n(M, { fill: !0, name: "check_circle", size: 24 }),
|
|
1226
|
+
error: /* @__PURE__ */ n(M, { fill: !0, name: "error", size: 24 }),
|
|
1227
|
+
warning: /* @__PURE__ */ n(M, { fill: !0, name: "warning", size: 24 }),
|
|
1228
|
+
info: /* @__PURE__ */ n(M, { fill: !0, name: "info", size: 24 })
|
|
1228
1229
|
},
|
|
1229
1230
|
variant: "outlined"
|
|
1230
1231
|
},
|
|
@@ -1328,7 +1329,7 @@ const Vr = (r, i) => {
|
|
|
1328
1329
|
MuiChip: {
|
|
1329
1330
|
defaultProps: {
|
|
1330
1331
|
color: "primary",
|
|
1331
|
-
deleteIcon: /* @__PURE__ */ n("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ n(
|
|
1332
|
+
deleteIcon: /* @__PURE__ */ n("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ n(M, { name: "close" }) })
|
|
1332
1333
|
},
|
|
1333
1334
|
styleOverrides: {
|
|
1334
1335
|
root: ({ theme: e, ownerState: a }) => {
|
|
@@ -2131,33 +2132,33 @@ const Vr = (r, i) => {
|
|
|
2131
2132
|
};
|
|
2132
2133
|
export {
|
|
2133
2134
|
D as BaseIcon,
|
|
2134
|
-
|
|
2135
|
+
Nr as BottomSheetTransition,
|
|
2135
2136
|
g as CategoryGuids,
|
|
2136
2137
|
we as CategoryIcon,
|
|
2137
2138
|
He as CategoryIconList,
|
|
2138
2139
|
Ne as CategoryIconVariants,
|
|
2139
|
-
|
|
2140
|
+
Lr as DateRangePicker,
|
|
2140
2141
|
ze as DialogFooter,
|
|
2141
|
-
|
|
2142
|
-
|
|
2142
|
+
Pr as DialogHeader,
|
|
2143
|
+
_r as Drawer,
|
|
2143
2144
|
ze as Footer,
|
|
2144
2145
|
$e as H1,
|
|
2145
|
-
|
|
2146
|
-
|
|
2146
|
+
Hr as H2,
|
|
2147
|
+
Dr as H3,
|
|
2147
2148
|
z as INTER,
|
|
2148
|
-
|
|
2149
|
+
M as Icon,
|
|
2149
2150
|
Br as InstitutionLogo,
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2151
|
+
Er as MXLogoCopyrightIcon,
|
|
2152
|
+
kr as MXLogoFilledIcon,
|
|
2153
|
+
vr as MXLogoIcon,
|
|
2154
|
+
Fr as MXLogoOutlineIcon,
|
|
2155
|
+
zr as MerchantLogo,
|
|
2156
|
+
wr as P,
|
|
2156
2157
|
Ur as SelectionBox,
|
|
2157
|
-
|
|
2158
|
+
Vr as Tag,
|
|
2158
2159
|
E as Text,
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2160
|
+
$r as TextField,
|
|
2161
|
+
Wr as Toast,
|
|
2162
|
+
Gr as createMXTheme
|
|
2162
2163
|
};
|
|
2163
2164
|
//# sourceMappingURL=index.es.js.map
|