@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.
Files changed (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. 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((a) => {
14
- t[a] = R(e[a]);
13
+ return Object.keys(e).forEach((n) => {
14
+ t[n] = R(e[n]);
15
15
  }), t;
16
16
  }
17
- function k(e, t, a = {
17
+ function E(e, t, n = {
18
18
  clone: !0
19
19
  }) {
20
- const i = a.clone ? m({}, e) : e;
21
- return S(e) && S(t) && Object.keys(t).forEach((n) => {
22
- S(t[n]) && // Avoid prototype pollution
23
- Object.prototype.hasOwnProperty.call(e, n) && S(e[n]) ? i[n] = k(e[n], t[n], a) : a.clone ? i[n] = S(t[n]) ? R(t[n]) : t[n] : i[n] = t[n];
24
- }), i;
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 _(e) {
26
+ function j(e) {
27
27
  let t = "https://mui.com/production-error/?code=" + e;
28
- for (let a = 1; a < arguments.length; a += 1)
29
- t += "&args[]=" + encodeURIComponent(arguments[a]);
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
- const j = (e) => e, K = () => {
33
- let e = j;
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 = j;
58
+ e = D;
43
59
  }
44
60
  };
45
- }, Y = K(), Q = {
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 X(e, t, a = "Mui") {
60
- const i = Q[t];
61
- return i ? `${a}-${i}` : `${Y.generate(e)}-${t}`;
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 Z(e, t) {
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 N = {
111
+ const k = {
79
112
  black: "#000",
80
113
  white: "#fff"
81
- }, ee = {
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
- }, E = {
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
- }, te = ["mode", "contrastThreshold", "tonalOffset"], U = {
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: N.white,
202
- default: N.white
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
- }, C = {
256
+ }, I = {
224
257
  text: {
225
- primary: N.white,
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: N.white,
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 V(e, t, a, i) {
250
- const n = i.light || i, g = i.dark || i * 1.5;
251
- e[t] || (e.hasOwnProperty(a) ? e[t] = e[a] : t === "light" ? e.light = H(e.main, n) : t === "dark" && (e.dark = q(e.main, g)));
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 re(e = "light") {
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 ne(e = "light") {
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 ae(e = "light") {
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 oe(e = "light") {
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 ie(e = "light") {
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 se(e = "light") {
341
+ function le(e = "light") {
309
342
  return e === "dark" ? {
310
- main: E[400],
311
- light: E[300],
312
- dark: E[700]
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: E[500],
317
- dark: E[900]
349
+ light: T[500],
350
+ dark: T[900]
318
351
  };
319
352
  }
320
- function ce(e) {
353
+ function ge(e) {
321
354
  const {
322
355
  mode: t = "light",
323
- contrastThreshold: a = 3,
324
- tonalOffset: i = 0.2
325
- } = e, n = M(e, te), g = e.primary || re(t), s = e.secondary || ne(t), h = e.error || ae(t), b = e.info || oe(t), f = e.success || ie(t), l = e.warning || se(t);
326
- function u(r) {
327
- const d = D(r, C.text.primary) >= a ? C.text.primary : U.text.primary;
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 p = D(r, d);
330
- p < 3 && console.error([`MUI: The contrast ratio of ${p}:1 for ${d} on ${r}`, "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(`
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 d;
366
+ return u;
334
367
  }
335
368
  const c = ({
336
- color: r,
337
- name: d,
338
- mainShade: p = 500,
339
- lightShade: I = 300,
340
- darkShade: T = 700
369
+ color: o,
370
+ name: u,
371
+ mainShade: b = 500,
372
+ lightShade: C = 300,
373
+ darkShade: N = 700
341
374
  }) => {
342
- if (r = m({}, r), !r.main && r[p] && (r.main = r[p]), !r.hasOwnProperty("main"))
343
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${d ? ` (${d})` : ""} provided to augmentColor(color) is invalid.
344
- The color object needs to have a \`main\` property or a \`${p}\` property.` : _(11, d ? ` (${d})` : "", p));
345
- if (typeof r.main != "string")
346
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${d ? ` (${d})` : ""} provided to augmentColor(color) is invalid.
347
- \`color.main\` should be a string, but \`${JSON.stringify(r.main)}\` was provided instead.
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
- } });` : _(12, d ? ` (${d})` : "", JSON.stringify(r.main)));
360
- return V(r, "light", I, i), V(r, "dark", T, i), r.contrastText || (r.contrastText = u(r.main)), r;
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: C,
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.`)), k(m({
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({}, N),
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: g,
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: s,
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: h,
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: l,
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: b,
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: ee,
438
+ grey: ae,
406
439
  // Used by `getContrastText()` to maximize the contrast between
407
440
  // the background and the text.
408
- contrastThreshold: a,
441
+ contrastThreshold: n,
409
442
  // Takes a background color and returns the text color that maximizes the contrast.
410
- getContrastText: u,
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: i
417
- }, O[t]), n);
449
+ tonalOffset: r
450
+ }, O[t]), a);
418
451
  }
419
- const fe = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
420
- function de(e) {
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 z = {
456
+ const V = {
424
457
  textTransform: "uppercase"
425
- }, W = '"Roboto", "Helvetica", "Arial", sans-serif';
426
- function le(e, t) {
427
- const a = typeof t == "function" ? t(e) : t, {
428
- fontFamily: i = W,
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: n = 14,
463
+ fontSize: a = 14,
431
464
  // px
432
- fontWeightLight: g = 300,
433
- fontWeightRegular: s = 400,
434
- fontWeightMedium: h = 500,
435
- fontWeightBold: b = 700,
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: l,
441
- pxToRem: u
442
- } = a, c = M(a, fe);
443
- process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
444
- const O = n / 14, y = u || ((p) => `${p / f * O}rem`), r = (p, I, T, F, B) => m({
445
- fontFamily: i,
446
- fontWeight: p,
447
- fontSize: y(I),
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: T
450
- }, i === W ? {
451
- letterSpacing: `${de(F / I)}em`
452
- } : {}, B, l), d = {
453
- h1: r(g, 96, 1.167, -1.5),
454
- h2: r(g, 60, 1.2, -0.5),
455
- h3: r(s, 48, 1.167, 0),
456
- h4: r(s, 34, 1.235, 0.25),
457
- h5: r(s, 24, 1.334, 0),
458
- h6: r(h, 20, 1.6, 0.15),
459
- subtitle1: r(s, 16, 1.75, 0.15),
460
- subtitle2: r(h, 14, 1.57, 0.1),
461
- body1: r(s, 16, 1.5, 0.15),
462
- body2: r(s, 14, 1.43, 0.15),
463
- button: r(h, 14, 1.75, 0.4, z),
464
- caption: r(s, 12, 1.66, 0.4),
465
- overline: r(s, 12, 2.66, 1, z),
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 k(m({
507
+ return E(m({
475
508
  htmlFontSize: f,
476
509
  pxToRem: y,
477
- fontFamily: i,
478
- fontSize: n,
479
- fontWeightLight: g,
480
- fontWeightRegular: s,
481
- fontWeightMedium: h,
482
- fontWeightBold: b
483
- }, d), c, {
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 ue = 0.2, ge = 0.14, he = 0.12;
489
- function o(...e) {
490
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ue})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ge})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${he})`].join(",");
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 be = ["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)], me = ["duration", "easing", "delay"], pe = {
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
- }, ye = {
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 P(e) {
548
+ function F(e) {
516
549
  return `${Math.round(e)}ms`;
517
550
  }
518
- function Oe(e) {
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 $e(e) {
525
- const t = m({}, pe, e.easing), a = m({}, ye, e.duration);
557
+ function Se(e) {
558
+ const t = m({}, ve, e.easing), n = m({}, xe, e.duration);
526
559
  return m({
527
- getAutoHeightDuration: Oe,
528
- create: (n = ["all"], g = {}) => {
560
+ getAutoHeightDuration: we,
561
+ create: (a = ["all"], d = {}) => {
529
562
  const {
530
- duration: s = a.standard,
531
- easing: h = t.easeInOut,
532
- delay: b = 0
533
- } = g, f = M(g, me);
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 l = (c) => typeof c == "string", u = (c) => !isNaN(parseFloat(c));
536
- !l(n) && !Array.isArray(n) && console.error('MUI: Argument "props" must be a string or Array.'), !u(s) && !l(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), l(h) || console.error('MUI: Argument "easing" must be a string.'), !u(b) && !l(b) && 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(",")}].`);
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(n) ? n : [n]).map((l) => `${l} ${typeof s == "string" ? s : P(s)} ${h} ${typeof b == "string" ? b : P(b)}`).join(",");
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: a
575
+ duration: n
543
576
  });
544
577
  }
545
- const Ae = {
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
- }, ve = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
555
- function Se(e = {}, ...t) {
587
+ }, Te = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
588
+ function ke(e = {}, ...t) {
556
589
  const {
557
- mixins: a = {},
558
- palette: i = {},
559
- transitions: n = {},
560
- typography: g = {}
561
- } = e, s = M(e, ve);
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." : _(18));
564
- const h = ce(i), b = G(e);
565
- let f = k(b, {
566
- mixins: Z(b.breakpoints, a),
567
- palette: h,
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: be.slice(),
570
- typography: le(h, g),
571
- transitions: $e(n),
572
- zIndex: m({}, Ae)
602
+ shadows: $e.slice(),
603
+ typography: me(l, d),
604
+ transitions: Se(a),
605
+ zIndex: m({}, Ee)
573
606
  });
574
- if (f = k(f, s), f = t.reduce((l, u) => k(l, u), f), process.env.NODE_ENV !== "production") {
575
- const l = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], u = (c, O) => {
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 r = c[y];
579
- if (l.indexOf(y) !== -1 && Object.keys(r).length > 0) {
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 d = X("", y);
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 '&.${d}' syntax:`, JSON.stringify({
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
- [`&.${d}`]: r
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 && u(O, c);
628
+ O && c.indexOf("Mui") === 0 && h(O, c);
596
629
  });
597
630
  }
598
- return f.unstable_sxConfig = m({}, L, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(u) {
599
- return J({
600
- sx: u,
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
- Y as C,
607
- k as a,
608
- Se as c,
609
- ye as d,
610
- _ as f,
611
- X as g
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
  };