@mxenabled/mxui 1.0.3 → 1.0.4

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 v, 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 = v(), 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 = v(), 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 = v(), 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 = v();
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
681
  const [l, c] = f.useState(!1);
682
- return /* @__PURE__ */ y(E, { display: "inline-block", position: "relative", ...i, children: [
682
+ return /* @__PURE__ */ M(E, { display: "inline-block", position: "relative", ...i, children: [
683
683
  n && !l && /* @__PURE__ */ a(
684
684
  "img",
685
685
  {
@@ -696,9 +696,9 @@ const $ = {
696
696
  width: r
697
697
  }
698
698
  ),
699
- /* @__PURE__ */ a(Te, { categoryGuid: o, size: r })
699
+ /* @__PURE__ */ a(ve, { categoryGuid: o, size: r })
700
700
  ] });
701
- }, v = ({
701
+ }, T = ({
702
702
  bold: e,
703
703
  className: o = "",
704
704
  children: n,
@@ -706,36 +706,70 @@ const $ = {
706
706
  sx: i = {},
707
707
  truncate: l = !0,
708
708
  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
709
+ ...s
710
+ }) => {
711
+ switch (s.variant) {
712
+ case "Body":
713
+ s.variant = "body1", console.error("Variant `Body` is deprecated. Use `body1` instead");
714
+ break;
715
+ case "Button":
716
+ s.variant = "button", console.error("Variant `Button` is deprecated. Use `button` instead");
717
+ break;
718
+ case "H1":
719
+ s.variant = "h1", console.error("Variant `H1` is deprecated. Use `h1` instead");
720
+ break;
721
+ case "H2":
722
+ s.variant = "h2", console.error("Variant `H2` is deprecated. Use `h2` instead");
723
+ break;
724
+ case "H3":
725
+ s.variant = "h3", console.error("Variant `H3` is deprecated. Use `h3` instead");
726
+ break;
727
+ case "Paragraph":
728
+ s.variant = "subtitle1", console.error("Variant `Paragraph` is deprecated. Use `subtitle1` instead");
729
+ break;
730
+ case "ParagraphSmall":
731
+ s.variant = "body2", console.error("Variant `ParagraphSmall` is deprecated. Use `subtitle2` instead");
732
+ break;
733
+ case "Small":
734
+ s.variant = "body2", console.error("Variant `Small` is deprecated. Use `body2` instead");
735
+ break;
736
+ case "Tiny":
737
+ s.variant = "tiny", console.error("Variant `Tiny` is deprecated. Use `tiny` instead");
738
+ break;
739
+ case "XSmall":
740
+ s.variant = "caption", console.error("Variant `XSmall` is deprecated. Use `caption` instead");
741
+ break;
731
742
  }
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,
743
+ return /* @__PURE__ */ a(
744
+ le,
745
+ {
746
+ className: `mx-kmui-text ${o}`,
747
+ color: r,
748
+ sx: [
749
+ e ? {
750
+ fontWeight: 600
751
+ } : {},
752
+ l ? {
753
+ overflow: "hidden",
754
+ textOverflow: "ellipsis",
755
+ whiteSpace: "nowrap"
756
+ } : {},
757
+ c ? {
758
+ textTransform: "uppercase"
759
+ } : {},
760
+ ...Array.isArray(i) ? i : [i]
761
+ ],
762
+ ...s,
763
+ children: n
764
+ }
765
+ );
766
+ }, 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(
767
+ T,
734
768
  {
735
769
  className: `mx-kmui-text p ${e}`,
736
770
  component: "p",
737
771
  truncate: n || !1,
738
- variant: "Body",
772
+ variant: "body1",
739
773
  ...r,
740
774
  children: o
741
775
  }
@@ -757,7 +791,7 @@ const $ = {
757
791
  ...i
758
792
  }
759
793
  );
760
- function ke(e) {
794
+ function De(e) {
761
795
  return /* @__PURE__ */ a(O, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
762
796
  }
763
797
  const N0 = ({
@@ -768,28 +802,28 @@ const N0 = ({
768
802
  severity: i = "success",
769
803
  snackbarSx: l,
770
804
  showAction: c = !1,
771
- showClose: d = !1,
805
+ showClose: s = !1,
772
806
  actionText: b = "Undo",
773
807
  onActionClick: p,
774
- multiLine: s = !1
808
+ multiLine: d = !1
775
809
  }) => {
776
- const m = T(), Z = {
810
+ const m = v(), Z = {
777
811
  success: m.palette.success.dark,
778
812
  error: m.palette.error.light,
779
813
  info: m.palette.info.lighter,
780
814
  warning: m.palette.warning.lighter
781
- }, j = /* @__PURE__ */ y(
815
+ }, j = /* @__PURE__ */ M(
782
816
  L,
783
817
  {
784
- alignItems: s ? "flex-end" : "center",
785
- direction: s ? "column-reverse" : "row",
818
+ alignItems: d ? "flex-end" : "center",
819
+ direction: d ? "column-reverse" : "row",
786
820
  justifyContent: (
787
821
  // eslint-disable-next-line no-nested-ternary
788
- s && c && d ? "space-between" : "flex-end"
822
+ d && c && s ? "space-between" : "flex-end"
789
823
  ),
790
824
  children: [
791
825
  c && /* @__PURE__ */ a(
792
- k,
826
+ D,
793
827
  {
794
828
  color: "inherit",
795
829
  onClick: p || o,
@@ -801,14 +835,14 @@ const N0 = ({
801
835
  children: b
802
836
  }
803
837
  ),
804
- d && /* @__PURE__ */ a(
805
- V,
838
+ s && /* @__PURE__ */ a(
839
+ _,
806
840
  {
807
841
  "aria-label": "close",
808
842
  color: "inherit",
809
843
  onClick: o,
810
844
  sx: { height: 44, width: 44 },
811
- children: /* @__PURE__ */ a(M, { fill: !0, name: "close", size: 24, weight: 400 })
845
+ children: /* @__PURE__ */ a(y, { fill: !0, name: "close", size: 24, weight: 400 })
812
846
  }
813
847
  )
814
848
  ]
@@ -817,14 +851,14 @@ const N0 = ({
817
851
  return /* @__PURE__ */ a(
818
852
  se,
819
853
  {
820
- TransitionComponent: ke,
854
+ TransitionComponent: De,
821
855
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
822
856
  autoHideDuration: r,
823
857
  onClose: o,
824
858
  open: e,
825
859
  sx: {
826
860
  ...l,
827
- width: s ? 400 : 325
861
+ width: d ? 400 : 325
828
862
  },
829
863
  children: /* @__PURE__ */ a(
830
864
  de,
@@ -834,17 +868,17 @@ const N0 = ({
834
868
  sx: {
835
869
  display: "flex",
836
870
  alignItems: "stretch",
837
- minHeight: d && c && s ? 120 : 56,
838
- maxHeight: s ? 120 : 56,
871
+ minHeight: s && c && d ? 120 : 56,
872
+ maxHeight: d ? 120 : 56,
839
873
  backgroundColor: (S) => S.palette.mode === "light" ? S.palette[i].darker : Z[i],
840
874
  width: "100%",
841
875
  "& .MuiAlert-icon": {
842
- alignSelf: s ? "flex-start" : "center"
876
+ alignSelf: d ? "flex-start" : "center"
843
877
  },
844
878
  "& .MuiAlert-message": {
845
- paddingTop: s ? 12 : 8,
846
- paddingBottom: s ? 12 : 8,
847
- alignSelf: s ? "flex-start" : "center"
879
+ paddingTop: d ? 12 : 8,
880
+ paddingBottom: d ? 12 : 8,
881
+ alignSelf: d ? "flex-start" : "center"
848
882
  },
849
883
  "& .MuiAlert-action": {
850
884
  alignItems: "stretch",
@@ -853,15 +887,15 @@ const N0 = ({
853
887
  },
854
888
  variant: "filled",
855
889
  children: /* @__PURE__ */ a(
856
- v,
890
+ T,
857
891
  {
858
892
  sx: {
859
- lineHeight: m.typography.Body.lineHeight,
860
- whiteSpace: s ? "normal" : "nowrap",
861
- overflow: s ? "visible" : "hidden",
862
- textOverflow: s ? "clip" : "ellipsis"
893
+ lineHeight: m.typography.body1.lineHeight,
894
+ whiteSpace: d ? "normal" : "nowrap",
895
+ overflow: d ? "visible" : "hidden",
896
+ textOverflow: d ? "clip" : "ellipsis"
863
897
  },
864
- truncate: !s,
898
+ truncate: !d,
865
899
  children: n
866
900
  }
867
901
  )
@@ -876,9 +910,9 @@ const N0 = ({
876
910
  }, A = {
877
911
  LIGHT: "light",
878
912
  DARK: "dark"
879
- }, U = f.createContext(W), K = f.createContext(
913
+ }, G = f.createContext(W), K = f.createContext(
880
914
  H(A.LIGHT, C.REACT_NATIVE)
881
- ), z0 = ({
915
+ ), P0 = ({
882
916
  children: e,
883
917
  target: o = C.REACT,
884
918
  theme: n = A.LIGHT,
@@ -888,11 +922,11 @@ const N0 = ({
888
922
  ...r
889
923
  }), [r]);
890
924
  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);
925
+ const s = H(n, o, { ...c });
926
+ l(s);
927
+ }, [n, o, c]), o === C.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 }));
928
+ }, z0 = (e = C.REACT, o = {}) => {
929
+ const n = e === C.REACT ? G : K, r = f.useContext(n);
896
930
  return r || H(A.LIGHT, e, { ...o });
897
931
  }, h = {
898
932
  LIGHT: "light",
@@ -1060,68 +1094,63 @@ const N0 = ({
1060
1094
  }), x = "Inter, Helvetica, Arial, sans-serif", Ee = (e) => me(e, {
1061
1095
  fontFamily: x,
1062
1096
  fontSize: 15,
1063
- Body: {
1097
+ body1: {
1064
1098
  fontSize: 15,
1065
1099
  lineHeight: "20px"
1066
1100
  },
1067
- body2: void 0,
1068
- Button: {
1101
+ body2: {
1102
+ fontSize: 13,
1103
+ lineHeight: "16px"
1104
+ },
1105
+ button: {
1069
1106
  fontSize: 15
1070
1107
  },
1071
- caption: void 0,
1072
- H1: {
1108
+ caption: {
1109
+ fontSize: 11,
1110
+ lineHeight: "16px"
1111
+ },
1112
+ h1: {
1073
1113
  fontFamily: x,
1074
1114
  fontWeight: 700,
1075
1115
  fontSize: 31,
1076
1116
  lineHeight: "40px"
1077
1117
  },
1078
- H2: {
1118
+ h2: {
1079
1119
  fontFamily: x,
1080
1120
  fontWeight: 700,
1081
1121
  fontSize: 23,
1082
1122
  lineHeight: "32px"
1083
1123
  },
1084
- H3: {
1124
+ h3: {
1085
1125
  fontFamily: x,
1086
1126
  fontWeight: 700,
1087
1127
  fontSize: 18,
1088
1128
  lineHeight: "24px"
1089
1129
  },
1090
- h4: void 0,
1091
1130
  h5: void 0,
1092
1131
  h6: void 0,
1093
1132
  overline: void 0,
1094
- Paragraph: {
1133
+ subtitle1: {
1095
1134
  fontSize: 15,
1096
1135
  lineHeight: "24px"
1097
1136
  },
1098
- ParagraphSmall: {
1137
+ subtitle2: {
1099
1138
  fontSize: 13,
1100
1139
  lineHeight: "20px"
1101
1140
  },
1102
- Small: {
1103
- fontSize: 13,
1104
- lineHeight: "16px"
1105
- },
1106
- subtitle1: void 0,
1107
- subtitle2: void 0,
1108
- Tiny: {
1141
+ tiny: {
1109
1142
  fontSize: 9,
1110
1143
  lineHeight: "12px"
1111
- },
1112
- XSmall: {
1113
- fontSize: 11,
1114
- lineHeight: "16px"
1115
1144
  }
1116
1145
  });
1117
1146
  pe.setLicenseKey(
1118
1147
  "6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
1119
1148
  );
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) => {
1149
+ const k = [...B().shadows];
1150
+ k[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
1151
+ k[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
1152
+ k[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
1153
+ 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
1154
  const o = Le(e), n = Ee(o);
1126
1155
  return B({
1127
1156
  breakpoints: {
@@ -1134,7 +1163,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1134
1163
  }
1135
1164
  },
1136
1165
  palette: o,
1137
- shadows: D,
1166
+ shadows: k,
1138
1167
  shape: {
1139
1168
  borderRadius: 4
1140
1169
  },
@@ -1160,10 +1189,10 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1160
1189
  MuiAlert: {
1161
1190
  defaultProps: {
1162
1191
  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 })
1192
+ success: /* @__PURE__ */ a(y, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
1193
+ error: /* @__PURE__ */ a(y, { fill: !0, name: "error", size: 24, weight: 400 }),
1194
+ warning: /* @__PURE__ */ a(y, { fill: !0, name: "warning", size: 24, weight: 400 }),
1195
+ info: /* @__PURE__ */ a(y, { fill: !0, name: "info", size: 24, weight: 400 })
1167
1196
  }
1168
1197
  },
1169
1198
  styleOverrides: {
@@ -1200,7 +1229,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1200
1229
  styleOverrides: {
1201
1230
  root: {
1202
1231
  "&.Mui-focusVisible": {
1203
- boxShadow: z
1232
+ boxShadow: P
1204
1233
  }
1205
1234
  }
1206
1235
  }
@@ -1267,7 +1296,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1267
1296
  cursor: "not-allowed"
1268
1297
  },
1269
1298
  "&.Mui-focusVisible": {
1270
- boxShadow: z
1299
+ boxShadow: P
1271
1300
  }
1272
1301
  },
1273
1302
  sizeMedium: {
@@ -1310,7 +1339,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1310
1339
  textTransform: "none",
1311
1340
  fontWeight: 600,
1312
1341
  "&.Mui-focusVisible": {
1313
- boxShadow: P
1342
+ boxShadow: z
1314
1343
  },
1315
1344
  "&:not(.Mui-selected)": {
1316
1345
  borderBottom: `2px solid ${r.palette.divider}`
@@ -1674,7 +1703,7 @@ const z = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", P = "inset 0px 0px 0px 2px
1674
1703
  paddingTop: 12,
1675
1704
  paddingBottom: 12,
1676
1705
  "&.Mui-focusVisible": {
1677
- boxShadow: P
1706
+ boxShadow: z
1678
1707
  },
1679
1708
  "&:active": {
1680
1709
  backgroundColor: `${r.palette.secondary.lighter}33`
@@ -1930,45 +1959,45 @@ export {
1930
1959
  u0 as ArrowLeftIcon,
1931
1960
  p0 as AttentionFilledIcon,
1932
1961
  g as BaseIcon,
1933
- k0 as BottomSheetTransition,
1962
+ D0 as BottomSheetTransition,
1934
1963
  h0 as CalendarIcon,
1935
1964
  u as CategoryGuids,
1936
- Te as CategoryIcon,
1937
- ye as CategoryIconList,
1938
- Me as CategoryIconVariants,
1965
+ ve as CategoryIcon,
1966
+ Me as CategoryIconList,
1967
+ ye as CategoryIconVariants,
1939
1968
  g0 as CheckmarkFilledIcon,
1940
1969
  m0 as ChevronDownIcon,
1941
1970
  f0 as ChevronLeftIcon,
1942
1971
  b0 as ChevronRightIcon,
1943
1972
  be as CloseIcon,
1944
- D0 as DateRangePicker,
1973
+ k0 as DateRangePicker,
1945
1974
  xe as DialogFooter,
1946
1975
  L0 as DialogHeader,
1947
1976
  E0 as Drawer,
1948
- M0 as EditIcon,
1949
- y0 as FilterIcon,
1977
+ y0 as EditIcon,
1978
+ M0 as FilterIcon,
1950
1979
  xe as Footer,
1951
- De as H1,
1980
+ ke as H1,
1952
1981
  S0 as H2,
1953
1982
  F0 as H3,
1954
1983
  C0 as HeartIcon,
1955
1984
  x as INTER,
1956
- M as Icon,
1985
+ y as Icon,
1957
1986
  fe as IconWeight,
1958
1987
  H0 as InstitutionLogo,
1959
- v0 as MXLogoCopyrightIcon,
1988
+ T0 as MXLogoCopyrightIcon,
1960
1989
  x0 as MXLogoFilledIcon,
1961
- T0 as MXLogoIcon,
1990
+ v0 as MXLogoIcon,
1962
1991
  A0 as MXLogoOutlineIcon,
1963
1992
  I0 as MerchantLogo,
1964
1993
  w0 as P,
1965
1994
  C as TARGETS,
1966
1995
  A as THEMES,
1967
- v as Text,
1996
+ T as Text,
1968
1997
  R0 as TextField,
1969
1998
  N0 as Toast,
1970
- z0 as TokenProvider,
1999
+ P0 as TokenProvider,
1971
2000
  B0 as createMXTheme,
1972
- P0 as useTokens
2001
+ z0 as useTokens
1973
2002
  };
1974
2003
  //# sourceMappingURL=index.es.js.map