@mxenabled/mxui 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,35 +1,35 @@
1
1
  import { jsx as a, jsxs as T } from "react/jsx-runtime";
2
- import x from "react";
3
- import I from "@mui/material/Stack";
4
- import { useTheme as H, createTheme as U } from "@mui/material/styles";
5
- import { Icon as se, ExpandMore as de, Close as ue } from "@mxenabled/mx-icons";
6
- import { endOfMonth as W } from "date-fns/endOfMonth";
7
- import { endOfYear as pe } from "date-fns/endOfYear";
8
- import { startOfToday as he } from "date-fns/startOfToday";
2
+ import C from "react";
3
+ import y from "@mui/material/Stack";
4
+ import { useTheme as H, createTheme as W } from "@mui/material/styles";
5
+ import { Icon as de, ExpandMore as ue, Close as pe } from "@mxenabled/mx-icons";
6
+ import { endOfMonth as K } from "date-fns/endOfMonth";
7
+ import { endOfYear as he } from "date-fns/endOfYear";
8
+ import { startOfToday as ge } from "date-fns/startOfToday";
9
9
  import { startOfMonth as Z } from "date-fns/startOfMonth";
10
- import { startOfYear as K } from "date-fns/startOfYear";
10
+ import { startOfYear as X } from "date-fns/startOfYear";
11
11
  import { subDays as Y } from "date-fns/subDays";
12
- import { subMonths as ge } from "date-fns/subMonths";
13
- import { subYears as me } from "date-fns/subYears";
14
- import fe from "@mui/material/useMediaQuery";
15
- import { LocalizationProvider as be, StaticDateRangePicker as Te } from "@mui/x-date-pickers-pro";
12
+ import { subMonths as me } from "date-fns/subMonths";
13
+ import { subYears as fe } from "date-fns/subYears";
14
+ import be from "@mui/material/useMediaQuery";
15
+ import { LocalizationProvider as Te, StaticDateRangePicker as xe } from "@mui/x-date-pickers-pro";
16
16
  import { AdapterDateFns as Ce } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
17
- import { MultiInputDateRangeField as xe } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
- import j from "@mui/material/Box";
19
- import Re from "@mui/material/ToggleButton";
17
+ import { MultiInputDateRangeField as Re } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
+ import N from "@mui/material/Box";
19
+ import Ae from "@mui/material/ToggleButton";
20
20
  import Me from "@mui/material/ToggleButtonGroup";
21
- import Ae from "@mui/material/MenuItem";
21
+ import Ee from "@mui/material/MenuItem";
22
22
  import Q from "@mui/material/TextField";
23
- import { usePickerLayout as Ee, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ie, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
23
+ import { usePickerLayout as Se, PickersLayoutRoot as Ie, PickersLayoutContentWrapper as ye, pickersLayoutClasses as _ } from "@mui/x-date-pickers/PickersLayout";
24
24
  import J from "@mui/material/Slide";
25
- import V from "@mui/material/Button";
25
+ import G from "@mui/material/Button";
26
26
  import q from "@mui/material/IconButton";
27
- import ye from "@mui/material/Typography";
27
+ import ee from "@mui/material/Typography";
28
28
  import ve from "@mui/material/Drawer";
29
29
  import He from "@mui/material/Snackbar";
30
30
  import Le from "@mui/material/Alert";
31
- import { light as ee, buildTheme as G, dark as Fe } from "@mxenabled/design-tokens";
32
- import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Oe, alpha as b, darken as D, lighten as L, getContrastRatio as De } from "@mui/material";
31
+ import { light as oe, buildTheme as $, dark as ke } from "@mxenabled/design-tokens";
32
+ import { FormControlLabel as Fe, Box as B, Typography as j, Radio as z, Checkbox as Oe, alpha as b, darken as D, lighten as L, 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";
35
35
  const f = ({
@@ -61,7 +61,7 @@ const R = ({
61
61
  weight: r = 300,
62
62
  ...n
63
63
  }) => /* @__PURE__ */ a(
64
- se,
64
+ de,
65
65
  {
66
66
  color: e,
67
67
  fill: o,
@@ -163,7 +163,7 @@ const R = ({
163
163
  d: "M13.79 2.21a.72.72 0 0 1 0 1.02L9.018 8l4.77 4.77a.72.72 0 1 1-1.018 1.02L8 9.018l-4.77 4.77a.72.72 0 1 1-1.02-1.018L6.982 8l-4.77-4.77A.72.72 0 0 1 3.23 2.21L8 6.982l4.77-4.77a.72.72 0 0 1 1.02 0Z",
164
164
  fill: e
165
165
  }
166
- ) })), Z0 = ({
166
+ ) })), K0 = ({
167
167
  color: e = "currentColor",
168
168
  ...o
169
169
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -172,7 +172,7 @@ const R = ({
172
172
  d: "M12.644.156l3.2 3.2a.533.533 0 010 .754L5.177 14.777a.534.534 0 01-.247.14L.663 15.984a.533.533 0 01-.647-.647l1.067-4.267a.534.534 0 01.14-.248L11.89.156a.533.533 0 01.754 0zM10.133 3.42l-8.051 8.052-.815 3.261 3.26-.815 8.052-8.052-2.446-2.446zm2.134-2.132l-1.38 1.378 2.446 2.446 1.38-1.379-2.446-2.445z",
173
173
  fill: e
174
174
  }
175
- ) })), K0 = ({
175
+ ) })), Z0 = ({
176
176
  color: e = "currentColor",
177
177
  ...o
178
178
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -181,7 +181,7 @@ const R = ({
181
181
  d: "M1.5 1.933l5.4 6.72c.066.081.1.18.1.28v5.134h2V8.933c0-.1.036-.199.1-.28l5.4-6.72h-13zM6 9.09L.1 1.747C-.145 1.439.09 1 .5 1h15c.413 0 .648.439.4.747L10 9.089v5.444c0 .258-.223.467-.5.467h-3c-.275 0-.5-.209-.5-.467V9.09z",
182
182
  fill: e
183
183
  }
184
- ) })), Y0 = ({
184
+ ) })), X0 = ({
185
185
  color: e = "currentColor",
186
186
  ...o
187
187
  }) => (console.warn('<HeartIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -190,7 +190,7 @@ const R = ({
190
190
  d: "M1.317 2.317a4.5 4.5 0 016.364 0c.117.117.223.238.32.363.095-.124.2-.245.316-.362a4.5 4.5 0 016.364 6.364l-.004.004-6.328 6.172a.5.5 0 01-.698 0L1.317 8.682a4.5 4.5 0 010-6.365zm5.657.708a3.5 3.5 0 00-4.952 4.947L8 13.802l5.977-5.83a3.5 3.5 0 00-4.952-4.947c-.235.235-.42.51-.586.815a.5.5 0 01-.878 0 3.46 3.46 0 00-.587-.815z",
191
191
  fill: e
192
192
  }
193
- ) })), X0 = ({
193
+ ) })), Y0 = ({
194
194
  color: e = "currentColor",
195
195
  ...o
196
196
  }) => /* @__PURE__ */ T(f, { ...o, children: [
@@ -284,7 +284,7 @@ const R = ({
284
284
  )
285
285
  ] });
286
286
  var h = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(h || {}), _e = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(_e || {});
287
- const oe = {
287
+ const re = {
288
288
  guid: h.Uncategorized,
289
289
  colorName: "uncategorized",
290
290
  icon: "category"
@@ -389,7 +389,7 @@ const oe = {
389
389
  colorName: "travel",
390
390
  icon: "airplane_ticket"
391
391
  },
392
- oe
392
+ re
393
393
  ], ze = 0.625, Ve = ({
394
394
  categoryGuid: e,
395
395
  icon_ratio: o = ze,
@@ -397,12 +397,12 @@ const oe = {
397
397
  sx: l = {},
398
398
  variant: c = "filled"
399
399
  }) => {
400
- const r = H(), n = x.useMemo(
401
- () => Be.find((m) => m.guid === e) ?? oe,
400
+ const r = H(), n = C.useMemo(
401
+ () => Be.find((m) => m.guid === e) ?? re,
402
402
  [e]
403
403
  ), s = r.palette.categories[n.colorName];
404
404
  return /* @__PURE__ */ a(
405
- I,
405
+ y,
406
406
  {
407
407
  alignItems: "center",
408
408
  bgcolor: () => {
@@ -437,8 +437,8 @@ 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: r?.map((n) => /* @__PURE__ */ a(
441
- Re,
440
+ return /* @__PURE__ */ a(N, { 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
+ Ae,
442
442
  {
443
443
  onClick: n.onClick,
444
444
  sx: {
@@ -482,13 +482,13 @@ const oe = {
482
482
  disabled: !i(s)
483
483
  };
484
484
  });
485
- return /* @__PURE__ */ a(I, { sx: { py: 16 }, children: /* @__PURE__ */ a(
485
+ return /* @__PURE__ */ a(y, { sx: { py: 16 }, children: /* @__PURE__ */ a(
486
486
  Q,
487
487
  {
488
488
  InputLabelProps: {
489
489
  shrink: !0
490
490
  },
491
- SelectProps: { IconComponent: de },
491
+ SelectProps: { IconComponent: ue },
492
492
  defaultValue: l,
493
493
  id: "select",
494
494
  label: c,
@@ -496,35 +496,35 @@ const oe = {
496
496
  sx: { width: "100%" },
497
497
  value: l,
498
498
  variant: "outlined",
499
- children: r?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
499
+ children: r?.map((n) => /* @__PURE__ */ a(Ee, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
500
500
  }
501
501
  ) });
502
502
  }, Ue = (e) => {
503
- const { toolbar: o, content: i, shortcuts: l } = Ee(e);
503
+ const { toolbar: o, content: i, shortcuts: l } = Se(e);
504
504
  return /* @__PURE__ */ T(
505
- Se,
505
+ Ie,
506
506
  {
507
507
  ownerState: e,
508
508
  sx: {
509
509
  gridTemplateColumns: "minmax(320px, 1fr)",
510
510
  overflow: "auto",
511
511
  p: 0,
512
- [`.${P.toolbar}`]: {
512
+ [`.${_.toolbar}`]: {
513
513
  gridColumn: 1,
514
514
  gridRow: 2
515
515
  },
516
- [`.${P.contentWrapper}`]: {
516
+ [`.${_.contentWrapper}`]: {
517
517
  alignItems: "center",
518
518
  gridColumn: 1,
519
519
  gridRow: 3
520
520
  }
521
521
  },
522
522
  children: [
523
- /* @__PURE__ */ T(I, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
523
+ /* @__PURE__ */ T(y, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
524
524
  l,
525
525
  o
526
526
  ] }),
527
- /* @__PURE__ */ a(Ie, { className: P.contentWrapper, children: i })
527
+ /* @__PURE__ */ a(ye, { className: _.contentWrapper, children: i })
528
528
  ]
529
529
  }
530
530
  );
@@ -535,16 +535,16 @@ const oe = {
535
535
  selectedShortcut: l = e.dateRangeThisMonth,
536
536
  sx: c = {}
537
537
  }) => {
538
- const r = H(), n = fe(r.breakpoints.down("sm")), s = x.useMemo(() => {
539
- const t = he(), m = ge(t, 1), C = me(t, 1);
538
+ const r = H(), n = be(r.breakpoints.down("sm")), s = C.useMemo(() => {
539
+ const t = ge(), m = me(t, 1), x = fe(t, 1);
540
540
  return [
541
541
  {
542
542
  label: e.dateRangeThisMonth,
543
- getValue: () => [Z(t), W(t)]
543
+ getValue: () => [Z(t), K(t)]
544
544
  },
545
545
  {
546
546
  label: e.dateRangeLastMonth,
547
- getValue: () => [Z(m), W(m)]
547
+ getValue: () => [Z(m), K(m)]
548
548
  },
549
549
  {
550
550
  label: e.dateRangeLast30Days,
@@ -556,11 +556,11 @@ const oe = {
556
556
  },
557
557
  {
558
558
  label: e.dateRangeYTD,
559
- getValue: () => [K(t), t]
559
+ getValue: () => [X(t), t]
560
560
  },
561
561
  {
562
562
  label: e.dateRangeLastYear,
563
- getValue: () => [K(C), pe(C)]
563
+ getValue: () => [X(x), he(x)]
564
564
  },
565
565
  {
566
566
  label: e.dateRangeCustom,
@@ -568,11 +568,11 @@ const oe = {
568
568
  }
569
569
  ];
570
570
  }, [e]), d = (t, m) => {
571
- const C = m.shortcut;
572
- i?.(t, C ? C.label : e.dateRangeCustom);
571
+ const x = m.shortcut;
572
+ i?.(t, x ? x.label : e.dateRangeCustom);
573
573
  };
574
- return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
575
- Te,
574
+ return /* @__PURE__ */ a(y, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(Te, { dateAdapter: Ce, children: /* @__PURE__ */ a(
575
+ xe,
576
576
  {
577
577
  calendars: 1,
578
578
  localeText: {
@@ -613,7 +613,7 @@ const oe = {
613
613
  rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
614
614
  ...n && {
615
615
  toolbar: (t) => /* @__PURE__ */ a(
616
- xe,
616
+ Re,
617
617
  {
618
618
  dateSeparator: "",
619
619
  ...t,
@@ -631,7 +631,7 @@ const oe = {
631
631
  value: o
632
632
  }
633
633
  ) }) });
634
- }, eo = x.forwardRef(function(o, i) {
634
+ }, eo = C.forwardRef(function(o, i) {
635
635
  return /* @__PURE__ */ a(J, { direction: "up", ref: i, ...o });
636
636
  }), We = ({
637
637
  hasSecondaryAction: e = !0,
@@ -643,7 +643,7 @@ const oe = {
643
643
  secondaryColor: n = "primary",
644
644
  secondaryText: s = "Cancel"
645
645
  }) => /* @__PURE__ */ T(
646
- I,
646
+ y,
647
647
  {
648
648
  direction: "row",
649
649
  gap: 16,
@@ -651,7 +651,7 @@ const oe = {
651
651
  sx: { bgcolor: "background.paper", p: 24 },
652
652
  children: [
653
653
  e && /* @__PURE__ */ a(
654
- V,
654
+ G,
655
655
  {
656
656
  color: n,
657
657
  onClick: l,
@@ -660,7 +660,7 @@ const oe = {
660
660
  }
661
661
  ),
662
662
  i && /* @__PURE__ */ a(
663
- V,
663
+ G,
664
664
  {
665
665
  color: c,
666
666
  disabled: o,
@@ -671,7 +671,7 @@ const oe = {
671
671
  )
672
672
  ]
673
673
  }
674
- ), k = ({
674
+ ), F = ({
675
675
  bold: e,
676
676
  className: o = "",
677
677
  children: i,
@@ -714,7 +714,7 @@ const oe = {
714
714
  break;
715
715
  }
716
716
  return /* @__PURE__ */ a(
717
- ye,
717
+ ee,
718
718
  {
719
719
  className: `mx-kmui-text ${o}`,
720
720
  color: l,
@@ -736,8 +736,8 @@ const oe = {
736
736
  children: i
737
737
  }
738
738
  );
739
- }, Ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), oo = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), ro = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), to = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
740
- k,
739
+ }, Ke = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(F, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), oo = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(F, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), ro = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(F, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), to = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
740
+ F,
741
741
  {
742
742
  className: `mx-kmui-text p ${e}`,
743
743
  component: "p",
@@ -747,7 +747,7 @@ const oe = {
747
747
  children: o
748
748
  }
749
749
  ), io = ({ copy: e, onClose: o }) => /* @__PURE__ */ T(
750
- I,
750
+ y,
751
751
  {
752
752
  sx: {
753
753
  alignItems: "center",
@@ -757,8 +757,8 @@ const oe = {
757
757
  py: 14
758
758
  },
759
759
  children: [
760
- /* @__PURE__ */ a(Ze, { variant: "h3", children: e.title }),
761
- /* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(ue, {}) })
760
+ /* @__PURE__ */ a(Ke, { variant: "h3", children: e.title }),
761
+ /* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(pe, {}) })
762
762
  ]
763
763
  }
764
764
  ), ao = ({
@@ -796,19 +796,19 @@ const oe = {
796
796
  )
797
797
  ]
798
798
  }
799
- ), re = 32, $ = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${$}/serenity/default_institution_logo.png`, no = ({
799
+ ), te = 32, U = "https://content.moneydesktop.com/storage/MD_Assets", Ze = `${U}/serenity/default_institution_logo.png`, no = ({
800
800
  alt: e,
801
801
  institutionGuid: o,
802
802
  logoUrl: i,
803
- size: l = re,
803
+ size: l = te,
804
804
  ...c
805
805
  }) => /* @__PURE__ */ a(
806
806
  "img",
807
807
  {
808
808
  alt: e,
809
809
  height: l,
810
- onError: (r) => r.target.src = Ke,
811
- src: i || `${$}/Ipad%20Logos/100x100/${o}_100x100.png`,
810
+ onError: (r) => r.target.src = Ze,
811
+ src: i || `${U}/Ipad%20Logos/100x100/${o}_100x100.png`,
812
812
  style: {
813
813
  borderRadius: 4
814
814
  },
@@ -819,11 +819,11 @@ const oe = {
819
819
  alt: e = "",
820
820
  categoryGuid: o,
821
821
  merchantGuid: i,
822
- size: l = re,
822
+ size: l = te,
823
823
  ...c
824
824
  }) => {
825
- const [r, n] = x.useState(!1), s = H();
826
- return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
825
+ const [r, n] = C.useState(!1), s = H();
826
+ return /* @__PURE__ */ T(N, { display: "inline-block", position: "relative", ...c, children: [
827
827
  i && !r && /* @__PURE__ */ a(
828
828
  "img",
829
829
  {
@@ -831,7 +831,7 @@ const oe = {
831
831
  "aria-hidden": !e,
832
832
  height: l,
833
833
  onError: () => n(!0),
834
- src: `${$}/merchant_logos/${i}.png`,
834
+ src: `${U}/merchant_logos/${i}.png`,
835
835
  style: {
836
836
  backgroundColor: s.palette.common.white,
837
837
  borderRadius: 4,
@@ -861,7 +861,7 @@ const oe = {
861
861
  ...c
862
862
  }
863
863
  );
864
- function Ye(e) {
864
+ function Xe(e) {
865
865
  return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
866
866
  }
867
867
  const so = ({
@@ -877,11 +877,11 @@ const so = ({
877
877
  actionText: t = "Undo",
878
878
  onActionClick: m
879
879
  }) => {
880
- const C = H(), O = d && /* @__PURE__ */ a(q, { "aria-label": i, color: "inherit", onClick: o, size: "small", children: /* @__PURE__ */ a(R, { fill: !0, name: "close" }) }), g = `${r}.main`;
880
+ const x = H(), O = d && /* @__PURE__ */ a(q, { "aria-label": i, color: "inherit", onClick: o, size: "small", children: /* @__PURE__ */ a(R, { fill: !0, name: "close" }) }), g = `${r}.main`;
881
881
  return /* @__PURE__ */ a(
882
882
  He,
883
883
  {
884
- TransitionComponent: Ye,
884
+ TransitionComponent: Xe,
885
885
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
886
886
  autoHideDuration: c,
887
887
  onClose: o,
@@ -913,7 +913,7 @@ const so = ({
913
913
  },
914
914
  variant: "filled",
915
915
  children: /* @__PURE__ */ T(
916
- I,
916
+ y,
917
917
  {
918
918
  sx: {
919
919
  flexDirection: "row",
@@ -926,10 +926,10 @@ const so = ({
926
926
  },
927
927
  children: [
928
928
  /* @__PURE__ */ a(
929
- k,
929
+ F,
930
930
  {
931
931
  sx: {
932
- lineHeight: C.typography.body1.lineHeight,
932
+ lineHeight: x.typography.body1.lineHeight,
933
933
  flex: 1,
934
934
  minWidth: "70%",
935
935
  px: 5
@@ -939,13 +939,13 @@ const so = ({
939
939
  }
940
940
  ),
941
941
  s && /* @__PURE__ */ a(
942
- V,
942
+ G,
943
943
  {
944
944
  color: "inherit",
945
945
  onClick: m || o,
946
946
  size: "small",
947
947
  sx: {
948
- color: C.palette.success.contrastText,
948
+ color: x.palette.success.contrastText,
949
949
  whiteSpace: "nowrap",
950
950
  flexShrink: 0,
951
951
  minWidth: "auto",
@@ -961,33 +961,33 @@ const so = ({
961
961
  )
962
962
  }
963
963
  );
964
- }, F = {
964
+ }, k = {
965
965
  REACT: "react",
966
966
  REACT_NATIVE: "react_native",
967
967
  NATIVE: "native"
968
- }, N = {
968
+ }, w = {
969
969
  LIGHT: "light",
970
970
  DARK: "dark"
971
- }, te = x.createContext(ee), ie = x.createContext(
972
- G(N.LIGHT, F.REACT_NATIVE)
971
+ }, ie = C.createContext(oe), ae = C.createContext(
972
+ $(w.LIGHT, k.REACT_NATIVE)
973
973
  ), uo = ({
974
974
  children: e,
975
- target: o = F.REACT,
976
- theme: i = N.LIGHT,
975
+ target: o = k.REACT,
976
+ theme: i = w.LIGHT,
977
977
  tokenOverrides: l
978
978
  }) => {
979
- const [c, r] = x.useState(i === N.LIGHT ? ee : Fe), n = x.useMemo(() => ({
979
+ const [c, r] = C.useState(i === w.LIGHT ? oe : ke), n = C.useMemo(() => ({
980
980
  ...l
981
981
  }), [l]);
982
- return x.useEffect(() => {
983
- const s = G(i, o, { ...n });
982
+ return C.useEffect(() => {
983
+ const s = $(i, o, { ...n });
984
984
  r(s);
985
- }, [i, o, n]), o === F.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 }));
986
- }, po = (e = F.REACT, o = {}) => {
987
- const i = e === F.REACT ? te : ie, l = x.useContext(i);
988
- return l || G(N.LIGHT, e, { ...o });
985
+ }, [i, o, n]), o === k.REACT ? /* @__PURE__ */ a(ie.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ae.Provider, { value: c, children: e }));
986
+ }, po = (e = k.REACT, o = {}) => {
987
+ const i = e === k.REACT ? ie : ae, l = C.useContext(i);
988
+ return l || $(w.LIGHT, e, { ...o });
989
989
  }, ho = ({
990
- component: e = B,
990
+ component: e = z,
991
991
  variant: o = "outlined",
992
992
  selected: i,
993
993
  onChange: l,
@@ -998,16 +998,16 @@ const so = ({
998
998
  disabled: d = !1,
999
999
  error: t = !1,
1000
1000
  icon: m = !1,
1001
- sx: C = {},
1001
+ sx: x = {},
1002
1002
  ...O
1003
1003
  }) => {
1004
- const g = H(), ae = () => g.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : g.shadows[1], ne = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.3);
1004
+ const g = H(), ne = () => g.palette.background.paper, P = () => t ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : g.shadows[1], le = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.1), ce = () => d || t ? P() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.primary.main, 0.5)}` : P(), se = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.3);
1005
1005
  return /* @__PURE__ */ a(
1006
- ke,
1006
+ Fe,
1007
1007
  {
1008
1008
  checked: i,
1009
- control: e === B ? /* @__PURE__ */ a(
1010
- B,
1009
+ control: e === z ? /* @__PURE__ */ a(
1010
+ z,
1011
1011
  {
1012
1012
  name: n,
1013
1013
  sx: {
@@ -1038,11 +1038,11 @@ const so = ({
1038
1038
  }
1039
1039
  ),
1040
1040
  disabled: d,
1041
- label: /* @__PURE__ */ T(_, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
1042
- m && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
1043
- /* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1044
- c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
1045
- /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
1041
+ label: /* @__PURE__ */ T(B, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
1042
+ m && /* @__PURE__ */ a(B, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
1043
+ /* @__PURE__ */ T(B, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1044
+ c && /* @__PURE__ */ a(j, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
1045
+ /* @__PURE__ */ a(j, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
1046
1046
  ] })
1047
1047
  ] }),
1048
1048
  labelPlacement: "start",
@@ -1056,32 +1056,79 @@ const so = ({
1056
1056
  mb: 16,
1057
1057
  cursor: d ? "not-allowed" : "pointer",
1058
1058
  opacity: d ? 0.6 : 1,
1059
- backgroundColor: ae(),
1059
+ backgroundColor: ne(),
1060
1060
  border: "none",
1061
- boxShadow: w(),
1061
+ boxShadow: P(),
1062
1062
  boxSizing: "border-box",
1063
1063
  transition: g.transitions.create(["background-color", "box-shadow"], {
1064
1064
  duration: g.transitions.duration.short
1065
1065
  }),
1066
1066
  "&:hover": {
1067
- backgroundColor: ne(),
1068
- boxShadow: le()
1067
+ backgroundColor: le(),
1068
+ boxShadow: ce()
1069
1069
  },
1070
1070
  "&:active": {
1071
- backgroundColor: ce()
1071
+ backgroundColor: se()
1072
1072
  },
1073
1073
  "&:focus-visible": {
1074
1074
  outline: `2px solid ${g.palette.info.main}`,
1075
1075
  outlineOffset: "2px"
1076
1076
  },
1077
- ...C
1077
+ ...x
1078
1078
  },
1079
1079
  value: s
1080
1080
  }
1081
1081
  );
1082
- }, v = {
1082
+ }, I = {
1083
1083
  LIGHT: "light"
1084
- }, M = (e) => ({
1084
+ }, go = ({ color: e = "neutral", icon: o, label: i, size: l = "small", sx: c, ...r }) => /* @__PURE__ */ T(
1085
+ N,
1086
+ {
1087
+ component: "span",
1088
+ sx: [
1089
+ (n) => {
1090
+ const s = n.palette.mode === I.LIGHT, d = e === "default" ? "neutral" : e;
1091
+ return {
1092
+ alignItems: "center",
1093
+ borderRadius: 999,
1094
+ // pill shape
1095
+ display: "inline-flex",
1096
+ gap: "4px",
1097
+ height: l === "xsmall" ? "16px" : "24px",
1098
+ paddingX: l === "xsmall" ? "6px" : "8px",
1099
+ backgroundColor: n.palette[d][s ? 100 : 800],
1100
+ color: s ? n.palette[d].dark : n.palette[d][100]
1101
+ };
1102
+ },
1103
+ ...Array.isArray(c) ? c : [c]
1104
+ ],
1105
+ ...r,
1106
+ children: [
1107
+ o && /* @__PURE__ */ a(
1108
+ N,
1109
+ {
1110
+ "aria-hidden": !0,
1111
+ component: "span",
1112
+ sx: {
1113
+ alignItems: "center",
1114
+ display: "inline-flex",
1115
+ "& .MuiSvgIcon-root": { fontSize: "16px" }
1116
+ },
1117
+ children: o
1118
+ }
1119
+ ),
1120
+ /* @__PURE__ */ a(
1121
+ ee,
1122
+ {
1123
+ component: "span",
1124
+ sx: { fontWeight: "bold", textTransform: "uppercase" },
1125
+ variant: "tiny",
1126
+ children: i
1127
+ }
1128
+ )
1129
+ ]
1130
+ }
1131
+ ), A = (e) => ({
1085
1132
  50: L(e, 0.95),
1086
1133
  100: L(e, 0.85),
1087
1134
  200: L(e, 0.7),
@@ -1092,7 +1139,7 @@ const so = ({
1092
1139
  700: D(e, 0.5),
1093
1140
  800: D(e, 0.65),
1094
1141
  900: D(e, 0.75)
1095
- }), A = "#FFFFFF", z = "#000000", Xe = "#F9F9F9", je = "#000000", Qe = "#FFFFFF", Je = "#1A1A1A", E = {
1142
+ }), M = "#FFFFFF", V = "#000000", Ye = "#F9F9F9", je = "#000000", Qe = "#FFFFFF", Je = "#1A1A1A", E = {
1096
1143
  PRIMARY: "#2C64EF",
1097
1144
  SECONDARY: "#808080",
1098
1145
  INFO: "#2C64EF",
@@ -1108,7 +1155,7 @@ const so = ({
1108
1155
  CHART5: "#60A9FF",
1109
1156
  CHART6: "#C8BAEE",
1110
1157
  CHART7: "#585E67"
1111
- }, y = {
1158
+ }, v = {
1112
1159
  CHART_MONO1: "#C3EAFF",
1113
1160
  CHART_MONO2: "#8ED7FF",
1114
1161
  CHART_MONO3: "#60A9FF",
@@ -1162,7 +1209,7 @@ const so = ({
1162
1209
  TRAVEL: "#76ACF7",
1163
1210
  UNCATEGORIZED: "#BCC6D4"
1164
1211
  }, qe = (e, o) => {
1165
- 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 === v.LIGHT;
1212
+ const i = A(o?.primary || E.PRIMARY), l = A(o?.secondary || E.SECONDARY), c = A(o?.error || E.ERROR), r = A(o?.warning || E.WARNING), n = A(o?.info || E.INFO), s = A(o?.success || E.SUCCESS), d = A(o?.grey || E.GREY), t = e === I.LIGHT;
1166
1213
  return {
1167
1214
  mode: e,
1168
1215
  // DEPRECATED: Use grey instead
@@ -1174,8 +1221,8 @@ const so = ({
1174
1221
  darker: d[500]
1175
1222
  },
1176
1223
  common: {
1177
- white: A,
1178
- black: z
1224
+ white: M,
1225
+ black: V
1179
1226
  },
1180
1227
  primary: {
1181
1228
  ...i,
@@ -1200,12 +1247,12 @@ const so = ({
1200
1247
  main: t ? d[500] : d[400],
1201
1248
  dark: t ? d[700] : d[200],
1202
1249
  darker: t ? d[800] : d[100],
1203
- contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1250
+ contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
1204
1251
  },
1205
1252
  text: {
1206
- primary: t ? d[900] : A,
1207
- secondary: t ? d[600] : b(A, 0.7),
1208
- disabled: t ? d[500] : b(A, 0.38)
1253
+ primary: t ? d[900] : M,
1254
+ secondary: t ? d[600] : b(M, 0.7),
1255
+ disabled: t ? d[500] : b(M, 0.38)
1209
1256
  },
1210
1257
  error: {
1211
1258
  ...c,
@@ -1241,18 +1288,18 @@ const so = ({
1241
1288
  },
1242
1289
  grey: d,
1243
1290
  action: {
1244
- active: t ? b(z, 0.56) : b(A, 0.56),
1291
+ active: t ? b(V, 0.56) : b(M, 0.56),
1245
1292
  hoverOpacity: t ? 0.1 : 0.2,
1246
1293
  selectedOpacity: t ? 0.16 : 0.25,
1247
1294
  focusOpacity: 0.3
1248
1295
  },
1249
1296
  background: {
1250
- default: t ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
1297
+ default: t ? o?.background?.default?.light || Ye : o?.background?.default?.dark || je,
1251
1298
  paper: t ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
1252
1299
  highlight: t ? d[200] : d[600],
1253
1300
  highlightPrimary: t ? i[100] : i[500]
1254
1301
  },
1255
- divider: t ? b(z, 0.12) : b(A, 0.24),
1302
+ divider: t ? b(V, 0.12) : b(M, 0.24),
1256
1303
  categories: {
1257
1304
  autoTransport: t ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1258
1305
  billsUtilities: t ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
@@ -1287,12 +1334,12 @@ const so = ({
1287
1334
  chart7: S.CHART7
1288
1335
  },
1289
1336
  chartMono: {
1290
- chartMono1: y.CHART_MONO1,
1291
- chartMono2: y.CHART_MONO2,
1292
- chartMono3: y.CHART_MONO3,
1293
- chartMono4: y.CHART_MONO4,
1294
- chartMono5: y.CHART_MONO5,
1295
- chartMono6: y.CHART_MONO6
1337
+ chartMono1: v.CHART_MONO1,
1338
+ chartMono2: v.CHART_MONO2,
1339
+ chartMono3: v.CHART_MONO3,
1340
+ chartMono4: v.CHART_MONO4,
1341
+ chartMono5: v.CHART_MONO5,
1342
+ chartMono6: v.CHART_MONO6
1296
1343
  }
1297
1344
  };
1298
1345
  }, e0 = "Inter, Helvetica, Arial, sans-serif", o0 = (e) => {
@@ -1432,9 +1479,9 @@ const so = ({
1432
1479
  we.setLicenseKey(
1433
1480
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1434
1481
  );
1435
- const go = (e, o) => {
1436
- const i = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions), c = [...U().shadows];
1437
- return c[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", c[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", c[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", U({
1482
+ const mo = (e, o) => {
1483
+ const i = qe(e, o?.paletteOptions), l = o0(o?.typographyOptions), c = [...W().shadows];
1484
+ return c[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", c[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", c[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", W({
1438
1485
  breakpoints: {
1439
1486
  values: {
1440
1487
  xs: 444,
@@ -1466,7 +1513,7 @@ const go = (e, o) => {
1466
1513
  styleOverrides: {
1467
1514
  root: ({ theme: r, ownerState: n }) => {
1468
1515
  const s = n.severity || "info";
1469
- let d = r.palette.mode === v.LIGHT ? r.palette[s]?.[50] : r.palette[s]?.[800];
1516
+ let d = r.palette.mode === I.LIGHT ? r.palette[s]?.[50] : r.palette[s]?.[800];
1470
1517
  if (n.variant === "filled") {
1471
1518
  const t = s === "warning";
1472
1519
  d = r.palette[s]?.[t ? 400 : 600];
@@ -1785,7 +1832,7 @@ const go = (e, o) => {
1785
1832
  backgroundColor: r.palette.action.hover
1786
1833
  },
1787
1834
  "&:active": {
1788
- backgroundColor: r.palette.mode === v.LIGHT ? r.palette[n].light : r.palette[n].dark
1835
+ backgroundColor: r.palette.mode === I.LIGHT ? r.palette[n].light : r.palette[n].dark
1789
1836
  }
1790
1837
  })
1791
1838
  }
@@ -1825,14 +1872,8 @@ const go = (e, o) => {
1825
1872
  MuiListItemAvatar: {
1826
1873
  styleOverrides: {
1827
1874
  root: {
1828
- height: 32,
1829
1875
  marginRight: 12,
1830
- minWidth: 32,
1831
- width: 32,
1832
- "& .MuiAvatar-root": {
1833
- height: 32,
1834
- width: 32
1835
- }
1876
+ minWidth: "unset"
1836
1877
  }
1837
1878
  }
1838
1879
  },
@@ -2105,7 +2146,7 @@ const go = (e, o) => {
2105
2146
  "&:hover": {
2106
2147
  backgroundColor: b(
2107
2148
  r.palette.primary.main,
2108
- i.mode === v.LIGHT ? 0.1 : 0.2
2149
+ i.mode === I.LIGHT ? 0.1 : 0.2
2109
2150
  ),
2110
2151
  borderColor: r.palette.primary.main
2111
2152
  },
@@ -2129,7 +2170,7 @@ const go = (e, o) => {
2129
2170
  props: { color: "error" },
2130
2171
  style: {
2131
2172
  "&:hover": {
2132
- backgroundColor: b(i.error.main, i.mode === v.LIGHT ? 0.1 : 0.2),
2173
+ backgroundColor: b(i.error.main, i.mode === I.LIGHT ? 0.1 : 0.2),
2133
2174
  borderColor: i.error.main
2134
2175
  },
2135
2176
  "&.Mui-selected": {
@@ -2153,7 +2194,7 @@ const go = (e, o) => {
2153
2194
  "&:hover": {
2154
2195
  backgroundColor: b(
2155
2196
  i.secondary.main,
2156
- i.mode === v.LIGHT ? 0.1 : 0.2
2197
+ i.mode === I.LIGHT ? 0.1 : 0.2
2157
2198
  ),
2158
2199
  borderColor: i.secondary.main
2159
2200
  },
@@ -2213,31 +2254,32 @@ export {
2213
2254
  We as DialogFooter,
2214
2255
  io as DialogHeader,
2215
2256
  ao as Drawer,
2216
- Z0 as EditIcon,
2217
- K0 as FilterIcon,
2257
+ K0 as EditIcon,
2258
+ Z0 as FilterIcon,
2218
2259
  We as Footer,
2219
- Ze as H1,
2260
+ Ke as H1,
2220
2261
  oo as H2,
2221
2262
  ro as H3,
2222
- Y0 as HeartIcon,
2263
+ X0 as HeartIcon,
2223
2264
  e0 as INTER,
2224
2265
  R as Icon,
2225
2266
  Pe as IconWeight,
2226
2267
  no as InstitutionLogo,
2227
2268
  j0 as MXLogoCopyrightIcon,
2228
2269
  Q0 as MXLogoFilledIcon,
2229
- X0 as MXLogoIcon,
2270
+ Y0 as MXLogoIcon,
2230
2271
  J0 as MXLogoOutlineIcon,
2231
2272
  lo as MerchantLogo,
2232
2273
  to as P,
2233
2274
  ho as SelectionBox,
2234
- F as TARGETS,
2235
- N as THEMES,
2236
- k as Text,
2275
+ k as TARGETS,
2276
+ w as THEMES,
2277
+ go as Tag,
2278
+ F as Text,
2237
2279
  co as TextField,
2238
2280
  so as Toast,
2239
2281
  uo as TokenProvider,
2240
- go as createMXTheme,
2282
+ mo as createMXTheme,
2241
2283
  po as useTokens
2242
2284
  };
2243
2285
  //# sourceMappingURL=index.es.js.map