@mxenabled/mxui 1.0.3 → 1.0.5

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,7 +1,7 @@
1
- import { jsx as a, jsxs as y } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as M } from "react/jsx-runtime";
2
2
  import f from "react";
3
3
  import L from "@mui/material/Stack";
4
- import { useTheme as T, createTheme as B } from "@mui/material/styles";
4
+ import { useTheme as C, createTheme as B } from "@mui/material/styles";
5
5
  import X from "@mui/material/Icon";
6
6
  import { endOfMonth as F } from "date-fns/endOfMonth";
7
7
  import { endOfYear as Y } from "date-fns/endOfYear";
@@ -18,9 +18,9 @@ import E from "@mui/material/Box";
18
18
  import ae from "@mui/material/ToggleButton";
19
19
  import ie from "@mui/material/ToggleButtonGroup";
20
20
  import O from "@mui/material/Slide";
21
- import k from "@mui/material/Button";
22
- import _ from "@mui/material/Toolbar";
23
- import V from "@mui/material/IconButton";
21
+ import D from "@mui/material/Button";
22
+ import V from "@mui/material/Toolbar";
23
+ import _ from "@mui/material/IconButton";
24
24
  import ne from "@mui/material/Drawer";
25
25
  import le from "@mui/material/Typography";
26
26
  import ce from "@mui/material/TextField";
@@ -51,7 +51,7 @@ const g = ({
51
51
  }
52
52
  );
53
53
  var fe = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(fe || {});
54
- const M = ({
54
+ const y = ({
55
55
  color: e,
56
56
  fill: o = !1,
57
57
  name: n,
@@ -60,7 +60,7 @@ const M = ({
60
60
  weight: l = 300,
61
61
  ...c
62
62
  }) => {
63
- const [d, b] = f.useState(!1);
63
+ const [s, b] = f.useState(!1);
64
64
  return f.useEffect(() => {
65
65
  document.fonts.ready.then(() => {
66
66
  b(!0);
@@ -68,7 +68,7 @@ const M = ({
68
68
  }, []), /* @__PURE__ */ a(
69
69
  X,
70
70
  {
71
- color: d ? e && e : void 0,
71
+ color: s ? e && e : void 0,
72
72
  sx: [
73
73
  {
74
74
  fontSize: r,
@@ -81,7 +81,7 @@ const M = ({
81
81
  },
82
82
  ...Array.isArray(i) ? i : [i],
83
83
  {
84
- ...!d && { color: "transparent" }
84
+ ...!s && { color: "transparent" }
85
85
  }
86
86
  ],
87
87
  ...c,
@@ -180,7 +180,7 @@ const M = ({
180
180
  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",
181
181
  fill: e
182
182
  }
183
- ) })), M0 = ({
183
+ ) })), y0 = ({
184
184
  color: e = "currentColor",
185
185
  ...o
186
186
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
@@ -189,7 +189,7 @@ const M = ({
189
189
  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",
190
190
  fill: e
191
191
  }
192
- ) })), y0 = ({
192
+ ) })), M0 = ({
193
193
  color: e = "currentColor",
194
194
  ...o
195
195
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
@@ -207,10 +207,10 @@ const M = ({
207
207
  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",
208
208
  fill: e
209
209
  }
210
- ) })), T0 = ({
210
+ ) })), v0 = ({
211
211
  color: e = "currentColor",
212
212
  ...o
213
- }) => /* @__PURE__ */ y(g, { ...o, children: [
213
+ }) => /* @__PURE__ */ M(g, { ...o, children: [
214
214
  /* @__PURE__ */ a(
215
215
  "path",
216
216
  {
@@ -225,10 +225,10 @@ const M = ({
225
225
  fill: e
226
226
  }
227
227
  )
228
- ] }), v0 = ({
228
+ ] }), T0 = ({
229
229
  color: e = "currentColor",
230
230
  ...o
231
- }) => /* @__PURE__ */ y(g, { ...o, children: [
231
+ }) => /* @__PURE__ */ M(g, { ...o, children: [
232
232
  /* @__PURE__ */ a(
233
233
  "path",
234
234
  {
@@ -275,7 +275,7 @@ const M = ({
275
275
  ) }), A0 = ({
276
276
  color: e = "currentColor",
277
277
  ...o
278
- }) => /* @__PURE__ */ y(g, { ...o, children: [
278
+ }) => /* @__PURE__ */ M(g, { ...o, children: [
279
279
  /* @__PURE__ */ a(
280
280
  "path",
281
281
  {
@@ -300,12 +300,12 @@ const M = ({
300
300
  }
301
301
  )
302
302
  ] });
303
- var u = /* @__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))(u || {}), Me = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(Me || {});
303
+ var u = /* @__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))(u || {}), ye = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(ye || {});
304
304
  const $ = {
305
305
  guid: u.Uncategorized,
306
306
  colorName: "uncategorized",
307
307
  icon: "category"
308
- }, ye = [
308
+ }, Me = [
309
309
  {
310
310
  guid: u.AutoTransport,
311
311
  colorName: "autoTransport",
@@ -407,51 +407,51 @@ const $ = {
407
407
  icon: "airplane_ticket"
408
408
  },
409
409
  $
410
- ], Ce = 0.625, Te = ({
410
+ ], Ce = 0.625, ve = ({
411
411
  categoryGuid: e,
412
412
  icon_ratio: o = Ce,
413
413
  size: n = 32,
414
414
  sx: r = {},
415
415
  variant: i = "filled"
416
416
  }) => {
417
- const l = T(), c = f.useMemo(
418
- () => ye.find((s) => s.guid === e) ?? $,
417
+ const l = C(), c = f.useMemo(
418
+ () => Me.find((d) => d.guid === e) ?? $,
419
419
  [e]
420
- ), d = l.palette.categories[c.colorName];
420
+ ), s = l.palette.categories[c.colorName];
421
421
  return /* @__PURE__ */ a(
422
422
  L,
423
423
  {
424
424
  alignItems: "center",
425
425
  bgcolor: () => {
426
- let s = d;
427
- return i === "twotone" && (s = `${s}20`), i === "transparent" || i === "basic" ? "transparent" : s;
426
+ let d = s;
427
+ return i === "twotone" && (d = `${d}20`), i === "transparent" || i === "basic" ? "transparent" : d;
428
428
  },
429
429
  borderRadius: 1,
430
430
  color: () => {
431
- const s = i === "filled" ? l.palette.common.white : d;
432
- return i === "basic" ? l.palette.text.primary : s;
431
+ const d = i === "filled" ? l.palette.common.white : s;
432
+ return i === "basic" ? l.palette.text.primary : d;
433
433
  },
434
434
  height: n,
435
435
  justifyContent: "center",
436
436
  sx: [...Array.isArray(r) ? r : [r]],
437
437
  width: n,
438
- children: /* @__PURE__ */ a(M, { name: c.icon, size: n * o })
438
+ children: /* @__PURE__ */ a(y, { name: c.icon, size: n * o })
439
439
  }
440
440
  );
441
- }, ve = ({
441
+ }, Te = ({
442
442
  items: e,
443
443
  onChange: o,
444
444
  isValid: n,
445
445
  selected: r
446
446
  }) => {
447
- const i = T(), l = e?.map((c) => {
448
- const d = c.getValue({ isValid: n });
447
+ const i = C(), l = e?.map((c) => {
448
+ const s = c.getValue({ isValid: n });
449
449
  return {
450
450
  label: c.label,
451
451
  onClick: () => {
452
- o(d, "accept", c);
452
+ o(s, "accept", c);
453
453
  },
454
- disabled: !n(d)
454
+ disabled: !n(s)
455
455
  };
456
456
  });
457
457
  return /* @__PURE__ */ a(E, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(ie, { color: "primary", orientation: "vertical", value: r, children: l?.map((c) => /* @__PURE__ */ a(
@@ -482,15 +482,15 @@ const $ = {
482
482
  },
483
483
  c.label
484
484
  )) }) });
485
- }, D0 = ({
485
+ }, k0 = ({
486
486
  copy: e,
487
487
  dateRange: o,
488
488
  onRangeChanged: n,
489
489
  selectedShortcut: r = e.dateRangeThisMonth,
490
490
  sx: i = {}
491
491
  }) => {
492
- const l = T(), c = ee(l.breakpoints.down("sm")), d = f.useMemo(() => {
493
- const p = Q(), s = J(p, 1), m = q(p, 1);
492
+ const l = C(), c = ee(l.breakpoints.down("sm")), s = f.useMemo(() => {
493
+ const p = Q(), d = J(p, 1), m = q(p, 1);
494
494
  return [
495
495
  {
496
496
  label: e.dateRangeThisMonth,
@@ -498,7 +498,7 @@ const $ = {
498
498
  },
499
499
  {
500
500
  label: e.dateRangeLastMonth,
501
- getValue: () => [w(s), F(s)]
501
+ getValue: () => [w(d), F(d)]
502
502
  },
503
503
  {
504
504
  label: e.dateRangeLast30Days,
@@ -521,8 +521,8 @@ const $ = {
521
521
  getValue: () => [p, p]
522
522
  }
523
523
  ];
524
- }, [e]), b = (p, s) => {
525
- const m = s.shortcut;
524
+ }, [e]), b = (p, d) => {
525
+ const m = d.shortcut;
526
526
  n?.(p, m ? m.label : e.dateRangeCustom);
527
527
  };
528
528
  return /* @__PURE__ */ a(L, { gap: 16, m: 8, children: /* @__PURE__ */ a(re, { dateAdapter: oe, children: /* @__PURE__ */ a(
@@ -539,22 +539,22 @@ const $ = {
539
539
  slotProps: {
540
540
  actionBar: { actions: [] },
541
541
  shortcuts: {
542
- items: c ? [] : d
542
+ items: c ? [] : s
543
543
  },
544
544
  toolbar: {
545
545
  toolbarFormat: "MMM d, yyyy"
546
546
  }
547
547
  },
548
548
  slots: {
549
- leftArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_left", size: 28 }),
550
- shortcuts: (p) => /* @__PURE__ */ a(ve, { selected: r, ...p }),
551
- rightArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_right", size: 28 })
549
+ leftArrowIcon: () => /* @__PURE__ */ a(y, { name: "chevron_left", size: 28 }),
550
+ shortcuts: (p) => /* @__PURE__ */ a(Te, { selected: r, ...p }),
551
+ rightArrowIcon: () => /* @__PURE__ */ a(y, { name: "chevron_right", size: 28 })
552
552
  },
553
553
  sx: { ...i },
554
554
  value: o
555
555
  }
556
556
  ) }) });
557
- }, k0 = f.forwardRef(function(o, n) {
557
+ }, D0 = f.forwardRef(function(o, n) {
558
558
  return /* @__PURE__ */ a(O, { direction: "up", ref: n, ...o });
559
559
  }), xe = ({
560
560
  hasSecondaryAction: e = !0,
@@ -564,10 +564,10 @@ const $ = {
564
564
  primaryColor: i = "primary",
565
565
  primaryText: l = "Save",
566
566
  secondaryColor: c = "primary",
567
- secondaryText: d = "Cancel",
567
+ secondaryText: s = "Cancel",
568
568
  ...b
569
- }) => /* @__PURE__ */ y(
570
- _,
569
+ }) => /* @__PURE__ */ M(
570
+ V,
571
571
  {
572
572
  sx: {
573
573
  display: "flex",
@@ -580,16 +580,16 @@ const $ = {
580
580
  ...b,
581
581
  children: [
582
582
  e && /* @__PURE__ */ a(
583
- k,
583
+ D,
584
584
  {
585
585
  color: c,
586
586
  onClick: r,
587
587
  variant: n ? "outlined" : "contained",
588
- children: d
588
+ children: s
589
589
  }
590
590
  ),
591
591
  n && /* @__PURE__ */ a(
592
- k,
592
+ D,
593
593
  {
594
594
  color: i,
595
595
  disabled: o,
@@ -601,9 +601,9 @@ const $ = {
601
601
  ]
602
602
  }
603
603
  ), L0 = ({ copy: e, onClose: o, ...n }) => {
604
- const r = T();
605
- return /* @__PURE__ */ y(
606
- _,
604
+ const r = C();
605
+ return /* @__PURE__ */ M(
606
+ V,
607
607
  {
608
608
  sx: {
609
609
  "&.MuiToolbar-gutters": {
@@ -612,8 +612,8 @@ const $ = {
612
612
  },
613
613
  ...n,
614
614
  children: [
615
- /* @__PURE__ */ a(E, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ a(De, { sx: { fontWeight: 600 }, variant: "H3", children: e.title }) }),
616
- /* @__PURE__ */ a(V, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(be, { color: r.palette.primary.main }) })
615
+ /* @__PURE__ */ a(E, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ a(ke, { sx: { fontWeight: 600 }, variant: "H3", children: e.title }) }),
616
+ /* @__PURE__ */ a(_, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(be, { color: r.palette.primary.main }) })
617
617
  ]
618
618
  }
619
619
  );
@@ -625,10 +625,10 @@ const $ = {
625
625
  onClose: i,
626
626
  onSave: l,
627
627
  primaryText: c,
628
- secondaryText: d,
628
+ secondaryText: s,
629
629
  children: b,
630
630
  ...p
631
- }) => /* @__PURE__ */ y(
631
+ }) => /* @__PURE__ */ M(
632
632
  ne,
633
633
  {
634
634
  anchor: "right",
@@ -647,16 +647,16 @@ const $ = {
647
647
  onPrimaryAction: l,
648
648
  onSecondaryAction: i,
649
649
  primaryText: c,
650
- secondaryText: d
650
+ secondaryText: s
651
651
  }
652
652
  )
653
653
  ]
654
654
  }
655
- ), G = 32, I = "https://content.moneydesktop.com/storage/MD_Assets", Ae = `${I}/serenity/default_institution_logo.png`, H0 = ({
655
+ ), U = 32, I = "https://content.moneydesktop.com/storage/MD_Assets", Ae = `${I}/serenity/default_institution_logo.png`, H0 = ({
656
656
  alt: e,
657
657
  institutionGuid: o,
658
658
  logoUrl: n,
659
- size: r = G,
659
+ size: r = U,
660
660
  ...i
661
661
  }) => /* @__PURE__ */ a(
662
662
  "img",
@@ -675,11 +675,11 @@ const $ = {
675
675
  alt: e = "",
676
676
  categoryGuid: o,
677
677
  merchantGuid: n,
678
- size: r = G,
678
+ size: r = U,
679
679
  ...i
680
680
  }) => {
681
- const [l, c] = f.useState(!1);
682
- return /* @__PURE__ */ y(E, { display: "inline-block", position: "relative", ...i, children: [
681
+ const [l, c] = f.useState(!1), s = C();
682
+ return /* @__PURE__ */ M(E, { display: "inline-block", position: "relative", ...i, children: [
683
683
  n && !l && /* @__PURE__ */ a(
684
684
  "img",
685
685
  {
@@ -689,6 +689,7 @@ const $ = {
689
689
  onError: () => c(!0),
690
690
  src: `${I}/merchant_logos/${n}.png`,
691
691
  style: {
692
+ backgroundColor: s.palette.common.white,
692
693
  borderRadius: 4,
693
694
  boxSizing: "border-box",
694
695
  position: "absolute"
@@ -696,9 +697,9 @@ const $ = {
696
697
  width: r
697
698
  }
698
699
  ),
699
- /* @__PURE__ */ a(Te, { categoryGuid: o, size: r })
700
+ /* @__PURE__ */ a(ve, { categoryGuid: o, size: r })
700
701
  ] });
701
- }, v = ({
702
+ }, T = ({
702
703
  bold: e,
703
704
  className: o = "",
704
705
  children: n,
@@ -706,36 +707,70 @@ const $ = {
706
707
  sx: i = {},
707
708
  truncate: l = !0,
708
709
  uppercase: c,
709
- ...d
710
- }) => /* @__PURE__ */ a(
711
- le,
712
- {
713
- className: `mx-kmui-text ${o}`,
714
- color: r,
715
- sx: [
716
- e ? {
717
- fontWeight: 600
718
- } : {},
719
- l ? {
720
- overflow: "hidden",
721
- textOverflow: "ellipsis",
722
- whiteSpace: "nowrap"
723
- } : {},
724
- c ? {
725
- textTransform: "uppercase"
726
- } : {},
727
- ...Array.isArray(i) ? i : [i]
728
- ],
729
- ...d,
730
- children: n
710
+ ...s
711
+ }) => {
712
+ switch (s.variant) {
713
+ case "Body":
714
+ s.variant = "body1", console.error("Variant `Body` is deprecated. Use `body1` instead");
715
+ break;
716
+ case "Button":
717
+ s.variant = "button", console.error("Variant `Button` is deprecated. Use `button` instead");
718
+ break;
719
+ case "H1":
720
+ s.variant = "h1", console.error("Variant `H1` is deprecated. Use `h1` instead");
721
+ break;
722
+ case "H2":
723
+ s.variant = "h2", console.error("Variant `H2` is deprecated. Use `h2` instead");
724
+ break;
725
+ case "H3":
726
+ s.variant = "h3", console.error("Variant `H3` is deprecated. Use `h3` instead");
727
+ break;
728
+ case "Paragraph":
729
+ s.variant = "subtitle1", console.error("Variant `Paragraph` is deprecated. Use `subtitle1` instead");
730
+ break;
731
+ case "ParagraphSmall":
732
+ s.variant = "body2", console.error("Variant `ParagraphSmall` is deprecated. Use `subtitle2` instead");
733
+ break;
734
+ case "Small":
735
+ s.variant = "body2", console.error("Variant `Small` is deprecated. Use `body2` instead");
736
+ break;
737
+ case "Tiny":
738
+ s.variant = "tiny", console.error("Variant `Tiny` is deprecated. Use `tiny` instead");
739
+ break;
740
+ case "XSmall":
741
+ s.variant = "caption", console.error("Variant `XSmall` is deprecated. Use `caption` instead");
742
+ break;
731
743
  }
732
- ), De = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(v, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "H1", ...n, children: o }), S0 = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(v, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "H2", ...n, children: o }), F0 = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(v, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "H3", ...n, children: o }), w0 = ({ className: e = "", children: o, truncate: n, ...r }) => /* @__PURE__ */ a(
733
- v,
744
+ return /* @__PURE__ */ a(
745
+ le,
746
+ {
747
+ className: `mx-kmui-text ${o}`,
748
+ color: r,
749
+ sx: [
750
+ e ? {
751
+ fontWeight: 600
752
+ } : {},
753
+ l ? {
754
+ overflow: "hidden",
755
+ textOverflow: "ellipsis",
756
+ whiteSpace: "nowrap"
757
+ } : {},
758
+ c ? {
759
+ textTransform: "uppercase"
760
+ } : {},
761
+ ...Array.isArray(i) ? i : [i]
762
+ ],
763
+ ...s,
764
+ children: n
765
+ }
766
+ );
767
+ }, ke = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...n, children: o }), S0 = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...n, children: o }), F0 = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(T, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...n, children: o }), w0 = ({ className: e = "", children: o, truncate: n, ...r }) => /* @__PURE__ */ a(
768
+ T,
734
769
  {
735
770
  className: `mx-kmui-text p ${e}`,
736
771
  component: "p",
737
772
  truncate: n || !1,
738
- variant: "Body",
773
+ variant: "body1",
739
774
  ...r,
740
775
  children: o
741
776
  }
@@ -757,7 +792,7 @@ const $ = {
757
792
  ...i
758
793
  }
759
794
  );
760
- function ke(e) {
795
+ function De(e) {
761
796
  return /* @__PURE__ */ a(O, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
762
797
  }
763
798
  const N0 = ({
@@ -768,28 +803,28 @@ const N0 = ({
768
803
  severity: i = "success",
769
804
  snackbarSx: l,
770
805
  showAction: c = !1,
771
- showClose: d = !1,
806
+ showClose: s = !1,
772
807
  actionText: b = "Undo",
773
808
  onActionClick: p,
774
- multiLine: s = !1
809
+ multiLine: d = !1
775
810
  }) => {
776
- const m = T(), Z = {
811
+ const m = C(), Z = {
777
812
  success: m.palette.success.dark,
778
813
  error: m.palette.error.light,
779
814
  info: m.palette.info.lighter,
780
815
  warning: m.palette.warning.lighter
781
- }, j = /* @__PURE__ */ y(
816
+ }, j = /* @__PURE__ */ M(
782
817
  L,
783
818
  {
784
- alignItems: s ? "flex-end" : "center",
785
- direction: s ? "column-reverse" : "row",
819
+ alignItems: d ? "flex-end" : "center",
820
+ direction: d ? "column-reverse" : "row",
786
821
  justifyContent: (
787
822
  // eslint-disable-next-line no-nested-ternary
788
- s && c && d ? "space-between" : "flex-end"
823
+ d && c && s ? "space-between" : "flex-end"
789
824
  ),
790
825
  children: [
791
826
  c && /* @__PURE__ */ a(
792
- k,
827
+ D,
793
828
  {
794
829
  color: "inherit",
795
830
  onClick: p || o,
@@ -801,14 +836,14 @@ const N0 = ({
801
836
  children: b
802
837
  }
803
838
  ),
804
- d && /* @__PURE__ */ a(
805
- V,
839
+ s && /* @__PURE__ */ a(
840
+ _,
806
841
  {
807
842
  "aria-label": "close",
808
843
  color: "inherit",
809
844
  onClick: o,
810
845
  sx: { height: 44, width: 44 },
811
- children: /* @__PURE__ */ a(M, { fill: !0, name: "close", size: 24, weight: 400 })
846
+ children: /* @__PURE__ */ a(y, { fill: !0, name: "close", size: 24, weight: 400 })
812
847
  }
813
848
  )
814
849
  ]
@@ -817,14 +852,14 @@ const N0 = ({
817
852
  return /* @__PURE__ */ a(
818
853
  se,
819
854
  {
820
- TransitionComponent: ke,
855
+ TransitionComponent: De,
821
856
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
822
857
  autoHideDuration: r,
823
858
  onClose: o,
824
859
  open: e,
825
860
  sx: {
826
861
  ...l,
827
- width: s ? 400 : 325
862
+ width: d ? 400 : 325
828
863
  },
829
864
  children: /* @__PURE__ */ a(
830
865
  de,
@@ -834,17 +869,17 @@ const N0 = ({
834
869
  sx: {
835
870
  display: "flex",
836
871
  alignItems: "stretch",
837
- minHeight: d && c && s ? 120 : 56,
838
- maxHeight: s ? 120 : 56,
872
+ minHeight: s && c && d ? 120 : 56,
873
+ maxHeight: d ? 120 : 56,
839
874
  backgroundColor: (S) => S.palette.mode === "light" ? S.palette[i].darker : Z[i],
840
875
  width: "100%",
841
876
  "& .MuiAlert-icon": {
842
- alignSelf: s ? "flex-start" : "center"
877
+ alignSelf: d ? "flex-start" : "center"
843
878
  },
844
879
  "& .MuiAlert-message": {
845
- paddingTop: s ? 12 : 8,
846
- paddingBottom: s ? 12 : 8,
847
- alignSelf: s ? "flex-start" : "center"
880
+ paddingTop: d ? 12 : 8,
881
+ paddingBottom: d ? 12 : 8,
882
+ alignSelf: d ? "flex-start" : "center"
848
883
  },
849
884
  "& .MuiAlert-action": {
850
885
  alignItems: "stretch",
@@ -853,15 +888,15 @@ const N0 = ({
853
888
  },
854
889
  variant: "filled",
855
890
  children: /* @__PURE__ */ a(
856
- v,
891
+ T,
857
892
  {
858
893
  sx: {
859
- lineHeight: m.typography.Body.lineHeight,
860
- whiteSpace: s ? "normal" : "nowrap",
861
- overflow: s ? "visible" : "hidden",
862
- textOverflow: s ? "clip" : "ellipsis"
894
+ lineHeight: m.typography.body1.lineHeight,
895
+ whiteSpace: d ? "normal" : "nowrap",
896
+ overflow: d ? "visible" : "hidden",
897
+ textOverflow: d ? "clip" : "ellipsis"
863
898
  },
864
- truncate: !s,
899
+ truncate: !d,
865
900
  children: n
866
901
  }
867
902
  )
@@ -869,18 +904,18 @@ const N0 = ({
869
904
  )
870
905
  }
871
906
  );
872
- }, C = {
907
+ }, v = {
873
908
  REACT: "react",
874
909
  REACT_NATIVE: "react_native",
875
910
  NATIVE: "native"
876
911
  }, A = {
877
912
  LIGHT: "light",
878
913
  DARK: "dark"
879
- }, U = f.createContext(W), K = f.createContext(
880
- H(A.LIGHT, C.REACT_NATIVE)
881
- ), z0 = ({
914
+ }, G = f.createContext(W), K = f.createContext(
915
+ H(A.LIGHT, v.REACT_NATIVE)
916
+ ), P0 = ({
882
917
  children: e,
883
- target: o = C.REACT,
918
+ target: o = v.REACT,
884
919
  theme: n = A.LIGHT,
885
920
  tokenOverrides: r
886
921
  }) => {
@@ -888,11 +923,11 @@ const N0 = ({
888
923
  ...r
889
924
  }), [r]);
890
925
  return f.useEffect(() => {
891
- const d = H(n, o, { ...c });
892
- l(d);
893
- }, [n, o, c]), o === C.REACT ? /* @__PURE__ */ a(U.Provider, { value: i, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(K.Provider, { value: i, children: e }));
894
- }, P0 = (e = C.REACT, o = {}) => {
895
- const n = e === C.REACT ? U : K, r = f.useContext(n);
926
+ const s = H(n, o, { ...c });
927
+ l(s);
928
+ }, [n, o, c]), o === v.REACT ? /* @__PURE__ */ a(G.Provider, { value: i, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(K.Provider, { value: i, children: e }));
929
+ }, z0 = (e = v.REACT, o = {}) => {
930
+ const n = e === v.REACT ? G : K, r = f.useContext(n);
896
931
  return r || H(A.LIGHT, e, { ...o });
897
932
  }, h = {
898
933
  LIGHT: "light",
@@ -1060,68 +1095,63 @@ const N0 = ({
1060
1095
  }), x = "Inter, Helvetica, Arial, sans-serif", Ee = (e) => me(e, {
1061
1096
  fontFamily: x,
1062
1097
  fontSize: 15,
1063
- Body: {
1098
+ body1: {
1064
1099
  fontSize: 15,
1065
1100
  lineHeight: "20px"
1066
1101
  },
1067
- body2: void 0,
1068
- Button: {
1102
+ body2: {
1103
+ fontSize: 13,
1104
+ lineHeight: "16px"
1105
+ },
1106
+ button: {
1069
1107
  fontSize: 15
1070
1108
  },
1071
- caption: void 0,
1072
- H1: {
1109
+ caption: {
1110
+ fontSize: 11,
1111
+ lineHeight: "16px"
1112
+ },
1113
+ h1: {
1073
1114
  fontFamily: x,
1074
1115
  fontWeight: 700,
1075
1116
  fontSize: 31,
1076
1117
  lineHeight: "40px"
1077
1118
  },
1078
- H2: {
1119
+ h2: {
1079
1120
  fontFamily: x,
1080
1121
  fontWeight: 700,
1081
1122
  fontSize: 23,
1082
1123
  lineHeight: "32px"
1083
1124
  },
1084
- H3: {
1125
+ h3: {
1085
1126
  fontFamily: x,
1086
1127
  fontWeight: 700,
1087
1128
  fontSize: 18,
1088
1129
  lineHeight: "24px"
1089
1130
  },
1090
- h4: void 0,
1091
1131
  h5: void 0,
1092
1132
  h6: void 0,
1093
1133
  overline: void 0,
1094
- Paragraph: {
1134
+ subtitle1: {
1095
1135
  fontSize: 15,
1096
1136
  lineHeight: "24px"
1097
1137
  },
1098
- ParagraphSmall: {
1138
+ subtitle2: {
1099
1139
  fontSize: 13,
1100
1140
  lineHeight: "20px"
1101
1141
  },
1102
- Small: {
1103
- fontSize: 13,
1104
- lineHeight: "16px"
1105
- },
1106
- subtitle1: void 0,
1107
- subtitle2: void 0,
1108
- Tiny: {
1142
+ tiny: {
1109
1143
  fontSize: 9,
1110
1144
  lineHeight: "12px"
1111
- },
1112
- XSmall: {
1113
- fontSize: 11,
1114
- lineHeight: "16px"
1115
1145
  }
1116
1146
  });
1117
1147
  pe.setLicenseKey(
1118
1148
  "6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
1119
1149
  );
1120
- const D = [...B().shadows];
1121
- D[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1122
- D[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1123
- D[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1124
- const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", He = "cubic-bezier(.475,.425,0,.995)", B0 = (e) => {
1150
+ const k = [...B().shadows];
1151
+ k[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1152
+ k[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1153
+ k[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1154
+ const P = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", z = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", He = "cubic-bezier(.475,.425,0,.995)", B0 = (e) => {
1125
1155
  const o = Le(e), n = Ee(o);
1126
1156
  return B({
1127
1157
  breakpoints: {
@@ -1134,7 +1164,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1134
1164
  }
1135
1165
  },
1136
1166
  palette: o,
1137
- shadows: D,
1167
+ shadows: k,
1138
1168
  shape: {
1139
1169
  borderRadius: 4
1140
1170
  },
@@ -1160,10 +1190,10 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1160
1190
  MuiAlert: {
1161
1191
  defaultProps: {
1162
1192
  iconMapping: {
1163
- success: /* @__PURE__ */ a(M, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1164
- error: /* @__PURE__ */ a(M, { fill: !0, name: "error", size: 24, weight: 400 }),
1165
- warning: /* @__PURE__ */ a(M, { fill: !0, name: "warning", size: 24, weight: 400 }),
1166
- info: /* @__PURE__ */ a(M, { fill: !0, name: "info", size: 24, weight: 400 })
1193
+ success: /* @__PURE__ */ a(y, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1194
+ error: /* @__PURE__ */ a(y, { fill: !0, name: "error", size: 24, weight: 400 }),
1195
+ warning: /* @__PURE__ */ a(y, { fill: !0, name: "warning", size: 24, weight: 400 }),
1196
+ info: /* @__PURE__ */ a(y, { fill: !0, name: "info", size: 24, weight: 400 })
1167
1197
  }
1168
1198
  },
1169
1199
  styleOverrides: {
@@ -1200,7 +1230,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1200
1230
  styleOverrides: {
1201
1231
  root: {
1202
1232
  "&.Mui-focusVisible": {
1203
- boxShadow: z
1233
+ boxShadow: P
1204
1234
  }
1205
1235
  }
1206
1236
  }
@@ -1267,7 +1297,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1267
1297
  cursor: "not-allowed"
1268
1298
  },
1269
1299
  "&.Mui-focusVisible": {
1270
- boxShadow: z
1300
+ boxShadow: P
1271
1301
  }
1272
1302
  },
1273
1303
  sizeMedium: {
@@ -1310,7 +1340,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1310
1340
  textTransform: "none",
1311
1341
  fontWeight: 600,
1312
1342
  "&.Mui-focusVisible": {
1313
- boxShadow: P
1343
+ boxShadow: z
1314
1344
  },
1315
1345
  "&:not(.Mui-selected)": {
1316
1346
  borderBottom: `2px solid ${r.palette.divider}`
@@ -1674,7 +1704,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1674
1704
  paddingTop: 12,
1675
1705
  paddingBottom: 12,
1676
1706
  "&.Mui-focusVisible": {
1677
- boxShadow: P
1707
+ boxShadow: z
1678
1708
  },
1679
1709
  "&:active": {
1680
1710
  backgroundColor: `${r.palette.secondary.lighter}33`
@@ -1930,45 +1960,45 @@ export {
1930
1960
  u0 as ArrowLeftIcon,
1931
1961
  p0 as AttentionFilledIcon,
1932
1962
  g as BaseIcon,
1933
- k0 as BottomSheetTransition,
1963
+ D0 as BottomSheetTransition,
1934
1964
  h0 as CalendarIcon,
1935
1965
  u as CategoryGuids,
1936
- Te as CategoryIcon,
1937
- ye as CategoryIconList,
1938
- Me as CategoryIconVariants,
1966
+ ve as CategoryIcon,
1967
+ Me as CategoryIconList,
1968
+ ye as CategoryIconVariants,
1939
1969
  g0 as CheckmarkFilledIcon,
1940
1970
  m0 as ChevronDownIcon,
1941
1971
  f0 as ChevronLeftIcon,
1942
1972
  b0 as ChevronRightIcon,
1943
1973
  be as CloseIcon,
1944
- D0 as DateRangePicker,
1974
+ k0 as DateRangePicker,
1945
1975
  xe as DialogFooter,
1946
1976
  L0 as DialogHeader,
1947
1977
  E0 as Drawer,
1948
- M0 as EditIcon,
1949
- y0 as FilterIcon,
1978
+ y0 as EditIcon,
1979
+ M0 as FilterIcon,
1950
1980
  xe as Footer,
1951
- De as H1,
1981
+ ke as H1,
1952
1982
  S0 as H2,
1953
1983
  F0 as H3,
1954
1984
  C0 as HeartIcon,
1955
1985
  x as INTER,
1956
- M as Icon,
1986
+ y as Icon,
1957
1987
  fe as IconWeight,
1958
1988
  H0 as InstitutionLogo,
1959
- v0 as MXLogoCopyrightIcon,
1989
+ T0 as MXLogoCopyrightIcon,
1960
1990
  x0 as MXLogoFilledIcon,
1961
- T0 as MXLogoIcon,
1991
+ v0 as MXLogoIcon,
1962
1992
  A0 as MXLogoOutlineIcon,
1963
1993
  I0 as MerchantLogo,
1964
1994
  w0 as P,
1965
- C as TARGETS,
1995
+ v as TARGETS,
1966
1996
  A as THEMES,
1967
- v as Text,
1997
+ T as Text,
1968
1998
  R0 as TextField,
1969
1999
  N0 as Toast,
1970
- z0 as TokenProvider,
2000
+ P0 as TokenProvider,
1971
2001
  B0 as createMXTheme,
1972
- P0 as useTokens
2002
+ z0 as useTokens
1973
2003
  };
1974
2004
  //# sourceMappingURL=index.es.js.map