@cgi-learning-hub/ui 0.0.1-dev.1708964890 → 0.0.1-dev.1708974808

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 (134) hide show
  1. package/dist/Button-Tkz5NkF_.cjs +1 -0
  2. package/dist/Button-X7eWZQfX.js +356 -0
  3. package/dist/ButtonBase-CKfcGhaU.js +892 -0
  4. package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
  5. package/dist/Input-CAb0EFzc.cjs +1 -0
  6. package/dist/Input-CbYjsRHK.js +322 -0
  7. package/dist/{InputBase-C_yPRkam.js → InputBase-B13Nzzhk.js} +215 -193
  8. package/dist/InputBase-CKlCw9fj.cjs +4 -0
  9. package/dist/assets/index.css +1 -1
  10. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -0
  11. package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
  12. package/dist/components/AnotherComponent/AnotherComponent.es.js +15 -0
  13. package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +1 -0
  14. package/dist/components/{Dropzone/Dropzone.stories.d.ts → AnotherComponent/AnotherComponent.stories.d.ts} +2 -1
  15. package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +22 -0
  16. package/dist/components/AnotherComponent/index.cjs.js +1 -0
  17. package/dist/components/AnotherComponent/index.d.ts +2 -0
  18. package/dist/components/AnotherComponent/index.es.js +4 -0
  19. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -0
  20. package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
  21. package/dist/components/BasicButtons/BasicButtons.es.js +189 -0
  22. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -0
  23. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
  24. package/dist/components/BasicButtons/BasicButtons.stories.es.js +22 -0
  25. package/dist/components/BasicButtons/index.cjs.js +1 -0
  26. package/dist/components/BasicButtons/index.d.ts +2 -0
  27. package/dist/components/BasicButtons/index.es.js +4 -0
  28. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
  29. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +267 -408
  30. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  31. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +5 -5
  32. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  33. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  34. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  35. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
  36. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +7 -8
  37. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  38. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  39. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  40. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
  41. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +9 -10
  42. package/dist/components/index.cjs.js +1 -1
  43. package/dist/components/index.d.ts +2 -4
  44. package/dist/components/index.es.js +14 -18
  45. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  46. package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
  47. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
  48. package/dist/components/inputs/TextInput/TextInput.es.js +1631 -1844
  49. package/dist/{createSvgIcon-B6bZPuto.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
  50. package/dist/{createSvgIcon-KaSN8JhZ.js → createSvgIcon-qXNZi4k1.js} +8 -8
  51. package/dist/extendSxProp-BRHiEwyk.js +29 -0
  52. package/dist/extendSxProp-CvhhU9Vb.cjs +1 -0
  53. package/dist/index.cjs.js +1 -1
  54. package/dist/index.es.js +12 -16
  55. package/dist/useForkRef-82uiK71d.cjs +1 -0
  56. package/dist/useForkRef-CLcOhrzI.js +44 -0
  57. package/dist/useTheme-BWRyHzdn.js +65 -0
  58. package/dist/useTheme-BpLcDNG1.cjs +1 -0
  59. package/dist/{useThemeProps-Dg9Uoq7q.js → useThemeProps-B6yTTpAe.js} +1024 -1018
  60. package/dist/useThemeProps-CDriK9TK.cjs +65 -0
  61. package/package.json +1 -2
  62. package/dist/Box-7uR7JZiM.cjs +0 -1
  63. package/dist/Box-CPGTKTgx.js +0 -56
  64. package/dist/ButtonBase-B0tkJ9zf.js +0 -831
  65. package/dist/ButtonBase-DCL6Xlnm.cjs +0 -75
  66. package/dist/CircularProgress-CZX5SfKt.cjs +0 -28
  67. package/dist/CircularProgress-CguDBnxV.js +0 -215
  68. package/dist/IconButton-CJ1Nt-jf.js +0 -182
  69. package/dist/IconButton-De7ZdW2q.cjs +0 -2
  70. package/dist/InputBase-Dvr5GnwD.cjs +0 -4
  71. package/dist/Tab-Bhm9hCrX.cjs +0 -1
  72. package/dist/Tab-C4l6V01S.js +0 -237
  73. package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
  74. package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
  75. package/dist/Typography-CyFLZjnE.js +0 -202
  76. package/dist/Typography-DwsN2Ttm.cjs +0 -1
  77. package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
  78. package/dist/components/Dropzone/Dropzone.d.ts +0 -9
  79. package/dist/components/Dropzone/Dropzone.es.js +0 -1210
  80. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  81. package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
  82. package/dist/components/Dropzone/index.cjs.js +0 -1
  83. package/dist/components/Dropzone/index.d.ts +0 -2
  84. package/dist/components/Dropzone/index.es.js +0 -4
  85. package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
  86. package/dist/components/buttons/IconButton.stories.d.ts +0 -4
  87. package/dist/components/buttons/IconButton.stories.es.js +0 -27
  88. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
  89. package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +0 -4
  90. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +0 -16
  91. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
  92. package/dist/components/inputs/TextInput/TextInput.stories.d.ts +0 -4
  93. package/dist/components/inputs/TextInput/TextInput.stories.es.js +0 -17
  94. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  95. package/dist/components/lists/FileList/FileList.d.ts +0 -7
  96. package/dist/components/lists/FileList/FileList.es.js +0 -19
  97. package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
  98. package/dist/components/lists/FileList/FileList.stories.d.ts +0 -4
  99. package/dist/components/lists/FileList/FileList.stories.es.js +0 -28
  100. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
  101. package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
  102. package/dist/components/lists/FileList/FileListItem.es.js +0 -41
  103. package/dist/components/lists/FileList/index.cjs.js +0 -1
  104. package/dist/components/lists/FileList/index.d.ts +0 -4
  105. package/dist/components/lists/FileList/index.es.js +0 -6
  106. package/dist/components/lists/TabList.stories.cjs.js +0 -4
  107. package/dist/components/lists/TabList.stories.d.ts +0 -4
  108. package/dist/components/lists/TabList.stories.es.js +0 -1027
  109. package/dist/components/lists/index.cjs.js +0 -1
  110. package/dist/components/lists/index.d.ts +0 -1
  111. package/dist/components/lists/index.es.js +0 -6
  112. package/dist/createSvgIcon-BX8WQ5r-.cjs +0 -2
  113. package/dist/createSvgIcon-m_wsenOJ.js +0 -84
  114. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  115. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  116. package/dist/ownerWindow-C7EH1lr6.js +0 -23
  117. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  118. package/dist/refType-CHSN6ysS.cjs +0 -1
  119. package/dist/refType-Hh9tfnoF.js +0 -29
  120. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  121. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  122. package/dist/useControlled-BsLcOmhe.js +0 -48
  123. package/dist/useControlled-jN3fqFfv.cjs +0 -3
  124. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  125. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  126. package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
  127. package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
  128. package/dist/useSlotProps-MoAYME1z.js +0 -70
  129. package/dist/useSlotProps-R4s13HHI.cjs +0 -1
  130. package/dist/useTheme-BDPYLOoP.cjs +0 -1
  131. package/dist/useTheme-DJEDOopE.js +0 -9
  132. package/dist/useThemeProps-jkB5q9ie.cjs +0 -65
  133. package/dist/useTimeout-KN97abZR.js +0 -47
  134. package/dist/useTimeout-qjxkiZZn.cjs +0 -1
@@ -1,22 +1,37 @@
1
- import { P as e, u as Pe, e as ge, _ as c, d as De, T as We, g as Ve, a as _e, s as we, b as Le, f as fe, c as ee, h as je, q as Ue } from "./useThemeProps-Dg9Uoq7q.js";
2
- import * as s from "react";
3
- import { jsx as R, jsxs as oe } from "react/jsx-runtime";
4
- import { a as ve, u as ne } from "./useForkRef-DwN_Iz9R.js";
5
- import * as $e from "react-dom";
6
- import { a as me, d as Ge } from "./ownerWindow-C7EH1lr6.js";
7
- import { i as he } from "./isHostComponent-kiaBvYVo.js";
8
- import { e as Ke, r as qe } from "./refType-Hh9tfnoF.js";
9
- import { Global as Ye } from "@emotion/react";
10
- function Ze(o) {
11
- return o == null || Object.keys(o).length === 0;
1
+ import { P as e, w as He, _ as ge, a as d, x as Pe, T as Ve, g as We, b as _e, s as we, u as Le, h as fe, f as ee, e as je, y as Ue } from "./useThemeProps-B6yTTpAe.js";
2
+ import * as a from "react";
3
+ import { jsx as R, jsxs as ne } from "react/jsx-runtime";
4
+ import { a as ve, u as oe, e as $e, r as Ge } from "./useForkRef-CLcOhrzI.js";
5
+ import * as Ke from "react-dom";
6
+ import { Global as qe } from "@emotion/react";
7
+ function Ye(n, o = 166) {
8
+ let t;
9
+ function i(...r) {
10
+ const p = () => {
11
+ n.apply(this, r);
12
+ };
13
+ clearTimeout(t), t = setTimeout(p, o);
14
+ }
15
+ return i.clear = () => {
16
+ clearTimeout(t);
17
+ }, i;
18
+ }
19
+ function Ze(n) {
20
+ return n && n.ownerDocument || document;
12
21
  }
13
- function Ce(o) {
22
+ function me(n) {
23
+ return Ze(n).defaultView || window;
24
+ }
25
+ function Je(n) {
26
+ return n == null || Object.keys(n).length === 0;
27
+ }
28
+ function Ce(n) {
14
29
  const {
15
- styles: n,
30
+ styles: o,
16
31
  defaultTheme: t = {}
17
- } = o;
18
- return /* @__PURE__ */ R(Ye, {
19
- styles: typeof n == "function" ? (r) => n(Ze(r) ? t : r) : n
32
+ } = n;
33
+ return /* @__PURE__ */ R(qe, {
34
+ styles: typeof o == "function" ? (r) => o(Je(r) ? t : r) : o
20
35
  });
21
36
  }
22
37
  process.env.NODE_ENV !== "production" && (Ce.propTypes = {
@@ -24,11 +39,11 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
24
39
  styles: e.oneOfType([e.array, e.string, e.object, e.func])
25
40
  });
26
41
  function Se({
27
- styles: o,
28
- themeId: n,
42
+ styles: n,
43
+ themeId: o,
29
44
  defaultTheme: t = {}
30
45
  }) {
31
- const a = Pe(t), r = typeof o == "function" ? o(n && a[n] || a) : o;
46
+ const i = He(t), r = typeof n == "function" ? n(o && i[o] || i) : n;
32
47
  return /* @__PURE__ */ R(Ce, {
33
48
  styles: r
34
49
  });
@@ -51,15 +66,12 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
51
66
  */
52
67
  themeId: e.string
53
68
  });
54
- const xe = /* @__PURE__ */ s.createContext(void 0);
55
- process.env.NODE_ENV !== "production" && (xe.displayName = "FormControlContext");
56
- const Te = xe;
57
- function Je() {
58
- return s.useContext(Te);
69
+ function he(n) {
70
+ return typeof n == "string";
59
71
  }
60
72
  const Qe = ["onChange", "maxRows", "minRows", "style", "value"];
61
- function U(o) {
62
- return parseInt(o, 10) || 0;
73
+ function U(n) {
74
+ return parseInt(n, 10) || 0;
63
75
  }
64
76
  const Xe = {
65
77
  shadow: {
@@ -76,107 +88,107 @@ const Xe = {
76
88
  transform: "translateZ(0)"
77
89
  }
78
90
  };
79
- function ye(o) {
80
- return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
91
+ function ye(n) {
92
+ return n == null || Object.keys(n).length === 0 || n.outerHeightStyle === 0 && !n.overflow;
81
93
  }
82
- const Re = /* @__PURE__ */ s.forwardRef(function(n, t) {
94
+ const xe = /* @__PURE__ */ a.forwardRef(function(o, t) {
83
95
  const {
84
- onChange: a,
96
+ onChange: i,
85
97
  maxRows: r,
86
98
  minRows: p = 1,
87
99
  style: I,
88
100
  value: E
89
- } = n, H = ge(n, Qe), {
101
+ } = o, D = ge(o, Qe), {
90
102
  current: O
91
- } = s.useRef(E != null), S = s.useRef(null), F = ve(t, S), v = s.useRef(null), b = s.useRef(0), [N, k] = s.useState({
103
+ } = a.useRef(E != null), S = a.useRef(null), F = ve(t, S), v = a.useRef(null), b = a.useRef(0), [N, k] = a.useState({
92
104
  outerHeightStyle: 0
93
- }), B = s.useCallback(() => {
94
- const d = S.current, u = me(d).getComputedStyle(d);
105
+ }), B = a.useCallback(() => {
106
+ const c = S.current, u = me(c).getComputedStyle(c);
95
107
  if (u.width === "0px")
96
108
  return {
97
109
  outerHeightStyle: 0
98
110
  };
99
111
  const f = v.current;
100
- f.style.width = u.width, f.value = d.value || n.placeholder || "x", f.value.slice(-1) === `
112
+ f.style.width = u.width, f.value = c.value || o.placeholder || "x", f.value.slice(-1) === `
101
113
  ` && (f.value += " ");
102
114
  const w = u.boxSizing, z = U(u.paddingBottom) + U(u.paddingTop), A = U(u.borderBottomWidth) + U(u.borderTopWidth), C = f.scrollHeight;
103
115
  f.value = "x";
104
116
  const T = f.scrollHeight;
105
117
  let h = C;
106
118
  p && (h = Math.max(Number(p) * T, h)), r && (h = Math.min(Number(r) * T, h)), h = Math.max(h, T);
107
- const G = h + (w === "border-box" ? z + A : 0), P = Math.abs(h - C) <= 1;
119
+ const G = h + (w === "border-box" ? z + A : 0), H = Math.abs(h - C) <= 1;
108
120
  return {
109
121
  outerHeightStyle: G,
110
- overflow: P
122
+ overflow: H
111
123
  };
112
- }, [r, p, n.placeholder]), V = (d, g) => {
124
+ }, [r, p, o.placeholder]), W = (c, g) => {
113
125
  const {
114
126
  outerHeightStyle: u,
115
127
  overflow: f
116
128
  } = g;
117
- return b.current < 20 && (u > 0 && Math.abs((d.outerHeightStyle || 0) - u) > 1 || d.overflow !== f) ? (b.current += 1, {
129
+ return b.current < 20 && (u > 0 && Math.abs((c.outerHeightStyle || 0) - u) > 1 || c.overflow !== f) ? (b.current += 1, {
118
130
  overflow: f,
119
131
  outerHeightStyle: u
120
132
  }) : (process.env.NODE_ENV !== "production" && b.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(`
121
- `)), d);
122
- }, m = s.useCallback(() => {
123
- const d = B();
124
- ye(d) || k((g) => V(g, d));
133
+ `)), c);
134
+ }, m = a.useCallback(() => {
135
+ const c = B();
136
+ ye(c) || k((g) => W(g, c));
125
137
  }, [B]);
126
- ne(() => {
127
- const d = () => {
138
+ oe(() => {
139
+ const c = () => {
128
140
  const T = B();
129
- ye(T) || $e.flushSync(() => {
130
- k((h) => V(h, T));
141
+ ye(T) || Ke.flushSync(() => {
142
+ k((h) => W(h, T));
131
143
  });
132
144
  }, g = () => {
133
- b.current = 0, d();
145
+ b.current = 0, c();
134
146
  };
135
147
  let u;
136
148
  const f = () => {
137
149
  cancelAnimationFrame(u), u = requestAnimationFrame(() => {
138
150
  g();
139
151
  });
140
- }, w = Ge(g), z = S.current, A = me(z);
152
+ }, w = Ye(g), z = S.current, A = me(z);
141
153
  A.addEventListener("resize", w);
142
154
  let C;
143
155
  return typeof ResizeObserver < "u" && (C = new ResizeObserver(process.env.NODE_ENV === "test" ? f : g), C.observe(z)), () => {
144
156
  w.clear(), cancelAnimationFrame(u), A.removeEventListener("resize", w), C && C.disconnect();
145
157
  };
146
- }, [B]), ne(() => {
158
+ }, [B]), oe(() => {
147
159
  m();
148
- }), s.useEffect(() => {
160
+ }), a.useEffect(() => {
149
161
  b.current = 0;
150
162
  }, [E]);
151
- const $ = (d) => {
152
- b.current = 0, O || m(), a && a(d);
163
+ const $ = (c) => {
164
+ b.current = 0, O || m(), i && i(c);
153
165
  };
154
- return /* @__PURE__ */ oe(s.Fragment, {
155
- children: [/* @__PURE__ */ R("textarea", c({
166
+ return /* @__PURE__ */ ne(a.Fragment, {
167
+ children: [/* @__PURE__ */ R("textarea", d({
156
168
  value: E,
157
169
  onChange: $,
158
170
  ref: F,
159
171
  rows: p,
160
- style: c({
172
+ style: d({
161
173
  height: N.outerHeightStyle,
162
174
  // Need a large enough difference to allow scrolling.
163
175
  // This prevents infinite rendering loop.
164
176
  overflow: N.overflow ? "hidden" : void 0
165
177
  }, I)
166
- }, H)), /* @__PURE__ */ R("textarea", {
178
+ }, D)), /* @__PURE__ */ R("textarea", {
167
179
  "aria-hidden": !0,
168
- className: n.className,
180
+ className: o.className,
169
181
  readOnly: !0,
170
182
  ref: v,
171
183
  tabIndex: -1,
172
- style: c({}, Xe.shadow, I, {
184
+ style: d({}, Xe.shadow, I, {
173
185
  paddingTop: 0,
174
186
  paddingBottom: 0
175
187
  })
176
188
  })]
177
189
  });
178
190
  });
179
- process.env.NODE_ENV !== "production" && (Re.propTypes = {
191
+ process.env.NODE_ENV !== "production" && (xe.propTypes = {
180
192
  // ┌────────────────────────────── Warning ──────────────────────────────┐
181
193
  // │ These PropTypes are generated from the TypeScript type definitions. │
182
194
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -211,17 +223,23 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
211
223
  */
212
224
  value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
213
225
  });
214
- function eo({
215
- props: o,
216
- states: n,
226
+ function en({
227
+ props: n,
228
+ states: o,
217
229
  muiFormControl: t
218
230
  }) {
219
- return n.reduce((a, r) => (a[r] = o[r], t && typeof o[r] > "u" && (a[r] = t[r]), a), {});
231
+ return o.reduce((i, r) => (i[r] = n[r], t && typeof n[r] > "u" && (i[r] = t[r]), i), {});
232
+ }
233
+ const Te = /* @__PURE__ */ a.createContext(void 0);
234
+ process.env.NODE_ENV !== "production" && (Te.displayName = "FormControlContext");
235
+ const Re = Te;
236
+ function nn() {
237
+ return a.useContext(Re);
220
238
  }
221
- function Ee(o) {
222
- return /* @__PURE__ */ R(Se, c({}, o, {
223
- defaultTheme: De,
224
- themeId: We
239
+ function Ee(n) {
240
+ return /* @__PURE__ */ R(Se, d({}, n, {
241
+ defaultTheme: Pe,
242
+ themeId: Ve
225
243
  }));
226
244
  }
227
245
  process.env.NODE_ENV !== "production" && (Ee.propTypes = {
@@ -234,58 +252,58 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
234
252
  */
235
253
  styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
236
254
  });
237
- function be(o) {
238
- return o != null && !(Array.isArray(o) && o.length === 0);
255
+ function be(n) {
256
+ return n != null && !(Array.isArray(n) && n.length === 0);
239
257
  }
240
- function oo(o, n = !1) {
241
- return o && (be(o.value) && o.value !== "" || n && be(o.defaultValue) && o.defaultValue !== "");
258
+ function on(n, o = !1) {
259
+ return n && (be(n.value) && n.value !== "" || o && be(n.defaultValue) && n.defaultValue !== "");
242
260
  }
243
- function wo(o) {
244
- return o.startAdornment;
261
+ function bn(n) {
262
+ return n.startAdornment;
245
263
  }
246
- function no(o) {
247
- return _e("MuiInputBase", o);
264
+ function tn(n) {
265
+ return _e("MuiInputBase", n);
248
266
  }
249
- const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), te = to, 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"], io = (o, n) => {
267
+ const rn = We("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), te = rn, sn = ["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"], an = (n, o) => {
250
268
  const {
251
269
  ownerState: t
252
- } = o;
253
- return [n.root, t.formControl && n.formControl, t.startAdornment && n.adornedStart, t.endAdornment && n.adornedEnd, t.error && n.error, t.size === "small" && n.sizeSmall, t.multiline && n.multiline, t.color && n[`color${ee(t.color)}`], t.fullWidth && n.fullWidth, t.hiddenLabel && n.hiddenLabel];
254
- }, so = (o, n) => {
270
+ } = n;
271
+ return [o.root, t.formControl && o.formControl, t.startAdornment && o.adornedStart, t.endAdornment && o.adornedEnd, t.error && o.error, t.size === "small" && o.sizeSmall, t.multiline && o.multiline, t.color && o[`color${ee(t.color)}`], t.fullWidth && o.fullWidth, t.hiddenLabel && o.hiddenLabel];
272
+ }, ln = (n, o) => {
255
273
  const {
256
274
  ownerState: t
257
- } = o;
258
- return [n.input, t.size === "small" && n.inputSizeSmall, t.multiline && n.inputMultiline, t.type === "search" && n.inputTypeSearch, t.startAdornment && n.inputAdornedStart, t.endAdornment && n.inputAdornedEnd, t.hiddenLabel && n.inputHiddenLabel];
259
- }, ao = (o) => {
275
+ } = n;
276
+ return [o.input, t.size === "small" && o.inputSizeSmall, t.multiline && o.inputMultiline, t.type === "search" && o.inputTypeSearch, t.startAdornment && o.inputAdornedStart, t.endAdornment && o.inputAdornedEnd, t.hiddenLabel && o.inputHiddenLabel];
277
+ }, un = (n) => {
260
278
  const {
261
- classes: n,
279
+ classes: o,
262
280
  color: t,
263
- disabled: a,
281
+ disabled: i,
264
282
  error: r,
265
283
  endAdornment: p,
266
284
  focused: I,
267
285
  formControl: E,
268
- fullWidth: H,
286
+ fullWidth: D,
269
287
  hiddenLabel: O,
270
288
  multiline: S,
271
289
  readOnly: F,
272
290
  size: v,
273
291
  startAdornment: b,
274
292
  type: N
275
- } = o, k = {
276
- root: ["root", `color${ee(t)}`, a && "disabled", r && "error", H && "fullWidth", I && "focused", E && "formControl", v && v !== "medium" && `size${ee(v)}`, S && "multiline", b && "adornedStart", p && "adornedEnd", O && "hiddenLabel", F && "readOnly"],
277
- input: ["input", a && "disabled", N === "search" && "inputTypeSearch", S && "inputMultiline", v === "small" && "inputSizeSmall", O && "inputHiddenLabel", b && "inputAdornedStart", p && "inputAdornedEnd", F && "readOnly"]
293
+ } = n, k = {
294
+ root: ["root", `color${ee(t)}`, i && "disabled", r && "error", D && "fullWidth", I && "focused", E && "formControl", v && v !== "medium" && `size${ee(v)}`, S && "multiline", b && "adornedStart", p && "adornedEnd", O && "hiddenLabel", F && "readOnly"],
295
+ input: ["input", i && "disabled", N === "search" && "inputTypeSearch", S && "inputMultiline", v === "small" && "inputSizeSmall", O && "inputHiddenLabel", b && "inputAdornedStart", p && "inputAdornedEnd", F && "readOnly"]
278
296
  };
279
- return je(k, no, n);
280
- }, lo = we("div", {
297
+ return je(k, tn, o);
298
+ }, cn = we("div", {
281
299
  name: "MuiInputBase",
282
300
  slot: "Root",
283
- overridesResolver: io
301
+ overridesResolver: an
284
302
  })(({
285
- theme: o,
286
- ownerState: n
287
- }) => c({}, o.typography.body1, {
288
- color: (o.vars || o).palette.text.primary,
303
+ theme: n,
304
+ ownerState: o
305
+ }) => d({}, n.typography.body1, {
306
+ color: (n.vars || n).palette.text.primary,
289
307
  lineHeight: "1.4375em",
290
308
  // 23px
291
309
  boxSizing: "border-box",
@@ -295,41 +313,41 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
295
313
  display: "inline-flex",
296
314
  alignItems: "center",
297
315
  [`&.${te.disabled}`]: {
298
- color: (o.vars || o).palette.text.disabled,
316
+ color: (n.vars || n).palette.text.disabled,
299
317
  cursor: "default"
300
318
  }
301
- }, n.multiline && c({
319
+ }, o.multiline && d({
302
320
  padding: "4px 0 5px"
303
- }, n.size === "small" && {
321
+ }, o.size === "small" && {
304
322
  paddingTop: 1
305
- }), n.fullWidth && {
323
+ }), o.fullWidth && {
306
324
  width: "100%"
307
- })), uo = we("input", {
325
+ })), dn = we("input", {
308
326
  name: "MuiInputBase",
309
327
  slot: "Input",
310
- overridesResolver: so
328
+ overridesResolver: ln
311
329
  })(({
312
- theme: o,
313
- ownerState: n
330
+ theme: n,
331
+ ownerState: o
314
332
  }) => {
315
- const t = o.palette.mode === "light", a = c({
333
+ const t = n.palette.mode === "light", i = d({
316
334
  color: "currentColor"
317
- }, o.vars ? {
318
- opacity: o.vars.opacity.inputPlaceholder
335
+ }, n.vars ? {
336
+ opacity: n.vars.opacity.inputPlaceholder
319
337
  } : {
320
338
  opacity: t ? 0.42 : 0.5
321
339
  }, {
322
- transition: o.transitions.create("opacity", {
323
- duration: o.transitions.duration.shorter
340
+ transition: n.transitions.create("opacity", {
341
+ duration: n.transitions.duration.shorter
324
342
  })
325
343
  }), r = {
326
344
  opacity: "0 !important"
327
- }, p = o.vars ? {
328
- opacity: o.vars.opacity.inputPlaceholder
345
+ }, p = n.vars ? {
346
+ opacity: n.vars.opacity.inputPlaceholder
329
347
  } : {
330
348
  opacity: t ? 0.42 : 0.5
331
349
  };
332
- return c({
350
+ return d({
333
351
  font: "inherit",
334
352
  letterSpacing: "inherit",
335
353
  color: "currentColor",
@@ -349,12 +367,12 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
349
367
  // Fix IE11 width issue
350
368
  animationName: "mui-auto-fill-cancel",
351
369
  animationDuration: "10ms",
352
- "&::-webkit-input-placeholder": a,
353
- "&::-moz-placeholder": a,
370
+ "&::-webkit-input-placeholder": i,
371
+ "&::-moz-placeholder": i,
354
372
  // Firefox 19+
355
- "&:-ms-input-placeholder": a,
373
+ "&:-ms-input-placeholder": i,
356
374
  // IE11
357
- "&::-ms-input-placeholder": a,
375
+ "&::-ms-input-placeholder": i,
358
376
  // Edge
359
377
  "&:focus": {
360
378
  outline: 0
@@ -387,25 +405,25 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
387
405
  [`&.${te.disabled}`]: {
388
406
  opacity: 1,
389
407
  // Reset iOS opacity
390
- WebkitTextFillColor: (o.vars || o).palette.text.disabled
408
+ WebkitTextFillColor: (n.vars || n).palette.text.disabled
391
409
  // Fix opacity Safari bug
392
410
  },
393
411
  "&:-webkit-autofill": {
394
412
  animationDuration: "5000s",
395
413
  animationName: "mui-auto-fill"
396
414
  }
397
- }, n.size === "small" && {
415
+ }, o.size === "small" && {
398
416
  paddingTop: 1
399
- }, n.multiline && {
417
+ }, o.multiline && {
400
418
  height: "auto",
401
419
  resize: "none",
402
420
  padding: 0,
403
421
  paddingTop: 0
404
- }, n.type === "search" && {
422
+ }, o.type === "search" && {
405
423
  // Improve type search style.
406
424
  MozAppearance: "textfield"
407
425
  });
408
- }), co = /* @__PURE__ */ R(Ee, {
426
+ }), pn = /* @__PURE__ */ R(Ee, {
409
427
  styles: {
410
428
  "@keyframes mui-auto-fill": {
411
429
  from: {
@@ -418,16 +436,16 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
418
436
  }
419
437
  }
420
438
  }
421
- }), Oe = /* @__PURE__ */ s.forwardRef(function(n, t) {
422
- var a;
439
+ }), Oe = /* @__PURE__ */ a.forwardRef(function(o, t) {
440
+ var i;
423
441
  const r = Le({
424
- props: n,
442
+ props: o,
425
443
  name: "MuiInputBase"
426
444
  }), {
427
445
  "aria-describedby": p,
428
446
  autoComplete: I,
429
447
  autoFocus: E,
430
- className: H,
448
+ className: D,
431
449
  components: O = {},
432
450
  componentsProps: S = {},
433
451
  defaultValue: F,
@@ -436,10 +454,10 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
436
454
  endAdornment: N,
437
455
  fullWidth: k = !1,
438
456
  id: B,
439
- inputComponent: V = "input",
457
+ inputComponent: W = "input",
440
458
  inputProps: m = {},
441
459
  inputRef: $,
442
- maxRows: d,
460
+ maxRows: c,
443
461
  minRows: g,
444
462
  multiline: u = !1,
445
463
  name: f,
@@ -450,84 +468,84 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
450
468
  onKeyDown: T,
451
469
  onKeyUp: h,
452
470
  placeholder: G,
453
- readOnly: P,
471
+ readOnly: H,
454
472
  renderSuffix: re,
455
473
  rows: _,
456
474
  slotProps: ie = {},
457
475
  slots: se = {},
458
- startAdornment: D,
476
+ startAdornment: P,
459
477
  type: ae = "text",
460
478
  value: Ne
461
- } = r, ze = ge(r, ro), L = m.value != null ? m.value : Ne, {
479
+ } = r, ze = ge(r, sn), L = m.value != null ? m.value : Ne, {
462
480
  current: K
463
- } = s.useRef(L != null), M = s.useRef(), Ae = s.useCallback((i) => {
464
- process.env.NODE_ENV !== "production" && i && i.nodeName !== "INPUT" && !i.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(`
481
+ } = a.useRef(L != null), M = a.useRef(), Ae = a.useCallback((s) => {
482
+ process.env.NODE_ENV !== "production" && s && s.nodeName !== "INPUT" && !s.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(`
465
483
  `));
466
- }, []), Ie = ve(M, $, m.ref, Ae), [q, Y] = s.useState(!1), l = Je();
467
- process.env.NODE_ENV !== "production" && s.useEffect(() => {
484
+ }, []), Ie = ve(M, $, m.ref, Ae), [q, Y] = a.useState(!1), l = nn();
485
+ process.env.NODE_ENV !== "production" && a.useEffect(() => {
468
486
  if (l)
469
487
  return l.registerEffect();
470
488
  }, [l]);
471
- const y = eo({
489
+ const y = en({
472
490
  props: r,
473
491
  muiFormControl: l,
474
492
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
475
493
  });
476
- y.focused = l ? l.focused : q, s.useEffect(() => {
494
+ y.focused = l ? l.focused : q, a.useEffect(() => {
477
495
  !l && v && q && (Y(!1), w && w());
478
496
  }, [l, v, q, w]);
479
- const Z = l && l.onFilled, J = l && l.onEmpty, W = s.useCallback((i) => {
480
- oo(i) ? Z && Z() : J && J();
497
+ const Z = l && l.onFilled, J = l && l.onEmpty, V = a.useCallback((s) => {
498
+ on(s) ? Z && Z() : J && J();
481
499
  }, [Z, J]);
482
- ne(() => {
483
- K && W({
500
+ oe(() => {
501
+ K && V({
484
502
  value: L
485
503
  });
486
- }, [L, W, K]);
487
- const Fe = (i) => {
504
+ }, [L, V, K]);
505
+ const Fe = (s) => {
488
506
  if (y.disabled) {
489
- i.stopPropagation();
507
+ s.stopPropagation();
490
508
  return;
491
509
  }
492
- C && C(i), m.onFocus && m.onFocus(i), l && l.onFocus ? l.onFocus(i) : Y(!0);
493
- }, ke = (i) => {
494
- w && w(i), m.onBlur && m.onBlur(i), l && l.onBlur ? l.onBlur(i) : Y(!1);
495
- }, Be = (i, ...ce) => {
510
+ C && C(s), m.onFocus && m.onFocus(s), l && l.onFocus ? l.onFocus(s) : Y(!0);
511
+ }, ke = (s) => {
512
+ w && w(s), m.onBlur && m.onBlur(s), l && l.onBlur ? l.onBlur(s) : Y(!1);
513
+ }, Be = (s, ...de) => {
496
514
  if (!K) {
497
- const pe = i.target || M.current;
515
+ const pe = s.target || M.current;
498
516
  if (pe == null)
499
517
  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));
500
- W({
518
+ V({
501
519
  value: pe.value
502
520
  });
503
521
  }
504
- m.onChange && m.onChange(i, ...ce), z && z(i, ...ce);
522
+ m.onChange && m.onChange(s, ...de), z && z(s, ...de);
505
523
  };
506
- s.useEffect(() => {
507
- W(M.current);
524
+ a.useEffect(() => {
525
+ V(M.current);
508
526
  }, []);
509
- const Me = (i) => {
510
- M.current && i.currentTarget === i.target && M.current.focus(), A && A(i);
527
+ const Me = (s) => {
528
+ M.current && s.currentTarget === s.target && M.current.focus(), A && A(s);
511
529
  };
512
- let Q = V, x = m;
513
- u && Q === "input" && (_ ? (process.env.NODE_ENV !== "production" && (g || d) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), x = c({
530
+ let Q = W, x = m;
531
+ u && Q === "input" && (_ ? (process.env.NODE_ENV !== "production" && (g || c) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), x = d({
514
532
  type: void 0,
515
533
  minRows: _,
516
534
  maxRows: _
517
- }, x)) : x = c({
535
+ }, x)) : x = d({
518
536
  type: void 0,
519
- maxRows: d,
537
+ maxRows: c,
520
538
  minRows: g
521
- }, x), Q = Re);
522
- const He = (i) => {
523
- W(i.animationName === "mui-auto-fill-cancel" ? M.current : {
539
+ }, x), Q = xe);
540
+ const De = (s) => {
541
+ V(s.animationName === "mui-auto-fill-cancel" ? M.current : {
524
542
  value: "x"
525
543
  });
526
544
  };
527
- s.useEffect(() => {
528
- l && l.setAdornedStart(!!D);
529
- }, [l, D]);
530
- const j = c({}, r, {
545
+ a.useEffect(() => {
546
+ l && l.setAdornedStart(!!P);
547
+ }, [l, P]);
548
+ const j = d({}, r, {
531
549
  color: y.color || "primary",
532
550
  disabled: y.disabled,
533
551
  endAdornment: N,
@@ -538,20 +556,20 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
538
556
  hiddenLabel: y.hiddenLabel,
539
557
  multiline: u,
540
558
  size: y.size,
541
- startAdornment: D,
559
+ startAdornment: P,
542
560
  type: ae
543
- }), le = ao(j), ue = se.root || O.Root || lo, X = ie.root || S.root || {}, de = se.input || O.Input || uo;
544
- return x = c({}, x, (a = ie.input) != null ? a : S.input), /* @__PURE__ */ oe(s.Fragment, {
545
- children: [!b && co, /* @__PURE__ */ oe(ue, c({}, X, !he(ue) && {
546
- ownerState: c({}, j, X.ownerState)
561
+ }), le = un(j), ue = se.root || O.Root || cn, X = ie.root || S.root || {}, ce = se.input || O.Input || dn;
562
+ return x = d({}, x, (i = ie.input) != null ? i : S.input), /* @__PURE__ */ ne(a.Fragment, {
563
+ children: [!b && pn, /* @__PURE__ */ ne(ue, d({}, X, !he(ue) && {
564
+ ownerState: d({}, j, X.ownerState)
547
565
  }, {
548
566
  ref: t,
549
567
  onClick: Me
550
568
  }, ze, {
551
- className: fe(le.root, X.className, H, P && "MuiInputBase-readOnly"),
552
- children: [D, /* @__PURE__ */ R(Te.Provider, {
569
+ className: fe(le.root, X.className, D, H && "MuiInputBase-readOnly"),
570
+ children: [P, /* @__PURE__ */ R(Re.Provider, {
553
571
  value: null,
554
- children: /* @__PURE__ */ R(de, c({
572
+ children: /* @__PURE__ */ R(ce, d({
555
573
  ownerState: j,
556
574
  "aria-invalid": y.error,
557
575
  "aria-describedby": p,
@@ -560,28 +578,28 @@ const to = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
560
578
  defaultValue: F,
561
579
  disabled: y.disabled,
562
580
  id: B,
563
- onAnimationStart: He,
581
+ onAnimationStart: De,
564
582
  name: f,
565
583
  placeholder: G,
566
- readOnly: P,
584
+ readOnly: H,
567
585
  required: y.required,
568
586
  rows: _,
569
587
  value: L,
570
588
  onKeyDown: T,
571
589
  onKeyUp: h,
572
590
  type: ae
573
- }, x, !he(de) && {
591
+ }, x, !he(ce) && {
574
592
  as: Q,
575
- ownerState: c({}, j, x.ownerState)
593
+ ownerState: d({}, j, x.ownerState)
576
594
  }, {
577
595
  ref: Ie,
578
- className: fe(le.input, x.className, P && "MuiInputBase-readOnly"),
596
+ className: fe(le.input, x.className, H && "MuiInputBase-readOnly"),
579
597
  onBlur: ke,
580
598
  onChange: Be,
581
599
  onFocus: Fe
582
600
  }))
583
- }), N, re ? re(c({}, y, {
584
- startAdornment: D
601
+ }), N, re ? re(d({}, y, {
602
+ startAdornment: P
585
603
  })) : null]
586
604
  }))]
587
605
  });
@@ -683,7 +701,7 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
683
701
  * Either a string to use a HTML element or a component.
684
702
  * @default 'input'
685
703
  */
686
- inputComponent: Ke,
704
+ inputComponent: $e,
687
705
  /**
688
706
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
689
707
  * @default {}
@@ -692,7 +710,7 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
692
710
  /**
693
711
  * Pass a ref to the `input` element.
694
712
  */
695
- inputRef: qe,
713
+ inputRef: Ge,
696
714
  /**
697
715
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
698
716
  * FormControl.
@@ -816,17 +834,21 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
816
834
  */
817
835
  value: e.any
818
836
  });
819
- const vo = Oe;
837
+ const gn = Oe;
820
838
  export {
821
- Te as F,
822
- vo as I,
823
- lo as a,
824
- uo as b,
825
- so as c,
826
- wo as d,
827
- oo as e,
828
- eo as f,
839
+ Re as F,
840
+ cn as I,
841
+ dn as a,
842
+ ln as b,
843
+ gn as c,
844
+ he as d,
845
+ me as e,
846
+ en as f,
847
+ bn as g,
848
+ on as h,
829
849
  te as i,
830
- io as r,
831
- Je as u
850
+ Ye as j,
851
+ Ze as o,
852
+ an as r,
853
+ nn as u
832
854
  };