@mxenabled/mxui 2.12.1 → 2.12.3
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 +154 -160
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import H from "react";
|
|
3
3
|
import A from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as v, createTheme as G } from "@mui/material/styles";
|
|
5
5
|
import { Icon as se, ExpandMore as ce, Close as de } from "@mxenabled/mx-icons";
|
|
6
6
|
import { endOfMonth as V } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as pe } from "date-fns/endOfYear";
|
|
@@ -11,27 +11,26 @@ import { startOfYear as K } from "date-fns/startOfYear";
|
|
|
11
11
|
import { subDays as Y } from "date-fns/subDays";
|
|
12
12
|
import { subMonths as ge } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as he } from "date-fns/subYears";
|
|
14
|
-
import
|
|
15
|
-
import { usePickerContext as Z, useIsValidValue as Q, LocalizationProvider as
|
|
14
|
+
import fe from "@mui/material/useMediaQuery";
|
|
15
|
+
import { usePickerContext as Z, useIsValidValue as Q, LocalizationProvider as me, StaticDateRangePicker as be } from "@mui/x-date-pickers-pro";
|
|
16
16
|
import { AdapterDateFns as xe } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import Me from "@mui/material/
|
|
20
|
-
import Re from "@mui/material/
|
|
21
|
-
import Ce from "@mui/material/MenuItem";
|
|
17
|
+
import N from "@mui/material/Box";
|
|
18
|
+
import Te from "@mui/material/ToggleButton";
|
|
19
|
+
import Me from "@mui/material/ToggleButtonGroup";
|
|
20
|
+
import Re from "@mui/material/MenuItem";
|
|
22
21
|
import J from "@mui/material/TextField";
|
|
23
|
-
import { usePickerLayout as
|
|
22
|
+
import { usePickerLayout as Ce, PickersLayoutRoot as ye, PickersLayoutContentWrapper as Se, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
|
|
24
23
|
import q from "@mui/material/Slide";
|
|
25
24
|
import $ from "@mui/material/Button";
|
|
26
25
|
import ee from "@mui/material/IconButton";
|
|
27
26
|
import re from "@mui/material/Typography";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { FormControlLabel as ve, Box as
|
|
32
|
-
import { circularProgressClasses as
|
|
33
|
-
import { LicenseInfo as
|
|
34
|
-
const
|
|
27
|
+
import Ae from "@mui/material/Drawer";
|
|
28
|
+
import Ie from "@mui/material/Snackbar";
|
|
29
|
+
import Oe from "@mui/material/Alert";
|
|
30
|
+
import { FormControlLabel as ve, Box as B, Typography as X, Radio as _, Checkbox as Ee, alpha as f, darken as L, lighten as E, getContrastRatio as Fe } from "@mui/material";
|
|
31
|
+
import { circularProgressClasses as ke } from "@mui/material/CircularProgress";
|
|
32
|
+
import { LicenseInfo as Le } from "@mui/x-license";
|
|
33
|
+
const D = ({
|
|
35
34
|
children: r,
|
|
36
35
|
height: i,
|
|
37
36
|
size: o = 16,
|
|
@@ -49,10 +48,10 @@ const H = ({
|
|
|
49
48
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
49
|
children: r
|
|
51
50
|
}
|
|
52
|
-
), T = ({ color: r, fill: i = !1, name: o, size: s = 20, sx: l, ...e }) => /* @__PURE__ */ n(se, { color: r, fill: i, name: o, size: s, sx: l, ...e }),
|
|
51
|
+
), T = ({ color: r, fill: i = !1, name: o, size: s = 20, sx: l, ...e }) => /* @__PURE__ */ n(se, { color: r, fill: i, name: o, size: s, sx: l, ...e }), Or = ({
|
|
53
52
|
color: r = "currentColor",
|
|
54
53
|
...i
|
|
55
|
-
}) => /* @__PURE__ */ b(
|
|
54
|
+
}) => /* @__PURE__ */ b(D, { ...i, children: [
|
|
56
55
|
/* @__PURE__ */ n(
|
|
57
56
|
"path",
|
|
58
57
|
{
|
|
@@ -67,10 +66,10 @@ const H = ({
|
|
|
67
66
|
fill: r
|
|
68
67
|
}
|
|
69
68
|
)
|
|
70
|
-
] }),
|
|
69
|
+
] }), vr = ({
|
|
71
70
|
color: r = "currentColor",
|
|
72
71
|
...i
|
|
73
|
-
}) => /* @__PURE__ */ b(
|
|
72
|
+
}) => /* @__PURE__ */ b(D, { ...i, children: [
|
|
74
73
|
/* @__PURE__ */ n(
|
|
75
74
|
"path",
|
|
76
75
|
{
|
|
@@ -103,10 +102,10 @@ const H = ({
|
|
|
103
102
|
fillRule: "evenodd"
|
|
104
103
|
}
|
|
105
104
|
)
|
|
106
|
-
] }),
|
|
105
|
+
] }), Er = ({
|
|
107
106
|
color: r = "currentColor",
|
|
108
107
|
...i
|
|
109
|
-
}) => /* @__PURE__ */ n(
|
|
108
|
+
}) => /* @__PURE__ */ n(D, { ...i, children: /* @__PURE__ */ n(
|
|
110
109
|
"path",
|
|
111
110
|
{
|
|
112
111
|
clipRule: "evenodd",
|
|
@@ -114,10 +113,10 @@ const H = ({
|
|
|
114
113
|
fill: r,
|
|
115
114
|
fillRule: "evenodd"
|
|
116
115
|
}
|
|
117
|
-
) }),
|
|
116
|
+
) }), Fr = ({
|
|
118
117
|
color: r = "currentColor",
|
|
119
118
|
...i
|
|
120
|
-
}) => /* @__PURE__ */ b(
|
|
119
|
+
}) => /* @__PURE__ */ b(D, { ...i, children: [
|
|
121
120
|
/* @__PURE__ */ n(
|
|
122
121
|
"path",
|
|
123
122
|
{
|
|
@@ -142,12 +141,12 @@ const H = ({
|
|
|
142
141
|
}
|
|
143
142
|
)
|
|
144
143
|
] });
|
|
145
|
-
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 || {}),
|
|
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 || {});
|
|
146
145
|
const te = {
|
|
147
146
|
guid: g.Uncategorized,
|
|
148
147
|
colorName: "uncategorized",
|
|
149
148
|
icon: "category"
|
|
150
|
-
},
|
|
149
|
+
}, He = [
|
|
151
150
|
{
|
|
152
151
|
guid: g.AutoTransport,
|
|
153
152
|
colorName: "autoTransport",
|
|
@@ -249,15 +248,15 @@ const te = {
|
|
|
249
248
|
icon: "airplane_ticket"
|
|
250
249
|
},
|
|
251
250
|
te
|
|
252
|
-
],
|
|
251
|
+
], De = 0.625, we = ({
|
|
253
252
|
categoryGuid: r,
|
|
254
|
-
icon_ratio: i =
|
|
253
|
+
icon_ratio: i = De,
|
|
255
254
|
size: o = 32,
|
|
256
255
|
sx: s = {},
|
|
257
256
|
variant: l = "filled"
|
|
258
257
|
}) => {
|
|
259
|
-
const e =
|
|
260
|
-
() =>
|
|
258
|
+
const e = v(), a = H.useMemo(
|
|
259
|
+
() => He.find((m) => m.guid === r) ?? te,
|
|
261
260
|
[r]
|
|
262
261
|
), c = e.palette.categories[a.colorName];
|
|
263
262
|
return /* @__PURE__ */ n(
|
|
@@ -280,8 +279,8 @@ const te = {
|
|
|
280
279
|
children: /* @__PURE__ */ n(T, { name: a.icon, size: o * i })
|
|
281
280
|
}
|
|
282
281
|
);
|
|
283
|
-
},
|
|
284
|
-
const o =
|
|
282
|
+
}, Pe = ({ items: r, selected: i }) => {
|
|
283
|
+
const o = v(), { setValue: s } = Z(), l = Q(), e = r?.map((a) => {
|
|
285
284
|
const c = a.getValue({ isValid: l });
|
|
286
285
|
return {
|
|
287
286
|
label: a.label,
|
|
@@ -291,8 +290,8 @@ const te = {
|
|
|
291
290
|
disabled: !l(c)
|
|
292
291
|
};
|
|
293
292
|
});
|
|
294
|
-
return /* @__PURE__ */ n(
|
|
295
|
-
|
|
293
|
+
return /* @__PURE__ */ n(N, { sx: { gridColumn: 1, gridRow: "2/3", ml: "4px", mt: "24px", mr: "32px" }, children: /* @__PURE__ */ n(Me, { color: "primary", orientation: "vertical", value: i, children: e?.map((a) => /* @__PURE__ */ n(
|
|
294
|
+
Te,
|
|
296
295
|
{
|
|
297
296
|
onClick: a.onClick,
|
|
298
297
|
sx: {
|
|
@@ -319,7 +318,7 @@ const te = {
|
|
|
319
318
|
},
|
|
320
319
|
a.label
|
|
321
320
|
)) }) });
|
|
322
|
-
},
|
|
321
|
+
}, Be = ({
|
|
323
322
|
items: r,
|
|
324
323
|
selected: i,
|
|
325
324
|
selectLabel: o
|
|
@@ -345,24 +344,24 @@ const te = {
|
|
|
345
344
|
sx: { width: "100%" },
|
|
346
345
|
value: i,
|
|
347
346
|
variant: "outlined",
|
|
348
|
-
children: e?.map((a) => /* @__PURE__ */ n(
|
|
347
|
+
children: e?.map((a) => /* @__PURE__ */ n(Re, { onClick: a.onClick, value: a.label, children: a.label }, a.label))
|
|
349
348
|
}
|
|
350
349
|
) });
|
|
351
|
-
},
|
|
352
|
-
const { toolbar: i, content: o, shortcuts: s, ownerState: l } =
|
|
350
|
+
}, _e = (r) => {
|
|
351
|
+
const { toolbar: i, content: o, shortcuts: s, ownerState: l } = Ce(r);
|
|
353
352
|
return /* @__PURE__ */ b(
|
|
354
|
-
|
|
353
|
+
ye,
|
|
355
354
|
{
|
|
356
355
|
ownerState: l,
|
|
357
356
|
sx: {
|
|
358
357
|
gridTemplateColumns: "minmax(320px, 1fr)",
|
|
359
358
|
overflow: "auto",
|
|
360
359
|
p: 0,
|
|
361
|
-
[`.${
|
|
360
|
+
[`.${P.toolbar}`]: {
|
|
362
361
|
gridColumn: 1,
|
|
363
362
|
gridRow: 2
|
|
364
363
|
},
|
|
365
|
-
[`.${
|
|
364
|
+
[`.${P.contentWrapper}`]: {
|
|
366
365
|
alignItems: "center",
|
|
367
366
|
gridColumn: 1,
|
|
368
367
|
gridRow: 3
|
|
@@ -374,9 +373,9 @@ const te = {
|
|
|
374
373
|
i
|
|
375
374
|
] }),
|
|
376
375
|
/* @__PURE__ */ n(
|
|
377
|
-
|
|
376
|
+
Se,
|
|
378
377
|
{
|
|
379
|
-
className:
|
|
378
|
+
className: P.contentWrapper,
|
|
380
379
|
ownerState: l,
|
|
381
380
|
children: o
|
|
382
381
|
}
|
|
@@ -384,14 +383,14 @@ const te = {
|
|
|
384
383
|
]
|
|
385
384
|
}
|
|
386
385
|
);
|
|
387
|
-
},
|
|
386
|
+
}, kr = ({
|
|
388
387
|
copy: r,
|
|
389
388
|
dateRange: i,
|
|
390
389
|
onRangeChanged: o,
|
|
391
390
|
selectedShortcut: s = r.dateRangeThisMonth,
|
|
392
391
|
sx: l = {}
|
|
393
392
|
}) => {
|
|
394
|
-
const e =
|
|
393
|
+
const e = v(), a = fe(e.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
395
394
|
const t = ue(), m = ge(t, 1), x = he(t, 1);
|
|
396
395
|
return [
|
|
397
396
|
{
|
|
@@ -427,7 +426,7 @@ const te = {
|
|
|
427
426
|
const x = m.shortcut;
|
|
428
427
|
o?.(t, x ? x.label : r.dateRangeCustom);
|
|
429
428
|
};
|
|
430
|
-
return /* @__PURE__ */ n(A, { gap: a ? 0 : "16px", m: a ? 0 : "8px", children: /* @__PURE__ */ n(
|
|
429
|
+
return /* @__PURE__ */ n(A, { gap: a ? 0 : "16px", m: a ? 0 : "8px", children: /* @__PURE__ */ n(me, { dateAdapter: xe, children: /* @__PURE__ */ n(
|
|
431
430
|
be,
|
|
432
431
|
{
|
|
433
432
|
calendars: 1,
|
|
@@ -456,41 +455,25 @@ const te = {
|
|
|
456
455
|
}
|
|
457
456
|
},
|
|
458
457
|
slots: {
|
|
459
|
-
...a && { layout:
|
|
458
|
+
...a && { layout: _e },
|
|
460
459
|
leftArrowIcon: () => /* @__PURE__ */ n(T, { name: "chevron_left", size: 28 }),
|
|
461
460
|
shortcuts: (t) => a ? /* @__PURE__ */ n(
|
|
462
|
-
|
|
461
|
+
Be,
|
|
463
462
|
{
|
|
464
463
|
selectLabel: r.dateRangeSelectARange,
|
|
465
464
|
selected: s,
|
|
466
465
|
...t
|
|
467
466
|
}
|
|
468
|
-
) : /* @__PURE__ */ n(
|
|
469
|
-
rightArrowIcon: () => /* @__PURE__ */ n(T, { name: "chevron_right", size: 28 })
|
|
470
|
-
...a && {
|
|
471
|
-
toolbar: (t) => /* @__PURE__ */ n(
|
|
472
|
-
Te,
|
|
473
|
-
{
|
|
474
|
-
dateSeparator: "",
|
|
475
|
-
format: "MM/dd/yyyy",
|
|
476
|
-
...t,
|
|
477
|
-
slotProps: {
|
|
478
|
-
textField: ({ position: m }) => ({
|
|
479
|
-
label: m === "start" ? r.dateRangeFrom : r.dateRangeTo
|
|
480
|
-
})
|
|
481
|
-
},
|
|
482
|
-
sx: { gap: "8px" }
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
}
|
|
467
|
+
) : /* @__PURE__ */ n(Pe, { selected: s, ...t }),
|
|
468
|
+
rightArrowIcon: () => /* @__PURE__ */ n(T, { name: "chevron_right", size: 28 })
|
|
486
469
|
},
|
|
487
470
|
sx: { ...l },
|
|
488
471
|
value: i
|
|
489
472
|
}
|
|
490
473
|
) }) });
|
|
491
|
-
},
|
|
474
|
+
}, Lr = H.forwardRef(function(i, o) {
|
|
492
475
|
return /* @__PURE__ */ n(q, { direction: "up", ref: o, ...i });
|
|
493
|
-
}),
|
|
476
|
+
}), ze = ({
|
|
494
477
|
hasSecondaryAction: r = !0,
|
|
495
478
|
isPrimaryDisabled: i,
|
|
496
479
|
onPrimaryAction: o,
|
|
@@ -528,7 +511,7 @@ const te = {
|
|
|
528
511
|
)
|
|
529
512
|
]
|
|
530
513
|
}
|
|
531
|
-
),
|
|
514
|
+
), F = ({
|
|
532
515
|
bold: r,
|
|
533
516
|
className: i = "",
|
|
534
517
|
children: o,
|
|
@@ -559,7 +542,7 @@ const te = {
|
|
|
559
542
|
...c,
|
|
560
543
|
children: o
|
|
561
544
|
}
|
|
562
|
-
),
|
|
545
|
+
), $e = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text h1 ${r}`, component: "h1", variant: "h1", ...o, children: i }), Nr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text h2 ${r}`, component: "h2", variant: "h2", ...o, children: i }), Hr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text h3 ${r}`, component: "h3", variant: "h3", ...o, children: i }), Dr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text p ${r}`, component: "p", variant: "body1", ...o, children: i }), wr = ({
|
|
563
546
|
ariaHidden: r = !1,
|
|
564
547
|
copy: i,
|
|
565
548
|
id: o,
|
|
@@ -577,7 +560,7 @@ const te = {
|
|
|
577
560
|
},
|
|
578
561
|
children: [
|
|
579
562
|
/* @__PURE__ */ n(
|
|
580
|
-
|
|
563
|
+
$e,
|
|
581
564
|
{
|
|
582
565
|
"aria-hidden": r && o ? !0 : void 0,
|
|
583
566
|
id: o,
|
|
@@ -589,7 +572,7 @@ const te = {
|
|
|
589
572
|
/* @__PURE__ */ n(ee, { "aria-label": i.close_aria, onClick: s, sx: { mr: "-12px" }, children: /* @__PURE__ */ n(de, {}) })
|
|
590
573
|
]
|
|
591
574
|
}
|
|
592
|
-
),
|
|
575
|
+
), Pr = ({
|
|
593
576
|
className: r,
|
|
594
577
|
disableSave: i,
|
|
595
578
|
id: o,
|
|
@@ -601,7 +584,7 @@ const te = {
|
|
|
601
584
|
children: d,
|
|
602
585
|
...t
|
|
603
586
|
}) => /* @__PURE__ */ b(
|
|
604
|
-
|
|
587
|
+
Ae,
|
|
605
588
|
{
|
|
606
589
|
anchor: "right",
|
|
607
590
|
className: `mx-kmui-drawer ${r}`,
|
|
@@ -613,7 +596,7 @@ const te = {
|
|
|
613
596
|
children: [
|
|
614
597
|
d,
|
|
615
598
|
e && /* @__PURE__ */ n(
|
|
616
|
-
|
|
599
|
+
ze,
|
|
617
600
|
{
|
|
618
601
|
isPrimaryDisabled: i,
|
|
619
602
|
onPrimaryAction: e,
|
|
@@ -624,7 +607,7 @@ const te = {
|
|
|
624
607
|
)
|
|
625
608
|
]
|
|
626
609
|
}
|
|
627
|
-
), oe = 32, U = "https://content.moneydesktop.com/storage/MD_Assets", j = `${U}/serenity/default_institution_logo.png`,
|
|
610
|
+
), oe = 32, U = "https://content.moneydesktop.com/storage/MD_Assets", j = `${U}/serenity/default_institution_logo.png`, Br = ({
|
|
628
611
|
alt: r,
|
|
629
612
|
institutionGuid: i,
|
|
630
613
|
logoUrl: o,
|
|
@@ -646,15 +629,15 @@ const te = {
|
|
|
646
629
|
width: s,
|
|
647
630
|
...l
|
|
648
631
|
}
|
|
649
|
-
),
|
|
632
|
+
), _r = ({
|
|
650
633
|
alt: r = "",
|
|
651
634
|
categoryGuid: i,
|
|
652
635
|
merchantGuid: o,
|
|
653
636
|
size: s = oe,
|
|
654
637
|
...l
|
|
655
638
|
}) => {
|
|
656
|
-
const [e, a] =
|
|
657
|
-
return /* @__PURE__ */ b(
|
|
639
|
+
const [e, a] = H.useState(!1), c = v();
|
|
640
|
+
return /* @__PURE__ */ b(N, { display: "inline-block", position: "relative", ...l, children: [
|
|
658
641
|
o && !e && /* @__PURE__ */ n(
|
|
659
642
|
"img",
|
|
660
643
|
{
|
|
@@ -672,9 +655,9 @@ const te = {
|
|
|
672
655
|
width: s
|
|
673
656
|
}
|
|
674
657
|
),
|
|
675
|
-
/* @__PURE__ */ n(
|
|
658
|
+
/* @__PURE__ */ n(we, { categoryGuid: i, size: s })
|
|
676
659
|
] });
|
|
677
|
-
},
|
|
660
|
+
}, zr = ({
|
|
678
661
|
disabled: r = !1,
|
|
679
662
|
label: i = "",
|
|
680
663
|
shrink: o = !0,
|
|
@@ -703,10 +686,10 @@ const te = {
|
|
|
703
686
|
...e
|
|
704
687
|
}
|
|
705
688
|
);
|
|
706
|
-
function
|
|
689
|
+
function Ue(r) {
|
|
707
690
|
return /* @__PURE__ */ n(q, { ...r, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
708
691
|
}
|
|
709
|
-
const
|
|
692
|
+
const $r = ({
|
|
710
693
|
open: r = !0,
|
|
711
694
|
handleClose: i,
|
|
712
695
|
closeAriaLabel: o,
|
|
@@ -719,15 +702,15 @@ const Gr = ({
|
|
|
719
702
|
actionText: t = "Undo",
|
|
720
703
|
onActionClick: m
|
|
721
704
|
}) => {
|
|
722
|
-
const x =
|
|
705
|
+
const x = v(), k = d && /* @__PURE__ */ n(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ n(T, { fill: !0, name: "close" }) }), h = `${e}.main`;
|
|
723
706
|
return /* @__PURE__ */ n(
|
|
724
|
-
|
|
707
|
+
Ie,
|
|
725
708
|
{
|
|
726
709
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
727
710
|
autoHideDuration: l,
|
|
728
711
|
onClose: i,
|
|
729
712
|
open: r,
|
|
730
|
-
slots: { transition:
|
|
713
|
+
slots: { transition: Ue },
|
|
731
714
|
sx: {
|
|
732
715
|
...a,
|
|
733
716
|
maxWidth: 568,
|
|
@@ -735,9 +718,9 @@ const Gr = ({
|
|
|
735
718
|
minHeight: 56
|
|
736
719
|
},
|
|
737
720
|
children: /* @__PURE__ */ n(
|
|
738
|
-
|
|
721
|
+
Oe,
|
|
739
722
|
{
|
|
740
|
-
action:
|
|
723
|
+
action: k,
|
|
741
724
|
severity: e,
|
|
742
725
|
sx: {
|
|
743
726
|
backgroundColor: h,
|
|
@@ -768,7 +751,7 @@ const Gr = ({
|
|
|
768
751
|
},
|
|
769
752
|
children: [
|
|
770
753
|
/* @__PURE__ */ n(
|
|
771
|
-
|
|
754
|
+
F,
|
|
772
755
|
{
|
|
773
756
|
sx: {
|
|
774
757
|
lineHeight: x.typography.body1.lineHeight,
|
|
@@ -802,8 +785,8 @@ const Gr = ({
|
|
|
802
785
|
)
|
|
803
786
|
}
|
|
804
787
|
);
|
|
805
|
-
},
|
|
806
|
-
component: r =
|
|
788
|
+
}, Ur = ({
|
|
789
|
+
component: r = _,
|
|
807
790
|
variant: i = "outlined",
|
|
808
791
|
selected: o,
|
|
809
792
|
onChange: s,
|
|
@@ -815,15 +798,15 @@ const Gr = ({
|
|
|
815
798
|
error: t = !1,
|
|
816
799
|
icon: m = !1,
|
|
817
800
|
sx: x = {},
|
|
818
|
-
...
|
|
801
|
+
...k
|
|
819
802
|
}) => {
|
|
820
|
-
const h =
|
|
803
|
+
const h = v(), ie = () => 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], ae = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.1), ne = () => 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(), le = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.3);
|
|
821
804
|
return /* @__PURE__ */ n(
|
|
822
805
|
ve,
|
|
823
806
|
{
|
|
824
807
|
checked: o,
|
|
825
|
-
control: r ===
|
|
826
|
-
|
|
808
|
+
control: r === _ ? /* @__PURE__ */ n(
|
|
809
|
+
_,
|
|
827
810
|
{
|
|
828
811
|
name: a,
|
|
829
812
|
sx: {
|
|
@@ -835,10 +818,10 @@ const Gr = ({
|
|
|
835
818
|
fontSize: "20px"
|
|
836
819
|
}
|
|
837
820
|
},
|
|
838
|
-
...
|
|
821
|
+
...k
|
|
839
822
|
}
|
|
840
823
|
) : /* @__PURE__ */ n(
|
|
841
|
-
|
|
824
|
+
Ee,
|
|
842
825
|
{
|
|
843
826
|
name: a,
|
|
844
827
|
sx: {
|
|
@@ -850,13 +833,13 @@ const Gr = ({
|
|
|
850
833
|
fontSize: "20px"
|
|
851
834
|
}
|
|
852
835
|
},
|
|
853
|
-
...
|
|
836
|
+
...k
|
|
854
837
|
}
|
|
855
838
|
),
|
|
856
839
|
disabled: d,
|
|
857
|
-
label: /* @__PURE__ */ b(
|
|
858
|
-
m && /* @__PURE__ */ n(
|
|
859
|
-
/* @__PURE__ */ b(
|
|
840
|
+
label: /* @__PURE__ */ b(B, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
841
|
+
m && /* @__PURE__ */ n(B, { sx: { mr: "12px", mt: "8px", flexShrink: 0 }, children: m }),
|
|
842
|
+
/* @__PURE__ */ b(B, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
860
843
|
l && /* @__PURE__ */ n(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
861
844
|
/* @__PURE__ */ n(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: e })
|
|
862
845
|
] })
|
|
@@ -874,7 +857,7 @@ const Gr = ({
|
|
|
874
857
|
opacity: d ? 0.6 : 1,
|
|
875
858
|
backgroundColor: ie(),
|
|
876
859
|
border: "none",
|
|
877
|
-
boxShadow:
|
|
860
|
+
boxShadow: w(),
|
|
878
861
|
boxSizing: "border-box",
|
|
879
862
|
transition: h.transitions.create(["background-color", "box-shadow"], {
|
|
880
863
|
duration: h.transitions.duration.short
|
|
@@ -897,8 +880,8 @@ const Gr = ({
|
|
|
897
880
|
);
|
|
898
881
|
}, S = {
|
|
899
882
|
LIGHT: "light"
|
|
900
|
-
},
|
|
901
|
-
|
|
883
|
+
}, Gr = ({ color: r = "neutral", icon: i, label: o, size: s = "small", sx: l, ...e }) => /* @__PURE__ */ b(
|
|
884
|
+
N,
|
|
902
885
|
{
|
|
903
886
|
component: "span",
|
|
904
887
|
sx: [
|
|
@@ -921,7 +904,7 @@ const Gr = ({
|
|
|
921
904
|
...e,
|
|
922
905
|
children: [
|
|
923
906
|
i && /* @__PURE__ */ n(
|
|
924
|
-
|
|
907
|
+
N,
|
|
925
908
|
{
|
|
926
909
|
"aria-hidden": !0,
|
|
927
910
|
component: "span",
|
|
@@ -951,11 +934,11 @@ const Gr = ({
|
|
|
951
934
|
300: E(r, 0.55),
|
|
952
935
|
400: E(r, 0.3),
|
|
953
936
|
500: r,
|
|
954
|
-
600:
|
|
955
|
-
700:
|
|
956
|
-
800:
|
|
957
|
-
900:
|
|
958
|
-
}), R = "#FFFFFF",
|
|
937
|
+
600: L(r, 0.3),
|
|
938
|
+
700: L(r, 0.5),
|
|
939
|
+
800: L(r, 0.65),
|
|
940
|
+
900: L(r, 0.75)
|
|
941
|
+
}), R = "#FFFFFF", I = "#000000", Ge = "#F9F9F9", Ve = "#000000", We = "#FFFFFF", Ke = "#000000", C = {
|
|
959
942
|
PRIMARY: "#2C64EF",
|
|
960
943
|
SECONDARY: "#808080",
|
|
961
944
|
INFO: "#2C64EF",
|
|
@@ -964,14 +947,14 @@ const Gr = ({
|
|
|
964
947
|
ERROR: "#E32727",
|
|
965
948
|
GREY: "#808080"
|
|
966
949
|
}, y = {
|
|
967
|
-
CHART1: "#
|
|
968
|
-
CHART2: "#
|
|
950
|
+
CHART1: "#14A396",
|
|
951
|
+
CHART2: "#EC4899",
|
|
969
952
|
CHART3: "#F3DC46",
|
|
970
953
|
CHART4: "#BABFC5",
|
|
971
954
|
CHART5: "#60A9FF",
|
|
972
955
|
CHART6: "#C8BAEE",
|
|
973
956
|
CHART7: "#585E67"
|
|
974
|
-
},
|
|
957
|
+
}, O = {
|
|
975
958
|
CHART_MONO1: "#C3EAFF",
|
|
976
959
|
CHART_MONO2: "#8ED7FF",
|
|
977
960
|
CHART_MONO3: "#60A9FF",
|
|
@@ -1024,13 +1007,13 @@ const Gr = ({
|
|
|
1024
1007
|
TRANSFER: "#75C7B7",
|
|
1025
1008
|
TRAVEL: "#76ACF7",
|
|
1026
1009
|
UNCATEGORIZED: "#BCC6D4"
|
|
1027
|
-
},
|
|
1010
|
+
}, Ye = (r, i) => {
|
|
1028
1011
|
const o = M(i?.primary || C.PRIMARY), s = M(i?.secondary || C.SECONDARY), l = M(i?.error || C.ERROR), e = M(i?.warning || C.WARNING), a = M(i?.info || C.INFO), c = M(i?.success || C.SUCCESS), d = M(i?.grey || C.GREY), t = r === S.LIGHT;
|
|
1029
1012
|
return {
|
|
1030
1013
|
mode: r,
|
|
1031
1014
|
common: {
|
|
1032
1015
|
white: R,
|
|
1033
|
-
black:
|
|
1016
|
+
black: I
|
|
1034
1017
|
},
|
|
1035
1018
|
primary: {
|
|
1036
1019
|
...o,
|
|
@@ -1055,12 +1038,12 @@ const Gr = ({
|
|
|
1055
1038
|
main: t ? d[500] : d[400],
|
|
1056
1039
|
dark: t ? d[700] : d[200],
|
|
1057
1040
|
darker: t ? d[800] : d[100],
|
|
1058
|
-
contrastText:
|
|
1041
|
+
contrastText: Fe(t ? d[700] : d[400], "#fff") > 4.5 ? R : d[900]
|
|
1059
1042
|
},
|
|
1060
1043
|
text: {
|
|
1061
|
-
primary: t ?
|
|
1062
|
-
secondary: t ?
|
|
1063
|
-
disabled: t ?
|
|
1044
|
+
primary: t ? f(I, 0.87) : R,
|
|
1045
|
+
secondary: t ? f(I, 0.6) : f(R, 0.7),
|
|
1046
|
+
disabled: t ? f(I, 0.38) : f(R, 0.38)
|
|
1064
1047
|
},
|
|
1065
1048
|
error: {
|
|
1066
1049
|
...l,
|
|
@@ -1096,18 +1079,18 @@ const Gr = ({
|
|
|
1096
1079
|
},
|
|
1097
1080
|
grey: d,
|
|
1098
1081
|
action: {
|
|
1099
|
-
active: t ? f(
|
|
1082
|
+
active: t ? f(I, 0.56) : f(R, 0.56),
|
|
1100
1083
|
hoverOpacity: t ? 0.1 : 0.2,
|
|
1101
1084
|
selectedOpacity: t ? 0.16 : 0.25,
|
|
1102
1085
|
focusOpacity: 0.3
|
|
1103
1086
|
},
|
|
1104
1087
|
background: {
|
|
1105
|
-
default: t ? i?.background?.default?.light ||
|
|
1106
|
-
paper: t ? i?.background?.paper?.light ||
|
|
1088
|
+
default: t ? i?.background?.default?.light || Ge : i?.background?.default?.dark || Ve,
|
|
1089
|
+
paper: t ? i?.background?.paper?.light || We : i?.background?.paper?.dark || Ke,
|
|
1107
1090
|
highlight: t ? d[200] : d[600],
|
|
1108
1091
|
highlightPrimary: t ? o[100] : o[500]
|
|
1109
1092
|
},
|
|
1110
|
-
divider: t ? f(
|
|
1093
|
+
divider: t ? f(I, 0.12) : f(R, 0.24),
|
|
1111
1094
|
categories: {
|
|
1112
1095
|
autoTransport: t ? p.AUTO_TRANSPORTT : u.AUTO_TRANSPORTT,
|
|
1113
1096
|
billsUtilities: t ? p.BILLS_UTILITIES : u.BILLS_UTILITIES,
|
|
@@ -1142,15 +1125,15 @@ const Gr = ({
|
|
|
1142
1125
|
chart7: y.CHART7
|
|
1143
1126
|
},
|
|
1144
1127
|
chartMono: {
|
|
1145
|
-
chartMono1:
|
|
1146
|
-
chartMono2:
|
|
1147
|
-
chartMono3:
|
|
1148
|
-
chartMono4:
|
|
1149
|
-
chartMono5:
|
|
1150
|
-
chartMono6:
|
|
1128
|
+
chartMono1: O.CHART_MONO1,
|
|
1129
|
+
chartMono2: O.CHART_MONO2,
|
|
1130
|
+
chartMono3: O.CHART_MONO3,
|
|
1131
|
+
chartMono4: O.CHART_MONO4,
|
|
1132
|
+
chartMono5: O.CHART_MONO5,
|
|
1133
|
+
chartMono6: O.CHART_MONO6
|
|
1151
1134
|
}
|
|
1152
1135
|
};
|
|
1153
|
-
}, z = "Inter, Helvetica, Arial, sans-serif",
|
|
1136
|
+
}, z = "Inter, Helvetica, Arial, sans-serif", Xe = (r) => {
|
|
1154
1137
|
const i = r?.fontFamily ? `${r?.fontFamily}, ${z}` : z, o = r?.headerFontFamily ? `${r.headerFontFamily}, ${z}` : i;
|
|
1155
1138
|
return {
|
|
1156
1139
|
fontFamily: i,
|
|
@@ -1209,11 +1192,11 @@ const Gr = ({
|
|
|
1209
1192
|
}
|
|
1210
1193
|
};
|
|
1211
1194
|
};
|
|
1212
|
-
|
|
1195
|
+
Le.setLicenseKey(
|
|
1213
1196
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1214
1197
|
);
|
|
1215
|
-
const
|
|
1216
|
-
const o =
|
|
1198
|
+
const Vr = (r, i) => {
|
|
1199
|
+
const o = Ye(r, i?.paletteOptions), s = Xe(i?.typographyOptions), l = [...G().shadows];
|
|
1217
1200
|
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)", G({
|
|
1218
1201
|
breakpoints: i?.breakpoints || {
|
|
1219
1202
|
values: {
|
|
@@ -1416,7 +1399,7 @@ const Kr = (r, i) => {
|
|
|
1416
1399
|
MuiCircularProgress: {
|
|
1417
1400
|
styleOverrides: {
|
|
1418
1401
|
root: {
|
|
1419
|
-
[`& .${
|
|
1402
|
+
[`& .${ke.circle}`]: {
|
|
1420
1403
|
strokeLinecap: "round"
|
|
1421
1404
|
}
|
|
1422
1405
|
}
|
|
@@ -1620,6 +1603,17 @@ const Kr = (r, i) => {
|
|
|
1620
1603
|
})
|
|
1621
1604
|
}
|
|
1622
1605
|
},
|
|
1606
|
+
MuiInputBase: {
|
|
1607
|
+
styleOverrides: {
|
|
1608
|
+
input: ({ theme: e }) => ({
|
|
1609
|
+
"&::placeholder": {
|
|
1610
|
+
color: e.palette.text.secondary,
|
|
1611
|
+
opacity: 1
|
|
1612
|
+
// MUI dims placeholders by default
|
|
1613
|
+
}
|
|
1614
|
+
})
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1623
1617
|
MuiInputLabel: {
|
|
1624
1618
|
defaultProps: {
|
|
1625
1619
|
shrink: !0
|
|
@@ -2108,34 +2102,34 @@ const Kr = (r, i) => {
|
|
|
2108
2102
|
});
|
|
2109
2103
|
};
|
|
2110
2104
|
export {
|
|
2111
|
-
|
|
2112
|
-
|
|
2105
|
+
D as BaseIcon,
|
|
2106
|
+
Lr as BottomSheetTransition,
|
|
2113
2107
|
g as CategoryGuids,
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2108
|
+
we as CategoryIcon,
|
|
2109
|
+
He as CategoryIconList,
|
|
2110
|
+
Ne as CategoryIconVariants,
|
|
2111
|
+
kr as DateRangePicker,
|
|
2112
|
+
ze as DialogFooter,
|
|
2113
|
+
wr as DialogHeader,
|
|
2114
|
+
Pr as Drawer,
|
|
2115
|
+
ze as Footer,
|
|
2116
|
+
$e as H1,
|
|
2117
|
+
Nr as H2,
|
|
2118
|
+
Hr as H3,
|
|
2125
2119
|
z as INTER,
|
|
2126
2120
|
T as Icon,
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2121
|
+
Br as InstitutionLogo,
|
|
2122
|
+
vr as MXLogoCopyrightIcon,
|
|
2123
|
+
Er as MXLogoFilledIcon,
|
|
2124
|
+
Or as MXLogoIcon,
|
|
2125
|
+
Fr as MXLogoOutlineIcon,
|
|
2126
|
+
_r as MerchantLogo,
|
|
2127
|
+
Dr as P,
|
|
2128
|
+
Ur as SelectionBox,
|
|
2129
|
+
Gr as Tag,
|
|
2130
|
+
F as Text,
|
|
2131
|
+
zr as TextField,
|
|
2132
|
+
$r as Toast,
|
|
2133
|
+
Vr as createMXTheme
|
|
2140
2134
|
};
|
|
2141
2135
|
//# sourceMappingURL=index.es.js.map
|