@mxenabled/mxui 1.0.1-alpha.JB0 → 1.0.2-alpha.JB0

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
@@ -35,8 +35,8 @@ const h = ({
35
35
  children: e,
36
36
  height: o,
37
37
  size: r = 16,
38
- viewBox: t = "0 0 16 16",
39
- width: i
38
+ viewBox: l = "0 0 16 16",
39
+ width: t
40
40
  }) => /* @__PURE__ */ a(
41
41
  "svg",
42
42
  {
@@ -44,8 +44,8 @@ const h = ({
44
44
  className: "mx-kmui-icon",
45
45
  focusable: !1,
46
46
  height: o || r,
47
- viewBox: t,
48
- width: i || r,
47
+ viewBox: l,
48
+ width: t || r,
49
49
  xmlns: "http://www.w3.org/2000/svg",
50
50
  children: e
51
51
  }
@@ -55,12 +55,12 @@ const b = ({
55
55
  color: e,
56
56
  fill: o = !1,
57
57
  name: r,
58
- size: t = 20,
59
- sx: i,
60
- weight: n = 300,
61
- ...l
58
+ size: l = 20,
59
+ sx: t,
60
+ weight: i = 300,
61
+ ...n
62
62
  }) => {
63
- const [s, f] = m.useState(!1);
63
+ const [c, f] = m.useState(!1);
64
64
  return m.useEffect(() => {
65
65
  document.fonts.ready.then(() => {
66
66
  f(!0);
@@ -68,23 +68,23 @@ const b = ({
68
68
  }, []), /* @__PURE__ */ a(
69
69
  j,
70
70
  {
71
- color: s ? e && e : void 0,
71
+ color: c ? e && e : void 0,
72
72
  sx: [
73
73
  {
74
- fontSize: t,
74
+ fontSize: l,
75
75
  fontVariationSettings: `
76
76
  'FILL' ${o ? 1 : 0},
77
- 'wght' ${n},
77
+ 'wght' ${i},
78
78
  'GRAD' 0,
79
- 'opsz' ${t}
79
+ 'opsz' ${l}
80
80
  `
81
81
  },
82
- ...Array.isArray(i) ? i : [i],
82
+ ...Array.isArray(t) ? t : [t],
83
83
  {
84
- ...!s && { color: "transparent" }
84
+ ...!c && { color: "transparent" }
85
85
  }
86
86
  ],
87
- ...l,
87
+ ...n,
88
88
  children: r
89
89
  }
90
90
  );
@@ -411,53 +411,53 @@ const W = {
411
411
  categoryGuid: e,
412
412
  icon_ratio: o = M0,
413
413
  size: r = 32,
414
- sx: t = {},
415
- variant: i = "filled"
414
+ sx: l = {},
415
+ variant: t = "filled"
416
416
  }) => {
417
- const n = C(), l = m.useMemo(
418
- () => y0.find((c) => c.guid === e) ?? W,
417
+ const i = C(), n = m.useMemo(
418
+ () => y0.find((s) => s.guid === e) ?? W,
419
419
  [e]
420
- ), s = n.palette.categories[l.colorName];
420
+ ), c = i.palette.categories[n.colorName];
421
421
  return /* @__PURE__ */ a(
422
422
  k,
423
423
  {
424
424
  alignItems: "center",
425
425
  bgcolor: () => {
426
- let c = s;
427
- return i === "twotone" && (c = `${c}20`), i === "transparent" || i === "basic" ? "transparent" : c;
426
+ let s = c;
427
+ return t === "twotone" && (s = `${s}20`), t === "transparent" || t === "basic" ? "transparent" : s;
428
428
  },
429
429
  borderRadius: 1,
430
430
  color: () => {
431
- const c = i === "filled" ? n.palette.common.white : s;
432
- return i === "basic" ? n.palette.text.primary : c;
431
+ const s = t === "filled" ? i.palette.common.white : c;
432
+ return t === "basic" ? i.palette.text.primary : s;
433
433
  },
434
434
  height: r,
435
435
  justifyContent: "center",
436
- sx: [...Array.isArray(t) ? t : [t]],
436
+ sx: [...Array.isArray(l) ? l : [l]],
437
437
  width: r,
438
- children: /* @__PURE__ */ a(b, { name: l.icon, size: r * o })
438
+ children: /* @__PURE__ */ a(b, { name: n.icon, size: r * o })
439
439
  }
440
440
  );
441
441
  }, T0 = ({
442
442
  items: e,
443
443
  onChange: o,
444
444
  isValid: r,
445
- selected: t
445
+ selected: l
446
446
  }) => {
447
- const i = C(), n = e?.map((l) => {
448
- const s = l.getValue({ isValid: r });
447
+ const t = C(), i = e?.map((n) => {
448
+ const c = n.getValue({ isValid: r });
449
449
  return {
450
- label: l.label,
450
+ label: n.label,
451
451
  onClick: () => {
452
- o(s, "accept", l);
452
+ o(c, "accept", n);
453
453
  },
454
- disabled: !r(s)
454
+ disabled: !r(c)
455
455
  };
456
456
  });
457
- return /* @__PURE__ */ a(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(a0, { color: "primary", orientation: "vertical", value: t, children: n?.map((l) => /* @__PURE__ */ a(
457
+ return /* @__PURE__ */ a(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(a0, { color: "primary", orientation: "vertical", value: l, children: i?.map((n) => /* @__PURE__ */ a(
458
458
  o0,
459
459
  {
460
- onClick: l.onClick,
460
+ onClick: n.onClick,
461
461
  sx: {
462
462
  borderWidth: 1,
463
463
  color: "secondary.main",
@@ -468,29 +468,29 @@ const W = {
468
468
  boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
469
469
  },
470
470
  "&:hover": {
471
- bgcolor: i.palette.action.hover,
472
- borderTop: `1px solid ${i.palette.secondary.lighter}`
471
+ bgcolor: t.palette.action.hover,
472
+ borderTop: `1px solid ${t.palette.secondary.lighter}`
473
473
  },
474
474
  "&.Mui-selected": {
475
- border: `2px solid ${i.palette.mode === "light" ? i.palette.primary.main : i.palette.primary.light} !important`,
475
+ border: `2px solid ${t.palette.mode === "light" ? t.palette.primary.main : t.palette.primary.light} !important`,
476
476
  marginTop: "-2px !important",
477
- color: i.palette.mode === "light" ? "primary" : "primary.light"
477
+ color: t.palette.mode === "light" ? "primary" : "primary.light"
478
478
  }
479
479
  },
480
- value: l.label,
481
- children: l.label
480
+ value: n.label,
481
+ children: n.label
482
482
  },
483
- l.label
483
+ n.label
484
484
  )) }) });
485
485
  }, De = ({
486
486
  copy: e,
487
487
  dateRange: o,
488
488
  onRangeChanged: r,
489
- selectedShortcut: t = e.dateRangeThisMonth,
490
- sx: i = {}
489
+ selectedShortcut: l = e.dateRangeThisMonth,
490
+ sx: t = {}
491
491
  }) => {
492
- const n = C(), l = q(n.breakpoints.down("sm")), s = m.useMemo(() => {
493
- const u = Y(), c = Q(u, 1), g = J(u, 1);
492
+ const i = C(), n = q(i.breakpoints.down("sm")), c = m.useMemo(() => {
493
+ const u = Y(), s = Q(u, 1), g = J(u, 1);
494
494
  return [
495
495
  {
496
496
  label: e.dateRangeThisMonth,
@@ -498,7 +498,7 @@ const W = {
498
498
  },
499
499
  {
500
500
  label: e.dateRangeLastMonth,
501
- getValue: () => [F(c), S(c)]
501
+ getValue: () => [F(s), S(s)]
502
502
  },
503
503
  {
504
504
  label: e.dateRangeLast30Days,
@@ -521,8 +521,8 @@ const W = {
521
521
  getValue: () => [u, u]
522
522
  }
523
523
  ];
524
- }, [e]), f = (u, c) => {
525
- const g = c.shortcut;
524
+ }, [e]), f = (u, s) => {
525
+ const g = s.shortcut;
526
526
  r?.(u, g ? g.label : e.dateRangeCustom);
527
527
  };
528
528
  return /* @__PURE__ */ a(k, { gap: 16, m: 8, children: /* @__PURE__ */ a(e0, { dateAdapter: t0, children: /* @__PURE__ */ a(
@@ -539,7 +539,7 @@ const W = {
539
539
  slotProps: {
540
540
  actionBar: { actions: [] },
541
541
  shortcuts: {
542
- items: l ? [] : s
542
+ items: n ? [] : c
543
543
  },
544
544
  toolbar: {
545
545
  toolbarFormat: "MMM d, yyyy"
@@ -547,10 +547,10 @@ const W = {
547
547
  },
548
548
  slots: {
549
549
  leftArrowIcon: () => /* @__PURE__ */ a(b, { name: "chevron_left", size: 28 }),
550
- shortcuts: (u) => /* @__PURE__ */ a(T0, { selected: t, ...u }),
550
+ shortcuts: (u) => /* @__PURE__ */ a(T0, { selected: l, ...u }),
551
551
  rightArrowIcon: () => /* @__PURE__ */ a(b, { name: "chevron_right", size: 28 })
552
552
  },
553
- sx: { ...i },
553
+ sx: { ...t },
554
554
  value: o
555
555
  }
556
556
  ) }) });
@@ -560,11 +560,11 @@ const W = {
560
560
  hasSecondaryAction: e = !0,
561
561
  isPrimaryDisabled: o,
562
562
  onPrimaryAction: r,
563
- onSecondaryAction: t,
564
- primaryColor: i = "primary",
565
- primaryText: n = "Save",
566
- secondaryColor: l = "primary",
567
- secondaryText: s = "Cancel",
563
+ onSecondaryAction: l,
564
+ primaryColor: t = "primary",
565
+ primaryText: i = "Save",
566
+ secondaryColor: n = "primary",
567
+ secondaryText: c = "Cancel",
568
568
  ...f
569
569
  }) => /* @__PURE__ */ y(
570
570
  O,
@@ -582,26 +582,26 @@ const W = {
582
582
  e && /* @__PURE__ */ a(
583
583
  D,
584
584
  {
585
- color: l,
586
- onClick: t,
585
+ color: n,
586
+ onClick: l,
587
587
  variant: r ? "outlined" : "contained",
588
- children: s
588
+ children: c
589
589
  }
590
590
  ),
591
591
  r && /* @__PURE__ */ a(
592
592
  D,
593
593
  {
594
- color: i,
594
+ color: t,
595
595
  disabled: o,
596
596
  onClick: r,
597
597
  variant: "contained",
598
- children: n
598
+ children: i
599
599
  }
600
600
  )
601
601
  ]
602
602
  }
603
603
  ), Le = ({ copy: e, onClose: o, ...r }) => {
604
- const t = C();
604
+ const l = C();
605
605
  return /* @__PURE__ */ y(
606
606
  O,
607
607
  {
@@ -613,7 +613,7 @@ const W = {
613
613
  ...r,
614
614
  children: [
615
615
  /* @__PURE__ */ a(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ a(A0, { sx: { fontWeight: 600 }, variant: "H3", children: e.title }) }),
616
- /* @__PURE__ */ a(_, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(f0, { color: t.palette.primary.main }) })
616
+ /* @__PURE__ */ a(_, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(f0, { color: l.palette.primary.main }) })
617
617
  ]
618
618
  }
619
619
  );
@@ -621,11 +621,11 @@ const W = {
621
621
  className: e,
622
622
  disableSave: o,
623
623
  id: r,
624
- isOpen: t,
625
- onClose: i,
626
- onSave: n,
627
- primaryText: l,
628
- secondaryText: s,
624
+ isOpen: l,
625
+ onClose: t,
626
+ onSave: i,
627
+ primaryText: n,
628
+ secondaryText: c,
629
629
  children: f,
630
630
  ...u
631
631
  }) => /* @__PURE__ */ y(
@@ -634,20 +634,20 @@ const W = {
634
634
  anchor: "right",
635
635
  className: `mx-kmui-drawer ${e}`,
636
636
  id: r ?? void 0,
637
- onClose: i,
638
- open: t,
637
+ onClose: t,
638
+ open: l,
639
639
  variant: "temporary",
640
640
  ...u,
641
641
  children: [
642
642
  f,
643
- n && /* @__PURE__ */ a(
643
+ i && /* @__PURE__ */ a(
644
644
  v0,
645
645
  {
646
646
  isPrimaryDisabled: o,
647
- onPrimaryAction: n,
648
- onSecondaryAction: i,
649
- primaryText: l,
650
- secondaryText: s
647
+ onPrimaryAction: i,
648
+ onSecondaryAction: t,
649
+ primaryText: n,
650
+ secondaryText: c
651
651
  }
652
652
  )
653
653
  ]
@@ -656,95 +656,95 @@ const W = {
656
656
  alt: e,
657
657
  institutionGuid: o,
658
658
  logoUrl: r,
659
- size: t = $,
660
- ...i
659
+ size: l = $,
660
+ ...t
661
661
  }) => /* @__PURE__ */ a(
662
662
  "img",
663
663
  {
664
664
  alt: e,
665
- height: t,
666
- onError: (n) => n.target.src = x0,
665
+ height: l,
666
+ onError: (i) => i.target.src = x0,
667
667
  src: r || `${H}/Ipad%20Logos/100x100/${o}_100x100.png`,
668
668
  style: {
669
669
  borderRadius: 4
670
670
  },
671
- width: t,
672
- ...i
671
+ width: l,
672
+ ...t
673
673
  }
674
674
  ), Ie = ({
675
675
  alt: e = "",
676
676
  categoryGuid: o,
677
677
  merchantGuid: r,
678
- size: t = $,
679
- ...i
678
+ size: l = $,
679
+ ...t
680
680
  }) => {
681
- const [n, l] = m.useState(!1);
682
- return /* @__PURE__ */ y(L, { display: "inline-block", position: "relative", ...i, children: [
683
- r && !n && /* @__PURE__ */ a(
681
+ const [i, n] = m.useState(!1);
682
+ return /* @__PURE__ */ y(L, { display: "inline-block", position: "relative", ...t, children: [
683
+ r && !i && /* @__PURE__ */ a(
684
684
  "img",
685
685
  {
686
686
  alt: e,
687
687
  "aria-hidden": !e,
688
- height: t,
689
- onError: () => l(!0),
688
+ height: l,
689
+ onError: () => n(!0),
690
690
  src: `${H}/merchant_logos/${r}.png`,
691
691
  style: {
692
692
  borderRadius: 4,
693
693
  boxSizing: "border-box",
694
694
  position: "absolute"
695
695
  },
696
- width: t
696
+ width: l
697
697
  }
698
698
  ),
699
- /* @__PURE__ */ a(C0, { categoryGuid: o, size: t })
699
+ /* @__PURE__ */ a(C0, { categoryGuid: o, size: l })
700
700
  ] });
701
701
  }, T = ({
702
702
  bold: e,
703
703
  className: o = "",
704
704
  children: r,
705
- color: t,
706
- sx: i = {},
707
- truncate: n = !0,
708
- uppercase: l,
709
- ...s
705
+ color: l,
706
+ sx: t = {},
707
+ truncate: i = !0,
708
+ uppercase: n,
709
+ ...c
710
710
  }) => /* @__PURE__ */ a(
711
711
  n0,
712
712
  {
713
713
  className: `mx-kmui-text ${o}`,
714
- color: t,
714
+ color: l,
715
715
  sx: [
716
716
  e ? {
717
717
  fontWeight: 600
718
718
  } : {},
719
- n ? {
719
+ i ? {
720
720
  overflow: "hidden",
721
721
  textOverflow: "ellipsis",
722
722
  whiteSpace: "nowrap"
723
723
  } : {},
724
- l ? {
724
+ n ? {
725
725
  textTransform: "uppercase"
726
726
  } : {},
727
- ...Array.isArray(i) ? i : [i]
727
+ ...Array.isArray(t) ? t : [t]
728
728
  ],
729
- ...s,
729
+ ...c,
730
730
  children: r
731
731
  }
732
- ), A0 = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "H1", ...r, children: o }), Se = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "H2", ...r, children: o }), Fe = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "H3", ...r, children: o }), we = ({ className: e = "", children: o, truncate: r, ...t }) => /* @__PURE__ */ a(
732
+ ), A0 = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "H1", ...r, children: o }), Se = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "H2", ...r, children: o }), Fe = ({ className: e = "", children: o, ...r }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "H3", ...r, children: o }), we = ({ className: e = "", children: o, truncate: r, ...l }) => /* @__PURE__ */ a(
733
733
  T,
734
734
  {
735
735
  className: `mx-kmui-text p ${e}`,
736
736
  component: "p",
737
737
  truncate: r || !1,
738
738
  variant: "Body",
739
- ...t,
739
+ ...l,
740
740
  children: o
741
741
  }
742
742
  ), Re = ({
743
743
  disabled: e = !1,
744
744
  label: o = "",
745
745
  shrink: r = !0,
746
- variant: t = "outlined",
747
- ...i
746
+ variant: l = "outlined",
747
+ ...t
748
748
  }) => /* @__PURE__ */ a(
749
749
  l0,
750
750
  {
@@ -753,8 +753,8 @@ const W = {
753
753
  },
754
754
  disabled: e,
755
755
  label: o,
756
- variant: t,
757
- ...i
756
+ variant: l,
757
+ ...t
758
758
  }
759
759
  );
760
760
  function D0(e) {
@@ -764,14 +764,14 @@ const Ne = ({
764
764
  open: e,
765
765
  handleClose: o,
766
766
  message: r,
767
- autoHideDuration: t = 3e3,
768
- severity: i = "success",
769
- snackbarSx: n,
770
- showAction: l = !1,
771
- showClose: s = !1,
767
+ autoHideDuration: l = 3e3,
768
+ severity: t = "success",
769
+ snackbarSx: i,
770
+ showAction: n = !1,
771
+ showClose: c = !1,
772
772
  actionText: f = "Undo",
773
773
  onActionClick: u,
774
- multiLine: c = !1
774
+ multiLine: s = !1
775
775
  }) => {
776
776
  const g = C(), K = {
777
777
  success: g.palette.success.dark,
@@ -781,14 +781,14 @@ const Ne = ({
781
781
  }, Z = /* @__PURE__ */ y(
782
782
  k,
783
783
  {
784
- alignItems: c ? "flex-end" : "center",
785
- direction: c ? "column-reverse" : "row",
784
+ alignItems: s ? "flex-end" : "center",
785
+ direction: s ? "column-reverse" : "row",
786
786
  justifyContent: (
787
787
  // eslint-disable-next-line no-nested-ternary
788
- c && l && s ? "space-between" : "flex-end"
788
+ s && n && c ? "space-between" : "flex-end"
789
789
  ),
790
790
  children: [
791
- l && /* @__PURE__ */ a(
791
+ n && /* @__PURE__ */ a(
792
792
  D,
793
793
  {
794
794
  color: "inherit",
@@ -801,7 +801,7 @@ const Ne = ({
801
801
  children: f
802
802
  }
803
803
  ),
804
- s && /* @__PURE__ */ a(
804
+ c && /* @__PURE__ */ a(
805
805
  _,
806
806
  {
807
807
  "aria-label": "close",
@@ -819,32 +819,32 @@ const Ne = ({
819
819
  {
820
820
  TransitionComponent: D0,
821
821
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
822
- autoHideDuration: t,
822
+ autoHideDuration: l,
823
823
  onClose: o,
824
824
  open: e,
825
825
  sx: {
826
- ...n,
827
- width: c ? 400 : 325
826
+ ...i,
827
+ width: s ? 400 : 325
828
828
  },
829
829
  children: /* @__PURE__ */ a(
830
830
  s0,
831
831
  {
832
832
  action: Z,
833
- severity: i,
833
+ severity: t,
834
834
  sx: {
835
835
  display: "flex",
836
836
  alignItems: "stretch",
837
- minHeight: s && l && c ? 120 : 56,
838
- maxHeight: c ? 120 : 56,
839
- backgroundColor: (I) => I.palette.mode === "light" ? I.palette[i].darker : K[i],
837
+ minHeight: c && n && s ? 120 : 56,
838
+ maxHeight: s ? 120 : 56,
839
+ backgroundColor: (I) => I.palette.mode === "light" ? I.palette[t].darker : K[t],
840
840
  width: "100%",
841
841
  "& .MuiAlert-icon": {
842
- alignSelf: c ? "flex-start" : "center"
842
+ alignSelf: s ? "flex-start" : "center"
843
843
  },
844
844
  "& .MuiAlert-message": {
845
- paddingTop: c ? 12 : 8,
846
- paddingBottom: c ? 12 : 8,
847
- alignSelf: c ? "flex-start" : "center"
845
+ paddingTop: s ? 12 : 8,
846
+ paddingBottom: s ? 12 : 8,
847
+ alignSelf: s ? "flex-start" : "center"
848
848
  },
849
849
  "& .MuiAlert-action": {
850
850
  alignItems: "stretch",
@@ -857,11 +857,11 @@ const Ne = ({
857
857
  {
858
858
  sx: {
859
859
  lineHeight: g.typography.Body.lineHeight,
860
- whiteSpace: c ? "normal" : "nowrap",
861
- overflow: c ? "visible" : "hidden",
862
- textOverflow: c ? "clip" : "ellipsis"
860
+ whiteSpace: s ? "normal" : "nowrap",
861
+ overflow: s ? "visible" : "hidden",
862
+ textOverflow: s ? "clip" : "ellipsis"
863
863
  },
864
- truncate: !c,
864
+ truncate: !s,
865
865
  children: r
866
866
  }
867
867
  )
@@ -882,18 +882,18 @@ const Ne = ({
882
882
  children: e,
883
883
  target: o = M.REACT,
884
884
  theme: r = x.LIGHT,
885
- tokenOverrides: t
885
+ tokenOverrides: l
886
886
  }) => {
887
- const [i, n] = m.useState(r === x.LIGHT ? V : d0), l = m.useMemo(() => ({
888
- ...t
889
- }), [t]);
887
+ const [t, i] = m.useState(r === x.LIGHT ? V : d0), n = m.useMemo(() => ({
888
+ ...l
889
+ }), [l]);
890
890
  return m.useEffect(() => {
891
- const s = E(r, o, { ...l });
892
- n(s);
893
- }, [r, o, l]), o === M.REACT ? /* @__PURE__ */ a(G.Provider, { value: i, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(U.Provider, { value: i, children: e }));
891
+ const c = E(r, o, { ...n });
892
+ i(c);
893
+ }, [r, o, n]), o === M.REACT ? /* @__PURE__ */ a(G.Provider, { value: t, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(U.Provider, { value: t, children: e }));
894
894
  }, Pe = (e = M.REACT, o = {}) => {
895
- const r = e === M.REACT ? G : U, t = m.useContext(r);
896
- return t || E(x.LIGHT, e, { ...o });
895
+ const r = e === M.REACT ? G : U, l = m.useContext(r);
896
+ return l || E(x.LIGHT, e, { ...o });
897
897
  }, p = {
898
898
  LIGHT: "light",
899
899
  DARK: "dark"
@@ -1131,8 +1131,8 @@ const A = [...P().shadows];
1131
1131
  A[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1132
1132
  A[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1133
1133
  A[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1134
- const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", H0 = "cubic-bezier(.475,.425,0,.995)", Be = (e) => {
1135
- const o = L0(e), r = E0(o);
1134
+ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", H0 = "cubic-bezier(.475,.425,0,.995)", Be = (e, o = {}) => {
1135
+ const r = L0(e, o), l = E0(r);
1136
1136
  return P({
1137
1137
  breakpoints: {
1138
1138
  values: {
@@ -1143,13 +1143,13 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
1143
1143
  xl: 1200
1144
1144
  }
1145
1145
  },
1146
- palette: o,
1146
+ palette: r,
1147
1147
  shadows: A,
1148
1148
  shape: {
1149
1149
  borderRadius: 4
1150
1150
  },
1151
1151
  spacing: 1,
1152
- typography: r,
1152
+ typography: l,
1153
1153
  components: {
1154
1154
  MuiAutocomplete: {
1155
1155
  styleOverrides: {
@@ -1350,18 +1350,18 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
1350
1350
  MuiChip: {
1351
1351
  styleOverrides: {
1352
1352
  outlined: ({ theme: t }) => {
1353
- const { common: i, grey: n, mode: l } = t.palette;
1353
+ const { common: i, grey: n, mode: c } = t.palette;
1354
1354
  return {
1355
1355
  backgroundColor: "transparent",
1356
- borderColor: l === p.LIGHT ? n[600] : n[500],
1356
+ borderColor: c === p.LIGHT ? n[600] : n[500],
1357
1357
  borderWidth: 1,
1358
- color: l === p.LIGHT ? n[900] : i.white,
1358
+ color: c === p.LIGHT ? n[900] : i.white,
1359
1359
  fontSize: 11,
1360
1360
  // XSmall
1361
1361
  height: 24,
1362
1362
  "&:hover": {
1363
- borderColor: l === p.LIGHT ? n[300] : n[600],
1364
- backgroundColor: l === p.LIGHT ? n[300] : n[600]
1363
+ borderColor: c === p.LIGHT ? n[300] : n[600],
1364
+ backgroundColor: c === p.LIGHT ? n[300] : n[600]
1365
1365
  }
1366
1366
  };
1367
1367
  },
@@ -1628,7 +1628,7 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
1628
1628
  },
1629
1629
  styleOverrides: {
1630
1630
  root: ({ ownerState: t, theme: i }) => {
1631
- const { mode: n, primary: l } = i.palette;
1631
+ const { mode: n, primary: c } = i.palette;
1632
1632
  return {
1633
1633
  minHeight: 64,
1634
1634
  ...!t.disablePadding && {
@@ -1637,7 +1637,7 @@ const N = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px
1637
1637
  paddingLeft: 24
1638
1638
  },
1639
1639
  "& .MuiIconButton-root": {
1640
- color: n === p.LIGHT ? l.main : l.light
1640
+ color: n === p.LIGHT ? c.main : c.light
1641
1641
  }
1642
1642
  };
1643
1643
  }