@hybridcore/ui 1.3.6 → 1.4.0

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/AccordionDetails-CGs6GZQK.js +454 -0
  2. package/dist/Add-eepk2WTM.js +379 -0
  3. package/dist/Box-BPyg-Ybm.js +70 -0
  4. package/dist/Button-DLwB_sKd.js +354 -0
  5. package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
  6. package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
  7. package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
  8. package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
  9. package/dist/Delete-OHEw9lDi.js +22 -0
  10. package/dist/DialogContent-CxOSq6h9.js +519 -0
  11. package/dist/FormControlLabel-D9KFjcIx.js +193 -0
  12. package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
  13. package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
  14. package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
  15. package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
  16. package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
  17. package/dist/ListItem-CZbZ91vp.js +428 -0
  18. package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
  19. package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
  20. package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
  21. package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
  22. package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
  23. package/dist/Tabs-BzelDJKy.js +787 -0
  24. package/dist/TextField-D87qTh1k.js +457 -0
  25. package/dist/Typography-Bm7PFqUT.js +176 -0
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index2.css +1 -1
  28. package/dist/components/card/index.js +6 -6
  29. package/dist/components/card/styled.js +1 -1
  30. package/dist/components/collapsible-card/style.js +20 -466
  31. package/dist/components/confirm/dialog.js +8 -149
  32. package/dist/components/confirm/index.js +1 -1
  33. package/dist/components/container/index.js +7 -7
  34. package/dist/components/context-menu/index.js +191 -604
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +12 -6
  36. package/dist/components/data-security-selectors/security-level/index.js +46 -45
  37. package/dist/components/date-time-picker/index.js +85 -64
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +16 -16
  40. package/dist/components/geometry-picker/geometry/index.js +35 -35
  41. package/dist/components/geometry-picker/index.js +60 -56
  42. package/dist/components/geometry-picker/kml/index.js +14 -14
  43. package/dist/components/geometry-picker/map/index.js +1 -1
  44. package/dist/components/geometry-picker/map/logic.js +38 -37
  45. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
  46. package/dist/components/geometry-picker/parser/logic.js +33 -32
  47. package/dist/components/geometry-picker/styled.js +22 -14
  48. package/dist/components/icon-button/index.js +1 -1
  49. package/dist/components/icon-button/styled.js +0 -2
  50. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
  51. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +15 -6
  52. package/dist/components/instance-form/components/variable/index.js +19 -0
  53. package/dist/components/instance-form/components/variables/index.js +40 -0
  54. package/dist/components/{data-management/instance-form → instance-form}/index.js +174 -155
  55. package/dist/components/instance-hierarchy-table/index.js +58 -0
  56. package/dist/components/instance-hierarchy-table/styled.js +29 -0
  57. package/dist/components/instance-table/index.js +125 -0
  58. package/dist/components/instance-table/styled.js +13 -0
  59. package/dist/components/map/helpers/ol.js +1 -1
  60. package/dist/components/map/index.js +1 -1
  61. package/dist/components/map/logic.js +1 -1
  62. package/dist/components/map/styled.js +1 -1
  63. package/dist/components/phone-input/index.js +1 -1
  64. package/dist/components/property-mapping/index.js +558 -0
  65. package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
  66. package/dist/components/range-selector/components/date-range/index.js +9 -0
  67. package/dist/components/range-selector/components/geometry-range/index.js +26 -0
  68. package/dist/components/range-selector/components/number-range/index.js +86 -0
  69. package/dist/components/range-selector/components/string-range/index.js +31 -0
  70. package/dist/components/range-selector/index.js +59 -0
  71. package/dist/components/search-input/index.js +4 -4
  72. package/dist/components/tabs/appleTabs.style.js +55 -0
  73. package/dist/components/tabs/index.js +93 -0
  74. package/dist/components/tabs/tab-panel.js +18 -0
  75. package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
  76. package/dist/components/template-form/components/property-list/index.js +72 -0
  77. package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
  78. package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
  79. package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
  80. package/dist/components/template-form/components/property-list/types.js +8 -0
  81. package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
  82. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
  83. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
  84. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
  85. package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
  86. package/dist/components/template-form/components/select-icon/index.js +186 -0
  87. package/dist/components/template-form/components/select-icon/styled.js +76 -0
  88. package/dist/components/template-form/index.js +338 -0
  89. package/dist/components/template-property-filters/property.js +48 -46
  90. package/dist/components/tree-select/index.js +51 -49
  91. package/dist/components/tree-select/styled.js +2 -2
  92. package/dist/components/treeview-filter/index.js +8 -8
  93. package/dist/components/treeview-filter/item/index.js +1 -1
  94. package/dist/components/treeview-filter/item-label/index.js +18 -17
  95. package/dist/constants/index.js +41 -0
  96. package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
  97. package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
  98. package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
  99. package/dist/dialog-v5-nL5yy.js +153 -0
  100. package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
  101. package/dist/extendSxProp-qqdkfHzS.js +30 -0
  102. package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
  103. package/dist/index-C1fczHEW.js +11042 -0
  104. package/dist/index-DPf5olog.js +288 -0
  105. package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
  106. package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
  107. package/dist/main.d.ts +569 -81
  108. package/dist/main.js +157 -157
  109. package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
  110. package/dist/property-list-form-BfP9gzSo.js +391 -0
  111. package/dist/requirePropFactory-BjhhI-AW.js +18 -0
  112. package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
  113. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  114. package/dist/useControlled-BYdyS7Pn.js +31 -0
  115. package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
  116. package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
  117. package/dist/utils/ontology.js +52 -30
  118. package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
  119. package/package.json +2 -1
  120. package/dist/DialogContent-BCYm_d1s.js +0 -864
  121. package/dist/FormControlLabel-DENNVXWL.js +0 -639
  122. package/dist/Typography-Dg-ROiTA.js +0 -201
  123. package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
  124. package/dist/components/data-management/instance-form/components/variables/index.js +0 -39
  125. package/dist/createSvgIcon-B2WT0K4k.js +0 -87
  126. package/dist/index-B3Oj04nl.js +0 -287
  127. package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
  128. package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
@@ -1,17 +1,17 @@
1
- import { a as G, _ as a } from "./extends-Cyw62AD_.js";
1
+ import { a as G, _ as a } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
2
2
  import * as i from "react";
3
- import { P as e, a as K, f as Ve } from "./createStyled-B96gjom1.js";
4
- import { d as Ue, g as ee, u as oe, c as V, a as ne } from "./useThemeProps-DeftUmqJ.js";
5
- import { u as fe, F as Ee } from "./useFormControl-CatNKXAi.js";
6
- import { d as Ge, g as re, s as _, r as Ke } from "./styled-cPJbqF0E.js";
3
+ import { P as e, a as K, f as Ve } from "./createStyled-BzvgQjjR.js";
4
+ import { d as Ue, g as ee, u as oe, c as V, a as ne } from "./useThemeProps-uYx_RkOH.js";
5
+ import { g as re, s as _, b as Ge, r as Ke } from "./styled-LNCprp4n.js";
6
+ import { F as Ee, u as fe } from "./useFormControl-CatNKXAi.js";
7
7
  import { jsxs as U, jsx as N } from "react/jsx-runtime";
8
- import { a as Ne, u as ke, e as Ye, r as Ze } from "./ButtonBase-D6qhsxB0.js";
8
+ import { i as ce } from "./isMuiElement-CxT3_ACP.js";
9
+ import { a as Ne, u as ke, e as Ye, r as Ze } from "./ButtonBase-D0qccOVb.js";
9
10
  import * as Je from "react-dom";
10
11
  import { o as we } from "./ownerWindow-niciwP7I.js";
11
12
  import { d as Qe } from "./debounce-46wSf_lW.js";
12
13
  import { i as Oe } from "./isHostComponent-kiaBvYVo.js";
13
14
  import { Global as Xe } from "@emotion/react";
14
- import { i as ce } from "./isMuiElement-CxT3_ACP.js";
15
15
  const eo = ["onChange", "maxRows", "minRows", "style", "value"];
16
16
  function X(o) {
17
17
  return parseInt(o, 10) || 0;
@@ -38,7 +38,7 @@ const Fe = /* @__PURE__ */ i.forwardRef(function(n, r) {
38
38
  const {
39
39
  onChange: t,
40
40
  maxRows: s,
41
- minRows: d = 1,
41
+ minRows: u = 1,
42
42
  style: h,
43
43
  value: g
44
44
  } = n, p = G(n, eo), {
@@ -46,66 +46,66 @@ const Fe = /* @__PURE__ */ i.forwardRef(function(n, r) {
46
46
  } = i.useRef(g != null), b = i.useRef(null), C = Ne(r, b), w = i.useRef(null), T = i.useRef(0), [E, k] = i.useState({
47
47
  outerHeightStyle: 0
48
48
  }), F = i.useCallback(() => {
49
- const u = b.current, y = we(u).getComputedStyle(u);
49
+ const d = b.current, y = we(d).getComputedStyle(d);
50
50
  if (y.width === "0px")
51
51
  return {
52
52
  outerHeightStyle: 0
53
53
  };
54
54
  const f = w.current;
55
- f.style.width = y.width, f.value = u.value || n.placeholder || "x", f.value.slice(-1) === `
55
+ f.style.width = y.width, f.value = d.value || n.placeholder || "x", f.value.slice(-1) === `
56
56
  ` && (f.value += " ");
57
57
  const I = y.boxSizing, L = X(y.paddingBottom) + X(y.paddingTop), A = X(y.borderBottomWidth) + X(y.borderTopWidth), P = f.scrollHeight;
58
58
  f.value = "x";
59
59
  const O = f.scrollHeight;
60
60
  let v = P;
61
- d && (v = Math.max(Number(d) * O, v)), s && (v = Math.min(Number(s) * O, v)), v = Math.max(v, O);
61
+ u && (v = Math.max(Number(u) * O, v)), s && (v = Math.min(Number(s) * O, v)), v = Math.max(v, O);
62
62
  const M = v + (I === "border-box" ? L + A : 0), Y = Math.abs(v - P) <= 1;
63
63
  return {
64
64
  outerHeightStyle: M,
65
65
  overflow: Y
66
66
  };
67
- }, [s, d, n.placeholder]), B = (u, x) => {
67
+ }, [s, u, n.placeholder]), B = (d, x) => {
68
68
  const {
69
69
  outerHeightStyle: y,
70
70
  overflow: f
71
71
  } = x;
72
- return T.current < 20 && (y > 0 && Math.abs((u.outerHeightStyle || 0) - y) > 1 || u.overflow !== f) ? (T.current += 1, {
72
+ return T.current < 20 && (y > 0 && Math.abs((d.outerHeightStyle || 0) - y) > 1 || d.overflow !== f) ? (T.current += 1, {
73
73
  overflow: f,
74
74
  outerHeightStyle: y
75
75
  }) : (process.env.NODE_ENV !== "production" && T.current === 20 && console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
76
- `)), u);
76
+ `)), d);
77
77
  }, S = i.useCallback(() => {
78
- const u = F();
79
- Te(u) || k((x) => B(x, u));
78
+ const d = F();
79
+ Te(d) || k((x) => B(x, d));
80
80
  }, [F]), j = () => {
81
- const u = F();
82
- Te(u) || Je.flushSync(() => {
83
- k((x) => B(x, u));
81
+ const d = F();
82
+ Te(d) || Je.flushSync(() => {
83
+ k((x) => B(x, d));
84
84
  });
85
85
  };
86
86
  i.useEffect(() => {
87
- const u = Qe(() => {
87
+ const d = Qe(() => {
88
88
  T.current = 0, b.current && j();
89
89
  });
90
90
  let x;
91
91
  const y = b.current, f = we(y);
92
- return f.addEventListener("resize", u), typeof ResizeObserver < "u" && (x = new ResizeObserver(u), x.observe(y)), () => {
93
- u.clear(), f.removeEventListener("resize", u), x && x.disconnect();
92
+ return f.addEventListener("resize", d), typeof ResizeObserver < "u" && (x = new ResizeObserver(d), x.observe(y)), () => {
93
+ d.clear(), f.removeEventListener("resize", d), x && x.disconnect();
94
94
  };
95
95
  }), ke(() => {
96
96
  S();
97
97
  }), i.useEffect(() => {
98
98
  T.current = 0;
99
99
  }, [g]);
100
- const W = (u) => {
101
- T.current = 0, l || S(), t && t(u);
100
+ const W = (d) => {
101
+ T.current = 0, l || S(), t && t(d);
102
102
  };
103
103
  return /* @__PURE__ */ U(i.Fragment, {
104
104
  children: [/* @__PURE__ */ N("textarea", a({
105
105
  value: g,
106
106
  onChange: W,
107
107
  ref: C,
108
- rows: d,
108
+ rows: u,
109
109
  style: a({
110
110
  height: E.outerHeightStyle,
111
111
  // Need a large enough difference to allow scrolling.
@@ -203,6 +203,226 @@ process.env.NODE_ENV !== "production" && (Ie.propTypes = {
203
203
  */
204
204
  themeId: e.string
205
205
  });
206
+ function Re(o) {
207
+ return o != null && !(Array.isArray(o) && o.length === 0);
208
+ }
209
+ function Ae(o, n = !1) {
210
+ return o && (Re(o.value) && o.value !== "" || n && Re(o.defaultValue) && o.defaultValue !== "");
211
+ }
212
+ function ro(o) {
213
+ return o.startAdornment;
214
+ }
215
+ function to(o) {
216
+ return re("MuiFormControl", o);
217
+ }
218
+ ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
219
+ const so = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], io = (o) => {
220
+ const {
221
+ classes: n,
222
+ margin: r,
223
+ fullWidth: t
224
+ } = o, s = {
225
+ root: ["root", r !== "none" && `margin${K(r)}`, t && "fullWidth"]
226
+ };
227
+ return ne(s, to, n);
228
+ }, ao = _("div", {
229
+ name: "MuiFormControl",
230
+ slot: "Root",
231
+ overridesResolver: ({
232
+ ownerState: o
233
+ }, n) => a({}, n.root, n[`margin${K(o.margin)}`], o.fullWidth && n.fullWidth)
234
+ })(({
235
+ ownerState: o
236
+ }) => a({
237
+ display: "inline-flex",
238
+ flexDirection: "column",
239
+ position: "relative",
240
+ // Reset fieldset default style.
241
+ minWidth: 0,
242
+ padding: 0,
243
+ margin: 0,
244
+ border: 0,
245
+ verticalAlign: "top"
246
+ }, o.margin === "normal" && {
247
+ marginTop: 16,
248
+ marginBottom: 8
249
+ }, o.margin === "dense" && {
250
+ marginTop: 8,
251
+ marginBottom: 4
252
+ }, o.fullWidth && {
253
+ width: "100%"
254
+ })), lo = /* @__PURE__ */ i.forwardRef(function(n, r) {
255
+ const t = oe({
256
+ props: n,
257
+ name: "MuiFormControl"
258
+ }), {
259
+ children: s,
260
+ className: u,
261
+ color: h = "primary",
262
+ component: g = "div",
263
+ disabled: p = !1,
264
+ error: l = !1,
265
+ focused: b,
266
+ fullWidth: C = !1,
267
+ hiddenLabel: w = !1,
268
+ margin: T = "none",
269
+ required: E = !1,
270
+ size: k = "medium",
271
+ variant: F = "outlined"
272
+ } = t, B = G(t, so), S = a({}, t, {
273
+ color: h,
274
+ component: g,
275
+ disabled: p,
276
+ error: l,
277
+ fullWidth: C,
278
+ hiddenLabel: w,
279
+ margin: T,
280
+ required: E,
281
+ size: k,
282
+ variant: F
283
+ }), j = io(S), [W, d] = i.useState(() => {
284
+ let O = !1;
285
+ return s && i.Children.forEach(s, (v) => {
286
+ if (!ce(v, ["Input", "Select"]))
287
+ return;
288
+ const M = ce(v, ["Select"]) ? v.props.input : v;
289
+ M && ro(M.props) && (O = !0);
290
+ }), O;
291
+ }), [x, y] = i.useState(() => {
292
+ let O = !1;
293
+ return s && i.Children.forEach(s, (v) => {
294
+ ce(v, ["Input", "Select"]) && Ae(v.props, !0) && (O = !0);
295
+ }), O;
296
+ }), [f, I] = i.useState(!1);
297
+ p && f && I(!1);
298
+ const L = b !== void 0 && !p ? b : f;
299
+ let A;
300
+ if (process.env.NODE_ENV !== "production") {
301
+ const O = i.useRef(!1);
302
+ A = () => (O.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
303
+ `)), O.current = !0, () => {
304
+ O.current = !1;
305
+ });
306
+ }
307
+ const P = i.useMemo(() => ({
308
+ adornedStart: W,
309
+ setAdornedStart: d,
310
+ color: h,
311
+ disabled: p,
312
+ error: l,
313
+ filled: x,
314
+ focused: L,
315
+ fullWidth: C,
316
+ hiddenLabel: w,
317
+ size: k,
318
+ onBlur: () => {
319
+ I(!1);
320
+ },
321
+ onEmpty: () => {
322
+ y(!1);
323
+ },
324
+ onFilled: () => {
325
+ y(!0);
326
+ },
327
+ onFocus: () => {
328
+ I(!0);
329
+ },
330
+ registerEffect: A,
331
+ required: E,
332
+ variant: F
333
+ }), [W, h, p, l, x, L, C, w, A, E, k, F]);
334
+ return /* @__PURE__ */ N(Ee.Provider, {
335
+ value: P,
336
+ children: /* @__PURE__ */ N(ao, a({
337
+ as: g,
338
+ ownerState: S,
339
+ className: V(j.root, u),
340
+ ref: r
341
+ }, B, {
342
+ children: s
343
+ }))
344
+ });
345
+ });
346
+ process.env.NODE_ENV !== "production" && (lo.propTypes = {
347
+ // ----------------------------- Warning --------------------------------
348
+ // | These PropTypes are generated from the TypeScript type definitions |
349
+ // | To update them edit the d.ts file and run "yarn proptypes" |
350
+ // ----------------------------------------------------------------------
351
+ /**
352
+ * The content of the component.
353
+ */
354
+ children: e.node,
355
+ /**
356
+ * Override or extend the styles applied to the component.
357
+ */
358
+ classes: e.object,
359
+ /**
360
+ * @ignore
361
+ */
362
+ className: e.string,
363
+ /**
364
+ * The color of the component.
365
+ * It supports both default and custom theme colors, which can be added as shown in the
366
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
367
+ * @default 'primary'
368
+ */
369
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
370
+ /**
371
+ * The component used for the root node.
372
+ * Either a string to use a HTML element or a component.
373
+ */
374
+ component: e.elementType,
375
+ /**
376
+ * If `true`, the label, input and helper text should be displayed in a disabled state.
377
+ * @default false
378
+ */
379
+ disabled: e.bool,
380
+ /**
381
+ * If `true`, the label is displayed in an error state.
382
+ * @default false
383
+ */
384
+ error: e.bool,
385
+ /**
386
+ * If `true`, the component is displayed in focused state.
387
+ */
388
+ focused: e.bool,
389
+ /**
390
+ * If `true`, the component will take up the full width of its container.
391
+ * @default false
392
+ */
393
+ fullWidth: e.bool,
394
+ /**
395
+ * If `true`, the label is hidden.
396
+ * This is used to increase density for a `FilledInput`.
397
+ * Be sure to add `aria-label` to the `input` element.
398
+ * @default false
399
+ */
400
+ hiddenLabel: e.bool,
401
+ /**
402
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
403
+ * @default 'none'
404
+ */
405
+ margin: e.oneOf(["dense", "none", "normal"]),
406
+ /**
407
+ * If `true`, the label will indicate that the `input` is required.
408
+ * @default false
409
+ */
410
+ required: e.bool,
411
+ /**
412
+ * The size of the component.
413
+ * @default 'medium'
414
+ */
415
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
416
+ /**
417
+ * The system prop that allows defining system overrides as well as additional CSS styles.
418
+ */
419
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
420
+ /**
421
+ * The variant to use.
422
+ * @default 'outlined'
423
+ */
424
+ variant: e.oneOf(["filled", "outlined", "standard"])
425
+ });
206
426
  function me({
207
427
  props: o,
208
428
  states: n,
@@ -210,12 +430,12 @@ function me({
210
430
  }) {
211
431
  return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
212
432
  }
213
- function Ae(o) {
433
+ function Me(o) {
214
434
  return /* @__PURE__ */ N(Ie, a({}, o, {
215
435
  defaultTheme: Ge
216
436
  }));
217
437
  }
218
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
438
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
219
439
  // ----------------------------- Warning --------------------------------
220
440
  // | These PropTypes are generated from the TypeScript type definitions |
221
441
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -227,35 +447,26 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
227
447
  __emotion_styles: e.any.isRequired
228
448
  }), e.string, e.bool])
229
449
  });
230
- function Re(o) {
231
- return o != null && !(Array.isArray(o) && o.length === 0);
232
- }
233
- function Me(o, n = !1) {
234
- return o && (Re(o.value) && o.value !== "" || n && Re(o.defaultValue) && o.defaultValue !== "");
235
- }
236
- function ro(o) {
237
- return o.startAdornment;
238
- }
239
- function to(o) {
450
+ function uo(o) {
240
451
  return re("MuiInputBase", o);
241
452
  }
242
- const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), so = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], io = (o, n) => {
453
+ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), co = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], po = (o, n) => {
243
454
  const {
244
455
  ownerState: r
245
456
  } = o;
246
457
  return [n.root, r.formControl && n.formControl, r.startAdornment && n.adornedStart, r.endAdornment && n.adornedEnd, r.error && n.error, r.size === "small" && n.sizeSmall, r.multiline && n.multiline, r.color && n[`color${K(r.color)}`], r.fullWidth && n.fullWidth, r.hiddenLabel && n.hiddenLabel];
247
- }, ao = (o, n) => {
458
+ }, fo = (o, n) => {
248
459
  const {
249
460
  ownerState: r
250
461
  } = o;
251
462
  return [n.input, r.size === "small" && n.inputSizeSmall, r.multiline && n.inputMultiline, r.type === "search" && n.inputTypeSearch, r.startAdornment && n.inputAdornedStart, r.endAdornment && n.inputAdornedEnd, r.hiddenLabel && n.inputHiddenLabel];
252
- }, lo = (o) => {
463
+ }, mo = (o) => {
253
464
  const {
254
465
  classes: n,
255
466
  color: r,
256
467
  disabled: t,
257
468
  error: s,
258
- endAdornment: d,
469
+ endAdornment: u,
259
470
  focused: h,
260
471
  formControl: g,
261
472
  fullWidth: p,
@@ -266,14 +477,14 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
266
477
  startAdornment: T,
267
478
  type: E
268
479
  } = o, k = {
269
- root: ["root", `color${K(r)}`, t && "disabled", s && "error", p && "fullWidth", h && "focused", g && "formControl", w === "small" && "sizeSmall", b && "multiline", T && "adornedStart", d && "adornedEnd", l && "hiddenLabel", C && "readOnly"],
270
- input: ["input", t && "disabled", E === "search" && "inputTypeSearch", b && "inputMultiline", w === "small" && "inputSizeSmall", l && "inputHiddenLabel", T && "inputAdornedStart", d && "inputAdornedEnd", C && "readOnly"]
480
+ root: ["root", `color${K(r)}`, t && "disabled", s && "error", p && "fullWidth", h && "focused", g && "formControl", w === "small" && "sizeSmall", b && "multiline", T && "adornedStart", u && "adornedEnd", l && "hiddenLabel", C && "readOnly"],
481
+ input: ["input", t && "disabled", E === "search" && "inputTypeSearch", b && "inputMultiline", w === "small" && "inputSizeSmall", l && "inputHiddenLabel", T && "inputAdornedStart", u && "inputAdornedEnd", C && "readOnly"]
271
482
  };
272
- return ne(k, to, n);
273
- }, uo = _("div", {
483
+ return ne(k, uo, n);
484
+ }, bo = _("div", {
274
485
  name: "MuiInputBase",
275
486
  slot: "Root",
276
- overridesResolver: io
487
+ overridesResolver: po
277
488
  })(({
278
489
  theme: o,
279
490
  ownerState: n
@@ -297,10 +508,10 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
297
508
  paddingTop: 1
298
509
  }), n.fullWidth && {
299
510
  width: "100%"
300
- })), co = _("input", {
511
+ })), ho = _("input", {
301
512
  name: "MuiInputBase",
302
513
  slot: "Input",
303
- overridesResolver: ao
514
+ overridesResolver: fo
304
515
  })(({
305
516
  theme: o,
306
517
  ownerState: n
@@ -317,7 +528,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
317
528
  })
318
529
  }), s = {
319
530
  opacity: "0 !important"
320
- }, d = o.vars ? {
531
+ }, u = o.vars ? {
321
532
  opacity: o.vars.opacity.inputPlaceholder
322
533
  } : {
323
534
  opacity: r ? 0.42 : 0.5
@@ -369,12 +580,12 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
369
580
  // IE11
370
581
  "&::-ms-input-placeholder": s,
371
582
  // Edge
372
- "&:focus::-webkit-input-placeholder": d,
373
- "&:focus::-moz-placeholder": d,
583
+ "&:focus::-webkit-input-placeholder": u,
584
+ "&:focus::-moz-placeholder": u,
374
585
  // Firefox 19+
375
- "&:focus:-ms-input-placeholder": d,
586
+ "&:focus:-ms-input-placeholder": u,
376
587
  // IE11
377
- "&:focus::-ms-input-placeholder": d
588
+ "&:focus::-ms-input-placeholder": u
378
589
  // Edge
379
590
  },
380
591
  [`&.${pe.disabled}`]: {
@@ -398,7 +609,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
398
609
  // Improve type search style.
399
610
  MozAppearance: "textfield"
400
611
  });
401
- }), po = /* @__PURE__ */ N(Ae, {
612
+ }), yo = /* @__PURE__ */ N(Me, {
402
613
  styles: {
403
614
  "@keyframes mui-auto-fill": {
404
615
  from: {
@@ -411,13 +622,13 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
411
622
  }
412
623
  }
413
624
  }
414
- }), fo = /* @__PURE__ */ i.forwardRef(function(n, r) {
625
+ }), go = /* @__PURE__ */ i.forwardRef(function(n, r) {
415
626
  var t;
416
627
  const s = oe({
417
628
  props: n,
418
629
  name: "MuiInputBase"
419
630
  }), {
420
- "aria-describedby": d,
631
+ "aria-describedby": u,
421
632
  autoComplete: h,
422
633
  autoFocus: g,
423
634
  className: p,
@@ -433,7 +644,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
433
644
  inputProps: S = {},
434
645
  inputRef: j,
435
646
  maxRows: W,
436
- minRows: u,
647
+ minRows: d,
437
648
  multiline: x = !1,
438
649
  name: y,
439
650
  onBlur: f,
@@ -451,7 +662,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
451
662
  startAdornment: $,
452
663
  type: ye = "text",
453
664
  value: Le
454
- } = s, Be = G(s, so), J = S.value != null ? S.value : Le, {
665
+ } = s, Be = G(s, co), J = S.value != null ? S.value : Le, {
455
666
  current: te
456
667
  } = i.useRef(J != null), D = i.useRef(), Pe = i.useCallback((c) => {
457
668
  process.env.NODE_ENV !== "production" && c && c.nodeName !== "INPUT" && !c.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
@@ -470,7 +681,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
470
681
  !m && w && se && (ie(!1), f && f());
471
682
  }, [m, w, se, f]);
472
683
  const ae = m && m.onFilled, le = m && m.onEmpty, q = i.useCallback((c) => {
473
- Me(c) ? ae && ae() : le && le();
684
+ Ae(c) ? ae && ae() : le && le();
474
685
  }, [ae, le]);
475
686
  ke(() => {
476
687
  te && q({
@@ -502,16 +713,16 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
502
713
  const qe = (c) => {
503
714
  D.current && c.currentTarget === c.target && D.current.focus(), L && L(c);
504
715
  };
505
- let de = B, z = S;
506
- x && de === "input" && (Z ? (process.env.NODE_ENV !== "production" && (u || W) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), z = a({
716
+ let ue = B, z = S;
717
+ x && ue === "input" && (Z ? (process.env.NODE_ENV !== "production" && (d || W) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), z = a({
507
718
  type: void 0,
508
719
  minRows: Z,
509
720
  maxRows: Z
510
721
  }, z)) : z = a({
511
722
  type: void 0,
512
723
  maxRows: W,
513
- minRows: u
514
- }, z), de = Fe);
724
+ minRows: d
725
+ }, z), ue = Fe);
515
726
  const He = (c) => {
516
727
  q(c.animationName === "mui-auto-fill-cancel" ? D.current : {
517
728
  value: "x"
@@ -533,21 +744,21 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
533
744
  size: R.size,
534
745
  startAdornment: $,
535
746
  type: ye
536
- }), ge = lo(Q), ve = he.root || l.Root || uo, ue = be.root || b.root || {}, xe = he.input || l.Input || co;
747
+ }), ge = mo(Q), ve = he.root || l.Root || bo, de = be.root || b.root || {}, xe = he.input || l.Input || ho;
537
748
  return z = a({}, z, (t = be.input) != null ? t : b.input), /* @__PURE__ */ U(i.Fragment, {
538
- children: [!T && po, /* @__PURE__ */ U(ve, a({}, ue, !Oe(ve) && {
539
- ownerState: a({}, Q, ue.ownerState)
749
+ children: [!T && yo, /* @__PURE__ */ U(ve, a({}, de, !Oe(ve) && {
750
+ ownerState: a({}, Q, de.ownerState)
540
751
  }, {
541
752
  ref: r,
542
753
  onClick: qe
543
754
  }, Be, {
544
- className: V(ge.root, ue.className, p, M && "MuiInputBase-readOnly"),
755
+ className: V(ge.root, de.className, p, M && "MuiInputBase-readOnly"),
545
756
  children: [$, /* @__PURE__ */ N(Ee.Provider, {
546
757
  value: null,
547
758
  children: /* @__PURE__ */ N(xe, a({
548
759
  ownerState: Q,
549
760
  "aria-invalid": R.error,
550
- "aria-describedby": d,
761
+ "aria-describedby": u,
551
762
  autoComplete: h,
552
763
  autoFocus: g,
553
764
  defaultValue: C,
@@ -564,7 +775,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
564
775
  onKeyUp: O,
565
776
  type: ye
566
777
  }, z, !Oe(xe) && {
567
- as: de,
778
+ as: ue,
568
779
  ownerState: a({}, Q, z.ownerState)
569
780
  }, {
570
781
  ref: De,
@@ -579,7 +790,7 @@ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
579
790
  }))]
580
791
  });
581
792
  });
582
- process.env.NODE_ENV !== "production" && (fo.propTypes = {
793
+ process.env.NODE_ENV !== "production" && (go.propTypes = {
583
794
  // ----------------------------- Warning --------------------------------
584
795
  // | These PropTypes are generated from the TypeScript type definitions |
585
796
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -809,24 +1020,24 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
809
1020
  */
810
1021
  value: e.any
811
1022
  });
812
- function mo(o) {
1023
+ function vo(o) {
813
1024
  return re("MuiFormLabel", o);
814
1025
  }
815
- const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), bo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], ho = (o) => {
1026
+ const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), xo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], Co = (o) => {
816
1027
  const {
817
1028
  classes: n,
818
1029
  color: r,
819
1030
  focused: t,
820
1031
  disabled: s,
821
- error: d,
1032
+ error: u,
822
1033
  filled: h,
823
1034
  required: g
824
1035
  } = o, p = {
825
- root: ["root", `color${K(r)}`, s && "disabled", d && "error", h && "filled", t && "focused", g && "required"],
826
- asterisk: ["asterisk", d && "error"]
1036
+ root: ["root", `color${K(r)}`, s && "disabled", u && "error", h && "filled", t && "focused", g && "required"],
1037
+ asterisk: ["asterisk", u && "error"]
827
1038
  };
828
- return ne(p, mo, n);
829
- }, yo = _("label", {
1039
+ return ne(p, vo, n);
1040
+ }, So = _("label", {
830
1041
  name: "MuiFormLabel",
831
1042
  slot: "Root",
832
1043
  overridesResolver: ({
@@ -850,7 +1061,7 @@ const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
850
1061
  [`&.${H.error}`]: {
851
1062
  color: (o.vars || o).palette.error.main
852
1063
  }
853
- })), go = _("span", {
1064
+ })), wo = _("span", {
854
1065
  name: "MuiFormLabel",
855
1066
  slot: "Asterisk",
856
1067
  overridesResolver: (o, n) => n.asterisk
@@ -866,9 +1077,9 @@ const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
866
1077
  name: "MuiFormLabel"
867
1078
  }), {
868
1079
  children: s,
869
- className: d,
1080
+ className: u,
870
1081
  component: h = "label"
871
- } = t, g = G(t, bo), p = fe(), l = me({
1082
+ } = t, g = G(t, xo), p = fe(), l = me({
872
1083
  props: t,
873
1084
  muiFormControl: p,
874
1085
  states: ["color", "required", "focused", "disabled", "error", "filled"]
@@ -880,14 +1091,14 @@ const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
880
1091
  filled: l.filled,
881
1092
  focused: l.focused,
882
1093
  required: l.required
883
- }), C = ho(b);
884
- return /* @__PURE__ */ U(yo, a({
1094
+ }), C = Co(b);
1095
+ return /* @__PURE__ */ U(So, a({
885
1096
  as: h,
886
1097
  ownerState: b,
887
- className: V(C.root, d),
1098
+ className: V(C.root, u),
888
1099
  ref: r
889
1100
  }, g, {
890
- children: [s, l.required && /* @__PURE__ */ U(go, {
1101
+ children: [s, l.required && /* @__PURE__ */ U(wo, {
891
1102
  ownerState: b,
892
1103
  "aria-hidden": !0,
893
1104
  className: C.asterisk,
@@ -948,25 +1159,25 @@ process.env.NODE_ENV !== "production" && (We.propTypes = {
948
1159
  */
949
1160
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
950
1161
  });
951
- function vo(o) {
1162
+ function Oo(o) {
952
1163
  return re("MuiInputLabel", o);
953
1164
  }
954
1165
  ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
955
- const xo = ["disableAnimation", "margin", "shrink", "variant", "className"], Co = (o) => {
1166
+ const To = ["disableAnimation", "margin", "shrink", "variant", "className"], Ro = (o) => {
956
1167
  const {
957
1168
  classes: n,
958
1169
  formControl: r,
959
1170
  size: t,
960
1171
  shrink: s,
961
- disableAnimation: d,
1172
+ disableAnimation: u,
962
1173
  variant: h,
963
1174
  required: g
964
1175
  } = o, l = ne({
965
- root: ["root", r && "formControl", !d && "animated", s && "shrink", t === "small" && "sizeSmall", h],
1176
+ root: ["root", r && "formControl", !u && "animated", s && "shrink", t === "small" && "sizeSmall", h],
966
1177
  asterisk: [g && "asterisk"]
967
- }, vo, n);
1178
+ }, Oo, n);
968
1179
  return a({}, n, l);
969
- }, So = _(We, {
1180
+ }, Eo = _(We, {
970
1181
  shouldForwardProp: (o) => Ke(o) || o === "classes",
971
1182
  name: "MuiInputLabel",
972
1183
  slot: "Root",
@@ -1039,16 +1250,16 @@ const xo = ["disableAnimation", "margin", "shrink", "variant", "className"], Co
1039
1250
  // but it feels a better when it bleeds a bit on the left, so 32px.
1040
1251
  maxWidth: "calc(133% - 32px)",
1041
1252
  transform: "translate(14px, -9px) scale(0.75)"
1042
- }))), wo = /* @__PURE__ */ i.forwardRef(function(n, r) {
1253
+ }))), No = /* @__PURE__ */ i.forwardRef(function(n, r) {
1043
1254
  const t = oe({
1044
1255
  name: "MuiInputLabel",
1045
1256
  props: n
1046
1257
  }), {
1047
1258
  disableAnimation: s = !1,
1048
- shrink: d,
1259
+ shrink: u,
1049
1260
  className: h
1050
- } = t, g = G(t, xo), p = fe();
1051
- let l = d;
1261
+ } = t, g = G(t, To), p = fe();
1262
+ let l = u;
1052
1263
  typeof l > "u" && p && (l = p.filled || p.focused || p.adornedStart);
1053
1264
  const b = me({
1054
1265
  props: t,
@@ -1061,8 +1272,8 @@ const xo = ["disableAnimation", "margin", "shrink", "variant", "className"], Co
1061
1272
  size: b.size,
1062
1273
  variant: b.variant,
1063
1274
  required: b.required
1064
- }), w = Co(C);
1065
- return /* @__PURE__ */ N(So, a({
1275
+ }), w = Ro(C);
1276
+ return /* @__PURE__ */ N(Eo, a({
1066
1277
  "data-shrink": l,
1067
1278
  ownerState: C,
1068
1279
  ref: r,
@@ -1071,7 +1282,7 @@ const xo = ["disableAnimation", "margin", "shrink", "variant", "className"], Co
1071
1282
  classes: w
1072
1283
  }));
1073
1284
  });
1074
- process.env.NODE_ENV !== "production" && (wo.propTypes = {
1285
+ process.env.NODE_ENV !== "production" && (No.propTypes = {
1075
1286
  // ----------------------------- Warning --------------------------------
1076
1287
  // | These PropTypes are generated from the TypeScript type definitions |
1077
1288
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -1138,226 +1349,15 @@ process.env.NODE_ENV !== "production" && (wo.propTypes = {
1138
1349
  */
1139
1350
  variant: e.oneOf(["filled", "outlined", "standard"])
1140
1351
  });
1141
- function Oo(o) {
1142
- return re("MuiFormControl", o);
1143
- }
1144
- ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
1145
- const To = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Ro = (o) => {
1146
- const {
1147
- classes: n,
1148
- margin: r,
1149
- fullWidth: t
1150
- } = o, s = {
1151
- root: ["root", r !== "none" && `margin${K(r)}`, t && "fullWidth"]
1152
- };
1153
- return ne(s, Oo, n);
1154
- }, Eo = _("div", {
1155
- name: "MuiFormControl",
1156
- slot: "Root",
1157
- overridesResolver: ({
1158
- ownerState: o
1159
- }, n) => a({}, n.root, n[`margin${K(o.margin)}`], o.fullWidth && n.fullWidth)
1160
- })(({
1161
- ownerState: o
1162
- }) => a({
1163
- display: "inline-flex",
1164
- flexDirection: "column",
1165
- position: "relative",
1166
- // Reset fieldset default style.
1167
- minWidth: 0,
1168
- padding: 0,
1169
- margin: 0,
1170
- border: 0,
1171
- verticalAlign: "top"
1172
- }, o.margin === "normal" && {
1173
- marginTop: 16,
1174
- marginBottom: 8
1175
- }, o.margin === "dense" && {
1176
- marginTop: 8,
1177
- marginBottom: 4
1178
- }, o.fullWidth && {
1179
- width: "100%"
1180
- })), No = /* @__PURE__ */ i.forwardRef(function(n, r) {
1181
- const t = oe({
1182
- props: n,
1183
- name: "MuiFormControl"
1184
- }), {
1185
- children: s,
1186
- className: d,
1187
- color: h = "primary",
1188
- component: g = "div",
1189
- disabled: p = !1,
1190
- error: l = !1,
1191
- focused: b,
1192
- fullWidth: C = !1,
1193
- hiddenLabel: w = !1,
1194
- margin: T = "none",
1195
- required: E = !1,
1196
- size: k = "medium",
1197
- variant: F = "outlined"
1198
- } = t, B = G(t, To), S = a({}, t, {
1199
- color: h,
1200
- component: g,
1201
- disabled: p,
1202
- error: l,
1203
- fullWidth: C,
1204
- hiddenLabel: w,
1205
- margin: T,
1206
- required: E,
1207
- size: k,
1208
- variant: F
1209
- }), j = Ro(S), [W, u] = i.useState(() => {
1210
- let O = !1;
1211
- return s && i.Children.forEach(s, (v) => {
1212
- if (!ce(v, ["Input", "Select"]))
1213
- return;
1214
- const M = ce(v, ["Select"]) ? v.props.input : v;
1215
- M && ro(M.props) && (O = !0);
1216
- }), O;
1217
- }), [x, y] = i.useState(() => {
1218
- let O = !1;
1219
- return s && i.Children.forEach(s, (v) => {
1220
- ce(v, ["Input", "Select"]) && Me(v.props, !0) && (O = !0);
1221
- }), O;
1222
- }), [f, I] = i.useState(!1);
1223
- p && f && I(!1);
1224
- const L = b !== void 0 && !p ? b : f;
1225
- let A;
1226
- if (process.env.NODE_ENV !== "production") {
1227
- const O = i.useRef(!1);
1228
- A = () => (O.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1229
- `)), O.current = !0, () => {
1230
- O.current = !1;
1231
- });
1232
- }
1233
- const P = i.useMemo(() => ({
1234
- adornedStart: W,
1235
- setAdornedStart: u,
1236
- color: h,
1237
- disabled: p,
1238
- error: l,
1239
- filled: x,
1240
- focused: L,
1241
- fullWidth: C,
1242
- hiddenLabel: w,
1243
- size: k,
1244
- onBlur: () => {
1245
- I(!1);
1246
- },
1247
- onEmpty: () => {
1248
- y(!1);
1249
- },
1250
- onFilled: () => {
1251
- y(!0);
1252
- },
1253
- onFocus: () => {
1254
- I(!0);
1255
- },
1256
- registerEffect: A,
1257
- required: E,
1258
- variant: F
1259
- }), [W, h, p, l, x, L, C, w, A, E, k, F]);
1260
- return /* @__PURE__ */ N(Ee.Provider, {
1261
- value: P,
1262
- children: /* @__PURE__ */ N(Eo, a({
1263
- as: g,
1264
- ownerState: S,
1265
- className: V(j.root, d),
1266
- ref: r
1267
- }, B, {
1268
- children: s
1269
- }))
1270
- });
1271
- });
1272
- process.env.NODE_ENV !== "production" && (No.propTypes = {
1273
- // ----------------------------- Warning --------------------------------
1274
- // | These PropTypes are generated from the TypeScript type definitions |
1275
- // | To update them edit the d.ts file and run "yarn proptypes" |
1276
- // ----------------------------------------------------------------------
1277
- /**
1278
- * The content of the component.
1279
- */
1280
- children: e.node,
1281
- /**
1282
- * Override or extend the styles applied to the component.
1283
- */
1284
- classes: e.object,
1285
- /**
1286
- * @ignore
1287
- */
1288
- className: e.string,
1289
- /**
1290
- * The color of the component.
1291
- * It supports both default and custom theme colors, which can be added as shown in the
1292
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
1293
- * @default 'primary'
1294
- */
1295
- color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
1296
- /**
1297
- * The component used for the root node.
1298
- * Either a string to use a HTML element or a component.
1299
- */
1300
- component: e.elementType,
1301
- /**
1302
- * If `true`, the label, input and helper text should be displayed in a disabled state.
1303
- * @default false
1304
- */
1305
- disabled: e.bool,
1306
- /**
1307
- * If `true`, the label is displayed in an error state.
1308
- * @default false
1309
- */
1310
- error: e.bool,
1311
- /**
1312
- * If `true`, the component is displayed in focused state.
1313
- */
1314
- focused: e.bool,
1315
- /**
1316
- * If `true`, the component will take up the full width of its container.
1317
- * @default false
1318
- */
1319
- fullWidth: e.bool,
1320
- /**
1321
- * If `true`, the label is hidden.
1322
- * This is used to increase density for a `FilledInput`.
1323
- * Be sure to add `aria-label` to the `input` element.
1324
- * @default false
1325
- */
1326
- hiddenLabel: e.bool,
1327
- /**
1328
- * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
1329
- * @default 'none'
1330
- */
1331
- margin: e.oneOf(["dense", "none", "normal"]),
1332
- /**
1333
- * If `true`, the label will indicate that the `input` is required.
1334
- * @default false
1335
- */
1336
- required: e.bool,
1337
- /**
1338
- * The size of the component.
1339
- * @default 'medium'
1340
- */
1341
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
1342
- /**
1343
- * The system prop that allows defining system overrides as well as additional CSS styles.
1344
- */
1345
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1346
- /**
1347
- * The variant to use.
1348
- * @default 'outlined'
1349
- */
1350
- variant: e.oneOf(["filled", "outlined", "standard"])
1351
- });
1352
1352
  export {
1353
- No as F,
1354
- wo as I,
1355
- uo as a,
1356
- co as b,
1357
- ao as c,
1358
- fo as d,
1359
- Me as e,
1353
+ lo as F,
1354
+ No as I,
1355
+ bo as a,
1356
+ ho as b,
1357
+ fo as c,
1358
+ go as d,
1359
+ Ae as e,
1360
1360
  me as f,
1361
1361
  pe as i,
1362
- io as r
1362
+ po as r
1363
1363
  };