@hybridcore/ui 1.3.3 → 1.3.5

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 (67) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-D6qhsxB0.js} +201 -210
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
  5. package/dist/DialogContent-BCYm_d1s.js +864 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
  7. package/dist/FormControlLabel-DENNVXWL.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
  12. package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
  13. package/dist/Modal-DNGEQJ1M.js +1267 -0
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
  16. package/dist/Select-NDq3WyLt.js +2175 -0
  17. package/dist/Typography-Dg-ROiTA.js +201 -0
  18. package/dist/components/card/index.js +17 -17
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +222 -302
  21. package/dist/components/confirm/dialog.js +13 -13
  22. package/dist/components/container/index.js +19 -19
  23. package/dist/components/context-menu/index.js +616 -203
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/geometry-picker/index.js +3 -3
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/map/styled.js +14 -14
  30. package/dist/components/search-input/index.js +4 -4
  31. package/dist/components/template-property-filters/index.js +1 -1
  32. package/dist/components/template-property-filters/property.js +209 -10
  33. package/dist/components/tree-select/index.js +4 -4
  34. package/dist/components/treeview-filter/index.js +29 -30
  35. package/dist/components/treeview-filter/item/index.js +1 -1
  36. package/dist/components/treeview-filter/item-label/index.js +2 -2
  37. package/dist/createStyled-B96gjom1.js +1887 -0
  38. package/dist/createSvgIcon-B2WT0K4k.js +87 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
  44. package/dist/main.js +150 -144
  45. package/dist/styled-cPJbqF0E.js +677 -0
  46. package/dist/useTheme-C-T6Qisa.js +10 -0
  47. package/dist/useThemeProps-DeftUmqJ.js +107 -0
  48. package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
  49. package/package.json +3 -3
  50. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  51. package/dist/FormControlLabel-Df7csguX.js +0 -827
  52. package/dist/ListItem-RJvRMwkZ.js +0 -428
  53. package/dist/Select-C1jD_gBQ.js +0 -2305
  54. package/dist/Typography-C2BkMNk-.js +0 -178
  55. package/dist/chainPropTypes-GRMJ22CO.js +0 -96
  56. package/dist/createSvgIcon-6wv0RQr3.js +0 -63
  57. package/dist/createTheme-C3DKplhE.js +0 -2395
  58. package/dist/property-BSufYw1E.js +0 -6888
  59. package/dist/requirePropFactory-BItwGLRQ.js +0 -18
  60. package/dist/resolveComponentProps-DozbaB8e.js +0 -54
  61. package/dist/styled-CVWGE9ik.js +0 -142
  62. package/dist/styled-iyoioZCr.js +0 -1033
  63. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  64. package/dist/useTheme--x3BjP9A.js +0 -17
  65. package/dist/useTheme-pWltVFb2.js +0 -10
  66. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  67. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -1,56 +1,22 @@
1
- import { a as K, _ as i } from "./extends-Cyw62AD_.js";
2
- import * as a from "react";
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
- import { o as Re } from "./ownerWindow-niciwP7I.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";
13
- import { i as ue } from "./isMuiElement-CxT3_ACP.js";
14
- function ke({
15
- styles: o,
16
- themeId: n,
17
- defaultTheme: r = {}
18
- }) {
19
- const t = Je(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
20
- return /* @__PURE__ */ I(_e, {
21
- styles: s
22
- });
23
- }
24
- process.env.NODE_ENV !== "production" && (ke.propTypes = {
25
- // ┌────────────────────────────── Warning ──────────────────────────────┐
26
- // │ These PropTypes are generated from the TypeScript type definitions. │
27
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
28
- // └─────────────────────────────────────────────────────────────────────┘
29
- /**
30
- * @ignore
31
- */
32
- defaultTheme: e.object,
33
- /**
34
- * @ignore
35
- */
36
- styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
37
- /**
38
- * @ignore
39
- */
40
- themeId: e.string
41
- });
42
- function be({
43
- props: o,
44
- states: n,
45
- muiFormControl: r
46
- }) {
47
- return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
48
- }
49
- const Qe = ["onChange", "maxRows", "minRows", "style", "value"];
50
- function Q(o) {
1
+ import { a as G, _ as a } from "./extends-Cyw62AD_.js";
2
+ import * as i from "react";
3
+ import { P as e, a as K, f as Ve } from "./createStyled-B96gjom1.js";
4
+ import { d as Ue, g as ee, u as oe, c as V, a as ne } from "./useThemeProps-DeftUmqJ.js";
5
+ import { u as fe, F as Ee } from "./useFormControl-CatNKXAi.js";
6
+ import { d as Ge, g as re, s as _, r as Ke } from "./styled-cPJbqF0E.js";
7
+ import { jsxs as U, jsx as N } from "react/jsx-runtime";
8
+ import { a as Ne, u as ke, e as Ye, r as Ze } from "./ButtonBase-D6qhsxB0.js";
9
+ import * as Je from "react-dom";
10
+ import { o as we } from "./ownerWindow-niciwP7I.js";
11
+ import { d as Qe } from "./debounce-46wSf_lW.js";
12
+ import { i as Oe } from "./isHostComponent-kiaBvYVo.js";
13
+ import { Global as Xe } from "@emotion/react";
14
+ import { i as ce } from "./isMuiElement-CxT3_ACP.js";
15
+ const eo = ["onChange", "maxRows", "minRows", "style", "value"];
16
+ function X(o) {
51
17
  return parseInt(o, 10) || 0;
52
18
  }
53
- const Xe = {
19
+ const oo = {
54
20
  shadow: {
55
21
  // Visibility needed to hide the extra text area on iPads
56
22
  visibility: "hidden",
@@ -65,91 +31,104 @@ const Xe = {
65
31
  transform: "translateZ(0)"
66
32
  }
67
33
  };
68
- function eo(o) {
69
- return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflowing;
34
+ function Te(o) {
35
+ return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
70
36
  }
71
- const ze = /* @__PURE__ */ a.forwardRef(function(n, r) {
37
+ const Fe = /* @__PURE__ */ i.forwardRef(function(n, r) {
72
38
  const {
73
39
  onChange: t,
74
40
  maxRows: s,
75
41
  minRows: d = 1,
76
- style: b,
77
- value: h
78
- } = n, u = K(n, Qe), {
42
+ style: h,
43
+ value: g
44
+ } = n, p = G(n, eo), {
79
45
  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);
82
- if (C.width === "0px")
46
+ } = i.useRef(g != null), b = i.useRef(null), C = Ne(r, b), w = i.useRef(null), T = i.useRef(0), [E, k] = i.useState({
47
+ outerHeightStyle: 0
48
+ }), F = i.useCallback(() => {
49
+ const u = b.current, y = we(u).getComputedStyle(u);
50
+ if (y.width === "0px")
83
51
  return {
84
- outerHeightStyle: 0,
85
- overflowing: !1
52
+ outerHeightStyle: 0
86
53
  };
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;
54
+ const f = w.current;
55
+ f.style.width = y.width, f.value = u.value || n.placeholder || "x", f.value.slice(-1) === `
56
+ ` && (f.value += " ");
57
+ const I = y.boxSizing, L = X(y.paddingBottom) + X(y.paddingTop), A = X(y.borderBottomWidth) + X(y.borderTopWidth), P = f.scrollHeight;
58
+ f.value = "x";
59
+ const O = f.scrollHeight;
60
+ let v = P;
61
+ d && (v = Math.max(Number(d) * O, v)), s && (v = Math.min(Number(s) * O, v)), v = Math.max(v, O);
62
+ const M = v + (I === "border-box" ? L + A : 0), Y = Math.abs(v - P) <= 1;
96
63
  return {
97
- outerHeightStyle: W,
98
- overflowing: H
99
- };
100
- }, [s, d, n.placeholder]), S = a.useCallback(() => {
101
- const g = O();
102
- if (eo(g))
103
- return;
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" : "";
106
- }, [O]);
107
- ce(() => {
108
- const g = () => {
109
- S();
64
+ outerHeightStyle: M,
65
+ overflow: Y
110
66
  };
111
- let f;
112
- const C = () => {
113
- cancelAnimationFrame(f), f = requestAnimationFrame(() => {
114
- g();
115
- });
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();
67
+ }, [s, d, n.placeholder]), B = (u, x) => {
68
+ const {
69
+ outerHeightStyle: y,
70
+ overflow: f
71
+ } = x;
72
+ return T.current < 20 && (y > 0 && Math.abs((u.outerHeightStyle || 0) - y) > 1 || u.overflow !== f) ? (T.current += 1, {
73
+ overflow: f,
74
+ outerHeightStyle: y
75
+ }) : (process.env.NODE_ENV !== "production" && T.current === 20 && console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
76
+ `)), u);
77
+ }, S = i.useCallback(() => {
78
+ const u = F();
79
+ Te(u) || k((x) => B(x, u));
80
+ }, [F]), j = () => {
81
+ const u = F();
82
+ Te(u) || Je.flushSync(() => {
83
+ k((x) => B(x, u));
84
+ });
85
+ };
86
+ i.useEffect(() => {
87
+ const u = Qe(() => {
88
+ T.current = 0, b.current && j();
89
+ });
90
+ let x;
91
+ const y = b.current, f = we(y);
92
+ return f.addEventListener("resize", u), typeof ResizeObserver < "u" && (x = new ResizeObserver(u), x.observe(y)), () => {
93
+ u.clear(), f.removeEventListener("resize", u), x && x.disconnect();
121
94
  };
122
- }, [O, S]), ce(() => {
95
+ }), ke(() => {
123
96
  S();
124
- });
125
- const B = (g) => {
126
- l || S(), t && t(g);
97
+ }), i.useEffect(() => {
98
+ T.current = 0;
99
+ }, [g]);
100
+ const W = (u) => {
101
+ T.current = 0, l || S(), t && t(u);
127
102
  };
128
- return /* @__PURE__ */ G(a.Fragment, {
129
- children: [/* @__PURE__ */ I("textarea", i({
130
- value: h,
131
- onChange: B,
132
- ref: x,
103
+ return /* @__PURE__ */ U(i.Fragment, {
104
+ children: [/* @__PURE__ */ N("textarea", a({
105
+ value: g,
106
+ onChange: W,
107
+ ref: C,
133
108
  rows: d,
134
- style: b
135
- }, u)), /* @__PURE__ */ I("textarea", {
109
+ style: a({
110
+ height: E.outerHeightStyle,
111
+ // Need a large enough difference to allow scrolling.
112
+ // This prevents infinite rendering loop.
113
+ overflow: E.overflow ? "hidden" : void 0
114
+ }, h)
115
+ }, p)), /* @__PURE__ */ N("textarea", {
136
116
  "aria-hidden": !0,
137
117
  className: n.className,
138
118
  readOnly: !0,
139
- ref: A,
119
+ ref: w,
140
120
  tabIndex: -1,
141
- style: i({}, Xe.shadow, b, {
142
- paddingTop: 0,
143
- paddingBottom: 0
121
+ style: a({}, oo.shadow, h, {
122
+ padding: 0
144
123
  })
145
124
  })]
146
125
  });
147
126
  });
148
- process.env.NODE_ENV !== "production" && (ze.propTypes = {
149
- // ┌────────────────────────────── Warning ──────────────────────────────┐
150
- // These PropTypes are generated from the TypeScript type definitions.
151
- // To update them, edit the TypeScript types and run `pnpm proptypes`. │
152
- // └─────────────────────────────────────────────────────────────────────┘
127
+ process.env.NODE_ENV !== "production" && (Fe.propTypes = {
128
+ // ----------------------------- Warning --------------------------------
129
+ // | These PropTypes are generated from the TypeScript type definitions |
130
+ // | To update them edit TypeScript types and run "yarn proptypes" |
131
+ // ----------------------------------------------------------------------
153
132
  /**
154
133
  * @ignore
155
134
  */
@@ -180,73 +159,125 @@ process.env.NODE_ENV !== "production" && (ze.propTypes = {
180
159
  */
181
160
  value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
182
161
  });
183
- function Ie(o) {
184
- return /* @__PURE__ */ I(ke, i({}, o, {
185
- defaultTheme: Ve,
186
- themeId: Ue
187
- }));
162
+ function no(o) {
163
+ return o == null || Object.keys(o).length === 0;
164
+ }
165
+ function ze(o) {
166
+ const {
167
+ styles: n,
168
+ defaultTheme: r = {}
169
+ } = o;
170
+ return /* @__PURE__ */ N(Xe, {
171
+ styles: typeof n == "function" ? (s) => n(no(s) ? r : s) : n
172
+ });
173
+ }
174
+ process.env.NODE_ENV !== "production" && (ze.propTypes = {
175
+ defaultTheme: e.object,
176
+ styles: e.oneOfType([e.array, e.string, e.object, e.func])
177
+ });
178
+ function Ie({
179
+ styles: o,
180
+ themeId: n,
181
+ defaultTheme: r = {}
182
+ }) {
183
+ const t = Ue(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
184
+ return /* @__PURE__ */ N(ze, {
185
+ styles: s
186
+ });
188
187
  }
189
188
  process.env.NODE_ENV !== "production" && (Ie.propTypes = {
190
189
  // ┌────────────────────────────── Warning ──────────────────────────────┐
191
190
  // │ These PropTypes are generated from the TypeScript type definitions. │
192
- // │ To update them, edit the d.ts file and run `pnpm proptypes`.
191
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`.
193
192
  // └─────────────────────────────────────────────────────────────────────┘
193
+ /**
194
+ * @ignore
195
+ */
196
+ defaultTheme: e.object,
197
+ /**
198
+ * @ignore
199
+ */
200
+ styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
201
+ /**
202
+ * @ignore
203
+ */
204
+ themeId: e.string
205
+ });
206
+ function me({
207
+ props: o,
208
+ states: n,
209
+ muiFormControl: r
210
+ }) {
211
+ return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
212
+ }
213
+ function Ae(o) {
214
+ return /* @__PURE__ */ N(Ie, a({}, o, {
215
+ defaultTheme: Ge
216
+ }));
217
+ }
218
+ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
219
+ // ----------------------------- Warning --------------------------------
220
+ // | These PropTypes are generated from the TypeScript type definitions |
221
+ // | To update them edit the d.ts file and run "yarn proptypes" |
222
+ // ----------------------------------------------------------------------
194
223
  /**
195
224
  * The styles you want to apply globally.
196
225
  */
197
- styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
226
+ styles: e.oneOfType([e.func, e.number, e.object, e.shape({
227
+ __emotion_styles: e.any.isRequired
228
+ }), e.string, e.bool])
198
229
  });
199
- function Ee(o) {
230
+ function Re(o) {
200
231
  return o != null && !(Array.isArray(o) && o.length === 0);
201
232
  }
202
- function pe(o, n = !1) {
203
- return o && (Ee(o.value) && o.value !== "" || n && Ee(o.defaultValue) && o.defaultValue !== "");
233
+ function Me(o, n = !1) {
234
+ return o && (Re(o.value) && o.value !== "" || n && Re(o.defaultValue) && o.defaultValue !== "");
204
235
  }
205
- function oo(o) {
236
+ function ro(o) {
206
237
  return o.startAdornment;
207
238
  }
208
- function no(o) {
209
- return ne("MuiInputBase", o);
239
+ function to(o) {
240
+ return re("MuiInputBase", o);
210
241
  }
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) => {
242
+ const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), so = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], io = (o, n) => {
212
243
  const {
213
244
  ownerState: r
214
245
  } = o;
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) => {
246
+ return [n.root, r.formControl && n.formControl, r.startAdornment && n.adornedStart, r.endAdornment && n.adornedEnd, r.error && n.error, r.size === "small" && n.sizeSmall, r.multiline && n.multiline, r.color && n[`color${K(r.color)}`], r.fullWidth && n.fullWidth, r.hiddenLabel && n.hiddenLabel];
247
+ }, ao = (o, n) => {
217
248
  const {
218
249
  ownerState: r
219
250
  } = o;
220
251
  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];
221
- }, io = (o) => {
252
+ }, lo = (o) => {
222
253
  const {
223
254
  classes: n,
224
255
  color: r,
225
256
  disabled: t,
226
257
  error: s,
227
258
  endAdornment: d,
228
- focused: b,
229
- formControl: h,
230
- fullWidth: u,
259
+ focused: h,
260
+ formControl: g,
261
+ fullWidth: p,
231
262
  hiddenLabel: l,
232
- multiline: p,
233
- readOnly: x,
234
- size: y,
235
- startAdornment: A,
236
- type: O
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"]
263
+ multiline: b,
264
+ readOnly: C,
265
+ size: w,
266
+ startAdornment: T,
267
+ type: E
268
+ } = o, k = {
269
+ root: ["root", `color${K(r)}`, t && "disabled", s && "error", p && "fullWidth", h && "focused", g && "formControl", w === "small" && "sizeSmall", b && "multiline", T && "adornedStart", d && "adornedEnd", l && "hiddenLabel", C && "readOnly"],
270
+ input: ["input", t && "disabled", E === "search" && "inputTypeSearch", b && "inputMultiline", w === "small" && "inputSizeSmall", l && "inputHiddenLabel", T && "inputAdornedStart", d && "inputAdornedEnd", C && "readOnly"]
240
271
  };
241
- return oe(S, no, n);
242
- }, ao = q("div", {
272
+ return ne(k, to, n);
273
+ }, uo = _("div", {
243
274
  name: "MuiInputBase",
244
275
  slot: "Root",
245
- overridesResolver: to
276
+ overridesResolver: io
246
277
  })(({
247
278
  theme: o,
248
279
  ownerState: n
249
- }) => i({}, o.typography.body1, {
280
+ }) => a({}, o.typography.body1, {
250
281
  color: (o.vars || o).palette.text.primary,
251
282
  lineHeight: "1.4375em",
252
283
  // 23px
@@ -256,25 +287,25 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
256
287
  cursor: "text",
257
288
  display: "inline-flex",
258
289
  alignItems: "center",
259
- [`&.${fe.disabled}`]: {
290
+ [`&.${pe.disabled}`]: {
260
291
  color: (o.vars || o).palette.text.disabled,
261
292
  cursor: "default"
262
293
  }
263
- }, n.multiline && i({
294
+ }, n.multiline && a({
264
295
  padding: "4px 0 5px"
265
296
  }, n.size === "small" && {
266
297
  paddingTop: 1
267
298
  }), n.fullWidth && {
268
299
  width: "100%"
269
- })), lo = q("input", {
300
+ })), co = _("input", {
270
301
  name: "MuiInputBase",
271
302
  slot: "Input",
272
- overridesResolver: so
303
+ overridesResolver: ao
273
304
  })(({
274
305
  theme: o,
275
306
  ownerState: n
276
307
  }) => {
277
- const r = o.palette.mode === "light", t = i({
308
+ const r = o.palette.mode === "light", t = a({
278
309
  color: "currentColor"
279
310
  }, o.vars ? {
280
311
  opacity: o.vars.opacity.inputPlaceholder
@@ -291,7 +322,7 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
291
322
  } : {
292
323
  opacity: r ? 0.42 : 0.5
293
324
  };
294
- return i({
325
+ return a({
295
326
  font: "inherit",
296
327
  letterSpacing: "inherit",
297
328
  color: "currentColor",
@@ -330,7 +361,7 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
330
361
  WebkitAppearance: "none"
331
362
  },
332
363
  // Show and hide the placeholder logic
333
- [`label[data-shrink=false] + .${fe.formControl} &`]: {
364
+ [`label[data-shrink=false] + .${pe.formControl} &`]: {
334
365
  "&::-webkit-input-placeholder": s,
335
366
  "&::-moz-placeholder": s,
336
367
  // Firefox 19+
@@ -346,7 +377,7 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
346
377
  "&:focus::-ms-input-placeholder": d
347
378
  // Edge
348
379
  },
349
- [`&.${fe.disabled}`]: {
380
+ [`&.${pe.disabled}`]: {
350
381
  opacity: 1,
351
382
  // Reset iOS opacity
352
383
  WebkitTextFillColor: (o.vars || o).palette.text.disabled
@@ -367,7 +398,7 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
367
398
  // Improve type search style.
368
399
  MozAppearance: "textfield"
369
400
  });
370
- }), uo = /* @__PURE__ */ I(Ie, {
401
+ }), po = /* @__PURE__ */ N(Ae, {
371
402
  styles: {
372
403
  "@keyframes mui-auto-fill": {
373
404
  from: {
@@ -380,179 +411,179 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
380
411
  }
381
412
  }
382
413
  }
383
- }), co = /* @__PURE__ */ a.forwardRef(function(n, r) {
414
+ }), fo = /* @__PURE__ */ i.forwardRef(function(n, r) {
384
415
  var t;
385
- const s = ee({
416
+ const s = oe({
386
417
  props: n,
387
418
  name: "MuiInputBase"
388
419
  }), {
389
420
  "aria-describedby": d,
390
- autoComplete: b,
391
- autoFocus: h,
392
- className: u,
421
+ autoComplete: h,
422
+ autoFocus: g,
423
+ className: p,
393
424
  components: l = {},
394
- componentsProps: p = {},
395
- defaultValue: x,
396
- disabled: y,
397
- disableInjectingGlobalStyles: A,
398
- endAdornment: O,
399
- fullWidth: S = !1,
400
- id: B,
401
- inputComponent: g = "input",
402
- inputProps: f = {},
403
- inputRef: C,
404
- maxRows: v,
405
- minRows: M,
406
- multiline: N = !1,
407
- name: T,
408
- onBlur: E,
409
- onChange: k,
410
- onClick: w,
411
- onFocus: W,
412
- onKeyDown: H,
413
- onKeyUp: F,
414
- placeholder: z,
415
- readOnly: D,
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) => {
425
+ componentsProps: b = {},
426
+ defaultValue: C,
427
+ disabled: w,
428
+ disableInjectingGlobalStyles: T,
429
+ endAdornment: E,
430
+ fullWidth: k = !1,
431
+ id: F,
432
+ inputComponent: B = "input",
433
+ inputProps: S = {},
434
+ inputRef: j,
435
+ maxRows: W,
436
+ minRows: u,
437
+ multiline: x = !1,
438
+ name: y,
439
+ onBlur: f,
440
+ onChange: I,
441
+ onClick: L,
442
+ onFocus: A,
443
+ onKeyDown: P,
444
+ onKeyUp: O,
445
+ placeholder: v,
446
+ readOnly: M,
447
+ renderSuffix: Y,
448
+ rows: Z,
449
+ slotProps: be = {},
450
+ slots: he = {},
451
+ startAdornment: $,
452
+ type: ye = "text",
453
+ value: Le
454
+ } = s, Be = G(s, so), J = S.value != null ? S.value : Le, {
455
+ current: te
456
+ } = i.useRef(J != null), D = i.useRef(), Pe = i.useCallback((c) => {
426
457
  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(`
427
458
  `));
428
- }, []), Be = Ne($, C, f.ref, We), [te, se] = a.useState(!1), m = me();
429
- process.env.NODE_ENV !== "production" && a.useEffect(() => {
459
+ }, []), De = Ne(D, j, S.ref, Pe), [se, ie] = i.useState(!1), m = fe();
460
+ process.env.NODE_ENV !== "production" && i.useEffect(() => {
430
461
  if (m)
431
462
  return m.registerEffect();
432
463
  }, [m]);
433
- const R = be({
464
+ const R = me({
434
465
  props: s,
435
466
  muiFormControl: m,
436
467
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
437
468
  });
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
469
+ R.focused = m ? m.focused : se, i.useEffect(() => {
470
+ !m && w && se && (ie(!1), f && f());
471
+ }, [m, w, se, f]);
472
+ const ae = m && m.onFilled, le = m && m.onEmpty, q = i.useCallback((c) => {
473
+ Me(c) ? ae && ae() : le && le();
474
+ }, [ae, le]);
475
+ ke(() => {
476
+ te && q({
477
+ value: J
447
478
  });
448
- }, [Z, j, re]);
449
- const Pe = (c) => {
479
+ }, [J, q, te]);
480
+ const _e = (c) => {
450
481
  if (R.disabled) {
451
482
  c.stopPropagation();
452
483
  return;
453
484
  }
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;
485
+ A && A(c), S.onFocus && S.onFocus(c), m && m.onFocus ? m.onFocus(c) : ie(!0);
486
+ }, je = (c) => {
487
+ f && f(c), S.onBlur && S.onBlur(c), m && m.onBlur ? m.onBlur(c) : ie(!1);
488
+ }, $e = (c, ...Ce) => {
489
+ if (!te) {
490
+ const Se = c.target || D.current;
460
491
  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({
492
+ 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." : Ve(1));
493
+ q({
463
494
  value: Se.value
464
495
  });
465
496
  }
466
- f.onChange && f.onChange(c, ...Oe), k && k(c, ...Oe);
497
+ S.onChange && S.onChange(c, ...Ce), I && I(c, ...Ce);
467
498
  };
468
- a.useEffect(() => {
469
- j($.current);
499
+ i.useEffect(() => {
500
+ q(D.current);
470
501
  }, []);
471
502
  const qe = (c) => {
472
- $.current && c.currentTarget === c.target && $.current.focus(), w && w(c);
503
+ D.current && c.currentTarget === c.target && D.current.focus(), L && L(c);
473
504
  };
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({
505
+ let de = B, z = S;
506
+ x && de === "input" && (Z ? (process.env.NODE_ENV !== "production" && (u || W) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), z = a({
476
507
  type: void 0,
477
- minRows: Y,
478
- maxRows: Y
479
- }, L)) : L = i({
508
+ minRows: Z,
509
+ maxRows: Z
510
+ }, z)) : z = a({
480
511
  type: void 0,
481
- maxRows: v,
482
- minRows: M
483
- }, L), le = ze);
512
+ maxRows: W,
513
+ minRows: u
514
+ }, z), de = Fe);
484
515
  const He = (c) => {
485
- j(c.animationName === "mui-auto-fill-cancel" ? $.current : {
516
+ q(c.animationName === "mui-auto-fill-cancel" ? D.current : {
486
517
  value: "x"
487
518
  });
488
519
  };
489
- a.useEffect(() => {
490
- m && m.setAdornedStart(!!_);
491
- }, [m, _]);
492
- const J = i({}, s, {
520
+ i.useEffect(() => {
521
+ m && m.setAdornedStart(!!$);
522
+ }, [m, $]);
523
+ const Q = a({}, s, {
493
524
  color: R.color || "primary",
494
525
  disabled: R.disabled,
495
- endAdornment: O,
526
+ endAdornment: E,
496
527
  error: R.error,
497
528
  focused: R.focused,
498
529
  formControl: m,
499
- fullWidth: S,
530
+ fullWidth: k,
500
531
  hiddenLabel: R.hiddenLabel,
501
- multiline: N,
532
+ multiline: x,
502
533
  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)
534
+ startAdornment: $,
535
+ type: ye
536
+ }), ge = lo(Q), ve = he.root || l.Root || uo, ue = be.root || b.root || {}, xe = he.input || l.Input || co;
537
+ return z = a({}, z, (t = be.input) != null ? t : b.input), /* @__PURE__ */ U(i.Fragment, {
538
+ children: [!T && po, /* @__PURE__ */ U(ve, a({}, ue, !Oe(ve) && {
539
+ ownerState: a({}, Q, ue.ownerState)
509
540
  }, {
510
541
  ref: r,
511
542
  onClick: qe
512
- }, Le, {
513
- className: U(xe.root, de.className, u, D && "MuiInputBase-readOnly"),
514
- children: [_, /* @__PURE__ */ I(Fe.Provider, {
543
+ }, Be, {
544
+ className: V(ge.root, ue.className, p, M && "MuiInputBase-readOnly"),
545
+ children: [$, /* @__PURE__ */ N(Ee.Provider, {
515
546
  value: null,
516
- children: /* @__PURE__ */ I(we, i({
517
- ownerState: J,
547
+ children: /* @__PURE__ */ N(xe, a({
548
+ ownerState: Q,
518
549
  "aria-invalid": R.error,
519
550
  "aria-describedby": d,
520
- autoComplete: b,
521
- autoFocus: h,
522
- defaultValue: x,
551
+ autoComplete: h,
552
+ autoFocus: g,
553
+ defaultValue: C,
523
554
  disabled: R.disabled,
524
- id: B,
555
+ id: F,
525
556
  onAnimationStart: He,
526
- name: T,
527
- placeholder: z,
528
- readOnly: D,
557
+ name: y,
558
+ placeholder: v,
559
+ readOnly: M,
529
560
  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)
561
+ rows: Z,
562
+ value: J,
563
+ onKeyDown: P,
564
+ onKeyUp: O,
565
+ type: ye
566
+ }, z, !Oe(xe) && {
567
+ as: de,
568
+ ownerState: a({}, Q, z.ownerState)
538
569
  }, {
539
- ref: Be,
540
- className: U(xe.input, L.className, D && "MuiInputBase-readOnly"),
541
- onBlur: De,
570
+ ref: De,
571
+ className: V(ge.input, z.className, M && "MuiInputBase-readOnly"),
572
+ onBlur: je,
542
573
  onChange: $e,
543
- onFocus: Pe
574
+ onFocus: _e
544
575
  }))
545
- }), O, he ? he(i({}, R, {
546
- startAdornment: _
576
+ }), E, Y ? Y(a({}, R, {
577
+ startAdornment: $
547
578
  })) : null]
548
579
  }))]
549
580
  });
550
581
  });
551
- process.env.NODE_ENV !== "production" && (co.propTypes = {
552
- // ┌────────────────────────────── Warning ──────────────────────────────┐
553
- // These PropTypes are generated from the TypeScript type definitions.
554
- // To update them, edit the d.ts file and run `pnpm proptypes`.
555
- // └─────────────────────────────────────────────────────────────────────┘
582
+ process.env.NODE_ENV !== "production" && (fo.propTypes = {
583
+ // ----------------------------- Warning --------------------------------
584
+ // | These PropTypes are generated from the TypeScript type definitions |
585
+ // | To update them edit the d.ts file and run "yarn proptypes" |
586
+ // ----------------------------------------------------------------------
556
587
  /**
557
588
  * @ignore
558
589
  */
@@ -578,7 +609,7 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
578
609
  /**
579
610
  * The color of the component.
580
611
  * It supports both default and custom theme colors, which can be added as shown in the
581
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
612
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
582
613
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
583
614
  */
584
615
  color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
@@ -645,7 +676,7 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
645
676
  * Either a string to use a HTML element or a component.
646
677
  * @default 'input'
647
678
  */
648
- inputComponent: Ke,
679
+ inputComponent: Ye,
649
680
  /**
650
681
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
651
682
  * @default {}
@@ -654,7 +685,7 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
654
685
  /**
655
686
  * Pass a ref to the `input` element.
656
687
  */
657
- inputRef: Ye,
688
+ inputRef: Ze,
658
689
  /**
659
690
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
660
691
  * FormControl.
@@ -778,97 +809,97 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
778
809
  */
779
810
  value: e.any
780
811
  });
781
- function po(o) {
782
- return ne("MuiFormLabel", o);
812
+ function mo(o) {
813
+ return re("MuiFormLabel", o);
783
814
  }
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) => {
815
+ const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), bo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], ho = (o) => {
785
816
  const {
786
817
  classes: n,
787
818
  color: r,
788
819
  focused: t,
789
820
  disabled: s,
790
821
  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"],
822
+ filled: h,
823
+ required: g
824
+ } = o, p = {
825
+ root: ["root", `color${K(r)}`, s && "disabled", d && "error", h && "filled", t && "focused", g && "required"],
795
826
  asterisk: ["asterisk", d && "error"]
796
827
  };
797
- return oe(u, po, n);
798
- }, bo = q("label", {
828
+ return ne(p, mo, n);
829
+ }, yo = _("label", {
799
830
  name: "MuiFormLabel",
800
831
  slot: "Root",
801
832
  overridesResolver: ({
802
833
  ownerState: o
803
- }, n) => i({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
834
+ }, n) => a({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
804
835
  })(({
805
836
  theme: o,
806
837
  ownerState: n
807
- }) => i({
838
+ }) => a({
808
839
  color: (o.vars || o).palette.text.secondary
809
840
  }, o.typography.body1, {
810
841
  lineHeight: "1.4375em",
811
842
  padding: 0,
812
843
  position: "relative",
813
- [`&.${V.focused}`]: {
844
+ [`&.${H.focused}`]: {
814
845
  color: (o.vars || o).palette[n.color].main
815
846
  },
816
- [`&.${V.disabled}`]: {
847
+ [`&.${H.disabled}`]: {
817
848
  color: (o.vars || o).palette.text.disabled
818
849
  },
819
- [`&.${V.error}`]: {
850
+ [`&.${H.error}`]: {
820
851
  color: (o.vars || o).palette.error.main
821
852
  }
822
- })), ho = q("span", {
853
+ })), go = _("span", {
823
854
  name: "MuiFormLabel",
824
855
  slot: "Asterisk",
825
856
  overridesResolver: (o, n) => n.asterisk
826
857
  })(({
827
858
  theme: o
828
859
  }) => ({
829
- [`&.${V.error}`]: {
860
+ [`&.${H.error}`]: {
830
861
  color: (o.vars || o).palette.error.main
831
862
  }
832
- })), Ae = /* @__PURE__ */ a.forwardRef(function(n, r) {
833
- const t = ee({
863
+ })), We = /* @__PURE__ */ i.forwardRef(function(n, r) {
864
+ const t = oe({
834
865
  props: n,
835
866
  name: "MuiFormLabel"
836
867
  }), {
837
868
  children: s,
838
869
  className: d,
839
- component: b = "label"
840
- } = t, h = K(t, fo), u = me(), l = be({
870
+ component: h = "label"
871
+ } = t, g = G(t, bo), p = fe(), l = me({
841
872
  props: t,
842
- muiFormControl: u,
873
+ muiFormControl: p,
843
874
  states: ["color", "required", "focused", "disabled", "error", "filled"]
844
- }), p = i({}, t, {
875
+ }), b = a({}, t, {
845
876
  color: l.color || "primary",
846
- component: b,
877
+ component: h,
847
878
  disabled: l.disabled,
848
879
  error: l.error,
849
880
  filled: l.filled,
850
881
  focused: l.focused,
851
882
  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),
883
+ }), C = ho(b);
884
+ return /* @__PURE__ */ U(yo, a({
885
+ as: h,
886
+ ownerState: b,
887
+ className: V(C.root, d),
857
888
  ref: r
858
- }, h, {
859
- children: [s, l.required && /* @__PURE__ */ G(ho, {
860
- ownerState: p,
889
+ }, g, {
890
+ children: [s, l.required && /* @__PURE__ */ U(go, {
891
+ ownerState: b,
861
892
  "aria-hidden": !0,
862
- className: x.asterisk,
893
+ className: C.asterisk,
863
894
  children: [" ", "*"]
864
895
  })]
865
896
  }));
866
897
  });
867
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
868
- // ┌────────────────────────────── Warning ──────────────────────────────┐
869
- // These PropTypes are generated from the TypeScript type definitions.
870
- // To update them, edit the d.ts file and run `pnpm proptypes`.
871
- // └─────────────────────────────────────────────────────────────────────┘
898
+ process.env.NODE_ENV !== "production" && (We.propTypes = {
899
+ // ----------------------------- Warning --------------------------------
900
+ // | These PropTypes are generated from the TypeScript type definitions |
901
+ // | To update them edit the d.ts file and run "yarn proptypes" |
902
+ // ----------------------------------------------------------------------
872
903
  /**
873
904
  * The content of the component.
874
905
  */
@@ -884,7 +915,7 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
884
915
  /**
885
916
  * The color of the component.
886
917
  * It supports both default and custom theme colors, which can be added as shown in the
887
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
918
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
888
919
  */
889
920
  color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
890
921
  /**
@@ -917,26 +948,26 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
917
948
  */
918
949
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
919
950
  });
920
- function yo(o) {
921
- return ne("MuiInputLabel", o);
951
+ function vo(o) {
952
+ return re("MuiInputLabel", o);
922
953
  }
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) => {
954
+ ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
955
+ const xo = ["disableAnimation", "margin", "shrink", "variant", "className"], Co = (o) => {
925
956
  const {
926
957
  classes: n,
927
958
  formControl: r,
928
959
  size: t,
929
960
  shrink: s,
930
961
  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",
962
+ variant: h,
963
+ required: g
964
+ } = o, l = ne({
965
+ root: ["root", r && "formControl", !d && "animated", s && "shrink", t === "small" && "sizeSmall", h],
966
+ asterisk: [g && "asterisk"]
967
+ }, vo, n);
968
+ return a({}, n, l);
969
+ }, So = _(We, {
970
+ shouldForwardProp: (o) => Ke(o) || o === "classes",
940
971
  name: "MuiInputLabel",
941
972
  slot: "Root",
942
973
  overridesResolver: (o, n) => {
@@ -944,13 +975,13 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
944
975
  ownerState: r
945
976
  } = o;
946
977
  return [{
947
- [`& .${V.asterisk}`]: n.asterisk
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]];
978
+ [`& .${H.asterisk}`]: n.asterisk
979
+ }, n.root, r.formControl && n.formControl, r.size === "small" && n.sizeSmall, r.shrink && n.shrink, !r.disableAnimation && n.animated, n[r.variant]];
949
980
  }
950
981
  })(({
951
982
  theme: o,
952
983
  ownerState: n
953
- }) => i({
984
+ }) => a({
954
985
  display: "block",
955
986
  transformOrigin: "top left",
956
987
  whiteSpace: "nowrap",
@@ -975,7 +1006,7 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
975
1006
  duration: o.transitions.duration.shorter,
976
1007
  easing: o.transitions.easing.easeOut
977
1008
  })
978
- }, n.variant === "filled" && i({
1009
+ }, n.variant === "filled" && a({
979
1010
  // Chrome's autofill feature gives the input field a yellow background.
980
1011
  // Since the input field is behind the label in the HTML tree,
981
1012
  // the input field is drawn last and hides the label with an opaque background color.
@@ -986,14 +1017,14 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
986
1017
  maxWidth: "calc(100% - 24px)"
987
1018
  }, n.size === "small" && {
988
1019
  transform: "translate(12px, 13px) scale(1)"
989
- }, n.shrink && i({
1020
+ }, n.shrink && a({
990
1021
  userSelect: "none",
991
1022
  pointerEvents: "auto",
992
1023
  transform: "translate(12px, 7px) scale(0.75)",
993
1024
  maxWidth: "calc(133% - 24px)"
994
1025
  }, n.size === "small" && {
995
1026
  transform: "translate(12px, 4px) scale(0.75)"
996
- })), n.variant === "outlined" && i({
1027
+ })), n.variant === "outlined" && a({
997
1028
  // see comment above on filled.zIndex
998
1029
  zIndex: 1,
999
1030
  pointerEvents: "none",
@@ -1008,44 +1039,43 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
1008
1039
  // but it feels a better when it bleeds a bit on the left, so 32px.
1009
1040
  maxWidth: "calc(133% - 32px)",
1010
1041
  transform: "translate(14px, -9px) scale(0.75)"
1011
- }))), Co = /* @__PURE__ */ a.forwardRef(function(n, r) {
1012
- const t = ee({
1042
+ }))), wo = /* @__PURE__ */ i.forwardRef(function(n, r) {
1043
+ const t = oe({
1013
1044
  name: "MuiInputLabel",
1014
1045
  props: n
1015
1046
  }), {
1016
1047
  disableAnimation: s = !1,
1017
1048
  shrink: d,
1018
- className: b
1019
- } = t, h = K(t, go), u = me();
1049
+ className: h
1050
+ } = t, g = G(t, xo), p = fe();
1020
1051
  let l = d;
1021
- typeof l > "u" && u && (l = u.filled || u.focused || u.adornedStart);
1022
- const p = be({
1052
+ typeof l > "u" && p && (l = p.filled || p.focused || p.adornedStart);
1053
+ const b = me({
1023
1054
  props: t,
1024
- muiFormControl: u,
1025
- states: ["size", "variant", "required", "focused"]
1026
- }), x = i({}, t, {
1055
+ muiFormControl: p,
1056
+ states: ["size", "variant", "required"]
1057
+ }), C = a({}, t, {
1027
1058
  disableAnimation: s,
1028
- formControl: u,
1059
+ formControl: p,
1029
1060
  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({
1061
+ size: b.size,
1062
+ variant: b.variant,
1063
+ required: b.required
1064
+ }), w = Co(C);
1065
+ return /* @__PURE__ */ N(So, a({
1036
1066
  "data-shrink": l,
1037
- ownerState: x,
1067
+ ownerState: C,
1038
1068
  ref: r,
1039
- className: U(y.root, b)
1040
- }, h, {
1041
- classes: y
1069
+ className: V(w.root, h)
1070
+ }, g, {
1071
+ classes: w
1042
1072
  }));
1043
1073
  });
1044
- process.env.NODE_ENV !== "production" && (Co.propTypes = {
1045
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1046
- // These PropTypes are generated from the TypeScript type definitions.
1047
- // To update them, edit the d.ts file and run `pnpm proptypes`.
1048
- // └─────────────────────────────────────────────────────────────────────┘
1074
+ process.env.NODE_ENV !== "production" && (wo.propTypes = {
1075
+ // ----------------------------- Warning --------------------------------
1076
+ // | These PropTypes are generated from the TypeScript type definitions |
1077
+ // | To update them edit the d.ts file and run "yarn proptypes" |
1078
+ // ----------------------------------------------------------------------
1049
1079
  /**
1050
1080
  * The content of the component.
1051
1081
  */
@@ -1061,7 +1091,7 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
1061
1091
  /**
1062
1092
  * The color of the component.
1063
1093
  * It supports both default and custom theme colors, which can be added as shown in the
1064
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1094
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
1065
1095
  */
1066
1096
  color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
1067
1097
  /**
@@ -1108,28 +1138,28 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
1108
1138
  */
1109
1139
  variant: e.oneOf(["filled", "outlined", "standard"])
1110
1140
  });
1111
- function wo(o) {
1112
- return ne("MuiFormControl", o);
1141
+ function Oo(o) {
1142
+ return re("MuiFormControl", o);
1113
1143
  }
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) => {
1144
+ ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
1145
+ const To = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Ro = (o) => {
1116
1146
  const {
1117
1147
  classes: n,
1118
1148
  margin: r,
1119
1149
  fullWidth: t
1120
1150
  } = o, s = {
1121
- root: ["root", r !== "none" && `margin${P(r)}`, t && "fullWidth"]
1151
+ root: ["root", r !== "none" && `margin${K(r)}`, t && "fullWidth"]
1122
1152
  };
1123
- return oe(s, wo, n);
1124
- }, Ro = q("div", {
1153
+ return ne(s, Oo, n);
1154
+ }, Eo = _("div", {
1125
1155
  name: "MuiFormControl",
1126
1156
  slot: "Root",
1127
1157
  overridesResolver: ({
1128
1158
  ownerState: o
1129
- }, n) => i({}, n.root, n[`margin${P(o.margin)}`], o.fullWidth && n.fullWidth)
1159
+ }, n) => a({}, n.root, n[`margin${K(o.margin)}`], o.fullWidth && n.fullWidth)
1130
1160
  })(({
1131
1161
  ownerState: o
1132
- }) => i({
1162
+ }) => a({
1133
1163
  display: "inline-flex",
1134
1164
  flexDirection: "column",
1135
1165
  position: "relative",
@@ -1147,103 +1177,103 @@ const Oo = ["children", "className", "color", "component", "disabled", "error",
1147
1177
  marginBottom: 4
1148
1178
  }, o.fullWidth && {
1149
1179
  width: "100%"
1150
- })), To = /* @__PURE__ */ a.forwardRef(function(n, r) {
1151
- const t = ee({
1180
+ })), No = /* @__PURE__ */ i.forwardRef(function(n, r) {
1181
+ const t = oe({
1152
1182
  props: n,
1153
1183
  name: "MuiFormControl"
1154
1184
  }), {
1155
1185
  children: s,
1156
1186
  className: d,
1157
- color: b = "primary",
1158
- component: h = "div",
1159
- disabled: u = !1,
1187
+ color: h = "primary",
1188
+ component: g = "div",
1189
+ disabled: p = !1,
1160
1190
  error: l = !1,
1161
- focused: p,
1162
- fullWidth: x = !1,
1163
- hiddenLabel: y = !1,
1164
- margin: A = "none",
1165
- required: O = !1,
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,
1191
+ focused: b,
1192
+ fullWidth: C = !1,
1193
+ hiddenLabel: w = !1,
1194
+ margin: T = "none",
1195
+ required: E = !1,
1196
+ size: k = "medium",
1197
+ variant: F = "outlined"
1198
+ } = t, B = G(t, To), S = a({}, t, {
1199
+ color: h,
1200
+ component: g,
1201
+ disabled: p,
1172
1202
  error: l,
1173
- fullWidth: x,
1174
- hiddenLabel: y,
1175
- margin: A,
1176
- required: O,
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"]))
1203
+ fullWidth: C,
1204
+ hiddenLabel: w,
1205
+ margin: T,
1206
+ required: E,
1207
+ size: k,
1208
+ variant: F
1209
+ }), j = Ro(S), [W, u] = i.useState(() => {
1210
+ let O = !1;
1211
+ return s && i.Children.forEach(s, (v) => {
1212
+ if (!ce(v, ["Input", "Select"]))
1183
1213
  return;
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;
1195
- let W;
1214
+ const M = ce(v, ["Select"]) ? v.props.input : v;
1215
+ M && ro(M.props) && (O = !0);
1216
+ }), O;
1217
+ }), [x, y] = i.useState(() => {
1218
+ let O = !1;
1219
+ return s && i.Children.forEach(s, (v) => {
1220
+ ce(v, ["Input", "Select"]) && Me(v.props, !0) && (O = !0);
1221
+ }), O;
1222
+ }), [f, I] = i.useState(!1);
1223
+ p && f && I(!1);
1224
+ const L = b !== void 0 && !p ? b : f;
1225
+ let A;
1196
1226
  if (process.env.NODE_ENV !== "production") {
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;
1227
+ const O = i.useRef(!1);
1228
+ A = () => (O.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
1229
+ `)), O.current = !0, () => {
1230
+ O.current = !1;
1201
1231
  });
1202
1232
  }
1203
- const H = a.useMemo(() => ({
1204
- adornedStart: v,
1205
- setAdornedStart: M,
1206
- color: b,
1207
- disabled: u,
1233
+ const P = i.useMemo(() => ({
1234
+ adornedStart: W,
1235
+ setAdornedStart: u,
1236
+ color: h,
1237
+ disabled: p,
1208
1238
  error: l,
1209
- filled: N,
1210
- focused: w,
1211
- fullWidth: x,
1212
- hiddenLabel: y,
1213
- size: S,
1239
+ filled: x,
1240
+ focused: L,
1241
+ fullWidth: C,
1242
+ hiddenLabel: w,
1243
+ size: k,
1214
1244
  onBlur: () => {
1215
- k(!1);
1245
+ I(!1);
1216
1246
  },
1217
1247
  onEmpty: () => {
1218
- T(!1);
1248
+ y(!1);
1219
1249
  },
1220
1250
  onFilled: () => {
1221
- T(!0);
1251
+ y(!0);
1222
1252
  },
1223
1253
  onFocus: () => {
1224
- k(!0);
1254
+ I(!0);
1225
1255
  },
1226
- registerEffect: W,
1227
- required: O,
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),
1256
+ registerEffect: A,
1257
+ required: E,
1258
+ variant: F
1259
+ }), [W, h, p, l, x, L, C, w, A, E, k, F]);
1260
+ return /* @__PURE__ */ N(Ee.Provider, {
1261
+ value: P,
1262
+ children: /* @__PURE__ */ N(Eo, a({
1263
+ as: g,
1264
+ ownerState: S,
1265
+ className: V(j.root, d),
1236
1266
  ref: r
1237
- }, g, {
1267
+ }, B, {
1238
1268
  children: s
1239
1269
  }))
1240
1270
  });
1241
1271
  });
1242
- process.env.NODE_ENV !== "production" && (To.propTypes = {
1243
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1244
- // These PropTypes are generated from the TypeScript type definitions.
1245
- // To update them, edit the d.ts file and run `pnpm proptypes`.
1246
- // └─────────────────────────────────────────────────────────────────────┘
1272
+ process.env.NODE_ENV !== "production" && (No.propTypes = {
1273
+ // ----------------------------- Warning --------------------------------
1274
+ // | These PropTypes are generated from the TypeScript type definitions |
1275
+ // | To update them edit the d.ts file and run "yarn proptypes" |
1276
+ // ----------------------------------------------------------------------
1247
1277
  /**
1248
1278
  * The content of the component.
1249
1279
  */
@@ -1259,7 +1289,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
1259
1289
  /**
1260
1290
  * The color of the component.
1261
1291
  * It supports both default and custom theme colors, which can be added as shown in the
1262
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1292
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
1263
1293
  * @default 'primary'
1264
1294
  */
1265
1295
  color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
@@ -1320,14 +1350,14 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
1320
1350
  variant: e.oneOf(["filled", "outlined", "standard"])
1321
1351
  });
1322
1352
  export {
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
1353
+ No as F,
1354
+ wo as I,
1355
+ uo as a,
1356
+ co as b,
1357
+ ao as c,
1358
+ fo as d,
1359
+ Me as e,
1360
+ me as f,
1361
+ pe as i,
1362
+ io as r
1333
1363
  };