@hybridcore/ui 1.1.3 → 1.3.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 (72) hide show
  1. package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
  2. package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
  3. package/dist/Checkbox-DP6_qp1v.js +469 -0
  4. package/dist/Collapse-9egEADkh.js +296 -0
  5. package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
  6. package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
  7. package/dist/FormControlLabel-j_atSYQA.js +827 -0
  8. package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
  9. package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
  10. package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
  11. package/dist/ListItem-BFDUUjHt.js +428 -0
  12. package/dist/MenuItem-BejUFNIP.js +233 -0
  13. package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
  14. package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
  15. package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
  16. package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
  17. package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/index.js +34 -0
  21. package/dist/components/collapsible-card/style.js +575 -0
  22. package/dist/components/confirm/dialog.js +5 -5
  23. package/dist/components/container/index.js +6 -6
  24. package/dist/components/context-menu/index.js +191 -603
  25. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  26. package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
  27. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  28. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  29. package/dist/components/geometry-picker/edit/index.js +1 -1
  30. package/dist/components/geometry-picker/geometry/index.js +1 -1
  31. package/dist/components/geometry-picker/index.js +2 -2
  32. package/dist/components/geometry-picker/kml/index.js +1 -1
  33. package/dist/components/geometry-picker/map/index.js +1 -1
  34. package/dist/components/geometry-picker/map/logic.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/map/helpers/ol.js +2 -2
  37. package/dist/components/map/index.js +2 -2
  38. package/dist/components/map/logic.js +1 -1
  39. package/dist/components/map/styled.js +89 -6
  40. package/dist/components/search-input/index.js +3 -3
  41. package/dist/components/template-property-filters/index.js +78 -0
  42. package/dist/components/template-property-filters/property.js +7019 -0
  43. package/dist/components/tree-select/index.js +14 -13
  44. package/dist/components/treeview-filter/index.js +263 -328
  45. package/dist/components/treeview-filter/item/index.js +1 -1
  46. package/dist/components/treeview-filter/item-label/index.js +2 -2
  47. package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
  48. package/dist/createSvgIcon-R_PakhKf.js +213 -0
  49. package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
  50. package/dist/debounce-46wSf_lW.js +15 -0
  51. package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
  52. package/dist/index-C7W2wuUG.js +609 -0
  53. package/dist/index-DHnXB0CB.js +287 -0
  54. package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
  55. package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
  56. package/dist/main.d.ts +158 -0
  57. package/dist/main.js +33 -29
  58. package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
  59. package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
  60. package/dist/styled-CHMAYxVs.js +142 -0
  61. package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
  62. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  63. package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
  64. package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
  65. package/dist/useThemeProps-D4or2IlT.js +62 -0
  66. package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
  67. package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
  68. package/package.json +1 -1
  69. package/dist/Checkbox-DostZSwR.js +0 -673
  70. package/dist/index-Bw_m9ult.js +0 -1105
  71. package/dist/index-wW2D1aTG.js +0 -957
  72. package/dist/styled-C43K9x7T.js +0 -229
@@ -1,22 +1,23 @@
1
1
  import { _ as H, a as i } from "./extends-C3382pL0.js";
2
- import * as l from "react";
3
- import { G as Ve, P as e, c as L, l as Ue } from "./createTheme-agWfFD64.js";
4
- import { g as Y, u as Z, c as j, a as J } from "./chainPropTypes-DtBfUj5o.js";
5
- import { u as te, F as be } from "./useFormControl-CatNKXAi.js";
6
- import { d as Ge, T as Ke, g as Q, s as B, r as Ye } from "./styled-Iq9jsO4F.js";
2
+ import * as a from "react";
3
+ import { G as Ve, P as e, c as L, f as Ue } from "./createTheme-oOCi1S_n.js";
4
+ import { g as Y, u as Z, c as j, a as J } from "./chainPropTypes-BmidnkZm.js";
5
+ import { u as re, F as be } from "./useFormControl-CatNKXAi.js";
6
+ import { d as Ge, T as Ke, g as Q, s as B, r as Ye } from "./styled-Wx2vv4j8.js";
7
7
  import { jsx as E, jsxs as q } from "react/jsx-runtime";
8
- import { a as ze, u as pe, e as Ze, r as Je } from "./ButtonBase-BYmh3G5j.js";
8
+ import { a as ze, b as pe, e as Ze, r as Je } from "./ButtonBase-C7CHOX3y.js";
9
9
  import { o as Re } from "./ownerWindow-niciwP7I.js";
10
+ import { d as Qe } from "./debounce-46wSf_lW.js";
10
11
  import { i as Se } from "./isHostComponent-kiaBvYVo.js";
11
- import { u as Qe } from "./useTheme-C0Dky5rV.js";
12
- import { T as Xe } from "./Typography-XIiVCSto.js";
12
+ import { u as Xe } from "./useTheme-BI40KZ7w.js";
13
+ import { T as eo } from "./Typography-Bjo-B13o.js";
13
14
  import { i as ue } from "./isMuiElement-CxT3_ACP.js";
14
15
  function Ae({
15
16
  styles: o,
16
17
  themeId: n,
17
- defaultTheme: t = {}
18
+ defaultTheme: r = {}
18
19
  }) {
19
- const r = Qe(t), s = typeof o == "function" ? o(n && r[n] || r) : o;
20
+ const t = Xe(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
20
21
  return /* @__PURE__ */ E(Ve, {
21
22
  styles: s
22
23
  });
@@ -39,24 +40,12 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
39
40
  */
40
41
  themeId: e.string
41
42
  });
42
- function eo(o, n = 166) {
43
- let t;
44
- function r(...s) {
45
- const a = () => {
46
- o.apply(this, s);
47
- };
48
- clearTimeout(t), t = setTimeout(a, n);
49
- }
50
- return r.clear = () => {
51
- clearTimeout(t);
52
- }, r;
53
- }
54
43
  function he({
55
44
  props: o,
56
45
  states: n,
57
- muiFormControl: t
46
+ muiFormControl: r
58
47
  }) {
59
- return n.reduce((r, s) => (r[s] = o[s], t && typeof o[s] > "u" && (r[s] = t[s]), r), {});
48
+ return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
60
49
  }
61
50
  const oo = ["onChange", "maxRows", "minRows", "style", "value"];
62
51
  function ne(o) {
@@ -77,19 +66,19 @@ const no = {
77
66
  transform: "translateZ(0)"
78
67
  }
79
68
  };
80
- function to(o) {
69
+ function ro(o) {
81
70
  return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflowing;
82
71
  }
83
- const ke = /* @__PURE__ */ l.forwardRef(function(n, t) {
72
+ const ke = /* @__PURE__ */ a.forwardRef(function(n, r) {
84
73
  const {
85
- onChange: r,
74
+ onChange: t,
86
75
  maxRows: s,
87
- minRows: a = 1,
76
+ minRows: l = 1,
88
77
  style: m,
89
78
  value: y
90
79
  } = n, c = H(n, oo), {
91
80
  current: d
92
- } = l.useRef(y != null), u = l.useRef(null), g = ze(t, u), p = l.useRef(null), R = l.useRef(null), O = l.useCallback(() => {
81
+ } = a.useRef(y != null), u = a.useRef(null), g = ze(r, u), p = a.useRef(null), R = a.useRef(null), O = a.useCallback(() => {
93
82
  const v = u.current, C = Re(v).getComputedStyle(v);
94
83
  if (C.width === "0px")
95
84
  return {
@@ -102,47 +91,47 @@ const ke = /* @__PURE__ */ l.forwardRef(function(n, t) {
102
91
  const M = C.boxSizing, z = ne(C.paddingBottom) + ne(C.paddingTop), N = ne(C.borderBottomWidth) + ne(C.borderTopWidth), F = x.scrollHeight;
103
92
  x.value = "x";
104
93
  const A = x.scrollHeight;
105
- let w = F;
106
- a && (w = Math.max(Number(a) * A, w)), s && (w = Math.min(Number(s) * A, w)), w = Math.max(w, A);
107
- const W = w + (M === "border-box" ? z + N : 0), V = Math.abs(w - F) <= 1;
94
+ let T = F;
95
+ l && (T = Math.max(Number(l) * A, T)), s && (T = Math.min(Number(s) * A, T)), T = Math.max(T, A);
96
+ const W = T + (M === "border-box" ? z + N : 0), V = Math.abs(T - F) <= 1;
108
97
  return {
109
98
  outerHeightStyle: W,
110
99
  overflowing: V
111
100
  };
112
- }, [s, a, n.placeholder]), T = l.useCallback(() => {
101
+ }, [s, l, n.placeholder]), w = a.useCallback(() => {
113
102
  const v = O();
114
- if (to(v))
103
+ if (ro(v))
115
104
  return;
116
105
  const b = v.outerHeightStyle, C = u.current;
117
106
  p.current !== b && (p.current = b, C.style.height = `${b}px`), C.style.overflow = v.overflowing ? "hidden" : "";
118
107
  }, [O]);
119
108
  pe(() => {
120
109
  const v = () => {
121
- T();
110
+ w();
122
111
  };
123
112
  let b;
124
113
  const C = () => {
125
114
  cancelAnimationFrame(b), b = requestAnimationFrame(() => {
126
115
  v();
127
116
  });
128
- }, x = eo(v), M = u.current, z = Re(M);
117
+ }, x = Qe(v), M = u.current, z = Re(M);
129
118
  z.addEventListener("resize", x);
130
119
  let N;
131
120
  return typeof ResizeObserver < "u" && (N = new ResizeObserver(process.env.NODE_ENV === "test" ? C : v), N.observe(M)), () => {
132
121
  x.clear(), cancelAnimationFrame(b), z.removeEventListener("resize", x), N && N.disconnect();
133
122
  };
134
- }, [O, T]), pe(() => {
135
- T();
123
+ }, [O, w]), pe(() => {
124
+ w();
136
125
  });
137
126
  const $ = (v) => {
138
- d || T(), r && r(v);
127
+ d || w(), t && t(v);
139
128
  };
140
- return /* @__PURE__ */ q(l.Fragment, {
129
+ return /* @__PURE__ */ q(a.Fragment, {
141
130
  children: [/* @__PURE__ */ E("textarea", i({
142
131
  value: y,
143
132
  onChange: $,
144
133
  ref: g,
145
- rows: a,
134
+ rows: l,
146
135
  style: m
147
136
  }, c)), /* @__PURE__ */ E("textarea", {
148
137
  "aria-hidden": !0,
@@ -214,7 +203,7 @@ function Ne(o) {
214
203
  function fe(o, n = !1) {
215
204
  return o && (Ne(o.value) && o.value !== "" || n && Ne(o.defaultValue) && o.defaultValue !== "");
216
205
  }
217
- function ro(o) {
206
+ function to(o) {
218
207
  return o.startAdornment;
219
208
  }
220
209
  function so(o) {
@@ -222,21 +211,21 @@ function so(o) {
222
211
  }
223
212
  const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), io = ["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"], ao = (o, n) => {
224
213
  const {
225
- ownerState: t
214
+ ownerState: r
226
215
  } = o;
227
- return [n.root, t.formControl && n.formControl, t.startAdornment && n.adornedStart, t.endAdornment && n.adornedEnd, t.error && n.error, t.size === "small" && n.sizeSmall, t.multiline && n.multiline, t.color && n[`color${L(t.color)}`], t.fullWidth && n.fullWidth, t.hiddenLabel && n.hiddenLabel];
216
+ 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${L(r.color)}`], r.fullWidth && n.fullWidth, r.hiddenLabel && n.hiddenLabel];
228
217
  }, lo = (o, n) => {
229
218
  const {
230
- ownerState: t
219
+ ownerState: r
231
220
  } = o;
232
- return [n.input, t.size === "small" && n.inputSizeSmall, t.multiline && n.inputMultiline, t.type === "search" && n.inputTypeSearch, t.startAdornment && n.inputAdornedStart, t.endAdornment && n.inputAdornedEnd, t.hiddenLabel && n.inputHiddenLabel];
221
+ 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];
233
222
  }, co = (o) => {
234
223
  const {
235
224
  classes: n,
236
- color: t,
237
- disabled: r,
225
+ color: r,
226
+ disabled: t,
238
227
  error: s,
239
- endAdornment: a,
228
+ endAdornment: l,
240
229
  focused: m,
241
230
  formControl: y,
242
231
  fullWidth: c,
@@ -246,11 +235,11 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
246
235
  size: p,
247
236
  startAdornment: R,
248
237
  type: O
249
- } = o, T = {
250
- root: ["root", `color${L(t)}`, r && "disabled", s && "error", c && "fullWidth", m && "focused", y && "formControl", p && p !== "medium" && `size${L(p)}`, u && "multiline", R && "adornedStart", a && "adornedEnd", d && "hiddenLabel", g && "readOnly"],
251
- input: ["input", r && "disabled", O === "search" && "inputTypeSearch", u && "inputMultiline", p === "small" && "inputSizeSmall", d && "inputHiddenLabel", R && "inputAdornedStart", a && "inputAdornedEnd", g && "readOnly"]
238
+ } = o, w = {
239
+ root: ["root", `color${L(r)}`, t && "disabled", s && "error", c && "fullWidth", m && "focused", y && "formControl", p && p !== "medium" && `size${L(p)}`, u && "multiline", R && "adornedStart", l && "adornedEnd", d && "hiddenLabel", g && "readOnly"],
240
+ input: ["input", t && "disabled", O === "search" && "inputTypeSearch", u && "inputMultiline", p === "small" && "inputSizeSmall", d && "inputHiddenLabel", R && "inputAdornedStart", l && "inputAdornedEnd", g && "readOnly"]
252
241
  };
253
- return J(T, so, n);
242
+ return J(w, so, n);
254
243
  }, uo = B("div", {
255
244
  name: "MuiInputBase",
256
245
  slot: "Root",
@@ -286,22 +275,22 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
286
275
  theme: o,
287
276
  ownerState: n
288
277
  }) => {
289
- const t = o.palette.mode === "light", r = i({
278
+ const r = o.palette.mode === "light", t = i({
290
279
  color: "currentColor"
291
280
  }, o.vars ? {
292
281
  opacity: o.vars.opacity.inputPlaceholder
293
282
  } : {
294
- opacity: t ? 0.42 : 0.5
283
+ opacity: r ? 0.42 : 0.5
295
284
  }, {
296
285
  transition: o.transitions.create("opacity", {
297
286
  duration: o.transitions.duration.shorter
298
287
  })
299
288
  }), s = {
300
289
  opacity: "0 !important"
301
- }, a = o.vars ? {
290
+ }, l = o.vars ? {
302
291
  opacity: o.vars.opacity.inputPlaceholder
303
292
  } : {
304
- opacity: t ? 0.42 : 0.5
293
+ opacity: r ? 0.42 : 0.5
305
294
  };
306
295
  return i({
307
296
  font: "inherit",
@@ -323,12 +312,12 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
323
312
  // Fix IE11 width issue
324
313
  animationName: "mui-auto-fill-cancel",
325
314
  animationDuration: "10ms",
326
- "&::-webkit-input-placeholder": r,
327
- "&::-moz-placeholder": r,
315
+ "&::-webkit-input-placeholder": t,
316
+ "&::-moz-placeholder": t,
328
317
  // Firefox 19+
329
- "&:-ms-input-placeholder": r,
318
+ "&:-ms-input-placeholder": t,
330
319
  // IE11
331
- "&::-ms-input-placeholder": r,
320
+ "&::-ms-input-placeholder": t,
332
321
  // Edge
333
322
  "&:focus": {
334
323
  outline: 0
@@ -350,12 +339,12 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
350
339
  // IE11
351
340
  "&::-ms-input-placeholder": s,
352
341
  // Edge
353
- "&:focus::-webkit-input-placeholder": a,
354
- "&:focus::-moz-placeholder": a,
342
+ "&:focus::-webkit-input-placeholder": l,
343
+ "&:focus::-moz-placeholder": l,
355
344
  // Firefox 19+
356
- "&:focus:-ms-input-placeholder": a,
345
+ "&:focus:-ms-input-placeholder": l,
357
346
  // IE11
358
- "&:focus::-ms-input-placeholder": a
347
+ "&:focus::-ms-input-placeholder": l
359
348
  // Edge
360
349
  },
361
350
  [`&.${me.disabled}`]: {
@@ -392,13 +381,13 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
392
381
  }
393
382
  }
394
383
  }
395
- }), mo = /* @__PURE__ */ l.forwardRef(function(n, t) {
396
- var r;
384
+ }), mo = /* @__PURE__ */ a.forwardRef(function(n, r) {
385
+ var t;
397
386
  const s = Z({
398
387
  props: n,
399
388
  name: "MuiInputBase"
400
389
  }), {
401
- "aria-describedby": a,
390
+ "aria-describedby": l,
402
391
  autoComplete: m,
403
392
  autoFocus: y,
404
393
  className: c,
@@ -408,7 +397,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
408
397
  disabled: p,
409
398
  disableInjectingGlobalStyles: R,
410
399
  endAdornment: O,
411
- fullWidth: T = !1,
400
+ fullWidth: w = !1,
412
401
  id: $,
413
402
  inputComponent: v = "input",
414
403
  inputProps: b = {},
@@ -419,7 +408,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
419
408
  name: N,
420
409
  onBlur: F,
421
410
  onChange: A,
422
- onClick: w,
411
+ onClick: T,
423
412
  onFocus: W,
424
413
  onKeyDown: V,
425
414
  onKeyUp: I,
@@ -433,12 +422,12 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
433
422
  type: xe = "text",
434
423
  value: Pe
435
424
  } = s, We = H(s, io), ee = b.value != null ? b.value : Pe, {
436
- current: re
437
- } = l.useRef(ee != null), _ = l.useRef(), $e = l.useCallback((f) => {
425
+ current: te
426
+ } = a.useRef(ee != null), _ = a.useRef(), $e = a.useCallback((f) => {
438
427
  process.env.NODE_ENV !== "production" && f && f.nodeName !== "INPUT" && !f.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(`
439
428
  `));
440
- }, []), Be = ze(_, C, b.ref, $e), [se, ie] = l.useState(!1), h = te();
441
- process.env.NODE_ENV !== "production" && l.useEffect(() => {
429
+ }, []), Be = ze(_, C, b.ref, $e), [se, ie] = a.useState(!1), h = re();
430
+ process.env.NODE_ENV !== "production" && a.useEffect(() => {
442
431
  if (h)
443
432
  return h.registerEffect();
444
433
  }, [h]);
@@ -447,17 +436,17 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
447
436
  muiFormControl: h,
448
437
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
449
438
  });
450
- S.focused = h ? h.focused : se, l.useEffect(() => {
439
+ S.focused = h ? h.focused : se, a.useEffect(() => {
451
440
  !h && p && se && (ie(!1), F && F());
452
441
  }, [h, p, se, F]);
453
- const ae = h && h.onFilled, le = h && h.onEmpty, G = l.useCallback((f) => {
442
+ const ae = h && h.onFilled, le = h && h.onEmpty, G = a.useCallback((f) => {
454
443
  fe(f) ? ae && ae() : le && le();
455
444
  }, [ae, le]);
456
445
  pe(() => {
457
- re && G({
446
+ te && G({
458
447
  value: ee
459
448
  });
460
- }, [ee, G, re]);
449
+ }, [ee, G, te]);
461
450
  const De = (f) => {
462
451
  if (S.disabled) {
463
452
  f.stopPropagation();
@@ -466,8 +455,8 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
466
455
  W && W(f), b.onFocus && b.onFocus(f), h && h.onFocus ? h.onFocus(f) : ie(!0);
467
456
  }, _e = (f) => {
468
457
  F && F(f), b.onBlur && b.onBlur(f), h && h.onBlur ? h.onBlur(f) : ie(!1);
469
- }, je = (f, ...we) => {
470
- if (!re) {
458
+ }, je = (f, ...Te) => {
459
+ if (!te) {
471
460
  const Ee = f.target || _.current;
472
461
  if (Ee == null)
473
462
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ue(1));
@@ -475,13 +464,13 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
475
464
  value: Ee.value
476
465
  });
477
466
  }
478
- b.onChange && b.onChange(f, ...we), A && A(f, ...we);
467
+ b.onChange && b.onChange(f, ...Te), A && A(f, ...Te);
479
468
  };
480
- l.useEffect(() => {
469
+ a.useEffect(() => {
481
470
  G(_.current);
482
471
  }, []);
483
472
  const qe = (f) => {
484
- _.current && f.currentTarget === f.target && _.current.focus(), w && w(f);
473
+ _.current && f.currentTarget === f.target && _.current.focus(), T && T(f);
485
474
  };
486
475
  let de = v, P = b;
487
476
  z && de === "input" && (X ? (process.env.NODE_ENV !== "production" && (M || x) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), P = i({
@@ -498,7 +487,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
498
487
  value: "x"
499
488
  });
500
489
  };
501
- l.useEffect(() => {
490
+ a.useEffect(() => {
502
491
  h && h.setAdornedStart(!!U);
503
492
  }, [h, U]);
504
493
  const oe = i({}, s, {
@@ -508,27 +497,27 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
508
497
  error: S.error,
509
498
  focused: S.focused,
510
499
  formControl: h,
511
- fullWidth: T,
500
+ fullWidth: w,
512
501
  hiddenLabel: S.hiddenLabel,
513
502
  multiline: z,
514
503
  size: S.size,
515
504
  startAdornment: U,
516
505
  type: xe
517
- }), Ce = co(oe), Oe = ve.root || d.Root || uo, ce = ge.root || u.root || {}, Te = ve.input || d.Input || po;
518
- return P = i({}, P, (r = ge.input) != null ? r : u.input), /* @__PURE__ */ q(l.Fragment, {
506
+ }), Ce = co(oe), Oe = ve.root || d.Root || uo, ce = ge.root || u.root || {}, we = ve.input || d.Input || po;
507
+ return P = i({}, P, (t = ge.input) != null ? t : u.input), /* @__PURE__ */ q(a.Fragment, {
519
508
  children: [!R && fo, /* @__PURE__ */ q(Oe, i({}, ce, !Se(Oe) && {
520
509
  ownerState: i({}, oe, ce.ownerState)
521
510
  }, {
522
- ref: t,
511
+ ref: r,
523
512
  onClick: qe
524
513
  }, We, {
525
514
  className: j(Ce.root, ce.className, c, D && "MuiInputBase-readOnly"),
526
515
  children: [U, /* @__PURE__ */ E(be.Provider, {
527
516
  value: null,
528
- children: /* @__PURE__ */ E(Te, i({
517
+ children: /* @__PURE__ */ E(we, i({
529
518
  ownerState: oe,
530
519
  "aria-invalid": S.error,
531
- "aria-describedby": a,
520
+ "aria-describedby": l,
532
521
  autoComplete: m,
533
522
  autoFocus: y,
534
523
  defaultValue: g,
@@ -544,7 +533,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
544
533
  onKeyDown: V,
545
534
  onKeyUp: I,
546
535
  type: xe
547
- }, P, !Se(Te) && {
536
+ }, P, !Se(we) && {
548
537
  as: de,
549
538
  ownerState: i({}, oe, P.ownerState)
550
539
  }, {
@@ -796,15 +785,15 @@ function bo(o) {
796
785
  const K = Y("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), ho = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], yo = (o) => {
797
786
  const {
798
787
  classes: n,
799
- color: t,
800
- focused: r,
788
+ color: r,
789
+ focused: t,
801
790
  disabled: s,
802
- error: a,
791
+ error: l,
803
792
  filled: m,
804
793
  required: y
805
794
  } = o, c = {
806
- root: ["root", `color${L(t)}`, s && "disabled", a && "error", m && "filled", r && "focused", y && "required"],
807
- asterisk: ["asterisk", a && "error"]
795
+ root: ["root", `color${L(r)}`, s && "disabled", l && "error", m && "filled", t && "focused", y && "required"],
796
+ asterisk: ["asterisk", l && "error"]
808
797
  };
809
798
  return J(c, bo, n);
810
799
  }, go = B("label", {
@@ -841,19 +830,19 @@ const K = Y("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
841
830
  [`&.${K.error}`]: {
842
831
  color: (o.vars || o).palette.error.main
843
832
  }
844
- })), Me = /* @__PURE__ */ l.forwardRef(function(n, t) {
845
- const r = Z({
833
+ })), Me = /* @__PURE__ */ a.forwardRef(function(n, r) {
834
+ const t = Z({
846
835
  props: n,
847
836
  name: "MuiFormLabel"
848
837
  }), {
849
838
  children: s,
850
- className: a,
839
+ className: l,
851
840
  component: m = "label"
852
- } = r, y = H(r, ho), c = te(), d = he({
853
- props: r,
841
+ } = t, y = H(t, ho), c = re(), d = he({
842
+ props: t,
854
843
  muiFormControl: c,
855
844
  states: ["color", "required", "focused", "disabled", "error", "filled"]
856
- }), u = i({}, r, {
845
+ }), u = i({}, t, {
857
846
  color: d.color || "primary",
858
847
  component: m,
859
848
  disabled: d.disabled,
@@ -865,8 +854,8 @@ const K = Y("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
865
854
  return /* @__PURE__ */ q(go, i({
866
855
  as: m,
867
856
  ownerState: u,
868
- className: j(g.root, a),
869
- ref: t
857
+ className: j(g.root, l),
858
+ ref: r
870
859
  }, y, {
871
860
  children: [s, d.required && /* @__PURE__ */ q(vo, {
872
861
  ownerState: u,
@@ -936,28 +925,28 @@ Y("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asteris
936
925
  const Co = ["disableAnimation", "margin", "shrink", "variant", "className"], Oo = (o) => {
937
926
  const {
938
927
  classes: n,
939
- formControl: t,
940
- size: r,
928
+ formControl: r,
929
+ size: t,
941
930
  shrink: s,
942
- disableAnimation: a,
931
+ disableAnimation: l,
943
932
  variant: m,
944
933
  required: y
945
934
  } = o, c = {
946
- root: ["root", t && "formControl", !a && "animated", s && "shrink", r && r !== "normal" && `size${L(r)}`, m],
935
+ root: ["root", r && "formControl", !l && "animated", s && "shrink", t && t !== "normal" && `size${L(t)}`, m],
947
936
  asterisk: [y && "asterisk"]
948
937
  }, d = J(c, xo, n);
949
938
  return i({}, n, d);
950
- }, To = B(Me, {
939
+ }, wo = B(Me, {
951
940
  shouldForwardProp: (o) => Ye(o) || o === "classes",
952
941
  name: "MuiInputLabel",
953
942
  slot: "Root",
954
943
  overridesResolver: (o, n) => {
955
944
  const {
956
- ownerState: t
945
+ ownerState: r
957
946
  } = o;
958
947
  return [{
959
948
  [`& .${K.asterisk}`]: n.asterisk
960
- }, n.root, t.formControl && n.formControl, t.size === "small" && n.sizeSmall, t.shrink && n.shrink, !t.disableAnimation && n.animated, t.focused && n.focused, n[t.variant]];
949
+ }, n.root, r.formControl && n.formControl, r.size === "small" && n.sizeSmall, r.shrink && n.shrink, !r.disableAnimation && n.animated, r.focused && n.focused, n[r.variant]];
961
950
  }
962
951
  })(({
963
952
  theme: o,
@@ -1020,22 +1009,22 @@ const Co = ["disableAnimation", "margin", "shrink", "variant", "className"], Oo
1020
1009
  // but it feels a better when it bleeds a bit on the left, so 32px.
1021
1010
  maxWidth: "calc(133% - 32px)",
1022
1011
  transform: "translate(14px, -9px) scale(0.75)"
1023
- }))), wo = /* @__PURE__ */ l.forwardRef(function(n, t) {
1024
- const r = Z({
1012
+ }))), To = /* @__PURE__ */ a.forwardRef(function(n, r) {
1013
+ const t = Z({
1025
1014
  name: "MuiInputLabel",
1026
1015
  props: n
1027
1016
  }), {
1028
1017
  disableAnimation: s = !1,
1029
- shrink: a,
1018
+ shrink: l,
1030
1019
  className: m
1031
- } = r, y = H(r, Co), c = te();
1032
- let d = a;
1020
+ } = t, y = H(t, Co), c = re();
1021
+ let d = l;
1033
1022
  typeof d > "u" && c && (d = c.filled || c.focused || c.adornedStart);
1034
1023
  const u = he({
1035
- props: r,
1024
+ props: t,
1036
1025
  muiFormControl: c,
1037
1026
  states: ["size", "variant", "required", "focused"]
1038
- }), g = i({}, r, {
1027
+ }), g = i({}, t, {
1039
1028
  disableAnimation: s,
1040
1029
  formControl: c,
1041
1030
  shrink: d,
@@ -1044,16 +1033,16 @@ const Co = ["disableAnimation", "margin", "shrink", "variant", "className"], Oo
1044
1033
  required: u.required,
1045
1034
  focused: u.focused
1046
1035
  }), p = Oo(g);
1047
- return /* @__PURE__ */ E(To, i({
1036
+ return /* @__PURE__ */ E(wo, i({
1048
1037
  "data-shrink": d,
1049
1038
  ownerState: g,
1050
- ref: t,
1039
+ ref: r,
1051
1040
  className: j(p.root, m)
1052
1041
  }, y, {
1053
1042
  classes: p
1054
1043
  }));
1055
1044
  });
1056
- process.env.NODE_ENV !== "production" && (wo.propTypes = {
1045
+ process.env.NODE_ENV !== "production" && (To.propTypes = {
1057
1046
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1058
1047
  // │ These PropTypes are generated from the TypeScript type definitions. │
1059
1048
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1127,19 +1116,19 @@ const Fe = Y("MuiInputAdornment", ["root", "filled", "standard", "outlined", "po
1127
1116
  var Ie;
1128
1117
  const Ro = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], So = (o, n) => {
1129
1118
  const {
1130
- ownerState: t
1119
+ ownerState: r
1131
1120
  } = o;
1132
- return [n.root, n[`position${L(t.position)}`], t.disablePointerEvents === !0 && n.disablePointerEvents, n[t.variant]];
1121
+ return [n.root, n[`position${L(r.position)}`], r.disablePointerEvents === !0 && n.disablePointerEvents, n[r.variant]];
1133
1122
  }, No = (o) => {
1134
1123
  const {
1135
1124
  classes: n,
1136
- disablePointerEvents: t,
1137
- hiddenLabel: r,
1125
+ disablePointerEvents: r,
1126
+ hiddenLabel: t,
1138
1127
  position: s,
1139
- size: a,
1128
+ size: l,
1140
1129
  variant: m
1141
1130
  } = o, y = {
1142
- root: ["root", t && "disablePointerEvents", s && `position${L(s)}`, m, r && "hiddenLabel", a && `size${L(a)}`]
1131
+ root: ["root", r && "disablePointerEvents", s && `position${L(s)}`, m, t && "hiddenLabel", l && `size${L(l)}`]
1143
1132
  };
1144
1133
  return J(y, Eo, n);
1145
1134
  }, Fo = B("div", {
@@ -1171,40 +1160,40 @@ const Ro = ["children", "className", "component", "disablePointerEvents", "disab
1171
1160
  }, n.disablePointerEvents === !0 && {
1172
1161
  // Styles applied to the root element if `disablePointerEvents={true}`.
1173
1162
  pointerEvents: "none"
1174
- })), Io = /* @__PURE__ */ l.forwardRef(function(n, t) {
1175
- const r = Z({
1163
+ })), Io = /* @__PURE__ */ a.forwardRef(function(n, r) {
1164
+ const t = Z({
1176
1165
  props: n,
1177
1166
  name: "MuiInputAdornment"
1178
1167
  }), {
1179
1168
  children: s,
1180
- className: a,
1169
+ className: l,
1181
1170
  component: m = "div",
1182
1171
  disablePointerEvents: y = !1,
1183
1172
  disableTypography: c = !1,
1184
1173
  position: d,
1185
1174
  variant: u
1186
- } = r, g = H(r, Ro), p = te() || {};
1175
+ } = t, g = H(t, Ro), p = re() || {};
1187
1176
  let R = u;
1188
1177
  u && p.variant && process.env.NODE_ENV !== "production" && u === p.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), p && !R && (R = p.variant);
1189
- const O = i({}, r, {
1178
+ const O = i({}, t, {
1190
1179
  hiddenLabel: p.hiddenLabel,
1191
1180
  size: p.size,
1192
1181
  disablePointerEvents: y,
1193
1182
  position: d,
1194
1183
  variant: R
1195
- }), T = No(O);
1184
+ }), w = No(O);
1196
1185
  return /* @__PURE__ */ E(be.Provider, {
1197
1186
  value: null,
1198
1187
  children: /* @__PURE__ */ E(Fo, i({
1199
1188
  as: m,
1200
1189
  ownerState: O,
1201
- className: j(T.root, a),
1202
- ref: t
1190
+ className: j(w.root, l),
1191
+ ref: r
1203
1192
  }, g, {
1204
- children: typeof s == "string" && !c ? /* @__PURE__ */ E(Xe, {
1193
+ children: typeof s == "string" && !c ? /* @__PURE__ */ E(eo, {
1205
1194
  color: "text.secondary",
1206
1195
  children: s
1207
- }) : /* @__PURE__ */ q(l.Fragment, {
1196
+ }) : /* @__PURE__ */ q(a.Fragment, {
1208
1197
  children: [d === "start" ? (
1209
1198
  /* notranslate needed while Google Translate will not fix zero-width space issue */
1210
1199
  Ie || (Ie = /* @__PURE__ */ E("span", {
@@ -1271,10 +1260,10 @@ Y("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullW
1271
1260
  const Ao = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], ko = (o) => {
1272
1261
  const {
1273
1262
  classes: n,
1274
- margin: t,
1275
- fullWidth: r
1263
+ margin: r,
1264
+ fullWidth: t
1276
1265
  } = o, s = {
1277
- root: ["root", t !== "none" && `margin${L(t)}`, r && "fullWidth"]
1266
+ root: ["root", r !== "none" && `margin${L(r)}`, t && "fullWidth"]
1278
1267
  };
1279
1268
  return J(s, zo, n);
1280
1269
  }, Lo = B("div", {
@@ -1303,13 +1292,13 @@ const Ao = ["children", "className", "color", "component", "disabled", "error",
1303
1292
  marginBottom: 4
1304
1293
  }, o.fullWidth && {
1305
1294
  width: "100%"
1306
- })), Mo = /* @__PURE__ */ l.forwardRef(function(n, t) {
1307
- const r = Z({
1295
+ })), Mo = /* @__PURE__ */ a.forwardRef(function(n, r) {
1296
+ const t = Z({
1308
1297
  props: n,
1309
1298
  name: "MuiFormControl"
1310
1299
  }), {
1311
1300
  children: s,
1312
- className: a,
1301
+ className: l,
1313
1302
  color: m = "primary",
1314
1303
  component: y = "div",
1315
1304
  disabled: c = !1,
@@ -1319,9 +1308,9 @@ const Ao = ["children", "className", "color", "component", "disabled", "error",
1319
1308
  hiddenLabel: p = !1,
1320
1309
  margin: R = "none",
1321
1310
  required: O = !1,
1322
- size: T = "medium",
1311
+ size: w = "medium",
1323
1312
  variant: $ = "outlined"
1324
- } = r, v = H(r, Ao), b = i({}, r, {
1313
+ } = t, v = H(t, Ao), b = i({}, t, {
1325
1314
  color: m,
1326
1315
  component: y,
1327
1316
  disabled: c,
@@ -1330,43 +1319,43 @@ const Ao = ["children", "className", "color", "component", "disabled", "error",
1330
1319
  hiddenLabel: p,
1331
1320
  margin: R,
1332
1321
  required: O,
1333
- size: T,
1322
+ size: w,
1334
1323
  variant: $
1335
- }), C = ko(b), [x, M] = l.useState(() => {
1324
+ }), C = ko(b), [x, M] = a.useState(() => {
1336
1325
  let I = !1;
1337
- return s && l.Children.forEach(s, (k) => {
1326
+ return s && a.Children.forEach(s, (k) => {
1338
1327
  if (!ue(k, ["Input", "Select"]))
1339
1328
  return;
1340
1329
  const D = ue(k, ["Select"]) ? k.props.input : k;
1341
- D && ro(D.props) && (I = !0);
1330
+ D && to(D.props) && (I = !0);
1342
1331
  }), I;
1343
- }), [z, N] = l.useState(() => {
1332
+ }), [z, N] = a.useState(() => {
1344
1333
  let I = !1;
1345
- return s && l.Children.forEach(s, (k) => {
1334
+ return s && a.Children.forEach(s, (k) => {
1346
1335
  ue(k, ["Input", "Select"]) && (fe(k.props, !0) || fe(k.props.inputProps, !0)) && (I = !0);
1347
1336
  }), I;
1348
- }), [F, A] = l.useState(!1);
1337
+ }), [F, A] = a.useState(!1);
1349
1338
  c && F && A(!1);
1350
- const w = u !== void 0 && !c ? u : F;
1339
+ const T = u !== void 0 && !c ? u : F;
1351
1340
  let W;
1352
1341
  if (process.env.NODE_ENV !== "production") {
1353
- const I = l.useRef(!1);
1342
+ const I = a.useRef(!1);
1354
1343
  W = () => (I.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1355
1344
  `)), I.current = !0, () => {
1356
1345
  I.current = !1;
1357
1346
  });
1358
1347
  }
1359
- const V = l.useMemo(() => ({
1348
+ const V = a.useMemo(() => ({
1360
1349
  adornedStart: x,
1361
1350
  setAdornedStart: M,
1362
1351
  color: m,
1363
1352
  disabled: c,
1364
1353
  error: d,
1365
1354
  filled: z,
1366
- focused: w,
1355
+ focused: T,
1367
1356
  fullWidth: g,
1368
1357
  hiddenLabel: p,
1369
- size: T,
1358
+ size: w,
1370
1359
  onBlur: () => {
1371
1360
  A(!1);
1372
1361
  },
@@ -1382,14 +1371,14 @@ const Ao = ["children", "className", "color", "component", "disabled", "error",
1382
1371
  registerEffect: W,
1383
1372
  required: O,
1384
1373
  variant: $
1385
- }), [x, m, c, d, z, w, g, p, W, O, T, $]);
1374
+ }), [x, m, c, d, z, T, g, p, W, O, w, $]);
1386
1375
  return /* @__PURE__ */ E(be.Provider, {
1387
1376
  value: V,
1388
1377
  children: /* @__PURE__ */ E(Lo, i({
1389
1378
  as: y,
1390
1379
  ownerState: b,
1391
- className: j(C.root, a),
1392
- ref: t
1380
+ className: j(C.root, l),
1381
+ ref: r
1393
1382
  }, v, {
1394
1383
  children: s
1395
1384
  }))
@@ -1477,15 +1466,14 @@ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
1477
1466
  });
1478
1467
  export {
1479
1468
  Mo as F,
1480
- wo as I,
1469
+ To as I,
1481
1470
  Io as a,
1482
1471
  uo as b,
1483
1472
  po as c,
1484
1473
  lo as d,
1485
1474
  mo as e,
1486
1475
  he as f,
1487
- eo as g,
1488
- fe as h,
1476
+ fe as g,
1489
1477
  me as i,
1490
1478
  ao as r
1491
1479
  };