@mxenabled/mxui 2.3.0 → 2.4.1
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
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import N from "react";
|
|
3
3
|
import A from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
4
|
+
import { useTheme as I, createTheme as $ } from "@mui/material/styles";
|
|
5
5
|
import { Icon as le, ExpandMore as se, Close as ce } from "@mxenabled/mx-icons";
|
|
6
6
|
import { endOfMonth as U } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as de } from "date-fns/endOfYear";
|
|
8
8
|
import { startOfToday as ue } from "date-fns/startOfToday";
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
9
|
+
import { startOfMonth as V } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as G } from "date-fns/startOfYear";
|
|
11
11
|
import { subDays as W } from "date-fns/subDays";
|
|
12
12
|
import { subMonths as pe } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as he } from "date-fns/subYears";
|
|
@@ -28,7 +28,7 @@ import ye from "@mui/material/Typography";
|
|
|
28
28
|
import Ie 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 f, darken as L, lighten as
|
|
31
|
+
import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as f, darken as L, lighten as E, getContrastRatio as Le } from "@mui/material";
|
|
32
32
|
import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
|
|
33
33
|
import { LicenseInfo as ke } from "@mui/x-license";
|
|
34
34
|
const k = ({
|
|
@@ -36,7 +36,7 @@ const k = ({
|
|
|
36
36
|
height: i,
|
|
37
37
|
size: o = 16,
|
|
38
38
|
viewBox: s = "0 0 16 16",
|
|
39
|
-
width:
|
|
39
|
+
width: n
|
|
40
40
|
}) => /* @__PURE__ */ a(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
@@ -45,11 +45,11 @@ const k = ({
|
|
|
45
45
|
focusable: !1,
|
|
46
46
|
height: i || o,
|
|
47
47
|
viewBox: s,
|
|
48
|
-
width:
|
|
48
|
+
width: n || o,
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
children: e
|
|
51
51
|
}
|
|
52
|
-
), x = ({ color: e, fill: i = !1, name: o, size: s = 20, sx:
|
|
52
|
+
), x = ({ color: e, fill: i = !1, name: o, size: s = 20, sx: n, ...r }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: s, sx: n, ...r }), Ft = ({
|
|
53
53
|
color: e = "currentColor",
|
|
54
54
|
...i
|
|
55
55
|
}) => /* @__PURE__ */ b(k, { ...i, children: [
|
|
@@ -254,47 +254,47 @@ const te = {
|
|
|
254
254
|
icon_ratio: i = we,
|
|
255
255
|
size: o = 32,
|
|
256
256
|
sx: s = {},
|
|
257
|
-
variant:
|
|
257
|
+
variant: n = "filled"
|
|
258
258
|
}) => {
|
|
259
|
-
const
|
|
259
|
+
const r = I(), l = N.useMemo(
|
|
260
260
|
() => De.find((m) => m.guid === e) ?? te,
|
|
261
261
|
[e]
|
|
262
|
-
), c =
|
|
262
|
+
), c = r.palette.categories[l.colorName];
|
|
263
263
|
return /* @__PURE__ */ a(
|
|
264
264
|
A,
|
|
265
265
|
{
|
|
266
266
|
alignItems: "center",
|
|
267
267
|
bgcolor: () => {
|
|
268
268
|
let m = c;
|
|
269
|
-
return
|
|
269
|
+
return n === "twotone" && (m = `${m}20`), n === "transparent" || n === "basic" ? "transparent" : m;
|
|
270
270
|
},
|
|
271
271
|
borderRadius: 1,
|
|
272
272
|
color: () => {
|
|
273
|
-
const m =
|
|
274
|
-
return
|
|
273
|
+
const m = n === "filled" ? r.palette.common.white : c;
|
|
274
|
+
return n === "basic" ? r.palette.text.primary : m;
|
|
275
275
|
},
|
|
276
276
|
height: o,
|
|
277
277
|
justifyContent: "center",
|
|
278
278
|
sx: [...Array.isArray(s) ? s : [s]],
|
|
279
279
|
width: o,
|
|
280
|
-
children: /* @__PURE__ */ a(x, { name:
|
|
280
|
+
children: /* @__PURE__ */ a(x, { name: l.icon, size: o * i })
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
}, _e = ({ items: e, selected: i }) => {
|
|
284
|
-
const o =
|
|
285
|
-
const c =
|
|
284
|
+
const o = I(), { setValue: s } = X(), n = Z(), r = e?.map((l) => {
|
|
285
|
+
const c = l.getValue({ isValid: n });
|
|
286
286
|
return {
|
|
287
|
-
label:
|
|
287
|
+
label: l.label,
|
|
288
288
|
onClick: () => {
|
|
289
|
-
s(c, { changeImportance: "accept", shortcut:
|
|
289
|
+
s(c, { changeImportance: "accept", shortcut: l });
|
|
290
290
|
},
|
|
291
|
-
disabled: !
|
|
291
|
+
disabled: !n(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: r?.map((l) => /* @__PURE__ */ a(
|
|
295
295
|
xe,
|
|
296
296
|
{
|
|
297
|
-
onClick:
|
|
297
|
+
onClick: l.onClick,
|
|
298
298
|
sx: {
|
|
299
299
|
borderWidth: 1,
|
|
300
300
|
color: "secondary.dark",
|
|
@@ -314,24 +314,24 @@ const te = {
|
|
|
314
314
|
color: "primary"
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
value:
|
|
318
|
-
children:
|
|
317
|
+
value: l.label,
|
|
318
|
+
children: l.label
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
l.label
|
|
321
321
|
)) }) });
|
|
322
322
|
}, Be = ({
|
|
323
323
|
items: e,
|
|
324
324
|
selected: i,
|
|
325
325
|
selectLabel: o
|
|
326
326
|
}) => {
|
|
327
|
-
const { setValue: s } = X(),
|
|
328
|
-
const c =
|
|
327
|
+
const { setValue: s } = X(), n = Z(), r = e?.map((l) => {
|
|
328
|
+
const c = l.getValue({ isValid: n });
|
|
329
329
|
return {
|
|
330
|
-
label:
|
|
330
|
+
label: l.label,
|
|
331
331
|
onClick: () => {
|
|
332
|
-
s(c, { changeImportance: "accept", shortcut:
|
|
332
|
+
s(c, { changeImportance: "accept", shortcut: l });
|
|
333
333
|
},
|
|
334
|
-
disabled: !
|
|
334
|
+
disabled: !n(c)
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
337
|
return /* @__PURE__ */ a(A, { sx: { py: 16 }, children: /* @__PURE__ */ a(
|
|
@@ -345,15 +345,15 @@ const te = {
|
|
|
345
345
|
sx: { width: "100%" },
|
|
346
346
|
value: i,
|
|
347
347
|
variant: "outlined",
|
|
348
|
-
children:
|
|
348
|
+
children: r?.map((l) => /* @__PURE__ */ a(Me, { onClick: l.onClick, value: l.label, children: l.label }, l.label))
|
|
349
349
|
}
|
|
350
350
|
) });
|
|
351
351
|
}, ze = (e) => {
|
|
352
|
-
const { toolbar: i, content: o, shortcuts: s, ownerState:
|
|
352
|
+
const { toolbar: i, content: o, shortcuts: s, ownerState: n } = Ce(e);
|
|
353
353
|
return /* @__PURE__ */ b(
|
|
354
354
|
Se,
|
|
355
355
|
{
|
|
356
|
-
ownerState:
|
|
356
|
+
ownerState: n,
|
|
357
357
|
sx: {
|
|
358
358
|
gridTemplateColumns: "minmax(320px, 1fr)",
|
|
359
359
|
overflow: "auto",
|
|
@@ -377,7 +377,7 @@ const te = {
|
|
|
377
377
|
Ae,
|
|
378
378
|
{
|
|
379
379
|
className: D.contentWrapper,
|
|
380
|
-
ownerState:
|
|
380
|
+
ownerState: n,
|
|
381
381
|
children: o
|
|
382
382
|
}
|
|
383
383
|
)
|
|
@@ -389,45 +389,45 @@ const te = {
|
|
|
389
389
|
dateRange: i,
|
|
390
390
|
onRangeChanged: o,
|
|
391
391
|
selectedShortcut: s = e.dateRangeThisMonth,
|
|
392
|
-
sx:
|
|
392
|
+
sx: n = {}
|
|
393
393
|
}) => {
|
|
394
|
-
const
|
|
395
|
-
const
|
|
394
|
+
const r = I(), l = ge(r.breakpoints.down("sm")), c = N.useMemo(() => {
|
|
395
|
+
const t = ue(), m = pe(t, 1), T = he(t, 1);
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
398
|
label: e.dateRangeThisMonth,
|
|
399
|
-
getValue: () => [
|
|
399
|
+
getValue: () => [V(t), U(t)]
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
label: e.dateRangeLastMonth,
|
|
403
|
-
getValue: () => [
|
|
403
|
+
getValue: () => [V(m), U(m)]
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
label: e.dateRangeLast30Days,
|
|
407
|
-
getValue: () => [W(
|
|
407
|
+
getValue: () => [W(t, 30), t]
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
label: e.dateRangeLast90Days,
|
|
411
|
-
getValue: () => [W(
|
|
411
|
+
getValue: () => [W(t, 90), t]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
label: e.dateRangeYTD,
|
|
415
|
-
getValue: () => [
|
|
415
|
+
getValue: () => [G(t), t]
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
label: e.dateRangeLastYear,
|
|
419
|
-
getValue: () => [
|
|
419
|
+
getValue: () => [G(T), de(T)]
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
label: e.dateRangeCustom,
|
|
423
|
-
getValue: () => [
|
|
423
|
+
getValue: () => [t, t]
|
|
424
424
|
}
|
|
425
425
|
];
|
|
426
|
-
}, [e]), d = (
|
|
426
|
+
}, [e]), d = (t, m) => {
|
|
427
427
|
const T = m.shortcut;
|
|
428
|
-
o?.(
|
|
428
|
+
o?.(t, T ? T.label : e.dateRangeCustom);
|
|
429
429
|
};
|
|
430
|
-
return /* @__PURE__ */ a(A, { gap:
|
|
430
|
+
return /* @__PURE__ */ a(A, { gap: l ? 0 : 16, m: l ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
|
|
431
431
|
fe,
|
|
432
432
|
{
|
|
433
433
|
calendars: 1,
|
|
@@ -456,24 +456,24 @@ const te = {
|
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
458
|
slots: {
|
|
459
|
-
...
|
|
459
|
+
...l && { layout: ze },
|
|
460
460
|
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
461
|
-
shortcuts: (
|
|
461
|
+
shortcuts: (t) => l ? /* @__PURE__ */ a(
|
|
462
462
|
Be,
|
|
463
463
|
{
|
|
464
464
|
selectLabel: e.dateRangeSelectARange,
|
|
465
465
|
selected: s,
|
|
466
|
-
...
|
|
466
|
+
...t
|
|
467
467
|
}
|
|
468
|
-
) : /* @__PURE__ */ a(_e, { selected: s, ...
|
|
468
|
+
) : /* @__PURE__ */ a(_e, { selected: s, ...t }),
|
|
469
469
|
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
|
|
470
|
-
...
|
|
471
|
-
toolbar: (
|
|
470
|
+
...l && {
|
|
471
|
+
toolbar: (t) => /* @__PURE__ */ a(
|
|
472
472
|
Te,
|
|
473
473
|
{
|
|
474
474
|
dateSeparator: "",
|
|
475
475
|
format: "MM/dd/yyyy",
|
|
476
|
-
...
|
|
476
|
+
...t,
|
|
477
477
|
slotProps: {
|
|
478
478
|
textField: ({ position: m }) => ({
|
|
479
479
|
label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
@@ -484,7 +484,7 @@ const te = {
|
|
|
484
484
|
)
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
|
-
sx: { ...
|
|
487
|
+
sx: { ...n },
|
|
488
488
|
value: i
|
|
489
489
|
}
|
|
490
490
|
) }) });
|
|
@@ -495,9 +495,9 @@ const te = {
|
|
|
495
495
|
isPrimaryDisabled: i,
|
|
496
496
|
onPrimaryAction: o,
|
|
497
497
|
onSecondaryAction: s,
|
|
498
|
-
primaryColor:
|
|
499
|
-
primaryText:
|
|
500
|
-
secondaryColor:
|
|
498
|
+
primaryColor: n = "primary",
|
|
499
|
+
primaryText: r = "Save",
|
|
500
|
+
secondaryColor: l = "primary",
|
|
501
501
|
secondaryText: c = "Cancel"
|
|
502
502
|
}) => /* @__PURE__ */ b(
|
|
503
503
|
A,
|
|
@@ -510,7 +510,7 @@ const te = {
|
|
|
510
510
|
e && /* @__PURE__ */ a(
|
|
511
511
|
B,
|
|
512
512
|
{
|
|
513
|
-
color:
|
|
513
|
+
color: l,
|
|
514
514
|
onClick: s,
|
|
515
515
|
variant: o ? "outlined" : "contained",
|
|
516
516
|
children: c
|
|
@@ -519,11 +519,11 @@ const te = {
|
|
|
519
519
|
o && /* @__PURE__ */ a(
|
|
520
520
|
B,
|
|
521
521
|
{
|
|
522
|
-
color:
|
|
522
|
+
color: n,
|
|
523
523
|
disabled: i,
|
|
524
524
|
onClick: o,
|
|
525
525
|
variant: "contained",
|
|
526
|
-
children:
|
|
526
|
+
children: r
|
|
527
527
|
}
|
|
528
528
|
)
|
|
529
529
|
]
|
|
@@ -533,9 +533,9 @@ const te = {
|
|
|
533
533
|
className: i = "",
|
|
534
534
|
children: o,
|
|
535
535
|
color: s,
|
|
536
|
-
sx:
|
|
537
|
-
truncate:
|
|
538
|
-
uppercase:
|
|
536
|
+
sx: n = {},
|
|
537
|
+
truncate: r,
|
|
538
|
+
uppercase: l,
|
|
539
539
|
...c
|
|
540
540
|
}) => /* @__PURE__ */ a(
|
|
541
541
|
ye,
|
|
@@ -546,15 +546,15 @@ const te = {
|
|
|
546
546
|
e ? {
|
|
547
547
|
fontWeight: 600
|
|
548
548
|
} : {},
|
|
549
|
-
|
|
549
|
+
r ? {
|
|
550
550
|
overflow: "hidden",
|
|
551
551
|
textOverflow: "ellipsis",
|
|
552
552
|
whiteSpace: "nowrap"
|
|
553
553
|
} : {},
|
|
554
|
-
|
|
554
|
+
l ? {
|
|
555
555
|
textTransform: "uppercase"
|
|
556
556
|
} : {},
|
|
557
|
-
...Array.isArray(
|
|
557
|
+
...Array.isArray(n) ? n : [n]
|
|
558
558
|
],
|
|
559
559
|
...c,
|
|
560
560
|
children: o
|
|
@@ -579,31 +579,31 @@ const te = {
|
|
|
579
579
|
disableSave: i,
|
|
580
580
|
id: o,
|
|
581
581
|
isOpen: s,
|
|
582
|
-
onClose:
|
|
583
|
-
onSave:
|
|
584
|
-
primaryText:
|
|
582
|
+
onClose: n,
|
|
583
|
+
onSave: r,
|
|
584
|
+
primaryText: l,
|
|
585
585
|
secondaryText: c,
|
|
586
586
|
children: d,
|
|
587
|
-
...
|
|
587
|
+
...t
|
|
588
588
|
}) => /* @__PURE__ */ b(
|
|
589
589
|
Ie,
|
|
590
590
|
{
|
|
591
591
|
anchor: "right",
|
|
592
592
|
className: `mx-kmui-drawer ${e}`,
|
|
593
593
|
id: o ?? void 0,
|
|
594
|
-
onClose:
|
|
594
|
+
onClose: n,
|
|
595
595
|
open: s,
|
|
596
596
|
variant: "temporary",
|
|
597
|
-
...
|
|
597
|
+
...t,
|
|
598
598
|
children: [
|
|
599
599
|
d,
|
|
600
|
-
|
|
600
|
+
r && /* @__PURE__ */ a(
|
|
601
601
|
$e,
|
|
602
602
|
{
|
|
603
603
|
isPrimaryDisabled: i,
|
|
604
|
-
onPrimaryAction:
|
|
605
|
-
onSecondaryAction:
|
|
606
|
-
primaryText:
|
|
604
|
+
onPrimaryAction: r,
|
|
605
|
+
onSecondaryAction: n,
|
|
606
|
+
primaryText: l,
|
|
607
607
|
secondaryText: c
|
|
608
608
|
}
|
|
609
609
|
)
|
|
@@ -614,39 +614,39 @@ const te = {
|
|
|
614
614
|
institutionGuid: i,
|
|
615
615
|
logoUrl: o,
|
|
616
616
|
size: s = re,
|
|
617
|
-
...
|
|
617
|
+
...n
|
|
618
618
|
}) => /* @__PURE__ */ a(
|
|
619
619
|
"img",
|
|
620
620
|
{
|
|
621
621
|
alt: e,
|
|
622
622
|
height: s,
|
|
623
|
-
onError: (
|
|
624
|
-
const
|
|
625
|
-
|
|
623
|
+
onError: (r) => {
|
|
624
|
+
const l = r.target;
|
|
625
|
+
l.src !== K && (l.src = K);
|
|
626
626
|
},
|
|
627
627
|
src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
628
628
|
style: {
|
|
629
629
|
borderRadius: 4
|
|
630
630
|
},
|
|
631
631
|
width: s,
|
|
632
|
-
...
|
|
632
|
+
...n
|
|
633
633
|
}
|
|
634
634
|
), $t = ({
|
|
635
635
|
alt: e = "",
|
|
636
636
|
categoryGuid: i,
|
|
637
637
|
merchantGuid: o,
|
|
638
638
|
size: s = re,
|
|
639
|
-
...
|
|
639
|
+
...n
|
|
640
640
|
}) => {
|
|
641
|
-
const [
|
|
642
|
-
return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...
|
|
643
|
-
o && !
|
|
641
|
+
const [r, l] = N.useState(!1), c = I();
|
|
642
|
+
return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...n, children: [
|
|
643
|
+
o && !r && /* @__PURE__ */ a(
|
|
644
644
|
"img",
|
|
645
645
|
{
|
|
646
646
|
alt: e,
|
|
647
647
|
"aria-hidden": !e,
|
|
648
648
|
height: s,
|
|
649
|
-
onError: () =>
|
|
649
|
+
onError: () => l(!0),
|
|
650
650
|
src: `${z}/merchant_logos/${o}.png`,
|
|
651
651
|
style: {
|
|
652
652
|
backgroundColor: c.palette.common.white,
|
|
@@ -664,7 +664,7 @@ const te = {
|
|
|
664
664
|
label: i = "",
|
|
665
665
|
shrink: o = !0,
|
|
666
666
|
variant: s = "outlined",
|
|
667
|
-
...
|
|
667
|
+
...n
|
|
668
668
|
}) => /* @__PURE__ */ a(
|
|
669
669
|
J,
|
|
670
670
|
{
|
|
@@ -674,36 +674,36 @@ const te = {
|
|
|
674
674
|
disabled: e,
|
|
675
675
|
label: i,
|
|
676
676
|
variant: s,
|
|
677
|
-
...
|
|
677
|
+
...n
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
|
-
function
|
|
680
|
+
function Ve(e) {
|
|
681
681
|
return /* @__PURE__ */ a(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
682
682
|
}
|
|
683
|
-
const
|
|
683
|
+
const Vt = ({
|
|
684
684
|
open: e = !0,
|
|
685
685
|
handleClose: i,
|
|
686
686
|
closeAriaLabel: o,
|
|
687
687
|
message: s,
|
|
688
|
-
autoHideDuration:
|
|
689
|
-
severity:
|
|
690
|
-
snackbarSx:
|
|
688
|
+
autoHideDuration: n = 3e3,
|
|
689
|
+
severity: r = "success",
|
|
690
|
+
snackbarSx: l,
|
|
691
691
|
showAction: c = !1,
|
|
692
692
|
showClose: d = !1,
|
|
693
|
-
actionText:
|
|
693
|
+
actionText: t = "Undo",
|
|
694
694
|
onActionClick: m
|
|
695
695
|
}) => {
|
|
696
|
-
const T =
|
|
696
|
+
const T = I(), v = d && /* @__PURE__ */ a(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(x, { fill: !0, name: "close" }) }), g = `${r}.main`;
|
|
697
697
|
return /* @__PURE__ */ a(
|
|
698
698
|
Ee,
|
|
699
699
|
{
|
|
700
700
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
701
|
-
autoHideDuration:
|
|
701
|
+
autoHideDuration: n,
|
|
702
702
|
onClose: i,
|
|
703
703
|
open: e,
|
|
704
|
-
slots: { transition:
|
|
704
|
+
slots: { transition: Ve },
|
|
705
705
|
sx: {
|
|
706
|
-
...
|
|
706
|
+
...l,
|
|
707
707
|
maxWidth: 568,
|
|
708
708
|
minWidth: 288,
|
|
709
709
|
minHeight: 56
|
|
@@ -712,7 +712,7 @@ const Gt = ({
|
|
|
712
712
|
Oe,
|
|
713
713
|
{
|
|
714
714
|
action: v,
|
|
715
|
-
severity:
|
|
715
|
+
severity: r,
|
|
716
716
|
sx: {
|
|
717
717
|
backgroundColor: g,
|
|
718
718
|
display: "flex",
|
|
@@ -766,7 +766,7 @@ const Gt = ({
|
|
|
766
766
|
minWidth: "auto",
|
|
767
767
|
justifyContent: "flex-start"
|
|
768
768
|
},
|
|
769
|
-
children:
|
|
769
|
+
children: t
|
|
770
770
|
}
|
|
771
771
|
)
|
|
772
772
|
]
|
|
@@ -776,22 +776,22 @@ const Gt = ({
|
|
|
776
776
|
)
|
|
777
777
|
}
|
|
778
778
|
);
|
|
779
|
-
},
|
|
779
|
+
}, Gt = ({
|
|
780
780
|
component: e = P,
|
|
781
781
|
variant: i = "outlined",
|
|
782
782
|
selected: o,
|
|
783
783
|
onChange: s,
|
|
784
|
-
headline:
|
|
785
|
-
message:
|
|
786
|
-
name:
|
|
784
|
+
headline: n,
|
|
785
|
+
message: r,
|
|
786
|
+
name: l,
|
|
787
787
|
value: c,
|
|
788
788
|
disabled: d = !1,
|
|
789
|
-
error:
|
|
789
|
+
error: t = !1,
|
|
790
790
|
icon: m = !1,
|
|
791
791
|
sx: T = {},
|
|
792
792
|
...v
|
|
793
793
|
}) => {
|
|
794
|
-
const g =
|
|
794
|
+
const g = I(), oe = () => g.palette.background.paper, H = () => t ? `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 || t ? g.palette.background.paper : f(g.palette.primary.main, 0.1), ae = () => d || t ? 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 || t ? g.palette.background.paper : f(g.palette.primary.main, 0.3);
|
|
795
795
|
return /* @__PURE__ */ a(
|
|
796
796
|
Fe,
|
|
797
797
|
{
|
|
@@ -799,7 +799,7 @@ const Gt = ({
|
|
|
799
799
|
control: e === P ? /* @__PURE__ */ a(
|
|
800
800
|
P,
|
|
801
801
|
{
|
|
802
|
-
name:
|
|
802
|
+
name: l,
|
|
803
803
|
sx: {
|
|
804
804
|
p: 0,
|
|
805
805
|
ml: 16,
|
|
@@ -814,7 +814,7 @@ const Gt = ({
|
|
|
814
814
|
) : /* @__PURE__ */ a(
|
|
815
815
|
ve,
|
|
816
816
|
{
|
|
817
|
-
name:
|
|
817
|
+
name: l,
|
|
818
818
|
sx: {
|
|
819
819
|
p: 0,
|
|
820
820
|
ml: 16,
|
|
@@ -831,8 +831,8 @@ const Gt = ({
|
|
|
831
831
|
label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
832
832
|
m && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
|
|
833
833
|
/* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
834
|
-
|
|
835
|
-
/* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children:
|
|
834
|
+
n && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: n }),
|
|
835
|
+
/* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
|
|
836
836
|
] })
|
|
837
837
|
] }),
|
|
838
838
|
labelPlacement: "start",
|
|
@@ -869,20 +869,20 @@ const Gt = ({
|
|
|
869
869
|
value: c
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
|
-
},
|
|
872
|
+
}, O = {
|
|
873
873
|
LIGHT: "light"
|
|
874
874
|
}, R = (e) => ({
|
|
875
|
-
50:
|
|
876
|
-
100:
|
|
877
|
-
200:
|
|
878
|
-
300:
|
|
879
|
-
400:
|
|
875
|
+
50: E(e, 0.95),
|
|
876
|
+
100: E(e, 0.85),
|
|
877
|
+
200: E(e, 0.7),
|
|
878
|
+
300: E(e, 0.55),
|
|
879
|
+
400: E(e, 0.3),
|
|
880
880
|
500: e,
|
|
881
881
|
600: L(e, 0.3),
|
|
882
882
|
700: L(e, 0.5),
|
|
883
883
|
800: L(e, 0.65),
|
|
884
884
|
900: L(e, 0.75)
|
|
885
|
-
}), M = "#FFFFFF", _ = "#000000",
|
|
885
|
+
}), M = "#FFFFFF", _ = "#000000", Ge = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
|
|
886
886
|
PRIMARY: "#2C64EF",
|
|
887
887
|
SECONDARY: "#808080",
|
|
888
888
|
INFO: "#2C64EF",
|
|
@@ -952,7 +952,7 @@ const Gt = ({
|
|
|
952
952
|
TRAVEL: "#76ACF7",
|
|
953
953
|
UNCATEGORIZED: "#BCC6D4"
|
|
954
954
|
}, je = (e, i) => {
|
|
955
|
-
const o = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY),
|
|
955
|
+
const o = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY), n = R(i?.error || C.ERROR), r = R(i?.warning || C.WARNING), l = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), t = e === O.LIGHT;
|
|
956
956
|
return {
|
|
957
957
|
mode: e,
|
|
958
958
|
common: {
|
|
@@ -961,103 +961,103 @@ const Gt = ({
|
|
|
961
961
|
},
|
|
962
962
|
primary: {
|
|
963
963
|
...o,
|
|
964
|
-
lighter:
|
|
965
|
-
light:
|
|
966
|
-
main:
|
|
967
|
-
dark:
|
|
968
|
-
darker:
|
|
964
|
+
lighter: t ? o[100] : o[700],
|
|
965
|
+
light: t ? o[300] : o[600],
|
|
966
|
+
main: t ? o[500] : o[400],
|
|
967
|
+
dark: t ? o[700] : o[200],
|
|
968
|
+
darker: t ? o[800] : o[100]
|
|
969
969
|
},
|
|
970
970
|
secondary: {
|
|
971
971
|
...s,
|
|
972
|
-
lighter:
|
|
973
|
-
light:
|
|
974
|
-
main:
|
|
975
|
-
dark:
|
|
976
|
-
darker:
|
|
972
|
+
lighter: t ? s[100] : s[800],
|
|
973
|
+
light: t ? s[300] : s[600],
|
|
974
|
+
main: t ? s[500] : s[400],
|
|
975
|
+
dark: t ? s[700] : s[200],
|
|
976
|
+
darker: t ? s[800] : s[100]
|
|
977
977
|
},
|
|
978
978
|
neutral: {
|
|
979
979
|
...d,
|
|
980
|
-
lighter:
|
|
981
|
-
light:
|
|
982
|
-
main:
|
|
983
|
-
dark:
|
|
984
|
-
darker:
|
|
985
|
-
contrastText: Le(
|
|
980
|
+
lighter: t ? d[100] : d[800],
|
|
981
|
+
light: t ? d[300] : d[600],
|
|
982
|
+
main: t ? d[500] : d[400],
|
|
983
|
+
dark: t ? d[700] : d[200],
|
|
984
|
+
darker: t ? d[800] : d[100],
|
|
985
|
+
contrastText: Le(t ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
|
|
986
986
|
},
|
|
987
987
|
text: {
|
|
988
|
-
primary:
|
|
989
|
-
secondary:
|
|
990
|
-
disabled:
|
|
988
|
+
primary: t ? d[900] : M,
|
|
989
|
+
secondary: t ? d[600] : f(M, 0.7),
|
|
990
|
+
disabled: t ? d[500] : f(M, 0.38)
|
|
991
991
|
},
|
|
992
992
|
error: {
|
|
993
|
-
...
|
|
994
|
-
lighter:
|
|
995
|
-
light:
|
|
996
|
-
main:
|
|
997
|
-
dark:
|
|
998
|
-
darker:
|
|
993
|
+
...n,
|
|
994
|
+
lighter: t ? n[100] : n[700],
|
|
995
|
+
light: t ? n[300] : n[600],
|
|
996
|
+
main: t ? n[500] : n[400],
|
|
997
|
+
dark: t ? n[700] : n[200],
|
|
998
|
+
darker: t ? n[800] : n[100]
|
|
999
999
|
},
|
|
1000
1000
|
warning: {
|
|
1001
|
-
...
|
|
1002
|
-
lighter:
|
|
1003
|
-
light:
|
|
1004
|
-
main:
|
|
1005
|
-
dark:
|
|
1006
|
-
darker:
|
|
1001
|
+
...r,
|
|
1002
|
+
lighter: t ? r[100] : r[700],
|
|
1003
|
+
light: t ? r[300] : r[600],
|
|
1004
|
+
main: t ? r[500] : r[400],
|
|
1005
|
+
dark: t ? r[700] : r[200],
|
|
1006
|
+
darker: t ? r[800] : r[100]
|
|
1007
1007
|
},
|
|
1008
1008
|
info: {
|
|
1009
|
-
...
|
|
1010
|
-
lighter:
|
|
1011
|
-
light:
|
|
1012
|
-
main:
|
|
1013
|
-
dark:
|
|
1014
|
-
darker:
|
|
1009
|
+
...l,
|
|
1010
|
+
lighter: t ? l[100] : l[700],
|
|
1011
|
+
light: t ? l[300] : l[600],
|
|
1012
|
+
main: t ? l[500] : l[400],
|
|
1013
|
+
dark: t ? l[700] : l[200],
|
|
1014
|
+
darker: t ? l[800] : l[100]
|
|
1015
1015
|
},
|
|
1016
1016
|
success: {
|
|
1017
1017
|
...c,
|
|
1018
|
-
lighter:
|
|
1019
|
-
light:
|
|
1020
|
-
main:
|
|
1021
|
-
dark:
|
|
1022
|
-
darker:
|
|
1018
|
+
lighter: t ? c[100] : c[700],
|
|
1019
|
+
light: t ? c[300] : c[600],
|
|
1020
|
+
main: t ? c[500] : c[400],
|
|
1021
|
+
dark: t ? c[700] : c[200],
|
|
1022
|
+
darker: t ? c[800] : c[100]
|
|
1023
1023
|
},
|
|
1024
1024
|
grey: d,
|
|
1025
1025
|
action: {
|
|
1026
|
-
active:
|
|
1027
|
-
hoverOpacity:
|
|
1028
|
-
selectedOpacity:
|
|
1026
|
+
active: t ? f(_, 0.56) : f(M, 0.56),
|
|
1027
|
+
hoverOpacity: t ? 0.1 : 0.2,
|
|
1028
|
+
selectedOpacity: t ? 0.16 : 0.25,
|
|
1029
1029
|
focusOpacity: 0.3
|
|
1030
1030
|
},
|
|
1031
1031
|
background: {
|
|
1032
|
-
default:
|
|
1033
|
-
paper:
|
|
1034
|
-
highlight:
|
|
1035
|
-
highlightPrimary:
|
|
1032
|
+
default: t ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
|
|
1033
|
+
paper: t ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
|
|
1034
|
+
highlight: t ? d[200] : d[600],
|
|
1035
|
+
highlightPrimary: t ? o[100] : o[500]
|
|
1036
1036
|
},
|
|
1037
|
-
divider:
|
|
1037
|
+
divider: t ? f(_, 0.12) : f(M, 0.24),
|
|
1038
1038
|
categories: {
|
|
1039
|
-
autoTransport:
|
|
1040
|
-
billsUtilities:
|
|
1041
|
-
businessServices:
|
|
1042
|
-
education:
|
|
1043
|
-
entertainment:
|
|
1044
|
-
feesCharges:
|
|
1045
|
-
financial:
|
|
1046
|
-
foodDining:
|
|
1047
|
-
giftsDonations:
|
|
1048
|
-
healthFitness:
|
|
1049
|
-
home:
|
|
1050
|
-
income:
|
|
1051
|
-
investments:
|
|
1052
|
-
kids:
|
|
1053
|
-
others:
|
|
1054
|
-
personalCare:
|
|
1055
|
-
pets:
|
|
1056
|
-
shopping:
|
|
1057
|
-
taxes:
|
|
1058
|
-
transfer:
|
|
1059
|
-
travel:
|
|
1060
|
-
uncategorized:
|
|
1039
|
+
autoTransport: t ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
|
|
1040
|
+
billsUtilities: t ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
|
|
1041
|
+
businessServices: t ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
|
|
1042
|
+
education: t ? u.EDUCATION : p.EDUCATION,
|
|
1043
|
+
entertainment: t ? u.ENTERTAINMENT : p.ENTERTAINMENT,
|
|
1044
|
+
feesCharges: t ? u.FEES_CHARGES : p.FEES_CHARGES,
|
|
1045
|
+
financial: t ? u.FINANCIAL : p.FINANCIAL,
|
|
1046
|
+
foodDining: t ? u.FOOD_DINING : p.FOOD_DINING,
|
|
1047
|
+
giftsDonations: t ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
|
|
1048
|
+
healthFitness: t ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
|
|
1049
|
+
home: t ? u.HOME : p.HOME,
|
|
1050
|
+
income: t ? u.INCOME : p.INCOME,
|
|
1051
|
+
investments: t ? u.INVESTMENTS : p.INVESTMENTS,
|
|
1052
|
+
kids: t ? u.KIDS : p.KIDS,
|
|
1053
|
+
others: t ? u.OTHERS : p.OTHERS,
|
|
1054
|
+
personalCare: t ? u.PERSONAL_CARE : p.PERSONAL_CARE,
|
|
1055
|
+
pets: t ? u.PETS : p.PETS,
|
|
1056
|
+
shopping: t ? u.SHOPPING : p.SHOPPING,
|
|
1057
|
+
taxes: t ? u.TAXES : p.TAXES,
|
|
1058
|
+
transfer: t ? u.TRANSFER : p.TRANSFER,
|
|
1059
|
+
travel: t ? u.TRAVEL : p.TRAVEL,
|
|
1060
|
+
uncategorized: t ? u.UNCATEGORIZED : p.UNCATEGORIZED
|
|
1061
1061
|
},
|
|
1062
1062
|
chart: {
|
|
1063
1063
|
chart1: S.CHART1,
|
|
@@ -1141,8 +1141,8 @@ ke.setLicenseKey(
|
|
|
1141
1141
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1142
1142
|
);
|
|
1143
1143
|
const Wt = (e, i) => {
|
|
1144
|
-
const o = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions),
|
|
1145
|
-
return
|
|
1144
|
+
const o = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions), n = [...$().shadows];
|
|
1145
|
+
return n[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", n[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", n[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", $({
|
|
1146
1146
|
breakpoints: {
|
|
1147
1147
|
values: {
|
|
1148
1148
|
xs: 444,
|
|
@@ -1157,8 +1157,8 @@ const Wt = (e, i) => {
|
|
|
1157
1157
|
shape: {
|
|
1158
1158
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1159
1159
|
},
|
|
1160
|
-
shadows:
|
|
1161
|
-
spacing: 1,
|
|
1160
|
+
shadows: n,
|
|
1161
|
+
...i?.useMUIStandardSpacing ? {} : { spacing: 1 },
|
|
1162
1162
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1163
1163
|
typography: s,
|
|
1164
1164
|
components: {
|
|
@@ -1173,19 +1173,19 @@ const Wt = (e, i) => {
|
|
|
1173
1173
|
variant: "outlined"
|
|
1174
1174
|
},
|
|
1175
1175
|
styleOverrides: {
|
|
1176
|
-
root: ({ theme:
|
|
1177
|
-
const c =
|
|
1178
|
-
let d =
|
|
1179
|
-
if (
|
|
1180
|
-
const
|
|
1181
|
-
d =
|
|
1176
|
+
root: ({ theme: r, ownerState: l }) => {
|
|
1177
|
+
const c = l.severity || "info";
|
|
1178
|
+
let d = r.palette.mode === O.LIGHT ? r.palette[c]?.[50] : r.palette[c]?.[800];
|
|
1179
|
+
if (l.variant === "filled") {
|
|
1180
|
+
const t = c === "warning";
|
|
1181
|
+
d = r.palette[c]?.[t ? 400 : 600];
|
|
1182
1182
|
}
|
|
1183
1183
|
return {
|
|
1184
1184
|
backgroundColor: d,
|
|
1185
|
-
borderRadius:
|
|
1185
|
+
borderRadius: r.shape.borderRadius,
|
|
1186
1186
|
"& .MuiAlert-message": {
|
|
1187
|
-
fontSize:
|
|
1188
|
-
lineHeight:
|
|
1187
|
+
fontSize: r.typography.subtitle1.fontSize,
|
|
1188
|
+
lineHeight: r.typography.subtitle1.lineHeight,
|
|
1189
1189
|
marginTop: "auto",
|
|
1190
1190
|
marginBottom: "auto"
|
|
1191
1191
|
},
|
|
@@ -1211,14 +1211,14 @@ const Wt = (e, i) => {
|
|
|
1211
1211
|
disableElevation: !0
|
|
1212
1212
|
},
|
|
1213
1213
|
styleOverrides: {
|
|
1214
|
-
root: ({ theme:
|
|
1214
|
+
root: ({ theme: r }) => ({
|
|
1215
1215
|
fontWeight: 600,
|
|
1216
1216
|
textTransform: "none",
|
|
1217
1217
|
"&.Mui-disabled": {
|
|
1218
1218
|
cursor: "not-allowed"
|
|
1219
1219
|
},
|
|
1220
1220
|
"&.Mui-focusVisible": {
|
|
1221
|
-
outline: `2px solid ${
|
|
1221
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1222
1222
|
outlineOffset: "2px"
|
|
1223
1223
|
}
|
|
1224
1224
|
}),
|
|
@@ -1236,9 +1236,9 @@ const Wt = (e, i) => {
|
|
|
1236
1236
|
},
|
|
1237
1237
|
{
|
|
1238
1238
|
props: { variant: "outlined", color: "error" },
|
|
1239
|
-
style: ({ theme:
|
|
1239
|
+
style: ({ theme: r }) => ({
|
|
1240
1240
|
"&:hover, &:active": {
|
|
1241
|
-
color:
|
|
1241
|
+
color: r.palette.error.dark
|
|
1242
1242
|
}
|
|
1243
1243
|
})
|
|
1244
1244
|
}
|
|
@@ -1292,22 +1292,22 @@ const Wt = (e, i) => {
|
|
|
1292
1292
|
},
|
|
1293
1293
|
MuiDataGrid: {
|
|
1294
1294
|
styleOverrides: {
|
|
1295
|
-
root: ({ theme:
|
|
1295
|
+
root: ({ theme: r }) => ({
|
|
1296
1296
|
border: "none",
|
|
1297
1297
|
borderRadius: 0,
|
|
1298
|
-
fontSize:
|
|
1298
|
+
fontSize: r.typography.body2.fontSize,
|
|
1299
1299
|
"& .MuiDataGrid-cell": {
|
|
1300
1300
|
display: "flex",
|
|
1301
1301
|
alignItems: "center",
|
|
1302
1302
|
borderTop: "1px solid",
|
|
1303
|
-
borderColor:
|
|
1303
|
+
borderColor: r.palette.background.highlight
|
|
1304
1304
|
},
|
|
1305
1305
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1306
1306
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1307
1307
|
"& .MuiDataGrid-columnHeaders": {
|
|
1308
|
-
backgroundColor:
|
|
1308
|
+
backgroundColor: r.palette.background.paper,
|
|
1309
1309
|
borderBottom: "2px solid",
|
|
1310
|
-
borderColor:
|
|
1310
|
+
borderColor: r.palette.divider
|
|
1311
1311
|
},
|
|
1312
1312
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1313
1313
|
fontWeight: 600
|
|
@@ -1325,42 +1325,42 @@ const Wt = (e, i) => {
|
|
|
1325
1325
|
},
|
|
1326
1326
|
MuiDateRangePickerDay: {
|
|
1327
1327
|
styleOverrides: {
|
|
1328
|
-
root: ({ theme:
|
|
1328
|
+
root: ({ theme: r }) => ({
|
|
1329
1329
|
":first-of-type": {
|
|
1330
|
-
borderTopLeftRadius:
|
|
1331
|
-
borderBottomLeftRadius:
|
|
1330
|
+
borderTopLeftRadius: r.shape.borderRadius,
|
|
1331
|
+
borderBottomLeftRadius: r.shape.borderRadius,
|
|
1332
1332
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1333
|
-
borderTopLeftRadius:
|
|
1334
|
-
borderBottomLeftRadius:
|
|
1333
|
+
borderTopLeftRadius: r.shape.borderRadius,
|
|
1334
|
+
borderBottomLeftRadius: r.shape.borderRadius
|
|
1335
1335
|
}
|
|
1336
1336
|
},
|
|
1337
1337
|
":last-of-type": {
|
|
1338
|
-
borderTopRightRadius:
|
|
1339
|
-
borderBottomRightRadius:
|
|
1338
|
+
borderTopRightRadius: r.shape.borderRadius,
|
|
1339
|
+
borderBottomRightRadius: r.shape.borderRadius,
|
|
1340
1340
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1341
|
-
borderTopRightRadius:
|
|
1342
|
-
borderBottomRightRadius:
|
|
1341
|
+
borderTopRightRadius: r.shape.borderRadius,
|
|
1342
|
+
borderBottomRightRadius: r.shape.borderRadius
|
|
1343
1343
|
}
|
|
1344
1344
|
},
|
|
1345
1345
|
"& .Mui-selected": {
|
|
1346
|
-
borderRadius:
|
|
1346
|
+
borderRadius: r.shape.borderRadius
|
|
1347
1347
|
},
|
|
1348
1348
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1349
|
-
color:
|
|
1349
|
+
color: r.palette.action.disabled
|
|
1350
1350
|
}
|
|
1351
1351
|
}),
|
|
1352
|
-
day: ({ theme:
|
|
1353
|
-
borderRadius:
|
|
1352
|
+
day: ({ theme: r }) => ({
|
|
1353
|
+
borderRadius: r.shape.borderRadius
|
|
1354
1354
|
}),
|
|
1355
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1356
|
-
borderRadius:
|
|
1355
|
+
rangeIntervalDayPreview: ({ theme: r }) => ({
|
|
1356
|
+
borderRadius: r.shape.borderRadius
|
|
1357
1357
|
})
|
|
1358
1358
|
}
|
|
1359
1359
|
},
|
|
1360
1360
|
MuiDayCalendar: {
|
|
1361
1361
|
styleOverrides: {
|
|
1362
|
-
weekDayLabel: ({ theme:
|
|
1363
|
-
fontSize:
|
|
1362
|
+
weekDayLabel: ({ theme: r }) => ({
|
|
1363
|
+
fontSize: r.typography.body2.fontSize,
|
|
1364
1364
|
fontWeight: 700
|
|
1365
1365
|
})
|
|
1366
1366
|
}
|
|
@@ -1402,14 +1402,14 @@ const Wt = (e, i) => {
|
|
|
1402
1402
|
},
|
|
1403
1403
|
MuiFormHelperText: {
|
|
1404
1404
|
styleOverrides: {
|
|
1405
|
-
root: ({ theme:
|
|
1405
|
+
root: ({ theme: r }) => ({
|
|
1406
1406
|
fontSize: 13,
|
|
1407
1407
|
// Small
|
|
1408
1408
|
marginLeft: 0,
|
|
1409
1409
|
display: "flex",
|
|
1410
1410
|
alignItems: "center",
|
|
1411
1411
|
position: "relative",
|
|
1412
|
-
color:
|
|
1412
|
+
color: r.palette.text.secondary,
|
|
1413
1413
|
"& .MuiSvgIcon-root": {
|
|
1414
1414
|
height: "16px",
|
|
1415
1415
|
width: "16px",
|
|
@@ -1440,19 +1440,19 @@ const Wt = (e, i) => {
|
|
|
1440
1440
|
disableFocusRipple: !0
|
|
1441
1441
|
},
|
|
1442
1442
|
styleOverrides: {
|
|
1443
|
-
root: ({ theme:
|
|
1444
|
-
borderRadius:
|
|
1443
|
+
root: ({ theme: r }) => ({
|
|
1444
|
+
borderRadius: r.shape.borderRadius,
|
|
1445
1445
|
minHeight: 44,
|
|
1446
1446
|
// touch target
|
|
1447
1447
|
minWidth: 44,
|
|
1448
1448
|
// touch target
|
|
1449
1449
|
"&.Mui-focusVisible": {
|
|
1450
|
-
outline: `2px solid ${
|
|
1450
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1451
1451
|
outlineOffset: "2px"
|
|
1452
1452
|
},
|
|
1453
1453
|
"& .MuiTouchRipple-root": {
|
|
1454
1454
|
"& .MuiTouchRipple-child": {
|
|
1455
|
-
borderRadius:
|
|
1455
|
+
borderRadius: r.shape.borderRadius
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
})
|
|
@@ -1478,25 +1478,27 @@ const Wt = (e, i) => {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
},
|
|
1480
1480
|
MuiLink: {
|
|
1481
|
+
defaultProps: {
|
|
1482
|
+
underline: "none"
|
|
1483
|
+
},
|
|
1481
1484
|
styleOverrides: {
|
|
1482
|
-
root:
|
|
1485
|
+
root: {
|
|
1483
1486
|
cursor: "pointer",
|
|
1484
1487
|
fontWeight: 600,
|
|
1485
|
-
textDecoration: "none",
|
|
1486
1488
|
height: 20,
|
|
1487
1489
|
marginLeft: 4,
|
|
1488
1490
|
marginRight: 4,
|
|
1489
|
-
"&.Mui-focusVisible": {
|
|
1490
|
-
outline: "2px solid isLight",
|
|
1491
|
-
outlineOffset: "2px"
|
|
1492
|
-
},
|
|
1493
1491
|
"&:hover": {
|
|
1494
|
-
backgroundColor:
|
|
1492
|
+
backgroundColor: "transparent !important"
|
|
1495
1493
|
},
|
|
1496
1494
|
"&:active": {
|
|
1497
|
-
backgroundColor:
|
|
1495
|
+
backgroundColor: "transparent !important"
|
|
1496
|
+
},
|
|
1497
|
+
"&.Mui-focusVisible": {
|
|
1498
|
+
outline: "2px solid isLight",
|
|
1499
|
+
outlineOffset: "2px"
|
|
1498
1500
|
}
|
|
1499
|
-
}
|
|
1501
|
+
}
|
|
1500
1502
|
}
|
|
1501
1503
|
},
|
|
1502
1504
|
MuiList: {
|
|
@@ -1521,9 +1523,9 @@ const Wt = (e, i) => {
|
|
|
1521
1523
|
disablePadding: !0
|
|
1522
1524
|
},
|
|
1523
1525
|
styleOverrides: {
|
|
1524
|
-
root: ({ ownerState:
|
|
1526
|
+
root: ({ ownerState: r }) => ({
|
|
1525
1527
|
minHeight: 64,
|
|
1526
|
-
...!
|
|
1528
|
+
...!r.disablePadding && {
|
|
1527
1529
|
paddingTop: 12,
|
|
1528
1530
|
paddingBottom: 12,
|
|
1529
1531
|
paddingLeft: 24
|
|
@@ -1547,7 +1549,7 @@ const Wt = (e, i) => {
|
|
|
1547
1549
|
},
|
|
1548
1550
|
MuiListItemButton: {
|
|
1549
1551
|
styleOverrides: {
|
|
1550
|
-
root: ({ theme:
|
|
1552
|
+
root: ({ theme: r }) => ({
|
|
1551
1553
|
minHeight: 64,
|
|
1552
1554
|
paddingLeft: 24,
|
|
1553
1555
|
paddingRight: 24,
|
|
@@ -1556,7 +1558,7 @@ const Wt = (e, i) => {
|
|
|
1556
1558
|
"&.Mui-focusVisible": {
|
|
1557
1559
|
backgroundColor: "transparent",
|
|
1558
1560
|
borderRadius: 8,
|
|
1559
|
-
outline: `2px solid ${
|
|
1561
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1560
1562
|
outlineOffset: -2
|
|
1561
1563
|
}
|
|
1562
1564
|
})
|
|
@@ -1683,11 +1685,11 @@ const Wt = (e, i) => {
|
|
|
1683
1685
|
},
|
|
1684
1686
|
MuiPickersToolbar: {
|
|
1685
1687
|
styleOverrides: {
|
|
1686
|
-
content: ({ theme:
|
|
1688
|
+
content: ({ theme: r }) => ({
|
|
1687
1689
|
marginTop: 4,
|
|
1688
1690
|
"& .MuiTypography-root": {
|
|
1689
|
-
fontSize:
|
|
1690
|
-
lineHeight:
|
|
1691
|
+
fontSize: r.typography.h3.fontSize,
|
|
1692
|
+
lineHeight: r.typography.h3.lineHeight
|
|
1691
1693
|
}
|
|
1692
1694
|
})
|
|
1693
1695
|
}
|
|
@@ -1713,7 +1715,7 @@ const Wt = (e, i) => {
|
|
|
1713
1715
|
disableFocusRipple: !0
|
|
1714
1716
|
},
|
|
1715
1717
|
styleOverrides: {
|
|
1716
|
-
root: ({ theme:
|
|
1718
|
+
root: ({ theme: r }) => ({
|
|
1717
1719
|
width: 37,
|
|
1718
1720
|
height: 20,
|
|
1719
1721
|
padding: 0,
|
|
@@ -1724,7 +1726,7 @@ const Wt = (e, i) => {
|
|
|
1724
1726
|
"&.Mui-checked": {
|
|
1725
1727
|
transform: "translateX(16px)",
|
|
1726
1728
|
"& + .MuiSwitch-track": {
|
|
1727
|
-
backgroundColor:
|
|
1729
|
+
backgroundColor: r.palette.success.main,
|
|
1728
1730
|
opacity: 1,
|
|
1729
1731
|
border: 0
|
|
1730
1732
|
},
|
|
@@ -1733,27 +1735,27 @@ const Wt = (e, i) => {
|
|
|
1733
1735
|
}
|
|
1734
1736
|
},
|
|
1735
1737
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
1736
|
-
color:
|
|
1738
|
+
color: r.palette.common.white
|
|
1737
1739
|
},
|
|
1738
1740
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1739
|
-
backgroundColor:
|
|
1741
|
+
backgroundColor: r.palette.action.disabledBackground,
|
|
1740
1742
|
opacity: 1
|
|
1741
1743
|
}
|
|
1742
1744
|
},
|
|
1743
1745
|
"& .MuiSwitch-input": {
|
|
1744
1746
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
1745
|
-
outline: `2px solid ${
|
|
1747
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1746
1748
|
outlineOffset: 0
|
|
1747
1749
|
}
|
|
1748
1750
|
},
|
|
1749
1751
|
"& .MuiSwitch-thumb": {
|
|
1750
1752
|
boxSizing: "border-box",
|
|
1751
|
-
backgroundColor:
|
|
1753
|
+
backgroundColor: r.palette.background.paper,
|
|
1752
1754
|
width: 16,
|
|
1753
1755
|
height: 16
|
|
1754
1756
|
},
|
|
1755
1757
|
"& .MuiSwitch-track": {
|
|
1756
|
-
backgroundColor:
|
|
1758
|
+
backgroundColor: r.palette.action.active,
|
|
1757
1759
|
borderRadius: 20 / 2,
|
|
1758
1760
|
opacity: 1
|
|
1759
1761
|
}
|
|
@@ -1807,7 +1809,7 @@ const Wt = (e, i) => {
|
|
|
1807
1809
|
disableFocusRipple: !0
|
|
1808
1810
|
},
|
|
1809
1811
|
styleOverrides: {
|
|
1810
|
-
root: ({ theme:
|
|
1812
|
+
root: ({ theme: r }) => ({
|
|
1811
1813
|
fontSize: 13,
|
|
1812
1814
|
lineHeight: "16px",
|
|
1813
1815
|
textTransform: "none",
|
|
@@ -1817,22 +1819,22 @@ const Wt = (e, i) => {
|
|
|
1817
1819
|
},
|
|
1818
1820
|
"&:hover": {
|
|
1819
1821
|
backgroundColor: f(
|
|
1820
|
-
|
|
1821
|
-
o.mode ===
|
|
1822
|
+
r.palette.primary.main,
|
|
1823
|
+
o.mode === O.LIGHT ? 0.1 : 0.2
|
|
1822
1824
|
),
|
|
1823
|
-
borderColor:
|
|
1825
|
+
borderColor: r.palette.primary.main
|
|
1824
1826
|
},
|
|
1825
1827
|
"&.Mui-selected": {
|
|
1826
1828
|
fontWeight: 600,
|
|
1827
|
-
borderColor:
|
|
1829
|
+
borderColor: r.palette.primary.main,
|
|
1828
1830
|
"&:hover": {
|
|
1829
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1831
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.palette.primary.main}`
|
|
1830
1832
|
}
|
|
1831
1833
|
},
|
|
1832
1834
|
"& .MuiTouchRipple-root": {
|
|
1833
1835
|
"& .MuiTouchRipple-child": {
|
|
1834
|
-
backgroundColor:
|
|
1835
|
-
borderRadius:
|
|
1836
|
+
backgroundColor: r.palette.primary.main,
|
|
1837
|
+
borderRadius: r.shape.borderRadius
|
|
1836
1838
|
}
|
|
1837
1839
|
}
|
|
1838
1840
|
})
|
|
@@ -1842,7 +1844,7 @@ const Wt = (e, i) => {
|
|
|
1842
1844
|
props: { color: "error" },
|
|
1843
1845
|
style: {
|
|
1844
1846
|
"&:hover": {
|
|
1845
|
-
backgroundColor: f(o.error.main, o.mode ===
|
|
1847
|
+
backgroundColor: f(o.error.main, o.mode === O.LIGHT ? 0.1 : 0.2),
|
|
1846
1848
|
borderColor: o.error.main
|
|
1847
1849
|
},
|
|
1848
1850
|
"&.Mui-selected": {
|
|
@@ -1866,7 +1868,7 @@ const Wt = (e, i) => {
|
|
|
1866
1868
|
"&:hover": {
|
|
1867
1869
|
backgroundColor: f(
|
|
1868
1870
|
o.secondary.main,
|
|
1869
|
-
o.mode ===
|
|
1871
|
+
o.mode === O.LIGHT ? 0.1 : 0.2
|
|
1870
1872
|
),
|
|
1871
1873
|
borderColor: o.secondary.main
|
|
1872
1874
|
},
|
|
@@ -1929,10 +1931,10 @@ export {
|
|
|
1929
1931
|
Nt as MXLogoOutlineIcon,
|
|
1930
1932
|
$t as MerchantLogo,
|
|
1931
1933
|
Pt as P,
|
|
1932
|
-
|
|
1934
|
+
Gt as SelectionBox,
|
|
1933
1935
|
F as Text,
|
|
1934
1936
|
Ut as TextField,
|
|
1935
|
-
|
|
1937
|
+
Vt as Toast,
|
|
1936
1938
|
Wt as createMXTheme
|
|
1937
1939
|
};
|
|
1938
1940
|
//# sourceMappingURL=index.es.js.map
|