@mxenabled/mxui 2.1.1 → 2.2.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/dist/components/daterangepicker/small/DatePickerShortcutsSmall.d.ts +8 -0
- package/dist/components/daterangepicker/small/DateRangePickerSmall.d.ts +4 -0
- package/dist/components/text/Text.d.ts +2 -9
- package/dist/index.es.js +377 -295
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import H from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { endOfMonth as
|
|
7
|
-
import { endOfYear as
|
|
8
|
-
import { startOfToday as
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
3
|
+
import A from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as E, createTheme as ne } from "@mui/material/styles";
|
|
5
|
+
import { Icon as le, ExpandMore as se, Close as ce } from "@mxenabled/mx-icons";
|
|
6
|
+
import { endOfMonth as $ } from "date-fns/endOfMonth";
|
|
7
|
+
import { endOfYear as de } from "date-fns/endOfYear";
|
|
8
|
+
import { startOfToday as ue } from "date-fns/startOfToday";
|
|
9
|
+
import { startOfMonth as U } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as V } from "date-fns/startOfYear";
|
|
11
11
|
import { subDays as G } from "date-fns/subDays";
|
|
12
|
-
import { subMonths as
|
|
13
|
-
import { subYears as
|
|
14
|
-
import
|
|
15
|
-
import { usePickerContext as
|
|
16
|
-
import { AdapterDateFns as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
12
|
+
import { subMonths as pe } from "date-fns/subMonths";
|
|
13
|
+
import { subYears as he } from "date-fns/subYears";
|
|
14
|
+
import ge from "@mui/material/useMediaQuery";
|
|
15
|
+
import { usePickerContext as X, useIsValidValue as j, LocalizationProvider as me, StaticDateRangePicker as fe } from "@mui/x-date-pickers-pro";
|
|
16
|
+
import { AdapterDateFns as be } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
|
+
import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
18
|
+
import Z from "@mui/material/Box";
|
|
19
|
+
import xe from "@mui/material/ToggleButton";
|
|
20
|
+
import Re from "@mui/material/ToggleButtonGroup";
|
|
21
|
+
import Me from "@mui/material/MenuItem";
|
|
22
|
+
import Q from "@mui/material/TextField";
|
|
23
|
+
import { usePickerLayout as Ce, PickersLayoutRoot as Se, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as D } from "@mui/x-date-pickers/PickersLayout";
|
|
24
|
+
import J from "@mui/material/Slide";
|
|
21
25
|
import B from "@mui/material/Button";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { LicenseInfo as Oe } from "@mui/x-license";
|
|
26
|
+
import q from "@mui/material/IconButton";
|
|
27
|
+
import ye from "@mui/material/Typography";
|
|
28
|
+
import Ie from "@mui/material/Drawer";
|
|
29
|
+
import Ee from "@mui/material/Snackbar";
|
|
30
|
+
import Oe from "@mui/material/Alert";
|
|
31
|
+
import { FormControlLabel as Fe, Box as w, Typography as W, Radio as P, Checkbox as ve, alpha as f, darken as N, lighten as O, getContrastRatio as Ne } from "@mui/material";
|
|
32
|
+
import { circularProgressClasses as He } from "@mui/material/CircularProgress";
|
|
33
|
+
import { LicenseInfo as Le } from "@mui/x-license";
|
|
31
34
|
const L = ({
|
|
32
35
|
children: e,
|
|
33
36
|
height: i,
|
|
34
37
|
size: o = 16,
|
|
35
|
-
viewBox:
|
|
38
|
+
viewBox: l = "0 0 16 16",
|
|
36
39
|
width: t
|
|
37
40
|
}) => /* @__PURE__ */ a(
|
|
38
41
|
"svg",
|
|
@@ -41,15 +44,15 @@ const L = ({
|
|
|
41
44
|
className: "mx-kmui-icon",
|
|
42
45
|
focusable: !1,
|
|
43
46
|
height: i || o,
|
|
44
|
-
viewBox:
|
|
47
|
+
viewBox: l,
|
|
45
48
|
width: t || o,
|
|
46
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
47
50
|
children: e
|
|
48
51
|
}
|
|
49
|
-
), x = ({ color: e, fill: i = !1, name: o, size:
|
|
52
|
+
), x = ({ color: e, fill: i = !1, name: o, size: l = 20, sx: t, ...s }) => /* @__PURE__ */ a(le, { color: e, fill: i, name: o, size: l, sx: t, ...s }), Ft = ({
|
|
50
53
|
color: e = "currentColor",
|
|
51
54
|
...i
|
|
52
|
-
}) => /* @__PURE__ */
|
|
55
|
+
}) => /* @__PURE__ */ b(L, { ...i, children: [
|
|
53
56
|
/* @__PURE__ */ a(
|
|
54
57
|
"path",
|
|
55
58
|
{
|
|
@@ -64,10 +67,10 @@ const L = ({
|
|
|
64
67
|
fill: e
|
|
65
68
|
}
|
|
66
69
|
)
|
|
67
|
-
] }),
|
|
70
|
+
] }), vt = ({
|
|
68
71
|
color: e = "currentColor",
|
|
69
72
|
...i
|
|
70
|
-
}) => /* @__PURE__ */
|
|
73
|
+
}) => /* @__PURE__ */ b(L, { ...i, children: [
|
|
71
74
|
/* @__PURE__ */ a(
|
|
72
75
|
"path",
|
|
73
76
|
{
|
|
@@ -100,7 +103,7 @@ const L = ({
|
|
|
100
103
|
fillRule: "evenodd"
|
|
101
104
|
}
|
|
102
105
|
)
|
|
103
|
-
] }),
|
|
106
|
+
] }), Nt = ({
|
|
104
107
|
color: e = "currentColor",
|
|
105
108
|
...i
|
|
106
109
|
}) => /* @__PURE__ */ a(L, { ...i, children: /* @__PURE__ */ a(
|
|
@@ -111,10 +114,10 @@ const L = ({
|
|
|
111
114
|
fill: e,
|
|
112
115
|
fillRule: "evenodd"
|
|
113
116
|
}
|
|
114
|
-
) }),
|
|
117
|
+
) }), Ht = ({
|
|
115
118
|
color: e = "currentColor",
|
|
116
119
|
...i
|
|
117
|
-
}) => /* @__PURE__ */
|
|
120
|
+
}) => /* @__PURE__ */ b(L, { ...i, children: [
|
|
118
121
|
/* @__PURE__ */ a(
|
|
119
122
|
"path",
|
|
120
123
|
{
|
|
@@ -139,12 +142,12 @@ const L = ({
|
|
|
139
142
|
}
|
|
140
143
|
)
|
|
141
144
|
] });
|
|
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
|
|
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 ee = {
|
|
144
147
|
guid: g.Uncategorized,
|
|
145
148
|
colorName: "uncategorized",
|
|
146
149
|
icon: "category"
|
|
147
|
-
},
|
|
150
|
+
}, De = [
|
|
148
151
|
{
|
|
149
152
|
guid: g.AutoTransport,
|
|
150
153
|
colorName: "autoTransport",
|
|
@@ -245,53 +248,53 @@ const Z = {
|
|
|
245
248
|
colorName: "travel",
|
|
246
249
|
icon: "airplane_ticket"
|
|
247
250
|
},
|
|
248
|
-
|
|
249
|
-
],
|
|
251
|
+
ee
|
|
252
|
+
], we = 0.625, Pe = ({
|
|
250
253
|
categoryGuid: e,
|
|
251
|
-
icon_ratio: i =
|
|
254
|
+
icon_ratio: i = we,
|
|
252
255
|
size: o = 32,
|
|
253
|
-
sx:
|
|
256
|
+
sx: l = {},
|
|
254
257
|
variant: t = "filled"
|
|
255
258
|
}) => {
|
|
256
|
-
const s =
|
|
257
|
-
() =>
|
|
259
|
+
const s = E(), n = H.useMemo(
|
|
260
|
+
() => De.find((u) => u.guid === e) ?? ee,
|
|
258
261
|
[e]
|
|
259
|
-
),
|
|
262
|
+
), c = s.palette.categories[n.colorName];
|
|
260
263
|
return /* @__PURE__ */ a(
|
|
261
|
-
|
|
264
|
+
A,
|
|
262
265
|
{
|
|
263
266
|
alignItems: "center",
|
|
264
267
|
bgcolor: () => {
|
|
265
|
-
let u =
|
|
268
|
+
let u = c;
|
|
266
269
|
return t === "twotone" && (u = `${u}20`), t === "transparent" || t === "basic" ? "transparent" : u;
|
|
267
270
|
},
|
|
268
271
|
borderRadius: 1,
|
|
269
272
|
color: () => {
|
|
270
|
-
const u = t === "filled" ? s.palette.common.white :
|
|
273
|
+
const u = t === "filled" ? s.palette.common.white : c;
|
|
271
274
|
return t === "basic" ? s.palette.text.primary : u;
|
|
272
275
|
},
|
|
273
276
|
height: o,
|
|
274
277
|
justifyContent: "center",
|
|
275
|
-
sx: [...Array.isArray(
|
|
278
|
+
sx: [...Array.isArray(l) ? l : [l]],
|
|
276
279
|
width: o,
|
|
277
|
-
children: /* @__PURE__ */ a(x, { name:
|
|
280
|
+
children: /* @__PURE__ */ a(x, { name: n.icon, size: o * i })
|
|
278
281
|
}
|
|
279
282
|
);
|
|
280
|
-
},
|
|
281
|
-
const o =
|
|
282
|
-
const
|
|
283
|
+
}, _e = ({ items: e, selected: i }) => {
|
|
284
|
+
const o = E(), { setValue: l } = X(), t = j(), s = e?.map((n) => {
|
|
285
|
+
const c = n.getValue({ isValid: t });
|
|
283
286
|
return {
|
|
284
|
-
label:
|
|
287
|
+
label: n.label,
|
|
285
288
|
onClick: () => {
|
|
286
|
-
|
|
289
|
+
l(c, { changeImportance: "accept", shortcut: n });
|
|
287
290
|
},
|
|
288
|
-
disabled: !t(
|
|
291
|
+
disabled: !t(c)
|
|
289
292
|
};
|
|
290
293
|
});
|
|
291
|
-
return /* @__PURE__ */ a(
|
|
292
|
-
|
|
294
|
+
return /* @__PURE__ */ a(Z, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(Re, { color: "primary", orientation: "vertical", value: i, children: s?.map((n) => /* @__PURE__ */ a(
|
|
295
|
+
xe,
|
|
293
296
|
{
|
|
294
|
-
onClick:
|
|
297
|
+
onClick: n.onClick,
|
|
295
298
|
sx: {
|
|
296
299
|
borderWidth: 1,
|
|
297
300
|
color: "secondary.main",
|
|
@@ -311,28 +314,93 @@ const Z = {
|
|
|
311
314
|
color: "primary"
|
|
312
315
|
}
|
|
313
316
|
},
|
|
314
|
-
value:
|
|
315
|
-
children:
|
|
317
|
+
value: n.label,
|
|
318
|
+
children: n.label
|
|
316
319
|
},
|
|
317
|
-
|
|
320
|
+
n.label
|
|
318
321
|
)) }) });
|
|
319
|
-
},
|
|
322
|
+
}, Be = ({
|
|
323
|
+
items: e,
|
|
324
|
+
selected: i,
|
|
325
|
+
selectLabel: o
|
|
326
|
+
}) => {
|
|
327
|
+
const { setValue: l } = X(), t = j(), s = e?.map((n) => {
|
|
328
|
+
const c = n.getValue({ isValid: t });
|
|
329
|
+
return {
|
|
330
|
+
label: n.label,
|
|
331
|
+
onClick: () => {
|
|
332
|
+
l(c, { changeImportance: "accept", shortcut: n });
|
|
333
|
+
},
|
|
334
|
+
disabled: !t(c)
|
|
335
|
+
};
|
|
336
|
+
});
|
|
337
|
+
return /* @__PURE__ */ a(A, { sx: { py: 16 }, children: /* @__PURE__ */ a(
|
|
338
|
+
Q,
|
|
339
|
+
{
|
|
340
|
+
defaultValue: i,
|
|
341
|
+
id: "select",
|
|
342
|
+
label: o,
|
|
343
|
+
select: !0,
|
|
344
|
+
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: se } },
|
|
345
|
+
sx: { width: "100%" },
|
|
346
|
+
value: i,
|
|
347
|
+
variant: "outlined",
|
|
348
|
+
children: s?.map((n) => /* @__PURE__ */ a(Me, { onClick: n.onClick, value: n.label, children: n.label }, n.label))
|
|
349
|
+
}
|
|
350
|
+
) });
|
|
351
|
+
}, ze = (e) => {
|
|
352
|
+
const { toolbar: i, content: o, shortcuts: l, ownerState: t } = Ce(e);
|
|
353
|
+
return /* @__PURE__ */ b(
|
|
354
|
+
Se,
|
|
355
|
+
{
|
|
356
|
+
ownerState: t,
|
|
357
|
+
sx: {
|
|
358
|
+
gridTemplateColumns: "minmax(320px, 1fr)",
|
|
359
|
+
overflow: "auto",
|
|
360
|
+
p: 0,
|
|
361
|
+
[`.${D.toolbar}`]: {
|
|
362
|
+
gridColumn: 1,
|
|
363
|
+
gridRow: 2
|
|
364
|
+
},
|
|
365
|
+
[`.${D.contentWrapper}`]: {
|
|
366
|
+
alignItems: "center",
|
|
367
|
+
gridColumn: 1,
|
|
368
|
+
gridRow: 3
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
children: [
|
|
372
|
+
/* @__PURE__ */ b(A, { sx: { gridColumn: 1, gridRow: 1, p: 16 }, children: [
|
|
373
|
+
l,
|
|
374
|
+
i
|
|
375
|
+
] }),
|
|
376
|
+
/* @__PURE__ */ a(
|
|
377
|
+
Ae,
|
|
378
|
+
{
|
|
379
|
+
className: D.contentWrapper,
|
|
380
|
+
ownerState: t,
|
|
381
|
+
children: o
|
|
382
|
+
}
|
|
383
|
+
)
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
}, Lt = ({
|
|
320
388
|
copy: e,
|
|
321
389
|
dateRange: i,
|
|
322
390
|
onRangeChanged: o,
|
|
323
|
-
selectedShortcut:
|
|
391
|
+
selectedShortcut: l = e.dateRangeThisMonth,
|
|
324
392
|
sx: t = {}
|
|
325
393
|
}) => {
|
|
326
|
-
const s =
|
|
327
|
-
const r =
|
|
394
|
+
const s = E(), n = ge(s.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
395
|
+
const r = ue(), u = pe(r, 1), T = he(r, 1);
|
|
328
396
|
return [
|
|
329
397
|
{
|
|
330
398
|
label: e.dateRangeThisMonth,
|
|
331
|
-
getValue: () => [
|
|
399
|
+
getValue: () => [U(r), $(r)]
|
|
332
400
|
},
|
|
333
401
|
{
|
|
334
402
|
label: e.dateRangeLastMonth,
|
|
335
|
-
getValue: () => [
|
|
403
|
+
getValue: () => [U(u), $(u)]
|
|
336
404
|
},
|
|
337
405
|
{
|
|
338
406
|
label: e.dateRangeLast30Days,
|
|
@@ -344,23 +412,23 @@ const Z = {
|
|
|
344
412
|
},
|
|
345
413
|
{
|
|
346
414
|
label: e.dateRangeYTD,
|
|
347
|
-
getValue: () => [
|
|
415
|
+
getValue: () => [V(r), r]
|
|
348
416
|
},
|
|
349
417
|
{
|
|
350
418
|
label: e.dateRangeLastYear,
|
|
351
|
-
getValue: () => [
|
|
419
|
+
getValue: () => [V(T), de(T)]
|
|
352
420
|
},
|
|
353
421
|
{
|
|
354
422
|
label: e.dateRangeCustom,
|
|
355
423
|
getValue: () => [r, r]
|
|
356
424
|
}
|
|
357
425
|
];
|
|
358
|
-
}, [e]),
|
|
359
|
-
const
|
|
360
|
-
o?.(r,
|
|
426
|
+
}, [e]), d = (r, u) => {
|
|
427
|
+
const T = u.shortcut;
|
|
428
|
+
o?.(r, T ? T.label : e.dateRangeCustom);
|
|
361
429
|
};
|
|
362
|
-
return /* @__PURE__ */ a(
|
|
363
|
-
|
|
430
|
+
return /* @__PURE__ */ a(A, { gap: n ? 0 : 16, m: n ? 0 : 8, children: /* @__PURE__ */ a(me, { dateAdapter: be, children: /* @__PURE__ */ a(
|
|
431
|
+
fe,
|
|
364
432
|
{
|
|
365
433
|
calendars: 1,
|
|
366
434
|
localeText: {
|
|
@@ -368,39 +436,63 @@ const Z = {
|
|
|
368
436
|
end: e.dateRangeTo,
|
|
369
437
|
toolbarTitle: e.dateRangeToolbarTitle
|
|
370
438
|
},
|
|
371
|
-
onChange:
|
|
439
|
+
onChange: d,
|
|
372
440
|
showDaysOutsideCurrentMonth: !0,
|
|
373
441
|
slotProps: {
|
|
374
442
|
actionBar: { actions: [] },
|
|
375
443
|
shortcuts: {
|
|
376
|
-
items:
|
|
444
|
+
items: c
|
|
377
445
|
},
|
|
378
446
|
toolbar: {
|
|
379
447
|
toolbarFormat: "MMM d, yyyy"
|
|
380
448
|
}
|
|
381
449
|
},
|
|
382
450
|
slots: {
|
|
451
|
+
...n && { layout: ze },
|
|
383
452
|
leftArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_left", size: 28 }),
|
|
384
|
-
shortcuts: (r) => /* @__PURE__ */ a(
|
|
385
|
-
|
|
453
|
+
shortcuts: (r) => n ? /* @__PURE__ */ a(
|
|
454
|
+
Be,
|
|
455
|
+
{
|
|
456
|
+
selectLabel: e.dateRangeSelectARange,
|
|
457
|
+
selected: l,
|
|
458
|
+
...r
|
|
459
|
+
}
|
|
460
|
+
) : /* @__PURE__ */ a(_e, { selected: l, ...r }),
|
|
461
|
+
rightArrowIcon: () => /* @__PURE__ */ a(x, { name: "chevron_right", size: 28 }),
|
|
462
|
+
...n && {
|
|
463
|
+
toolbar: (r) => /* @__PURE__ */ a(
|
|
464
|
+
Te,
|
|
465
|
+
{
|
|
466
|
+
dateSeparator: "",
|
|
467
|
+
format: "MM/dd/yyyy",
|
|
468
|
+
...r,
|
|
469
|
+
slotProps: {
|
|
470
|
+
textField: ({ position: u }) => ({
|
|
471
|
+
label: u === "start" ? e.dateRangeFrom : e.dateRangeTo
|
|
472
|
+
})
|
|
473
|
+
},
|
|
474
|
+
sx: { gap: 8 }
|
|
475
|
+
}
|
|
476
|
+
)
|
|
477
|
+
}
|
|
386
478
|
},
|
|
387
479
|
sx: { ...t },
|
|
388
480
|
value: i
|
|
389
481
|
}
|
|
390
482
|
) }) });
|
|
391
|
-
},
|
|
392
|
-
return /* @__PURE__ */ a(
|
|
393
|
-
}),
|
|
483
|
+
}, kt = H.forwardRef(function(i, o) {
|
|
484
|
+
return /* @__PURE__ */ a(J, { direction: "up", ref: o, ...i });
|
|
485
|
+
}), $e = ({
|
|
394
486
|
hasSecondaryAction: e = !0,
|
|
395
487
|
isPrimaryDisabled: i,
|
|
396
488
|
onPrimaryAction: o,
|
|
397
|
-
onSecondaryAction:
|
|
489
|
+
onSecondaryAction: l,
|
|
398
490
|
primaryColor: t = "primary",
|
|
399
491
|
primaryText: s = "Save",
|
|
400
|
-
secondaryColor:
|
|
401
|
-
secondaryText:
|
|
402
|
-
}) => /* @__PURE__ */
|
|
403
|
-
|
|
492
|
+
secondaryColor: n = "primary",
|
|
493
|
+
secondaryText: c = "Cancel"
|
|
494
|
+
}) => /* @__PURE__ */ b(
|
|
495
|
+
A,
|
|
404
496
|
{
|
|
405
497
|
direction: "row",
|
|
406
498
|
gap: 16,
|
|
@@ -410,10 +502,10 @@ const Z = {
|
|
|
410
502
|
e && /* @__PURE__ */ a(
|
|
411
503
|
B,
|
|
412
504
|
{
|
|
413
|
-
color:
|
|
414
|
-
onClick:
|
|
505
|
+
color: n,
|
|
506
|
+
onClick: l,
|
|
415
507
|
variant: o ? "outlined" : "contained",
|
|
416
|
-
children:
|
|
508
|
+
children: c
|
|
417
509
|
}
|
|
418
510
|
),
|
|
419
511
|
o && /* @__PURE__ */ a(
|
|
@@ -432,16 +524,16 @@ const Z = {
|
|
|
432
524
|
bold: e,
|
|
433
525
|
className: i = "",
|
|
434
526
|
children: o,
|
|
435
|
-
color:
|
|
527
|
+
color: l,
|
|
436
528
|
sx: t = {},
|
|
437
|
-
truncate: s
|
|
438
|
-
uppercase:
|
|
439
|
-
...
|
|
529
|
+
truncate: s,
|
|
530
|
+
uppercase: n,
|
|
531
|
+
...c
|
|
440
532
|
}) => /* @__PURE__ */ a(
|
|
441
|
-
|
|
533
|
+
ye,
|
|
442
534
|
{
|
|
443
535
|
className: `mx-kmui-text ${i}`,
|
|
444
|
-
color:
|
|
536
|
+
color: l,
|
|
445
537
|
sx: [
|
|
446
538
|
e ? {
|
|
447
539
|
fontWeight: 600
|
|
@@ -451,26 +543,16 @@ const Z = {
|
|
|
451
543
|
textOverflow: "ellipsis",
|
|
452
544
|
whiteSpace: "nowrap"
|
|
453
545
|
} : {},
|
|
454
|
-
|
|
546
|
+
n ? {
|
|
455
547
|
textTransform: "uppercase"
|
|
456
548
|
} : {},
|
|
457
549
|
...Array.isArray(t) ? t : [t]
|
|
458
550
|
],
|
|
459
|
-
...
|
|
551
|
+
...c,
|
|
460
552
|
children: o
|
|
461
553
|
}
|
|
462
|
-
),
|
|
463
|
-
|
|
464
|
-
{
|
|
465
|
-
className: `mx-mxui-text p ${e}`,
|
|
466
|
-
component: "p",
|
|
467
|
-
truncate: o || !1,
|
|
468
|
-
variant: "body1",
|
|
469
|
-
...n,
|
|
470
|
-
children: i
|
|
471
|
-
}
|
|
472
|
-
), Ot = ({ copy: e, onClose: i }) => /* @__PURE__ */ T(
|
|
473
|
-
y,
|
|
554
|
+
), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pt = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ a(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), _t = ({ copy: e, onClose: i }) => /* @__PURE__ */ b(
|
|
555
|
+
A,
|
|
474
556
|
{
|
|
475
557
|
sx: {
|
|
476
558
|
alignItems: "center",
|
|
@@ -480,154 +562,154 @@ const Z = {
|
|
|
480
562
|
py: 14
|
|
481
563
|
},
|
|
482
564
|
children: [
|
|
483
|
-
/* @__PURE__ */ a(
|
|
484
|
-
/* @__PURE__ */ a(
|
|
565
|
+
/* @__PURE__ */ a(Ue, { variant: "h3", children: e.title }),
|
|
566
|
+
/* @__PURE__ */ a(q, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ a(ce, {}) })
|
|
485
567
|
]
|
|
486
568
|
}
|
|
487
|
-
),
|
|
569
|
+
), Bt = ({
|
|
488
570
|
className: e,
|
|
489
571
|
disableSave: i,
|
|
490
572
|
id: o,
|
|
491
|
-
isOpen:
|
|
573
|
+
isOpen: l,
|
|
492
574
|
onClose: t,
|
|
493
575
|
onSave: s,
|
|
494
|
-
primaryText:
|
|
495
|
-
secondaryText:
|
|
496
|
-
children:
|
|
576
|
+
primaryText: n,
|
|
577
|
+
secondaryText: c,
|
|
578
|
+
children: d,
|
|
497
579
|
...r
|
|
498
|
-
}) => /* @__PURE__ */
|
|
499
|
-
|
|
580
|
+
}) => /* @__PURE__ */ b(
|
|
581
|
+
Ie,
|
|
500
582
|
{
|
|
501
583
|
anchor: "right",
|
|
502
584
|
className: `mx-kmui-drawer ${e}`,
|
|
503
585
|
id: o ?? void 0,
|
|
504
586
|
onClose: t,
|
|
505
|
-
open:
|
|
587
|
+
open: l,
|
|
506
588
|
variant: "temporary",
|
|
507
589
|
...r,
|
|
508
590
|
children: [
|
|
509
|
-
|
|
591
|
+
d,
|
|
510
592
|
s && /* @__PURE__ */ a(
|
|
511
|
-
|
|
593
|
+
$e,
|
|
512
594
|
{
|
|
513
595
|
isPrimaryDisabled: i,
|
|
514
596
|
onPrimaryAction: s,
|
|
515
597
|
onSecondaryAction: t,
|
|
516
|
-
primaryText:
|
|
517
|
-
secondaryText:
|
|
598
|
+
primaryText: n,
|
|
599
|
+
secondaryText: c
|
|
518
600
|
}
|
|
519
601
|
)
|
|
520
602
|
]
|
|
521
603
|
}
|
|
522
|
-
),
|
|
604
|
+
), te = 32, z = "https://content.moneydesktop.com/storage/MD_Assets", Y = `${z}/serenity/default_institution_logo.png`, zt = ({
|
|
523
605
|
alt: e,
|
|
524
606
|
institutionGuid: i,
|
|
525
607
|
logoUrl: o,
|
|
526
|
-
size:
|
|
608
|
+
size: l = te,
|
|
527
609
|
...t
|
|
528
610
|
}) => /* @__PURE__ */ a(
|
|
529
611
|
"img",
|
|
530
612
|
{
|
|
531
613
|
alt: e,
|
|
532
|
-
height:
|
|
614
|
+
height: l,
|
|
533
615
|
onError: (s) => {
|
|
534
|
-
const
|
|
535
|
-
|
|
616
|
+
const n = s.target;
|
|
617
|
+
n.src !== Y && (n.src = Y);
|
|
536
618
|
},
|
|
537
|
-
src: o || `${
|
|
619
|
+
src: o || `${z}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
538
620
|
style: {
|
|
539
621
|
borderRadius: 4
|
|
540
622
|
},
|
|
541
|
-
width:
|
|
623
|
+
width: l,
|
|
542
624
|
...t
|
|
543
625
|
}
|
|
544
|
-
),
|
|
626
|
+
), $t = ({
|
|
545
627
|
alt: e = "",
|
|
546
628
|
categoryGuid: i,
|
|
547
629
|
merchantGuid: o,
|
|
548
|
-
size:
|
|
630
|
+
size: l = te,
|
|
549
631
|
...t
|
|
550
632
|
}) => {
|
|
551
|
-
const [s,
|
|
552
|
-
return /* @__PURE__ */
|
|
633
|
+
const [s, n] = H.useState(!1), c = E();
|
|
634
|
+
return /* @__PURE__ */ b(Z, { display: "inline-block", position: "relative", ...t, children: [
|
|
553
635
|
o && !s && /* @__PURE__ */ a(
|
|
554
636
|
"img",
|
|
555
637
|
{
|
|
556
638
|
alt: e,
|
|
557
639
|
"aria-hidden": !e,
|
|
558
|
-
height:
|
|
559
|
-
onError: () =>
|
|
560
|
-
src: `${
|
|
640
|
+
height: l,
|
|
641
|
+
onError: () => n(!0),
|
|
642
|
+
src: `${z}/merchant_logos/${o}.png`,
|
|
561
643
|
style: {
|
|
562
|
-
backgroundColor:
|
|
644
|
+
backgroundColor: c.palette.common.white,
|
|
563
645
|
borderRadius: 4,
|
|
564
646
|
boxSizing: "border-box",
|
|
565
647
|
position: "absolute"
|
|
566
648
|
},
|
|
567
|
-
width:
|
|
649
|
+
width: l
|
|
568
650
|
}
|
|
569
651
|
),
|
|
570
|
-
/* @__PURE__ */ a(
|
|
652
|
+
/* @__PURE__ */ a(Pe, { categoryGuid: i, size: l })
|
|
571
653
|
] });
|
|
572
|
-
},
|
|
654
|
+
}, Ut = ({
|
|
573
655
|
disabled: e = !1,
|
|
574
656
|
label: i = "",
|
|
575
657
|
shrink: o = !0,
|
|
576
|
-
variant:
|
|
658
|
+
variant: l = "outlined",
|
|
577
659
|
...t
|
|
578
660
|
}) => /* @__PURE__ */ a(
|
|
579
|
-
|
|
661
|
+
Q,
|
|
580
662
|
{
|
|
581
663
|
InputLabelProps: {
|
|
582
664
|
shrink: o
|
|
583
665
|
},
|
|
584
666
|
disabled: e,
|
|
585
667
|
label: i,
|
|
586
|
-
variant:
|
|
668
|
+
variant: l,
|
|
587
669
|
...t
|
|
588
670
|
}
|
|
589
671
|
);
|
|
590
|
-
function
|
|
591
|
-
return /* @__PURE__ */ a(
|
|
672
|
+
function Ve(e) {
|
|
673
|
+
return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
592
674
|
}
|
|
593
|
-
const
|
|
675
|
+
const Vt = ({
|
|
594
676
|
open: e,
|
|
595
677
|
handleClose: i,
|
|
596
678
|
message: o,
|
|
597
|
-
autoHideDuration:
|
|
679
|
+
autoHideDuration: l = 3e3,
|
|
598
680
|
severity: t = "success",
|
|
599
681
|
snackbarSx: s,
|
|
600
|
-
showAction:
|
|
601
|
-
showClose:
|
|
602
|
-
actionText:
|
|
682
|
+
showAction: n = !1,
|
|
683
|
+
showClose: c = !1,
|
|
684
|
+
actionText: d = "Undo",
|
|
603
685
|
onActionClick: r,
|
|
604
686
|
multiLine: u = !1
|
|
605
687
|
}) => {
|
|
606
|
-
const
|
|
607
|
-
|
|
688
|
+
const T = E(), v = /* @__PURE__ */ b(
|
|
689
|
+
A,
|
|
608
690
|
{
|
|
609
691
|
alignItems: u ? "flex-end" : "center",
|
|
610
692
|
direction: u ? "column-reverse" : "row",
|
|
611
693
|
justifyContent: (
|
|
612
694
|
// eslint-disable-next-line no-nested-ternary
|
|
613
|
-
u &&
|
|
695
|
+
u && n && c ? "space-between" : "flex-end"
|
|
614
696
|
),
|
|
615
697
|
children: [
|
|
616
|
-
|
|
698
|
+
n && /* @__PURE__ */ a(
|
|
617
699
|
B,
|
|
618
700
|
{
|
|
619
701
|
color: "inherit",
|
|
620
702
|
onClick: r || i,
|
|
621
703
|
size: "small",
|
|
622
704
|
sx: {
|
|
623
|
-
color:
|
|
705
|
+
color: T.palette.success.contrastText,
|
|
624
706
|
height: 44
|
|
625
707
|
},
|
|
626
|
-
children:
|
|
708
|
+
children: d
|
|
627
709
|
}
|
|
628
710
|
),
|
|
629
|
-
|
|
630
|
-
|
|
711
|
+
c && /* @__PURE__ */ a(
|
|
712
|
+
q,
|
|
631
713
|
{
|
|
632
714
|
"aria-label": "close",
|
|
633
715
|
color: "inherit",
|
|
@@ -640,11 +722,11 @@ const Nt = ({
|
|
|
640
722
|
}
|
|
641
723
|
);
|
|
642
724
|
return /* @__PURE__ */ a(
|
|
643
|
-
|
|
725
|
+
Ee,
|
|
644
726
|
{
|
|
645
|
-
TransitionComponent:
|
|
727
|
+
TransitionComponent: Ve,
|
|
646
728
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
647
|
-
autoHideDuration:
|
|
729
|
+
autoHideDuration: l,
|
|
648
730
|
onClose: i,
|
|
649
731
|
open: e,
|
|
650
732
|
sx: {
|
|
@@ -652,14 +734,14 @@ const Nt = ({
|
|
|
652
734
|
width: u ? 400 : 325
|
|
653
735
|
},
|
|
654
736
|
children: /* @__PURE__ */ a(
|
|
655
|
-
|
|
737
|
+
Oe,
|
|
656
738
|
{
|
|
657
739
|
action: v,
|
|
658
740
|
severity: t,
|
|
659
741
|
sx: {
|
|
660
742
|
display: "flex",
|
|
661
743
|
alignItems: "stretch",
|
|
662
|
-
minHeight:
|
|
744
|
+
minHeight: c && n && u ? 120 : 56,
|
|
663
745
|
maxHeight: u ? 120 : 56,
|
|
664
746
|
width: "100%",
|
|
665
747
|
"& .MuiAlert-icon": {
|
|
@@ -680,7 +762,7 @@ const Nt = ({
|
|
|
680
762
|
F,
|
|
681
763
|
{
|
|
682
764
|
sx: {
|
|
683
|
-
lineHeight:
|
|
765
|
+
lineHeight: T.typography.body1.lineHeight,
|
|
684
766
|
whiteSpace: u ? "normal" : "nowrap",
|
|
685
767
|
overflow: u ? "visible" : "hidden",
|
|
686
768
|
textOverflow: u ? "clip" : "ellipsis"
|
|
@@ -693,30 +775,30 @@ const Nt = ({
|
|
|
693
775
|
)
|
|
694
776
|
}
|
|
695
777
|
);
|
|
696
|
-
},
|
|
697
|
-
component: e =
|
|
778
|
+
}, Gt = ({
|
|
779
|
+
component: e = P,
|
|
698
780
|
variant: i = "outlined",
|
|
699
781
|
selected: o,
|
|
700
|
-
onChange:
|
|
782
|
+
onChange: l,
|
|
701
783
|
headline: t,
|
|
702
784
|
message: s,
|
|
703
|
-
name:
|
|
704
|
-
value:
|
|
705
|
-
disabled:
|
|
785
|
+
name: n,
|
|
786
|
+
value: c,
|
|
787
|
+
disabled: d = !1,
|
|
706
788
|
error: r = !1,
|
|
707
789
|
icon: u = !1,
|
|
708
|
-
sx:
|
|
790
|
+
sx: T = {},
|
|
709
791
|
...v
|
|
710
792
|
}) => {
|
|
711
|
-
const
|
|
793
|
+
const m = E(), oe = () => m.palette.background.paper, k = () => r ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : d ? o ? `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" ? o ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(m.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(m.palette.primary.main, 0.5)}` : m.shadows[1], re = () => d || r ? m.palette.background.paper : f(m.palette.primary.main, 0.1), ie = () => d || r ? k() : i === "outlined" ? o ? `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(), ae = () => d || r ? m.palette.background.paper : f(m.palette.primary.main, 0.3);
|
|
712
794
|
return /* @__PURE__ */ a(
|
|
713
|
-
|
|
795
|
+
Fe,
|
|
714
796
|
{
|
|
715
797
|
checked: o,
|
|
716
|
-
control: e ===
|
|
717
|
-
|
|
798
|
+
control: e === P ? /* @__PURE__ */ a(
|
|
799
|
+
P,
|
|
718
800
|
{
|
|
719
|
-
name:
|
|
801
|
+
name: n,
|
|
720
802
|
sx: {
|
|
721
803
|
p: 0,
|
|
722
804
|
ml: 16,
|
|
@@ -729,9 +811,9 @@ const Nt = ({
|
|
|
729
811
|
...v
|
|
730
812
|
}
|
|
731
813
|
) : /* @__PURE__ */ a(
|
|
732
|
-
|
|
814
|
+
ve,
|
|
733
815
|
{
|
|
734
|
-
name:
|
|
816
|
+
name: n,
|
|
735
817
|
sx: {
|
|
736
818
|
p: 0,
|
|
737
819
|
ml: 16,
|
|
@@ -744,62 +826,62 @@ const Nt = ({
|
|
|
744
826
|
...v
|
|
745
827
|
}
|
|
746
828
|
),
|
|
747
|
-
disabled:
|
|
748
|
-
label: /* @__PURE__ */
|
|
749
|
-
u && /* @__PURE__ */ a(
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
t && /* @__PURE__ */ a(
|
|
752
|
-
/* @__PURE__ */ a(
|
|
829
|
+
disabled: d,
|
|
830
|
+
label: /* @__PURE__ */ b(w, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
831
|
+
u && /* @__PURE__ */ a(w, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: u }),
|
|
832
|
+
/* @__PURE__ */ b(w, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
833
|
+
t && /* @__PURE__ */ a(W, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: t }),
|
|
834
|
+
/* @__PURE__ */ a(W, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: s })
|
|
753
835
|
] })
|
|
754
836
|
] }),
|
|
755
837
|
labelPlacement: "start",
|
|
756
|
-
onChange:
|
|
838
|
+
onChange: l,
|
|
757
839
|
sx: {
|
|
758
840
|
display: "flex",
|
|
759
841
|
padding: "6px 16px",
|
|
760
842
|
alignItems: "flex-start",
|
|
761
843
|
justifyContent: "space-between",
|
|
762
|
-
borderRadius:
|
|
844
|
+
borderRadius: m.shape.borderRadius / 2,
|
|
763
845
|
mb: 16,
|
|
764
|
-
cursor:
|
|
765
|
-
opacity:
|
|
766
|
-
backgroundColor:
|
|
846
|
+
cursor: d ? "not-allowed" : "pointer",
|
|
847
|
+
opacity: d ? 0.6 : 1,
|
|
848
|
+
backgroundColor: oe(),
|
|
767
849
|
border: "none",
|
|
768
|
-
boxShadow:
|
|
850
|
+
boxShadow: k(),
|
|
769
851
|
boxSizing: "border-box",
|
|
770
|
-
transition:
|
|
771
|
-
duration:
|
|
852
|
+
transition: m.transitions.create(["background-color", "box-shadow"], {
|
|
853
|
+
duration: m.transitions.duration.short
|
|
772
854
|
}),
|
|
773
855
|
"&:hover": {
|
|
774
|
-
backgroundColor:
|
|
775
|
-
boxShadow:
|
|
856
|
+
backgroundColor: re(),
|
|
857
|
+
boxShadow: ie()
|
|
776
858
|
},
|
|
777
859
|
"&:active": {
|
|
778
|
-
backgroundColor:
|
|
860
|
+
backgroundColor: ae()
|
|
779
861
|
},
|
|
780
862
|
"&:focus-visible": {
|
|
781
|
-
outline: `2px solid ${
|
|
863
|
+
outline: `2px solid ${m.palette.info.main}`,
|
|
782
864
|
outlineOffset: "2px"
|
|
783
865
|
},
|
|
784
|
-
...
|
|
866
|
+
...T
|
|
785
867
|
},
|
|
786
|
-
value:
|
|
868
|
+
value: c
|
|
787
869
|
}
|
|
788
870
|
);
|
|
789
|
-
},
|
|
871
|
+
}, I = {
|
|
790
872
|
LIGHT: "light"
|
|
791
873
|
}, R = (e) => ({
|
|
792
|
-
50:
|
|
793
|
-
100:
|
|
794
|
-
200:
|
|
795
|
-
300:
|
|
796
|
-
400:
|
|
874
|
+
50: O(e, 0.95),
|
|
875
|
+
100: O(e, 0.85),
|
|
876
|
+
200: O(e, 0.7),
|
|
877
|
+
300: O(e, 0.55),
|
|
878
|
+
400: O(e, 0.3),
|
|
797
879
|
500: e,
|
|
798
880
|
600: N(e, 0.3),
|
|
799
881
|
700: N(e, 0.5),
|
|
800
882
|
800: N(e, 0.65),
|
|
801
883
|
900: N(e, 0.75)
|
|
802
|
-
}), M = "#FFFFFF", _ = "#000000",
|
|
884
|
+
}), M = "#FFFFFF", _ = "#000000", Ge = "#F9F9F9", We = "#000000", Ye = "#FFFFFF", Ke = "#000000", C = {
|
|
803
885
|
PRIMARY: "#2C64EF",
|
|
804
886
|
SECONDARY: "#808080",
|
|
805
887
|
INFO: "#2C64EF",
|
|
@@ -807,7 +889,7 @@ const Nt = ({
|
|
|
807
889
|
WARNING: "#FF7B00",
|
|
808
890
|
ERROR: "#E32727",
|
|
809
891
|
GREY: "#808080"
|
|
810
|
-
},
|
|
892
|
+
}, S = {
|
|
811
893
|
CHART1: "#74E4DA",
|
|
812
894
|
CHART2: "#ED64A4",
|
|
813
895
|
CHART3: "#F3DC46",
|
|
@@ -815,7 +897,7 @@ const Nt = ({
|
|
|
815
897
|
CHART5: "#60A9FF",
|
|
816
898
|
CHART6: "#C8BAEE",
|
|
817
899
|
CHART7: "#585E67"
|
|
818
|
-
},
|
|
900
|
+
}, y = {
|
|
819
901
|
CHART_MONO1: "#C3EAFF",
|
|
820
902
|
CHART_MONO2: "#8ED7FF",
|
|
821
903
|
CHART_MONO3: "#60A9FF",
|
|
@@ -868,8 +950,8 @@ const Nt = ({
|
|
|
868
950
|
TRANSFER: "#75C7B7",
|
|
869
951
|
TRAVEL: "#76ACF7",
|
|
870
952
|
UNCATEGORIZED: "#BCC6D4"
|
|
871
|
-
},
|
|
872
|
-
const o = R(i?.primary ||
|
|
953
|
+
}, Xe = (e, i) => {
|
|
954
|
+
const o = R(i?.primary || C.PRIMARY), l = R(i?.secondary || C.SECONDARY), t = R(i?.error || C.ERROR), s = 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;
|
|
873
955
|
return {
|
|
874
956
|
mode: e,
|
|
875
957
|
common: {
|
|
@@ -883,22 +965,22 @@ const Nt = ({
|
|
|
883
965
|
dark: r ? o[700] : o[200]
|
|
884
966
|
},
|
|
885
967
|
secondary: {
|
|
886
|
-
...
|
|
887
|
-
light: r ?
|
|
888
|
-
main: r ?
|
|
889
|
-
dark: r ?
|
|
968
|
+
...l,
|
|
969
|
+
light: r ? l[300] : l[600],
|
|
970
|
+
main: r ? l[500] : l[400],
|
|
971
|
+
dark: r ? l[700] : l[200]
|
|
890
972
|
},
|
|
891
973
|
neutral: {
|
|
892
|
-
...
|
|
893
|
-
light: r ?
|
|
894
|
-
main: r ?
|
|
895
|
-
dark: r ?
|
|
896
|
-
contrastText:
|
|
974
|
+
...d,
|
|
975
|
+
light: r ? d[300] : d[600],
|
|
976
|
+
main: r ? d[500] : d[400],
|
|
977
|
+
dark: r ? d[700] : d[200],
|
|
978
|
+
contrastText: Ne(r ? d[700] : d[400], "#fff") > 4.5 ? M : d[900]
|
|
897
979
|
},
|
|
898
980
|
text: {
|
|
899
|
-
primary: r ?
|
|
900
|
-
secondary: r ?
|
|
901
|
-
disabled: r ?
|
|
981
|
+
primary: r ? d[900] : M,
|
|
982
|
+
secondary: r ? d[600] : f(M, 0.7),
|
|
983
|
+
disabled: r ? d[500] : f(M, 0.38)
|
|
902
984
|
},
|
|
903
985
|
error: {
|
|
904
986
|
...t,
|
|
@@ -913,31 +995,31 @@ const Nt = ({
|
|
|
913
995
|
dark: r ? s[700] : s[200]
|
|
914
996
|
},
|
|
915
997
|
info: {
|
|
916
|
-
...
|
|
917
|
-
light: r ?
|
|
918
|
-
main: r ?
|
|
919
|
-
dark: r ?
|
|
998
|
+
...n,
|
|
999
|
+
light: r ? n[300] : n[600],
|
|
1000
|
+
main: r ? n[500] : n[400],
|
|
1001
|
+
dark: r ? n[700] : n[200]
|
|
920
1002
|
},
|
|
921
1003
|
success: {
|
|
922
|
-
...
|
|
923
|
-
light: r ?
|
|
924
|
-
main: r ?
|
|
925
|
-
dark: r ?
|
|
1004
|
+
...c,
|
|
1005
|
+
light: r ? c[300] : c[600],
|
|
1006
|
+
main: r ? c[500] : c[400],
|
|
1007
|
+
dark: r ? c[700] : c[200]
|
|
926
1008
|
},
|
|
927
|
-
grey:
|
|
1009
|
+
grey: d,
|
|
928
1010
|
action: {
|
|
929
|
-
active: r ?
|
|
1011
|
+
active: r ? f(_, 0.56) : f(M, 0.56),
|
|
930
1012
|
hoverOpacity: r ? 0.1 : 0.2,
|
|
931
1013
|
selectedOpacity: r ? 0.16 : 0.25,
|
|
932
1014
|
focusOpacity: 0.3
|
|
933
1015
|
},
|
|
934
1016
|
background: {
|
|
935
|
-
default: r ? i?.background?.default?.light ||
|
|
936
|
-
paper: r ? i?.background?.paper?.light ||
|
|
937
|
-
highlight: r ?
|
|
1017
|
+
default: r ? i?.background?.default?.light || Ge : i?.background?.default?.dark || We,
|
|
1018
|
+
paper: r ? i?.background?.paper?.light || Ye : i?.background?.paper?.dark || Ke,
|
|
1019
|
+
highlight: r ? d[200] : d[600],
|
|
938
1020
|
highlightPrimary: r ? o[100] : o[500]
|
|
939
1021
|
},
|
|
940
|
-
divider: r ?
|
|
1022
|
+
divider: r ? f(_, 0.12) : f(M, 0.24),
|
|
941
1023
|
categories: {
|
|
942
1024
|
autoTransport: r ? p.AUTO_TRANSPORTT : h.AUTO_TRANSPORTT,
|
|
943
1025
|
billsUtilities: r ? p.BILLS_UTILITIES : h.BILLS_UTILITIES,
|
|
@@ -963,25 +1045,25 @@ const Nt = ({
|
|
|
963
1045
|
uncategorized: r ? p.UNCATEGORIZED : h.UNCATEGORIZED
|
|
964
1046
|
},
|
|
965
1047
|
chart: {
|
|
966
|
-
chart1:
|
|
967
|
-
chart2:
|
|
968
|
-
chart3:
|
|
969
|
-
chart4:
|
|
970
|
-
chart5:
|
|
971
|
-
chart6:
|
|
972
|
-
chart7:
|
|
1048
|
+
chart1: S.CHART1,
|
|
1049
|
+
chart2: S.CHART2,
|
|
1050
|
+
chart3: S.CHART3,
|
|
1051
|
+
chart4: S.CHART4,
|
|
1052
|
+
chart5: S.CHART5,
|
|
1053
|
+
chart6: S.CHART6,
|
|
1054
|
+
chart7: S.CHART7
|
|
973
1055
|
},
|
|
974
1056
|
chartMono: {
|
|
975
|
-
chartMono1:
|
|
976
|
-
chartMono2:
|
|
977
|
-
chartMono3:
|
|
978
|
-
chartMono4:
|
|
979
|
-
chartMono5:
|
|
980
|
-
chartMono6:
|
|
1057
|
+
chartMono1: y.CHART_MONO1,
|
|
1058
|
+
chartMono2: y.CHART_MONO2,
|
|
1059
|
+
chartMono3: y.CHART_MONO3,
|
|
1060
|
+
chartMono4: y.CHART_MONO4,
|
|
1061
|
+
chartMono5: y.CHART_MONO5,
|
|
1062
|
+
chartMono6: y.CHART_MONO6
|
|
981
1063
|
}
|
|
982
1064
|
};
|
|
983
|
-
},
|
|
984
|
-
const i = e?.fontFamily ? `${e?.fontFamily}, ${
|
|
1065
|
+
}, K = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
|
|
1066
|
+
const i = e?.fontFamily ? `${e?.fontFamily}, ${K}` : K;
|
|
985
1067
|
return {
|
|
986
1068
|
fontFamily: i,
|
|
987
1069
|
fontSize: 15,
|
|
@@ -1040,12 +1122,12 @@ const Nt = ({
|
|
|
1040
1122
|
...e
|
|
1041
1123
|
};
|
|
1042
1124
|
};
|
|
1043
|
-
|
|
1125
|
+
Le.setLicenseKey(
|
|
1044
1126
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1045
1127
|
);
|
|
1046
|
-
const
|
|
1047
|
-
const o =
|
|
1048
|
-
return
|
|
1128
|
+
const Wt = (e, i) => {
|
|
1129
|
+
const o = Xe(e, i?.paletteOptions), l = je(i?.typographyOptions);
|
|
1130
|
+
return ne({
|
|
1049
1131
|
breakpoints: {
|
|
1050
1132
|
values: {
|
|
1051
1133
|
xs: 444,
|
|
@@ -1062,7 +1144,7 @@ const Lt = (e, i) => {
|
|
|
1062
1144
|
},
|
|
1063
1145
|
spacing: 1,
|
|
1064
1146
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1065
|
-
typography:
|
|
1147
|
+
typography: l,
|
|
1066
1148
|
components: {
|
|
1067
1149
|
MuiAlert: {
|
|
1068
1150
|
defaultProps: {
|
|
@@ -1076,14 +1158,14 @@ const Lt = (e, i) => {
|
|
|
1076
1158
|
},
|
|
1077
1159
|
styleOverrides: {
|
|
1078
1160
|
root: ({ theme: t, ownerState: s }) => {
|
|
1079
|
-
const
|
|
1080
|
-
let
|
|
1161
|
+
const n = s.severity || "info";
|
|
1162
|
+
let c = t.palette.mode === I.LIGHT ? t.palette[n]?.[50] : t.palette[n]?.[800];
|
|
1081
1163
|
if (s.variant === "filled") {
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1164
|
+
const d = n === "warning";
|
|
1165
|
+
c = t.palette[n]?.[d ? 400 : 600];
|
|
1084
1166
|
}
|
|
1085
1167
|
return {
|
|
1086
|
-
backgroundColor:
|
|
1168
|
+
backgroundColor: c,
|
|
1087
1169
|
borderRadius: t.shape.borderRadius,
|
|
1088
1170
|
"& .MuiAlert-message": {
|
|
1089
1171
|
fontSize: t.typography.subtitle1.fontSize,
|
|
@@ -1165,7 +1247,7 @@ const Lt = (e, i) => {
|
|
|
1165
1247
|
MuiCircularProgress: {
|
|
1166
1248
|
styleOverrides: {
|
|
1167
1249
|
root: {
|
|
1168
|
-
[`& .${
|
|
1250
|
+
[`& .${He.circle}`]: {
|
|
1169
1251
|
strokeLinecap: "round"
|
|
1170
1252
|
}
|
|
1171
1253
|
}
|
|
@@ -1388,7 +1470,7 @@ const Lt = (e, i) => {
|
|
|
1388
1470
|
backgroundColor: t.palette.action.hover
|
|
1389
1471
|
},
|
|
1390
1472
|
"&:active": {
|
|
1391
|
-
backgroundColor: t.palette.mode ===
|
|
1473
|
+
backgroundColor: t.palette.mode === I.LIGHT ? t.palette[s].light : t.palette[s].dark
|
|
1392
1474
|
}
|
|
1393
1475
|
})
|
|
1394
1476
|
}
|
|
@@ -1568,9 +1650,9 @@ const Lt = (e, i) => {
|
|
|
1568
1650
|
gridColumn: "1/4",
|
|
1569
1651
|
"& > .MuiTypography-root": {
|
|
1570
1652
|
textTransform: "uppercase",
|
|
1571
|
-
fontSize:
|
|
1653
|
+
fontSize: l.body2.fontSize,
|
|
1572
1654
|
fontWeight: 600,
|
|
1573
|
-
lineHeight:
|
|
1655
|
+
lineHeight: l.body2.lineHeight
|
|
1574
1656
|
}
|
|
1575
1657
|
}
|
|
1576
1658
|
}
|
|
@@ -1711,7 +1793,7 @@ const Lt = (e, i) => {
|
|
|
1711
1793
|
outlineOffset: "2px"
|
|
1712
1794
|
},
|
|
1713
1795
|
"&:hover": {
|
|
1714
|
-
backgroundColor:
|
|
1796
|
+
backgroundColor: f(o.primary.main, o.mode === I.LIGHT ? 0.1 : 0.2),
|
|
1715
1797
|
borderColor: o.primary.main
|
|
1716
1798
|
},
|
|
1717
1799
|
"&.Mui-selected": {
|
|
@@ -1735,7 +1817,7 @@ const Lt = (e, i) => {
|
|
|
1735
1817
|
props: { color: "error" },
|
|
1736
1818
|
style: {
|
|
1737
1819
|
"&:hover": {
|
|
1738
|
-
backgroundColor:
|
|
1820
|
+
backgroundColor: f(o.error.main, o.mode === I.LIGHT ? 0.1 : 0.2),
|
|
1739
1821
|
borderColor: o.error.main
|
|
1740
1822
|
},
|
|
1741
1823
|
"&.Mui-selected": {
|
|
@@ -1757,9 +1839,9 @@ const Lt = (e, i) => {
|
|
|
1757
1839
|
props: { color: "standard" },
|
|
1758
1840
|
style: {
|
|
1759
1841
|
"&:hover": {
|
|
1760
|
-
backgroundColor:
|
|
1842
|
+
backgroundColor: f(
|
|
1761
1843
|
o.secondary.main,
|
|
1762
|
-
o.mode ===
|
|
1844
|
+
o.mode === I.LIGHT ? 0.1 : 0.2
|
|
1763
1845
|
),
|
|
1764
1846
|
borderColor: o.secondary.main
|
|
1765
1847
|
},
|
|
@@ -1800,32 +1882,32 @@ const Lt = (e, i) => {
|
|
|
1800
1882
|
};
|
|
1801
1883
|
export {
|
|
1802
1884
|
L as BaseIcon,
|
|
1803
|
-
|
|
1885
|
+
kt as BottomSheetTransition,
|
|
1804
1886
|
g as CategoryGuids,
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1887
|
+
Pe as CategoryIcon,
|
|
1888
|
+
De as CategoryIconList,
|
|
1889
|
+
ke as CategoryIconVariants,
|
|
1890
|
+
Lt as DateRangePicker,
|
|
1891
|
+
$e as DialogFooter,
|
|
1892
|
+
_t as DialogHeader,
|
|
1893
|
+
Bt as Drawer,
|
|
1894
|
+
$e as Footer,
|
|
1895
|
+
Ue as H1,
|
|
1896
|
+
Dt as H2,
|
|
1897
|
+
wt as H3,
|
|
1898
|
+
K as INTER,
|
|
1817
1899
|
x as Icon,
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1900
|
+
zt as InstitutionLogo,
|
|
1901
|
+
vt as MXLogoCopyrightIcon,
|
|
1902
|
+
Nt as MXLogoFilledIcon,
|
|
1903
|
+
Ft as MXLogoIcon,
|
|
1904
|
+
Ht as MXLogoOutlineIcon,
|
|
1905
|
+
$t as MerchantLogo,
|
|
1906
|
+
Pt as P,
|
|
1907
|
+
Gt as SelectionBox,
|
|
1826
1908
|
F as Text,
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1909
|
+
Ut as TextField,
|
|
1910
|
+
Vt as Toast,
|
|
1911
|
+
Wt as createMXTheme
|
|
1830
1912
|
};
|
|
1831
1913
|
//# sourceMappingURL=index.es.js.map
|