@mxenabled/mxui 1.0.1-alpha.JB0 → 1.0.2-alpha.JB0
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 +153 -153
- package/dist/index.es.js.map +1 -1
- package/dist/themes/MXTheme.d.ts +2 -1
- package/dist/themes/Palette.d.ts +2 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -35,8 +35,8 @@ const h = ({
|
|
|
35
35
|
children: e,
|
|
36
36
|
height: o,
|
|
37
37
|
size: r = 16,
|
|
38
|
-
viewBox:
|
|
39
|
-
width:
|
|
38
|
+
viewBox: l = "0 0 16 16",
|
|
39
|
+
width: t
|
|
40
40
|
}) => /* @__PURE__ */ a(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
@@ -44,8 +44,8 @@ const h = ({
|
|
|
44
44
|
className: "mx-kmui-icon",
|
|
45
45
|
focusable: !1,
|
|
46
46
|
height: o || r,
|
|
47
|
-
viewBox:
|
|
48
|
-
width:
|
|
47
|
+
viewBox: l,
|
|
48
|
+
width: t || r,
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
children: e
|
|
51
51
|
}
|
|
@@ -55,12 +55,12 @@ const b = ({
|
|
|
55
55
|
color: e,
|
|
56
56
|
fill: o = !1,
|
|
57
57
|
name: r,
|
|
58
|
-
size:
|
|
59
|
-
sx:
|
|
60
|
-
weight:
|
|
61
|
-
...
|
|
58
|
+
size: l = 20,
|
|
59
|
+
sx: t,
|
|
60
|
+
weight: i = 300,
|
|
61
|
+
...n
|
|
62
62
|
}) => {
|
|
63
|
-
const [
|
|
63
|
+
const [c, f] = m.useState(!1);
|
|
64
64
|
return m.useEffect(() => {
|
|
65
65
|
document.fonts.ready.then(() => {
|
|
66
66
|
f(!0);
|
|
@@ -68,23 +68,23 @@ const b = ({
|
|
|
68
68
|
}, []), /* @__PURE__ */ a(
|
|
69
69
|
j,
|
|
70
70
|
{
|
|
71
|
-
color:
|
|
71
|
+
color: c ? e && e : void 0,
|
|
72
72
|
sx: [
|
|
73
73
|
{
|
|
74
|
-
fontSize:
|
|
74
|
+
fontSize: l,
|
|
75
75
|
fontVariationSettings: `
|
|
76
76
|
'FILL' ${o ? 1 : 0},
|
|
77
|
-
'wght' ${
|
|
77
|
+
'wght' ${i},
|
|
78
78
|
'GRAD' 0,
|
|
79
|
-
'opsz' ${
|
|
79
|
+
'opsz' ${l}
|
|
80
80
|
`
|
|
81
81
|
},
|
|
82
|
-
...Array.isArray(
|
|
82
|
+
...Array.isArray(t) ? t : [t],
|
|
83
83
|
{
|
|
84
|
-
...!
|
|
84
|
+
...!c && { color: "transparent" }
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
|
-
...
|
|
87
|
+
...n,
|
|
88
88
|
children: r
|
|
89
89
|
}
|
|
90
90
|
);
|
|
@@ -411,53 +411,53 @@ const W = {
|
|
|
411
411
|
categoryGuid: e,
|
|
412
412
|
icon_ratio: o = M0,
|
|
413
413
|
size: r = 32,
|
|
414
|
-
sx:
|
|
415
|
-
variant:
|
|
414
|
+
sx: l = {},
|
|
415
|
+
variant: t = "filled"
|
|
416
416
|
}) => {
|
|
417
|
-
const
|
|
418
|
-
() => y0.find((
|
|
417
|
+
const i = C(), n = m.useMemo(
|
|
418
|
+
() => y0.find((s) => s.guid === e) ?? W,
|
|
419
419
|
[e]
|
|
420
|
-
),
|
|
420
|
+
), c = i.palette.categories[n.colorName];
|
|
421
421
|
return /* @__PURE__ */ a(
|
|
422
422
|
k,
|
|
423
423
|
{
|
|
424
424
|
alignItems: "center",
|
|
425
425
|
bgcolor: () => {
|
|
426
|
-
let
|
|
427
|
-
return
|
|
426
|
+
let s = c;
|
|
427
|
+
return t === "twotone" && (s = `${s}20`), t === "transparent" || t === "basic" ? "transparent" : s;
|
|
428
428
|
},
|
|
429
429
|
borderRadius: 1,
|
|
430
430
|
color: () => {
|
|
431
|
-
const
|
|
432
|
-
return
|
|
431
|
+
const s = t === "filled" ? i.palette.common.white : c;
|
|
432
|
+
return t === "basic" ? i.palette.text.primary : s;
|
|
433
433
|
},
|
|
434
434
|
height: r,
|
|
435
435
|
justifyContent: "center",
|
|
436
|
-
sx: [...Array.isArray(
|
|
436
|
+
sx: [...Array.isArray(l) ? l : [l]],
|
|
437
437
|
width: r,
|
|
438
|
-
children: /* @__PURE__ */ a(b, { name:
|
|
438
|
+
children: /* @__PURE__ */ a(b, { name: n.icon, size: r * o })
|
|
439
439
|
}
|
|
440
440
|
);
|
|
441
441
|
}, T0 = ({
|
|
442
442
|
items: e,
|
|
443
443
|
onChange: o,
|
|
444
444
|
isValid: r,
|
|
445
|
-
selected:
|
|
445
|
+
selected: l
|
|
446
446
|
}) => {
|
|
447
|
-
const
|
|
448
|
-
const
|
|
447
|
+
const t = C(), i = e?.map((n) => {
|
|
448
|
+
const c = n.getValue({ isValid: r });
|
|
449
449
|
return {
|
|
450
|
-
label:
|
|
450
|
+
label: n.label,
|
|
451
451
|
onClick: () => {
|
|
452
|
-
o(
|
|
452
|
+
o(c, "accept", n);
|
|
453
453
|
},
|
|
454
|
-
disabled: !r(
|
|
454
|
+
disabled: !r(c)
|
|
455
455
|
};
|
|
456
456
|
});
|
|
457
|
-
return /* @__PURE__ */ a(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(a0, { color: "primary", orientation: "vertical", value:
|
|
457
|
+
return /* @__PURE__ */ a(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(a0, { color: "primary", orientation: "vertical", value: l, children: i?.map((n) => /* @__PURE__ */ a(
|
|
458
458
|
o0,
|
|
459
459
|
{
|
|
460
|
-
onClick:
|
|
460
|
+
onClick: n.onClick,
|
|
461
461
|
sx: {
|
|
462
462
|
borderWidth: 1,
|
|
463
463
|
color: "secondary.main",
|
|
@@ -468,29 +468,29 @@ const W = {
|
|
|
468
468
|
boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
|
|
469
469
|
},
|
|
470
470
|
"&:hover": {
|
|
471
|
-
bgcolor:
|
|
472
|
-
borderTop: `1px solid ${
|
|
471
|
+
bgcolor: t.palette.action.hover,
|
|
472
|
+
borderTop: `1px solid ${t.palette.secondary.lighter}`
|
|
473
473
|
},
|
|
474
474
|
"&.Mui-selected": {
|
|
475
|
-
border: `2px solid ${
|
|
475
|
+
border: `2px solid ${t.palette.mode === "light" ? t.palette.primary.main : t.palette.primary.light} !important`,
|
|
476
476
|
marginTop: "-2px !important",
|
|
477
|
-
color:
|
|
477
|
+
color: t.palette.mode === "light" ? "primary" : "primary.light"
|
|
478
478
|
}
|
|
479
479
|
},
|
|
480
|
-
value:
|
|
481
|
-
children:
|
|
480
|
+
value: n.label,
|
|
481
|
+
children: n.label
|
|
482
482
|
},
|
|
483
|
-
|
|
483
|
+
n.label
|
|
484
484
|
)) }) });
|
|
485
485
|
}, De = ({
|
|
486
486
|
copy: e,
|
|
487
487
|
dateRange: o,
|
|
488
488
|
onRangeChanged: r,
|
|
489
|
-
selectedShortcut:
|
|
490
|
-
sx:
|
|
489
|
+
selectedShortcut: l = e.dateRangeThisMonth,
|
|
490
|
+
sx: t = {}
|
|
491
491
|
}) => {
|
|
492
|
-
const
|
|
493
|
-
const u = Y(),
|
|
492
|
+
const i = C(), n = q(i.breakpoints.down("sm")), c = m.useMemo(() => {
|
|
493
|
+
const u = Y(), s = Q(u, 1), g = J(u, 1);
|
|
494
494
|
return [
|
|
495
495
|
{
|
|
496
496
|
label: e.dateRangeThisMonth,
|
|
@@ -498,7 +498,7 @@ const W = {
|
|
|
498
498
|
},
|
|
499
499
|
{
|
|
500
500
|
label: e.dateRangeLastMonth,
|
|
501
|
-
getValue: () => [F(
|
|
501
|
+
getValue: () => [F(s), S(s)]
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
504
|
label: e.dateRangeLast30Days,
|
|
@@ -521,8 +521,8 @@ const W = {
|
|
|
521
521
|
getValue: () => [u, u]
|
|
522
522
|
}
|
|
523
523
|
];
|
|
524
|
-
}, [e]), f = (u,
|
|
525
|
-
const g =
|
|
524
|
+
}, [e]), f = (u, s) => {
|
|
525
|
+
const g = s.shortcut;
|
|
526
526
|
r?.(u, g ? g.label : e.dateRangeCustom);
|
|
527
527
|
};
|
|
528
528
|
return /* @__PURE__ */ a(k, { gap: 16, m: 8, children: /* @__PURE__ */ a(e0, { dateAdapter: t0, children: /* @__PURE__ */ a(
|
|
@@ -539,7 +539,7 @@ const W = {
|
|
|
539
539
|
slotProps: {
|
|
540
540
|
actionBar: { actions: [] },
|
|
541
541
|
shortcuts: {
|
|
542
|
-
items:
|
|
542
|
+
items: n ? [] : c
|
|
543
543
|
},
|
|
544
544
|
toolbar: {
|
|
545
545
|
toolbarFormat: "MMM d, yyyy"
|
|
@@ -547,10 +547,10 @@ const W = {
|
|
|
547
547
|
},
|
|
548
548
|
slots: {
|
|
549
549
|
leftArrowIcon: () => /* @__PURE__ */ a(b, { name: "chevron_left", size: 28 }),
|
|
550
|
-
shortcuts: (u) => /* @__PURE__ */ a(T0, { selected:
|
|
550
|
+
shortcuts: (u) => /* @__PURE__ */ a(T0, { selected: l, ...u }),
|
|
551
551
|
rightArrowIcon: () => /* @__PURE__ */ a(b, { name: "chevron_right", size: 28 })
|
|
552
552
|
},
|
|
553
|
-
sx: { ...
|
|
553
|
+
sx: { ...t },
|
|
554
554
|
value: o
|
|
555
555
|
}
|
|
556
556
|
) }) });
|
|
@@ -560,11 +560,11 @@ const W = {
|
|
|
560
560
|
hasSecondaryAction: e = !0,
|
|
561
561
|
isPrimaryDisabled: o,
|
|
562
562
|
onPrimaryAction: r,
|
|
563
|
-
onSecondaryAction:
|
|
564
|
-
primaryColor:
|
|
565
|
-
primaryText:
|
|
566
|
-
secondaryColor:
|
|
567
|
-
secondaryText:
|
|
563
|
+
onSecondaryAction: l,
|
|
564
|
+
primaryColor: t = "primary",
|
|
565
|
+
primaryText: i = "Save",
|
|
566
|
+
secondaryColor: n = "primary",
|
|
567
|
+
secondaryText: c = "Cancel",
|
|
568
568
|
...f
|
|
569
569
|
}) => /* @__PURE__ */ y(
|
|
570
570
|
O,
|
|
@@ -582,26 +582,26 @@ const W = {
|
|
|
582
582
|
e && /* @__PURE__ */ a(
|
|
583
583
|
D,
|
|
584
584
|
{
|
|
585
|
-
color:
|
|
586
|
-
onClick:
|
|
585
|
+
color: n,
|
|
586
|
+
onClick: l,
|
|
587
587
|
variant: r ? "outlined" : "contained",
|
|
588
|
-
children:
|
|
588
|
+
children: c
|
|
589
589
|
}
|
|
590
590
|
),
|
|
591
591
|
r && /* @__PURE__ */ a(
|
|
592
592
|
D,
|
|
593
593
|
{
|
|
594
|
-
color:
|
|
594
|
+
color: t,
|
|
595
595
|
disabled: o,
|
|
596
596
|
onClick: r,
|
|
597
597
|
variant: "contained",
|
|
598
|
-
children:
|
|
598
|
+
children: i
|
|
599
599
|
}
|
|
600
600
|
)
|
|
601
601
|
]
|
|
602
602
|
}
|
|
603
603
|
), Le = ({ copy: e, onClose: o, ...r }) => {
|
|
604
|
-
const
|
|
604
|
+
const l = C();
|
|
605
605
|
return /* @__PURE__ */ y(
|
|
606
606
|
O,
|
|
607
607
|
{
|
|
@@ -613,7 +613,7 @@ const W = {
|
|
|
613
613
|
...r,
|
|
614
614
|
children: [
|
|
615
615
|
/* @__PURE__ */ a(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ a(A0, { sx: { fontWeight: 600 }, variant: "H3", children: e.title }) }),
|
|
616
|
-
/* @__PURE__ */ a(_, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(f0, { color:
|
|
616
|
+
/* @__PURE__ */ a(_, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(f0, { color: l.palette.primary.main }) })
|
|
617
617
|
]
|
|
618
618
|
}
|
|
619
619
|
);
|
|
@@ -621,11 +621,11 @@ const W = {
|
|
|
621
621
|
className: e,
|
|
622
622
|
disableSave: o,
|
|
623
623
|
id: r,
|
|
624
|
-
isOpen:
|
|
625
|
-
onClose:
|
|
626
|
-
onSave:
|
|
627
|
-
primaryText:
|
|
628
|
-
secondaryText:
|
|
624
|
+
isOpen: l,
|
|
625
|
+
onClose: t,
|
|
626
|
+
onSave: i,
|
|
627
|
+
primaryText: n,
|
|
628
|
+
secondaryText: c,
|
|
629
629
|
children: f,
|
|
630
630
|
...u
|
|
631
631
|
}) => /* @__PURE__ */ y(
|
|
@@ -634,20 +634,20 @@ const W = {
|
|
|
634
634
|
anchor: "right",
|
|
635
635
|
className: `mx-kmui-drawer ${e}`,
|
|
636
636
|
id: r ?? void 0,
|
|
637
|
-
onClose:
|
|
638
|
-
open:
|
|
637
|
+
onClose: t,
|
|
638
|
+
open: l,
|
|
639
639
|
variant: "temporary",
|
|
640
640
|
...u,
|
|
641
641
|
children: [
|
|
642
642
|
f,
|
|
643
|
-
|
|
643
|
+
i && /* @__PURE__ */ a(
|
|
644
644
|
v0,
|
|
645
645
|
{
|
|
646
646
|
isPrimaryDisabled: o,
|
|
647
|
-
onPrimaryAction:
|
|
648
|
-
onSecondaryAction:
|
|
649
|
-
primaryText:
|
|
650
|
-
secondaryText:
|
|
647
|
+
onPrimaryAction: i,
|
|
648
|
+
onSecondaryAction: t,
|
|
649
|
+
primaryText: n,
|
|
650
|
+
secondaryText: c
|
|
651
651
|
}
|
|
652
652
|
)
|
|
653
653
|
]
|
|
@@ -656,95 +656,95 @@ const W = {
|
|
|
656
656
|
alt: e,
|
|
657
657
|
institutionGuid: o,
|
|
658
658
|
logoUrl: r,
|
|
659
|
-
size:
|
|
660
|
-
...
|
|
659
|
+
size: l = $,
|
|
660
|
+
...t
|
|
661
661
|
}) => /* @__PURE__ */ a(
|
|
662
662
|
"img",
|
|
663
663
|
{
|
|
664
664
|
alt: e,
|
|
665
|
-
height:
|
|
666
|
-
onError: (
|
|
665
|
+
height: l,
|
|
666
|
+
onError: (i) => i.target.src = x0,
|
|
667
667
|
src: r || `${H}/Ipad%20Logos/100x100/${o}_100x100.png`,
|
|
668
668
|
style: {
|
|
669
669
|
borderRadius: 4
|
|
670
670
|
},
|
|
671
|
-
width:
|
|
672
|
-
...
|
|
671
|
+
width: l,
|
|
672
|
+
...t
|
|
673
673
|
}
|
|
674
674
|
), Ie = ({
|
|
675
675
|
alt: e = "",
|
|
676
676
|
categoryGuid: o,
|
|
677
677
|
merchantGuid: r,
|
|
678
|
-
size:
|
|
679
|
-
...
|
|
678
|
+
size: l = $,
|
|
679
|
+
...t
|
|
680
680
|
}) => {
|
|
681
|
-
const [
|
|
682
|
-
return /* @__PURE__ */ y(L, { display: "inline-block", position: "relative", ...
|
|
683
|
-
r && !
|
|
681
|
+
const [i, n] = m.useState(!1);
|
|
682
|
+
return /* @__PURE__ */ y(L, { display: "inline-block", position: "relative", ...t, children: [
|
|
683
|
+
r && !i && /* @__PURE__ */ a(
|
|
684
684
|
"img",
|
|
685
685
|
{
|
|
686
686
|
alt: e,
|
|
687
687
|
"aria-hidden": !e,
|
|
688
|
-
height:
|
|
689
|
-
onError: () =>
|
|
688
|
+
height: l,
|
|
689
|
+
onError: () => n(!0),
|
|
690
690
|
src: `${H}/merchant_logos/${r}.png`,
|
|
691
691
|
style: {
|
|
692
692
|
borderRadius: 4,
|
|
693
693
|
boxSizing: "border-box",
|
|
694
694
|
position: "absolute"
|
|
695
695
|
},
|
|
696
|
-
width:
|
|
696
|
+
width: l
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
|
-
/* @__PURE__ */ a(C0, { categoryGuid: o, size:
|
|
699
|
+
/* @__PURE__ */ a(C0, { categoryGuid: o, size: l })
|
|
700
700
|
] });
|
|
701
701
|
}, T = ({
|
|
702
702
|
bold: e,
|
|
703
703
|
className: o = "",
|
|
704
704
|
children: r,
|
|
705
|
-
color:
|
|
706
|
-
sx:
|
|
707
|
-
truncate:
|
|
708
|
-
uppercase:
|
|
709
|
-
...
|
|
705
|
+
color: l,
|
|
706
|
+
sx: t = {},
|
|
707
|
+
truncate: i = !0,
|
|
708
|
+
uppercase: n,
|
|
709
|
+
...c
|
|
710
710
|
}) => /* @__PURE__ */ a(
|
|
711
711
|
n0,
|
|
712
712
|
{
|
|
713
713
|
className: `mx-kmui-text ${o}`,
|
|
714
|
-
color:
|
|
714
|
+
color: l,
|
|
715
715
|
sx: [
|
|
716
716
|
e ? {
|
|
717
717
|
fontWeight: 600
|
|
718
718
|
} : {},
|
|
719
|
-
|
|
719
|
+
i ? {
|
|
720
720
|
overflow: "hidden",
|
|
721
721
|
textOverflow: "ellipsis",
|
|
722
722
|
whiteSpace: "nowrap"
|
|
723
723
|
} : {},
|
|
724
|
-
|
|
724
|
+
n ? {
|
|
725
725
|
textTransform: "uppercase"
|
|
726
726
|
} : {},
|
|
727
|
-
...Array.isArray(
|
|
727
|
+
...Array.isArray(t) ? t : [t]
|
|
728
728
|
],
|
|
729
|
-
...
|
|
729
|
+
...c,
|
|
730
730
|
children: r
|
|
731
731
|
}
|
|
732
|
-
), A0 = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "H1", ...r, children: o }), Se = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "H2", ...r, children: o }), Fe = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "H3", ...r, children: o }), we = ({ className: e = "", children: o, truncate: r, ...
|
|
732
|
+
), A0 = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "H1", ...r, children: o }), Se = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "H2", ...r, children: o }), Fe = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "H3", ...r, children: o }), we = ({ className: e = "", children: o, truncate: r, ...l }) => /* @__PURE__ */ a(
|
|
733
733
|
T,
|
|
734
734
|
{
|
|
735
735
|
className: `mx-kmui-text p ${e}`,
|
|
736
736
|
component: "p",
|
|
737
737
|
truncate: r || !1,
|
|
738
738
|
variant: "Body",
|
|
739
|
-
...
|
|
739
|
+
...l,
|
|
740
740
|
children: o
|
|
741
741
|
}
|
|
742
742
|
), Re = ({
|
|
743
743
|
disabled: e = !1,
|
|
744
744
|
label: o = "",
|
|
745
745
|
shrink: r = !0,
|
|
746
|
-
variant:
|
|
747
|
-
...
|
|
746
|
+
variant: l = "outlined",
|
|
747
|
+
...t
|
|
748
748
|
}) => /* @__PURE__ */ a(
|
|
749
749
|
l0,
|
|
750
750
|
{
|
|
@@ -753,8 +753,8 @@ const W = {
|
|
|
753
753
|
},
|
|
754
754
|
disabled: e,
|
|
755
755
|
label: o,
|
|
756
|
-
variant:
|
|
757
|
-
...
|
|
756
|
+
variant: l,
|
|
757
|
+
...t
|
|
758
758
|
}
|
|
759
759
|
);
|
|
760
760
|
function D0(e) {
|
|
@@ -764,14 +764,14 @@ const Ne = ({
|
|
|
764
764
|
open: e,
|
|
765
765
|
handleClose: o,
|
|
766
766
|
message: r,
|
|
767
|
-
autoHideDuration:
|
|
768
|
-
severity:
|
|
769
|
-
snackbarSx:
|
|
770
|
-
showAction:
|
|
771
|
-
showClose:
|
|
767
|
+
autoHideDuration: l = 3e3,
|
|
768
|
+
severity: t = "success",
|
|
769
|
+
snackbarSx: i,
|
|
770
|
+
showAction: n = !1,
|
|
771
|
+
showClose: c = !1,
|
|
772
772
|
actionText: f = "Undo",
|
|
773
773
|
onActionClick: u,
|
|
774
|
-
multiLine:
|
|
774
|
+
multiLine: s = !1
|
|
775
775
|
}) => {
|
|
776
776
|
const g = C(), K = {
|
|
777
777
|
success: g.palette.success.dark,
|
|
@@ -781,14 +781,14 @@ const Ne = ({
|
|
|
781
781
|
}, Z = /* @__PURE__ */ y(
|
|
782
782
|
k,
|
|
783
783
|
{
|
|
784
|
-
alignItems:
|
|
785
|
-
direction:
|
|
784
|
+
alignItems: s ? "flex-end" : "center",
|
|
785
|
+
direction: s ? "column-reverse" : "row",
|
|
786
786
|
justifyContent: (
|
|
787
787
|
// eslint-disable-next-line no-nested-ternary
|
|
788
|
-
|
|
788
|
+
s && n && c ? "space-between" : "flex-end"
|
|
789
789
|
),
|
|
790
790
|
children: [
|
|
791
|
-
|
|
791
|
+
n && /* @__PURE__ */ a(
|
|
792
792
|
D,
|
|
793
793
|
{
|
|
794
794
|
color: "inherit",
|
|
@@ -801,7 +801,7 @@ const Ne = ({
|
|
|
801
801
|
children: f
|
|
802
802
|
}
|
|
803
803
|
),
|
|
804
|
-
|
|
804
|
+
c && /* @__PURE__ */ a(
|
|
805
805
|
_,
|
|
806
806
|
{
|
|
807
807
|
"aria-label": "close",
|
|
@@ -819,32 +819,32 @@ const Ne = ({
|
|
|
819
819
|
{
|
|
820
820
|
TransitionComponent: D0,
|
|
821
821
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
822
|
-
autoHideDuration:
|
|
822
|
+
autoHideDuration: l,
|
|
823
823
|
onClose: o,
|
|
824
824
|
open: e,
|
|
825
825
|
sx: {
|
|
826
|
-
...
|
|
827
|
-
width:
|
|
826
|
+
...i,
|
|
827
|
+
width: s ? 400 : 325
|
|
828
828
|
},
|
|
829
829
|
children: /* @__PURE__ */ a(
|
|
830
830
|
s0,
|
|
831
831
|
{
|
|
832
832
|
action: Z,
|
|
833
|
-
severity:
|
|
833
|
+
severity: t,
|
|
834
834
|
sx: {
|
|
835
835
|
display: "flex",
|
|
836
836
|
alignItems: "stretch",
|
|
837
|
-
minHeight:
|
|
838
|
-
maxHeight:
|
|
839
|
-
backgroundColor: (I) => I.palette.mode === "light" ? I.palette[
|
|
837
|
+
minHeight: c && n && s ? 120 : 56,
|
|
838
|
+
maxHeight: s ? 120 : 56,
|
|
839
|
+
backgroundColor: (I) => I.palette.mode === "light" ? I.palette[t].darker : K[t],
|
|
840
840
|
width: "100%",
|
|
841
841
|
"& .MuiAlert-icon": {
|
|
842
|
-
alignSelf:
|
|
842
|
+
alignSelf: s ? "flex-start" : "center"
|
|
843
843
|
},
|
|
844
844
|
"& .MuiAlert-message": {
|
|
845
|
-
paddingTop:
|
|
846
|
-
paddingBottom:
|
|
847
|
-
alignSelf:
|
|
845
|
+
paddingTop: s ? 12 : 8,
|
|
846
|
+
paddingBottom: s ? 12 : 8,
|
|
847
|
+
alignSelf: s ? "flex-start" : "center"
|
|
848
848
|
},
|
|
849
849
|
"& .MuiAlert-action": {
|
|
850
850
|
alignItems: "stretch",
|
|
@@ -857,11 +857,11 @@ const Ne = ({
|
|
|
857
857
|
{
|
|
858
858
|
sx: {
|
|
859
859
|
lineHeight: g.typography.Body.lineHeight,
|
|
860
|
-
whiteSpace:
|
|
861
|
-
overflow:
|
|
862
|
-
textOverflow:
|
|
860
|
+
whiteSpace: s ? "normal" : "nowrap",
|
|
861
|
+
overflow: s ? "visible" : "hidden",
|
|
862
|
+
textOverflow: s ? "clip" : "ellipsis"
|
|
863
863
|
},
|
|
864
|
-
truncate: !
|
|
864
|
+
truncate: !s,
|
|
865
865
|
children: r
|
|
866
866
|
}
|
|
867
867
|
)
|
|
@@ -882,18 +882,18 @@ const Ne = ({
|
|
|
882
882
|
children: e,
|
|
883
883
|
target: o = M.REACT,
|
|
884
884
|
theme: r = x.LIGHT,
|
|
885
|
-
tokenOverrides:
|
|
885
|
+
tokenOverrides: l
|
|
886
886
|
}) => {
|
|
887
|
-
const [
|
|
888
|
-
...
|
|
889
|
-
}), [
|
|
887
|
+
const [t, i] = m.useState(r === x.LIGHT ? V : d0), n = m.useMemo(() => ({
|
|
888
|
+
...l
|
|
889
|
+
}), [l]);
|
|
890
890
|
return m.useEffect(() => {
|
|
891
|
-
const
|
|
892
|
-
|
|
893
|
-
}, [r, o,
|
|
891
|
+
const c = E(r, o, { ...n });
|
|
892
|
+
i(c);
|
|
893
|
+
}, [r, o, n]), o === M.REACT ? /* @__PURE__ */ a(G.Provider, { value: t, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(U.Provider, { value: t, children: e }));
|
|
894
894
|
}, Pe = (e = M.REACT, o = {}) => {
|
|
895
|
-
const r = e === M.REACT ? G : U,
|
|
896
|
-
return
|
|
895
|
+
const r = e === M.REACT ? G : U, l = m.useContext(r);
|
|
896
|
+
return l || E(x.LIGHT, e, { ...o });
|
|
897
897
|
}, p = {
|
|
898
898
|
LIGHT: "light",
|
|
899
899
|
DARK: "dark"
|
|
@@ -1131,8 +1131,8 @@ const A = [...P().shadows];
|
|
|
1131
1131
|
A[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
|
|
1132
1132
|
A[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
|
|
1133
1133
|
A[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
|
|
1134
|
-
const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", H0 = "cubic-bezier(.475,.425,0,.995)", Be = (e) => {
|
|
1135
|
-
const
|
|
1134
|
+
const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", H0 = "cubic-bezier(.475,.425,0,.995)", Be = (e, o = {}) => {
|
|
1135
|
+
const r = L0(e, o), l = E0(r);
|
|
1136
1136
|
return P({
|
|
1137
1137
|
breakpoints: {
|
|
1138
1138
|
values: {
|
|
@@ -1143,13 +1143,13 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
|
|
|
1143
1143
|
xl: 1200
|
|
1144
1144
|
}
|
|
1145
1145
|
},
|
|
1146
|
-
palette:
|
|
1146
|
+
palette: r,
|
|
1147
1147
|
shadows: A,
|
|
1148
1148
|
shape: {
|
|
1149
1149
|
borderRadius: 4
|
|
1150
1150
|
},
|
|
1151
1151
|
spacing: 1,
|
|
1152
|
-
typography:
|
|
1152
|
+
typography: l,
|
|
1153
1153
|
components: {
|
|
1154
1154
|
MuiAutocomplete: {
|
|
1155
1155
|
styleOverrides: {
|
|
@@ -1350,18 +1350,18 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
|
|
|
1350
1350
|
MuiChip: {
|
|
1351
1351
|
styleOverrides: {
|
|
1352
1352
|
outlined: ({ theme: t }) => {
|
|
1353
|
-
const { common: i, grey: n, mode:
|
|
1353
|
+
const { common: i, grey: n, mode: c } = t.palette;
|
|
1354
1354
|
return {
|
|
1355
1355
|
backgroundColor: "transparent",
|
|
1356
|
-
borderColor:
|
|
1356
|
+
borderColor: c === p.LIGHT ? n[600] : n[500],
|
|
1357
1357
|
borderWidth: 1,
|
|
1358
|
-
color:
|
|
1358
|
+
color: c === p.LIGHT ? n[900] : i.white,
|
|
1359
1359
|
fontSize: 11,
|
|
1360
1360
|
// XSmall
|
|
1361
1361
|
height: 24,
|
|
1362
1362
|
"&:hover": {
|
|
1363
|
-
borderColor:
|
|
1364
|
-
backgroundColor:
|
|
1363
|
+
borderColor: c === p.LIGHT ? n[300] : n[600],
|
|
1364
|
+
backgroundColor: c === p.LIGHT ? n[300] : n[600]
|
|
1365
1365
|
}
|
|
1366
1366
|
};
|
|
1367
1367
|
},
|
|
@@ -1628,7 +1628,7 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
|
|
|
1628
1628
|
},
|
|
1629
1629
|
styleOverrides: {
|
|
1630
1630
|
root: ({ ownerState: t, theme: i }) => {
|
|
1631
|
-
const { mode: n, primary:
|
|
1631
|
+
const { mode: n, primary: c } = i.palette;
|
|
1632
1632
|
return {
|
|
1633
1633
|
minHeight: 64,
|
|
1634
1634
|
...!t.disablePadding && {
|
|
@@ -1637,7 +1637,7 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
|
|
|
1637
1637
|
paddingLeft: 24
|
|
1638
1638
|
},
|
|
1639
1639
|
"& .MuiIconButton-root": {
|
|
1640
|
-
color: n === p.LIGHT ?
|
|
1640
|
+
color: n === p.LIGHT ? c.main : c.light
|
|
1641
1641
|
}
|
|
1642
1642
|
};
|
|
1643
1643
|
}
|