@mxenabled/mxui 1.5.11-alpha.al2 → 1.5.11

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
@@ -28,7 +28,7 @@ import ve from "@mui/material/Typography";
28
28
  import ye from "@mui/material/Drawer";
29
29
  import He from "@mui/material/Snackbar";
30
30
  import Fe from "@mui/material/Alert";
31
- import { light as ee, buildTheme as G, dark as Oe } from "@mxenabled/design-tokens";
31
+ import { light as ee, buildTheme as $, dark as Oe } from "@mxenabled/design-tokens";
32
32
  import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Le, alpha as b, darken as D, lighten as F, getContrastRatio as De } from "@mui/material";
33
33
  import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
34
34
  import { LicenseInfo as we } from "@mui/x-license-pro";
@@ -58,7 +58,7 @@ const R = ({
58
58
  name: i,
59
59
  size: l = 20,
60
60
  sx: c,
61
- weight: t = 300,
61
+ weight: r = 300,
62
62
  ...n
63
63
  }) => /* @__PURE__ */ a(
64
64
  se,
@@ -68,7 +68,7 @@ const R = ({
68
68
  name: i,
69
69
  size: l,
70
70
  sx: c,
71
- weight: t,
71
+ weight: r,
72
72
  ...n
73
73
  }
74
74
  ), w0 = ({
@@ -127,7 +127,7 @@ const R = ({
127
127
  d: "M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm4.358 5.151a.5.5 0 00-.707-.01L6.858 9.803 4.35 7.363a.5.5 0 10-.698.718l2.858 2.777a.5.5 0 00.697 0l5.142-5a.5.5 0 00.01-.707z",
128
128
  fill: e
129
129
  }
130
- ) })), G0 = ({
130
+ ) })), $0 = ({
131
131
  color: e = "currentColor",
132
132
  ...o
133
133
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -136,7 +136,7 @@ const R = ({
136
136
  d: "M2.68 5.201a.6.6 0 01.848-.011L8 9.543l4.472-4.353a.6.6 0 11.837.86l-4.89 4.76a.6.6 0 01-.838 0l-4.89-4.76a.6.6 0 01-.012-.849z",
137
137
  fill: e
138
138
  }
139
- ) })), $0 = ({
139
+ ) })), G0 = ({
140
140
  color: e = "currentColor",
141
141
  ...o
142
142
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -397,10 +397,10 @@ const oe = {
397
397
  sx: l = {},
398
398
  variant: c = "filled"
399
399
  }) => {
400
- const t = H(), n = x.useMemo(
400
+ const r = H(), n = x.useMemo(
401
401
  () => Be.find((u) => u.guid === e) ?? oe,
402
402
  [e]
403
- ), s = t.palette.categories[n.colorName];
403
+ ), s = r.palette.categories[n.colorName];
404
404
  return /* @__PURE__ */ a(
405
405
  I,
406
406
  {
@@ -411,8 +411,8 @@ const oe = {
411
411
  },
412
412
  borderRadius: 1,
413
413
  color: () => {
414
- const u = c === "filled" ? t.palette.common.white : s;
415
- return c === "basic" ? t.palette.text.primary : u;
414
+ const u = c === "filled" ? r.palette.common.white : s;
415
+ return c === "basic" ? r.palette.text.primary : u;
416
416
  },
417
417
  height: i,
418
418
  justifyContent: "center",
@@ -421,13 +421,13 @@ const oe = {
421
421
  children: /* @__PURE__ */ a(R, { name: n.icon, size: i * o })
422
422
  }
423
423
  );
424
- }, Ge = ({
424
+ }, $e = ({
425
425
  items: e,
426
426
  onChange: o,
427
427
  isValid: i,
428
428
  selected: l
429
429
  }) => {
430
- const c = H(), t = e?.map((n) => {
430
+ const c = H(), r = e?.map((n) => {
431
431
  const s = n.getValue({ isValid: i });
432
432
  return {
433
433
  label: n.label,
@@ -437,7 +437,7 @@ const oe = {
437
437
  disabled: !i(s)
438
438
  };
439
439
  });
440
- return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: t?.map((n) => /* @__PURE__ */ a(
440
+ return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: r?.map((n) => /* @__PURE__ */ a(
441
441
  Re,
442
442
  {
443
443
  onClick: n.onClick,
@@ -465,14 +465,14 @@ const oe = {
465
465
  },
466
466
  n.label
467
467
  )) }) });
468
- }, $e = ({
468
+ }, Ge = ({
469
469
  items: e,
470
470
  onChange: o,
471
471
  isValid: i,
472
472
  selected: l,
473
473
  selectLabel: c
474
474
  }) => {
475
- const t = e?.map((n) => {
475
+ const r = e?.map((n) => {
476
476
  const s = n.getValue({ isValid: i });
477
477
  return {
478
478
  label: n.label,
@@ -496,7 +496,7 @@ const oe = {
496
496
  sx: { width: "100%" },
497
497
  value: l,
498
498
  variant: "outlined",
499
- children: t?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
499
+ children: r?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
500
500
  }
501
501
  ) });
502
502
  }, Ue = (e) => {
@@ -535,12 +535,12 @@ const oe = {
535
535
  selectedShortcut: l = e.dateRangeThisMonth,
536
536
  sx: c = {}
537
537
  }) => {
538
- const t = H(), n = fe(t.breakpoints.down("sm")), s = x.useMemo(() => {
539
- const r = he(), u = ge(r, 1), C = me(r, 1);
538
+ const r = H(), n = fe(r.breakpoints.down("sm")), s = x.useMemo(() => {
539
+ const t = he(), u = ge(t, 1), C = me(t, 1);
540
540
  return [
541
541
  {
542
542
  label: e.dateRangeThisMonth,
543
- getValue: () => [Z(r), W(r)]
543
+ getValue: () => [Z(t), W(t)]
544
544
  },
545
545
  {
546
546
  label: e.dateRangeLastMonth,
@@ -548,15 +548,15 @@ const oe = {
548
548
  },
549
549
  {
550
550
  label: e.dateRangeLast30Days,
551
- getValue: () => [Y(r, 30), r]
551
+ getValue: () => [Y(t, 30), t]
552
552
  },
553
553
  {
554
554
  label: e.dateRangeLast90Days,
555
- getValue: () => [Y(r, 90), r]
555
+ getValue: () => [Y(t, 90), t]
556
556
  },
557
557
  {
558
558
  label: e.dateRangeYTD,
559
- getValue: () => [K(r), r]
559
+ getValue: () => [K(t), t]
560
560
  },
561
561
  {
562
562
  label: e.dateRangeLastYear,
@@ -564,12 +564,12 @@ const oe = {
564
564
  },
565
565
  {
566
566
  label: e.dateRangeCustom,
567
- getValue: () => [r, r]
567
+ getValue: () => [t, t]
568
568
  }
569
569
  ];
570
- }, [e]), d = (r, u) => {
570
+ }, [e]), d = (t, u) => {
571
571
  const C = u.shortcut;
572
- i?.(r, C ? C.label : e.dateRangeCustom);
572
+ i?.(t, C ? C.label : e.dateRangeCustom);
573
573
  };
574
574
  return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
575
575
  Te,
@@ -594,21 +594,21 @@ const oe = {
594
594
  slots: {
595
595
  ...n && { layout: Ue },
596
596
  leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
597
- shortcuts: (r) => n ? /* @__PURE__ */ a(
598
- $e,
597
+ shortcuts: (t) => n ? /* @__PURE__ */ a(
598
+ Ge,
599
599
  {
600
600
  selectLabel: e.dateRangeSelectARange,
601
601
  selected: l,
602
- ...r
602
+ ...t
603
603
  }
604
- ) : /* @__PURE__ */ a(Ge, { selected: l, ...r }),
604
+ ) : /* @__PURE__ */ a($e, { selected: l, ...t }),
605
605
  rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
606
606
  ...n && {
607
- toolbar: (r) => /* @__PURE__ */ a(
607
+ toolbar: (t) => /* @__PURE__ */ a(
608
608
  xe,
609
609
  {
610
610
  dateSeparator: "",
611
- ...r,
611
+ ...t,
612
612
  slotProps: {
613
613
  textField: ({ position: u }) => ({
614
614
  label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
@@ -631,7 +631,7 @@ const oe = {
631
631
  onPrimaryAction: i,
632
632
  onSecondaryAction: l,
633
633
  primaryColor: c = "primary",
634
- primaryText: t = "Save",
634
+ primaryText: r = "Save",
635
635
  secondaryColor: n = "primary",
636
636
  secondaryText: s = "Cancel"
637
637
  }) => /* @__PURE__ */ T(
@@ -658,7 +658,7 @@ const oe = {
658
658
  disabled: o,
659
659
  onClick: i,
660
660
  variant: "contained",
661
- children: t
661
+ children: r
662
662
  }
663
663
  )
664
664
  ]
@@ -669,7 +669,7 @@ const oe = {
669
669
  children: i,
670
670
  color: l,
671
671
  sx: c = {},
672
- truncate: t = !0,
672
+ truncate: r = !0,
673
673
  uppercase: n,
674
674
  ...s
675
675
  }) => {
@@ -714,7 +714,7 @@ const oe = {
714
714
  e ? {
715
715
  fontWeight: 600
716
716
  } : {},
717
- t ? {
717
+ r ? {
718
718
  overflow: "hidden",
719
719
  textOverflow: "ellipsis",
720
720
  whiteSpace: "nowrap"
@@ -759,11 +759,11 @@ const oe = {
759
759
  id: i,
760
760
  isOpen: l,
761
761
  onClose: c,
762
- onSave: t,
762
+ onSave: r,
763
763
  primaryText: n,
764
764
  secondaryText: s,
765
765
  children: d,
766
- ...r
766
+ ...t
767
767
  }) => /* @__PURE__ */ T(
768
768
  ye,
769
769
  {
@@ -773,14 +773,14 @@ const oe = {
773
773
  onClose: c,
774
774
  open: l,
775
775
  variant: "temporary",
776
- ...r,
776
+ ...t,
777
777
  children: [
778
778
  d,
779
- t && /* @__PURE__ */ a(
779
+ r && /* @__PURE__ */ a(
780
780
  We,
781
781
  {
782
782
  isPrimaryDisabled: o,
783
- onPrimaryAction: t,
783
+ onPrimaryAction: r,
784
784
  onSecondaryAction: c,
785
785
  primaryText: n,
786
786
  secondaryText: s
@@ -788,7 +788,7 @@ const oe = {
788
788
  )
789
789
  ]
790
790
  }
791
- ), re = 32, $ = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${$}/serenity/default_institution_logo.png`, no = ({
791
+ ), re = 32, G = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${G}/serenity/default_institution_logo.png`, no = ({
792
792
  alt: e,
793
793
  institutionGuid: o,
794
794
  logoUrl: i,
@@ -799,8 +799,8 @@ const oe = {
799
799
  {
800
800
  alt: e,
801
801
  height: l,
802
- onError: (t) => t.target.src = Ke,
803
- src: i || `${$}/Ipad%20Logos/100x100/${o}_100x100.png`,
802
+ onError: (r) => r.target.src = Ke,
803
+ src: i || `${G}/Ipad%20Logos/100x100/${o}_100x100.png`,
804
804
  style: {
805
805
  borderRadius: 4
806
806
  },
@@ -814,16 +814,16 @@ const oe = {
814
814
  size: l = re,
815
815
  ...c
816
816
  }) => {
817
- const [t, n] = x.useState(!1), s = H();
817
+ const [r, n] = x.useState(!1), s = H();
818
818
  return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
819
- i && !t && /* @__PURE__ */ a(
819
+ i && !r && /* @__PURE__ */ a(
820
820
  "img",
821
821
  {
822
822
  alt: e,
823
823
  "aria-hidden": !e,
824
824
  height: l,
825
825
  onError: () => n(!0),
826
- src: `${$}/merchant_logos/${i}.png`,
826
+ src: `${G}/merchant_logos/${i}.png`,
827
827
  style: {
828
828
  backgroundColor: s.palette.common.white,
829
829
  borderRadius: 4,
@@ -862,11 +862,11 @@ const so = ({
862
862
  message: i,
863
863
  autoHideDuration: l = 3e3,
864
864
  severity: c = "success",
865
- snackbarSx: t,
865
+ snackbarSx: r,
866
866
  showAction: n = !1,
867
867
  showClose: s = !1,
868
868
  actionText: d = "Undo",
869
- onActionClick: r,
869
+ onActionClick: t,
870
870
  multiLine: u = !1
871
871
  }) => {
872
872
  const C = H(), L = /* @__PURE__ */ T(
@@ -883,7 +883,7 @@ const so = ({
883
883
  V,
884
884
  {
885
885
  color: "inherit",
886
- onClick: r || o,
886
+ onClick: t || o,
887
887
  size: "small",
888
888
  sx: {
889
889
  color: C.palette.success.contrastText,
@@ -914,7 +914,7 @@ const so = ({
914
914
  onClose: o,
915
915
  open: e,
916
916
  sx: {
917
- ...t,
917
+ ...r,
918
918
  width: u ? 400 : 325
919
919
  },
920
920
  children: /* @__PURE__ */ a(
@@ -967,39 +967,39 @@ const so = ({
967
967
  LIGHT: "light",
968
968
  DARK: "dark"
969
969
  }, te = x.createContext(ee), ie = x.createContext(
970
- G(N.LIGHT, O.REACT_NATIVE)
970
+ $(N.LIGHT, O.REACT_NATIVE)
971
971
  ), uo = ({
972
972
  children: e,
973
973
  target: o = O.REACT,
974
974
  theme: i = N.LIGHT,
975
975
  tokenOverrides: l
976
976
  }) => {
977
- const [c, t] = x.useState(i === N.LIGHT ? ee : Oe), n = x.useMemo(() => ({
977
+ const [c, r] = x.useState(i === N.LIGHT ? ee : Oe), n = x.useMemo(() => ({
978
978
  ...l
979
979
  }), [l]);
980
980
  return x.useEffect(() => {
981
- const s = G(i, o, { ...n });
982
- t(s);
981
+ const s = $(i, o, { ...n });
982
+ r(s);
983
983
  }, [i, o, n]), o === O.REACT ? /* @__PURE__ */ a(te.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
984
984
  }, po = (e = O.REACT, o = {}) => {
985
985
  const i = e === O.REACT ? te : ie, l = x.useContext(i);
986
- return l || G(N.LIGHT, e, { ...o });
986
+ return l || $(N.LIGHT, e, { ...o });
987
987
  }, ho = ({
988
988
  component: e = B,
989
989
  variant: o = "outlined",
990
990
  selected: i,
991
991
  onChange: l,
992
992
  headline: c,
993
- message: t,
993
+ message: r,
994
994
  name: n,
995
995
  value: s,
996
996
  disabled: d = !1,
997
- error: r = !1,
997
+ error: t = !1,
998
998
  icon: u = !1,
999
999
  sx: C = {},
1000
1000
  ...L
1001
1001
  }) => {
1002
- const m = H(), ae = () => m.palette.background.paper, w = () => r ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : m.shadows[1], ne = () => d || r ? m.palette.background.paper : b(m.palette.primary.main, 0.1), le = () => d || r ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : w(), ce = () => d || r ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
1002
+ const m = H(), ae = () => m.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : m.shadows[1], ne = () => d || t ? m.palette.background.paper : b(m.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
1003
1003
  return /* @__PURE__ */ a(
1004
1004
  ke,
1005
1005
  {
@@ -1040,7 +1040,7 @@ const so = ({
1040
1040
  u && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
1041
1041
  /* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1042
1042
  c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
1043
- /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
1043
+ /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
1044
1044
  ] })
1045
1045
  ] }),
1046
1046
  labelPlacement: "start",
@@ -1160,15 +1160,15 @@ const so = ({
1160
1160
  TRAVEL: "#76ACF7",
1161
1161
  UNCATEGORIZED: "#BCC6D4"
1162
1162
  }, qe = (e, o) => {
1163
- const i = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), c = M(o?.error || E.ERROR), t = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), r = e === y.LIGHT;
1163
+ const i = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), c = M(o?.error || E.ERROR), r = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), t = e === y.LIGHT;
1164
1164
  return {
1165
1165
  mode: e,
1166
1166
  // DEPRECATED: Use grey instead
1167
1167
  border: {
1168
1168
  /* DEPRECATED: Use light instead */
1169
- lighter: r ? d[300] : d[700],
1170
- light: r ? d[300] : d[700],
1171
- main: r ? d[400] : d[600],
1169
+ lighter: t ? d[300] : d[700],
1170
+ light: t ? d[300] : d[700],
1171
+ main: t ? d[400] : d[600],
1172
1172
  dark: d[500],
1173
1173
  /* DEPRECATED: Use light instead */
1174
1174
  darker: d[500]
@@ -1180,116 +1180,116 @@ const so = ({
1180
1180
  primary: {
1181
1181
  ...i,
1182
1182
  /* DEPRECATED: Use light instead */
1183
- lighter: r ? i[100] : i[800],
1184
- light: r ? i[300] : i[600],
1185
- main: r ? i[500] : i[400],
1186
- dark: r ? i[700] : i[200],
1183
+ lighter: t ? i[100] : i[800],
1184
+ light: t ? i[300] : i[600],
1185
+ main: t ? i[500] : i[400],
1186
+ dark: t ? i[700] : i[200],
1187
1187
  /* DEPRECATED: Use dark instead */
1188
- darker: r ? i[900] : i[100]
1188
+ darker: t ? i[900] : i[100]
1189
1189
  },
1190
1190
  secondary: {
1191
1191
  ...l,
1192
1192
  /* DEPRECATED: Use light instead */
1193
- lighter: r ? l[100] : l[800],
1194
- light: r ? l[300] : l[600],
1195
- main: r ? l[500] : l[400],
1196
- dark: r ? l[700] : l[200],
1193
+ lighter: t ? l[100] : l[800],
1194
+ light: t ? l[300] : l[600],
1195
+ main: t ? l[500] : l[400],
1196
+ dark: t ? l[700] : l[200],
1197
1197
  /* DEPRECATED: Use dark instead */
1198
- darker: r ? l[900] : l[100]
1198
+ darker: t ? l[900] : l[100]
1199
1199
  },
1200
1200
  neutral: {
1201
1201
  ...d,
1202
1202
  /* DEPRECATED: Use light instead */
1203
- lighter: r ? d[100] : d[800],
1204
- light: r ? d[300] : d[600],
1205
- main: r ? d[500] : d[400],
1206
- dark: r ? d[700] : d[200],
1203
+ lighter: t ? d[100] : d[800],
1204
+ light: t ? d[300] : d[600],
1205
+ main: t ? d[500] : d[400],
1206
+ dark: t ? d[700] : d[200],
1207
1207
  /* DEPRECATED: Use dark instead */
1208
- darker: r ? d[900] : d[100],
1209
- contrastText: De(r ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1208
+ darker: t ? d[900] : d[100],
1209
+ contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1210
1210
  },
1211
1211
  text: {
1212
- primary: r ? d[900] : A,
1213
- secondary: r ? d[600] : b(A, 0.7),
1214
- disabled: r ? d[500] : b(A, 0.38)
1212
+ primary: t ? d[900] : A,
1213
+ secondary: t ? d[600] : b(A, 0.7),
1214
+ disabled: t ? d[500] : b(A, 0.38)
1215
1215
  },
1216
1216
  error: {
1217
1217
  ...c,
1218
1218
  /* DEPRECATED: Use light instead */
1219
- lighter: r ? c[100] : c[800],
1220
- light: r ? c[300] : c[600],
1221
- main: r ? c[500] : c[400],
1222
- dark: r ? c[700] : c[200],
1219
+ lighter: t ? c[100] : c[800],
1220
+ light: t ? c[300] : c[600],
1221
+ main: t ? c[500] : c[400],
1222
+ dark: t ? c[700] : c[200],
1223
1223
  /* DEPRECATED: Use light instead */
1224
- darker: r ? c[900] : c[100]
1224
+ darker: t ? c[900] : c[100]
1225
1225
  },
1226
1226
  warning: {
1227
- ...t,
1227
+ ...r,
1228
1228
  /* DEPRECATED: Use light instead */
1229
- lighter: r ? t[100] : t[800],
1230
- light: r ? t[300] : t[600],
1231
- main: r ? t[500] : t[400],
1232
- dark: r ? t[700] : t[200],
1229
+ lighter: t ? r[100] : r[800],
1230
+ light: t ? r[300] : r[600],
1231
+ main: t ? r[500] : r[400],
1232
+ dark: t ? r[700] : r[200],
1233
1233
  /* DEPRECATED: Use light instead */
1234
- darker: r ? t[900] : t[100]
1234
+ darker: t ? r[900] : r[100]
1235
1235
  },
1236
1236
  info: {
1237
1237
  ...n,
1238
1238
  /* DEPRECATED: Use light instead */
1239
- lighter: r ? n[100] : n[800],
1240
- light: r ? n[300] : n[600],
1241
- main: r ? n[500] : n[400],
1242
- dark: r ? n[700] : n[200],
1239
+ lighter: t ? n[100] : n[800],
1240
+ light: t ? n[300] : n[600],
1241
+ main: t ? n[500] : n[400],
1242
+ dark: t ? n[700] : n[200],
1243
1243
  /* DEPRECATED: Use light instead */
1244
- darker: r ? n[900] : n[100]
1244
+ darker: t ? n[900] : n[100]
1245
1245
  },
1246
1246
  success: {
1247
1247
  ...s,
1248
1248
  /* DEPRECATED: Use light instead */
1249
- lighter: r ? s[100] : s[800],
1250
- light: r ? s[300] : s[600],
1251
- main: r ? s[500] : s[400],
1252
- dark: r ? s[700] : s[200],
1249
+ lighter: t ? s[100] : s[800],
1250
+ light: t ? s[300] : s[600],
1251
+ main: t ? s[500] : s[400],
1252
+ dark: t ? s[700] : s[200],
1253
1253
  /* DEPRECATED: Use light instead */
1254
- darker: r ? s[900] : s[100]
1254
+ darker: t ? s[900] : s[100]
1255
1255
  },
1256
1256
  grey: d,
1257
1257
  action: {
1258
- active: r ? b(z, 0.56) : b(A, 0.56),
1259
- hoverOpacity: r ? 0.1 : 0.2,
1260
- selectedOpacity: r ? 0.16 : 0.25,
1258
+ active: t ? b(z, 0.56) : b(A, 0.56),
1259
+ hoverOpacity: t ? 0.1 : 0.2,
1260
+ selectedOpacity: t ? 0.16 : 0.25,
1261
1261
  focusOpacity: 0.3
1262
1262
  },
1263
1263
  background: {
1264
- default: r ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
1265
- paper: r ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
1266
- highlight: r ? d[200] : d[600],
1267
- highlightPrimary: r ? i[100] : i[500]
1264
+ default: t ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
1265
+ paper: t ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
1266
+ highlight: t ? d[200] : d[600],
1267
+ highlightPrimary: t ? i[100] : i[500]
1268
1268
  },
1269
- divider: r ? b(z, 0.12) : b(A, 0.24),
1269
+ divider: t ? b(z, 0.12) : b(A, 0.24),
1270
1270
  categories: {
1271
- autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1272
- billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1273
- businessServices: r ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1274
- education: r ? p.EDUCATION : h.EDUCATION,
1275
- entertainment: r ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1276
- feesCharges: r ? p.FEES_CHARGES : h.FEES_CHARGES,
1277
- financial: r ? p.FINANCIAL : h.FINANCIAL,
1278
- foodDining: r ? p.FOOD_DINING : h.FOOD_DINING,
1279
- giftsDonations: r ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1280
- healthFitness: r ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1281
- home: r ? p.HOME : h.HOME,
1282
- income: r ? p.INCOME : h.INCOME,
1283
- investments: r ? p.INVESTMENTS : h.INVESTMENTS,
1284
- kids: r ? p.KIDS : h.KIDS,
1285
- others: r ? p.OTHERS : h.OTHERS,
1286
- personalCare: r ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1287
- pets: r ? p.PETS : h.PETS,
1288
- shopping: r ? p.SHOPPING : h.SHOPPING,
1289
- taxes: r ? p.TAXES : h.TAXES,
1290
- transfer: r ? p.TRANSFER : h.TRANSFER,
1291
- travel: r ? p.TRAVEL : h.TRAVEL,
1292
- uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
1271
+ autoTransport: t ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1272
+ billsUtilities: t ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1273
+ businessServices: t ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1274
+ education: t ? p.EDUCATION : h.EDUCATION,
1275
+ entertainment: t ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1276
+ feesCharges: t ? p.FEES_CHARGES : h.FEES_CHARGES,
1277
+ financial: t ? p.FINANCIAL : h.FINANCIAL,
1278
+ foodDining: t ? p.FOOD_DINING : h.FOOD_DINING,
1279
+ giftsDonations: t ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1280
+ healthFitness: t ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1281
+ home: t ? p.HOME : h.HOME,
1282
+ income: t ? p.INCOME : h.INCOME,
1283
+ investments: t ? p.INVESTMENTS : h.INVESTMENTS,
1284
+ kids: t ? p.KIDS : h.KIDS,
1285
+ others: t ? p.OTHERS : h.OTHERS,
1286
+ personalCare: t ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1287
+ pets: t ? p.PETS : h.PETS,
1288
+ shopping: t ? p.SHOPPING : h.SHOPPING,
1289
+ taxes: t ? p.TAXES : h.TAXES,
1290
+ transfer: t ? p.TRANSFER : h.TRANSFER,
1291
+ travel: t ? p.TRAVEL : h.TRAVEL,
1292
+ uncategorized: t ? p.UNCATEGORIZED : h.UNCATEGORIZED
1293
1293
  },
1294
1294
  chart: {
1295
1295
  chart1: S.CHART1,
@@ -1478,19 +1478,19 @@ const go = (e, o) => {
1478
1478
  variant: "outlined"
1479
1479
  },
1480
1480
  styleOverrides: {
1481
- root: ({ theme: t, ownerState: n }) => {
1481
+ root: ({ theme: r, ownerState: n }) => {
1482
1482
  const s = n.severity || "info";
1483
- let d = t.palette.mode === y.LIGHT ? t.palette[s]?.[50] : t.palette[s]?.[800];
1483
+ let d = r.palette.mode === y.LIGHT ? r.palette[s]?.[50] : r.palette[s]?.[800];
1484
1484
  if (n.variant === "filled") {
1485
- const r = s === "warning";
1486
- d = t.palette[s]?.[r ? 400 : 600];
1485
+ const t = s === "warning";
1486
+ d = r.palette[s]?.[t ? 400 : 600];
1487
1487
  }
1488
1488
  return {
1489
1489
  backgroundColor: d,
1490
- borderRadius: t.shape.borderRadius,
1490
+ borderRadius: r.shape.borderRadius,
1491
1491
  "& .MuiAlert-message": {
1492
- fontSize: t.typography.subtitle1.fontSize,
1493
- lineHeight: t.typography.subtitle1.lineHeight,
1492
+ fontSize: r.typography.subtitle1.fontSize,
1493
+ lineHeight: r.typography.subtitle1.lineHeight,
1494
1494
  marginTop: "auto",
1495
1495
  marginBottom: "auto"
1496
1496
  },
@@ -1516,14 +1516,14 @@ const go = (e, o) => {
1516
1516
  disableElevation: !0
1517
1517
  },
1518
1518
  styleOverrides: {
1519
- root: ({ theme: t }) => ({
1519
+ root: ({ theme: r }) => ({
1520
1520
  fontWeight: 600,
1521
1521
  textTransform: "none",
1522
1522
  "&.Mui-disabled": {
1523
1523
  cursor: "not-allowed"
1524
1524
  },
1525
1525
  "&.Mui-focusVisible": {
1526
- outline: `2px solid ${t.palette.info.main}`,
1526
+ outline: `2px solid ${r.palette.info.main}`,
1527
1527
  outlineOffset: "2px"
1528
1528
  }
1529
1529
  }),
@@ -1589,22 +1589,22 @@ const go = (e, o) => {
1589
1589
  },
1590
1590
  MuiDataGrid: {
1591
1591
  styleOverrides: {
1592
- root: ({ theme: t }) => ({
1592
+ root: ({ theme: r }) => ({
1593
1593
  border: "none",
1594
1594
  borderRadius: 0,
1595
- fontSize: t.typography.body2.fontSize,
1595
+ fontSize: r.typography.body2.fontSize,
1596
1596
  "& .MuiDataGrid-cell": {
1597
1597
  display: "flex",
1598
1598
  alignItems: "center",
1599
1599
  borderTop: "1px solid",
1600
- borderColor: t.palette.background.highlight
1600
+ borderColor: r.palette.background.highlight
1601
1601
  },
1602
1602
  "& .MuiDataGrid-cell:focus": { outline: "unset" },
1603
1603
  "& .MuiDataGrid-iconSeparator": { display: "none" },
1604
1604
  "& .MuiDataGrid-columnHeaders": {
1605
- backgroundColor: t.palette.background.paper,
1605
+ backgroundColor: r.palette.background.paper,
1606
1606
  borderBottom: "2px solid",
1607
- borderColor: t.palette.divider
1607
+ borderColor: r.palette.divider
1608
1608
  },
1609
1609
  "& .MuiDataGrid-columnHeaderTitle": {
1610
1610
  fontWeight: 600
@@ -1622,42 +1622,42 @@ const go = (e, o) => {
1622
1622
  },
1623
1623
  MuiDateRangePickerDay: {
1624
1624
  styleOverrides: {
1625
- root: ({ theme: t }) => ({
1625
+ root: ({ theme: r }) => ({
1626
1626
  ":first-of-type": {
1627
- borderTopLeftRadius: t.shape.borderRadius,
1628
- borderBottomLeftRadius: t.shape.borderRadius,
1627
+ borderTopLeftRadius: r.shape.borderRadius,
1628
+ borderBottomLeftRadius: r.shape.borderRadius,
1629
1629
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1630
- borderTopLeftRadius: t.shape.borderRadius,
1631
- borderBottomLeftRadius: t.shape.borderRadius
1630
+ borderTopLeftRadius: r.shape.borderRadius,
1631
+ borderBottomLeftRadius: r.shape.borderRadius
1632
1632
  }
1633
1633
  },
1634
1634
  ":last-of-type": {
1635
- borderTopRightRadius: t.shape.borderRadius,
1636
- borderBottomRightRadius: t.shape.borderRadius,
1635
+ borderTopRightRadius: r.shape.borderRadius,
1636
+ borderBottomRightRadius: r.shape.borderRadius,
1637
1637
  "& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
1638
- borderTopRightRadius: t.shape.borderRadius,
1639
- borderBottomRightRadius: t.shape.borderRadius
1638
+ borderTopRightRadius: r.shape.borderRadius,
1639
+ borderBottomRightRadius: r.shape.borderRadius
1640
1640
  }
1641
1641
  },
1642
1642
  "& .Mui-selected": {
1643
- borderRadius: t.shape.borderRadius
1643
+ borderRadius: r.shape.borderRadius
1644
1644
  },
1645
1645
  "& .MuiPickersDay-dayOutsideMonth": {
1646
- color: t.palette.action.disabled
1646
+ color: r.palette.action.disabled
1647
1647
  }
1648
1648
  }),
1649
- day: ({ theme: t }) => ({
1650
- borderRadius: t.shape.borderRadius
1649
+ day: ({ theme: r }) => ({
1650
+ borderRadius: r.shape.borderRadius
1651
1651
  }),
1652
- rangeIntervalDayPreview: ({ theme: t }) => ({
1653
- borderRadius: t.shape.borderRadius
1652
+ rangeIntervalDayPreview: ({ theme: r }) => ({
1653
+ borderRadius: r.shape.borderRadius
1654
1654
  })
1655
1655
  }
1656
1656
  },
1657
1657
  MuiDayCalendar: {
1658
1658
  styleOverrides: {
1659
- weekDayLabel: ({ theme: t }) => ({
1660
- fontSize: t.typography.body2.fontSize,
1659
+ weekDayLabel: ({ theme: r }) => ({
1660
+ fontSize: r.typography.body2.fontSize,
1661
1661
  fontWeight: 700
1662
1662
  })
1663
1663
  }
@@ -1699,14 +1699,14 @@ const go = (e, o) => {
1699
1699
  },
1700
1700
  MuiFormHelperText: {
1701
1701
  styleOverrides: {
1702
- root: ({ theme: t }) => ({
1702
+ root: ({ theme: r }) => ({
1703
1703
  fontSize: 13,
1704
1704
  // Small
1705
1705
  marginLeft: 0,
1706
1706
  display: "flex",
1707
1707
  alignItems: "center",
1708
1708
  position: "relative",
1709
- color: t.palette.text.secondary,
1709
+ color: r.palette.text.secondary,
1710
1710
  "& .MuiSvgIcon-root": {
1711
1711
  height: "16px",
1712
1712
  width: "16px",
@@ -1737,19 +1737,19 @@ const go = (e, o) => {
1737
1737
  disableFocusRipple: !0
1738
1738
  },
1739
1739
  styleOverrides: {
1740
- root: ({ theme: t }) => ({
1741
- borderRadius: t.shape.borderRadius,
1740
+ root: ({ theme: r }) => ({
1741
+ borderRadius: r.shape.borderRadius,
1742
1742
  minHeight: 44,
1743
1743
  // touch target
1744
1744
  minWidth: 44,
1745
1745
  // touch target
1746
1746
  "&.Mui-focusVisible": {
1747
- outline: `2px solid ${t.palette.info.main}`,
1747
+ outline: `2px solid ${r.palette.info.main}`,
1748
1748
  outlineOffset: "2px"
1749
1749
  },
1750
1750
  "& .MuiTouchRipple-root": {
1751
1751
  "& .MuiTouchRipple-child": {
1752
- borderRadius: t.shape.borderRadius
1752
+ borderRadius: r.shape.borderRadius
1753
1753
  }
1754
1754
  }
1755
1755
  })
@@ -1776,7 +1776,7 @@ const go = (e, o) => {
1776
1776
  },
1777
1777
  MuiLink: {
1778
1778
  styleOverrides: {
1779
- root: ({ theme: t, color: n }) => ({
1779
+ root: ({ theme: r, color: n }) => ({
1780
1780
  cursor: "pointer",
1781
1781
  fontWeight: 600,
1782
1782
  textDecoration: "none",
@@ -1788,10 +1788,10 @@ const go = (e, o) => {
1788
1788
  outlineOffset: "2px"
1789
1789
  },
1790
1790
  "&:hover": {
1791
- backgroundColor: t.palette.action.hover
1791
+ backgroundColor: r.palette.action.hover
1792
1792
  },
1793
1793
  "&:active": {
1794
- backgroundColor: t.palette.mode === y.LIGHT ? t.palette[n].light : t.palette[n].dark
1794
+ backgroundColor: r.palette.mode === y.LIGHT ? r.palette[n].light : r.palette[n].dark
1795
1795
  }
1796
1796
  })
1797
1797
  }
@@ -1818,9 +1818,9 @@ const go = (e, o) => {
1818
1818
  disablePadding: !0
1819
1819
  },
1820
1820
  styleOverrides: {
1821
- root: ({ ownerState: t }) => ({
1821
+ root: ({ ownerState: r }) => ({
1822
1822
  minHeight: 64,
1823
- ...!t.disablePadding && {
1823
+ ...!r.disablePadding && {
1824
1824
  paddingTop: 12,
1825
1825
  paddingBottom: 12,
1826
1826
  paddingLeft: 24
@@ -1844,7 +1844,7 @@ const go = (e, o) => {
1844
1844
  },
1845
1845
  MuiListItemButton: {
1846
1846
  styleOverrides: {
1847
- root: ({ theme: t }) => ({
1847
+ root: ({ theme: r }) => ({
1848
1848
  minHeight: 64,
1849
1849
  paddingLeft: 24,
1850
1850
  paddingRight: 24,
@@ -1853,7 +1853,7 @@ const go = (e, o) => {
1853
1853
  "&.Mui-focusVisible": {
1854
1854
  backgroundColor: "transparent",
1855
1855
  borderRadius: 8,
1856
- outline: `2px solid ${t.palette.info.main}`,
1856
+ outline: `2px solid ${r.palette.info.main}`,
1857
1857
  outlineOffset: -2
1858
1858
  }
1859
1859
  })
@@ -1978,11 +1978,11 @@ const go = (e, o) => {
1978
1978
  },
1979
1979
  MuiPickersToolbar: {
1980
1980
  styleOverrides: {
1981
- content: ({ theme: t }) => ({
1981
+ content: ({ theme: r }) => ({
1982
1982
  marginTop: 4,
1983
1983
  "& .MuiTypography-root": {
1984
- fontSize: t.typography.h3.fontSize,
1985
- lineHeight: t.typography.h3.lineHeight
1984
+ fontSize: r.typography.h3.fontSize,
1985
+ lineHeight: r.typography.h3.lineHeight
1986
1986
  }
1987
1987
  })
1988
1988
  }
@@ -2008,7 +2008,7 @@ const go = (e, o) => {
2008
2008
  disableFocusRipple: !0
2009
2009
  },
2010
2010
  styleOverrides: {
2011
- root: ({ theme: t }) => ({
2011
+ root: ({ theme: r }) => ({
2012
2012
  width: 37,
2013
2013
  height: 20,
2014
2014
  padding: 0,
@@ -2019,7 +2019,7 @@ const go = (e, o) => {
2019
2019
  "&.Mui-checked": {
2020
2020
  transform: "translateX(16px)",
2021
2021
  "& + .MuiSwitch-track": {
2022
- backgroundColor: t.palette.success.main,
2022
+ backgroundColor: r.palette.success.main,
2023
2023
  opacity: 1,
2024
2024
  border: 0
2025
2025
  },
@@ -2028,27 +2028,27 @@ const go = (e, o) => {
2028
2028
  }
2029
2029
  },
2030
2030
  "&.Mui-disabled .MuiSwitch-thumb": {
2031
- color: t.palette.common.white
2031
+ color: r.palette.common.white
2032
2032
  },
2033
2033
  "&.Mui-disabled + .MuiSwitch-track": {
2034
- backgroundColor: t.palette.action.disabledBackground,
2034
+ backgroundColor: r.palette.action.disabledBackground,
2035
2035
  opacity: 1
2036
2036
  }
2037
2037
  },
2038
2038
  "& .MuiSwitch-input": {
2039
2039
  "&:focus-visible ~ .MuiSwitch-thumb": {
2040
- outline: `2px solid ${t.palette.info.main}`,
2040
+ outline: `2px solid ${r.palette.info.main}`,
2041
2041
  outlineOffset: 0
2042
2042
  }
2043
2043
  },
2044
2044
  "& .MuiSwitch-thumb": {
2045
2045
  boxSizing: "border-box",
2046
- backgroundColor: t.palette.background.paper,
2046
+ backgroundColor: r.palette.background.paper,
2047
2047
  width: 16,
2048
2048
  height: 16
2049
2049
  },
2050
2050
  "& .MuiSwitch-track": {
2051
- backgroundColor: t.palette.action.active,
2051
+ backgroundColor: r.palette.action.active,
2052
2052
  borderRadius: 20 / 2,
2053
2053
  opacity: 1
2054
2054
  }
@@ -2100,29 +2100,32 @@ const go = (e, o) => {
2100
2100
  disableFocusRipple: !0
2101
2101
  },
2102
2102
  styleOverrides: {
2103
- root: ({ theme: t }) => ({
2103
+ root: ({ theme: r }) => ({
2104
2104
  fontSize: 13,
2105
2105
  lineHeight: "16px",
2106
2106
  textTransform: "none",
2107
+ "&:focus-visible": {
2108
+ outline: `2px solid ${i.info.main}`,
2109
+ outlineOffset: "2px"
2110
+ },
2107
2111
  "&:hover": {
2108
2112
  backgroundColor: b(
2109
- t.palette.primary.main,
2113
+ r.palette.primary.main,
2110
2114
  i.mode === y.LIGHT ? 0.1 : 0.2
2111
2115
  ),
2112
- borderColor: t.palette.primary.main
2116
+ borderColor: r.palette.primary.main
2113
2117
  },
2114
2118
  "&.Mui-selected": {
2115
2119
  fontWeight: 600,
2116
- borderColor: t.palette.primary.main,
2120
+ borderColor: r.palette.primary.main,
2117
2121
  "&:hover": {
2118
- boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
2122
+ boxShadow: `inset 0px 0px 0px 2px ${r.palette.primary.main}`
2119
2123
  }
2120
2124
  },
2121
2125
  "& .MuiTouchRipple-root": {
2122
- "& .MuiTouchRipple-ripple": {
2123
- "& .MuiTouchRipple-child": {
2124
- borderRadius: t.shape.borderRadius
2125
- }
2126
+ "& .MuiTouchRipple-child": {
2127
+ backgroundColor: r.palette.primary.main,
2128
+ borderRadius: r.shape.borderRadius
2126
2129
  }
2127
2130
  }
2128
2131
  })
@@ -2208,8 +2211,8 @@ export {
2208
2211
  Be as CategoryIconList,
2209
2212
  _e as CategoryIconVariants,
2210
2213
  V0 as CheckmarkFilledIcon,
2211
- G0 as ChevronDownIcon,
2212
- $0 as ChevronLeftIcon,
2214
+ $0 as ChevronDownIcon,
2215
+ G0 as ChevronLeftIcon,
2213
2216
  U0 as ChevronRightIcon,
2214
2217
  W0 as CloseIcon,
2215
2218
  q0 as DateRangePicker,