@mxenabled/mxui 2.5.2 → 2.5.3-alpha.al1

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.
@@ -6,6 +6,7 @@ export type CopyObject = {
6
6
  type DialogHeaderProps = {
7
7
  copy: CopyObject;
8
8
  onClose: () => void;
9
+ truncate?: boolean;
9
10
  };
10
11
  declare const DialogHeader: React.FC<DialogHeaderProps>;
11
12
  export default DialogHeader;
@@ -4,6 +4,7 @@ type TextFieldProps = {
4
4
  disabled?: boolean;
5
5
  label?: React.ReactNode;
6
6
  shrink?: boolean;
7
+ truncate?: boolean;
7
8
  variant?: 'filled' | 'outlined' | 'standard';
8
9
  } & MuiTextFieldProps;
9
10
  declare const TextField: React.FC<TextFieldProps>;
package/dist/index.es.js CHANGED
@@ -1,37 +1,37 @@
1
1
  import { jsx as a, jsxs as b } from "react/jsx-runtime";
2
- import N from "react";
2
+ import k from "react";
3
3
  import A from "@mui/material/Stack";
4
- import { useTheme as I, createTheme as $ } from "@mui/material/styles";
4
+ import { useTheme as I, createTheme as U } from "@mui/material/styles";
5
5
  import { Icon as le, ExpandMore as se, Close as ce } from "@mxenabled/mx-icons";
6
- import { endOfMonth as U } from "date-fns/endOfMonth";
6
+ import { endOfMonth as G } 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
9
  import { startOfMonth as V } from "date-fns/startOfMonth";
10
- import { startOfYear as G } from "date-fns/startOfYear";
11
- import { subDays as W } from "date-fns/subDays";
10
+ import { startOfYear as W } from "date-fns/startOfYear";
11
+ import { subDays as Y } from "date-fns/subDays";
12
12
  import { subMonths as pe } from "date-fns/subMonths";
13
13
  import { subYears as he } from "date-fns/subYears";
14
14
  import ge from "@mui/material/useMediaQuery";
15
15
  import { usePickerContext as X, useIsValidValue as Z, LocalizationProvider as me, StaticDateRangePicker as fe } from "@mui/x-date-pickers-pro";
16
16
  import { AdapterDateFns as be } from "@mui/x-date-pickers-pro/AdapterDateFns";
17
- import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
17
+ import { MultiInputDateRangeField as xe } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
18
  import Q from "@mui/material/Box";
19
- import xe from "@mui/material/ToggleButton";
19
+ import Te from "@mui/material/ToggleButton";
20
20
  import Re from "@mui/material/ToggleButtonGroup";
21
21
  import Me from "@mui/material/MenuItem";
22
22
  import J from "@mui/material/TextField";
23
23
  import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as D } from "@mui/x-date-pickers/PickersLayout";
24
24
  import q from "@mui/material/Slide";
25
- import B from "@mui/material/Button";
25
+ import z from "@mui/material/Button";
26
26
  import ee from "@mui/material/IconButton";
27
27
  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 Le, alpha as f, darken as v, lighten as E, getContrastRatio as ve } from "@mui/material";
32
- import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
33
- import { LicenseInfo as ke } from "@mui/x-license";
34
- const k = ({
31
+ import { FormControlLabel as Fe, Box as w, Typography as K, Radio as P, Checkbox as Le, alpha as f, darken as v, lighten as E, getContrastRatio as ve } from "@mui/material";
32
+ import { circularProgressClasses as ke } from "@mui/material/CircularProgress";
33
+ import { LicenseInfo as Ne } from "@mui/x-license";
34
+ const N = ({
35
35
  children: e,
36
36
  height: i,
37
37
  size: o = 16,
@@ -49,10 +49,10 @@ const k = ({
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: n, ...r }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: s, sx: n, ...r }), Fr = ({
52
+ ), T = ({ 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 }), Fr = ({
53
53
  color: e = "currentColor",
54
54
  ...i
55
- }) => /* @__PURE__ */ b(k, { ...i, children: [
55
+ }) => /* @__PURE__ */ b(N, { ...i, children: [
56
56
  /* @__PURE__ */ a(
57
57
  "path",
58
58
  {
@@ -70,7 +70,7 @@ const k = ({
70
70
  ] }), Lr = ({
71
71
  color: e = "currentColor",
72
72
  ...i
73
- }) => /* @__PURE__ */ b(k, { ...i, children: [
73
+ }) => /* @__PURE__ */ b(N, { ...i, children: [
74
74
  /* @__PURE__ */ a(
75
75
  "path",
76
76
  {
@@ -106,7 +106,7 @@ const k = ({
106
106
  ] }), vr = ({
107
107
  color: e = "currentColor",
108
108
  ...i
109
- }) => /* @__PURE__ */ a(k, { ...i, children: /* @__PURE__ */ a(
109
+ }) => /* @__PURE__ */ a(N, { ...i, children: /* @__PURE__ */ a(
110
110
  "path",
111
111
  {
112
112
  clipRule: "evenodd",
@@ -114,10 +114,10 @@ const k = ({
114
114
  fill: e,
115
115
  fillRule: "evenodd"
116
116
  }
117
- ) }), Nr = ({
117
+ ) }), kr = ({
118
118
  color: e = "currentColor",
119
119
  ...i
120
- }) => /* @__PURE__ */ b(k, { ...i, children: [
120
+ }) => /* @__PURE__ */ b(N, { ...i, children: [
121
121
  /* @__PURE__ */ a(
122
122
  "path",
123
123
  {
@@ -256,7 +256,7 @@ const re = {
256
256
  sx: s = {},
257
257
  variant: n = "filled"
258
258
  }) => {
259
- const r = I(), l = N.useMemo(
259
+ const r = I(), l = k.useMemo(
260
260
  () => De.find((m) => m.guid === e) ?? re,
261
261
  [e]
262
262
  ), c = r.palette.categories[l.colorName];
@@ -277,10 +277,10 @@ const re = {
277
277
  justifyContent: "center",
278
278
  sx: [...Array.isArray(s) ? s : [s]],
279
279
  width: o,
280
- children: /* @__PURE__ */ a(x, { name: l.icon, size: o * i })
280
+ children: /* @__PURE__ */ a(T, { name: l.icon, size: o * i })
281
281
  }
282
282
  );
283
- }, _e = ({ items: e, selected: i }) => {
283
+ }, Be = ({ items: e, selected: i }) => {
284
284
  const o = I(), { setValue: s } = X(), n = Z(), r = e?.map((l) => {
285
285
  const c = l.getValue({ isValid: n });
286
286
  return {
@@ -292,7 +292,7 @@ const re = {
292
292
  };
293
293
  });
294
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
- xe,
295
+ Te,
296
296
  {
297
297
  onClick: l.onClick,
298
298
  sx: {
@@ -319,7 +319,7 @@ const re = {
319
319
  },
320
320
  l.label
321
321
  )) }) });
322
- }, Be = ({
322
+ }, _e = ({
323
323
  items: e,
324
324
  selected: i,
325
325
  selectLabel: o
@@ -384,39 +384,39 @@ const re = {
384
384
  ]
385
385
  }
386
386
  );
387
- }, kr = ({
387
+ }, Nr = ({
388
388
  copy: e,
389
389
  dateRange: i,
390
390
  onRangeChanged: o,
391
391
  selectedShortcut: s = e.dateRangeThisMonth,
392
392
  sx: n = {}
393
393
  }) => {
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);
394
+ const r = I(), l = ge(r.breakpoints.down("sm")), c = k.useMemo(() => {
395
+ const t = ue(), m = pe(t, 1), x = he(t, 1);
396
396
  return [
397
397
  {
398
398
  label: e.dateRangeThisMonth,
399
- getValue: () => [V(t), U(t)]
399
+ getValue: () => [V(t), G(t)]
400
400
  },
401
401
  {
402
402
  label: e.dateRangeLastMonth,
403
- getValue: () => [V(m), U(m)]
403
+ getValue: () => [V(m), G(m)]
404
404
  },
405
405
  {
406
406
  label: e.dateRangeLast30Days,
407
- getValue: () => [W(t, 30), t]
407
+ getValue: () => [Y(t, 30), t]
408
408
  },
409
409
  {
410
410
  label: e.dateRangeLast90Days,
411
- getValue: () => [W(t, 90), t]
411
+ getValue: () => [Y(t, 90), t]
412
412
  },
413
413
  {
414
414
  label: e.dateRangeYTD,
415
- getValue: () => [G(t), t]
415
+ getValue: () => [W(t), t]
416
416
  },
417
417
  {
418
418
  label: e.dateRangeLastYear,
419
- getValue: () => [G(T), de(T)]
419
+ getValue: () => [W(x), de(x)]
420
420
  },
421
421
  {
422
422
  label: e.dateRangeCustom,
@@ -424,8 +424,8 @@ const re = {
424
424
  }
425
425
  ];
426
426
  }, [e]), d = (t, m) => {
427
- const T = m.shortcut;
428
- o?.(t, T ? T.label : e.dateRangeCustom);
427
+ const x = m.shortcut;
428
+ o?.(t, x ? x.label : e.dateRangeCustom);
429
429
  };
430
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,
@@ -457,19 +457,19 @@ const re = {
457
457
  },
458
458
  slots: {
459
459
  ...l && { layout: ze },
460
- leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
460
+ leftArrowIcon: () => /* @__PURE__ */ a(T, { name: "chevron_left", size: 28 }),
461
461
  shortcuts: (t) => l ? /* @__PURE__ */ a(
462
- Be,
462
+ _e,
463
463
  {
464
464
  selectLabel: e.dateRangeSelectARange,
465
465
  selected: s,
466
466
  ...t
467
467
  }
468
- ) : /* @__PURE__ */ a(_e, { selected: s, ...t }),
469
- rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
468
+ ) : /* @__PURE__ */ a(Be, { selected: s, ...t }),
469
+ rightArrowIcon: () => /* @__PURE__ */ a(T, { name: "chevron_right", size: 28 }),
470
470
  ...l && {
471
471
  toolbar: (t) => /* @__PURE__ */ a(
472
- Te,
472
+ xe,
473
473
  {
474
474
  dateSeparator: "",
475
475
  format: "MM/dd/yyyy",
@@ -488,7 +488,7 @@ const re = {
488
488
  value: i
489
489
  }
490
490
  ) }) });
491
- }, Hr = N.forwardRef(function(i, o) {
491
+ }, Hr = k.forwardRef(function(i, o) {
492
492
  return /* @__PURE__ */ a(q, { direction: "up", ref: o, ...i });
493
493
  }), $e = ({
494
494
  hasSecondaryAction: e = !0,
@@ -508,7 +508,7 @@ const re = {
508
508
  sx: { bgcolor: "background.paper", p: 24 },
509
509
  children: [
510
510
  e && /* @__PURE__ */ a(
511
- B,
511
+ z,
512
512
  {
513
513
  color: l,
514
514
  onClick: s,
@@ -517,7 +517,7 @@ const re = {
517
517
  }
518
518
  ),
519
519
  o && /* @__PURE__ */ a(
520
- B,
520
+ z,
521
521
  {
522
522
  color: n,
523
523
  disabled: i,
@@ -559,7 +559,7 @@ const re = {
559
559
  ...c,
560
560
  children: o
561
561
  }
562
- ), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), _r = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
562
+ ), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), Br = ({ copy: e, onClose: i, truncate: o = !1 }) => /* @__PURE__ */ b(
563
563
  A,
564
564
  {
565
565
  sx: {
@@ -570,11 +570,11 @@ const re = {
570
570
  py: 14
571
571
  },
572
572
  children: [
573
- /* @__PURE__ */ a(Ue, { variant: "h3", children: e.title }),
573
+ /* @__PURE__ */ a(Ue, { truncate: o, variant: "h3", children: e.title }),
574
574
  /* @__PURE__ */ a(ee, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ce, {}) })
575
575
  ]
576
576
  }
577
- ), Br = ({
577
+ ), _r = ({
578
578
  className: e,
579
579
  disableSave: i,
580
580
  id: o,
@@ -609,7 +609,7 @@ const re = {
609
609
  )
610
610
  ]
611
611
  }
612
- ), te = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zr = ({
612
+ ), te = 32, $ = "https://content.moneydesktop.com/storage/MD_Assets", j = `${$}/serenity/default_institution_logo.png`, zr = ({
613
613
  alt: e,
614
614
  institutionGuid: i,
615
615
  logoUrl: o,
@@ -622,9 +622,9 @@ const re = {
622
622
  height: s,
623
623
  onError: (r) => {
624
624
  const l = r.target;
625
- l.src !== K && (l.src = K);
625
+ l.src !== j && (l.src = j);
626
626
  },
627
- src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
627
+ src: o || `${$}/Ipad%20Logos/100x100/${i}_100x100.png`,
628
628
  style: {
629
629
  borderRadius: 4
630
630
  },
@@ -638,7 +638,7 @@ const re = {
638
638
  size: s = te,
639
639
  ...n
640
640
  }) => {
641
- const [r, l] = N.useState(!1), c = I();
641
+ const [r, l] = k.useState(!1), c = I();
642
642
  return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...n, children: [
643
643
  o && !r && /* @__PURE__ */ a(
644
644
  "img",
@@ -647,7 +647,7 @@ const re = {
647
647
  "aria-hidden": !e,
648
648
  height: s,
649
649
  onError: () => l(!0),
650
- src: `${z}/merchant_logos/${o}.png`,
650
+ src: `${$}/merchant_logos/${o}.png`,
651
651
  style: {
652
652
  backgroundColor: c.palette.common.white,
653
653
  borderRadius: 4,
@@ -663,24 +663,33 @@ const re = {
663
663
  disabled: e = !1,
664
664
  label: i = "",
665
665
  shrink: o = !0,
666
- variant: s = "outlined",
667
- ...n
666
+ truncate: s = !1,
667
+ variant: n = "outlined",
668
+ ...r
668
669
  }) => /* @__PURE__ */ a(
669
670
  J,
670
671
  {
671
672
  InputLabelProps: {
672
- shrink: o
673
+ shrink: o,
674
+ ...s && {
675
+ sx: {
676
+ maxWidth: "100%",
677
+ overflow: "hidden",
678
+ textOverflow: "ellipsis",
679
+ whiteSpace: "nowrap"
680
+ }
681
+ }
673
682
  },
674
683
  disabled: e,
675
684
  label: i,
676
- variant: s,
677
- ...n
685
+ variant: n,
686
+ ...r
678
687
  }
679
688
  );
680
- function Ve(e) {
689
+ function Ge(e) {
681
690
  return /* @__PURE__ */ a(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
682
691
  }
683
- const Vr = ({
692
+ const Gr = ({
684
693
  open: e = !0,
685
694
  handleClose: i,
686
695
  closeAriaLabel: o,
@@ -693,7 +702,7 @@ const Vr = ({
693
702
  actionText: t = "Undo",
694
703
  onActionClick: m
695
704
  }) => {
696
- const T = I(), L = d && /* @__PURE__ */ a(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(x, { fill: !0, name: "close" }) }), g = `${r}.main`;
705
+ const x = I(), L = d && /* @__PURE__ */ a(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(T, { fill: !0, name: "close" }) }), g = `${r}.main`;
697
706
  return /* @__PURE__ */ a(
698
707
  Ee,
699
708
  {
@@ -701,7 +710,7 @@ const Vr = ({
701
710
  autoHideDuration: n,
702
711
  onClose: i,
703
712
  open: e,
704
- slots: { transition: Ve },
713
+ slots: { transition: Ge },
705
714
  sx: {
706
715
  ...l,
707
716
  maxWidth: 568,
@@ -745,7 +754,7 @@ const Vr = ({
745
754
  F,
746
755
  {
747
756
  sx: {
748
- lineHeight: T.typography.body1.lineHeight,
757
+ lineHeight: x.typography.body1.lineHeight,
749
758
  flex: 1,
750
759
  minWidth: "70%",
751
760
  px: 5
@@ -754,13 +763,13 @@ const Vr = ({
754
763
  }
755
764
  ),
756
765
  c && /* @__PURE__ */ a(
757
- B,
766
+ z,
758
767
  {
759
768
  color: "inherit",
760
769
  onClick: m || i,
761
770
  size: "small",
762
771
  sx: {
763
- color: T.palette.success.contrastText,
772
+ color: x.palette.success.contrastText,
764
773
  whiteSpace: "nowrap",
765
774
  flexShrink: 0,
766
775
  minWidth: "auto",
@@ -776,7 +785,7 @@ const Vr = ({
776
785
  )
777
786
  }
778
787
  );
779
- }, Gr = ({
788
+ }, Vr = ({
780
789
  component: e = P,
781
790
  variant: i = "outlined",
782
791
  selected: o,
@@ -788,7 +797,7 @@ const Vr = ({
788
797
  disabled: d = !1,
789
798
  error: t = !1,
790
799
  icon: m = !1,
791
- sx: T = {},
800
+ sx: x = {},
792
801
  ...L
793
802
  }) => {
794
803
  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);
@@ -831,8 +840,8 @@ const Vr = ({
831
840
  label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
832
841
  m && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
833
842
  /* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
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 })
843
+ n && /* @__PURE__ */ a(K, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: n }),
844
+ /* @__PURE__ */ a(K, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
836
845
  ] })
837
846
  ] }),
838
847
  labelPlacement: "start",
@@ -864,7 +873,7 @@ const Vr = ({
864
873
  outline: `2px solid ${g.palette.info.main}`,
865
874
  outlineOffset: "2px"
866
875
  },
867
- ...T
876
+ ...x
868
877
  },
869
878
  value: c
870
879
  }
@@ -882,7 +891,7 @@ const Vr = ({
882
891
  700: v(e, 0.5),
883
892
  800: v(e, 0.65),
884
893
  900: v(e, 0.75)
885
- }), M = "#FFFFFF", _ = "#000000", Ge = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
894
+ }), M = "#FFFFFF", B = "#000000", Ve = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
886
895
  PRIMARY: "#2C64EF",
887
896
  SECONDARY: "#808080",
888
897
  INFO: "#2C64EF",
@@ -957,7 +966,7 @@ const Vr = ({
957
966
  mode: e,
958
967
  common: {
959
968
  white: M,
960
- black: _
969
+ black: B
961
970
  },
962
971
  primary: {
963
972
  ...o,
@@ -1023,18 +1032,18 @@ const Vr = ({
1023
1032
  },
1024
1033
  grey: d,
1025
1034
  action: {
1026
- active: t ? f(_, 0.56) : f(M, 0.56),
1035
+ active: t ? f(B, 0.56) : f(M, 0.56),
1027
1036
  hoverOpacity: t ? 0.1 : 0.2,
1028
1037
  selectedOpacity: t ? 0.16 : 0.25,
1029
1038
  focusOpacity: 0.3
1030
1039
  },
1031
1040
  background: {
1032
- default: t ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
1041
+ default: t ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
1033
1042
  paper: t ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1034
1043
  highlight: t ? d[200] : d[600],
1035
1044
  highlightPrimary: t ? o[100] : o[500]
1036
1045
  },
1037
- divider: t ? f(_, 0.12) : f(M, 0.24),
1046
+ divider: t ? f(B, 0.12) : f(M, 0.24),
1038
1047
  categories: {
1039
1048
  autoTransport: t ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1040
1049
  billsUtilities: t ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
@@ -1077,8 +1086,8 @@ const Vr = ({
1077
1086
  chartMono6: y.CHART_MONO6
1078
1087
  }
1079
1088
  };
1080
- }, j = "Inter, Helvetica, Arial, sans-serif", Xe = (e) => {
1081
- const i = e?.fontFamily ? `${e?.fontFamily}, ${j}` : j;
1089
+ }, _ = "Inter, Helvetica, Arial, sans-serif", Xe = (e) => {
1090
+ const i = e?.fontFamily ? `${e?.fontFamily}, ${_}` : _, o = e?.headerFontFamily ? `${e.headerFontFamily}, ${_}` : i;
1082
1091
  return {
1083
1092
  fontFamily: i,
1084
1093
  fontSize: 15,
@@ -1102,19 +1111,19 @@ const Vr = ({
1102
1111
  lineHeight: "16px"
1103
1112
  },
1104
1113
  h1: {
1105
- fontFamily: i,
1114
+ fontFamily: o,
1106
1115
  fontWeight: 700,
1107
1116
  fontSize: 31,
1108
1117
  lineHeight: "40px"
1109
1118
  },
1110
1119
  h2: {
1111
- fontFamily: i,
1120
+ fontFamily: o,
1112
1121
  fontWeight: 700,
1113
1122
  fontSize: 23,
1114
1123
  lineHeight: "32px"
1115
1124
  },
1116
1125
  h3: {
1117
- fontFamily: i,
1126
+ fontFamily: o,
1118
1127
  fontWeight: 700,
1119
1128
  fontSize: 18,
1120
1129
  lineHeight: "24px"
@@ -1137,12 +1146,12 @@ const Vr = ({
1137
1146
  ...e
1138
1147
  };
1139
1148
  };
1140
- ke.setLicenseKey(
1149
+ Ne.setLicenseKey(
1141
1150
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1142
1151
  );
1143
1152
  const Wr = (e, i) => {
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)", $({
1153
+ const o = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions), n = [...U().shadows];
1154
+ 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)", U({
1146
1155
  breakpoints: i?.breakpoints || {
1147
1156
  values: {
1148
1157
  // TODO: Remove these default values in v3. Users should provide their own breakpoints if they want to.
@@ -1153,7 +1162,9 @@ const Wr = (e, i) => {
1153
1162
  xl: 1536
1154
1163
  }
1155
1164
  },
1156
- cssVariables: !0,
1165
+ cssVariables: {
1166
+ colorSchemeSelector: "class"
1167
+ },
1157
1168
  palette: o,
1158
1169
  shape: {
1159
1170
  borderRadius: i?.shapeOptions?.borderRadius || 4
@@ -1166,10 +1177,10 @@ const Wr = (e, i) => {
1166
1177
  MuiAlert: {
1167
1178
  defaultProps: {
1168
1179
  iconMapping: {
1169
- success: /* @__PURE__ */ a(x, { fill: !0, name: "check_circle", size: 24 }),
1170
- error: /* @__PURE__ */ a(x, { fill: !0, name: "error", size: 24 }),
1171
- warning: /* @__PURE__ */ a(x, { fill: !0, name: "warning", size: 24 }),
1172
- info: /* @__PURE__ */ a(x, { fill: !0, name: "info", size: 24 })
1180
+ success: /* @__PURE__ */ a(T, { fill: !0, name: "check_circle", size: 24 }),
1181
+ error: /* @__PURE__ */ a(T, { fill: !0, name: "error", size: 24 }),
1182
+ warning: /* @__PURE__ */ a(T, { fill: !0, name: "warning", size: 24 }),
1183
+ info: /* @__PURE__ */ a(T, { fill: !0, name: "info", size: 24 })
1173
1184
  },
1174
1185
  variant: "outlined"
1175
1186
  },
@@ -1272,7 +1283,7 @@ const Wr = (e, i) => {
1272
1283
  MuiCircularProgress: {
1273
1284
  styleOverrides: {
1274
1285
  root: {
1275
- [`& .${Ne.circle}`]: {
1286
+ [`& .${ke.circle}`]: {
1276
1287
  strokeLinecap: "round"
1277
1288
  }
1278
1289
  }
@@ -1654,6 +1665,13 @@ const Wr = (e, i) => {
1654
1665
  styleOverrides: {
1655
1666
  rounded: {
1656
1667
  borderRadius: 8
1668
+ },
1669
+ ...i?.paletteOptions?.useGlass && {
1670
+ root: {
1671
+ backgroundColor: "rgba(255, 255, 255, 0.1)",
1672
+ backdropFilter: "blur(10px)",
1673
+ WebkitBackdropFilter: "blur(10px)"
1674
+ }
1657
1675
  }
1658
1676
  }
1659
1677
  },
@@ -1918,33 +1936,33 @@ const Wr = (e, i) => {
1918
1936
  });
1919
1937
  };
1920
1938
  export {
1921
- k as BaseIcon,
1939
+ N as BaseIcon,
1922
1940
  Hr as BottomSheetTransition,
1923
1941
  h as CategoryGuids,
1924
1942
  Pe as CategoryIcon,
1925
1943
  De as CategoryIconList,
1926
1944
  He as CategoryIconVariants,
1927
- kr as DateRangePicker,
1945
+ Nr as DateRangePicker,
1928
1946
  $e as DialogFooter,
1929
- _r as DialogHeader,
1930
- Br as Drawer,
1947
+ Br as DialogHeader,
1948
+ _r as Drawer,
1931
1949
  $e as Footer,
1932
1950
  Ue as H1,
1933
1951
  Dr as H2,
1934
1952
  wr as H3,
1935
- j as INTER,
1936
- x as Icon,
1953
+ _ as INTER,
1954
+ T as Icon,
1937
1955
  zr as InstitutionLogo,
1938
1956
  Lr as MXLogoCopyrightIcon,
1939
1957
  vr as MXLogoFilledIcon,
1940
1958
  Fr as MXLogoIcon,
1941
- Nr as MXLogoOutlineIcon,
1959
+ kr as MXLogoOutlineIcon,
1942
1960
  $r as MerchantLogo,
1943
1961
  Pr as P,
1944
- Gr as SelectionBox,
1962
+ Vr as SelectionBox,
1945
1963
  F as Text,
1946
1964
  Ur as TextField,
1947
- Vr as Toast,
1965
+ Gr as Toast,
1948
1966
  Wr as createMXTheme
1949
1967
  };
1950
1968
  //# sourceMappingURL=index.es.js.map