@hybridcore/ui 1.3.3 → 1.3.4

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.
Files changed (64) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-DJz-TFGO.js} +199 -207
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-DZnCVGy9.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-DzmWBCrt.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-NqW0GIK_.js} +79 -77
  5. package/dist/DialogContent-D51w7KVX.js +2119 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-aXQs42m6.js} +496 -466
  7. package/dist/FormControlLabel-hDa-xf_q.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-SnBOFQ43.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-CeVb6kjv.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-fM3loNyx.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DLIiXc6r.js} +10 -10
  12. package/dist/{ListItem-RJvRMwkZ.js → ListItem-BkxmqFI8.js} +23 -23
  13. package/dist/{MenuItem-DF45rx2m.js → MenuItem-BEW28T9O.js} +27 -27
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-DkzLHRTd.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-Dp3qO0cK.js} +18 -18
  16. package/dist/Select-Cdmu0dQ4.js +2175 -0
  17. package/dist/Typography-CXe5ytr0.js +201 -0
  18. package/dist/components/card/index.js +17 -17
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +222 -302
  21. package/dist/components/confirm/dialog.js +13 -13
  22. package/dist/components/container/index.js +19 -19
  23. package/dist/components/context-menu/index.js +32 -32
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/geometry-picker/index.js +3 -3
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/map/styled.js +14 -14
  30. package/dist/components/search-input/index.js +4 -4
  31. package/dist/components/template-property-filters/index.js +1 -1
  32. package/dist/components/template-property-filters/property.js +4 -4
  33. package/dist/components/tree-select/index.js +4 -4
  34. package/dist/components/treeview-filter/index.js +29 -30
  35. package/dist/components/treeview-filter/item/index.js +1 -1
  36. package/dist/components/treeview-filter/item-label/index.js +2 -2
  37. package/dist/createStyled-liRRhQcN.js +1910 -0
  38. package/dist/createSvgIcon-B4TFefhd.js +73 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-Cl8kMTkx.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CT2wqJXE.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-D9TdkXAs.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-DRy8nExS.js} +205 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-BrCbmCR1.js} +2 -2
  44. package/dist/main.js +2 -2
  45. package/dist/{property-BSufYw1E.js → property-BsU8ijQF.js} +1056 -1087
  46. package/dist/styled-Dm8rXzIG.js +677 -0
  47. package/dist/useTheme-CTuK-wFF.js +10 -0
  48. package/dist/useThemeProps-BXn-nVhw.js +107 -0
  49. package/dist/{utils-qcu0RzdN.js → utils-DY9Jk4Ah.js} +2 -2
  50. package/package.json +3 -3
  51. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  52. package/dist/FormControlLabel-Df7csguX.js +0 -827
  53. package/dist/Select-C1jD_gBQ.js +0 -2305
  54. package/dist/Typography-C2BkMNk-.js +0 -178
  55. package/dist/chainPropTypes-GRMJ22CO.js +0 -96
  56. package/dist/createSvgIcon-6wv0RQr3.js +0 -63
  57. package/dist/createTheme-C3DKplhE.js +0 -2395
  58. package/dist/resolveComponentProps-DozbaB8e.js +0 -54
  59. package/dist/styled-CVWGE9ik.js +0 -142
  60. package/dist/styled-iyoioZCr.js +0 -1033
  61. package/dist/useTheme--x3BjP9A.js +0 -17
  62. package/dist/useTheme-pWltVFb2.js +0 -10
  63. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  64. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -0,0 +1,677 @@
1
+ import { _ as m, a as T } from "./extends-Cyw62AD_.js";
2
+ import { f as N, b as M, k as q, d as J, s as K, e as X, l as G } from "./createStyled-liRRhQcN.js";
3
+ const V = (e) => e, Y = () => {
4
+ let e = V;
5
+ return {
6
+ configure(t) {
7
+ e = t;
8
+ },
9
+ generate(t) {
10
+ return e(t);
11
+ },
12
+ reset() {
13
+ e = V;
14
+ }
15
+ };
16
+ }, Q = Y(), Z = {
17
+ active: "active",
18
+ checked: "checked",
19
+ completed: "completed",
20
+ disabled: "disabled",
21
+ error: "error",
22
+ expanded: "expanded",
23
+ focused: "focused",
24
+ focusVisible: "focusVisible",
25
+ open: "open",
26
+ readOnly: "readOnly",
27
+ required: "required",
28
+ selected: "selected"
29
+ };
30
+ function ee(e, t, r = "Mui") {
31
+ const n = Z[t];
32
+ return n ? `${r}-${n}` : `${Q.generate(e)}-${t}`;
33
+ }
34
+ function te(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
35
+ return Math.max(t, Math.min(e, r));
36
+ }
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}].`), te(e, t, r);
39
+ }
40
+ function re(e) {
41
+ e = e.slice(1);
42
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
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, s) => s < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
45
+ }
46
+ function O(e) {
47
+ if (e.type)
48
+ return e;
49
+ if (e.charAt(0) === "#")
50
+ return O(re(e));
51
+ const t = e.indexOf("("), r = e.substring(0, t);
52
+ if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1)
53
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
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), s;
56
+ if (r === "color") {
57
+ if (n = n.split(" "), s = 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(s) === -1)
58
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${s}\` color space.
59
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : N(10, s));
60
+ } else
61
+ n = n.split(",");
62
+ return n = n.map((d) => parseFloat(d)), {
63
+ type: r,
64
+ values: n,
65
+ colorSpace: s
66
+ };
67
+ }
68
+ function _(e) {
69
+ const {
70
+ type: t,
71
+ colorSpace: r
72
+ } = e;
73
+ let {
74
+ values: n
75
+ } = e;
76
+ return t.indexOf("rgb") !== -1 ? n = n.map((s, d) => d < 3 ? parseInt(s, 10) : s) : 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
+ }
78
+ function ne(e) {
79
+ e = O(e);
80
+ const {
81
+ values: t
82
+ } = e, r = t[0], n = t[1] / 100, s = t[2] / 100, d = n * Math.min(s, 1 - s), i = (f, u = (f + r / 30) % 12) => s - d * Math.max(Math.min(u - 3, 9 - u, 1), -1);
83
+ let p = "rgb";
84
+ const g = [Math.round(i(0) * 255), Math.round(i(8) * 255), Math.round(i(4) * 255)];
85
+ return e.type === "hsla" && (p += "a", g.push(t[3])), _({
86
+ type: p,
87
+ values: g
88
+ });
89
+ }
90
+ function F(e) {
91
+ e = O(e);
92
+ let t = e.type === "hsl" || e.type === "hsla" ? O(ne(e)).values : e.values;
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
+ }
95
+ function R(e, t) {
96
+ const r = F(e), n = F(t);
97
+ return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
98
+ }
99
+ function Ue(e, t) {
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
+ }
102
+ function ae(e, t) {
103
+ if (e = O(e), t = U(t), e.type.indexOf("hsl") !== -1)
104
+ e.values[2] *= 1 - t;
105
+ else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
106
+ for (let r = 0; r < 3; r += 1)
107
+ e.values[r] *= 1 - t;
108
+ return _(e);
109
+ }
110
+ function se(e, t) {
111
+ if (e = O(e), t = U(t), e.type.indexOf("hsl") !== -1)
112
+ e.values[2] += (100 - e.values[2]) * t;
113
+ else if (e.type.indexOf("rgb") !== -1)
114
+ for (let r = 0; r < 3; r += 1)
115
+ e.values[r] += (255 - e.values[r]) * t;
116
+ else if (e.type.indexOf("color") !== -1)
117
+ for (let r = 0; r < 3; r += 1)
118
+ e.values[r] += (1 - e.values[r]) * t;
119
+ return _(e);
120
+ }
121
+ function ie(e, t) {
122
+ return m({
123
+ toolbar: {
124
+ minHeight: 56,
125
+ [e.up("xs")]: {
126
+ "@media (orientation: landscape)": {
127
+ minHeight: 48
128
+ }
129
+ },
130
+ [e.up("sm")]: {
131
+ minHeight: 64
132
+ }
133
+ }
134
+ }, t);
135
+ }
136
+ const S = {
137
+ black: "#000",
138
+ white: "#fff"
139
+ }, oe = {
140
+ 50: "#fafafa",
141
+ 100: "#f5f5f5",
142
+ 200: "#eeeeee",
143
+ 300: "#e0e0e0",
144
+ 400: "#bdbdbd",
145
+ 500: "#9e9e9e",
146
+ 600: "#757575",
147
+ 700: "#616161",
148
+ 800: "#424242",
149
+ 900: "#212121",
150
+ A100: "#f5f5f5",
151
+ A200: "#eeeeee",
152
+ A400: "#bdbdbd",
153
+ A700: "#616161"
154
+ }, x = {
155
+ 50: "#f3e5f5",
156
+ 100: "#e1bee7",
157
+ 200: "#ce93d8",
158
+ 300: "#ba68c8",
159
+ 400: "#ab47bc",
160
+ 500: "#9c27b0",
161
+ 600: "#8e24aa",
162
+ 700: "#7b1fa2",
163
+ 800: "#6a1b9a",
164
+ 900: "#4a148c",
165
+ A100: "#ea80fc",
166
+ A200: "#e040fb",
167
+ A400: "#d500f9",
168
+ A700: "#aa00ff"
169
+ }, v = {
170
+ 50: "#ffebee",
171
+ 100: "#ffcdd2",
172
+ 200: "#ef9a9a",
173
+ 300: "#e57373",
174
+ 400: "#ef5350",
175
+ 500: "#f44336",
176
+ 600: "#e53935",
177
+ 700: "#d32f2f",
178
+ 800: "#c62828",
179
+ 900: "#b71c1c",
180
+ A100: "#ff8a80",
181
+ A200: "#ff5252",
182
+ A400: "#ff1744",
183
+ A700: "#d50000"
184
+ }, E = {
185
+ 50: "#fff3e0",
186
+ 100: "#ffe0b2",
187
+ 200: "#ffcc80",
188
+ 300: "#ffb74d",
189
+ 400: "#ffa726",
190
+ 500: "#ff9800",
191
+ 600: "#fb8c00",
192
+ 700: "#f57c00",
193
+ 800: "#ef6c00",
194
+ 900: "#e65100",
195
+ A100: "#ffd180",
196
+ A200: "#ffab40",
197
+ A400: "#ff9100",
198
+ A700: "#ff6d00"
199
+ }, A = {
200
+ 50: "#e3f2fd",
201
+ 100: "#bbdefb",
202
+ 200: "#90caf9",
203
+ 300: "#64b5f6",
204
+ 400: "#42a5f5",
205
+ 500: "#2196f3",
206
+ 600: "#1e88e5",
207
+ 700: "#1976d2",
208
+ 800: "#1565c0",
209
+ 900: "#0d47a1",
210
+ A100: "#82b1ff",
211
+ A200: "#448aff",
212
+ A400: "#2979ff",
213
+ A700: "#2962ff"
214
+ }, k = {
215
+ 50: "#e1f5fe",
216
+ 100: "#b3e5fc",
217
+ 200: "#81d4fa",
218
+ 300: "#4fc3f7",
219
+ 400: "#29b6f6",
220
+ 500: "#03a9f4",
221
+ 600: "#039be5",
222
+ 700: "#0288d1",
223
+ 800: "#0277bd",
224
+ 900: "#01579b",
225
+ A100: "#80d8ff",
226
+ A200: "#40c4ff",
227
+ A400: "#00b0ff",
228
+ A700: "#0091ea"
229
+ }, w = {
230
+ 50: "#e8f5e9",
231
+ 100: "#c8e6c9",
232
+ 200: "#a5d6a7",
233
+ 300: "#81c784",
234
+ 400: "#66bb6a",
235
+ 500: "#4caf50",
236
+ 600: "#43a047",
237
+ 700: "#388e3c",
238
+ 800: "#2e7d32",
239
+ 900: "#1b5e20",
240
+ A100: "#b9f6ca",
241
+ A200: "#69f0ae",
242
+ A400: "#00e676",
243
+ A700: "#00c853"
244
+ }, ce = ["mode", "contrastThreshold", "tonalOffset"], j = {
245
+ // The colors used to style the text.
246
+ text: {
247
+ // The most important text.
248
+ primary: "rgba(0, 0, 0, 0.87)",
249
+ // Secondary text.
250
+ secondary: "rgba(0, 0, 0, 0.6)",
251
+ // Disabled text have even lower visual prominence.
252
+ disabled: "rgba(0, 0, 0, 0.38)"
253
+ },
254
+ // The color used to divide different elements.
255
+ divider: "rgba(0, 0, 0, 0.12)",
256
+ // The background colors used to style the surfaces.
257
+ // Consistency between these values is important.
258
+ background: {
259
+ paper: S.white,
260
+ default: S.white
261
+ },
262
+ // The colors used to style the action elements.
263
+ action: {
264
+ // The color of an active action like an icon button.
265
+ active: "rgba(0, 0, 0, 0.54)",
266
+ // The color of an hovered action.
267
+ hover: "rgba(0, 0, 0, 0.04)",
268
+ hoverOpacity: 0.04,
269
+ // The color of a selected action.
270
+ selected: "rgba(0, 0, 0, 0.08)",
271
+ selectedOpacity: 0.08,
272
+ // The color of a disabled action.
273
+ disabled: "rgba(0, 0, 0, 0.26)",
274
+ // The background color of a disabled action.
275
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
276
+ disabledOpacity: 0.38,
277
+ focus: "rgba(0, 0, 0, 0.12)",
278
+ focusOpacity: 0.12,
279
+ activatedOpacity: 0.12
280
+ }
281
+ }, D = {
282
+ text: {
283
+ primary: S.white,
284
+ secondary: "rgba(255, 255, 255, 0.7)",
285
+ disabled: "rgba(255, 255, 255, 0.5)",
286
+ icon: "rgba(255, 255, 255, 0.5)"
287
+ },
288
+ divider: "rgba(255, 255, 255, 0.12)",
289
+ background: {
290
+ paper: "#121212",
291
+ default: "#121212"
292
+ },
293
+ action: {
294
+ active: S.white,
295
+ hover: "rgba(255, 255, 255, 0.08)",
296
+ hoverOpacity: 0.08,
297
+ selected: "rgba(255, 255, 255, 0.16)",
298
+ selectedOpacity: 0.16,
299
+ disabled: "rgba(255, 255, 255, 0.3)",
300
+ disabledBackground: "rgba(255, 255, 255, 0.12)",
301
+ disabledOpacity: 0.38,
302
+ focus: "rgba(255, 255, 255, 0.12)",
303
+ focusOpacity: 0.12,
304
+ activatedOpacity: 0.24
305
+ }
306
+ };
307
+ function z(e, t, r, n) {
308
+ const s = n.light || n, d = n.dark || n * 1.5;
309
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = se(e.main, s) : t === "dark" && (e.dark = ae(e.main, d)));
310
+ }
311
+ function fe(e = "light") {
312
+ return e === "dark" ? {
313
+ main: A[200],
314
+ light: A[50],
315
+ dark: A[400]
316
+ } : {
317
+ main: A[700],
318
+ light: A[400],
319
+ dark: A[800]
320
+ };
321
+ }
322
+ function de(e = "light") {
323
+ return e === "dark" ? {
324
+ main: x[200],
325
+ light: x[50],
326
+ dark: x[400]
327
+ } : {
328
+ main: x[500],
329
+ light: x[300],
330
+ dark: x[700]
331
+ };
332
+ }
333
+ function ue(e = "light") {
334
+ return e === "dark" ? {
335
+ main: v[500],
336
+ light: v[300],
337
+ dark: v[700]
338
+ } : {
339
+ main: v[700],
340
+ light: v[400],
341
+ dark: v[800]
342
+ };
343
+ }
344
+ function le(e = "light") {
345
+ return e === "dark" ? {
346
+ main: k[400],
347
+ light: k[300],
348
+ dark: k[700]
349
+ } : {
350
+ main: k[700],
351
+ light: k[500],
352
+ dark: k[900]
353
+ };
354
+ }
355
+ function pe(e = "light") {
356
+ return e === "dark" ? {
357
+ main: w[400],
358
+ light: w[300],
359
+ dark: w[700]
360
+ } : {
361
+ main: w[800],
362
+ light: w[500],
363
+ dark: w[900]
364
+ };
365
+ }
366
+ function ge(e = "light") {
367
+ return e === "dark" ? {
368
+ main: E[400],
369
+ light: E[300],
370
+ dark: E[700]
371
+ } : {
372
+ main: "#ed6c02",
373
+ // closest to orange[800] that pass 3:1.
374
+ light: E[500],
375
+ dark: E[900]
376
+ };
377
+ }
378
+ function he(e) {
379
+ const {
380
+ mode: t = "light",
381
+ contrastThreshold: r = 3,
382
+ tonalOffset: n = 0.2
383
+ } = e, s = T(e, ce), d = e.primary || fe(t), i = e.secondary || de(t), p = e.error || ue(t), g = e.info || le(t), f = e.success || pe(t), u = e.warning || ge(t);
384
+ function h(a) {
385
+ const l = R(a, D.text.primary) >= r ? D.text.primary : j.text.primary;
386
+ if (process.env.NODE_ENV !== "production") {
387
+ const b = R(a, l);
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(`
389
+ `));
390
+ }
391
+ return l;
392
+ }
393
+ const c = ({
394
+ color: a,
395
+ name: l,
396
+ mainShade: b = 500,
397
+ lightShade: I = 300,
398
+ darkShade: C = 700
399
+ }) => {
400
+ if (a = m({}, a), !a.main && a[b] && (a.main = a[b]), !a.hasOwnProperty("main"))
401
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${l ? ` (${l})` : ""} provided to augmentColor(color) is invalid.
402
+ The color object needs to have a \`main\` property or a \`${b}\` property.` : N(11, l ? ` (${l})` : "", b));
403
+ if (typeof a.main != "string")
404
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${l ? ` (${l})` : ""} provided to augmentColor(color) is invalid.
405
+ \`color.main\` should be a string, but \`${JSON.stringify(a.main)}\` was provided instead.
406
+
407
+ Did you intend to use one of the following approaches?
408
+
409
+ import { green } from "@mui/material/colors";
410
+
411
+ const theme1 = createTheme({ palette: {
412
+ primary: green,
413
+ } });
414
+
415
+ const theme2 = createTheme({ palette: {
416
+ primary: { main: green[500] },
417
+ } });` : N(12, l ? ` (${l})` : "", JSON.stringify(a.main)));
418
+ return z(a, "light", I, n), z(a, "dark", C, n), a.contrastText || (a.contrastText = h(a.main)), a;
419
+ }, $ = {
420
+ dark: D,
421
+ light: j
422
+ };
423
+ return process.env.NODE_ENV !== "production" && ($[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), M(m({
424
+ // A collection of common colors.
425
+ common: m({}, S),
426
+ // prevent mutable object.
427
+ // The palette mode, can be light or dark.
428
+ mode: t,
429
+ // The colors used to represent primary interface elements for a user.
430
+ primary: c({
431
+ color: d,
432
+ name: "primary"
433
+ }),
434
+ // The colors used to represent secondary interface elements for a user.
435
+ secondary: c({
436
+ color: i,
437
+ name: "secondary",
438
+ mainShade: "A400",
439
+ lightShade: "A200",
440
+ darkShade: "A700"
441
+ }),
442
+ // The colors used to represent interface elements that the user should be made aware of.
443
+ error: c({
444
+ color: p,
445
+ name: "error"
446
+ }),
447
+ // The colors used to represent potentially dangerous actions or important messages.
448
+ warning: c({
449
+ color: u,
450
+ name: "warning"
451
+ }),
452
+ // The colors used to present information to the user that is neutral and not necessarily important.
453
+ info: c({
454
+ color: g,
455
+ name: "info"
456
+ }),
457
+ // The colors used to indicate the successful completion of an action that user triggered.
458
+ success: c({
459
+ color: f,
460
+ name: "success"
461
+ }),
462
+ // The grey colors.
463
+ grey: oe,
464
+ // Used by `getContrastText()` to maximize the contrast between
465
+ // the background and the text.
466
+ contrastThreshold: r,
467
+ // Takes a background color and returns the text color that maximizes the contrast.
468
+ getContrastText: h,
469
+ // Generate a rich color object.
470
+ augmentColor: c,
471
+ // Used by the functions below to shift a color's luminance by approximately
472
+ // two indexes within its tonal palette.
473
+ // E.g., shift from Red 500 to Red 300 or Red 700.
474
+ tonalOffset: n
475
+ }, $[t]), s);
476
+ }
477
+ const be = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
478
+ function me(e) {
479
+ return Math.round(e * 1e5) / 1e5;
480
+ }
481
+ const W = {
482
+ textTransform: "uppercase"
483
+ }, P = '"Roboto", "Helvetica", "Arial", sans-serif';
484
+ function ye(e, t) {
485
+ const r = typeof t == "function" ? t(e) : t, {
486
+ fontFamily: n = P,
487
+ // The default font size of the Material Specification.
488
+ fontSize: s = 14,
489
+ // px
490
+ fontWeightLight: d = 300,
491
+ fontWeightRegular: i = 400,
492
+ fontWeightMedium: p = 500,
493
+ fontWeightBold: g = 700,
494
+ // Tell MUI what's the font-size on the html element.
495
+ // 16px is the default font-size used by browsers.
496
+ htmlFontSize: f = 16,
497
+ // Apply the CSS properties to all the variants.
498
+ allVariants: u,
499
+ pxToRem: h
500
+ } = r, c = T(r, be);
501
+ process.env.NODE_ENV !== "production" && (typeof s != "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 $ = s / 14, y = h || ((b) => `${b / f * $}rem`), a = (b, I, C, H, L) => m({
503
+ fontFamily: n,
504
+ fontWeight: b,
505
+ fontSize: y(I),
506
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
507
+ lineHeight: C
508
+ }, n === P ? {
509
+ letterSpacing: `${me(H / I)}em`
510
+ } : {}, L, u), l = {
511
+ h1: a(d, 96, 1.167, -1.5),
512
+ h2: a(d, 60, 1.2, -0.5),
513
+ h3: a(i, 48, 1.167, 0),
514
+ h4: a(i, 34, 1.235, 0.25),
515
+ h5: a(i, 24, 1.334, 0),
516
+ h6: a(p, 20, 1.6, 0.15),
517
+ subtitle1: a(i, 16, 1.75, 0.15),
518
+ subtitle2: a(p, 14, 1.57, 0.1),
519
+ body1: a(i, 16, 1.5, 0.15),
520
+ body2: a(i, 14, 1.43, 0.15),
521
+ button: a(p, 14, 1.75, 0.4, W),
522
+ caption: a(i, 12, 1.66, 0.4),
523
+ overline: a(i, 12, 2.66, 1, W),
524
+ inherit: {
525
+ fontFamily: "inherit",
526
+ fontWeight: "inherit",
527
+ fontSize: "inherit",
528
+ lineHeight: "inherit",
529
+ letterSpacing: "inherit"
530
+ }
531
+ };
532
+ return M(m({
533
+ htmlFontSize: f,
534
+ pxToRem: y,
535
+ fontFamily: n,
536
+ fontSize: s,
537
+ fontWeightLight: d,
538
+ fontWeightRegular: i,
539
+ fontWeightMedium: p,
540
+ fontWeightBold: g
541
+ }, l), c, {
542
+ clone: !1
543
+ // No need to clone deep
544
+ });
545
+ }
546
+ const $e = 0.2, Oe = 0.14, xe = 0.12;
547
+ function o(...e) {
548
+ return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$e})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Oe})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xe})`].join(",");
549
+ }
550
+ const ve = ["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)], Ae = ["duration", "easing", "delay"], ke = {
551
+ // This is the most common easing curve.
552
+ easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
553
+ // Objects enter the screen at full velocity from off-screen and
554
+ // slowly decelerate to a resting point.
555
+ easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
556
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
557
+ easeIn: "cubic-bezier(0.4, 0, 1, 1)",
558
+ // The sharp curve is used by objects that may return to the screen at any time.
559
+ sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
560
+ }, we = {
561
+ shortest: 150,
562
+ shorter: 200,
563
+ short: 250,
564
+ // most basic recommended timing
565
+ standard: 300,
566
+ // this is to be used in complex animations
567
+ complex: 375,
568
+ // recommended when something is entering screen
569
+ enteringScreen: 225,
570
+ // recommended when something is leaving screen
571
+ leavingScreen: 195
572
+ };
573
+ function B(e) {
574
+ return `${Math.round(e)}ms`;
575
+ }
576
+ function Ee(e) {
577
+ if (!e)
578
+ return 0;
579
+ const t = e / 36;
580
+ return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
581
+ }
582
+ function Me(e) {
583
+ const t = m({}, ke, e.easing), r = m({}, we, e.duration);
584
+ return m({
585
+ getAutoHeightDuration: Ee,
586
+ create: (s = ["all"], d = {}) => {
587
+ const {
588
+ duration: i = r.standard,
589
+ easing: p = t.easeInOut,
590
+ delay: g = 0
591
+ } = d, f = T(d, Ae);
592
+ if (process.env.NODE_ENV !== "production") {
593
+ const u = (c) => typeof c == "string", h = (c) => !isNaN(parseFloat(c));
594
+ !u(s) && !Array.isArray(s) && console.error('MUI: Argument "props" must be a string or Array.'), !h(i) && !u(i) && console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`), u(p) || console.error('MUI: Argument "easing" must be a string.'), !h(g) && !u(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
+ }
596
+ return (Array.isArray(s) ? s : [s]).map((u) => `${u} ${typeof i == "string" ? i : B(i)} ${p} ${typeof g == "string" ? g : B(g)}`).join(",");
597
+ }
598
+ }, e, {
599
+ easing: t,
600
+ duration: r
601
+ });
602
+ }
603
+ const Ne = {
604
+ mobileStepper: 1e3,
605
+ fab: 1050,
606
+ speedDial: 1050,
607
+ appBar: 1100,
608
+ drawer: 1200,
609
+ modal: 1300,
610
+ snackbar: 1400,
611
+ tooltip: 1500
612
+ }, Se = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
613
+ function Ie(e = {}, ...t) {
614
+ const {
615
+ mixins: r = {},
616
+ palette: n = {},
617
+ transitions: s = {},
618
+ typography: d = {}
619
+ } = e, i = T(e, Se);
620
+ if (e.vars)
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 = he(n), g = q(e);
623
+ let f = M(g, {
624
+ mixins: ie(g.breakpoints, r),
625
+ palette: p,
626
+ // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
627
+ shadows: ve.slice(),
628
+ typography: ye(p, d),
629
+ transitions: Me(s),
630
+ zIndex: m({}, Ne)
631
+ });
632
+ if (f = M(f, i), f = t.reduce((u, h) => M(u, h), f), process.env.NODE_ENV !== "production") {
633
+ const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (c, $) => {
634
+ let y;
635
+ for (y in c) {
636
+ const a = c[y];
637
+ if (u.indexOf(y) !== -1 && Object.keys(a).length > 0) {
638
+ if (process.env.NODE_ENV !== "production") {
639
+ const l = ee("", y);
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
+ root: {
642
+ [`&.${l}`]: a
643
+ }
644
+ }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
645
+ `));
646
+ }
647
+ c[y] = {};
648
+ }
649
+ }
650
+ };
651
+ Object.keys(f.components).forEach((c) => {
652
+ const $ = f.components[c].styleOverrides;
653
+ $ && c.indexOf("Mui") === 0 && h($, c);
654
+ });
655
+ }
656
+ return f.unstable_sxConfig = m({}, J, i == null ? void 0 : i.unstable_sxConfig), f.unstable_sx = function(h) {
657
+ return K({
658
+ sx: h,
659
+ theme: this
660
+ });
661
+ }, f;
662
+ }
663
+ const Te = Ie(), _e = (e) => G(e) && e !== "classes", Ve = G, Fe = X({
664
+ defaultTheme: Te,
665
+ rootShouldForwardProp: _e
666
+ });
667
+ export {
668
+ Q as C,
669
+ Ue as a,
670
+ Ve as b,
671
+ Ie as c,
672
+ Te as d,
673
+ we as e,
674
+ ee as g,
675
+ _e as r,
676
+ Fe as s
677
+ };
@@ -0,0 +1,10 @@
1
+ import * as o from "react";
2
+ import { d as r } from "./styled-Dm8rXzIG.js";
3
+ import { b as t } from "./useThemeProps-BXn-nVhw.js";
4
+ function u() {
5
+ const e = t(r);
6
+ return process.env.NODE_ENV !== "production" && o.useDebugValue(e), e;
7
+ }
8
+ export {
9
+ u
10
+ };