@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 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 E, createTheme as $ } from "@mui/material/styles";
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 G } from "date-fns/startOfMonth";
10
- import { startOfYear as V } from "date-fns/startOfYear";
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 O, getContrastRatio as Le } from "@mui/material";
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: l
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: l || o,
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: l, ...t }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: s, sx: l, ...t }), Ft = ({
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: l = "filled"
257
+ variant: n = "filled"
258
258
  }) => {
259
- const t = E(), n = N.useMemo(
259
+ const r = I(), l = N.useMemo(
260
260
  () => De.find((m) => m.guid === e) ?? te,
261
261
  [e]
262
- ), c = t.palette.categories[n.colorName];
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 l === "twotone" && (m = `${m}20`), l === "transparent" || l === "basic" ? "transparent" : m;
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 = l === "filled" ? t.palette.common.white : c;
274
- return l === "basic" ? t.palette.text.primary : m;
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: n.icon, size: o * i })
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 = E(), { setValue: s } = X(), l = Z(), t = e?.map((n) => {
285
- const c = n.getValue({ isValid: l });
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: n.label,
287
+ label: l.label,
288
288
  onClick: () => {
289
- s(c, { changeImportance: "accept", shortcut: n });
289
+ s(c, { changeImportance: "accept", shortcut: l });
290
290
  },
291
- disabled: !l(c)
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: t?.map((n) => /* @__PURE__ */ a(
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: n.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: n.label,
318
- children: n.label
317
+ value: l.label,
318
+ children: l.label
319
319
  },
320
- n.label
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(), l = Z(), t = e?.map((n) => {
328
- const c = n.getValue({ isValid: l });
327
+ const { setValue: s } = X(), n = Z(), r = e?.map((l) => {
328
+ const c = l.getValue({ isValid: n });
329
329
  return {
330
- label: n.label,
330
+ label: l.label,
331
331
  onClick: () => {
332
- s(c, { changeImportance: "accept", shortcut: n });
332
+ s(c, { changeImportance: "accept", shortcut: l });
333
333
  },
334
- disabled: !l(c)
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: t?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
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: l } = Ce(e);
352
+ const { toolbar: i, content: o, shortcuts: s, ownerState: n } = Ce(e);
353
353
  return /* @__PURE__ */ b(
354
354
  Se,
355
355
  {
356
- ownerState: l,
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: l,
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: l = {}
392
+ sx: n = {}
393
393
  }) => {
394
- const t = E(), n = ge(t.breakpoints.down("sm")), c = N.useMemo(() => {
395
- const r = ue(), m = pe(r, 1), T = he(r, 1);
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: () => [G(r), U(r)]
399
+ getValue: () => [V(t), U(t)]
400
400
  },
401
401
  {
402
402
  label: e.dateRangeLastMonth,
403
- getValue: () => [G(m), U(m)]
403
+ getValue: () => [V(m), U(m)]
404
404
  },
405
405
  {
406
406
  label: e.dateRangeLast30Days,
407
- getValue: () => [W(r, 30), r]
407
+ getValue: () => [W(t, 30), t]
408
408
  },
409
409
  {
410
410
  label: e.dateRangeLast90Days,
411
- getValue: () => [W(r, 90), r]
411
+ getValue: () => [W(t, 90), t]
412
412
  },
413
413
  {
414
414
  label: e.dateRangeYTD,
415
- getValue: () => [V(r), r]
415
+ getValue: () => [G(t), t]
416
416
  },
417
417
  {
418
418
  label: e.dateRangeLastYear,
419
- getValue: () => [V(T), de(T)]
419
+ getValue: () => [G(T), de(T)]
420
420
  },
421
421
  {
422
422
  label: e.dateRangeCustom,
423
- getValue: () => [r, r]
423
+ getValue: () => [t, t]
424
424
  }
425
425
  ];
426
- }, [e]), d = (r, m) => {
426
+ }, [e]), d = (t, m) => {
427
427
  const T = m.shortcut;
428
- o?.(r, T ? T.label : e.dateRangeCustom);
428
+ o?.(t, T ? T.label : e.dateRangeCustom);
429
429
  };
430
- return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
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
- ...n && { layout: ze },
459
+ ...l && { layout: ze },
460
460
  leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
461
- shortcuts: (r) => n ? /* @__PURE__ */ a(
461
+ shortcuts: (t) => l ? /* @__PURE__ */ a(
462
462
  Be,
463
463
  {
464
464
  selectLabel: e.dateRangeSelectARange,
465
465
  selected: s,
466
- ...r
466
+ ...t
467
467
  }
468
- ) : /* @__PURE__ */ a(_e, { selected: s, ...r }),
468
+ ) : /* @__PURE__ */ a(_e, { selected: s, ...t }),
469
469
  rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
470
- ...n && {
471
- toolbar: (r) => /* @__PURE__ */ a(
470
+ ...l && {
471
+ toolbar: (t) => /* @__PURE__ */ a(
472
472
  Te,
473
473
  {
474
474
  dateSeparator: "",
475
475
  format: "MM/dd/yyyy",
476
- ...r,
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: { ...l },
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: l = "primary",
499
- primaryText: t = "Save",
500
- secondaryColor: n = "primary",
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: n,
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: l,
522
+ color: n,
523
523
  disabled: i,
524
524
  onClick: o,
525
525
  variant: "contained",
526
- children: t
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: l = {},
537
- truncate: t,
538
- uppercase: n,
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
- t ? {
549
+ r ? {
550
550
  overflow: "hidden",
551
551
  textOverflow: "ellipsis",
552
552
  whiteSpace: "nowrap"
553
553
  } : {},
554
- n ? {
554
+ l ? {
555
555
  textTransform: "uppercase"
556
556
  } : {},
557
- ...Array.isArray(l) ? l : [l]
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: l,
583
- onSave: t,
584
- primaryText: n,
582
+ onClose: n,
583
+ onSave: r,
584
+ primaryText: l,
585
585
  secondaryText: c,
586
586
  children: d,
587
- ...r
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: l,
594
+ onClose: n,
595
595
  open: s,
596
596
  variant: "temporary",
597
- ...r,
597
+ ...t,
598
598
  children: [
599
599
  d,
600
- t && /* @__PURE__ */ a(
600
+ r && /* @__PURE__ */ a(
601
601
  $e,
602
602
  {
603
603
  isPrimaryDisabled: i,
604
- onPrimaryAction: t,
605
- onSecondaryAction: l,
606
- primaryText: n,
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
- ...l
617
+ ...n
618
618
  }) => /* @__PURE__ */ a(
619
619
  "img",
620
620
  {
621
621
  alt: e,
622
622
  height: s,
623
- onError: (t) => {
624
- const n = t.target;
625
- n.src !== K && (n.src = K);
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
- ...l
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
- ...l
639
+ ...n
640
640
  }) => {
641
- const [t, n] = N.useState(!1), c = E();
642
- return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
643
- o && !t && /* @__PURE__ */ a(
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: () => n(!0),
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
- ...l
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
- ...l
677
+ ...n
678
678
  }
679
679
  );
680
- function Ge(e) {
680
+ function Ve(e) {
681
681
  return /* @__PURE__ */ a(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
682
682
  }
683
- const Gt = ({
683
+ const Vt = ({
684
684
  open: e = !0,
685
685
  handleClose: i,
686
686
  closeAriaLabel: o,
687
687
  message: s,
688
- autoHideDuration: l = 3e3,
689
- severity: t = "success",
690
- snackbarSx: n,
688
+ autoHideDuration: n = 3e3,
689
+ severity: r = "success",
690
+ snackbarSx: l,
691
691
  showAction: c = !1,
692
692
  showClose: d = !1,
693
- actionText: r = "Undo",
693
+ actionText: t = "Undo",
694
694
  onActionClick: m
695
695
  }) => {
696
- const T = E(), v = d && /* @__PURE__ */ a(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(x, { fill: !0, name: "close" }) }), g = `${t}.main`;
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: l,
701
+ autoHideDuration: n,
702
702
  onClose: i,
703
703
  open: e,
704
- slots: { transition: Ge },
704
+ slots: { transition: Ve },
705
705
  sx: {
706
- ...n,
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: t,
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: r
769
+ children: t
770
770
  }
771
771
  )
772
772
  ]
@@ -776,22 +776,22 @@ const Gt = ({
776
776
  )
777
777
  }
778
778
  );
779
- }, Vt = ({
779
+ }, Gt = ({
780
780
  component: e = P,
781
781
  variant: i = "outlined",
782
782
  selected: o,
783
783
  onChange: s,
784
- headline: l,
785
- message: t,
786
- name: n,
784
+ headline: n,
785
+ message: r,
786
+ name: l,
787
787
  value: c,
788
788
  disabled: d = !1,
789
- error: r = !1,
789
+ error: t = !1,
790
790
  icon: m = !1,
791
791
  sx: T = {},
792
792
  ...v
793
793
  }) => {
794
- const g = E(), oe = () => g.palette.background.paper, H = () => r ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : g.shadows[1], ie = () => d || r ? g.palette.background.paper : f(g.palette.primary.main, 0.1), ae = () => d || r ? H() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.primary.main, 0.5)}` : H(), ne = () => d || r ? g.palette.background.paper : f(g.palette.primary.main, 0.3);
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: n,
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: n,
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
- l && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
835
- /* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
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
- }, I = {
872
+ }, O = {
873
873
  LIGHT: "light"
874
874
  }, R = (e) => ({
875
- 50: O(e, 0.95),
876
- 100: O(e, 0.85),
877
- 200: O(e, 0.7),
878
- 300: O(e, 0.55),
879
- 400: O(e, 0.3),
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", Ve = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
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), l = R(i?.error || C.ERROR), t = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), r = e === I.LIGHT;
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: r ? o[100] : o[700],
965
- light: r ? o[300] : o[600],
966
- main: r ? o[500] : o[400],
967
- dark: r ? o[700] : o[200],
968
- darker: r ? o[800] : o[100]
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: r ? s[100] : s[800],
973
- light: r ? s[300] : s[600],
974
- main: r ? s[500] : s[400],
975
- dark: r ? s[700] : s[200],
976
- darker: r ? s[800] : s[100]
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: r ? d[100] : d[800],
981
- light: r ? d[300] : d[600],
982
- main: r ? d[500] : d[400],
983
- dark: r ? d[700] : d[200],
984
- darker: r ? d[800] : d[100],
985
- contrastText: Le(r ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
980
+ 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: r ? d[900] : M,
989
- secondary: r ? d[600] : f(M, 0.7),
990
- disabled: r ? d[500] : f(M, 0.38)
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
- ...l,
994
- lighter: r ? l[100] : l[700],
995
- light: r ? l[300] : l[600],
996
- main: r ? l[500] : l[400],
997
- dark: r ? l[700] : l[200],
998
- darker: r ? l[800] : l[100]
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
- ...t,
1002
- lighter: r ? t[100] : t[700],
1003
- light: r ? t[300] : t[600],
1004
- main: r ? t[500] : t[400],
1005
- dark: r ? t[700] : t[200],
1006
- darker: r ? t[800] : t[100]
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
- ...n,
1010
- lighter: r ? n[100] : n[700],
1011
- light: r ? n[300] : n[600],
1012
- main: r ? n[500] : n[400],
1013
- dark: r ? n[700] : n[200],
1014
- darker: r ? n[800] : n[100]
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: r ? c[100] : c[700],
1019
- light: r ? c[300] : c[600],
1020
- main: r ? c[500] : c[400],
1021
- dark: r ? c[700] : c[200],
1022
- darker: r ? c[800] : c[100]
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: r ? f(_, 0.56) : f(M, 0.56),
1027
- hoverOpacity: r ? 0.1 : 0.2,
1028
- selectedOpacity: r ? 0.16 : 0.25,
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: r ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
1033
- paper: r ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1034
- highlight: r ? d[200] : d[600],
1035
- highlightPrimary: r ? o[100] : o[500]
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: r ? f(_, 0.12) : f(M, 0.24),
1037
+ divider: t ? f(_, 0.12) : f(M, 0.24),
1038
1038
  categories: {
1039
- autoTransport: r ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1040
- billsUtilities: r ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
1041
- businessServices: r ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
1042
- education: r ? u.EDUCATION : p.EDUCATION,
1043
- entertainment: r ? u.ENTERTAINMENT : p.ENTERTAINMENT,
1044
- feesCharges: r ? u.FEES_CHARGES : p.FEES_CHARGES,
1045
- financial: r ? u.FINANCIAL : p.FINANCIAL,
1046
- foodDining: r ? u.FOOD_DINING : p.FOOD_DINING,
1047
- giftsDonations: r ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
1048
- healthFitness: r ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
1049
- home: r ? u.HOME : p.HOME,
1050
- income: r ? u.INCOME : p.INCOME,
1051
- investments: r ? u.INVESTMENTS : p.INVESTMENTS,
1052
- kids: r ? u.KIDS : p.KIDS,
1053
- others: r ? u.OTHERS : p.OTHERS,
1054
- personalCare: r ? u.PERSONAL_CARE : p.PERSONAL_CARE,
1055
- pets: r ? u.PETS : p.PETS,
1056
- shopping: r ? u.SHOPPING : p.SHOPPING,
1057
- taxes: r ? u.TAXES : p.TAXES,
1058
- transfer: r ? u.TRANSFER : p.TRANSFER,
1059
- travel: r ? u.TRAVEL : p.TRAVEL,
1060
- uncategorized: r ? u.UNCATEGORIZED : p.UNCATEGORIZED
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), l = [...$().shadows];
1145
- return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", $({
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: l,
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: t, ownerState: n }) => {
1177
- const c = n.severity || "info";
1178
- let d = t.palette.mode === I.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
1179
- if (n.variant === "filled") {
1180
- const r = c === "warning";
1181
- d = t.palette[c]?.[r ? 400 : 600];
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: t.shape.borderRadius,
1186
+ borderRadius: r.shape.borderRadius,
1186
1187
  "& .MuiAlert-message": {
1187
- fontSize: t.typography.subtitle1.fontSize,
1188
- lineHeight: t.typography.subtitle1.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: t }) => ({
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 ${t.palette.info.main}`,
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: t }) => ({
1240
+ style: ({ theme: r }) => ({
1240
1241
  "&:hover, &:active": {
1241
- color: t.palette.error.dark
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: t }) => ({
1296
+ root: ({ theme: r }) => ({
1296
1297
  border: "none",
1297
1298
  borderRadius: 0,
1298
- fontSize: t.typography.body2.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: t.palette.background.highlight
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: t.palette.background.paper,
1309
+ backgroundColor: r.palette.background.paper,
1309
1310
  borderBottom: "2px solid",
1310
- borderColor: t.palette.divider
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: t }) => ({
1329
+ root: ({ theme: r }) => ({
1329
1330
  ":first-of-type": {
1330
- borderTopLeftRadius: t.shape.borderRadius,
1331
- borderBottomLeftRadius: t.shape.borderRadius,
1331
+ borderTopLeftRadius: r.shape.borderRadius,
1332
+ borderBottomLeftRadius: r.shape.borderRadius,
1332
1333
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1333
- borderTopLeftRadius: t.shape.borderRadius,
1334
- borderBottomLeftRadius: t.shape.borderRadius
1334
+ borderTopLeftRadius: r.shape.borderRadius,
1335
+ borderBottomLeftRadius: r.shape.borderRadius
1335
1336
  }
1336
1337
  },
1337
1338
  ":last-of-type": {
1338
- borderTopRightRadius: t.shape.borderRadius,
1339
- borderBottomRightRadius: t.shape.borderRadius,
1339
+ borderTopRightRadius: r.shape.borderRadius,
1340
+ borderBottomRightRadius: r.shape.borderRadius,
1340
1341
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1341
- borderTopRightRadius: t.shape.borderRadius,
1342
- borderBottomRightRadius: t.shape.borderRadius
1342
+ borderTopRightRadius: r.shape.borderRadius,
1343
+ borderBottomRightRadius: r.shape.borderRadius
1343
1344
  }
1344
1345
  },
1345
1346
  "& .Mui-selected": {
1346
- borderRadius: t.shape.borderRadius
1347
+ borderRadius: r.shape.borderRadius
1347
1348
  },
1348
1349
  "& .MuiPickersDay-dayOutsideMonth": {
1349
- color: t.palette.action.disabled
1350
+ color: r.palette.action.disabled
1350
1351
  }
1351
1352
  }),
1352
- day: ({ theme: t }) => ({
1353
- borderRadius: t.shape.borderRadius
1353
+ day: ({ theme: r }) => ({
1354
+ borderRadius: r.shape.borderRadius
1354
1355
  }),
1355
- rangeIntervalDayPreview: ({ theme: t }) => ({
1356
- borderRadius: t.shape.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: t }) => ({
1363
- fontSize: t.typography.body2.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: t }) => ({
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: t.palette.text.secondary,
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: t }) => ({
1444
- borderRadius: t.shape.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 ${t.palette.info.main}`,
1451
+ outline: `2px solid ${r.palette.info.main}`,
1451
1452
  outlineOffset: "2px"
1452
1453
  },
1453
1454
  "& .MuiTouchRipple-root": {
1454
1455
  "& .MuiTouchRipple-child": {
1455
- borderRadius: t.shape.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: ({ theme: t, color: n }) => ({
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: t.palette.action.hover
1493
+ backgroundColor: "transparent !important"
1495
1494
  },
1496
1495
  "&:active": {
1497
- backgroundColor: t.palette.mode === I.LIGHT ? t.palette[n].light : t.palette[n].dark
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: t }) => ({
1527
+ root: ({ ownerState: r }) => ({
1525
1528
  minHeight: 64,
1526
- ...!t.disablePadding && {
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: t }) => ({
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 ${t.palette.info.main}`,
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: t }) => ({
1689
+ content: ({ theme: r }) => ({
1687
1690
  marginTop: 4,
1688
1691
  "& .MuiTypography-root": {
1689
- fontSize: t.typography.h3.fontSize,
1690
- lineHeight: t.typography.h3.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: t }) => ({
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: t.palette.success.main,
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: t.palette.common.white
1739
+ color: r.palette.common.white
1737
1740
  },
1738
1741
  "&.Mui-disabled + .MuiSwitch-track": {
1739
- backgroundColor: t.palette.action.disabledBackground,
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 ${t.palette.info.main}`,
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: t.palette.background.paper,
1754
+ backgroundColor: r.palette.background.paper,
1752
1755
  width: 16,
1753
1756
  height: 16
1754
1757
  },
1755
1758
  "& .MuiSwitch-track": {
1756
- backgroundColor: t.palette.action.active,
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: t }) => ({
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
- t.palette.primary.main,
1821
- o.mode === I.LIGHT ? 0.1 : 0.2
1823
+ r.palette.primary.main,
1824
+ o.mode === O.LIGHT ? 0.1 : 0.2
1822
1825
  ),
1823
- borderColor: t.palette.primary.main
1826
+ borderColor: r.palette.primary.main
1824
1827
  },
1825
1828
  "&.Mui-selected": {
1826
1829
  fontWeight: 600,
1827
- borderColor: t.palette.primary.main,
1830
+ borderColor: r.palette.primary.main,
1828
1831
  "&:hover": {
1829
- boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
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: t.palette.primary.main,
1835
- borderRadius: t.shape.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 === I.LIGHT ? 0.1 : 0.2),
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 === I.LIGHT ? 0.1 : 0.2
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
- Vt as SelectionBox,
1935
+ Gt as SelectionBox,
1933
1936
  F as Text,
1934
1937
  Ut as TextField,
1935
- Gt as Toast,
1938
+ Vt as Toast,
1936
1939
  Wt as createMXTheme
1937
1940
  };
1938
1941
  //# sourceMappingURL=index.es.js.map