@mxenabled/mxui 2.2.1 → 2.2.3
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/README.md +17 -9
- package/dist/index.es.js +310 -309
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import H from "react";
|
|
3
3
|
import A from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as E, createTheme as
|
|
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
|
-
import { endOfMonth as
|
|
6
|
+
import { endOfMonth as U } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as de } from "date-fns/endOfYear";
|
|
8
|
-
import { startOfToday as
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
11
|
-
import { subDays as
|
|
12
|
-
import { subMonths as
|
|
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";
|
|
11
|
+
import { subDays as W } from "date-fns/subDays";
|
|
12
|
+
import { subMonths as ue } 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
|
|
15
|
+
import { usePickerContext as j, 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
|
-
import
|
|
18
|
+
import Q from "@mui/material/Box";
|
|
19
19
|
import xe from "@mui/material/ToggleButton";
|
|
20
20
|
import Re from "@mui/material/ToggleButtonGroup";
|
|
21
21
|
import Me from "@mui/material/MenuItem";
|
|
22
|
-
import
|
|
22
|
+
import J from "@mui/material/TextField";
|
|
23
23
|
import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as D } from "@mui/x-date-pickers/PickersLayout";
|
|
24
|
-
import
|
|
24
|
+
import q from "@mui/material/Slide";
|
|
25
25
|
import B from "@mui/material/Button";
|
|
26
|
-
import
|
|
26
|
+
import ee from "@mui/material/IconButton";
|
|
27
27
|
import ye from "@mui/material/Typography";
|
|
28
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
|
|
31
|
+
import { FormControlLabel as Fe, Box as w, Typography as Y, Radio as P, Checkbox as ve, alpha as f, darken as N, lighten as O, getContrastRatio as Ne } from "@mui/material";
|
|
32
32
|
import { circularProgressClasses as He } from "@mui/material/CircularProgress";
|
|
33
33
|
import { LicenseInfo as Le } from "@mui/x-license";
|
|
34
34
|
const L = ({
|
|
35
35
|
children: e,
|
|
36
36
|
height: i,
|
|
37
|
-
size:
|
|
38
|
-
viewBox:
|
|
39
|
-
width:
|
|
37
|
+
size: t = 16,
|
|
38
|
+
viewBox: s = "0 0 16 16",
|
|
39
|
+
width: l
|
|
40
40
|
}) => /* @__PURE__ */ a(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
43
43
|
"aria-hidden": !0,
|
|
44
44
|
className: "mx-kmui-icon",
|
|
45
45
|
focusable: !1,
|
|
46
|
-
height: i ||
|
|
47
|
-
viewBox:
|
|
48
|
-
width:
|
|
46
|
+
height: i || t,
|
|
47
|
+
viewBox: s,
|
|
48
|
+
width: l || t,
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
children: e
|
|
51
51
|
}
|
|
52
|
-
), x = ({ color: e, fill: i = !1, name:
|
|
52
|
+
), x = ({ color: e, fill: i = !1, name: t, size: s = 20, sx: l, ...o }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: t, size: s, sx: l, ...o }), Ft = ({
|
|
53
53
|
color: e = "currentColor",
|
|
54
54
|
...i
|
|
55
55
|
}) => /* @__PURE__ */ b(L, { ...i, children: [
|
|
@@ -143,7 +143,7 @@ const L = ({
|
|
|
143
143
|
)
|
|
144
144
|
] });
|
|
145
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 || {});
|
|
146
|
-
const
|
|
146
|
+
const te = {
|
|
147
147
|
guid: g.Uncategorized,
|
|
148
148
|
colorName: "uncategorized",
|
|
149
149
|
icon: "category"
|
|
@@ -248,50 +248,50 @@ const ee = {
|
|
|
248
248
|
colorName: "travel",
|
|
249
249
|
icon: "airplane_ticket"
|
|
250
250
|
},
|
|
251
|
-
|
|
251
|
+
te
|
|
252
252
|
], we = 0.625, Pe = ({
|
|
253
253
|
categoryGuid: e,
|
|
254
254
|
icon_ratio: i = we,
|
|
255
|
-
size:
|
|
256
|
-
sx:
|
|
257
|
-
variant:
|
|
255
|
+
size: t = 32,
|
|
256
|
+
sx: s = {},
|
|
257
|
+
variant: l = "filled"
|
|
258
258
|
}) => {
|
|
259
|
-
const
|
|
260
|
-
() => De.find((
|
|
259
|
+
const o = E(), n = H.useMemo(
|
|
260
|
+
() => De.find((p) => p.guid === e) ?? te,
|
|
261
261
|
[e]
|
|
262
|
-
), c =
|
|
262
|
+
), c = o.palette.categories[n.colorName];
|
|
263
263
|
return /* @__PURE__ */ a(
|
|
264
264
|
A,
|
|
265
265
|
{
|
|
266
266
|
alignItems: "center",
|
|
267
267
|
bgcolor: () => {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
268
|
+
let p = c;
|
|
269
|
+
return l === "twotone" && (p = `${p}20`), l === "transparent" || l === "basic" ? "transparent" : p;
|
|
270
270
|
},
|
|
271
271
|
borderRadius: 1,
|
|
272
272
|
color: () => {
|
|
273
|
-
const
|
|
274
|
-
return
|
|
273
|
+
const p = l === "filled" ? o.palette.common.white : c;
|
|
274
|
+
return l === "basic" ? o.palette.text.primary : p;
|
|
275
275
|
},
|
|
276
|
-
height:
|
|
276
|
+
height: t,
|
|
277
277
|
justifyContent: "center",
|
|
278
|
-
sx: [...Array.isArray(
|
|
279
|
-
width:
|
|
280
|
-
children: /* @__PURE__ */ a(x, { name: n.icon, size:
|
|
278
|
+
sx: [...Array.isArray(s) ? s : [s]],
|
|
279
|
+
width: t,
|
|
280
|
+
children: /* @__PURE__ */ a(x, { name: n.icon, size: t * i })
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
}, _e = ({ items: e, selected: i }) => {
|
|
284
|
-
const
|
|
285
|
-
const c = n.getValue({ isValid:
|
|
284
|
+
const t = E(), { setValue: s } = j(), l = Z(), o = e?.map((n) => {
|
|
285
|
+
const c = n.getValue({ isValid: l });
|
|
286
286
|
return {
|
|
287
287
|
label: n.label,
|
|
288
288
|
onClick: () => {
|
|
289
|
-
|
|
289
|
+
s(c, { changeImportance: "accept", shortcut: n });
|
|
290
290
|
},
|
|
291
|
-
disabled: !
|
|
291
|
+
disabled: !l(c)
|
|
292
292
|
};
|
|
293
293
|
});
|
|
294
|
-
return /* @__PURE__ */ a(
|
|
294
|
+
return /* @__PURE__ */ a(Q, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: i, children: o?.map((n) => /* @__PURE__ */ a(
|
|
295
295
|
xe,
|
|
296
296
|
{
|
|
297
297
|
onClick: n.onClick,
|
|
@@ -305,11 +305,11 @@ const ee = {
|
|
|
305
305
|
boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
|
|
306
306
|
},
|
|
307
307
|
"&:hover": {
|
|
308
|
-
bgcolor:
|
|
309
|
-
borderTop: `1px solid ${
|
|
308
|
+
bgcolor: t.palette.action.hover,
|
|
309
|
+
borderTop: `1px solid ${t.palette.secondary.light}`
|
|
310
310
|
},
|
|
311
311
|
"&.Mui-selected": {
|
|
312
|
-
border: `2px solid ${
|
|
312
|
+
border: `2px solid ${t.palette.primary.main} !important`,
|
|
313
313
|
marginTop: "-2px !important",
|
|
314
314
|
color: "primary"
|
|
315
315
|
}
|
|
@@ -322,38 +322,38 @@ const ee = {
|
|
|
322
322
|
}, Be = ({
|
|
323
323
|
items: e,
|
|
324
324
|
selected: i,
|
|
325
|
-
selectLabel:
|
|
325
|
+
selectLabel: t
|
|
326
326
|
}) => {
|
|
327
|
-
const { setValue:
|
|
328
|
-
const c = n.getValue({ isValid:
|
|
327
|
+
const { setValue: s } = j(), l = Z(), o = e?.map((n) => {
|
|
328
|
+
const c = n.getValue({ isValid: l });
|
|
329
329
|
return {
|
|
330
330
|
label: n.label,
|
|
331
331
|
onClick: () => {
|
|
332
|
-
|
|
332
|
+
s(c, { changeImportance: "accept", shortcut: n });
|
|
333
333
|
},
|
|
334
|
-
disabled: !
|
|
334
|
+
disabled: !l(c)
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
337
|
return /* @__PURE__ */ a(A, { sx: { py: 16 }, children: /* @__PURE__ */ a(
|
|
338
|
-
|
|
338
|
+
J,
|
|
339
339
|
{
|
|
340
340
|
defaultValue: i,
|
|
341
341
|
id: "select",
|
|
342
|
-
label:
|
|
342
|
+
label: t,
|
|
343
343
|
select: !0,
|
|
344
344
|
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
|
|
345
345
|
sx: { width: "100%" },
|
|
346
346
|
value: i,
|
|
347
347
|
variant: "outlined",
|
|
348
|
-
children:
|
|
348
|
+
children: o?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
349
349
|
}
|
|
350
350
|
) });
|
|
351
351
|
}, ze = (e) => {
|
|
352
|
-
const { toolbar: i, content:
|
|
352
|
+
const { toolbar: i, content: t, shortcuts: s, ownerState: l } = Ce(e);
|
|
353
353
|
return /* @__PURE__ */ b(
|
|
354
354
|
Se,
|
|
355
355
|
{
|
|
356
|
-
ownerState:
|
|
356
|
+
ownerState: l,
|
|
357
357
|
sx: {
|
|
358
358
|
gridTemplateColumns: "minmax(320px, 1fr)",
|
|
359
359
|
overflow: "auto",
|
|
@@ -370,15 +370,15 @@ const ee = {
|
|
|
370
370
|
},
|
|
371
371
|
children: [
|
|
372
372
|
/* @__PURE__ */ b(A, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
|
|
373
|
-
|
|
373
|
+
s,
|
|
374
374
|
i
|
|
375
375
|
] }),
|
|
376
376
|
/* @__PURE__ */ a(
|
|
377
377
|
Ae,
|
|
378
378
|
{
|
|
379
379
|
className: D.contentWrapper,
|
|
380
|
-
ownerState:
|
|
381
|
-
children:
|
|
380
|
+
ownerState: l,
|
|
381
|
+
children: t
|
|
382
382
|
}
|
|
383
383
|
)
|
|
384
384
|
]
|
|
@@ -387,45 +387,45 @@ const ee = {
|
|
|
387
387
|
}, Lt = ({
|
|
388
388
|
copy: e,
|
|
389
389
|
dateRange: i,
|
|
390
|
-
onRangeChanged:
|
|
391
|
-
selectedShortcut:
|
|
392
|
-
sx:
|
|
390
|
+
onRangeChanged: t,
|
|
391
|
+
selectedShortcut: s = e.dateRangeThisMonth,
|
|
392
|
+
sx: l = {}
|
|
393
393
|
}) => {
|
|
394
|
-
const
|
|
395
|
-
const r =
|
|
394
|
+
const o = E(), n = ge(o.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
395
|
+
const r = pe(), p = ue(r, 1), T = he(r, 1);
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
398
|
label: e.dateRangeThisMonth,
|
|
399
|
-
getValue: () => [
|
|
399
|
+
getValue: () => [V(r), U(r)]
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
label: e.dateRangeLastMonth,
|
|
403
|
-
getValue: () => [
|
|
403
|
+
getValue: () => [V(p), U(p)]
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
label: e.dateRangeLast30Days,
|
|
407
|
-
getValue: () => [
|
|
407
|
+
getValue: () => [W(r, 30), r]
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
label: e.dateRangeLast90Days,
|
|
411
|
-
getValue: () => [
|
|
411
|
+
getValue: () => [W(r, 90), r]
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
label: e.dateRangeYTD,
|
|
415
|
-
getValue: () => [
|
|
415
|
+
getValue: () => [G(r), r]
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
label: e.dateRangeLastYear,
|
|
419
|
-
getValue: () => [
|
|
419
|
+
getValue: () => [G(T), de(T)]
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
label: e.dateRangeCustom,
|
|
423
423
|
getValue: () => [r, r]
|
|
424
424
|
}
|
|
425
425
|
];
|
|
426
|
-
}, [e]), d = (r,
|
|
427
|
-
const T =
|
|
428
|
-
|
|
426
|
+
}, [e]), d = (r, p) => {
|
|
427
|
+
const T = p.shortcut;
|
|
428
|
+
t?.(r, T ? T.label : e.dateRangeCustom);
|
|
429
429
|
};
|
|
430
430
|
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
|
|
431
431
|
fe,
|
|
@@ -454,10 +454,10 @@ const ee = {
|
|
|
454
454
|
Be,
|
|
455
455
|
{
|
|
456
456
|
selectLabel: e.dateRangeSelectARange,
|
|
457
|
-
selected:
|
|
457
|
+
selected: s,
|
|
458
458
|
...r
|
|
459
459
|
}
|
|
460
|
-
) : /* @__PURE__ */ a(_e, { selected:
|
|
460
|
+
) : /* @__PURE__ */ a(_e, { selected: s, ...r }),
|
|
461
461
|
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
|
|
462
462
|
...n && {
|
|
463
463
|
toolbar: (r) => /* @__PURE__ */ a(
|
|
@@ -467,8 +467,8 @@ const ee = {
|
|
|
467
467
|
format: "MM/dd/yyyy",
|
|
468
468
|
...r,
|
|
469
469
|
slotProps: {
|
|
470
|
-
textField: ({ position:
|
|
471
|
-
label:
|
|
470
|
+
textField: ({ position: p }) => ({
|
|
471
|
+
label: p === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
472
472
|
})
|
|
473
473
|
},
|
|
474
474
|
sx: { gap: 8 }
|
|
@@ -476,19 +476,19 @@ const ee = {
|
|
|
476
476
|
)
|
|
477
477
|
}
|
|
478
478
|
},
|
|
479
|
-
sx: { ...
|
|
479
|
+
sx: { ...l },
|
|
480
480
|
value: i
|
|
481
481
|
}
|
|
482
482
|
) }) });
|
|
483
|
-
}, kt = H.forwardRef(function(i,
|
|
484
|
-
return /* @__PURE__ */ a(
|
|
483
|
+
}, kt = H.forwardRef(function(i, t) {
|
|
484
|
+
return /* @__PURE__ */ a(q, { direction: "up", ref: t, ...i });
|
|
485
485
|
}), $e = ({
|
|
486
486
|
hasSecondaryAction: e = !0,
|
|
487
487
|
isPrimaryDisabled: i,
|
|
488
|
-
onPrimaryAction:
|
|
489
|
-
onSecondaryAction:
|
|
490
|
-
primaryColor:
|
|
491
|
-
primaryText:
|
|
488
|
+
onPrimaryAction: t,
|
|
489
|
+
onSecondaryAction: s,
|
|
490
|
+
primaryColor: l = "primary",
|
|
491
|
+
primaryText: o = "Save",
|
|
492
492
|
secondaryColor: n = "primary",
|
|
493
493
|
secondaryText: c = "Cancel"
|
|
494
494
|
}) => /* @__PURE__ */ b(
|
|
@@ -503,19 +503,19 @@ const ee = {
|
|
|
503
503
|
B,
|
|
504
504
|
{
|
|
505
505
|
color: n,
|
|
506
|
-
onClick:
|
|
507
|
-
variant:
|
|
506
|
+
onClick: s,
|
|
507
|
+
variant: t ? "outlined" : "contained",
|
|
508
508
|
children: c
|
|
509
509
|
}
|
|
510
510
|
),
|
|
511
|
-
|
|
511
|
+
t && /* @__PURE__ */ a(
|
|
512
512
|
B,
|
|
513
513
|
{
|
|
514
|
-
color:
|
|
514
|
+
color: l,
|
|
515
515
|
disabled: i,
|
|
516
|
-
onClick:
|
|
516
|
+
onClick: t,
|
|
517
517
|
variant: "contained",
|
|
518
|
-
children:
|
|
518
|
+
children: o
|
|
519
519
|
}
|
|
520
520
|
)
|
|
521
521
|
]
|
|
@@ -523,22 +523,22 @@ const ee = {
|
|
|
523
523
|
), F = ({
|
|
524
524
|
bold: e,
|
|
525
525
|
className: i = "",
|
|
526
|
-
children:
|
|
527
|
-
color:
|
|
528
|
-
sx:
|
|
529
|
-
truncate:
|
|
526
|
+
children: t,
|
|
527
|
+
color: s,
|
|
528
|
+
sx: l = {},
|
|
529
|
+
truncate: o,
|
|
530
530
|
uppercase: n,
|
|
531
531
|
...c
|
|
532
532
|
}) => /* @__PURE__ */ a(
|
|
533
533
|
ye,
|
|
534
534
|
{
|
|
535
535
|
className: `mx-kmui-text ${i}`,
|
|
536
|
-
color:
|
|
536
|
+
color: s,
|
|
537
537
|
sx: [
|
|
538
538
|
e ? {
|
|
539
539
|
fontWeight: 600
|
|
540
540
|
} : {},
|
|
541
|
-
|
|
541
|
+
o ? {
|
|
542
542
|
overflow: "hidden",
|
|
543
543
|
textOverflow: "ellipsis",
|
|
544
544
|
whiteSpace: "nowrap"
|
|
@@ -546,12 +546,12 @@ const ee = {
|
|
|
546
546
|
n ? {
|
|
547
547
|
textTransform: "uppercase"
|
|
548
548
|
} : {},
|
|
549
|
-
...Array.isArray(
|
|
549
|
+
...Array.isArray(l) ? l : [l]
|
|
550
550
|
],
|
|
551
551
|
...c,
|
|
552
|
-
children:
|
|
552
|
+
children: t
|
|
553
553
|
}
|
|
554
|
-
), Ue = ({ className: e = "", children: i, ...
|
|
554
|
+
), Ue = ({ className: e = "", children: i, ...t }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...t, children: i }), Dt = ({ className: e = "", children: i, ...t }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...t, children: i }), wt = ({ className: e = "", children: i, ...t }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...t, children: i }), Pt = ({ className: e = "", children: i, ...t }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...t, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
|
|
555
555
|
A,
|
|
556
556
|
{
|
|
557
557
|
sx: {
|
|
@@ -563,16 +563,16 @@ const ee = {
|
|
|
563
563
|
},
|
|
564
564
|
children: [
|
|
565
565
|
/* @__PURE__ */ a(Ue, { variant: "h3", children: e.title }),
|
|
566
|
-
/* @__PURE__ */ a(
|
|
566
|
+
/* @__PURE__ */ a(ee, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ce, {}) })
|
|
567
567
|
]
|
|
568
568
|
}
|
|
569
569
|
), Bt = ({
|
|
570
570
|
className: e,
|
|
571
571
|
disableSave: i,
|
|
572
|
-
id:
|
|
573
|
-
isOpen:
|
|
574
|
-
onClose:
|
|
575
|
-
onSave:
|
|
572
|
+
id: t,
|
|
573
|
+
isOpen: s,
|
|
574
|
+
onClose: l,
|
|
575
|
+
onSave: o,
|
|
576
576
|
primaryText: n,
|
|
577
577
|
secondaryText: c,
|
|
578
578
|
children: d,
|
|
@@ -582,117 +582,117 @@ const ee = {
|
|
|
582
582
|
{
|
|
583
583
|
anchor: "right",
|
|
584
584
|
className: `mx-kmui-drawer ${e}`,
|
|
585
|
-
id:
|
|
586
|
-
onClose:
|
|
587
|
-
open:
|
|
585
|
+
id: t ?? void 0,
|
|
586
|
+
onClose: l,
|
|
587
|
+
open: s,
|
|
588
588
|
variant: "temporary",
|
|
589
589
|
...r,
|
|
590
590
|
children: [
|
|
591
591
|
d,
|
|
592
|
-
|
|
592
|
+
o && /* @__PURE__ */ a(
|
|
593
593
|
$e,
|
|
594
594
|
{
|
|
595
595
|
isPrimaryDisabled: i,
|
|
596
|
-
onPrimaryAction:
|
|
597
|
-
onSecondaryAction:
|
|
596
|
+
onPrimaryAction: o,
|
|
597
|
+
onSecondaryAction: l,
|
|
598
598
|
primaryText: n,
|
|
599
599
|
secondaryText: c
|
|
600
600
|
}
|
|
601
601
|
)
|
|
602
602
|
]
|
|
603
603
|
}
|
|
604
|
-
),
|
|
604
|
+
), oe = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", K = `${z}/serenity/default_institution_logo.png`, zt = ({
|
|
605
605
|
alt: e,
|
|
606
606
|
institutionGuid: i,
|
|
607
|
-
logoUrl:
|
|
608
|
-
size:
|
|
609
|
-
...
|
|
607
|
+
logoUrl: t,
|
|
608
|
+
size: s = oe,
|
|
609
|
+
...l
|
|
610
610
|
}) => /* @__PURE__ */ a(
|
|
611
611
|
"img",
|
|
612
612
|
{
|
|
613
613
|
alt: e,
|
|
614
|
-
height:
|
|
615
|
-
onError: (
|
|
616
|
-
const n =
|
|
617
|
-
n.src !==
|
|
614
|
+
height: s,
|
|
615
|
+
onError: (o) => {
|
|
616
|
+
const n = o.target;
|
|
617
|
+
n.src !== K && (n.src = K);
|
|
618
618
|
},
|
|
619
|
-
src:
|
|
619
|
+
src: t || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
620
620
|
style: {
|
|
621
621
|
borderRadius: 4
|
|
622
622
|
},
|
|
623
|
-
width:
|
|
624
|
-
...
|
|
623
|
+
width: s,
|
|
624
|
+
...l
|
|
625
625
|
}
|
|
626
626
|
), $t = ({
|
|
627
627
|
alt: e = "",
|
|
628
628
|
categoryGuid: i,
|
|
629
|
-
merchantGuid:
|
|
630
|
-
size:
|
|
631
|
-
...
|
|
629
|
+
merchantGuid: t,
|
|
630
|
+
size: s = oe,
|
|
631
|
+
...l
|
|
632
632
|
}) => {
|
|
633
|
-
const [
|
|
634
|
-
return /* @__PURE__ */ b(
|
|
635
|
-
|
|
633
|
+
const [o, n] = H.useState(!1), c = E();
|
|
634
|
+
return /* @__PURE__ */ b(Q, { display: "inline-block", position: "relative", ...l, children: [
|
|
635
|
+
t && !o && /* @__PURE__ */ a(
|
|
636
636
|
"img",
|
|
637
637
|
{
|
|
638
638
|
alt: e,
|
|
639
639
|
"aria-hidden": !e,
|
|
640
|
-
height:
|
|
640
|
+
height: s,
|
|
641
641
|
onError: () => n(!0),
|
|
642
|
-
src: `${z}/merchant_logos/${
|
|
642
|
+
src: `${z}/merchant_logos/${t}.png`,
|
|
643
643
|
style: {
|
|
644
644
|
backgroundColor: c.palette.common.white,
|
|
645
645
|
borderRadius: 4,
|
|
646
646
|
boxSizing: "border-box",
|
|
647
647
|
position: "absolute"
|
|
648
648
|
},
|
|
649
|
-
width:
|
|
649
|
+
width: s
|
|
650
650
|
}
|
|
651
651
|
),
|
|
652
|
-
/* @__PURE__ */ a(Pe, { categoryGuid: i, size:
|
|
652
|
+
/* @__PURE__ */ a(Pe, { categoryGuid: i, size: s })
|
|
653
653
|
] });
|
|
654
654
|
}, Ut = ({
|
|
655
655
|
disabled: e = !1,
|
|
656
656
|
label: i = "",
|
|
657
|
-
shrink:
|
|
658
|
-
variant:
|
|
659
|
-
...
|
|
657
|
+
shrink: t = !0,
|
|
658
|
+
variant: s = "outlined",
|
|
659
|
+
...l
|
|
660
660
|
}) => /* @__PURE__ */ a(
|
|
661
|
-
|
|
661
|
+
J,
|
|
662
662
|
{
|
|
663
663
|
InputLabelProps: {
|
|
664
|
-
shrink:
|
|
664
|
+
shrink: t
|
|
665
665
|
},
|
|
666
666
|
disabled: e,
|
|
667
667
|
label: i,
|
|
668
|
-
variant:
|
|
669
|
-
...
|
|
668
|
+
variant: s,
|
|
669
|
+
...l
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
function Ve(e) {
|
|
673
|
-
return /* @__PURE__ */ a(
|
|
673
|
+
return /* @__PURE__ */ a(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
674
674
|
}
|
|
675
675
|
const Vt = ({
|
|
676
676
|
open: e,
|
|
677
677
|
handleClose: i,
|
|
678
|
-
message:
|
|
679
|
-
autoHideDuration:
|
|
680
|
-
severity:
|
|
681
|
-
snackbarSx:
|
|
678
|
+
message: t,
|
|
679
|
+
autoHideDuration: s = 3e3,
|
|
680
|
+
severity: l = "success",
|
|
681
|
+
snackbarSx: o,
|
|
682
682
|
showAction: n = !1,
|
|
683
683
|
showClose: c = !1,
|
|
684
684
|
actionText: d = "Undo",
|
|
685
685
|
onActionClick: r,
|
|
686
|
-
multiLine:
|
|
686
|
+
multiLine: p = !1
|
|
687
687
|
}) => {
|
|
688
688
|
const T = E(), v = /* @__PURE__ */ b(
|
|
689
689
|
A,
|
|
690
690
|
{
|
|
691
|
-
alignItems:
|
|
692
|
-
direction:
|
|
691
|
+
alignItems: p ? "flex-end" : "center",
|
|
692
|
+
direction: p ? "column-reverse" : "row",
|
|
693
693
|
justifyContent: (
|
|
694
694
|
// eslint-disable-next-line no-nested-ternary
|
|
695
|
-
|
|
695
|
+
p && n && c ? "space-between" : "flex-end"
|
|
696
696
|
),
|
|
697
697
|
children: [
|
|
698
698
|
n && /* @__PURE__ */ a(
|
|
@@ -709,7 +709,7 @@ const Vt = ({
|
|
|
709
709
|
}
|
|
710
710
|
),
|
|
711
711
|
c && /* @__PURE__ */ a(
|
|
712
|
-
|
|
712
|
+
ee,
|
|
713
713
|
{
|
|
714
714
|
"aria-label": "close",
|
|
715
715
|
color: "inherit",
|
|
@@ -726,31 +726,31 @@ const Vt = ({
|
|
|
726
726
|
{
|
|
727
727
|
TransitionComponent: Ve,
|
|
728
728
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
729
|
-
autoHideDuration:
|
|
729
|
+
autoHideDuration: s,
|
|
730
730
|
onClose: i,
|
|
731
731
|
open: e,
|
|
732
732
|
sx: {
|
|
733
|
-
...
|
|
734
|
-
width:
|
|
733
|
+
...o,
|
|
734
|
+
width: p ? 400 : 325
|
|
735
735
|
},
|
|
736
736
|
children: /* @__PURE__ */ a(
|
|
737
737
|
Oe,
|
|
738
738
|
{
|
|
739
739
|
action: v,
|
|
740
|
-
severity:
|
|
740
|
+
severity: l,
|
|
741
741
|
sx: {
|
|
742
742
|
display: "flex",
|
|
743
743
|
alignItems: "stretch",
|
|
744
|
-
minHeight: c && n &&
|
|
745
|
-
maxHeight:
|
|
744
|
+
minHeight: c && n && p ? 120 : 56,
|
|
745
|
+
maxHeight: p ? 120 : 56,
|
|
746
746
|
width: "100%",
|
|
747
747
|
"& .MuiAlert-icon": {
|
|
748
|
-
alignSelf:
|
|
748
|
+
alignSelf: p ? "flex-start" : "center"
|
|
749
749
|
},
|
|
750
750
|
"& .MuiAlert-message": {
|
|
751
|
-
paddingTop:
|
|
752
|
-
paddingBottom:
|
|
753
|
-
alignSelf:
|
|
751
|
+
paddingTop: p ? 12 : 8,
|
|
752
|
+
paddingBottom: p ? 12 : 8,
|
|
753
|
+
alignSelf: p ? "flex-start" : "center"
|
|
754
754
|
},
|
|
755
755
|
"& .MuiAlert-action": {
|
|
756
756
|
alignItems: "stretch",
|
|
@@ -763,12 +763,12 @@ const Vt = ({
|
|
|
763
763
|
{
|
|
764
764
|
sx: {
|
|
765
765
|
lineHeight: T.typography.body1.lineHeight,
|
|
766
|
-
whiteSpace:
|
|
767
|
-
overflow:
|
|
768
|
-
textOverflow:
|
|
766
|
+
whiteSpace: p ? "normal" : "nowrap",
|
|
767
|
+
overflow: p ? "visible" : "hidden",
|
|
768
|
+
textOverflow: p ? "clip" : "ellipsis"
|
|
769
769
|
},
|
|
770
|
-
truncate: !
|
|
771
|
-
children:
|
|
770
|
+
truncate: !p,
|
|
771
|
+
children: t
|
|
772
772
|
}
|
|
773
773
|
)
|
|
774
774
|
}
|
|
@@ -778,23 +778,23 @@ const Vt = ({
|
|
|
778
778
|
}, Gt = ({
|
|
779
779
|
component: e = P,
|
|
780
780
|
variant: i = "outlined",
|
|
781
|
-
selected:
|
|
782
|
-
onChange:
|
|
783
|
-
headline:
|
|
784
|
-
message:
|
|
781
|
+
selected: t,
|
|
782
|
+
onChange: s,
|
|
783
|
+
headline: l,
|
|
784
|
+
message: o,
|
|
785
785
|
name: n,
|
|
786
786
|
value: c,
|
|
787
787
|
disabled: d = !1,
|
|
788
788
|
error: r = !1,
|
|
789
|
-
icon:
|
|
789
|
+
icon: p = !1,
|
|
790
790
|
sx: T = {},
|
|
791
791
|
...v
|
|
792
792
|
}) => {
|
|
793
|
-
const m = E(),
|
|
793
|
+
const m = E(), re = () => m.palette.background.paper, k = () => r ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? t ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${m.palette.action.disabled}` : i === "outlined" ? t ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(m.palette.common.black, 0.23)}` : t ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : m.shadows[1], ie = () => d || r ? m.palette.background.paper : f(m.palette.primary.main, 0.1), ae = () => d || r ? k() : i === "outlined" ? t ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(m.palette.primary.main, 0.5)}` : k(), ne = () => d || r ? m.palette.background.paper : f(m.palette.primary.main, 0.3);
|
|
794
794
|
return /* @__PURE__ */ a(
|
|
795
795
|
Fe,
|
|
796
796
|
{
|
|
797
|
-
checked:
|
|
797
|
+
checked: t,
|
|
798
798
|
control: e === P ? /* @__PURE__ */ a(
|
|
799
799
|
P,
|
|
800
800
|
{
|
|
@@ -828,14 +828,14 @@ const Vt = ({
|
|
|
828
828
|
),
|
|
829
829
|
disabled: d,
|
|
830
830
|
label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
831
|
-
|
|
831
|
+
p && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: p }),
|
|
832
832
|
/* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
833
|
-
|
|
834
|
-
/* @__PURE__ */ a(
|
|
833
|
+
l && /* @__PURE__ */ a(Y, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
834
|
+
/* @__PURE__ */ a(Y, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: o })
|
|
835
835
|
] })
|
|
836
836
|
] }),
|
|
837
837
|
labelPlacement: "start",
|
|
838
|
-
onChange:
|
|
838
|
+
onChange: s,
|
|
839
839
|
sx: {
|
|
840
840
|
display: "flex",
|
|
841
841
|
padding: "6px 16px",
|
|
@@ -845,7 +845,7 @@ const Vt = ({
|
|
|
845
845
|
mb: 16,
|
|
846
846
|
cursor: d ? "not-allowed" : "pointer",
|
|
847
847
|
opacity: d ? 0.6 : 1,
|
|
848
|
-
backgroundColor:
|
|
848
|
+
backgroundColor: re(),
|
|
849
849
|
border: "none",
|
|
850
850
|
boxShadow: k(),
|
|
851
851
|
boxSizing: "border-box",
|
|
@@ -853,11 +853,11 @@ const Vt = ({
|
|
|
853
853
|
duration: m.transitions.duration.short
|
|
854
854
|
}),
|
|
855
855
|
"&:hover": {
|
|
856
|
-
backgroundColor:
|
|
857
|
-
boxShadow:
|
|
856
|
+
backgroundColor: ie(),
|
|
857
|
+
boxShadow: ae()
|
|
858
858
|
},
|
|
859
859
|
"&:active": {
|
|
860
|
-
backgroundColor:
|
|
860
|
+
backgroundColor: ne()
|
|
861
861
|
},
|
|
862
862
|
"&:focus-visible": {
|
|
863
863
|
outline: `2px solid ${m.palette.info.main}`,
|
|
@@ -904,7 +904,7 @@ const Vt = ({
|
|
|
904
904
|
CHART_MONO4: "#2F73DA",
|
|
905
905
|
CHART_MONO5: "#034AB3",
|
|
906
906
|
CHART_MONO6: "#002966"
|
|
907
|
-
},
|
|
907
|
+
}, u = {
|
|
908
908
|
AUTO_TRANSPORTT: "#00B0FF",
|
|
909
909
|
BILLS_UTILITIES: "#F949BD",
|
|
910
910
|
BUSINESS_SERVICES: "#2979FF",
|
|
@@ -951,7 +951,7 @@ const Vt = ({
|
|
|
951
951
|
TRAVEL: "#76ACF7",
|
|
952
952
|
UNCATEGORIZED: "#BCC6D4"
|
|
953
953
|
}, Xe = (e, i) => {
|
|
954
|
-
const
|
|
954
|
+
const t = R(i?.primary || C.PRIMARY), s = R(i?.secondary || C.SECONDARY), l = R(i?.error || C.ERROR), o = R(i?.warning || C.WARNING), n = R(i?.info || C.INFO), c = R(i?.success || C.SUCCESS), d = R(i?.grey || C.GREY), r = e === I.LIGHT;
|
|
955
955
|
return {
|
|
956
956
|
mode: e,
|
|
957
957
|
common: {
|
|
@@ -959,16 +959,16 @@ const Vt = ({
|
|
|
959
959
|
black: _
|
|
960
960
|
},
|
|
961
961
|
primary: {
|
|
962
|
-
...
|
|
963
|
-
light: r ?
|
|
964
|
-
main: r ?
|
|
965
|
-
dark: r ?
|
|
962
|
+
...t,
|
|
963
|
+
light: r ? t[300] : t[600],
|
|
964
|
+
main: r ? t[500] : t[400],
|
|
965
|
+
dark: r ? t[700] : t[200]
|
|
966
966
|
},
|
|
967
967
|
secondary: {
|
|
968
|
-
...
|
|
969
|
-
light: r ?
|
|
970
|
-
main: r ?
|
|
971
|
-
dark: r ?
|
|
968
|
+
...s,
|
|
969
|
+
light: r ? s[300] : s[600],
|
|
970
|
+
main: r ? s[500] : s[400],
|
|
971
|
+
dark: r ? s[700] : s[200]
|
|
972
972
|
},
|
|
973
973
|
neutral: {
|
|
974
974
|
...d,
|
|
@@ -983,16 +983,16 @@ const Vt = ({
|
|
|
983
983
|
disabled: r ? d[500] : f(M, 0.38)
|
|
984
984
|
},
|
|
985
985
|
error: {
|
|
986
|
-
...
|
|
987
|
-
light: r ?
|
|
988
|
-
main: r ?
|
|
989
|
-
dark: r ?
|
|
986
|
+
...l,
|
|
987
|
+
light: r ? l[300] : l[600],
|
|
988
|
+
main: r ? l[500] : l[400],
|
|
989
|
+
dark: r ? l[700] : l[200]
|
|
990
990
|
},
|
|
991
991
|
warning: {
|
|
992
|
-
...
|
|
993
|
-
light: r ?
|
|
994
|
-
main: r ?
|
|
995
|
-
dark: r ?
|
|
992
|
+
...o,
|
|
993
|
+
light: r ? o[300] : o[600],
|
|
994
|
+
main: r ? o[500] : o[400],
|
|
995
|
+
dark: r ? o[700] : o[200]
|
|
996
996
|
},
|
|
997
997
|
info: {
|
|
998
998
|
...n,
|
|
@@ -1017,32 +1017,32 @@ const Vt = ({
|
|
|
1017
1017
|
default: r ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
|
|
1018
1018
|
paper: r ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
|
|
1019
1019
|
highlight: r ? d[200] : d[600],
|
|
1020
|
-
highlightPrimary: r ?
|
|
1020
|
+
highlightPrimary: r ? t[100] : t[500]
|
|
1021
1021
|
},
|
|
1022
1022
|
divider: r ? f(_, 0.12) : f(M, 0.24),
|
|
1023
1023
|
categories: {
|
|
1024
|
-
autoTransport: r ?
|
|
1025
|
-
billsUtilities: r ?
|
|
1026
|
-
businessServices: r ?
|
|
1027
|
-
education: r ?
|
|
1028
|
-
entertainment: r ?
|
|
1029
|
-
feesCharges: r ?
|
|
1030
|
-
financial: r ?
|
|
1031
|
-
foodDining: r ?
|
|
1032
|
-
giftsDonations: r ?
|
|
1033
|
-
healthFitness: r ?
|
|
1034
|
-
home: r ?
|
|
1035
|
-
income: r ?
|
|
1036
|
-
investments: r ?
|
|
1037
|
-
kids: r ?
|
|
1038
|
-
others: r ?
|
|
1039
|
-
personalCare: r ?
|
|
1040
|
-
pets: r ?
|
|
1041
|
-
shopping: r ?
|
|
1042
|
-
taxes: r ?
|
|
1043
|
-
transfer: r ?
|
|
1044
|
-
travel: r ?
|
|
1045
|
-
uncategorized: r ?
|
|
1024
|
+
autoTransport: r ? u.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
1025
|
+
billsUtilities: r ? u.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
1026
|
+
businessServices: r ? u.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
|
|
1027
|
+
education: r ? u.EDUCATION : h.EDUCATION,
|
|
1028
|
+
entertainment: r ? u.ENTERTAINMENT : h.ENTERTAINMENT,
|
|
1029
|
+
feesCharges: r ? u.FEES_CHARGES : h.FEES_CHARGES,
|
|
1030
|
+
financial: r ? u.FINANCIAL : h.FINANCIAL,
|
|
1031
|
+
foodDining: r ? u.FOOD_DINING : h.FOOD_DINING,
|
|
1032
|
+
giftsDonations: r ? u.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
|
|
1033
|
+
healthFitness: r ? u.HEALTH_FITNESS : h.HEALTH_FITNESS,
|
|
1034
|
+
home: r ? u.HOME : h.HOME,
|
|
1035
|
+
income: r ? u.INCOME : h.INCOME,
|
|
1036
|
+
investments: r ? u.INVESTMENTS : h.INVESTMENTS,
|
|
1037
|
+
kids: r ? u.KIDS : h.KIDS,
|
|
1038
|
+
others: r ? u.OTHERS : h.OTHERS,
|
|
1039
|
+
personalCare: r ? u.PERSONAL_CARE : h.PERSONAL_CARE,
|
|
1040
|
+
pets: r ? u.PETS : h.PETS,
|
|
1041
|
+
shopping: r ? u.SHOPPING : h.SHOPPING,
|
|
1042
|
+
taxes: r ? u.TAXES : h.TAXES,
|
|
1043
|
+
transfer: r ? u.TRANSFER : h.TRANSFER,
|
|
1044
|
+
travel: r ? u.TRAVEL : h.TRAVEL,
|
|
1045
|
+
uncategorized: r ? u.UNCATEGORIZED : h.UNCATEGORIZED
|
|
1046
1046
|
},
|
|
1047
1047
|
chart: {
|
|
1048
1048
|
chart1: S.CHART1,
|
|
@@ -1062,8 +1062,8 @@ const Vt = ({
|
|
|
1062
1062
|
chartMono6: y.CHART_MONO6
|
|
1063
1063
|
}
|
|
1064
1064
|
};
|
|
1065
|
-
},
|
|
1066
|
-
const i = e?.fontFamily ? `${e?.fontFamily}, ${
|
|
1065
|
+
}, X = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
|
|
1066
|
+
const i = e?.fontFamily ? `${e?.fontFamily}, ${X}` : X;
|
|
1067
1067
|
return {
|
|
1068
1068
|
fontFamily: i,
|
|
1069
1069
|
fontSize: 15,
|
|
@@ -1126,8 +1126,8 @@ Le.setLicenseKey(
|
|
|
1126
1126
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1127
1127
|
);
|
|
1128
1128
|
const Wt = (e, i) => {
|
|
1129
|
-
const
|
|
1130
|
-
return
|
|
1129
|
+
const t = Xe(e, i?.paletteOptions), s = je(i?.typographyOptions), l = [...$().shadows];
|
|
1130
|
+
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
1131
|
breakpoints: {
|
|
1132
1132
|
values: {
|
|
1133
1133
|
xs: 444,
|
|
@@ -1138,13 +1138,14 @@ const Wt = (e, i) => {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
},
|
|
1140
1140
|
cssVariables: !0,
|
|
1141
|
-
palette:
|
|
1141
|
+
palette: t,
|
|
1142
1142
|
shape: {
|
|
1143
1143
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1144
1144
|
},
|
|
1145
|
+
shadows: l,
|
|
1145
1146
|
spacing: 1,
|
|
1146
1147
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1147
|
-
typography:
|
|
1148
|
+
typography: s,
|
|
1148
1149
|
components: {
|
|
1149
1150
|
MuiAlert: {
|
|
1150
1151
|
defaultProps: {
|
|
@@ -1157,19 +1158,19 @@ const Wt = (e, i) => {
|
|
|
1157
1158
|
variant: "outlined"
|
|
1158
1159
|
},
|
|
1159
1160
|
styleOverrides: {
|
|
1160
|
-
root: ({ theme:
|
|
1161
|
-
const
|
|
1162
|
-
let
|
|
1163
|
-
if (
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1161
|
+
root: ({ theme: o, ownerState: n }) => {
|
|
1162
|
+
const c = n.severity || "info";
|
|
1163
|
+
let d = o.palette.mode === I.LIGHT ? o.palette[c]?.[50] : o.palette[c]?.[800];
|
|
1164
|
+
if (n.variant === "filled") {
|
|
1165
|
+
const r = c === "warning";
|
|
1166
|
+
d = o.palette[c]?.[r ? 400 : 600];
|
|
1166
1167
|
}
|
|
1167
1168
|
return {
|
|
1168
|
-
backgroundColor:
|
|
1169
|
-
borderRadius:
|
|
1169
|
+
backgroundColor: d,
|
|
1170
|
+
borderRadius: o.shape.borderRadius,
|
|
1170
1171
|
"& .MuiAlert-message": {
|
|
1171
|
-
fontSize:
|
|
1172
|
-
lineHeight:
|
|
1172
|
+
fontSize: o.typography.subtitle1.fontSize,
|
|
1173
|
+
lineHeight: o.typography.subtitle1.lineHeight,
|
|
1173
1174
|
marginTop: "auto",
|
|
1174
1175
|
marginBottom: "auto"
|
|
1175
1176
|
},
|
|
@@ -1195,14 +1196,14 @@ const Wt = (e, i) => {
|
|
|
1195
1196
|
disableElevation: !0
|
|
1196
1197
|
},
|
|
1197
1198
|
styleOverrides: {
|
|
1198
|
-
root: ({ theme:
|
|
1199
|
+
root: ({ theme: o }) => ({
|
|
1199
1200
|
fontWeight: 600,
|
|
1200
1201
|
textTransform: "none",
|
|
1201
1202
|
"&.Mui-disabled": {
|
|
1202
1203
|
cursor: "not-allowed"
|
|
1203
1204
|
},
|
|
1204
1205
|
"&.Mui-focusVisible": {
|
|
1205
|
-
outline: `2px solid ${
|
|
1206
|
+
outline: `2px solid ${o.palette.info.main}`,
|
|
1206
1207
|
outlineOffset: "2px"
|
|
1207
1208
|
}
|
|
1208
1209
|
}),
|
|
@@ -1239,7 +1240,7 @@ const Wt = (e, i) => {
|
|
|
1239
1240
|
styleOverrides: {
|
|
1240
1241
|
root: {
|
|
1241
1242
|
"&.Mui-focusVisible": {
|
|
1242
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1243
|
+
boxShadow: `inset 0 0 0 2px ${t.info.main}`
|
|
1243
1244
|
}
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
@@ -1268,22 +1269,22 @@ const Wt = (e, i) => {
|
|
|
1268
1269
|
},
|
|
1269
1270
|
MuiDataGrid: {
|
|
1270
1271
|
styleOverrides: {
|
|
1271
|
-
root: ({ theme:
|
|
1272
|
+
root: ({ theme: o }) => ({
|
|
1272
1273
|
border: "none",
|
|
1273
1274
|
borderRadius: 0,
|
|
1274
|
-
fontSize:
|
|
1275
|
+
fontSize: o.typography.body2.fontSize,
|
|
1275
1276
|
"& .MuiDataGrid-cell": {
|
|
1276
1277
|
display: "flex",
|
|
1277
1278
|
alignItems: "center",
|
|
1278
1279
|
borderTop: "1px solid",
|
|
1279
|
-
borderColor:
|
|
1280
|
+
borderColor: o.palette.background.highlight
|
|
1280
1281
|
},
|
|
1281
1282
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1282
1283
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1283
1284
|
"& .MuiDataGrid-columnHeaders": {
|
|
1284
|
-
backgroundColor:
|
|
1285
|
+
backgroundColor: o.palette.background.paper,
|
|
1285
1286
|
borderBottom: "2px solid",
|
|
1286
|
-
borderColor:
|
|
1287
|
+
borderColor: o.palette.divider
|
|
1287
1288
|
},
|
|
1288
1289
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1289
1290
|
fontWeight: 600
|
|
@@ -1301,42 +1302,42 @@ const Wt = (e, i) => {
|
|
|
1301
1302
|
},
|
|
1302
1303
|
MuiDateRangePickerDay: {
|
|
1303
1304
|
styleOverrides: {
|
|
1304
|
-
root: ({ theme:
|
|
1305
|
+
root: ({ theme: o }) => ({
|
|
1305
1306
|
":first-of-type": {
|
|
1306
|
-
borderTopLeftRadius:
|
|
1307
|
-
borderBottomLeftRadius:
|
|
1307
|
+
borderTopLeftRadius: o.shape.borderRadius,
|
|
1308
|
+
borderBottomLeftRadius: o.shape.borderRadius,
|
|
1308
1309
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1309
|
-
borderTopLeftRadius:
|
|
1310
|
-
borderBottomLeftRadius:
|
|
1310
|
+
borderTopLeftRadius: o.shape.borderRadius,
|
|
1311
|
+
borderBottomLeftRadius: o.shape.borderRadius
|
|
1311
1312
|
}
|
|
1312
1313
|
},
|
|
1313
1314
|
":last-of-type": {
|
|
1314
|
-
borderTopRightRadius:
|
|
1315
|
-
borderBottomRightRadius:
|
|
1315
|
+
borderTopRightRadius: o.shape.borderRadius,
|
|
1316
|
+
borderBottomRightRadius: o.shape.borderRadius,
|
|
1316
1317
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1317
|
-
borderTopRightRadius:
|
|
1318
|
-
borderBottomRightRadius:
|
|
1318
|
+
borderTopRightRadius: o.shape.borderRadius,
|
|
1319
|
+
borderBottomRightRadius: o.shape.borderRadius
|
|
1319
1320
|
}
|
|
1320
1321
|
},
|
|
1321
1322
|
"& .Mui-selected": {
|
|
1322
|
-
borderRadius:
|
|
1323
|
+
borderRadius: o.shape.borderRadius
|
|
1323
1324
|
},
|
|
1324
1325
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1325
|
-
color:
|
|
1326
|
+
color: o.palette.action.disabled
|
|
1326
1327
|
}
|
|
1327
1328
|
}),
|
|
1328
|
-
day: ({ theme:
|
|
1329
|
-
borderRadius:
|
|
1329
|
+
day: ({ theme: o }) => ({
|
|
1330
|
+
borderRadius: o.shape.borderRadius
|
|
1330
1331
|
}),
|
|
1331
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1332
|
-
borderRadius:
|
|
1332
|
+
rangeIntervalDayPreview: ({ theme: o }) => ({
|
|
1333
|
+
borderRadius: o.shape.borderRadius
|
|
1333
1334
|
})
|
|
1334
1335
|
}
|
|
1335
1336
|
},
|
|
1336
1337
|
MuiDayCalendar: {
|
|
1337
1338
|
styleOverrides: {
|
|
1338
|
-
weekDayLabel: ({ theme:
|
|
1339
|
-
fontSize:
|
|
1339
|
+
weekDayLabel: ({ theme: o }) => ({
|
|
1340
|
+
fontSize: o.typography.body2.fontSize,
|
|
1340
1341
|
fontWeight: 700
|
|
1341
1342
|
})
|
|
1342
1343
|
}
|
|
@@ -1378,14 +1379,14 @@ const Wt = (e, i) => {
|
|
|
1378
1379
|
},
|
|
1379
1380
|
MuiFormHelperText: {
|
|
1380
1381
|
styleOverrides: {
|
|
1381
|
-
root: ({ theme:
|
|
1382
|
+
root: ({ theme: o }) => ({
|
|
1382
1383
|
fontSize: 13,
|
|
1383
1384
|
// Small
|
|
1384
1385
|
marginLeft: 0,
|
|
1385
1386
|
display: "flex",
|
|
1386
1387
|
alignItems: "center",
|
|
1387
1388
|
position: "relative",
|
|
1388
|
-
color:
|
|
1389
|
+
color: o.palette.text.secondary,
|
|
1389
1390
|
"& .MuiSvgIcon-root": {
|
|
1390
1391
|
height: "16px",
|
|
1391
1392
|
width: "16px",
|
|
@@ -1401,7 +1402,7 @@ const Wt = (e, i) => {
|
|
|
1401
1402
|
MuiFormLabel: {
|
|
1402
1403
|
styleOverrides: {
|
|
1403
1404
|
asterisk: {
|
|
1404
|
-
color:
|
|
1405
|
+
color: t.error.main
|
|
1405
1406
|
}
|
|
1406
1407
|
}
|
|
1407
1408
|
},
|
|
@@ -1416,19 +1417,19 @@ const Wt = (e, i) => {
|
|
|
1416
1417
|
disableFocusRipple: !0
|
|
1417
1418
|
},
|
|
1418
1419
|
styleOverrides: {
|
|
1419
|
-
root: ({ theme:
|
|
1420
|
-
borderRadius:
|
|
1420
|
+
root: ({ theme: o }) => ({
|
|
1421
|
+
borderRadius: o.shape.borderRadius,
|
|
1421
1422
|
minHeight: 44,
|
|
1422
1423
|
// touch target
|
|
1423
1424
|
minWidth: 44,
|
|
1424
1425
|
// touch target
|
|
1425
1426
|
"&.Mui-focusVisible": {
|
|
1426
|
-
outline: `2px solid ${
|
|
1427
|
+
outline: `2px solid ${o.palette.info.main}`,
|
|
1427
1428
|
outlineOffset: "2px"
|
|
1428
1429
|
},
|
|
1429
1430
|
"& .MuiTouchRipple-root": {
|
|
1430
1431
|
"& .MuiTouchRipple-child": {
|
|
1431
|
-
borderRadius:
|
|
1432
|
+
borderRadius: o.shape.borderRadius
|
|
1432
1433
|
}
|
|
1433
1434
|
}
|
|
1434
1435
|
})
|
|
@@ -1449,13 +1450,13 @@ const Wt = (e, i) => {
|
|
|
1449
1450
|
borderRadius: 4
|
|
1450
1451
|
},
|
|
1451
1452
|
colorPrimary: {
|
|
1452
|
-
backgroundColor:
|
|
1453
|
+
backgroundColor: t.grey[300]
|
|
1453
1454
|
}
|
|
1454
1455
|
}
|
|
1455
1456
|
},
|
|
1456
1457
|
MuiLink: {
|
|
1457
1458
|
styleOverrides: {
|
|
1458
|
-
root: ({ theme:
|
|
1459
|
+
root: ({ theme: o, color: n }) => ({
|
|
1459
1460
|
cursor: "pointer",
|
|
1460
1461
|
fontWeight: 600,
|
|
1461
1462
|
textDecoration: "none",
|
|
@@ -1467,10 +1468,10 @@ const Wt = (e, i) => {
|
|
|
1467
1468
|
outlineOffset: "2px"
|
|
1468
1469
|
},
|
|
1469
1470
|
"&:hover": {
|
|
1470
|
-
backgroundColor:
|
|
1471
|
+
backgroundColor: o.palette.action.hover
|
|
1471
1472
|
},
|
|
1472
1473
|
"&:active": {
|
|
1473
|
-
backgroundColor:
|
|
1474
|
+
backgroundColor: o.palette.mode === I.LIGHT ? o.palette[n].light : o.palette[n].dark
|
|
1474
1475
|
}
|
|
1475
1476
|
})
|
|
1476
1477
|
}
|
|
@@ -1497,9 +1498,9 @@ const Wt = (e, i) => {
|
|
|
1497
1498
|
disablePadding: !0
|
|
1498
1499
|
},
|
|
1499
1500
|
styleOverrides: {
|
|
1500
|
-
root: ({ ownerState:
|
|
1501
|
+
root: ({ ownerState: o }) => ({
|
|
1501
1502
|
minHeight: 64,
|
|
1502
|
-
...!
|
|
1503
|
+
...!o.disablePadding && {
|
|
1503
1504
|
paddingTop: 12,
|
|
1504
1505
|
paddingBottom: 12,
|
|
1505
1506
|
paddingLeft: 24
|
|
@@ -1523,7 +1524,7 @@ const Wt = (e, i) => {
|
|
|
1523
1524
|
},
|
|
1524
1525
|
MuiListItemButton: {
|
|
1525
1526
|
styleOverrides: {
|
|
1526
|
-
root: ({ theme:
|
|
1527
|
+
root: ({ theme: o }) => ({
|
|
1527
1528
|
minHeight: 64,
|
|
1528
1529
|
paddingLeft: 24,
|
|
1529
1530
|
paddingRight: 24,
|
|
@@ -1532,7 +1533,7 @@ const Wt = (e, i) => {
|
|
|
1532
1533
|
"&.Mui-focusVisible": {
|
|
1533
1534
|
backgroundColor: "transparent",
|
|
1534
1535
|
borderRadius: 8,
|
|
1535
|
-
outline: `2px solid ${
|
|
1536
|
+
outline: `2px solid ${o.palette.info.main}`,
|
|
1536
1537
|
outlineOffset: -2
|
|
1537
1538
|
}
|
|
1538
1539
|
})
|
|
@@ -1555,7 +1556,7 @@ const Wt = (e, i) => {
|
|
|
1555
1556
|
},
|
|
1556
1557
|
secondary: {
|
|
1557
1558
|
fontSize: 11,
|
|
1558
|
-
color:
|
|
1559
|
+
color: t.text.secondary
|
|
1559
1560
|
}
|
|
1560
1561
|
}
|
|
1561
1562
|
},
|
|
@@ -1576,7 +1577,7 @@ const Wt = (e, i) => {
|
|
|
1576
1577
|
lineHeight: "inherit",
|
|
1577
1578
|
top: -1,
|
|
1578
1579
|
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1579
|
-
backgroundColor:
|
|
1580
|
+
backgroundColor: t.background.default
|
|
1580
1581
|
}
|
|
1581
1582
|
}
|
|
1582
1583
|
},
|
|
@@ -1650,20 +1651,20 @@ const Wt = (e, i) => {
|
|
|
1650
1651
|
gridColumn: "1/4",
|
|
1651
1652
|
"& > .MuiTypography-root": {
|
|
1652
1653
|
textTransform: "uppercase",
|
|
1653
|
-
fontSize:
|
|
1654
|
+
fontSize: s.body2.fontSize,
|
|
1654
1655
|
fontWeight: 600,
|
|
1655
|
-
lineHeight:
|
|
1656
|
+
lineHeight: s.body2.lineHeight
|
|
1656
1657
|
}
|
|
1657
1658
|
}
|
|
1658
1659
|
}
|
|
1659
1660
|
},
|
|
1660
1661
|
MuiPickersToolbar: {
|
|
1661
1662
|
styleOverrides: {
|
|
1662
|
-
content: ({ theme:
|
|
1663
|
+
content: ({ theme: o }) => ({
|
|
1663
1664
|
marginTop: 4,
|
|
1664
1665
|
"& .MuiTypography-root": {
|
|
1665
|
-
fontSize:
|
|
1666
|
-
lineHeight:
|
|
1666
|
+
fontSize: o.typography.h3.fontSize,
|
|
1667
|
+
lineHeight: o.typography.h3.lineHeight
|
|
1667
1668
|
}
|
|
1668
1669
|
})
|
|
1669
1670
|
}
|
|
@@ -1689,7 +1690,7 @@ const Wt = (e, i) => {
|
|
|
1689
1690
|
disableFocusRipple: !0
|
|
1690
1691
|
},
|
|
1691
1692
|
styleOverrides: {
|
|
1692
|
-
root: ({ theme:
|
|
1693
|
+
root: ({ theme: o }) => ({
|
|
1693
1694
|
width: 37,
|
|
1694
1695
|
height: 20,
|
|
1695
1696
|
padding: 0,
|
|
@@ -1700,7 +1701,7 @@ const Wt = (e, i) => {
|
|
|
1700
1701
|
"&.Mui-checked": {
|
|
1701
1702
|
transform: "translateX(16px)",
|
|
1702
1703
|
"& + .MuiSwitch-track": {
|
|
1703
|
-
backgroundColor:
|
|
1704
|
+
backgroundColor: o.palette.success.main,
|
|
1704
1705
|
opacity: 1,
|
|
1705
1706
|
border: 0
|
|
1706
1707
|
},
|
|
@@ -1709,27 +1710,27 @@ const Wt = (e, i) => {
|
|
|
1709
1710
|
}
|
|
1710
1711
|
},
|
|
1711
1712
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
1712
|
-
color:
|
|
1713
|
+
color: o.palette.common.white
|
|
1713
1714
|
},
|
|
1714
1715
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1715
|
-
backgroundColor:
|
|
1716
|
+
backgroundColor: o.palette.action.disabledBackground,
|
|
1716
1717
|
opacity: 1
|
|
1717
1718
|
}
|
|
1718
1719
|
},
|
|
1719
1720
|
"& .MuiSwitch-input": {
|
|
1720
1721
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
1721
|
-
outline: `2px solid ${
|
|
1722
|
+
outline: `2px solid ${o.palette.info.main}`,
|
|
1722
1723
|
outlineOffset: 0
|
|
1723
1724
|
}
|
|
1724
1725
|
},
|
|
1725
1726
|
"& .MuiSwitch-thumb": {
|
|
1726
1727
|
boxSizing: "border-box",
|
|
1727
|
-
backgroundColor:
|
|
1728
|
+
backgroundColor: o.palette.background.paper,
|
|
1728
1729
|
width: 16,
|
|
1729
1730
|
height: 16
|
|
1730
1731
|
},
|
|
1731
1732
|
"& .MuiSwitch-track": {
|
|
1732
|
-
backgroundColor:
|
|
1733
|
+
backgroundColor: o.palette.action.active,
|
|
1733
1734
|
borderRadius: 20 / 2,
|
|
1734
1735
|
opacity: 1
|
|
1735
1736
|
}
|
|
@@ -1746,7 +1747,7 @@ const Wt = (e, i) => {
|
|
|
1746
1747
|
fontWeight: 600,
|
|
1747
1748
|
"&.Mui-focusVisible": {
|
|
1748
1749
|
outline: "none",
|
|
1749
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1750
|
+
boxShadow: `inset 0 0 0 2px ${t.info.main}`,
|
|
1750
1751
|
borderRadius: 4
|
|
1751
1752
|
}
|
|
1752
1753
|
}
|
|
@@ -1757,7 +1758,7 @@ const Wt = (e, i) => {
|
|
|
1757
1758
|
root: {
|
|
1758
1759
|
borderBottomStyle: "solid",
|
|
1759
1760
|
borderBottomWidth: 1,
|
|
1760
|
-
borderColor:
|
|
1761
|
+
borderColor: t.divider,
|
|
1761
1762
|
marginBottom: 8
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
@@ -1773,7 +1774,7 @@ const Wt = (e, i) => {
|
|
|
1773
1774
|
},
|
|
1774
1775
|
styleOverrides: {
|
|
1775
1776
|
root: {
|
|
1776
|
-
backgroundColor:
|
|
1777
|
+
backgroundColor: t.background.paper
|
|
1777
1778
|
}
|
|
1778
1779
|
}
|
|
1779
1780
|
},
|
|
@@ -1784,29 +1785,29 @@ const Wt = (e, i) => {
|
|
|
1784
1785
|
},
|
|
1785
1786
|
styleOverrides: {
|
|
1786
1787
|
root: {
|
|
1787
|
-
color:
|
|
1788
|
+
color: t.text.primary,
|
|
1788
1789
|
fontSize: 13,
|
|
1789
1790
|
lineHeight: "16px",
|
|
1790
1791
|
textTransform: "none",
|
|
1791
1792
|
"&:focus-visible": {
|
|
1792
|
-
outline: `2px solid ${
|
|
1793
|
+
outline: `2px solid ${t.info.main}`,
|
|
1793
1794
|
outlineOffset: "2px"
|
|
1794
1795
|
},
|
|
1795
1796
|
"&:hover": {
|
|
1796
|
-
backgroundColor: f(
|
|
1797
|
-
borderColor:
|
|
1797
|
+
backgroundColor: f(t.primary.main, t.mode === I.LIGHT ? 0.1 : 0.2),
|
|
1798
|
+
borderColor: t.primary.main
|
|
1798
1799
|
},
|
|
1799
1800
|
"&.Mui-selected": {
|
|
1800
1801
|
fontWeight: 600,
|
|
1801
|
-
borderColor:
|
|
1802
|
+
borderColor: t.primary.main,
|
|
1802
1803
|
"&:hover": {
|
|
1803
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1804
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.primary.main}`
|
|
1804
1805
|
}
|
|
1805
1806
|
},
|
|
1806
1807
|
"& .MuiTouchRipple-root": {
|
|
1807
1808
|
"& .MuiTouchRipple-ripple": {
|
|
1808
1809
|
"& .MuiTouchRipple-child": {
|
|
1809
|
-
backgroundColor:
|
|
1810
|
+
backgroundColor: t.primary.main
|
|
1810
1811
|
}
|
|
1811
1812
|
}
|
|
1812
1813
|
}
|
|
@@ -1817,19 +1818,19 @@ const Wt = (e, i) => {
|
|
|
1817
1818
|
props: { color: "error" },
|
|
1818
1819
|
style: {
|
|
1819
1820
|
"&:hover": {
|
|
1820
|
-
backgroundColor: f(
|
|
1821
|
-
borderColor:
|
|
1821
|
+
backgroundColor: f(t.error.main, t.mode === I.LIGHT ? 0.1 : 0.2),
|
|
1822
|
+
borderColor: t.error.main
|
|
1822
1823
|
},
|
|
1823
1824
|
"&.Mui-selected": {
|
|
1824
|
-
borderColor:
|
|
1825
|
+
borderColor: t.error.main,
|
|
1825
1826
|
"&:hover": {
|
|
1826
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1827
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.error.main}`
|
|
1827
1828
|
}
|
|
1828
1829
|
},
|
|
1829
1830
|
"& .MuiTouchRipple-root": {
|
|
1830
1831
|
"& .MuiTouchRipple-ripple": {
|
|
1831
1832
|
"& .MuiTouchRipple-child": {
|
|
1832
|
-
backgroundColor:
|
|
1833
|
+
backgroundColor: t.error.main
|
|
1833
1834
|
}
|
|
1834
1835
|
}
|
|
1835
1836
|
}
|
|
@@ -1840,21 +1841,21 @@ const Wt = (e, i) => {
|
|
|
1840
1841
|
style: {
|
|
1841
1842
|
"&:hover": {
|
|
1842
1843
|
backgroundColor: f(
|
|
1843
|
-
|
|
1844
|
-
|
|
1844
|
+
t.secondary.main,
|
|
1845
|
+
t.mode === I.LIGHT ? 0.1 : 0.2
|
|
1845
1846
|
),
|
|
1846
|
-
borderColor:
|
|
1847
|
+
borderColor: t.secondary.main
|
|
1847
1848
|
},
|
|
1848
1849
|
"&.Mui-selected": {
|
|
1849
|
-
borderColor:
|
|
1850
|
+
borderColor: t.secondary.main,
|
|
1850
1851
|
"&:hover": {
|
|
1851
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1852
|
+
boxShadow: `inset 0px 0px 0px 2px ${t.secondary.main}`
|
|
1852
1853
|
}
|
|
1853
1854
|
},
|
|
1854
1855
|
"& .MuiTouchRipple-root": {
|
|
1855
1856
|
"& .MuiTouchRipple-ripple": {
|
|
1856
1857
|
"& .MuiTouchRipple-child": {
|
|
1857
|
-
backgroundColor:
|
|
1858
|
+
backgroundColor: t.secondary.main
|
|
1858
1859
|
}
|
|
1859
1860
|
}
|
|
1860
1861
|
}
|
|
@@ -1895,7 +1896,7 @@ export {
|
|
|
1895
1896
|
Ue as H1,
|
|
1896
1897
|
Dt as H2,
|
|
1897
1898
|
wt as H3,
|
|
1898
|
-
|
|
1899
|
+
X as INTER,
|
|
1899
1900
|
x as Icon,
|
|
1900
1901
|
zt as InstitutionLogo,
|
|
1901
1902
|
vt as MXLogoCopyrightIcon,
|