@mxenabled/mxui 1.5.9 → 1.5.11-alpha.al0
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/README.md +1 -1
- package/dist/index.es.js +362 -358
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import { jsx as a, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import x from "react";
|
|
3
3
|
import I from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as H, createTheme as
|
|
4
|
+
import { useTheme as H, createTheme as U } from "@mui/material/styles";
|
|
5
5
|
import { Icon as se, ExpandMore as de, Close as ue } from "@mxenabled/mx-icons";
|
|
6
|
-
import { endOfMonth as
|
|
6
|
+
import { endOfMonth as W } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as pe } from "date-fns/endOfYear";
|
|
8
8
|
import { startOfToday as he } from "date-fns/startOfToday";
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
11
|
-
import { subDays as
|
|
9
|
+
import { startOfMonth as Z } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as K } from "date-fns/startOfYear";
|
|
11
|
+
import { subDays as Y } from "date-fns/subDays";
|
|
12
12
|
import { subMonths as ge } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as me } from "date-fns/subYears";
|
|
14
14
|
import fe from "@mui/material/useMediaQuery";
|
|
15
15
|
import { LocalizationProvider as be, StaticDateRangePicker as Te } from "@mui/x-date-pickers-pro";
|
|
16
16
|
import { AdapterDateFns as Ce } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
|
|
17
|
-
import { MultiInputDateRangeField as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
17
|
+
import { MultiInputDateRangeField as xe } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
18
|
+
import j from "@mui/material/Box";
|
|
19
|
+
import Re from "@mui/material/ToggleButton";
|
|
20
20
|
import Me from "@mui/material/ToggleButtonGroup";
|
|
21
21
|
import Ae from "@mui/material/MenuItem";
|
|
22
|
-
import
|
|
22
|
+
import Q from "@mui/material/TextField";
|
|
23
23
|
import { usePickerLayout as Ee, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ie, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
|
|
24
|
-
import
|
|
24
|
+
import J from "@mui/material/Slide";
|
|
25
25
|
import V from "@mui/material/Button";
|
|
26
|
-
import
|
|
26
|
+
import q from "@mui/material/IconButton";
|
|
27
27
|
import ve from "@mui/material/Typography";
|
|
28
28
|
import ye from "@mui/material/Drawer";
|
|
29
29
|
import He from "@mui/material/Snackbar";
|
|
30
30
|
import Fe from "@mui/material/Alert";
|
|
31
|
-
import { light as
|
|
32
|
-
import { FormControlLabel as ke, Box as _, Typography as
|
|
31
|
+
import { light as ee, buildTheme as $, dark as Oe } from "@mxenabled/design-tokens";
|
|
32
|
+
import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Le, alpha as b, darken as D, lighten as F, getContrastRatio as De } from "@mui/material";
|
|
33
33
|
import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
|
|
34
34
|
import { LicenseInfo as we } from "@mui/x-license-pro";
|
|
35
35
|
const f = ({
|
|
36
36
|
children: e,
|
|
37
37
|
height: o,
|
|
38
|
-
size:
|
|
38
|
+
size: i = 16,
|
|
39
39
|
viewBox: l = "0 0 16 16",
|
|
40
|
-
width:
|
|
40
|
+
width: c
|
|
41
41
|
}) => /* @__PURE__ */ a(
|
|
42
42
|
"svg",
|
|
43
43
|
{
|
|
44
44
|
"aria-hidden": !0,
|
|
45
45
|
className: "mx-kmui-icon",
|
|
46
46
|
focusable: !1,
|
|
47
|
-
height: o ||
|
|
47
|
+
height: o || i,
|
|
48
48
|
viewBox: l,
|
|
49
|
-
width:
|
|
49
|
+
width: c || i,
|
|
50
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
51
51
|
children: e
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
var Pe = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(Pe || {});
|
|
55
|
-
const
|
|
55
|
+
const R = ({
|
|
56
56
|
color: e,
|
|
57
57
|
fill: o = !1,
|
|
58
|
-
name:
|
|
58
|
+
name: i,
|
|
59
59
|
size: l = 20,
|
|
60
|
-
sx:
|
|
61
|
-
weight:
|
|
60
|
+
sx: c,
|
|
61
|
+
weight: t = 300,
|
|
62
62
|
...n
|
|
63
63
|
}) => /* @__PURE__ */ a(
|
|
64
64
|
se,
|
|
65
65
|
{
|
|
66
66
|
color: e,
|
|
67
67
|
fill: o,
|
|
68
|
-
name:
|
|
68
|
+
name: i,
|
|
69
69
|
size: l,
|
|
70
|
-
sx:
|
|
71
|
-
weight:
|
|
70
|
+
sx: c,
|
|
71
|
+
weight: t,
|
|
72
72
|
...n
|
|
73
73
|
}
|
|
74
74
|
), w0 = ({
|
|
@@ -284,7 +284,7 @@ const x = ({
|
|
|
284
284
|
)
|
|
285
285
|
] });
|
|
286
286
|
var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}), _e = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(_e || {});
|
|
287
|
-
const
|
|
287
|
+
const oe = {
|
|
288
288
|
guid: g.Uncategorized,
|
|
289
289
|
colorName: "uncategorized",
|
|
290
290
|
icon: "category"
|
|
@@ -389,56 +389,56 @@ const ee = {
|
|
|
389
389
|
colorName: "travel",
|
|
390
390
|
icon: "airplane_ticket"
|
|
391
391
|
},
|
|
392
|
-
|
|
392
|
+
oe
|
|
393
393
|
], ze = 0.625, Ve = ({
|
|
394
394
|
categoryGuid: e,
|
|
395
395
|
icon_ratio: o = ze,
|
|
396
|
-
size:
|
|
396
|
+
size: i = 32,
|
|
397
397
|
sx: l = {},
|
|
398
|
-
variant:
|
|
398
|
+
variant: c = "filled"
|
|
399
399
|
}) => {
|
|
400
|
-
const
|
|
401
|
-
() => Be.find((u) => u.guid === e) ??
|
|
400
|
+
const t = H(), n = x.useMemo(
|
|
401
|
+
() => Be.find((u) => u.guid === e) ?? oe,
|
|
402
402
|
[e]
|
|
403
|
-
),
|
|
403
|
+
), s = t.palette.categories[n.colorName];
|
|
404
404
|
return /* @__PURE__ */ a(
|
|
405
405
|
I,
|
|
406
406
|
{
|
|
407
407
|
alignItems: "center",
|
|
408
408
|
bgcolor: () => {
|
|
409
|
-
let u =
|
|
410
|
-
return
|
|
409
|
+
let u = s;
|
|
410
|
+
return c === "twotone" && (u = `${u}20`), c === "transparent" || c === "basic" ? "transparent" : u;
|
|
411
411
|
},
|
|
412
412
|
borderRadius: 1,
|
|
413
413
|
color: () => {
|
|
414
|
-
const u =
|
|
415
|
-
return
|
|
414
|
+
const u = c === "filled" ? t.palette.common.white : s;
|
|
415
|
+
return c === "basic" ? t.palette.text.primary : u;
|
|
416
416
|
},
|
|
417
|
-
height:
|
|
417
|
+
height: i,
|
|
418
418
|
justifyContent: "center",
|
|
419
419
|
sx: [...Array.isArray(l) ? l : [l]],
|
|
420
|
-
width:
|
|
421
|
-
children: /* @__PURE__ */ a(
|
|
420
|
+
width: i,
|
|
421
|
+
children: /* @__PURE__ */ a(R, { name: n.icon, size: i * o })
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
424
|
}, $e = ({
|
|
425
425
|
items: e,
|
|
426
426
|
onChange: o,
|
|
427
|
-
isValid:
|
|
427
|
+
isValid: i,
|
|
428
428
|
selected: l
|
|
429
429
|
}) => {
|
|
430
|
-
const
|
|
431
|
-
const
|
|
430
|
+
const c = H(), t = e?.map((n) => {
|
|
431
|
+
const s = n.getValue({ isValid: i });
|
|
432
432
|
return {
|
|
433
433
|
label: n.label,
|
|
434
434
|
onClick: () => {
|
|
435
|
-
o(
|
|
435
|
+
o(s, "accept", n);
|
|
436
436
|
},
|
|
437
|
-
disabled: !
|
|
437
|
+
disabled: !i(s)
|
|
438
438
|
};
|
|
439
439
|
});
|
|
440
|
-
return /* @__PURE__ */ a(
|
|
441
|
-
|
|
440
|
+
return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: t?.map((n) => /* @__PURE__ */ a(
|
|
441
|
+
Re,
|
|
442
442
|
{
|
|
443
443
|
onClick: n.onClick,
|
|
444
444
|
sx: {
|
|
@@ -451,11 +451,11 @@ const ee = {
|
|
|
451
451
|
boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
|
|
452
452
|
},
|
|
453
453
|
"&:hover": {
|
|
454
|
-
bgcolor:
|
|
455
|
-
borderTop: `1px solid ${
|
|
454
|
+
bgcolor: c.palette.action.hover,
|
|
455
|
+
borderTop: `1px solid ${c.palette.secondary.light}`
|
|
456
456
|
},
|
|
457
457
|
"&.Mui-selected": {
|
|
458
|
-
border: `2px solid ${
|
|
458
|
+
border: `2px solid ${c.palette.primary.main} !important`,
|
|
459
459
|
marginTop: "-2px !important",
|
|
460
460
|
color: "primary"
|
|
461
461
|
}
|
|
@@ -468,22 +468,22 @@ const ee = {
|
|
|
468
468
|
}, Ge = ({
|
|
469
469
|
items: e,
|
|
470
470
|
onChange: o,
|
|
471
|
-
isValid:
|
|
471
|
+
isValid: i,
|
|
472
472
|
selected: l,
|
|
473
|
-
selectLabel:
|
|
473
|
+
selectLabel: c
|
|
474
474
|
}) => {
|
|
475
|
-
const
|
|
476
|
-
const
|
|
475
|
+
const t = e?.map((n) => {
|
|
476
|
+
const s = n.getValue({ isValid: i });
|
|
477
477
|
return {
|
|
478
478
|
label: n.label,
|
|
479
479
|
onClick: () => {
|
|
480
|
-
o(
|
|
480
|
+
o(s, "accept", n);
|
|
481
481
|
},
|
|
482
|
-
disabled: !
|
|
482
|
+
disabled: !i(s)
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
return /* @__PURE__ */ a(I, { sx: { py: 16 }, children: /* @__PURE__ */ a(
|
|
486
|
-
|
|
486
|
+
Q,
|
|
487
487
|
{
|
|
488
488
|
InputLabelProps: {
|
|
489
489
|
shrink: !0
|
|
@@ -491,16 +491,16 @@ const ee = {
|
|
|
491
491
|
SelectProps: { IconComponent: de },
|
|
492
492
|
defaultValue: l,
|
|
493
493
|
id: "select",
|
|
494
|
-
label:
|
|
494
|
+
label: c,
|
|
495
495
|
select: !0,
|
|
496
496
|
sx: { width: "100%" },
|
|
497
497
|
value: l,
|
|
498
498
|
variant: "outlined",
|
|
499
|
-
children:
|
|
499
|
+
children: t?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
500
500
|
}
|
|
501
501
|
) });
|
|
502
502
|
}, Ue = (e) => {
|
|
503
|
-
const { toolbar: o, content:
|
|
503
|
+
const { toolbar: o, content: i, shortcuts: l } = Ee(e);
|
|
504
504
|
return /* @__PURE__ */ T(
|
|
505
505
|
Se,
|
|
506
506
|
{
|
|
@@ -524,52 +524,52 @@ const ee = {
|
|
|
524
524
|
l,
|
|
525
525
|
o
|
|
526
526
|
] }),
|
|
527
|
-
/* @__PURE__ */ a(Ie, { className: P.contentWrapper, children:
|
|
527
|
+
/* @__PURE__ */ a(Ie, { className: P.contentWrapper, children: i })
|
|
528
528
|
]
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
531
|
}, q0 = ({
|
|
532
532
|
copy: e,
|
|
533
533
|
dateRange: o,
|
|
534
|
-
onRangeChanged:
|
|
534
|
+
onRangeChanged: i,
|
|
535
535
|
selectedShortcut: l = e.dateRangeThisMonth,
|
|
536
|
-
sx:
|
|
536
|
+
sx: c = {}
|
|
537
537
|
}) => {
|
|
538
|
-
const
|
|
539
|
-
const
|
|
538
|
+
const t = H(), n = fe(t.breakpoints.down("sm")), s = x.useMemo(() => {
|
|
539
|
+
const r = he(), u = ge(r, 1), C = me(r, 1);
|
|
540
540
|
return [
|
|
541
541
|
{
|
|
542
542
|
label: e.dateRangeThisMonth,
|
|
543
|
-
getValue: () => [
|
|
543
|
+
getValue: () => [Z(r), W(r)]
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
label: e.dateRangeLastMonth,
|
|
547
|
-
getValue: () => [
|
|
547
|
+
getValue: () => [Z(u), W(u)]
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
550
|
label: e.dateRangeLast30Days,
|
|
551
|
-
getValue: () => [
|
|
551
|
+
getValue: () => [Y(r, 30), r]
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
label: e.dateRangeLast90Days,
|
|
555
|
-
getValue: () => [
|
|
555
|
+
getValue: () => [Y(r, 90), r]
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
label: e.dateRangeYTD,
|
|
559
|
-
getValue: () => [
|
|
559
|
+
getValue: () => [K(r), r]
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
562
|
label: e.dateRangeLastYear,
|
|
563
|
-
getValue: () => [
|
|
563
|
+
getValue: () => [K(C), pe(C)]
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
label: e.dateRangeCustom,
|
|
567
|
-
getValue: () => [
|
|
567
|
+
getValue: () => [r, r]
|
|
568
568
|
}
|
|
569
569
|
];
|
|
570
|
-
}, [e]), d = (
|
|
570
|
+
}, [e]), d = (r, u) => {
|
|
571
571
|
const C = u.shortcut;
|
|
572
|
-
|
|
572
|
+
i?.(r, C ? C.label : e.dateRangeCustom);
|
|
573
573
|
};
|
|
574
574
|
return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
|
|
575
575
|
Te,
|
|
@@ -585,7 +585,7 @@ const ee = {
|
|
|
585
585
|
slotProps: {
|
|
586
586
|
actionBar: { actions: [] },
|
|
587
587
|
shortcuts: {
|
|
588
|
-
items:
|
|
588
|
+
items: s
|
|
589
589
|
},
|
|
590
590
|
toolbar: {
|
|
591
591
|
toolbarFormat: n ? "MM/dd/yyyy" : "MMM d, yyyy"
|
|
@@ -593,22 +593,22 @@ const ee = {
|
|
|
593
593
|
},
|
|
594
594
|
slots: {
|
|
595
595
|
...n && { layout: Ue },
|
|
596
|
-
leftArrowIcon: () => /* @__PURE__ */ a(
|
|
597
|
-
shortcuts: (
|
|
596
|
+
leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
|
|
597
|
+
shortcuts: (r) => n ? /* @__PURE__ */ a(
|
|
598
598
|
Ge,
|
|
599
599
|
{
|
|
600
600
|
selectLabel: e.dateRangeSelectARange,
|
|
601
601
|
selected: l,
|
|
602
|
-
...
|
|
602
|
+
...r
|
|
603
603
|
}
|
|
604
|
-
) : /* @__PURE__ */ a($e, { selected: l, ...
|
|
605
|
-
rightArrowIcon: () => /* @__PURE__ */ a(
|
|
604
|
+
) : /* @__PURE__ */ a($e, { selected: l, ...r }),
|
|
605
|
+
rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
|
|
606
606
|
...n && {
|
|
607
|
-
toolbar: (
|
|
608
|
-
|
|
607
|
+
toolbar: (r) => /* @__PURE__ */ a(
|
|
608
|
+
xe,
|
|
609
609
|
{
|
|
610
610
|
dateSeparator: "",
|
|
611
|
-
...
|
|
611
|
+
...r,
|
|
612
612
|
slotProps: {
|
|
613
613
|
textField: ({ position: u }) => ({
|
|
614
614
|
label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
@@ -619,21 +619,21 @@ const ee = {
|
|
|
619
619
|
)
|
|
620
620
|
}
|
|
621
621
|
},
|
|
622
|
-
sx: { ...
|
|
622
|
+
sx: { ...c },
|
|
623
623
|
value: o
|
|
624
624
|
}
|
|
625
625
|
) }) });
|
|
626
|
-
}, eo =
|
|
627
|
-
return /* @__PURE__ */ a(
|
|
626
|
+
}, eo = x.forwardRef(function(o, i) {
|
|
627
|
+
return /* @__PURE__ */ a(J, { direction: "up", ref: i, ...o });
|
|
628
628
|
}), We = ({
|
|
629
629
|
hasSecondaryAction: e = !0,
|
|
630
630
|
isPrimaryDisabled: o,
|
|
631
|
-
onPrimaryAction:
|
|
631
|
+
onPrimaryAction: i,
|
|
632
632
|
onSecondaryAction: l,
|
|
633
|
-
primaryColor:
|
|
634
|
-
primaryText:
|
|
633
|
+
primaryColor: c = "primary",
|
|
634
|
+
primaryText: t = "Save",
|
|
635
635
|
secondaryColor: n = "primary",
|
|
636
|
-
secondaryText:
|
|
636
|
+
secondaryText: s = "Cancel"
|
|
637
637
|
}) => /* @__PURE__ */ T(
|
|
638
638
|
I,
|
|
639
639
|
{
|
|
@@ -647,18 +647,18 @@ const ee = {
|
|
|
647
647
|
{
|
|
648
648
|
color: n,
|
|
649
649
|
onClick: l,
|
|
650
|
-
variant:
|
|
651
|
-
children:
|
|
650
|
+
variant: i ? "outlined" : "contained",
|
|
651
|
+
children: s
|
|
652
652
|
}
|
|
653
653
|
),
|
|
654
|
-
|
|
654
|
+
i && /* @__PURE__ */ a(
|
|
655
655
|
V,
|
|
656
656
|
{
|
|
657
|
-
color:
|
|
657
|
+
color: c,
|
|
658
658
|
disabled: o,
|
|
659
|
-
onClick:
|
|
659
|
+
onClick: i,
|
|
660
660
|
variant: "contained",
|
|
661
|
-
children:
|
|
661
|
+
children: t
|
|
662
662
|
}
|
|
663
663
|
)
|
|
664
664
|
]
|
|
@@ -666,43 +666,43 @@ const ee = {
|
|
|
666
666
|
), k = ({
|
|
667
667
|
bold: e,
|
|
668
668
|
className: o = "",
|
|
669
|
-
children:
|
|
669
|
+
children: i,
|
|
670
670
|
color: l,
|
|
671
|
-
sx:
|
|
672
|
-
truncate:
|
|
671
|
+
sx: c = {},
|
|
672
|
+
truncate: t = !0,
|
|
673
673
|
uppercase: n,
|
|
674
|
-
...
|
|
674
|
+
...s
|
|
675
675
|
}) => {
|
|
676
|
-
switch (
|
|
676
|
+
switch (s.variant) {
|
|
677
677
|
case "Body":
|
|
678
|
-
|
|
678
|
+
s.variant = "body1";
|
|
679
679
|
break;
|
|
680
680
|
case "Button":
|
|
681
|
-
|
|
681
|
+
s.variant = "button";
|
|
682
682
|
break;
|
|
683
683
|
case "H1":
|
|
684
|
-
|
|
684
|
+
s.variant = "h1";
|
|
685
685
|
break;
|
|
686
686
|
case "H2":
|
|
687
|
-
|
|
687
|
+
s.variant = "h2";
|
|
688
688
|
break;
|
|
689
689
|
case "H3":
|
|
690
|
-
|
|
690
|
+
s.variant = "h3";
|
|
691
691
|
break;
|
|
692
692
|
case "Paragraph":
|
|
693
|
-
|
|
693
|
+
s.variant = "subtitle1";
|
|
694
694
|
break;
|
|
695
695
|
case "ParagraphSmall":
|
|
696
|
-
|
|
696
|
+
s.variant = "subtitle2";
|
|
697
697
|
break;
|
|
698
698
|
case "Small":
|
|
699
|
-
|
|
699
|
+
s.variant = "body2";
|
|
700
700
|
break;
|
|
701
701
|
case "Tiny":
|
|
702
|
-
|
|
702
|
+
s.variant = "tiny";
|
|
703
703
|
break;
|
|
704
704
|
case "XSmall":
|
|
705
|
-
|
|
705
|
+
s.variant = "caption";
|
|
706
706
|
break;
|
|
707
707
|
}
|
|
708
708
|
return /* @__PURE__ */ a(
|
|
@@ -714,7 +714,7 @@ const ee = {
|
|
|
714
714
|
e ? {
|
|
715
715
|
fontWeight: 600
|
|
716
716
|
} : {},
|
|
717
|
-
|
|
717
|
+
t ? {
|
|
718
718
|
overflow: "hidden",
|
|
719
719
|
textOverflow: "ellipsis",
|
|
720
720
|
whiteSpace: "nowrap"
|
|
@@ -722,18 +722,18 @@ const ee = {
|
|
|
722
722
|
n ? {
|
|
723
723
|
textTransform: "uppercase"
|
|
724
724
|
} : {},
|
|
725
|
-
...Array.isArray(
|
|
725
|
+
...Array.isArray(c) ? c : [c]
|
|
726
726
|
],
|
|
727
|
-
...
|
|
728
|
-
children:
|
|
727
|
+
...s,
|
|
728
|
+
children: i
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
|
-
}, Ze = ({ className: e = "", children: o, ...
|
|
731
|
+
}, Ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), oo = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), to = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), ro = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
|
|
732
732
|
k,
|
|
733
733
|
{
|
|
734
734
|
className: `mx-kmui-text p ${e}`,
|
|
735
735
|
component: "p",
|
|
736
|
-
truncate:
|
|
736
|
+
truncate: i || !1,
|
|
737
737
|
variant: "body1",
|
|
738
738
|
...l,
|
|
739
739
|
children: o
|
|
@@ -750,82 +750,82 @@ const ee = {
|
|
|
750
750
|
},
|
|
751
751
|
children: [
|
|
752
752
|
/* @__PURE__ */ a(Ze, { variant: "h3", children: e.title }),
|
|
753
|
-
/* @__PURE__ */ a(
|
|
753
|
+
/* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(ue, {}) })
|
|
754
754
|
]
|
|
755
755
|
}
|
|
756
756
|
), ao = ({
|
|
757
757
|
className: e,
|
|
758
758
|
disableSave: o,
|
|
759
|
-
id:
|
|
759
|
+
id: i,
|
|
760
760
|
isOpen: l,
|
|
761
|
-
onClose:
|
|
762
|
-
onSave:
|
|
761
|
+
onClose: c,
|
|
762
|
+
onSave: t,
|
|
763
763
|
primaryText: n,
|
|
764
|
-
secondaryText:
|
|
764
|
+
secondaryText: s,
|
|
765
765
|
children: d,
|
|
766
|
-
...
|
|
766
|
+
...r
|
|
767
767
|
}) => /* @__PURE__ */ T(
|
|
768
768
|
ye,
|
|
769
769
|
{
|
|
770
770
|
anchor: "right",
|
|
771
771
|
className: `mx-kmui-drawer ${e}`,
|
|
772
|
-
id:
|
|
773
|
-
onClose:
|
|
772
|
+
id: i ?? void 0,
|
|
773
|
+
onClose: c,
|
|
774
774
|
open: l,
|
|
775
775
|
variant: "temporary",
|
|
776
|
-
...
|
|
776
|
+
...r,
|
|
777
777
|
children: [
|
|
778
778
|
d,
|
|
779
|
-
|
|
779
|
+
t && /* @__PURE__ */ a(
|
|
780
780
|
We,
|
|
781
781
|
{
|
|
782
782
|
isPrimaryDisabled: o,
|
|
783
|
-
onPrimaryAction:
|
|
784
|
-
onSecondaryAction:
|
|
783
|
+
onPrimaryAction: t,
|
|
784
|
+
onSecondaryAction: c,
|
|
785
785
|
primaryText: n,
|
|
786
|
-
secondaryText:
|
|
786
|
+
secondaryText: s
|
|
787
787
|
}
|
|
788
788
|
)
|
|
789
789
|
]
|
|
790
790
|
}
|
|
791
|
-
),
|
|
791
|
+
), te = 32, G = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${G}/serenity/default_institution_logo.png`, no = ({
|
|
792
792
|
alt: e,
|
|
793
793
|
institutionGuid: o,
|
|
794
|
-
logoUrl:
|
|
795
|
-
size: l =
|
|
796
|
-
...
|
|
794
|
+
logoUrl: i,
|
|
795
|
+
size: l = te,
|
|
796
|
+
...c
|
|
797
797
|
}) => /* @__PURE__ */ a(
|
|
798
798
|
"img",
|
|
799
799
|
{
|
|
800
800
|
alt: e,
|
|
801
801
|
height: l,
|
|
802
|
-
onError: (
|
|
803
|
-
src:
|
|
802
|
+
onError: (t) => t.target.src = Ke,
|
|
803
|
+
src: i || `${G}/Ipad%20Logos/100x100/${o}_100x100.png`,
|
|
804
804
|
style: {
|
|
805
805
|
borderRadius: 4
|
|
806
806
|
},
|
|
807
807
|
width: l,
|
|
808
|
-
...
|
|
808
|
+
...c
|
|
809
809
|
}
|
|
810
810
|
), lo = ({
|
|
811
811
|
alt: e = "",
|
|
812
812
|
categoryGuid: o,
|
|
813
|
-
merchantGuid:
|
|
814
|
-
size: l =
|
|
815
|
-
...
|
|
813
|
+
merchantGuid: i,
|
|
814
|
+
size: l = te,
|
|
815
|
+
...c
|
|
816
816
|
}) => {
|
|
817
|
-
const [
|
|
818
|
-
return /* @__PURE__ */ T(
|
|
819
|
-
|
|
817
|
+
const [t, n] = x.useState(!1), s = H();
|
|
818
|
+
return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
|
|
819
|
+
i && !t && /* @__PURE__ */ a(
|
|
820
820
|
"img",
|
|
821
821
|
{
|
|
822
822
|
alt: e,
|
|
823
823
|
"aria-hidden": !e,
|
|
824
824
|
height: l,
|
|
825
825
|
onError: () => n(!0),
|
|
826
|
-
src: `${G}/merchant_logos/${
|
|
826
|
+
src: `${G}/merchant_logos/${i}.png`,
|
|
827
827
|
style: {
|
|
828
|
-
backgroundColor:
|
|
828
|
+
backgroundColor: s.palette.common.white,
|
|
829
829
|
borderRadius: 4,
|
|
830
830
|
boxSizing: "border-box",
|
|
831
831
|
position: "absolute"
|
|
@@ -838,35 +838,35 @@ const ee = {
|
|
|
838
838
|
}, co = ({
|
|
839
839
|
disabled: e = !1,
|
|
840
840
|
label: o = "",
|
|
841
|
-
shrink:
|
|
841
|
+
shrink: i = !0,
|
|
842
842
|
variant: l = "outlined",
|
|
843
|
-
...
|
|
843
|
+
...c
|
|
844
844
|
}) => /* @__PURE__ */ a(
|
|
845
|
-
|
|
845
|
+
Q,
|
|
846
846
|
{
|
|
847
847
|
InputLabelProps: {
|
|
848
|
-
shrink:
|
|
848
|
+
shrink: i
|
|
849
849
|
},
|
|
850
850
|
disabled: e,
|
|
851
851
|
label: o,
|
|
852
852
|
variant: l,
|
|
853
|
-
...
|
|
853
|
+
...c
|
|
854
854
|
}
|
|
855
855
|
);
|
|
856
856
|
function Ye(e) {
|
|
857
|
-
return /* @__PURE__ */ a(
|
|
857
|
+
return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
858
858
|
}
|
|
859
859
|
const so = ({
|
|
860
860
|
open: e,
|
|
861
861
|
handleClose: o,
|
|
862
|
-
message:
|
|
862
|
+
message: i,
|
|
863
863
|
autoHideDuration: l = 3e3,
|
|
864
|
-
severity:
|
|
865
|
-
snackbarSx:
|
|
864
|
+
severity: c = "success",
|
|
865
|
+
snackbarSx: t,
|
|
866
866
|
showAction: n = !1,
|
|
867
|
-
showClose:
|
|
867
|
+
showClose: s = !1,
|
|
868
868
|
actionText: d = "Undo",
|
|
869
|
-
onActionClick:
|
|
869
|
+
onActionClick: r,
|
|
870
870
|
multiLine: u = !1
|
|
871
871
|
}) => {
|
|
872
872
|
const C = H(), L = /* @__PURE__ */ T(
|
|
@@ -876,14 +876,14 @@ const so = ({
|
|
|
876
876
|
direction: u ? "column-reverse" : "row",
|
|
877
877
|
justifyContent: (
|
|
878
878
|
// eslint-disable-next-line no-nested-ternary
|
|
879
|
-
u && n &&
|
|
879
|
+
u && n && s ? "space-between" : "flex-end"
|
|
880
880
|
),
|
|
881
881
|
children: [
|
|
882
882
|
n && /* @__PURE__ */ a(
|
|
883
883
|
V,
|
|
884
884
|
{
|
|
885
885
|
color: "inherit",
|
|
886
|
-
onClick:
|
|
886
|
+
onClick: r || o,
|
|
887
887
|
size: "small",
|
|
888
888
|
sx: {
|
|
889
889
|
color: C.palette.success.contrastText,
|
|
@@ -892,14 +892,14 @@ const so = ({
|
|
|
892
892
|
children: d
|
|
893
893
|
}
|
|
894
894
|
),
|
|
895
|
-
|
|
896
|
-
|
|
895
|
+
s && /* @__PURE__ */ a(
|
|
896
|
+
q,
|
|
897
897
|
{
|
|
898
898
|
"aria-label": "close",
|
|
899
899
|
color: "inherit",
|
|
900
900
|
onClick: o,
|
|
901
901
|
sx: { height: 44, width: 44 },
|
|
902
|
-
children: /* @__PURE__ */ a(
|
|
902
|
+
children: /* @__PURE__ */ a(R, { fill: !0, name: "close", size: 24, weight: 400 })
|
|
903
903
|
}
|
|
904
904
|
)
|
|
905
905
|
]
|
|
@@ -914,18 +914,18 @@ const so = ({
|
|
|
914
914
|
onClose: o,
|
|
915
915
|
open: e,
|
|
916
916
|
sx: {
|
|
917
|
-
...
|
|
917
|
+
...t,
|
|
918
918
|
width: u ? 400 : 325
|
|
919
919
|
},
|
|
920
920
|
children: /* @__PURE__ */ a(
|
|
921
921
|
Fe,
|
|
922
922
|
{
|
|
923
923
|
action: L,
|
|
924
|
-
severity:
|
|
924
|
+
severity: c,
|
|
925
925
|
sx: {
|
|
926
926
|
display: "flex",
|
|
927
927
|
alignItems: "stretch",
|
|
928
|
-
minHeight:
|
|
928
|
+
minHeight: s && n && u ? 120 : 56,
|
|
929
929
|
maxHeight: u ? 120 : 56,
|
|
930
930
|
width: "100%",
|
|
931
931
|
"& .MuiAlert-icon": {
|
|
@@ -952,7 +952,7 @@ const so = ({
|
|
|
952
952
|
textOverflow: u ? "clip" : "ellipsis"
|
|
953
953
|
},
|
|
954
954
|
truncate: !u,
|
|
955
|
-
children:
|
|
955
|
+
children: i
|
|
956
956
|
}
|
|
957
957
|
)
|
|
958
958
|
}
|
|
@@ -966,44 +966,44 @@ const so = ({
|
|
|
966
966
|
}, N = {
|
|
967
967
|
LIGHT: "light",
|
|
968
968
|
DARK: "dark"
|
|
969
|
-
}, re =
|
|
969
|
+
}, re = x.createContext(ee), ie = x.createContext(
|
|
970
970
|
$(N.LIGHT, O.REACT_NATIVE)
|
|
971
971
|
), uo = ({
|
|
972
972
|
children: e,
|
|
973
973
|
target: o = O.REACT,
|
|
974
|
-
theme:
|
|
974
|
+
theme: i = N.LIGHT,
|
|
975
975
|
tokenOverrides: l
|
|
976
976
|
}) => {
|
|
977
|
-
const [
|
|
977
|
+
const [c, t] = x.useState(i === N.LIGHT ? ee : Oe), n = x.useMemo(() => ({
|
|
978
978
|
...l
|
|
979
979
|
}), [l]);
|
|
980
|
-
return
|
|
981
|
-
const
|
|
982
|
-
s
|
|
983
|
-
}, [
|
|
980
|
+
return x.useEffect(() => {
|
|
981
|
+
const s = $(i, o, { ...n });
|
|
982
|
+
t(s);
|
|
983
|
+
}, [i, o, n]), o === O.REACT ? /* @__PURE__ */ a(re.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
|
|
984
984
|
}, po = (e = O.REACT, o = {}) => {
|
|
985
|
-
const
|
|
985
|
+
const i = e === O.REACT ? re : ie, l = x.useContext(i);
|
|
986
986
|
return l || $(N.LIGHT, e, { ...o });
|
|
987
987
|
}, ho = ({
|
|
988
988
|
component: e = B,
|
|
989
989
|
variant: o = "outlined",
|
|
990
|
-
selected:
|
|
990
|
+
selected: i,
|
|
991
991
|
onChange: l,
|
|
992
|
-
headline:
|
|
993
|
-
message:
|
|
992
|
+
headline: c,
|
|
993
|
+
message: t,
|
|
994
994
|
name: n,
|
|
995
|
-
value:
|
|
995
|
+
value: s,
|
|
996
996
|
disabled: d = !1,
|
|
997
|
-
error:
|
|
997
|
+
error: r = !1,
|
|
998
998
|
icon: u = !1,
|
|
999
999
|
sx: C = {},
|
|
1000
1000
|
...L
|
|
1001
1001
|
}) => {
|
|
1002
|
-
const m = H(),
|
|
1002
|
+
const m = H(), ae = () => m.palette.background.paper, w = () => r ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : m.shadows[1], ne = () => d || r ? m.palette.background.paper : b(m.palette.primary.main, 0.1), le = () => d || r ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : w(), ce = () => d || r ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
|
|
1003
1003
|
return /* @__PURE__ */ a(
|
|
1004
1004
|
ke,
|
|
1005
1005
|
{
|
|
1006
|
-
checked:
|
|
1006
|
+
checked: i,
|
|
1007
1007
|
control: e === B ? /* @__PURE__ */ a(
|
|
1008
1008
|
B,
|
|
1009
1009
|
{
|
|
@@ -1039,8 +1039,8 @@ const so = ({
|
|
|
1039
1039
|
label: /* @__PURE__ */ T(_, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
1040
1040
|
u && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
|
|
1041
1041
|
/* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
1042
|
-
|
|
1043
|
-
/* @__PURE__ */ a(
|
|
1042
|
+
c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
|
|
1043
|
+
/* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
|
|
1044
1044
|
] })
|
|
1045
1045
|
] }),
|
|
1046
1046
|
labelPlacement: "start",
|
|
@@ -1054,7 +1054,7 @@ const so = ({
|
|
|
1054
1054
|
mb: 16,
|
|
1055
1055
|
cursor: d ? "not-allowed" : "pointer",
|
|
1056
1056
|
opacity: d ? 0.6 : 1,
|
|
1057
|
-
backgroundColor:
|
|
1057
|
+
backgroundColor: ae(),
|
|
1058
1058
|
border: "none",
|
|
1059
1059
|
boxShadow: w(),
|
|
1060
1060
|
boxSizing: "border-box",
|
|
@@ -1062,11 +1062,11 @@ const so = ({
|
|
|
1062
1062
|
duration: m.transitions.duration.short
|
|
1063
1063
|
}),
|
|
1064
1064
|
"&:hover": {
|
|
1065
|
-
backgroundColor:
|
|
1066
|
-
boxShadow:
|
|
1065
|
+
backgroundColor: ne(),
|
|
1066
|
+
boxShadow: le()
|
|
1067
1067
|
},
|
|
1068
1068
|
"&:active": {
|
|
1069
|
-
backgroundColor:
|
|
1069
|
+
backgroundColor: ce()
|
|
1070
1070
|
},
|
|
1071
1071
|
"&:focus-visible": {
|
|
1072
1072
|
outline: `2px solid ${m.palette.info.main}`,
|
|
@@ -1074,7 +1074,7 @@ const so = ({
|
|
|
1074
1074
|
},
|
|
1075
1075
|
...C
|
|
1076
1076
|
},
|
|
1077
|
-
value:
|
|
1077
|
+
value: s
|
|
1078
1078
|
}
|
|
1079
1079
|
);
|
|
1080
1080
|
}, y = {
|
|
@@ -1160,15 +1160,15 @@ const so = ({
|
|
|
1160
1160
|
TRAVEL: "#76ACF7",
|
|
1161
1161
|
UNCATEGORIZED: "#BCC6D4"
|
|
1162
1162
|
}, qe = (e, o) => {
|
|
1163
|
-
const
|
|
1163
|
+
const i = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), c = M(o?.error || E.ERROR), t = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), r = e === y.LIGHT;
|
|
1164
1164
|
return {
|
|
1165
1165
|
mode: e,
|
|
1166
1166
|
// DEPRECATED: Use grey instead
|
|
1167
1167
|
border: {
|
|
1168
1168
|
/* DEPRECATED: Use light instead */
|
|
1169
|
-
lighter:
|
|
1170
|
-
light:
|
|
1171
|
-
main:
|
|
1169
|
+
lighter: r ? d[300] : d[700],
|
|
1170
|
+
light: r ? d[300] : d[700],
|
|
1171
|
+
main: r ? d[400] : d[600],
|
|
1172
1172
|
dark: d[500],
|
|
1173
1173
|
/* DEPRECATED: Use light instead */
|
|
1174
1174
|
darker: d[500]
|
|
@@ -1178,118 +1178,118 @@ const so = ({
|
|
|
1178
1178
|
black: z
|
|
1179
1179
|
},
|
|
1180
1180
|
primary: {
|
|
1181
|
-
...
|
|
1181
|
+
...i,
|
|
1182
1182
|
/* DEPRECATED: Use light instead */
|
|
1183
|
-
lighter:
|
|
1184
|
-
light:
|
|
1185
|
-
main:
|
|
1186
|
-
dark:
|
|
1183
|
+
lighter: r ? i[100] : i[800],
|
|
1184
|
+
light: r ? i[300] : i[600],
|
|
1185
|
+
main: r ? i[500] : i[400],
|
|
1186
|
+
dark: r ? i[700] : i[200],
|
|
1187
1187
|
/* DEPRECATED: Use dark instead */
|
|
1188
|
-
darker:
|
|
1188
|
+
darker: r ? i[900] : i[100]
|
|
1189
1189
|
},
|
|
1190
1190
|
secondary: {
|
|
1191
1191
|
...l,
|
|
1192
1192
|
/* DEPRECATED: Use light instead */
|
|
1193
|
-
lighter:
|
|
1194
|
-
light:
|
|
1195
|
-
main:
|
|
1196
|
-
dark:
|
|
1193
|
+
lighter: r ? l[100] : l[800],
|
|
1194
|
+
light: r ? l[300] : l[600],
|
|
1195
|
+
main: r ? l[500] : l[400],
|
|
1196
|
+
dark: r ? l[700] : l[200],
|
|
1197
1197
|
/* DEPRECATED: Use dark instead */
|
|
1198
|
-
darker:
|
|
1198
|
+
darker: r ? l[900] : l[100]
|
|
1199
1199
|
},
|
|
1200
1200
|
neutral: {
|
|
1201
1201
|
...d,
|
|
1202
1202
|
/* DEPRECATED: Use light instead */
|
|
1203
|
-
lighter:
|
|
1204
|
-
light:
|
|
1205
|
-
main:
|
|
1206
|
-
dark:
|
|
1203
|
+
lighter: r ? d[100] : d[800],
|
|
1204
|
+
light: r ? d[300] : d[600],
|
|
1205
|
+
main: r ? d[500] : d[400],
|
|
1206
|
+
dark: r ? d[700] : d[200],
|
|
1207
1207
|
/* DEPRECATED: Use dark instead */
|
|
1208
|
-
darker:
|
|
1209
|
-
contrastText: De(
|
|
1208
|
+
darker: r ? d[900] : d[100],
|
|
1209
|
+
contrastText: De(r ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
|
|
1210
1210
|
},
|
|
1211
1211
|
text: {
|
|
1212
|
-
primary:
|
|
1213
|
-
secondary:
|
|
1214
|
-
disabled:
|
|
1212
|
+
primary: r ? d[900] : A,
|
|
1213
|
+
secondary: r ? d[600] : b(A, 0.7),
|
|
1214
|
+
disabled: r ? d[500] : b(A, 0.38)
|
|
1215
1215
|
},
|
|
1216
1216
|
error: {
|
|
1217
|
-
...
|
|
1217
|
+
...c,
|
|
1218
1218
|
/* DEPRECATED: Use light instead */
|
|
1219
|
-
lighter:
|
|
1220
|
-
light:
|
|
1221
|
-
main:
|
|
1222
|
-
dark:
|
|
1219
|
+
lighter: r ? c[100] : c[800],
|
|
1220
|
+
light: r ? c[300] : c[600],
|
|
1221
|
+
main: r ? c[500] : c[400],
|
|
1222
|
+
dark: r ? c[700] : c[200],
|
|
1223
1223
|
/* DEPRECATED: Use light instead */
|
|
1224
|
-
darker:
|
|
1224
|
+
darker: r ? c[900] : c[100]
|
|
1225
1225
|
},
|
|
1226
1226
|
warning: {
|
|
1227
|
-
...
|
|
1227
|
+
...t,
|
|
1228
1228
|
/* DEPRECATED: Use light instead */
|
|
1229
|
-
lighter:
|
|
1230
|
-
light:
|
|
1231
|
-
main:
|
|
1232
|
-
dark:
|
|
1229
|
+
lighter: r ? t[100] : t[800],
|
|
1230
|
+
light: r ? t[300] : t[600],
|
|
1231
|
+
main: r ? t[500] : t[400],
|
|
1232
|
+
dark: r ? t[700] : t[200],
|
|
1233
1233
|
/* DEPRECATED: Use light instead */
|
|
1234
|
-
darker:
|
|
1234
|
+
darker: r ? t[900] : t[100]
|
|
1235
1235
|
},
|
|
1236
1236
|
info: {
|
|
1237
1237
|
...n,
|
|
1238
1238
|
/* DEPRECATED: Use light instead */
|
|
1239
|
-
lighter:
|
|
1240
|
-
light:
|
|
1241
|
-
main:
|
|
1242
|
-
dark:
|
|
1239
|
+
lighter: r ? n[100] : n[800],
|
|
1240
|
+
light: r ? n[300] : n[600],
|
|
1241
|
+
main: r ? n[500] : n[400],
|
|
1242
|
+
dark: r ? n[700] : n[200],
|
|
1243
1243
|
/* DEPRECATED: Use light instead */
|
|
1244
|
-
darker:
|
|
1244
|
+
darker: r ? n[900] : n[100]
|
|
1245
1245
|
},
|
|
1246
1246
|
success: {
|
|
1247
|
-
...
|
|
1247
|
+
...s,
|
|
1248
1248
|
/* DEPRECATED: Use light instead */
|
|
1249
|
-
lighter:
|
|
1250
|
-
light:
|
|
1251
|
-
main:
|
|
1252
|
-
dark:
|
|
1249
|
+
lighter: r ? s[100] : s[800],
|
|
1250
|
+
light: r ? s[300] : s[600],
|
|
1251
|
+
main: r ? s[500] : s[400],
|
|
1252
|
+
dark: r ? s[700] : s[200],
|
|
1253
1253
|
/* DEPRECATED: Use light instead */
|
|
1254
|
-
darker:
|
|
1254
|
+
darker: r ? s[900] : s[100]
|
|
1255
1255
|
},
|
|
1256
1256
|
grey: d,
|
|
1257
1257
|
action: {
|
|
1258
|
-
active:
|
|
1259
|
-
hoverOpacity:
|
|
1260
|
-
selectedOpacity:
|
|
1258
|
+
active: r ? b(z, 0.56) : b(A, 0.56),
|
|
1259
|
+
hoverOpacity: r ? 0.1 : 0.2,
|
|
1260
|
+
selectedOpacity: r ? 0.16 : 0.25,
|
|
1261
1261
|
focusOpacity: 0.3
|
|
1262
1262
|
},
|
|
1263
1263
|
background: {
|
|
1264
|
-
default:
|
|
1265
|
-
paper:
|
|
1266
|
-
highlight:
|
|
1267
|
-
highlightPrimary:
|
|
1264
|
+
default: r ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
|
|
1265
|
+
paper: r ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
|
|
1266
|
+
highlight: r ? d[200] : d[600],
|
|
1267
|
+
highlightPrimary: r ? i[100] : i[500]
|
|
1268
1268
|
},
|
|
1269
|
-
divider:
|
|
1269
|
+
divider: r ? b(z, 0.12) : b(A, 0.24),
|
|
1270
1270
|
categories: {
|
|
1271
|
-
autoTransport:
|
|
1272
|
-
billsUtilities:
|
|
1273
|
-
businessServices:
|
|
1274
|
-
education:
|
|
1275
|
-
entertainment:
|
|
1276
|
-
feesCharges:
|
|
1277
|
-
financial:
|
|
1278
|
-
foodDining:
|
|
1279
|
-
giftsDonations:
|
|
1280
|
-
healthFitness:
|
|
1281
|
-
home:
|
|
1282
|
-
income:
|
|
1283
|
-
investments:
|
|
1284
|
-
kids:
|
|
1285
|
-
others:
|
|
1286
|
-
personalCare:
|
|
1287
|
-
pets:
|
|
1288
|
-
shopping:
|
|
1289
|
-
taxes:
|
|
1290
|
-
transfer:
|
|
1291
|
-
travel:
|
|
1292
|
-
uncategorized:
|
|
1271
|
+
autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
1272
|
+
billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
1273
|
+
businessServices: r ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
|
|
1274
|
+
education: r ? p.EDUCATION : h.EDUCATION,
|
|
1275
|
+
entertainment: r ? p.ENTERTAINMENT : h.ENTERTAINMENT,
|
|
1276
|
+
feesCharges: r ? p.FEES_CHARGES : h.FEES_CHARGES,
|
|
1277
|
+
financial: r ? p.FINANCIAL : h.FINANCIAL,
|
|
1278
|
+
foodDining: r ? p.FOOD_DINING : h.FOOD_DINING,
|
|
1279
|
+
giftsDonations: r ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
|
|
1280
|
+
healthFitness: r ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
|
|
1281
|
+
home: r ? p.HOME : h.HOME,
|
|
1282
|
+
income: r ? p.INCOME : h.INCOME,
|
|
1283
|
+
investments: r ? p.INVESTMENTS : h.INVESTMENTS,
|
|
1284
|
+
kids: r ? p.KIDS : h.KIDS,
|
|
1285
|
+
others: r ? p.OTHERS : h.OTHERS,
|
|
1286
|
+
personalCare: r ? p.PERSONAL_CARE : h.PERSONAL_CARE,
|
|
1287
|
+
pets: r ? p.PETS : h.PETS,
|
|
1288
|
+
shopping: r ? p.SHOPPING : h.SHOPPING,
|
|
1289
|
+
taxes: r ? p.TAXES : h.TAXES,
|
|
1290
|
+
transfer: r ? p.TRANSFER : h.TRANSFER,
|
|
1291
|
+
travel: r ? p.TRAVEL : h.TRAVEL,
|
|
1292
|
+
uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
|
|
1293
1293
|
},
|
|
1294
1294
|
chart: {
|
|
1295
1295
|
chart1: S.CHART1,
|
|
@@ -1447,8 +1447,8 @@ we.setLicenseKey(
|
|
|
1447
1447
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1448
1448
|
);
|
|
1449
1449
|
const go = (e, o) => {
|
|
1450
|
-
const
|
|
1451
|
-
return
|
|
1450
|
+
const i = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions), c = [...U().shadows];
|
|
1451
|
+
return c[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", c[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", c[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", U({
|
|
1452
1452
|
breakpoints: {
|
|
1453
1453
|
values: {
|
|
1454
1454
|
xs: 444,
|
|
@@ -1458,10 +1458,11 @@ const go = (e, o) => {
|
|
|
1458
1458
|
xl: 1536
|
|
1459
1459
|
}
|
|
1460
1460
|
},
|
|
1461
|
-
palette:
|
|
1461
|
+
palette: i,
|
|
1462
1462
|
shape: {
|
|
1463
1463
|
borderRadius: o?.shapeOptions?.borderRadius || 4
|
|
1464
1464
|
},
|
|
1465
|
+
shadows: c,
|
|
1465
1466
|
spacing: 1,
|
|
1466
1467
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1467
1468
|
typography: l,
|
|
@@ -1469,27 +1470,27 @@ const go = (e, o) => {
|
|
|
1469
1470
|
MuiAlert: {
|
|
1470
1471
|
defaultProps: {
|
|
1471
1472
|
iconMapping: {
|
|
1472
|
-
success: /* @__PURE__ */ a(
|
|
1473
|
-
error: /* @__PURE__ */ a(
|
|
1474
|
-
warning: /* @__PURE__ */ a(
|
|
1475
|
-
info: /* @__PURE__ */ a(
|
|
1473
|
+
success: /* @__PURE__ */ a(R, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
|
|
1474
|
+
error: /* @__PURE__ */ a(R, { fill: !0, name: "error", size: 24, weight: 400 }),
|
|
1475
|
+
warning: /* @__PURE__ */ a(R, { fill: !0, name: "warning", size: 24, weight: 400 }),
|
|
1476
|
+
info: /* @__PURE__ */ a(R, { fill: !0, name: "info", size: 24, weight: 400 })
|
|
1476
1477
|
},
|
|
1477
1478
|
variant: "outlined"
|
|
1478
1479
|
},
|
|
1479
1480
|
styleOverrides: {
|
|
1480
|
-
root: ({ theme:
|
|
1481
|
-
const
|
|
1482
|
-
let
|
|
1483
|
-
if (
|
|
1484
|
-
const
|
|
1485
|
-
|
|
1481
|
+
root: ({ theme: t, ownerState: n }) => {
|
|
1482
|
+
const s = n.severity || "info";
|
|
1483
|
+
let d = t.palette.mode === y.LIGHT ? t.palette[s]?.[50] : t.palette[s]?.[800];
|
|
1484
|
+
if (n.variant === "filled") {
|
|
1485
|
+
const r = s === "warning";
|
|
1486
|
+
d = t.palette[s]?.[r ? 400 : 600];
|
|
1486
1487
|
}
|
|
1487
1488
|
return {
|
|
1488
|
-
backgroundColor:
|
|
1489
|
-
borderRadius:
|
|
1489
|
+
backgroundColor: d,
|
|
1490
|
+
borderRadius: t.shape.borderRadius,
|
|
1490
1491
|
"& .MuiAlert-message": {
|
|
1491
|
-
fontSize:
|
|
1492
|
-
lineHeight:
|
|
1492
|
+
fontSize: t.typography.subtitle1.fontSize,
|
|
1493
|
+
lineHeight: t.typography.subtitle1.lineHeight,
|
|
1493
1494
|
marginTop: "auto",
|
|
1494
1495
|
marginBottom: "auto"
|
|
1495
1496
|
},
|
|
@@ -1515,14 +1516,14 @@ const go = (e, o) => {
|
|
|
1515
1516
|
disableElevation: !0
|
|
1516
1517
|
},
|
|
1517
1518
|
styleOverrides: {
|
|
1518
|
-
root: ({ theme:
|
|
1519
|
+
root: ({ theme: t }) => ({
|
|
1519
1520
|
fontWeight: 600,
|
|
1520
1521
|
textTransform: "none",
|
|
1521
1522
|
"&.Mui-disabled": {
|
|
1522
1523
|
cursor: "not-allowed"
|
|
1523
1524
|
},
|
|
1524
1525
|
"&.Mui-focusVisible": {
|
|
1525
|
-
outline: `2px solid ${
|
|
1526
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1526
1527
|
outlineOffset: "2px"
|
|
1527
1528
|
}
|
|
1528
1529
|
}),
|
|
@@ -1559,7 +1560,7 @@ const go = (e, o) => {
|
|
|
1559
1560
|
styleOverrides: {
|
|
1560
1561
|
root: {
|
|
1561
1562
|
"&.Mui-focusVisible": {
|
|
1562
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1563
|
+
boxShadow: `inset 0 0 0 2px ${i.info.main}`
|
|
1563
1564
|
}
|
|
1564
1565
|
}
|
|
1565
1566
|
}
|
|
@@ -1588,22 +1589,22 @@ const go = (e, o) => {
|
|
|
1588
1589
|
},
|
|
1589
1590
|
MuiDataGrid: {
|
|
1590
1591
|
styleOverrides: {
|
|
1591
|
-
root: ({ theme:
|
|
1592
|
+
root: ({ theme: t }) => ({
|
|
1592
1593
|
border: "none",
|
|
1593
1594
|
borderRadius: 0,
|
|
1594
|
-
fontSize:
|
|
1595
|
+
fontSize: t.typography.body2.fontSize,
|
|
1595
1596
|
"& .MuiDataGrid-cell": {
|
|
1596
1597
|
display: "flex",
|
|
1597
1598
|
alignItems: "center",
|
|
1598
1599
|
borderTop: "1px solid",
|
|
1599
|
-
borderColor:
|
|
1600
|
+
borderColor: t.palette.background.highlight
|
|
1600
1601
|
},
|
|
1601
1602
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1602
1603
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1603
1604
|
"& .MuiDataGrid-columnHeaders": {
|
|
1604
|
-
backgroundColor:
|
|
1605
|
+
backgroundColor: t.palette.background.paper,
|
|
1605
1606
|
borderBottom: "2px solid",
|
|
1606
|
-
borderColor:
|
|
1607
|
+
borderColor: t.palette.divider
|
|
1607
1608
|
},
|
|
1608
1609
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1609
1610
|
fontWeight: 600
|
|
@@ -1621,42 +1622,42 @@ const go = (e, o) => {
|
|
|
1621
1622
|
},
|
|
1622
1623
|
MuiDateRangePickerDay: {
|
|
1623
1624
|
styleOverrides: {
|
|
1624
|
-
root: ({ theme:
|
|
1625
|
+
root: ({ theme: t }) => ({
|
|
1625
1626
|
":first-of-type": {
|
|
1626
|
-
borderTopLeftRadius:
|
|
1627
|
-
borderBottomLeftRadius:
|
|
1627
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1628
|
+
borderBottomLeftRadius: t.shape.borderRadius,
|
|
1628
1629
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1629
|
-
borderTopLeftRadius:
|
|
1630
|
-
borderBottomLeftRadius:
|
|
1630
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1631
|
+
borderBottomLeftRadius: t.shape.borderRadius
|
|
1631
1632
|
}
|
|
1632
1633
|
},
|
|
1633
1634
|
":last-of-type": {
|
|
1634
|
-
borderTopRightRadius:
|
|
1635
|
-
borderBottomRightRadius:
|
|
1635
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1636
|
+
borderBottomRightRadius: t.shape.borderRadius,
|
|
1636
1637
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1637
|
-
borderTopRightRadius:
|
|
1638
|
-
borderBottomRightRadius:
|
|
1638
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1639
|
+
borderBottomRightRadius: t.shape.borderRadius
|
|
1639
1640
|
}
|
|
1640
1641
|
},
|
|
1641
1642
|
"& .Mui-selected": {
|
|
1642
|
-
borderRadius:
|
|
1643
|
+
borderRadius: t.shape.borderRadius
|
|
1643
1644
|
},
|
|
1644
1645
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1645
|
-
color:
|
|
1646
|
+
color: t.palette.action.disabled
|
|
1646
1647
|
}
|
|
1647
1648
|
}),
|
|
1648
|
-
day: ({ theme:
|
|
1649
|
-
borderRadius:
|
|
1649
|
+
day: ({ theme: t }) => ({
|
|
1650
|
+
borderRadius: t.shape.borderRadius
|
|
1650
1651
|
}),
|
|
1651
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1652
|
-
borderRadius:
|
|
1652
|
+
rangeIntervalDayPreview: ({ theme: t }) => ({
|
|
1653
|
+
borderRadius: t.shape.borderRadius
|
|
1653
1654
|
})
|
|
1654
1655
|
}
|
|
1655
1656
|
},
|
|
1656
1657
|
MuiDayCalendar: {
|
|
1657
1658
|
styleOverrides: {
|
|
1658
|
-
weekDayLabel: ({ theme:
|
|
1659
|
-
fontSize:
|
|
1659
|
+
weekDayLabel: ({ theme: t }) => ({
|
|
1660
|
+
fontSize: t.typography.body2.fontSize,
|
|
1660
1661
|
fontWeight: 700
|
|
1661
1662
|
})
|
|
1662
1663
|
}
|
|
@@ -1698,14 +1699,14 @@ const go = (e, o) => {
|
|
|
1698
1699
|
},
|
|
1699
1700
|
MuiFormHelperText: {
|
|
1700
1701
|
styleOverrides: {
|
|
1701
|
-
root: ({ theme:
|
|
1702
|
+
root: ({ theme: t }) => ({
|
|
1702
1703
|
fontSize: 13,
|
|
1703
1704
|
// Small
|
|
1704
1705
|
marginLeft: 0,
|
|
1705
1706
|
display: "flex",
|
|
1706
1707
|
alignItems: "center",
|
|
1707
1708
|
position: "relative",
|
|
1708
|
-
color:
|
|
1709
|
+
color: t.palette.text.secondary,
|
|
1709
1710
|
"& .MuiSvgIcon-root": {
|
|
1710
1711
|
height: "16px",
|
|
1711
1712
|
width: "16px",
|
|
@@ -1721,7 +1722,7 @@ const go = (e, o) => {
|
|
|
1721
1722
|
MuiFormLabel: {
|
|
1722
1723
|
styleOverrides: {
|
|
1723
1724
|
asterisk: {
|
|
1724
|
-
color:
|
|
1725
|
+
color: i.error.main
|
|
1725
1726
|
}
|
|
1726
1727
|
}
|
|
1727
1728
|
},
|
|
@@ -1736,19 +1737,19 @@ const go = (e, o) => {
|
|
|
1736
1737
|
disableFocusRipple: !0
|
|
1737
1738
|
},
|
|
1738
1739
|
styleOverrides: {
|
|
1739
|
-
root: ({ theme:
|
|
1740
|
-
borderRadius:
|
|
1740
|
+
root: ({ theme: t }) => ({
|
|
1741
|
+
borderRadius: t.shape.borderRadius,
|
|
1741
1742
|
minHeight: 44,
|
|
1742
1743
|
// touch target
|
|
1743
1744
|
minWidth: 44,
|
|
1744
1745
|
// touch target
|
|
1745
1746
|
"&.Mui-focusVisible": {
|
|
1746
|
-
outline: `2px solid ${
|
|
1747
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1747
1748
|
outlineOffset: "2px"
|
|
1748
1749
|
},
|
|
1749
1750
|
"& .MuiTouchRipple-root": {
|
|
1750
1751
|
"& .MuiTouchRipple-child": {
|
|
1751
|
-
borderRadius:
|
|
1752
|
+
borderRadius: t.shape.borderRadius
|
|
1752
1753
|
}
|
|
1753
1754
|
}
|
|
1754
1755
|
})
|
|
@@ -1769,13 +1770,13 @@ const go = (e, o) => {
|
|
|
1769
1770
|
borderRadius: 4
|
|
1770
1771
|
},
|
|
1771
1772
|
colorPrimary: {
|
|
1772
|
-
backgroundColor:
|
|
1773
|
+
backgroundColor: i.grey[300]
|
|
1773
1774
|
}
|
|
1774
1775
|
}
|
|
1775
1776
|
},
|
|
1776
1777
|
MuiLink: {
|
|
1777
1778
|
styleOverrides: {
|
|
1778
|
-
root: ({ theme:
|
|
1779
|
+
root: ({ theme: t, color: n }) => ({
|
|
1779
1780
|
cursor: "pointer",
|
|
1780
1781
|
fontWeight: 600,
|
|
1781
1782
|
textDecoration: "none",
|
|
@@ -1787,10 +1788,10 @@ const go = (e, o) => {
|
|
|
1787
1788
|
outlineOffset: "2px"
|
|
1788
1789
|
},
|
|
1789
1790
|
"&:hover": {
|
|
1790
|
-
backgroundColor:
|
|
1791
|
+
backgroundColor: t.palette.action.hover
|
|
1791
1792
|
},
|
|
1792
1793
|
"&:active": {
|
|
1793
|
-
backgroundColor:
|
|
1794
|
+
backgroundColor: t.palette.mode === y.LIGHT ? t.palette[n].light : t.palette[n].dark
|
|
1794
1795
|
}
|
|
1795
1796
|
})
|
|
1796
1797
|
}
|
|
@@ -1817,9 +1818,9 @@ const go = (e, o) => {
|
|
|
1817
1818
|
disablePadding: !0
|
|
1818
1819
|
},
|
|
1819
1820
|
styleOverrides: {
|
|
1820
|
-
root: ({ ownerState:
|
|
1821
|
+
root: ({ ownerState: t }) => ({
|
|
1821
1822
|
minHeight: 64,
|
|
1822
|
-
...!
|
|
1823
|
+
...!t.disablePadding && {
|
|
1823
1824
|
paddingTop: 12,
|
|
1824
1825
|
paddingBottom: 12,
|
|
1825
1826
|
paddingLeft: 24
|
|
@@ -1843,7 +1844,7 @@ const go = (e, o) => {
|
|
|
1843
1844
|
},
|
|
1844
1845
|
MuiListItemButton: {
|
|
1845
1846
|
styleOverrides: {
|
|
1846
|
-
root: ({ theme:
|
|
1847
|
+
root: ({ theme: t }) => ({
|
|
1847
1848
|
minHeight: 64,
|
|
1848
1849
|
paddingLeft: 24,
|
|
1849
1850
|
paddingRight: 24,
|
|
@@ -1852,7 +1853,7 @@ const go = (e, o) => {
|
|
|
1852
1853
|
"&.Mui-focusVisible": {
|
|
1853
1854
|
backgroundColor: "transparent",
|
|
1854
1855
|
borderRadius: 8,
|
|
1855
|
-
outline: `2px solid ${
|
|
1856
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1856
1857
|
outlineOffset: -2
|
|
1857
1858
|
}
|
|
1858
1859
|
})
|
|
@@ -1874,7 +1875,7 @@ const go = (e, o) => {
|
|
|
1874
1875
|
},
|
|
1875
1876
|
secondaryTypographyProps: {
|
|
1876
1877
|
fontSize: 11,
|
|
1877
|
-
color:
|
|
1878
|
+
color: i.text.secondary
|
|
1878
1879
|
}
|
|
1879
1880
|
},
|
|
1880
1881
|
styleOverrides: {
|
|
@@ -1894,7 +1895,7 @@ const go = (e, o) => {
|
|
|
1894
1895
|
lineHeight: "inherit",
|
|
1895
1896
|
top: -1,
|
|
1896
1897
|
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1897
|
-
backgroundColor:
|
|
1898
|
+
backgroundColor: i.background.default
|
|
1898
1899
|
}
|
|
1899
1900
|
}
|
|
1900
1901
|
},
|
|
@@ -1977,11 +1978,11 @@ const go = (e, o) => {
|
|
|
1977
1978
|
},
|
|
1978
1979
|
MuiPickersToolbar: {
|
|
1979
1980
|
styleOverrides: {
|
|
1980
|
-
content: ({ theme:
|
|
1981
|
+
content: ({ theme: t }) => ({
|
|
1981
1982
|
marginTop: 4,
|
|
1982
1983
|
"& .MuiTypography-root": {
|
|
1983
|
-
fontSize:
|
|
1984
|
-
lineHeight:
|
|
1984
|
+
fontSize: t.typography.h3.fontSize,
|
|
1985
|
+
lineHeight: t.typography.h3.lineHeight
|
|
1985
1986
|
}
|
|
1986
1987
|
})
|
|
1987
1988
|
}
|
|
@@ -2007,7 +2008,7 @@ const go = (e, o) => {
|
|
|
2007
2008
|
disableFocusRipple: !0
|
|
2008
2009
|
},
|
|
2009
2010
|
styleOverrides: {
|
|
2010
|
-
root: ({ theme:
|
|
2011
|
+
root: ({ theme: t }) => ({
|
|
2011
2012
|
width: 37,
|
|
2012
2013
|
height: 20,
|
|
2013
2014
|
padding: 0,
|
|
@@ -2018,7 +2019,7 @@ const go = (e, o) => {
|
|
|
2018
2019
|
"&.Mui-checked": {
|
|
2019
2020
|
transform: "translateX(16px)",
|
|
2020
2021
|
"& + .MuiSwitch-track": {
|
|
2021
|
-
backgroundColor:
|
|
2022
|
+
backgroundColor: t.palette.success.main,
|
|
2022
2023
|
opacity: 1,
|
|
2023
2024
|
border: 0
|
|
2024
2025
|
},
|
|
@@ -2027,27 +2028,27 @@ const go = (e, o) => {
|
|
|
2027
2028
|
}
|
|
2028
2029
|
},
|
|
2029
2030
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
2030
|
-
color:
|
|
2031
|
+
color: t.palette.common.white
|
|
2031
2032
|
},
|
|
2032
2033
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
2033
|
-
backgroundColor:
|
|
2034
|
+
backgroundColor: t.palette.action.disabledBackground,
|
|
2034
2035
|
opacity: 1
|
|
2035
2036
|
}
|
|
2036
2037
|
},
|
|
2037
2038
|
"& .MuiSwitch-input": {
|
|
2038
2039
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
2039
|
-
outline: `2px solid ${
|
|
2040
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
2040
2041
|
outlineOffset: 0
|
|
2041
2042
|
}
|
|
2042
2043
|
},
|
|
2043
2044
|
"& .MuiSwitch-thumb": {
|
|
2044
2045
|
boxSizing: "border-box",
|
|
2045
|
-
backgroundColor:
|
|
2046
|
+
backgroundColor: t.palette.background.paper,
|
|
2046
2047
|
width: 16,
|
|
2047
2048
|
height: 16
|
|
2048
2049
|
},
|
|
2049
2050
|
"& .MuiSwitch-track": {
|
|
2050
|
-
backgroundColor:
|
|
2051
|
+
backgroundColor: t.palette.action.active,
|
|
2051
2052
|
borderRadius: 20 / 2,
|
|
2052
2053
|
opacity: 1
|
|
2053
2054
|
}
|
|
@@ -2064,7 +2065,7 @@ const go = (e, o) => {
|
|
|
2064
2065
|
fontWeight: 600,
|
|
2065
2066
|
"&.Mui-focusVisible": {
|
|
2066
2067
|
outline: "none",
|
|
2067
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
2068
|
+
boxShadow: `inset 0 0 0 2px ${i.info.main}`,
|
|
2068
2069
|
borderRadius: 4
|
|
2069
2070
|
}
|
|
2070
2071
|
}
|
|
@@ -2075,7 +2076,7 @@ const go = (e, o) => {
|
|
|
2075
2076
|
root: {
|
|
2076
2077
|
borderBottomStyle: "solid",
|
|
2077
2078
|
borderBottomWidth: 1,
|
|
2078
|
-
borderColor:
|
|
2079
|
+
borderColor: i.divider,
|
|
2079
2080
|
marginBottom: 8
|
|
2080
2081
|
}
|
|
2081
2082
|
}
|
|
@@ -2089,7 +2090,7 @@ const go = (e, o) => {
|
|
|
2089
2090
|
},
|
|
2090
2091
|
styleOverrides: {
|
|
2091
2092
|
root: {
|
|
2092
|
-
backgroundColor:
|
|
2093
|
+
backgroundColor: i.background.paper
|
|
2093
2094
|
}
|
|
2094
2095
|
}
|
|
2095
2096
|
},
|
|
@@ -2099,53 +2100,56 @@ const go = (e, o) => {
|
|
|
2099
2100
|
disableFocusRipple: !0
|
|
2100
2101
|
},
|
|
2101
2102
|
styleOverrides: {
|
|
2102
|
-
root: {
|
|
2103
|
-
color: t.text.primary,
|
|
2103
|
+
root: ({ theme: t }) => ({
|
|
2104
|
+
color: t.palette.text.primary,
|
|
2104
2105
|
fontSize: 13,
|
|
2105
2106
|
lineHeight: "16px",
|
|
2106
2107
|
textTransform: "none",
|
|
2107
2108
|
"&:focus-visible": {
|
|
2108
|
-
outline: `2px solid ${t.info.main}`,
|
|
2109
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
2109
2110
|
outlineOffset: "2px"
|
|
2110
2111
|
},
|
|
2111
2112
|
"&:hover": {
|
|
2112
|
-
backgroundColor: b(
|
|
2113
|
-
|
|
2113
|
+
backgroundColor: b(
|
|
2114
|
+
t.palette.primary.main,
|
|
2115
|
+
t.palette.mode === y.LIGHT ? 0.1 : 0.2
|
|
2116
|
+
),
|
|
2117
|
+
borderColor: t.palette.primary.main
|
|
2114
2118
|
},
|
|
2115
2119
|
"&.Mui-selected": {
|
|
2116
2120
|
fontWeight: 600,
|
|
2117
|
-
borderColor: t.primary.main,
|
|
2121
|
+
borderColor: t.palette.primary.main,
|
|
2118
2122
|
"&:hover": {
|
|
2119
|
-
boxShadow: `inset 0px 0px 0px 2px ${t.primary.main}`
|
|
2123
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
|
|
2120
2124
|
}
|
|
2121
2125
|
},
|
|
2122
2126
|
"& .MuiTouchRipple-root": {
|
|
2123
2127
|
"& .MuiTouchRipple-ripple": {
|
|
2124
2128
|
"& .MuiTouchRipple-child": {
|
|
2125
|
-
backgroundColor: t.primary.main
|
|
2129
|
+
backgroundColor: t.palette.primary.main
|
|
2126
2130
|
}
|
|
2127
2131
|
}
|
|
2128
2132
|
}
|
|
2129
|
-
}
|
|
2133
|
+
})
|
|
2130
2134
|
},
|
|
2131
2135
|
variants: [
|
|
2132
2136
|
{
|
|
2133
2137
|
props: { color: "error" },
|
|
2134
2138
|
style: {
|
|
2135
2139
|
"&:hover": {
|
|
2136
|
-
backgroundColor: b(
|
|
2137
|
-
borderColor:
|
|
2140
|
+
backgroundColor: b(i.error.main, i.mode === y.LIGHT ? 0.1 : 0.2),
|
|
2141
|
+
borderColor: i.error.main
|
|
2138
2142
|
},
|
|
2139
2143
|
"&.Mui-selected": {
|
|
2140
|
-
borderColor:
|
|
2144
|
+
borderColor: i.error.main,
|
|
2141
2145
|
"&:hover": {
|
|
2142
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
2146
|
+
boxShadow: `inset 0px 0px 0px 2px ${i.error.main}`
|
|
2143
2147
|
}
|
|
2144
2148
|
},
|
|
2145
2149
|
"& .MuiTouchRipple-root": {
|
|
2146
2150
|
"& .MuiTouchRipple-ripple": {
|
|
2147
2151
|
"& .MuiTouchRipple-child": {
|
|
2148
|
-
backgroundColor:
|
|
2152
|
+
backgroundColor: i.error.main
|
|
2149
2153
|
}
|
|
2150
2154
|
}
|
|
2151
2155
|
}
|
|
@@ -2156,21 +2160,21 @@ const go = (e, o) => {
|
|
|
2156
2160
|
style: {
|
|
2157
2161
|
"&:hover": {
|
|
2158
2162
|
backgroundColor: b(
|
|
2159
|
-
|
|
2160
|
-
|
|
2163
|
+
i.secondary.main,
|
|
2164
|
+
i.mode === y.LIGHT ? 0.1 : 0.2
|
|
2161
2165
|
),
|
|
2162
|
-
borderColor:
|
|
2166
|
+
borderColor: i.secondary.main
|
|
2163
2167
|
},
|
|
2164
2168
|
"&.Mui-selected": {
|
|
2165
|
-
borderColor:
|
|
2169
|
+
borderColor: i.secondary.main,
|
|
2166
2170
|
"&:hover": {
|
|
2167
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
2171
|
+
boxShadow: `inset 0px 0px 0px 2px ${i.secondary.main}`
|
|
2168
2172
|
}
|
|
2169
2173
|
},
|
|
2170
2174
|
"& .MuiTouchRipple-root": {
|
|
2171
2175
|
"& .MuiTouchRipple-ripple": {
|
|
2172
2176
|
"& .MuiTouchRipple-child": {
|
|
2173
|
-
backgroundColor:
|
|
2177
|
+
backgroundColor: i.secondary.main
|
|
2174
2178
|
}
|
|
2175
2179
|
}
|
|
2176
2180
|
}
|
|
@@ -2222,10 +2226,10 @@ export {
|
|
|
2222
2226
|
We as Footer,
|
|
2223
2227
|
Ze as H1,
|
|
2224
2228
|
oo as H2,
|
|
2225
|
-
|
|
2229
|
+
to as H3,
|
|
2226
2230
|
Y0 as HeartIcon,
|
|
2227
2231
|
e0 as INTER,
|
|
2228
|
-
|
|
2232
|
+
R as Icon,
|
|
2229
2233
|
Pe as IconWeight,
|
|
2230
2234
|
no as InstitutionLogo,
|
|
2231
2235
|
j0 as MXLogoCopyrightIcon,
|
|
@@ -2233,7 +2237,7 @@ export {
|
|
|
2233
2237
|
X0 as MXLogoIcon,
|
|
2234
2238
|
J0 as MXLogoOutlineIcon,
|
|
2235
2239
|
lo as MerchantLogo,
|
|
2236
|
-
|
|
2240
|
+
ro as P,
|
|
2237
2241
|
ho as SelectionBox,
|
|
2238
2242
|
O as TARGETS,
|
|
2239
2243
|
N as THEMES,
|