@mxenabled/mxui 2.2.8 → 2.3.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
@@ -30,11 +30,11 @@ import Ee from "@mui/material/Snackbar";
30
30
  import Oe from "@mui/material/Alert";
31
31
  import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as f, darken as L, lighten as O, getContrastRatio as Le } from "@mui/material";
32
32
  import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
33
- import { LicenseInfo as He } from "@mui/x-license";
34
- const H = ({
33
+ import { LicenseInfo as ke } from "@mui/x-license";
34
+ const k = ({
35
35
  children: e,
36
36
  height: i,
37
- size: r = 16,
37
+ size: o = 16,
38
38
  viewBox: s = "0 0 16 16",
39
39
  width: l
40
40
  }) => /* @__PURE__ */ a(
@@ -43,16 +43,16 @@ const H = ({
43
43
  "aria-hidden": !0,
44
44
  className: "mx-kmui-icon",
45
45
  focusable: !1,
46
- height: i || r,
46
+ height: i || o,
47
47
  viewBox: s,
48
- width: l || r,
48
+ width: l || o,
49
49
  xmlns: "http://www.w3.org/2000/svg",
50
50
  children: e
51
51
  }
52
- ), x = ({ color: e, fill: i = !1, name: r, size: s = 20, sx: l, ...t }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: r, size: s, sx: l, ...t }), Ft = ({
52
+ ), x = ({ color: e, fill: i = !1, name: o, size: s = 20, sx: l, ...t }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: s, sx: l, ...t }), Ft = ({
53
53
  color: e = "currentColor",
54
54
  ...i
55
- }) => /* @__PURE__ */ b(H, { ...i, children: [
55
+ }) => /* @__PURE__ */ b(k, { ...i, children: [
56
56
  /* @__PURE__ */ a(
57
57
  "path",
58
58
  {
@@ -70,7 +70,7 @@ const H = ({
70
70
  ] }), vt = ({
71
71
  color: e = "currentColor",
72
72
  ...i
73
- }) => /* @__PURE__ */ b(H, { ...i, children: [
73
+ }) => /* @__PURE__ */ b(k, { ...i, children: [
74
74
  /* @__PURE__ */ a(
75
75
  "path",
76
76
  {
@@ -106,7 +106,7 @@ const H = ({
106
106
  ] }), Lt = ({
107
107
  color: e = "currentColor",
108
108
  ...i
109
- }) => /* @__PURE__ */ a(H, { ...i, children: /* @__PURE__ */ a(
109
+ }) => /* @__PURE__ */ a(k, { ...i, children: /* @__PURE__ */ a(
110
110
  "path",
111
111
  {
112
112
  clipRule: "evenodd",
@@ -117,7 +117,7 @@ const H = ({
117
117
  ) }), Nt = ({
118
118
  color: e = "currentColor",
119
119
  ...i
120
- }) => /* @__PURE__ */ b(H, { ...i, children: [
120
+ }) => /* @__PURE__ */ b(k, { ...i, children: [
121
121
  /* @__PURE__ */ a(
122
122
  "path",
123
123
  {
@@ -142,7 +142,7 @@ const H = ({
142
142
  }
143
143
  )
144
144
  ] });
145
- 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 || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(ke || {});
145
+ 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 || {}), He = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(He || {});
146
146
  const te = {
147
147
  guid: h.Uncategorized,
148
148
  colorName: "uncategorized",
@@ -252,7 +252,7 @@ const te = {
252
252
  ], we = 0.625, Pe = ({
253
253
  categoryGuid: e,
254
254
  icon_ratio: i = we,
255
- size: r = 32,
255
+ size: o = 32,
256
256
  sx: s = {},
257
257
  variant: l = "filled"
258
258
  }) => {
@@ -273,15 +273,15 @@ const te = {
273
273
  const m = l === "filled" ? t.palette.common.white : c;
274
274
  return l === "basic" ? t.palette.text.primary : m;
275
275
  },
276
- height: r,
276
+ height: o,
277
277
  justifyContent: "center",
278
278
  sx: [...Array.isArray(s) ? s : [s]],
279
- width: r,
280
- children: /* @__PURE__ */ a(x, { name: n.icon, size: r * i })
279
+ width: o,
280
+ children: /* @__PURE__ */ a(x, { name: n.icon, size: o * i })
281
281
  }
282
282
  );
283
283
  }, _e = ({ items: e, selected: i }) => {
284
- const r = E(), { setValue: s } = X(), l = Z(), t = e?.map((n) => {
284
+ const o = E(), { setValue: s } = X(), l = Z(), t = e?.map((n) => {
285
285
  const c = n.getValue({ isValid: l });
286
286
  return {
287
287
  label: n.label,
@@ -305,11 +305,11 @@ const te = {
305
305
  boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
306
306
  },
307
307
  "&:hover": {
308
- bgcolor: r.palette.action.hover,
309
- borderTop: `1px solid ${r.palette.secondary.light}`
308
+ bgcolor: o.palette.action.hover,
309
+ borderTop: `1px solid ${o.palette.secondary.light}`
310
310
  },
311
311
  "&.Mui-selected": {
312
- border: `2px solid ${r.palette.primary.main} !important`,
312
+ border: `2px solid ${o.palette.primary.main} !important`,
313
313
  marginTop: "-2px !important",
314
314
  color: "primary"
315
315
  }
@@ -322,7 +322,7 @@ const te = {
322
322
  }, Be = ({
323
323
  items: e,
324
324
  selected: i,
325
- selectLabel: r
325
+ selectLabel: o
326
326
  }) => {
327
327
  const { setValue: s } = X(), l = Z(), t = e?.map((n) => {
328
328
  const c = n.getValue({ isValid: l });
@@ -339,7 +339,7 @@ const te = {
339
339
  {
340
340
  defaultValue: i,
341
341
  id: "select",
342
- label: r,
342
+ label: o,
343
343
  select: !0,
344
344
  slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
345
345
  sx: { width: "100%" },
@@ -349,7 +349,7 @@ const te = {
349
349
  }
350
350
  ) });
351
351
  }, ze = (e) => {
352
- const { toolbar: i, content: r, shortcuts: s, ownerState: l } = Ce(e);
352
+ const { toolbar: i, content: o, shortcuts: s, ownerState: l } = Ce(e);
353
353
  return /* @__PURE__ */ b(
354
354
  Se,
355
355
  {
@@ -378,25 +378,25 @@ const te = {
378
378
  {
379
379
  className: D.contentWrapper,
380
380
  ownerState: l,
381
- children: r
381
+ children: o
382
382
  }
383
383
  )
384
384
  ]
385
385
  }
386
386
  );
387
- }, Ht = ({
387
+ }, kt = ({
388
388
  copy: e,
389
389
  dateRange: i,
390
- onRangeChanged: r,
390
+ onRangeChanged: o,
391
391
  selectedShortcut: s = e.dateRangeThisMonth,
392
392
  sx: l = {}
393
393
  }) => {
394
394
  const t = E(), n = ge(t.breakpoints.down("sm")), c = N.useMemo(() => {
395
- const o = ue(), m = pe(o, 1), T = he(o, 1);
395
+ const r = ue(), m = pe(r, 1), T = he(r, 1);
396
396
  return [
397
397
  {
398
398
  label: e.dateRangeThisMonth,
399
- getValue: () => [G(o), U(o)]
399
+ getValue: () => [G(r), U(r)]
400
400
  },
401
401
  {
402
402
  label: e.dateRangeLastMonth,
@@ -404,15 +404,15 @@ const te = {
404
404
  },
405
405
  {
406
406
  label: e.dateRangeLast30Days,
407
- getValue: () => [W(o, 30), o]
407
+ getValue: () => [W(r, 30), r]
408
408
  },
409
409
  {
410
410
  label: e.dateRangeLast90Days,
411
- getValue: () => [W(o, 90), o]
411
+ getValue: () => [W(r, 90), r]
412
412
  },
413
413
  {
414
414
  label: e.dateRangeYTD,
415
- getValue: () => [V(o), o]
415
+ getValue: () => [V(r), r]
416
416
  },
417
417
  {
418
418
  label: e.dateRangeLastYear,
@@ -420,12 +420,12 @@ const te = {
420
420
  },
421
421
  {
422
422
  label: e.dateRangeCustom,
423
- getValue: () => [o, o]
423
+ getValue: () => [r, r]
424
424
  }
425
425
  ];
426
- }, [e]), d = (o, m) => {
426
+ }, [e]), d = (r, m) => {
427
427
  const T = m.shortcut;
428
- r?.(o, T ? T.label : e.dateRangeCustom);
428
+ o?.(r, T ? T.label : e.dateRangeCustom);
429
429
  };
430
430
  return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
431
431
  fe,
@@ -440,6 +440,14 @@ const te = {
440
440
  showDaysOutsideCurrentMonth: !0,
441
441
  slotProps: {
442
442
  actionBar: { actions: [] },
443
+ layout: {
444
+ sx: {
445
+ "& .MuiPickersLayout-toolbar": {
446
+ gridColumn: "1/4",
447
+ gridRow: 1
448
+ }
449
+ }
450
+ },
443
451
  shortcuts: {
444
452
  items: c
445
453
  },
@@ -450,22 +458,22 @@ const te = {
450
458
  slots: {
451
459
  ...n && { layout: ze },
452
460
  leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
453
- shortcuts: (o) => n ? /* @__PURE__ */ a(
461
+ shortcuts: (r) => n ? /* @__PURE__ */ a(
454
462
  Be,
455
463
  {
456
464
  selectLabel: e.dateRangeSelectARange,
457
465
  selected: s,
458
- ...o
466
+ ...r
459
467
  }
460
- ) : /* @__PURE__ */ a(_e, { selected: s, ...o }),
468
+ ) : /* @__PURE__ */ a(_e, { selected: s, ...r }),
461
469
  rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
462
470
  ...n && {
463
- toolbar: (o) => /* @__PURE__ */ a(
471
+ toolbar: (r) => /* @__PURE__ */ a(
464
472
  Te,
465
473
  {
466
474
  dateSeparator: "",
467
475
  format: "MM/dd/yyyy",
468
- ...o,
476
+ ...r,
469
477
  slotProps: {
470
478
  textField: ({ position: m }) => ({
471
479
  label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
@@ -480,12 +488,12 @@ const te = {
480
488
  value: i
481
489
  }
482
490
  ) }) });
483
- }, kt = N.forwardRef(function(i, r) {
484
- return /* @__PURE__ */ a(q, { direction: "up", ref: r, ...i });
491
+ }, Ht = N.forwardRef(function(i, o) {
492
+ return /* @__PURE__ */ a(q, { direction: "up", ref: o, ...i });
485
493
  }), $e = ({
486
494
  hasSecondaryAction: e = !0,
487
495
  isPrimaryDisabled: i,
488
- onPrimaryAction: r,
496
+ onPrimaryAction: o,
489
497
  onSecondaryAction: s,
490
498
  primaryColor: l = "primary",
491
499
  primaryText: t = "Save",
@@ -504,16 +512,16 @@ const te = {
504
512
  {
505
513
  color: n,
506
514
  onClick: s,
507
- variant: r ? "outlined" : "contained",
515
+ variant: o ? "outlined" : "contained",
508
516
  children: c
509
517
  }
510
518
  ),
511
- r && /* @__PURE__ */ a(
519
+ o && /* @__PURE__ */ a(
512
520
  B,
513
521
  {
514
522
  color: l,
515
523
  disabled: i,
516
- onClick: r,
524
+ onClick: o,
517
525
  variant: "contained",
518
526
  children: t
519
527
  }
@@ -523,7 +531,7 @@ const te = {
523
531
  ), F = ({
524
532
  bold: e,
525
533
  className: i = "",
526
- children: r,
534
+ children: o,
527
535
  color: s,
528
536
  sx: l = {},
529
537
  truncate: t,
@@ -549,9 +557,9 @@ const te = {
549
557
  ...Array.isArray(l) ? l : [l]
550
558
  ],
551
559
  ...c,
552
- children: r
560
+ children: o
553
561
  }
554
- ), Ue = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...r, children: i }), Dt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...r, children: i }), wt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...r, children: i }), Pt = ({ className: e = "", children: i, ...r }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...r, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
562
+ ), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
555
563
  A,
556
564
  {
557
565
  sx: {
@@ -569,24 +577,24 @@ const te = {
569
577
  ), Bt = ({
570
578
  className: e,
571
579
  disableSave: i,
572
- id: r,
580
+ id: o,
573
581
  isOpen: s,
574
582
  onClose: l,
575
583
  onSave: t,
576
584
  primaryText: n,
577
585
  secondaryText: c,
578
586
  children: d,
579
- ...o
587
+ ...r
580
588
  }) => /* @__PURE__ */ b(
581
589
  Ie,
582
590
  {
583
591
  anchor: "right",
584
592
  className: `mx-kmui-drawer ${e}`,
585
- id: r ?? void 0,
593
+ id: o ?? void 0,
586
594
  onClose: l,
587
595
  open: s,
588
596
  variant: "temporary",
589
- ...o,
597
+ ...r,
590
598
  children: [
591
599
  d,
592
600
  t && /* @__PURE__ */ a(
@@ -601,11 +609,11 @@ const te = {
601
609
  )
602
610
  ]
603
611
  }
604
- ), oe = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zt = ({
612
+ ), re = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zt = ({
605
613
  alt: e,
606
614
  institutionGuid: i,
607
- logoUrl: r,
608
- size: s = oe,
615
+ logoUrl: o,
616
+ size: s = re,
609
617
  ...l
610
618
  }) => /* @__PURE__ */ a(
611
619
  "img",
@@ -616,7 +624,7 @@ const te = {
616
624
  const n = t.target;
617
625
  n.src !== K && (n.src = K);
618
626
  },
619
- src: r || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
627
+ src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
620
628
  style: {
621
629
  borderRadius: 4
622
630
  },
@@ -626,20 +634,20 @@ const te = {
626
634
  ), $t = ({
627
635
  alt: e = "",
628
636
  categoryGuid: i,
629
- merchantGuid: r,
630
- size: s = oe,
637
+ merchantGuid: o,
638
+ size: s = re,
631
639
  ...l
632
640
  }) => {
633
641
  const [t, n] = N.useState(!1), c = E();
634
642
  return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
635
- r && !t && /* @__PURE__ */ a(
643
+ o && !t && /* @__PURE__ */ a(
636
644
  "img",
637
645
  {
638
646
  alt: e,
639
647
  "aria-hidden": !e,
640
648
  height: s,
641
649
  onError: () => n(!0),
642
- src: `${z}/merchant_logos/${r}.png`,
650
+ src: `${z}/merchant_logos/${o}.png`,
643
651
  style: {
644
652
  backgroundColor: c.palette.common.white,
645
653
  borderRadius: 4,
@@ -654,14 +662,14 @@ const te = {
654
662
  }, Ut = ({
655
663
  disabled: e = !1,
656
664
  label: i = "",
657
- shrink: r = !0,
665
+ shrink: o = !0,
658
666
  variant: s = "outlined",
659
667
  ...l
660
668
  }) => /* @__PURE__ */ a(
661
669
  J,
662
670
  {
663
671
  InputLabelProps: {
664
- shrink: r
672
+ shrink: o
665
673
  },
666
674
  disabled: e,
667
675
  label: i,
@@ -675,17 +683,17 @@ function Ge(e) {
675
683
  const Gt = ({
676
684
  open: e = !0,
677
685
  handleClose: i,
678
- closeAriaLabel: r,
686
+ closeAriaLabel: o,
679
687
  message: s,
680
688
  autoHideDuration: l = 3e3,
681
689
  severity: t = "success",
682
690
  snackbarSx: n,
683
691
  showAction: c = !1,
684
692
  showClose: d = !1,
685
- actionText: o = "Undo",
693
+ actionText: r = "Undo",
686
694
  onActionClick: m
687
695
  }) => {
688
- const T = E(), v = d && /* @__PURE__ */ a(ee, { "aria-label": r, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(x, { fill: !0, name: "close" }) }), g = `${t}.main`;
696
+ const T = E(), v = d && /* @__PURE__ */ a(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ a(x, { fill: !0, name: "close" }) }), g = `${t}.main`;
689
697
  return /* @__PURE__ */ a(
690
698
  Ee,
691
699
  {
@@ -758,7 +766,7 @@ const Gt = ({
758
766
  minWidth: "auto",
759
767
  justifyContent: "flex-start"
760
768
  },
761
- children: o
769
+ children: r
762
770
  }
763
771
  )
764
772
  ]
@@ -771,23 +779,23 @@ const Gt = ({
771
779
  }, Vt = ({
772
780
  component: e = P,
773
781
  variant: i = "outlined",
774
- selected: r,
782
+ selected: o,
775
783
  onChange: s,
776
784
  headline: l,
777
785
  message: t,
778
786
  name: n,
779
787
  value: c,
780
788
  disabled: d = !1,
781
- error: o = !1,
789
+ error: r = !1,
782
790
  icon: m = !1,
783
791
  sx: T = {},
784
792
  ...v
785
793
  }) => {
786
- const g = E(), re = () => g.palette.background.paper, k = () => o ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? r ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.common.black, 0.23)}` : r ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : g.shadows[1], ie = () => d || o ? g.palette.background.paper : f(g.palette.primary.main, 0.1), ae = () => d || o ? k() : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.primary.main, 0.5)}` : k(), ne = () => d || o ? g.palette.background.paper : f(g.palette.primary.main, 0.3);
794
+ const g = E(), oe = () => g.palette.background.paper, H = () => r ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : g.shadows[1], ie = () => d || r ? g.palette.background.paper : f(g.palette.primary.main, 0.1), ae = () => d || r ? H() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(g.palette.primary.main, 0.5)}` : H(), ne = () => d || r ? g.palette.background.paper : f(g.palette.primary.main, 0.3);
787
795
  return /* @__PURE__ */ a(
788
796
  Fe,
789
797
  {
790
- checked: r,
798
+ checked: o,
791
799
  control: e === P ? /* @__PURE__ */ a(
792
800
  P,
793
801
  {
@@ -838,9 +846,9 @@ const Gt = ({
838
846
  mb: 16,
839
847
  cursor: d ? "not-allowed" : "pointer",
840
848
  opacity: d ? 0.6 : 1,
841
- backgroundColor: re(),
849
+ backgroundColor: oe(),
842
850
  border: "none",
843
- boxShadow: k(),
851
+ boxShadow: H(),
844
852
  boxSizing: "border-box",
845
853
  transition: g.transitions.create(["background-color", "box-shadow"], {
846
854
  duration: g.transitions.duration.short
@@ -944,7 +952,7 @@ const Gt = ({
944
952
  TRAVEL: "#76ACF7",
945
953
  UNCATEGORIZED: "#BCC6D4"
946
954
  }, je = (e, i) => {
947
- const r = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY), l = R(i?.error || C.ERROR), t = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), o = e === I.LIGHT;
955
+ const o = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY), l = R(i?.error || C.ERROR), t = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), r = e === I.LIGHT;
948
956
  return {
949
957
  mode: e,
950
958
  common: {
@@ -952,90 +960,104 @@ const Gt = ({
952
960
  black: _
953
961
  },
954
962
  primary: {
955
- ...r,
956
- light: o ? r[300] : r[600],
957
- main: o ? r[500] : r[400],
958
- dark: o ? r[700] : r[200]
963
+ ...o,
964
+ lighter: r ? o[100] : o[700],
965
+ light: r ? o[300] : o[600],
966
+ main: r ? o[500] : o[400],
967
+ dark: r ? o[700] : o[200],
968
+ darker: r ? o[800] : o[100]
959
969
  },
960
970
  secondary: {
961
971
  ...s,
962
- light: o ? s[300] : s[600],
963
- main: o ? s[500] : s[400],
964
- dark: o ? s[700] : s[200]
972
+ lighter: r ? s[100] : s[800],
973
+ light: r ? s[300] : s[600],
974
+ main: r ? s[500] : s[400],
975
+ dark: r ? s[700] : s[200],
976
+ darker: r ? s[800] : s[100]
965
977
  },
966
978
  neutral: {
967
979
  ...d,
968
- light: o ? d[300] : d[600],
969
- main: o ? d[500] : d[400],
970
- dark: o ? d[700] : d[200],
971
- contrastText: Le(o ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
980
+ lighter: r ? d[100] : d[800],
981
+ light: r ? d[300] : d[600],
982
+ main: r ? d[500] : d[400],
983
+ dark: r ? d[700] : d[200],
984
+ darker: r ? d[800] : d[100],
985
+ contrastText: Le(r ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
972
986
  },
973
987
  text: {
974
- primary: o ? d[900] : M,
975
- secondary: o ? d[600] : f(M, 0.7),
976
- disabled: o ? d[500] : f(M, 0.38)
988
+ primary: r ? d[900] : M,
989
+ secondary: r ? d[600] : f(M, 0.7),
990
+ disabled: r ? d[500] : f(M, 0.38)
977
991
  },
978
992
  error: {
979
993
  ...l,
980
- light: o ? l[300] : l[600],
981
- main: o ? l[500] : l[400],
982
- dark: o ? l[700] : l[200]
994
+ lighter: r ? l[100] : l[700],
995
+ light: r ? l[300] : l[600],
996
+ main: r ? l[500] : l[400],
997
+ dark: r ? l[700] : l[200],
998
+ darker: r ? l[800] : l[100]
983
999
  },
984
1000
  warning: {
985
1001
  ...t,
986
- light: o ? t[300] : t[600],
987
- main: o ? t[500] : t[400],
988
- dark: o ? t[700] : t[200]
1002
+ lighter: r ? t[100] : t[700],
1003
+ light: r ? t[300] : t[600],
1004
+ main: r ? t[500] : t[400],
1005
+ dark: r ? t[700] : t[200],
1006
+ darker: r ? t[800] : t[100]
989
1007
  },
990
1008
  info: {
991
1009
  ...n,
992
- light: o ? n[300] : n[600],
993
- main: o ? n[500] : n[400],
994
- dark: o ? n[700] : n[200]
1010
+ lighter: r ? n[100] : n[700],
1011
+ light: r ? n[300] : n[600],
1012
+ main: r ? n[500] : n[400],
1013
+ dark: r ? n[700] : n[200],
1014
+ darker: r ? n[800] : n[100]
995
1015
  },
996
1016
  success: {
997
1017
  ...c,
998
- light: o ? c[300] : c[600],
999
- main: o ? c[500] : c[400],
1000
- dark: o ? c[700] : c[200]
1018
+ lighter: r ? c[100] : c[700],
1019
+ light: r ? c[300] : c[600],
1020
+ main: r ? c[500] : c[400],
1021
+ dark: r ? c[700] : c[200],
1022
+ darker: r ? c[800] : c[100]
1001
1023
  },
1002
1024
  grey: d,
1003
1025
  action: {
1004
- active: o ? f(_, 0.56) : f(M, 0.56),
1005
- hoverOpacity: o ? 0.1 : 0.2,
1006
- selectedOpacity: o ? 0.16 : 0.25,
1026
+ active: r ? f(_, 0.56) : f(M, 0.56),
1027
+ hoverOpacity: r ? 0.1 : 0.2,
1028
+ selectedOpacity: r ? 0.16 : 0.25,
1007
1029
  focusOpacity: 0.3
1008
1030
  },
1009
1031
  background: {
1010
- default: o ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
1011
- paper: o ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1012
- highlight: o ? d[200] : d[600],
1013
- highlightPrimary: o ? r[100] : r[500]
1032
+ default: r ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
1033
+ paper: r ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1034
+ highlight: r ? d[200] : d[600],
1035
+ highlightPrimary: r ? o[100] : o[500]
1014
1036
  },
1015
- divider: o ? f(_, 0.12) : f(M, 0.24),
1037
+ divider: r ? f(_, 0.12) : f(M, 0.24),
1016
1038
  categories: {
1017
- autoTransport: o ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1018
- billsUtilities: o ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
1019
- businessServices: o ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
1020
- education: o ? u.EDUCATION : p.EDUCATION,
1021
- entertainment: o ? u.ENTERTAINMENT : p.ENTERTAINMENT,
1022
- feesCharges: o ? u.FEES_CHARGES : p.FEES_CHARGES,
1023
- financial: o ? u.FINANCIAL : p.FINANCIAL,
1024
- foodDining: o ? u.FOOD_DINING : p.FOOD_DINING,
1025
- giftsDonations: o ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
1026
- healthFitness: o ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
1027
- home: o ? u.HOME : p.HOME,
1028
- income: o ? u.INCOME : p.INCOME,
1029
- investments: o ? u.INVESTMENTS : p.INVESTMENTS,
1030
- kids: o ? u.KIDS : p.KIDS,
1031
- others: o ? u.OTHERS : p.OTHERS,
1032
- personalCare: o ? u.PERSONAL_CARE : p.PERSONAL_CARE,
1033
- pets: o ? u.PETS : p.PETS,
1034
- shopping: o ? u.SHOPPING : p.SHOPPING,
1035
- taxes: o ? u.TAXES : p.TAXES,
1036
- transfer: o ? u.TRANSFER : p.TRANSFER,
1037
- travel: o ? u.TRAVEL : p.TRAVEL,
1038
- uncategorized: o ? u.UNCATEGORIZED : p.UNCATEGORIZED
1039
+ autoTransport: r ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1040
+ billsUtilities: r ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
1041
+ businessServices: r ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
1042
+ education: r ? u.EDUCATION : p.EDUCATION,
1043
+ entertainment: r ? u.ENTERTAINMENT : p.ENTERTAINMENT,
1044
+ feesCharges: r ? u.FEES_CHARGES : p.FEES_CHARGES,
1045
+ financial: r ? u.FINANCIAL : p.FINANCIAL,
1046
+ foodDining: r ? u.FOOD_DINING : p.FOOD_DINING,
1047
+ giftsDonations: r ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
1048
+ healthFitness: r ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
1049
+ home: r ? u.HOME : p.HOME,
1050
+ income: r ? u.INCOME : p.INCOME,
1051
+ investments: r ? u.INVESTMENTS : p.INVESTMENTS,
1052
+ kids: r ? u.KIDS : p.KIDS,
1053
+ others: r ? u.OTHERS : p.OTHERS,
1054
+ personalCare: r ? u.PERSONAL_CARE : p.PERSONAL_CARE,
1055
+ pets: r ? u.PETS : p.PETS,
1056
+ shopping: r ? u.SHOPPING : p.SHOPPING,
1057
+ taxes: r ? u.TAXES : p.TAXES,
1058
+ transfer: r ? u.TRANSFER : p.TRANSFER,
1059
+ travel: r ? u.TRAVEL : p.TRAVEL,
1060
+ uncategorized: r ? u.UNCATEGORIZED : p.UNCATEGORIZED
1039
1061
  },
1040
1062
  chart: {
1041
1063
  chart1: S.CHART1,
@@ -1115,11 +1137,11 @@ const Gt = ({
1115
1137
  ...e
1116
1138
  };
1117
1139
  };
1118
- He.setLicenseKey(
1140
+ ke.setLicenseKey(
1119
1141
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1120
1142
  );
1121
1143
  const Wt = (e, i) => {
1122
- const r = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions), l = [...$().shadows];
1144
+ const o = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions), l = [...$().shadows];
1123
1145
  return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", $({
1124
1146
  breakpoints: {
1125
1147
  values: {
@@ -1131,7 +1153,7 @@ const Wt = (e, i) => {
1131
1153
  }
1132
1154
  },
1133
1155
  cssVariables: !0,
1134
- palette: r,
1156
+ palette: o,
1135
1157
  shape: {
1136
1158
  borderRadius: i?.shapeOptions?.borderRadius || 4
1137
1159
  },
@@ -1155,8 +1177,8 @@ const Wt = (e, i) => {
1155
1177
  const c = n.severity || "info";
1156
1178
  let d = t.palette.mode === I.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
1157
1179
  if (n.variant === "filled") {
1158
- const o = c === "warning";
1159
- d = t.palette[c]?.[o ? 400 : 600];
1180
+ const r = c === "warning";
1181
+ d = t.palette[c]?.[r ? 400 : 600];
1160
1182
  }
1161
1183
  return {
1162
1184
  backgroundColor: d,
@@ -1241,7 +1263,7 @@ const Wt = (e, i) => {
1241
1263
  styleOverrides: {
1242
1264
  root: {
1243
1265
  "&.Mui-focusVisible": {
1244
- boxShadow: `inset 0 0 0 2px ${r.info.main}`
1266
+ boxShadow: `inset 0 0 0 2px ${o.info.main}`
1245
1267
  }
1246
1268
  }
1247
1269
  }
@@ -1403,7 +1425,7 @@ const Wt = (e, i) => {
1403
1425
  MuiFormLabel: {
1404
1426
  styleOverrides: {
1405
1427
  asterisk: {
1406
- color: r.error.main
1428
+ color: o.error.main
1407
1429
  }
1408
1430
  }
1409
1431
  },
@@ -1451,7 +1473,7 @@ const Wt = (e, i) => {
1451
1473
  borderRadius: 4
1452
1474
  },
1453
1475
  colorPrimary: {
1454
- backgroundColor: r.grey[300]
1476
+ backgroundColor: o.grey[300]
1455
1477
  }
1456
1478
  }
1457
1479
  },
@@ -1557,7 +1579,7 @@ const Wt = (e, i) => {
1557
1579
  },
1558
1580
  secondary: {
1559
1581
  fontSize: 11,
1560
- color: r.text.secondary
1582
+ color: o.text.secondary
1561
1583
  }
1562
1584
  }
1563
1585
  },
@@ -1578,7 +1600,7 @@ const Wt = (e, i) => {
1578
1600
  lineHeight: "inherit",
1579
1601
  top: -1,
1580
1602
  // This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
1581
- backgroundColor: r.background.default
1603
+ backgroundColor: o.background.default
1582
1604
  }
1583
1605
  }
1584
1606
  },
@@ -1748,7 +1770,7 @@ const Wt = (e, i) => {
1748
1770
  fontWeight: 600,
1749
1771
  "&.Mui-focusVisible": {
1750
1772
  outline: "none",
1751
- boxShadow: `inset 0 0 0 2px ${r.info.main}`,
1773
+ boxShadow: `inset 0 0 0 2px ${o.info.main}`,
1752
1774
  borderRadius: 4
1753
1775
  }
1754
1776
  }
@@ -1759,7 +1781,7 @@ const Wt = (e, i) => {
1759
1781
  root: {
1760
1782
  borderBottomStyle: "solid",
1761
1783
  borderBottomWidth: 1,
1762
- borderColor: r.divider,
1784
+ borderColor: o.divider,
1763
1785
  marginBottom: 8
1764
1786
  }
1765
1787
  }
@@ -1775,7 +1797,7 @@ const Wt = (e, i) => {
1775
1797
  },
1776
1798
  styleOverrides: {
1777
1799
  root: {
1778
- backgroundColor: r.background.paper
1800
+ backgroundColor: o.background.paper
1779
1801
  }
1780
1802
  }
1781
1803
  },
@@ -1790,13 +1812,13 @@ const Wt = (e, i) => {
1790
1812
  lineHeight: "16px",
1791
1813
  textTransform: "none",
1792
1814
  "&:focus-visible": {
1793
- outline: `2px solid ${r.info.main}`,
1815
+ outline: `2px solid ${o.info.main}`,
1794
1816
  outlineOffset: "2px"
1795
1817
  },
1796
1818
  "&:hover": {
1797
1819
  backgroundColor: f(
1798
1820
  t.palette.primary.main,
1799
- r.mode === I.LIGHT ? 0.1 : 0.2
1821
+ o.mode === I.LIGHT ? 0.1 : 0.2
1800
1822
  ),
1801
1823
  borderColor: t.palette.primary.main
1802
1824
  },
@@ -1820,19 +1842,19 @@ const Wt = (e, i) => {
1820
1842
  props: { color: "error" },
1821
1843
  style: {
1822
1844
  "&:hover": {
1823
- backgroundColor: f(r.error.main, r.mode === I.LIGHT ? 0.1 : 0.2),
1824
- borderColor: r.error.main
1845
+ backgroundColor: f(o.error.main, o.mode === I.LIGHT ? 0.1 : 0.2),
1846
+ borderColor: o.error.main
1825
1847
  },
1826
1848
  "&.Mui-selected": {
1827
- borderColor: r.error.main,
1849
+ borderColor: o.error.main,
1828
1850
  "&:hover": {
1829
- boxShadow: `inset 0px 0px 0px 2px ${r.error.main}`
1851
+ boxShadow: `inset 0px 0px 0px 2px ${o.error.main}`
1830
1852
  }
1831
1853
  },
1832
1854
  "& .MuiTouchRipple-root": {
1833
1855
  "& .MuiTouchRipple-ripple": {
1834
1856
  "& .MuiTouchRipple-child": {
1835
- backgroundColor: r.error.main
1857
+ backgroundColor: o.error.main
1836
1858
  }
1837
1859
  }
1838
1860
  }
@@ -1843,21 +1865,21 @@ const Wt = (e, i) => {
1843
1865
  style: {
1844
1866
  "&:hover": {
1845
1867
  backgroundColor: f(
1846
- r.secondary.main,
1847
- r.mode === I.LIGHT ? 0.1 : 0.2
1868
+ o.secondary.main,
1869
+ o.mode === I.LIGHT ? 0.1 : 0.2
1848
1870
  ),
1849
- borderColor: r.secondary.main
1871
+ borderColor: o.secondary.main
1850
1872
  },
1851
1873
  "&.Mui-selected": {
1852
- borderColor: r.secondary.main,
1874
+ borderColor: o.secondary.main,
1853
1875
  "&:hover": {
1854
- boxShadow: `inset 0px 0px 0px 2px ${r.secondary.main}`
1876
+ boxShadow: `inset 0px 0px 0px 2px ${o.secondary.main}`
1855
1877
  }
1856
1878
  },
1857
1879
  "& .MuiTouchRipple-root": {
1858
1880
  "& .MuiTouchRipple-ripple": {
1859
1881
  "& .MuiTouchRipple-child": {
1860
- backgroundColor: r.secondary.main
1882
+ backgroundColor: o.secondary.main
1861
1883
  }
1862
1884
  }
1863
1885
  }
@@ -1884,13 +1906,13 @@ const Wt = (e, i) => {
1884
1906
  });
1885
1907
  };
1886
1908
  export {
1887
- H as BaseIcon,
1888
- kt as BottomSheetTransition,
1909
+ k as BaseIcon,
1910
+ Ht as BottomSheetTransition,
1889
1911
  h as CategoryGuids,
1890
1912
  Pe as CategoryIcon,
1891
1913
  De as CategoryIconList,
1892
- ke as CategoryIconVariants,
1893
- Ht as DateRangePicker,
1914
+ He as CategoryIconVariants,
1915
+ kt as DateRangePicker,
1894
1916
  $e as DialogFooter,
1895
1917
  _t as DialogHeader,
1896
1918
  Bt as Drawer,