@mxenabled/mxui 2.2.9 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +158 -144
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Augmentations.d.ts +4 -0
- package/dist/themes/Palette.d.ts +14 -0
- package/package.json +27 -27
package/dist/index.es.js
CHANGED
|
@@ -34,7 +34,7 @@ import { LicenseInfo as ke } from "@mui/x-license";
|
|
|
34
34
|
const k = ({
|
|
35
35
|
children: e,
|
|
36
36
|
height: i,
|
|
37
|
-
size:
|
|
37
|
+
size: o = 16,
|
|
38
38
|
viewBox: s = "0 0 16 16",
|
|
39
39
|
width: l
|
|
40
40
|
}) => /* @__PURE__ */ a(
|
|
@@ -43,13 +43,13 @@ const k = ({
|
|
|
43
43
|
"aria-hidden": !0,
|
|
44
44
|
className: "mx-kmui-icon",
|
|
45
45
|
focusable: !1,
|
|
46
|
-
height: i ||
|
|
46
|
+
height: i || o,
|
|
47
47
|
viewBox: s,
|
|
48
|
-
width: l ||
|
|
48
|
+
width: l || o,
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
children: e
|
|
51
51
|
}
|
|
52
|
-
), x = ({ color: e, fill: i = !1, name:
|
|
52
|
+
), x = ({ color: e, fill: i = !1, name: o, size: s = 20, sx: l, ...t }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: s, sx: l, ...t }), Ft = ({
|
|
53
53
|
color: e = "currentColor",
|
|
54
54
|
...i
|
|
55
55
|
}) => /* @__PURE__ */ b(k, { ...i, children: [
|
|
@@ -252,7 +252,7 @@ const te = {
|
|
|
252
252
|
], we = 0.625, Pe = ({
|
|
253
253
|
categoryGuid: e,
|
|
254
254
|
icon_ratio: i = we,
|
|
255
|
-
size:
|
|
255
|
+
size: o = 32,
|
|
256
256
|
sx: s = {},
|
|
257
257
|
variant: l = "filled"
|
|
258
258
|
}) => {
|
|
@@ -273,15 +273,15 @@ const te = {
|
|
|
273
273
|
const m = l === "filled" ? t.palette.common.white : c;
|
|
274
274
|
return l === "basic" ? t.palette.text.primary : m;
|
|
275
275
|
},
|
|
276
|
-
height:
|
|
276
|
+
height: o,
|
|
277
277
|
justifyContent: "center",
|
|
278
278
|
sx: [...Array.isArray(s) ? s : [s]],
|
|
279
|
-
width:
|
|
280
|
-
children: /* @__PURE__ */ a(x, { name: n.icon, size:
|
|
279
|
+
width: o,
|
|
280
|
+
children: /* @__PURE__ */ a(x, { name: n.icon, size: o * i })
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
}, _e = ({ items: e, selected: i }) => {
|
|
284
|
-
const
|
|
284
|
+
const o = E(), { setValue: s } = X(), l = Z(), t = e?.map((n) => {
|
|
285
285
|
const c = n.getValue({ isValid: l });
|
|
286
286
|
return {
|
|
287
287
|
label: n.label,
|
|
@@ -305,11 +305,11 @@ const te = {
|
|
|
305
305
|
boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
|
|
306
306
|
},
|
|
307
307
|
"&:hover": {
|
|
308
|
-
bgcolor:
|
|
309
|
-
borderTop: `1px solid ${
|
|
308
|
+
bgcolor: o.palette.action.hover,
|
|
309
|
+
borderTop: `1px solid ${o.palette.secondary.light}`
|
|
310
310
|
},
|
|
311
311
|
"&.Mui-selected": {
|
|
312
|
-
border: `2px solid ${
|
|
312
|
+
border: `2px solid ${o.palette.primary.main} !important`,
|
|
313
313
|
marginTop: "-2px !important",
|
|
314
314
|
color: "primary"
|
|
315
315
|
}
|
|
@@ -322,7 +322,7 @@ const te = {
|
|
|
322
322
|
}, Be = ({
|
|
323
323
|
items: e,
|
|
324
324
|
selected: i,
|
|
325
|
-
selectLabel:
|
|
325
|
+
selectLabel: o
|
|
326
326
|
}) => {
|
|
327
327
|
const { setValue: s } = X(), l = Z(), t = e?.map((n) => {
|
|
328
328
|
const c = n.getValue({ isValid: l });
|
|
@@ -339,7 +339,7 @@ const te = {
|
|
|
339
339
|
{
|
|
340
340
|
defaultValue: i,
|
|
341
341
|
id: "select",
|
|
342
|
-
label:
|
|
342
|
+
label: o,
|
|
343
343
|
select: !0,
|
|
344
344
|
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
|
|
345
345
|
sx: { width: "100%" },
|
|
@@ -349,7 +349,7 @@ const te = {
|
|
|
349
349
|
}
|
|
350
350
|
) });
|
|
351
351
|
}, ze = (e) => {
|
|
352
|
-
const { toolbar: i, content:
|
|
352
|
+
const { toolbar: i, content: o, shortcuts: s, ownerState: l } = Ce(e);
|
|
353
353
|
return /* @__PURE__ */ b(
|
|
354
354
|
Se,
|
|
355
355
|
{
|
|
@@ -378,7 +378,7 @@ const te = {
|
|
|
378
378
|
{
|
|
379
379
|
className: D.contentWrapper,
|
|
380
380
|
ownerState: l,
|
|
381
|
-
children:
|
|
381
|
+
children: o
|
|
382
382
|
}
|
|
383
383
|
)
|
|
384
384
|
]
|
|
@@ -387,16 +387,16 @@ const te = {
|
|
|
387
387
|
}, kt = ({
|
|
388
388
|
copy: e,
|
|
389
389
|
dateRange: i,
|
|
390
|
-
onRangeChanged:
|
|
390
|
+
onRangeChanged: o,
|
|
391
391
|
selectedShortcut: s = e.dateRangeThisMonth,
|
|
392
392
|
sx: l = {}
|
|
393
393
|
}) => {
|
|
394
394
|
const t = E(), n = ge(t.breakpoints.down("sm")), c = N.useMemo(() => {
|
|
395
|
-
const
|
|
395
|
+
const r = ue(), m = pe(r, 1), T = he(r, 1);
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
398
|
label: e.dateRangeThisMonth,
|
|
399
|
-
getValue: () => [G(
|
|
399
|
+
getValue: () => [G(r), U(r)]
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
label: e.dateRangeLastMonth,
|
|
@@ -404,15 +404,15 @@ const te = {
|
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
label: e.dateRangeLast30Days,
|
|
407
|
-
getValue: () => [W(
|
|
407
|
+
getValue: () => [W(r, 30), r]
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
label: e.dateRangeLast90Days,
|
|
411
|
-
getValue: () => [W(
|
|
411
|
+
getValue: () => [W(r, 90), r]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
label: e.dateRangeYTD,
|
|
415
|
-
getValue: () => [V(
|
|
415
|
+
getValue: () => [V(r), r]
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
label: e.dateRangeLastYear,
|
|
@@ -420,12 +420,12 @@ const te = {
|
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
label: e.dateRangeCustom,
|
|
423
|
-
getValue: () => [
|
|
423
|
+
getValue: () => [r, r]
|
|
424
424
|
}
|
|
425
425
|
];
|
|
426
|
-
}, [e]), d = (
|
|
426
|
+
}, [e]), d = (r, m) => {
|
|
427
427
|
const T = m.shortcut;
|
|
428
|
-
|
|
428
|
+
o?.(r, T ? T.label : e.dateRangeCustom);
|
|
429
429
|
};
|
|
430
430
|
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
|
|
431
431
|
fe,
|
|
@@ -458,22 +458,22 @@ const te = {
|
|
|
458
458
|
slots: {
|
|
459
459
|
...n && { layout: ze },
|
|
460
460
|
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
461
|
-
shortcuts: (
|
|
461
|
+
shortcuts: (r) => n ? /* @__PURE__ */ a(
|
|
462
462
|
Be,
|
|
463
463
|
{
|
|
464
464
|
selectLabel: e.dateRangeSelectARange,
|
|
465
465
|
selected: s,
|
|
466
|
-
...
|
|
466
|
+
...r
|
|
467
467
|
}
|
|
468
|
-
) : /* @__PURE__ */ a(_e, { selected: s, ...
|
|
468
|
+
) : /* @__PURE__ */ a(_e, { selected: s, ...r }),
|
|
469
469
|
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
|
|
470
470
|
...n && {
|
|
471
|
-
toolbar: (
|
|
471
|
+
toolbar: (r) => /* @__PURE__ */ a(
|
|
472
472
|
Te,
|
|
473
473
|
{
|
|
474
474
|
dateSeparator: "",
|
|
475
475
|
format: "MM/dd/yyyy",
|
|
476
|
-
...
|
|
476
|
+
...r,
|
|
477
477
|
slotProps: {
|
|
478
478
|
textField: ({ position: m }) => ({
|
|
479
479
|
label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
@@ -488,12 +488,12 @@ const te = {
|
|
|
488
488
|
value: i
|
|
489
489
|
}
|
|
490
490
|
) }) });
|
|
491
|
-
}, Ht = N.forwardRef(function(i,
|
|
492
|
-
return /* @__PURE__ */ a(q, { direction: "up", ref:
|
|
491
|
+
}, Ht = N.forwardRef(function(i, o) {
|
|
492
|
+
return /* @__PURE__ */ a(q, { direction: "up", ref: o, ...i });
|
|
493
493
|
}), $e = ({
|
|
494
494
|
hasSecondaryAction: e = !0,
|
|
495
495
|
isPrimaryDisabled: i,
|
|
496
|
-
onPrimaryAction:
|
|
496
|
+
onPrimaryAction: o,
|
|
497
497
|
onSecondaryAction: s,
|
|
498
498
|
primaryColor: l = "primary",
|
|
499
499
|
primaryText: t = "Save",
|
|
@@ -512,16 +512,16 @@ const te = {
|
|
|
512
512
|
{
|
|
513
513
|
color: n,
|
|
514
514
|
onClick: s,
|
|
515
|
-
variant:
|
|
515
|
+
variant: o ? "outlined" : "contained",
|
|
516
516
|
children: c
|
|
517
517
|
}
|
|
518
518
|
),
|
|
519
|
-
|
|
519
|
+
o && /* @__PURE__ */ a(
|
|
520
520
|
B,
|
|
521
521
|
{
|
|
522
522
|
color: l,
|
|
523
523
|
disabled: i,
|
|
524
|
-
onClick:
|
|
524
|
+
onClick: o,
|
|
525
525
|
variant: "contained",
|
|
526
526
|
children: t
|
|
527
527
|
}
|
|
@@ -531,7 +531,7 @@ const te = {
|
|
|
531
531
|
), F = ({
|
|
532
532
|
bold: e,
|
|
533
533
|
className: i = "",
|
|
534
|
-
children:
|
|
534
|
+
children: o,
|
|
535
535
|
color: s,
|
|
536
536
|
sx: l = {},
|
|
537
537
|
truncate: t,
|
|
@@ -557,9 +557,9 @@ const te = {
|
|
|
557
557
|
...Array.isArray(l) ? l : [l]
|
|
558
558
|
],
|
|
559
559
|
...c,
|
|
560
|
-
children:
|
|
560
|
+
children: o
|
|
561
561
|
}
|
|
562
|
-
), Ue = ({ className: e = "", children: i, ...
|
|
562
|
+
), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
|
|
563
563
|
A,
|
|
564
564
|
{
|
|
565
565
|
sx: {
|
|
@@ -577,24 +577,24 @@ const te = {
|
|
|
577
577
|
), Bt = ({
|
|
578
578
|
className: e,
|
|
579
579
|
disableSave: i,
|
|
580
|
-
id:
|
|
580
|
+
id: o,
|
|
581
581
|
isOpen: s,
|
|
582
582
|
onClose: l,
|
|
583
583
|
onSave: t,
|
|
584
584
|
primaryText: n,
|
|
585
585
|
secondaryText: c,
|
|
586
586
|
children: d,
|
|
587
|
-
...
|
|
587
|
+
...r
|
|
588
588
|
}) => /* @__PURE__ */ b(
|
|
589
589
|
Ie,
|
|
590
590
|
{
|
|
591
591
|
anchor: "right",
|
|
592
592
|
className: `mx-kmui-drawer ${e}`,
|
|
593
|
-
id:
|
|
593
|
+
id: o ?? void 0,
|
|
594
594
|
onClose: l,
|
|
595
595
|
open: s,
|
|
596
596
|
variant: "temporary",
|
|
597
|
-
...
|
|
597
|
+
...r,
|
|
598
598
|
children: [
|
|
599
599
|
d,
|
|
600
600
|
t && /* @__PURE__ */ a(
|
|
@@ -609,11 +609,11 @@ const te = {
|
|
|
609
609
|
)
|
|
610
610
|
]
|
|
611
611
|
}
|
|
612
|
-
),
|
|
612
|
+
), re = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zt = ({
|
|
613
613
|
alt: e,
|
|
614
614
|
institutionGuid: i,
|
|
615
|
-
logoUrl:
|
|
616
|
-
size: s =
|
|
615
|
+
logoUrl: o,
|
|
616
|
+
size: s = re,
|
|
617
617
|
...l
|
|
618
618
|
}) => /* @__PURE__ */ a(
|
|
619
619
|
"img",
|
|
@@ -624,7 +624,7 @@ const te = {
|
|
|
624
624
|
const n = t.target;
|
|
625
625
|
n.src !== K && (n.src = K);
|
|
626
626
|
},
|
|
627
|
-
src:
|
|
627
|
+
src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
628
628
|
style: {
|
|
629
629
|
borderRadius: 4
|
|
630
630
|
},
|
|
@@ -634,20 +634,20 @@ const te = {
|
|
|
634
634
|
), $t = ({
|
|
635
635
|
alt: e = "",
|
|
636
636
|
categoryGuid: i,
|
|
637
|
-
merchantGuid:
|
|
638
|
-
size: s =
|
|
637
|
+
merchantGuid: o,
|
|
638
|
+
size: s = re,
|
|
639
639
|
...l
|
|
640
640
|
}) => {
|
|
641
641
|
const [t, n] = N.useState(!1), c = E();
|
|
642
642
|
return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
|
|
643
|
-
|
|
643
|
+
o && !t && /* @__PURE__ */ a(
|
|
644
644
|
"img",
|
|
645
645
|
{
|
|
646
646
|
alt: e,
|
|
647
647
|
"aria-hidden": !e,
|
|
648
648
|
height: s,
|
|
649
649
|
onError: () => n(!0),
|
|
650
|
-
src: `${z}/merchant_logos/${
|
|
650
|
+
src: `${z}/merchant_logos/${o}.png`,
|
|
651
651
|
style: {
|
|
652
652
|
backgroundColor: c.palette.common.white,
|
|
653
653
|
borderRadius: 4,
|
|
@@ -662,14 +662,14 @@ const te = {
|
|
|
662
662
|
}, Ut = ({
|
|
663
663
|
disabled: e = !1,
|
|
664
664
|
label: i = "",
|
|
665
|
-
shrink:
|
|
665
|
+
shrink: o = !0,
|
|
666
666
|
variant: s = "outlined",
|
|
667
667
|
...l
|
|
668
668
|
}) => /* @__PURE__ */ a(
|
|
669
669
|
J,
|
|
670
670
|
{
|
|
671
671
|
InputLabelProps: {
|
|
672
|
-
shrink:
|
|
672
|
+
shrink: o
|
|
673
673
|
},
|
|
674
674
|
disabled: e,
|
|
675
675
|
label: i,
|
|
@@ -683,17 +683,17 @@ function Ge(e) {
|
|
|
683
683
|
const Gt = ({
|
|
684
684
|
open: e = !0,
|
|
685
685
|
handleClose: i,
|
|
686
|
-
closeAriaLabel:
|
|
686
|
+
closeAriaLabel: o,
|
|
687
687
|
message: s,
|
|
688
688
|
autoHideDuration: l = 3e3,
|
|
689
689
|
severity: t = "success",
|
|
690
690
|
snackbarSx: n,
|
|
691
691
|
showAction: c = !1,
|
|
692
692
|
showClose: d = !1,
|
|
693
|
-
actionText:
|
|
693
|
+
actionText: r = "Undo",
|
|
694
694
|
onActionClick: m
|
|
695
695
|
}) => {
|
|
696
|
-
const T = E(), v = d && /* @__PURE__ */ a(ee, { "aria-label":
|
|
696
|
+
const T = E(), v = d && /* @__PURE__ */ a(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(x, { fill: !0, name: "close" }) }), g = `${t}.main`;
|
|
697
697
|
return /* @__PURE__ */ a(
|
|
698
698
|
Ee,
|
|
699
699
|
{
|
|
@@ -766,7 +766,7 @@ const Gt = ({
|
|
|
766
766
|
minWidth: "auto",
|
|
767
767
|
justifyContent: "flex-start"
|
|
768
768
|
},
|
|
769
|
-
children:
|
|
769
|
+
children: r
|
|
770
770
|
}
|
|
771
771
|
)
|
|
772
772
|
]
|
|
@@ -779,23 +779,23 @@ const Gt = ({
|
|
|
779
779
|
}, Vt = ({
|
|
780
780
|
component: e = P,
|
|
781
781
|
variant: i = "outlined",
|
|
782
|
-
selected:
|
|
782
|
+
selected: o,
|
|
783
783
|
onChange: s,
|
|
784
784
|
headline: l,
|
|
785
785
|
message: t,
|
|
786
786
|
name: n,
|
|
787
787
|
value: c,
|
|
788
788
|
disabled: d = !1,
|
|
789
|
-
error:
|
|
789
|
+
error: r = !1,
|
|
790
790
|
icon: m = !1,
|
|
791
791
|
sx: T = {},
|
|
792
792
|
...v
|
|
793
793
|
}) => {
|
|
794
|
-
const g = E(),
|
|
794
|
+
const g = E(), oe = () => g.palette.background.paper, H = () => r ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : g.shadows[1], ie = () => d || r ? g.palette.background.paper : f(g.palette.primary.main, 0.1), ae = () => d || r ? H() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.primary.main, 0.5)}` : H(), ne = () => d || r ? g.palette.background.paper : f(g.palette.primary.main, 0.3);
|
|
795
795
|
return /* @__PURE__ */ a(
|
|
796
796
|
Fe,
|
|
797
797
|
{
|
|
798
|
-
checked:
|
|
798
|
+
checked: o,
|
|
799
799
|
control: e === P ? /* @__PURE__ */ a(
|
|
800
800
|
P,
|
|
801
801
|
{
|
|
@@ -846,7 +846,7 @@ const Gt = ({
|
|
|
846
846
|
mb: 16,
|
|
847
847
|
cursor: d ? "not-allowed" : "pointer",
|
|
848
848
|
opacity: d ? 0.6 : 1,
|
|
849
|
-
backgroundColor:
|
|
849
|
+
backgroundColor: oe(),
|
|
850
850
|
border: "none",
|
|
851
851
|
boxShadow: H(),
|
|
852
852
|
boxSizing: "border-box",
|
|
@@ -952,7 +952,7 @@ const Gt = ({
|
|
|
952
952
|
TRAVEL: "#76ACF7",
|
|
953
953
|
UNCATEGORIZED: "#BCC6D4"
|
|
954
954
|
}, je = (e, i) => {
|
|
955
|
-
const
|
|
955
|
+
const o = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY), l = R(i?.error || C.ERROR), t = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), r = e === I.LIGHT;
|
|
956
956
|
return {
|
|
957
957
|
mode: e,
|
|
958
958
|
common: {
|
|
@@ -960,90 +960,104 @@ const Gt = ({
|
|
|
960
960
|
black: _
|
|
961
961
|
},
|
|
962
962
|
primary: {
|
|
963
|
-
...
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
963
|
+
...o,
|
|
964
|
+
lighter: r ? o[100] : o[700],
|
|
965
|
+
light: r ? o[300] : o[600],
|
|
966
|
+
main: r ? o[500] : o[400],
|
|
967
|
+
dark: r ? o[700] : o[200],
|
|
968
|
+
darker: r ? o[800] : o[100]
|
|
967
969
|
},
|
|
968
970
|
secondary: {
|
|
969
971
|
...s,
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
972
|
+
lighter: r ? s[100] : s[800],
|
|
973
|
+
light: r ? s[300] : s[600],
|
|
974
|
+
main: r ? s[500] : s[400],
|
|
975
|
+
dark: r ? s[700] : s[200],
|
|
976
|
+
darker: r ? s[800] : s[100]
|
|
973
977
|
},
|
|
974
978
|
neutral: {
|
|
975
979
|
...d,
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
+
lighter: r ? d[100] : d[800],
|
|
981
|
+
light: r ? d[300] : d[600],
|
|
982
|
+
main: r ? d[500] : d[400],
|
|
983
|
+
dark: r ? d[700] : d[200],
|
|
984
|
+
darker: r ? d[800] : d[100],
|
|
985
|
+
contrastText: Le(r ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
|
|
980
986
|
},
|
|
981
987
|
text: {
|
|
982
|
-
primary:
|
|
983
|
-
secondary:
|
|
984
|
-
disabled:
|
|
988
|
+
primary: r ? d[900] : M,
|
|
989
|
+
secondary: r ? d[600] : f(M, 0.7),
|
|
990
|
+
disabled: r ? d[500] : f(M, 0.38)
|
|
985
991
|
},
|
|
986
992
|
error: {
|
|
987
993
|
...l,
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
994
|
+
lighter: r ? l[100] : l[700],
|
|
995
|
+
light: r ? l[300] : l[600],
|
|
996
|
+
main: r ? l[500] : l[400],
|
|
997
|
+
dark: r ? l[700] : l[200],
|
|
998
|
+
darker: r ? l[800] : l[100]
|
|
991
999
|
},
|
|
992
1000
|
warning: {
|
|
993
1001
|
...t,
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1002
|
+
lighter: r ? t[100] : t[700],
|
|
1003
|
+
light: r ? t[300] : t[600],
|
|
1004
|
+
main: r ? t[500] : t[400],
|
|
1005
|
+
dark: r ? t[700] : t[200],
|
|
1006
|
+
darker: r ? t[800] : t[100]
|
|
997
1007
|
},
|
|
998
1008
|
info: {
|
|
999
1009
|
...n,
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1010
|
+
lighter: r ? n[100] : n[700],
|
|
1011
|
+
light: r ? n[300] : n[600],
|
|
1012
|
+
main: r ? n[500] : n[400],
|
|
1013
|
+
dark: r ? n[700] : n[200],
|
|
1014
|
+
darker: r ? n[800] : n[100]
|
|
1003
1015
|
},
|
|
1004
1016
|
success: {
|
|
1005
1017
|
...c,
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1018
|
+
lighter: r ? c[100] : c[700],
|
|
1019
|
+
light: r ? c[300] : c[600],
|
|
1020
|
+
main: r ? c[500] : c[400],
|
|
1021
|
+
dark: r ? c[700] : c[200],
|
|
1022
|
+
darker: r ? c[800] : c[100]
|
|
1009
1023
|
},
|
|
1010
1024
|
grey: d,
|
|
1011
1025
|
action: {
|
|
1012
|
-
active:
|
|
1013
|
-
hoverOpacity:
|
|
1014
|
-
selectedOpacity:
|
|
1026
|
+
active: r ? f(_, 0.56) : f(M, 0.56),
|
|
1027
|
+
hoverOpacity: r ? 0.1 : 0.2,
|
|
1028
|
+
selectedOpacity: r ? 0.16 : 0.25,
|
|
1015
1029
|
focusOpacity: 0.3
|
|
1016
1030
|
},
|
|
1017
1031
|
background: {
|
|
1018
|
-
default:
|
|
1019
|
-
paper:
|
|
1020
|
-
highlight:
|
|
1021
|
-
highlightPrimary:
|
|
1032
|
+
default: r ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
|
|
1033
|
+
paper: r ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
|
|
1034
|
+
highlight: r ? d[200] : d[600],
|
|
1035
|
+
highlightPrimary: r ? o[100] : o[500]
|
|
1022
1036
|
},
|
|
1023
|
-
divider:
|
|
1037
|
+
divider: r ? f(_, 0.12) : f(M, 0.24),
|
|
1024
1038
|
categories: {
|
|
1025
|
-
autoTransport:
|
|
1026
|
-
billsUtilities:
|
|
1027
|
-
businessServices:
|
|
1028
|
-
education:
|
|
1029
|
-
entertainment:
|
|
1030
|
-
feesCharges:
|
|
1031
|
-
financial:
|
|
1032
|
-
foodDining:
|
|
1033
|
-
giftsDonations:
|
|
1034
|
-
healthFitness:
|
|
1035
|
-
home:
|
|
1036
|
-
income:
|
|
1037
|
-
investments:
|
|
1038
|
-
kids:
|
|
1039
|
-
others:
|
|
1040
|
-
personalCare:
|
|
1041
|
-
pets:
|
|
1042
|
-
shopping:
|
|
1043
|
-
taxes:
|
|
1044
|
-
transfer:
|
|
1045
|
-
travel:
|
|
1046
|
-
uncategorized:
|
|
1039
|
+
autoTransport: r ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
|
|
1040
|
+
billsUtilities: r ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
|
|
1041
|
+
businessServices: r ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
|
|
1042
|
+
education: r ? u.EDUCATION : p.EDUCATION,
|
|
1043
|
+
entertainment: r ? u.ENTERTAINMENT : p.ENTERTAINMENT,
|
|
1044
|
+
feesCharges: r ? u.FEES_CHARGES : p.FEES_CHARGES,
|
|
1045
|
+
financial: r ? u.FINANCIAL : p.FINANCIAL,
|
|
1046
|
+
foodDining: r ? u.FOOD_DINING : p.FOOD_DINING,
|
|
1047
|
+
giftsDonations: r ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
|
|
1048
|
+
healthFitness: r ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
|
|
1049
|
+
home: r ? u.HOME : p.HOME,
|
|
1050
|
+
income: r ? u.INCOME : p.INCOME,
|
|
1051
|
+
investments: r ? u.INVESTMENTS : p.INVESTMENTS,
|
|
1052
|
+
kids: r ? u.KIDS : p.KIDS,
|
|
1053
|
+
others: r ? u.OTHERS : p.OTHERS,
|
|
1054
|
+
personalCare: r ? u.PERSONAL_CARE : p.PERSONAL_CARE,
|
|
1055
|
+
pets: r ? u.PETS : p.PETS,
|
|
1056
|
+
shopping: r ? u.SHOPPING : p.SHOPPING,
|
|
1057
|
+
taxes: r ? u.TAXES : p.TAXES,
|
|
1058
|
+
transfer: r ? u.TRANSFER : p.TRANSFER,
|
|
1059
|
+
travel: r ? u.TRAVEL : p.TRAVEL,
|
|
1060
|
+
uncategorized: r ? u.UNCATEGORIZED : p.UNCATEGORIZED
|
|
1047
1061
|
},
|
|
1048
1062
|
chart: {
|
|
1049
1063
|
chart1: S.CHART1,
|
|
@@ -1127,7 +1141,7 @@ ke.setLicenseKey(
|
|
|
1127
1141
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1128
1142
|
);
|
|
1129
1143
|
const Wt = (e, i) => {
|
|
1130
|
-
const
|
|
1144
|
+
const o = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions), l = [...$().shadows];
|
|
1131
1145
|
return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", $({
|
|
1132
1146
|
breakpoints: {
|
|
1133
1147
|
values: {
|
|
@@ -1139,7 +1153,7 @@ const Wt = (e, i) => {
|
|
|
1139
1153
|
}
|
|
1140
1154
|
},
|
|
1141
1155
|
cssVariables: !0,
|
|
1142
|
-
palette:
|
|
1156
|
+
palette: o,
|
|
1143
1157
|
shape: {
|
|
1144
1158
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1145
1159
|
},
|
|
@@ -1163,8 +1177,8 @@ const Wt = (e, i) => {
|
|
|
1163
1177
|
const c = n.severity || "info";
|
|
1164
1178
|
let d = t.palette.mode === I.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
|
|
1165
1179
|
if (n.variant === "filled") {
|
|
1166
|
-
const
|
|
1167
|
-
d = t.palette[c]?.[
|
|
1180
|
+
const r = c === "warning";
|
|
1181
|
+
d = t.palette[c]?.[r ? 400 : 600];
|
|
1168
1182
|
}
|
|
1169
1183
|
return {
|
|
1170
1184
|
backgroundColor: d,
|
|
@@ -1249,7 +1263,7 @@ const Wt = (e, i) => {
|
|
|
1249
1263
|
styleOverrides: {
|
|
1250
1264
|
root: {
|
|
1251
1265
|
"&.Mui-focusVisible": {
|
|
1252
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1266
|
+
boxShadow: `inset 0 0 0 2px ${o.info.main}`
|
|
1253
1267
|
}
|
|
1254
1268
|
}
|
|
1255
1269
|
}
|
|
@@ -1411,7 +1425,7 @@ const Wt = (e, i) => {
|
|
|
1411
1425
|
MuiFormLabel: {
|
|
1412
1426
|
styleOverrides: {
|
|
1413
1427
|
asterisk: {
|
|
1414
|
-
color:
|
|
1428
|
+
color: o.error.main
|
|
1415
1429
|
}
|
|
1416
1430
|
}
|
|
1417
1431
|
},
|
|
@@ -1459,7 +1473,7 @@ const Wt = (e, i) => {
|
|
|
1459
1473
|
borderRadius: 4
|
|
1460
1474
|
},
|
|
1461
1475
|
colorPrimary: {
|
|
1462
|
-
backgroundColor:
|
|
1476
|
+
backgroundColor: o.grey[300]
|
|
1463
1477
|
}
|
|
1464
1478
|
}
|
|
1465
1479
|
},
|
|
@@ -1565,7 +1579,7 @@ const Wt = (e, i) => {
|
|
|
1565
1579
|
},
|
|
1566
1580
|
secondary: {
|
|
1567
1581
|
fontSize: 11,
|
|
1568
|
-
color:
|
|
1582
|
+
color: o.text.secondary
|
|
1569
1583
|
}
|
|
1570
1584
|
}
|
|
1571
1585
|
},
|
|
@@ -1586,7 +1600,7 @@ const Wt = (e, i) => {
|
|
|
1586
1600
|
lineHeight: "inherit",
|
|
1587
1601
|
top: -1,
|
|
1588
1602
|
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1589
|
-
backgroundColor:
|
|
1603
|
+
backgroundColor: o.background.default
|
|
1590
1604
|
}
|
|
1591
1605
|
}
|
|
1592
1606
|
},
|
|
@@ -1756,7 +1770,7 @@ const Wt = (e, i) => {
|
|
|
1756
1770
|
fontWeight: 600,
|
|
1757
1771
|
"&.Mui-focusVisible": {
|
|
1758
1772
|
outline: "none",
|
|
1759
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1773
|
+
boxShadow: `inset 0 0 0 2px ${o.info.main}`,
|
|
1760
1774
|
borderRadius: 4
|
|
1761
1775
|
}
|
|
1762
1776
|
}
|
|
@@ -1767,7 +1781,7 @@ const Wt = (e, i) => {
|
|
|
1767
1781
|
root: {
|
|
1768
1782
|
borderBottomStyle: "solid",
|
|
1769
1783
|
borderBottomWidth: 1,
|
|
1770
|
-
borderColor:
|
|
1784
|
+
borderColor: o.divider,
|
|
1771
1785
|
marginBottom: 8
|
|
1772
1786
|
}
|
|
1773
1787
|
}
|
|
@@ -1783,7 +1797,7 @@ const Wt = (e, i) => {
|
|
|
1783
1797
|
},
|
|
1784
1798
|
styleOverrides: {
|
|
1785
1799
|
root: {
|
|
1786
|
-
backgroundColor:
|
|
1800
|
+
backgroundColor: o.background.paper
|
|
1787
1801
|
}
|
|
1788
1802
|
}
|
|
1789
1803
|
},
|
|
@@ -1798,13 +1812,13 @@ const Wt = (e, i) => {
|
|
|
1798
1812
|
lineHeight: "16px",
|
|
1799
1813
|
textTransform: "none",
|
|
1800
1814
|
"&:focus-visible": {
|
|
1801
|
-
outline: `2px solid ${
|
|
1815
|
+
outline: `2px solid ${o.info.main}`,
|
|
1802
1816
|
outlineOffset: "2px"
|
|
1803
1817
|
},
|
|
1804
1818
|
"&:hover": {
|
|
1805
1819
|
backgroundColor: f(
|
|
1806
1820
|
t.palette.primary.main,
|
|
1807
|
-
|
|
1821
|
+
o.mode === I.LIGHT ? 0.1 : 0.2
|
|
1808
1822
|
),
|
|
1809
1823
|
borderColor: t.palette.primary.main
|
|
1810
1824
|
},
|
|
@@ -1828,19 +1842,19 @@ const Wt = (e, i) => {
|
|
|
1828
1842
|
props: { color: "error" },
|
|
1829
1843
|
style: {
|
|
1830
1844
|
"&:hover": {
|
|
1831
|
-
backgroundColor: f(
|
|
1832
|
-
borderColor:
|
|
1845
|
+
backgroundColor: f(o.error.main, o.mode === I.LIGHT ? 0.1 : 0.2),
|
|
1846
|
+
borderColor: o.error.main
|
|
1833
1847
|
},
|
|
1834
1848
|
"&.Mui-selected": {
|
|
1835
|
-
borderColor:
|
|
1849
|
+
borderColor: o.error.main,
|
|
1836
1850
|
"&:hover": {
|
|
1837
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1851
|
+
boxShadow: `inset 0px 0px 0px 2px ${o.error.main}`
|
|
1838
1852
|
}
|
|
1839
1853
|
},
|
|
1840
1854
|
"& .MuiTouchRipple-root": {
|
|
1841
1855
|
"& .MuiTouchRipple-ripple": {
|
|
1842
1856
|
"& .MuiTouchRipple-child": {
|
|
1843
|
-
backgroundColor:
|
|
1857
|
+
backgroundColor: o.error.main
|
|
1844
1858
|
}
|
|
1845
1859
|
}
|
|
1846
1860
|
}
|
|
@@ -1851,21 +1865,21 @@ const Wt = (e, i) => {
|
|
|
1851
1865
|
style: {
|
|
1852
1866
|
"&:hover": {
|
|
1853
1867
|
backgroundColor: f(
|
|
1854
|
-
|
|
1855
|
-
|
|
1868
|
+
o.secondary.main,
|
|
1869
|
+
o.mode === I.LIGHT ? 0.1 : 0.2
|
|
1856
1870
|
),
|
|
1857
|
-
borderColor:
|
|
1871
|
+
borderColor: o.secondary.main
|
|
1858
1872
|
},
|
|
1859
1873
|
"&.Mui-selected": {
|
|
1860
|
-
borderColor:
|
|
1874
|
+
borderColor: o.secondary.main,
|
|
1861
1875
|
"&:hover": {
|
|
1862
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1876
|
+
boxShadow: `inset 0px 0px 0px 2px ${o.secondary.main}`
|
|
1863
1877
|
}
|
|
1864
1878
|
},
|
|
1865
1879
|
"& .MuiTouchRipple-root": {
|
|
1866
1880
|
"& .MuiTouchRipple-ripple": {
|
|
1867
1881
|
"& .MuiTouchRipple-child": {
|
|
1868
|
-
backgroundColor:
|
|
1882
|
+
backgroundColor: o.secondary.main
|
|
1869
1883
|
}
|
|
1870
1884
|
}
|
|
1871
1885
|
}
|