@mxenabled/mxui 1.5.9-alpha.al0 → 1.5.9

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
@@ -36,7 +36,7 @@ const f = ({
36
36
  children: e,
37
37
  height: o,
38
38
  size: t = 16,
39
- viewBox: n = "0 0 16 16",
39
+ viewBox: l = "0 0 16 16",
40
40
  width: r
41
41
  }) => /* @__PURE__ */ a(
42
42
  "svg",
@@ -45,7 +45,7 @@ const f = ({
45
45
  className: "mx-kmui-icon",
46
46
  focusable: !1,
47
47
  height: o || t,
48
- viewBox: n,
48
+ viewBox: l,
49
49
  width: r || t,
50
50
  xmlns: "http://www.w3.org/2000/svg",
51
51
  children: e
@@ -56,20 +56,20 @@ const x = ({
56
56
  color: e,
57
57
  fill: o = !1,
58
58
  name: t,
59
- size: n = 20,
59
+ size: l = 20,
60
60
  sx: r,
61
- weight: c = 300,
62
- ...l
61
+ weight: s = 300,
62
+ ...n
63
63
  }) => /* @__PURE__ */ a(
64
64
  se,
65
65
  {
66
66
  color: e,
67
67
  fill: o,
68
68
  name: t,
69
- size: n,
69
+ size: l,
70
70
  sx: r,
71
- weight: c,
72
- ...l
71
+ weight: s,
72
+ ...n
73
73
  }
74
74
  ), w0 = ({
75
75
  color: e = "currentColor",
@@ -394,53 +394,53 @@ const ee = {
394
394
  categoryGuid: e,
395
395
  icon_ratio: o = ze,
396
396
  size: t = 32,
397
- sx: n = {},
397
+ sx: l = {},
398
398
  variant: r = "filled"
399
399
  }) => {
400
- const c = H(), l = R.useMemo(
400
+ const s = H(), n = R.useMemo(
401
401
  () => Be.find((u) => u.guid === e) ?? ee,
402
402
  [e]
403
- ), s = c.palette.categories[l.colorName];
403
+ ), c = s.palette.categories[n.colorName];
404
404
  return /* @__PURE__ */ a(
405
405
  I,
406
406
  {
407
407
  alignItems: "center",
408
408
  bgcolor: () => {
409
- let u = s;
409
+ let u = c;
410
410
  return r === "twotone" && (u = `${u}20`), r === "transparent" || r === "basic" ? "transparent" : u;
411
411
  },
412
412
  borderRadius: 1,
413
413
  color: () => {
414
- const u = r === "filled" ? c.palette.common.white : s;
415
- return r === "basic" ? c.palette.text.primary : u;
414
+ const u = r === "filled" ? s.palette.common.white : c;
415
+ return r === "basic" ? s.palette.text.primary : u;
416
416
  },
417
417
  height: t,
418
418
  justifyContent: "center",
419
- sx: [...Array.isArray(n) ? n : [n]],
419
+ sx: [...Array.isArray(l) ? l : [l]],
420
420
  width: t,
421
- children: /* @__PURE__ */ a(x, { name: l.icon, size: t * o })
421
+ children: /* @__PURE__ */ a(x, { name: n.icon, size: t * o })
422
422
  }
423
423
  );
424
424
  }, $e = ({
425
425
  items: e,
426
426
  onChange: o,
427
427
  isValid: t,
428
- selected: n
428
+ selected: l
429
429
  }) => {
430
- const r = H(), c = e?.map((l) => {
431
- const s = l.getValue({ isValid: t });
430
+ const r = H(), s = e?.map((n) => {
431
+ const c = n.getValue({ isValid: t });
432
432
  return {
433
- label: l.label,
433
+ label: n.label,
434
434
  onClick: () => {
435
- o(s, "accept", l);
435
+ o(c, "accept", n);
436
436
  },
437
- disabled: !t(s)
437
+ disabled: !t(c)
438
438
  };
439
439
  });
440
- return /* @__PURE__ */ a(X, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: n, children: c?.map((l) => /* @__PURE__ */ a(
440
+ return /* @__PURE__ */ a(X, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: s?.map((n) => /* @__PURE__ */ a(
441
441
  xe,
442
442
  {
443
- onClick: l.onClick,
443
+ onClick: n.onClick,
444
444
  sx: {
445
445
  borderWidth: 1,
446
446
  color: "secondary.main",
@@ -460,25 +460,26 @@ const ee = {
460
460
  color: "primary"
461
461
  }
462
462
  },
463
- value: l.label,
464
- children: l.label
463
+ value: n.label,
464
+ children: n.label
465
465
  },
466
- l.label
466
+ n.label
467
467
  )) }) });
468
468
  }, Ge = ({
469
469
  items: e,
470
470
  onChange: o,
471
471
  isValid: t,
472
- selected: n
472
+ selected: l,
473
+ selectLabel: r
473
474
  }) => {
474
- const r = e?.map((c) => {
475
- const l = c.getValue({ isValid: t });
475
+ const s = e?.map((n) => {
476
+ const c = n.getValue({ isValid: t });
476
477
  return {
477
- label: c.label,
478
+ label: n.label,
478
479
  onClick: () => {
479
- o(l, "accept", c);
480
+ o(c, "accept", n);
480
481
  },
481
- disabled: !t(l)
482
+ disabled: !t(c)
482
483
  };
483
484
  });
484
485
  return /* @__PURE__ */ a(I, { sx: { py: 16 }, children: /* @__PURE__ */ a(
@@ -488,18 +489,18 @@ const ee = {
488
489
  shrink: !0
489
490
  },
490
491
  SelectProps: { IconComponent: de },
491
- defaultValue: n,
492
+ defaultValue: l,
492
493
  id: "select",
493
- label: "Select Date Range",
494
+ label: r,
494
495
  select: !0,
495
496
  sx: { width: "100%" },
496
- value: n,
497
+ value: l,
497
498
  variant: "outlined",
498
- children: r?.map((c) => /* @__PURE__ */ a(Ae, { onClick: c.onClick, value: c.label, children: c.label }, c.label))
499
+ children: s?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
499
500
  }
500
501
  ) });
501
502
  }, Ue = (e) => {
502
- const { toolbar: o, content: t, shortcuts: n } = Ee(e);
503
+ const { toolbar: o, content: t, shortcuts: l } = Ee(e);
503
504
  return /* @__PURE__ */ T(
504
505
  Se,
505
506
  {
@@ -520,7 +521,7 @@ const ee = {
520
521
  },
521
522
  children: [
522
523
  /* @__PURE__ */ T(I, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
523
- n,
524
+ l,
524
525
  o
525
526
  ] }),
526
527
  /* @__PURE__ */ a(Ie, { className: P.contentWrapper, children: t })
@@ -531,10 +532,10 @@ const ee = {
531
532
  copy: e,
532
533
  dateRange: o,
533
534
  onRangeChanged: t,
534
- selectedShortcut: n = e.dateRangeThisMonth,
535
+ selectedShortcut: l = e.dateRangeThisMonth,
535
536
  sx: r = {}
536
537
  }) => {
537
- const c = H(), l = fe(c.breakpoints.down("sm")), s = R.useMemo(() => {
538
+ const s = H(), n = fe(s.breakpoints.down("sm")), c = R.useMemo(() => {
538
539
  const i = he(), u = ge(i, 1), C = me(i, 1);
539
540
  return [
540
541
  {
@@ -570,7 +571,7 @@ const ee = {
570
571
  const C = u.shortcut;
571
572
  t?.(i, C ? C.label : e.dateRangeCustom);
572
573
  };
573
- return /* @__PURE__ */ a(I, { gap: l ? 0 : 16, m: l ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
574
+ return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
574
575
  Te,
575
576
  {
576
577
  calendars: 1,
@@ -584,19 +585,38 @@ const ee = {
584
585
  slotProps: {
585
586
  actionBar: { actions: [] },
586
587
  shortcuts: {
587
- items: s
588
+ items: c
588
589
  },
589
590
  toolbar: {
590
- toolbarFormat: l ? "MM/dd/yyyy" : "MMM d, yyyy"
591
+ toolbarFormat: n ? "MM/dd/yyyy" : "MMM d, yyyy"
591
592
  }
592
593
  },
593
594
  slots: {
594
- ...l && { layout: Ue },
595
+ ...n && { layout: Ue },
595
596
  leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
596
- shortcuts: (i) => l ? /* @__PURE__ */ a(Ge, { selected: n, ...i }) : /* @__PURE__ */ a($e, { selected: n, ...i }),
597
+ shortcuts: (i) => n ? /* @__PURE__ */ a(
598
+ Ge,
599
+ {
600
+ selectLabel: e.dateRangeSelectARange,
601
+ selected: l,
602
+ ...i
603
+ }
604
+ ) : /* @__PURE__ */ a($e, { selected: l, ...i }),
597
605
  rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
598
- ...l && {
599
- toolbar: (i) => /* @__PURE__ */ a(Re, { dateSeparator: "", ...i, sx: { gap: 8 } })
606
+ ...n && {
607
+ toolbar: (i) => /* @__PURE__ */ a(
608
+ Re,
609
+ {
610
+ dateSeparator: "",
611
+ ...i,
612
+ slotProps: {
613
+ textField: ({ position: u }) => ({
614
+ label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
615
+ })
616
+ },
617
+ sx: { gap: 8 }
618
+ }
619
+ )
600
620
  }
601
621
  },
602
622
  sx: { ...r },
@@ -609,11 +629,11 @@ const ee = {
609
629
  hasSecondaryAction: e = !0,
610
630
  isPrimaryDisabled: o,
611
631
  onPrimaryAction: t,
612
- onSecondaryAction: n,
632
+ onSecondaryAction: l,
613
633
  primaryColor: r = "primary",
614
- primaryText: c = "Save",
615
- secondaryColor: l = "primary",
616
- secondaryText: s = "Cancel"
634
+ primaryText: s = "Save",
635
+ secondaryColor: n = "primary",
636
+ secondaryText: c = "Cancel"
617
637
  }) => /* @__PURE__ */ T(
618
638
  I,
619
639
  {
@@ -625,10 +645,10 @@ const ee = {
625
645
  e && /* @__PURE__ */ a(
626
646
  V,
627
647
  {
628
- color: l,
629
- onClick: n,
648
+ color: n,
649
+ onClick: l,
630
650
  variant: t ? "outlined" : "contained",
631
- children: s
651
+ children: c
632
652
  }
633
653
  ),
634
654
  t && /* @__PURE__ */ a(
@@ -638,7 +658,7 @@ const ee = {
638
658
  disabled: o,
639
659
  onClick: t,
640
660
  variant: "contained",
641
- children: c
661
+ children: s
642
662
  }
643
663
  )
644
664
  ]
@@ -647,75 +667,75 @@ const ee = {
647
667
  bold: e,
648
668
  className: o = "",
649
669
  children: t,
650
- color: n,
670
+ color: l,
651
671
  sx: r = {},
652
- truncate: c = !0,
653
- uppercase: l,
654
- ...s
672
+ truncate: s = !0,
673
+ uppercase: n,
674
+ ...c
655
675
  }) => {
656
- switch (s.variant) {
676
+ switch (c.variant) {
657
677
  case "Body":
658
- s.variant = "body1";
678
+ c.variant = "body1";
659
679
  break;
660
680
  case "Button":
661
- s.variant = "button";
681
+ c.variant = "button";
662
682
  break;
663
683
  case "H1":
664
- s.variant = "h1";
684
+ c.variant = "h1";
665
685
  break;
666
686
  case "H2":
667
- s.variant = "h2";
687
+ c.variant = "h2";
668
688
  break;
669
689
  case "H3":
670
- s.variant = "h3";
690
+ c.variant = "h3";
671
691
  break;
672
692
  case "Paragraph":
673
- s.variant = "subtitle1";
693
+ c.variant = "subtitle1";
674
694
  break;
675
695
  case "ParagraphSmall":
676
- s.variant = "subtitle2";
696
+ c.variant = "subtitle2";
677
697
  break;
678
698
  case "Small":
679
- s.variant = "body2";
699
+ c.variant = "body2";
680
700
  break;
681
701
  case "Tiny":
682
- s.variant = "tiny";
702
+ c.variant = "tiny";
683
703
  break;
684
704
  case "XSmall":
685
- s.variant = "caption";
705
+ c.variant = "caption";
686
706
  break;
687
707
  }
688
708
  return /* @__PURE__ */ a(
689
709
  ve,
690
710
  {
691
711
  className: `mx-kmui-text ${o}`,
692
- color: n,
712
+ color: l,
693
713
  sx: [
694
714
  e ? {
695
715
  fontWeight: 600
696
716
  } : {},
697
- c ? {
717
+ s ? {
698
718
  overflow: "hidden",
699
719
  textOverflow: "ellipsis",
700
720
  whiteSpace: "nowrap"
701
721
  } : {},
702
- l ? {
722
+ n ? {
703
723
  textTransform: "uppercase"
704
724
  } : {},
705
725
  ...Array.isArray(r) ? r : [r]
706
726
  ],
707
- ...s,
727
+ ...c,
708
728
  children: t
709
729
  }
710
730
  );
711
- }, Ze = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...t, children: o }), oo = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...t, children: o }), ro = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...t, children: o }), to = ({ className: e = "", children: o, truncate: t, ...n }) => /* @__PURE__ */ a(
731
+ }, Ze = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...t, children: o }), oo = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...t, children: o }), ro = ({ className: e = "", children: o, ...t }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...t, children: o }), to = ({ className: e = "", children: o, truncate: t, ...l }) => /* @__PURE__ */ a(
712
732
  k,
713
733
  {
714
734
  className: `mx-kmui-text p ${e}`,
715
735
  component: "p",
716
736
  truncate: t || !1,
717
737
  variant: "body1",
718
- ...n,
738
+ ...l,
719
739
  children: o
720
740
  }
721
741
  ), io = ({ copy: e, onClose: o }) => /* @__PURE__ */ T(
@@ -737,11 +757,11 @@ const ee = {
737
757
  className: e,
738
758
  disableSave: o,
739
759
  id: t,
740
- isOpen: n,
760
+ isOpen: l,
741
761
  onClose: r,
742
- onSave: c,
743
- primaryText: l,
744
- secondaryText: s,
762
+ onSave: s,
763
+ primaryText: n,
764
+ secondaryText: c,
745
765
  children: d,
746
766
  ...i
747
767
  }) => /* @__PURE__ */ T(
@@ -751,19 +771,19 @@ const ee = {
751
771
  className: `mx-kmui-drawer ${e}`,
752
772
  id: t ?? void 0,
753
773
  onClose: r,
754
- open: n,
774
+ open: l,
755
775
  variant: "temporary",
756
776
  ...i,
757
777
  children: [
758
778
  d,
759
- c && /* @__PURE__ */ a(
779
+ s && /* @__PURE__ */ a(
760
780
  We,
761
781
  {
762
782
  isPrimaryDisabled: o,
763
- onPrimaryAction: c,
783
+ onPrimaryAction: s,
764
784
  onSecondaryAction: r,
765
- primaryText: l,
766
- secondaryText: s
785
+ primaryText: n,
786
+ secondaryText: c
767
787
  }
768
788
  )
769
789
  ]
@@ -772,54 +792,54 @@ const ee = {
772
792
  alt: e,
773
793
  institutionGuid: o,
774
794
  logoUrl: t,
775
- size: n = oe,
795
+ size: l = oe,
776
796
  ...r
777
797
  }) => /* @__PURE__ */ a(
778
798
  "img",
779
799
  {
780
800
  alt: e,
781
- height: n,
782
- onError: (c) => c.target.src = Ke,
801
+ height: l,
802
+ onError: (s) => s.target.src = Ke,
783
803
  src: t || `${G}/Ipad%20Logos/100x100/${o}_100x100.png`,
784
804
  style: {
785
805
  borderRadius: 4
786
806
  },
787
- width: n,
807
+ width: l,
788
808
  ...r
789
809
  }
790
810
  ), lo = ({
791
811
  alt: e = "",
792
812
  categoryGuid: o,
793
813
  merchantGuid: t,
794
- size: n = oe,
814
+ size: l = oe,
795
815
  ...r
796
816
  }) => {
797
- const [c, l] = R.useState(!1), s = H();
817
+ const [s, n] = R.useState(!1), c = H();
798
818
  return /* @__PURE__ */ T(X, { display: "inline-block", position: "relative", ...r, children: [
799
- t && !c && /* @__PURE__ */ a(
819
+ t && !s && /* @__PURE__ */ a(
800
820
  "img",
801
821
  {
802
822
  alt: e,
803
823
  "aria-hidden": !e,
804
- height: n,
805
- onError: () => l(!0),
824
+ height: l,
825
+ onError: () => n(!0),
806
826
  src: `${G}/merchant_logos/${t}.png`,
807
827
  style: {
808
- backgroundColor: s.palette.common.white,
828
+ backgroundColor: c.palette.common.white,
809
829
  borderRadius: 4,
810
830
  boxSizing: "border-box",
811
831
  position: "absolute"
812
832
  },
813
- width: n
833
+ width: l
814
834
  }
815
835
  ),
816
- /* @__PURE__ */ a(Ve, { categoryGuid: o, size: n })
836
+ /* @__PURE__ */ a(Ve, { categoryGuid: o, size: l })
817
837
  ] });
818
838
  }, co = ({
819
839
  disabled: e = !1,
820
840
  label: o = "",
821
841
  shrink: t = !0,
822
- variant: n = "outlined",
842
+ variant: l = "outlined",
823
843
  ...r
824
844
  }) => /* @__PURE__ */ a(
825
845
  j,
@@ -829,7 +849,7 @@ const ee = {
829
849
  },
830
850
  disabled: e,
831
851
  label: o,
832
- variant: n,
852
+ variant: l,
833
853
  ...r
834
854
  }
835
855
  );
@@ -840,11 +860,11 @@ const so = ({
840
860
  open: e,
841
861
  handleClose: o,
842
862
  message: t,
843
- autoHideDuration: n = 3e3,
863
+ autoHideDuration: l = 3e3,
844
864
  severity: r = "success",
845
- snackbarSx: c,
846
- showAction: l = !1,
847
- showClose: s = !1,
865
+ snackbarSx: s,
866
+ showAction: n = !1,
867
+ showClose: c = !1,
848
868
  actionText: d = "Undo",
849
869
  onActionClick: i,
850
870
  multiLine: u = !1
@@ -856,10 +876,10 @@ const so = ({
856
876
  direction: u ? "column-reverse" : "row",
857
877
  justifyContent: (
858
878
  // eslint-disable-next-line no-nested-ternary
859
- u && l && s ? "space-between" : "flex-end"
879
+ u && n && c ? "space-between" : "flex-end"
860
880
  ),
861
881
  children: [
862
- l && /* @__PURE__ */ a(
882
+ n && /* @__PURE__ */ a(
863
883
  V,
864
884
  {
865
885
  color: "inherit",
@@ -872,7 +892,7 @@ const so = ({
872
892
  children: d
873
893
  }
874
894
  ),
875
- s && /* @__PURE__ */ a(
895
+ c && /* @__PURE__ */ a(
876
896
  J,
877
897
  {
878
898
  "aria-label": "close",
@@ -890,11 +910,11 @@ const so = ({
890
910
  {
891
911
  TransitionComponent: Ye,
892
912
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
893
- autoHideDuration: n,
913
+ autoHideDuration: l,
894
914
  onClose: o,
895
915
  open: e,
896
916
  sx: {
897
- ...c,
917
+ ...s,
898
918
  width: u ? 400 : 325
899
919
  },
900
920
  children: /* @__PURE__ */ a(
@@ -905,7 +925,7 @@ const so = ({
905
925
  sx: {
906
926
  display: "flex",
907
927
  alignItems: "stretch",
908
- minHeight: s && l && u ? 120 : 56,
928
+ minHeight: c && n && u ? 120 : 56,
909
929
  maxHeight: u ? 120 : 56,
910
930
  width: "100%",
911
931
  "& .MuiAlert-icon": {
@@ -952,27 +972,27 @@ const so = ({
952
972
  children: e,
953
973
  target: o = O.REACT,
954
974
  theme: t = N.LIGHT,
955
- tokenOverrides: n
975
+ tokenOverrides: l
956
976
  }) => {
957
- const [r, c] = R.useState(t === N.LIGHT ? q : Oe), l = R.useMemo(() => ({
958
- ...n
959
- }), [n]);
977
+ const [r, s] = R.useState(t === N.LIGHT ? q : Oe), n = R.useMemo(() => ({
978
+ ...l
979
+ }), [l]);
960
980
  return R.useEffect(() => {
961
- const s = $(t, o, { ...l });
962
- c(s);
963
- }, [t, o, l]), o === O.REACT ? /* @__PURE__ */ a(re.Provider, { value: r, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(te.Provider, { value: r, children: e }));
981
+ const c = $(t, o, { ...n });
982
+ s(c);
983
+ }, [t, o, n]), o === O.REACT ? /* @__PURE__ */ a(re.Provider, { value: r, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(te.Provider, { value: r, children: e }));
964
984
  }, po = (e = O.REACT, o = {}) => {
965
- const t = e === O.REACT ? re : te, n = R.useContext(t);
966
- return n || $(N.LIGHT, e, { ...o });
985
+ const t = e === O.REACT ? re : te, l = R.useContext(t);
986
+ return l || $(N.LIGHT, e, { ...o });
967
987
  }, ho = ({
968
988
  component: e = B,
969
989
  variant: o = "outlined",
970
990
  selected: t,
971
- onChange: n,
991
+ onChange: l,
972
992
  headline: r,
973
- message: c,
974
- name: l,
975
- value: s,
993
+ message: s,
994
+ name: n,
995
+ value: c,
976
996
  disabled: d = !1,
977
997
  error: i = !1,
978
998
  icon: u = !1,
@@ -987,7 +1007,7 @@ const so = ({
987
1007
  control: e === B ? /* @__PURE__ */ a(
988
1008
  B,
989
1009
  {
990
- name: l,
1010
+ name: n,
991
1011
  sx: {
992
1012
  p: 0,
993
1013
  ml: 16,
@@ -1002,7 +1022,7 @@ const so = ({
1002
1022
  ) : /* @__PURE__ */ a(
1003
1023
  Le,
1004
1024
  {
1005
- name: l,
1025
+ name: n,
1006
1026
  sx: {
1007
1027
  p: 0,
1008
1028
  ml: 16,
@@ -1020,11 +1040,11 @@ const so = ({
1020
1040
  u && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
1021
1041
  /* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1022
1042
  r && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: r }),
1023
- /* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: c })
1043
+ /* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
1024
1044
  ] })
1025
1045
  ] }),
1026
1046
  labelPlacement: "start",
1027
- onChange: n,
1047
+ onChange: l,
1028
1048
  sx: {
1029
1049
  display: "flex",
1030
1050
  padding: "6px 16px",
@@ -1054,7 +1074,7 @@ const so = ({
1054
1074
  },
1055
1075
  ...C
1056
1076
  },
1057
- value: s
1077
+ value: c
1058
1078
  }
1059
1079
  );
1060
1080
  }, y = {
@@ -1140,7 +1160,7 @@ const so = ({
1140
1160
  TRAVEL: "#76ACF7",
1141
1161
  UNCATEGORIZED: "#BCC6D4"
1142
1162
  }, qe = (e, o) => {
1143
- const t = M(o?.primary || E.PRIMARY), n = M(o?.secondary || E.SECONDARY), r = M(o?.error || E.ERROR), c = M(o?.warning || E.WARNING), l = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), i = e === y.LIGHT;
1163
+ const t = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), r = M(o?.error || E.ERROR), s = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), c = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), i = e === y.LIGHT;
1144
1164
  return {
1145
1165
  mode: e,
1146
1166
  // DEPRECATED: Use grey instead
@@ -1168,14 +1188,14 @@ const so = ({
1168
1188
  darker: i ? t[900] : t[100]
1169
1189
  },
1170
1190
  secondary: {
1171
- ...n,
1191
+ ...l,
1172
1192
  /* DEPRECATED: Use light instead */
1173
- lighter: i ? n[100] : n[800],
1174
- light: i ? n[300] : n[600],
1175
- main: i ? n[500] : n[400],
1176
- dark: i ? n[700] : n[200],
1193
+ lighter: i ? l[100] : l[800],
1194
+ light: i ? l[300] : l[600],
1195
+ main: i ? l[500] : l[400],
1196
+ dark: i ? l[700] : l[200],
1177
1197
  /* DEPRECATED: Use dark instead */
1178
- darker: i ? n[900] : n[100]
1198
+ darker: i ? l[900] : l[100]
1179
1199
  },
1180
1200
  neutral: {
1181
1201
  ...d,
@@ -1204,34 +1224,34 @@ const so = ({
1204
1224
  darker: i ? r[900] : r[100]
1205
1225
  },
1206
1226
  warning: {
1207
- ...c,
1227
+ ...s,
1208
1228
  /* DEPRECATED: Use light instead */
1209
- lighter: i ? c[100] : c[800],
1210
- light: i ? c[300] : c[600],
1211
- main: i ? c[500] : c[400],
1212
- dark: i ? c[700] : c[200],
1229
+ lighter: i ? s[100] : s[800],
1230
+ light: i ? s[300] : s[600],
1231
+ main: i ? s[500] : s[400],
1232
+ dark: i ? s[700] : s[200],
1213
1233
  /* DEPRECATED: Use light instead */
1214
- darker: i ? c[900] : c[100]
1234
+ darker: i ? s[900] : s[100]
1215
1235
  },
1216
1236
  info: {
1217
- ...l,
1237
+ ...n,
1218
1238
  /* DEPRECATED: Use light instead */
1219
- lighter: i ? l[100] : l[800],
1220
- light: i ? l[300] : l[600],
1221
- main: i ? l[500] : l[400],
1222
- dark: i ? l[700] : l[200],
1239
+ lighter: i ? n[100] : n[800],
1240
+ light: i ? n[300] : n[600],
1241
+ main: i ? n[500] : n[400],
1242
+ dark: i ? n[700] : n[200],
1223
1243
  /* DEPRECATED: Use light instead */
1224
- darker: i ? l[900] : l[100]
1244
+ darker: i ? n[900] : n[100]
1225
1245
  },
1226
1246
  success: {
1227
- ...s,
1247
+ ...c,
1228
1248
  /* DEPRECATED: Use light instead */
1229
- lighter: i ? s[100] : s[800],
1230
- light: i ? s[300] : s[600],
1231
- main: i ? s[500] : s[400],
1232
- dark: i ? s[700] : s[200],
1249
+ lighter: i ? c[100] : c[800],
1250
+ light: i ? c[300] : c[600],
1251
+ main: i ? c[500] : c[400],
1252
+ dark: i ? c[700] : c[200],
1233
1253
  /* DEPRECATED: Use light instead */
1234
- darker: i ? s[900] : s[100]
1254
+ darker: i ? c[900] : c[100]
1235
1255
  },
1236
1256
  grey: d,
1237
1257
  action: {
@@ -1427,7 +1447,7 @@ we.setLicenseKey(
1427
1447
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1428
1448
  );
1429
1449
  const go = (e, o) => {
1430
- const t = qe(e, o?.paletteOptions), n = o0(o?.typographyOptions);
1450
+ const t = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions);
1431
1451
  return ce({
1432
1452
  breakpoints: {
1433
1453
  values: {
@@ -1444,7 +1464,7 @@ const go = (e, o) => {
1444
1464
  },
1445
1465
  spacing: 1,
1446
1466
  // TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
1447
- typography: n,
1467
+ typography: l,
1448
1468
  components: {
1449
1469
  MuiAlert: {
1450
1470
  defaultProps: {
@@ -1457,15 +1477,15 @@ const go = (e, o) => {
1457
1477
  variant: "outlined"
1458
1478
  },
1459
1479
  styleOverrides: {
1460
- root: ({ theme: r, ownerState: c }) => {
1461
- const l = c.severity || "info";
1462
- let s = r.palette.mode === y.LIGHT ? r.palette[l]?.[50] : r.palette[l]?.[800];
1463
- if (c.variant === "filled") {
1464
- const d = l === "warning";
1465
- s = r.palette[l]?.[d ? 400 : 600];
1480
+ root: ({ theme: r, ownerState: s }) => {
1481
+ const n = s.severity || "info";
1482
+ let c = r.palette.mode === y.LIGHT ? r.palette[n]?.[50] : r.palette[n]?.[800];
1483
+ if (s.variant === "filled") {
1484
+ const d = n === "warning";
1485
+ c = r.palette[n]?.[d ? 400 : 600];
1466
1486
  }
1467
1487
  return {
1468
- backgroundColor: s,
1488
+ backgroundColor: c,
1469
1489
  borderRadius: r.shape.borderRadius,
1470
1490
  "& .MuiAlert-message": {
1471
1491
  fontSize: r.typography.subtitle1.fontSize,
@@ -1755,7 +1775,7 @@ const go = (e, o) => {
1755
1775
  },
1756
1776
  MuiLink: {
1757
1777
  styleOverrides: {
1758
- root: ({ theme: r, color: c }) => ({
1778
+ root: ({ theme: r, color: s }) => ({
1759
1779
  cursor: "pointer",
1760
1780
  fontWeight: 600,
1761
1781
  textDecoration: "none",
@@ -1770,7 +1790,7 @@ const go = (e, o) => {
1770
1790
  backgroundColor: r.palette.action.hover
1771
1791
  },
1772
1792
  "&:active": {
1773
- backgroundColor: r.palette.mode === y.LIGHT ? r.palette[c].light : r.palette[c].dark
1793
+ backgroundColor: r.palette.mode === y.LIGHT ? r.palette[s].light : r.palette[s].dark
1774
1794
  }
1775
1795
  })
1776
1796
  }
@@ -1948,9 +1968,9 @@ const go = (e, o) => {
1948
1968
  gridColumn: "1/4",
1949
1969
  "& > .MuiTypography-root": {
1950
1970
  textTransform: "uppercase",
1951
- fontSize: n.body2.fontSize,
1971
+ fontSize: l.body2.fontSize,
1952
1972
  fontWeight: 600,
1953
- lineHeight: n.body2.lineHeight
1973
+ lineHeight: l.body2.lineHeight
1954
1974
  }
1955
1975
  }
1956
1976
  }