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

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