@mxenabled/mxui 2.0.0-alpha.1 → 2.0.1
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 +32 -0
- package/dist/index.es.js +385 -397
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Augmentations.d.ts +0 -2
- package/dist/themes/Colors.d.ts +3 -1
- package/package.json +28 -28
package/dist/index.es.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { jsx as a, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as O, createTheme as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { endOfMonth as
|
|
2
|
+
import H from "react";
|
|
3
|
+
import y from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as O, createTheme as te } from "@mui/material/styles";
|
|
5
|
+
import { Icon as oe, Close as re } from "@mxenabled/mx-icons";
|
|
6
|
+
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as ie } from "date-fns/endOfYear";
|
|
8
8
|
import { startOfToday as ae } from "date-fns/startOfToday";
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
11
|
-
import { subDays as
|
|
9
|
+
import { startOfMonth as $ } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as U } from "date-fns/startOfYear";
|
|
11
|
+
import { subDays as G } from "date-fns/subDays";
|
|
12
12
|
import { subMonths as ne } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as le } from "date-fns/subYears";
|
|
14
14
|
import se from "@mui/material/useMediaQuery";
|
|
15
|
-
import {
|
|
16
|
-
import { AdapterDateFns as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
15
|
+
import { usePickerContext as ce, useIsValidValue as de, LocalizationProvider as ue, StaticDateRangePicker as pe } from "@mui/x-date-pickers-pro";
|
|
16
|
+
import { AdapterDateFns as he } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
|
+
import Y from "@mui/material/Box";
|
|
18
|
+
import ge from "@mui/material/ToggleButton";
|
|
19
|
+
import fe from "@mui/material/ToggleButtonGroup";
|
|
20
|
+
import K from "@mui/material/Slide";
|
|
21
|
+
import B from "@mui/material/Button";
|
|
22
22
|
import X from "@mui/material/IconButton";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { FormControlLabel as
|
|
29
|
-
import { circularProgressClasses as
|
|
30
|
-
import { LicenseInfo as
|
|
31
|
-
const
|
|
23
|
+
import me from "@mui/material/Typography";
|
|
24
|
+
import be from "@mui/material/Drawer";
|
|
25
|
+
import Te from "@mui/material/TextField";
|
|
26
|
+
import xe from "@mui/material/Snackbar";
|
|
27
|
+
import Re from "@mui/material/Alert";
|
|
28
|
+
import { FormControlLabel as Me, Box as k, Typography as V, Radio as w, Checkbox as Se, alpha as m, darken as N, lighten as I, getContrastRatio as Ce } from "@mui/material";
|
|
29
|
+
import { circularProgressClasses as Ae } from "@mui/material/CircularProgress";
|
|
30
|
+
import { LicenseInfo as Ee } from "@mui/x-license";
|
|
31
|
+
const L = ({
|
|
32
32
|
children: e,
|
|
33
33
|
height: i,
|
|
34
|
-
size:
|
|
34
|
+
size: o = 16,
|
|
35
35
|
viewBox: n = "0 0 16 16",
|
|
36
|
-
width:
|
|
36
|
+
width: t
|
|
37
37
|
}) => /* @__PURE__ */ a(
|
|
38
38
|
"svg",
|
|
39
39
|
{
|
|
40
40
|
"aria-hidden": !0,
|
|
41
41
|
className: "mx-kmui-icon",
|
|
42
42
|
focusable: !1,
|
|
43
|
-
height: i ||
|
|
43
|
+
height: i || o,
|
|
44
44
|
viewBox: n,
|
|
45
|
-
width:
|
|
45
|
+
width: t || o,
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
47
47
|
children: e
|
|
48
48
|
}
|
|
49
|
-
),
|
|
49
|
+
), x = ({ color: e, fill: i = !1, name: o, size: n = 20, sx: t, ...s }) => /* @__PURE__ */ a(oe, { color: e, fill: i, name: o, size: n, sx: t, ...s }), bt = ({
|
|
50
50
|
color: e = "currentColor",
|
|
51
51
|
...i
|
|
52
|
-
}) => /* @__PURE__ */ T(
|
|
52
|
+
}) => /* @__PURE__ */ T(L, { ...i, children: [
|
|
53
53
|
/* @__PURE__ */ a(
|
|
54
54
|
"path",
|
|
55
55
|
{
|
|
@@ -64,10 +64,10 @@ const D = ({
|
|
|
64
64
|
fill: e
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
|
-
] }),
|
|
67
|
+
] }), Tt = ({
|
|
68
68
|
color: e = "currentColor",
|
|
69
69
|
...i
|
|
70
|
-
}) => /* @__PURE__ */ T(
|
|
70
|
+
}) => /* @__PURE__ */ T(L, { ...i, children: [
|
|
71
71
|
/* @__PURE__ */ a(
|
|
72
72
|
"path",
|
|
73
73
|
{
|
|
@@ -100,10 +100,10 @@ const D = ({
|
|
|
100
100
|
fillRule: "evenodd"
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
|
-
] }),
|
|
103
|
+
] }), xt = ({
|
|
104
104
|
color: e = "currentColor",
|
|
105
105
|
...i
|
|
106
|
-
}) => /* @__PURE__ */ a(
|
|
106
|
+
}) => /* @__PURE__ */ a(L, { ...i, children: /* @__PURE__ */ a(
|
|
107
107
|
"path",
|
|
108
108
|
{
|
|
109
109
|
clipRule: "evenodd",
|
|
@@ -111,10 +111,10 @@ const D = ({
|
|
|
111
111
|
fill: e,
|
|
112
112
|
fillRule: "evenodd"
|
|
113
113
|
}
|
|
114
|
-
) }),
|
|
114
|
+
) }), Rt = ({
|
|
115
115
|
color: e = "currentColor",
|
|
116
116
|
...i
|
|
117
|
-
}) => /* @__PURE__ */ T(
|
|
117
|
+
}) => /* @__PURE__ */ T(L, { ...i, children: [
|
|
118
118
|
/* @__PURE__ */ a(
|
|
119
119
|
"path",
|
|
120
120
|
{
|
|
@@ -139,12 +139,12 @@ const D = ({
|
|
|
139
139
|
}
|
|
140
140
|
)
|
|
141
141
|
] });
|
|
142
|
-
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 || {}),
|
|
143
|
-
const
|
|
142
|
+
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 || {}), Oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(Oe || {});
|
|
143
|
+
const j = {
|
|
144
144
|
guid: g.Uncategorized,
|
|
145
145
|
colorName: "uncategorized",
|
|
146
146
|
icon: "category"
|
|
147
|
-
},
|
|
147
|
+
}, Ie = [
|
|
148
148
|
{
|
|
149
149
|
guid: g.AutoTransport,
|
|
150
150
|
colorName: "autoTransport",
|
|
@@ -245,56 +245,51 @@ const Z = {
|
|
|
245
245
|
colorName: "travel",
|
|
246
246
|
icon: "airplane_ticket"
|
|
247
247
|
},
|
|
248
|
-
|
|
249
|
-
],
|
|
248
|
+
j
|
|
249
|
+
], ye = 0.625, Fe = ({
|
|
250
250
|
categoryGuid: e,
|
|
251
|
-
icon_ratio: i =
|
|
252
|
-
size:
|
|
251
|
+
icon_ratio: i = ye,
|
|
252
|
+
size: o = 32,
|
|
253
253
|
sx: n = {},
|
|
254
|
-
variant:
|
|
254
|
+
variant: t = "filled"
|
|
255
255
|
}) => {
|
|
256
|
-
const s = O(), l =
|
|
257
|
-
() =>
|
|
256
|
+
const s = O(), l = H.useMemo(
|
|
257
|
+
() => Ie.find((u) => u.guid === e) ?? j,
|
|
258
258
|
[e]
|
|
259
259
|
), d = s.palette.categories[l.colorName];
|
|
260
260
|
return /* @__PURE__ */ a(
|
|
261
|
-
|
|
261
|
+
y,
|
|
262
262
|
{
|
|
263
263
|
alignItems: "center",
|
|
264
264
|
bgcolor: () => {
|
|
265
|
-
let
|
|
266
|
-
return
|
|
265
|
+
let u = d;
|
|
266
|
+
return t === "twotone" && (u = `${u}20`), t === "transparent" || t === "basic" ? "transparent" : u;
|
|
267
267
|
},
|
|
268
268
|
borderRadius: 1,
|
|
269
269
|
color: () => {
|
|
270
|
-
const
|
|
271
|
-
return
|
|
270
|
+
const u = t === "filled" ? s.palette.common.white : d;
|
|
271
|
+
return t === "basic" ? s.palette.text.primary : u;
|
|
272
272
|
},
|
|
273
|
-
height:
|
|
273
|
+
height: o,
|
|
274
274
|
justifyContent: "center",
|
|
275
275
|
sx: [...Array.isArray(n) ? n : [n]],
|
|
276
|
-
width:
|
|
277
|
-
children: /* @__PURE__ */ a(
|
|
276
|
+
width: o,
|
|
277
|
+
children: /* @__PURE__ */ a(x, { name: l.icon, size: o * i })
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
isValid: r,
|
|
284
|
-
selected: n
|
|
285
|
-
}) => {
|
|
286
|
-
const o = O(), s = e?.map((l) => {
|
|
287
|
-
const d = l.getValue({ isValid: r });
|
|
280
|
+
}, ve = ({ items: e, selected: i }) => {
|
|
281
|
+
const o = O(), { setValue: n } = ce(), t = de(), s = e?.map((l) => {
|
|
282
|
+
const d = l.getValue({ isValid: t });
|
|
288
283
|
return {
|
|
289
284
|
label: l.label,
|
|
290
285
|
onClick: () => {
|
|
291
|
-
|
|
286
|
+
n(d, { changeImportance: "accept", shortcut: l });
|
|
292
287
|
},
|
|
293
|
-
disabled: !
|
|
288
|
+
disabled: !t(d)
|
|
294
289
|
};
|
|
295
290
|
});
|
|
296
|
-
return /* @__PURE__ */ a(
|
|
297
|
-
|
|
291
|
+
return /* @__PURE__ */ a(Y, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(fe, { color: "primary", orientation: "vertical", value: i, children: s?.map((l) => /* @__PURE__ */ a(
|
|
292
|
+
ge,
|
|
298
293
|
{
|
|
299
294
|
onClick: l.onClick,
|
|
300
295
|
sx: {
|
|
@@ -321,51 +316,51 @@ const Z = {
|
|
|
321
316
|
},
|
|
322
317
|
l.label
|
|
323
318
|
)) }) });
|
|
324
|
-
},
|
|
319
|
+
}, Mt = ({
|
|
325
320
|
copy: e,
|
|
326
321
|
dateRange: i,
|
|
327
|
-
onRangeChanged:
|
|
322
|
+
onRangeChanged: o,
|
|
328
323
|
selectedShortcut: n = e.dateRangeThisMonth,
|
|
329
|
-
sx:
|
|
324
|
+
sx: t = {}
|
|
330
325
|
}) => {
|
|
331
|
-
const s = O(), l = se(s.breakpoints.down("sm")), d =
|
|
332
|
-
const
|
|
326
|
+
const s = O(), l = se(s.breakpoints.down("sm")), d = H.useMemo(() => {
|
|
327
|
+
const r = ae(), u = ne(r, 1), b = le(r, 1);
|
|
333
328
|
return [
|
|
334
329
|
{
|
|
335
330
|
label: e.dateRangeThisMonth,
|
|
336
|
-
getValue: () => [
|
|
331
|
+
getValue: () => [$(r), z(r)]
|
|
337
332
|
},
|
|
338
333
|
{
|
|
339
334
|
label: e.dateRangeLastMonth,
|
|
340
|
-
getValue: () => [
|
|
335
|
+
getValue: () => [$(u), z(u)]
|
|
341
336
|
},
|
|
342
337
|
{
|
|
343
338
|
label: e.dateRangeLast30Days,
|
|
344
|
-
getValue: () => [
|
|
339
|
+
getValue: () => [G(r, 30), r]
|
|
345
340
|
},
|
|
346
341
|
{
|
|
347
342
|
label: e.dateRangeLast90Days,
|
|
348
|
-
getValue: () => [
|
|
343
|
+
getValue: () => [G(r, 90), r]
|
|
349
344
|
},
|
|
350
345
|
{
|
|
351
346
|
label: e.dateRangeYTD,
|
|
352
|
-
getValue: () => [
|
|
347
|
+
getValue: () => [U(r), r]
|
|
353
348
|
},
|
|
354
349
|
{
|
|
355
350
|
label: e.dateRangeLastYear,
|
|
356
|
-
getValue: () => [
|
|
351
|
+
getValue: () => [U(b), ie(b)]
|
|
357
352
|
},
|
|
358
353
|
{
|
|
359
354
|
label: e.dateRangeCustom,
|
|
360
|
-
getValue: () => [
|
|
355
|
+
getValue: () => [r, r]
|
|
361
356
|
}
|
|
362
357
|
];
|
|
363
|
-
}, [e]), c = (
|
|
364
|
-
const b =
|
|
365
|
-
|
|
358
|
+
}, [e]), c = (r, u) => {
|
|
359
|
+
const b = u.shortcut;
|
|
360
|
+
o?.(r, b ? b.label : e.dateRangeCustom);
|
|
366
361
|
};
|
|
367
|
-
return /* @__PURE__ */ a(
|
|
368
|
-
|
|
362
|
+
return /* @__PURE__ */ a(y, { gap: 16, m: 8, children: /* @__PURE__ */ a(ue, { dateAdapter: he, children: /* @__PURE__ */ a(
|
|
363
|
+
pe,
|
|
369
364
|
{
|
|
370
365
|
calendars: 1,
|
|
371
366
|
localeText: {
|
|
@@ -385,65 +380,65 @@ const Z = {
|
|
|
385
380
|
}
|
|
386
381
|
},
|
|
387
382
|
slots: {
|
|
388
|
-
leftArrowIcon: () => /* @__PURE__ */ a(
|
|
389
|
-
shortcuts: (
|
|
390
|
-
rightArrowIcon: () => /* @__PURE__ */ a(
|
|
383
|
+
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
384
|
+
shortcuts: (r) => /* @__PURE__ */ a(ve, { selected: n, ...r }),
|
|
385
|
+
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 })
|
|
391
386
|
},
|
|
392
|
-
sx: { ...
|
|
387
|
+
sx: { ...t },
|
|
393
388
|
value: i
|
|
394
389
|
}
|
|
395
390
|
) }) });
|
|
396
|
-
},
|
|
397
|
-
return /* @__PURE__ */ a(
|
|
398
|
-
}),
|
|
391
|
+
}, St = H.forwardRef(function(i, o) {
|
|
392
|
+
return /* @__PURE__ */ a(K, { direction: "up", ref: o, ...i });
|
|
393
|
+
}), Ne = ({
|
|
399
394
|
hasSecondaryAction: e = !0,
|
|
400
395
|
isPrimaryDisabled: i,
|
|
401
|
-
onPrimaryAction:
|
|
396
|
+
onPrimaryAction: o,
|
|
402
397
|
onSecondaryAction: n,
|
|
403
|
-
primaryColor:
|
|
398
|
+
primaryColor: t = "primary",
|
|
404
399
|
primaryText: s = "Save",
|
|
405
400
|
secondaryColor: l = "primary",
|
|
406
401
|
secondaryText: d = "Cancel"
|
|
407
402
|
}) => /* @__PURE__ */ T(
|
|
408
|
-
|
|
403
|
+
y,
|
|
409
404
|
{
|
|
410
405
|
direction: "row",
|
|
411
406
|
gap: 16,
|
|
412
407
|
justifyContent: "flex-end",
|
|
413
|
-
sx: { bgcolor: "background.paper",
|
|
408
|
+
sx: { bgcolor: "background.paper", p: 24 },
|
|
414
409
|
children: [
|
|
415
410
|
e && /* @__PURE__ */ a(
|
|
416
|
-
|
|
411
|
+
B,
|
|
417
412
|
{
|
|
418
413
|
color: l,
|
|
419
414
|
onClick: n,
|
|
420
|
-
variant:
|
|
415
|
+
variant: o ? "outlined" : "contained",
|
|
421
416
|
children: d
|
|
422
417
|
}
|
|
423
418
|
),
|
|
424
|
-
|
|
425
|
-
|
|
419
|
+
o && /* @__PURE__ */ a(
|
|
420
|
+
B,
|
|
426
421
|
{
|
|
427
|
-
color:
|
|
422
|
+
color: t,
|
|
428
423
|
disabled: i,
|
|
429
|
-
onClick:
|
|
424
|
+
onClick: o,
|
|
430
425
|
variant: "contained",
|
|
431
426
|
children: s
|
|
432
427
|
}
|
|
433
428
|
)
|
|
434
429
|
]
|
|
435
430
|
}
|
|
436
|
-
),
|
|
431
|
+
), F = ({
|
|
437
432
|
bold: e,
|
|
438
433
|
className: i = "",
|
|
439
|
-
children:
|
|
434
|
+
children: o,
|
|
440
435
|
color: n,
|
|
441
|
-
sx:
|
|
436
|
+
sx: t = {},
|
|
442
437
|
truncate: s = !0,
|
|
443
438
|
uppercase: l,
|
|
444
439
|
...d
|
|
445
440
|
}) => /* @__PURE__ */ a(
|
|
446
|
-
|
|
441
|
+
me,
|
|
447
442
|
{
|
|
448
443
|
className: `mx-kmui-text ${i}`,
|
|
449
444
|
color: n,
|
|
@@ -459,23 +454,23 @@ const Z = {
|
|
|
459
454
|
l ? {
|
|
460
455
|
textTransform: "uppercase"
|
|
461
456
|
} : {},
|
|
462
|
-
...Array.isArray(
|
|
457
|
+
...Array.isArray(t) ? t : [t]
|
|
463
458
|
],
|
|
464
459
|
...d,
|
|
465
|
-
children:
|
|
460
|
+
children: o
|
|
466
461
|
}
|
|
467
|
-
),
|
|
468
|
-
|
|
462
|
+
), He = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Ct = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), At = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Et = ({ className: e = "", children: i, truncate: o, ...n }) => /* @__PURE__ */ a(
|
|
463
|
+
F,
|
|
469
464
|
{
|
|
470
465
|
className: `mx-mxui-text p ${e}`,
|
|
471
466
|
component: "p",
|
|
472
|
-
truncate:
|
|
467
|
+
truncate: o || !1,
|
|
473
468
|
variant: "body1",
|
|
474
469
|
...n,
|
|
475
470
|
children: i
|
|
476
471
|
}
|
|
477
|
-
),
|
|
478
|
-
|
|
472
|
+
), Ot = ({ copy: e, onClose: i }) => /* @__PURE__ */ T(
|
|
473
|
+
y,
|
|
479
474
|
{
|
|
480
475
|
sx: {
|
|
481
476
|
alignItems: "center",
|
|
@@ -485,81 +480,81 @@ const Z = {
|
|
|
485
480
|
py: 14
|
|
486
481
|
},
|
|
487
482
|
children: [
|
|
488
|
-
/* @__PURE__ */ a(
|
|
489
|
-
/* @__PURE__ */ a(X, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(
|
|
483
|
+
/* @__PURE__ */ a(He, { variant: "h3", children: e.title }),
|
|
484
|
+
/* @__PURE__ */ a(X, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(re, {}) })
|
|
490
485
|
]
|
|
491
486
|
}
|
|
492
|
-
),
|
|
487
|
+
), It = ({
|
|
493
488
|
className: e,
|
|
494
489
|
disableSave: i,
|
|
495
|
-
id:
|
|
490
|
+
id: o,
|
|
496
491
|
isOpen: n,
|
|
497
|
-
onClose:
|
|
492
|
+
onClose: t,
|
|
498
493
|
onSave: s,
|
|
499
494
|
primaryText: l,
|
|
500
495
|
secondaryText: d,
|
|
501
496
|
children: c,
|
|
502
|
-
...
|
|
497
|
+
...r
|
|
503
498
|
}) => /* @__PURE__ */ T(
|
|
504
|
-
|
|
499
|
+
be,
|
|
505
500
|
{
|
|
506
501
|
anchor: "right",
|
|
507
502
|
className: `mx-kmui-drawer ${e}`,
|
|
508
|
-
id:
|
|
509
|
-
onClose:
|
|
503
|
+
id: o ?? void 0,
|
|
504
|
+
onClose: t,
|
|
510
505
|
open: n,
|
|
511
506
|
variant: "temporary",
|
|
512
|
-
...
|
|
507
|
+
...r,
|
|
513
508
|
children: [
|
|
514
509
|
c,
|
|
515
510
|
s && /* @__PURE__ */ a(
|
|
516
|
-
|
|
511
|
+
Ne,
|
|
517
512
|
{
|
|
518
513
|
isPrimaryDisabled: i,
|
|
519
514
|
onPrimaryAction: s,
|
|
520
|
-
onSecondaryAction:
|
|
515
|
+
onSecondaryAction: t,
|
|
521
516
|
primaryText: l,
|
|
522
517
|
secondaryText: d
|
|
523
518
|
}
|
|
524
519
|
)
|
|
525
520
|
]
|
|
526
521
|
}
|
|
527
|
-
),
|
|
522
|
+
), Z = 32, P = "https://content.moneydesktop.com/storage/MD_Assets", Le = `${P}/serenity/default_institution_logo.png`, yt = ({
|
|
528
523
|
alt: e,
|
|
529
524
|
institutionGuid: i,
|
|
530
|
-
logoUrl:
|
|
531
|
-
size: n =
|
|
532
|
-
...
|
|
525
|
+
logoUrl: o,
|
|
526
|
+
size: n = Z,
|
|
527
|
+
...t
|
|
533
528
|
}) => /* @__PURE__ */ a(
|
|
534
529
|
"img",
|
|
535
530
|
{
|
|
536
531
|
alt: e,
|
|
537
532
|
height: n,
|
|
538
|
-
onError: (s) => s.target.src =
|
|
539
|
-
src:
|
|
533
|
+
onError: (s) => s.target.src = Le,
|
|
534
|
+
src: o || `${P}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
540
535
|
style: {
|
|
541
536
|
borderRadius: 4
|
|
542
537
|
},
|
|
543
538
|
width: n,
|
|
544
|
-
...
|
|
539
|
+
...t
|
|
545
540
|
}
|
|
546
|
-
),
|
|
541
|
+
), Ft = ({
|
|
547
542
|
alt: e = "",
|
|
548
543
|
categoryGuid: i,
|
|
549
|
-
merchantGuid:
|
|
550
|
-
size: n =
|
|
551
|
-
...
|
|
544
|
+
merchantGuid: o,
|
|
545
|
+
size: n = Z,
|
|
546
|
+
...t
|
|
552
547
|
}) => {
|
|
553
|
-
const [s, l] =
|
|
554
|
-
return /* @__PURE__ */ T(
|
|
555
|
-
|
|
548
|
+
const [s, l] = H.useState(!1), d = O();
|
|
549
|
+
return /* @__PURE__ */ T(Y, { display: "inline-block", position: "relative", ...t, children: [
|
|
550
|
+
o && !s && /* @__PURE__ */ a(
|
|
556
551
|
"img",
|
|
557
552
|
{
|
|
558
553
|
alt: e,
|
|
559
554
|
"aria-hidden": !e,
|
|
560
555
|
height: n,
|
|
561
556
|
onError: () => l(!0),
|
|
562
|
-
src: `${
|
|
557
|
+
src: `${P}/merchant_logos/${o}.png`,
|
|
563
558
|
style: {
|
|
564
559
|
backgroundColor: d.palette.common.white,
|
|
565
560
|
borderRadius: 4,
|
|
@@ -569,57 +564,57 @@ const Z = {
|
|
|
569
564
|
width: n
|
|
570
565
|
}
|
|
571
566
|
),
|
|
572
|
-
/* @__PURE__ */ a(
|
|
567
|
+
/* @__PURE__ */ a(Fe, { categoryGuid: i, size: n })
|
|
573
568
|
] });
|
|
574
|
-
},
|
|
569
|
+
}, vt = ({
|
|
575
570
|
disabled: e = !1,
|
|
576
571
|
label: i = "",
|
|
577
|
-
shrink:
|
|
572
|
+
shrink: o = !0,
|
|
578
573
|
variant: n = "outlined",
|
|
579
|
-
...
|
|
574
|
+
...t
|
|
580
575
|
}) => /* @__PURE__ */ a(
|
|
581
|
-
|
|
576
|
+
Te,
|
|
582
577
|
{
|
|
583
578
|
InputLabelProps: {
|
|
584
|
-
shrink:
|
|
579
|
+
shrink: o
|
|
585
580
|
},
|
|
586
581
|
disabled: e,
|
|
587
582
|
label: i,
|
|
588
583
|
variant: n,
|
|
589
|
-
...
|
|
584
|
+
...t
|
|
590
585
|
}
|
|
591
586
|
);
|
|
592
|
-
function
|
|
593
|
-
return /* @__PURE__ */ a(
|
|
587
|
+
function De(e) {
|
|
588
|
+
return /* @__PURE__ */ a(K, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
594
589
|
}
|
|
595
|
-
const
|
|
590
|
+
const Nt = ({
|
|
596
591
|
open: e,
|
|
597
592
|
handleClose: i,
|
|
598
|
-
message:
|
|
593
|
+
message: o,
|
|
599
594
|
autoHideDuration: n = 3e3,
|
|
600
|
-
severity:
|
|
595
|
+
severity: t = "success",
|
|
601
596
|
snackbarSx: s,
|
|
602
597
|
showAction: l = !1,
|
|
603
598
|
showClose: d = !1,
|
|
604
599
|
actionText: c = "Undo",
|
|
605
|
-
onActionClick:
|
|
606
|
-
multiLine:
|
|
600
|
+
onActionClick: r,
|
|
601
|
+
multiLine: u = !1
|
|
607
602
|
}) => {
|
|
608
|
-
const b = O(),
|
|
609
|
-
|
|
603
|
+
const b = O(), v = /* @__PURE__ */ T(
|
|
604
|
+
y,
|
|
610
605
|
{
|
|
611
|
-
alignItems:
|
|
612
|
-
direction:
|
|
606
|
+
alignItems: u ? "flex-end" : "center",
|
|
607
|
+
direction: u ? "column-reverse" : "row",
|
|
613
608
|
justifyContent: (
|
|
614
609
|
// eslint-disable-next-line no-nested-ternary
|
|
615
|
-
|
|
610
|
+
u && l && d ? "space-between" : "flex-end"
|
|
616
611
|
),
|
|
617
612
|
children: [
|
|
618
613
|
l && /* @__PURE__ */ a(
|
|
619
|
-
|
|
614
|
+
B,
|
|
620
615
|
{
|
|
621
616
|
color: "inherit",
|
|
622
|
-
onClick:
|
|
617
|
+
onClick: r || i,
|
|
623
618
|
size: "small",
|
|
624
619
|
sx: {
|
|
625
620
|
color: b.palette.success.contrastText,
|
|
@@ -635,42 +630,42 @@ const vo = ({
|
|
|
635
630
|
color: "inherit",
|
|
636
631
|
onClick: i,
|
|
637
632
|
sx: { height: 44, width: 44 },
|
|
638
|
-
children: /* @__PURE__ */ a(
|
|
633
|
+
children: /* @__PURE__ */ a(x, { fill: !0, name: "close", size: 24 })
|
|
639
634
|
}
|
|
640
635
|
)
|
|
641
636
|
]
|
|
642
637
|
}
|
|
643
638
|
);
|
|
644
639
|
return /* @__PURE__ */ a(
|
|
645
|
-
|
|
640
|
+
xe,
|
|
646
641
|
{
|
|
647
|
-
TransitionComponent:
|
|
642
|
+
TransitionComponent: De,
|
|
648
643
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
649
644
|
autoHideDuration: n,
|
|
650
645
|
onClose: i,
|
|
651
646
|
open: e,
|
|
652
647
|
sx: {
|
|
653
648
|
...s,
|
|
654
|
-
width:
|
|
649
|
+
width: u ? 400 : 325
|
|
655
650
|
},
|
|
656
651
|
children: /* @__PURE__ */ a(
|
|
657
|
-
|
|
652
|
+
Re,
|
|
658
653
|
{
|
|
659
|
-
action:
|
|
660
|
-
severity:
|
|
654
|
+
action: v,
|
|
655
|
+
severity: t,
|
|
661
656
|
sx: {
|
|
662
657
|
display: "flex",
|
|
663
658
|
alignItems: "stretch",
|
|
664
|
-
minHeight: d && l &&
|
|
665
|
-
maxHeight:
|
|
659
|
+
minHeight: d && l && u ? 120 : 56,
|
|
660
|
+
maxHeight: u ? 120 : 56,
|
|
666
661
|
width: "100%",
|
|
667
662
|
"& .MuiAlert-icon": {
|
|
668
|
-
alignSelf:
|
|
663
|
+
alignSelf: u ? "flex-start" : "center"
|
|
669
664
|
},
|
|
670
665
|
"& .MuiAlert-message": {
|
|
671
|
-
paddingTop:
|
|
672
|
-
paddingBottom:
|
|
673
|
-
alignSelf:
|
|
666
|
+
paddingTop: u ? 12 : 8,
|
|
667
|
+
paddingBottom: u ? 12 : 8,
|
|
668
|
+
alignSelf: u ? "flex-start" : "center"
|
|
674
669
|
},
|
|
675
670
|
"& .MuiAlert-action": {
|
|
676
671
|
alignItems: "stretch",
|
|
@@ -679,44 +674,44 @@ const vo = ({
|
|
|
679
674
|
},
|
|
680
675
|
variant: "filled",
|
|
681
676
|
children: /* @__PURE__ */ a(
|
|
682
|
-
|
|
677
|
+
F,
|
|
683
678
|
{
|
|
684
679
|
sx: {
|
|
685
680
|
lineHeight: b.typography.body1.lineHeight,
|
|
686
|
-
whiteSpace:
|
|
687
|
-
overflow:
|
|
688
|
-
textOverflow:
|
|
681
|
+
whiteSpace: u ? "normal" : "nowrap",
|
|
682
|
+
overflow: u ? "visible" : "hidden",
|
|
683
|
+
textOverflow: u ? "clip" : "ellipsis"
|
|
689
684
|
},
|
|
690
|
-
truncate: !
|
|
691
|
-
children:
|
|
685
|
+
truncate: !u,
|
|
686
|
+
children: o
|
|
692
687
|
}
|
|
693
688
|
)
|
|
694
689
|
}
|
|
695
690
|
)
|
|
696
691
|
}
|
|
697
692
|
);
|
|
698
|
-
},
|
|
699
|
-
component: e =
|
|
693
|
+
}, Ht = ({
|
|
694
|
+
component: e = w,
|
|
700
695
|
variant: i = "outlined",
|
|
701
|
-
selected:
|
|
696
|
+
selected: o,
|
|
702
697
|
onChange: n,
|
|
703
|
-
headline:
|
|
698
|
+
headline: t,
|
|
704
699
|
message: s,
|
|
705
700
|
name: l,
|
|
706
701
|
value: d,
|
|
707
702
|
disabled: c = !1,
|
|
708
|
-
error:
|
|
709
|
-
icon:
|
|
703
|
+
error: r = !1,
|
|
704
|
+
icon: u = !1,
|
|
710
705
|
sx: b = {},
|
|
711
|
-
...
|
|
706
|
+
...v
|
|
712
707
|
}) => {
|
|
713
|
-
const f = O(),
|
|
708
|
+
const f = O(), Q = () => f.palette.background.paper, D = () => r ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : c ? o ? `inset 0px 0px 0px 2px ${f.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${f.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${f.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : f.shadows[1], J = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.1), q = () => c || r ? D() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${m(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${m(f.palette.primary.main, 0.5)}` : D(), ee = () => c || r ? f.palette.background.paper : m(f.palette.primary.main, 0.3);
|
|
714
709
|
return /* @__PURE__ */ a(
|
|
715
|
-
|
|
710
|
+
Me,
|
|
716
711
|
{
|
|
717
|
-
checked:
|
|
718
|
-
control: e ===
|
|
719
|
-
|
|
712
|
+
checked: o,
|
|
713
|
+
control: e === w ? /* @__PURE__ */ a(
|
|
714
|
+
w,
|
|
720
715
|
{
|
|
721
716
|
name: l,
|
|
722
717
|
sx: {
|
|
@@ -728,10 +723,10 @@ const vo = ({
|
|
|
728
723
|
fontSize: "20px"
|
|
729
724
|
}
|
|
730
725
|
},
|
|
731
|
-
...
|
|
726
|
+
...v
|
|
732
727
|
}
|
|
733
728
|
) : /* @__PURE__ */ a(
|
|
734
|
-
|
|
729
|
+
Se,
|
|
735
730
|
{
|
|
736
731
|
name: l,
|
|
737
732
|
sx: {
|
|
@@ -743,14 +738,14 @@ const vo = ({
|
|
|
743
738
|
fontSize: "20px"
|
|
744
739
|
}
|
|
745
740
|
},
|
|
746
|
-
...
|
|
741
|
+
...v
|
|
747
742
|
}
|
|
748
743
|
),
|
|
749
744
|
disabled: c,
|
|
750
|
-
label: /* @__PURE__ */ T(
|
|
751
|
-
|
|
752
|
-
/* @__PURE__ */ T(
|
|
753
|
-
|
|
745
|
+
label: /* @__PURE__ */ T(k, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
746
|
+
u && /* @__PURE__ */ a(k, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
|
|
747
|
+
/* @__PURE__ */ T(k, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
748
|
+
t && /* @__PURE__ */ a(V, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
|
|
754
749
|
/* @__PURE__ */ a(V, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
|
|
755
750
|
] })
|
|
756
751
|
] }),
|
|
@@ -765,19 +760,19 @@ const vo = ({
|
|
|
765
760
|
mb: 16,
|
|
766
761
|
cursor: c ? "not-allowed" : "pointer",
|
|
767
762
|
opacity: c ? 0.6 : 1,
|
|
768
|
-
backgroundColor:
|
|
763
|
+
backgroundColor: Q(),
|
|
769
764
|
border: "none",
|
|
770
|
-
boxShadow:
|
|
765
|
+
boxShadow: D(),
|
|
771
766
|
boxSizing: "border-box",
|
|
772
767
|
transition: f.transitions.create(["background-color", "box-shadow"], {
|
|
773
768
|
duration: f.transitions.duration.short
|
|
774
769
|
}),
|
|
775
770
|
"&:hover": {
|
|
776
|
-
backgroundColor:
|
|
777
|
-
boxShadow:
|
|
771
|
+
backgroundColor: J(),
|
|
772
|
+
boxShadow: q()
|
|
778
773
|
},
|
|
779
774
|
"&:active": {
|
|
780
|
-
backgroundColor:
|
|
775
|
+
backgroundColor: ee()
|
|
781
776
|
},
|
|
782
777
|
"&:focus-visible": {
|
|
783
778
|
outline: `2px solid ${f.palette.info.main}`,
|
|
@@ -788,9 +783,9 @@ const vo = ({
|
|
|
788
783
|
value: d
|
|
789
784
|
}
|
|
790
785
|
);
|
|
791
|
-
},
|
|
786
|
+
}, E = {
|
|
792
787
|
LIGHT: "light"
|
|
793
|
-
},
|
|
788
|
+
}, R = (e) => ({
|
|
794
789
|
50: I(e, 0.95),
|
|
795
790
|
100: I(e, 0.85),
|
|
796
791
|
200: I(e, 0.7),
|
|
@@ -801,7 +796,7 @@ const vo = ({
|
|
|
801
796
|
700: N(e, 0.5),
|
|
802
797
|
800: N(e, 0.65),
|
|
803
798
|
900: N(e, 0.75)
|
|
804
|
-
}),
|
|
799
|
+
}), M = "#FFFFFF", _ = "#000000", ke = "#F9F9F9", we = "#000000", _e = "#FFFFFF", Be = "#1A1A1A", S = {
|
|
805
800
|
PRIMARY: "#2C64EF",
|
|
806
801
|
SECONDARY: "#808080",
|
|
807
802
|
INFO: "#2C64EF",
|
|
@@ -824,7 +819,7 @@ const vo = ({
|
|
|
824
819
|
CHART_MONO4: "#2F73DA",
|
|
825
820
|
CHART_MONO5: "#034AB3",
|
|
826
821
|
CHART_MONO6: "#002966"
|
|
827
|
-
},
|
|
822
|
+
}, p = {
|
|
828
823
|
AUTO_TRANSPORTT: "#00B0FF",
|
|
829
824
|
BILLS_UTILITIES: "#F949BD",
|
|
830
825
|
BUSINESS_SERVICES: "#2979FF",
|
|
@@ -870,99 +865,99 @@ const vo = ({
|
|
|
870
865
|
TRANSFER: "#75C7B7",
|
|
871
866
|
TRAVEL: "#76ACF7",
|
|
872
867
|
UNCATEGORIZED: "#BCC6D4"
|
|
873
|
-
},
|
|
874
|
-
const
|
|
868
|
+
}, Pe = (e, i) => {
|
|
869
|
+
const o = R(i?.primary || S.PRIMARY), n = R(i?.secondary || S.SECONDARY), t = R(i?.error || S.ERROR), s = R(i?.warning || S.WARNING), l = R(i?.info || S.INFO), d = R(i?.success || S.SUCCESS), c = R(i?.grey || S.GREY), r = e === E.LIGHT;
|
|
875
870
|
return {
|
|
876
871
|
mode: e,
|
|
877
872
|
common: {
|
|
878
|
-
white:
|
|
879
|
-
black:
|
|
873
|
+
white: M,
|
|
874
|
+
black: _
|
|
880
875
|
},
|
|
881
876
|
primary: {
|
|
882
|
-
...
|
|
883
|
-
light:
|
|
884
|
-
main:
|
|
885
|
-
dark:
|
|
877
|
+
...o,
|
|
878
|
+
light: r ? o[300] : o[600],
|
|
879
|
+
main: r ? o[500] : o[400],
|
|
880
|
+
dark: r ? o[700] : o[200]
|
|
886
881
|
},
|
|
887
882
|
secondary: {
|
|
888
883
|
...n,
|
|
889
|
-
light:
|
|
890
|
-
main:
|
|
891
|
-
dark:
|
|
884
|
+
light: r ? n[300] : n[600],
|
|
885
|
+
main: r ? n[500] : n[400],
|
|
886
|
+
dark: r ? n[700] : n[200]
|
|
892
887
|
},
|
|
893
888
|
neutral: {
|
|
894
889
|
...c,
|
|
895
|
-
light:
|
|
896
|
-
main:
|
|
897
|
-
dark:
|
|
898
|
-
contrastText:
|
|
890
|
+
light: r ? c[300] : c[600],
|
|
891
|
+
main: r ? c[500] : c[400],
|
|
892
|
+
dark: r ? c[700] : c[200],
|
|
893
|
+
contrastText: Ce(r ? c[700] : c[400], "#fff") > 4.5 ? M : c[900]
|
|
899
894
|
},
|
|
900
895
|
text: {
|
|
901
|
-
primary:
|
|
902
|
-
secondary:
|
|
903
|
-
disabled:
|
|
896
|
+
primary: r ? c[900] : M,
|
|
897
|
+
secondary: r ? c[600] : m(M, 0.7),
|
|
898
|
+
disabled: r ? c[500] : m(M, 0.38)
|
|
904
899
|
},
|
|
905
900
|
error: {
|
|
906
|
-
...
|
|
907
|
-
light:
|
|
908
|
-
main:
|
|
909
|
-
dark:
|
|
901
|
+
...t,
|
|
902
|
+
light: r ? t[300] : t[600],
|
|
903
|
+
main: r ? t[500] : t[400],
|
|
904
|
+
dark: r ? t[700] : t[200]
|
|
910
905
|
},
|
|
911
906
|
warning: {
|
|
912
907
|
...s,
|
|
913
|
-
light:
|
|
914
|
-
main:
|
|
915
|
-
dark:
|
|
908
|
+
light: r ? s[300] : s[600],
|
|
909
|
+
main: r ? s[500] : s[400],
|
|
910
|
+
dark: r ? s[700] : s[200]
|
|
916
911
|
},
|
|
917
912
|
info: {
|
|
918
913
|
...l,
|
|
919
|
-
light:
|
|
920
|
-
main:
|
|
921
|
-
dark:
|
|
914
|
+
light: r ? l[300] : l[600],
|
|
915
|
+
main: r ? l[500] : l[400],
|
|
916
|
+
dark: r ? l[700] : l[200]
|
|
922
917
|
},
|
|
923
918
|
success: {
|
|
924
919
|
...d,
|
|
925
|
-
light:
|
|
926
|
-
main:
|
|
927
|
-
dark:
|
|
920
|
+
light: r ? d[300] : d[600],
|
|
921
|
+
main: r ? d[500] : d[400],
|
|
922
|
+
dark: r ? d[700] : d[200]
|
|
928
923
|
},
|
|
929
924
|
grey: c,
|
|
930
925
|
action: {
|
|
931
|
-
active:
|
|
932
|
-
hoverOpacity:
|
|
933
|
-
selectedOpacity:
|
|
926
|
+
active: r ? m(_, 0.56) : m(M, 0.56),
|
|
927
|
+
hoverOpacity: r ? 0.1 : 0.2,
|
|
928
|
+
selectedOpacity: r ? 0.16 : 0.25,
|
|
934
929
|
focusOpacity: 0.3
|
|
935
930
|
},
|
|
936
931
|
background: {
|
|
937
|
-
default:
|
|
938
|
-
paper:
|
|
939
|
-
highlight:
|
|
940
|
-
highlightPrimary:
|
|
932
|
+
default: r ? i?.background?.default?.light || ke : i?.background?.default?.dark || we,
|
|
933
|
+
paper: r ? i?.background?.paper?.light || _e : i?.background?.paper?.dark || Be,
|
|
934
|
+
highlight: r ? c[200] : c[600],
|
|
935
|
+
highlightPrimary: r ? o[100] : o[500]
|
|
941
936
|
},
|
|
942
|
-
divider:
|
|
937
|
+
divider: r ? m(_, 0.12) : m(M, 0.24),
|
|
943
938
|
categories: {
|
|
944
|
-
autoTransport:
|
|
945
|
-
billsUtilities:
|
|
946
|
-
businessServices:
|
|
947
|
-
education:
|
|
948
|
-
entertainment:
|
|
949
|
-
feesCharges:
|
|
950
|
-
financial:
|
|
951
|
-
foodDining:
|
|
952
|
-
giftsDonations:
|
|
953
|
-
healthFitness:
|
|
954
|
-
home:
|
|
955
|
-
income:
|
|
956
|
-
investments:
|
|
957
|
-
kids:
|
|
958
|
-
others:
|
|
959
|
-
personalCare:
|
|
960
|
-
pets:
|
|
961
|
-
shopping:
|
|
962
|
-
taxes:
|
|
963
|
-
transfer:
|
|
964
|
-
travel:
|
|
965
|
-
uncategorized:
|
|
939
|
+
autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
940
|
+
billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
941
|
+
businessServices: r ? p.BUSINESS_SERVICES : h.BUSINESS_SERVICES,
|
|
942
|
+
education: r ? p.EDUCATION : h.EDUCATION,
|
|
943
|
+
entertainment: r ? p.ENTERTAINMENT : h.ENTERTAINMENT,
|
|
944
|
+
feesCharges: r ? p.FEES_CHARGES : h.FEES_CHARGES,
|
|
945
|
+
financial: r ? p.FINANCIAL : h.FINANCIAL,
|
|
946
|
+
foodDining: r ? p.FOOD_DINING : h.FOOD_DINING,
|
|
947
|
+
giftsDonations: r ? p.GIFTS_DONATIONS : h.GIFTS_DONATIONS,
|
|
948
|
+
healthFitness: r ? p.HEALTH_FITNESS : h.HEALTH_FITNESS,
|
|
949
|
+
home: r ? p.HOME : h.HOME,
|
|
950
|
+
income: r ? p.INCOME : h.INCOME,
|
|
951
|
+
investments: r ? p.INVESTMENTS : h.INVESTMENTS,
|
|
952
|
+
kids: r ? p.KIDS : h.KIDS,
|
|
953
|
+
others: r ? p.OTHERS : h.OTHERS,
|
|
954
|
+
personalCare: r ? p.PERSONAL_CARE : h.PERSONAL_CARE,
|
|
955
|
+
pets: r ? p.PETS : h.PETS,
|
|
956
|
+
shopping: r ? p.SHOPPING : h.SHOPPING,
|
|
957
|
+
taxes: r ? p.TAXES : h.TAXES,
|
|
958
|
+
transfer: r ? p.TRANSFER : h.TRANSFER,
|
|
959
|
+
travel: r ? p.TRAVEL : h.TRAVEL,
|
|
960
|
+
uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
|
|
966
961
|
},
|
|
967
962
|
chart: {
|
|
968
963
|
chart1: C.CHART1,
|
|
@@ -982,8 +977,8 @@ const vo = ({
|
|
|
982
977
|
chartMono6: A.CHART_MONO6
|
|
983
978
|
}
|
|
984
979
|
};
|
|
985
|
-
},
|
|
986
|
-
const i = e?.fontFamily
|
|
980
|
+
}, W = "Inter, Helvetica, Arial, sans-serif", ze = (e) => {
|
|
981
|
+
const i = e?.fontFamily ? `${e?.fontFamily}, ${W}` : W;
|
|
987
982
|
return {
|
|
988
983
|
fontFamily: i,
|
|
989
984
|
fontSize: 15,
|
|
@@ -1042,16 +1037,12 @@ const vo = ({
|
|
|
1042
1037
|
...e
|
|
1043
1038
|
};
|
|
1044
1039
|
};
|
|
1045
|
-
|
|
1046
|
-
"
|
|
1040
|
+
Ee.setLicenseKey(
|
|
1041
|
+
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1047
1042
|
);
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
k[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
|
|
1052
|
-
const No = (e, i) => {
|
|
1053
|
-
const r = ke(e, i?.paletteOptions), n = Be(i?.typographyOptions);
|
|
1054
|
-
return Y({
|
|
1043
|
+
const Lt = (e, i) => {
|
|
1044
|
+
const o = Pe(e, i?.paletteOptions), n = ze(i?.typographyOptions);
|
|
1045
|
+
return te({
|
|
1055
1046
|
breakpoints: {
|
|
1056
1047
|
values: {
|
|
1057
1048
|
xs: 444,
|
|
@@ -1061,8 +1052,7 @@ const No = (e, i) => {
|
|
|
1061
1052
|
xl: 1536
|
|
1062
1053
|
}
|
|
1063
1054
|
},
|
|
1064
|
-
palette:
|
|
1065
|
-
shadows: k,
|
|
1055
|
+
palette: o,
|
|
1066
1056
|
shape: {
|
|
1067
1057
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1068
1058
|
},
|
|
@@ -1073,27 +1063,27 @@ const No = (e, i) => {
|
|
|
1073
1063
|
MuiAlert: {
|
|
1074
1064
|
defaultProps: {
|
|
1075
1065
|
iconMapping: {
|
|
1076
|
-
success: /* @__PURE__ */ a(
|
|
1077
|
-
error: /* @__PURE__ */ a(
|
|
1078
|
-
warning: /* @__PURE__ */ a(
|
|
1079
|
-
info: /* @__PURE__ */ a(
|
|
1066
|
+
success: /* @__PURE__ */ a(x, { fill: !0, name: "check_circle", size: 24 }),
|
|
1067
|
+
error: /* @__PURE__ */ a(x, { fill: !0, name: "error", size: 24 }),
|
|
1068
|
+
warning: /* @__PURE__ */ a(x, { fill: !0, name: "warning", size: 24 }),
|
|
1069
|
+
info: /* @__PURE__ */ a(x, { fill: !0, name: "info", size: 24 })
|
|
1080
1070
|
},
|
|
1081
1071
|
variant: "outlined"
|
|
1082
1072
|
},
|
|
1083
1073
|
styleOverrides: {
|
|
1084
|
-
root: ({ theme:
|
|
1074
|
+
root: ({ theme: t, ownerState: s }) => {
|
|
1085
1075
|
const l = s.severity || "info";
|
|
1086
|
-
let d =
|
|
1076
|
+
let d = t.palette.mode === E.LIGHT ? t.palette[l]?.[50] : t.palette[l]?.[800];
|
|
1087
1077
|
if (s.variant === "filled") {
|
|
1088
1078
|
const c = l === "warning";
|
|
1089
|
-
d =
|
|
1079
|
+
d = t.palette[l]?.[c ? 400 : 600];
|
|
1090
1080
|
}
|
|
1091
1081
|
return {
|
|
1092
1082
|
backgroundColor: d,
|
|
1093
|
-
borderRadius:
|
|
1083
|
+
borderRadius: t.shape.borderRadius,
|
|
1094
1084
|
"& .MuiAlert-message": {
|
|
1095
|
-
fontSize:
|
|
1096
|
-
lineHeight:
|
|
1085
|
+
fontSize: t.typography.subtitle1.fontSize,
|
|
1086
|
+
lineHeight: t.typography.subtitle1.lineHeight,
|
|
1097
1087
|
marginTop: "auto",
|
|
1098
1088
|
marginBottom: "auto"
|
|
1099
1089
|
},
|
|
@@ -1119,14 +1109,14 @@ const No = (e, i) => {
|
|
|
1119
1109
|
disableElevation: !0
|
|
1120
1110
|
},
|
|
1121
1111
|
styleOverrides: {
|
|
1122
|
-
root: ({ theme:
|
|
1112
|
+
root: ({ theme: t }) => ({
|
|
1123
1113
|
fontWeight: 600,
|
|
1124
1114
|
textTransform: "none",
|
|
1125
1115
|
"&.Mui-disabled": {
|
|
1126
1116
|
cursor: "not-allowed"
|
|
1127
1117
|
},
|
|
1128
1118
|
"&.Mui-focusVisible": {
|
|
1129
|
-
outline: `2px solid ${
|
|
1119
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1130
1120
|
outlineOffset: "2px"
|
|
1131
1121
|
}
|
|
1132
1122
|
}),
|
|
@@ -1163,7 +1153,7 @@ const No = (e, i) => {
|
|
|
1163
1153
|
styleOverrides: {
|
|
1164
1154
|
root: {
|
|
1165
1155
|
"&.Mui-focusVisible": {
|
|
1166
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1156
|
+
boxShadow: `inset 0 0 0 2px ${o.info.main}`
|
|
1167
1157
|
}
|
|
1168
1158
|
}
|
|
1169
1159
|
}
|
|
@@ -1171,7 +1161,7 @@ const No = (e, i) => {
|
|
|
1171
1161
|
MuiCircularProgress: {
|
|
1172
1162
|
styleOverrides: {
|
|
1173
1163
|
root: {
|
|
1174
|
-
[`& .${
|
|
1164
|
+
[`& .${Ae.circle}`]: {
|
|
1175
1165
|
strokeLinecap: "round"
|
|
1176
1166
|
}
|
|
1177
1167
|
}
|
|
@@ -1192,22 +1182,22 @@ const No = (e, i) => {
|
|
|
1192
1182
|
},
|
|
1193
1183
|
MuiDataGrid: {
|
|
1194
1184
|
styleOverrides: {
|
|
1195
|
-
root: ({ theme:
|
|
1185
|
+
root: ({ theme: t }) => ({
|
|
1196
1186
|
border: "none",
|
|
1197
1187
|
borderRadius: 0,
|
|
1198
|
-
fontSize:
|
|
1188
|
+
fontSize: t.typography.body2.fontSize,
|
|
1199
1189
|
"& .MuiDataGrid-cell": {
|
|
1200
1190
|
display: "flex",
|
|
1201
1191
|
alignItems: "center",
|
|
1202
1192
|
borderTop: "1px solid",
|
|
1203
|
-
borderColor:
|
|
1193
|
+
borderColor: t.palette.background.highlight
|
|
1204
1194
|
},
|
|
1205
1195
|
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1206
1196
|
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1207
1197
|
"& .MuiDataGrid-columnHeaders": {
|
|
1208
|
-
backgroundColor:
|
|
1198
|
+
backgroundColor: t.palette.background.paper,
|
|
1209
1199
|
borderBottom: "2px solid",
|
|
1210
|
-
borderColor:
|
|
1200
|
+
borderColor: t.palette.divider
|
|
1211
1201
|
},
|
|
1212
1202
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1213
1203
|
fontWeight: 600
|
|
@@ -1225,42 +1215,42 @@ const No = (e, i) => {
|
|
|
1225
1215
|
},
|
|
1226
1216
|
MuiDateRangePickerDay: {
|
|
1227
1217
|
styleOverrides: {
|
|
1228
|
-
root: ({ theme:
|
|
1218
|
+
root: ({ theme: t }) => ({
|
|
1229
1219
|
":first-of-type": {
|
|
1230
|
-
borderTopLeftRadius:
|
|
1231
|
-
borderBottomLeftRadius:
|
|
1220
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1221
|
+
borderBottomLeftRadius: t.shape.borderRadius,
|
|
1232
1222
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1233
|
-
borderTopLeftRadius:
|
|
1234
|
-
borderBottomLeftRadius:
|
|
1223
|
+
borderTopLeftRadius: t.shape.borderRadius,
|
|
1224
|
+
borderBottomLeftRadius: t.shape.borderRadius
|
|
1235
1225
|
}
|
|
1236
1226
|
},
|
|
1237
1227
|
":last-of-type": {
|
|
1238
|
-
borderTopRightRadius:
|
|
1239
|
-
borderBottomRightRadius:
|
|
1228
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1229
|
+
borderBottomRightRadius: t.shape.borderRadius,
|
|
1240
1230
|
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1241
|
-
borderTopRightRadius:
|
|
1242
|
-
borderBottomRightRadius:
|
|
1231
|
+
borderTopRightRadius: t.shape.borderRadius,
|
|
1232
|
+
borderBottomRightRadius: t.shape.borderRadius
|
|
1243
1233
|
}
|
|
1244
1234
|
},
|
|
1245
1235
|
"& .Mui-selected": {
|
|
1246
|
-
borderRadius:
|
|
1236
|
+
borderRadius: t.shape.borderRadius
|
|
1247
1237
|
},
|
|
1248
1238
|
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1249
|
-
color:
|
|
1239
|
+
color: t.palette.action.disabled
|
|
1250
1240
|
}
|
|
1251
1241
|
}),
|
|
1252
|
-
day: ({ theme:
|
|
1253
|
-
borderRadius:
|
|
1242
|
+
day: ({ theme: t }) => ({
|
|
1243
|
+
borderRadius: t.shape.borderRadius
|
|
1254
1244
|
}),
|
|
1255
|
-
rangeIntervalDayPreview: ({ theme:
|
|
1256
|
-
borderRadius:
|
|
1245
|
+
rangeIntervalDayPreview: ({ theme: t }) => ({
|
|
1246
|
+
borderRadius: t.shape.borderRadius
|
|
1257
1247
|
})
|
|
1258
1248
|
}
|
|
1259
1249
|
},
|
|
1260
1250
|
MuiDayCalendar: {
|
|
1261
1251
|
styleOverrides: {
|
|
1262
|
-
weekDayLabel: ({ theme:
|
|
1263
|
-
fontSize:
|
|
1252
|
+
weekDayLabel: ({ theme: t }) => ({
|
|
1253
|
+
fontSize: t.typography.body2.fontSize,
|
|
1264
1254
|
fontWeight: 700
|
|
1265
1255
|
})
|
|
1266
1256
|
}
|
|
@@ -1302,14 +1292,14 @@ const No = (e, i) => {
|
|
|
1302
1292
|
},
|
|
1303
1293
|
MuiFormHelperText: {
|
|
1304
1294
|
styleOverrides: {
|
|
1305
|
-
root: ({ theme:
|
|
1295
|
+
root: ({ theme: t }) => ({
|
|
1306
1296
|
fontSize: 13,
|
|
1307
1297
|
// Small
|
|
1308
1298
|
marginLeft: 0,
|
|
1309
1299
|
display: "flex",
|
|
1310
1300
|
alignItems: "center",
|
|
1311
1301
|
position: "relative",
|
|
1312
|
-
color:
|
|
1302
|
+
color: t.palette.text.secondary,
|
|
1313
1303
|
"& .MuiSvgIcon-root": {
|
|
1314
1304
|
height: "16px",
|
|
1315
1305
|
width: "16px",
|
|
@@ -1325,7 +1315,7 @@ const No = (e, i) => {
|
|
|
1325
1315
|
MuiFormLabel: {
|
|
1326
1316
|
styleOverrides: {
|
|
1327
1317
|
asterisk: {
|
|
1328
|
-
color:
|
|
1318
|
+
color: o.error.main
|
|
1329
1319
|
}
|
|
1330
1320
|
}
|
|
1331
1321
|
},
|
|
@@ -1340,19 +1330,19 @@ const No = (e, i) => {
|
|
|
1340
1330
|
disableFocusRipple: !0
|
|
1341
1331
|
},
|
|
1342
1332
|
styleOverrides: {
|
|
1343
|
-
root: ({ theme:
|
|
1344
|
-
borderRadius:
|
|
1333
|
+
root: ({ theme: t }) => ({
|
|
1334
|
+
borderRadius: t.shape.borderRadius,
|
|
1345
1335
|
minHeight: 44,
|
|
1346
1336
|
// touch target
|
|
1347
1337
|
minWidth: 44,
|
|
1348
1338
|
// touch target
|
|
1349
1339
|
"&.Mui-focusVisible": {
|
|
1350
|
-
outline: `2px solid ${
|
|
1340
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1351
1341
|
outlineOffset: "2px"
|
|
1352
1342
|
},
|
|
1353
1343
|
"& .MuiTouchRipple-root": {
|
|
1354
1344
|
"& .MuiTouchRipple-child": {
|
|
1355
|
-
borderRadius:
|
|
1345
|
+
borderRadius: t.shape.borderRadius
|
|
1356
1346
|
}
|
|
1357
1347
|
}
|
|
1358
1348
|
})
|
|
@@ -1373,13 +1363,13 @@ const No = (e, i) => {
|
|
|
1373
1363
|
borderRadius: 4
|
|
1374
1364
|
},
|
|
1375
1365
|
colorPrimary: {
|
|
1376
|
-
backgroundColor:
|
|
1366
|
+
backgroundColor: o.grey[300]
|
|
1377
1367
|
}
|
|
1378
1368
|
}
|
|
1379
1369
|
},
|
|
1380
1370
|
MuiLink: {
|
|
1381
1371
|
styleOverrides: {
|
|
1382
|
-
root: ({ theme:
|
|
1372
|
+
root: ({ theme: t, color: s }) => ({
|
|
1383
1373
|
cursor: "pointer",
|
|
1384
1374
|
fontWeight: 600,
|
|
1385
1375
|
textDecoration: "none",
|
|
@@ -1391,10 +1381,10 @@ const No = (e, i) => {
|
|
|
1391
1381
|
outlineOffset: "2px"
|
|
1392
1382
|
},
|
|
1393
1383
|
"&:hover": {
|
|
1394
|
-
backgroundColor:
|
|
1384
|
+
backgroundColor: t.palette.action.hover
|
|
1395
1385
|
},
|
|
1396
1386
|
"&:active": {
|
|
1397
|
-
backgroundColor:
|
|
1387
|
+
backgroundColor: t.palette.mode === E.LIGHT ? t.palette[s].light : t.palette[s].dark
|
|
1398
1388
|
}
|
|
1399
1389
|
})
|
|
1400
1390
|
}
|
|
@@ -1421,9 +1411,9 @@ const No = (e, i) => {
|
|
|
1421
1411
|
disablePadding: !0
|
|
1422
1412
|
},
|
|
1423
1413
|
styleOverrides: {
|
|
1424
|
-
root: ({ ownerState:
|
|
1414
|
+
root: ({ ownerState: t }) => ({
|
|
1425
1415
|
minHeight: 64,
|
|
1426
|
-
...!
|
|
1416
|
+
...!t.disablePadding && {
|
|
1427
1417
|
paddingTop: 12,
|
|
1428
1418
|
paddingBottom: 12,
|
|
1429
1419
|
paddingLeft: 24
|
|
@@ -1447,7 +1437,7 @@ const No = (e, i) => {
|
|
|
1447
1437
|
},
|
|
1448
1438
|
MuiListItemButton: {
|
|
1449
1439
|
styleOverrides: {
|
|
1450
|
-
root: ({ theme:
|
|
1440
|
+
root: ({ theme: t }) => ({
|
|
1451
1441
|
minHeight: 64,
|
|
1452
1442
|
paddingLeft: 24,
|
|
1453
1443
|
paddingRight: 24,
|
|
@@ -1456,7 +1446,7 @@ const No = (e, i) => {
|
|
|
1456
1446
|
"&.Mui-focusVisible": {
|
|
1457
1447
|
backgroundColor: "transparent",
|
|
1458
1448
|
borderRadius: 8,
|
|
1459
|
-
outline: `2px solid ${
|
|
1449
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1460
1450
|
outlineOffset: -2
|
|
1461
1451
|
}
|
|
1462
1452
|
})
|
|
@@ -1479,12 +1469,8 @@ const No = (e, i) => {
|
|
|
1479
1469
|
},
|
|
1480
1470
|
secondary: {
|
|
1481
1471
|
fontSize: 11,
|
|
1482
|
-
color:
|
|
1472
|
+
color: o.text.secondary
|
|
1483
1473
|
}
|
|
1484
|
-
},
|
|
1485
|
-
secondaryTypographyProps: {
|
|
1486
|
-
fontSize: 11,
|
|
1487
|
-
color: r.text.secondary
|
|
1488
1474
|
}
|
|
1489
1475
|
},
|
|
1490
1476
|
styleOverrides: {
|
|
@@ -1504,7 +1490,7 @@ const No = (e, i) => {
|
|
|
1504
1490
|
lineHeight: "inherit",
|
|
1505
1491
|
top: -1,
|
|
1506
1492
|
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1507
|
-
backgroundColor:
|
|
1493
|
+
backgroundColor: o.background.default
|
|
1508
1494
|
}
|
|
1509
1495
|
}
|
|
1510
1496
|
},
|
|
@@ -1587,11 +1573,11 @@ const No = (e, i) => {
|
|
|
1587
1573
|
},
|
|
1588
1574
|
MuiPickersToolbar: {
|
|
1589
1575
|
styleOverrides: {
|
|
1590
|
-
content: ({ theme:
|
|
1576
|
+
content: ({ theme: t }) => ({
|
|
1591
1577
|
marginTop: 4,
|
|
1592
1578
|
"& .MuiTypography-root": {
|
|
1593
|
-
fontSize:
|
|
1594
|
-
lineHeight:
|
|
1579
|
+
fontSize: t.typography.h3.fontSize,
|
|
1580
|
+
lineHeight: t.typography.h3.lineHeight
|
|
1595
1581
|
}
|
|
1596
1582
|
})
|
|
1597
1583
|
}
|
|
@@ -1617,7 +1603,7 @@ const No = (e, i) => {
|
|
|
1617
1603
|
disableFocusRipple: !0
|
|
1618
1604
|
},
|
|
1619
1605
|
styleOverrides: {
|
|
1620
|
-
root: ({ theme:
|
|
1606
|
+
root: ({ theme: t }) => ({
|
|
1621
1607
|
width: 37,
|
|
1622
1608
|
height: 20,
|
|
1623
1609
|
padding: 0,
|
|
@@ -1628,7 +1614,7 @@ const No = (e, i) => {
|
|
|
1628
1614
|
"&.Mui-checked": {
|
|
1629
1615
|
transform: "translateX(16px)",
|
|
1630
1616
|
"& + .MuiSwitch-track": {
|
|
1631
|
-
backgroundColor:
|
|
1617
|
+
backgroundColor: t.palette.success.main,
|
|
1632
1618
|
opacity: 1,
|
|
1633
1619
|
border: 0
|
|
1634
1620
|
},
|
|
@@ -1637,27 +1623,27 @@ const No = (e, i) => {
|
|
|
1637
1623
|
}
|
|
1638
1624
|
},
|
|
1639
1625
|
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
1640
|
-
color:
|
|
1626
|
+
color: t.palette.common.white
|
|
1641
1627
|
},
|
|
1642
1628
|
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1643
|
-
backgroundColor:
|
|
1629
|
+
backgroundColor: t.palette.action.disabledBackground,
|
|
1644
1630
|
opacity: 1
|
|
1645
1631
|
}
|
|
1646
1632
|
},
|
|
1647
1633
|
"& .MuiSwitch-input": {
|
|
1648
1634
|
"&:focus-visible ~ .MuiSwitch-thumb": {
|
|
1649
|
-
outline: `2px solid ${
|
|
1635
|
+
outline: `2px solid ${t.palette.info.main}`,
|
|
1650
1636
|
outlineOffset: 0
|
|
1651
1637
|
}
|
|
1652
1638
|
},
|
|
1653
1639
|
"& .MuiSwitch-thumb": {
|
|
1654
1640
|
boxSizing: "border-box",
|
|
1655
|
-
backgroundColor:
|
|
1641
|
+
backgroundColor: t.palette.background.paper,
|
|
1656
1642
|
width: 16,
|
|
1657
1643
|
height: 16
|
|
1658
1644
|
},
|
|
1659
1645
|
"& .MuiSwitch-track": {
|
|
1660
|
-
backgroundColor:
|
|
1646
|
+
backgroundColor: t.palette.action.active,
|
|
1661
1647
|
borderRadius: 20 / 2,
|
|
1662
1648
|
opacity: 1
|
|
1663
1649
|
}
|
|
@@ -1674,7 +1660,7 @@ const No = (e, i) => {
|
|
|
1674
1660
|
fontWeight: 600,
|
|
1675
1661
|
"&.Mui-focusVisible": {
|
|
1676
1662
|
outline: "none",
|
|
1677
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1663
|
+
boxShadow: `inset 0 0 0 2px ${o.info.main}`,
|
|
1678
1664
|
borderRadius: 4
|
|
1679
1665
|
}
|
|
1680
1666
|
}
|
|
@@ -1685,21 +1671,23 @@ const No = (e, i) => {
|
|
|
1685
1671
|
root: {
|
|
1686
1672
|
borderBottomStyle: "solid",
|
|
1687
1673
|
borderBottomWidth: 1,
|
|
1688
|
-
borderColor:
|
|
1674
|
+
borderColor: o.divider,
|
|
1689
1675
|
marginBottom: 8
|
|
1690
1676
|
}
|
|
1691
1677
|
}
|
|
1692
1678
|
},
|
|
1693
1679
|
MuiTextField: {
|
|
1694
1680
|
defaultProps: {
|
|
1695
|
-
|
|
1696
|
-
|
|
1681
|
+
slotProps: {
|
|
1682
|
+
inputLabel: {
|
|
1683
|
+
shrink: !0
|
|
1684
|
+
}
|
|
1697
1685
|
},
|
|
1698
1686
|
variant: "outlined"
|
|
1699
1687
|
},
|
|
1700
1688
|
styleOverrides: {
|
|
1701
1689
|
root: {
|
|
1702
|
-
backgroundColor:
|
|
1690
|
+
backgroundColor: o.background.paper
|
|
1703
1691
|
}
|
|
1704
1692
|
}
|
|
1705
1693
|
},
|
|
@@ -1710,29 +1698,29 @@ const No = (e, i) => {
|
|
|
1710
1698
|
},
|
|
1711
1699
|
styleOverrides: {
|
|
1712
1700
|
root: {
|
|
1713
|
-
color:
|
|
1701
|
+
color: o.text.primary,
|
|
1714
1702
|
fontSize: 13,
|
|
1715
1703
|
lineHeight: "16px",
|
|
1716
1704
|
textTransform: "none",
|
|
1717
1705
|
"&:focus-visible": {
|
|
1718
|
-
outline: `2px solid ${
|
|
1706
|
+
outline: `2px solid ${o.info.main}`,
|
|
1719
1707
|
outlineOffset: "2px"
|
|
1720
1708
|
},
|
|
1721
1709
|
"&:hover": {
|
|
1722
|
-
backgroundColor: m(
|
|
1723
|
-
borderColor:
|
|
1710
|
+
backgroundColor: m(o.primary.main, o.mode === E.LIGHT ? 0.1 : 0.2),
|
|
1711
|
+
borderColor: o.primary.main
|
|
1724
1712
|
},
|
|
1725
1713
|
"&.Mui-selected": {
|
|
1726
1714
|
fontWeight: 600,
|
|
1727
|
-
borderColor:
|
|
1715
|
+
borderColor: o.primary.main,
|
|
1728
1716
|
"&:hover": {
|
|
1729
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1717
|
+
boxShadow: `inset 0px 0px 0px 2px ${o.primary.main}`
|
|
1730
1718
|
}
|
|
1731
1719
|
},
|
|
1732
1720
|
"& .MuiTouchRipple-root": {
|
|
1733
1721
|
"& .MuiTouchRipple-ripple": {
|
|
1734
1722
|
"& .MuiTouchRipple-child": {
|
|
1735
|
-
backgroundColor:
|
|
1723
|
+
backgroundColor: o.primary.main
|
|
1736
1724
|
}
|
|
1737
1725
|
}
|
|
1738
1726
|
}
|
|
@@ -1743,19 +1731,19 @@ const No = (e, i) => {
|
|
|
1743
1731
|
props: { color: "error" },
|
|
1744
1732
|
style: {
|
|
1745
1733
|
"&:hover": {
|
|
1746
|
-
backgroundColor: m(
|
|
1747
|
-
borderColor:
|
|
1734
|
+
backgroundColor: m(o.error.main, o.mode === E.LIGHT ? 0.1 : 0.2),
|
|
1735
|
+
borderColor: o.error.main
|
|
1748
1736
|
},
|
|
1749
1737
|
"&.Mui-selected": {
|
|
1750
|
-
borderColor:
|
|
1738
|
+
borderColor: o.error.main,
|
|
1751
1739
|
"&:hover": {
|
|
1752
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1740
|
+
boxShadow: `inset 0px 0px 0px 2px ${o.error.main}`
|
|
1753
1741
|
}
|
|
1754
1742
|
},
|
|
1755
1743
|
"& .MuiTouchRipple-root": {
|
|
1756
1744
|
"& .MuiTouchRipple-ripple": {
|
|
1757
1745
|
"& .MuiTouchRipple-child": {
|
|
1758
|
-
backgroundColor:
|
|
1746
|
+
backgroundColor: o.error.main
|
|
1759
1747
|
}
|
|
1760
1748
|
}
|
|
1761
1749
|
}
|
|
@@ -1766,21 +1754,21 @@ const No = (e, i) => {
|
|
|
1766
1754
|
style: {
|
|
1767
1755
|
"&:hover": {
|
|
1768
1756
|
backgroundColor: m(
|
|
1769
|
-
|
|
1770
|
-
|
|
1757
|
+
o.secondary.main,
|
|
1758
|
+
o.mode === E.LIGHT ? 0.1 : 0.2
|
|
1771
1759
|
),
|
|
1772
|
-
borderColor:
|
|
1760
|
+
borderColor: o.secondary.main
|
|
1773
1761
|
},
|
|
1774
1762
|
"&.Mui-selected": {
|
|
1775
|
-
borderColor:
|
|
1763
|
+
borderColor: o.secondary.main,
|
|
1776
1764
|
"&:hover": {
|
|
1777
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
1765
|
+
boxShadow: `inset 0px 0px 0px 2px ${o.secondary.main}`
|
|
1778
1766
|
}
|
|
1779
1767
|
},
|
|
1780
1768
|
"& .MuiTouchRipple-root": {
|
|
1781
1769
|
"& .MuiTouchRipple-ripple": {
|
|
1782
1770
|
"& .MuiTouchRipple-child": {
|
|
1783
|
-
backgroundColor:
|
|
1771
|
+
backgroundColor: o.secondary.main
|
|
1784
1772
|
}
|
|
1785
1773
|
}
|
|
1786
1774
|
}
|
|
@@ -1807,33 +1795,33 @@ const No = (e, i) => {
|
|
|
1807
1795
|
});
|
|
1808
1796
|
};
|
|
1809
1797
|
export {
|
|
1810
|
-
|
|
1811
|
-
|
|
1798
|
+
L as BaseIcon,
|
|
1799
|
+
St as BottomSheetTransition,
|
|
1812
1800
|
g as CategoryGuids,
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1801
|
+
Fe as CategoryIcon,
|
|
1802
|
+
Ie as CategoryIconList,
|
|
1803
|
+
Oe as CategoryIconVariants,
|
|
1804
|
+
Mt as DateRangePicker,
|
|
1805
|
+
Ne as DialogFooter,
|
|
1806
|
+
Ot as DialogHeader,
|
|
1807
|
+
It as Drawer,
|
|
1808
|
+
Ne as Footer,
|
|
1809
|
+
He as H1,
|
|
1810
|
+
Ct as H2,
|
|
1811
|
+
At as H3,
|
|
1812
|
+
W as INTER,
|
|
1813
|
+
x as Icon,
|
|
1814
|
+
yt as InstitutionLogo,
|
|
1815
|
+
Tt as MXLogoCopyrightIcon,
|
|
1816
|
+
xt as MXLogoFilledIcon,
|
|
1817
|
+
bt as MXLogoIcon,
|
|
1818
|
+
Rt as MXLogoOutlineIcon,
|
|
1819
|
+
Ft as MerchantLogo,
|
|
1820
|
+
Et as P,
|
|
1821
|
+
Ht as SelectionBox,
|
|
1822
|
+
F as Text,
|
|
1823
|
+
vt as TextField,
|
|
1824
|
+
Nt as Toast,
|
|
1825
|
+
Lt as createMXTheme
|
|
1838
1826
|
};
|
|
1839
1827
|
//# sourceMappingURL=index.es.js.map
|