@mxenabled/mxui 2.2.3 → 2.2.5
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 +248 -247
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12,7 +12,7 @@ import { subDays as W } from "date-fns/subDays";
|
|
|
12
12
|
import { subMonths as ue } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as he } from "date-fns/subYears";
|
|
14
14
|
import ge from "@mui/material/useMediaQuery";
|
|
15
|
-
import { usePickerContext as j, useIsValidValue as Z, LocalizationProvider as
|
|
15
|
+
import { usePickerContext as j, useIsValidValue as Z, LocalizationProvider as fe, StaticDateRangePicker as me } from "@mui/x-date-pickers-pro";
|
|
16
16
|
import { AdapterDateFns as be } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
17
|
import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
18
18
|
import Q from "@mui/material/Box";
|
|
@@ -24,17 +24,17 @@ import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWra
|
|
|
24
24
|
import q from "@mui/material/Slide";
|
|
25
25
|
import B from "@mui/material/Button";
|
|
26
26
|
import ee from "@mui/material/IconButton";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
27
|
+
import Ie from "@mui/material/Typography";
|
|
28
|
+
import ye from "@mui/material/Drawer";
|
|
29
29
|
import Ee from "@mui/material/Snackbar";
|
|
30
30
|
import Oe from "@mui/material/Alert";
|
|
31
|
-
import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as
|
|
31
|
+
import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as m, darken as N, lighten as O, getContrastRatio as Ne } from "@mui/material";
|
|
32
32
|
import { circularProgressClasses as He } from "@mui/material/CircularProgress";
|
|
33
33
|
import { LicenseInfo as Le } from "@mui/x-license";
|
|
34
34
|
const L = ({
|
|
35
35
|
children: e,
|
|
36
36
|
height: i,
|
|
37
|
-
size:
|
|
37
|
+
size: r = 16,
|
|
38
38
|
viewBox: s = "0 0 16 16",
|
|
39
39
|
width: l
|
|
40
40
|
}) => /* @__PURE__ */ a(
|
|
@@ -43,13 +43,13 @@ const L = ({
|
|
|
43
43
|
"aria-hidden": !0,
|
|
44
44
|
className: "mx-kmui-icon",
|
|
45
45
|
focusable: !1,
|
|
46
|
-
height: i ||
|
|
46
|
+
height: i || r,
|
|
47
47
|
viewBox: s,
|
|
48
|
-
width: l ||
|
|
48
|
+
width: l || r,
|
|
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: r, size: s = 20, sx: l, ...t }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: r, size: s, sx: l, ...t }), Ft = ({
|
|
53
53
|
color: e = "currentColor",
|
|
54
54
|
...i
|
|
55
55
|
}) => /* @__PURE__ */ b(L, { ...i, children: [
|
|
@@ -252,14 +252,14 @@ const te = {
|
|
|
252
252
|
], we = 0.625, Pe = ({
|
|
253
253
|
categoryGuid: e,
|
|
254
254
|
icon_ratio: i = we,
|
|
255
|
-
size:
|
|
255
|
+
size: r = 32,
|
|
256
256
|
sx: s = {},
|
|
257
257
|
variant: l = "filled"
|
|
258
258
|
}) => {
|
|
259
|
-
const
|
|
259
|
+
const t = E(), n = H.useMemo(
|
|
260
260
|
() => De.find((p) => p.guid === e) ?? te,
|
|
261
261
|
[e]
|
|
262
|
-
), c =
|
|
262
|
+
), c = t.palette.categories[n.colorName];
|
|
263
263
|
return /* @__PURE__ */ a(
|
|
264
264
|
A,
|
|
265
265
|
{
|
|
@@ -270,18 +270,18 @@ const te = {
|
|
|
270
270
|
},
|
|
271
271
|
borderRadius: 1,
|
|
272
272
|
color: () => {
|
|
273
|
-
const p = l === "filled" ?
|
|
274
|
-
return l === "basic" ?
|
|
273
|
+
const p = l === "filled" ? t.palette.common.white : c;
|
|
274
|
+
return l === "basic" ? t.palette.text.primary : p;
|
|
275
275
|
},
|
|
276
|
-
height:
|
|
276
|
+
height: r,
|
|
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: r,
|
|
280
|
+
children: /* @__PURE__ */ a(x, { name: n.icon, size: r * i })
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
}, _e = ({ items: e, selected: i }) => {
|
|
284
|
-
const
|
|
284
|
+
const r = E(), { setValue: s } = j(), l = Z(), t = e?.map((n) => {
|
|
285
285
|
const c = n.getValue({ isValid: l });
|
|
286
286
|
return {
|
|
287
287
|
label: n.label,
|
|
@@ -291,7 +291,7 @@ const te = {
|
|
|
291
291
|
disabled: !l(c)
|
|
292
292
|
};
|
|
293
293
|
});
|
|
294
|
-
return /* @__PURE__ */ a(Q, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: i, children:
|
|
294
|
+
return /* @__PURE__ */ a(Q, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: i, children: t?.map((n) => /* @__PURE__ */ a(
|
|
295
295
|
xe,
|
|
296
296
|
{
|
|
297
297
|
onClick: n.onClick,
|
|
@@ -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: r.palette.action.hover,
|
|
309
|
+
borderTop: `1px solid ${r.palette.secondary.light}`
|
|
310
310
|
},
|
|
311
311
|
"&.Mui-selected": {
|
|
312
|
-
border: `2px solid ${
|
|
312
|
+
border: `2px solid ${r.palette.primary.main} !important`,
|
|
313
313
|
marginTop: "-2px !important",
|
|
314
314
|
color: "primary"
|
|
315
315
|
}
|
|
@@ -322,9 +322,9 @@ const te = {
|
|
|
322
322
|
}, Be = ({
|
|
323
323
|
items: e,
|
|
324
324
|
selected: i,
|
|
325
|
-
selectLabel:
|
|
325
|
+
selectLabel: r
|
|
326
326
|
}) => {
|
|
327
|
-
const { setValue: s } = j(), l = Z(),
|
|
327
|
+
const { setValue: s } = j(), l = Z(), t = e?.map((n) => {
|
|
328
328
|
const c = n.getValue({ isValid: l });
|
|
329
329
|
return {
|
|
330
330
|
label: n.label,
|
|
@@ -339,17 +339,17 @@ const te = {
|
|
|
339
339
|
{
|
|
340
340
|
defaultValue: i,
|
|
341
341
|
id: "select",
|
|
342
|
-
label:
|
|
342
|
+
label: r,
|
|
343
343
|
select: !0,
|
|
344
344
|
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
|
|
345
345
|
sx: { width: "100%" },
|
|
346
346
|
value: i,
|
|
347
347
|
variant: "outlined",
|
|
348
|
-
children:
|
|
348
|
+
children: t?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
349
349
|
}
|
|
350
350
|
) });
|
|
351
351
|
}, ze = (e) => {
|
|
352
|
-
const { toolbar: i, content:
|
|
352
|
+
const { toolbar: i, content: r, 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: r
|
|
382
382
|
}
|
|
383
383
|
)
|
|
384
384
|
]
|
|
@@ -387,16 +387,16 @@ const te = {
|
|
|
387
387
|
}, Lt = ({
|
|
388
388
|
copy: e,
|
|
389
389
|
dateRange: i,
|
|
390
|
-
onRangeChanged:
|
|
390
|
+
onRangeChanged: r,
|
|
391
391
|
selectedShortcut: s = e.dateRangeThisMonth,
|
|
392
392
|
sx: l = {}
|
|
393
393
|
}) => {
|
|
394
|
-
const
|
|
395
|
-
const
|
|
394
|
+
const t = E(), n = ge(t.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
395
|
+
const o = pe(), p = ue(o, 1), T = he(o, 1);
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
398
|
label: e.dateRangeThisMonth,
|
|
399
|
-
getValue: () => [V(
|
|
399
|
+
getValue: () => [V(o), U(o)]
|
|
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(o, 30), o]
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
label: e.dateRangeLast90Days,
|
|
411
|
-
getValue: () => [W(
|
|
411
|
+
getValue: () => [W(o, 90), o]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
label: e.dateRangeYTD,
|
|
415
|
-
getValue: () => [G(
|
|
415
|
+
getValue: () => [G(o), o]
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
label: e.dateRangeLastYear,
|
|
@@ -420,15 +420,15 @@ const te = {
|
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
label: e.dateRangeCustom,
|
|
423
|
-
getValue: () => [
|
|
423
|
+
getValue: () => [o, o]
|
|
424
424
|
}
|
|
425
425
|
];
|
|
426
|
-
}, [e]), d = (
|
|
426
|
+
}, [e]), d = (o, p) => {
|
|
427
427
|
const T = p.shortcut;
|
|
428
|
-
|
|
428
|
+
r?.(o, T ? T.label : e.dateRangeCustom);
|
|
429
429
|
};
|
|
430
|
-
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(
|
|
431
|
-
|
|
430
|
+
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(fe, { dateAdapter: be, children: /* @__PURE__ */ a(
|
|
431
|
+
me,
|
|
432
432
|
{
|
|
433
433
|
calendars: 1,
|
|
434
434
|
localeText: {
|
|
@@ -450,22 +450,22 @@ const te = {
|
|
|
450
450
|
slots: {
|
|
451
451
|
...n && { layout: ze },
|
|
452
452
|
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
453
|
-
shortcuts: (
|
|
453
|
+
shortcuts: (o) => n ? /* @__PURE__ */ a(
|
|
454
454
|
Be,
|
|
455
455
|
{
|
|
456
456
|
selectLabel: e.dateRangeSelectARange,
|
|
457
457
|
selected: s,
|
|
458
|
-
...
|
|
458
|
+
...o
|
|
459
459
|
}
|
|
460
|
-
) : /* @__PURE__ */ a(_e, { selected: s, ...
|
|
460
|
+
) : /* @__PURE__ */ a(_e, { selected: s, ...o }),
|
|
461
461
|
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
|
|
462
462
|
...n && {
|
|
463
|
-
toolbar: (
|
|
463
|
+
toolbar: (o) => /* @__PURE__ */ a(
|
|
464
464
|
Te,
|
|
465
465
|
{
|
|
466
466
|
dateSeparator: "",
|
|
467
467
|
format: "MM/dd/yyyy",
|
|
468
|
-
...
|
|
468
|
+
...o,
|
|
469
469
|
slotProps: {
|
|
470
470
|
textField: ({ position: p }) => ({
|
|
471
471
|
label: p === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
@@ -480,15 +480,15 @@ const te = {
|
|
|
480
480
|
value: i
|
|
481
481
|
}
|
|
482
482
|
) }) });
|
|
483
|
-
}, kt = H.forwardRef(function(i,
|
|
484
|
-
return /* @__PURE__ */ a(q, { direction: "up", ref:
|
|
483
|
+
}, kt = H.forwardRef(function(i, r) {
|
|
484
|
+
return /* @__PURE__ */ a(q, { direction: "up", ref: r, ...i });
|
|
485
485
|
}), $e = ({
|
|
486
486
|
hasSecondaryAction: e = !0,
|
|
487
487
|
isPrimaryDisabled: i,
|
|
488
|
-
onPrimaryAction:
|
|
488
|
+
onPrimaryAction: r,
|
|
489
489
|
onSecondaryAction: s,
|
|
490
490
|
primaryColor: l = "primary",
|
|
491
|
-
primaryText:
|
|
491
|
+
primaryText: t = "Save",
|
|
492
492
|
secondaryColor: n = "primary",
|
|
493
493
|
secondaryText: c = "Cancel"
|
|
494
494
|
}) => /* @__PURE__ */ b(
|
|
@@ -504,18 +504,18 @@ const te = {
|
|
|
504
504
|
{
|
|
505
505
|
color: n,
|
|
506
506
|
onClick: s,
|
|
507
|
-
variant:
|
|
507
|
+
variant: r ? "outlined" : "contained",
|
|
508
508
|
children: c
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
|
-
|
|
511
|
+
r && /* @__PURE__ */ a(
|
|
512
512
|
B,
|
|
513
513
|
{
|
|
514
514
|
color: l,
|
|
515
515
|
disabled: i,
|
|
516
|
-
onClick:
|
|
516
|
+
onClick: r,
|
|
517
517
|
variant: "contained",
|
|
518
|
-
children:
|
|
518
|
+
children: t
|
|
519
519
|
}
|
|
520
520
|
)
|
|
521
521
|
]
|
|
@@ -523,14 +523,14 @@ const te = {
|
|
|
523
523
|
), F = ({
|
|
524
524
|
bold: e,
|
|
525
525
|
className: i = "",
|
|
526
|
-
children:
|
|
526
|
+
children: r,
|
|
527
527
|
color: s,
|
|
528
528
|
sx: l = {},
|
|
529
|
-
truncate:
|
|
529
|
+
truncate: t,
|
|
530
530
|
uppercase: n,
|
|
531
531
|
...c
|
|
532
532
|
}) => /* @__PURE__ */ a(
|
|
533
|
-
|
|
533
|
+
Ie,
|
|
534
534
|
{
|
|
535
535
|
className: `mx-kmui-text ${i}`,
|
|
536
536
|
color: s,
|
|
@@ -538,7 +538,7 @@ const te = {
|
|
|
538
538
|
e ? {
|
|
539
539
|
fontWeight: 600
|
|
540
540
|
} : {},
|
|
541
|
-
|
|
541
|
+
t ? {
|
|
542
542
|
overflow: "hidden",
|
|
543
543
|
textOverflow: "ellipsis",
|
|
544
544
|
whiteSpace: "nowrap"
|
|
@@ -549,9 +549,9 @@ const te = {
|
|
|
549
549
|
...Array.isArray(l) ? l : [l]
|
|
550
550
|
],
|
|
551
551
|
...c,
|
|
552
|
-
children:
|
|
552
|
+
children: r
|
|
553
553
|
}
|
|
554
|
-
), Ue = ({ className: e = "", children: i, ...
|
|
554
|
+
), Ue = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...r, children: i }), Dt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...r, children: i }), wt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...r, children: i }), Pt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...r, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
|
|
555
555
|
A,
|
|
556
556
|
{
|
|
557
557
|
sx: {
|
|
@@ -569,31 +569,31 @@ const te = {
|
|
|
569
569
|
), Bt = ({
|
|
570
570
|
className: e,
|
|
571
571
|
disableSave: i,
|
|
572
|
-
id:
|
|
572
|
+
id: r,
|
|
573
573
|
isOpen: s,
|
|
574
574
|
onClose: l,
|
|
575
|
-
onSave:
|
|
575
|
+
onSave: t,
|
|
576
576
|
primaryText: n,
|
|
577
577
|
secondaryText: c,
|
|
578
578
|
children: d,
|
|
579
|
-
...
|
|
579
|
+
...o
|
|
580
580
|
}) => /* @__PURE__ */ b(
|
|
581
|
-
|
|
581
|
+
ye,
|
|
582
582
|
{
|
|
583
583
|
anchor: "right",
|
|
584
584
|
className: `mx-kmui-drawer ${e}`,
|
|
585
|
-
id:
|
|
585
|
+
id: r ?? void 0,
|
|
586
586
|
onClose: l,
|
|
587
587
|
open: s,
|
|
588
588
|
variant: "temporary",
|
|
589
|
-
...
|
|
589
|
+
...o,
|
|
590
590
|
children: [
|
|
591
591
|
d,
|
|
592
|
-
|
|
592
|
+
t && /* @__PURE__ */ a(
|
|
593
593
|
$e,
|
|
594
594
|
{
|
|
595
595
|
isPrimaryDisabled: i,
|
|
596
|
-
onPrimaryAction:
|
|
596
|
+
onPrimaryAction: t,
|
|
597
597
|
onSecondaryAction: l,
|
|
598
598
|
primaryText: n,
|
|
599
599
|
secondaryText: c
|
|
@@ -604,7 +604,7 @@ const te = {
|
|
|
604
604
|
), oe = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zt = ({
|
|
605
605
|
alt: e,
|
|
606
606
|
institutionGuid: i,
|
|
607
|
-
logoUrl:
|
|
607
|
+
logoUrl: r,
|
|
608
608
|
size: s = oe,
|
|
609
609
|
...l
|
|
610
610
|
}) => /* @__PURE__ */ a(
|
|
@@ -612,11 +612,11 @@ const te = {
|
|
|
612
612
|
{
|
|
613
613
|
alt: e,
|
|
614
614
|
height: s,
|
|
615
|
-
onError: (
|
|
616
|
-
const n =
|
|
615
|
+
onError: (t) => {
|
|
616
|
+
const n = t.target;
|
|
617
617
|
n.src !== K && (n.src = K);
|
|
618
618
|
},
|
|
619
|
-
src:
|
|
619
|
+
src: r || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
620
620
|
style: {
|
|
621
621
|
borderRadius: 4
|
|
622
622
|
},
|
|
@@ -626,20 +626,20 @@ const te = {
|
|
|
626
626
|
), $t = ({
|
|
627
627
|
alt: e = "",
|
|
628
628
|
categoryGuid: i,
|
|
629
|
-
merchantGuid:
|
|
629
|
+
merchantGuid: r,
|
|
630
630
|
size: s = oe,
|
|
631
631
|
...l
|
|
632
632
|
}) => {
|
|
633
|
-
const [
|
|
633
|
+
const [t, n] = H.useState(!1), c = E();
|
|
634
634
|
return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
|
|
635
|
-
|
|
635
|
+
r && !t && /* @__PURE__ */ a(
|
|
636
636
|
"img",
|
|
637
637
|
{
|
|
638
638
|
alt: e,
|
|
639
639
|
"aria-hidden": !e,
|
|
640
640
|
height: s,
|
|
641
641
|
onError: () => n(!0),
|
|
642
|
-
src: `${z}/merchant_logos/${
|
|
642
|
+
src: `${z}/merchant_logos/${r}.png`,
|
|
643
643
|
style: {
|
|
644
644
|
backgroundColor: c.palette.common.white,
|
|
645
645
|
borderRadius: 4,
|
|
@@ -654,14 +654,14 @@ const te = {
|
|
|
654
654
|
}, Ut = ({
|
|
655
655
|
disabled: e = !1,
|
|
656
656
|
label: i = "",
|
|
657
|
-
shrink:
|
|
657
|
+
shrink: r = !0,
|
|
658
658
|
variant: s = "outlined",
|
|
659
659
|
...l
|
|
660
660
|
}) => /* @__PURE__ */ a(
|
|
661
661
|
J,
|
|
662
662
|
{
|
|
663
663
|
InputLabelProps: {
|
|
664
|
-
shrink:
|
|
664
|
+
shrink: r
|
|
665
665
|
},
|
|
666
666
|
disabled: e,
|
|
667
667
|
label: i,
|
|
@@ -675,14 +675,14 @@ function Ve(e) {
|
|
|
675
675
|
const Vt = ({
|
|
676
676
|
open: e,
|
|
677
677
|
handleClose: i,
|
|
678
|
-
message:
|
|
678
|
+
message: r,
|
|
679
679
|
autoHideDuration: s = 3e3,
|
|
680
680
|
severity: l = "success",
|
|
681
|
-
snackbarSx:
|
|
681
|
+
snackbarSx: t,
|
|
682
682
|
showAction: n = !1,
|
|
683
683
|
showClose: c = !1,
|
|
684
684
|
actionText: d = "Undo",
|
|
685
|
-
onActionClick:
|
|
685
|
+
onActionClick: o,
|
|
686
686
|
multiLine: p = !1
|
|
687
687
|
}) => {
|
|
688
688
|
const T = E(), v = /* @__PURE__ */ b(
|
|
@@ -699,7 +699,7 @@ const Vt = ({
|
|
|
699
699
|
B,
|
|
700
700
|
{
|
|
701
701
|
color: "inherit",
|
|
702
|
-
onClick:
|
|
702
|
+
onClick: o || i,
|
|
703
703
|
size: "small",
|
|
704
704
|
sx: {
|
|
705
705
|
color: T.palette.success.contrastText,
|
|
@@ -730,7 +730,7 @@ const Vt = ({
|
|
|
730
730
|
onClose: i,
|
|
731
731
|
open: e,
|
|
732
732
|
sx: {
|
|
733
|
-
...
|
|
733
|
+
...t,
|
|
734
734
|
width: p ? 400 : 325
|
|
735
735
|
},
|
|
736
736
|
children: /* @__PURE__ */ a(
|
|
@@ -768,7 +768,7 @@ const Vt = ({
|
|
|
768
768
|
textOverflow: p ? "clip" : "ellipsis"
|
|
769
769
|
},
|
|
770
770
|
truncate: !p,
|
|
771
|
-
children:
|
|
771
|
+
children: r
|
|
772
772
|
}
|
|
773
773
|
)
|
|
774
774
|
}
|
|
@@ -778,23 +778,23 @@ const Vt = ({
|
|
|
778
778
|
}, Gt = ({
|
|
779
779
|
component: e = P,
|
|
780
780
|
variant: i = "outlined",
|
|
781
|
-
selected:
|
|
781
|
+
selected: r,
|
|
782
782
|
onChange: s,
|
|
783
783
|
headline: l,
|
|
784
|
-
message:
|
|
784
|
+
message: t,
|
|
785
785
|
name: n,
|
|
786
786
|
value: c,
|
|
787
787
|
disabled: d = !1,
|
|
788
|
-
error:
|
|
788
|
+
error: o = !1,
|
|
789
789
|
icon: p = !1,
|
|
790
790
|
sx: T = {},
|
|
791
791
|
...v
|
|
792
792
|
}) => {
|
|
793
|
-
const
|
|
793
|
+
const f = E(), re = () => f.palette.background.paper, k = () => o ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : d ? r ? `inset 0px 0px 0px 2px ${f.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${f.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${f.palette.action.disabled}` : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.common.black, 0.23)}` : r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : f.shadows[1], ie = () => d || o ? f.palette.background.paper : m(f.palette.primary.main, 0.1), ae = () => d || o ? k() : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.primary.main, 0.5)}` : k(), ne = () => d || o ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
|
|
794
794
|
return /* @__PURE__ */ a(
|
|
795
795
|
Fe,
|
|
796
796
|
{
|
|
797
|
-
checked:
|
|
797
|
+
checked: r,
|
|
798
798
|
control: e === P ? /* @__PURE__ */ a(
|
|
799
799
|
P,
|
|
800
800
|
{
|
|
@@ -831,7 +831,7 @@ const Vt = ({
|
|
|
831
831
|
p && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: p }),
|
|
832
832
|
/* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
833
833
|
l && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
834
|
-
/* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children:
|
|
834
|
+
/* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
|
|
835
835
|
] })
|
|
836
836
|
] }),
|
|
837
837
|
labelPlacement: "start",
|
|
@@ -841,7 +841,7 @@ const Vt = ({
|
|
|
841
841
|
padding: "6px 16px",
|
|
842
842
|
alignItems: "flex-start",
|
|
843
843
|
justifyContent: "space-between",
|
|
844
|
-
borderRadius:
|
|
844
|
+
borderRadius: f.shape.borderRadius / 2,
|
|
845
845
|
mb: 16,
|
|
846
846
|
cursor: d ? "not-allowed" : "pointer",
|
|
847
847
|
opacity: d ? 0.6 : 1,
|
|
@@ -849,8 +849,8 @@ const Vt = ({
|
|
|
849
849
|
border: "none",
|
|
850
850
|
boxShadow: k(),
|
|
851
851
|
boxSizing: "border-box",
|
|
852
|
-
transition:
|
|
853
|
-
duration:
|
|
852
|
+
transition: f.transitions.create(["background-color", "box-shadow"], {
|
|
853
|
+
duration: f.transitions.duration.short
|
|
854
854
|
}),
|
|
855
855
|
"&:hover": {
|
|
856
856
|
backgroundColor: ie(),
|
|
@@ -860,7 +860,7 @@ const Vt = ({
|
|
|
860
860
|
backgroundColor: ne()
|
|
861
861
|
},
|
|
862
862
|
"&:focus-visible": {
|
|
863
|
-
outline: `2px solid ${
|
|
863
|
+
outline: `2px solid ${f.palette.info.main}`,
|
|
864
864
|
outlineOffset: "2px"
|
|
865
865
|
},
|
|
866
866
|
...T
|
|
@@ -868,7 +868,7 @@ const Vt = ({
|
|
|
868
868
|
value: c
|
|
869
869
|
}
|
|
870
870
|
);
|
|
871
|
-
},
|
|
871
|
+
}, y = {
|
|
872
872
|
LIGHT: "light"
|
|
873
873
|
}, R = (e) => ({
|
|
874
874
|
50: O(e, 0.95),
|
|
@@ -897,7 +897,7 @@ const Vt = ({
|
|
|
897
897
|
CHART5: "#60A9FF",
|
|
898
898
|
CHART6: "#C8BAEE",
|
|
899
899
|
CHART7: "#585E67"
|
|
900
|
-
},
|
|
900
|
+
}, I = {
|
|
901
901
|
CHART_MONO1: "#C3EAFF",
|
|
902
902
|
CHART_MONO2: "#8ED7FF",
|
|
903
903
|
CHART_MONO3: "#60A9FF",
|
|
@@ -951,7 +951,7 @@ const Vt = ({
|
|
|
951
951
|
TRAVEL: "#76ACF7",
|
|
952
952
|
UNCATEGORIZED: "#BCC6D4"
|
|
953
953
|
}, Xe = (e, i) => {
|
|
954
|
-
const
|
|
954
|
+
const r = 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), o = e === y.LIGHT;
|
|
955
955
|
return {
|
|
956
956
|
mode: e,
|
|
957
957
|
common: {
|
|
@@ -959,90 +959,90 @@ const Vt = ({
|
|
|
959
959
|
black: _
|
|
960
960
|
},
|
|
961
961
|
primary: {
|
|
962
|
-
...
|
|
963
|
-
light:
|
|
964
|
-
main:
|
|
965
|
-
dark:
|
|
962
|
+
...r,
|
|
963
|
+
light: o ? r[300] : r[600],
|
|
964
|
+
main: o ? r[500] : r[400],
|
|
965
|
+
dark: o ? r[700] : r[200]
|
|
966
966
|
},
|
|
967
967
|
secondary: {
|
|
968
968
|
...s,
|
|
969
|
-
light:
|
|
970
|
-
main:
|
|
971
|
-
dark:
|
|
969
|
+
light: o ? s[300] : s[600],
|
|
970
|
+
main: o ? s[500] : s[400],
|
|
971
|
+
dark: o ? s[700] : s[200]
|
|
972
972
|
},
|
|
973
973
|
neutral: {
|
|
974
974
|
...d,
|
|
975
|
-
light:
|
|
976
|
-
main:
|
|
977
|
-
dark:
|
|
978
|
-
contrastText: Ne(
|
|
975
|
+
light: o ? d[300] : d[600],
|
|
976
|
+
main: o ? d[500] : d[400],
|
|
977
|
+
dark: o ? d[700] : d[200],
|
|
978
|
+
contrastText: Ne(o ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
|
|
979
979
|
},
|
|
980
980
|
text: {
|
|
981
|
-
primary:
|
|
982
|
-
secondary:
|
|
983
|
-
disabled:
|
|
981
|
+
primary: o ? d[900] : M,
|
|
982
|
+
secondary: o ? d[600] : m(M, 0.7),
|
|
983
|
+
disabled: o ? d[500] : m(M, 0.38)
|
|
984
984
|
},
|
|
985
985
|
error: {
|
|
986
986
|
...l,
|
|
987
|
-
light:
|
|
988
|
-
main:
|
|
989
|
-
dark:
|
|
987
|
+
light: o ? l[300] : l[600],
|
|
988
|
+
main: o ? l[500] : l[400],
|
|
989
|
+
dark: o ? l[700] : l[200]
|
|
990
990
|
},
|
|
991
991
|
warning: {
|
|
992
|
-
...
|
|
993
|
-
light:
|
|
994
|
-
main:
|
|
995
|
-
dark:
|
|
992
|
+
...t,
|
|
993
|
+
light: o ? t[300] : t[600],
|
|
994
|
+
main: o ? t[500] : t[400],
|
|
995
|
+
dark: o ? t[700] : t[200]
|
|
996
996
|
},
|
|
997
997
|
info: {
|
|
998
998
|
...n,
|
|
999
|
-
light:
|
|
1000
|
-
main:
|
|
1001
|
-
dark:
|
|
999
|
+
light: o ? n[300] : n[600],
|
|
1000
|
+
main: o ? n[500] : n[400],
|
|
1001
|
+
dark: o ? n[700] : n[200]
|
|
1002
1002
|
},
|
|
1003
1003
|
success: {
|
|
1004
1004
|
...c,
|
|
1005
|
-
light:
|
|
1006
|
-
main:
|
|
1007
|
-
dark:
|
|
1005
|
+
light: o ? c[300] : c[600],
|
|
1006
|
+
main: o ? c[500] : c[400],
|
|
1007
|
+
dark: o ? c[700] : c[200]
|
|
1008
1008
|
},
|
|
1009
1009
|
grey: d,
|
|
1010
1010
|
action: {
|
|
1011
|
-
active:
|
|
1012
|
-
hoverOpacity:
|
|
1013
|
-
selectedOpacity:
|
|
1011
|
+
active: o ? m(_, 0.56) : m(M, 0.56),
|
|
1012
|
+
hoverOpacity: o ? 0.1 : 0.2,
|
|
1013
|
+
selectedOpacity: o ? 0.16 : 0.25,
|
|
1014
1014
|
focusOpacity: 0.3
|
|
1015
1015
|
},
|
|
1016
1016
|
background: {
|
|
1017
|
-
default:
|
|
1018
|
-
paper:
|
|
1019
|
-
highlight:
|
|
1020
|
-
highlightPrimary:
|
|
1017
|
+
default: o ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
|
|
1018
|
+
paper: o ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
|
|
1019
|
+
highlight: o ? d[200] : d[600],
|
|
1020
|
+
highlightPrimary: o ? r[100] : r[500]
|
|
1021
1021
|
},
|
|
1022
|
-
divider:
|
|
1022
|
+
divider: o ? m(_, 0.12) : m(M, 0.24),
|
|
1023
1023
|
categories: {
|
|
1024
|
-
autoTransport:
|
|
1025
|
-
billsUtilities:
|
|
1026
|
-
businessServices:
|
|
1027
|
-
education:
|
|
1028
|
-
entertainment:
|
|
1029
|
-
feesCharges:
|
|
1030
|
-
financial:
|
|
1031
|
-
foodDining:
|
|
1032
|
-
giftsDonations:
|
|
1033
|
-
healthFitness:
|
|
1034
|
-
home:
|
|
1035
|
-
income:
|
|
1036
|
-
investments:
|
|
1037
|
-
kids:
|
|
1038
|
-
others:
|
|
1039
|
-
personalCare:
|
|
1040
|
-
pets:
|
|
1041
|
-
shopping:
|
|
1042
|
-
taxes:
|
|
1043
|
-
transfer:
|
|
1044
|
-
travel:
|
|
1045
|
-
uncategorized:
|
|
1024
|
+
autoTransport: o ? u.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
1025
|
+
billsUtilities: o ? u.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
1026
|
+
businessServices: o ? u.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
|
|
1027
|
+
education: o ? u.EDUCATION : h.EDUCATION,
|
|
1028
|
+
entertainment: o ? u.ENTERTAINMENT : h.ENTERTAINMENT,
|
|
1029
|
+
feesCharges: o ? u.FEES_CHARGES : h.FEES_CHARGES,
|
|
1030
|
+
financial: o ? u.FINANCIAL : h.FINANCIAL,
|
|
1031
|
+
foodDining: o ? u.FOOD_DINING : h.FOOD_DINING,
|
|
1032
|
+
giftsDonations: o ? u.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
|
|
1033
|
+
healthFitness: o ? u.HEALTH_FITNESS : h.HEALTH_FITNESS,
|
|
1034
|
+
home: o ? u.HOME : h.HOME,
|
|
1035
|
+
income: o ? u.INCOME : h.INCOME,
|
|
1036
|
+
investments: o ? u.INVESTMENTS : h.INVESTMENTS,
|
|
1037
|
+
kids: o ? u.KIDS : h.KIDS,
|
|
1038
|
+
others: o ? u.OTHERS : h.OTHERS,
|
|
1039
|
+
personalCare: o ? u.PERSONAL_CARE : h.PERSONAL_CARE,
|
|
1040
|
+
pets: o ? u.PETS : h.PETS,
|
|
1041
|
+
shopping: o ? u.SHOPPING : h.SHOPPING,
|
|
1042
|
+
taxes: o ? u.TAXES : h.TAXES,
|
|
1043
|
+
transfer: o ? u.TRANSFER : h.TRANSFER,
|
|
1044
|
+
travel: o ? u.TRAVEL : h.TRAVEL,
|
|
1045
|
+
uncategorized: o ? u.UNCATEGORIZED : h.UNCATEGORIZED
|
|
1046
1046
|
},
|
|
1047
1047
|
chart: {
|
|
1048
1048
|
chart1: S.CHART1,
|
|
@@ -1054,12 +1054,12 @@ const Vt = ({
|
|
|
1054
1054
|
chart7: S.CHART7
|
|
1055
1055
|
},
|
|
1056
1056
|
chartMono: {
|
|
1057
|
-
chartMono1:
|
|
1058
|
-
chartMono2:
|
|
1059
|
-
chartMono3:
|
|
1060
|
-
chartMono4:
|
|
1061
|
-
chartMono5:
|
|
1062
|
-
chartMono6:
|
|
1057
|
+
chartMono1: I.CHART_MONO1,
|
|
1058
|
+
chartMono2: I.CHART_MONO2,
|
|
1059
|
+
chartMono3: I.CHART_MONO3,
|
|
1060
|
+
chartMono4: I.CHART_MONO4,
|
|
1061
|
+
chartMono5: I.CHART_MONO5,
|
|
1062
|
+
chartMono6: I.CHART_MONO6
|
|
1063
1063
|
}
|
|
1064
1064
|
};
|
|
1065
1065
|
}, X = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
|
|
@@ -1126,7 +1126,7 @@ Le.setLicenseKey(
|
|
|
1126
1126
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1127
1127
|
);
|
|
1128
1128
|
const Wt = (e, i) => {
|
|
1129
|
-
const
|
|
1129
|
+
const r = Xe(e, i?.paletteOptions), s = je(i?.typographyOptions), l = [...$().shadows];
|
|
1130
1130
|
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)", $({
|
|
1131
1131
|
breakpoints: {
|
|
1132
1132
|
values: {
|
|
@@ -1138,7 +1138,7 @@ const Wt = (e, i) => {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
},
|
|
1140
1140
|
cssVariables: !0,
|
|
1141
|
-
palette:
|
|
1141
|
+
palette: r,
|
|
1142
1142
|
shape: {
|
|
1143
1143
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1144
1144
|
},
|
|
@@ -1158,19 +1158,19 @@ const Wt = (e, i) => {
|
|
|
1158
1158
|
variant: "outlined"
|
|
1159
1159
|
},
|
|
1160
1160
|
styleOverrides: {
|
|
1161
|
-
root: ({ theme:
|
|
1161
|
+
root: ({ theme: t, ownerState: n }) => {
|
|
1162
1162
|
const c = n.severity || "info";
|
|
1163
|
-
let d =
|
|
1163
|
+
let d = t.palette.mode === y.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
|
|
1164
1164
|
if (n.variant === "filled") {
|
|
1165
|
-
const
|
|
1166
|
-
d =
|
|
1165
|
+
const o = c === "warning";
|
|
1166
|
+
d = t.palette[c]?.[o ? 400 : 600];
|
|
1167
1167
|
}
|
|
1168
1168
|
return {
|
|
1169
1169
|
backgroundColor: d,
|
|
1170
|
-
borderRadius:
|
|
1170
|
+
borderRadius: t.shape.borderRadius,
|
|
1171
1171
|
"& .MuiAlert-message": {
|
|
1172
|
-
fontSize:
|
|
1173
|
-
lineHeight:
|
|
1172
|
+
fontSize: t.typography.subtitle1.fontSize,
|
|
1173
|
+
lineHeight: t.typography.subtitle1.lineHeight,
|
|
1174
1174
|
marginTop: "auto",
|
|
1175
1175
|
marginBottom: "auto"
|
|
1176
1176
|
},
|
|
@@ -1196,14 +1196,14 @@ const Wt = (e, i) => {
|
|
|
1196
1196
|
disableElevation: !0
|
|
1197
1197
|
},
|
|
1198
1198
|
styleOverrides: {
|
|
1199
|
-
root: ({ theme:
|
|
1199
|
+
root: ({ theme: t }) => ({
|
|
1200
1200
|
fontWeight: 600,
|
|
1201
1201
|
textTransform: "none",
|
|
1202
1202
|
"&.Mui-disabled": {
|
|
1203
1203
|
cursor: "not-allowed"
|
|
1204
1204
|
},
|
|
1205
1205
|
"&.Mui-focusVisible": {
|
|
1206
|
-
outline: `2px solid ${
|
|
1206
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1207
1207
|
outlineOffset: "2px"
|
|
1208
1208
|
}
|
|
1209
1209
|
}),
|
|
@@ -1240,7 +1240,7 @@ const Wt = (e, i) => {
|
|
|
1240
1240
|
styleOverrides: {
|
|
1241
1241
|
root: {
|
|
1242
1242
|
"&.Mui-focusVisible": {
|
|
1243
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1243
|
+
boxShadow: `inset 0 0 0 2px ${r.info.main}`
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
@@ -1269,22 +1269,22 @@ const Wt = (e, i) => {
|
|
|
1269
1269
|
},
|
|
1270
1270
|
MuiDataGrid: {
|
|
1271
1271
|
styleOverrides: {
|
|
1272
|
-
root: ({ theme:
|
|
1272
|
+
root: ({ theme: t }) => ({
|
|
1273
1273
|
border: "none",
|
|
1274
1274
|
borderRadius: 0,
|
|
1275
|
-
fontSize:
|
|
1275
|
+
fontSize: t.typography.body2.fontSize,
|
|
1276
1276
|
"& .MuiDataGrid-cell": {
|
|
1277
1277
|
display: "flex",
|
|
1278
1278
|
alignItems: "center",
|
|
1279
1279
|
borderTop: "1px solid",
|
|
1280
|
-
borderColor:
|
|
1280
|
+
borderColor: t.palette.background.highlight
|
|
1281
1281
|
},
|
|
1282
1282
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1283
1283
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1284
1284
|
"& .MuiDataGrid-columnHeaders": {
|
|
1285
|
-
backgroundColor:
|
|
1285
|
+
backgroundColor: t.palette.background.paper,
|
|
1286
1286
|
borderBottom: "2px solid",
|
|
1287
|
-
borderColor:
|
|
1287
|
+
borderColor: t.palette.divider
|
|
1288
1288
|
},
|
|
1289
1289
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1290
1290
|
fontWeight: 600
|
|
@@ -1302,42 +1302,42 @@ const Wt = (e, i) => {
|
|
|
1302
1302
|
},
|
|
1303
1303
|
MuiDateRangePickerDay: {
|
|
1304
1304
|
styleOverrides: {
|
|
1305
|
-
root: ({ theme:
|
|
1305
|
+
root: ({ theme: t }) => ({
|
|
1306
1306
|
":first-of-type": {
|
|
1307
|
-
borderTopLeftRadius:
|
|
1308
|
-
borderBottomLeftRadius:
|
|
1307
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1308
|
+
borderBottomLeftRadius: t.shape.borderRadius,
|
|
1309
1309
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1310
|
-
borderTopLeftRadius:
|
|
1311
|
-
borderBottomLeftRadius:
|
|
1310
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1311
|
+
borderBottomLeftRadius: t.shape.borderRadius
|
|
1312
1312
|
}
|
|
1313
1313
|
},
|
|
1314
1314
|
":last-of-type": {
|
|
1315
|
-
borderTopRightRadius:
|
|
1316
|
-
borderBottomRightRadius:
|
|
1315
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1316
|
+
borderBottomRightRadius: t.shape.borderRadius,
|
|
1317
1317
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1318
|
-
borderTopRightRadius:
|
|
1319
|
-
borderBottomRightRadius:
|
|
1318
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1319
|
+
borderBottomRightRadius: t.shape.borderRadius
|
|
1320
1320
|
}
|
|
1321
1321
|
},
|
|
1322
1322
|
"& .Mui-selected": {
|
|
1323
|
-
borderRadius:
|
|
1323
|
+
borderRadius: t.shape.borderRadius
|
|
1324
1324
|
},
|
|
1325
1325
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1326
|
-
color:
|
|
1326
|
+
color: t.palette.action.disabled
|
|
1327
1327
|
}
|
|
1328
1328
|
}),
|
|
1329
|
-
day: ({ theme:
|
|
1330
|
-
borderRadius:
|
|
1329
|
+
day: ({ theme: t }) => ({
|
|
1330
|
+
borderRadius: t.shape.borderRadius
|
|
1331
1331
|
}),
|
|
1332
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1333
|
-
borderRadius:
|
|
1332
|
+
rangeIntervalDayPreview: ({ theme: t }) => ({
|
|
1333
|
+
borderRadius: t.shape.borderRadius
|
|
1334
1334
|
})
|
|
1335
1335
|
}
|
|
1336
1336
|
},
|
|
1337
1337
|
MuiDayCalendar: {
|
|
1338
1338
|
styleOverrides: {
|
|
1339
|
-
weekDayLabel: ({ theme:
|
|
1340
|
-
fontSize:
|
|
1339
|
+
weekDayLabel: ({ theme: t }) => ({
|
|
1340
|
+
fontSize: t.typography.body2.fontSize,
|
|
1341
1341
|
fontWeight: 700
|
|
1342
1342
|
})
|
|
1343
1343
|
}
|
|
@@ -1379,14 +1379,14 @@ const Wt = (e, i) => {
|
|
|
1379
1379
|
},
|
|
1380
1380
|
MuiFormHelperText: {
|
|
1381
1381
|
styleOverrides: {
|
|
1382
|
-
root: ({ theme:
|
|
1382
|
+
root: ({ theme: t }) => ({
|
|
1383
1383
|
fontSize: 13,
|
|
1384
1384
|
// Small
|
|
1385
1385
|
marginLeft: 0,
|
|
1386
1386
|
display: "flex",
|
|
1387
1387
|
alignItems: "center",
|
|
1388
1388
|
position: "relative",
|
|
1389
|
-
color:
|
|
1389
|
+
color: t.palette.text.secondary,
|
|
1390
1390
|
"& .MuiSvgIcon-root": {
|
|
1391
1391
|
height: "16px",
|
|
1392
1392
|
width: "16px",
|
|
@@ -1402,7 +1402,7 @@ const Wt = (e, i) => {
|
|
|
1402
1402
|
MuiFormLabel: {
|
|
1403
1403
|
styleOverrides: {
|
|
1404
1404
|
asterisk: {
|
|
1405
|
-
color:
|
|
1405
|
+
color: r.error.main
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
},
|
|
@@ -1417,19 +1417,19 @@ const Wt = (e, i) => {
|
|
|
1417
1417
|
disableFocusRipple: !0
|
|
1418
1418
|
},
|
|
1419
1419
|
styleOverrides: {
|
|
1420
|
-
root: ({ theme:
|
|
1421
|
-
borderRadius:
|
|
1420
|
+
root: ({ theme: t }) => ({
|
|
1421
|
+
borderRadius: t.shape.borderRadius,
|
|
1422
1422
|
minHeight: 44,
|
|
1423
1423
|
// touch target
|
|
1424
1424
|
minWidth: 44,
|
|
1425
1425
|
// touch target
|
|
1426
1426
|
"&.Mui-focusVisible": {
|
|
1427
|
-
outline: `2px solid ${
|
|
1427
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1428
1428
|
outlineOffset: "2px"
|
|
1429
1429
|
},
|
|
1430
1430
|
"& .MuiTouchRipple-root": {
|
|
1431
1431
|
"& .MuiTouchRipple-child": {
|
|
1432
|
-
borderRadius:
|
|
1432
|
+
borderRadius: t.shape.borderRadius
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
1435
|
})
|
|
@@ -1450,13 +1450,13 @@ const Wt = (e, i) => {
|
|
|
1450
1450
|
borderRadius: 4
|
|
1451
1451
|
},
|
|
1452
1452
|
colorPrimary: {
|
|
1453
|
-
backgroundColor:
|
|
1453
|
+
backgroundColor: r.grey[300]
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
},
|
|
1457
1457
|
MuiLink: {
|
|
1458
1458
|
styleOverrides: {
|
|
1459
|
-
root: ({ theme:
|
|
1459
|
+
root: ({ theme: t, color: n }) => ({
|
|
1460
1460
|
cursor: "pointer",
|
|
1461
1461
|
fontWeight: 600,
|
|
1462
1462
|
textDecoration: "none",
|
|
@@ -1468,10 +1468,10 @@ const Wt = (e, i) => {
|
|
|
1468
1468
|
outlineOffset: "2px"
|
|
1469
1469
|
},
|
|
1470
1470
|
"&:hover": {
|
|
1471
|
-
backgroundColor:
|
|
1471
|
+
backgroundColor: t.palette.action.hover
|
|
1472
1472
|
},
|
|
1473
1473
|
"&:active": {
|
|
1474
|
-
backgroundColor:
|
|
1474
|
+
backgroundColor: t.palette.mode === y.LIGHT ? t.palette[n].light : t.palette[n].dark
|
|
1475
1475
|
}
|
|
1476
1476
|
})
|
|
1477
1477
|
}
|
|
@@ -1498,9 +1498,9 @@ const Wt = (e, i) => {
|
|
|
1498
1498
|
disablePadding: !0
|
|
1499
1499
|
},
|
|
1500
1500
|
styleOverrides: {
|
|
1501
|
-
root: ({ ownerState:
|
|
1501
|
+
root: ({ ownerState: t }) => ({
|
|
1502
1502
|
minHeight: 64,
|
|
1503
|
-
...!
|
|
1503
|
+
...!t.disablePadding && {
|
|
1504
1504
|
paddingTop: 12,
|
|
1505
1505
|
paddingBottom: 12,
|
|
1506
1506
|
paddingLeft: 24
|
|
@@ -1524,7 +1524,7 @@ const Wt = (e, i) => {
|
|
|
1524
1524
|
},
|
|
1525
1525
|
MuiListItemButton: {
|
|
1526
1526
|
styleOverrides: {
|
|
1527
|
-
root: ({ theme:
|
|
1527
|
+
root: ({ theme: t }) => ({
|
|
1528
1528
|
minHeight: 64,
|
|
1529
1529
|
paddingLeft: 24,
|
|
1530
1530
|
paddingRight: 24,
|
|
@@ -1533,7 +1533,7 @@ const Wt = (e, i) => {
|
|
|
1533
1533
|
"&.Mui-focusVisible": {
|
|
1534
1534
|
backgroundColor: "transparent",
|
|
1535
1535
|
borderRadius: 8,
|
|
1536
|
-
outline: `2px solid ${
|
|
1536
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1537
1537
|
outlineOffset: -2
|
|
1538
1538
|
}
|
|
1539
1539
|
})
|
|
@@ -1556,7 +1556,7 @@ const Wt = (e, i) => {
|
|
|
1556
1556
|
},
|
|
1557
1557
|
secondary: {
|
|
1558
1558
|
fontSize: 11,
|
|
1559
|
-
color:
|
|
1559
|
+
color: r.text.secondary
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
1562
1562
|
},
|
|
@@ -1577,7 +1577,7 @@ const Wt = (e, i) => {
|
|
|
1577
1577
|
lineHeight: "inherit",
|
|
1578
1578
|
top: -1,
|
|
1579
1579
|
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1580
|
-
backgroundColor:
|
|
1580
|
+
backgroundColor: r.background.default
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
1583
|
},
|
|
@@ -1617,7 +1617,7 @@ const Wt = (e, i) => {
|
|
|
1617
1617
|
},
|
|
1618
1618
|
MuiPaper: {
|
|
1619
1619
|
styleOverrides: {
|
|
1620
|
-
|
|
1620
|
+
rounded: {
|
|
1621
1621
|
borderRadius: 8
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
@@ -1660,11 +1660,11 @@ const Wt = (e, i) => {
|
|
|
1660
1660
|
},
|
|
1661
1661
|
MuiPickersToolbar: {
|
|
1662
1662
|
styleOverrides: {
|
|
1663
|
-
content: ({ theme:
|
|
1663
|
+
content: ({ theme: t }) => ({
|
|
1664
1664
|
marginTop: 4,
|
|
1665
1665
|
"& .MuiTypography-root": {
|
|
1666
|
-
fontSize:
|
|
1667
|
-
lineHeight:
|
|
1666
|
+
fontSize: t.typography.h3.fontSize,
|
|
1667
|
+
lineHeight: t.typography.h3.lineHeight
|
|
1668
1668
|
}
|
|
1669
1669
|
})
|
|
1670
1670
|
}
|
|
@@ -1690,7 +1690,7 @@ const Wt = (e, i) => {
|
|
|
1690
1690
|
disableFocusRipple: !0
|
|
1691
1691
|
},
|
|
1692
1692
|
styleOverrides: {
|
|
1693
|
-
root: ({ theme:
|
|
1693
|
+
root: ({ theme: t }) => ({
|
|
1694
1694
|
width: 37,
|
|
1695
1695
|
height: 20,
|
|
1696
1696
|
padding: 0,
|
|
@@ -1701,7 +1701,7 @@ const Wt = (e, i) => {
|
|
|
1701
1701
|
"&.Mui-checked": {
|
|
1702
1702
|
transform: "translateX(16px)",
|
|
1703
1703
|
"& + .MuiSwitch-track": {
|
|
1704
|
-
backgroundColor:
|
|
1704
|
+
backgroundColor: t.palette.success.main,
|
|
1705
1705
|
opacity: 1,
|
|
1706
1706
|
border: 0
|
|
1707
1707
|
},
|
|
@@ -1710,27 +1710,27 @@ const Wt = (e, i) => {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
},
|
|
1712
1712
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
1713
|
-
color:
|
|
1713
|
+
color: t.palette.common.white
|
|
1714
1714
|
},
|
|
1715
1715
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1716
|
-
backgroundColor:
|
|
1716
|
+
backgroundColor: t.palette.action.disabledBackground,
|
|
1717
1717
|
opacity: 1
|
|
1718
1718
|
}
|
|
1719
1719
|
},
|
|
1720
1720
|
"& .MuiSwitch-input": {
|
|
1721
1721
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
1722
|
-
outline: `2px solid ${
|
|
1722
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1723
1723
|
outlineOffset: 0
|
|
1724
1724
|
}
|
|
1725
1725
|
},
|
|
1726
1726
|
"& .MuiSwitch-thumb": {
|
|
1727
1727
|
boxSizing: "border-box",
|
|
1728
|
-
backgroundColor:
|
|
1728
|
+
backgroundColor: t.palette.background.paper,
|
|
1729
1729
|
width: 16,
|
|
1730
1730
|
height: 16
|
|
1731
1731
|
},
|
|
1732
1732
|
"& .MuiSwitch-track": {
|
|
1733
|
-
backgroundColor:
|
|
1733
|
+
backgroundColor: t.palette.action.active,
|
|
1734
1734
|
borderRadius: 20 / 2,
|
|
1735
1735
|
opacity: 1
|
|
1736
1736
|
}
|
|
@@ -1747,7 +1747,7 @@ const Wt = (e, i) => {
|
|
|
1747
1747
|
fontWeight: 600,
|
|
1748
1748
|
"&.Mui-focusVisible": {
|
|
1749
1749
|
outline: "none",
|
|
1750
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1750
|
+
boxShadow: `inset 0 0 0 2px ${r.info.main}`,
|
|
1751
1751
|
borderRadius: 4
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
@@ -1758,7 +1758,7 @@ const Wt = (e, i) => {
|
|
|
1758
1758
|
root: {
|
|
1759
1759
|
borderBottomStyle: "solid",
|
|
1760
1760
|
borderBottomWidth: 1,
|
|
1761
|
-
borderColor:
|
|
1761
|
+
borderColor: r.divider,
|
|
1762
1762
|
marginBottom: 8
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
@@ -1774,7 +1774,7 @@ const Wt = (e, i) => {
|
|
|
1774
1774
|
},
|
|
1775
1775
|
styleOverrides: {
|
|
1776
1776
|
root: {
|
|
1777
|
-
backgroundColor:
|
|
1777
|
+
backgroundColor: r.background.paper
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
},
|
|
@@ -1784,53 +1784,54 @@ const Wt = (e, i) => {
|
|
|
1784
1784
|
disableFocusRipple: !0
|
|
1785
1785
|
},
|
|
1786
1786
|
styleOverrides: {
|
|
1787
|
-
root: {
|
|
1788
|
-
color: t.text.primary,
|
|
1787
|
+
root: ({ theme: t }) => ({
|
|
1789
1788
|
fontSize: 13,
|
|
1790
1789
|
lineHeight: "16px",
|
|
1791
1790
|
textTransform: "none",
|
|
1792
1791
|
"&:focus-visible": {
|
|
1793
|
-
outline: `2px solid ${
|
|
1792
|
+
outline: `2px solid ${r.info.main}`,
|
|
1794
1793
|
outlineOffset: "2px"
|
|
1795
1794
|
},
|
|
1796
1795
|
"&:hover": {
|
|
1797
|
-
backgroundColor:
|
|
1798
|
-
|
|
1796
|
+
backgroundColor: m(
|
|
1797
|
+
t.palette.primary.main,
|
|
1798
|
+
r.mode === y.LIGHT ? 0.1 : 0.2
|
|
1799
|
+
),
|
|
1800
|
+
borderColor: t.palette.primary.main
|
|
1799
1801
|
},
|
|
1800
1802
|
"&.Mui-selected": {
|
|
1801
1803
|
fontWeight: 600,
|
|
1802
|
-
borderColor: t.primary.main,
|
|
1804
|
+
borderColor: t.palette.primary.main,
|
|
1803
1805
|
"&:hover": {
|
|
1804
|
-
boxShadow: `inset 0px 0px 0px 2px ${t.primary.main}`
|
|
1806
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
|
|
1805
1807
|
}
|
|
1806
1808
|
},
|
|
1807
1809
|
"& .MuiTouchRipple-root": {
|
|
1808
|
-
"& .MuiTouchRipple-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
}
|
|
1810
|
+
"& .MuiTouchRipple-child": {
|
|
1811
|
+
backgroundColor: t.palette.primary.main,
|
|
1812
|
+
borderRadius: t.shape.borderRadius
|
|
1812
1813
|
}
|
|
1813
1814
|
}
|
|
1814
|
-
}
|
|
1815
|
+
})
|
|
1815
1816
|
},
|
|
1816
1817
|
variants: [
|
|
1817
1818
|
{
|
|
1818
1819
|
props: { color: "error" },
|
|
1819
1820
|
style: {
|
|
1820
1821
|
"&:hover": {
|
|
1821
|
-
backgroundColor:
|
|
1822
|
-
borderColor:
|
|
1822
|
+
backgroundColor: m(r.error.main, r.mode === y.LIGHT ? 0.1 : 0.2),
|
|
1823
|
+
borderColor: r.error.main
|
|
1823
1824
|
},
|
|
1824
1825
|
"&.Mui-selected": {
|
|
1825
|
-
borderColor:
|
|
1826
|
+
borderColor: r.error.main,
|
|
1826
1827
|
"&:hover": {
|
|
1827
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1828
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.error.main}`
|
|
1828
1829
|
}
|
|
1829
1830
|
},
|
|
1830
1831
|
"& .MuiTouchRipple-root": {
|
|
1831
1832
|
"& .MuiTouchRipple-ripple": {
|
|
1832
1833
|
"& .MuiTouchRipple-child": {
|
|
1833
|
-
backgroundColor:
|
|
1834
|
+
backgroundColor: r.error.main
|
|
1834
1835
|
}
|
|
1835
1836
|
}
|
|
1836
1837
|
}
|
|
@@ -1840,22 +1841,22 @@ const Wt = (e, i) => {
|
|
|
1840
1841
|
props: { color: "standard" },
|
|
1841
1842
|
style: {
|
|
1842
1843
|
"&:hover": {
|
|
1843
|
-
backgroundColor:
|
|
1844
|
-
|
|
1845
|
-
|
|
1844
|
+
backgroundColor: m(
|
|
1845
|
+
r.secondary.main,
|
|
1846
|
+
r.mode === y.LIGHT ? 0.1 : 0.2
|
|
1846
1847
|
),
|
|
1847
|
-
borderColor:
|
|
1848
|
+
borderColor: r.secondary.main
|
|
1848
1849
|
},
|
|
1849
1850
|
"&.Mui-selected": {
|
|
1850
|
-
borderColor:
|
|
1851
|
+
borderColor: r.secondary.main,
|
|
1851
1852
|
"&:hover": {
|
|
1852
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1853
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.secondary.main}`
|
|
1853
1854
|
}
|
|
1854
1855
|
},
|
|
1855
1856
|
"& .MuiTouchRipple-root": {
|
|
1856
1857
|
"& .MuiTouchRipple-ripple": {
|
|
1857
1858
|
"& .MuiTouchRipple-child": {
|
|
1858
|
-
backgroundColor:
|
|
1859
|
+
backgroundColor: r.secondary.main
|
|
1859
1860
|
}
|
|
1860
1861
|
}
|
|
1861
1862
|
}
|