@hybridcore/ui 1.6.0 → 1.6.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/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
- package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
- package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
- package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
- package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
- package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
- package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
- package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-security-selectors/security-level/index.js +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/geometry-picker/index.js +13 -12
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4222 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +8 -8
- 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 +8 -10
- 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 +8 -9
- package/dist/components/template-form/index.js +32 -33
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
- package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
- package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
- package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +734 -298
- package/dist/main.js +15 -15
- package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
- package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
- package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +1 -1
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/Button-CvE2gnly.js +0 -370
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { getContrastRatio as _, lighten as J, darken as K, createTheme as Y, unstable_defaultSxConfig as Q, unstable_styleFunctionSx as X, useThemeProps as Z, shouldForwardProp as W, createStyled as ee } from "@mui/system";
|
|
1
2
|
import { a as m, _ as M } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
-
import { getContrastRatio as D, lighten as H, darken as q, createTheme as G, unstable_defaultSxConfig as L, unstable_styleFunctionSx as J } from "@mui/system";
|
|
3
3
|
function S(e) {
|
|
4
4
|
if (typeof e != "object" || e === null)
|
|
5
5
|
return !1;
|
|
@@ -10,27 +10,43 @@ function R(e) {
|
|
|
10
10
|
if (!S(e))
|
|
11
11
|
return e;
|
|
12
12
|
const t = {};
|
|
13
|
-
return Object.keys(e).forEach((
|
|
14
|
-
t[
|
|
13
|
+
return Object.keys(e).forEach((n) => {
|
|
14
|
+
t[n] = R(e[n]);
|
|
15
15
|
}), t;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function E(e, t, n = {
|
|
18
18
|
clone: !0
|
|
19
19
|
}) {
|
|
20
|
-
const
|
|
21
|
-
return S(e) && S(t) && Object.keys(t).forEach((
|
|
22
|
-
S(t[
|
|
23
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
24
|
-
}),
|
|
20
|
+
const r = n.clone ? m({}, e) : e;
|
|
21
|
+
return S(e) && S(t) && Object.keys(t).forEach((a) => {
|
|
22
|
+
S(t[a]) && // Avoid prototype pollution
|
|
23
|
+
Object.prototype.hasOwnProperty.call(e, a) && S(e[a]) ? r[a] = E(e[a], t[a], n) : n.clone ? r[a] = S(t[a]) ? R(t[a]) : t[a] : r[a] = t[a];
|
|
24
|
+
}), r;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function j(e) {
|
|
27
27
|
let t = "https://mui.com/production-error/?code=" + e;
|
|
28
|
-
for (let
|
|
29
|
-
t += "&args[]=" + encodeURIComponent(arguments[
|
|
28
|
+
for (let n = 1; n < arguments.length; n += 1)
|
|
29
|
+
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
30
30
|
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
function Ie(e, t, n = void 0) {
|
|
33
|
+
const r = {};
|
|
34
|
+
return Object.keys(e).forEach(
|
|
35
|
+
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
36
|
+
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
37
|
+
(a) => {
|
|
38
|
+
r[a] = e[a].reduce((d, i) => {
|
|
39
|
+
if (i) {
|
|
40
|
+
const l = t(i);
|
|
41
|
+
l !== "" && d.push(l), n && n[i] && d.push(n[i]);
|
|
42
|
+
}
|
|
43
|
+
return d;
|
|
44
|
+
}, []).join(" ");
|
|
45
|
+
}
|
|
46
|
+
), r;
|
|
47
|
+
}
|
|
48
|
+
const D = (e) => e, te = () => {
|
|
49
|
+
let e = D;
|
|
34
50
|
return {
|
|
35
51
|
configure(t) {
|
|
36
52
|
e = t;
|
|
@@ -39,10 +55,10 @@ const j = (e) => e, K = () => {
|
|
|
39
55
|
return e(t);
|
|
40
56
|
},
|
|
41
57
|
reset() {
|
|
42
|
-
e =
|
|
58
|
+
e = D;
|
|
43
59
|
}
|
|
44
60
|
};
|
|
45
|
-
},
|
|
61
|
+
}, re = te(), ne = {
|
|
46
62
|
active: "active",
|
|
47
63
|
checked: "checked",
|
|
48
64
|
completed: "completed",
|
|
@@ -56,11 +72,28 @@ const j = (e) => e, K = () => {
|
|
|
56
72
|
required: "required",
|
|
57
73
|
selected: "selected"
|
|
58
74
|
};
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
return
|
|
75
|
+
function B(e, t, n = "Mui") {
|
|
76
|
+
const r = ne[t];
|
|
77
|
+
return r ? `${n}-${r}` : `${re.generate(e)}-${t}`;
|
|
78
|
+
}
|
|
79
|
+
function je(e, t, n = "Mui") {
|
|
80
|
+
const r = {};
|
|
81
|
+
return t.forEach((a) => {
|
|
82
|
+
r[a] = B(e, a, n);
|
|
83
|
+
}), r;
|
|
62
84
|
}
|
|
63
|
-
function
|
|
85
|
+
function H(e) {
|
|
86
|
+
var t, n, r = "";
|
|
87
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
88
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = H(e[t])) && (r && (r += " "), r += n);
|
|
89
|
+
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
90
|
+
return r;
|
|
91
|
+
}
|
|
92
|
+
function _e() {
|
|
93
|
+
for (var e, t, n = 0, r = ""; n < arguments.length; ) (e = arguments[n++]) && (t = H(e)) && (r && (r += " "), r += t);
|
|
94
|
+
return r;
|
|
95
|
+
}
|
|
96
|
+
function oe(e, t) {
|
|
64
97
|
return m({
|
|
65
98
|
toolbar: {
|
|
66
99
|
minHeight: 56,
|
|
@@ -75,10 +108,10 @@ function Z(e, t) {
|
|
|
75
108
|
}
|
|
76
109
|
}, t);
|
|
77
110
|
}
|
|
78
|
-
const
|
|
111
|
+
const k = {
|
|
79
112
|
black: "#000",
|
|
80
113
|
white: "#fff"
|
|
81
|
-
},
|
|
114
|
+
}, ae = {
|
|
82
115
|
50: "#fafafa",
|
|
83
116
|
100: "#f5f5f5",
|
|
84
117
|
200: "#eeeeee",
|
|
@@ -123,7 +156,7 @@ const N = {
|
|
|
123
156
|
A200: "#ff5252",
|
|
124
157
|
A400: "#ff1744",
|
|
125
158
|
A700: "#d50000"
|
|
126
|
-
},
|
|
159
|
+
}, T = {
|
|
127
160
|
50: "#fff3e0",
|
|
128
161
|
100: "#ffe0b2",
|
|
129
162
|
200: "#ffcc80",
|
|
@@ -183,7 +216,7 @@ const N = {
|
|
|
183
216
|
A200: "#69f0ae",
|
|
184
217
|
A400: "#00e676",
|
|
185
218
|
A700: "#00c853"
|
|
186
|
-
},
|
|
219
|
+
}, ie = ["mode", "contrastThreshold", "tonalOffset"], U = {
|
|
187
220
|
// The colors used to style the text.
|
|
188
221
|
text: {
|
|
189
222
|
// The most important text.
|
|
@@ -198,8 +231,8 @@ const N = {
|
|
|
198
231
|
// The background colors used to style the surfaces.
|
|
199
232
|
// Consistency between these values is important.
|
|
200
233
|
background: {
|
|
201
|
-
paper:
|
|
202
|
-
default:
|
|
234
|
+
paper: k.white,
|
|
235
|
+
default: k.white
|
|
203
236
|
},
|
|
204
237
|
// The colors used to style the action elements.
|
|
205
238
|
action: {
|
|
@@ -220,9 +253,9 @@ const N = {
|
|
|
220
253
|
focusOpacity: 0.12,
|
|
221
254
|
activatedOpacity: 0.12
|
|
222
255
|
}
|
|
223
|
-
},
|
|
256
|
+
}, I = {
|
|
224
257
|
text: {
|
|
225
|
-
primary:
|
|
258
|
+
primary: k.white,
|
|
226
259
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
227
260
|
disabled: "rgba(255, 255, 255, 0.5)",
|
|
228
261
|
icon: "rgba(255, 255, 255, 0.5)"
|
|
@@ -233,7 +266,7 @@ const N = {
|
|
|
233
266
|
default: "#121212"
|
|
234
267
|
},
|
|
235
268
|
action: {
|
|
236
|
-
active:
|
|
269
|
+
active: k.white,
|
|
237
270
|
hover: "rgba(255, 255, 255, 0.08)",
|
|
238
271
|
hoverOpacity: 0.08,
|
|
239
272
|
selected: "rgba(255, 255, 255, 0.16)",
|
|
@@ -246,11 +279,11 @@ const N = {
|
|
|
246
279
|
activatedOpacity: 0.24
|
|
247
280
|
}
|
|
248
281
|
};
|
|
249
|
-
function
|
|
250
|
-
const
|
|
251
|
-
e[t] || (e.hasOwnProperty(
|
|
282
|
+
function P(e, t, n, r) {
|
|
283
|
+
const a = r.light || r, d = r.dark || r * 1.5;
|
|
284
|
+
e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = J(e.main, a) : t === "dark" && (e.dark = K(e.main, d)));
|
|
252
285
|
}
|
|
253
|
-
function
|
|
286
|
+
function se(e = "light") {
|
|
254
287
|
return e === "dark" ? {
|
|
255
288
|
main: v[200],
|
|
256
289
|
light: v[50],
|
|
@@ -261,7 +294,7 @@ function re(e = "light") {
|
|
|
261
294
|
dark: v[800]
|
|
262
295
|
};
|
|
263
296
|
}
|
|
264
|
-
function
|
|
297
|
+
function ce(e = "light") {
|
|
265
298
|
return e === "dark" ? {
|
|
266
299
|
main: $[200],
|
|
267
300
|
light: $[50],
|
|
@@ -272,7 +305,7 @@ function ne(e = "light") {
|
|
|
272
305
|
dark: $[700]
|
|
273
306
|
};
|
|
274
307
|
}
|
|
275
|
-
function
|
|
308
|
+
function fe(e = "light") {
|
|
276
309
|
return e === "dark" ? {
|
|
277
310
|
main: A[500],
|
|
278
311
|
light: A[300],
|
|
@@ -283,7 +316,7 @@ function ae(e = "light") {
|
|
|
283
316
|
dark: A[800]
|
|
284
317
|
};
|
|
285
318
|
}
|
|
286
|
-
function
|
|
319
|
+
function ue(e = "light") {
|
|
287
320
|
return e === "dark" ? {
|
|
288
321
|
main: x[400],
|
|
289
322
|
light: x[300],
|
|
@@ -294,7 +327,7 @@ function oe(e = "light") {
|
|
|
294
327
|
dark: x[900]
|
|
295
328
|
};
|
|
296
329
|
}
|
|
297
|
-
function
|
|
330
|
+
function de(e = "light") {
|
|
298
331
|
return e === "dark" ? {
|
|
299
332
|
main: w[400],
|
|
300
333
|
light: w[300],
|
|
@@ -305,46 +338,46 @@ function ie(e = "light") {
|
|
|
305
338
|
dark: w[900]
|
|
306
339
|
};
|
|
307
340
|
}
|
|
308
|
-
function
|
|
341
|
+
function le(e = "light") {
|
|
309
342
|
return e === "dark" ? {
|
|
310
|
-
main:
|
|
311
|
-
light:
|
|
312
|
-
dark:
|
|
343
|
+
main: T[400],
|
|
344
|
+
light: T[300],
|
|
345
|
+
dark: T[700]
|
|
313
346
|
} : {
|
|
314
347
|
main: "#ed6c02",
|
|
315
348
|
// closest to orange[800] that pass 3:1.
|
|
316
|
-
light:
|
|
317
|
-
dark:
|
|
349
|
+
light: T[500],
|
|
350
|
+
dark: T[900]
|
|
318
351
|
};
|
|
319
352
|
}
|
|
320
|
-
function
|
|
353
|
+
function ge(e) {
|
|
321
354
|
const {
|
|
322
355
|
mode: t = "light",
|
|
323
|
-
contrastThreshold:
|
|
324
|
-
tonalOffset:
|
|
325
|
-
} = e,
|
|
326
|
-
function
|
|
327
|
-
const
|
|
356
|
+
contrastThreshold: n = 3,
|
|
357
|
+
tonalOffset: r = 0.2
|
|
358
|
+
} = e, a = M(e, ie), d = e.primary || se(t), i = e.secondary || ce(t), l = e.error || fe(t), p = e.info || ue(t), f = e.success || de(t), g = e.warning || le(t);
|
|
359
|
+
function h(o) {
|
|
360
|
+
const u = _(o, I.text.primary) >= n ? I.text.primary : U.text.primary;
|
|
328
361
|
if (process.env.NODE_ENV !== "production") {
|
|
329
|
-
const
|
|
330
|
-
|
|
362
|
+
const b = _(o, u);
|
|
363
|
+
b < 3 && console.error([`MUI: The contrast ratio of ${b}:1 for ${u} on ${o}`, "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(`
|
|
331
364
|
`));
|
|
332
365
|
}
|
|
333
|
-
return
|
|
366
|
+
return u;
|
|
334
367
|
}
|
|
335
368
|
const c = ({
|
|
336
|
-
color:
|
|
337
|
-
name:
|
|
338
|
-
mainShade:
|
|
339
|
-
lightShade:
|
|
340
|
-
darkShade:
|
|
369
|
+
color: o,
|
|
370
|
+
name: u,
|
|
371
|
+
mainShade: b = 500,
|
|
372
|
+
lightShade: C = 300,
|
|
373
|
+
darkShade: N = 700
|
|
341
374
|
}) => {
|
|
342
|
-
if (
|
|
343
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
344
|
-
The color object needs to have a \`main\` property or a \`${
|
|
345
|
-
if (typeof
|
|
346
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${
|
|
347
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
375
|
+
if (o = m({}, o), !o.main && o[b] && (o.main = o[b]), !o.hasOwnProperty("main"))
|
|
376
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${u ? ` (${u})` : ""} provided to augmentColor(color) is invalid.
|
|
377
|
+
The color object needs to have a \`main\` property or a \`${b}\` property.` : j(11, u ? ` (${u})` : "", b));
|
|
378
|
+
if (typeof o.main != "string")
|
|
379
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${u ? ` (${u})` : ""} provided to augmentColor(color) is invalid.
|
|
380
|
+
\`color.main\` should be a string, but \`${JSON.stringify(o.main)}\` was provided instead.
|
|
348
381
|
|
|
349
382
|
Did you intend to use one of the following approaches?
|
|
350
383
|
|
|
@@ -356,26 +389,26 @@ const theme1 = createTheme({ palette: {
|
|
|
356
389
|
|
|
357
390
|
const theme2 = createTheme({ palette: {
|
|
358
391
|
primary: { main: green[500] },
|
|
359
|
-
} });` :
|
|
360
|
-
return
|
|
392
|
+
} });` : j(12, u ? ` (${u})` : "", JSON.stringify(o.main)));
|
|
393
|
+
return P(o, "light", C, r), P(o, "dark", N, r), o.contrastText || (o.contrastText = h(o.main)), o;
|
|
361
394
|
}, O = {
|
|
362
|
-
dark:
|
|
395
|
+
dark: I,
|
|
363
396
|
light: U
|
|
364
397
|
};
|
|
365
|
-
return process.env.NODE_ENV !== "production" && (O[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)),
|
|
398
|
+
return process.env.NODE_ENV !== "production" && (O[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), E(m({
|
|
366
399
|
// A collection of common colors.
|
|
367
|
-
common: m({},
|
|
400
|
+
common: m({}, k),
|
|
368
401
|
// prevent mutable object.
|
|
369
402
|
// The palette mode, can be light or dark.
|
|
370
403
|
mode: t,
|
|
371
404
|
// The colors used to represent primary interface elements for a user.
|
|
372
405
|
primary: c({
|
|
373
|
-
color:
|
|
406
|
+
color: d,
|
|
374
407
|
name: "primary"
|
|
375
408
|
}),
|
|
376
409
|
// The colors used to represent secondary interface elements for a user.
|
|
377
410
|
secondary: c({
|
|
378
|
-
color:
|
|
411
|
+
color: i,
|
|
379
412
|
name: "secondary",
|
|
380
413
|
mainShade: "A400",
|
|
381
414
|
lightShade: "A200",
|
|
@@ -383,17 +416,17 @@ const theme2 = createTheme({ palette: {
|
|
|
383
416
|
}),
|
|
384
417
|
// The colors used to represent interface elements that the user should be made aware of.
|
|
385
418
|
error: c({
|
|
386
|
-
color:
|
|
419
|
+
color: l,
|
|
387
420
|
name: "error"
|
|
388
421
|
}),
|
|
389
422
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
390
423
|
warning: c({
|
|
391
|
-
color:
|
|
424
|
+
color: g,
|
|
392
425
|
name: "warning"
|
|
393
426
|
}),
|
|
394
427
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
395
428
|
info: c({
|
|
396
|
-
color:
|
|
429
|
+
color: p,
|
|
397
430
|
name: "info"
|
|
398
431
|
}),
|
|
399
432
|
// The colors used to indicate the successful completion of an action that user triggered.
|
|
@@ -402,67 +435,67 @@ const theme2 = createTheme({ palette: {
|
|
|
402
435
|
name: "success"
|
|
403
436
|
}),
|
|
404
437
|
// The grey colors.
|
|
405
|
-
grey:
|
|
438
|
+
grey: ae,
|
|
406
439
|
// Used by `getContrastText()` to maximize the contrast between
|
|
407
440
|
// the background and the text.
|
|
408
|
-
contrastThreshold:
|
|
441
|
+
contrastThreshold: n,
|
|
409
442
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
410
|
-
getContrastText:
|
|
443
|
+
getContrastText: h,
|
|
411
444
|
// Generate a rich color object.
|
|
412
445
|
augmentColor: c,
|
|
413
446
|
// Used by the functions below to shift a color's luminance by approximately
|
|
414
447
|
// two indexes within its tonal palette.
|
|
415
448
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
416
|
-
tonalOffset:
|
|
417
|
-
}, O[t]),
|
|
449
|
+
tonalOffset: r
|
|
450
|
+
}, O[t]), a);
|
|
418
451
|
}
|
|
419
|
-
const
|
|
420
|
-
function
|
|
452
|
+
const he = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
453
|
+
function pe(e) {
|
|
421
454
|
return Math.round(e * 1e5) / 1e5;
|
|
422
455
|
}
|
|
423
|
-
const
|
|
456
|
+
const V = {
|
|
424
457
|
textTransform: "uppercase"
|
|
425
|
-
},
|
|
426
|
-
function
|
|
427
|
-
const
|
|
428
|
-
fontFamily:
|
|
458
|
+
}, z = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
459
|
+
function me(e, t) {
|
|
460
|
+
const n = typeof t == "function" ? t(e) : t, {
|
|
461
|
+
fontFamily: r = z,
|
|
429
462
|
// The default font size of the Material Specification.
|
|
430
|
-
fontSize:
|
|
463
|
+
fontSize: a = 14,
|
|
431
464
|
// px
|
|
432
|
-
fontWeightLight:
|
|
433
|
-
fontWeightRegular:
|
|
434
|
-
fontWeightMedium:
|
|
435
|
-
fontWeightBold:
|
|
465
|
+
fontWeightLight: d = 300,
|
|
466
|
+
fontWeightRegular: i = 400,
|
|
467
|
+
fontWeightMedium: l = 500,
|
|
468
|
+
fontWeightBold: p = 700,
|
|
436
469
|
// Tell MUI what's the font-size on the html element.
|
|
437
470
|
// 16px is the default font-size used by browsers.
|
|
438
471
|
htmlFontSize: f = 16,
|
|
439
472
|
// Apply the CSS properties to all the variants.
|
|
440
|
-
allVariants:
|
|
441
|
-
pxToRem:
|
|
442
|
-
} =
|
|
443
|
-
process.env.NODE_ENV !== "production" && (typeof
|
|
444
|
-
const O =
|
|
445
|
-
fontFamily:
|
|
446
|
-
fontWeight:
|
|
447
|
-
fontSize: y(
|
|
473
|
+
allVariants: g,
|
|
474
|
+
pxToRem: h
|
|
475
|
+
} = n, c = M(n, he);
|
|
476
|
+
process.env.NODE_ENV !== "production" && (typeof a != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
477
|
+
const O = a / 14, y = h || ((b) => `${b / f * O}rem`), o = (b, C, N, G, L) => m({
|
|
478
|
+
fontFamily: r,
|
|
479
|
+
fontWeight: b,
|
|
480
|
+
fontSize: y(C),
|
|
448
481
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
449
|
-
lineHeight:
|
|
450
|
-
},
|
|
451
|
-
letterSpacing: `${
|
|
452
|
-
} : {},
|
|
453
|
-
h1:
|
|
454
|
-
h2:
|
|
455
|
-
h3:
|
|
456
|
-
h4:
|
|
457
|
-
h5:
|
|
458
|
-
h6:
|
|
459
|
-
subtitle1:
|
|
460
|
-
subtitle2:
|
|
461
|
-
body1:
|
|
462
|
-
body2:
|
|
463
|
-
button:
|
|
464
|
-
caption:
|
|
465
|
-
overline:
|
|
482
|
+
lineHeight: N
|
|
483
|
+
}, r === z ? {
|
|
484
|
+
letterSpacing: `${pe(G / C)}em`
|
|
485
|
+
} : {}, L, g), u = {
|
|
486
|
+
h1: o(d, 96, 1.167, -1.5),
|
|
487
|
+
h2: o(d, 60, 1.2, -0.5),
|
|
488
|
+
h3: o(i, 48, 1.167, 0),
|
|
489
|
+
h4: o(i, 34, 1.235, 0.25),
|
|
490
|
+
h5: o(i, 24, 1.334, 0),
|
|
491
|
+
h6: o(l, 20, 1.6, 0.15),
|
|
492
|
+
subtitle1: o(i, 16, 1.75, 0.15),
|
|
493
|
+
subtitle2: o(l, 14, 1.57, 0.1),
|
|
494
|
+
body1: o(i, 16, 1.5, 0.15),
|
|
495
|
+
body2: o(i, 14, 1.43, 0.15),
|
|
496
|
+
button: o(l, 14, 1.75, 0.4, V),
|
|
497
|
+
caption: o(i, 12, 1.66, 0.4),
|
|
498
|
+
overline: o(i, 12, 2.66, 1, V),
|
|
466
499
|
inherit: {
|
|
467
500
|
fontFamily: "inherit",
|
|
468
501
|
fontWeight: "inherit",
|
|
@@ -471,25 +504,25 @@ function le(e, t) {
|
|
|
471
504
|
letterSpacing: "inherit"
|
|
472
505
|
}
|
|
473
506
|
};
|
|
474
|
-
return
|
|
507
|
+
return E(m({
|
|
475
508
|
htmlFontSize: f,
|
|
476
509
|
pxToRem: y,
|
|
477
|
-
fontFamily:
|
|
478
|
-
fontSize:
|
|
479
|
-
fontWeightLight:
|
|
480
|
-
fontWeightRegular:
|
|
481
|
-
fontWeightMedium:
|
|
482
|
-
fontWeightBold:
|
|
483
|
-
},
|
|
510
|
+
fontFamily: r,
|
|
511
|
+
fontSize: a,
|
|
512
|
+
fontWeightLight: d,
|
|
513
|
+
fontWeightRegular: i,
|
|
514
|
+
fontWeightMedium: l,
|
|
515
|
+
fontWeightBold: p
|
|
516
|
+
}, u), c, {
|
|
484
517
|
clone: !1
|
|
485
518
|
// No need to clone deep
|
|
486
519
|
});
|
|
487
520
|
}
|
|
488
|
-
const
|
|
489
|
-
function
|
|
490
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${
|
|
521
|
+
const be = 0.2, ye = 0.14, Oe = 0.12;
|
|
522
|
+
function s(...e) {
|
|
523
|
+
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${be})`, `${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,${Oe})`].join(",");
|
|
491
524
|
}
|
|
492
|
-
const
|
|
525
|
+
const $e = ["none", s(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), s(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), s(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), s(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), s(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), s(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), s(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), s(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), s(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), s(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), s(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), s(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), s(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), s(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), s(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), s(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), s(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), s(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), s(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), s(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), s(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), s(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), s(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), s(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Ae = ["duration", "easing", "delay"], ve = {
|
|
493
526
|
// This is the most common easing curve.
|
|
494
527
|
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
495
528
|
// Objects enter the screen at full velocity from off-screen and
|
|
@@ -499,7 +532,7 @@ const be = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2,
|
|
|
499
532
|
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
500
533
|
// The sharp curve is used by objects that may return to the screen at any time.
|
|
501
534
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
502
|
-
},
|
|
535
|
+
}, xe = {
|
|
503
536
|
shortest: 150,
|
|
504
537
|
shorter: 200,
|
|
505
538
|
short: 250,
|
|
@@ -512,37 +545,37 @@ const be = ["none", o(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), o(0, 3, 1, -2, 0, 2,
|
|
|
512
545
|
// recommended when something is leaving screen
|
|
513
546
|
leavingScreen: 195
|
|
514
547
|
};
|
|
515
|
-
function
|
|
548
|
+
function F(e) {
|
|
516
549
|
return `${Math.round(e)}ms`;
|
|
517
550
|
}
|
|
518
|
-
function
|
|
551
|
+
function we(e) {
|
|
519
552
|
if (!e)
|
|
520
553
|
return 0;
|
|
521
554
|
const t = e / 36;
|
|
522
555
|
return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
|
|
523
556
|
}
|
|
524
|
-
function
|
|
525
|
-
const t = m({},
|
|
557
|
+
function Se(e) {
|
|
558
|
+
const t = m({}, ve, e.easing), n = m({}, xe, e.duration);
|
|
526
559
|
return m({
|
|
527
|
-
getAutoHeightDuration:
|
|
528
|
-
create: (
|
|
560
|
+
getAutoHeightDuration: we,
|
|
561
|
+
create: (a = ["all"], d = {}) => {
|
|
529
562
|
const {
|
|
530
|
-
duration:
|
|
531
|
-
easing:
|
|
532
|
-
delay:
|
|
533
|
-
} =
|
|
563
|
+
duration: i = n.standard,
|
|
564
|
+
easing: l = t.easeInOut,
|
|
565
|
+
delay: p = 0
|
|
566
|
+
} = d, f = M(d, Ae);
|
|
534
567
|
if (process.env.NODE_ENV !== "production") {
|
|
535
|
-
const
|
|
536
|
-
!
|
|
568
|
+
const g = (c) => typeof c == "string", h = (c) => !isNaN(parseFloat(c));
|
|
569
|
+
!g(a) && !Array.isArray(a) && console.error('MUI: Argument "props" must be a string or Array.'), !h(i) && !g(i) && console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`), g(l) || console.error('MUI: Argument "easing" must be a string.'), !h(p) && !g(p) && 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(",")}].`);
|
|
537
570
|
}
|
|
538
|
-
return (Array.isArray(
|
|
571
|
+
return (Array.isArray(a) ? a : [a]).map((g) => `${g} ${typeof i == "string" ? i : F(i)} ${l} ${typeof p == "string" ? p : F(p)}`).join(",");
|
|
539
572
|
}
|
|
540
573
|
}, e, {
|
|
541
574
|
easing: t,
|
|
542
|
-
duration:
|
|
575
|
+
duration: n
|
|
543
576
|
});
|
|
544
577
|
}
|
|
545
|
-
const
|
|
578
|
+
const Ee = {
|
|
546
579
|
mobileStepper: 1e3,
|
|
547
580
|
fab: 1050,
|
|
548
581
|
speedDial: 1050,
|
|
@@ -551,37 +584,37 @@ const Ae = {
|
|
|
551
584
|
modal: 1300,
|
|
552
585
|
snackbar: 1400,
|
|
553
586
|
tooltip: 1500
|
|
554
|
-
},
|
|
555
|
-
function
|
|
587
|
+
}, Te = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
588
|
+
function ke(e = {}, ...t) {
|
|
556
589
|
const {
|
|
557
|
-
mixins:
|
|
558
|
-
palette:
|
|
559
|
-
transitions:
|
|
560
|
-
typography:
|
|
561
|
-
} = e,
|
|
590
|
+
mixins: n = {},
|
|
591
|
+
palette: r = {},
|
|
592
|
+
transitions: a = {},
|
|
593
|
+
typography: d = {}
|
|
594
|
+
} = e, i = M(e, Te);
|
|
562
595
|
if (e.vars)
|
|
563
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." :
|
|
564
|
-
const
|
|
565
|
-
let f =
|
|
566
|
-
mixins:
|
|
567
|
-
palette:
|
|
596
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : j(18));
|
|
597
|
+
const l = ge(r), p = Y(e);
|
|
598
|
+
let f = E(p, {
|
|
599
|
+
mixins: oe(p.breakpoints, n),
|
|
600
|
+
palette: l,
|
|
568
601
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
569
|
-
shadows:
|
|
570
|
-
typography:
|
|
571
|
-
transitions:
|
|
572
|
-
zIndex: m({},
|
|
602
|
+
shadows: $e.slice(),
|
|
603
|
+
typography: me(l, d),
|
|
604
|
+
transitions: Se(a),
|
|
605
|
+
zIndex: m({}, Ee)
|
|
573
606
|
});
|
|
574
|
-
if (f =
|
|
575
|
-
const
|
|
607
|
+
if (f = E(f, i), f = t.reduce((g, h) => E(g, h), f), process.env.NODE_ENV !== "production") {
|
|
608
|
+
const g = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (c, O) => {
|
|
576
609
|
let y;
|
|
577
610
|
for (y in c) {
|
|
578
|
-
const
|
|
579
|
-
if (
|
|
611
|
+
const o = c[y];
|
|
612
|
+
if (g.indexOf(y) !== -1 && Object.keys(o).length > 0) {
|
|
580
613
|
if (process.env.NODE_ENV !== "production") {
|
|
581
|
-
const
|
|
582
|
-
console.error([`MUI: The \`${O}\` 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 '&.${
|
|
614
|
+
const u = B("", y);
|
|
615
|
+
console.error([`MUI: The \`${O}\` 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 '&.${u}' syntax:`, JSON.stringify({
|
|
583
616
|
root: {
|
|
584
|
-
[`&.${
|
|
617
|
+
[`&.${u}`]: o
|
|
585
618
|
}
|
|
586
619
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
587
620
|
`));
|
|
@@ -592,21 +625,44 @@ function Se(e = {}, ...t) {
|
|
|
592
625
|
};
|
|
593
626
|
Object.keys(f.components).forEach((c) => {
|
|
594
627
|
const O = f.components[c].styleOverrides;
|
|
595
|
-
O && c.indexOf("Mui") === 0 &&
|
|
628
|
+
O && c.indexOf("Mui") === 0 && h(O, c);
|
|
596
629
|
});
|
|
597
630
|
}
|
|
598
|
-
return f.unstable_sxConfig = m({},
|
|
599
|
-
return
|
|
600
|
-
sx:
|
|
631
|
+
return f.unstable_sxConfig = m({}, Q, i == null ? void 0 : i.unstable_sxConfig), f.unstable_sx = function(h) {
|
|
632
|
+
return X({
|
|
633
|
+
sx: h,
|
|
601
634
|
theme: this
|
|
602
635
|
});
|
|
603
636
|
}, f;
|
|
604
637
|
}
|
|
638
|
+
const q = ke();
|
|
639
|
+
function De({
|
|
640
|
+
props: e,
|
|
641
|
+
name: t
|
|
642
|
+
}) {
|
|
643
|
+
return Z({
|
|
644
|
+
props: e,
|
|
645
|
+
name: t,
|
|
646
|
+
defaultTheme: q
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
const Ce = (e) => W(e) && e !== "classes", Ue = W, Pe = ee({
|
|
650
|
+
defaultTheme: q,
|
|
651
|
+
rootShouldForwardProp: Ce
|
|
652
|
+
});
|
|
605
653
|
export {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
654
|
+
re as C,
|
|
655
|
+
Ie as a,
|
|
656
|
+
B as b,
|
|
657
|
+
_e as c,
|
|
658
|
+
ke as d,
|
|
659
|
+
q as e,
|
|
660
|
+
j as f,
|
|
661
|
+
je as g,
|
|
662
|
+
E as h,
|
|
663
|
+
xe as i,
|
|
664
|
+
Ue as j,
|
|
665
|
+
Ce as r,
|
|
666
|
+
Pe as s,
|
|
667
|
+
De as u
|
|
612
668
|
};
|