@mxenabled/mxui 2.2.4 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { jsx as a, jsxs as b } from "react/jsx-runtime";
2
- import H from "react";
2
+ import N from "react";
3
3
  import A from "@mui/material/Stack";
4
4
  import { useTheme as E, createTheme as $ } from "@mui/material/styles";
5
5
  import { Icon as le, ExpandMore as se, Close as ce } from "@mxenabled/mx-icons";
6
6
  import { endOfMonth as U } from "date-fns/endOfMonth";
7
7
  import { endOfYear as de } from "date-fns/endOfYear";
8
- import { startOfToday as pe } from "date-fns/startOfToday";
9
- import { startOfMonth as V } from "date-fns/startOfMonth";
10
- import { startOfYear as G } from "date-fns/startOfYear";
8
+ import { startOfToday as ue } from "date-fns/startOfToday";
9
+ import { startOfMonth as G } from "date-fns/startOfMonth";
10
+ import { startOfYear as V } from "date-fns/startOfYear";
11
11
  import { subDays as W } from "date-fns/subDays";
12
- import { subMonths as ue } from "date-fns/subMonths";
12
+ import { subMonths as pe } from "date-fns/subMonths";
13
13
  import { subYears as he } from "date-fns/subYears";
14
14
  import ge from "@mui/material/useMediaQuery";
15
- import { usePickerContext as j, useIsValidValue as Z, LocalizationProvider as fe, StaticDateRangePicker as me } from "@mui/x-date-pickers-pro";
15
+ import { usePickerContext as X, useIsValidValue as Z, LocalizationProvider as me, StaticDateRangePicker as fe } from "@mui/x-date-pickers-pro";
16
16
  import { AdapterDateFns as be } from "@mui/x-date-pickers-pro/AdapterDateFns";
17
17
  import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
18
18
  import Q from "@mui/material/Box";
@@ -24,14 +24,14 @@ import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWra
24
24
  import q from "@mui/material/Slide";
25
25
  import B from "@mui/material/Button";
26
26
  import ee from "@mui/material/IconButton";
27
- import Ie from "@mui/material/Typography";
28
- import ye from "@mui/material/Drawer";
27
+ import ye from "@mui/material/Typography";
28
+ import Ie from "@mui/material/Drawer";
29
29
  import Ee from "@mui/material/Snackbar";
30
30
  import Oe from "@mui/material/Alert";
31
- import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as m, darken as N, lighten as O, getContrastRatio as Ne } from "@mui/material";
32
- import { circularProgressClasses as He } from "@mui/material/CircularProgress";
33
- import { LicenseInfo as Le } from "@mui/x-license";
34
- const L = ({
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
+ import { circularProgressClasses as Ne } from "@mui/material/CircularProgress";
33
+ import { LicenseInfo as He } from "@mui/x-license";
34
+ const H = ({
35
35
  children: e,
36
36
  height: i,
37
37
  size: r = 16,
@@ -52,7 +52,7 @@ const L = ({
52
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 = ({
53
53
  color: e = "currentColor",
54
54
  ...i
55
- }) => /* @__PURE__ */ b(L, { ...i, children: [
55
+ }) => /* @__PURE__ */ b(H, { ...i, children: [
56
56
  /* @__PURE__ */ a(
57
57
  "path",
58
58
  {
@@ -70,7 +70,7 @@ const L = ({
70
70
  ] }), vt = ({
71
71
  color: e = "currentColor",
72
72
  ...i
73
- }) => /* @__PURE__ */ b(L, { ...i, children: [
73
+ }) => /* @__PURE__ */ b(H, { ...i, children: [
74
74
  /* @__PURE__ */ a(
75
75
  "path",
76
76
  {
@@ -103,10 +103,10 @@ const L = ({
103
103
  fillRule: "evenodd"
104
104
  }
105
105
  )
106
- ] }), Nt = ({
106
+ ] }), Lt = ({
107
107
  color: e = "currentColor",
108
108
  ...i
109
- }) => /* @__PURE__ */ a(L, { ...i, children: /* @__PURE__ */ a(
109
+ }) => /* @__PURE__ */ a(H, { ...i, children: /* @__PURE__ */ a(
110
110
  "path",
111
111
  {
112
112
  clipRule: "evenodd",
@@ -114,10 +114,10 @@ const L = ({
114
114
  fill: e,
115
115
  fillRule: "evenodd"
116
116
  }
117
- ) }), Ht = ({
117
+ ) }), Nt = ({
118
118
  color: e = "currentColor",
119
119
  ...i
120
- }) => /* @__PURE__ */ b(L, { ...i, children: [
120
+ }) => /* @__PURE__ */ b(H, { ...i, children: [
121
121
  /* @__PURE__ */ a(
122
122
  "path",
123
123
  {
@@ -142,109 +142,109 @@ const L = ({
142
142
  }
143
143
  )
144
144
  ] });
145
- 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 || {}), 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 || {}), ke = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(ke || {});
146
146
  const te = {
147
- guid: g.Uncategorized,
147
+ guid: h.Uncategorized,
148
148
  colorName: "uncategorized",
149
149
  icon: "category"
150
150
  }, De = [
151
151
  {
152
- guid: g.AutoTransport,
152
+ guid: h.AutoTransport,
153
153
  colorName: "autoTransport",
154
154
  icon: "directions_car"
155
155
  },
156
156
  {
157
- guid: g.BillsUtilities,
157
+ guid: h.BillsUtilities,
158
158
  colorName: "billsUtilities",
159
159
  icon: "electrical_services"
160
160
  },
161
161
  {
162
- guid: g.BusinessServices,
162
+ guid: h.BusinessServices,
163
163
  colorName: "businessServices",
164
164
  icon: "business_center"
165
165
  },
166
166
  {
167
- guid: g.Education,
167
+ guid: h.Education,
168
168
  colorName: "education",
169
169
  icon: "school"
170
170
  },
171
171
  {
172
- guid: g.Entertainment,
172
+ guid: h.Entertainment,
173
173
  colorName: "entertainment",
174
174
  icon: "stadium"
175
175
  },
176
176
  {
177
- guid: g.FeesCharges,
177
+ guid: h.FeesCharges,
178
178
  colorName: "feesCharges",
179
179
  icon: "problem"
180
180
  },
181
181
  {
182
- guid: g.Financial,
182
+ guid: h.Financial,
183
183
  colorName: "financial",
184
184
  icon: "price_check"
185
185
  },
186
186
  {
187
- guid: g.FoodDining,
187
+ guid: h.FoodDining,
188
188
  colorName: "foodDining",
189
189
  icon: "grocery"
190
190
  },
191
191
  {
192
- guid: g.GiftsDonations,
192
+ guid: h.GiftsDonations,
193
193
  colorName: "giftsDonations",
194
194
  icon: "featured_seasonal_and_gifts"
195
195
  },
196
196
  {
197
- guid: g.HealthFitness,
197
+ guid: h.HealthFitness,
198
198
  colorName: "healthFitness",
199
199
  icon: "ecg_heart"
200
200
  },
201
201
  {
202
- guid: g.Home,
202
+ guid: h.Home,
203
203
  colorName: "home",
204
204
  icon: "cottage"
205
205
  },
206
206
  {
207
- guid: g.Income,
207
+ guid: h.Income,
208
208
  colorName: "income",
209
209
  icon: "monetization_on"
210
210
  },
211
211
  {
212
- guid: g.Investments,
212
+ guid: h.Investments,
213
213
  colorName: "investments",
214
214
  icon: "bid_landscape"
215
215
  },
216
216
  {
217
- guid: g.Kids,
217
+ guid: h.Kids,
218
218
  colorName: "kids",
219
219
  icon: "face"
220
220
  },
221
221
  {
222
- guid: g.PersonalCare,
222
+ guid: h.PersonalCare,
223
223
  colorName: "personalCare",
224
224
  icon: "volunteer_activism"
225
225
  },
226
226
  {
227
- guid: g.Pets,
227
+ guid: h.Pets,
228
228
  colorName: "pets",
229
229
  icon: "pet_supplies"
230
230
  },
231
231
  {
232
- guid: g.Shopping,
232
+ guid: h.Shopping,
233
233
  colorName: "shopping",
234
234
  icon: "shopping_cart"
235
235
  },
236
236
  {
237
- guid: g.Taxes,
237
+ guid: h.Taxes,
238
238
  colorName: "taxes",
239
239
  icon: "heap_snapshot_large"
240
240
  },
241
241
  {
242
- guid: g.Transfer,
242
+ guid: h.Transfer,
243
243
  colorName: "transfer",
244
244
  icon: "compare_arrows"
245
245
  },
246
246
  {
247
- guid: g.Travel,
247
+ guid: h.Travel,
248
248
  colorName: "travel",
249
249
  icon: "airplane_ticket"
250
250
  },
@@ -256,8 +256,8 @@ const te = {
256
256
  sx: s = {},
257
257
  variant: l = "filled"
258
258
  }) => {
259
- const t = E(), n = H.useMemo(
260
- () => De.find((p) => p.guid === e) ?? te,
259
+ const t = E(), n = N.useMemo(
260
+ () => De.find((m) => m.guid === e) ?? te,
261
261
  [e]
262
262
  ), c = t.palette.categories[n.colorName];
263
263
  return /* @__PURE__ */ a(
@@ -265,13 +265,13 @@ const te = {
265
265
  {
266
266
  alignItems: "center",
267
267
  bgcolor: () => {
268
- let p = c;
269
- return l === "twotone" && (p = `${p}20`), l === "transparent" || l === "basic" ? "transparent" : p;
268
+ let m = c;
269
+ return l === "twotone" && (m = `${m}20`), l === "transparent" || l === "basic" ? "transparent" : m;
270
270
  },
271
271
  borderRadius: 1,
272
272
  color: () => {
273
- const p = l === "filled" ? t.palette.common.white : c;
274
- return l === "basic" ? t.palette.text.primary : p;
273
+ const m = l === "filled" ? t.palette.common.white : c;
274
+ return l === "basic" ? t.palette.text.primary : m;
275
275
  },
276
276
  height: r,
277
277
  justifyContent: "center",
@@ -281,7 +281,7 @@ const te = {
281
281
  }
282
282
  );
283
283
  }, _e = ({ items: e, selected: i }) => {
284
- const r = E(), { setValue: s } = j(), l = Z(), t = e?.map((n) => {
284
+ const r = 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,
@@ -324,7 +324,7 @@ const te = {
324
324
  selected: i,
325
325
  selectLabel: r
326
326
  }) => {
327
- const { setValue: s } = j(), l = Z(), t = e?.map((n) => {
327
+ const { setValue: s } = X(), l = Z(), t = e?.map((n) => {
328
328
  const c = n.getValue({ isValid: l });
329
329
  return {
330
330
  label: n.label,
@@ -384,23 +384,23 @@ const te = {
384
384
  ]
385
385
  }
386
386
  );
387
- }, Lt = ({
387
+ }, Ht = ({
388
388
  copy: e,
389
389
  dateRange: i,
390
390
  onRangeChanged: r,
391
391
  selectedShortcut: s = e.dateRangeThisMonth,
392
392
  sx: l = {}
393
393
  }) => {
394
- const t = E(), n = ge(t.breakpoints.down("sm")), c = H.useMemo(() => {
395
- const o = pe(), p = ue(o, 1), T = he(o, 1);
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);
396
396
  return [
397
397
  {
398
398
  label: e.dateRangeThisMonth,
399
- getValue: () => [V(o), U(o)]
399
+ getValue: () => [G(o), U(o)]
400
400
  },
401
401
  {
402
402
  label: e.dateRangeLastMonth,
403
- getValue: () => [V(p), U(p)]
403
+ getValue: () => [G(m), U(m)]
404
404
  },
405
405
  {
406
406
  label: e.dateRangeLast30Days,
@@ -412,23 +412,23 @@ const te = {
412
412
  },
413
413
  {
414
414
  label: e.dateRangeYTD,
415
- getValue: () => [G(o), o]
415
+ getValue: () => [V(o), o]
416
416
  },
417
417
  {
418
418
  label: e.dateRangeLastYear,
419
- getValue: () => [G(T), de(T)]
419
+ getValue: () => [V(T), de(T)]
420
420
  },
421
421
  {
422
422
  label: e.dateRangeCustom,
423
423
  getValue: () => [o, o]
424
424
  }
425
425
  ];
426
- }, [e]), d = (o, p) => {
427
- const T = p.shortcut;
426
+ }, [e]), d = (o, m) => {
427
+ const T = m.shortcut;
428
428
  r?.(o, T ? T.label : e.dateRangeCustom);
429
429
  };
430
- return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(fe, { dateAdapter: be, children: /* @__PURE__ */ a(
431
- me,
430
+ return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
431
+ fe,
432
432
  {
433
433
  calendars: 1,
434
434
  localeText: {
@@ -467,8 +467,8 @@ const te = {
467
467
  format: "MM/dd/yyyy",
468
468
  ...o,
469
469
  slotProps: {
470
- textField: ({ position: p }) => ({
471
- label: p === "start" ? e.dateRangeFrom : e.dateRangeTo
470
+ textField: ({ position: m }) => ({
471
+ label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
472
472
  })
473
473
  },
474
474
  sx: { gap: 8 }
@@ -480,7 +480,7 @@ const te = {
480
480
  value: i
481
481
  }
482
482
  ) }) });
483
- }, kt = H.forwardRef(function(i, r) {
483
+ }, kt = N.forwardRef(function(i, r) {
484
484
  return /* @__PURE__ */ a(q, { direction: "up", ref: r, ...i });
485
485
  }), $e = ({
486
486
  hasSecondaryAction: e = !0,
@@ -530,7 +530,7 @@ const te = {
530
530
  uppercase: n,
531
531
  ...c
532
532
  }) => /* @__PURE__ */ a(
533
- Ie,
533
+ ye,
534
534
  {
535
535
  className: `mx-kmui-text ${i}`,
536
536
  color: s,
@@ -578,7 +578,7 @@ const te = {
578
578
  children: d,
579
579
  ...o
580
580
  }) => /* @__PURE__ */ b(
581
- ye,
581
+ Ie,
582
582
  {
583
583
  anchor: "right",
584
584
  className: `mx-kmui-drawer ${e}`,
@@ -630,7 +630,7 @@ const te = {
630
630
  size: s = oe,
631
631
  ...l
632
632
  }) => {
633
- const [t, n] = H.useState(!1), c = E();
633
+ const [t, n] = N.useState(!1), c = E();
634
634
  return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
635
635
  r && !t && /* @__PURE__ */ a(
636
636
  "img",
@@ -669,113 +669,106 @@ const te = {
669
669
  ...l
670
670
  }
671
671
  );
672
- function Ve(e) {
672
+ function Ge(e) {
673
673
  return /* @__PURE__ */ a(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
674
674
  }
675
- const Vt = ({
676
- open: e,
675
+ const Gt = ({
676
+ open: e = !0,
677
677
  handleClose: i,
678
- message: r,
679
- autoHideDuration: s = 3e3,
680
- severity: l = "success",
681
- snackbarSx: t,
682
- showAction: n = !1,
683
- showClose: c = !1,
684
- actionText: d = "Undo",
685
- onActionClick: o,
686
- multiLine: p = !1
678
+ closeAriaLabel: r,
679
+ message: s,
680
+ autoHideDuration: l = 3e3,
681
+ severity: t = "success",
682
+ snackbarSx: n,
683
+ showAction: c = !1,
684
+ showClose: d = !1,
685
+ actionText: o = "Undo",
686
+ onActionClick: m
687
687
  }) => {
688
- const T = E(), v = /* @__PURE__ */ b(
689
- A,
690
- {
691
- alignItems: p ? "flex-end" : "center",
692
- direction: p ? "column-reverse" : "row",
693
- justifyContent: (
694
- // eslint-disable-next-line no-nested-ternary
695
- p && n && c ? "space-between" : "flex-end"
696
- ),
697
- children: [
698
- n && /* @__PURE__ */ a(
699
- B,
700
- {
701
- color: "inherit",
702
- onClick: o || i,
703
- size: "small",
704
- sx: {
705
- color: T.palette.success.contrastText,
706
- height: 44
707
- },
708
- children: d
709
- }
710
- ),
711
- c && /* @__PURE__ */ a(
712
- ee,
713
- {
714
- "aria-label": "close",
715
- color: "inherit",
716
- onClick: i,
717
- sx: { height: 44, width: 44 },
718
- children: /* @__PURE__ */ a(x, { fill: !0, name: "close", size: 24 })
719
- }
720
- )
721
- ]
722
- }
723
- );
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`;
724
689
  return /* @__PURE__ */ a(
725
690
  Ee,
726
691
  {
727
- TransitionComponent: Ve,
728
692
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
729
- autoHideDuration: s,
693
+ autoHideDuration: l,
730
694
  onClose: i,
731
695
  open: e,
696
+ slots: { transition: Ge },
732
697
  sx: {
733
- ...t,
734
- width: p ? 400 : 325
698
+ ...n,
699
+ maxWidth: 568,
700
+ minWidth: 288,
701
+ minHeight: 56
735
702
  },
736
703
  children: /* @__PURE__ */ a(
737
704
  Oe,
738
705
  {
739
706
  action: v,
740
- severity: l,
707
+ severity: t,
741
708
  sx: {
709
+ backgroundColor: g,
742
710
  display: "flex",
743
- alignItems: "stretch",
744
- minHeight: c && n && p ? 120 : 56,
745
- maxHeight: p ? 120 : 56,
746
711
  width: "100%",
747
- "& .MuiAlert-icon": {
748
- alignSelf: p ? "flex-start" : "center"
749
- },
712
+ py: 8,
750
713
  "& .MuiAlert-message": {
751
- paddingTop: p ? 12 : 8,
752
- paddingBottom: p ? 12 : 8,
753
- alignSelf: p ? "flex-start" : "center"
714
+ my: 0,
715
+ flex: 1,
716
+ overflow: "hidden"
754
717
  },
755
718
  "& .MuiAlert-action": {
756
- alignItems: "stretch",
757
- height: "auto"
719
+ alignItems: d ? "flex-start" : "center"
758
720
  }
759
721
  },
760
722
  variant: "filled",
761
- children: /* @__PURE__ */ a(
762
- F,
723
+ children: /* @__PURE__ */ b(
724
+ A,
763
725
  {
764
726
  sx: {
765
- lineHeight: T.typography.body1.lineHeight,
766
- whiteSpace: p ? "normal" : "nowrap",
767
- overflow: p ? "visible" : "hidden",
768
- textOverflow: p ? "clip" : "ellipsis"
727
+ flexDirection: "row",
728
+ flexWrap: "wrap",
729
+ alignItems: "baseline",
730
+ justifyContent: "space-between",
731
+ width: "100%",
732
+ rowGap: "16px",
733
+ columnGap: "16px"
769
734
  },
770
- truncate: !p,
771
- children: r
735
+ children: [
736
+ /* @__PURE__ */ a(
737
+ F,
738
+ {
739
+ sx: {
740
+ lineHeight: T.typography.body1.lineHeight,
741
+ flex: 1,
742
+ minWidth: "70%",
743
+ px: 5
744
+ },
745
+ children: s
746
+ }
747
+ ),
748
+ c && /* @__PURE__ */ a(
749
+ B,
750
+ {
751
+ color: "inherit",
752
+ onClick: m || i,
753
+ size: "small",
754
+ sx: {
755
+ color: T.palette.success.contrastText,
756
+ whiteSpace: "nowrap",
757
+ flexShrink: 0,
758
+ minWidth: "auto",
759
+ justifyContent: "flex-start"
760
+ },
761
+ children: o
762
+ }
763
+ )
764
+ ]
772
765
  }
773
766
  )
774
767
  }
775
768
  )
776
769
  }
777
770
  );
778
- }, Gt = ({
771
+ }, Vt = ({
779
772
  component: e = P,
780
773
  variant: i = "outlined",
781
774
  selected: r,
@@ -786,11 +779,11 @@ const Vt = ({
786
779
  value: c,
787
780
  disabled: d = !1,
788
781
  error: o = !1,
789
- icon: p = !1,
782
+ icon: m = !1,
790
783
  sx: T = {},
791
784
  ...v
792
785
  }) => {
793
- const f = E(), re = () => f.palette.background.paper, k = () => o ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : d ? r ? `inset 0px 0px 0px 2px ${f.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${f.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${f.palette.action.disabled}` : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.common.black, 0.23)}` : r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : f.shadows[1], ie = () => d || o ? f.palette.background.paper : m(f.palette.primary.main, 0.1), ae = () => d || o ? k() : i === "outlined" ? r ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.primary.main, 0.5)}` : k(), ne = () => d || o ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
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
787
  return /* @__PURE__ */ a(
795
788
  Fe,
796
789
  {
@@ -828,7 +821,7 @@ const Vt = ({
828
821
  ),
829
822
  disabled: d,
830
823
  label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
831
- p && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: p }),
824
+ m && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
832
825
  /* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
833
826
  l && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
834
827
  /* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
@@ -841,7 +834,7 @@ const Vt = ({
841
834
  padding: "6px 16px",
842
835
  alignItems: "flex-start",
843
836
  justifyContent: "space-between",
844
- borderRadius: f.shape.borderRadius / 2,
837
+ borderRadius: g.shape.borderRadius / 2,
845
838
  mb: 16,
846
839
  cursor: d ? "not-allowed" : "pointer",
847
840
  opacity: d ? 0.6 : 1,
@@ -849,8 +842,8 @@ const Vt = ({
849
842
  border: "none",
850
843
  boxShadow: k(),
851
844
  boxSizing: "border-box",
852
- transition: f.transitions.create(["background-color", "box-shadow"], {
853
- duration: f.transitions.duration.short
845
+ transition: g.transitions.create(["background-color", "box-shadow"], {
846
+ duration: g.transitions.duration.short
854
847
  }),
855
848
  "&:hover": {
856
849
  backgroundColor: ie(),
@@ -860,7 +853,7 @@ const Vt = ({
860
853
  backgroundColor: ne()
861
854
  },
862
855
  "&:focus-visible": {
863
- outline: `2px solid ${f.palette.info.main}`,
856
+ outline: `2px solid ${g.palette.info.main}`,
864
857
  outlineOffset: "2px"
865
858
  },
866
859
  ...T
@@ -868,7 +861,7 @@ const Vt = ({
868
861
  value: c
869
862
  }
870
863
  );
871
- }, y = {
864
+ }, I = {
872
865
  LIGHT: "light"
873
866
  }, R = (e) => ({
874
867
  50: O(e, 0.95),
@@ -877,11 +870,11 @@ const Vt = ({
877
870
  300: O(e, 0.55),
878
871
  400: O(e, 0.3),
879
872
  500: e,
880
- 600: N(e, 0.3),
881
- 700: N(e, 0.5),
882
- 800: N(e, 0.65),
883
- 900: N(e, 0.75)
884
- }), M = "#FFFFFF", _ = "#000000", Ge = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
873
+ 600: L(e, 0.3),
874
+ 700: L(e, 0.5),
875
+ 800: L(e, 0.65),
876
+ 900: L(e, 0.75)
877
+ }), M = "#FFFFFF", _ = "#000000", Ve = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
885
878
  PRIMARY: "#2C64EF",
886
879
  SECONDARY: "#808080",
887
880
  INFO: "#2C64EF",
@@ -897,7 +890,7 @@ const Vt = ({
897
890
  CHART5: "#60A9FF",
898
891
  CHART6: "#C8BAEE",
899
892
  CHART7: "#585E67"
900
- }, I = {
893
+ }, y = {
901
894
  CHART_MONO1: "#C3EAFF",
902
895
  CHART_MONO2: "#8ED7FF",
903
896
  CHART_MONO3: "#60A9FF",
@@ -927,7 +920,7 @@ const Vt = ({
927
920
  TRANSFER: "#2B9580",
928
921
  TRAVEL: "#3D5AFE",
929
922
  UNCATEGORIZED: "#8495AD"
930
- }, h = {
923
+ }, p = {
931
924
  AUTO_TRANSPORTT: "#77DAFF",
932
925
  BILLS_UTILITIES: "#FF81D4",
933
926
  BUSINESS_SERVICES: "#4BBAFF",
@@ -950,8 +943,8 @@ const Vt = ({
950
943
  TRANSFER: "#75C7B7",
951
944
  TRAVEL: "#76ACF7",
952
945
  UNCATEGORIZED: "#BCC6D4"
953
- }, Xe = (e, i) => {
954
- 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 === y.LIGHT;
946
+ }, 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
948
  return {
956
949
  mode: e,
957
950
  common: {
@@ -975,12 +968,12 @@ const Vt = ({
975
968
  light: o ? d[300] : d[600],
976
969
  main: o ? d[500] : d[400],
977
970
  dark: o ? d[700] : d[200],
978
- contrastText: Ne(o ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
971
+ contrastText: Le(o ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
979
972
  },
980
973
  text: {
981
974
  primary: o ? d[900] : M,
982
- secondary: o ? d[600] : m(M, 0.7),
983
- disabled: o ? d[500] : m(M, 0.38)
975
+ secondary: o ? d[600] : f(M, 0.7),
976
+ disabled: o ? d[500] : f(M, 0.38)
984
977
  },
985
978
  error: {
986
979
  ...l,
@@ -1008,41 +1001,41 @@ const Vt = ({
1008
1001
  },
1009
1002
  grey: d,
1010
1003
  action: {
1011
- active: o ? m(_, 0.56) : m(M, 0.56),
1004
+ active: o ? f(_, 0.56) : f(M, 0.56),
1012
1005
  hoverOpacity: o ? 0.1 : 0.2,
1013
1006
  selectedOpacity: o ? 0.16 : 0.25,
1014
1007
  focusOpacity: 0.3
1015
1008
  },
1016
1009
  background: {
1017
- default: o ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
1010
+ default: o ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
1018
1011
  paper: o ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
1019
1012
  highlight: o ? d[200] : d[600],
1020
1013
  highlightPrimary: o ? r[100] : r[500]
1021
1014
  },
1022
- divider: o ? m(_, 0.12) : m(M, 0.24),
1015
+ divider: o ? f(_, 0.12) : f(M, 0.24),
1023
1016
  categories: {
1024
- autoTransport: o ? u.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
1025
- billsUtilities: o ? u.BILLS_UTILITIES : h.BILLS_UTILITIES,
1026
- businessServices: o ? u.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
1027
- education: o ? u.EDUCATION : h.EDUCATION,
1028
- entertainment: o ? u.ENTERTAINMENT : h.ENTERTAINMENT,
1029
- feesCharges: o ? u.FEES_CHARGES : h.FEES_CHARGES,
1030
- financial: o ? u.FINANCIAL : h.FINANCIAL,
1031
- foodDining: o ? u.FOOD_DINING : h.FOOD_DINING,
1032
- giftsDonations: o ? u.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
1033
- healthFitness: o ? u.HEALTH_FITNESS : h.HEALTH_FITNESS,
1034
- home: o ? u.HOME : h.HOME,
1035
- income: o ? u.INCOME : h.INCOME,
1036
- investments: o ? u.INVESTMENTS : h.INVESTMENTS,
1037
- kids: o ? u.KIDS : h.KIDS,
1038
- others: o ? u.OTHERS : h.OTHERS,
1039
- personalCare: o ? u.PERSONAL_CARE : h.PERSONAL_CARE,
1040
- pets: o ? u.PETS : h.PETS,
1041
- shopping: o ? u.SHOPPING : h.SHOPPING,
1042
- taxes: o ? u.TAXES : h.TAXES,
1043
- transfer: o ? u.TRANSFER : h.TRANSFER,
1044
- travel: o ? u.TRAVEL : h.TRAVEL,
1045
- uncategorized: o ? u.UNCATEGORIZED : h.UNCATEGORIZED
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
1046
1039
  },
1047
1040
  chart: {
1048
1041
  chart1: S.CHART1,
@@ -1054,16 +1047,16 @@ const Vt = ({
1054
1047
  chart7: S.CHART7
1055
1048
  },
1056
1049
  chartMono: {
1057
- chartMono1: I.CHART_MONO1,
1058
- chartMono2: I.CHART_MONO2,
1059
- chartMono3: I.CHART_MONO3,
1060
- chartMono4: I.CHART_MONO4,
1061
- chartMono5: I.CHART_MONO5,
1062
- chartMono6: I.CHART_MONO6
1050
+ chartMono1: y.CHART_MONO1,
1051
+ chartMono2: y.CHART_MONO2,
1052
+ chartMono3: y.CHART_MONO3,
1053
+ chartMono4: y.CHART_MONO4,
1054
+ chartMono5: y.CHART_MONO5,
1055
+ chartMono6: y.CHART_MONO6
1063
1056
  }
1064
1057
  };
1065
- }, X = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
1066
- const i = e?.fontFamily ? `${e?.fontFamily}, ${X}` : X;
1058
+ }, j = "Inter, Helvetica, Arial, sans-serif", Xe = (e) => {
1059
+ const i = e?.fontFamily ? `${e?.fontFamily}, ${j}` : j;
1067
1060
  return {
1068
1061
  fontFamily: i,
1069
1062
  fontSize: 15,
@@ -1122,11 +1115,11 @@ const Vt = ({
1122
1115
  ...e
1123
1116
  };
1124
1117
  };
1125
- Le.setLicenseKey(
1118
+ He.setLicenseKey(
1126
1119
  "702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
1127
1120
  );
1128
1121
  const Wt = (e, i) => {
1129
- const r = Xe(e, i?.paletteOptions), s = je(i?.typographyOptions), l = [...$().shadows];
1122
+ const r = je(e, i?.paletteOptions), s = Xe(i?.typographyOptions), l = [...$().shadows];
1130
1123
  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)", $({
1131
1124
  breakpoints: {
1132
1125
  values: {
@@ -1160,7 +1153,7 @@ const Wt = (e, i) => {
1160
1153
  styleOverrides: {
1161
1154
  root: ({ theme: t, ownerState: n }) => {
1162
1155
  const c = n.severity || "info";
1163
- let d = t.palette.mode === y.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
1156
+ let d = t.palette.mode === I.LIGHT ? t.palette[c]?.[50] : t.palette[c]?.[800];
1164
1157
  if (n.variant === "filled") {
1165
1158
  const o = c === "warning";
1166
1159
  d = t.palette[c]?.[o ? 400 : 600];
@@ -1248,7 +1241,7 @@ const Wt = (e, i) => {
1248
1241
  MuiCircularProgress: {
1249
1242
  styleOverrides: {
1250
1243
  root: {
1251
- [`& .${He.circle}`]: {
1244
+ [`& .${Ne.circle}`]: {
1252
1245
  strokeLinecap: "round"
1253
1246
  }
1254
1247
  }
@@ -1471,7 +1464,7 @@ const Wt = (e, i) => {
1471
1464
  backgroundColor: t.palette.action.hover
1472
1465
  },
1473
1466
  "&:active": {
1474
- backgroundColor: t.palette.mode === y.LIGHT ? t.palette[n].light : t.palette[n].dark
1467
+ backgroundColor: t.palette.mode === I.LIGHT ? t.palette[n].light : t.palette[n].dark
1475
1468
  }
1476
1469
  })
1477
1470
  }
@@ -1617,7 +1610,7 @@ const Wt = (e, i) => {
1617
1610
  },
1618
1611
  MuiPaper: {
1619
1612
  styleOverrides: {
1620
- root: {
1613
+ rounded: {
1621
1614
  borderRadius: 8
1622
1615
  }
1623
1616
  }
@@ -1793,9 +1786,9 @@ const Wt = (e, i) => {
1793
1786
  outlineOffset: "2px"
1794
1787
  },
1795
1788
  "&:hover": {
1796
- backgroundColor: m(
1789
+ backgroundColor: f(
1797
1790
  t.palette.primary.main,
1798
- r.mode === y.LIGHT ? 0.1 : 0.2
1791
+ r.mode === I.LIGHT ? 0.1 : 0.2
1799
1792
  ),
1800
1793
  borderColor: t.palette.primary.main
1801
1794
  },
@@ -1819,7 +1812,7 @@ const Wt = (e, i) => {
1819
1812
  props: { color: "error" },
1820
1813
  style: {
1821
1814
  "&:hover": {
1822
- backgroundColor: m(r.error.main, r.mode === y.LIGHT ? 0.1 : 0.2),
1815
+ backgroundColor: f(r.error.main, r.mode === I.LIGHT ? 0.1 : 0.2),
1823
1816
  borderColor: r.error.main
1824
1817
  },
1825
1818
  "&.Mui-selected": {
@@ -1841,9 +1834,9 @@ const Wt = (e, i) => {
1841
1834
  props: { color: "standard" },
1842
1835
  style: {
1843
1836
  "&:hover": {
1844
- backgroundColor: m(
1837
+ backgroundColor: f(
1845
1838
  r.secondary.main,
1846
- r.mode === y.LIGHT ? 0.1 : 0.2
1839
+ r.mode === I.LIGHT ? 0.1 : 0.2
1847
1840
  ),
1848
1841
  borderColor: r.secondary.main
1849
1842
  },
@@ -1883,13 +1876,13 @@ const Wt = (e, i) => {
1883
1876
  });
1884
1877
  };
1885
1878
  export {
1886
- L as BaseIcon,
1879
+ H as BaseIcon,
1887
1880
  kt as BottomSheetTransition,
1888
- g as CategoryGuids,
1881
+ h as CategoryGuids,
1889
1882
  Pe as CategoryIcon,
1890
1883
  De as CategoryIconList,
1891
1884
  ke as CategoryIconVariants,
1892
- Lt as DateRangePicker,
1885
+ Ht as DateRangePicker,
1893
1886
  $e as DialogFooter,
1894
1887
  _t as DialogHeader,
1895
1888
  Bt as Drawer,
@@ -1897,19 +1890,19 @@ export {
1897
1890
  Ue as H1,
1898
1891
  Dt as H2,
1899
1892
  wt as H3,
1900
- X as INTER,
1893
+ j as INTER,
1901
1894
  x as Icon,
1902
1895
  zt as InstitutionLogo,
1903
1896
  vt as MXLogoCopyrightIcon,
1904
- Nt as MXLogoFilledIcon,
1897
+ Lt as MXLogoFilledIcon,
1905
1898
  Ft as MXLogoIcon,
1906
- Ht as MXLogoOutlineIcon,
1899
+ Nt as MXLogoOutlineIcon,
1907
1900
  $t as MerchantLogo,
1908
1901
  Pt as P,
1909
- Gt as SelectionBox,
1902
+ Vt as SelectionBox,
1910
1903
  F as Text,
1911
1904
  Ut as TextField,
1912
- Vt as Toast,
1905
+ Gt as Toast,
1913
1906
  Wt as createMXTheme
1914
1907
  };
1915
1908
  //# sourceMappingURL=index.es.js.map