@hybridcore/ui 1.4.30 → 1.4.32
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/AccordionDetails-mpRYHtGq.js +743 -0
- package/dist/{Add-eepk2WTM.js → Add-BKnWHZ7A.js} +10 -9
- package/dist/{Box-BPyg-Ybm.js → Box-SSMZuKnS.js} +8 -8
- package/dist/{Button-DLwB_sKd.js → Button-jy67CcTH.js} +8 -7
- package/dist/{ButtonBase-D0qccOVb.js → ButtonBase-CgQC8DUB.js} +13 -12
- package/dist/{CardContent-DFsCCOWk.js → CardContent-CCq4R1KS.js} +14 -13
- package/dist/{Checkbox-qy3cjvnb.js → Checkbox-B0P8LhCl.js} +10 -9
- package/dist/{Delete-OHEw9lDi.js → Delete-DfyX03ib.js} +1 -1
- package/dist/{DialogContent-CxOSq6h9.js → DialogContent-B0_-g7B0.js} +10 -9
- package/dist/{FormControlLabel-D9KFjcIx.js → FormControlLabel-BNT5EI0b.js} +10 -9
- package/dist/{IconButton-BaiyAtmS.js → IconButton-DekcZv4i.js} +16 -15
- package/dist/{Input-CmCkXczh.js → Input-BAbDr3Tk.js} +17 -16
- package/dist/{InputAdornment-CZUPEeia.js → InputAdornment-BAVRrRts.js} +8 -7
- package/dist/{InputLabel-CWkW8NtU.js → InputLabel-ClDXuWBr.js} +16 -14
- package/dist/{List-PpNAWJ_I.js → List-CNeRnfGL.js} +10 -9
- package/dist/{ListItem-CZbZ91vp.js → ListItem-N_dSd02S.js} +15 -14
- package/dist/{MenuItem-D-INSvZa.js → MenuItem-Lcjh1XlV.js} +11 -10
- package/dist/{Modal-KrI5qFIq.js → Modal-CJn-Bqyo.js} +14 -13
- package/dist/{OutlinedInput-DkIUD30e.js → OutlinedInput-De2keFJK.js} +28 -27
- package/dist/{Paper-btu3j72o.js → Paper-DRRYGupP.js} +22 -21
- package/dist/{Select-ClaBvSqf.js → Select-DwAJxKTN.js} +65 -63
- package/dist/{Source-Hf_SiWEW.js → Source-CnCcu5UP.js} +123 -123
- package/dist/{Tabs-BzelDJKy.js → Tabs-DqdkJU6b.js} +16 -14
- package/dist/{Text-D6oGbCdi.js → Text-BT5kPHOo.js} +41 -41
- package/dist/{TextField-D87qTh1k.js → TextField-BAXUnwnR.js} +14 -13
- package/dist/{Typography-Bm7PFqUT.js → Typography-CLq43OVQ.js} +21 -20
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +49 -48
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +3 -3
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +10 -9
- package/dist/components/context-menu/index.js +13 -12
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/data-security-selectors/security-level/index.js +7 -7
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +2 -2
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +19 -19
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/map/helpers/mapbox.js +3 -3
- package/dist/components/map/helpers/ol.js +3 -3
- package/dist/components/map/logic.js +2 -2
- package/dist/components/map/styled.js +2 -2
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +1 -1
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/template-filters/components/filter/index.js +44 -0
- package/dist/components/template-filters/components/tab-panel/index.js +27 -0
- package/dist/components/template-filters/index.js +39 -0
- package/dist/components/template-filters/styled.js +1 -0
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/index.js +384 -318
- package/dist/components/treeview-filter/item/index.js +56 -5
- package/dist/components/treeview-filter/item/styled.js +38 -0
- package/dist/components/treeview-filter/item-label/index.js +27 -26
- package/dist/createStyled-CUatW1r9.js +352 -0
- package/dist/{createSvgIcon-Cfm1LkEe.js → createSvgIcon-BXjHHQ0B.js} +28 -29
- package/dist/{createSvgIcon-DEXLbMwp.js → createSvgIcon-CBoAEepv.js} +9 -8
- package/dist/{styled-LNCprp4n.js → createTheme-DVoJnXAT.js} +134 -142
- package/dist/createTheme-DrgvKMA_.js +1563 -0
- package/dist/{dialog-v5-nL5yy.js → dialog-DPGR2gik.js} +7 -7
- package/dist/{exactProp-DkmnwNVS.js → exactProp-H1i70prd.js} +3 -3
- package/dist/{extendSxProp-qqdkfHzS.js → extendSxProp-BmK2hLmq.js} +4 -4
- package/dist/{has-CjQtZJa9.js → has-9_asnBxn.js} +26 -26
- package/dist/{helpers-B4UL9NMD.js → helpers-DaCoWmi2.js} +3 -3
- package/dist/{index-oPY7k6mu.js → index-B_GNCJdV.js} +7 -7
- package/dist/{index-C1fczHEW.js → index-RfDWDd66.js} +28 -27
- package/dist/{listItemTextClasses-DsHGzpPM.js → listItemTextClasses-CC7nbQWN.js} +4 -4
- package/dist/main.d.ts +14 -0
- package/dist/main.js +83 -81
- package/dist/{objectWithoutPropertiesLoose-BK36oJDi.js → objectWithoutPropertiesLoose-DJteAcBH.js} +2 -2
- package/dist/{ol-CHaVTXvL.js → ol-9hySGI6D.js} +3 -3
- package/dist/{property-list-form-B1GZ9ZGO.js → property-list-form-DgmTiBvu.js} +36 -35
- package/dist/styled-DkqItiLo.js +12 -0
- package/dist/unsupportedProp-BND8AB6O.js +25 -0
- package/dist/{useTheme-DBiahn6p.js → useTheme-B6oa3v5u.js} +4 -4
- package/dist/useTheme-GN5Dc3mG.js +18 -0
- package/dist/useThemeProps-BlXpIqSE.js +95 -0
- package/dist/{utils-DNe_YYjm.js → utils-BRsEqTye.js} +8 -8
- package/package.json +1 -1
- package/dist/AccordionDetails-CGs6GZQK.js +0 -454
- package/dist/Collapse-CL6LGGZw.js +0 -298
- package/dist/createStyled-BzvgQjjR.js +0 -1910
- package/dist/index-B0JPwFI9.js +0 -596
- package/dist/requirePropFactory-BjhhI-AW.js +0 -18
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useThemeProps-uYx_RkOH.js +0 -109
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const V = (e) => e,
|
|
1
|
+
import { a as m, _ as T } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import { k as N, a as w, b as L, d as q, e as J } from "./createTheme-DrgvKMA_.js";
|
|
3
|
+
const V = (e) => e, K = () => {
|
|
4
4
|
let e = V;
|
|
5
5
|
return {
|
|
6
6
|
configure(t) {
|
|
@@ -13,7 +13,7 @@ const V = (e) => e, Y = () => {
|
|
|
13
13
|
e = V;
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
},
|
|
16
|
+
}, X = K(), Y = {
|
|
17
17
|
active: "active",
|
|
18
18
|
checked: "checked",
|
|
19
19
|
completed: "completed",
|
|
@@ -27,42 +27,42 @@ const V = (e) => e, Y = () => {
|
|
|
27
27
|
required: "required",
|
|
28
28
|
selected: "selected"
|
|
29
29
|
};
|
|
30
|
-
function
|
|
31
|
-
const n =
|
|
32
|
-
return n ? `${r}-${n}` : `${
|
|
30
|
+
function Q(e, t, r = "Mui") {
|
|
31
|
+
const n = Y[t];
|
|
32
|
+
return n ? `${r}-${n}` : `${X.generate(e)}-${t}`;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Z(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
35
35
|
return Math.max(t, Math.min(e, r));
|
|
36
36
|
}
|
|
37
37
|
function U(e, t = 0, r = 1) {
|
|
38
|
-
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),
|
|
38
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), Z(e, t, r);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function ee(e) {
|
|
41
41
|
e = e.slice(1);
|
|
42
42
|
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
43
43
|
let r = e.match(t);
|
|
44
|
-
return r && r[0].length === 1 && (r = r.map((n) => n + n)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n,
|
|
44
|
+
return r && r[0].length === 1 && (r = r.map((n) => n + n)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, i) => i < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
45
45
|
}
|
|
46
46
|
function O(e) {
|
|
47
47
|
if (e.type)
|
|
48
48
|
return e;
|
|
49
49
|
if (e.charAt(0) === "#")
|
|
50
|
-
return O(
|
|
50
|
+
return O(ee(e));
|
|
51
51
|
const t = e.indexOf("("), r = e.substring(0, t);
|
|
52
52
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1)
|
|
53
53
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
54
54
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : N(9, e));
|
|
55
|
-
let n = e.substring(t + 1, e.length - 1),
|
|
55
|
+
let n = e.substring(t + 1, e.length - 1), i;
|
|
56
56
|
if (r === "color") {
|
|
57
|
-
if (n = n.split(" "),
|
|
58
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${
|
|
59
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : N(10,
|
|
57
|
+
if (n = n.split(" "), i = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(i) === -1)
|
|
58
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${i}\` color space.
|
|
59
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : N(10, i));
|
|
60
60
|
} else
|
|
61
61
|
n = n.split(",");
|
|
62
|
-
return n = n.map((
|
|
62
|
+
return n = n.map((u) => parseFloat(u)), {
|
|
63
63
|
type: r,
|
|
64
64
|
values: n,
|
|
65
|
-
colorSpace:
|
|
65
|
+
colorSpace: i
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function _(e) {
|
|
@@ -73,33 +73,33 @@ function _(e) {
|
|
|
73
73
|
let {
|
|
74
74
|
values: n
|
|
75
75
|
} = e;
|
|
76
|
-
return t.indexOf("rgb") !== -1 ? n = n.map((
|
|
76
|
+
return t.indexOf("rgb") !== -1 ? n = n.map((i, u) => u < 3 ? parseInt(i, 10) : i) : t.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.indexOf("color") !== -1 ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function te(e) {
|
|
79
79
|
e = O(e);
|
|
80
80
|
const {
|
|
81
81
|
values: t
|
|
82
|
-
} = e, r = t[0], n = t[1] / 100,
|
|
82
|
+
} = e, r = t[0], n = t[1] / 100, i = t[2] / 100, u = n * Math.min(i, 1 - i), s = (f, d = (f + r / 30) % 12) => i - u * Math.max(Math.min(d - 3, 9 - d, 1), -1);
|
|
83
83
|
let p = "rgb";
|
|
84
|
-
const g = [Math.round(
|
|
84
|
+
const g = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
|
|
85
85
|
return e.type === "hsla" && (p += "a", g.push(t[3])), _({
|
|
86
86
|
type: p,
|
|
87
87
|
values: g
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function R(e) {
|
|
91
91
|
e = O(e);
|
|
92
|
-
let t = e.type === "hsl" || e.type === "hsla" ? O(
|
|
92
|
+
let t = e.type === "hsl" || e.type === "hsla" ? O(te(e)).values : e.values;
|
|
93
93
|
return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
|
|
94
94
|
}
|
|
95
95
|
function j(e, t) {
|
|
96
|
-
const r =
|
|
96
|
+
const r = R(e), n = R(t);
|
|
97
97
|
return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ie(e, t) {
|
|
100
100
|
return e = O(e), t = U(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, _(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function re(e, t) {
|
|
103
103
|
if (e = O(e), t = U(t), e.type.indexOf("hsl") !== -1)
|
|
104
104
|
e.values[2] *= 1 - t;
|
|
105
105
|
else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
|
|
@@ -107,7 +107,7 @@ function ae(e, t) {
|
|
|
107
107
|
e.values[r] *= 1 - t;
|
|
108
108
|
return _(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ne(e, t) {
|
|
111
111
|
if (e = O(e), t = U(t), e.type.indexOf("hsl") !== -1)
|
|
112
112
|
e.values[2] += (100 - e.values[2]) * t;
|
|
113
113
|
else if (e.type.indexOf("rgb") !== -1)
|
|
@@ -118,7 +118,7 @@ function se(e, t) {
|
|
|
118
118
|
e.values[r] += (1 - e.values[r]) * t;
|
|
119
119
|
return _(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ae(e, t) {
|
|
122
122
|
return m({
|
|
123
123
|
toolbar: {
|
|
124
124
|
minHeight: 56,
|
|
@@ -136,7 +136,7 @@ function ie(e, t) {
|
|
|
136
136
|
const S = {
|
|
137
137
|
black: "#000",
|
|
138
138
|
white: "#fff"
|
|
139
|
-
},
|
|
139
|
+
}, ie = {
|
|
140
140
|
50: "#fafafa",
|
|
141
141
|
100: "#f5f5f5",
|
|
142
142
|
200: "#eeeeee",
|
|
@@ -181,7 +181,7 @@ const S = {
|
|
|
181
181
|
A200: "#ff5252",
|
|
182
182
|
A400: "#ff1744",
|
|
183
183
|
A700: "#d50000"
|
|
184
|
-
},
|
|
184
|
+
}, M = {
|
|
185
185
|
50: "#fff3e0",
|
|
186
186
|
100: "#ffe0b2",
|
|
187
187
|
200: "#ffcc80",
|
|
@@ -226,7 +226,7 @@ const S = {
|
|
|
226
226
|
A200: "#40c4ff",
|
|
227
227
|
A400: "#00b0ff",
|
|
228
228
|
A700: "#0091ea"
|
|
229
|
-
},
|
|
229
|
+
}, E = {
|
|
230
230
|
50: "#e8f5e9",
|
|
231
231
|
100: "#c8e6c9",
|
|
232
232
|
200: "#a5d6a7",
|
|
@@ -241,7 +241,7 @@ const S = {
|
|
|
241
241
|
A200: "#69f0ae",
|
|
242
242
|
A400: "#00e676",
|
|
243
243
|
A700: "#00c853"
|
|
244
|
-
},
|
|
244
|
+
}, se = ["mode", "contrastThreshold", "tonalOffset"], z = {
|
|
245
245
|
// The colors used to style the text.
|
|
246
246
|
text: {
|
|
247
247
|
// The most important text.
|
|
@@ -304,11 +304,11 @@ const S = {
|
|
|
304
304
|
activatedOpacity: 0.24
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
|
-
function
|
|
308
|
-
const
|
|
309
|
-
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light =
|
|
307
|
+
function F(e, t, r, n) {
|
|
308
|
+
const i = n.light || n, u = n.dark || n * 1.5;
|
|
309
|
+
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = ne(e.main, i) : t === "dark" && (e.dark = re(e.main, u)));
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function oe(e = "light") {
|
|
312
312
|
return e === "dark" ? {
|
|
313
313
|
main: A[200],
|
|
314
314
|
light: A[50],
|
|
@@ -319,7 +319,7 @@ function fe(e = "light") {
|
|
|
319
319
|
dark: A[800]
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ce(e = "light") {
|
|
323
323
|
return e === "dark" ? {
|
|
324
324
|
main: x[200],
|
|
325
325
|
light: x[50],
|
|
@@ -330,7 +330,7 @@ function de(e = "light") {
|
|
|
330
330
|
dark: x[700]
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function fe(e = "light") {
|
|
334
334
|
return e === "dark" ? {
|
|
335
335
|
main: v[500],
|
|
336
336
|
light: v[300],
|
|
@@ -341,7 +341,7 @@ function ue(e = "light") {
|
|
|
341
341
|
dark: v[800]
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ue(e = "light") {
|
|
345
345
|
return e === "dark" ? {
|
|
346
346
|
main: k[400],
|
|
347
347
|
light: k[300],
|
|
@@ -352,37 +352,37 @@ function le(e = "light") {
|
|
|
352
352
|
dark: k[900]
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function de(e = "light") {
|
|
356
356
|
return e === "dark" ? {
|
|
357
|
-
main:
|
|
358
|
-
light:
|
|
359
|
-
dark:
|
|
357
|
+
main: E[400],
|
|
358
|
+
light: E[300],
|
|
359
|
+
dark: E[700]
|
|
360
360
|
} : {
|
|
361
|
-
main:
|
|
362
|
-
light:
|
|
363
|
-
dark:
|
|
361
|
+
main: E[800],
|
|
362
|
+
light: E[500],
|
|
363
|
+
dark: E[900]
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function le(e = "light") {
|
|
367
367
|
return e === "dark" ? {
|
|
368
|
-
main:
|
|
369
|
-
light:
|
|
370
|
-
dark:
|
|
368
|
+
main: M[400],
|
|
369
|
+
light: M[300],
|
|
370
|
+
dark: M[700]
|
|
371
371
|
} : {
|
|
372
372
|
main: "#ed6c02",
|
|
373
373
|
// closest to orange[800] that pass 3:1.
|
|
374
|
-
light:
|
|
375
|
-
dark:
|
|
374
|
+
light: M[500],
|
|
375
|
+
dark: M[900]
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function pe(e) {
|
|
379
379
|
const {
|
|
380
380
|
mode: t = "light",
|
|
381
381
|
contrastThreshold: r = 3,
|
|
382
382
|
tonalOffset: n = 0.2
|
|
383
|
-
} = e,
|
|
383
|
+
} = e, i = T(e, se), u = e.primary || oe(t), s = e.secondary || ce(t), p = e.error || fe(t), g = e.info || ue(t), f = e.success || de(t), d = e.warning || le(t);
|
|
384
384
|
function h(a) {
|
|
385
|
-
const l = j(a, D.text.primary) >= r ? D.text.primary :
|
|
385
|
+
const l = j(a, D.text.primary) >= r ? D.text.primary : z.text.primary;
|
|
386
386
|
if (process.env.NODE_ENV !== "production") {
|
|
387
387
|
const b = j(a, l);
|
|
388
388
|
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${l} on ${a}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
@@ -415,12 +415,12 @@ const theme1 = createTheme({ palette: {
|
|
|
415
415
|
const theme2 = createTheme({ palette: {
|
|
416
416
|
primary: { main: green[500] },
|
|
417
417
|
} });` : N(12, l ? ` (${l})` : "", JSON.stringify(a.main)));
|
|
418
|
-
return
|
|
418
|
+
return F(a, "light", I, n), F(a, "dark", C, n), a.contrastText || (a.contrastText = h(a.main)), a;
|
|
419
419
|
}, $ = {
|
|
420
420
|
dark: D,
|
|
421
|
-
light:
|
|
421
|
+
light: z
|
|
422
422
|
};
|
|
423
|
-
return process.env.NODE_ENV !== "production" && ($[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)),
|
|
423
|
+
return process.env.NODE_ENV !== "production" && ($[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), w(m({
|
|
424
424
|
// A collection of common colors.
|
|
425
425
|
common: m({}, S),
|
|
426
426
|
// prevent mutable object.
|
|
@@ -428,12 +428,12 @@ const theme2 = createTheme({ palette: {
|
|
|
428
428
|
mode: t,
|
|
429
429
|
// The colors used to represent primary interface elements for a user.
|
|
430
430
|
primary: c({
|
|
431
|
-
color:
|
|
431
|
+
color: u,
|
|
432
432
|
name: "primary"
|
|
433
433
|
}),
|
|
434
434
|
// The colors used to represent secondary interface elements for a user.
|
|
435
435
|
secondary: c({
|
|
436
|
-
color:
|
|
436
|
+
color: s,
|
|
437
437
|
name: "secondary",
|
|
438
438
|
mainShade: "A400",
|
|
439
439
|
lightShade: "A200",
|
|
@@ -446,7 +446,7 @@ const theme2 = createTheme({ palette: {
|
|
|
446
446
|
}),
|
|
447
447
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
448
448
|
warning: c({
|
|
449
|
-
color:
|
|
449
|
+
color: d,
|
|
450
450
|
name: "warning"
|
|
451
451
|
}),
|
|
452
452
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
@@ -460,7 +460,7 @@ const theme2 = createTheme({ palette: {
|
|
|
460
460
|
name: "success"
|
|
461
461
|
}),
|
|
462
462
|
// The grey colors.
|
|
463
|
-
grey:
|
|
463
|
+
grey: ie,
|
|
464
464
|
// Used by `getContrastText()` to maximize the contrast between
|
|
465
465
|
// the background and the text.
|
|
466
466
|
contrastThreshold: r,
|
|
@@ -472,55 +472,55 @@ const theme2 = createTheme({ palette: {
|
|
|
472
472
|
// two indexes within its tonal palette.
|
|
473
473
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
474
474
|
tonalOffset: n
|
|
475
|
-
}, $[t]),
|
|
475
|
+
}, $[t]), i);
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
function
|
|
477
|
+
const ge = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
478
|
+
function he(e) {
|
|
479
479
|
return Math.round(e * 1e5) / 1e5;
|
|
480
480
|
}
|
|
481
481
|
const W = {
|
|
482
482
|
textTransform: "uppercase"
|
|
483
|
-
},
|
|
484
|
-
function
|
|
483
|
+
}, B = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
484
|
+
function be(e, t) {
|
|
485
485
|
const r = typeof t == "function" ? t(e) : t, {
|
|
486
|
-
fontFamily: n =
|
|
486
|
+
fontFamily: n = B,
|
|
487
487
|
// The default font size of the Material Specification.
|
|
488
|
-
fontSize:
|
|
488
|
+
fontSize: i = 14,
|
|
489
489
|
// px
|
|
490
|
-
fontWeightLight:
|
|
491
|
-
fontWeightRegular:
|
|
490
|
+
fontWeightLight: u = 300,
|
|
491
|
+
fontWeightRegular: s = 400,
|
|
492
492
|
fontWeightMedium: p = 500,
|
|
493
493
|
fontWeightBold: g = 700,
|
|
494
494
|
// Tell MUI what's the font-size on the html element.
|
|
495
495
|
// 16px is the default font-size used by browsers.
|
|
496
496
|
htmlFontSize: f = 16,
|
|
497
497
|
// Apply the CSS properties to all the variants.
|
|
498
|
-
allVariants:
|
|
498
|
+
allVariants: d,
|
|
499
499
|
pxToRem: h
|
|
500
|
-
} = r, c = T(r,
|
|
501
|
-
process.env.NODE_ENV !== "production" && (typeof
|
|
502
|
-
const $ =
|
|
500
|
+
} = r, c = T(r, ge);
|
|
501
|
+
process.env.NODE_ENV !== "production" && (typeof i != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
502
|
+
const $ = i / 14, y = h || ((b) => `${b / f * $}rem`), a = (b, I, C, P, H) => m({
|
|
503
503
|
fontFamily: n,
|
|
504
504
|
fontWeight: b,
|
|
505
505
|
fontSize: y(I),
|
|
506
506
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
507
507
|
lineHeight: C
|
|
508
|
-
}, n ===
|
|
509
|
-
letterSpacing: `${
|
|
510
|
-
} : {},
|
|
511
|
-
h1: a(
|
|
512
|
-
h2: a(
|
|
513
|
-
h3: a(
|
|
514
|
-
h4: a(
|
|
515
|
-
h5: a(
|
|
508
|
+
}, n === B ? {
|
|
509
|
+
letterSpacing: `${he(P / I)}em`
|
|
510
|
+
} : {}, H, d), l = {
|
|
511
|
+
h1: a(u, 96, 1.167, -1.5),
|
|
512
|
+
h2: a(u, 60, 1.2, -0.5),
|
|
513
|
+
h3: a(s, 48, 1.167, 0),
|
|
514
|
+
h4: a(s, 34, 1.235, 0.25),
|
|
515
|
+
h5: a(s, 24, 1.334, 0),
|
|
516
516
|
h6: a(p, 20, 1.6, 0.15),
|
|
517
|
-
subtitle1: a(
|
|
517
|
+
subtitle1: a(s, 16, 1.75, 0.15),
|
|
518
518
|
subtitle2: a(p, 14, 1.57, 0.1),
|
|
519
|
-
body1: a(
|
|
520
|
-
body2: a(
|
|
519
|
+
body1: a(s, 16, 1.5, 0.15),
|
|
520
|
+
body2: a(s, 14, 1.43, 0.15),
|
|
521
521
|
button: a(p, 14, 1.75, 0.4, W),
|
|
522
|
-
caption: a(
|
|
523
|
-
overline: a(
|
|
522
|
+
caption: a(s, 12, 1.66, 0.4),
|
|
523
|
+
overline: a(s, 12, 2.66, 1, W),
|
|
524
524
|
inherit: {
|
|
525
525
|
fontFamily: "inherit",
|
|
526
526
|
fontWeight: "inherit",
|
|
@@ -529,13 +529,13 @@ function ye(e, t) {
|
|
|
529
529
|
letterSpacing: "inherit"
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
|
-
return
|
|
532
|
+
return w(m({
|
|
533
533
|
htmlFontSize: f,
|
|
534
534
|
pxToRem: y,
|
|
535
535
|
fontFamily: n,
|
|
536
|
-
fontSize:
|
|
537
|
-
fontWeightLight:
|
|
538
|
-
fontWeightRegular:
|
|
536
|
+
fontSize: i,
|
|
537
|
+
fontWeightLight: u,
|
|
538
|
+
fontWeightRegular: s,
|
|
539
539
|
fontWeightMedium: p,
|
|
540
540
|
fontWeightBold: g
|
|
541
541
|
}, l), c, {
|
|
@@ -543,11 +543,11 @@ function ye(e, t) {
|
|
|
543
543
|
// No need to clone deep
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
|
-
const
|
|
546
|
+
const me = 0.2, ye = 0.14, $e = 0.12;
|
|
547
547
|
function o(...e) {
|
|
548
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
548
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${me})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ye})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$e})`].join(",");
|
|
549
549
|
}
|
|
550
|
-
const
|
|
550
|
+
const Oe = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), o(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), o(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), o(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), o(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), o(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), o(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), o(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), o(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), o(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), o(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), o(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), o(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), o(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), o(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), o(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), o(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), o(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), o(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), o(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), o(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), o(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), o(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], xe = ["duration", "easing", "delay"], ve = {
|
|
551
551
|
// This is the most common easing curve.
|
|
552
552
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
553
553
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -557,7 +557,7 @@ const ve = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2,
|
|
|
557
557
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
558
558
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
559
559
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
560
|
-
},
|
|
560
|
+
}, Ae = {
|
|
561
561
|
shortest: 150,
|
|
562
562
|
shorter: 200,
|
|
563
563
|
short: 250,
|
|
@@ -570,37 +570,37 @@ const ve = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2,
|
|
|
570
570
|
// recommended when something is leaving screen
|
|
571
571
|
leavingScreen: 195
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function G(e) {
|
|
574
574
|
return `${Math.round(e)}ms`;
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function ke(e) {
|
|
577
577
|
if (!e)
|
|
578
578
|
return 0;
|
|
579
579
|
const t = e / 36;
|
|
580
580
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
const t = m({},
|
|
582
|
+
function Ee(e) {
|
|
583
|
+
const t = m({}, ve, e.easing), r = m({}, Ae, e.duration);
|
|
584
584
|
return m({
|
|
585
|
-
getAutoHeightDuration:
|
|
586
|
-
create: (
|
|
585
|
+
getAutoHeightDuration: ke,
|
|
586
|
+
create: (i = ["all"], u = {}) => {
|
|
587
587
|
const {
|
|
588
|
-
duration:
|
|
588
|
+
duration: s = r.standard,
|
|
589
589
|
easing: p = t.easeInOut,
|
|
590
590
|
delay: g = 0
|
|
591
|
-
} =
|
|
591
|
+
} = u, f = T(u, xe);
|
|
592
592
|
if (process.env.NODE_ENV !== "production") {
|
|
593
|
-
const
|
|
594
|
-
!
|
|
593
|
+
const d = (c) => typeof c == "string", h = (c) => !isNaN(parseFloat(c));
|
|
594
|
+
!d(i) && !Array.isArray(i) && console.error('MUI: Argument "props" must be a string or Array.'), !h(s) && !d(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), d(p) || console.error('MUI: Argument "easing" must be a string.'), !h(g) && !d(g) && console.error('MUI: Argument "delay" must be a number or a string.'), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
|
|
595
595
|
}
|
|
596
|
-
return (Array.isArray(
|
|
596
|
+
return (Array.isArray(i) ? i : [i]).map((d) => `${d} ${typeof s == "string" ? s : G(s)} ${p} ${typeof g == "string" ? g : G(g)}`).join(",");
|
|
597
597
|
}
|
|
598
598
|
}, e, {
|
|
599
599
|
easing: t,
|
|
600
600
|
duration: r
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
|
-
const
|
|
603
|
+
const Me = {
|
|
604
604
|
mobileStepper: 1e3,
|
|
605
605
|
fab: 1050,
|
|
606
606
|
speedDial: 1050,
|
|
@@ -609,34 +609,34 @@ const Ne = {
|
|
|
609
609
|
modal: 1300,
|
|
610
610
|
snackbar: 1400,
|
|
611
611
|
tooltip: 1500
|
|
612
|
-
},
|
|
613
|
-
function
|
|
612
|
+
}, we = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
613
|
+
function Te(e = {}, ...t) {
|
|
614
614
|
const {
|
|
615
615
|
mixins: r = {},
|
|
616
616
|
palette: n = {},
|
|
617
|
-
transitions:
|
|
618
|
-
typography:
|
|
619
|
-
} = e,
|
|
617
|
+
transitions: i = {},
|
|
618
|
+
typography: u = {}
|
|
619
|
+
} = e, s = T(e, we);
|
|
620
620
|
if (e.vars)
|
|
621
621
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : N(18));
|
|
622
|
-
const p =
|
|
623
|
-
let f =
|
|
624
|
-
mixins:
|
|
622
|
+
const p = pe(n), g = L(e);
|
|
623
|
+
let f = w(g, {
|
|
624
|
+
mixins: ae(g.breakpoints, r),
|
|
625
625
|
palette: p,
|
|
626
626
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
627
|
-
shadows:
|
|
628
|
-
typography:
|
|
629
|
-
transitions:
|
|
630
|
-
zIndex: m({},
|
|
627
|
+
shadows: Oe.slice(),
|
|
628
|
+
typography: be(p, u),
|
|
629
|
+
transitions: Ee(i),
|
|
630
|
+
zIndex: m({}, Me)
|
|
631
631
|
});
|
|
632
|
-
if (f =
|
|
633
|
-
const
|
|
632
|
+
if (f = w(f, s), f = t.reduce((d, h) => w(d, h), f), process.env.NODE_ENV !== "production") {
|
|
633
|
+
const d = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (c, $) => {
|
|
634
634
|
let y;
|
|
635
635
|
for (y in c) {
|
|
636
636
|
const a = c[y];
|
|
637
|
-
if (
|
|
637
|
+
if (d.indexOf(y) !== -1 && Object.keys(a).length > 0) {
|
|
638
638
|
if (process.env.NODE_ENV !== "production") {
|
|
639
|
-
const l =
|
|
639
|
+
const l = Q("", y);
|
|
640
640
|
console.error([`MUI: The \`${$}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${l}' syntax:`, JSON.stringify({
|
|
641
641
|
root: {
|
|
642
642
|
[`&.${l}`]: a
|
|
@@ -653,27 +653,19 @@ function Ie(e = {}, ...t) {
|
|
|
653
653
|
$ && c.indexOf("Mui") === 0 && h($, c);
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
return f.unstable_sxConfig = m({},
|
|
657
|
-
return
|
|
656
|
+
return f.unstable_sxConfig = m({}, q, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
|
|
657
|
+
return J({
|
|
658
658
|
sx: h,
|
|
659
659
|
theme: this
|
|
660
660
|
});
|
|
661
661
|
}, f;
|
|
662
662
|
}
|
|
663
|
-
const Te = Ie(), _e = (e) => G(e) && e !== "classes", Ve = G, Fe = X({
|
|
664
|
-
defaultTheme: Te,
|
|
665
|
-
rootShouldForwardProp: _e
|
|
666
|
-
});
|
|
667
663
|
export {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
ee as g,
|
|
676
|
-
se as l,
|
|
677
|
-
_e as r,
|
|
678
|
-
Fe as s
|
|
664
|
+
X as C,
|
|
665
|
+
Ie as a,
|
|
666
|
+
re as b,
|
|
667
|
+
Te as c,
|
|
668
|
+
Ae as d,
|
|
669
|
+
Q as g,
|
|
670
|
+
ne as l
|
|
679
671
|
};
|