@mxenabled/mxui 1.5.13 → 1.5.15-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/dist/index.es.js +212 -196
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -17,8 +17,8 @@ import { AdapterDateFns as Ce } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
|
|
|
17
17
|
import { MultiInputDateRangeField as xe } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
18
18
|
import j from "@mui/material/Box";
|
|
19
19
|
import Re from "@mui/material/ToggleButton";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
20
|
+
import Me from "@mui/material/ToggleButtonGroup";
|
|
21
|
+
import Ae from "@mui/material/MenuItem";
|
|
22
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
24
|
import J from "@mui/material/Slide";
|
|
@@ -58,7 +58,7 @@ const R = ({
|
|
|
58
58
|
name: i,
|
|
59
59
|
size: l = 20,
|
|
60
60
|
sx: c,
|
|
61
|
-
weight:
|
|
61
|
+
weight: r = 300,
|
|
62
62
|
...n
|
|
63
63
|
}) => /* @__PURE__ */ a(
|
|
64
64
|
se,
|
|
@@ -68,7 +68,7 @@ const R = ({
|
|
|
68
68
|
name: i,
|
|
69
69
|
size: l,
|
|
70
70
|
sx: c,
|
|
71
|
-
weight:
|
|
71
|
+
weight: r,
|
|
72
72
|
...n
|
|
73
73
|
}
|
|
74
74
|
), w0 = ({
|
|
@@ -397,10 +397,10 @@ const oe = {
|
|
|
397
397
|
sx: l = {},
|
|
398
398
|
variant: c = "filled"
|
|
399
399
|
}) => {
|
|
400
|
-
const
|
|
400
|
+
const r = H(), n = x.useMemo(
|
|
401
401
|
() => Be.find((m) => m.guid === e) ?? oe,
|
|
402
402
|
[e]
|
|
403
|
-
), s =
|
|
403
|
+
), s = r.palette.categories[n.colorName];
|
|
404
404
|
return /* @__PURE__ */ a(
|
|
405
405
|
I,
|
|
406
406
|
{
|
|
@@ -411,8 +411,8 @@ const oe = {
|
|
|
411
411
|
},
|
|
412
412
|
borderRadius: 1,
|
|
413
413
|
color: () => {
|
|
414
|
-
const m = c === "filled" ?
|
|
415
|
-
return c === "basic" ?
|
|
414
|
+
const m = c === "filled" ? r.palette.common.white : s;
|
|
415
|
+
return c === "basic" ? r.palette.text.primary : m;
|
|
416
416
|
},
|
|
417
417
|
height: i,
|
|
418
418
|
justifyContent: "center",
|
|
@@ -427,7 +427,7 @@ const oe = {
|
|
|
427
427
|
isValid: i,
|
|
428
428
|
selected: l
|
|
429
429
|
}) => {
|
|
430
|
-
const c = H(),
|
|
430
|
+
const c = H(), r = e?.map((n) => {
|
|
431
431
|
const s = n.getValue({ isValid: i });
|
|
432
432
|
return {
|
|
433
433
|
label: n.label,
|
|
@@ -437,7 +437,7 @@ const oe = {
|
|
|
437
437
|
disabled: !i(s)
|
|
438
438
|
};
|
|
439
439
|
});
|
|
440
|
-
return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(
|
|
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: r?.map((n) => /* @__PURE__ */ a(
|
|
441
441
|
Re,
|
|
442
442
|
{
|
|
443
443
|
onClick: n.onClick,
|
|
@@ -472,7 +472,7 @@ const oe = {
|
|
|
472
472
|
selected: l,
|
|
473
473
|
selectLabel: c
|
|
474
474
|
}) => {
|
|
475
|
-
const
|
|
475
|
+
const r = e?.map((n) => {
|
|
476
476
|
const s = n.getValue({ isValid: i });
|
|
477
477
|
return {
|
|
478
478
|
label: n.label,
|
|
@@ -496,7 +496,7 @@ const oe = {
|
|
|
496
496
|
sx: { width: "100%" },
|
|
497
497
|
value: l,
|
|
498
498
|
variant: "outlined",
|
|
499
|
-
children:
|
|
499
|
+
children: r?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
500
500
|
}
|
|
501
501
|
) });
|
|
502
502
|
}, Ue = (e) => {
|
|
@@ -535,12 +535,12 @@ const oe = {
|
|
|
535
535
|
selectedShortcut: l = e.dateRangeThisMonth,
|
|
536
536
|
sx: c = {}
|
|
537
537
|
}) => {
|
|
538
|
-
const
|
|
539
|
-
const
|
|
538
|
+
const r = H(), n = fe(r.breakpoints.down("sm")), s = x.useMemo(() => {
|
|
539
|
+
const t = he(), m = ge(t, 1), C = me(t, 1);
|
|
540
540
|
return [
|
|
541
541
|
{
|
|
542
542
|
label: e.dateRangeThisMonth,
|
|
543
|
-
getValue: () => [Z(
|
|
543
|
+
getValue: () => [Z(t), W(t)]
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
label: e.dateRangeLastMonth,
|
|
@@ -548,15 +548,15 @@ const oe = {
|
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
550
|
label: e.dateRangeLast30Days,
|
|
551
|
-
getValue: () => [Y(
|
|
551
|
+
getValue: () => [Y(t, 30), t]
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
label: e.dateRangeLast90Days,
|
|
555
|
-
getValue: () => [Y(
|
|
555
|
+
getValue: () => [Y(t, 90), t]
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
label: e.dateRangeYTD,
|
|
559
|
-
getValue: () => [K(
|
|
559
|
+
getValue: () => [K(t), t]
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
562
|
label: e.dateRangeLastYear,
|
|
@@ -564,12 +564,12 @@ const oe = {
|
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
label: e.dateRangeCustom,
|
|
567
|
-
getValue: () => [
|
|
567
|
+
getValue: () => [t, t]
|
|
568
568
|
}
|
|
569
569
|
];
|
|
570
|
-
}, [e]), d = (
|
|
570
|
+
}, [e]), d = (t, m) => {
|
|
571
571
|
const C = m.shortcut;
|
|
572
|
-
i?.(
|
|
572
|
+
i?.(t, 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,
|
|
@@ -584,6 +584,14 @@ const oe = {
|
|
|
584
584
|
showDaysOutsideCurrentMonth: !0,
|
|
585
585
|
slotProps: {
|
|
586
586
|
actionBar: { actions: [] },
|
|
587
|
+
layout: {
|
|
588
|
+
sx: {
|
|
589
|
+
"& .MuiPickersLayout-toolbar": {
|
|
590
|
+
gridColumn: "1/4",
|
|
591
|
+
gridRow: 1
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
},
|
|
587
595
|
shortcuts: {
|
|
588
596
|
items: s
|
|
589
597
|
},
|
|
@@ -594,21 +602,21 @@ const oe = {
|
|
|
594
602
|
slots: {
|
|
595
603
|
...n && { layout: Ue },
|
|
596
604
|
leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
|
|
597
|
-
shortcuts: (
|
|
605
|
+
shortcuts: (t) => n ? /* @__PURE__ */ a(
|
|
598
606
|
$e,
|
|
599
607
|
{
|
|
600
608
|
selectLabel: e.dateRangeSelectARange,
|
|
601
609
|
selected: l,
|
|
602
|
-
...
|
|
610
|
+
...t
|
|
603
611
|
}
|
|
604
|
-
) : /* @__PURE__ */ a(Ge, { selected: l, ...
|
|
612
|
+
) : /* @__PURE__ */ a(Ge, { selected: l, ...t }),
|
|
605
613
|
rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
|
|
606
614
|
...n && {
|
|
607
|
-
toolbar: (
|
|
615
|
+
toolbar: (t) => /* @__PURE__ */ a(
|
|
608
616
|
xe,
|
|
609
617
|
{
|
|
610
618
|
dateSeparator: "",
|
|
611
|
-
...
|
|
619
|
+
...t,
|
|
612
620
|
slotProps: {
|
|
613
621
|
textField: ({ position: m }) => ({
|
|
614
622
|
label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
@@ -631,7 +639,7 @@ const oe = {
|
|
|
631
639
|
onPrimaryAction: i,
|
|
632
640
|
onSecondaryAction: l,
|
|
633
641
|
primaryColor: c = "primary",
|
|
634
|
-
primaryText:
|
|
642
|
+
primaryText: r = "Save",
|
|
635
643
|
secondaryColor: n = "primary",
|
|
636
644
|
secondaryText: s = "Cancel"
|
|
637
645
|
}) => /* @__PURE__ */ T(
|
|
@@ -658,7 +666,7 @@ const oe = {
|
|
|
658
666
|
disabled: o,
|
|
659
667
|
onClick: i,
|
|
660
668
|
variant: "contained",
|
|
661
|
-
children:
|
|
669
|
+
children: r
|
|
662
670
|
}
|
|
663
671
|
)
|
|
664
672
|
]
|
|
@@ -669,7 +677,7 @@ const oe = {
|
|
|
669
677
|
children: i,
|
|
670
678
|
color: l,
|
|
671
679
|
sx: c = {},
|
|
672
|
-
truncate:
|
|
680
|
+
truncate: r = !0,
|
|
673
681
|
uppercase: n,
|
|
674
682
|
...s
|
|
675
683
|
}) => {
|
|
@@ -714,7 +722,7 @@ const oe = {
|
|
|
714
722
|
e ? {
|
|
715
723
|
fontWeight: 600
|
|
716
724
|
} : {},
|
|
717
|
-
|
|
725
|
+
r ? {
|
|
718
726
|
overflow: "hidden",
|
|
719
727
|
textOverflow: "ellipsis",
|
|
720
728
|
whiteSpace: "nowrap"
|
|
@@ -728,7 +736,7 @@ const oe = {
|
|
|
728
736
|
children: i
|
|
729
737
|
}
|
|
730
738
|
);
|
|
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 }),
|
|
739
|
+
}, 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 }), ro = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), to = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
|
|
732
740
|
k,
|
|
733
741
|
{
|
|
734
742
|
className: `mx-kmui-text p ${e}`,
|
|
@@ -759,11 +767,11 @@ const oe = {
|
|
|
759
767
|
id: i,
|
|
760
768
|
isOpen: l,
|
|
761
769
|
onClose: c,
|
|
762
|
-
onSave:
|
|
770
|
+
onSave: r,
|
|
763
771
|
primaryText: n,
|
|
764
772
|
secondaryText: s,
|
|
765
773
|
children: d,
|
|
766
|
-
...
|
|
774
|
+
...t
|
|
767
775
|
}) => /* @__PURE__ */ T(
|
|
768
776
|
ve,
|
|
769
777
|
{
|
|
@@ -773,14 +781,14 @@ const oe = {
|
|
|
773
781
|
onClose: c,
|
|
774
782
|
open: l,
|
|
775
783
|
variant: "temporary",
|
|
776
|
-
...
|
|
784
|
+
...t,
|
|
777
785
|
children: [
|
|
778
786
|
d,
|
|
779
|
-
|
|
787
|
+
r && /* @__PURE__ */ a(
|
|
780
788
|
We,
|
|
781
789
|
{
|
|
782
790
|
isPrimaryDisabled: o,
|
|
783
|
-
onPrimaryAction:
|
|
791
|
+
onPrimaryAction: r,
|
|
784
792
|
onSecondaryAction: c,
|
|
785
793
|
primaryText: n,
|
|
786
794
|
secondaryText: s
|
|
@@ -788,18 +796,18 @@ const oe = {
|
|
|
788
796
|
)
|
|
789
797
|
]
|
|
790
798
|
}
|
|
791
|
-
),
|
|
799
|
+
), re = 32, $ = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${$}/serenity/default_institution_logo.png`, no = ({
|
|
792
800
|
alt: e,
|
|
793
801
|
institutionGuid: o,
|
|
794
802
|
logoUrl: i,
|
|
795
|
-
size: l =
|
|
803
|
+
size: l = re,
|
|
796
804
|
...c
|
|
797
805
|
}) => /* @__PURE__ */ a(
|
|
798
806
|
"img",
|
|
799
807
|
{
|
|
800
808
|
alt: e,
|
|
801
809
|
height: l,
|
|
802
|
-
onError: (
|
|
810
|
+
onError: (r) => r.target.src = Ke,
|
|
803
811
|
src: i || `${$}/Ipad%20Logos/100x100/${o}_100x100.png`,
|
|
804
812
|
style: {
|
|
805
813
|
borderRadius: 4
|
|
@@ -811,12 +819,12 @@ const oe = {
|
|
|
811
819
|
alt: e = "",
|
|
812
820
|
categoryGuid: o,
|
|
813
821
|
merchantGuid: i,
|
|
814
|
-
size: l =
|
|
822
|
+
size: l = re,
|
|
815
823
|
...c
|
|
816
824
|
}) => {
|
|
817
|
-
const [
|
|
825
|
+
const [r, n] = x.useState(!1), s = H();
|
|
818
826
|
return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
|
|
819
|
-
i && !
|
|
827
|
+
i && !r && /* @__PURE__ */ a(
|
|
820
828
|
"img",
|
|
821
829
|
{
|
|
822
830
|
alt: e,
|
|
@@ -862,14 +870,14 @@ const so = ({
|
|
|
862
870
|
closeAriaLabel: i,
|
|
863
871
|
message: l,
|
|
864
872
|
autoHideDuration: c = 3e3,
|
|
865
|
-
severity:
|
|
873
|
+
severity: r = "success",
|
|
866
874
|
snackbarSx: n,
|
|
867
875
|
showAction: s = !1,
|
|
868
876
|
showClose: d = !1,
|
|
869
|
-
actionText:
|
|
877
|
+
actionText: t = "Undo",
|
|
870
878
|
onActionClick: m
|
|
871
879
|
}) => {
|
|
872
|
-
const C = H(), O = d && /* @__PURE__ */ a(q, { "aria-label": i, color: "inherit", onClick: o, size: "small", children: /* @__PURE__ */ a(R, { fill: !0, name: "close" }) }), g = `${
|
|
880
|
+
const C = H(), O = d && /* @__PURE__ */ a(q, { "aria-label": i, color: "inherit", onClick: o, size: "small", children: /* @__PURE__ */ a(R, { fill: !0, name: "close" }) }), g = `${r}.main`;
|
|
873
881
|
return /* @__PURE__ */ a(
|
|
874
882
|
He,
|
|
875
883
|
{
|
|
@@ -888,7 +896,7 @@ const so = ({
|
|
|
888
896
|
Le,
|
|
889
897
|
{
|
|
890
898
|
action: O,
|
|
891
|
-
severity:
|
|
899
|
+
severity: r,
|
|
892
900
|
sx: {
|
|
893
901
|
backgroundColor: g,
|
|
894
902
|
display: "flex",
|
|
@@ -943,7 +951,7 @@ const so = ({
|
|
|
943
951
|
minWidth: "auto",
|
|
944
952
|
justifyContent: "flex-start"
|
|
945
953
|
},
|
|
946
|
-
children:
|
|
954
|
+
children: t
|
|
947
955
|
}
|
|
948
956
|
)
|
|
949
957
|
]
|
|
@@ -960,7 +968,7 @@ const so = ({
|
|
|
960
968
|
}, N = {
|
|
961
969
|
LIGHT: "light",
|
|
962
970
|
DARK: "dark"
|
|
963
|
-
},
|
|
971
|
+
}, te = x.createContext(ee), ie = x.createContext(
|
|
964
972
|
G(N.LIGHT, F.REACT_NATIVE)
|
|
965
973
|
), uo = ({
|
|
966
974
|
children: e,
|
|
@@ -968,15 +976,15 @@ const so = ({
|
|
|
968
976
|
theme: i = N.LIGHT,
|
|
969
977
|
tokenOverrides: l
|
|
970
978
|
}) => {
|
|
971
|
-
const [c,
|
|
979
|
+
const [c, r] = x.useState(i === N.LIGHT ? ee : Fe), n = x.useMemo(() => ({
|
|
972
980
|
...l
|
|
973
981
|
}), [l]);
|
|
974
982
|
return x.useEffect(() => {
|
|
975
983
|
const s = G(i, o, { ...n });
|
|
976
|
-
|
|
977
|
-
}, [i, o, n]), o === F.REACT ? /* @__PURE__ */ a(
|
|
984
|
+
r(s);
|
|
985
|
+
}, [i, o, n]), o === F.REACT ? /* @__PURE__ */ a(te.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
|
|
978
986
|
}, po = (e = F.REACT, o = {}) => {
|
|
979
|
-
const i = e === F.REACT ?
|
|
987
|
+
const i = e === F.REACT ? te : ie, l = x.useContext(i);
|
|
980
988
|
return l || G(N.LIGHT, e, { ...o });
|
|
981
989
|
}, ho = ({
|
|
982
990
|
component: e = B,
|
|
@@ -984,16 +992,16 @@ const so = ({
|
|
|
984
992
|
selected: i,
|
|
985
993
|
onChange: l,
|
|
986
994
|
headline: c,
|
|
987
|
-
message:
|
|
995
|
+
message: r,
|
|
988
996
|
name: n,
|
|
989
997
|
value: s,
|
|
990
998
|
disabled: d = !1,
|
|
991
|
-
error:
|
|
999
|
+
error: t = !1,
|
|
992
1000
|
icon: m = !1,
|
|
993
1001
|
sx: C = {},
|
|
994
1002
|
...O
|
|
995
1003
|
}) => {
|
|
996
|
-
const g = H(), ae = () => g.palette.background.paper, w = () =>
|
|
1004
|
+
const g = H(), ae = () => g.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : g.shadows[1], ne = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.3);
|
|
997
1005
|
return /* @__PURE__ */ a(
|
|
998
1006
|
ke,
|
|
999
1007
|
{
|
|
@@ -1034,7 +1042,7 @@ const so = ({
|
|
|
1034
1042
|
m && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
|
|
1035
1043
|
/* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
1036
1044
|
c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
|
|
1037
|
-
/* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children:
|
|
1045
|
+
/* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
|
|
1038
1046
|
] })
|
|
1039
1047
|
] }),
|
|
1040
1048
|
labelPlacement: "start",
|
|
@@ -1073,7 +1081,7 @@ const so = ({
|
|
|
1073
1081
|
);
|
|
1074
1082
|
}, v = {
|
|
1075
1083
|
LIGHT: "light"
|
|
1076
|
-
},
|
|
1084
|
+
}, M = (e) => ({
|
|
1077
1085
|
50: L(e, 0.95),
|
|
1078
1086
|
100: L(e, 0.85),
|
|
1079
1087
|
200: L(e, 0.7),
|
|
@@ -1084,7 +1092,7 @@ const so = ({
|
|
|
1084
1092
|
700: D(e, 0.5),
|
|
1085
1093
|
800: D(e, 0.65),
|
|
1086
1094
|
900: D(e, 0.75)
|
|
1087
|
-
}),
|
|
1095
|
+
}), A = "#FFFFFF", z = "#000000", Xe = "#F9F9F9", je = "#000000", Qe = "#FFFFFF", Je = "#1A1A1A", E = {
|
|
1088
1096
|
PRIMARY: "#2C64EF",
|
|
1089
1097
|
SECONDARY: "#808080",
|
|
1090
1098
|
INFO: "#2C64EF",
|
|
@@ -1154,136 +1162,136 @@ const so = ({
|
|
|
1154
1162
|
TRAVEL: "#76ACF7",
|
|
1155
1163
|
UNCATEGORIZED: "#BCC6D4"
|
|
1156
1164
|
}, qe = (e, o) => {
|
|
1157
|
-
const i =
|
|
1165
|
+
const i = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), c = M(o?.error || E.ERROR), r = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), t = e === v.LIGHT;
|
|
1158
1166
|
return {
|
|
1159
1167
|
mode: e,
|
|
1160
1168
|
// DEPRECATED: Use grey instead
|
|
1161
1169
|
border: {
|
|
1162
1170
|
/* DEPRECATED: Use light instead */
|
|
1163
|
-
lighter:
|
|
1164
|
-
light:
|
|
1165
|
-
main:
|
|
1171
|
+
lighter: t ? d[300] : d[700],
|
|
1172
|
+
light: t ? d[300] : d[700],
|
|
1173
|
+
main: t ? d[400] : d[600],
|
|
1166
1174
|
dark: d[500],
|
|
1167
1175
|
/* DEPRECATED: Use light instead */
|
|
1168
1176
|
darker: d[500]
|
|
1169
1177
|
},
|
|
1170
1178
|
common: {
|
|
1171
|
-
white:
|
|
1179
|
+
white: A,
|
|
1172
1180
|
black: z
|
|
1173
1181
|
},
|
|
1174
1182
|
primary: {
|
|
1175
1183
|
...i,
|
|
1176
1184
|
/* DEPRECATED: Use light instead */
|
|
1177
|
-
lighter:
|
|
1178
|
-
light:
|
|
1179
|
-
main:
|
|
1180
|
-
dark:
|
|
1185
|
+
lighter: t ? i[100] : i[800],
|
|
1186
|
+
light: t ? i[300] : i[600],
|
|
1187
|
+
main: t ? i[500] : i[400],
|
|
1188
|
+
dark: t ? i[700] : i[200],
|
|
1181
1189
|
/* DEPRECATED: Use dark instead */
|
|
1182
|
-
darker:
|
|
1190
|
+
darker: t ? i[900] : i[100]
|
|
1183
1191
|
},
|
|
1184
1192
|
secondary: {
|
|
1185
1193
|
...l,
|
|
1186
1194
|
/* DEPRECATED: Use light instead */
|
|
1187
|
-
lighter:
|
|
1188
|
-
light:
|
|
1189
|
-
main:
|
|
1190
|
-
dark:
|
|
1195
|
+
lighter: t ? l[100] : l[800],
|
|
1196
|
+
light: t ? l[300] : l[600],
|
|
1197
|
+
main: t ? l[500] : l[400],
|
|
1198
|
+
dark: t ? l[700] : l[200],
|
|
1191
1199
|
/* DEPRECATED: Use dark instead */
|
|
1192
|
-
darker:
|
|
1200
|
+
darker: t ? l[900] : l[100]
|
|
1193
1201
|
},
|
|
1194
1202
|
neutral: {
|
|
1195
1203
|
...d,
|
|
1196
1204
|
/* DEPRECATED: Use light instead */
|
|
1197
|
-
lighter:
|
|
1198
|
-
light:
|
|
1199
|
-
main:
|
|
1200
|
-
dark:
|
|
1205
|
+
lighter: t ? d[100] : d[800],
|
|
1206
|
+
light: t ? d[300] : d[600],
|
|
1207
|
+
main: t ? d[500] : d[400],
|
|
1208
|
+
dark: t ? d[700] : d[200],
|
|
1201
1209
|
/* DEPRECATED: Use dark instead */
|
|
1202
|
-
darker:
|
|
1203
|
-
contrastText: De(
|
|
1210
|
+
darker: t ? d[900] : d[100],
|
|
1211
|
+
contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
|
|
1204
1212
|
},
|
|
1205
1213
|
text: {
|
|
1206
|
-
primary:
|
|
1207
|
-
secondary:
|
|
1208
|
-
disabled:
|
|
1214
|
+
primary: t ? d[900] : A,
|
|
1215
|
+
secondary: t ? d[600] : b(A, 0.7),
|
|
1216
|
+
disabled: t ? d[500] : b(A, 0.38)
|
|
1209
1217
|
},
|
|
1210
1218
|
error: {
|
|
1211
1219
|
...c,
|
|
1212
1220
|
/* DEPRECATED: Use light instead */
|
|
1213
|
-
lighter:
|
|
1214
|
-
light:
|
|
1215
|
-
main:
|
|
1216
|
-
dark:
|
|
1221
|
+
lighter: t ? c[100] : c[800],
|
|
1222
|
+
light: t ? c[300] : c[600],
|
|
1223
|
+
main: t ? c[500] : c[400],
|
|
1224
|
+
dark: t ? c[700] : c[200],
|
|
1217
1225
|
/* DEPRECATED: Use light instead */
|
|
1218
|
-
darker:
|
|
1226
|
+
darker: t ? c[900] : c[100]
|
|
1219
1227
|
},
|
|
1220
1228
|
warning: {
|
|
1221
|
-
...
|
|
1229
|
+
...r,
|
|
1222
1230
|
/* DEPRECATED: Use light instead */
|
|
1223
|
-
lighter:
|
|
1224
|
-
light:
|
|
1225
|
-
main:
|
|
1226
|
-
dark:
|
|
1231
|
+
lighter: t ? r[100] : r[800],
|
|
1232
|
+
light: t ? r[300] : r[600],
|
|
1233
|
+
main: t ? r[500] : r[400],
|
|
1234
|
+
dark: t ? r[700] : r[200],
|
|
1227
1235
|
/* DEPRECATED: Use light instead */
|
|
1228
|
-
darker:
|
|
1236
|
+
darker: t ? r[900] : r[100]
|
|
1229
1237
|
},
|
|
1230
1238
|
info: {
|
|
1231
1239
|
...n,
|
|
1232
1240
|
/* DEPRECATED: Use light instead */
|
|
1233
|
-
lighter:
|
|
1234
|
-
light:
|
|
1235
|
-
main:
|
|
1236
|
-
dark:
|
|
1241
|
+
lighter: t ? n[100] : n[800],
|
|
1242
|
+
light: t ? n[300] : n[600],
|
|
1243
|
+
main: t ? n[500] : n[400],
|
|
1244
|
+
dark: t ? n[700] : n[200],
|
|
1237
1245
|
/* DEPRECATED: Use light instead */
|
|
1238
|
-
darker:
|
|
1246
|
+
darker: t ? n[900] : n[100]
|
|
1239
1247
|
},
|
|
1240
1248
|
success: {
|
|
1241
1249
|
...s,
|
|
1242
1250
|
/* DEPRECATED: Use light instead */
|
|
1243
|
-
lighter:
|
|
1244
|
-
light:
|
|
1245
|
-
main:
|
|
1246
|
-
dark:
|
|
1251
|
+
lighter: t ? s[100] : s[800],
|
|
1252
|
+
light: t ? s[300] : s[600],
|
|
1253
|
+
main: t ? s[500] : s[400],
|
|
1254
|
+
dark: t ? s[700] : s[200],
|
|
1247
1255
|
/* DEPRECATED: Use light instead */
|
|
1248
|
-
darker:
|
|
1256
|
+
darker: t ? s[900] : s[100]
|
|
1249
1257
|
},
|
|
1250
1258
|
grey: d,
|
|
1251
1259
|
action: {
|
|
1252
|
-
active:
|
|
1253
|
-
hoverOpacity:
|
|
1254
|
-
selectedOpacity:
|
|
1260
|
+
active: t ? b(z, 0.56) : b(A, 0.56),
|
|
1261
|
+
hoverOpacity: t ? 0.1 : 0.2,
|
|
1262
|
+
selectedOpacity: t ? 0.16 : 0.25,
|
|
1255
1263
|
focusOpacity: 0.3
|
|
1256
1264
|
},
|
|
1257
1265
|
background: {
|
|
1258
|
-
default:
|
|
1259
|
-
paper:
|
|
1260
|
-
highlight:
|
|
1261
|
-
highlightPrimary:
|
|
1266
|
+
default: t ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
|
|
1267
|
+
paper: t ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
|
|
1268
|
+
highlight: t ? d[200] : d[600],
|
|
1269
|
+
highlightPrimary: t ? i[100] : i[500]
|
|
1262
1270
|
},
|
|
1263
|
-
divider:
|
|
1271
|
+
divider: t ? b(z, 0.12) : b(A, 0.24),
|
|
1264
1272
|
categories: {
|
|
1265
|
-
autoTransport:
|
|
1266
|
-
billsUtilities:
|
|
1267
|
-
businessServices:
|
|
1268
|
-
education:
|
|
1269
|
-
entertainment:
|
|
1270
|
-
feesCharges:
|
|
1271
|
-
financial:
|
|
1272
|
-
foodDining:
|
|
1273
|
-
giftsDonations:
|
|
1274
|
-
healthFitness:
|
|
1275
|
-
home:
|
|
1276
|
-
income:
|
|
1277
|
-
investments:
|
|
1278
|
-
kids:
|
|
1279
|
-
others:
|
|
1280
|
-
personalCare:
|
|
1281
|
-
pets:
|
|
1282
|
-
shopping:
|
|
1283
|
-
taxes:
|
|
1284
|
-
transfer:
|
|
1285
|
-
travel:
|
|
1286
|
-
uncategorized:
|
|
1273
|
+
autoTransport: t ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
|
|
1274
|
+
billsUtilities: t ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
|
|
1275
|
+
businessServices: t ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
|
|
1276
|
+
education: t ? u.EDUCATION : p.EDUCATION,
|
|
1277
|
+
entertainment: t ? u.ENTERTAINMENT : p.ENTERTAINMENT,
|
|
1278
|
+
feesCharges: t ? u.FEES_CHARGES : p.FEES_CHARGES,
|
|
1279
|
+
financial: t ? u.FINANCIAL : p.FINANCIAL,
|
|
1280
|
+
foodDining: t ? u.FOOD_DINING : p.FOOD_DINING,
|
|
1281
|
+
giftsDonations: t ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
|
|
1282
|
+
healthFitness: t ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
|
|
1283
|
+
home: t ? u.HOME : p.HOME,
|
|
1284
|
+
income: t ? u.INCOME : p.INCOME,
|
|
1285
|
+
investments: t ? u.INVESTMENTS : p.INVESTMENTS,
|
|
1286
|
+
kids: t ? u.KIDS : p.KIDS,
|
|
1287
|
+
others: t ? u.OTHERS : p.OTHERS,
|
|
1288
|
+
personalCare: t ? u.PERSONAL_CARE : p.PERSONAL_CARE,
|
|
1289
|
+
pets: t ? u.PETS : p.PETS,
|
|
1290
|
+
shopping: t ? u.SHOPPING : p.SHOPPING,
|
|
1291
|
+
taxes: t ? u.TAXES : p.TAXES,
|
|
1292
|
+
transfer: t ? u.TRANSFER : p.TRANSFER,
|
|
1293
|
+
travel: t ? u.TRAVEL : p.TRAVEL,
|
|
1294
|
+
uncategorized: t ? u.UNCATEGORIZED : p.UNCATEGORIZED
|
|
1287
1295
|
},
|
|
1288
1296
|
chart: {
|
|
1289
1297
|
chart1: S.CHART1,
|
|
@@ -1472,19 +1480,19 @@ const go = (e, o) => {
|
|
|
1472
1480
|
variant: "outlined"
|
|
1473
1481
|
},
|
|
1474
1482
|
styleOverrides: {
|
|
1475
|
-
root: ({ theme:
|
|
1483
|
+
root: ({ theme: r, ownerState: n }) => {
|
|
1476
1484
|
const s = n.severity || "info";
|
|
1477
|
-
let d =
|
|
1485
|
+
let d = r.palette.mode === v.LIGHT ? r.palette[s]?.[50] : r.palette[s]?.[800];
|
|
1478
1486
|
if (n.variant === "filled") {
|
|
1479
|
-
const
|
|
1480
|
-
d =
|
|
1487
|
+
const t = s === "warning";
|
|
1488
|
+
d = r.palette[s]?.[t ? 400 : 600];
|
|
1481
1489
|
}
|
|
1482
1490
|
return {
|
|
1483
1491
|
backgroundColor: d,
|
|
1484
|
-
borderRadius:
|
|
1492
|
+
borderRadius: r.shape.borderRadius,
|
|
1485
1493
|
"& .MuiAlert-message": {
|
|
1486
|
-
fontSize:
|
|
1487
|
-
lineHeight:
|
|
1494
|
+
fontSize: r.typography.subtitle1.fontSize,
|
|
1495
|
+
lineHeight: r.typography.subtitle1.lineHeight,
|
|
1488
1496
|
marginTop: "auto",
|
|
1489
1497
|
marginBottom: "auto"
|
|
1490
1498
|
},
|
|
@@ -1510,14 +1518,14 @@ const go = (e, o) => {
|
|
|
1510
1518
|
disableElevation: !0
|
|
1511
1519
|
},
|
|
1512
1520
|
styleOverrides: {
|
|
1513
|
-
root: ({ theme:
|
|
1521
|
+
root: ({ theme: r }) => ({
|
|
1514
1522
|
fontWeight: 600,
|
|
1515
1523
|
textTransform: "none",
|
|
1516
1524
|
"&.Mui-disabled": {
|
|
1517
1525
|
cursor: "not-allowed"
|
|
1518
1526
|
},
|
|
1519
1527
|
"&.Mui-focusVisible": {
|
|
1520
|
-
outline: `2px solid ${
|
|
1528
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1521
1529
|
outlineOffset: "2px"
|
|
1522
1530
|
}
|
|
1523
1531
|
}),
|
|
@@ -1526,6 +1534,14 @@ const go = (e, o) => {
|
|
|
1526
1534
|
}
|
|
1527
1535
|
},
|
|
1528
1536
|
variants: [
|
|
1537
|
+
{
|
|
1538
|
+
props: { variant: "outlined", color: "error" },
|
|
1539
|
+
style: ({ theme: r }) => ({
|
|
1540
|
+
"&:hover, &:active": {
|
|
1541
|
+
color: r.palette.error.dark
|
|
1542
|
+
}
|
|
1543
|
+
})
|
|
1544
|
+
},
|
|
1529
1545
|
{
|
|
1530
1546
|
props: { size: "small" },
|
|
1531
1547
|
style: {
|
|
@@ -1583,22 +1599,22 @@ const go = (e, o) => {
|
|
|
1583
1599
|
},
|
|
1584
1600
|
MuiDataGrid: {
|
|
1585
1601
|
styleOverrides: {
|
|
1586
|
-
root: ({ theme:
|
|
1602
|
+
root: ({ theme: r }) => ({
|
|
1587
1603
|
border: "none",
|
|
1588
1604
|
borderRadius: 0,
|
|
1589
|
-
fontSize:
|
|
1605
|
+
fontSize: r.typography.body2.fontSize,
|
|
1590
1606
|
"& .MuiDataGrid-cell": {
|
|
1591
1607
|
display: "flex",
|
|
1592
1608
|
alignItems: "center",
|
|
1593
1609
|
borderTop: "1px solid",
|
|
1594
|
-
borderColor:
|
|
1610
|
+
borderColor: r.palette.background.highlight
|
|
1595
1611
|
},
|
|
1596
1612
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1597
1613
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1598
1614
|
"& .MuiDataGrid-columnHeaders": {
|
|
1599
|
-
backgroundColor:
|
|
1615
|
+
backgroundColor: r.palette.background.paper,
|
|
1600
1616
|
borderBottom: "2px solid",
|
|
1601
|
-
borderColor:
|
|
1617
|
+
borderColor: r.palette.divider
|
|
1602
1618
|
},
|
|
1603
1619
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1604
1620
|
fontWeight: 600
|
|
@@ -1616,42 +1632,42 @@ const go = (e, o) => {
|
|
|
1616
1632
|
},
|
|
1617
1633
|
MuiDateRangePickerDay: {
|
|
1618
1634
|
styleOverrides: {
|
|
1619
|
-
root: ({ theme:
|
|
1635
|
+
root: ({ theme: r }) => ({
|
|
1620
1636
|
":first-of-type": {
|
|
1621
|
-
borderTopLeftRadius:
|
|
1622
|
-
borderBottomLeftRadius:
|
|
1637
|
+
borderTopLeftRadius: r.shape.borderRadius,
|
|
1638
|
+
borderBottomLeftRadius: r.shape.borderRadius,
|
|
1623
1639
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1624
|
-
borderTopLeftRadius:
|
|
1625
|
-
borderBottomLeftRadius:
|
|
1640
|
+
borderTopLeftRadius: r.shape.borderRadius,
|
|
1641
|
+
borderBottomLeftRadius: r.shape.borderRadius
|
|
1626
1642
|
}
|
|
1627
1643
|
},
|
|
1628
1644
|
":last-of-type": {
|
|
1629
|
-
borderTopRightRadius:
|
|
1630
|
-
borderBottomRightRadius:
|
|
1645
|
+
borderTopRightRadius: r.shape.borderRadius,
|
|
1646
|
+
borderBottomRightRadius: r.shape.borderRadius,
|
|
1631
1647
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1632
|
-
borderTopRightRadius:
|
|
1633
|
-
borderBottomRightRadius:
|
|
1648
|
+
borderTopRightRadius: r.shape.borderRadius,
|
|
1649
|
+
borderBottomRightRadius: r.shape.borderRadius
|
|
1634
1650
|
}
|
|
1635
1651
|
},
|
|
1636
1652
|
"& .Mui-selected": {
|
|
1637
|
-
borderRadius:
|
|
1653
|
+
borderRadius: r.shape.borderRadius
|
|
1638
1654
|
},
|
|
1639
1655
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1640
|
-
color:
|
|
1656
|
+
color: r.palette.action.disabled
|
|
1641
1657
|
}
|
|
1642
1658
|
}),
|
|
1643
|
-
day: ({ theme:
|
|
1644
|
-
borderRadius:
|
|
1659
|
+
day: ({ theme: r }) => ({
|
|
1660
|
+
borderRadius: r.shape.borderRadius
|
|
1645
1661
|
}),
|
|
1646
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1647
|
-
borderRadius:
|
|
1662
|
+
rangeIntervalDayPreview: ({ theme: r }) => ({
|
|
1663
|
+
borderRadius: r.shape.borderRadius
|
|
1648
1664
|
})
|
|
1649
1665
|
}
|
|
1650
1666
|
},
|
|
1651
1667
|
MuiDayCalendar: {
|
|
1652
1668
|
styleOverrides: {
|
|
1653
|
-
weekDayLabel: ({ theme:
|
|
1654
|
-
fontSize:
|
|
1669
|
+
weekDayLabel: ({ theme: r }) => ({
|
|
1670
|
+
fontSize: r.typography.body2.fontSize,
|
|
1655
1671
|
fontWeight: 700
|
|
1656
1672
|
})
|
|
1657
1673
|
}
|
|
@@ -1693,14 +1709,14 @@ const go = (e, o) => {
|
|
|
1693
1709
|
},
|
|
1694
1710
|
MuiFormHelperText: {
|
|
1695
1711
|
styleOverrides: {
|
|
1696
|
-
root: ({ theme:
|
|
1712
|
+
root: ({ theme: r }) => ({
|
|
1697
1713
|
fontSize: 13,
|
|
1698
1714
|
// Small
|
|
1699
1715
|
marginLeft: 0,
|
|
1700
1716
|
display: "flex",
|
|
1701
1717
|
alignItems: "center",
|
|
1702
1718
|
position: "relative",
|
|
1703
|
-
color:
|
|
1719
|
+
color: r.palette.text.secondary,
|
|
1704
1720
|
"& .MuiSvgIcon-root": {
|
|
1705
1721
|
height: "16px",
|
|
1706
1722
|
width: "16px",
|
|
@@ -1731,19 +1747,19 @@ const go = (e, o) => {
|
|
|
1731
1747
|
disableFocusRipple: !0
|
|
1732
1748
|
},
|
|
1733
1749
|
styleOverrides: {
|
|
1734
|
-
root: ({ theme:
|
|
1735
|
-
borderRadius:
|
|
1750
|
+
root: ({ theme: r }) => ({
|
|
1751
|
+
borderRadius: r.shape.borderRadius,
|
|
1736
1752
|
minHeight: 44,
|
|
1737
1753
|
// touch target
|
|
1738
1754
|
minWidth: 44,
|
|
1739
1755
|
// touch target
|
|
1740
1756
|
"&.Mui-focusVisible": {
|
|
1741
|
-
outline: `2px solid ${
|
|
1757
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1742
1758
|
outlineOffset: "2px"
|
|
1743
1759
|
},
|
|
1744
1760
|
"& .MuiTouchRipple-root": {
|
|
1745
1761
|
"& .MuiTouchRipple-child": {
|
|
1746
|
-
borderRadius:
|
|
1762
|
+
borderRadius: r.shape.borderRadius
|
|
1747
1763
|
}
|
|
1748
1764
|
}
|
|
1749
1765
|
})
|
|
@@ -1770,7 +1786,7 @@ const go = (e, o) => {
|
|
|
1770
1786
|
},
|
|
1771
1787
|
MuiLink: {
|
|
1772
1788
|
styleOverrides: {
|
|
1773
|
-
root: ({ theme:
|
|
1789
|
+
root: ({ theme: r, color: n }) => ({
|
|
1774
1790
|
cursor: "pointer",
|
|
1775
1791
|
fontWeight: 600,
|
|
1776
1792
|
textDecoration: "none",
|
|
@@ -1782,10 +1798,10 @@ const go = (e, o) => {
|
|
|
1782
1798
|
outlineOffset: "2px"
|
|
1783
1799
|
},
|
|
1784
1800
|
"&:hover": {
|
|
1785
|
-
backgroundColor:
|
|
1801
|
+
backgroundColor: r.palette.action.hover
|
|
1786
1802
|
},
|
|
1787
1803
|
"&:active": {
|
|
1788
|
-
backgroundColor:
|
|
1804
|
+
backgroundColor: r.palette.mode === v.LIGHT ? r.palette[n].light : r.palette[n].dark
|
|
1789
1805
|
}
|
|
1790
1806
|
})
|
|
1791
1807
|
}
|
|
@@ -1812,9 +1828,9 @@ const go = (e, o) => {
|
|
|
1812
1828
|
disablePadding: !0
|
|
1813
1829
|
},
|
|
1814
1830
|
styleOverrides: {
|
|
1815
|
-
root: ({ ownerState:
|
|
1831
|
+
root: ({ ownerState: r }) => ({
|
|
1816
1832
|
minHeight: 64,
|
|
1817
|
-
...!
|
|
1833
|
+
...!r.disablePadding && {
|
|
1818
1834
|
paddingTop: 12,
|
|
1819
1835
|
paddingBottom: 12,
|
|
1820
1836
|
paddingLeft: 24
|
|
@@ -1838,7 +1854,7 @@ const go = (e, o) => {
|
|
|
1838
1854
|
},
|
|
1839
1855
|
MuiListItemButton: {
|
|
1840
1856
|
styleOverrides: {
|
|
1841
|
-
root: ({ theme:
|
|
1857
|
+
root: ({ theme: r }) => ({
|
|
1842
1858
|
minHeight: 64,
|
|
1843
1859
|
paddingLeft: 24,
|
|
1844
1860
|
paddingRight: 24,
|
|
@@ -1847,7 +1863,7 @@ const go = (e, o) => {
|
|
|
1847
1863
|
"&.Mui-focusVisible": {
|
|
1848
1864
|
backgroundColor: "transparent",
|
|
1849
1865
|
borderRadius: 8,
|
|
1850
|
-
outline: `2px solid ${
|
|
1866
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1851
1867
|
outlineOffset: -2
|
|
1852
1868
|
}
|
|
1853
1869
|
})
|
|
@@ -1972,11 +1988,11 @@ const go = (e, o) => {
|
|
|
1972
1988
|
},
|
|
1973
1989
|
MuiPickersToolbar: {
|
|
1974
1990
|
styleOverrides: {
|
|
1975
|
-
content: ({ theme:
|
|
1991
|
+
content: ({ theme: r }) => ({
|
|
1976
1992
|
marginTop: 4,
|
|
1977
1993
|
"& .MuiTypography-root": {
|
|
1978
|
-
fontSize:
|
|
1979
|
-
lineHeight:
|
|
1994
|
+
fontSize: r.typography.h3.fontSize,
|
|
1995
|
+
lineHeight: r.typography.h3.lineHeight
|
|
1980
1996
|
}
|
|
1981
1997
|
})
|
|
1982
1998
|
}
|
|
@@ -2002,7 +2018,7 @@ const go = (e, o) => {
|
|
|
2002
2018
|
disableFocusRipple: !0
|
|
2003
2019
|
},
|
|
2004
2020
|
styleOverrides: {
|
|
2005
|
-
root: ({ theme:
|
|
2021
|
+
root: ({ theme: r }) => ({
|
|
2006
2022
|
width: 37,
|
|
2007
2023
|
height: 20,
|
|
2008
2024
|
padding: 0,
|
|
@@ -2013,7 +2029,7 @@ const go = (e, o) => {
|
|
|
2013
2029
|
"&.Mui-checked": {
|
|
2014
2030
|
transform: "translateX(16px)",
|
|
2015
2031
|
"& + .MuiSwitch-track": {
|
|
2016
|
-
backgroundColor:
|
|
2032
|
+
backgroundColor: r.palette.success.main,
|
|
2017
2033
|
opacity: 1,
|
|
2018
2034
|
border: 0
|
|
2019
2035
|
},
|
|
@@ -2022,27 +2038,27 @@ const go = (e, o) => {
|
|
|
2022
2038
|
}
|
|
2023
2039
|
},
|
|
2024
2040
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
2025
|
-
color:
|
|
2041
|
+
color: r.palette.common.white
|
|
2026
2042
|
},
|
|
2027
2043
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
2028
|
-
backgroundColor:
|
|
2044
|
+
backgroundColor: r.palette.action.disabledBackground,
|
|
2029
2045
|
opacity: 1
|
|
2030
2046
|
}
|
|
2031
2047
|
},
|
|
2032
2048
|
"& .MuiSwitch-input": {
|
|
2033
2049
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
2034
|
-
outline: `2px solid ${
|
|
2050
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
2035
2051
|
outlineOffset: 0
|
|
2036
2052
|
}
|
|
2037
2053
|
},
|
|
2038
2054
|
"& .MuiSwitch-thumb": {
|
|
2039
2055
|
boxSizing: "border-box",
|
|
2040
|
-
backgroundColor:
|
|
2056
|
+
backgroundColor: r.palette.background.paper,
|
|
2041
2057
|
width: 16,
|
|
2042
2058
|
height: 16
|
|
2043
2059
|
},
|
|
2044
2060
|
"& .MuiSwitch-track": {
|
|
2045
|
-
backgroundColor:
|
|
2061
|
+
backgroundColor: r.palette.action.active,
|
|
2046
2062
|
borderRadius: 20 / 2,
|
|
2047
2063
|
opacity: 1
|
|
2048
2064
|
}
|
|
@@ -2094,7 +2110,7 @@ const go = (e, o) => {
|
|
|
2094
2110
|
disableFocusRipple: !0
|
|
2095
2111
|
},
|
|
2096
2112
|
styleOverrides: {
|
|
2097
|
-
root: ({ theme:
|
|
2113
|
+
root: ({ theme: r }) => ({
|
|
2098
2114
|
fontSize: 13,
|
|
2099
2115
|
lineHeight: "16px",
|
|
2100
2116
|
textTransform: "none",
|
|
@@ -2104,22 +2120,22 @@ const go = (e, o) => {
|
|
|
2104
2120
|
},
|
|
2105
2121
|
"&:hover": {
|
|
2106
2122
|
backgroundColor: b(
|
|
2107
|
-
|
|
2123
|
+
r.palette.primary.main,
|
|
2108
2124
|
i.mode === v.LIGHT ? 0.1 : 0.2
|
|
2109
2125
|
),
|
|
2110
|
-
borderColor:
|
|
2126
|
+
borderColor: r.palette.primary.main
|
|
2111
2127
|
},
|
|
2112
2128
|
"&.Mui-selected": {
|
|
2113
2129
|
fontWeight: 600,
|
|
2114
|
-
borderColor:
|
|
2130
|
+
borderColor: r.palette.primary.main,
|
|
2115
2131
|
"&:hover": {
|
|
2116
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
2132
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.palette.primary.main}`
|
|
2117
2133
|
}
|
|
2118
2134
|
},
|
|
2119
2135
|
"& .MuiTouchRipple-root": {
|
|
2120
2136
|
"& .MuiTouchRipple-child": {
|
|
2121
|
-
backgroundColor:
|
|
2122
|
-
borderRadius:
|
|
2137
|
+
backgroundColor: r.palette.primary.main,
|
|
2138
|
+
borderRadius: r.shape.borderRadius
|
|
2123
2139
|
}
|
|
2124
2140
|
}
|
|
2125
2141
|
})
|
|
@@ -2218,7 +2234,7 @@ export {
|
|
|
2218
2234
|
We as Footer,
|
|
2219
2235
|
Ze as H1,
|
|
2220
2236
|
oo as H2,
|
|
2221
|
-
|
|
2237
|
+
ro as H3,
|
|
2222
2238
|
Y0 as HeartIcon,
|
|
2223
2239
|
e0 as INTER,
|
|
2224
2240
|
R as Icon,
|
|
@@ -2229,7 +2245,7 @@ export {
|
|
|
2229
2245
|
X0 as MXLogoIcon,
|
|
2230
2246
|
J0 as MXLogoOutlineIcon,
|
|
2231
2247
|
lo as MerchantLogo,
|
|
2232
|
-
|
|
2248
|
+
to as P,
|
|
2233
2249
|
ho as SelectionBox,
|
|
2234
2250
|
F as TARGETS,
|
|
2235
2251
|
N as THEMES,
|