@mxenabled/mxui 1.5.12 → 1.5.13
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/components/toast/Toast.d.ts +1 -1
- package/dist/index.es.js +337 -343
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -17,19 +17,19 @@ 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
|
|
21
|
-
import
|
|
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";
|
|
25
25
|
import V from "@mui/material/Button";
|
|
26
26
|
import q from "@mui/material/IconButton";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
27
|
+
import ye from "@mui/material/Typography";
|
|
28
|
+
import ve from "@mui/material/Drawer";
|
|
29
29
|
import He from "@mui/material/Snackbar";
|
|
30
|
-
import
|
|
31
|
-
import { light as ee, buildTheme as
|
|
32
|
-
import { FormControlLabel as ke, Box as _, Typography as X, Radio as B, Checkbox as
|
|
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 = ({
|
|
@@ -58,7 +58,7 @@ const R = ({
|
|
|
58
58
|
name: i,
|
|
59
59
|
size: l = 20,
|
|
60
60
|
sx: c,
|
|
61
|
-
weight:
|
|
61
|
+
weight: t = 300,
|
|
62
62
|
...n
|
|
63
63
|
}) => /* @__PURE__ */ a(
|
|
64
64
|
se,
|
|
@@ -68,7 +68,7 @@ const R = ({
|
|
|
68
68
|
name: i,
|
|
69
69
|
size: l,
|
|
70
70
|
sx: c,
|
|
71
|
-
weight:
|
|
71
|
+
weight: t,
|
|
72
72
|
...n
|
|
73
73
|
}
|
|
74
74
|
), w0 = ({
|
|
@@ -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
|
-
) })),
|
|
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
|
-
) })),
|
|
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
|
|
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:
|
|
288
|
+
guid: h.Uncategorized,
|
|
289
289
|
colorName: "uncategorized",
|
|
290
290
|
icon: "category"
|
|
291
291
|
}, Be = [
|
|
292
292
|
{
|
|
293
|
-
guid:
|
|
293
|
+
guid: h.AutoTransport,
|
|
294
294
|
colorName: "autoTransport",
|
|
295
295
|
icon: "directions_car"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
guid:
|
|
298
|
+
guid: h.BillsUtilities,
|
|
299
299
|
colorName: "billsUtilities",
|
|
300
300
|
icon: "electrical_services"
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
guid:
|
|
303
|
+
guid: h.BusinessServices,
|
|
304
304
|
colorName: "businessServices",
|
|
305
305
|
icon: "business_center"
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
|
-
guid:
|
|
308
|
+
guid: h.Education,
|
|
309
309
|
colorName: "education",
|
|
310
310
|
icon: "school"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
|
-
guid:
|
|
313
|
+
guid: h.Entertainment,
|
|
314
314
|
colorName: "entertainment",
|
|
315
315
|
icon: "stadium"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
|
-
guid:
|
|
318
|
+
guid: h.FeesCharges,
|
|
319
319
|
colorName: "feesCharges",
|
|
320
320
|
icon: "problem"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
|
-
guid:
|
|
323
|
+
guid: h.Financial,
|
|
324
324
|
colorName: "financial",
|
|
325
325
|
icon: "price_check"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
|
-
guid:
|
|
328
|
+
guid: h.FoodDining,
|
|
329
329
|
colorName: "foodDining",
|
|
330
330
|
icon: "grocery"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
guid:
|
|
333
|
+
guid: h.GiftsDonations,
|
|
334
334
|
colorName: "giftsDonations",
|
|
335
335
|
icon: "featured_seasonal_and_gifts"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
|
-
guid:
|
|
338
|
+
guid: h.HealthFitness,
|
|
339
339
|
colorName: "healthFitness",
|
|
340
340
|
icon: "ecg_heart"
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
|
-
guid:
|
|
343
|
+
guid: h.Home,
|
|
344
344
|
colorName: "home",
|
|
345
345
|
icon: "cottage"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
|
-
guid:
|
|
348
|
+
guid: h.Income,
|
|
349
349
|
colorName: "income",
|
|
350
350
|
icon: "monetization_on"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
|
-
guid:
|
|
353
|
+
guid: h.Investments,
|
|
354
354
|
colorName: "investments",
|
|
355
355
|
icon: "bid_landscape"
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
guid:
|
|
358
|
+
guid: h.Kids,
|
|
359
359
|
colorName: "kids",
|
|
360
360
|
icon: "face"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
|
-
guid:
|
|
363
|
+
guid: h.PersonalCare,
|
|
364
364
|
colorName: "personalCare",
|
|
365
365
|
icon: "volunteer_activism"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
|
-
guid:
|
|
368
|
+
guid: h.Pets,
|
|
369
369
|
colorName: "pets",
|
|
370
370
|
icon: "pet_supplies"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
|
-
guid:
|
|
373
|
+
guid: h.Shopping,
|
|
374
374
|
colorName: "shopping",
|
|
375
375
|
icon: "shopping_cart"
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
|
-
guid:
|
|
378
|
+
guid: h.Taxes,
|
|
379
379
|
colorName: "taxes",
|
|
380
380
|
icon: "heap_snapshot_large"
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
guid:
|
|
383
|
+
guid: h.Transfer,
|
|
384
384
|
colorName: "transfer",
|
|
385
385
|
icon: "compare_arrows"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
guid:
|
|
388
|
+
guid: h.Travel,
|
|
389
389
|
colorName: "travel",
|
|
390
390
|
icon: "airplane_ticket"
|
|
391
391
|
},
|
|
@@ -397,22 +397,22 @@ const oe = {
|
|
|
397
397
|
sx: l = {},
|
|
398
398
|
variant: c = "filled"
|
|
399
399
|
}) => {
|
|
400
|
-
const
|
|
401
|
-
() => Be.find((
|
|
400
|
+
const t = H(), n = x.useMemo(
|
|
401
|
+
() => Be.find((m) => m.guid === e) ?? oe,
|
|
402
402
|
[e]
|
|
403
|
-
), s =
|
|
403
|
+
), s = t.palette.categories[n.colorName];
|
|
404
404
|
return /* @__PURE__ */ a(
|
|
405
405
|
I,
|
|
406
406
|
{
|
|
407
407
|
alignItems: "center",
|
|
408
408
|
bgcolor: () => {
|
|
409
|
-
let
|
|
410
|
-
return c === "twotone" && (
|
|
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
|
|
415
|
-
return c === "basic" ?
|
|
414
|
+
const m = c === "filled" ? t.palette.common.white : s;
|
|
415
|
+
return c === "basic" ? t.palette.text.primary : m;
|
|
416
416
|
},
|
|
417
417
|
height: i,
|
|
418
418
|
justifyContent: "center",
|
|
@@ -421,13 +421,13 @@ const oe = {
|
|
|
421
421
|
children: /* @__PURE__ */ a(R, { name: n.icon, size: i * o })
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
|
-
},
|
|
424
|
+
}, Ge = ({
|
|
425
425
|
items: e,
|
|
426
426
|
onChange: o,
|
|
427
427
|
isValid: i,
|
|
428
428
|
selected: l
|
|
429
429
|
}) => {
|
|
430
|
-
const c = H(),
|
|
430
|
+
const c = H(), t = e?.map((n) => {
|
|
431
431
|
const s = n.getValue({ isValid: i });
|
|
432
432
|
return {
|
|
433
433
|
label: n.label,
|
|
@@ -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(
|
|
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: t?.map((n) => /* @__PURE__ */ a(
|
|
441
441
|
Re,
|
|
442
442
|
{
|
|
443
443
|
onClick: n.onClick,
|
|
@@ -465,14 +465,14 @@ const oe = {
|
|
|
465
465
|
},
|
|
466
466
|
n.label
|
|
467
467
|
)) }) });
|
|
468
|
-
},
|
|
468
|
+
}, $e = ({
|
|
469
469
|
items: e,
|
|
470
470
|
onChange: o,
|
|
471
471
|
isValid: i,
|
|
472
472
|
selected: l,
|
|
473
473
|
selectLabel: c
|
|
474
474
|
}) => {
|
|
475
|
-
const
|
|
475
|
+
const t = e?.map((n) => {
|
|
476
476
|
const s = n.getValue({ isValid: i });
|
|
477
477
|
return {
|
|
478
478
|
label: n.label,
|
|
@@ -496,7 +496,7 @@ const oe = {
|
|
|
496
496
|
sx: { width: "100%" },
|
|
497
497
|
value: l,
|
|
498
498
|
variant: "outlined",
|
|
499
|
-
children:
|
|
499
|
+
children: t?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
500
500
|
}
|
|
501
501
|
) });
|
|
502
502
|
}, Ue = (e) => {
|
|
@@ -535,28 +535,28 @@ const oe = {
|
|
|
535
535
|
selectedShortcut: l = e.dateRangeThisMonth,
|
|
536
536
|
sx: c = {}
|
|
537
537
|
}) => {
|
|
538
|
-
const
|
|
539
|
-
const
|
|
538
|
+
const t = H(), n = fe(t.breakpoints.down("sm")), s = x.useMemo(() => {
|
|
539
|
+
const r = he(), m = ge(r, 1), C = me(r, 1);
|
|
540
540
|
return [
|
|
541
541
|
{
|
|
542
542
|
label: e.dateRangeThisMonth,
|
|
543
|
-
getValue: () => [Z(
|
|
543
|
+
getValue: () => [Z(r), W(r)]
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
546
|
label: e.dateRangeLastMonth,
|
|
547
|
-
getValue: () => [Z(
|
|
547
|
+
getValue: () => [Z(m), W(m)]
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
550
|
label: e.dateRangeLast30Days,
|
|
551
|
-
getValue: () => [Y(
|
|
551
|
+
getValue: () => [Y(r, 30), r]
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
label: e.dateRangeLast90Days,
|
|
555
|
-
getValue: () => [Y(
|
|
555
|
+
getValue: () => [Y(r, 90), r]
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
label: e.dateRangeYTD,
|
|
559
|
-
getValue: () => [K(
|
|
559
|
+
getValue: () => [K(r), r]
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
562
|
label: e.dateRangeLastYear,
|
|
@@ -564,12 +564,12 @@ const oe = {
|
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
label: e.dateRangeCustom,
|
|
567
|
-
getValue: () => [
|
|
567
|
+
getValue: () => [r, r]
|
|
568
568
|
}
|
|
569
569
|
];
|
|
570
|
-
}, [e]), d = (
|
|
571
|
-
const C =
|
|
572
|
-
i?.(
|
|
570
|
+
}, [e]), d = (r, m) => {
|
|
571
|
+
const C = m.shortcut;
|
|
572
|
+
i?.(r, 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(
|
|
575
575
|
Te,
|
|
@@ -594,24 +594,24 @@ const oe = {
|
|
|
594
594
|
slots: {
|
|
595
595
|
...n && { layout: Ue },
|
|
596
596
|
leftArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_left", size: 28 }),
|
|
597
|
-
shortcuts: (
|
|
598
|
-
|
|
597
|
+
shortcuts: (r) => n ? /* @__PURE__ */ a(
|
|
598
|
+
$e,
|
|
599
599
|
{
|
|
600
600
|
selectLabel: e.dateRangeSelectARange,
|
|
601
601
|
selected: l,
|
|
602
|
-
...
|
|
602
|
+
...r
|
|
603
603
|
}
|
|
604
|
-
) : /* @__PURE__ */ a(
|
|
604
|
+
) : /* @__PURE__ */ a(Ge, { selected: l, ...r }),
|
|
605
605
|
rightArrowIcon: () => /* @__PURE__ */ a(R, { name: "chevron_right", size: 28 }),
|
|
606
606
|
...n && {
|
|
607
|
-
toolbar: (
|
|
607
|
+
toolbar: (r) => /* @__PURE__ */ a(
|
|
608
608
|
xe,
|
|
609
609
|
{
|
|
610
610
|
dateSeparator: "",
|
|
611
|
-
...
|
|
611
|
+
...r,
|
|
612
612
|
slotProps: {
|
|
613
|
-
textField: ({ position:
|
|
614
|
-
label:
|
|
613
|
+
textField: ({ position: m }) => ({
|
|
614
|
+
label: m === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
615
615
|
})
|
|
616
616
|
},
|
|
617
617
|
sx: { gap: 8 }
|
|
@@ -631,7 +631,7 @@ const oe = {
|
|
|
631
631
|
onPrimaryAction: i,
|
|
632
632
|
onSecondaryAction: l,
|
|
633
633
|
primaryColor: c = "primary",
|
|
634
|
-
primaryText:
|
|
634
|
+
primaryText: t = "Save",
|
|
635
635
|
secondaryColor: n = "primary",
|
|
636
636
|
secondaryText: s = "Cancel"
|
|
637
637
|
}) => /* @__PURE__ */ T(
|
|
@@ -658,7 +658,7 @@ const oe = {
|
|
|
658
658
|
disabled: o,
|
|
659
659
|
onClick: i,
|
|
660
660
|
variant: "contained",
|
|
661
|
-
children:
|
|
661
|
+
children: t
|
|
662
662
|
}
|
|
663
663
|
)
|
|
664
664
|
]
|
|
@@ -669,7 +669,7 @@ const oe = {
|
|
|
669
669
|
children: i,
|
|
670
670
|
color: l,
|
|
671
671
|
sx: c = {},
|
|
672
|
-
truncate:
|
|
672
|
+
truncate: t = !0,
|
|
673
673
|
uppercase: n,
|
|
674
674
|
...s
|
|
675
675
|
}) => {
|
|
@@ -706,7 +706,7 @@ const oe = {
|
|
|
706
706
|
break;
|
|
707
707
|
}
|
|
708
708
|
return /* @__PURE__ */ a(
|
|
709
|
-
|
|
709
|
+
ye,
|
|
710
710
|
{
|
|
711
711
|
className: `mx-kmui-text ${o}`,
|
|
712
712
|
color: l,
|
|
@@ -714,7 +714,7 @@ const oe = {
|
|
|
714
714
|
e ? {
|
|
715
715
|
fontWeight: 600
|
|
716
716
|
} : {},
|
|
717
|
-
|
|
717
|
+
t ? {
|
|
718
718
|
overflow: "hidden",
|
|
719
719
|
textOverflow: "ellipsis",
|
|
720
720
|
whiteSpace: "nowrap"
|
|
@@ -728,7 +728,7 @@ const oe = {
|
|
|
728
728
|
children: i
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
|
-
}, Ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), oo = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }),
|
|
731
|
+
}, Ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), oo = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), to = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), ro = ({ className: e = "", children: o, truncate: i, ...l }) => /* @__PURE__ */ a(
|
|
732
732
|
k,
|
|
733
733
|
{
|
|
734
734
|
className: `mx-kmui-text p ${e}`,
|
|
@@ -759,13 +759,13 @@ const oe = {
|
|
|
759
759
|
id: i,
|
|
760
760
|
isOpen: l,
|
|
761
761
|
onClose: c,
|
|
762
|
-
onSave:
|
|
762
|
+
onSave: t,
|
|
763
763
|
primaryText: n,
|
|
764
764
|
secondaryText: s,
|
|
765
765
|
children: d,
|
|
766
|
-
...
|
|
766
|
+
...r
|
|
767
767
|
}) => /* @__PURE__ */ T(
|
|
768
|
-
|
|
768
|
+
ve,
|
|
769
769
|
{
|
|
770
770
|
anchor: "right",
|
|
771
771
|
className: `mx-kmui-drawer ${e}`,
|
|
@@ -773,14 +773,14 @@ const oe = {
|
|
|
773
773
|
onClose: c,
|
|
774
774
|
open: l,
|
|
775
775
|
variant: "temporary",
|
|
776
|
-
...
|
|
776
|
+
...r,
|
|
777
777
|
children: [
|
|
778
778
|
d,
|
|
779
|
-
|
|
779
|
+
t && /* @__PURE__ */ a(
|
|
780
780
|
We,
|
|
781
781
|
{
|
|
782
782
|
isPrimaryDisabled: o,
|
|
783
|
-
onPrimaryAction:
|
|
783
|
+
onPrimaryAction: t,
|
|
784
784
|
onSecondaryAction: c,
|
|
785
785
|
primaryText: n,
|
|
786
786
|
secondaryText: s
|
|
@@ -788,19 +788,19 @@ const oe = {
|
|
|
788
788
|
)
|
|
789
789
|
]
|
|
790
790
|
}
|
|
791
|
-
),
|
|
791
|
+
), te = 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,
|
|
795
|
-
size: l =
|
|
795
|
+
size: l = te,
|
|
796
796
|
...c
|
|
797
797
|
}) => /* @__PURE__ */ a(
|
|
798
798
|
"img",
|
|
799
799
|
{
|
|
800
800
|
alt: e,
|
|
801
801
|
height: l,
|
|
802
|
-
onError: (
|
|
803
|
-
src: i || `${
|
|
802
|
+
onError: (t) => t.target.src = Ke,
|
|
803
|
+
src: i || `${$}/Ipad%20Logos/100x100/${o}_100x100.png`,
|
|
804
804
|
style: {
|
|
805
805
|
borderRadius: 4
|
|
806
806
|
},
|
|
@@ -811,19 +811,19 @@ const oe = {
|
|
|
811
811
|
alt: e = "",
|
|
812
812
|
categoryGuid: o,
|
|
813
813
|
merchantGuid: i,
|
|
814
|
-
size: l =
|
|
814
|
+
size: l = te,
|
|
815
815
|
...c
|
|
816
816
|
}) => {
|
|
817
|
-
const [
|
|
817
|
+
const [t, n] = x.useState(!1), s = H();
|
|
818
818
|
return /* @__PURE__ */ T(j, { display: "inline-block", position: "relative", ...c, children: [
|
|
819
|
-
i && !
|
|
819
|
+
i && !t && /* @__PURE__ */ a(
|
|
820
820
|
"img",
|
|
821
821
|
{
|
|
822
822
|
alt: e,
|
|
823
823
|
"aria-hidden": !e,
|
|
824
824
|
height: l,
|
|
825
825
|
onError: () => n(!0),
|
|
826
|
-
src: `${
|
|
826
|
+
src: `${$}/merchant_logos/${i}.png`,
|
|
827
827
|
style: {
|
|
828
828
|
backgroundColor: s.palette.common.white,
|
|
829
829
|
borderRadius: 4,
|
|
@@ -857,149 +857,143 @@ 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
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
862
|
+
closeAriaLabel: i,
|
|
863
|
+
message: l,
|
|
864
|
+
autoHideDuration: c = 3e3,
|
|
865
|
+
severity: t = "success",
|
|
866
|
+
snackbarSx: n,
|
|
867
|
+
showAction: s = !1,
|
|
868
|
+
showClose: d = !1,
|
|
869
|
+
actionText: r = "Undo",
|
|
870
|
+
onActionClick: m
|
|
871
871
|
}) => {
|
|
872
|
-
const C = H(),
|
|
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 = `${t}.main`;
|
|
908
873
|
return /* @__PURE__ */ a(
|
|
909
874
|
He,
|
|
910
875
|
{
|
|
911
876
|
TransitionComponent: Ye,
|
|
912
877
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
913
|
-
autoHideDuration:
|
|
878
|
+
autoHideDuration: c,
|
|
914
879
|
onClose: o,
|
|
915
880
|
open: e,
|
|
916
881
|
sx: {
|
|
917
|
-
...
|
|
918
|
-
|
|
882
|
+
...n,
|
|
883
|
+
maxWidth: 568,
|
|
884
|
+
minWidth: 288,
|
|
885
|
+
minHeight: 56
|
|
919
886
|
},
|
|
920
887
|
children: /* @__PURE__ */ a(
|
|
921
|
-
|
|
888
|
+
Le,
|
|
922
889
|
{
|
|
923
|
-
action:
|
|
924
|
-
severity:
|
|
890
|
+
action: O,
|
|
891
|
+
severity: t,
|
|
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
|
-
|
|
932
|
-
alignSelf: u ? "flex-start" : "center"
|
|
933
|
-
},
|
|
896
|
+
py: 8,
|
|
934
897
|
"& .MuiAlert-message": {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
898
|
+
my: 0,
|
|
899
|
+
flex: 1,
|
|
900
|
+
overflow: "hidden"
|
|
938
901
|
},
|
|
939
902
|
"& .MuiAlert-action": {
|
|
940
|
-
alignItems: "
|
|
941
|
-
height: "auto"
|
|
903
|
+
alignItems: d ? "flex-start" : "center"
|
|
942
904
|
}
|
|
943
905
|
},
|
|
944
906
|
variant: "filled",
|
|
945
|
-
children: /* @__PURE__ */
|
|
946
|
-
|
|
907
|
+
children: /* @__PURE__ */ T(
|
|
908
|
+
I,
|
|
947
909
|
{
|
|
948
910
|
sx: {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
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
|
-
|
|
955
|
-
|
|
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: r
|
|
947
|
+
}
|
|
948
|
+
)
|
|
949
|
+
]
|
|
956
950
|
}
|
|
957
951
|
)
|
|
958
952
|
}
|
|
959
953
|
)
|
|
960
954
|
}
|
|
961
955
|
);
|
|
962
|
-
},
|
|
956
|
+
}, F = {
|
|
963
957
|
REACT: "react",
|
|
964
958
|
REACT_NATIVE: "react_native",
|
|
965
959
|
NATIVE: "native"
|
|
966
960
|
}, N = {
|
|
967
961
|
LIGHT: "light",
|
|
968
962
|
DARK: "dark"
|
|
969
|
-
},
|
|
970
|
-
|
|
963
|
+
}, re = x.createContext(ee), ie = x.createContext(
|
|
964
|
+
G(N.LIGHT, F.REACT_NATIVE)
|
|
971
965
|
), uo = ({
|
|
972
966
|
children: e,
|
|
973
|
-
target: o =
|
|
967
|
+
target: o = F.REACT,
|
|
974
968
|
theme: i = N.LIGHT,
|
|
975
969
|
tokenOverrides: l
|
|
976
970
|
}) => {
|
|
977
|
-
const [c,
|
|
971
|
+
const [c, t] = x.useState(i === N.LIGHT ? ee : Fe), n = x.useMemo(() => ({
|
|
978
972
|
...l
|
|
979
973
|
}), [l]);
|
|
980
974
|
return x.useEffect(() => {
|
|
981
|
-
const s =
|
|
982
|
-
|
|
983
|
-
}, [i, o, n]), o ===
|
|
984
|
-
}, po = (e =
|
|
985
|
-
const i = e ===
|
|
986
|
-
return l ||
|
|
975
|
+
const s = G(i, o, { ...n });
|
|
976
|
+
t(s);
|
|
977
|
+
}, [i, o, n]), o === F.REACT ? /* @__PURE__ */ a(re.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 ? re : 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",
|
|
990
984
|
selected: i,
|
|
991
985
|
onChange: l,
|
|
992
986
|
headline: c,
|
|
993
|
-
message:
|
|
987
|
+
message: t,
|
|
994
988
|
name: n,
|
|
995
989
|
value: s,
|
|
996
990
|
disabled: d = !1,
|
|
997
|
-
error:
|
|
998
|
-
icon:
|
|
991
|
+
error: r = !1,
|
|
992
|
+
icon: m = !1,
|
|
999
993
|
sx: C = {},
|
|
1000
|
-
...
|
|
994
|
+
...O
|
|
1001
995
|
}) => {
|
|
1002
|
-
const
|
|
996
|
+
const g = H(), ae = () => g.palette.background.paper, w = () => r ? `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 || r ? g.palette.background.paper : b(g.palette.primary.main, 0.1), le = () => d || r ? 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 || r ? 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
|
-
...
|
|
1014
|
+
...O
|
|
1021
1015
|
}
|
|
1022
1016
|
) : /* @__PURE__ */ a(
|
|
1023
|
-
|
|
1017
|
+
Oe,
|
|
1024
1018
|
{
|
|
1025
1019
|
name: n,
|
|
1026
1020
|
sx: {
|
|
@@ -1032,15 +1026,15 @@ const so = ({
|
|
|
1032
1026
|
fontSize: "20px"
|
|
1033
1027
|
}
|
|
1034
1028
|
},
|
|
1035
|
-
...
|
|
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
|
-
|
|
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
|
-
/* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children:
|
|
1037
|
+
/* @__PURE__ */ a(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: t })
|
|
1044
1038
|
] })
|
|
1045
1039
|
] }),
|
|
1046
1040
|
labelPlacement: "start",
|
|
@@ -1050,7 +1044,7 @@ const so = ({
|
|
|
1050
1044
|
padding: "6px 16px",
|
|
1051
1045
|
alignItems: "flex-start",
|
|
1052
1046
|
justifyContent: "space-between",
|
|
1053
|
-
borderRadius:
|
|
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:
|
|
1062
|
-
duration:
|
|
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 ${
|
|
1066
|
+
outline: `2px solid ${g.palette.info.main}`,
|
|
1073
1067
|
outlineOffset: "2px"
|
|
1074
1068
|
},
|
|
1075
1069
|
...C
|
|
@@ -1077,20 +1071,20 @@ const so = ({
|
|
|
1077
1071
|
value: s
|
|
1078
1072
|
}
|
|
1079
1073
|
);
|
|
1080
|
-
},
|
|
1074
|
+
}, v = {
|
|
1081
1075
|
LIGHT: "light"
|
|
1082
|
-
},
|
|
1083
|
-
50:
|
|
1084
|
-
100:
|
|
1085
|
-
200:
|
|
1086
|
-
300:
|
|
1087
|
-
400:
|
|
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
|
-
}),
|
|
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",
|
|
@@ -1106,14 +1100,14 @@ const so = ({
|
|
|
1106
1100
|
CHART5: "#60A9FF",
|
|
1107
1101
|
CHART6: "#C8BAEE",
|
|
1108
1102
|
CHART7: "#585E67"
|
|
1109
|
-
},
|
|
1103
|
+
}, y = {
|
|
1110
1104
|
CHART_MONO1: "#C3EAFF",
|
|
1111
1105
|
CHART_MONO2: "#8ED7FF",
|
|
1112
1106
|
CHART_MONO3: "#60A9FF",
|
|
1113
1107
|
CHART_MONO4: "#2F73DA",
|
|
1114
1108
|
CHART_MONO5: "#034AB3",
|
|
1115
1109
|
CHART_MONO6: "#002966"
|
|
1116
|
-
},
|
|
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
|
-
},
|
|
1133
|
+
}, p = {
|
|
1140
1134
|
AUTO_TRANSPORTT: "#77DAFF",
|
|
1141
1135
|
BILLS_UTILITIES: "#FF81D4",
|
|
1142
1136
|
BUSINESS_SERVICES: "#4BBAFF",
|
|
@@ -1160,136 +1154,136 @@ const so = ({
|
|
|
1160
1154
|
TRAVEL: "#76ACF7",
|
|
1161
1155
|
UNCATEGORIZED: "#BCC6D4"
|
|
1162
1156
|
}, qe = (e, o) => {
|
|
1163
|
-
const i =
|
|
1157
|
+
const i = A(o?.primary || E.PRIMARY), l = A(o?.secondary || E.SECONDARY), c = A(o?.error || E.ERROR), t = A(o?.warning || E.WARNING), n = A(o?.info || E.INFO), s = A(o?.success || E.SUCCESS), d = A(o?.grey || E.GREY), r = e === v.LIGHT;
|
|
1164
1158
|
return {
|
|
1165
1159
|
mode: e,
|
|
1166
1160
|
// DEPRECATED: Use grey instead
|
|
1167
1161
|
border: {
|
|
1168
1162
|
/* DEPRECATED: Use light instead */
|
|
1169
|
-
lighter:
|
|
1170
|
-
light:
|
|
1171
|
-
main:
|
|
1163
|
+
lighter: r ? d[300] : d[700],
|
|
1164
|
+
light: r ? d[300] : d[700],
|
|
1165
|
+
main: r ? d[400] : d[600],
|
|
1172
1166
|
dark: d[500],
|
|
1173
1167
|
/* DEPRECATED: Use light instead */
|
|
1174
1168
|
darker: d[500]
|
|
1175
1169
|
},
|
|
1176
1170
|
common: {
|
|
1177
|
-
white:
|
|
1171
|
+
white: M,
|
|
1178
1172
|
black: z
|
|
1179
1173
|
},
|
|
1180
1174
|
primary: {
|
|
1181
1175
|
...i,
|
|
1182
1176
|
/* DEPRECATED: Use light instead */
|
|
1183
|
-
lighter:
|
|
1184
|
-
light:
|
|
1185
|
-
main:
|
|
1186
|
-
dark:
|
|
1177
|
+
lighter: r ? i[100] : i[800],
|
|
1178
|
+
light: r ? i[300] : i[600],
|
|
1179
|
+
main: r ? i[500] : i[400],
|
|
1180
|
+
dark: r ? i[700] : i[200],
|
|
1187
1181
|
/* DEPRECATED: Use dark instead */
|
|
1188
|
-
darker:
|
|
1182
|
+
darker: r ? i[900] : i[100]
|
|
1189
1183
|
},
|
|
1190
1184
|
secondary: {
|
|
1191
1185
|
...l,
|
|
1192
1186
|
/* DEPRECATED: Use light instead */
|
|
1193
|
-
lighter:
|
|
1194
|
-
light:
|
|
1195
|
-
main:
|
|
1196
|
-
dark:
|
|
1187
|
+
lighter: r ? l[100] : l[800],
|
|
1188
|
+
light: r ? l[300] : l[600],
|
|
1189
|
+
main: r ? l[500] : l[400],
|
|
1190
|
+
dark: r ? l[700] : l[200],
|
|
1197
1191
|
/* DEPRECATED: Use dark instead */
|
|
1198
|
-
darker:
|
|
1192
|
+
darker: r ? l[900] : l[100]
|
|
1199
1193
|
},
|
|
1200
1194
|
neutral: {
|
|
1201
1195
|
...d,
|
|
1202
1196
|
/* DEPRECATED: Use light instead */
|
|
1203
|
-
lighter:
|
|
1204
|
-
light:
|
|
1205
|
-
main:
|
|
1206
|
-
dark:
|
|
1197
|
+
lighter: r ? d[100] : d[800],
|
|
1198
|
+
light: r ? d[300] : d[600],
|
|
1199
|
+
main: r ? d[500] : d[400],
|
|
1200
|
+
dark: r ? d[700] : d[200],
|
|
1207
1201
|
/* DEPRECATED: Use dark instead */
|
|
1208
|
-
darker:
|
|
1209
|
-
contrastText: De(
|
|
1202
|
+
darker: r ? d[900] : d[100],
|
|
1203
|
+
contrastText: De(r ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
|
|
1210
1204
|
},
|
|
1211
1205
|
text: {
|
|
1212
|
-
primary:
|
|
1213
|
-
secondary:
|
|
1214
|
-
disabled:
|
|
1206
|
+
primary: r ? d[900] : M,
|
|
1207
|
+
secondary: r ? d[600] : b(M, 0.7),
|
|
1208
|
+
disabled: r ? d[500] : b(M, 0.38)
|
|
1215
1209
|
},
|
|
1216
1210
|
error: {
|
|
1217
1211
|
...c,
|
|
1218
1212
|
/* DEPRECATED: Use light instead */
|
|
1219
|
-
lighter:
|
|
1220
|
-
light:
|
|
1221
|
-
main:
|
|
1222
|
-
dark:
|
|
1213
|
+
lighter: r ? c[100] : c[800],
|
|
1214
|
+
light: r ? c[300] : c[600],
|
|
1215
|
+
main: r ? c[500] : c[400],
|
|
1216
|
+
dark: r ? c[700] : c[200],
|
|
1223
1217
|
/* DEPRECATED: Use light instead */
|
|
1224
|
-
darker:
|
|
1218
|
+
darker: r ? c[900] : c[100]
|
|
1225
1219
|
},
|
|
1226
1220
|
warning: {
|
|
1227
|
-
...
|
|
1221
|
+
...t,
|
|
1228
1222
|
/* DEPRECATED: Use light instead */
|
|
1229
|
-
lighter:
|
|
1230
|
-
light:
|
|
1231
|
-
main:
|
|
1232
|
-
dark:
|
|
1223
|
+
lighter: r ? t[100] : t[800],
|
|
1224
|
+
light: r ? t[300] : t[600],
|
|
1225
|
+
main: r ? t[500] : t[400],
|
|
1226
|
+
dark: r ? t[700] : t[200],
|
|
1233
1227
|
/* DEPRECATED: Use light instead */
|
|
1234
|
-
darker:
|
|
1228
|
+
darker: r ? t[900] : t[100]
|
|
1235
1229
|
},
|
|
1236
1230
|
info: {
|
|
1237
1231
|
...n,
|
|
1238
1232
|
/* DEPRECATED: Use light instead */
|
|
1239
|
-
lighter:
|
|
1240
|
-
light:
|
|
1241
|
-
main:
|
|
1242
|
-
dark:
|
|
1233
|
+
lighter: r ? n[100] : n[800],
|
|
1234
|
+
light: r ? n[300] : n[600],
|
|
1235
|
+
main: r ? n[500] : n[400],
|
|
1236
|
+
dark: r ? n[700] : n[200],
|
|
1243
1237
|
/* DEPRECATED: Use light instead */
|
|
1244
|
-
darker:
|
|
1238
|
+
darker: r ? n[900] : n[100]
|
|
1245
1239
|
},
|
|
1246
1240
|
success: {
|
|
1247
1241
|
...s,
|
|
1248
1242
|
/* DEPRECATED: Use light instead */
|
|
1249
|
-
lighter:
|
|
1250
|
-
light:
|
|
1251
|
-
main:
|
|
1252
|
-
dark:
|
|
1243
|
+
lighter: r ? s[100] : s[800],
|
|
1244
|
+
light: r ? s[300] : s[600],
|
|
1245
|
+
main: r ? s[500] : s[400],
|
|
1246
|
+
dark: r ? s[700] : s[200],
|
|
1253
1247
|
/* DEPRECATED: Use light instead */
|
|
1254
|
-
darker:
|
|
1248
|
+
darker: r ? s[900] : s[100]
|
|
1255
1249
|
},
|
|
1256
1250
|
grey: d,
|
|
1257
1251
|
action: {
|
|
1258
|
-
active:
|
|
1259
|
-
hoverOpacity:
|
|
1260
|
-
selectedOpacity:
|
|
1252
|
+
active: r ? b(z, 0.56) : b(M, 0.56),
|
|
1253
|
+
hoverOpacity: r ? 0.1 : 0.2,
|
|
1254
|
+
selectedOpacity: r ? 0.16 : 0.25,
|
|
1261
1255
|
focusOpacity: 0.3
|
|
1262
1256
|
},
|
|
1263
1257
|
background: {
|
|
1264
|
-
default:
|
|
1265
|
-
paper:
|
|
1266
|
-
highlight:
|
|
1267
|
-
highlightPrimary:
|
|
1258
|
+
default: r ? o?.background?.default?.light || Xe : o?.background?.default?.dark || je,
|
|
1259
|
+
paper: r ? o?.background?.paper?.light || Qe : o?.background?.paper?.dark || Je,
|
|
1260
|
+
highlight: r ? d[200] : d[600],
|
|
1261
|
+
highlightPrimary: r ? i[100] : i[500]
|
|
1268
1262
|
},
|
|
1269
|
-
divider:
|
|
1263
|
+
divider: r ? b(z, 0.12) : b(M, 0.24),
|
|
1270
1264
|
categories: {
|
|
1271
|
-
autoTransport:
|
|
1272
|
-
billsUtilities:
|
|
1273
|
-
businessServices:
|
|
1274
|
-
education:
|
|
1275
|
-
entertainment:
|
|
1276
|
-
feesCharges:
|
|
1277
|
-
financial:
|
|
1278
|
-
foodDining:
|
|
1279
|
-
giftsDonations:
|
|
1280
|
-
healthFitness:
|
|
1281
|
-
home:
|
|
1282
|
-
income:
|
|
1283
|
-
investments:
|
|
1284
|
-
kids:
|
|
1285
|
-
others:
|
|
1286
|
-
personalCare:
|
|
1287
|
-
pets:
|
|
1288
|
-
shopping:
|
|
1289
|
-
taxes:
|
|
1290
|
-
transfer:
|
|
1291
|
-
travel:
|
|
1292
|
-
uncategorized:
|
|
1265
|
+
autoTransport: r ? u.AUTO_TRANSPORTT : p.AUTO_TRANSPORTT,
|
|
1266
|
+
billsUtilities: r ? u.BILLS_UTILITIES : p.BILLS_UTILITIES,
|
|
1267
|
+
businessServices: r ? u.BUSINESS_SERVICES : p.BUSINESS_SERVICES,
|
|
1268
|
+
education: r ? u.EDUCATION : p.EDUCATION,
|
|
1269
|
+
entertainment: r ? u.ENTERTAINMENT : p.ENTERTAINMENT,
|
|
1270
|
+
feesCharges: r ? u.FEES_CHARGES : p.FEES_CHARGES,
|
|
1271
|
+
financial: r ? u.FINANCIAL : p.FINANCIAL,
|
|
1272
|
+
foodDining: r ? u.FOOD_DINING : p.FOOD_DINING,
|
|
1273
|
+
giftsDonations: r ? u.GIFTS_DONATIONS : p.GIFTS_DONATIONS,
|
|
1274
|
+
healthFitness: r ? u.HEALTH_FITNESS : p.HEALTH_FITNESS,
|
|
1275
|
+
home: r ? u.HOME : p.HOME,
|
|
1276
|
+
income: r ? u.INCOME : p.INCOME,
|
|
1277
|
+
investments: r ? u.INVESTMENTS : p.INVESTMENTS,
|
|
1278
|
+
kids: r ? u.KIDS : p.KIDS,
|
|
1279
|
+
others: r ? u.OTHERS : p.OTHERS,
|
|
1280
|
+
personalCare: r ? u.PERSONAL_CARE : p.PERSONAL_CARE,
|
|
1281
|
+
pets: r ? u.PETS : p.PETS,
|
|
1282
|
+
shopping: r ? u.SHOPPING : p.SHOPPING,
|
|
1283
|
+
taxes: r ? u.TAXES : p.TAXES,
|
|
1284
|
+
transfer: r ? u.TRANSFER : p.TRANSFER,
|
|
1285
|
+
travel: r ? u.TRAVEL : p.TRAVEL,
|
|
1286
|
+
uncategorized: r ? u.UNCATEGORIZED : p.UNCATEGORIZED
|
|
1293
1287
|
},
|
|
1294
1288
|
chart: {
|
|
1295
1289
|
chart1: S.CHART1,
|
|
@@ -1301,12 +1295,12 @@ const so = ({
|
|
|
1301
1295
|
chart7: S.CHART7
|
|
1302
1296
|
},
|
|
1303
1297
|
chartMono: {
|
|
1304
|
-
chartMono1:
|
|
1305
|
-
chartMono2:
|
|
1306
|
-
chartMono3:
|
|
1307
|
-
chartMono4:
|
|
1308
|
-
chartMono5:
|
|
1309
|
-
chartMono6:
|
|
1298
|
+
chartMono1: y.CHART_MONO1,
|
|
1299
|
+
chartMono2: y.CHART_MONO2,
|
|
1300
|
+
chartMono3: y.CHART_MONO3,
|
|
1301
|
+
chartMono4: y.CHART_MONO4,
|
|
1302
|
+
chartMono5: y.CHART_MONO5,
|
|
1303
|
+
chartMono6: y.CHART_MONO6
|
|
1310
1304
|
}
|
|
1311
1305
|
};
|
|
1312
1306
|
}, e0 = "Inter, Helvetica, Arial, sans-serif", o0 = (e) => {
|
|
@@ -1478,19 +1472,19 @@ const go = (e, o) => {
|
|
|
1478
1472
|
variant: "outlined"
|
|
1479
1473
|
},
|
|
1480
1474
|
styleOverrides: {
|
|
1481
|
-
root: ({ theme:
|
|
1475
|
+
root: ({ theme: t, ownerState: n }) => {
|
|
1482
1476
|
const s = n.severity || "info";
|
|
1483
|
-
let d =
|
|
1477
|
+
let d = t.palette.mode === v.LIGHT ? t.palette[s]?.[50] : t.palette[s]?.[800];
|
|
1484
1478
|
if (n.variant === "filled") {
|
|
1485
|
-
const
|
|
1486
|
-
d =
|
|
1479
|
+
const r = s === "warning";
|
|
1480
|
+
d = t.palette[s]?.[r ? 400 : 600];
|
|
1487
1481
|
}
|
|
1488
1482
|
return {
|
|
1489
1483
|
backgroundColor: d,
|
|
1490
|
-
borderRadius:
|
|
1484
|
+
borderRadius: t.shape.borderRadius,
|
|
1491
1485
|
"& .MuiAlert-message": {
|
|
1492
|
-
fontSize:
|
|
1493
|
-
lineHeight:
|
|
1486
|
+
fontSize: t.typography.subtitle1.fontSize,
|
|
1487
|
+
lineHeight: t.typography.subtitle1.lineHeight,
|
|
1494
1488
|
marginTop: "auto",
|
|
1495
1489
|
marginBottom: "auto"
|
|
1496
1490
|
},
|
|
@@ -1516,14 +1510,14 @@ const go = (e, o) => {
|
|
|
1516
1510
|
disableElevation: !0
|
|
1517
1511
|
},
|
|
1518
1512
|
styleOverrides: {
|
|
1519
|
-
root: ({ theme:
|
|
1513
|
+
root: ({ theme: t }) => ({
|
|
1520
1514
|
fontWeight: 600,
|
|
1521
1515
|
textTransform: "none",
|
|
1522
1516
|
"&.Mui-disabled": {
|
|
1523
1517
|
cursor: "not-allowed"
|
|
1524
1518
|
},
|
|
1525
1519
|
"&.Mui-focusVisible": {
|
|
1526
|
-
outline: `2px solid ${
|
|
1520
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1527
1521
|
outlineOffset: "2px"
|
|
1528
1522
|
}
|
|
1529
1523
|
}),
|
|
@@ -1589,22 +1583,22 @@ const go = (e, o) => {
|
|
|
1589
1583
|
},
|
|
1590
1584
|
MuiDataGrid: {
|
|
1591
1585
|
styleOverrides: {
|
|
1592
|
-
root: ({ theme:
|
|
1586
|
+
root: ({ theme: t }) => ({
|
|
1593
1587
|
border: "none",
|
|
1594
1588
|
borderRadius: 0,
|
|
1595
|
-
fontSize:
|
|
1589
|
+
fontSize: t.typography.body2.fontSize,
|
|
1596
1590
|
"& .MuiDataGrid-cell": {
|
|
1597
1591
|
display: "flex",
|
|
1598
1592
|
alignItems: "center",
|
|
1599
1593
|
borderTop: "1px solid",
|
|
1600
|
-
borderColor:
|
|
1594
|
+
borderColor: t.palette.background.highlight
|
|
1601
1595
|
},
|
|
1602
1596
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1603
1597
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1604
1598
|
"& .MuiDataGrid-columnHeaders": {
|
|
1605
|
-
backgroundColor:
|
|
1599
|
+
backgroundColor: t.palette.background.paper,
|
|
1606
1600
|
borderBottom: "2px solid",
|
|
1607
|
-
borderColor:
|
|
1601
|
+
borderColor: t.palette.divider
|
|
1608
1602
|
},
|
|
1609
1603
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1610
1604
|
fontWeight: 600
|
|
@@ -1622,42 +1616,42 @@ const go = (e, o) => {
|
|
|
1622
1616
|
},
|
|
1623
1617
|
MuiDateRangePickerDay: {
|
|
1624
1618
|
styleOverrides: {
|
|
1625
|
-
root: ({ theme:
|
|
1619
|
+
root: ({ theme: t }) => ({
|
|
1626
1620
|
":first-of-type": {
|
|
1627
|
-
borderTopLeftRadius:
|
|
1628
|
-
borderBottomLeftRadius:
|
|
1621
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1622
|
+
borderBottomLeftRadius: t.shape.borderRadius,
|
|
1629
1623
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1630
|
-
borderTopLeftRadius:
|
|
1631
|
-
borderBottomLeftRadius:
|
|
1624
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1625
|
+
borderBottomLeftRadius: t.shape.borderRadius
|
|
1632
1626
|
}
|
|
1633
1627
|
},
|
|
1634
1628
|
":last-of-type": {
|
|
1635
|
-
borderTopRightRadius:
|
|
1636
|
-
borderBottomRightRadius:
|
|
1629
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1630
|
+
borderBottomRightRadius: t.shape.borderRadius,
|
|
1637
1631
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1638
|
-
borderTopRightRadius:
|
|
1639
|
-
borderBottomRightRadius:
|
|
1632
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1633
|
+
borderBottomRightRadius: t.shape.borderRadius
|
|
1640
1634
|
}
|
|
1641
1635
|
},
|
|
1642
1636
|
"& .Mui-selected": {
|
|
1643
|
-
borderRadius:
|
|
1637
|
+
borderRadius: t.shape.borderRadius
|
|
1644
1638
|
},
|
|
1645
1639
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1646
|
-
color:
|
|
1640
|
+
color: t.palette.action.disabled
|
|
1647
1641
|
}
|
|
1648
1642
|
}),
|
|
1649
|
-
day: ({ theme:
|
|
1650
|
-
borderRadius:
|
|
1643
|
+
day: ({ theme: t }) => ({
|
|
1644
|
+
borderRadius: t.shape.borderRadius
|
|
1651
1645
|
}),
|
|
1652
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1653
|
-
borderRadius:
|
|
1646
|
+
rangeIntervalDayPreview: ({ theme: t }) => ({
|
|
1647
|
+
borderRadius: t.shape.borderRadius
|
|
1654
1648
|
})
|
|
1655
1649
|
}
|
|
1656
1650
|
},
|
|
1657
1651
|
MuiDayCalendar: {
|
|
1658
1652
|
styleOverrides: {
|
|
1659
|
-
weekDayLabel: ({ theme:
|
|
1660
|
-
fontSize:
|
|
1653
|
+
weekDayLabel: ({ theme: t }) => ({
|
|
1654
|
+
fontSize: t.typography.body2.fontSize,
|
|
1661
1655
|
fontWeight: 700
|
|
1662
1656
|
})
|
|
1663
1657
|
}
|
|
@@ -1699,14 +1693,14 @@ const go = (e, o) => {
|
|
|
1699
1693
|
},
|
|
1700
1694
|
MuiFormHelperText: {
|
|
1701
1695
|
styleOverrides: {
|
|
1702
|
-
root: ({ theme:
|
|
1696
|
+
root: ({ theme: t }) => ({
|
|
1703
1697
|
fontSize: 13,
|
|
1704
1698
|
// Small
|
|
1705
1699
|
marginLeft: 0,
|
|
1706
1700
|
display: "flex",
|
|
1707
1701
|
alignItems: "center",
|
|
1708
1702
|
position: "relative",
|
|
1709
|
-
color:
|
|
1703
|
+
color: t.palette.text.secondary,
|
|
1710
1704
|
"& .MuiSvgIcon-root": {
|
|
1711
1705
|
height: "16px",
|
|
1712
1706
|
width: "16px",
|
|
@@ -1737,19 +1731,19 @@ const go = (e, o) => {
|
|
|
1737
1731
|
disableFocusRipple: !0
|
|
1738
1732
|
},
|
|
1739
1733
|
styleOverrides: {
|
|
1740
|
-
root: ({ theme:
|
|
1741
|
-
borderRadius:
|
|
1734
|
+
root: ({ theme: t }) => ({
|
|
1735
|
+
borderRadius: t.shape.borderRadius,
|
|
1742
1736
|
minHeight: 44,
|
|
1743
1737
|
// touch target
|
|
1744
1738
|
minWidth: 44,
|
|
1745
1739
|
// touch target
|
|
1746
1740
|
"&.Mui-focusVisible": {
|
|
1747
|
-
outline: `2px solid ${
|
|
1741
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1748
1742
|
outlineOffset: "2px"
|
|
1749
1743
|
},
|
|
1750
1744
|
"& .MuiTouchRipple-root": {
|
|
1751
1745
|
"& .MuiTouchRipple-child": {
|
|
1752
|
-
borderRadius:
|
|
1746
|
+
borderRadius: t.shape.borderRadius
|
|
1753
1747
|
}
|
|
1754
1748
|
}
|
|
1755
1749
|
})
|
|
@@ -1776,7 +1770,7 @@ const go = (e, o) => {
|
|
|
1776
1770
|
},
|
|
1777
1771
|
MuiLink: {
|
|
1778
1772
|
styleOverrides: {
|
|
1779
|
-
root: ({ theme:
|
|
1773
|
+
root: ({ theme: t, color: n }) => ({
|
|
1780
1774
|
cursor: "pointer",
|
|
1781
1775
|
fontWeight: 600,
|
|
1782
1776
|
textDecoration: "none",
|
|
@@ -1788,10 +1782,10 @@ const go = (e, o) => {
|
|
|
1788
1782
|
outlineOffset: "2px"
|
|
1789
1783
|
},
|
|
1790
1784
|
"&:hover": {
|
|
1791
|
-
backgroundColor:
|
|
1785
|
+
backgroundColor: t.palette.action.hover
|
|
1792
1786
|
},
|
|
1793
1787
|
"&:active": {
|
|
1794
|
-
backgroundColor:
|
|
1788
|
+
backgroundColor: t.palette.mode === v.LIGHT ? t.palette[n].light : t.palette[n].dark
|
|
1795
1789
|
}
|
|
1796
1790
|
})
|
|
1797
1791
|
}
|
|
@@ -1818,9 +1812,9 @@ const go = (e, o) => {
|
|
|
1818
1812
|
disablePadding: !0
|
|
1819
1813
|
},
|
|
1820
1814
|
styleOverrides: {
|
|
1821
|
-
root: ({ ownerState:
|
|
1815
|
+
root: ({ ownerState: t }) => ({
|
|
1822
1816
|
minHeight: 64,
|
|
1823
|
-
...!
|
|
1817
|
+
...!t.disablePadding && {
|
|
1824
1818
|
paddingTop: 12,
|
|
1825
1819
|
paddingBottom: 12,
|
|
1826
1820
|
paddingLeft: 24
|
|
@@ -1844,7 +1838,7 @@ const go = (e, o) => {
|
|
|
1844
1838
|
},
|
|
1845
1839
|
MuiListItemButton: {
|
|
1846
1840
|
styleOverrides: {
|
|
1847
|
-
root: ({ theme:
|
|
1841
|
+
root: ({ theme: t }) => ({
|
|
1848
1842
|
minHeight: 64,
|
|
1849
1843
|
paddingLeft: 24,
|
|
1850
1844
|
paddingRight: 24,
|
|
@@ -1853,7 +1847,7 @@ const go = (e, o) => {
|
|
|
1853
1847
|
"&.Mui-focusVisible": {
|
|
1854
1848
|
backgroundColor: "transparent",
|
|
1855
1849
|
borderRadius: 8,
|
|
1856
|
-
outline: `2px solid ${
|
|
1850
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1857
1851
|
outlineOffset: -2
|
|
1858
1852
|
}
|
|
1859
1853
|
})
|
|
@@ -1978,11 +1972,11 @@ const go = (e, o) => {
|
|
|
1978
1972
|
},
|
|
1979
1973
|
MuiPickersToolbar: {
|
|
1980
1974
|
styleOverrides: {
|
|
1981
|
-
content: ({ theme:
|
|
1975
|
+
content: ({ theme: t }) => ({
|
|
1982
1976
|
marginTop: 4,
|
|
1983
1977
|
"& .MuiTypography-root": {
|
|
1984
|
-
fontSize:
|
|
1985
|
-
lineHeight:
|
|
1978
|
+
fontSize: t.typography.h3.fontSize,
|
|
1979
|
+
lineHeight: t.typography.h3.lineHeight
|
|
1986
1980
|
}
|
|
1987
1981
|
})
|
|
1988
1982
|
}
|
|
@@ -2008,7 +2002,7 @@ const go = (e, o) => {
|
|
|
2008
2002
|
disableFocusRipple: !0
|
|
2009
2003
|
},
|
|
2010
2004
|
styleOverrides: {
|
|
2011
|
-
root: ({ theme:
|
|
2005
|
+
root: ({ theme: t }) => ({
|
|
2012
2006
|
width: 37,
|
|
2013
2007
|
height: 20,
|
|
2014
2008
|
padding: 0,
|
|
@@ -2019,7 +2013,7 @@ const go = (e, o) => {
|
|
|
2019
2013
|
"&.Mui-checked": {
|
|
2020
2014
|
transform: "translateX(16px)",
|
|
2021
2015
|
"& + .MuiSwitch-track": {
|
|
2022
|
-
backgroundColor:
|
|
2016
|
+
backgroundColor: t.palette.success.main,
|
|
2023
2017
|
opacity: 1,
|
|
2024
2018
|
border: 0
|
|
2025
2019
|
},
|
|
@@ -2028,27 +2022,27 @@ const go = (e, o) => {
|
|
|
2028
2022
|
}
|
|
2029
2023
|
},
|
|
2030
2024
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
2031
|
-
color:
|
|
2025
|
+
color: t.palette.common.white
|
|
2032
2026
|
},
|
|
2033
2027
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
2034
|
-
backgroundColor:
|
|
2028
|
+
backgroundColor: t.palette.action.disabledBackground,
|
|
2035
2029
|
opacity: 1
|
|
2036
2030
|
}
|
|
2037
2031
|
},
|
|
2038
2032
|
"& .MuiSwitch-input": {
|
|
2039
2033
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
2040
|
-
outline: `2px solid ${
|
|
2034
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
2041
2035
|
outlineOffset: 0
|
|
2042
2036
|
}
|
|
2043
2037
|
},
|
|
2044
2038
|
"& .MuiSwitch-thumb": {
|
|
2045
2039
|
boxSizing: "border-box",
|
|
2046
|
-
backgroundColor:
|
|
2040
|
+
backgroundColor: t.palette.background.paper,
|
|
2047
2041
|
width: 16,
|
|
2048
2042
|
height: 16
|
|
2049
2043
|
},
|
|
2050
2044
|
"& .MuiSwitch-track": {
|
|
2051
|
-
backgroundColor:
|
|
2045
|
+
backgroundColor: t.palette.action.active,
|
|
2052
2046
|
borderRadius: 20 / 2,
|
|
2053
2047
|
opacity: 1
|
|
2054
2048
|
}
|
|
@@ -2100,7 +2094,7 @@ const go = (e, o) => {
|
|
|
2100
2094
|
disableFocusRipple: !0
|
|
2101
2095
|
},
|
|
2102
2096
|
styleOverrides: {
|
|
2103
|
-
root: ({ theme:
|
|
2097
|
+
root: ({ theme: t }) => ({
|
|
2104
2098
|
fontSize: 13,
|
|
2105
2099
|
lineHeight: "16px",
|
|
2106
2100
|
textTransform: "none",
|
|
@@ -2110,22 +2104,22 @@ const go = (e, o) => {
|
|
|
2110
2104
|
},
|
|
2111
2105
|
"&:hover": {
|
|
2112
2106
|
backgroundColor: b(
|
|
2113
|
-
|
|
2114
|
-
i.mode ===
|
|
2107
|
+
t.palette.primary.main,
|
|
2108
|
+
i.mode === v.LIGHT ? 0.1 : 0.2
|
|
2115
2109
|
),
|
|
2116
|
-
borderColor:
|
|
2110
|
+
borderColor: t.palette.primary.main
|
|
2117
2111
|
},
|
|
2118
2112
|
"&.Mui-selected": {
|
|
2119
2113
|
fontWeight: 600,
|
|
2120
|
-
borderColor:
|
|
2114
|
+
borderColor: t.palette.primary.main,
|
|
2121
2115
|
"&:hover": {
|
|
2122
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
2116
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.palette.primary.main}`
|
|
2123
2117
|
}
|
|
2124
2118
|
},
|
|
2125
2119
|
"& .MuiTouchRipple-root": {
|
|
2126
2120
|
"& .MuiTouchRipple-child": {
|
|
2127
|
-
backgroundColor:
|
|
2128
|
-
borderRadius:
|
|
2121
|
+
backgroundColor: t.palette.primary.main,
|
|
2122
|
+
borderRadius: t.shape.borderRadius
|
|
2129
2123
|
}
|
|
2130
2124
|
}
|
|
2131
2125
|
})
|
|
@@ -2135,7 +2129,7 @@ const go = (e, o) => {
|
|
|
2135
2129
|
props: { color: "error" },
|
|
2136
2130
|
style: {
|
|
2137
2131
|
"&:hover": {
|
|
2138
|
-
backgroundColor: b(i.error.main, i.mode ===
|
|
2132
|
+
backgroundColor: b(i.error.main, i.mode === v.LIGHT ? 0.1 : 0.2),
|
|
2139
2133
|
borderColor: i.error.main
|
|
2140
2134
|
},
|
|
2141
2135
|
"&.Mui-selected": {
|
|
@@ -2159,7 +2153,7 @@ const go = (e, o) => {
|
|
|
2159
2153
|
"&:hover": {
|
|
2160
2154
|
backgroundColor: b(
|
|
2161
2155
|
i.secondary.main,
|
|
2162
|
-
i.mode ===
|
|
2156
|
+
i.mode === v.LIGHT ? 0.1 : 0.2
|
|
2163
2157
|
),
|
|
2164
2158
|
borderColor: i.secondary.main
|
|
2165
2159
|
},
|
|
@@ -2206,13 +2200,13 @@ export {
|
|
|
2206
2200
|
f as BaseIcon,
|
|
2207
2201
|
eo as BottomSheetTransition,
|
|
2208
2202
|
z0 as CalendarIcon,
|
|
2209
|
-
|
|
2203
|
+
h as CategoryGuids,
|
|
2210
2204
|
Ve as CategoryIcon,
|
|
2211
2205
|
Be as CategoryIconList,
|
|
2212
2206
|
_e as CategoryIconVariants,
|
|
2213
2207
|
V0 as CheckmarkFilledIcon,
|
|
2214
|
-
|
|
2215
|
-
|
|
2208
|
+
G0 as ChevronDownIcon,
|
|
2209
|
+
$0 as ChevronLeftIcon,
|
|
2216
2210
|
U0 as ChevronRightIcon,
|
|
2217
2211
|
W0 as CloseIcon,
|
|
2218
2212
|
q0 as DateRangePicker,
|
|
@@ -2224,7 +2218,7 @@ export {
|
|
|
2224
2218
|
We as Footer,
|
|
2225
2219
|
Ze as H1,
|
|
2226
2220
|
oo as H2,
|
|
2227
|
-
|
|
2221
|
+
to as H3,
|
|
2228
2222
|
Y0 as HeartIcon,
|
|
2229
2223
|
e0 as INTER,
|
|
2230
2224
|
R as Icon,
|
|
@@ -2235,9 +2229,9 @@ export {
|
|
|
2235
2229
|
X0 as MXLogoIcon,
|
|
2236
2230
|
J0 as MXLogoOutlineIcon,
|
|
2237
2231
|
lo as MerchantLogo,
|
|
2238
|
-
|
|
2232
|
+
ro as P,
|
|
2239
2233
|
ho as SelectionBox,
|
|
2240
|
-
|
|
2234
|
+
F as TARGETS,
|
|
2241
2235
|
N as THEMES,
|
|
2242
2236
|
k as Text,
|
|
2243
2237
|
co as TextField,
|