@hybridcore/ui 1.3.1 → 1.3.3

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 (75) hide show
  1. package/dist/{ButtonBase-DZH9mTSs.js → ButtonBase-DE8d_U2E.js} +9 -9
  2. package/dist/{CardContent-CUZ9jH0z.js → CardContent-Du2i427Y.js} +4 -4
  3. package/dist/{Checkbox-RTVyZJPK.js → Checkbox-BGNAqLl0.js} +7 -7
  4. package/dist/{Collapse-9zKUPtnk.js → Collapse-FRd0_2Pt.js} +7 -7
  5. package/dist/{DialogContent-ijWcBrtC.js → DialogContent-CKeAZ3Ts.js} +12 -12
  6. package/dist/{FormControl-C0mOl3mC.js → FormControl-ChTmxscy.js} +399 -545
  7. package/dist/{FormControlLabel-BK6N5zeb.js → FormControlLabel-Df7csguX.js} +12 -12
  8. package/dist/{IconButton-D7MS15zj.js → IconButton-Cu_XEJB2.js} +5 -5
  9. package/dist/{Input-CIRMXtVU.js → Input-DU22-Zbo.js} +6 -6
  10. package/dist/InputAdornment-6aeADcPO.js +155 -0
  11. package/dist/{List-D26ubZNL.js → List-nOXr-cFJ.js} +6 -6
  12. package/dist/{ListItem-B0ZWvhCF.js → ListItem-RJvRMwkZ.js} +6 -6
  13. package/dist/{MenuItem-CI7xGSGZ.js → MenuItem-DF45rx2m.js} +13 -13
  14. package/dist/{OutlinedInput-aT_qMbXR.js → OutlinedInput-DJCHjkR3.js} +6 -6
  15. package/dist/{Paper-DuVFfsLZ.js → Paper-CD_ma6NJ.js} +5 -5
  16. package/dist/{Select-B625rLnY.js → Select-C1jD_gBQ.js} +15 -15
  17. package/dist/{Source-CnCcu5UP.js → Source-Hf_SiWEW.js} +123 -123
  18. package/dist/{Text-BT5kPHOo.js → Text-D6oGbCdi.js} +41 -41
  19. package/dist/{Typography-CJu4IM_v.js → Typography-C2BkMNk-.js} +4 -4
  20. package/dist/{chainPropTypes-DHF53jrt.js → chainPropTypes-GRMJ22CO.js} +3 -3
  21. package/dist/components/card/index.js +6 -6
  22. package/dist/components/card/styled.js +1 -1
  23. package/dist/components/collapsible-card/style.js +10 -10
  24. package/dist/components/confirm/dialog.js +6 -6
  25. package/dist/components/container/index.js +7 -7
  26. package/dist/components/context-menu/index.js +10 -10
  27. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  28. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  29. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  30. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  31. package/dist/components/date-time-picker/index.js +4 -4
  32. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  33. package/dist/components/geometry-picker/edit/index.js +2 -2
  34. package/dist/components/geometry-picker/geometry/index.js +1 -1
  35. package/dist/components/geometry-picker/index.js +7 -6
  36. package/dist/components/geometry-picker/kml/index.js +1 -1
  37. package/dist/components/geometry-picker/map/logic.js +19 -19
  38. package/dist/components/geometry-picker/map/style.js +1 -1
  39. package/dist/components/icon-button/index.js +1 -1
  40. package/dist/components/map/helpers/mapbox.js +3 -3
  41. package/dist/components/map/helpers/ol.js +3 -3
  42. package/dist/components/map/logic.js +2 -2
  43. package/dist/components/map/styled.js +2 -2
  44. package/dist/components/search-input/index.js +10 -9
  45. package/dist/components/template-property-filters/index.js +49 -481
  46. package/dist/components/template-property-filters/property.js +4 -4
  47. package/dist/components/tree-select/index.js +4 -4
  48. package/dist/components/treeview-filter/index.js +9 -9
  49. package/dist/components/treeview-filter/item/index.js +1 -1
  50. package/dist/components/treeview-filter/item-label/index.js +2 -2
  51. package/dist/createSvgIcon-6wv0RQr3.js +63 -0
  52. package/dist/{createSvgIcon-uzHr0c0Y.js → createSvgIcon-DPZ7UbxM.js} +4 -4
  53. package/dist/{createTheme-BynOz6vJ.js → createTheme-C3DKplhE.js} +22 -22
  54. package/dist/{exactProp-BgztuVaT.js → exactProp--3vlJ9a9.js} +3 -3
  55. package/dist/{extends-C3382pL0.js → extends-Cyw62AD_.js} +2 -2
  56. package/dist/{has-9_asnBxn.js → has-CjQtZJa9.js} +26 -26
  57. package/dist/{index-C5fnQULf.js → index-CtuBGOmk.js} +10 -10
  58. package/dist/{index-CEj0z7vR.js → index-DzFccwzL.js} +6 -6
  59. package/dist/{listItemTextClasses-Lb51gZ03.js → listItemTextClasses-2BAu-hye.js} +4 -4
  60. package/dist/main.d.ts +6 -0
  61. package/dist/main.js +402 -45
  62. package/dist/{ol-q6vTiF_t.js → ol-BUKJ1urU.js} +3 -3
  63. package/dist/property-BSufYw1E.js +6888 -0
  64. package/dist/requirePropFactory-BItwGLRQ.js +18 -0
  65. package/dist/{resolveComponentProps-D6QBz-nM.js → resolveComponentProps-DozbaB8e.js} +8 -8
  66. package/dist/{styled-C3GYAbYC.js → styled-CVWGE9ik.js} +22 -22
  67. package/dist/{styled-B02_UC50.js → styled-iyoioZCr.js} +20 -20
  68. package/dist/{useTheme-rmCSkfoY.js → useTheme--x3BjP9A.js} +3 -4
  69. package/dist/{useTheme-BYHXX22B.js → useTheme-pWltVFb2.js} +2 -2
  70. package/dist/{useThemeProps-DzfjJKh1.js → useThemeProps-C90JF0Qc.js} +3 -3
  71. package/dist/{useThemeProps-CR6NzUGU.js → useThemeProps-DNZoozBw.js} +4 -5
  72. package/dist/{utils-CIiFkdEJ.js → utils-qcu0RzdN.js} +8 -8
  73. package/package.json +2 -2
  74. package/dist/createSvgIcon-CpwgcuKn.js +0 -77
  75. package/dist/property-DyLBS7uO.js +0 -7020
@@ -1,28 +1,27 @@
1
- import { _ as H, a as i } from "./extends-C3382pL0.js";
1
+ import { a as K, _ as i } from "./extends-Cyw62AD_.js";
2
2
  import * as a from "react";
3
- import { G as Ve, P as e, c as L, f as Ue } from "./createTheme-BynOz6vJ.js";
4
- import { g as Y, u as Z, c as j, a as J } from "./chainPropTypes-DHF53jrt.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-B02_UC50.js";
7
- import { jsx as E, jsxs as q } from "react/jsx-runtime";
8
- import { a as ze, b as pe, e as Ze, r as Je } from "./ButtonBase-DZH9mTSs.js";
3
+ import { G as _e, P as e, a as P, f as je } from "./createTheme-C3DKplhE.js";
4
+ import { g as X, u as ee, c as U, a as oe } from "./chainPropTypes-GRMJ22CO.js";
5
+ import { u as me, F as Fe } from "./useFormControl-CatNKXAi.js";
6
+ import { d as Ve, T as Ue, g as ne, s as q, r as Ge } from "./styled-iyoioZCr.js";
7
+ import { jsx as I, jsxs as G } from "react/jsx-runtime";
8
+ import { u as Ne, b as ce, e as Ke, r as Ye } from "./ButtonBase-DE8d_U2E.js";
9
9
  import { o as Re } from "./ownerWindow-niciwP7I.js";
10
- import { d as Qe } from "./debounce-46wSf_lW.js";
11
- import { i as Se } from "./isHostComponent-kiaBvYVo.js";
12
- import { u as Xe } from "./useTheme-rmCSkfoY.js";
13
- import { T as eo } from "./Typography-CJu4IM_v.js";
10
+ import { d as Ze } from "./debounce-46wSf_lW.js";
11
+ import { i as Te } from "./isHostComponent-kiaBvYVo.js";
12
+ import { u as Je } from "./useTheme--x3BjP9A.js";
14
13
  import { i as ue } from "./isMuiElement-CxT3_ACP.js";
15
- function Ae({
14
+ function ke({
16
15
  styles: o,
17
16
  themeId: n,
18
17
  defaultTheme: r = {}
19
18
  }) {
20
- const t = Xe(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
21
- return /* @__PURE__ */ E(Ve, {
19
+ const t = Je(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
20
+ return /* @__PURE__ */ I(_e, {
22
21
  styles: s
23
22
  });
24
23
  }
25
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
24
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
26
25
  // ┌────────────────────────────── Warning ──────────────────────────────┐
27
26
  // │ These PropTypes are generated from the TypeScript type definitions. │
28
27
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -40,18 +39,18 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
40
39
  */
41
40
  themeId: e.string
42
41
  });
43
- function he({
42
+ function be({
44
43
  props: o,
45
44
  states: n,
46
45
  muiFormControl: r
47
46
  }) {
48
47
  return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
49
48
  }
50
- const oo = ["onChange", "maxRows", "minRows", "style", "value"];
51
- function ne(o) {
49
+ const Qe = ["onChange", "maxRows", "minRows", "style", "value"];
50
+ function Q(o) {
52
51
  return parseInt(o, 10) || 0;
53
52
  }
54
- const no = {
53
+ const Xe = {
55
54
  shadow: {
56
55
  // Visibility needed to hide the extra text area on iPads
57
56
  visibility: "hidden",
@@ -66,87 +65,87 @@ const no = {
66
65
  transform: "translateZ(0)"
67
66
  }
68
67
  };
69
- function ro(o) {
68
+ function eo(o) {
70
69
  return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflowing;
71
70
  }
72
- const ke = /* @__PURE__ */ a.forwardRef(function(n, r) {
71
+ const ze = /* @__PURE__ */ a.forwardRef(function(n, r) {
73
72
  const {
74
73
  onChange: t,
75
74
  maxRows: s,
76
- minRows: l = 1,
77
- style: m,
78
- value: y
79
- } = n, c = H(n, oo), {
80
- current: d
81
- } = a.useRef(y != null), u = a.useRef(null), g = ze(r, u), p = a.useRef(null), R = a.useRef(null), O = a.useCallback(() => {
82
- const v = u.current, C = Re(v).getComputedStyle(v);
75
+ minRows: d = 1,
76
+ style: b,
77
+ value: h
78
+ } = n, u = K(n, Qe), {
79
+ current: l
80
+ } = a.useRef(h != null), p = a.useRef(null), x = Ne(r, p), y = a.useRef(null), A = a.useRef(null), O = a.useCallback(() => {
81
+ const g = p.current, C = Re(g).getComputedStyle(g);
83
82
  if (C.width === "0px")
84
83
  return {
85
84
  outerHeightStyle: 0,
86
85
  overflowing: !1
87
86
  };
88
- const x = R.current;
89
- x.style.width = C.width, x.value = v.value || n.placeholder || "x", x.value.slice(-1) === `
90
- ` && (x.value += " ");
91
- const M = C.boxSizing, z = ne(C.paddingBottom) + ne(C.paddingTop), N = ne(C.borderBottomWidth) + ne(C.borderTopWidth), F = x.scrollHeight;
92
- x.value = "x";
93
- const A = x.scrollHeight;
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;
87
+ const v = A.current;
88
+ v.style.width = C.width, v.value = g.value || n.placeholder || "x", v.value.slice(-1) === `
89
+ ` && (v.value += " ");
90
+ const M = C.boxSizing, N = Q(C.paddingBottom) + Q(C.paddingTop), T = Q(C.borderBottomWidth) + Q(C.borderTopWidth), E = v.scrollHeight;
91
+ v.value = "x";
92
+ const k = v.scrollHeight;
93
+ let w = E;
94
+ d && (w = Math.max(Number(d) * k, w)), s && (w = Math.min(Number(s) * k, w)), w = Math.max(w, k);
95
+ const W = w + (M === "border-box" ? N + T : 0), H = Math.abs(w - E) <= 1;
97
96
  return {
98
97
  outerHeightStyle: W,
99
- overflowing: V
98
+ overflowing: H
100
99
  };
101
- }, [s, l, n.placeholder]), w = a.useCallback(() => {
102
- const v = O();
103
- if (ro(v))
100
+ }, [s, d, n.placeholder]), S = a.useCallback(() => {
101
+ const g = O();
102
+ if (eo(g))
104
103
  return;
105
- const b = v.outerHeightStyle, C = u.current;
106
- p.current !== b && (p.current = b, C.style.height = `${b}px`), C.style.overflow = v.overflowing ? "hidden" : "";
104
+ const f = g.outerHeightStyle, C = p.current;
105
+ y.current !== f && (y.current = f, C.style.height = `${f}px`), C.style.overflow = g.overflowing ? "hidden" : "";
107
106
  }, [O]);
108
- pe(() => {
109
- const v = () => {
110
- w();
107
+ ce(() => {
108
+ const g = () => {
109
+ S();
111
110
  };
112
- let b;
111
+ let f;
113
112
  const C = () => {
114
- cancelAnimationFrame(b), b = requestAnimationFrame(() => {
115
- v();
113
+ cancelAnimationFrame(f), f = requestAnimationFrame(() => {
114
+ g();
116
115
  });
117
- }, x = Qe(v), M = u.current, z = Re(M);
118
- z.addEventListener("resize", x);
119
- let N;
120
- return typeof ResizeObserver < "u" && (N = new ResizeObserver(process.env.NODE_ENV === "test" ? C : v), N.observe(M)), () => {
121
- x.clear(), cancelAnimationFrame(b), z.removeEventListener("resize", x), N && N.disconnect();
116
+ }, v = Ze(g), M = p.current, N = Re(M);
117
+ N.addEventListener("resize", v);
118
+ let T;
119
+ return typeof ResizeObserver < "u" && (T = new ResizeObserver(process.env.NODE_ENV === "test" ? C : g), T.observe(M)), () => {
120
+ v.clear(), cancelAnimationFrame(f), N.removeEventListener("resize", v), T && T.disconnect();
122
121
  };
123
- }, [O, w]), pe(() => {
124
- w();
122
+ }, [O, S]), ce(() => {
123
+ S();
125
124
  });
126
- const $ = (v) => {
127
- d || w(), t && t(v);
125
+ const B = (g) => {
126
+ l || S(), t && t(g);
128
127
  };
129
- return /* @__PURE__ */ q(a.Fragment, {
130
- children: [/* @__PURE__ */ E("textarea", i({
131
- value: y,
132
- onChange: $,
133
- ref: g,
134
- rows: l,
135
- style: m
136
- }, c)), /* @__PURE__ */ E("textarea", {
128
+ return /* @__PURE__ */ G(a.Fragment, {
129
+ children: [/* @__PURE__ */ I("textarea", i({
130
+ value: h,
131
+ onChange: B,
132
+ ref: x,
133
+ rows: d,
134
+ style: b
135
+ }, u)), /* @__PURE__ */ I("textarea", {
137
136
  "aria-hidden": !0,
138
137
  className: n.className,
139
138
  readOnly: !0,
140
- ref: R,
139
+ ref: A,
141
140
  tabIndex: -1,
142
- style: i({}, no.shadow, m, {
141
+ style: i({}, Xe.shadow, b, {
143
142
  paddingTop: 0,
144
143
  paddingBottom: 0
145
144
  })
146
145
  })]
147
146
  });
148
147
  });
149
- process.env.NODE_ENV !== "production" && (ke.propTypes = {
148
+ process.env.NODE_ENV !== "production" && (ze.propTypes = {
150
149
  // ┌────────────────────────────── Warning ──────────────────────────────┐
151
150
  // │ These PropTypes are generated from the TypeScript type definitions. │
152
151
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -181,13 +180,13 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
181
180
  */
182
181
  value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
183
182
  });
184
- function Le(o) {
185
- return /* @__PURE__ */ E(Ae, i({}, o, {
186
- defaultTheme: Ge,
187
- themeId: Ke
183
+ function Ie(o) {
184
+ return /* @__PURE__ */ I(ke, i({}, o, {
185
+ defaultTheme: Ve,
186
+ themeId: Ue
188
187
  }));
189
188
  }
190
- process.env.NODE_ENV !== "production" && (Le.propTypes = {
189
+ process.env.NODE_ENV !== "production" && (Ie.propTypes = {
191
190
  // ┌────────────────────────────── Warning ──────────────────────────────┐
192
191
  // │ These PropTypes are generated from the TypeScript type definitions. │
193
192
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -197,53 +196,53 @@ process.env.NODE_ENV !== "production" && (Le.propTypes = {
197
196
  */
198
197
  styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
199
198
  });
200
- function Ne(o) {
199
+ function Ee(o) {
201
200
  return o != null && !(Array.isArray(o) && o.length === 0);
202
201
  }
203
- function fe(o, n = !1) {
204
- return o && (Ne(o.value) && o.value !== "" || n && Ne(o.defaultValue) && o.defaultValue !== "");
202
+ function pe(o, n = !1) {
203
+ return o && (Ee(o.value) && o.value !== "" || n && Ee(o.defaultValue) && o.defaultValue !== "");
205
204
  }
206
- function to(o) {
205
+ function oo(o) {
207
206
  return o.startAdornment;
208
207
  }
209
- function so(o) {
210
- return Q("MuiInputBase", o);
208
+ function no(o) {
209
+ return ne("MuiInputBase", o);
211
210
  }
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) => {
211
+ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), ro = ["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"], to = (o, n) => {
213
212
  const {
214
213
  ownerState: r
215
214
  } = o;
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];
217
- }, lo = (o, n) => {
215
+ 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${P(r.color)}`], r.fullWidth && n.fullWidth, r.hiddenLabel && n.hiddenLabel];
216
+ }, so = (o, n) => {
218
217
  const {
219
218
  ownerState: r
220
219
  } = o;
221
220
  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];
222
- }, co = (o) => {
221
+ }, io = (o) => {
223
222
  const {
224
223
  classes: n,
225
224
  color: r,
226
225
  disabled: t,
227
226
  error: s,
228
- endAdornment: l,
229
- focused: m,
230
- formControl: y,
231
- fullWidth: c,
232
- hiddenLabel: d,
233
- multiline: u,
234
- readOnly: g,
235
- size: p,
236
- startAdornment: R,
227
+ endAdornment: d,
228
+ focused: b,
229
+ formControl: h,
230
+ fullWidth: u,
231
+ hiddenLabel: l,
232
+ multiline: p,
233
+ readOnly: x,
234
+ size: y,
235
+ startAdornment: A,
237
236
  type: O
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"]
237
+ } = o, S = {
238
+ root: ["root", `color${P(r)}`, t && "disabled", s && "error", u && "fullWidth", b && "focused", h && "formControl", y && y !== "medium" && `size${P(y)}`, p && "multiline", A && "adornedStart", d && "adornedEnd", l && "hiddenLabel", x && "readOnly"],
239
+ input: ["input", t && "disabled", O === "search" && "inputTypeSearch", p && "inputMultiline", y === "small" && "inputSizeSmall", l && "inputHiddenLabel", A && "inputAdornedStart", d && "inputAdornedEnd", x && "readOnly"]
241
240
  };
242
- return J(w, so, n);
243
- }, uo = B("div", {
241
+ return oe(S, no, n);
242
+ }, ao = q("div", {
244
243
  name: "MuiInputBase",
245
244
  slot: "Root",
246
- overridesResolver: ao
245
+ overridesResolver: to
247
246
  })(({
248
247
  theme: o,
249
248
  ownerState: n
@@ -257,7 +256,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
257
256
  cursor: "text",
258
257
  display: "inline-flex",
259
258
  alignItems: "center",
260
- [`&.${me.disabled}`]: {
259
+ [`&.${fe.disabled}`]: {
261
260
  color: (o.vars || o).palette.text.disabled,
262
261
  cursor: "default"
263
262
  }
@@ -267,10 +266,10 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
267
266
  paddingTop: 1
268
267
  }), n.fullWidth && {
269
268
  width: "100%"
270
- })), po = B("input", {
269
+ })), lo = q("input", {
271
270
  name: "MuiInputBase",
272
271
  slot: "Input",
273
- overridesResolver: lo
272
+ overridesResolver: so
274
273
  })(({
275
274
  theme: o,
276
275
  ownerState: n
@@ -287,7 +286,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
287
286
  })
288
287
  }), s = {
289
288
  opacity: "0 !important"
290
- }, l = o.vars ? {
289
+ }, d = o.vars ? {
291
290
  opacity: o.vars.opacity.inputPlaceholder
292
291
  } : {
293
292
  opacity: r ? 0.42 : 0.5
@@ -331,7 +330,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
331
330
  WebkitAppearance: "none"
332
331
  },
333
332
  // Show and hide the placeholder logic
334
- [`label[data-shrink=false] + .${me.formControl} &`]: {
333
+ [`label[data-shrink=false] + .${fe.formControl} &`]: {
335
334
  "&::-webkit-input-placeholder": s,
336
335
  "&::-moz-placeholder": s,
337
336
  // Firefox 19+
@@ -339,15 +338,15 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
339
338
  // IE11
340
339
  "&::-ms-input-placeholder": s,
341
340
  // Edge
342
- "&:focus::-webkit-input-placeholder": l,
343
- "&:focus::-moz-placeholder": l,
341
+ "&:focus::-webkit-input-placeholder": d,
342
+ "&:focus::-moz-placeholder": d,
344
343
  // Firefox 19+
345
- "&:focus:-ms-input-placeholder": l,
344
+ "&:focus:-ms-input-placeholder": d,
346
345
  // IE11
347
- "&:focus::-ms-input-placeholder": l
346
+ "&:focus::-ms-input-placeholder": d
348
347
  // Edge
349
348
  },
350
- [`&.${me.disabled}`]: {
349
+ [`&.${fe.disabled}`]: {
351
350
  opacity: 1,
352
351
  // Reset iOS opacity
353
352
  WebkitTextFillColor: (o.vars || o).palette.text.disabled
@@ -368,7 +367,7 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
368
367
  // Improve type search style.
369
368
  MozAppearance: "textfield"
370
369
  });
371
- }), fo = /* @__PURE__ */ E(Le, {
370
+ }), uo = /* @__PURE__ */ I(Ie, {
372
371
  styles: {
373
372
  "@keyframes mui-auto-fill": {
374
373
  from: {
@@ -381,175 +380,175 @@ const me = Y("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
381
380
  }
382
381
  }
383
382
  }
384
- }), mo = /* @__PURE__ */ a.forwardRef(function(n, r) {
383
+ }), co = /* @__PURE__ */ a.forwardRef(function(n, r) {
385
384
  var t;
386
- const s = Z({
385
+ const s = ee({
387
386
  props: n,
388
387
  name: "MuiInputBase"
389
388
  }), {
390
- "aria-describedby": l,
391
- autoComplete: m,
392
- autoFocus: y,
393
- className: c,
394
- components: d = {},
395
- componentsProps: u = {},
396
- defaultValue: g,
397
- disabled: p,
398
- disableInjectingGlobalStyles: R,
389
+ "aria-describedby": d,
390
+ autoComplete: b,
391
+ autoFocus: h,
392
+ className: u,
393
+ components: l = {},
394
+ componentsProps: p = {},
395
+ defaultValue: x,
396
+ disabled: y,
397
+ disableInjectingGlobalStyles: A,
399
398
  endAdornment: O,
400
- fullWidth: w = !1,
401
- id: $,
402
- inputComponent: v = "input",
403
- inputProps: b = {},
399
+ fullWidth: S = !1,
400
+ id: B,
401
+ inputComponent: g = "input",
402
+ inputProps: f = {},
404
403
  inputRef: C,
405
- maxRows: x,
404
+ maxRows: v,
406
405
  minRows: M,
407
- multiline: z = !1,
408
- name: N,
409
- onBlur: F,
410
- onChange: A,
411
- onClick: T,
406
+ multiline: N = !1,
407
+ name: T,
408
+ onBlur: E,
409
+ onChange: k,
410
+ onClick: w,
412
411
  onFocus: W,
413
- onKeyDown: V,
414
- onKeyUp: I,
415
- placeholder: k,
412
+ onKeyDown: H,
413
+ onKeyUp: F,
414
+ placeholder: z,
416
415
  readOnly: D,
417
- renderSuffix: ye,
418
- rows: X,
419
- slotProps: ge = {},
420
- slots: ve = {},
421
- startAdornment: U,
422
- type: xe = "text",
423
- value: Pe
424
- } = s, We = H(s, io), ee = b.value != null ? b.value : Pe, {
425
- current: te
426
- } = a.useRef(ee != null), _ = a.useRef(), $e = a.useCallback((f) => {
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(`
416
+ renderSuffix: he,
417
+ rows: Y,
418
+ slotProps: ye = {},
419
+ slots: ge = {},
420
+ startAdornment: _,
421
+ type: ve = "text",
422
+ value: Me
423
+ } = s, Le = K(s, ro), Z = f.value != null ? f.value : Me, {
424
+ current: re
425
+ } = a.useRef(Z != null), $ = a.useRef(), We = a.useCallback((c) => {
426
+ 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(`
428
427
  `));
429
- }, []), Be = ze(_, C, b.ref, $e), [se, ie] = a.useState(!1), h = re();
428
+ }, []), Be = Ne($, C, f.ref, We), [te, se] = a.useState(!1), m = me();
430
429
  process.env.NODE_ENV !== "production" && a.useEffect(() => {
431
- if (h)
432
- return h.registerEffect();
433
- }, [h]);
434
- const S = he({
430
+ if (m)
431
+ return m.registerEffect();
432
+ }, [m]);
433
+ const R = be({
435
434
  props: s,
436
- muiFormControl: h,
435
+ muiFormControl: m,
437
436
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
438
437
  });
439
- S.focused = h ? h.focused : se, a.useEffect(() => {
440
- !h && p && se && (ie(!1), F && F());
441
- }, [h, p, se, F]);
442
- const ae = h && h.onFilled, le = h && h.onEmpty, G = a.useCallback((f) => {
443
- fe(f) ? ae && ae() : le && le();
444
- }, [ae, le]);
445
- pe(() => {
446
- te && G({
447
- value: ee
438
+ R.focused = m ? m.focused : te, a.useEffect(() => {
439
+ !m && y && te && (se(!1), E && E());
440
+ }, [m, y, te, E]);
441
+ const ie = m && m.onFilled, ae = m && m.onEmpty, j = a.useCallback((c) => {
442
+ pe(c) ? ie && ie() : ae && ae();
443
+ }, [ie, ae]);
444
+ ce(() => {
445
+ re && j({
446
+ value: Z
448
447
  });
449
- }, [ee, G, te]);
450
- const De = (f) => {
451
- if (S.disabled) {
452
- f.stopPropagation();
448
+ }, [Z, j, re]);
449
+ const Pe = (c) => {
450
+ if (R.disabled) {
451
+ c.stopPropagation();
453
452
  return;
454
453
  }
455
- W && W(f), b.onFocus && b.onFocus(f), h && h.onFocus ? h.onFocus(f) : ie(!0);
456
- }, _e = (f) => {
457
- F && F(f), b.onBlur && b.onBlur(f), h && h.onBlur ? h.onBlur(f) : ie(!1);
458
- }, je = (f, ...Te) => {
459
- if (!te) {
460
- const Ee = f.target || _.current;
461
- if (Ee == null)
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));
463
- G({
464
- value: Ee.value
454
+ W && W(c), f.onFocus && f.onFocus(c), m && m.onFocus ? m.onFocus(c) : se(!0);
455
+ }, De = (c) => {
456
+ E && E(c), f.onBlur && f.onBlur(c), m && m.onBlur ? m.onBlur(c) : se(!1);
457
+ }, $e = (c, ...Oe) => {
458
+ if (!re) {
459
+ const Se = c.target || $.current;
460
+ if (Se == null)
461
+ 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." : je(1));
462
+ j({
463
+ value: Se.value
465
464
  });
466
465
  }
467
- b.onChange && b.onChange(f, ...Te), A && A(f, ...Te);
466
+ f.onChange && f.onChange(c, ...Oe), k && k(c, ...Oe);
468
467
  };
469
468
  a.useEffect(() => {
470
- G(_.current);
469
+ j($.current);
471
470
  }, []);
472
- const qe = (f) => {
473
- _.current && f.currentTarget === f.target && _.current.focus(), T && T(f);
471
+ const qe = (c) => {
472
+ $.current && c.currentTarget === c.target && $.current.focus(), w && w(c);
474
473
  };
475
- let de = v, P = b;
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({
474
+ let le = g, L = f;
475
+ N && le === "input" && (Y ? (process.env.NODE_ENV !== "production" && (M || v) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), L = i({
477
476
  type: void 0,
478
- minRows: X,
479
- maxRows: X
480
- }, P)) : P = i({
477
+ minRows: Y,
478
+ maxRows: Y
479
+ }, L)) : L = i({
481
480
  type: void 0,
482
- maxRows: x,
481
+ maxRows: v,
483
482
  minRows: M
484
- }, P), de = ke);
485
- const He = (f) => {
486
- G(f.animationName === "mui-auto-fill-cancel" ? _.current : {
483
+ }, L), le = ze);
484
+ const He = (c) => {
485
+ j(c.animationName === "mui-auto-fill-cancel" ? $.current : {
487
486
  value: "x"
488
487
  });
489
488
  };
490
489
  a.useEffect(() => {
491
- h && h.setAdornedStart(!!U);
492
- }, [h, U]);
493
- const oe = i({}, s, {
494
- color: S.color || "primary",
495
- disabled: S.disabled,
490
+ m && m.setAdornedStart(!!_);
491
+ }, [m, _]);
492
+ const J = i({}, s, {
493
+ color: R.color || "primary",
494
+ disabled: R.disabled,
496
495
  endAdornment: O,
497
- error: S.error,
498
- focused: S.focused,
499
- formControl: h,
500
- fullWidth: w,
501
- hiddenLabel: S.hiddenLabel,
502
- multiline: z,
503
- size: S.size,
504
- startAdornment: U,
505
- type: xe
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, {
508
- children: [!R && fo, /* @__PURE__ */ q(Oe, i({}, ce, !Se(Oe) && {
509
- ownerState: i({}, oe, ce.ownerState)
496
+ error: R.error,
497
+ focused: R.focused,
498
+ formControl: m,
499
+ fullWidth: S,
500
+ hiddenLabel: R.hiddenLabel,
501
+ multiline: N,
502
+ size: R.size,
503
+ startAdornment: _,
504
+ type: ve
505
+ }), xe = io(J), Ce = ge.root || l.Root || ao, de = ye.root || p.root || {}, we = ge.input || l.Input || lo;
506
+ return L = i({}, L, (t = ye.input) != null ? t : p.input), /* @__PURE__ */ G(a.Fragment, {
507
+ children: [!A && uo, /* @__PURE__ */ G(Ce, i({}, de, !Te(Ce) && {
508
+ ownerState: i({}, J, de.ownerState)
510
509
  }, {
511
510
  ref: r,
512
511
  onClick: qe
513
- }, We, {
514
- className: j(Ce.root, ce.className, c, D && "MuiInputBase-readOnly"),
515
- children: [U, /* @__PURE__ */ E(be.Provider, {
512
+ }, Le, {
513
+ className: U(xe.root, de.className, u, D && "MuiInputBase-readOnly"),
514
+ children: [_, /* @__PURE__ */ I(Fe.Provider, {
516
515
  value: null,
517
- children: /* @__PURE__ */ E(we, i({
518
- ownerState: oe,
519
- "aria-invalid": S.error,
520
- "aria-describedby": l,
521
- autoComplete: m,
522
- autoFocus: y,
523
- defaultValue: g,
524
- disabled: S.disabled,
525
- id: $,
516
+ children: /* @__PURE__ */ I(we, i({
517
+ ownerState: J,
518
+ "aria-invalid": R.error,
519
+ "aria-describedby": d,
520
+ autoComplete: b,
521
+ autoFocus: h,
522
+ defaultValue: x,
523
+ disabled: R.disabled,
524
+ id: B,
526
525
  onAnimationStart: He,
527
- name: N,
528
- placeholder: k,
526
+ name: T,
527
+ placeholder: z,
529
528
  readOnly: D,
530
- required: S.required,
531
- rows: X,
532
- value: ee,
533
- onKeyDown: V,
534
- onKeyUp: I,
535
- type: xe
536
- }, P, !Se(we) && {
537
- as: de,
538
- ownerState: i({}, oe, P.ownerState)
529
+ required: R.required,
530
+ rows: Y,
531
+ value: Z,
532
+ onKeyDown: H,
533
+ onKeyUp: F,
534
+ type: ve
535
+ }, L, !Te(we) && {
536
+ as: le,
537
+ ownerState: i({}, J, L.ownerState)
539
538
  }, {
540
539
  ref: Be,
541
- className: j(Ce.input, P.className, D && "MuiInputBase-readOnly"),
542
- onBlur: _e,
543
- onChange: je,
544
- onFocus: De
540
+ className: U(xe.input, L.className, D && "MuiInputBase-readOnly"),
541
+ onBlur: De,
542
+ onChange: $e,
543
+ onFocus: Pe
545
544
  }))
546
- }), O, ye ? ye(i({}, S, {
547
- startAdornment: U
545
+ }), O, he ? he(i({}, R, {
546
+ startAdornment: _
548
547
  })) : null]
549
548
  }))]
550
549
  });
551
550
  });
552
- process.env.NODE_ENV !== "production" && (mo.propTypes = {
551
+ process.env.NODE_ENV !== "production" && (co.propTypes = {
553
552
  // ┌────────────────────────────── Warning ──────────────────────────────┐
554
553
  // │ These PropTypes are generated from the TypeScript type definitions. │
555
554
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -646,7 +645,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
646
645
  * Either a string to use a HTML element or a component.
647
646
  * @default 'input'
648
647
  */
649
- inputComponent: Ze,
648
+ inputComponent: Ke,
650
649
  /**
651
650
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
652
651
  * @default {}
@@ -655,7 +654,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
655
654
  /**
656
655
  * Pass a ref to the `input` element.
657
656
  */
658
- inputRef: Je,
657
+ inputRef: Ye,
659
658
  /**
660
659
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
661
660
  * FormControl.
@@ -779,24 +778,24 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
779
778
  */
780
779
  value: e.any
781
780
  });
782
- function bo(o) {
783
- return Q("MuiFormLabel", o);
781
+ function po(o) {
782
+ return ne("MuiFormLabel", o);
784
783
  }
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) => {
784
+ const V = X("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), fo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], mo = (o) => {
786
785
  const {
787
786
  classes: n,
788
787
  color: r,
789
788
  focused: t,
790
789
  disabled: s,
791
- error: l,
792
- filled: m,
793
- required: y
794
- } = o, c = {
795
- root: ["root", `color${L(r)}`, s && "disabled", l && "error", m && "filled", t && "focused", y && "required"],
796
- asterisk: ["asterisk", l && "error"]
790
+ error: d,
791
+ filled: b,
792
+ required: h
793
+ } = o, u = {
794
+ root: ["root", `color${P(r)}`, s && "disabled", d && "error", b && "filled", t && "focused", h && "required"],
795
+ asterisk: ["asterisk", d && "error"]
797
796
  };
798
- return J(c, bo, n);
799
- }, go = B("label", {
797
+ return oe(u, po, n);
798
+ }, bo = q("label", {
800
799
  name: "MuiFormLabel",
801
800
  slot: "Root",
802
801
  overridesResolver: ({
@@ -811,61 +810,61 @@ const K = Y("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
811
810
  lineHeight: "1.4375em",
812
811
  padding: 0,
813
812
  position: "relative",
814
- [`&.${K.focused}`]: {
813
+ [`&.${V.focused}`]: {
815
814
  color: (o.vars || o).palette[n.color].main
816
815
  },
817
- [`&.${K.disabled}`]: {
816
+ [`&.${V.disabled}`]: {
818
817
  color: (o.vars || o).palette.text.disabled
819
818
  },
820
- [`&.${K.error}`]: {
819
+ [`&.${V.error}`]: {
821
820
  color: (o.vars || o).palette.error.main
822
821
  }
823
- })), vo = B("span", {
822
+ })), ho = q("span", {
824
823
  name: "MuiFormLabel",
825
824
  slot: "Asterisk",
826
825
  overridesResolver: (o, n) => n.asterisk
827
826
  })(({
828
827
  theme: o
829
828
  }) => ({
830
- [`&.${K.error}`]: {
829
+ [`&.${V.error}`]: {
831
830
  color: (o.vars || o).palette.error.main
832
831
  }
833
- })), Me = /* @__PURE__ */ a.forwardRef(function(n, r) {
834
- const t = Z({
832
+ })), Ae = /* @__PURE__ */ a.forwardRef(function(n, r) {
833
+ const t = ee({
835
834
  props: n,
836
835
  name: "MuiFormLabel"
837
836
  }), {
838
837
  children: s,
839
- className: l,
840
- component: m = "label"
841
- } = t, y = H(t, ho), c = re(), d = he({
838
+ className: d,
839
+ component: b = "label"
840
+ } = t, h = K(t, fo), u = me(), l = be({
842
841
  props: t,
843
- muiFormControl: c,
842
+ muiFormControl: u,
844
843
  states: ["color", "required", "focused", "disabled", "error", "filled"]
845
- }), u = i({}, t, {
846
- color: d.color || "primary",
847
- component: m,
848
- disabled: d.disabled,
849
- error: d.error,
850
- filled: d.filled,
851
- focused: d.focused,
852
- required: d.required
853
- }), g = yo(u);
854
- return /* @__PURE__ */ q(go, i({
855
- as: m,
856
- ownerState: u,
857
- className: j(g.root, l),
844
+ }), p = i({}, t, {
845
+ color: l.color || "primary",
846
+ component: b,
847
+ disabled: l.disabled,
848
+ error: l.error,
849
+ filled: l.filled,
850
+ focused: l.focused,
851
+ required: l.required
852
+ }), x = mo(p);
853
+ return /* @__PURE__ */ G(bo, i({
854
+ as: b,
855
+ ownerState: p,
856
+ className: U(x.root, d),
858
857
  ref: r
859
- }, y, {
860
- children: [s, d.required && /* @__PURE__ */ q(vo, {
861
- ownerState: u,
858
+ }, h, {
859
+ children: [s, l.required && /* @__PURE__ */ G(ho, {
860
+ ownerState: p,
862
861
  "aria-hidden": !0,
863
- className: g.asterisk,
862
+ className: x.asterisk,
864
863
  children: [" ", "*"]
865
864
  })]
866
865
  }));
867
866
  });
868
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
867
+ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
869
868
  // ┌────────────────────────────── Warning ──────────────────────────────┐
870
869
  // │ These PropTypes are generated from the TypeScript type definitions. │
871
870
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -918,26 +917,26 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
918
917
  */
919
918
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
920
919
  });
921
- function xo(o) {
922
- return Q("MuiInputLabel", o);
920
+ function yo(o) {
921
+ return ne("MuiInputLabel", o);
923
922
  }
924
- Y("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
925
- const Co = ["disableAnimation", "margin", "shrink", "variant", "className"], Oo = (o) => {
923
+ X("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
924
+ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo = (o) => {
926
925
  const {
927
926
  classes: n,
928
927
  formControl: r,
929
928
  size: t,
930
929
  shrink: s,
931
- disableAnimation: l,
932
- variant: m,
933
- required: y
934
- } = o, c = {
935
- root: ["root", r && "formControl", !l && "animated", s && "shrink", t && t !== "normal" && `size${L(t)}`, m],
936
- asterisk: [y && "asterisk"]
937
- }, d = J(c, xo, n);
938
- return i({}, n, d);
939
- }, wo = B(Me, {
940
- shouldForwardProp: (o) => Ye(o) || o === "classes",
930
+ disableAnimation: d,
931
+ variant: b,
932
+ required: h
933
+ } = o, u = {
934
+ root: ["root", r && "formControl", !d && "animated", s && "shrink", t && t !== "normal" && `size${P(t)}`, b],
935
+ asterisk: [h && "asterisk"]
936
+ }, l = oe(u, yo, n);
937
+ return i({}, n, l);
938
+ }, xo = q(Ae, {
939
+ shouldForwardProp: (o) => Ge(o) || o === "classes",
941
940
  name: "MuiInputLabel",
942
941
  slot: "Root",
943
942
  overridesResolver: (o, n) => {
@@ -945,7 +944,7 @@ const Co = ["disableAnimation", "margin", "shrink", "variant", "className"], Oo
945
944
  ownerState: r
946
945
  } = o;
947
946
  return [{
948
- [`& .${K.asterisk}`]: n.asterisk
947
+ [`& .${V.asterisk}`]: n.asterisk
949
948
  }, 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]];
950
949
  }
951
950
  })(({
@@ -1009,40 +1008,40 @@ const Co = ["disableAnimation", "margin", "shrink", "variant", "className"], Oo
1009
1008
  // but it feels a better when it bleeds a bit on the left, so 32px.
1010
1009
  maxWidth: "calc(133% - 32px)",
1011
1010
  transform: "translate(14px, -9px) scale(0.75)"
1012
- }))), To = /* @__PURE__ */ a.forwardRef(function(n, r) {
1013
- const t = Z({
1011
+ }))), Co = /* @__PURE__ */ a.forwardRef(function(n, r) {
1012
+ const t = ee({
1014
1013
  name: "MuiInputLabel",
1015
1014
  props: n
1016
1015
  }), {
1017
1016
  disableAnimation: s = !1,
1018
- shrink: l,
1019
- className: m
1020
- } = t, y = H(t, Co), c = re();
1021
- let d = l;
1022
- typeof d > "u" && c && (d = c.filled || c.focused || c.adornedStart);
1023
- const u = he({
1017
+ shrink: d,
1018
+ className: b
1019
+ } = t, h = K(t, go), u = me();
1020
+ let l = d;
1021
+ typeof l > "u" && u && (l = u.filled || u.focused || u.adornedStart);
1022
+ const p = be({
1024
1023
  props: t,
1025
- muiFormControl: c,
1024
+ muiFormControl: u,
1026
1025
  states: ["size", "variant", "required", "focused"]
1027
- }), g = i({}, t, {
1026
+ }), x = i({}, t, {
1028
1027
  disableAnimation: s,
1029
- formControl: c,
1030
- shrink: d,
1031
- size: u.size,
1032
- variant: u.variant,
1033
- required: u.required,
1034
- focused: u.focused
1035
- }), p = Oo(g);
1036
- return /* @__PURE__ */ E(wo, i({
1037
- "data-shrink": d,
1038
- ownerState: g,
1028
+ formControl: u,
1029
+ shrink: l,
1030
+ size: p.size,
1031
+ variant: p.variant,
1032
+ required: p.required,
1033
+ focused: p.focused
1034
+ }), y = vo(x);
1035
+ return /* @__PURE__ */ I(xo, i({
1036
+ "data-shrink": l,
1037
+ ownerState: x,
1039
1038
  ref: r,
1040
- className: j(p.root, m)
1041
- }, y, {
1042
- classes: p
1039
+ className: U(y.root, b)
1040
+ }, h, {
1041
+ classes: y
1043
1042
  }));
1044
1043
  });
1045
- process.env.NODE_ENV !== "production" && (To.propTypes = {
1044
+ process.env.NODE_ENV !== "production" && (Co.propTypes = {
1046
1045
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1047
1046
  // │ These PropTypes are generated from the TypeScript type definitions. │
1048
1047
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1109,169 +1108,25 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
1109
1108
  */
1110
1109
  variant: e.oneOf(["filled", "outlined", "standard"])
1111
1110
  });
1112
- function Eo(o) {
1113
- return Q("MuiInputAdornment", o);
1114
- }
1115
- const Fe = Y("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
1116
- var Ie;
1117
- const Ro = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], So = (o, n) => {
1118
- const {
1119
- ownerState: r
1120
- } = o;
1121
- return [n.root, n[`position${L(r.position)}`], r.disablePointerEvents === !0 && n.disablePointerEvents, n[r.variant]];
1122
- }, No = (o) => {
1123
- const {
1124
- classes: n,
1125
- disablePointerEvents: r,
1126
- hiddenLabel: t,
1127
- position: s,
1128
- size: l,
1129
- variant: m
1130
- } = o, y = {
1131
- root: ["root", r && "disablePointerEvents", s && `position${L(s)}`, m, t && "hiddenLabel", l && `size${L(l)}`]
1132
- };
1133
- return J(y, Eo, n);
1134
- }, Fo = B("div", {
1135
- name: "MuiInputAdornment",
1136
- slot: "Root",
1137
- overridesResolver: So
1138
- })(({
1139
- theme: o,
1140
- ownerState: n
1141
- }) => i({
1142
- display: "flex",
1143
- height: "0.01em",
1144
- // Fix IE11 flexbox alignment. To remove at some point.
1145
- maxHeight: "2em",
1146
- alignItems: "center",
1147
- whiteSpace: "nowrap",
1148
- color: (o.vars || o).palette.action.active
1149
- }, n.variant === "filled" && {
1150
- // Styles applied to the root element if `variant="filled"`.
1151
- [`&.${Fe.positionStart}&:not(.${Fe.hiddenLabel})`]: {
1152
- marginTop: 16
1153
- }
1154
- }, n.position === "start" && {
1155
- // Styles applied to the root element if `position="start"`.
1156
- marginRight: 8
1157
- }, n.position === "end" && {
1158
- // Styles applied to the root element if `position="end"`.
1159
- marginLeft: 8
1160
- }, n.disablePointerEvents === !0 && {
1161
- // Styles applied to the root element if `disablePointerEvents={true}`.
1162
- pointerEvents: "none"
1163
- })), Io = /* @__PURE__ */ a.forwardRef(function(n, r) {
1164
- const t = Z({
1165
- props: n,
1166
- name: "MuiInputAdornment"
1167
- }), {
1168
- children: s,
1169
- className: l,
1170
- component: m = "div",
1171
- disablePointerEvents: y = !1,
1172
- disableTypography: c = !1,
1173
- position: d,
1174
- variant: u
1175
- } = t, g = H(t, Ro), p = re() || {};
1176
- let R = u;
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);
1178
- const O = i({}, t, {
1179
- hiddenLabel: p.hiddenLabel,
1180
- size: p.size,
1181
- disablePointerEvents: y,
1182
- position: d,
1183
- variant: R
1184
- }), w = No(O);
1185
- return /* @__PURE__ */ E(be.Provider, {
1186
- value: null,
1187
- children: /* @__PURE__ */ E(Fo, i({
1188
- as: m,
1189
- ownerState: O,
1190
- className: j(w.root, l),
1191
- ref: r
1192
- }, g, {
1193
- children: typeof s == "string" && !c ? /* @__PURE__ */ E(eo, {
1194
- color: "text.secondary",
1195
- children: s
1196
- }) : /* @__PURE__ */ q(a.Fragment, {
1197
- children: [d === "start" ? (
1198
- /* notranslate needed while Google Translate will not fix zero-width space issue */
1199
- Ie || (Ie = /* @__PURE__ */ E("span", {
1200
- className: "notranslate",
1201
- children: "​"
1202
- }))
1203
- ) : null, s]
1204
- })
1205
- }))
1206
- });
1207
- });
1208
- process.env.NODE_ENV !== "production" && (Io.propTypes = {
1209
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1210
- // │ These PropTypes are generated from the TypeScript type definitions. │
1211
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1212
- // └─────────────────────────────────────────────────────────────────────┘
1213
- /**
1214
- * The content of the component, normally an `IconButton` or string.
1215
- */
1216
- children: e.node,
1217
- /**
1218
- * Override or extend the styles applied to the component.
1219
- */
1220
- classes: e.object,
1221
- /**
1222
- * @ignore
1223
- */
1224
- className: e.string,
1225
- /**
1226
- * The component used for the root node.
1227
- * Either a string to use a HTML element or a component.
1228
- */
1229
- component: e.elementType,
1230
- /**
1231
- * Disable pointer events on the root.
1232
- * This allows for the content of the adornment to focus the `input` on click.
1233
- * @default false
1234
- */
1235
- disablePointerEvents: e.bool,
1236
- /**
1237
- * If children is a string then disable wrapping in a Typography component.
1238
- * @default false
1239
- */
1240
- disableTypography: e.bool,
1241
- /**
1242
- * The position this adornment should appear relative to the `Input`.
1243
- */
1244
- position: e.oneOf(["end", "start"]).isRequired,
1245
- /**
1246
- * The system prop that allows defining system overrides as well as additional CSS styles.
1247
- */
1248
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1249
- /**
1250
- * The variant to use.
1251
- * Note: If you are using the `TextField` component or the `FormControl` component
1252
- * you do not have to set this manually.
1253
- */
1254
- variant: e.oneOf(["filled", "outlined", "standard"])
1255
- });
1256
- function zo(o) {
1257
- return Q("MuiFormControl", o);
1111
+ function wo(o) {
1112
+ return ne("MuiFormControl", o);
1258
1113
  }
1259
- Y("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
1260
- const Ao = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], ko = (o) => {
1114
+ X("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
1115
+ const Oo = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], So = (o) => {
1261
1116
  const {
1262
1117
  classes: n,
1263
1118
  margin: r,
1264
1119
  fullWidth: t
1265
1120
  } = o, s = {
1266
- root: ["root", r !== "none" && `margin${L(r)}`, t && "fullWidth"]
1121
+ root: ["root", r !== "none" && `margin${P(r)}`, t && "fullWidth"]
1267
1122
  };
1268
- return J(s, zo, n);
1269
- }, Lo = B("div", {
1123
+ return oe(s, wo, n);
1124
+ }, Ro = q("div", {
1270
1125
  name: "MuiFormControl",
1271
1126
  slot: "Root",
1272
1127
  overridesResolver: ({
1273
1128
  ownerState: o
1274
- }, n) => i({}, n.root, n[`margin${L(o.margin)}`], o.fullWidth && n.fullWidth)
1129
+ }, n) => i({}, n.root, n[`margin${P(o.margin)}`], o.fullWidth && n.fullWidth)
1275
1130
  })(({
1276
1131
  ownerState: o
1277
1132
  }) => i({
@@ -1292,99 +1147,99 @@ const Ao = ["children", "className", "color", "component", "disabled", "error",
1292
1147
  marginBottom: 4
1293
1148
  }, o.fullWidth && {
1294
1149
  width: "100%"
1295
- })), Mo = /* @__PURE__ */ a.forwardRef(function(n, r) {
1296
- const t = Z({
1150
+ })), To = /* @__PURE__ */ a.forwardRef(function(n, r) {
1151
+ const t = ee({
1297
1152
  props: n,
1298
1153
  name: "MuiFormControl"
1299
1154
  }), {
1300
1155
  children: s,
1301
- className: l,
1302
- color: m = "primary",
1303
- component: y = "div",
1304
- disabled: c = !1,
1305
- error: d = !1,
1306
- focused: u,
1307
- fullWidth: g = !1,
1308
- hiddenLabel: p = !1,
1309
- margin: R = "none",
1156
+ className: d,
1157
+ color: b = "primary",
1158
+ component: h = "div",
1159
+ disabled: u = !1,
1160
+ error: l = !1,
1161
+ focused: p,
1162
+ fullWidth: x = !1,
1163
+ hiddenLabel: y = !1,
1164
+ margin: A = "none",
1310
1165
  required: O = !1,
1311
- size: w = "medium",
1312
- variant: $ = "outlined"
1313
- } = t, v = H(t, Ao), b = i({}, t, {
1314
- color: m,
1315
- component: y,
1316
- disabled: c,
1317
- error: d,
1318
- fullWidth: g,
1319
- hiddenLabel: p,
1320
- margin: R,
1166
+ size: S = "medium",
1167
+ variant: B = "outlined"
1168
+ } = t, g = K(t, Oo), f = i({}, t, {
1169
+ color: b,
1170
+ component: h,
1171
+ disabled: u,
1172
+ error: l,
1173
+ fullWidth: x,
1174
+ hiddenLabel: y,
1175
+ margin: A,
1321
1176
  required: O,
1322
- size: w,
1323
- variant: $
1324
- }), C = ko(b), [x, M] = a.useState(() => {
1325
- let I = !1;
1326
- return s && a.Children.forEach(s, (k) => {
1327
- if (!ue(k, ["Input", "Select"]))
1177
+ size: S,
1178
+ variant: B
1179
+ }), C = So(f), [v, M] = a.useState(() => {
1180
+ let F = !1;
1181
+ return s && a.Children.forEach(s, (z) => {
1182
+ if (!ue(z, ["Input", "Select"]))
1328
1183
  return;
1329
- const D = ue(k, ["Select"]) ? k.props.input : k;
1330
- D && to(D.props) && (I = !0);
1331
- }), I;
1332
- }), [z, N] = a.useState(() => {
1333
- let I = !1;
1334
- return s && a.Children.forEach(s, (k) => {
1335
- ue(k, ["Input", "Select"]) && (fe(k.props, !0) || fe(k.props.inputProps, !0)) && (I = !0);
1336
- }), I;
1337
- }), [F, A] = a.useState(!1);
1338
- c && F && A(!1);
1339
- const T = u !== void 0 && !c ? u : F;
1184
+ const D = ue(z, ["Select"]) ? z.props.input : z;
1185
+ D && oo(D.props) && (F = !0);
1186
+ }), F;
1187
+ }), [N, T] = a.useState(() => {
1188
+ let F = !1;
1189
+ return s && a.Children.forEach(s, (z) => {
1190
+ ue(z, ["Input", "Select"]) && (pe(z.props, !0) || pe(z.props.inputProps, !0)) && (F = !0);
1191
+ }), F;
1192
+ }), [E, k] = a.useState(!1);
1193
+ u && E && k(!1);
1194
+ const w = p !== void 0 && !u ? p : E;
1340
1195
  let W;
1341
1196
  if (process.env.NODE_ENV !== "production") {
1342
- const I = a.useRef(!1);
1343
- W = () => (I.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1344
- `)), I.current = !0, () => {
1345
- I.current = !1;
1197
+ const F = a.useRef(!1);
1198
+ W = () => (F.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1199
+ `)), F.current = !0, () => {
1200
+ F.current = !1;
1346
1201
  });
1347
1202
  }
1348
- const V = a.useMemo(() => ({
1349
- adornedStart: x,
1203
+ const H = a.useMemo(() => ({
1204
+ adornedStart: v,
1350
1205
  setAdornedStart: M,
1351
- color: m,
1352
- disabled: c,
1353
- error: d,
1354
- filled: z,
1355
- focused: T,
1356
- fullWidth: g,
1357
- hiddenLabel: p,
1358
- size: w,
1206
+ color: b,
1207
+ disabled: u,
1208
+ error: l,
1209
+ filled: N,
1210
+ focused: w,
1211
+ fullWidth: x,
1212
+ hiddenLabel: y,
1213
+ size: S,
1359
1214
  onBlur: () => {
1360
- A(!1);
1215
+ k(!1);
1361
1216
  },
1362
1217
  onEmpty: () => {
1363
- N(!1);
1218
+ T(!1);
1364
1219
  },
1365
1220
  onFilled: () => {
1366
- N(!0);
1221
+ T(!0);
1367
1222
  },
1368
1223
  onFocus: () => {
1369
- A(!0);
1224
+ k(!0);
1370
1225
  },
1371
1226
  registerEffect: W,
1372
1227
  required: O,
1373
- variant: $
1374
- }), [x, m, c, d, z, T, g, p, W, O, w, $]);
1375
- return /* @__PURE__ */ E(be.Provider, {
1376
- value: V,
1377
- children: /* @__PURE__ */ E(Lo, i({
1378
- as: y,
1379
- ownerState: b,
1380
- className: j(C.root, l),
1228
+ variant: B
1229
+ }), [v, b, u, l, N, w, x, y, W, O, S, B]);
1230
+ return /* @__PURE__ */ I(Fe.Provider, {
1231
+ value: H,
1232
+ children: /* @__PURE__ */ I(Ro, i({
1233
+ as: h,
1234
+ ownerState: f,
1235
+ className: U(C.root, d),
1381
1236
  ref: r
1382
- }, v, {
1237
+ }, g, {
1383
1238
  children: s
1384
1239
  }))
1385
1240
  });
1386
1241
  });
1387
- process.env.NODE_ENV !== "production" && (Mo.propTypes = {
1242
+ process.env.NODE_ENV !== "production" && (To.propTypes = {
1388
1243
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1389
1244
  // │ These PropTypes are generated from the TypeScript type definitions. │
1390
1245
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1465,15 +1320,14 @@ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
1465
1320
  variant: e.oneOf(["filled", "outlined", "standard"])
1466
1321
  });
1467
1322
  export {
1468
- Mo as F,
1469
- To as I,
1470
- Io as a,
1471
- uo as b,
1472
- po as c,
1473
- lo as d,
1474
- mo as e,
1475
- he as f,
1476
- fe as g,
1477
- me as i,
1478
- ao as r
1323
+ To as F,
1324
+ Co as I,
1325
+ ao as a,
1326
+ lo as b,
1327
+ so as c,
1328
+ co as d,
1329
+ pe as e,
1330
+ be as f,
1331
+ fe as i,
1332
+ to as r
1479
1333
  };