@mxenabled/mxui 2.14.0 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +108 -109
- package/dist/index.es.js.map +1 -1
- package/dist/themes/Palette.d.ts +0 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as n, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import H from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as
|
|
3
|
+
import S from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as O, createTheme as W } from "@mui/material/styles";
|
|
5
5
|
import { Icon as se, ExpandMore as ce, Close as de } from "@mxenabled/mx-icons";
|
|
6
|
-
import { endOfMonth as
|
|
6
|
+
import { endOfMonth as V } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as pe } from "date-fns/endOfYear";
|
|
8
8
|
import { startOfToday as ue } from "date-fns/startOfToday";
|
|
9
|
-
import { startOfMonth as
|
|
9
|
+
import { startOfMonth as G } from "date-fns/startOfMonth";
|
|
10
10
|
import { startOfYear as K } from "date-fns/startOfYear";
|
|
11
11
|
import { subDays as Y } from "date-fns/subDays";
|
|
12
12
|
import { subMonths as ge } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as he } from "date-fns/subYears";
|
|
14
|
-
import
|
|
15
|
-
import { usePickerContext as Z, useIsValidValue as Q, LocalizationProvider as
|
|
14
|
+
import fe from "@mui/material/useMediaQuery";
|
|
15
|
+
import { usePickerContext as Z, useIsValidValue as Q, LocalizationProvider as me, StaticDateRangePicker as be } from "@mui/x-date-pickers-pro";
|
|
16
16
|
import { AdapterDateFns as xe } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
|
-
import
|
|
17
|
+
import L from "@mui/material/Box";
|
|
18
18
|
import Te from "@mui/material/ToggleButton";
|
|
19
19
|
import Me from "@mui/material/ToggleButtonGroup";
|
|
20
20
|
import Re from "@mui/material/MenuItem";
|
|
@@ -27,7 +27,7 @@ import re from "@mui/material/Typography";
|
|
|
27
27
|
import Ae from "@mui/material/Drawer";
|
|
28
28
|
import Ie from "@mui/material/Snackbar";
|
|
29
29
|
import Oe from "@mui/material/Alert";
|
|
30
|
-
import { FormControlLabel as ve, Box as B, Typography as X, Radio as _, Checkbox as Ee, alpha as
|
|
30
|
+
import { FormControlLabel as ve, Box as B, Typography as X, Radio as _, Checkbox as Ee, alpha as f, darken as F, lighten as v, getContrastRatio as ke } from "@mui/material";
|
|
31
31
|
import { circularProgressClasses as Fe } from "@mui/material/CircularProgress";
|
|
32
32
|
import { LicenseInfo as Le } from "@mui/x-license";
|
|
33
33
|
const D = ({
|
|
@@ -255,22 +255,22 @@ const te = {
|
|
|
255
255
|
sx: s = {},
|
|
256
256
|
variant: l = "filled"
|
|
257
257
|
}) => {
|
|
258
|
-
const e =
|
|
259
|
-
() => He.find((
|
|
258
|
+
const e = O(), a = H.useMemo(
|
|
259
|
+
() => He.find((m) => m.guid === r) ?? te,
|
|
260
260
|
[r]
|
|
261
261
|
), c = e.palette.categories[a.colorName];
|
|
262
262
|
return /* @__PURE__ */ n(
|
|
263
|
-
|
|
263
|
+
S,
|
|
264
264
|
{
|
|
265
265
|
alignItems: "center",
|
|
266
266
|
bgcolor: () => {
|
|
267
|
-
let
|
|
268
|
-
return l === "twotone" && (
|
|
267
|
+
let m = c;
|
|
268
|
+
return l === "twotone" && (m = `${m}20`), l === "transparent" || l === "basic" ? "transparent" : m;
|
|
269
269
|
},
|
|
270
270
|
borderRadius: 1,
|
|
271
271
|
color: () => {
|
|
272
|
-
const
|
|
273
|
-
return l === "basic" ? e.palette.text.primary :
|
|
272
|
+
const m = l === "filled" ? e.palette.common.white : c;
|
|
273
|
+
return l === "basic" ? e.palette.text.primary : m;
|
|
274
274
|
},
|
|
275
275
|
height: o,
|
|
276
276
|
justifyContent: "center",
|
|
@@ -280,7 +280,7 @@ const te = {
|
|
|
280
280
|
}
|
|
281
281
|
);
|
|
282
282
|
}, Pe = ({ items: r, selected: i }) => {
|
|
283
|
-
const o =
|
|
283
|
+
const o = O(), { setValue: s } = Z(), l = Q(), e = r?.map((a) => {
|
|
284
284
|
const c = a.getValue({ isValid: l });
|
|
285
285
|
return {
|
|
286
286
|
label: a.label,
|
|
@@ -290,7 +290,7 @@ const te = {
|
|
|
290
290
|
disabled: !l(c)
|
|
291
291
|
};
|
|
292
292
|
});
|
|
293
|
-
return /* @__PURE__ */ n(
|
|
293
|
+
return /* @__PURE__ */ n(L, { sx: { gridColumn: 1, gridRow: "2/3", ml: "4px", mt: "24px", mr: "32px" }, children: /* @__PURE__ */ n(Me, { color: "primary", orientation: "vertical", value: i, children: e?.map((a) => /* @__PURE__ */ n(
|
|
294
294
|
Te,
|
|
295
295
|
{
|
|
296
296
|
onClick: a.onClick,
|
|
@@ -333,7 +333,7 @@ const te = {
|
|
|
333
333
|
disabled: !l(c)
|
|
334
334
|
};
|
|
335
335
|
});
|
|
336
|
-
return /* @__PURE__ */ n(
|
|
336
|
+
return /* @__PURE__ */ n(S, { sx: { py: "16px" }, children: /* @__PURE__ */ n(
|
|
337
337
|
J,
|
|
338
338
|
{
|
|
339
339
|
defaultValue: i,
|
|
@@ -368,7 +368,7 @@ const te = {
|
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
370
|
children: [
|
|
371
|
-
/* @__PURE__ */ b(
|
|
371
|
+
/* @__PURE__ */ b(S, { sx: { gridColumn: 1, gridRow: 1, p: "16px" }, children: [
|
|
372
372
|
s,
|
|
373
373
|
i
|
|
374
374
|
] }),
|
|
@@ -390,16 +390,16 @@ const te = {
|
|
|
390
390
|
selectedShortcut: s = r.dateRangeThisMonth,
|
|
391
391
|
sx: l = {}
|
|
392
392
|
}) => {
|
|
393
|
-
const e =
|
|
394
|
-
const t = ue(),
|
|
393
|
+
const e = O(), a = fe(e.breakpoints.down("sm")), c = H.useMemo(() => {
|
|
394
|
+
const t = ue(), m = ge(t, 1), x = he(t, 1);
|
|
395
395
|
return [
|
|
396
396
|
{
|
|
397
397
|
label: r.dateRangeThisMonth,
|
|
398
|
-
getValue: () => [
|
|
398
|
+
getValue: () => [G(t), V(t)]
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
label: r.dateRangeLastMonth,
|
|
402
|
-
getValue: () => [
|
|
402
|
+
getValue: () => [G(m), V(m)]
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
label: r.dateRangeLast30Days,
|
|
@@ -422,11 +422,11 @@ const te = {
|
|
|
422
422
|
getValue: () => [t, t]
|
|
423
423
|
}
|
|
424
424
|
];
|
|
425
|
-
}, [r]), d = (t,
|
|
426
|
-
const x =
|
|
425
|
+
}, [r]), d = (t, m) => {
|
|
426
|
+
const x = m.shortcut;
|
|
427
427
|
o?.(t, x ? x.label : r.dateRangeCustom);
|
|
428
428
|
};
|
|
429
|
-
return /* @__PURE__ */ n(
|
|
429
|
+
return /* @__PURE__ */ n(S, { gap: a ? 0 : "16px", m: a ? 0 : "8px", children: /* @__PURE__ */ n(me, { dateAdapter: xe, children: /* @__PURE__ */ n(
|
|
430
430
|
be,
|
|
431
431
|
{
|
|
432
432
|
calendars: 1,
|
|
@@ -483,7 +483,7 @@ const te = {
|
|
|
483
483
|
secondaryColor: a = "primary",
|
|
484
484
|
secondaryText: c = "Cancel"
|
|
485
485
|
}) => /* @__PURE__ */ b(
|
|
486
|
-
|
|
486
|
+
S,
|
|
487
487
|
{
|
|
488
488
|
direction: "row",
|
|
489
489
|
gap: "16px",
|
|
@@ -511,7 +511,7 @@ const te = {
|
|
|
511
511
|
)
|
|
512
512
|
]
|
|
513
513
|
}
|
|
514
|
-
),
|
|
514
|
+
), E = ({
|
|
515
515
|
bold: r,
|
|
516
516
|
className: i = "",
|
|
517
517
|
children: o,
|
|
@@ -542,14 +542,14 @@ const te = {
|
|
|
542
542
|
...c,
|
|
543
543
|
children: o
|
|
544
544
|
}
|
|
545
|
-
), $e = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(
|
|
545
|
+
), $e = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h1 ${r}`, component: "h1", variant: "h1", ...o, children: i }), Nr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h2 ${r}`, component: "h2", variant: "h2", ...o, children: i }), Hr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text h3 ${r}`, component: "h3", variant: "h3", ...o, children: i }), Dr = ({ className: r = "", children: i, ...o }) => /* @__PURE__ */ n(E, { className: `mx-mxui-text p ${r}`, component: "p", variant: "body1", ...o, children: i }), wr = ({
|
|
546
546
|
ariaHidden: r = !1,
|
|
547
547
|
copy: i,
|
|
548
548
|
id: o,
|
|
549
549
|
onClose: s,
|
|
550
550
|
truncate: l = !1
|
|
551
551
|
}) => /* @__PURE__ */ b(
|
|
552
|
-
|
|
552
|
+
S,
|
|
553
553
|
{
|
|
554
554
|
sx: {
|
|
555
555
|
alignItems: "center",
|
|
@@ -636,8 +636,8 @@ const te = {
|
|
|
636
636
|
size: s = oe,
|
|
637
637
|
...l
|
|
638
638
|
}) => {
|
|
639
|
-
const [e, a] = H.useState(!1), c =
|
|
640
|
-
return /* @__PURE__ */ b(
|
|
639
|
+
const [e, a] = H.useState(!1), c = O();
|
|
640
|
+
return /* @__PURE__ */ b(L, { display: "inline-block", position: "relative", ...l, children: [
|
|
641
641
|
o && !e && /* @__PURE__ */ n(
|
|
642
642
|
"img",
|
|
643
643
|
{
|
|
@@ -700,9 +700,9 @@ const $r = ({
|
|
|
700
700
|
showAction: c = !1,
|
|
701
701
|
showClose: d = !1,
|
|
702
702
|
actionText: t = "Undo",
|
|
703
|
-
onActionClick:
|
|
703
|
+
onActionClick: m
|
|
704
704
|
}) => {
|
|
705
|
-
const x =
|
|
705
|
+
const x = O(), k = d && /* @__PURE__ */ n(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ n(T, { fill: !0, name: "close" }) }), h = `${e}.main`;
|
|
706
706
|
return /* @__PURE__ */ n(
|
|
707
707
|
Ie,
|
|
708
708
|
{
|
|
@@ -720,7 +720,7 @@ const $r = ({
|
|
|
720
720
|
children: /* @__PURE__ */ n(
|
|
721
721
|
Oe,
|
|
722
722
|
{
|
|
723
|
-
action:
|
|
723
|
+
action: k,
|
|
724
724
|
severity: e,
|
|
725
725
|
sx: {
|
|
726
726
|
backgroundColor: h,
|
|
@@ -738,7 +738,7 @@ const $r = ({
|
|
|
738
738
|
},
|
|
739
739
|
variant: "filled",
|
|
740
740
|
children: /* @__PURE__ */ b(
|
|
741
|
-
|
|
741
|
+
S,
|
|
742
742
|
{
|
|
743
743
|
sx: {
|
|
744
744
|
flexDirection: "row",
|
|
@@ -751,7 +751,7 @@ const $r = ({
|
|
|
751
751
|
},
|
|
752
752
|
children: [
|
|
753
753
|
/* @__PURE__ */ n(
|
|
754
|
-
|
|
754
|
+
E,
|
|
755
755
|
{
|
|
756
756
|
sx: {
|
|
757
757
|
lineHeight: x.typography.body1.lineHeight,
|
|
@@ -766,7 +766,7 @@ const $r = ({
|
|
|
766
766
|
$,
|
|
767
767
|
{
|
|
768
768
|
color: "inherit",
|
|
769
|
-
onClick:
|
|
769
|
+
onClick: m || i,
|
|
770
770
|
size: "small",
|
|
771
771
|
sx: {
|
|
772
772
|
color: x.palette.success.contrastText,
|
|
@@ -796,11 +796,11 @@ const $r = ({
|
|
|
796
796
|
value: c,
|
|
797
797
|
disabled: d = !1,
|
|
798
798
|
error: t = !1,
|
|
799
|
-
icon:
|
|
799
|
+
icon: m = !1,
|
|
800
800
|
sx: x = {},
|
|
801
|
-
...
|
|
801
|
+
...k
|
|
802
802
|
}) => {
|
|
803
|
-
const h =
|
|
803
|
+
const h = O(), ie = () => h.palette.background.paper, w = () => t ? `inset 0px 0px 0px 2px ${h.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${h.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${h.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${h.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(h.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : h.shadows[1], ae = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.1), ne = () => d || t ? w() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(h.palette.primary.main, 0.5)}` : w(), le = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.3);
|
|
804
804
|
return /* @__PURE__ */ n(
|
|
805
805
|
ve,
|
|
806
806
|
{
|
|
@@ -818,7 +818,7 @@ const $r = ({
|
|
|
818
818
|
fontSize: "20px"
|
|
819
819
|
}
|
|
820
820
|
},
|
|
821
|
-
...
|
|
821
|
+
...k
|
|
822
822
|
}
|
|
823
823
|
) : /* @__PURE__ */ n(
|
|
824
824
|
Ee,
|
|
@@ -833,12 +833,12 @@ const $r = ({
|
|
|
833
833
|
fontSize: "20px"
|
|
834
834
|
}
|
|
835
835
|
},
|
|
836
|
-
...
|
|
836
|
+
...k
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
839
|
disabled: d,
|
|
840
840
|
label: /* @__PURE__ */ b(B, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
841
|
-
|
|
841
|
+
m && /* @__PURE__ */ n(B, { sx: { mr: "12px", mt: "8px", flexShrink: 0 }, children: m }),
|
|
842
842
|
/* @__PURE__ */ b(B, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
843
843
|
l && /* @__PURE__ */ n(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
844
844
|
/* @__PURE__ */ n(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: e })
|
|
@@ -878,15 +878,15 @@ const $r = ({
|
|
|
878
878
|
value: c
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
},
|
|
881
|
+
}, N = {
|
|
882
882
|
LIGHT: "light"
|
|
883
883
|
}, Wr = ({ color: r = "neutral", icon: i, label: o, size: s = "small", sx: l, ...e }) => /* @__PURE__ */ b(
|
|
884
|
-
|
|
884
|
+
L,
|
|
885
885
|
{
|
|
886
886
|
component: "span",
|
|
887
887
|
sx: [
|
|
888
888
|
(a) => {
|
|
889
|
-
const c = a.palette.mode ===
|
|
889
|
+
const c = a.palette.mode === N.LIGHT, d = r === "default" ? "neutral" : r;
|
|
890
890
|
return {
|
|
891
891
|
alignItems: "center",
|
|
892
892
|
borderRadius: 999,
|
|
@@ -904,7 +904,7 @@ const $r = ({
|
|
|
904
904
|
...e,
|
|
905
905
|
children: [
|
|
906
906
|
i && /* @__PURE__ */ n(
|
|
907
|
-
|
|
907
|
+
L,
|
|
908
908
|
{
|
|
909
909
|
"aria-hidden": !0,
|
|
910
910
|
component: "span",
|
|
@@ -928,17 +928,17 @@ const $r = ({
|
|
|
928
928
|
]
|
|
929
929
|
}
|
|
930
930
|
), M = (r) => ({
|
|
931
|
-
50:
|
|
932
|
-
100:
|
|
933
|
-
200:
|
|
934
|
-
300:
|
|
935
|
-
400:
|
|
931
|
+
50: v(r, 0.95),
|
|
932
|
+
100: v(r, 0.85),
|
|
933
|
+
200: v(r, 0.7),
|
|
934
|
+
300: v(r, 0.55),
|
|
935
|
+
400: v(r, 0.3),
|
|
936
936
|
500: r,
|
|
937
|
-
600:
|
|
938
|
-
700:
|
|
939
|
-
800:
|
|
940
|
-
900:
|
|
941
|
-
}), R = "#FFFFFF",
|
|
937
|
+
600: F(r, 0.3),
|
|
938
|
+
700: F(r, 0.5),
|
|
939
|
+
800: F(r, 0.65),
|
|
940
|
+
900: F(r, 0.75)
|
|
941
|
+
}), R = "#FFFFFF", A = "#000000", We = "#F9F9F9", Ve = "#000000", Ge = "#FFFFFF", Ke = "#000000", C = {
|
|
942
942
|
PRIMARY: "#2C64EF",
|
|
943
943
|
SECONDARY: "#808080",
|
|
944
944
|
INFO: "#2C64EF",
|
|
@@ -954,7 +954,7 @@ const $r = ({
|
|
|
954
954
|
CHART5: "#60A9FF",
|
|
955
955
|
CHART6: "#C8BAEE",
|
|
956
956
|
CHART7: "#585E67"
|
|
957
|
-
},
|
|
957
|
+
}, I = {
|
|
958
958
|
CHART_MONO1: "#C3EAFF",
|
|
959
959
|
CHART_MONO2: "#8ED7FF",
|
|
960
960
|
CHART_MONO3: "#60A9FF",
|
|
@@ -1008,12 +1008,12 @@ const $r = ({
|
|
|
1008
1008
|
TRAVEL: "#76ACF7",
|
|
1009
1009
|
UNCATEGORIZED: "#BCC6D4"
|
|
1010
1010
|
}, Ye = (r, i) => {
|
|
1011
|
-
const o = M(i?.primary || C.PRIMARY), s = M(i?.secondary || C.SECONDARY), l = M(i?.error || C.ERROR), e = M(i?.warning || C.WARNING), a = M(i?.info || C.INFO), c = M(i?.success || C.SUCCESS), d = M(i?.grey || C.GREY), t = r ===
|
|
1011
|
+
const o = M(i?.primary || C.PRIMARY), s = M(i?.secondary || C.SECONDARY), l = M(i?.error || C.ERROR), e = M(i?.warning || C.WARNING), a = M(i?.info || C.INFO), c = M(i?.success || C.SUCCESS), d = M(i?.grey || C.GREY), t = r === N.LIGHT;
|
|
1012
1012
|
return {
|
|
1013
1013
|
mode: r,
|
|
1014
1014
|
common: {
|
|
1015
1015
|
white: R,
|
|
1016
|
-
black:
|
|
1016
|
+
black: A
|
|
1017
1017
|
},
|
|
1018
1018
|
primary: {
|
|
1019
1019
|
...o,
|
|
@@ -1041,9 +1041,9 @@ const $r = ({
|
|
|
1041
1041
|
contrastText: ke(t ? d[700] : d[400], "#fff") > 4.5 ? R : d[900]
|
|
1042
1042
|
},
|
|
1043
1043
|
text: {
|
|
1044
|
-
primary: t ?
|
|
1045
|
-
secondary: t ?
|
|
1046
|
-
disabled: t ?
|
|
1044
|
+
primary: t ? f(A, 0.87) : R,
|
|
1045
|
+
secondary: t ? f(A, 0.6) : f(R, 0.7),
|
|
1046
|
+
disabled: t ? f(A, 0.38) : f(R, 0.38)
|
|
1047
1047
|
},
|
|
1048
1048
|
error: {
|
|
1049
1049
|
...l,
|
|
@@ -1079,18 +1079,15 @@ const $r = ({
|
|
|
1079
1079
|
},
|
|
1080
1080
|
grey: d,
|
|
1081
1081
|
action: {
|
|
1082
|
-
active: t ?
|
|
1083
|
-
hoverOpacity: t ? 0.1 : 0.2,
|
|
1084
|
-
selectedOpacity: t ? 0.16 : 0.25,
|
|
1085
|
-
focusOpacity: 0.3
|
|
1082
|
+
active: t ? f(A, 0.56) : f(R, 0.56)
|
|
1086
1083
|
},
|
|
1087
1084
|
background: {
|
|
1088
|
-
default: t ? i?.background?.default?.light || We : i?.background?.default?.dark ||
|
|
1089
|
-
paper: t ? i?.background?.paper?.light ||
|
|
1085
|
+
default: t ? i?.background?.default?.light || We : i?.background?.default?.dark || Ve,
|
|
1086
|
+
paper: t ? i?.background?.paper?.light || Ge : i?.background?.paper?.dark || Ke,
|
|
1090
1087
|
highlight: t ? d[200] : d[600],
|
|
1091
1088
|
highlightPrimary: t ? o[100] : o[500]
|
|
1092
1089
|
},
|
|
1093
|
-
divider: t ?
|
|
1090
|
+
divider: t ? f(A, 0.12) : f(R, 0.24),
|
|
1094
1091
|
categories: {
|
|
1095
1092
|
autoTransport: t ? p.AUTO_TRANSPORTT : u.AUTO_TRANSPORTT,
|
|
1096
1093
|
billsUtilities: t ? p.BILLS_UTILITIES : u.BILLS_UTILITIES,
|
|
@@ -1125,12 +1122,12 @@ const $r = ({
|
|
|
1125
1122
|
chart7: y.CHART7
|
|
1126
1123
|
},
|
|
1127
1124
|
chartMono: {
|
|
1128
|
-
chartMono1:
|
|
1129
|
-
chartMono2:
|
|
1130
|
-
chartMono3:
|
|
1131
|
-
chartMono4:
|
|
1132
|
-
chartMono5:
|
|
1133
|
-
chartMono6:
|
|
1125
|
+
chartMono1: I.CHART_MONO1,
|
|
1126
|
+
chartMono2: I.CHART_MONO2,
|
|
1127
|
+
chartMono3: I.CHART_MONO3,
|
|
1128
|
+
chartMono4: I.CHART_MONO4,
|
|
1129
|
+
chartMono5: I.CHART_MONO5,
|
|
1130
|
+
chartMono6: I.CHART_MONO6
|
|
1134
1131
|
}
|
|
1135
1132
|
};
|
|
1136
1133
|
}, z = "Inter, Helvetica, Arial, sans-serif", Xe = (r) => {
|
|
@@ -1195,7 +1192,7 @@ const $r = ({
|
|
|
1195
1192
|
Le.setLicenseKey(
|
|
1196
1193
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1197
1194
|
);
|
|
1198
|
-
const
|
|
1195
|
+
const Vr = (r, i) => {
|
|
1199
1196
|
const o = Ye(r, i?.paletteOptions), s = Xe(i?.typographyOptions), l = [...W().shadows];
|
|
1200
1197
|
return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", W({
|
|
1201
1198
|
breakpoints: i?.breakpoints || {
|
|
@@ -1213,7 +1210,8 @@ const Gr = (r, i) => {
|
|
|
1213
1210
|
},
|
|
1214
1211
|
palette: o,
|
|
1215
1212
|
shape: {
|
|
1216
|
-
|
|
1213
|
+
// Always a number, because Card and ListItemButton multiply it
|
|
1214
|
+
borderRadius: Number(i?.shapeOptions?.borderRadius) || 4
|
|
1217
1215
|
},
|
|
1218
1216
|
shadows: l,
|
|
1219
1217
|
...i?.useMUIStandardSpacing ? {} : { spacing: 1 },
|
|
@@ -1233,7 +1231,7 @@ const Gr = (r, i) => {
|
|
|
1233
1231
|
styleOverrides: {
|
|
1234
1232
|
root: ({ theme: e, ownerState: a }) => {
|
|
1235
1233
|
const c = a.severity || "info";
|
|
1236
|
-
let d = e.palette.mode ===
|
|
1234
|
+
let d = e.palette.mode === N.LIGHT ? e.palette[c]?.[50] : e.palette[c]?.[800];
|
|
1237
1235
|
if (a.variant === "filled") {
|
|
1238
1236
|
const t = c === "warning";
|
|
1239
1237
|
d = e.palette[c]?.[t ? 400 : 600];
|
|
@@ -1309,9 +1307,9 @@ const Gr = (r, i) => {
|
|
|
1309
1307
|
},
|
|
1310
1308
|
MuiCard: {
|
|
1311
1309
|
styleOverrides: {
|
|
1312
|
-
root: {
|
|
1313
|
-
borderRadius:
|
|
1314
|
-
}
|
|
1310
|
+
root: ({ theme: e }) => ({
|
|
1311
|
+
borderRadius: e.shape.borderRadius * 2
|
|
1312
|
+
})
|
|
1315
1313
|
}
|
|
1316
1314
|
},
|
|
1317
1315
|
MuiCheckbox: {
|
|
@@ -1321,7 +1319,8 @@ const Gr = (r, i) => {
|
|
|
1321
1319
|
styleOverrides: {
|
|
1322
1320
|
root: {
|
|
1323
1321
|
"&.Mui-focusVisible": {
|
|
1324
|
-
|
|
1322
|
+
outline: `2px solid ${o.info.main}`,
|
|
1323
|
+
outlineOffset: "-2px"
|
|
1325
1324
|
}
|
|
1326
1325
|
}
|
|
1327
1326
|
}
|
|
@@ -1360,15 +1359,15 @@ const Gr = (r, i) => {
|
|
|
1360
1359
|
}
|
|
1361
1360
|
},
|
|
1362
1361
|
"&.MuiChip-clickable:hover, &.Mui-focusVisible": {
|
|
1363
|
-
backgroundColor:
|
|
1362
|
+
backgroundColor: f(
|
|
1364
1363
|
e.palette[c].main,
|
|
1365
1364
|
e.palette.action.hoverOpacity
|
|
1366
1365
|
)
|
|
1367
1366
|
},
|
|
1368
1367
|
"&.MuiChip-clickable:active": {
|
|
1369
|
-
backgroundColor:
|
|
1368
|
+
backgroundColor: f(
|
|
1370
1369
|
e.palette[c].main,
|
|
1371
|
-
e.palette.action.
|
|
1370
|
+
e.palette.action.activatedOpacity
|
|
1372
1371
|
)
|
|
1373
1372
|
}
|
|
1374
1373
|
};
|
|
@@ -1391,7 +1390,7 @@ const Gr = (r, i) => {
|
|
|
1391
1390
|
...["primary", "secondary", "error", "warning", "info", "success", "neutral"].map((e) => ({
|
|
1392
1391
|
props: { variant: "filled", color: e },
|
|
1393
1392
|
style: ({ theme: a }) => ({
|
|
1394
|
-
backgroundColor: a.palette[e][a.palette.mode ===
|
|
1393
|
+
backgroundColor: a.palette[e][a.palette.mode === N.LIGHT ? 100 : 800]
|
|
1395
1394
|
})
|
|
1396
1395
|
}))
|
|
1397
1396
|
]
|
|
@@ -1710,9 +1709,9 @@ const Gr = (r, i) => {
|
|
|
1710
1709
|
paddingBottom: 12,
|
|
1711
1710
|
"&.Mui-focusVisible": {
|
|
1712
1711
|
backgroundColor: "transparent",
|
|
1713
|
-
borderRadius:
|
|
1712
|
+
borderRadius: e.shape.borderRadius * 2,
|
|
1714
1713
|
outline: `2px solid ${e.palette.info.main}`,
|
|
1715
|
-
outlineOffset: -
|
|
1714
|
+
outlineOffset: "-2px"
|
|
1716
1715
|
}
|
|
1717
1716
|
})
|
|
1718
1717
|
}
|
|
@@ -1976,17 +1975,20 @@ const Gr = (r, i) => {
|
|
|
1976
1975
|
disableFocusRipple: !0
|
|
1977
1976
|
},
|
|
1978
1977
|
styleOverrides: {
|
|
1979
|
-
root: {
|
|
1978
|
+
root: ({ theme: e }) => ({
|
|
1980
1979
|
minHeight: "44px",
|
|
1981
1980
|
gap: "4px",
|
|
1982
1981
|
textTransform: "none",
|
|
1983
1982
|
fontWeight: 600,
|
|
1984
1983
|
"&.Mui-focusVisible": {
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1984
|
+
borderRadius: e.shape.borderRadius,
|
|
1985
|
+
outline: `2px solid ${e.palette.info.main}`,
|
|
1986
|
+
outlineOffset: "-2px",
|
|
1987
|
+
// The selected-tab underline sits in the same 2px as the bottom of the ring
|
|
1988
|
+
// and paints over it; in forced-colors mode it is the page color and erases it
|
|
1989
|
+
zIndex: 1
|
|
1988
1990
|
}
|
|
1989
|
-
},
|
|
1991
|
+
}),
|
|
1990
1992
|
iconWrapper: {
|
|
1991
1993
|
margin: "0px"
|
|
1992
1994
|
}
|
|
@@ -2033,10 +2035,7 @@ const Gr = (r, i) => {
|
|
|
2033
2035
|
outlineOffset: "2px"
|
|
2034
2036
|
},
|
|
2035
2037
|
"&:hover": {
|
|
2036
|
-
backgroundColor:
|
|
2037
|
-
e.palette.primary.main,
|
|
2038
|
-
o.mode === S.LIGHT ? 0.1 : 0.2
|
|
2039
|
-
),
|
|
2038
|
+
backgroundColor: f(e.palette.primary.main, e.palette.action.hoverOpacity),
|
|
2040
2039
|
borderColor: e.palette.primary.main
|
|
2041
2040
|
},
|
|
2042
2041
|
"&.Mui-selected": {
|
|
@@ -2065,9 +2064,9 @@ const Gr = (r, i) => {
|
|
|
2065
2064
|
},
|
|
2066
2065
|
{
|
|
2067
2066
|
props: { color: "error" },
|
|
2068
|
-
style: {
|
|
2067
|
+
style: ({ theme: e }) => ({
|
|
2069
2068
|
"&:hover": {
|
|
2070
|
-
backgroundColor:
|
|
2069
|
+
backgroundColor: f(e.palette.error.main, e.palette.action.hoverOpacity),
|
|
2071
2070
|
borderColor: o.error.main
|
|
2072
2071
|
},
|
|
2073
2072
|
"&.Mui-selected": {
|
|
@@ -2083,15 +2082,15 @@ const Gr = (r, i) => {
|
|
|
2083
2082
|
}
|
|
2084
2083
|
}
|
|
2085
2084
|
}
|
|
2086
|
-
}
|
|
2085
|
+
})
|
|
2087
2086
|
},
|
|
2088
2087
|
{
|
|
2089
2088
|
props: { color: "standard" },
|
|
2090
|
-
style: {
|
|
2089
|
+
style: ({ theme: e }) => ({
|
|
2091
2090
|
"&:hover": {
|
|
2092
|
-
backgroundColor:
|
|
2093
|
-
|
|
2094
|
-
|
|
2091
|
+
backgroundColor: f(
|
|
2092
|
+
e.palette.secondary.main,
|
|
2093
|
+
e.palette.action.hoverOpacity
|
|
2095
2094
|
),
|
|
2096
2095
|
borderColor: o.secondary.main
|
|
2097
2096
|
},
|
|
@@ -2108,7 +2107,7 @@ const Gr = (r, i) => {
|
|
|
2108
2107
|
}
|
|
2109
2108
|
}
|
|
2110
2109
|
}
|
|
2111
|
-
}
|
|
2110
|
+
})
|
|
2112
2111
|
}
|
|
2113
2112
|
]
|
|
2114
2113
|
},
|
|
@@ -2156,9 +2155,9 @@ export {
|
|
|
2156
2155
|
Dr as P,
|
|
2157
2156
|
Ur as SelectionBox,
|
|
2158
2157
|
Wr as Tag,
|
|
2159
|
-
|
|
2158
|
+
E as Text,
|
|
2160
2159
|
zr as TextField,
|
|
2161
2160
|
$r as Toast,
|
|
2162
|
-
|
|
2161
|
+
Vr as createMXTheme
|
|
2163
2162
|
};
|
|
2164
2163
|
//# sourceMappingURL=index.es.js.map
|