@cgi-learning-hub/ui 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/Backdrop-KAJqifAq.cjs +1 -0
  2. package/dist/{Backdrop-CxHwPsCX.js → Backdrop-RBPtVAPX.js} +220 -265
  3. package/dist/{Box-D61CmHcZ.cjs → Box-H49yQEt_.cjs} +1 -1
  4. package/dist/{Box-a6v7fn61.js → Box-UE-zctbJ.js} +3 -3
  5. package/dist/{Button-B8Vr_qVd.js → Button-Bjy0iPNm.js} +4 -4
  6. package/dist/{Button-elp97nQ8.cjs → Button-qc45QbX6.cjs} +1 -1
  7. package/dist/{ButtonBase-Y5TK5SRu.js → ButtonBase-CFD7NVUc.js} +21 -21
  8. package/dist/{ButtonBase-S0mFlojL.cjs → ButtonBase-UEHzzfUL.cjs} +1 -1
  9. package/dist/Checkbox-Ct5E_6h7.js +241 -0
  10. package/dist/Checkbox-CuYTY0gd.cjs +1 -0
  11. package/dist/{CircularProgress-DDIZxeFH.cjs → CircularProgress-BPHINMQw.cjs} +1 -1
  12. package/dist/{CircularProgress-DU3DJQfF.js → CircularProgress-By02Sdoh.js} +3 -3
  13. package/dist/{DatePicker-BigDV0IN.cjs → DatePicker-rhgpaD-r.cjs} +15 -15
  14. package/dist/{DatePicker-ZdjLD9eR.js → DatePicker-u4rtXGeo.js} +974 -962
  15. package/dist/{DefaultPropsProvider-eEVEiLDf.cjs → DefaultPropsProvider-BrX6iuA3.cjs} +1 -1
  16. package/dist/{DefaultPropsProvider-7QnSWHxy.js → DefaultPropsProvider-CaRoy5OV.js} +24 -24
  17. package/dist/FormGroup-BBYEQB4C.cjs +1 -0
  18. package/dist/FormGroup-BVtE8Mrv.js +348 -0
  19. package/dist/FormLabel-B4QlkhhB.js +424 -0
  20. package/dist/FormLabel-D8jYibc1.cjs +2 -0
  21. package/dist/{IconButton-C7H_G1LX.js → IconButton-Av8eJ5IG.js} +4 -4
  22. package/dist/{IconButton-DfmbM9nO.cjs → IconButton-CVyLtjcH.cjs} +1 -1
  23. package/dist/InputAdornment-BJfpEQAa.cjs +1 -0
  24. package/dist/{InputAdornment-CPJFY_m_.js → InputAdornment-COPtZlSD.js} +5 -5
  25. package/dist/{InputBase-5GB2c2J6.js → InputBase-Bbgoz8GV.js} +186 -210
  26. package/dist/InputBase-Ctmib7Br.cjs +3 -0
  27. package/dist/MenuItem-D7HWYhF3.js +277 -0
  28. package/dist/MenuItem-Els-vJZW.cjs +1 -0
  29. package/dist/{TextField-CGMPbx_J.js → Select-BlPQngVF.js} +1458 -2424
  30. package/dist/Select-ipcMZ4iK.cjs +11 -0
  31. package/dist/{Stack-656bqKiW.cjs → Stack-CEjx3KHM.cjs} +1 -1
  32. package/dist/{Stack-CutIWKkG.js → Stack-y1PjTHKX.js} +18 -18
  33. package/dist/SwitchBase-URM3X3YZ.cjs +1 -0
  34. package/dist/SwitchBase-yCuH0Tqk.js +261 -0
  35. package/dist/{Tabs-CKic46Op.js → Tabs-DK4Bc5xo.js} +10 -10
  36. package/dist/{Tabs-DzrxYlm-.cjs → Tabs-Nvk94RTW.cjs} +1 -1
  37. package/dist/TextField-BVAkADOb.cjs +1 -0
  38. package/dist/TextField-C-B529_r.js +547 -0
  39. package/dist/{Tooltip-DqLAZimE.js → Tooltip-DO9GIhWC.js} +1783 -2859
  40. package/dist/Tooltip-DvPL2M0E.cjs +100 -0
  41. package/dist/{Typography-CreZW2v6.cjs → Typography-5OodZ94T.cjs} +1 -1
  42. package/dist/{Typography-DsJC595c.js → Typography-C_ESP41L.js} +4 -4
  43. package/dist/components/Button/Button.cjs.js +1 -1
  44. package/dist/components/Button/Button.es.js +5 -5
  45. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  46. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  47. package/dist/components/DatePicker/index.cjs.js +1 -1
  48. package/dist/components/DatePicker/index.es.js +1 -1
  49. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  50. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  51. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  52. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  53. package/dist/components/FileList/FileList.cjs.js +1 -1
  54. package/dist/components/FileList/FileList.es.js +1 -1
  55. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  56. package/dist/components/FileList/FileListItem.es.js +6 -6
  57. package/dist/components/Heading/Heading.cjs.js +1 -1
  58. package/dist/components/Heading/Heading.es.js +2 -2
  59. package/dist/components/Loader/Loader.cjs.js +1 -1
  60. package/dist/components/Loader/Loader.es.js +1 -1
  61. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  62. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  63. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  64. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  65. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  66. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  67. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  68. package/dist/components/TextInput/TextInput.es.js +1 -1
  69. package/dist/components/index.cjs.js +1 -1
  70. package/dist/components/index.es.js +267 -262
  71. package/dist/components/stories/Alert.stories.cjs.js +1 -0
  72. package/dist/components/stories/Alert.stories.d.ts +9 -0
  73. package/dist/components/stories/Alert.stories.es.js +32 -0
  74. package/dist/components/stories/Button.stories.cjs.js +1 -0
  75. package/dist/components/stories/Button.stories.d.ts +8 -0
  76. package/dist/components/stories/Button.stories.es.js +43 -0
  77. package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
  78. package/dist/components/stories/Checkbox.stories.d.ts +10 -0
  79. package/dist/components/stories/Checkbox.stories.es.js +28 -0
  80. package/dist/components/stories/DatePicker.stories.cjs.js +1 -0
  81. package/dist/components/stories/DatePicker.stories.d.ts +6 -0
  82. package/dist/components/stories/DatePicker.stories.es.js +13 -0
  83. package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
  84. package/dist/components/stories/Dropzone.stories.d.ts +6 -0
  85. package/dist/components/stories/Dropzone.stories.es.js +14 -0
  86. package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
  87. package/dist/components/stories/EmptyState.stories.d.ts +6 -0
  88. package/dist/components/stories/EmptyState.stories.es.js +14 -0
  89. package/dist/components/stories/FileList.stories.cjs.js +1 -0
  90. package/dist/components/stories/FileList.stories.d.ts +6 -0
  91. package/dist/components/stories/FileList.stories.es.js +26 -0
  92. package/dist/components/stories/Heading.stories.cjs.js +1 -0
  93. package/dist/components/stories/Heading.stories.d.ts +6 -0
  94. package/dist/components/stories/Heading.stories.es.js +20 -0
  95. package/dist/components/stories/IconButton.stories.cjs.js +1 -0
  96. package/dist/components/stories/IconButton.stories.d.ts +6 -0
  97. package/dist/components/{IconButton.stories.es.js → stories/IconButton.stories.es.js} +12 -14
  98. package/dist/components/stories/Loader.stories.cjs.js +1 -0
  99. package/dist/components/stories/Loader.stories.d.ts +6 -0
  100. package/dist/components/stories/Loader.stories.es.js +11 -0
  101. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
  102. package/dist/components/stories/LoaderBackdrop.stories.d.ts +6 -0
  103. package/dist/components/stories/LoaderBackdrop.stories.es.js +11 -0
  104. package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
  105. package/dist/components/stories/PasswordInput.stories.d.ts +6 -0
  106. package/dist/components/stories/PasswordInput.stories.es.js +13 -0
  107. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
  108. package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
  109. package/dist/components/stories/RadioGroup.stories.es.js +434 -0
  110. package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
  111. package/dist/components/stories/SearchInput.stories.d.ts +6 -0
  112. package/dist/components/stories/SearchInput.stories.es.js +13 -0
  113. package/dist/components/stories/Select.stories.cjs.js +1 -0
  114. package/dist/components/stories/Select.stories.d.ts +10 -0
  115. package/dist/components/stories/Select.stories.es.js +52 -0
  116. package/dist/components/stories/TabList.stories.cjs.js +1 -0
  117. package/dist/components/stories/TabList.stories.d.ts +7 -0
  118. package/dist/components/{TabList.stories.es.js → stories/TabList.stories.es.js} +43 -50
  119. package/dist/components/stories/TextField.stories.cjs.js +1 -0
  120. package/dist/components/stories/TextField.stories.d.ts +10 -0
  121. package/dist/components/stories/TextField.stories.es.js +69 -0
  122. package/dist/{createSvgIcon-Ae1vF9Lv.js → createSvgIcon-DxbvMQd7.js} +3 -3
  123. package/dist/{createSvgIcon-PXjVOXDY.cjs → createSvgIcon-GU7fqNnI.cjs} +1 -1
  124. package/dist/{extendSxProp-DLhbnNxc.cjs → extendSxProp-D11-pC6h.cjs} +1 -1
  125. package/dist/{extendSxProp-BzTGWWcy.js → extendSxProp-XQwkK0m7.js} +1 -1
  126. package/dist/formControlState-DCkDUdfO.cjs +1 -0
  127. package/dist/formControlState-DdQP43Uo.js +21 -0
  128. package/dist/{fr-B0c4Eu-I.js → fr-B8_MxRl5.js} +1 -1
  129. package/dist/{fr-BtINyNRC.cjs → fr-Nvp7C-vS.cjs} +1 -1
  130. package/dist/{identifier-B_IiMbpZ.cjs → identifier-BQH88SE0.cjs} +1 -1
  131. package/dist/{identifier-Bu3vgTzE.js → identifier-BqadgaK7.js} +5 -5
  132. package/dist/{index-DNmEgr4X.js → index-BUxqDIr9.js} +4 -4
  133. package/dist/{index-BDy6VH40.cjs → index-CNv8ppur.cjs} +1 -1
  134. package/dist/{index-D4YvqRSh.js → index-CRT92bm7.js} +2 -2
  135. package/dist/index-D7nFYLYq.cjs +1 -0
  136. package/dist/index.cjs.js +1 -1
  137. package/dist/index.es.js +267 -262
  138. package/dist/{memoTheme-DvW891YJ.cjs → memoTheme-B6o2KVgJ.cjs} +1 -1
  139. package/dist/{memoTheme-C4_nd-x4.js → memoTheme-DfGVDRrB.js} +1 -1
  140. package/dist/{refType-DvOnKTmB.js → refType-DlHf9HvO.js} +1 -1
  141. package/dist/{refType-DYRsy3ld.cjs → refType-Do7KaOvv.cjs} +1 -1
  142. package/dist/{useTheme-B_3HWqyi.js → resolveComponentProps-CxJ2yAJn.js} +18 -26
  143. package/dist/resolveComponentProps-DTv6xPbb.cjs +1 -0
  144. package/dist/useControlled-BYdyS7Pn.js +31 -0
  145. package/dist/useControlled-Ysk4KqoX.cjs +3 -0
  146. package/dist/useFormControl-CatNKXAi.js +10 -0
  147. package/dist/useFormControl-haP0iPhl.cjs +1 -0
  148. package/dist/useSlot-42jgZftI.cjs +1 -0
  149. package/dist/useSlot-Co14PUn6.js +50 -0
  150. package/dist/useTheme-CtT7O-Wk.js +11 -0
  151. package/dist/{useTheme-vN32oV1t.cjs → useTheme-cVN-YQNB.cjs} +1 -1
  152. package/dist/{useTheme-DhYab2-0.js → useTheme-oM_SFWy4.js} +1 -1
  153. package/dist/useTheme-tZYpFplW.cjs +1 -0
  154. package/dist/{useThemeProps-Bmkt_XOR.js → useThemeProps-BlQ3SLfB.js} +4 -4
  155. package/dist/{useThemeProps-DftpgVZ0.js → useThemeProps-FiA8ivG-.js} +3 -3
  156. package/dist/{useThemeProps-D_gKWuk1.cjs → useThemeProps-HLq2mDKk.cjs} +1 -1
  157. package/dist/{useThemeProps-5hp2m3Xl.cjs → useThemeProps-r0DnR8FJ.cjs} +1 -1
  158. package/dist/{useTimeout-Bx22KOcH.js → useTimeout-D16vpBhn.js} +1 -1
  159. package/dist/{useTimeout-gEG15bRo.cjs → useTimeout-DWEGwfTA.cjs} +1 -1
  160. package/package.json +1 -1
  161. package/dist/Backdrop-ZCTs-Ws8.cjs +0 -1
  162. package/dist/InputAdornment-C-EbfNtT.cjs +0 -1
  163. package/dist/InputBase-CPtGhJye.cjs +0 -3
  164. package/dist/TextField-BLEvZwPH.cjs +0 -14
  165. package/dist/Tooltip-BJefPCe7.cjs +0 -100
  166. package/dist/components/Alert/Alert.stories.cjs.js +0 -1
  167. package/dist/components/Alert/Alert.stories.d.ts +0 -4
  168. package/dist/components/Alert/Alert.stories.es.js +0 -17
  169. package/dist/components/Button/Button.stories.cjs.js +0 -1
  170. package/dist/components/Button/Button.stories.d.ts +0 -6
  171. package/dist/components/Button/Button.stories.es.js +0 -45
  172. package/dist/components/DatePicker/DatePicker.stories.cjs.js +0 -1
  173. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -4
  174. package/dist/components/DatePicker/DatePicker.stories.es.js +0 -16
  175. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  176. package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -4
  177. package/dist/components/Dropzone/Dropzone.stories.es.js +0 -17
  178. package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
  179. package/dist/components/EmptyState/EmptyState.stories.d.ts +0 -4
  180. package/dist/components/EmptyState/EmptyState.stories.es.js +0 -17
  181. package/dist/components/FileList/FileList.stories.cjs.js +0 -1
  182. package/dist/components/FileList/FileList.stories.d.ts +0 -4
  183. package/dist/components/FileList/FileList.stories.es.js +0 -28
  184. package/dist/components/Heading/Heading.stories.cjs.js +0 -1
  185. package/dist/components/Heading/Heading.stories.d.ts +0 -4
  186. package/dist/components/Heading/Heading.stories.es.js +0 -22
  187. package/dist/components/IconButton.stories.cjs.js +0 -1
  188. package/dist/components/IconButton.stories.d.ts +0 -4
  189. package/dist/components/Loader/Loader.stories.cjs.js +0 -1
  190. package/dist/components/Loader/Loader.stories.d.ts +0 -4
  191. package/dist/components/Loader/Loader.stories.es.js +0 -14
  192. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
  193. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -4
  194. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.es.js +0 -14
  195. package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
  196. package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -4
  197. package/dist/components/PasswordInput/PasswordInput.stories.es.js +0 -16
  198. package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
  199. package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -4
  200. package/dist/components/SearchInput/SearchInput.stories.es.js +0 -16
  201. package/dist/components/TabList.stories.cjs.js +0 -1
  202. package/dist/components/TabList.stories.d.ts +0 -4
  203. package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
  204. package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
  205. package/dist/components/TextInput/TextInput.stories.es.js +0 -43
  206. package/dist/index-Dl4BXU0b.cjs +0 -1
  207. package/dist/useTheme-BvsnROiB.cjs +0 -1
@@ -1,37 +1,18 @@
1
1
  import * as s from "react";
2
- import { P as e, J as Be, I as Me, L as pe, K as J, Z as He } from "./identifier-Bu3vgTzE.js";
3
- import { g as Pe } from "./index-DNmEgr4X.js";
4
- import { m as ge } from "./memoTheme-C4_nd-x4.js";
2
+ import { P as e, J as Fe, I as ke, K as ce, L as Z, Y as Be } from "./identifier-BqadgaK7.js";
3
+ import { f as Me, i as He } from "./formControlState-DdQP43Uo.js";
4
+ import { u as Pe, F as We } from "./useFormControl-CatNKXAi.js";
5
+ import { g as De } from "./index-BUxqDIr9.js";
6
+ import { m as be } from "./memoTheme-DfGVDRrB.js";
5
7
  import { jsxs as Q, jsx as B } from "react/jsx-runtime";
6
- import { s as we, u as We, c as De } from "./DefaultPropsProvider-7QnSWHxy.js";
7
- import { u as ve } from "./useForkRef-D-DyzOXj.js";
8
- import { u as X, e as Le, r as Ve } from "./refType-DvOnKTmB.js";
9
- import { o as fe, d as Ue } from "./ownerWindow-BoRkeomM.js";
10
- const ne = /* @__PURE__ */ s.createContext(void 0);
11
- process.env.NODE_ENV !== "production" && (ne.displayName = "FormControlContext");
12
- function _e() {
13
- return s.useContext(ne);
14
- }
15
- function me(n) {
16
- return n != null && !(Array.isArray(n) && n.length === 0);
17
- }
18
- function je(n, o = !1) {
19
- return n && (me(n.value) && n.value !== "" || o && me(n.defaultValue) && n.defaultValue !== "");
20
- }
21
- function cn(n) {
22
- return n.startAdornment;
23
- }
24
- function Ke({
25
- props: n,
26
- states: o,
27
- muiFormControl: t
28
- }) {
29
- return o.reduce((l, u) => (l[u] = n[u], t && typeof n[u] > "u" && (l[u] = t[u]), l), {});
30
- }
8
+ import { s as ye, u as Le, c as je } from "./DefaultPropsProvider-CaRoy5OV.js";
9
+ import { u as ge } from "./useForkRef-D-DyzOXj.js";
10
+ import { u as X, e as Ve, r as Ue } from "./refType-DlHf9HvO.js";
11
+ import { o as pe, d as _e } from "./ownerWindow-BoRkeomM.js";
31
12
  function L(n) {
32
13
  return parseInt(n, 10) || 0;
33
14
  }
34
- const $e = {
15
+ const Ke = {
35
16
  shadow: {
36
17
  // Visibility needed to hide the extra text area on iPads
37
18
  visibility: "hidden",
@@ -46,83 +27,83 @@ const $e = {
46
27
  transform: "translateZ(0)"
47
28
  }
48
29
  };
49
- function qe(n) {
30
+ function $e(n) {
50
31
  return n == null || Object.keys(n).length === 0 || n.outerHeightStyle === 0 && !n.overflowing;
51
32
  }
52
- const Ce = /* @__PURE__ */ s.forwardRef(function(o, t) {
33
+ const we = /* @__PURE__ */ s.forwardRef(function(o, t) {
53
34
  const {
54
- onChange: l,
55
- maxRows: u,
56
- minRows: p = 1,
35
+ onChange: d,
36
+ maxRows: f,
37
+ minRows: c = 1,
57
38
  style: O,
58
- value: E,
39
+ value: T,
59
40
  ...M
60
41
  } = o, {
61
- current: C
62
- } = s.useRef(E != null), h = s.useRef(null), T = ve(t, h), y = s.useRef(null), S = s.useRef(null), v = s.useCallback(() => {
63
- const d = h.current, r = fe(d).getComputedStyle(d);
42
+ current: S
43
+ } = s.useRef(T != null), h = s.useRef(null), E = ge(t, h), b = s.useRef(null), C = s.useRef(null), v = s.useCallback(() => {
44
+ const l = h.current, r = pe(l).getComputedStyle(l);
64
45
  if (r.width === "0px")
65
46
  return {
66
47
  outerHeightStyle: 0,
67
48
  overflowing: !1
68
49
  };
69
- const f = S.current;
70
- f.style.width = r.width, f.value = d.value || o.placeholder || "x", f.value.slice(-1) === `
71
- ` && (f.value += " ");
72
- const z = r.boxSizing, R = L(r.paddingBottom) + L(r.paddingTop), g = L(r.borderBottomWidth) + L(r.borderTopWidth), A = f.scrollHeight;
73
- f.value = "x";
74
- const N = f.scrollHeight;
75
- let c = A;
76
- p && (c = Math.max(Number(p) * N, c)), u && (c = Math.min(Number(u) * N, c)), c = Math.max(c, N);
77
- const H = c + (z === "border-box" ? R + g : 0), P = Math.abs(c - A) <= 1;
50
+ const p = C.current;
51
+ p.style.width = r.width, p.value = l.value || o.placeholder || "x", p.value.slice(-1) === `
52
+ ` && (p.value += " ");
53
+ const z = r.boxSizing, R = L(r.paddingBottom) + L(r.paddingTop), g = L(r.borderBottomWidth) + L(r.borderTopWidth), N = p.scrollHeight;
54
+ p.value = "x";
55
+ const A = p.scrollHeight;
56
+ let u = N;
57
+ c && (u = Math.max(Number(c) * A, u)), f && (u = Math.min(Number(f) * A, u)), u = Math.max(u, A);
58
+ const H = u + (z === "border-box" ? R + g : 0), P = Math.abs(u - N) <= 1;
78
59
  return {
79
60
  outerHeightStyle: H,
80
61
  overflowing: P
81
62
  };
82
- }, [u, p, o.placeholder]), x = s.useCallback(() => {
83
- const d = v();
84
- if (qe(d))
63
+ }, [f, c, o.placeholder]), x = s.useCallback(() => {
64
+ const l = v();
65
+ if ($e(l))
85
66
  return;
86
- const b = d.outerHeightStyle, r = h.current;
87
- y.current !== b && (y.current = b, r.style.height = `${b}px`), r.style.overflow = d.overflowing ? "hidden" : "";
67
+ const y = l.outerHeightStyle, r = h.current;
68
+ b.current !== y && (b.current = y, r.style.height = `${y}px`), r.style.overflow = l.overflowing ? "hidden" : "";
88
69
  }, [v]);
89
70
  X(() => {
90
- const d = () => {
71
+ const l = () => {
91
72
  x();
92
73
  };
93
- let b;
74
+ let y;
94
75
  const r = () => {
95
- cancelAnimationFrame(b), b = requestAnimationFrame(() => {
96
- d();
76
+ cancelAnimationFrame(y), y = requestAnimationFrame(() => {
77
+ l();
97
78
  });
98
- }, f = Ue(d), z = h.current, R = fe(z);
99
- R.addEventListener("resize", f);
79
+ }, p = _e(l), z = h.current, R = pe(z);
80
+ R.addEventListener("resize", p);
100
81
  let g;
101
- return typeof ResizeObserver < "u" && (g = new ResizeObserver(process.env.NODE_ENV === "test" ? r : d), g.observe(z)), () => {
102
- f.clear(), cancelAnimationFrame(b), R.removeEventListener("resize", f), g && g.disconnect();
82
+ return typeof ResizeObserver < "u" && (g = new ResizeObserver(process.env.NODE_ENV === "test" ? r : l), g.observe(z)), () => {
83
+ p.clear(), cancelAnimationFrame(y), R.removeEventListener("resize", p), g && g.disconnect();
103
84
  };
104
85
  }, [v, x]), X(() => {
105
86
  x();
106
87
  });
107
- const V = (d) => {
108
- C || x(), l && l(d);
88
+ const j = (l) => {
89
+ S || x(), d && d(l);
109
90
  };
110
91
  return /* @__PURE__ */ Q(s.Fragment, {
111
92
  children: [/* @__PURE__ */ B("textarea", {
112
- value: E,
113
- onChange: V,
114
- ref: T,
115
- rows: p,
93
+ value: T,
94
+ onChange: j,
95
+ ref: E,
96
+ rows: c,
116
97
  style: O,
117
98
  ...M
118
99
  }), /* @__PURE__ */ B("textarea", {
119
100
  "aria-hidden": !0,
120
101
  className: o.className,
121
102
  readOnly: !0,
122
- ref: S,
103
+ ref: C,
123
104
  tabIndex: -1,
124
105
  style: {
125
- ...$e.shadow,
106
+ ...Ke.shadow,
126
107
  ...O,
127
108
  paddingTop: 0,
128
109
  paddingBottom: 0
@@ -130,7 +111,7 @@ const Ce = /* @__PURE__ */ s.forwardRef(function(o, t) {
130
111
  })]
131
112
  });
132
113
  });
133
- process.env.NODE_ENV !== "production" && (Ce.propTypes = {
114
+ process.env.NODE_ENV !== "production" && (we.propTypes = {
134
115
  // ┌────────────────────────────── Warning ──────────────────────────────┐
135
116
  // │ These PropTypes are generated from the TypeScript type definitions. │
136
117
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -165,20 +146,20 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
165
146
  */
166
147
  value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
167
148
  });
168
- function he(n) {
149
+ function fe(n) {
169
150
  return typeof n == "string";
170
151
  }
171
- function Ge(n) {
172
- return Me("MuiInputBase", n);
152
+ function qe(n) {
153
+ return ke("MuiInputBase", n);
173
154
  }
174
- const ee = Be("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
175
- var ye;
176
- const Ye = (n, o) => {
155
+ const ee = Fe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
156
+ var me;
157
+ const Ge = (n, o) => {
177
158
  const {
178
159
  ownerState: t
179
160
  } = n;
180
- 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${J(t.color)}`], t.fullWidth && o.fullWidth, t.hiddenLabel && o.hiddenLabel];
181
- }, Ze = (n, o) => {
161
+ 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${Z(t.color)}`], t.fullWidth && o.fullWidth, t.hiddenLabel && o.hiddenLabel];
162
+ }, Ye = (n, o) => {
182
163
  const {
183
164
  ownerState: t
184
165
  } = n;
@@ -187,28 +168,28 @@ const Ye = (n, o) => {
187
168
  const {
188
169
  classes: o,
189
170
  color: t,
190
- disabled: l,
191
- error: u,
192
- endAdornment: p,
171
+ disabled: d,
172
+ error: f,
173
+ endAdornment: c,
193
174
  focused: O,
194
- formControl: E,
175
+ formControl: T,
195
176
  fullWidth: M,
196
- hiddenLabel: C,
177
+ hiddenLabel: S,
197
178
  multiline: h,
198
- readOnly: T,
199
- size: y,
200
- startAdornment: S,
179
+ readOnly: E,
180
+ size: b,
181
+ startAdornment: C,
201
182
  type: v
202
183
  } = n, x = {
203
- root: ["root", `color${J(t)}`, l && "disabled", u && "error", M && "fullWidth", O && "focused", E && "formControl", y && y !== "medium" && `size${J(y)}`, h && "multiline", S && "adornedStart", p && "adornedEnd", C && "hiddenLabel", T && "readOnly"],
204
- input: ["input", l && "disabled", v === "search" && "inputTypeSearch", h && "inputMultiline", y === "small" && "inputSizeSmall", C && "inputHiddenLabel", S && "inputAdornedStart", p && "inputAdornedEnd", T && "readOnly"]
184
+ root: ["root", `color${Z(t)}`, d && "disabled", f && "error", M && "fullWidth", O && "focused", T && "formControl", b && b !== "medium" && `size${Z(b)}`, h && "multiline", C && "adornedStart", c && "adornedEnd", S && "hiddenLabel", E && "readOnly"],
185
+ input: ["input", d && "disabled", v === "search" && "inputTypeSearch", h && "inputMultiline", b === "small" && "inputSizeSmall", S && "inputHiddenLabel", C && "inputAdornedStart", c && "inputAdornedEnd", E && "readOnly"]
205
186
  };
206
- return De(x, Ge, o);
207
- }, Qe = we("div", {
187
+ return je(x, qe, o);
188
+ }, Ze = ye("div", {
208
189
  name: "MuiInputBase",
209
190
  slot: "Root",
210
- overridesResolver: Ye
211
- })(ge(({
191
+ overridesResolver: Ge
192
+ })(be(({
212
193
  theme: n
213
194
  }) => ({
214
195
  ...n.typography.body1,
@@ -248,11 +229,11 @@ const Ye = (n, o) => {
248
229
  width: "100%"
249
230
  }
250
231
  }]
251
- }))), Xe = we("input", {
232
+ }))), Qe = ye("input", {
252
233
  name: "MuiInputBase",
253
234
  slot: "Input",
254
- overridesResolver: Ze
255
- })(ge(({
235
+ overridesResolver: Ye
236
+ })(be(({
256
237
  theme: n
257
238
  }) => {
258
239
  const o = n.palette.mode === "light", t = {
@@ -265,9 +246,9 @@ const Ye = (n, o) => {
265
246
  transition: n.transitions.create("opacity", {
266
247
  duration: n.transitions.duration.shorter
267
248
  })
268
- }, l = {
249
+ }, d = {
269
250
  opacity: "0 !important"
270
- }, u = n.vars ? {
251
+ }, f = n.vars ? {
271
252
  opacity: n.vars.opacity.inputPlaceholder
272
253
  } : {
273
254
  opacity: o ? 0.42 : 0.5
@@ -307,15 +288,15 @@ const Ye = (n, o) => {
307
288
  },
308
289
  // Show and hide the placeholder logic
309
290
  [`label[data-shrink=false] + .${ee.formControl} &`]: {
310
- "&::-webkit-input-placeholder": l,
311
- "&::-moz-placeholder": l,
291
+ "&::-webkit-input-placeholder": d,
292
+ "&::-moz-placeholder": d,
312
293
  // Firefox 19+
313
- "&::-ms-input-placeholder": l,
294
+ "&::-ms-input-placeholder": d,
314
295
  // Edge
315
- "&:focus::-webkit-input-placeholder": u,
316
- "&:focus::-moz-placeholder": u,
296
+ "&:focus::-webkit-input-placeholder": f,
297
+ "&:focus::-moz-placeholder": f,
317
298
  // Firefox 19+
318
- "&:focus::-ms-input-placeholder": u
299
+ "&:focus::-ms-input-placeholder": f
319
300
  // Edge
320
301
  },
321
302
  [`&.${ee.disabled}`]: {
@@ -326,8 +307,8 @@ const Ye = (n, o) => {
326
307
  },
327
308
  variants: [{
328
309
  props: ({
329
- ownerState: p
330
- }) => !p.disableInjectingGlobalStyles,
310
+ ownerState: c
311
+ }) => !c.disableInjectingGlobalStyles,
331
312
  style: {
332
313
  animationName: "mui-auto-fill-cancel",
333
314
  animationDuration: "10ms",
@@ -345,8 +326,8 @@ const Ye = (n, o) => {
345
326
  }
346
327
  }, {
347
328
  props: ({
348
- ownerState: p
349
- }) => p.multiline,
329
+ ownerState: c
330
+ }) => c.multiline,
350
331
  style: {
351
332
  height: "auto",
352
333
  resize: "none",
@@ -363,7 +344,7 @@ const Ye = (n, o) => {
363
344
  }
364
345
  }]
365
346
  };
366
- })), be = Pe({
347
+ })), he = De({
367
348
  "@keyframes mui-auto-fill": {
368
349
  from: {
369
350
  display: "block"
@@ -374,99 +355,99 @@ const Ye = (n, o) => {
374
355
  display: "block"
375
356
  }
376
357
  }
377
- }), en = /* @__PURE__ */ s.forwardRef(function(o, t) {
378
- const l = We({
358
+ }), Xe = /* @__PURE__ */ s.forwardRef(function(o, t) {
359
+ const d = Le({
379
360
  props: o,
380
361
  name: "MuiInputBase"
381
362
  }), {
382
- "aria-describedby": u,
383
- autoComplete: p,
363
+ "aria-describedby": f,
364
+ autoComplete: c,
384
365
  autoFocus: O,
385
- className: E,
366
+ className: T,
386
367
  color: M,
387
- components: C = {},
368
+ components: S = {},
388
369
  componentsProps: h = {},
389
- defaultValue: T,
390
- disabled: y,
391
- disableInjectingGlobalStyles: S,
370
+ defaultValue: E,
371
+ disabled: b,
372
+ disableInjectingGlobalStyles: C,
392
373
  endAdornment: v,
393
374
  error: x,
394
- fullWidth: V = !1,
395
- id: d,
396
- inputComponent: b = "input",
375
+ fullWidth: j = !1,
376
+ id: l,
377
+ inputComponent: y = "input",
397
378
  inputProps: r = {},
398
- inputRef: f,
379
+ inputRef: p,
399
380
  margin: z,
400
381
  maxRows: R,
401
382
  minRows: g,
402
- multiline: A = !1,
403
- name: N,
404
- onBlur: c,
383
+ multiline: N = !1,
384
+ name: A,
385
+ onBlur: u,
405
386
  onChange: H,
406
387
  onClick: P,
407
388
  onFocus: oe,
408
- onKeyDown: Se,
409
- onKeyUp: xe,
410
- placeholder: Re,
411
- readOnly: U,
412
- renderSuffix: te,
389
+ onKeyDown: ve,
390
+ onKeyUp: Se,
391
+ placeholder: Ce,
392
+ readOnly: V,
393
+ renderSuffix: ne,
413
394
  rows: W,
414
- size: nn,
415
- slotProps: re = {},
416
- slots: ie = {},
395
+ size: eo,
396
+ slotProps: te = {},
397
+ slots: re = {},
417
398
  startAdornment: F,
418
- type: ae = "text",
419
- value: Oe,
420
- ...Ee
421
- } = l, D = r.value != null ? r.value : Oe, {
422
- current: _
423
- } = s.useRef(D != null), I = s.useRef(), Te = s.useCallback((i) => {
399
+ type: ie = "text",
400
+ value: xe,
401
+ ...Re
402
+ } = d, D = r.value != null ? r.value : xe, {
403
+ current: U
404
+ } = s.useRef(D != null), I = s.useRef(), Oe = s.useCallback((i) => {
424
405
  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(`
425
406
  `));
426
- }, []), Ie = ve(I, f, r.ref, Te), [j, K] = s.useState(!1), a = _e();
407
+ }, []), Te = ge(I, p, r.ref, Oe), [_, K] = s.useState(!1), a = Pe();
427
408
  process.env.NODE_ENV !== "production" && s.useEffect(() => {
428
409
  if (a)
429
410
  return a.registerEffect();
430
411
  }, [a]);
431
- const m = Ke({
432
- props: l,
412
+ const m = Me({
413
+ props: d,
433
414
  muiFormControl: a,
434
415
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
435
416
  });
436
- m.focused = a ? a.focused : j, s.useEffect(() => {
437
- !a && y && j && (K(!1), c && c());
438
- }, [a, y, j, c]);
417
+ m.focused = a ? a.focused : _, s.useEffect(() => {
418
+ !a && b && _ && (K(!1), u && u());
419
+ }, [a, b, _, u]);
439
420
  const $ = a && a.onFilled, q = a && a.onEmpty, k = s.useCallback((i) => {
440
- je(i) ? $ && $() : q && q();
421
+ He(i) ? $ && $() : q && q();
441
422
  }, [$, q]);
442
423
  X(() => {
443
- _ && k({
424
+ U && k({
444
425
  value: D
445
426
  });
446
- }, [D, k, _]);
447
- const ze = (i) => {
427
+ }, [D, k, U]);
428
+ const Ee = (i) => {
448
429
  oe && oe(i), r.onFocus && r.onFocus(i), a && a.onFocus ? a.onFocus(i) : K(!0);
449
- }, Ae = (i) => {
450
- c && c(i), r.onBlur && r.onBlur(i), a && a.onBlur ? a.onBlur(i) : K(!1);
451
- }, Ne = (i, ...de) => {
452
- if (!_) {
453
- const ce = i.target || I.current;
454
- if (ce == null)
455
- 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." : He(1));
430
+ }, Ie = (i) => {
431
+ u && u(i), r.onBlur && r.onBlur(i), a && a.onBlur ? a.onBlur(i) : K(!1);
432
+ }, ze = (i, ...ue) => {
433
+ if (!U) {
434
+ const de = i.target || I.current;
435
+ if (de == null)
436
+ 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." : Be(1));
456
437
  k({
457
- value: ce.value
438
+ value: de.value
458
439
  });
459
440
  }
460
- r.onChange && r.onChange(i, ...de), H && H(i, ...de);
441
+ r.onChange && r.onChange(i, ...ue), H && H(i, ...ue);
461
442
  };
462
443
  s.useEffect(() => {
463
444
  k(I.current);
464
445
  }, []);
465
- const Fe = (i) => {
446
+ const Ne = (i) => {
466
447
  I.current && i.currentTarget === i.target && I.current.focus(), P && P(i);
467
448
  };
468
- let G = b, w = r;
469
- A && G === "input" && (W ? (process.env.NODE_ENV !== "production" && (g || R) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), w = {
449
+ let G = y, w = r;
450
+ N && G === "input" && (W ? (process.env.NODE_ENV !== "production" && (g || R) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), w = {
470
451
  type: void 0,
471
452
  minRows: W,
472
453
  maxRows: W,
@@ -476,8 +457,8 @@ const Ye = (n, o) => {
476
457
  maxRows: R,
477
458
  minRows: g,
478
459
  ...w
479
- }, G = Ce);
480
- const ke = (i) => {
460
+ }, G = we);
461
+ const Ae = (i) => {
481
462
  k(i.animationName === "mui-auto-fill-cancel" ? I.current : {
482
463
  value: "x"
483
464
  });
@@ -486,80 +467,80 @@ const Ye = (n, o) => {
486
467
  a && a.setAdornedStart(!!F);
487
468
  }, [a, F]);
488
469
  const Y = {
489
- ...l,
470
+ ...d,
490
471
  color: m.color || "primary",
491
472
  disabled: m.disabled,
492
473
  endAdornment: v,
493
474
  error: m.error,
494
475
  focused: m.focused,
495
476
  formControl: a,
496
- fullWidth: V,
477
+ fullWidth: j,
497
478
  hiddenLabel: m.hiddenLabel,
498
- multiline: A,
479
+ multiline: N,
499
480
  size: m.size,
500
481
  startAdornment: F,
501
- type: ae
502
- }, se = Je(Y), le = ie.root || C.Root || Qe, Z = re.root || h.root || {}, ue = ie.input || C.Input || Xe;
482
+ type: ie
483
+ }, ae = Je(Y), se = re.root || S.Root || Ze, J = te.root || h.root || {}, le = re.input || S.Input || Qe;
503
484
  return w = {
504
485
  ...w,
505
- ...re.input ?? h.input
486
+ ...te.input ?? h.input
506
487
  }, /* @__PURE__ */ Q(s.Fragment, {
507
- children: [!S && typeof be == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
488
+ children: [!C && typeof he == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
508
489
  // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
509
- (ye || (ye = /* @__PURE__ */ B(be, {}))), /* @__PURE__ */ Q(le, {
510
- ...Z,
490
+ (me || (me = /* @__PURE__ */ B(he, {}))), /* @__PURE__ */ Q(se, {
491
+ ...J,
511
492
  ref: t,
512
- onClick: Fe,
513
- ...Ee,
514
- ...!he(le) && {
493
+ onClick: Ne,
494
+ ...Re,
495
+ ...!fe(se) && {
515
496
  ownerState: {
516
497
  ...Y,
517
- ...Z.ownerState
498
+ ...J.ownerState
518
499
  }
519
500
  },
520
- className: pe(se.root, Z.className, E, U && "MuiInputBase-readOnly"),
521
- children: [F, /* @__PURE__ */ B(ne.Provider, {
501
+ className: ce(ae.root, J.className, T, V && "MuiInputBase-readOnly"),
502
+ children: [F, /* @__PURE__ */ B(We.Provider, {
522
503
  value: null,
523
- children: /* @__PURE__ */ B(ue, {
504
+ children: /* @__PURE__ */ B(le, {
524
505
  "aria-invalid": m.error,
525
- "aria-describedby": u,
526
- autoComplete: p,
506
+ "aria-describedby": f,
507
+ autoComplete: c,
527
508
  autoFocus: O,
528
- defaultValue: T,
509
+ defaultValue: E,
529
510
  disabled: m.disabled,
530
- id: d,
531
- onAnimationStart: ke,
532
- name: N,
533
- placeholder: Re,
534
- readOnly: U,
511
+ id: l,
512
+ onAnimationStart: Ae,
513
+ name: A,
514
+ placeholder: Ce,
515
+ readOnly: V,
535
516
  required: m.required,
536
517
  rows: W,
537
518
  value: D,
538
- onKeyDown: Se,
539
- onKeyUp: xe,
540
- type: ae,
519
+ onKeyDown: ve,
520
+ onKeyUp: Se,
521
+ type: ie,
541
522
  ...w,
542
- ...!he(ue) && {
523
+ ...!fe(le) && {
543
524
  as: G,
544
525
  ownerState: {
545
526
  ...Y,
546
527
  ...w.ownerState
547
528
  }
548
529
  },
549
- ref: Ie,
550
- className: pe(se.input, w.className, U && "MuiInputBase-readOnly"),
551
- onBlur: Ae,
552
- onChange: Ne,
553
- onFocus: ze
530
+ ref: Te,
531
+ className: ce(ae.input, w.className, V && "MuiInputBase-readOnly"),
532
+ onBlur: Ie,
533
+ onChange: ze,
534
+ onFocus: Ee
554
535
  })
555
- }), v, te ? te({
536
+ }), v, ne ? ne({
556
537
  ...m,
557
538
  startAdornment: F
558
539
  }) : null]
559
540
  })]
560
541
  });
561
542
  });
562
- process.env.NODE_ENV !== "production" && (en.propTypes = {
543
+ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
563
544
  // ┌────────────────────────────── Warning ──────────────────────────────┐
564
545
  // │ These PropTypes are generated from the TypeScript type definitions. │
565
546
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -654,7 +635,7 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
654
635
  * Either a string to use a HTML element or a component.
655
636
  * @default 'input'
656
637
  */
657
- inputComponent: Le,
638
+ inputComponent: Ve,
658
639
  /**
659
640
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
660
641
  * @default {}
@@ -663,7 +644,7 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
663
644
  /**
664
645
  * Pass a ref to the `input` element.
665
646
  */
666
- inputRef: Ve,
647
+ inputRef: Ue,
667
648
  /**
668
649
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
669
650
  * FormControl.
@@ -788,16 +769,11 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
788
769
  value: e.any
789
770
  });
790
771
  export {
791
- ne as F,
792
- en as I,
793
- je as a,
794
- ee as b,
795
- Qe as c,
796
- Xe as d,
797
- Ze as e,
798
- Ke as f,
799
- he as g,
800
- cn as i,
801
- Ye as r,
802
- _e as u
772
+ Xe as I,
773
+ Ze as a,
774
+ Qe as b,
775
+ Ye as c,
776
+ fe as d,
777
+ ee as i,
778
+ Ge as r
803
779
  };