@mxenabled/mxui 2.4.0 → 2.5.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 +273 -270
- package/dist/index.es.js.map +1 -1
- package/dist/types/Customizations.d.ts +2 -0
- package/package.json +1 -1
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,10 +1141,11 @@ 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
|
|
1146
|
-
breakpoints: {
|
|
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
|
+
breakpoints: i?.breakpoints || {
|
|
1147
1147
|
values: {
|
|
1148
|
+
// TODO: Remove these default values in v3. Users should provide their own breakpoints if they want to.
|
|
1148
1149
|
xs: 444,
|
|
1149
1150
|
sm: 600,
|
|
1150
1151
|
md: 900,
|
|
@@ -1157,7 +1158,7 @@ const Wt = (e, i) => {
|
|
|
1157
1158
|
shape: {
|
|
1158
1159
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1159
1160
|
},
|
|
1160
|
-
shadows:
|
|
1161
|
+
shadows: n,
|
|
1161
1162
|
...i?.useMUIStandardSpacing ? {} : { spacing: 1 },
|
|
1162
1163
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1163
1164
|
typography: s,
|
|
@@ -1173,19 +1174,19 @@ const Wt = (e, i) => {
|
|
|
1173
1174
|
variant: "outlined"
|
|
1174
1175
|
},
|
|
1175
1176
|
styleOverrides: {
|
|
1176
|
-
root: ({ theme:
|
|
1177
|
-
const c =
|
|
1178
|
-
let d =
|
|
1179
|
-
if (
|
|
1180
|
-
const
|
|
1181
|
-
d =
|
|
1177
|
+
root: ({ theme: r, ownerState: l }) => {
|
|
1178
|
+
const c = l.severity || "info";
|
|
1179
|
+
let d = r.palette.mode === O.LIGHT ? r.palette[c]?.[50] : r.palette[c]?.[800];
|
|
1180
|
+
if (l.variant === "filled") {
|
|
1181
|
+
const t = c === "warning";
|
|
1182
|
+
d = r.palette[c]?.[t ? 400 : 600];
|
|
1182
1183
|
}
|
|
1183
1184
|
return {
|
|
1184
1185
|
backgroundColor: d,
|
|
1185
|
-
borderRadius:
|
|
1186
|
+
borderRadius: r.shape.borderRadius,
|
|
1186
1187
|
"& .MuiAlert-message": {
|
|
1187
|
-
fontSize:
|
|
1188
|
-
lineHeight:
|
|
1188
|
+
fontSize: r.typography.subtitle1.fontSize,
|
|
1189
|
+
lineHeight: r.typography.subtitle1.lineHeight,
|
|
1189
1190
|
marginTop: "auto",
|
|
1190
1191
|
marginBottom: "auto"
|
|
1191
1192
|
},
|
|
@@ -1211,14 +1212,14 @@ const Wt = (e, i) => {
|
|
|
1211
1212
|
disableElevation: !0
|
|
1212
1213
|
},
|
|
1213
1214
|
styleOverrides: {
|
|
1214
|
-
root: ({ theme:
|
|
1215
|
+
root: ({ theme: r }) => ({
|
|
1215
1216
|
fontWeight: 600,
|
|
1216
1217
|
textTransform: "none",
|
|
1217
1218
|
"&.Mui-disabled": {
|
|
1218
1219
|
cursor: "not-allowed"
|
|
1219
1220
|
},
|
|
1220
1221
|
"&.Mui-focusVisible": {
|
|
1221
|
-
outline: `2px solid ${
|
|
1222
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1222
1223
|
outlineOffset: "2px"
|
|
1223
1224
|
}
|
|
1224
1225
|
}),
|
|
@@ -1236,9 +1237,9 @@ const Wt = (e, i) => {
|
|
|
1236
1237
|
},
|
|
1237
1238
|
{
|
|
1238
1239
|
props: { variant: "outlined", color: "error" },
|
|
1239
|
-
style: ({ theme:
|
|
1240
|
+
style: ({ theme: r }) => ({
|
|
1240
1241
|
"&:hover, &:active": {
|
|
1241
|
-
color:
|
|
1242
|
+
color: r.palette.error.dark
|
|
1242
1243
|
}
|
|
1243
1244
|
})
|
|
1244
1245
|
}
|
|
@@ -1292,22 +1293,22 @@ const Wt = (e, i) => {
|
|
|
1292
1293
|
},
|
|
1293
1294
|
MuiDataGrid: {
|
|
1294
1295
|
styleOverrides: {
|
|
1295
|
-
root: ({ theme:
|
|
1296
|
+
root: ({ theme: r }) => ({
|
|
1296
1297
|
border: "none",
|
|
1297
1298
|
borderRadius: 0,
|
|
1298
|
-
fontSize:
|
|
1299
|
+
fontSize: r.typography.body2.fontSize,
|
|
1299
1300
|
"& .MuiDataGrid-cell": {
|
|
1300
1301
|
display: "flex",
|
|
1301
1302
|
alignItems: "center",
|
|
1302
1303
|
borderTop: "1px solid",
|
|
1303
|
-
borderColor:
|
|
1304
|
+
borderColor: r.palette.background.highlight
|
|
1304
1305
|
},
|
|
1305
1306
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1306
1307
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1307
1308
|
"& .MuiDataGrid-columnHeaders": {
|
|
1308
|
-
backgroundColor:
|
|
1309
|
+
backgroundColor: r.palette.background.paper,
|
|
1309
1310
|
borderBottom: "2px solid",
|
|
1310
|
-
borderColor:
|
|
1311
|
+
borderColor: r.palette.divider
|
|
1311
1312
|
},
|
|
1312
1313
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1313
1314
|
fontWeight: 600
|
|
@@ -1325,42 +1326,42 @@ const Wt = (e, i) => {
|
|
|
1325
1326
|
},
|
|
1326
1327
|
MuiDateRangePickerDay: {
|
|
1327
1328
|
styleOverrides: {
|
|
1328
|
-
root: ({ theme:
|
|
1329
|
+
root: ({ theme: r }) => ({
|
|
1329
1330
|
":first-of-type": {
|
|
1330
|
-
borderTopLeftRadius:
|
|
1331
|
-
borderBottomLeftRadius:
|
|
1331
|
+
borderTopLeftRadius: r.shape.borderRadius,
|
|
1332
|
+
borderBottomLeftRadius: r.shape.borderRadius,
|
|
1332
1333
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1333
|
-
borderTopLeftRadius:
|
|
1334
|
-
borderBottomLeftRadius:
|
|
1334
|
+
borderTopLeftRadius: r.shape.borderRadius,
|
|
1335
|
+
borderBottomLeftRadius: r.shape.borderRadius
|
|
1335
1336
|
}
|
|
1336
1337
|
},
|
|
1337
1338
|
":last-of-type": {
|
|
1338
|
-
borderTopRightRadius:
|
|
1339
|
-
borderBottomRightRadius:
|
|
1339
|
+
borderTopRightRadius: r.shape.borderRadius,
|
|
1340
|
+
borderBottomRightRadius: r.shape.borderRadius,
|
|
1340
1341
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1341
|
-
borderTopRightRadius:
|
|
1342
|
-
borderBottomRightRadius:
|
|
1342
|
+
borderTopRightRadius: r.shape.borderRadius,
|
|
1343
|
+
borderBottomRightRadius: r.shape.borderRadius
|
|
1343
1344
|
}
|
|
1344
1345
|
},
|
|
1345
1346
|
"& .Mui-selected": {
|
|
1346
|
-
borderRadius:
|
|
1347
|
+
borderRadius: r.shape.borderRadius
|
|
1347
1348
|
},
|
|
1348
1349
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1349
|
-
color:
|
|
1350
|
+
color: r.palette.action.disabled
|
|
1350
1351
|
}
|
|
1351
1352
|
}),
|
|
1352
|
-
day: ({ theme:
|
|
1353
|
-
borderRadius:
|
|
1353
|
+
day: ({ theme: r }) => ({
|
|
1354
|
+
borderRadius: r.shape.borderRadius
|
|
1354
1355
|
}),
|
|
1355
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1356
|
-
borderRadius:
|
|
1356
|
+
rangeIntervalDayPreview: ({ theme: r }) => ({
|
|
1357
|
+
borderRadius: r.shape.borderRadius
|
|
1357
1358
|
})
|
|
1358
1359
|
}
|
|
1359
1360
|
},
|
|
1360
1361
|
MuiDayCalendar: {
|
|
1361
1362
|
styleOverrides: {
|
|
1362
|
-
weekDayLabel: ({ theme:
|
|
1363
|
-
fontSize:
|
|
1363
|
+
weekDayLabel: ({ theme: r }) => ({
|
|
1364
|
+
fontSize: r.typography.body2.fontSize,
|
|
1364
1365
|
fontWeight: 700
|
|
1365
1366
|
})
|
|
1366
1367
|
}
|
|
@@ -1402,14 +1403,14 @@ const Wt = (e, i) => {
|
|
|
1402
1403
|
},
|
|
1403
1404
|
MuiFormHelperText: {
|
|
1404
1405
|
styleOverrides: {
|
|
1405
|
-
root: ({ theme:
|
|
1406
|
+
root: ({ theme: r }) => ({
|
|
1406
1407
|
fontSize: 13,
|
|
1407
1408
|
// Small
|
|
1408
1409
|
marginLeft: 0,
|
|
1409
1410
|
display: "flex",
|
|
1410
1411
|
alignItems: "center",
|
|
1411
1412
|
position: "relative",
|
|
1412
|
-
color:
|
|
1413
|
+
color: r.palette.text.secondary,
|
|
1413
1414
|
"& .MuiSvgIcon-root": {
|
|
1414
1415
|
height: "16px",
|
|
1415
1416
|
width: "16px",
|
|
@@ -1440,19 +1441,19 @@ const Wt = (e, i) => {
|
|
|
1440
1441
|
disableFocusRipple: !0
|
|
1441
1442
|
},
|
|
1442
1443
|
styleOverrides: {
|
|
1443
|
-
root: ({ theme:
|
|
1444
|
-
borderRadius:
|
|
1444
|
+
root: ({ theme: r }) => ({
|
|
1445
|
+
borderRadius: r.shape.borderRadius,
|
|
1445
1446
|
minHeight: 44,
|
|
1446
1447
|
// touch target
|
|
1447
1448
|
minWidth: 44,
|
|
1448
1449
|
// touch target
|
|
1449
1450
|
"&.Mui-focusVisible": {
|
|
1450
|
-
outline: `2px solid ${
|
|
1451
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1451
1452
|
outlineOffset: "2px"
|
|
1452
1453
|
},
|
|
1453
1454
|
"& .MuiTouchRipple-root": {
|
|
1454
1455
|
"& .MuiTouchRipple-child": {
|
|
1455
|
-
borderRadius:
|
|
1456
|
+
borderRadius: r.shape.borderRadius
|
|
1456
1457
|
}
|
|
1457
1458
|
}
|
|
1458
1459
|
})
|
|
@@ -1478,25 +1479,27 @@ const Wt = (e, i) => {
|
|
|
1478
1479
|
}
|
|
1479
1480
|
},
|
|
1480
1481
|
MuiLink: {
|
|
1482
|
+
defaultProps: {
|
|
1483
|
+
underline: "none"
|
|
1484
|
+
},
|
|
1481
1485
|
styleOverrides: {
|
|
1482
|
-
root:
|
|
1486
|
+
root: {
|
|
1483
1487
|
cursor: "pointer",
|
|
1484
1488
|
fontWeight: 600,
|
|
1485
|
-
textDecoration: "none",
|
|
1486
1489
|
height: 20,
|
|
1487
1490
|
marginLeft: 4,
|
|
1488
1491
|
marginRight: 4,
|
|
1489
|
-
"&.Mui-focusVisible": {
|
|
1490
|
-
outline: "2px solid isLight",
|
|
1491
|
-
outlineOffset: "2px"
|
|
1492
|
-
},
|
|
1493
1492
|
"&:hover": {
|
|
1494
|
-
backgroundColor:
|
|
1493
|
+
backgroundColor: "transparent !important"
|
|
1495
1494
|
},
|
|
1496
1495
|
"&:active": {
|
|
1497
|
-
backgroundColor:
|
|
1496
|
+
backgroundColor: "transparent !important"
|
|
1497
|
+
},
|
|
1498
|
+
"&.Mui-focusVisible": {
|
|
1499
|
+
outline: "2px solid isLight",
|
|
1500
|
+
outlineOffset: "2px"
|
|
1498
1501
|
}
|
|
1499
|
-
}
|
|
1502
|
+
}
|
|
1500
1503
|
}
|
|
1501
1504
|
},
|
|
1502
1505
|
MuiList: {
|
|
@@ -1521,9 +1524,9 @@ const Wt = (e, i) => {
|
|
|
1521
1524
|
disablePadding: !0
|
|
1522
1525
|
},
|
|
1523
1526
|
styleOverrides: {
|
|
1524
|
-
root: ({ ownerState:
|
|
1527
|
+
root: ({ ownerState: r }) => ({
|
|
1525
1528
|
minHeight: 64,
|
|
1526
|
-
...!
|
|
1529
|
+
...!r.disablePadding && {
|
|
1527
1530
|
paddingTop: 12,
|
|
1528
1531
|
paddingBottom: 12,
|
|
1529
1532
|
paddingLeft: 24
|
|
@@ -1547,7 +1550,7 @@ const Wt = (e, i) => {
|
|
|
1547
1550
|
},
|
|
1548
1551
|
MuiListItemButton: {
|
|
1549
1552
|
styleOverrides: {
|
|
1550
|
-
root: ({ theme:
|
|
1553
|
+
root: ({ theme: r }) => ({
|
|
1551
1554
|
minHeight: 64,
|
|
1552
1555
|
paddingLeft: 24,
|
|
1553
1556
|
paddingRight: 24,
|
|
@@ -1556,7 +1559,7 @@ const Wt = (e, i) => {
|
|
|
1556
1559
|
"&.Mui-focusVisible": {
|
|
1557
1560
|
backgroundColor: "transparent",
|
|
1558
1561
|
borderRadius: 8,
|
|
1559
|
-
outline: `2px solid ${
|
|
1562
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1560
1563
|
outlineOffset: -2
|
|
1561
1564
|
}
|
|
1562
1565
|
})
|
|
@@ -1683,11 +1686,11 @@ const Wt = (e, i) => {
|
|
|
1683
1686
|
},
|
|
1684
1687
|
MuiPickersToolbar: {
|
|
1685
1688
|
styleOverrides: {
|
|
1686
|
-
content: ({ theme:
|
|
1689
|
+
content: ({ theme: r }) => ({
|
|
1687
1690
|
marginTop: 4,
|
|
1688
1691
|
"& .MuiTypography-root": {
|
|
1689
|
-
fontSize:
|
|
1690
|
-
lineHeight:
|
|
1692
|
+
fontSize: r.typography.h3.fontSize,
|
|
1693
|
+
lineHeight: r.typography.h3.lineHeight
|
|
1691
1694
|
}
|
|
1692
1695
|
})
|
|
1693
1696
|
}
|
|
@@ -1713,7 +1716,7 @@ const Wt = (e, i) => {
|
|
|
1713
1716
|
disableFocusRipple: !0
|
|
1714
1717
|
},
|
|
1715
1718
|
styleOverrides: {
|
|
1716
|
-
root: ({ theme:
|
|
1719
|
+
root: ({ theme: r }) => ({
|
|
1717
1720
|
width: 37,
|
|
1718
1721
|
height: 20,
|
|
1719
1722
|
padding: 0,
|
|
@@ -1724,7 +1727,7 @@ const Wt = (e, i) => {
|
|
|
1724
1727
|
"&.Mui-checked": {
|
|
1725
1728
|
transform: "translateX(16px)",
|
|
1726
1729
|
"& + .MuiSwitch-track": {
|
|
1727
|
-
backgroundColor:
|
|
1730
|
+
backgroundColor: r.palette.success.main,
|
|
1728
1731
|
opacity: 1,
|
|
1729
1732
|
border: 0
|
|
1730
1733
|
},
|
|
@@ -1733,27 +1736,27 @@ const Wt = (e, i) => {
|
|
|
1733
1736
|
}
|
|
1734
1737
|
},
|
|
1735
1738
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
1736
|
-
color:
|
|
1739
|
+
color: r.palette.common.white
|
|
1737
1740
|
},
|
|
1738
1741
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1739
|
-
backgroundColor:
|
|
1742
|
+
backgroundColor: r.palette.action.disabledBackground,
|
|
1740
1743
|
opacity: 1
|
|
1741
1744
|
}
|
|
1742
1745
|
},
|
|
1743
1746
|
"& .MuiSwitch-input": {
|
|
1744
1747
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
1745
|
-
outline: `2px solid ${
|
|
1748
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1746
1749
|
outlineOffset: 0
|
|
1747
1750
|
}
|
|
1748
1751
|
},
|
|
1749
1752
|
"& .MuiSwitch-thumb": {
|
|
1750
1753
|
boxSizing: "border-box",
|
|
1751
|
-
backgroundColor:
|
|
1754
|
+
backgroundColor: r.palette.background.paper,
|
|
1752
1755
|
width: 16,
|
|
1753
1756
|
height: 16
|
|
1754
1757
|
},
|
|
1755
1758
|
"& .MuiSwitch-track": {
|
|
1756
|
-
backgroundColor:
|
|
1759
|
+
backgroundColor: r.palette.action.active,
|
|
1757
1760
|
borderRadius: 20 / 2,
|
|
1758
1761
|
opacity: 1
|
|
1759
1762
|
}
|
|
@@ -1807,7 +1810,7 @@ const Wt = (e, i) => {
|
|
|
1807
1810
|
disableFocusRipple: !0
|
|
1808
1811
|
},
|
|
1809
1812
|
styleOverrides: {
|
|
1810
|
-
root: ({ theme:
|
|
1813
|
+
root: ({ theme: r }) => ({
|
|
1811
1814
|
fontSize: 13,
|
|
1812
1815
|
lineHeight: "16px",
|
|
1813
1816
|
textTransform: "none",
|
|
@@ -1817,22 +1820,22 @@ const Wt = (e, i) => {
|
|
|
1817
1820
|
},
|
|
1818
1821
|
"&:hover": {
|
|
1819
1822
|
backgroundColor: f(
|
|
1820
|
-
|
|
1821
|
-
o.mode ===
|
|
1823
|
+
r.palette.primary.main,
|
|
1824
|
+
o.mode === O.LIGHT ? 0.1 : 0.2
|
|
1822
1825
|
),
|
|
1823
|
-
borderColor:
|
|
1826
|
+
borderColor: r.palette.primary.main
|
|
1824
1827
|
},
|
|
1825
1828
|
"&.Mui-selected": {
|
|
1826
1829
|
fontWeight: 600,
|
|
1827
|
-
borderColor:
|
|
1830
|
+
borderColor: r.palette.primary.main,
|
|
1828
1831
|
"&:hover": {
|
|
1829
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1832
|
+
boxShadow: `inset 0px 0px 0px 2px ${r.palette.primary.main}`
|
|
1830
1833
|
}
|
|
1831
1834
|
},
|
|
1832
1835
|
"& .MuiTouchRipple-root": {
|
|
1833
1836
|
"& .MuiTouchRipple-child": {
|
|
1834
|
-
backgroundColor:
|
|
1835
|
-
borderRadius:
|
|
1837
|
+
backgroundColor: r.palette.primary.main,
|
|
1838
|
+
borderRadius: r.shape.borderRadius
|
|
1836
1839
|
}
|
|
1837
1840
|
}
|
|
1838
1841
|
})
|
|
@@ -1842,7 +1845,7 @@ const Wt = (e, i) => {
|
|
|
1842
1845
|
props: { color: "error" },
|
|
1843
1846
|
style: {
|
|
1844
1847
|
"&:hover": {
|
|
1845
|
-
backgroundColor: f(o.error.main, o.mode ===
|
|
1848
|
+
backgroundColor: f(o.error.main, o.mode === O.LIGHT ? 0.1 : 0.2),
|
|
1846
1849
|
borderColor: o.error.main
|
|
1847
1850
|
},
|
|
1848
1851
|
"&.Mui-selected": {
|
|
@@ -1866,7 +1869,7 @@ const Wt = (e, i) => {
|
|
|
1866
1869
|
"&:hover": {
|
|
1867
1870
|
backgroundColor: f(
|
|
1868
1871
|
o.secondary.main,
|
|
1869
|
-
o.mode ===
|
|
1872
|
+
o.mode === O.LIGHT ? 0.1 : 0.2
|
|
1870
1873
|
),
|
|
1871
1874
|
borderColor: o.secondary.main
|
|
1872
1875
|
},
|
|
@@ -1929,10 +1932,10 @@ export {
|
|
|
1929
1932
|
Nt as MXLogoOutlineIcon,
|
|
1930
1933
|
$t as MerchantLogo,
|
|
1931
1934
|
Pt as P,
|
|
1932
|
-
|
|
1935
|
+
Gt as SelectionBox,
|
|
1933
1936
|
F as Text,
|
|
1934
1937
|
Ut as TextField,
|
|
1935
|
-
|
|
1938
|
+
Vt as Toast,
|
|
1936
1939
|
Wt as createMXTheme
|
|
1937
1940
|
};
|
|
1938
1941
|
//# sourceMappingURL=index.es.js.map
|