@mxenabled/mxui 2.2.9 → 2.4.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
@@ -34,7 +34,7 @@ import { LicenseInfo as ke } from "@mui/x-license";
34
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,13 +43,13 @@ const k = ({
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
55
  }) => /* @__PURE__ */ b(k, { ...i, children: [
@@ -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,7 +378,7 @@ 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
  ]
@@ -387,16 +387,16 @@ const te = {
387
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,
@@ -458,22 +458,22 @@ const te = {
458
458
  slots: {
459
459
  ...n && { layout: ze },
460
460
  leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
461
- shortcuts: (o) => n ? /* @__PURE__ */ a(
461
+ shortcuts: (r) => n ? /* @__PURE__ */ a(
462
462
  Be,
463
463
  {
464
464
  selectLabel: e.dateRangeSelectARange,
465
465
  selected: s,
466
- ...o
466
+ ...r
467
467
  }
468
- ) : /* @__PURE__ */ a(_e, { selected: s, ...o }),
468
+ ) : /* @__PURE__ */ a(_e, { selected: s, ...r }),
469
469
  rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
470
470
  ...n && {
471
- toolbar: (o) => /* @__PURE__ */ a(
471
+ toolbar: (r) => /* @__PURE__ */ a(
472
472
  Te,
473
473
  {
474
474
  dateSeparator: "",
475
475
  format: "MM/dd/yyyy",
476
- ...o,
476
+ ...r,
477
477
  slotProps: {
478
478
  textField: ({ position: m }) => ({
479
479
  label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
@@ -488,12 +488,12 @@ const te = {
488
488
  value: i
489
489
  }
490
490
  ) }) });
491
- }, Ht = N.forwardRef(function(i, r) {
492
- 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 });
493
493
  }), $e = ({
494
494
  hasSecondaryAction: e = !0,
495
495
  isPrimaryDisabled: i,
496
- onPrimaryAction: r,
496
+ onPrimaryAction: o,
497
497
  onSecondaryAction: s,
498
498
  primaryColor: l = "primary",
499
499
  primaryText: t = "Save",
@@ -512,16 +512,16 @@ const te = {
512
512
  {
513
513
  color: n,
514
514
  onClick: s,
515
- variant: r ? "outlined" : "contained",
515
+ variant: o ? "outlined" : "contained",
516
516
  children: c
517
517
  }
518
518
  ),
519
- r && /* @__PURE__ */ a(
519
+ o && /* @__PURE__ */ a(
520
520
  B,
521
521
  {
522
522
  color: l,
523
523
  disabled: i,
524
- onClick: r,
524
+ onClick: o,
525
525
  variant: "contained",
526
526
  children: t
527
527
  }
@@ -531,7 +531,7 @@ const te = {
531
531
  ), F = ({
532
532
  bold: e,
533
533
  className: i = "",
534
- children: r,
534
+ children: o,
535
535
  color: s,
536
536
  sx: l = {},
537
537
  truncate: t,
@@ -557,9 +557,9 @@ const te = {
557
557
  ...Array.isArray(l) ? l : [l]
558
558
  ],
559
559
  ...c,
560
- children: r
560
+ children: o
561
561
  }
562
- ), 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(
563
563
  A,
564
564
  {
565
565
  sx: {
@@ -577,24 +577,24 @@ const te = {
577
577
  ), Bt = ({
578
578
  className: e,
579
579
  disableSave: i,
580
- id: r,
580
+ id: o,
581
581
  isOpen: s,
582
582
  onClose: l,
583
583
  onSave: t,
584
584
  primaryText: n,
585
585
  secondaryText: c,
586
586
  children: d,
587
- ...o
587
+ ...r
588
588
  }) => /* @__PURE__ */ b(
589
589
  Ie,
590
590
  {
591
591
  anchor: "right",
592
592
  className: `mx-kmui-drawer ${e}`,
593
- id: r ?? void 0,
593
+ id: o ?? void 0,
594
594
  onClose: l,
595
595
  open: s,
596
596
  variant: "temporary",
597
- ...o,
597
+ ...r,
598
598
  children: [
599
599
  d,
600
600
  t && /* @__PURE__ */ a(
@@ -609,11 +609,11 @@ const te = {
609
609
  )
610
610
  ]
611
611
  }
612
- ), 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 = ({
613
613
  alt: e,
614
614
  institutionGuid: i,
615
- logoUrl: r,
616
- size: s = oe,
615
+ logoUrl: o,
616
+ size: s = re,
617
617
  ...l
618
618
  }) => /* @__PURE__ */ a(
619
619
  "img",
@@ -624,7 +624,7 @@ const te = {
624
624
  const n = t.target;
625
625
  n.src !== K && (n.src = K);
626
626
  },
627
- src: r || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
627
+ src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
628
628
  style: {
629
629
  borderRadius: 4
630
630
  },
@@ -634,20 +634,20 @@ const te = {
634
634
  ), $t = ({
635
635
  alt: e = "",
636
636
  categoryGuid: i,
637
- merchantGuid: r,
638
- size: s = oe,
637
+ merchantGuid: o,
638
+ size: s = re,
639
639
  ...l
640
640
  }) => {
641
641
  const [t, n] = N.useState(!1), c = E();
642
642
  return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
643
- r && !t && /* @__PURE__ */ a(
643
+ o && !t && /* @__PURE__ */ a(
644
644
  "img",
645
645
  {
646
646
  alt: e,
647
647
  "aria-hidden": !e,
648
648
  height: s,
649
649
  onError: () => n(!0),
650
- src: `${z}/merchant_logos/${r}.png`,
650
+ src: `${z}/merchant_logos/${o}.png`,
651
651
  style: {
652
652
  backgroundColor: c.palette.common.white,
653
653
  borderRadius: 4,
@@ -662,14 +662,14 @@ const te = {
662
662
  }, Ut = ({
663
663
  disabled: e = !1,
664
664
  label: i = "",
665
- shrink: r = !0,
665
+ shrink: o = !0,
666
666
  variant: s = "outlined",
667
667
  ...l
668
668
  }) => /* @__PURE__ */ a(
669
669
  J,
670
670
  {
671
671
  InputLabelProps: {
672
- shrink: r
672
+ shrink: o
673
673
  },
674
674
  disabled: e,
675
675
  label: i,
@@ -683,17 +683,17 @@ function Ge(e) {
683
683
  const Gt = ({
684
684
  open: e = !0,
685
685
  handleClose: i,
686
- closeAriaLabel: r,
686
+ closeAriaLabel: o,
687
687
  message: s,
688
688
  autoHideDuration: l = 3e3,
689
689
  severity: t = "success",
690
690
  snackbarSx: n,
691
691
  showAction: c = !1,
692
692
  showClose: d = !1,
693
- actionText: o = "Undo",
693
+ actionText: r = "Undo",
694
694
  onActionClick: m
695
695
  }) => {
696
- 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`;
697
697
  return /* @__PURE__ */ a(
698
698
  Ee,
699
699
  {
@@ -766,7 +766,7 @@ const Gt = ({
766
766
  minWidth: "auto",
767
767
  justifyContent: "flex-start"
768
768
  },
769
- children: o
769
+ children: r
770
770
  }
771
771
  )
772
772
  ]
@@ -779,23 +779,23 @@ const Gt = ({
779
779
  }, Vt = ({
780
780
  component: e = P,
781
781
  variant: i = "outlined",
782
- selected: r,
782
+ selected: o,
783
783
  onChange: s,
784
784
  headline: l,
785
785
  message: t,
786
786
  name: n,
787
787
  value: c,
788
788
  disabled: d = !1,
789
- error: o = !1,
789
+ error: r = !1,
790
790
  icon: m = !1,
791
791
  sx: T = {},
792
792
  ...v
793
793
  }) => {
794
- const g = E(), re = () => g.palette.background.paper, H = () => 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 ? H() : 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)}` : H(), 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);
795
795
  return /* @__PURE__ */ a(
796
796
  Fe,
797
797
  {
798
- checked: r,
798
+ checked: o,
799
799
  control: e === P ? /* @__PURE__ */ a(
800
800
  P,
801
801
  {
@@ -846,7 +846,7 @@ const Gt = ({
846
846
  mb: 16,
847
847
  cursor: d ? "not-allowed" : "pointer",
848
848
  opacity: d ? 0.6 : 1,
849
- backgroundColor: re(),
849
+ backgroundColor: oe(),
850
850
  border: "none",
851
851
  boxShadow: H(),
852
852
  boxSizing: "border-box",
@@ -952,7 +952,7 @@ const Gt = ({
952
952
  TRAVEL: "#76ACF7",
953
953
  UNCATEGORIZED: "#BCC6D4"
954
954
  }, je = (e, i) => {
955
- 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;
956
956
  return {
957
957
  mode: e,
958
958
  common: {
@@ -960,90 +960,104 @@ const Gt = ({
960
960
  black: _
961
961
  },
962
962
  primary: {
963
- ...r,
964
- light: o ? r[300] : r[600],
965
- main: o ? r[500] : r[400],
966
- 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]
967
969
  },
968
970
  secondary: {
969
971
  ...s,
970
- light: o ? s[300] : s[600],
971
- main: o ? s[500] : s[400],
972
- 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]
973
977
  },
974
978
  neutral: {
975
979
  ...d,
976
- light: o ? d[300] : d[600],
977
- main: o ? d[500] : d[400],
978
- dark: o ? d[700] : d[200],
979
- 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]
980
986
  },
981
987
  text: {
982
- primary: o ? d[900] : M,
983
- secondary: o ? d[600] : f(M, 0.7),
984
- 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)
985
991
  },
986
992
  error: {
987
993
  ...l,
988
- light: o ? l[300] : l[600],
989
- main: o ? l[500] : l[400],
990
- 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]
991
999
  },
992
1000
  warning: {
993
1001
  ...t,
994
- light: o ? t[300] : t[600],
995
- main: o ? t[500] : t[400],
996
- 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]
997
1007
  },
998
1008
  info: {
999
1009
  ...n,
1000
- light: o ? n[300] : n[600],
1001
- main: o ? n[500] : n[400],
1002
- 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]
1003
1015
  },
1004
1016
  success: {
1005
1017
  ...c,
1006
- light: o ? c[300] : c[600],
1007
- main: o ? c[500] : c[400],
1008
- 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]
1009
1023
  },
1010
1024
  grey: d,
1011
1025
  action: {
1012
- active: o ? f(_, 0.56) : f(M, 0.56),
1013
- hoverOpacity: o ? 0.1 : 0.2,
1014
- 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,
1015
1029
  focusOpacity: 0.3
1016
1030
  },
1017
1031
  background: {
1018
- default: o ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
1019
- paper: o ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1020
- highlight: o ? d[200] : d[600],
1021
- 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]
1022
1036
  },
1023
- divider: o ? f(_, 0.12) : f(M, 0.24),
1037
+ divider: r ? f(_, 0.12) : f(M, 0.24),
1024
1038
  categories: {
1025
- autoTransport: o ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1026
- billsUtilities: o ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
1027
- businessServices: o ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
1028
- education: o ? u.EDUCATION : p.EDUCATION,
1029
- entertainment: o ? u.ENTERTAINMENT : p.ENTERTAINMENT,
1030
- feesCharges: o ? u.FEES_CHARGES : p.FEES_CHARGES,
1031
- financial: o ? u.FINANCIAL : p.FINANCIAL,
1032
- foodDining: o ? u.FOOD_DINING : p.FOOD_DINING,
1033
- giftsDonations: o ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
1034
- healthFitness: o ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
1035
- home: o ? u.HOME : p.HOME,
1036
- income: o ? u.INCOME : p.INCOME,
1037
- investments: o ? u.INVESTMENTS : p.INVESTMENTS,
1038
- kids: o ? u.KIDS : p.KIDS,
1039
- others: o ? u.OTHERS : p.OTHERS,
1040
- personalCare: o ? u.PERSONAL_CARE : p.PERSONAL_CARE,
1041
- pets: o ? u.PETS : p.PETS,
1042
- shopping: o ? u.SHOPPING : p.SHOPPING,
1043
- taxes: o ? u.TAXES : p.TAXES,
1044
- transfer: o ? u.TRANSFER : p.TRANSFER,
1045
- travel: o ? u.TRAVEL : p.TRAVEL,
1046
- 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
1047
1061
  },
1048
1062
  chart: {
1049
1063
  chart1: S.CHART1,
@@ -1127,7 +1141,7 @@ ke.setLicenseKey(
1127
1141
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1128
1142
  );
1129
1143
  const Wt = (e, i) => {
1130
- 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];
1131
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)", $({
1132
1146
  breakpoints: {
1133
1147
  values: {
@@ -1139,12 +1153,12 @@ const Wt = (e, i) => {
1139
1153
  }
1140
1154
  },
1141
1155
  cssVariables: !0,
1142
- palette: r,
1156
+ palette: o,
1143
1157
  shape: {
1144
1158
  borderRadius: i?.shapeOptions?.borderRadius || 4
1145
1159
  },
1146
1160
  shadows: l,
1147
- spacing: 1,
1161
+ ...i?.useMUIStandardSpacing ? {} : { spacing: 1 },
1148
1162
  // TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
1149
1163
  typography: s,
1150
1164
  components: {
@@ -1163,8 +1177,8 @@ const Wt = (e, i) => {
1163
1177
  const c = n.severity || "info";
1164
1178
  let d = t.palette.mode === I.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
1165
1179
  if (n.variant === "filled") {
1166
- const o = c === "warning";
1167
- d = t.palette[c]?.[o ? 400 : 600];
1180
+ const r = c === "warning";
1181
+ d = t.palette[c]?.[r ? 400 : 600];
1168
1182
  }
1169
1183
  return {
1170
1184
  backgroundColor: d,
@@ -1249,7 +1263,7 @@ const Wt = (e, i) => {
1249
1263
  styleOverrides: {
1250
1264
  root: {
1251
1265
  "&.Mui-focusVisible": {
1252
- boxShadow: `inset 0 0 0 2px ${r.info.main}`
1266
+ boxShadow: `inset 0 0 0 2px ${o.info.main}`
1253
1267
  }
1254
1268
  }
1255
1269
  }
@@ -1411,7 +1425,7 @@ const Wt = (e, i) => {
1411
1425
  MuiFormLabel: {
1412
1426
  styleOverrides: {
1413
1427
  asterisk: {
1414
- color: r.error.main
1428
+ color: o.error.main
1415
1429
  }
1416
1430
  }
1417
1431
  },
@@ -1459,7 +1473,7 @@ const Wt = (e, i) => {
1459
1473
  borderRadius: 4
1460
1474
  },
1461
1475
  colorPrimary: {
1462
- backgroundColor: r.grey[300]
1476
+ backgroundColor: o.grey[300]
1463
1477
  }
1464
1478
  }
1465
1479
  },
@@ -1565,7 +1579,7 @@ const Wt = (e, i) => {
1565
1579
  },
1566
1580
  secondary: {
1567
1581
  fontSize: 11,
1568
- color: r.text.secondary
1582
+ color: o.text.secondary
1569
1583
  }
1570
1584
  }
1571
1585
  },
@@ -1586,7 +1600,7 @@ const Wt = (e, i) => {
1586
1600
  lineHeight: "inherit",
1587
1601
  top: -1,
1588
1602
  // This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
1589
- backgroundColor: r.background.default
1603
+ backgroundColor: o.background.default
1590
1604
  }
1591
1605
  }
1592
1606
  },
@@ -1756,7 +1770,7 @@ const Wt = (e, i) => {
1756
1770
  fontWeight: 600,
1757
1771
  "&.Mui-focusVisible": {
1758
1772
  outline: "none",
1759
- boxShadow: `inset 0 0 0 2px ${r.info.main}`,
1773
+ boxShadow: `inset 0 0 0 2px ${o.info.main}`,
1760
1774
  borderRadius: 4
1761
1775
  }
1762
1776
  }
@@ -1767,7 +1781,7 @@ const Wt = (e, i) => {
1767
1781
  root: {
1768
1782
  borderBottomStyle: "solid",
1769
1783
  borderBottomWidth: 1,
1770
- borderColor: r.divider,
1784
+ borderColor: o.divider,
1771
1785
  marginBottom: 8
1772
1786
  }
1773
1787
  }
@@ -1783,7 +1797,7 @@ const Wt = (e, i) => {
1783
1797
  },
1784
1798
  styleOverrides: {
1785
1799
  root: {
1786
- backgroundColor: r.background.paper
1800
+ backgroundColor: o.background.paper
1787
1801
  }
1788
1802
  }
1789
1803
  },
@@ -1798,13 +1812,13 @@ const Wt = (e, i) => {
1798
1812
  lineHeight: "16px",
1799
1813
  textTransform: "none",
1800
1814
  "&:focus-visible": {
1801
- outline: `2px solid ${r.info.main}`,
1815
+ outline: `2px solid ${o.info.main}`,
1802
1816
  outlineOffset: "2px"
1803
1817
  },
1804
1818
  "&:hover": {
1805
1819
  backgroundColor: f(
1806
1820
  t.palette.primary.main,
1807
- r.mode === I.LIGHT ? 0.1 : 0.2
1821
+ o.mode === I.LIGHT ? 0.1 : 0.2
1808
1822
  ),
1809
1823
  borderColor: t.palette.primary.main
1810
1824
  },
@@ -1828,19 +1842,19 @@ const Wt = (e, i) => {
1828
1842
  props: { color: "error" },
1829
1843
  style: {
1830
1844
  "&:hover": {
1831
- backgroundColor: f(r.error.main, r.mode === I.LIGHT ? 0.1 : 0.2),
1832
- borderColor: r.error.main
1845
+ backgroundColor: f(o.error.main, o.mode === I.LIGHT ? 0.1 : 0.2),
1846
+ borderColor: o.error.main
1833
1847
  },
1834
1848
  "&.Mui-selected": {
1835
- borderColor: r.error.main,
1849
+ borderColor: o.error.main,
1836
1850
  "&:hover": {
1837
- boxShadow: `inset 0px 0px 0px 2px ${r.error.main}`
1851
+ boxShadow: `inset 0px 0px 0px 2px ${o.error.main}`
1838
1852
  }
1839
1853
  },
1840
1854
  "& .MuiTouchRipple-root": {
1841
1855
  "& .MuiTouchRipple-ripple": {
1842
1856
  "& .MuiTouchRipple-child": {
1843
- backgroundColor: r.error.main
1857
+ backgroundColor: o.error.main
1844
1858
  }
1845
1859
  }
1846
1860
  }
@@ -1851,21 +1865,21 @@ const Wt = (e, i) => {
1851
1865
  style: {
1852
1866
  "&:hover": {
1853
1867
  backgroundColor: f(
1854
- r.secondary.main,
1855
- r.mode === I.LIGHT ? 0.1 : 0.2
1868
+ o.secondary.main,
1869
+ o.mode === I.LIGHT ? 0.1 : 0.2
1856
1870
  ),
1857
- borderColor: r.secondary.main
1871
+ borderColor: o.secondary.main
1858
1872
  },
1859
1873
  "&.Mui-selected": {
1860
- borderColor: r.secondary.main,
1874
+ borderColor: o.secondary.main,
1861
1875
  "&:hover": {
1862
- boxShadow: `inset 0px 0px 0px 2px ${r.secondary.main}`
1876
+ boxShadow: `inset 0px 0px 0px 2px ${o.secondary.main}`
1863
1877
  }
1864
1878
  },
1865
1879
  "& .MuiTouchRipple-root": {
1866
1880
  "& .MuiTouchRipple-ripple": {
1867
1881
  "& .MuiTouchRipple-child": {
1868
- backgroundColor: r.secondary.main
1882
+ backgroundColor: o.secondary.main
1869
1883
  }
1870
1884
  }
1871
1885
  }