@hybridcore/ui 1.5.82 → 1.5.83
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 → AccordionDetails-DhriPVPP.js} +9 -9
- package/dist/{Add-Cjs72ewI.js → Add-CMz4N2zT.js} +36 -35
- package/dist/{Box-SSMZuKnS.js → Box-B1AVyJ_s.js} +17 -16
- package/dist/{Button-jy67CcTH.js → Button-eqWvpDuh.js} +12 -11
- package/dist/{ButtonBase-CgQC8DUB.js → ButtonBase-DsX-jMQJ.js} +4 -4
- package/dist/{CardContent-CCq4R1KS.js → CardContent-DsYqqPeJ.js} +4 -4
- package/dist/{Checkbox-B0P8LhCl.js → Checkbox-CrU2hpWB.js} +13 -12
- package/dist/{Delete-6rKk6pCT.js → Delete-86TO0fMo.js} +1 -1
- package/dist/{DialogContent-WDuguvBY.js → DialogContent-CqTojymQ.js} +10 -9
- package/dist/{FormControlLabel-BNT5EI0b.js → FormControlLabel-DzNokgFD.js} +8 -7
- package/dist/{IconButton-DekcZv4i.js → IconButton-DJ-31-Fd.js} +11 -10
- package/dist/{Input-BAbDr3Tk.js → Input-B7ry6o4t.js} +23 -22
- package/dist/{InputAdornment-BAVRrRts.js → InputAdornment-B7qEA4kN.js} +6 -5
- package/dist/{InputLabel-ClDXuWBr.js → InputLabel-rrSJo8M_.js} +10 -9
- package/dist/{List-CNeRnfGL.js → List-DOD5kSk3.js} +4 -4
- package/dist/{ListItem-N_dSd02S.js → ListItem-r8PbsvCz.js} +6 -6
- package/dist/{MenuItem-Lcjh1XlV.js → MenuItem-C6qlUyV3.js} +7 -7
- package/dist/{Modal-Csc9jNOg.js → Modal-CkcFEpHa.js} +8 -8
- package/dist/{OutlinedInput-De2keFJK.js → OutlinedInput-BDK6qOwW.js} +6 -6
- package/dist/{Paper-DRRYGupP.js → Paper-CjqLScHA.js} +5 -5
- package/dist/{Select-BQ4C15bt.js → Select-jjAc5JX1.js} +102 -101
- package/dist/{Tabs-DqdkJU6b.js → Tabs-Cn42Z5QI.js} +8 -8
- package/dist/{TextField-Db_pNPbv.js → TextField-Bf46COnQ.js} +24 -23
- package/dist/{Typography-CLq43OVQ.js → Typography-D1t7XuLN.js} +6 -5
- package/dist/components/card/index.js +6 -6
- 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 +7 -7
- package/dist/components/context-menu/index.js +10 -10
- package/dist/components/flex-col/index.js +10 -0
- package/dist/components/flex-row/index.js +10 -0
- package/dist/components/geometry-picker/index.js +3 -3
- 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/composite-matrix/components/editable-table/index.js +93 -0
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +87 -0
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +1 -0
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +105 -0
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +20551 -0
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +56 -0
- package/dist/components/instance-form/components/composite-matrix/index.js +52 -0
- package/dist/components/instance-form/components/composite-matrix/styled.js +69 -0
- package/dist/components/instance-form/components/variable/index.js +10 -9
- 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/styled.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- 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/tab-panel/index.js +1 -1
- 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/item-label/index.js +3 -3
- package/dist/{createStyled-CUatW1r9.js → createStyled-BGx1I94c.js} +1 -1
- package/dist/{createSvgIcon-CsckVnG-.js → createSvgIcon-DLPYMuH1.js} +25 -24
- package/dist/{createSvgIcon-CBoAEepv.js → createSvgIcon-OuwzpcaC.js} +15 -14
- package/dist/{createTheme-DVoJnXAT.js → createTheme-CNnKNxwL.js} +1 -1
- package/dist/createTheme-CyC5HawC.js +879 -0
- package/dist/{dialog-D6oTCUrm.js → dialog-BE4D6swf.js} +6 -6
- package/dist/{exactProp-H1i70prd.js → exactProp-cjT0t_Pt.js} +2 -2
- package/dist/{extendSxProp-BmK2hLmq.js → extendSxProp-FEpqY5_S.js} +1 -1
- package/dist/index-DMSHuq6l.js +688 -0
- package/dist/{index-BmlSd3mA.js → index-MMaYBAn0.js} +138 -128
- package/dist/{index-R_b1ETBe.js → index-NNOChRJ7.js} +25 -24
- package/dist/{listItemTextClasses-CC7nbQWN.js → listItemTextClasses-CNjn41Of.js} +2 -2
- package/dist/main.d.ts +15 -0
- package/dist/main.js +47 -43
- package/dist/{property-list-form-B7SCqmD0.js → property-list-form-BvnaooEW.js} +13 -13
- package/dist/{styled-DkqItiLo.js → styled-B8ugzvji.js} +2 -2
- package/dist/{useTheme-GN5Dc3mG.js → useTheme-C15Eq8KG.js} +1 -1
- package/dist/{useTheme-B6oa3v5u.js → useTheme-D-uii9iX.js} +2 -2
- package/dist/{useThemeProps-BlXpIqSE.js → useThemeProps-DRP1dikX.js} +3 -3
- package/dist/{utils-BRsEqTye.js → utils-CsOZUsQj.js} +2 -2
- package/package.json +2 -1
- package/dist/createTheme-DrgvKMA_.js +0 -1563
|
@@ -0,0 +1,879 @@
|
|
|
1
|
+
import V from "@emotion/styled";
|
|
2
|
+
import "@emotion/react";
|
|
3
|
+
import { a as C, _ as Y } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
4
|
+
import { P } from "./index-DMSHuq6l.js";
|
|
5
|
+
function T(e) {
|
|
6
|
+
if (typeof e != "object" || e === null)
|
|
7
|
+
return !1;
|
|
8
|
+
const t = Object.getPrototypeOf(e);
|
|
9
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
10
|
+
}
|
|
11
|
+
function H(e) {
|
|
12
|
+
if (!T(e))
|
|
13
|
+
return e;
|
|
14
|
+
const t = {};
|
|
15
|
+
return Object.keys(e).forEach((r) => {
|
|
16
|
+
t[r] = H(e[r]);
|
|
17
|
+
}), t;
|
|
18
|
+
}
|
|
19
|
+
function A(e, t, r = {
|
|
20
|
+
clone: !0
|
|
21
|
+
}) {
|
|
22
|
+
const n = r.clone ? C({}, e) : e;
|
|
23
|
+
return T(e) && T(t) && Object.keys(t).forEach((o) => {
|
|
24
|
+
T(t[o]) && // Avoid prototype pollution
|
|
25
|
+
Object.prototype.hasOwnProperty.call(e, o) && T(e[o]) ? n[o] = A(e[o], t[o], r) : r.clone ? n[o] = T(t[o]) ? H(t[o]) : t[o] : n[o] = t[o];
|
|
26
|
+
}), n;
|
|
27
|
+
}
|
|
28
|
+
function ee(e) {
|
|
29
|
+
let t = "https://mui.com/production-error/?code=" + e;
|
|
30
|
+
for (let r = 1; r < arguments.length; r += 1)
|
|
31
|
+
t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
32
|
+
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
|
|
33
|
+
}
|
|
34
|
+
function X(e) {
|
|
35
|
+
if (typeof e != "string")
|
|
36
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ee(7));
|
|
37
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @mui/styled-engine v5.16.6
|
|
41
|
+
*
|
|
42
|
+
* @license MIT
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/
|
|
46
|
+
function tt(e, t) {
|
|
47
|
+
const r = V(e, t);
|
|
48
|
+
return process.env.NODE_ENV !== "production" ? (...n) => {
|
|
49
|
+
const o = typeof e == "string" ? `"${e}"` : "component";
|
|
50
|
+
return n.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
51
|
+
`)) : n.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), r(...n);
|
|
52
|
+
} : r;
|
|
53
|
+
}
|
|
54
|
+
const rt = (e, t) => {
|
|
55
|
+
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
56
|
+
}, te = ["values", "unit", "step"], re = (e) => {
|
|
57
|
+
const t = Object.keys(e).map((r) => ({
|
|
58
|
+
key: r,
|
|
59
|
+
val: e[r]
|
|
60
|
+
})) || [];
|
|
61
|
+
return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => C({}, r, {
|
|
62
|
+
[n.key]: n.val
|
|
63
|
+
}), {});
|
|
64
|
+
};
|
|
65
|
+
function ne(e) {
|
|
66
|
+
const {
|
|
67
|
+
// The breakpoint **start** at this value.
|
|
68
|
+
// For instance with the first breakpoint xs: [xs, sm).
|
|
69
|
+
values: t = {
|
|
70
|
+
xs: 0,
|
|
71
|
+
// phone
|
|
72
|
+
sm: 600,
|
|
73
|
+
// tablet
|
|
74
|
+
md: 900,
|
|
75
|
+
// small laptop
|
|
76
|
+
lg: 1200,
|
|
77
|
+
// desktop
|
|
78
|
+
xl: 1536
|
|
79
|
+
// large screen
|
|
80
|
+
},
|
|
81
|
+
unit: r = "px",
|
|
82
|
+
step: n = 5
|
|
83
|
+
} = e, o = Y(e, te), s = re(t), i = Object.keys(s);
|
|
84
|
+
function u(l) {
|
|
85
|
+
return `@media (min-width:${typeof t[l] == "number" ? t[l] : l}${r})`;
|
|
86
|
+
}
|
|
87
|
+
function c(l) {
|
|
88
|
+
return `@media (max-width:${(typeof t[l] == "number" ? t[l] : l) - n / 100}${r})`;
|
|
89
|
+
}
|
|
90
|
+
function f(l, g) {
|
|
91
|
+
const p = i.indexOf(g);
|
|
92
|
+
return `@media (min-width:${typeof t[l] == "number" ? t[l] : l}${r}) and (max-width:${(p !== -1 && typeof t[i[p]] == "number" ? t[i[p]] : g) - n / 100}${r})`;
|
|
93
|
+
}
|
|
94
|
+
function v(l) {
|
|
95
|
+
return i.indexOf(l) + 1 < i.length ? f(l, i[i.indexOf(l) + 1]) : u(l);
|
|
96
|
+
}
|
|
97
|
+
function y(l) {
|
|
98
|
+
const g = i.indexOf(l);
|
|
99
|
+
return g === 0 ? u(i[1]) : g === i.length - 1 ? c(i[g]) : f(l, i[i.indexOf(l) + 1]).replace("@media", "@media not all and");
|
|
100
|
+
}
|
|
101
|
+
return C({
|
|
102
|
+
keys: i,
|
|
103
|
+
values: s,
|
|
104
|
+
up: u,
|
|
105
|
+
down: c,
|
|
106
|
+
between: f,
|
|
107
|
+
only: v,
|
|
108
|
+
not: y,
|
|
109
|
+
unit: r
|
|
110
|
+
}, o);
|
|
111
|
+
}
|
|
112
|
+
const oe = {
|
|
113
|
+
borderRadius: 4
|
|
114
|
+
}, E = process.env.NODE_ENV !== "production" ? P.oneOfType([P.number, P.string, P.object, P.array]) : {};
|
|
115
|
+
function _(e, t) {
|
|
116
|
+
return t ? A(e, t, {
|
|
117
|
+
clone: !1
|
|
118
|
+
// No need to clone deep, it's way faster.
|
|
119
|
+
}) : e;
|
|
120
|
+
}
|
|
121
|
+
const W = {
|
|
122
|
+
xs: 0,
|
|
123
|
+
// phone
|
|
124
|
+
sm: 600,
|
|
125
|
+
// tablet
|
|
126
|
+
md: 900,
|
|
127
|
+
// small laptop
|
|
128
|
+
lg: 1200,
|
|
129
|
+
// desktop
|
|
130
|
+
xl: 1536
|
|
131
|
+
// large screen
|
|
132
|
+
}, L = {
|
|
133
|
+
// Sorted ASC by size. That's important.
|
|
134
|
+
// It can't be configured as it's used statically for propTypes.
|
|
135
|
+
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
136
|
+
up: (e) => `@media (min-width:${W[e]}px)`
|
|
137
|
+
};
|
|
138
|
+
function O(e, t, r) {
|
|
139
|
+
const n = e.theme || {};
|
|
140
|
+
if (Array.isArray(t)) {
|
|
141
|
+
const s = n.breakpoints || L;
|
|
142
|
+
return t.reduce((i, u, c) => (i[s.up(s.keys[c])] = r(t[c]), i), {});
|
|
143
|
+
}
|
|
144
|
+
if (typeof t == "object") {
|
|
145
|
+
const s = n.breakpoints || L;
|
|
146
|
+
return Object.keys(t).reduce((i, u) => {
|
|
147
|
+
if (Object.keys(s.values || W).indexOf(u) !== -1) {
|
|
148
|
+
const c = s.up(u);
|
|
149
|
+
i[c] = r(t[u], u);
|
|
150
|
+
} else {
|
|
151
|
+
const c = u;
|
|
152
|
+
i[c] = t[c];
|
|
153
|
+
}
|
|
154
|
+
return i;
|
|
155
|
+
}, {});
|
|
156
|
+
}
|
|
157
|
+
return r(t);
|
|
158
|
+
}
|
|
159
|
+
function se(e = {}) {
|
|
160
|
+
var t;
|
|
161
|
+
return ((t = e.keys) == null ? void 0 : t.reduce((n, o) => {
|
|
162
|
+
const s = e.up(o);
|
|
163
|
+
return n[s] = {}, n;
|
|
164
|
+
}, {})) || {};
|
|
165
|
+
}
|
|
166
|
+
function ie(e, t) {
|
|
167
|
+
return e.reduce((r, n) => {
|
|
168
|
+
const o = r[n];
|
|
169
|
+
return (!o || Object.keys(o).length === 0) && delete r[n], r;
|
|
170
|
+
}, t);
|
|
171
|
+
}
|
|
172
|
+
function le(e, t) {
|
|
173
|
+
if (typeof e != "object")
|
|
174
|
+
return {};
|
|
175
|
+
const r = {}, n = Object.keys(t);
|
|
176
|
+
return Array.isArray(e) ? n.forEach((o, s) => {
|
|
177
|
+
s < e.length && (r[o] = !0);
|
|
178
|
+
}) : n.forEach((o) => {
|
|
179
|
+
e[o] != null && (r[o] = !0);
|
|
180
|
+
}), r;
|
|
181
|
+
}
|
|
182
|
+
function nt({
|
|
183
|
+
values: e,
|
|
184
|
+
breakpoints: t,
|
|
185
|
+
base: r
|
|
186
|
+
}) {
|
|
187
|
+
const n = r || le(e, t), o = Object.keys(n);
|
|
188
|
+
if (o.length === 0)
|
|
189
|
+
return e;
|
|
190
|
+
let s;
|
|
191
|
+
return o.reduce((i, u, c) => (Array.isArray(e) ? (i[u] = e[c] != null ? e[c] : e[s], s = c) : typeof e == "object" ? (i[u] = e[u] != null ? e[u] : e[s], s = u) : i[u] = e, i), {});
|
|
192
|
+
}
|
|
193
|
+
function R(e, t, r = !0) {
|
|
194
|
+
if (!t || typeof t != "string")
|
|
195
|
+
return null;
|
|
196
|
+
if (e && e.vars && r) {
|
|
197
|
+
const n = `vars.${t}`.split(".").reduce((o, s) => o && o[s] ? o[s] : null, e);
|
|
198
|
+
if (n != null)
|
|
199
|
+
return n;
|
|
200
|
+
}
|
|
201
|
+
return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
202
|
+
}
|
|
203
|
+
function N(e, t, r, n = r) {
|
|
204
|
+
let o;
|
|
205
|
+
return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = R(e, r) || n, t && (o = t(o, n, e)), o;
|
|
206
|
+
}
|
|
207
|
+
function m(e) {
|
|
208
|
+
const {
|
|
209
|
+
prop: t,
|
|
210
|
+
cssProperty: r = e.prop,
|
|
211
|
+
themeKey: n,
|
|
212
|
+
transform: o
|
|
213
|
+
} = e, s = (i) => {
|
|
214
|
+
if (i[t] == null)
|
|
215
|
+
return null;
|
|
216
|
+
const u = i[t], c = i.theme, f = R(c, n) || {};
|
|
217
|
+
return O(i, u, (y) => {
|
|
218
|
+
let l = N(f, o, y);
|
|
219
|
+
return y === l && typeof y == "string" && (l = N(f, o, `${t}${y === "default" ? "" : X(y)}`, y)), r === !1 ? l : {
|
|
220
|
+
[r]: l
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
return s.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
225
|
+
[t]: E
|
|
226
|
+
} : {}, s.filterProps = [t], s;
|
|
227
|
+
}
|
|
228
|
+
function ue(e) {
|
|
229
|
+
const t = {};
|
|
230
|
+
return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
|
|
231
|
+
}
|
|
232
|
+
const ce = {
|
|
233
|
+
m: "margin",
|
|
234
|
+
p: "padding"
|
|
235
|
+
}, ae = {
|
|
236
|
+
t: "Top",
|
|
237
|
+
r: "Right",
|
|
238
|
+
b: "Bottom",
|
|
239
|
+
l: "Left",
|
|
240
|
+
x: ["Left", "Right"],
|
|
241
|
+
y: ["Top", "Bottom"]
|
|
242
|
+
}, M = {
|
|
243
|
+
marginX: "mx",
|
|
244
|
+
marginY: "my",
|
|
245
|
+
paddingX: "px",
|
|
246
|
+
paddingY: "py"
|
|
247
|
+
}, de = ue((e) => {
|
|
248
|
+
if (e.length > 2)
|
|
249
|
+
if (M[e])
|
|
250
|
+
e = M[e];
|
|
251
|
+
else
|
|
252
|
+
return [e];
|
|
253
|
+
const [t, r] = e.split(""), n = ce[t], o = ae[r] || "";
|
|
254
|
+
return Array.isArray(o) ? o.map((s) => n + s) : [n + o];
|
|
255
|
+
}), j = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], K = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], fe = [...j, ...K];
|
|
256
|
+
function $(e, t, r, n) {
|
|
257
|
+
var o;
|
|
258
|
+
const s = (o = R(e, t, !1)) != null ? o : r;
|
|
259
|
+
return typeof s == "number" ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && typeof i != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`), s * i) : Array.isArray(s) ? (i) => typeof i == "string" ? i : (process.env.NODE_ENV !== "production" && (Number.isInteger(i) ? i > s.length - 1 && console.error([`MUI: The value provided (${i}) overflows.`, `The supported values are: ${JSON.stringify(s)}.`, `${i} > ${s.length - 1}, you need to add the missing values.`].join(`
|
|
260
|
+
`)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
261
|
+
`))), s[i]) : typeof s == "function" ? s : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
262
|
+
`)), () => {
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function F(e) {
|
|
266
|
+
return $(e, "spacing", 8, "spacing");
|
|
267
|
+
}
|
|
268
|
+
function B(e, t) {
|
|
269
|
+
if (typeof t == "string" || t == null)
|
|
270
|
+
return t;
|
|
271
|
+
const r = Math.abs(t), n = e(r);
|
|
272
|
+
return t >= 0 ? n : typeof n == "number" ? -n : `-${n}`;
|
|
273
|
+
}
|
|
274
|
+
function me(e, t) {
|
|
275
|
+
return (r) => e.reduce((n, o) => (n[o] = B(t, r), n), {});
|
|
276
|
+
}
|
|
277
|
+
function pe(e, t, r, n) {
|
|
278
|
+
if (t.indexOf(r) === -1)
|
|
279
|
+
return null;
|
|
280
|
+
const o = de(r), s = me(o, n), i = e[r];
|
|
281
|
+
return O(e, i, s);
|
|
282
|
+
}
|
|
283
|
+
function q(e, t) {
|
|
284
|
+
const r = F(e.theme);
|
|
285
|
+
return Object.keys(e).map((n) => pe(e, t, n, r)).reduce(_, {});
|
|
286
|
+
}
|
|
287
|
+
function a(e) {
|
|
288
|
+
return q(e, j);
|
|
289
|
+
}
|
|
290
|
+
a.propTypes = process.env.NODE_ENV !== "production" ? j.reduce((e, t) => (e[t] = E, e), {}) : {};
|
|
291
|
+
a.filterProps = j;
|
|
292
|
+
function d(e) {
|
|
293
|
+
return q(e, K);
|
|
294
|
+
}
|
|
295
|
+
d.propTypes = process.env.NODE_ENV !== "production" ? K.reduce((e, t) => (e[t] = E, e), {}) : {};
|
|
296
|
+
d.filterProps = K;
|
|
297
|
+
process.env.NODE_ENV !== "production" && fe.reduce((e, t) => (e[t] = E, e), {});
|
|
298
|
+
function ye(e = 8) {
|
|
299
|
+
if (e.mui)
|
|
300
|
+
return e;
|
|
301
|
+
const t = F({
|
|
302
|
+
spacing: e
|
|
303
|
+
}), r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((s) => {
|
|
304
|
+
const i = t(s);
|
|
305
|
+
return typeof i == "number" ? `${i}px` : i;
|
|
306
|
+
}).join(" "));
|
|
307
|
+
return r.mui = !0, r;
|
|
308
|
+
}
|
|
309
|
+
function I(...e) {
|
|
310
|
+
const t = e.reduce((n, o) => (o.filterProps.forEach((s) => {
|
|
311
|
+
n[s] = o;
|
|
312
|
+
}), n), {}), r = (n) => Object.keys(n).reduce((o, s) => t[s] ? _(o, t[s](n)) : o, {});
|
|
313
|
+
return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
|
|
314
|
+
}
|
|
315
|
+
function b(e) {
|
|
316
|
+
return typeof e != "number" ? e : `${e}px solid`;
|
|
317
|
+
}
|
|
318
|
+
function x(e, t) {
|
|
319
|
+
return m({
|
|
320
|
+
prop: e,
|
|
321
|
+
themeKey: "borders",
|
|
322
|
+
transform: t
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
const ge = x("border", b), he = x("borderTop", b), be = x("borderRight", b), xe = x("borderBottom", b), ve = x("borderLeft", b), Oe = x("borderColor"), Ee = x("borderTopColor"), we = x("borderRightColor"), Te = x("borderBottomColor"), Ce = x("borderLeftColor"), Se = x("outline", b), Pe = x("outlineColor"), k = (e) => {
|
|
326
|
+
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
327
|
+
const t = $(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
|
|
328
|
+
borderRadius: B(t, n)
|
|
329
|
+
});
|
|
330
|
+
return O(e, e.borderRadius, r);
|
|
331
|
+
}
|
|
332
|
+
return null;
|
|
333
|
+
};
|
|
334
|
+
k.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
335
|
+
borderRadius: E
|
|
336
|
+
} : {};
|
|
337
|
+
k.filterProps = ["borderRadius"];
|
|
338
|
+
I(ge, he, be, xe, ve, Oe, Ee, we, Te, Ce, k, Se, Pe);
|
|
339
|
+
const G = (e) => {
|
|
340
|
+
if (e.gap !== void 0 && e.gap !== null) {
|
|
341
|
+
const t = $(e.theme, "spacing", 8, "gap"), r = (n) => ({
|
|
342
|
+
gap: B(t, n)
|
|
343
|
+
});
|
|
344
|
+
return O(e, e.gap, r);
|
|
345
|
+
}
|
|
346
|
+
return null;
|
|
347
|
+
};
|
|
348
|
+
G.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
349
|
+
gap: E
|
|
350
|
+
} : {};
|
|
351
|
+
G.filterProps = ["gap"];
|
|
352
|
+
const D = (e) => {
|
|
353
|
+
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
354
|
+
const t = $(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
|
|
355
|
+
columnGap: B(t, n)
|
|
356
|
+
});
|
|
357
|
+
return O(e, e.columnGap, r);
|
|
358
|
+
}
|
|
359
|
+
return null;
|
|
360
|
+
};
|
|
361
|
+
D.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
362
|
+
columnGap: E
|
|
363
|
+
} : {};
|
|
364
|
+
D.filterProps = ["columnGap"];
|
|
365
|
+
const U = (e) => {
|
|
366
|
+
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
367
|
+
const t = $(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
|
|
368
|
+
rowGap: B(t, n)
|
|
369
|
+
});
|
|
370
|
+
return O(e, e.rowGap, r);
|
|
371
|
+
}
|
|
372
|
+
return null;
|
|
373
|
+
};
|
|
374
|
+
U.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
375
|
+
rowGap: E
|
|
376
|
+
} : {};
|
|
377
|
+
U.filterProps = ["rowGap"];
|
|
378
|
+
const _e = m({
|
|
379
|
+
prop: "gridColumn"
|
|
380
|
+
}), $e = m({
|
|
381
|
+
prop: "gridRow"
|
|
382
|
+
}), Be = m({
|
|
383
|
+
prop: "gridAutoFlow"
|
|
384
|
+
}), Ae = m({
|
|
385
|
+
prop: "gridAutoColumns"
|
|
386
|
+
}), Ne = m({
|
|
387
|
+
prop: "gridAutoRows"
|
|
388
|
+
}), Re = m({
|
|
389
|
+
prop: "gridTemplateColumns"
|
|
390
|
+
}), je = m({
|
|
391
|
+
prop: "gridTemplateRows"
|
|
392
|
+
}), Ke = m({
|
|
393
|
+
prop: "gridTemplateAreas"
|
|
394
|
+
}), Ie = m({
|
|
395
|
+
prop: "gridArea"
|
|
396
|
+
});
|
|
397
|
+
I(G, D, U, _e, $e, Be, Ae, Ne, Re, je, Ke, Ie);
|
|
398
|
+
function S(e, t) {
|
|
399
|
+
return t === "grey" ? t : e;
|
|
400
|
+
}
|
|
401
|
+
const ke = m({
|
|
402
|
+
prop: "color",
|
|
403
|
+
themeKey: "palette",
|
|
404
|
+
transform: S
|
|
405
|
+
}), Ge = m({
|
|
406
|
+
prop: "bgcolor",
|
|
407
|
+
cssProperty: "backgroundColor",
|
|
408
|
+
themeKey: "palette",
|
|
409
|
+
transform: S
|
|
410
|
+
}), De = m({
|
|
411
|
+
prop: "backgroundColor",
|
|
412
|
+
themeKey: "palette",
|
|
413
|
+
transform: S
|
|
414
|
+
});
|
|
415
|
+
I(ke, Ge, De);
|
|
416
|
+
function h(e) {
|
|
417
|
+
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
418
|
+
}
|
|
419
|
+
const Ue = m({
|
|
420
|
+
prop: "width",
|
|
421
|
+
transform: h
|
|
422
|
+
}), z = (e) => {
|
|
423
|
+
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
424
|
+
const t = (r) => {
|
|
425
|
+
var n, o;
|
|
426
|
+
const s = ((n = e.theme) == null || (n = n.breakpoints) == null || (n = n.values) == null ? void 0 : n[r]) || W[r];
|
|
427
|
+
return s ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? {
|
|
428
|
+
maxWidth: `${s}${e.theme.breakpoints.unit}`
|
|
429
|
+
} : {
|
|
430
|
+
maxWidth: s
|
|
431
|
+
} : {
|
|
432
|
+
maxWidth: h(r)
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
return O(e, e.maxWidth, t);
|
|
436
|
+
}
|
|
437
|
+
return null;
|
|
438
|
+
};
|
|
439
|
+
z.filterProps = ["maxWidth"];
|
|
440
|
+
const We = m({
|
|
441
|
+
prop: "minWidth",
|
|
442
|
+
transform: h
|
|
443
|
+
}), ze = m({
|
|
444
|
+
prop: "height",
|
|
445
|
+
transform: h
|
|
446
|
+
}), Le = m({
|
|
447
|
+
prop: "maxHeight",
|
|
448
|
+
transform: h
|
|
449
|
+
}), Me = m({
|
|
450
|
+
prop: "minHeight",
|
|
451
|
+
transform: h
|
|
452
|
+
});
|
|
453
|
+
m({
|
|
454
|
+
prop: "size",
|
|
455
|
+
cssProperty: "width",
|
|
456
|
+
transform: h
|
|
457
|
+
});
|
|
458
|
+
m({
|
|
459
|
+
prop: "size",
|
|
460
|
+
cssProperty: "height",
|
|
461
|
+
transform: h
|
|
462
|
+
});
|
|
463
|
+
const Ye = m({
|
|
464
|
+
prop: "boxSizing"
|
|
465
|
+
});
|
|
466
|
+
I(Ue, z, We, ze, Le, Me, Ye);
|
|
467
|
+
const J = {
|
|
468
|
+
// borders
|
|
469
|
+
border: {
|
|
470
|
+
themeKey: "borders",
|
|
471
|
+
transform: b
|
|
472
|
+
},
|
|
473
|
+
borderTop: {
|
|
474
|
+
themeKey: "borders",
|
|
475
|
+
transform: b
|
|
476
|
+
},
|
|
477
|
+
borderRight: {
|
|
478
|
+
themeKey: "borders",
|
|
479
|
+
transform: b
|
|
480
|
+
},
|
|
481
|
+
borderBottom: {
|
|
482
|
+
themeKey: "borders",
|
|
483
|
+
transform: b
|
|
484
|
+
},
|
|
485
|
+
borderLeft: {
|
|
486
|
+
themeKey: "borders",
|
|
487
|
+
transform: b
|
|
488
|
+
},
|
|
489
|
+
borderColor: {
|
|
490
|
+
themeKey: "palette"
|
|
491
|
+
},
|
|
492
|
+
borderTopColor: {
|
|
493
|
+
themeKey: "palette"
|
|
494
|
+
},
|
|
495
|
+
borderRightColor: {
|
|
496
|
+
themeKey: "palette"
|
|
497
|
+
},
|
|
498
|
+
borderBottomColor: {
|
|
499
|
+
themeKey: "palette"
|
|
500
|
+
},
|
|
501
|
+
borderLeftColor: {
|
|
502
|
+
themeKey: "palette"
|
|
503
|
+
},
|
|
504
|
+
outline: {
|
|
505
|
+
themeKey: "borders",
|
|
506
|
+
transform: b
|
|
507
|
+
},
|
|
508
|
+
outlineColor: {
|
|
509
|
+
themeKey: "palette"
|
|
510
|
+
},
|
|
511
|
+
borderRadius: {
|
|
512
|
+
themeKey: "shape.borderRadius",
|
|
513
|
+
style: k
|
|
514
|
+
},
|
|
515
|
+
// palette
|
|
516
|
+
color: {
|
|
517
|
+
themeKey: "palette",
|
|
518
|
+
transform: S
|
|
519
|
+
},
|
|
520
|
+
bgcolor: {
|
|
521
|
+
themeKey: "palette",
|
|
522
|
+
cssProperty: "backgroundColor",
|
|
523
|
+
transform: S
|
|
524
|
+
},
|
|
525
|
+
backgroundColor: {
|
|
526
|
+
themeKey: "palette",
|
|
527
|
+
transform: S
|
|
528
|
+
},
|
|
529
|
+
// spacing
|
|
530
|
+
p: {
|
|
531
|
+
style: d
|
|
532
|
+
},
|
|
533
|
+
pt: {
|
|
534
|
+
style: d
|
|
535
|
+
},
|
|
536
|
+
pr: {
|
|
537
|
+
style: d
|
|
538
|
+
},
|
|
539
|
+
pb: {
|
|
540
|
+
style: d
|
|
541
|
+
},
|
|
542
|
+
pl: {
|
|
543
|
+
style: d
|
|
544
|
+
},
|
|
545
|
+
px: {
|
|
546
|
+
style: d
|
|
547
|
+
},
|
|
548
|
+
py: {
|
|
549
|
+
style: d
|
|
550
|
+
},
|
|
551
|
+
padding: {
|
|
552
|
+
style: d
|
|
553
|
+
},
|
|
554
|
+
paddingTop: {
|
|
555
|
+
style: d
|
|
556
|
+
},
|
|
557
|
+
paddingRight: {
|
|
558
|
+
style: d
|
|
559
|
+
},
|
|
560
|
+
paddingBottom: {
|
|
561
|
+
style: d
|
|
562
|
+
},
|
|
563
|
+
paddingLeft: {
|
|
564
|
+
style: d
|
|
565
|
+
},
|
|
566
|
+
paddingX: {
|
|
567
|
+
style: d
|
|
568
|
+
},
|
|
569
|
+
paddingY: {
|
|
570
|
+
style: d
|
|
571
|
+
},
|
|
572
|
+
paddingInline: {
|
|
573
|
+
style: d
|
|
574
|
+
},
|
|
575
|
+
paddingInlineStart: {
|
|
576
|
+
style: d
|
|
577
|
+
},
|
|
578
|
+
paddingInlineEnd: {
|
|
579
|
+
style: d
|
|
580
|
+
},
|
|
581
|
+
paddingBlock: {
|
|
582
|
+
style: d
|
|
583
|
+
},
|
|
584
|
+
paddingBlockStart: {
|
|
585
|
+
style: d
|
|
586
|
+
},
|
|
587
|
+
paddingBlockEnd: {
|
|
588
|
+
style: d
|
|
589
|
+
},
|
|
590
|
+
m: {
|
|
591
|
+
style: a
|
|
592
|
+
},
|
|
593
|
+
mt: {
|
|
594
|
+
style: a
|
|
595
|
+
},
|
|
596
|
+
mr: {
|
|
597
|
+
style: a
|
|
598
|
+
},
|
|
599
|
+
mb: {
|
|
600
|
+
style: a
|
|
601
|
+
},
|
|
602
|
+
ml: {
|
|
603
|
+
style: a
|
|
604
|
+
},
|
|
605
|
+
mx: {
|
|
606
|
+
style: a
|
|
607
|
+
},
|
|
608
|
+
my: {
|
|
609
|
+
style: a
|
|
610
|
+
},
|
|
611
|
+
margin: {
|
|
612
|
+
style: a
|
|
613
|
+
},
|
|
614
|
+
marginTop: {
|
|
615
|
+
style: a
|
|
616
|
+
},
|
|
617
|
+
marginRight: {
|
|
618
|
+
style: a
|
|
619
|
+
},
|
|
620
|
+
marginBottom: {
|
|
621
|
+
style: a
|
|
622
|
+
},
|
|
623
|
+
marginLeft: {
|
|
624
|
+
style: a
|
|
625
|
+
},
|
|
626
|
+
marginX: {
|
|
627
|
+
style: a
|
|
628
|
+
},
|
|
629
|
+
marginY: {
|
|
630
|
+
style: a
|
|
631
|
+
},
|
|
632
|
+
marginInline: {
|
|
633
|
+
style: a
|
|
634
|
+
},
|
|
635
|
+
marginInlineStart: {
|
|
636
|
+
style: a
|
|
637
|
+
},
|
|
638
|
+
marginInlineEnd: {
|
|
639
|
+
style: a
|
|
640
|
+
},
|
|
641
|
+
marginBlock: {
|
|
642
|
+
style: a
|
|
643
|
+
},
|
|
644
|
+
marginBlockStart: {
|
|
645
|
+
style: a
|
|
646
|
+
},
|
|
647
|
+
marginBlockEnd: {
|
|
648
|
+
style: a
|
|
649
|
+
},
|
|
650
|
+
// display
|
|
651
|
+
displayPrint: {
|
|
652
|
+
cssProperty: !1,
|
|
653
|
+
transform: (e) => ({
|
|
654
|
+
"@media print": {
|
|
655
|
+
display: e
|
|
656
|
+
}
|
|
657
|
+
})
|
|
658
|
+
},
|
|
659
|
+
display: {},
|
|
660
|
+
overflow: {},
|
|
661
|
+
textOverflow: {},
|
|
662
|
+
visibility: {},
|
|
663
|
+
whiteSpace: {},
|
|
664
|
+
// flexbox
|
|
665
|
+
flexBasis: {},
|
|
666
|
+
flexDirection: {},
|
|
667
|
+
flexWrap: {},
|
|
668
|
+
justifyContent: {},
|
|
669
|
+
alignItems: {},
|
|
670
|
+
alignContent: {},
|
|
671
|
+
order: {},
|
|
672
|
+
flex: {},
|
|
673
|
+
flexGrow: {},
|
|
674
|
+
flexShrink: {},
|
|
675
|
+
alignSelf: {},
|
|
676
|
+
justifyItems: {},
|
|
677
|
+
justifySelf: {},
|
|
678
|
+
// grid
|
|
679
|
+
gap: {
|
|
680
|
+
style: G
|
|
681
|
+
},
|
|
682
|
+
rowGap: {
|
|
683
|
+
style: U
|
|
684
|
+
},
|
|
685
|
+
columnGap: {
|
|
686
|
+
style: D
|
|
687
|
+
},
|
|
688
|
+
gridColumn: {},
|
|
689
|
+
gridRow: {},
|
|
690
|
+
gridAutoFlow: {},
|
|
691
|
+
gridAutoColumns: {},
|
|
692
|
+
gridAutoRows: {},
|
|
693
|
+
gridTemplateColumns: {},
|
|
694
|
+
gridTemplateRows: {},
|
|
695
|
+
gridTemplateAreas: {},
|
|
696
|
+
gridArea: {},
|
|
697
|
+
// positions
|
|
698
|
+
position: {},
|
|
699
|
+
zIndex: {
|
|
700
|
+
themeKey: "zIndex"
|
|
701
|
+
},
|
|
702
|
+
top: {},
|
|
703
|
+
right: {},
|
|
704
|
+
bottom: {},
|
|
705
|
+
left: {},
|
|
706
|
+
// shadows
|
|
707
|
+
boxShadow: {
|
|
708
|
+
themeKey: "shadows"
|
|
709
|
+
},
|
|
710
|
+
// sizing
|
|
711
|
+
width: {
|
|
712
|
+
transform: h
|
|
713
|
+
},
|
|
714
|
+
maxWidth: {
|
|
715
|
+
style: z
|
|
716
|
+
},
|
|
717
|
+
minWidth: {
|
|
718
|
+
transform: h
|
|
719
|
+
},
|
|
720
|
+
height: {
|
|
721
|
+
transform: h
|
|
722
|
+
},
|
|
723
|
+
maxHeight: {
|
|
724
|
+
transform: h
|
|
725
|
+
},
|
|
726
|
+
minHeight: {
|
|
727
|
+
transform: h
|
|
728
|
+
},
|
|
729
|
+
boxSizing: {},
|
|
730
|
+
// typography
|
|
731
|
+
fontFamily: {
|
|
732
|
+
themeKey: "typography"
|
|
733
|
+
},
|
|
734
|
+
fontSize: {
|
|
735
|
+
themeKey: "typography"
|
|
736
|
+
},
|
|
737
|
+
fontStyle: {
|
|
738
|
+
themeKey: "typography"
|
|
739
|
+
},
|
|
740
|
+
fontWeight: {
|
|
741
|
+
themeKey: "typography"
|
|
742
|
+
},
|
|
743
|
+
letterSpacing: {},
|
|
744
|
+
textTransform: {},
|
|
745
|
+
lineHeight: {},
|
|
746
|
+
textAlign: {},
|
|
747
|
+
typography: {
|
|
748
|
+
cssProperty: !1,
|
|
749
|
+
themeKey: "typography"
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
function He(...e) {
|
|
753
|
+
const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
|
|
754
|
+
return e.every((n) => r.size === Object.keys(n).length);
|
|
755
|
+
}
|
|
756
|
+
function Xe(e, t) {
|
|
757
|
+
return typeof e == "function" ? e(t) : e;
|
|
758
|
+
}
|
|
759
|
+
function Fe() {
|
|
760
|
+
function e(r, n, o, s) {
|
|
761
|
+
const i = {
|
|
762
|
+
[r]: n,
|
|
763
|
+
theme: o
|
|
764
|
+
}, u = s[r];
|
|
765
|
+
if (!u)
|
|
766
|
+
return {
|
|
767
|
+
[r]: n
|
|
768
|
+
};
|
|
769
|
+
const {
|
|
770
|
+
cssProperty: c = r,
|
|
771
|
+
themeKey: f,
|
|
772
|
+
transform: v,
|
|
773
|
+
style: y
|
|
774
|
+
} = u;
|
|
775
|
+
if (n == null)
|
|
776
|
+
return null;
|
|
777
|
+
if (f === "typography" && n === "inherit")
|
|
778
|
+
return {
|
|
779
|
+
[r]: n
|
|
780
|
+
};
|
|
781
|
+
const l = R(o, f) || {};
|
|
782
|
+
return y ? y(i) : O(i, n, (p) => {
|
|
783
|
+
let w = N(l, v, p);
|
|
784
|
+
return p === w && typeof p == "string" && (w = N(l, v, `${r}${p === "default" ? "" : X(p)}`, p)), c === !1 ? w : {
|
|
785
|
+
[c]: w
|
|
786
|
+
};
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
function t(r) {
|
|
790
|
+
var n;
|
|
791
|
+
const {
|
|
792
|
+
sx: o,
|
|
793
|
+
theme: s = {}
|
|
794
|
+
} = r || {};
|
|
795
|
+
if (!o)
|
|
796
|
+
return null;
|
|
797
|
+
const i = (n = s.unstable_sxConfig) != null ? n : J;
|
|
798
|
+
function u(c) {
|
|
799
|
+
let f = c;
|
|
800
|
+
if (typeof c == "function")
|
|
801
|
+
f = c(s);
|
|
802
|
+
else if (typeof c != "object")
|
|
803
|
+
return c;
|
|
804
|
+
if (!f)
|
|
805
|
+
return null;
|
|
806
|
+
const v = se(s.breakpoints), y = Object.keys(v);
|
|
807
|
+
let l = v;
|
|
808
|
+
return Object.keys(f).forEach((g) => {
|
|
809
|
+
const p = Xe(f[g], s);
|
|
810
|
+
if (p != null)
|
|
811
|
+
if (typeof p == "object")
|
|
812
|
+
if (i[g])
|
|
813
|
+
l = _(l, e(g, p, s, i));
|
|
814
|
+
else {
|
|
815
|
+
const w = O({
|
|
816
|
+
theme: s
|
|
817
|
+
}, p, (Z) => ({
|
|
818
|
+
[g]: Z
|
|
819
|
+
}));
|
|
820
|
+
He(w, p) ? l[g] = t({
|
|
821
|
+
sx: p,
|
|
822
|
+
theme: s
|
|
823
|
+
}) : l = _(l, w);
|
|
824
|
+
}
|
|
825
|
+
else
|
|
826
|
+
l = _(l, e(g, p, s, i));
|
|
827
|
+
}), ie(y, l);
|
|
828
|
+
}
|
|
829
|
+
return Array.isArray(o) ? o.map(u) : u(o);
|
|
830
|
+
}
|
|
831
|
+
return t;
|
|
832
|
+
}
|
|
833
|
+
const Q = Fe();
|
|
834
|
+
Q.filterProps = ["sx"];
|
|
835
|
+
function qe(e, t) {
|
|
836
|
+
const r = this;
|
|
837
|
+
return r.vars && typeof r.getColorSchemeSelector == "function" ? {
|
|
838
|
+
[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t
|
|
839
|
+
} : r.palette.mode === e ? t : {};
|
|
840
|
+
}
|
|
841
|
+
const Je = ["breakpoints", "palette", "spacing", "shape"];
|
|
842
|
+
function ot(e = {}, ...t) {
|
|
843
|
+
const {
|
|
844
|
+
breakpoints: r = {},
|
|
845
|
+
palette: n = {},
|
|
846
|
+
spacing: o,
|
|
847
|
+
shape: s = {}
|
|
848
|
+
} = e, i = Y(e, Je), u = ne(r), c = ye(o);
|
|
849
|
+
let f = A({
|
|
850
|
+
breakpoints: u,
|
|
851
|
+
direction: "ltr",
|
|
852
|
+
components: {},
|
|
853
|
+
// Inject component definitions.
|
|
854
|
+
palette: C({
|
|
855
|
+
mode: "light"
|
|
856
|
+
}, n),
|
|
857
|
+
spacing: c,
|
|
858
|
+
shape: C({}, oe, s)
|
|
859
|
+
}, i);
|
|
860
|
+
return f.applyStyles = qe, f = t.reduce((v, y) => A(v, y), f), f.unstable_sxConfig = C({}, J, i == null ? void 0 : i.unstable_sxConfig), f.unstable_sx = function(y) {
|
|
861
|
+
return Q({
|
|
862
|
+
sx: y,
|
|
863
|
+
theme: this
|
|
864
|
+
});
|
|
865
|
+
}, f;
|
|
866
|
+
}
|
|
867
|
+
export {
|
|
868
|
+
A as a,
|
|
869
|
+
ot as b,
|
|
870
|
+
X as c,
|
|
871
|
+
J as d,
|
|
872
|
+
Q as e,
|
|
873
|
+
rt as f,
|
|
874
|
+
ee as g,
|
|
875
|
+
O as h,
|
|
876
|
+
T as i,
|
|
877
|
+
nt as r,
|
|
878
|
+
tt as s
|
|
879
|
+
};
|