@mxenabled/mxui 1.5.13-alpha.al0 → 1.5.14

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
@@ -17,8 +17,8 @@ import { AdapterDateFns as Ce } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
17
17
  import { MultiInputDateRangeField as xe } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
18
  import j from "@mui/material/Box";
19
19
  import Re from "@mui/material/ToggleButton";
20
- import Me from "@mui/material/ToggleButtonGroup";
21
- import Ae from "@mui/material/MenuItem";
20
+ import Ae from "@mui/material/ToggleButtonGroup";
21
+ import Me from "@mui/material/MenuItem";
22
22
  import Q from "@mui/material/TextField";
23
23
  import { usePickerLayout as Ee, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ie, pickersLayoutClasses as P } from "@mui/x-date-pickers/PickersLayout";
24
24
  import J from "@mui/material/Slide";
@@ -27,9 +27,9 @@ import q from "@mui/material/IconButton";
27
27
  import ve from "@mui/material/Typography";
28
28
  import ye from "@mui/material/Drawer";
29
29
  import He from "@mui/material/Snackbar";
30
- import Fe from "@mui/material/Alert";
31
- import { light as ee, buildTheme as $, dark as Oe } from "@mxenabled/design-tokens";
32
- import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Le, alpha as b, darken as D, lighten as F, getContrastRatio as De } from "@mui/material";
30
+ import Le from "@mui/material/Alert";
31
+ import { light as ee, buildTheme as G, dark as Fe } from "@mxenabled/design-tokens";
32
+ import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as Oe, alpha as b, darken as D, lighten as L, getContrastRatio as De } from "@mui/material";
33
33
  import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
34
34
  import { LicenseInfo as we } from "@mui/x-license-pro";
35
35
  const f = ({
@@ -127,7 +127,7 @@ const R = ({
127
127
  d: "M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm4.358 5.151a.5.5 0 00-.707-.01L6.858 9.803 4.35 7.363a.5.5 0 10-.698.718l2.858 2.777a.5.5 0 00.697 0l5.142-5a.5.5 0 00.01-.707z",
128
128
  fill: e
129
129
  }
130
- ) })), $0 = ({
130
+ ) })), G0 = ({
131
131
  color: e = "currentColor",
132
132
  ...o
133
133
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -136,7 +136,7 @@ const R = ({
136
136
  d: "M2.68 5.201a.6.6 0 01.848-.011L8 9.543l4.472-4.353a.6.6 0 11.837.86l-4.89 4.76a.6.6 0 01-.838 0l-4.89-4.76a.6.6 0 01-.012-.849z",
137
137
  fill: e
138
138
  }
139
- ) })), G0 = ({
139
+ ) })), $0 = ({
140
140
  color: e = "currentColor",
141
141
  ...o
142
142
  }) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
@@ -283,109 +283,109 @@ const R = ({
283
283
  }
284
284
  )
285
285
  ] });
286
- var g = /* @__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))(g || {}), _e = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(_e || {});
286
+ var h = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(h || {}), _e = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(_e || {});
287
287
  const oe = {
288
- guid: g.Uncategorized,
288
+ guid: h.Uncategorized,
289
289
  colorName: "uncategorized",
290
290
  icon: "category"
291
291
  }, Be = [
292
292
  {
293
- guid: g.AutoTransport,
293
+ guid: h.AutoTransport,
294
294
  colorName: "autoTransport",
295
295
  icon: "directions_car"
296
296
  },
297
297
  {
298
- guid: g.BillsUtilities,
298
+ guid: h.BillsUtilities,
299
299
  colorName: "billsUtilities",
300
300
  icon: "electrical_services"
301
301
  },
302
302
  {
303
- guid: g.BusinessServices,
303
+ guid: h.BusinessServices,
304
304
  colorName: "businessServices",
305
305
  icon: "business_center"
306
306
  },
307
307
  {
308
- guid: g.Education,
308
+ guid: h.Education,
309
309
  colorName: "education",
310
310
  icon: "school"
311
311
  },
312
312
  {
313
- guid: g.Entertainment,
313
+ guid: h.Entertainment,
314
314
  colorName: "entertainment",
315
315
  icon: "stadium"
316
316
  },
317
317
  {
318
- guid: g.FeesCharges,
318
+ guid: h.FeesCharges,
319
319
  colorName: "feesCharges",
320
320
  icon: "problem"
321
321
  },
322
322
  {
323
- guid: g.Financial,
323
+ guid: h.Financial,
324
324
  colorName: "financial",
325
325
  icon: "price_check"
326
326
  },
327
327
  {
328
- guid: g.FoodDining,
328
+ guid: h.FoodDining,
329
329
  colorName: "foodDining",
330
330
  icon: "grocery"
331
331
  },
332
332
  {
333
- guid: g.GiftsDonations,
333
+ guid: h.GiftsDonations,
334
334
  colorName: "giftsDonations",
335
335
  icon: "featured_seasonal_and_gifts"
336
336
  },
337
337
  {
338
- guid: g.HealthFitness,
338
+ guid: h.HealthFitness,
339
339
  colorName: "healthFitness",
340
340
  icon: "ecg_heart"
341
341
  },
342
342
  {
343
- guid: g.Home,
343
+ guid: h.Home,
344
344
  colorName: "home",
345
345
  icon: "cottage"
346
346
  },
347
347
  {
348
- guid: g.Income,
348
+ guid: h.Income,
349
349
  colorName: "income",
350
350
  icon: "monetization_on"
351
351
  },
352
352
  {
353
- guid: g.Investments,
353
+ guid: h.Investments,
354
354
  colorName: "investments",
355
355
  icon: "bid_landscape"
356
356
  },
357
357
  {
358
- guid: g.Kids,
358
+ guid: h.Kids,
359
359
  colorName: "kids",
360
360
  icon: "face"
361
361
  },
362
362
  {
363
- guid: g.PersonalCare,
363
+ guid: h.PersonalCare,
364
364
  colorName: "personalCare",
365
365
  icon: "volunteer_activism"
366
366
  },
367
367
  {
368
- guid: g.Pets,
368
+ guid: h.Pets,
369
369
  colorName: "pets",
370
370
  icon: "pet_supplies"
371
371
  },
372
372
  {
373
- guid: g.Shopping,
373
+ guid: h.Shopping,
374
374
  colorName: "shopping",
375
375
  icon: "shopping_cart"
376
376
  },
377
377
  {
378
- guid: g.Taxes,
378
+ guid: h.Taxes,
379
379
  colorName: "taxes",
380
380
  icon: "heap_snapshot_large"
381
381
  },
382
382
  {
383
- guid: g.Transfer,
383
+ guid: h.Transfer,
384
384
  colorName: "transfer",
385
385
  icon: "compare_arrows"
386
386
  },
387
387
  {
388
- guid: g.Travel,
388
+ guid: h.Travel,
389
389
  colorName: "travel",
390
390
  icon: "airplane_ticket"
391
391
  },
@@ -398,7 +398,7 @@ const oe = {
398
398
  variant: c = "filled"
399
399
  }) => {
400
400
  const r = H(), n = x.useMemo(
401
- () => Be.find((u) => u.guid === e) ?? oe,
401
+ () => Be.find((m) => m.guid === e) ?? oe,
402
402
  [e]
403
403
  ), s = r.palette.categories[n.colorName];
404
404
  return /* @__PURE__ */ a(
@@ -406,13 +406,13 @@ const oe = {
406
406
  {
407
407
  alignItems: "center",
408
408
  bgcolor: () => {
409
- let u = s;
410
- return c === "twotone" && (u = `${u}20`), c === "transparent" || c === "basic" ? "transparent" : u;
409
+ let m = s;
410
+ return c === "twotone" && (m = `${m}20`), c === "transparent" || c === "basic" ? "transparent" : m;
411
411
  },
412
412
  borderRadius: 1,
413
413
  color: () => {
414
- const u = c === "filled" ? r.palette.common.white : s;
415
- return c === "basic" ? r.palette.text.primary : u;
414
+ const m = c === "filled" ? r.palette.common.white : s;
415
+ return c === "basic" ? r.palette.text.primary : m;
416
416
  },
417
417
  height: i,
418
418
  justifyContent: "center",
@@ -421,7 +421,7 @@ const oe = {
421
421
  children: /* @__PURE__ */ a(R, { name: n.icon, size: i * o })
422
422
  }
423
423
  );
424
- }, $e = ({
424
+ }, Ge = ({
425
425
  items: e,
426
426
  onChange: o,
427
427
  isValid: i,
@@ -437,7 +437,7 @@ const oe = {
437
437
  disabled: !i(s)
438
438
  };
439
439
  });
440
- return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Me, { color: "primary", orientation: "vertical", value: l, children: r?.map((n) => /* @__PURE__ */ a(
440
+ return /* @__PURE__ */ a(j, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Ae, { color: "primary", orientation: "vertical", value: l, children: r?.map((n) => /* @__PURE__ */ a(
441
441
  Re,
442
442
  {
443
443
  onClick: n.onClick,
@@ -465,7 +465,7 @@ const oe = {
465
465
  },
466
466
  n.label
467
467
  )) }) });
468
- }, Ge = ({
468
+ }, $e = ({
469
469
  items: e,
470
470
  onChange: o,
471
471
  isValid: i,
@@ -496,7 +496,7 @@ const oe = {
496
496
  sx: { width: "100%" },
497
497
  value: l,
498
498
  variant: "outlined",
499
- children: r?.map((n) => /* @__PURE__ */ a(Ae, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
499
+ children: r?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
500
500
  }
501
501
  ) });
502
502
  }, Ue = (e) => {
@@ -536,7 +536,7 @@ const oe = {
536
536
  sx: c = {}
537
537
  }) => {
538
538
  const r = H(), n = fe(r.breakpoints.down("sm")), s = x.useMemo(() => {
539
- const t = he(), u = ge(t, 1), C = me(t, 1);
539
+ const t = he(), m = ge(t, 1), C = me(t, 1);
540
540
  return [
541
541
  {
542
542
  label: e.dateRangeThisMonth,
@@ -544,7 +544,7 @@ const oe = {
544
544
  },
545
545
  {
546
546
  label: e.dateRangeLastMonth,
547
- getValue: () => [Z(u), W(u)]
547
+ getValue: () => [Z(m), W(m)]
548
548
  },
549
549
  {
550
550
  label: e.dateRangeLast30Days,
@@ -567,8 +567,8 @@ const oe = {
567
567
  getValue: () => [t, t]
568
568
  }
569
569
  ];
570
- }, [e]), d = (t, u) => {
571
- const C = u.shortcut;
570
+ }, [e]), d = (t, m) => {
571
+ const C = m.shortcut;
572
572
  i?.(t, C ? C.label : e.dateRangeCustom);
573
573
  };
574
574
  return /* @__PURE__ */ a(I, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
@@ -595,13 +595,13 @@ const oe = {
595
595
  ...n && { layout: Ue },
596
596
  leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
597
597
  shortcuts: (t) => n ? /* @__PURE__ */ a(
598
- Ge,
598
+ $e,
599
599
  {
600
600
  selectLabel: e.dateRangeSelectARange,
601
601
  selected: l,
602
602
  ...t
603
603
  }
604
- ) : /* @__PURE__ */ a($e, { selected: l, ...t }),
604
+ ) : /* @__PURE__ */ a(Ge, { selected: l, ...t }),
605
605
  rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
606
606
  ...n && {
607
607
  toolbar: (t) => /* @__PURE__ */ a(
@@ -610,8 +610,8 @@ const oe = {
610
610
  dateSeparator: "",
611
611
  ...t,
612
612
  slotProps: {
613
- textField: ({ position: u }) => ({
614
- label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
613
+ textField: ({ position: m }) => ({
614
+ label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
615
615
  })
616
616
  },
617
617
  sx: { gap: 8 }
@@ -788,7 +788,7 @@ const oe = {
788
788
  )
789
789
  ]
790
790
  }
791
- ), re = 32, G = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${G}/serenity/default_institution_logo.png`, no = ({
791
+ ), re = 32, $ = "https://content.moneydesktop.com/storage/MD_Assets", Ke = `${$}/serenity/default_institution_logo.png`, no = ({
792
792
  alt: e,
793
793
  institutionGuid: o,
794
794
  logoUrl: i,
@@ -800,7 +800,7 @@ const oe = {
800
800
  alt: e,
801
801
  height: l,
802
802
  onError: (r) => r.target.src = Ke,
803
- src: i || `${G}/Ipad%20Logos/100x100/${o}_100x100.png`,
803
+ src: i || `${$}/Ipad%20Logos/100x100/${o}_100x100.png`,
804
804
  style: {
805
805
  borderRadius: 4
806
806
  },
@@ -823,7 +823,7 @@ const oe = {
823
823
  "aria-hidden": !e,
824
824
  height: l,
825
825
  onError: () => n(!0),
826
- src: `${G}/merchant_logos/${i}.png`,
826
+ src: `${$}/merchant_logos/${i}.png`,
827
827
  style: {
828
828
  backgroundColor: s.palette.common.white,
829
829
  borderRadius: 4,
@@ -857,109 +857,103 @@ function Ye(e) {
857
857
  return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
858
858
  }
859
859
  const so = ({
860
- open: e,
860
+ open: e = !0,
861
861
  handleClose: o,
862
- message: i,
863
- autoHideDuration: l = 3e3,
864
- severity: c = "success",
865
- snackbarSx: r,
866
- showAction: n = !1,
867
- showClose: s = !1,
868
- actionText: d = "Undo",
869
- onActionClick: t,
870
- multiLine: u = !1
862
+ closeAriaLabel: i,
863
+ message: l,
864
+ autoHideDuration: c = 3e3,
865
+ severity: r = "success",
866
+ snackbarSx: n,
867
+ showAction: s = !1,
868
+ showClose: d = !1,
869
+ actionText: t = "Undo",
870
+ onActionClick: m
871
871
  }) => {
872
- const C = H(), L = /* @__PURE__ */ T(
873
- I,
874
- {
875
- alignItems: u ? "flex-end" : "center",
876
- direction: u ? "column-reverse" : "row",
877
- justifyContent: (
878
- // eslint-disable-next-line no-nested-ternary
879
- u && n && s ? "space-between" : "flex-end"
880
- ),
881
- children: [
882
- n && /* @__PURE__ */ a(
883
- V,
884
- {
885
- color: "inherit",
886
- onClick: t || o,
887
- size: "small",
888
- sx: {
889
- color: C.palette.success.contrastText,
890
- height: 44
891
- },
892
- children: d
893
- }
894
- ),
895
- s && /* @__PURE__ */ a(
896
- q,
897
- {
898
- "aria-label": "close",
899
- color: "inherit",
900
- onClick: o,
901
- sx: { height: 44, width: 44 },
902
- children: /* @__PURE__ */ a(R, { fill: !0, name: "close", size: 24, weight: 400 })
903
- }
904
- )
905
- ]
906
- }
907
- );
872
+ const C = H(), O = d && /* @__PURE__ */ a(q, { "aria-label": i, color: "inherit", onClick: o, size: "small", children: /* @__PURE__ */ a(R, { fill: !0, name: "close" }) }), g = `${r}.main`;
908
873
  return /* @__PURE__ */ a(
909
874
  He,
910
875
  {
911
876
  TransitionComponent: Ye,
912
877
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
913
- autoHideDuration: l,
878
+ autoHideDuration: c,
914
879
  onClose: o,
915
880
  open: e,
916
881
  sx: {
917
- ...r,
918
- width: u ? 400 : 325
882
+ ...n,
883
+ maxWidth: 568,
884
+ minWidth: 288,
885
+ minHeight: 56
919
886
  },
920
887
  children: /* @__PURE__ */ a(
921
- Fe,
888
+ Le,
922
889
  {
923
- action: L,
924
- severity: c,
890
+ action: O,
891
+ severity: r,
925
892
  sx: {
893
+ backgroundColor: g,
926
894
  display: "flex",
927
- alignItems: "stretch",
928
- minHeight: s && n && u ? 120 : 56,
929
- maxHeight: u ? 120 : 56,
930
895
  width: "100%",
931
- "& .MuiAlert-icon": {
932
- alignSelf: u ? "flex-start" : "center"
933
- },
896
+ py: 8,
934
897
  "& .MuiAlert-message": {
935
- paddingTop: u ? 12 : 8,
936
- paddingBottom: u ? 12 : 8,
937
- alignSelf: u ? "flex-start" : "center"
898
+ my: 0,
899
+ flex: 1,
900
+ overflow: "hidden"
938
901
  },
939
902
  "& .MuiAlert-action": {
940
- alignItems: "stretch",
941
- height: "auto"
903
+ alignItems: d ? "flex-start" : "center"
942
904
  }
943
905
  },
944
906
  variant: "filled",
945
- children: /* @__PURE__ */ a(
946
- k,
907
+ children: /* @__PURE__ */ T(
908
+ I,
947
909
  {
948
910
  sx: {
949
- lineHeight: C.typography.body1.lineHeight,
950
- whiteSpace: u ? "normal" : "nowrap",
951
- overflow: u ? "visible" : "hidden",
952
- textOverflow: u ? "clip" : "ellipsis"
911
+ flexDirection: "row",
912
+ flexWrap: "wrap",
913
+ alignItems: "baseline",
914
+ justifyContent: "space-between",
915
+ width: "100%",
916
+ rowGap: "16px",
917
+ columnGap: "16px"
953
918
  },
954
- truncate: !u,
955
- children: i
919
+ children: [
920
+ /* @__PURE__ */ a(
921
+ k,
922
+ {
923
+ sx: {
924
+ lineHeight: C.typography.body1.lineHeight,
925
+ flex: 1,
926
+ minWidth: "70%",
927
+ px: 5
928
+ },
929
+ truncate: !1,
930
+ children: l
931
+ }
932
+ ),
933
+ s && /* @__PURE__ */ a(
934
+ V,
935
+ {
936
+ color: "inherit",
937
+ onClick: m || o,
938
+ size: "small",
939
+ sx: {
940
+ color: C.palette.success.contrastText,
941
+ whiteSpace: "nowrap",
942
+ flexShrink: 0,
943
+ minWidth: "auto",
944
+ justifyContent: "flex-start"
945
+ },
946
+ children: t
947
+ }
948
+ )
949
+ ]
956
950
  }
957
951
  )
958
952
  }
959
953
  )
960
954
  }
961
955
  );
962
- }, O = {
956
+ }, F = {
963
957
  REACT: "react",
964
958
  REACT_NATIVE: "react_native",
965
959
  NATIVE: "native"
@@ -967,23 +961,23 @@ const so = ({
967
961
  LIGHT: "light",
968
962
  DARK: "dark"
969
963
  }, te = x.createContext(ee), ie = x.createContext(
970
- $(N.LIGHT, O.REACT_NATIVE)
964
+ G(N.LIGHT, F.REACT_NATIVE)
971
965
  ), uo = ({
972
966
  children: e,
973
- target: o = O.REACT,
967
+ target: o = F.REACT,
974
968
  theme: i = N.LIGHT,
975
969
  tokenOverrides: l
976
970
  }) => {
977
- const [c, r] = x.useState(i === N.LIGHT ? ee : Oe), n = x.useMemo(() => ({
971
+ const [c, r] = x.useState(i === N.LIGHT ? ee : Fe), n = x.useMemo(() => ({
978
972
  ...l
979
973
  }), [l]);
980
974
  return x.useEffect(() => {
981
- const s = $(i, o, { ...n });
975
+ const s = G(i, o, { ...n });
982
976
  r(s);
983
- }, [i, o, n]), o === O.REACT ? /* @__PURE__ */ a(te.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
984
- }, po = (e = O.REACT, o = {}) => {
985
- const i = e === O.REACT ? te : ie, l = x.useContext(i);
986
- return l || $(N.LIGHT, e, { ...o });
977
+ }, [i, o, n]), o === F.REACT ? /* @__PURE__ */ a(te.Provider, { value: c, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: c, children: e }));
978
+ }, po = (e = F.REACT, o = {}) => {
979
+ const i = e === F.REACT ? te : ie, l = x.useContext(i);
980
+ return l || G(N.LIGHT, e, { ...o });
987
981
  }, ho = ({
988
982
  component: e = B,
989
983
  variant: o = "outlined",
@@ -995,11 +989,11 @@ const so = ({
995
989
  value: s,
996
990
  disabled: d = !1,
997
991
  error: t = !1,
998
- icon: u = !1,
992
+ icon: m = !1,
999
993
  sx: C = {},
1000
- ...L
994
+ ...O
1001
995
  }) => {
1002
- const m = H(), ae = () => m.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : m.shadows[1], ne = () => d || t ? m.palette.background.paper : b(m.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
996
+ const g = H(), ae = () => g.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${g.palette.error.main}` : d ? i ? `inset 0px 0px 0px 2px ${g.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${g.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${g.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : g.shadows[1], ne = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.1), le = () => d || t ? w() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${b(g.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${b(g.palette.primary.main, 0.5)}` : w(), ce = () => d || t ? g.palette.background.paper : b(g.palette.primary.main, 0.3);
1003
997
  return /* @__PURE__ */ a(
1004
998
  ke,
1005
999
  {
@@ -1017,10 +1011,10 @@ const so = ({
1017
1011
  fontSize: "20px"
1018
1012
  }
1019
1013
  },
1020
- ...L
1014
+ ...O
1021
1015
  }
1022
1016
  ) : /* @__PURE__ */ a(
1023
- Le,
1017
+ Oe,
1024
1018
  {
1025
1019
  name: n,
1026
1020
  sx: {
@@ -1032,12 +1026,12 @@ const so = ({
1032
1026
  fontSize: "20px"
1033
1027
  }
1034
1028
  },
1035
- ...L
1029
+ ...O
1036
1030
  }
1037
1031
  ),
1038
1032
  disabled: d,
1039
1033
  label: /* @__PURE__ */ T(_, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
1040
- u && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
1034
+ m && /* @__PURE__ */ a(_, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
1041
1035
  /* @__PURE__ */ T(_, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
1042
1036
  c && /* @__PURE__ */ a(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: c }),
1043
1037
  /* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
@@ -1050,7 +1044,7 @@ const so = ({
1050
1044
  padding: "6px 16px",
1051
1045
  alignItems: "flex-start",
1052
1046
  justifyContent: "space-between",
1053
- borderRadius: m.shape.borderRadius / 2,
1047
+ borderRadius: g.shape.borderRadius / 2,
1054
1048
  mb: 16,
1055
1049
  cursor: d ? "not-allowed" : "pointer",
1056
1050
  opacity: d ? 0.6 : 1,
@@ -1058,8 +1052,8 @@ const so = ({
1058
1052
  border: "none",
1059
1053
  boxShadow: w(),
1060
1054
  boxSizing: "border-box",
1061
- transition: m.transitions.create(["background-color", "box-shadow"], {
1062
- duration: m.transitions.duration.short
1055
+ transition: g.transitions.create(["background-color", "box-shadow"], {
1056
+ duration: g.transitions.duration.short
1063
1057
  }),
1064
1058
  "&:hover": {
1065
1059
  backgroundColor: ne(),
@@ -1069,7 +1063,7 @@ const so = ({
1069
1063
  backgroundColor: ce()
1070
1064
  },
1071
1065
  "&:focus-visible": {
1072
- outline: `2px solid ${m.palette.info.main}`,
1066
+ outline: `2px solid ${g.palette.info.main}`,
1073
1067
  outlineOffset: "2px"
1074
1068
  },
1075
1069
  ...C
@@ -1079,18 +1073,18 @@ const so = ({
1079
1073
  );
1080
1074
  }, y = {
1081
1075
  LIGHT: "light"
1082
- }, M = (e) => ({
1083
- 50: F(e, 0.95),
1084
- 100: F(e, 0.85),
1085
- 200: F(e, 0.7),
1086
- 300: F(e, 0.55),
1087
- 400: F(e, 0.3),
1076
+ }, A = (e) => ({
1077
+ 50: L(e, 0.95),
1078
+ 100: L(e, 0.85),
1079
+ 200: L(e, 0.7),
1080
+ 300: L(e, 0.55),
1081
+ 400: L(e, 0.3),
1088
1082
  500: e,
1089
1083
  600: D(e, 0.3),
1090
1084
  700: D(e, 0.5),
1091
1085
  800: D(e, 0.65),
1092
1086
  900: D(e, 0.75)
1093
- }), A = "#FFFFFF", z = "#000000", Xe = "#F9F9F9", je = "#000000", Qe = "#FFFFFF", Je = "#1A1A1A", E = {
1087
+ }), M = "#FFFFFF", z = "#000000", Xe = "#F9F9F9", je = "#000000", Qe = "#FFFFFF", Je = "#1A1A1A", E = {
1094
1088
  PRIMARY: "#2C64EF",
1095
1089
  SECONDARY: "#808080",
1096
1090
  INFO: "#2C64EF",
@@ -1113,7 +1107,7 @@ const so = ({
1113
1107
  CHART_MONO4: "#2F73DA",
1114
1108
  CHART_MONO5: "#034AB3",
1115
1109
  CHART_MONO6: "#002966"
1116
- }, p = {
1110
+ }, u = {
1117
1111
  AUTO_TRANSPORTT: "#00B0FF",
1118
1112
  BILLS_UTILITIES: "#F949BD",
1119
1113
  BUSINESS_SERVICES: "#2979FF",
@@ -1136,7 +1130,7 @@ const so = ({
1136
1130
  TRANSFER: "#2B9580",
1137
1131
  TRAVEL: "#3D5AFE",
1138
1132
  UNCATEGORIZED: "#8495AD"
1139
- }, h = {
1133
+ }, p = {
1140
1134
  AUTO_TRANSPORTT: "#77DAFF",
1141
1135
  BILLS_UTILITIES: "#FF81D4",
1142
1136
  BUSINESS_SERVICES: "#4BBAFF",
@@ -1160,7 +1154,7 @@ const so = ({
1160
1154
  TRAVEL: "#76ACF7",
1161
1155
  UNCATEGORIZED: "#BCC6D4"
1162
1156
  }, qe = (e, o) => {
1163
- const i = M(o?.primary || E.PRIMARY), l = M(o?.secondary || E.SECONDARY), c = M(o?.error || E.ERROR), r = M(o?.warning || E.WARNING), n = M(o?.info || E.INFO), s = M(o?.success || E.SUCCESS), d = M(o?.grey || E.GREY), t = e === y.LIGHT;
1157
+ const i = A(o?.primary || E.PRIMARY), l = A(o?.secondary || E.SECONDARY), c = A(o?.error || E.ERROR), r = A(o?.warning || E.WARNING), n = A(o?.info || E.INFO), s = A(o?.success || E.SUCCESS), d = A(o?.grey || E.GREY), t = e === y.LIGHT;
1164
1158
  return {
1165
1159
  mode: e,
1166
1160
  // DEPRECATED: Use grey instead
@@ -1174,7 +1168,7 @@ const so = ({
1174
1168
  darker: d[500]
1175
1169
  },
1176
1170
  common: {
1177
- white: A,
1171
+ white: M,
1178
1172
  black: z
1179
1173
  },
1180
1174
  primary: {
@@ -1206,12 +1200,12 @@ const so = ({
1206
1200
  dark: t ? d[700] : d[200],
1207
1201
  /* DEPRECATED: Use dark instead */
1208
1202
  darker: t ? d[900] : d[100],
1209
- contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? A : d[900]
1203
+ contrastText: De(t ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
1210
1204
  },
1211
1205
  text: {
1212
- primary: t ? d[900] : A,
1213
- secondary: t ? d[600] : b(A, 0.7),
1214
- disabled: t ? d[500] : b(A, 0.38)
1206
+ primary: t ? d[900] : M,
1207
+ secondary: t ? d[600] : b(M, 0.7),
1208
+ disabled: t ? d[500] : b(M, 0.38)
1215
1209
  },
1216
1210
  error: {
1217
1211
  ...c,
@@ -1255,7 +1249,7 @@ const so = ({
1255
1249
  },
1256
1250
  grey: d,
1257
1251
  action: {
1258
- active: t ? b(z, 0.56) : b(A, 0.56),
1252
+ active: t ? b(z, 0.56) : b(M, 0.56),
1259
1253
  hoverOpacity: t ? 0.1 : 0.2,
1260
1254
  selectedOpacity: t ? 0.16 : 0.25,
1261
1255
  focusOpacity: 0.3
@@ -1266,30 +1260,30 @@ const so = ({
1266
1260
  highlight: t ? d[200] : d[600],
1267
1261
  highlightPrimary: t ? i[100] : i[500]
1268
1262
  },
1269
- divider: t ? b(z, 0.12) : b(A, 0.24),
1263
+ divider: t ? b(z, 0.12) : b(M, 0.24),
1270
1264
  categories: {
1271
- autoTransport: t ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1272
- billsUtilities: t ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
1273
- businessServices: t ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1274
- education: t ? p.EDUCATION : h.EDUCATION,
1275
- entertainment: t ? p.ENTERTAINMENT : h.ENTERTAINMENT,
1276
- feesCharges: t ? p.FEES_CHARGES : h.FEES_CHARGES,
1277
- financial: t ? p.FINANCIAL : h.FINANCIAL,
1278
- foodDining: t ? p.FOOD_DINING : h.FOOD_DINING,
1279
- giftsDonations: t ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1280
- healthFitness: t ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
1281
- home: t ? p.HOME : h.HOME,
1282
- income: t ? p.INCOME : h.INCOME,
1283
- investments: t ? p.INVESTMENTS : h.INVESTMENTS,
1284
- kids: t ? p.KIDS : h.KIDS,
1285
- others: t ? p.OTHERS : h.OTHERS,
1286
- personalCare: t ? p.PERSONAL_CARE : h.PERSONAL_CARE,
1287
- pets: t ? p.PETS : h.PETS,
1288
- shopping: t ? p.SHOPPING : h.SHOPPING,
1289
- taxes: t ? p.TAXES : h.TAXES,
1290
- transfer: t ? p.TRANSFER : h.TRANSFER,
1291
- travel: t ? p.TRAVEL : h.TRAVEL,
1292
- uncategorized: t ? p.UNCATEGORIZED : h.UNCATEGORIZED
1265
+ autoTransport: t ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
1266
+ billsUtilities: t ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
1267
+ businessServices: t ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
1268
+ education: t ? u.EDUCATION : p.EDUCATION,
1269
+ entertainment: t ? u.ENTERTAINMENT : p.ENTERTAINMENT,
1270
+ feesCharges: t ? u.FEES_CHARGES : p.FEES_CHARGES,
1271
+ financial: t ? u.FINANCIAL : p.FINANCIAL,
1272
+ foodDining: t ? u.FOOD_DINING : p.FOOD_DINING,
1273
+ giftsDonations: t ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
1274
+ healthFitness: t ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
1275
+ home: t ? u.HOME : p.HOME,
1276
+ income: t ? u.INCOME : p.INCOME,
1277
+ investments: t ? u.INVESTMENTS : p.INVESTMENTS,
1278
+ kids: t ? u.KIDS : p.KIDS,
1279
+ others: t ? u.OTHERS : p.OTHERS,
1280
+ personalCare: t ? u.PERSONAL_CARE : p.PERSONAL_CARE,
1281
+ pets: t ? u.PETS : p.PETS,
1282
+ shopping: t ? u.SHOPPING : p.SHOPPING,
1283
+ taxes: t ? u.TAXES : p.TAXES,
1284
+ transfer: t ? u.TRANSFER : p.TRANSFER,
1285
+ travel: t ? u.TRAVEL : p.TRAVEL,
1286
+ uncategorized: t ? u.UNCATEGORIZED : p.UNCATEGORIZED
1293
1287
  },
1294
1288
  chart: {
1295
1289
  chart1: S.CHART1,
@@ -2214,13 +2208,13 @@ export {
2214
2208
  f as BaseIcon,
2215
2209
  eo as BottomSheetTransition,
2216
2210
  z0 as CalendarIcon,
2217
- g as CategoryGuids,
2211
+ h as CategoryGuids,
2218
2212
  Ve as CategoryIcon,
2219
2213
  Be as CategoryIconList,
2220
2214
  _e as CategoryIconVariants,
2221
2215
  V0 as CheckmarkFilledIcon,
2222
- $0 as ChevronDownIcon,
2223
- G0 as ChevronLeftIcon,
2216
+ G0 as ChevronDownIcon,
2217
+ $0 as ChevronLeftIcon,
2224
2218
  U0 as ChevronRightIcon,
2225
2219
  W0 as CloseIcon,
2226
2220
  q0 as DateRangePicker,
@@ -2245,7 +2239,7 @@ export {
2245
2239
  lo as MerchantLogo,
2246
2240
  to as P,
2247
2241
  ho as SelectionBox,
2248
- O as TARGETS,
2242
+ F as TARGETS,
2249
2243
  N as THEMES,
2250
2244
  k as Text,
2251
2245
  co as TextField,