@mxenabled/mxui 2.4.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 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,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), 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)", $({
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,7 +1157,7 @@ const Wt = (e, i) => {
1157
1157
  shape: {
1158
1158
  borderRadius: i?.shapeOptions?.borderRadius || 4
1159
1159
  },
1160
- shadows: l,
1160
+ shadows: n,
1161
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,
@@ -1173,19 +1173,19 @@ const Wt = (e, i) => {
1173
1173
  variant: "outlined"
1174
1174
  },
1175
1175
  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];
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: t.shape.borderRadius,
1185
+ borderRadius: r.shape.borderRadius,
1186
1186
  "& .MuiAlert-message": {
1187
- fontSize: t.typography.subtitle1.fontSize,
1188
- lineHeight: t.typography.subtitle1.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: t }) => ({
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 ${t.palette.info.main}`,
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: t }) => ({
1239
+ style: ({ theme: r }) => ({
1240
1240
  "&:hover, &:active": {
1241
- color: t.palette.error.dark
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: t }) => ({
1295
+ root: ({ theme: r }) => ({
1296
1296
  border: "none",
1297
1297
  borderRadius: 0,
1298
- fontSize: t.typography.body2.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: t.palette.background.highlight
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: t.palette.background.paper,
1308
+ backgroundColor: r.palette.background.paper,
1309
1309
  borderBottom: "2px solid",
1310
- borderColor: t.palette.divider
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: t }) => ({
1328
+ root: ({ theme: r }) => ({
1329
1329
  ":first-of-type": {
1330
- borderTopLeftRadius: t.shape.borderRadius,
1331
- borderBottomLeftRadius: t.shape.borderRadius,
1330
+ borderTopLeftRadius: r.shape.borderRadius,
1331
+ borderBottomLeftRadius: r.shape.borderRadius,
1332
1332
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1333
- borderTopLeftRadius: t.shape.borderRadius,
1334
- borderBottomLeftRadius: t.shape.borderRadius
1333
+ borderTopLeftRadius: r.shape.borderRadius,
1334
+ borderBottomLeftRadius: r.shape.borderRadius
1335
1335
  }
1336
1336
  },
1337
1337
  ":last-of-type": {
1338
- borderTopRightRadius: t.shape.borderRadius,
1339
- borderBottomRightRadius: t.shape.borderRadius,
1338
+ borderTopRightRadius: r.shape.borderRadius,
1339
+ borderBottomRightRadius: r.shape.borderRadius,
1340
1340
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1341
- borderTopRightRadius: t.shape.borderRadius,
1342
- borderBottomRightRadius: t.shape.borderRadius
1341
+ borderTopRightRadius: r.shape.borderRadius,
1342
+ borderBottomRightRadius: r.shape.borderRadius
1343
1343
  }
1344
1344
  },
1345
1345
  "& .Mui-selected": {
1346
- borderRadius: t.shape.borderRadius
1346
+ borderRadius: r.shape.borderRadius
1347
1347
  },
1348
1348
  "& .MuiPickersDay-dayOutsideMonth": {
1349
- color: t.palette.action.disabled
1349
+ color: r.palette.action.disabled
1350
1350
  }
1351
1351
  }),
1352
- day: ({ theme: t }) => ({
1353
- borderRadius: t.shape.borderRadius
1352
+ day: ({ theme: r }) => ({
1353
+ borderRadius: r.shape.borderRadius
1354
1354
  }),
1355
- rangeIntervalDayPreview: ({ theme: t }) => ({
1356
- borderRadius: t.shape.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: t }) => ({
1363
- fontSize: t.typography.body2.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: t }) => ({
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: t.palette.text.secondary,
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: t }) => ({
1444
- borderRadius: t.shape.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 ${t.palette.info.main}`,
1450
+ outline: `2px solid ${r.palette.info.main}`,
1451
1451
  outlineOffset: "2px"
1452
1452
  },
1453
1453
  "& .MuiTouchRipple-root": {
1454
1454
  "& .MuiTouchRipple-child": {
1455
- borderRadius: t.shape.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: ({ theme: t, color: n }) => ({
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: t.palette.action.hover
1492
+ backgroundColor: "transparent !important"
1495
1493
  },
1496
1494
  "&:active": {
1497
- backgroundColor: t.palette.mode === I.LIGHT ? t.palette[n].light : t.palette[n].dark
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: t }) => ({
1526
+ root: ({ ownerState: r }) => ({
1525
1527
  minHeight: 64,
1526
- ...!t.disablePadding && {
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: t }) => ({
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 ${t.palette.info.main}`,
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: t }) => ({
1688
+ content: ({ theme: r }) => ({
1687
1689
  marginTop: 4,
1688
1690
  "& .MuiTypography-root": {
1689
- fontSize: t.typography.h3.fontSize,
1690
- lineHeight: t.typography.h3.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: t }) => ({
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: t.palette.success.main,
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: t.palette.common.white
1738
+ color: r.palette.common.white
1737
1739
  },
1738
1740
  "&.Mui-disabled + .MuiSwitch-track": {
1739
- backgroundColor: t.palette.action.disabledBackground,
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 ${t.palette.info.main}`,
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: t.palette.background.paper,
1753
+ backgroundColor: r.palette.background.paper,
1752
1754
  width: 16,
1753
1755
  height: 16
1754
1756
  },
1755
1757
  "& .MuiSwitch-track": {
1756
- backgroundColor: t.palette.action.active,
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: t }) => ({
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
- t.palette.primary.main,
1821
- o.mode === I.LIGHT ? 0.1 : 0.2
1822
+ r.palette.primary.main,
1823
+ o.mode === O.LIGHT ? 0.1 : 0.2
1822
1824
  ),
1823
- borderColor: t.palette.primary.main
1825
+ borderColor: r.palette.primary.main
1824
1826
  },
1825
1827
  "&.Mui-selected": {
1826
1828
  fontWeight: 600,
1827
- borderColor: t.palette.primary.main,
1829
+ borderColor: r.palette.primary.main,
1828
1830
  "&:hover": {
1829
- boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
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: t.palette.primary.main,
1835
- borderRadius: t.shape.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 === I.LIGHT ? 0.1 : 0.2),
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 === I.LIGHT ? 0.1 : 0.2
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
- Vt as SelectionBox,
1934
+ Gt as SelectionBox,
1933
1935
  F as Text,
1934
1936
  Ut as TextField,
1935
- Gt as Toast,
1937
+ Vt as Toast,
1936
1938
  Wt as createMXTheme
1937
1939
  };
1938
1940
  //# sourceMappingURL=index.es.js.map