@cgi-learning-hub/ui 1.5.1-dev.1744639457 → 1.5.1-dev.1744644969

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 (170) hide show
  1. package/dist/{Alert-CDbAJ9jP.js → Alert-D5C84Q-b.js} +10 -10
  2. package/dist/ArrowDropDown-Dt89EMyB.cjs +1 -0
  3. package/dist/ArrowDropDown-DvAbGzWJ.js +37 -0
  4. package/dist/{Autocomplete-DO8kdiDn.js → Autocomplete-BjXP0c_4.js} +12 -12
  5. package/dist/{Autocomplete-2DWwLqO5.cjs → Autocomplete-C6uWQlAq.cjs} +1 -1
  6. package/dist/Backdrop-9ZMM04UV.cjs +1 -0
  7. package/dist/{Backdrop-CRrNkGxU.js → Backdrop-CFkYB15z.js} +9 -8
  8. package/dist/{Box-2IEW8Uij.js → Box-CXvmZ2dD.js} +3 -3
  9. package/dist/{Button-DYWfAsGe.js → Button-Dhxe4eYH.js} +5 -5
  10. package/dist/{ButtonBase-BZXGvriS.js → ButtonBase-uylSwkXQ.js} +4 -4
  11. package/dist/{CardContent-oRdx06Ln.js → CardContent-uV5Z3O4p.js} +3 -3
  12. package/dist/{Checkbox-DMnS1qrF.js → Checkbox-hXnta6hd.js} +7 -7
  13. package/dist/{Chip-CacnC2L1.js → Chip-klg9LPzp.js} +5 -5
  14. package/dist/{CircularProgress-_VZwmayK.js → CircularProgress-DcEnE5le.js} +3 -3
  15. package/dist/{Close-CSvE0tu1.js → Close-KuFfPteA.js} +1 -1
  16. package/dist/{CloseRounded-CEX-NsA7.js → CloseRounded-D9nattPL.js} +1 -1
  17. package/dist/{CustomTreeItem-DTV3xokL.js → CustomTreeItem-BITNDbQ_.js} +13 -13
  18. package/dist/{DatePicker-C-toYUpc.js → DatePicker-D1YD4uGk.js} +30 -30
  19. package/dist/{DatePicker-DbH5IN_w.cjs → DatePicker-PBy3aYBw.cjs} +1 -1
  20. package/dist/{DefaultPropsProvider-Bg-6nX-u.js → DefaultPropsProvider-CojEWOKR.js} +7 -7
  21. package/dist/{Delete-Pl5O0eBK.js → Delete-B4Xhz7O1.js} +1 -1
  22. package/dist/{Dialog-D1VJ5jXx.cjs → Dialog-BC20prgn.cjs} +1 -1
  23. package/dist/{Dialog-BGrQDZXr.js → Dialog-Dk2BQsgk.js} +8 -8
  24. package/dist/{DialogContent-ZiO3fkfO.js → DialogContent-C0BzN5yk.js} +3 -3
  25. package/dist/{DialogTitle-BiZ7zHp-.js → DialogTitle-7MyBxAkp.js} +5 -5
  26. package/dist/{DialogTitle-B3MlGamo.cjs → DialogTitle-DwOXEToV.cjs} +1 -1
  27. package/dist/{Divider-BDN4OyrO.js → Divider-BC2Fp1JG.js} +4 -4
  28. package/dist/{Folder-CF7SX2AD.js → Folder-DYF788Ow.js} +1 -1
  29. package/dist/{FormLabel-DNsUciXe.js → FormLabel-Dx6hkLPd.js} +3 -3
  30. package/dist/{Grow-CLBgYoz_.js → Grow-C654F4zC.js} +5 -4
  31. package/dist/Grow-DPejKxV0.cjs +1 -0
  32. package/dist/{IconButton-CT0Plyy5.js → IconButton-BmspylGQ.js} +5 -5
  33. package/dist/{InputAdornment-Ci0BnJ_e.js → InputAdornment-BrH8kQg8.js} +4 -4
  34. package/dist/{InputBase-CJvM-WXJ.js → InputBase-B3APXSc_.js} +136 -140
  35. package/dist/InputBase-CELFJljc.cjs +3 -0
  36. package/dist/{Link-B6LNMjac.js → Link-D3HS1nTr.js} +11 -11
  37. package/dist/{List-22h7byk_.js → List-vQ97f0T4.js} +2 -2
  38. package/dist/{ListItem-B0syBgS7.js → ListItem-kT8cZ-t_.js} +5 -5
  39. package/dist/{ListItemText-zFoA_mgx.js → ListItemText-DaUQA10v.js} +14 -14
  40. package/dist/{Menu-4e60iiMU.cjs → Menu-BGO4rdUL.cjs} +1 -1
  41. package/dist/{Menu-B6t_52q7.js → Menu-bXn70x2T.js} +13 -13
  42. package/dist/{MenuItem-KNXRjnwO.js → MenuItem-88KizCxg.js} +7 -7
  43. package/dist/{Modal-BpJ9BCOo.js → Modal-BGSxrh8O.js} +10 -9
  44. package/dist/Modal-CPt1nneG.cjs +2 -0
  45. package/dist/{MoreVert-BtC5XWOR.js → MoreVert-BLY3HCz9.js} +1 -1
  46. package/dist/{Paper-BTFv1nzl.js → Paper-D1MPGEsw.js} +4 -4
  47. package/dist/{Popper-CyH7Z-lN.cjs → Popper-C6iJjm-m.cjs} +1 -1
  48. package/dist/{Popper-YJsxmJsm.js → Popper-DbqO1kUk.js} +6 -6
  49. package/dist/{Portal-CtsVKOQ9.js → Portal-C2eqRUQp.js} +2 -2
  50. package/dist/{Portal-LP7SUKpU.cjs → Portal-Dm9aDz8_.cjs} +1 -1
  51. package/dist/{Radio-Dg73Pnqf.js → Radio-BlcCOkYY.js} +8 -8
  52. package/dist/{RadioGroup-jev5E2xJ.js → RadioGroup-C1L3hzrF.js} +3 -3
  53. package/dist/Select-BTL6ppWW.cjs +3 -0
  54. package/dist/{Select-21Pm-BzJ.js → Select-CWv7tdJU.js} +349 -376
  55. package/dist/{Stack-D2Plrf1_.js → Stack-Bkppffhe.js} +5 -5
  56. package/dist/{Switch-CNfK1N1c.js → Switch-CbNrfyJP.js} +6 -6
  57. package/dist/{SwitchBase-BHC3uchj.js → SwitchBase-BkcX4xzb.js} +5 -5
  58. package/dist/{Tab-BbWlzMyp.js → Tab-CeMAH2vi.js} +11 -11
  59. package/dist/{TextField-BjzDdsW_.js → TextField-ChDtIm6f.js} +7 -7
  60. package/dist/{TextField-DFr8lsXU.cjs → TextField-SGIs7v2v.cjs} +1 -1
  61. package/dist/{ToggleButtonGroup-C_O-zqof.js → ToggleButtonGroup-B8hGStTV.js} +115 -114
  62. package/dist/{ToggleButtonGroup-BEvrUL8a.cjs → ToggleButtonGroup-C64DhY80.cjs} +37 -37
  63. package/dist/{Tooltip-Bf5VDDeG.js → Tooltip-DDiPhklW.js} +12 -11
  64. package/dist/Tooltip-DcBB_9cg.cjs +4 -0
  65. package/dist/{Typography-BNt9mZKm.js → Typography-BceX4HUn.js} +4 -4
  66. package/dist/components/Alert/Alert.es.js +3 -3
  67. package/dist/components/Alert/index.es.js +1 -1
  68. package/dist/components/Autocomplete/Autocomplete.cjs.js +1 -0
  69. package/dist/components/Autocomplete/Autocomplete.d.ts +11 -0
  70. package/dist/components/Autocomplete/Autocomplete.es.js +52 -0
  71. package/dist/components/Autocomplete/index.cjs.js +1 -0
  72. package/dist/components/Autocomplete/index.d.ts +2 -0
  73. package/dist/components/Autocomplete/index.es.js +4 -0
  74. package/dist/components/Button/Button.es.js +2 -2
  75. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  76. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  77. package/dist/components/DatePicker/index.cjs.js +1 -1
  78. package/dist/components/DatePicker/index.es.js +1 -1
  79. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  80. package/dist/components/Dialog/Dialog.es.js +2 -2
  81. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  82. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  83. package/dist/components/FileList/FileIcon.es.js +1 -1
  84. package/dist/components/FileList/FileListItem.es.js +4 -4
  85. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  86. package/dist/components/Heading/Heading.es.js +2 -2
  87. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  88. package/dist/components/Loader/Loader.es.js +1 -1
  89. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  90. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  91. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  92. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  93. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  94. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  95. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  96. package/dist/components/TreeView/TreeView.es.js +9 -9
  97. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  98. package/dist/components/TreeView/utils.es.js +3 -3
  99. package/dist/components/index.cjs.js +1 -1
  100. package/dist/components/index.es.js +143 -142
  101. package/dist/components/stories/Alert.stories.es.js +1 -1
  102. package/dist/components/stories/Autocomplete.stories.cjs.js +2 -2
  103. package/dist/components/stories/Autocomplete.stories.es.js +62 -28
  104. package/dist/components/stories/Button.stories.es.js +1 -1
  105. package/dist/components/stories/Card.stories.es.js +2 -2
  106. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  107. package/dist/components/stories/Chip.stories.es.js +1 -1
  108. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  109. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  110. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  111. package/dist/components/stories/Dialog.stories.es.js +2 -2
  112. package/dist/components/stories/Divider.stories.es.js +1 -1
  113. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  114. package/dist/components/stories/Heading.stories.es.js +2 -2
  115. package/dist/components/stories/IconButton.stories.es.js +2 -2
  116. package/dist/components/stories/Link.stories.es.js +1 -1
  117. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  118. package/dist/components/stories/Menu.stories.es.js +2 -2
  119. package/dist/components/stories/Paper.stories.es.js +1 -1
  120. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  121. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  122. package/dist/components/stories/Select.stories.cjs.js +1 -1
  123. package/dist/components/stories/Select.stories.es.js +3 -3
  124. package/dist/components/stories/TabList.stories.es.js +1 -1
  125. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  126. package/dist/components/stories/TextField.stories.es.js +1 -1
  127. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  128. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  129. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  130. package/dist/components/stories/TreeView.stories.es.js +11 -11
  131. package/dist/components/stories/Typography.stories.es.js +1 -1
  132. package/dist/{createSvgIcon-CCutbgLb.js → createSvgIcon-Q_5wEReh.js} +3 -3
  133. package/dist/{dividerClasses-hlXEfEZK.js → dividerClasses-CG6GpKdW.js} +1 -1
  134. package/dist/elementAcceptingRef-BzA19fXF.cjs +1 -0
  135. package/dist/elementAcceptingRef-De-6sh1C.js +25 -0
  136. package/dist/{elementTypeAcceptingRef-COpcDx5q.js → elementTypeAcceptingRef-DAXsN6bV.js} +1 -1
  137. package/dist/{extendSxProp-0G38SSpC.js → extendSxProp-BNvofXln.js} +1 -1
  138. package/dist/getReactElementRef-B4Mdq17D.js +8 -0
  139. package/dist/getReactElementRef-BPy0WStw.cjs +1 -0
  140. package/dist/{identifier-BJqC6EXa.js → identifier-UGP6vjyr.js} +5 -5
  141. package/dist/{index-gxOBDuBW.js → index-BEwCnUM5.js} +1 -1
  142. package/dist/{index-BOAF-ZZq.js → index-DF_6gEtu.js} +4 -4
  143. package/dist/{index-DP697UN9.js → index-Q0xeFkEM.js} +1 -1
  144. package/dist/index.cjs.js +1 -1
  145. package/dist/index.es.js +143 -142
  146. package/dist/inputBaseClasses-BMcreG7U.cjs +1 -0
  147. package/dist/inputBaseClasses-BPb0JVKx.js +9 -0
  148. package/dist/{listItemTextClasses-DBxyCmso.js → listItemTextClasses-Ceqh8Tnn.js} +1 -1
  149. package/dist/{memoTheme-D_Qap2ZW.js → memoTheme-D0vyNKLd.js} +1 -1
  150. package/dist/{mergeSlotProps-BSFlgsYC.js → mergeSlotProps-D_CzNhXE.js} +1 -1
  151. package/dist/{refType-DRBJ18fO.js → refType-BjXePEDa.js} +1 -1
  152. package/dist/styled-blmInu6U.js +5 -0
  153. package/dist/{useSlot-DhC6EPU2.js → useSlot-CxlUbTmA.js} +1 -1
  154. package/dist/{useSlotProps-Bos9nSja.js → useSlotProps-DspaNRnE.js} +1 -1
  155. package/dist/{useTheme-Dt-VOIyT.js → useTheme-9UmqLsq5.js} +3 -3
  156. package/dist/{useTheme-B1xvds8x.js → useTheme-CXUszJGf.js} +1 -1
  157. package/dist/useThemeProps-B4kO75RK.js +17 -0
  158. package/dist/{useThemeProps-DSVFwH3A.js → useThemeProps-DGawbBM3.js} +2 -2
  159. package/dist/{utils-qwVZGgXz.js → utils-CByxilR5.js} +1 -1
  160. package/package.json +1 -1
  161. package/dist/Backdrop-Be5Hv5U8.cjs +0 -1
  162. package/dist/Grow-DrEdqZgX.cjs +0 -1
  163. package/dist/InputBase-C-ES3FPH.cjs +0 -3
  164. package/dist/Modal-JAWJUstF.cjs +0 -2
  165. package/dist/Select-CxofSqZJ.cjs +0 -3
  166. package/dist/Tooltip-DJC7nrsk.cjs +0 -4
  167. package/dist/getReactElementRef-C6oFed6n.js +0 -31
  168. package/dist/getReactElementRef-EDbO4rJt.cjs +0 -1
  169. package/dist/styled-DpPa0vDp.js +0 -5
  170. package/dist/useThemeProps-CxMYNgfp.js +0 -17
@@ -1,23 +1,24 @@
1
1
  import * as l from "react";
2
- import { P as e, F as Ae, G as Be, H as pe, K as X, Y as He } from "./identifier-BJqC6EXa.js";
2
+ import { P as e, H as pe, K as X, U as Ae } from "./identifier-UGP6vjyr.js";
3
3
  import { i as fe } from "./isHostComponent-kiaBvYVo.js";
4
- import { f as Me } from "./formControlState-vgaj2ksH.js";
5
- import { u as Pe, F as We } from "./useFormControl-CatNKXAi.js";
6
- import { g as De } from "./index-BOAF-ZZq.js";
7
- import { m as ge } from "./memoTheme-D_Qap2ZW.js";
8
- import { i as Le } from "./utils-DWqc1kRF.js";
9
- import { jsxs as ee, jsx as A } from "react/jsx-runtime";
10
- import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-Bg-6nX-u.js";
4
+ import { f as Be } from "./formControlState-vgaj2ksH.js";
5
+ import { u as He, F as Me } from "./useFormControl-CatNKXAi.js";
6
+ import { g as Pe } from "./index-DF_6gEtu.js";
7
+ import { m as ge } from "./memoTheme-D0vyNKLd.js";
8
+ import { i as We } from "./utils-DWqc1kRF.js";
9
+ import { g as De, i as ee } from "./inputBaseClasses-BPb0JVKx.js";
10
+ import { jsxs as oe, jsx as A } from "react/jsx-runtime";
11
+ import { u as je, s as ve, c as Le } from "./DefaultPropsProvider-CojEWOKR.js";
11
12
  import { u as we } from "./useForkRef-u29GSuCu.js";
12
- import { u as Ve, a as oe } from "./useEventCallback-Yoj9nCug.js";
13
+ import { u as Ve, a as te } from "./useEventCallback-Yoj9nCug.js";
13
14
  import { o as me } from "./ownerWindow-niciwP7I.js";
14
- import { d as _e } from "./debounce-46wSf_lW.js";
15
- import { r as Ke } from "./refType-DRBJ18fO.js";
16
- import { e as $e } from "./elementTypeAcceptingRef-COpcDx5q.js";
17
- function L(t) {
15
+ import { d as Ue } from "./debounce-46wSf_lW.js";
16
+ import { r as _e } from "./refType-BjXePEDa.js";
17
+ import { e as Ke } from "./elementTypeAcceptingRef-DAXsN6bV.js";
18
+ function j(t) {
18
19
  return parseInt(t, 10) || 0;
19
20
  }
20
- const Ge = {
21
+ const $e = {
21
22
  shadow: {
22
23
  // Visibility needed to hide the extra text area on iPads
23
24
  visibility: "hidden",
@@ -40,18 +41,18 @@ function qe(t) {
40
41
  function he(t) {
41
42
  return qe(t) || t.outerHeightStyle === 0 && !t.overflowing;
42
43
  }
43
- const Se = /* @__PURE__ */ l.forwardRef(function(o, n) {
44
+ const xe = /* @__PURE__ */ l.forwardRef(function(o, n) {
44
45
  const {
45
- onChange: d,
46
+ onChange: c,
46
47
  maxRows: m,
47
- minRows: c = 1,
48
+ minRows: d = 1,
48
49
  style: R,
49
50
  value: T,
50
51
  ...B
51
52
  } = o, {
52
- current: S
53
- } = l.useRef(T != null), p = l.useRef(null), O = we(n, p), f = l.useRef(null), x = l.useRef(null), g = l.useCallback(() => {
54
- const r = p.current, i = x.current;
53
+ current: x
54
+ } = l.useRef(T != null), p = l.useRef(null), O = we(n, p), f = l.useRef(null), C = l.useRef(null), g = l.useCallback(() => {
55
+ const r = p.current, i = C.current;
55
56
  if (!r || !i)
56
57
  return;
57
58
  const u = me(r).getComputedStyle(r);
@@ -62,65 +63,65 @@ const Se = /* @__PURE__ */ l.forwardRef(function(o, n) {
62
63
  };
63
64
  i.style.width = u.width, i.value = r.value || o.placeholder || "x", i.value.slice(-1) === `
64
65
  ` && (i.value += " ");
65
- const H = u.boxSizing, M = L(u.paddingBottom) + L(u.paddingTop), U = L(u.borderBottomWidth) + L(u.borderTopWidth), w = i.scrollHeight;
66
+ const H = u.boxSizing, M = j(u.paddingBottom) + j(u.paddingTop), V = j(u.borderBottomWidth) + j(u.borderTopWidth), w = i.scrollHeight;
66
67
  i.value = "x";
67
68
  const E = i.scrollHeight;
68
69
  let h = w;
69
- c && (h = Math.max(Number(c) * E, h)), m && (h = Math.min(Number(m) * E, h)), h = Math.max(h, E);
70
- const P = h + (H === "border-box" ? M + U : 0), V = Math.abs(h - w) <= 1;
70
+ d && (h = Math.max(Number(d) * E, h)), m && (h = Math.min(Number(m) * E, h)), h = Math.max(h, E);
71
+ const P = h + (H === "border-box" ? M + V : 0), U = Math.abs(h - w) <= 1;
71
72
  return {
72
73
  outerHeightStyle: P,
73
- overflowing: V
74
+ overflowing: U
74
75
  };
75
- }, [m, c, o.placeholder]), z = Ve(() => {
76
+ }, [m, d, o.placeholder]), z = Ve(() => {
76
77
  const r = p.current, i = g();
77
78
  if (!r || !i || he(i))
78
79
  return !1;
79
80
  const y = i.outerHeightStyle;
80
81
  return f.current != null && f.current !== y;
81
- }), C = l.useCallback(() => {
82
+ }), S = l.useCallback(() => {
82
83
  const r = p.current, i = g();
83
84
  if (!r || !i || he(i))
84
85
  return;
85
86
  const y = i.outerHeightStyle;
86
87
  f.current !== y && (f.current = y, r.style.height = `${y}px`), r.style.overflow = i.overflowing ? "hidden" : "";
87
- }, [g]), F = l.useRef(-1);
88
- oe(() => {
89
- const r = _e(C), i = p == null ? void 0 : p.current;
88
+ }, [g]), N = l.useRef(-1);
89
+ te(() => {
90
+ const r = Ue(S), i = p == null ? void 0 : p.current;
90
91
  if (!i)
91
92
  return;
92
93
  const y = me(i);
93
94
  y.addEventListener("resize", r);
94
95
  let u;
95
96
  return typeof ResizeObserver < "u" && (u = new ResizeObserver(() => {
96
- z() && (u.unobserve(i), cancelAnimationFrame(F.current), C(), F.current = requestAnimationFrame(() => {
97
+ z() && (u.unobserve(i), cancelAnimationFrame(N.current), S(), N.current = requestAnimationFrame(() => {
97
98
  u.observe(i);
98
99
  }));
99
100
  }), u.observe(i)), () => {
100
- r.clear(), cancelAnimationFrame(F.current), y.removeEventListener("resize", r), u && u.disconnect();
101
+ r.clear(), cancelAnimationFrame(N.current), y.removeEventListener("resize", r), u && u.disconnect();
101
102
  };
102
- }, [g, C, z]), oe(() => {
103
- C();
103
+ }, [g, S, z]), te(() => {
104
+ S();
104
105
  });
105
- const j = (r) => {
106
- S || C(), d && d(r);
106
+ const L = (r) => {
107
+ x || S(), c && c(r);
107
108
  };
108
- return /* @__PURE__ */ ee(l.Fragment, {
109
+ return /* @__PURE__ */ oe(l.Fragment, {
109
110
  children: [/* @__PURE__ */ A("textarea", {
110
111
  value: T,
111
- onChange: j,
112
+ onChange: L,
112
113
  ref: O,
113
- rows: c,
114
+ rows: d,
114
115
  style: R,
115
116
  ...B
116
117
  }), /* @__PURE__ */ A("textarea", {
117
118
  "aria-hidden": !0,
118
119
  className: o.className,
119
120
  readOnly: !0,
120
- ref: x,
121
+ ref: C,
121
122
  tabIndex: -1,
122
123
  style: {
123
- ...Ge.shadow,
124
+ ...$e.shadow,
124
125
  ...R,
125
126
  paddingTop: 0,
126
127
  paddingBottom: 0
@@ -128,7 +129,7 @@ const Se = /* @__PURE__ */ l.forwardRef(function(o, n) {
128
129
  })]
129
130
  });
130
131
  });
131
- process.env.NODE_ENV !== "production" && (Se.propTypes = {
132
+ process.env.NODE_ENV !== "production" && (xe.propTypes = {
132
133
  // ┌────────────────────────────── Warning ──────────────────────────────┐
133
134
  // │ These PropTypes are generated from the TypeScript type definitions. │
134
135
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -163,46 +164,42 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
163
164
  */
164
165
  value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
165
166
  });
166
- function Ye(t) {
167
- return Be("MuiInputBase", t);
168
- }
169
- const te = Ae("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
170
167
  var be;
171
- const Ze = (t, o) => {
168
+ const Ge = (t, o) => {
172
169
  const {
173
170
  ownerState: n
174
171
  } = t;
175
172
  return [o.root, n.formControl && o.formControl, n.startAdornment && o.adornedStart, n.endAdornment && o.adornedEnd, n.error && o.error, n.size === "small" && o.sizeSmall, n.multiline && o.multiline, n.color && o[`color${X(n.color)}`], n.fullWidth && o.fullWidth, n.hiddenLabel && o.hiddenLabel];
176
- }, Je = (t, o) => {
173
+ }, Ye = (t, o) => {
177
174
  const {
178
175
  ownerState: n
179
176
  } = t;
180
177
  return [o.input, n.size === "small" && o.inputSizeSmall, n.multiline && o.inputMultiline, n.type === "search" && o.inputTypeSearch, n.startAdornment && o.inputAdornedStart, n.endAdornment && o.inputAdornedEnd, n.hiddenLabel && o.inputHiddenLabel];
181
- }, Qe = (t) => {
178
+ }, Ze = (t) => {
182
179
  const {
183
180
  classes: o,
184
181
  color: n,
185
- disabled: d,
182
+ disabled: c,
186
183
  error: m,
187
- endAdornment: c,
184
+ endAdornment: d,
188
185
  focused: R,
189
186
  formControl: T,
190
187
  fullWidth: B,
191
- hiddenLabel: S,
188
+ hiddenLabel: x,
192
189
  multiline: p,
193
190
  readOnly: O,
194
191
  size: f,
195
- startAdornment: x,
192
+ startAdornment: C,
196
193
  type: g
197
194
  } = t, z = {
198
- root: ["root", `color${X(n)}`, d && "disabled", m && "error", B && "fullWidth", R && "focused", T && "formControl", f && f !== "medium" && `size${X(f)}`, p && "multiline", x && "adornedStart", c && "adornedEnd", S && "hiddenLabel", O && "readOnly"],
199
- input: ["input", d && "disabled", g === "search" && "inputTypeSearch", p && "inputMultiline", f === "small" && "inputSizeSmall", S && "inputHiddenLabel", x && "inputAdornedStart", c && "inputAdornedEnd", O && "readOnly"]
195
+ root: ["root", `color${X(n)}`, c && "disabled", m && "error", B && "fullWidth", R && "focused", T && "formControl", f && f !== "medium" && `size${X(f)}`, p && "multiline", C && "adornedStart", d && "adornedEnd", x && "hiddenLabel", O && "readOnly"],
196
+ input: ["input", c && "disabled", g === "search" && "inputTypeSearch", p && "inputMultiline", f === "small" && "inputSizeSmall", x && "inputHiddenLabel", C && "inputAdornedStart", d && "inputAdornedEnd", O && "readOnly"]
200
197
  };
201
- return Ue(z, Ye, o);
202
- }, Xe = ve("div", {
198
+ return Le(z, De, o);
199
+ }, Je = ve("div", {
203
200
  name: "MuiInputBase",
204
201
  slot: "Root",
205
- overridesResolver: Ze
202
+ overridesResolver: Ge
206
203
  })(ge(({
207
204
  theme: t
208
205
  }) => ({
@@ -216,7 +213,7 @@ const Ze = (t, o) => {
216
213
  cursor: "text",
217
214
  display: "inline-flex",
218
215
  alignItems: "center",
219
- [`&.${te.disabled}`]: {
216
+ [`&.${ee.disabled}`]: {
220
217
  color: (t.vars || t).palette.text.disabled,
221
218
  cursor: "default"
222
219
  },
@@ -243,10 +240,10 @@ const Ze = (t, o) => {
243
240
  width: "100%"
244
241
  }
245
242
  }]
246
- }))), eo = ve("input", {
243
+ }))), Qe = ve("input", {
247
244
  name: "MuiInputBase",
248
245
  slot: "Input",
249
- overridesResolver: Je
246
+ overridesResolver: Ye
250
247
  })(ge(({
251
248
  theme: t
252
249
  }) => {
@@ -260,7 +257,7 @@ const Ze = (t, o) => {
260
257
  transition: t.transitions.create("opacity", {
261
258
  duration: t.transitions.duration.shorter
262
259
  })
263
- }, d = {
260
+ }, c = {
264
261
  opacity: "0 !important"
265
262
  }, m = t.vars ? {
266
263
  opacity: t.vars.opacity.inputPlaceholder
@@ -301,11 +298,11 @@ const Ze = (t, o) => {
301
298
  WebkitAppearance: "none"
302
299
  },
303
300
  // Show and hide the placeholder logic
304
- [`label[data-shrink=false] + .${te.formControl} &`]: {
305
- "&::-webkit-input-placeholder": d,
306
- "&::-moz-placeholder": d,
301
+ [`label[data-shrink=false] + .${ee.formControl} &`]: {
302
+ "&::-webkit-input-placeholder": c,
303
+ "&::-moz-placeholder": c,
307
304
  // Firefox 19+
308
- "&::-ms-input-placeholder": d,
305
+ "&::-ms-input-placeholder": c,
309
306
  // Edge
310
307
  "&:focus::-webkit-input-placeholder": m,
311
308
  "&:focus::-moz-placeholder": m,
@@ -313,7 +310,7 @@ const Ze = (t, o) => {
313
310
  "&:focus::-ms-input-placeholder": m
314
311
  // Edge
315
312
  },
316
- [`&.${te.disabled}`]: {
313
+ [`&.${ee.disabled}`]: {
317
314
  opacity: 1,
318
315
  // Reset iOS opacity
319
316
  WebkitTextFillColor: (t.vars || t).palette.text.disabled
@@ -321,8 +318,8 @@ const Ze = (t, o) => {
321
318
  },
322
319
  variants: [{
323
320
  props: ({
324
- ownerState: c
325
- }) => !c.disableInjectingGlobalStyles,
321
+ ownerState: d
322
+ }) => !d.disableInjectingGlobalStyles,
326
323
  style: {
327
324
  animationName: "mui-auto-fill-cancel",
328
325
  animationDuration: "10ms",
@@ -340,8 +337,8 @@ const Ze = (t, o) => {
340
337
  }
341
338
  }, {
342
339
  props: ({
343
- ownerState: c
344
- }) => c.multiline,
340
+ ownerState: d
341
+ }) => d.multiline,
345
342
  style: {
346
343
  height: "auto",
347
344
  resize: "none",
@@ -358,7 +355,7 @@ const Ze = (t, o) => {
358
355
  }
359
356
  }]
360
357
  };
361
- })), ye = De({
358
+ })), ye = Pe({
362
359
  "@keyframes mui-auto-fill": {
363
360
  from: {
364
361
  display: "block"
@@ -369,98 +366,98 @@ const Ze = (t, o) => {
369
366
  display: "block"
370
367
  }
371
368
  }
372
- }), oo = /* @__PURE__ */ l.forwardRef(function(o, n) {
373
- const d = je({
369
+ }), Xe = /* @__PURE__ */ l.forwardRef(function(o, n) {
370
+ const c = je({
374
371
  props: o,
375
372
  name: "MuiInputBase"
376
373
  }), {
377
374
  "aria-describedby": m,
378
- autoComplete: c,
375
+ autoComplete: d,
379
376
  autoFocus: R,
380
377
  className: T,
381
378
  color: B,
382
- components: S = {},
379
+ components: x = {},
383
380
  componentsProps: p = {},
384
381
  defaultValue: O,
385
382
  disabled: f,
386
- disableInjectingGlobalStyles: x,
383
+ disableInjectingGlobalStyles: C,
387
384
  endAdornment: g,
388
385
  error: z,
389
- fullWidth: C = !1,
390
- id: F,
391
- inputComponent: j = "input",
386
+ fullWidth: S = !1,
387
+ id: N,
388
+ inputComponent: L = "input",
392
389
  inputProps: r = {},
393
390
  inputRef: i,
394
391
  margin: y,
395
392
  maxRows: u,
396
393
  minRows: H,
397
394
  multiline: M = !1,
398
- name: U,
395
+ name: V,
399
396
  onBlur: w,
400
397
  onChange: E,
401
398
  onClick: h,
402
399
  onFocus: P,
403
- onKeyDown: V,
404
- onKeyUp: xe,
405
- placeholder: Ce,
400
+ onKeyDown: U,
401
+ onKeyUp: Ce,
402
+ placeholder: Se,
406
403
  readOnly: _,
407
404
  renderSuffix: ne,
408
405
  rows: W,
409
- size: to,
406
+ size: eo,
410
407
  slotProps: re = {},
411
408
  slots: ie = {},
412
- startAdornment: N,
409
+ startAdornment: k,
413
410
  type: ae = "text",
414
411
  value: Re,
415
412
  ...Te
416
- } = d, D = r.value != null ? r.value : Re, {
413
+ } = c, D = r.value != null ? r.value : Re, {
417
414
  current: K
418
415
  } = l.useRef(D != null), I = l.useRef(), Oe = l.useCallback((a) => {
419
416
  process.env.NODE_ENV !== "production" && a && a.nodeName !== "INPUT" && !a.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(`
420
417
  `));
421
- }, []), Ee = we(I, i, r.ref, Oe), [$, G] = l.useState(!1), s = Pe();
418
+ }, []), Ee = we(I, i, r.ref, Oe), [$, q] = l.useState(!1), s = He();
422
419
  process.env.NODE_ENV !== "production" && l.useEffect(() => {
423
420
  if (s)
424
421
  return s.registerEffect();
425
422
  }, [s]);
426
- const b = Me({
427
- props: d,
423
+ const b = Be({
424
+ props: c,
428
425
  muiFormControl: s,
429
426
  states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
430
427
  });
431
428
  b.focused = s ? s.focused : $, l.useEffect(() => {
432
- !s && f && $ && (G(!1), w && w());
429
+ !s && f && $ && (q(!1), w && w());
433
430
  }, [s, f, $, w]);
434
- const q = s && s.onFilled, Y = s && s.onEmpty, k = l.useCallback((a) => {
435
- Le(a) ? q && q() : Y && Y();
436
- }, [q, Y]);
437
- oe(() => {
438
- K && k({
431
+ const G = s && s.onFilled, Y = s && s.onEmpty, F = l.useCallback((a) => {
432
+ We(a) ? G && G() : Y && Y();
433
+ }, [G, Y]);
434
+ te(() => {
435
+ K && F({
439
436
  value: D
440
437
  });
441
- }, [D, k, K]);
438
+ }, [D, F, K]);
442
439
  const Ie = (a) => {
443
- P && P(a), r.onFocus && r.onFocus(a), s && s.onFocus ? s.onFocus(a) : G(!0);
440
+ P && P(a), r.onFocus && r.onFocus(a), s && s.onFocus ? s.onFocus(a) : q(!0);
444
441
  }, ze = (a) => {
445
- w && w(a), r.onBlur && r.onBlur(a), s && s.onBlur ? s.onBlur(a) : G(!1);
446
- }, Fe = (a, ...de) => {
442
+ w && w(a), r.onBlur && r.onBlur(a), s && s.onBlur ? s.onBlur(a) : q(!1);
443
+ }, Ne = (a, ...ce) => {
447
444
  if (!K) {
448
- const ce = a.target || I.current;
449
- if (ce == null)
450
- 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));
451
- k({
452
- value: ce.value
445
+ const de = a.target || I.current;
446
+ if (de == null)
447
+ 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." : Ae(1));
448
+ F({
449
+ value: de.value
453
450
  });
454
451
  }
455
- r.onChange && r.onChange(a, ...de), E && E(a, ...de);
452
+ r.onChange && r.onChange(a, ...ce), E && E(a, ...ce);
456
453
  };
457
454
  l.useEffect(() => {
458
- k(I.current);
455
+ F(I.current);
459
456
  }, []);
460
- const Ne = (a) => {
457
+ const ke = (a) => {
461
458
  I.current && a.currentTarget === a.target && I.current.focus(), h && h(a);
462
459
  };
463
- let Z = j, v = r;
460
+ let Z = L, v = r;
464
461
  M && Z === "input" && (W ? (process.env.NODE_ENV !== "production" && (H || u) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), v = {
465
462
  type: void 0,
466
463
  minRows: W,
@@ -471,40 +468,40 @@ const Ze = (t, o) => {
471
468
  maxRows: u,
472
469
  minRows: H,
473
470
  ...v
474
- }, Z = Se);
475
- const ke = (a) => {
476
- k(a.animationName === "mui-auto-fill-cancel" ? I.current : {
471
+ }, Z = xe);
472
+ const Fe = (a) => {
473
+ F(a.animationName === "mui-auto-fill-cancel" ? I.current : {
477
474
  value: "x"
478
475
  });
479
476
  };
480
477
  l.useEffect(() => {
481
- s && s.setAdornedStart(!!N);
482
- }, [s, N]);
478
+ s && s.setAdornedStart(!!k);
479
+ }, [s, k]);
483
480
  const J = {
484
- ...d,
481
+ ...c,
485
482
  color: b.color || "primary",
486
483
  disabled: b.disabled,
487
484
  endAdornment: g,
488
485
  error: b.error,
489
486
  focused: b.focused,
490
487
  formControl: s,
491
- fullWidth: C,
488
+ fullWidth: S,
492
489
  hiddenLabel: b.hiddenLabel,
493
490
  multiline: M,
494
491
  size: b.size,
495
- startAdornment: N,
492
+ startAdornment: k,
496
493
  type: ae
497
- }, se = Qe(J), le = ie.root || S.Root || Xe, Q = re.root || p.root || {}, ue = ie.input || S.Input || eo;
494
+ }, se = Ze(J), le = ie.root || x.Root || Je, Q = re.root || p.root || {}, ue = ie.input || x.Input || Qe;
498
495
  return v = {
499
496
  ...v,
500
497
  ...re.input ?? p.input
501
- }, /* @__PURE__ */ ee(l.Fragment, {
502
- children: [!x && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
498
+ }, /* @__PURE__ */ oe(l.Fragment, {
499
+ children: [!C && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
503
500
  // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
504
- (be || (be = /* @__PURE__ */ A(ye, {}))), /* @__PURE__ */ ee(le, {
501
+ (be || (be = /* @__PURE__ */ A(ye, {}))), /* @__PURE__ */ oe(le, {
505
502
  ...Q,
506
503
  ref: n,
507
- onClick: Ne,
504
+ onClick: ke,
508
505
  ...Te,
509
506
  ...!fe(le) && {
510
507
  ownerState: {
@@ -513,25 +510,25 @@ const Ze = (t, o) => {
513
510
  }
514
511
  },
515
512
  className: pe(se.root, Q.className, T, _ && "MuiInputBase-readOnly"),
516
- children: [N, /* @__PURE__ */ A(We.Provider, {
513
+ children: [k, /* @__PURE__ */ A(Me.Provider, {
517
514
  value: null,
518
515
  children: /* @__PURE__ */ A(ue, {
519
516
  "aria-invalid": b.error,
520
517
  "aria-describedby": m,
521
- autoComplete: c,
518
+ autoComplete: d,
522
519
  autoFocus: R,
523
520
  defaultValue: O,
524
521
  disabled: b.disabled,
525
- id: F,
526
- onAnimationStart: ke,
527
- name: U,
528
- placeholder: Ce,
522
+ id: N,
523
+ onAnimationStart: Fe,
524
+ name: V,
525
+ placeholder: Se,
529
526
  readOnly: _,
530
527
  required: b.required,
531
528
  rows: W,
532
529
  value: D,
533
- onKeyDown: V,
534
- onKeyUp: xe,
530
+ onKeyDown: U,
531
+ onKeyUp: Ce,
535
532
  type: ae,
536
533
  ...v,
537
534
  ...!fe(ue) && {
@@ -544,17 +541,17 @@ const Ze = (t, o) => {
544
541
  ref: Ee,
545
542
  className: pe(se.input, v.className, _ && "MuiInputBase-readOnly"),
546
543
  onBlur: ze,
547
- onChange: Fe,
544
+ onChange: Ne,
548
545
  onFocus: Ie
549
546
  })
550
547
  }), g, ne ? ne({
551
548
  ...b,
552
- startAdornment: N
549
+ startAdornment: k
553
550
  }) : null]
554
551
  })]
555
552
  });
556
553
  });
557
- process.env.NODE_ENV !== "production" && (oo.propTypes = {
554
+ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
558
555
  // ┌────────────────────────────── Warning ──────────────────────────────┐
559
556
  // │ These PropTypes are generated from the TypeScript type definitions. │
560
557
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -649,7 +646,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
649
646
  * Either a string to use a HTML element or a component.
650
647
  * @default 'input'
651
648
  */
652
- inputComponent: $e,
649
+ inputComponent: Ke,
653
650
  /**
654
651
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
655
652
  * @default {}
@@ -658,7 +655,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
658
655
  /**
659
656
  * Pass a ref to the `input` element.
660
657
  */
661
- inputRef: Ke,
658
+ inputRef: _e,
662
659
  /**
663
660
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
664
661
  * FormControl.
@@ -783,10 +780,9 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
783
780
  value: e.any
784
781
  });
785
782
  export {
786
- oo as I,
787
- Xe as a,
788
- eo as b,
789
- Je as c,
790
- te as i,
791
- Ze as r
783
+ Xe as I,
784
+ Je as a,
785
+ Qe as b,
786
+ Ye as i,
787
+ Ge as r
792
788
  };
@@ -0,0 +1,3 @@
1
+ "use strict";const je=require("react"),e=require("./identifier-gJdGmHeC.cjs"),ce=require("./isHostComponent-PydJW4A4.cjs"),He=require("./formControlState-CuX6WjAX.cjs"),de=require("./useFormControl-haP0iPhl.cjs"),qe=require("./index-Cfd-LNZn.cjs"),Te=require("./memoTheme-GOMOSdXJ.cjs"),Me=require("./utils-BWx1W_q1.cjs"),L=require("./inputBaseClasses-BMcreG7U.cjs"),v=require("react/jsx-runtime"),V=require("./DefaultPropsProvider-DLSItMqn.cjs"),be=require("./useForkRef-CFhhTu-Q.cjs"),D=require("./useEventCallback-BxpcFap0.cjs"),fe=require("./ownerWindow-DDHucZi0.cjs"),We=require("./debounce-DpCj7ugL.cjs"),De=require("./refType-53jD7LEO.cjs"),Le=require("./elementTypeAcceptingRef-DRPcjZd5.cjs");function Ve(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(o,t,u.get?u:{enumerable:!0,get:()=>n[t]})}}return o.default=n,Object.freeze(o)}const l=Ve(je);function W(n){return parseInt(n,10)||0}const _e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ue(n){for(const o in n)return!1;return!0}function ye(n){return Ue(n)||n.outerHeightStyle===0&&!n.overflowing}const ge=l.forwardRef(function(o,t){const{onChange:u,maxRows:y,minRows:c=1,style:R,value:S,...N}=o,{current:w}=l.useRef(S!=null),d=l.useRef(null),O=be.useForkRef(t,d),f=l.useRef(null),x=l.useRef(null),b=l.useCallback(()=>{const r=d.current,s=x.current;if(!r||!s)return;const p=fe.ownerWindow(r).getComputedStyle(r);if(p.width==="0px")return{outerHeightStyle:0,overflowing:!1};s.style.width=p.width,s.value=r.value||o.placeholder||"x",s.value.slice(-1)===`
2
+ `&&(s.value+=" ");const A=p.boxSizing,j=W(p.paddingBottom)+W(p.paddingTop),U=W(p.borderBottomWidth)+W(p.borderTopWidth),P=s.scrollHeight;s.value="x";const E=s.scrollHeight;let m=P;c&&(m=Math.max(Number(c)*E,m)),y&&(m=Math.min(Number(y)*E,m)),m=Math.max(m,E);const H=m+(A==="border-box"?j+U:0),$=Math.abs(m-P)<=1;return{outerHeightStyle:H,overflowing:$}},[y,c,o.placeholder]),z=D.useEventCallback(()=>{const r=d.current,s=b();if(!r||!s||ye(s))return!1;const T=s.outerHeightStyle;return f.current!=null&&f.current!==T}),C=l.useCallback(()=>{const r=d.current,s=b();if(!r||!s||ye(s))return;const T=s.outerHeightStyle;f.current!==T&&(f.current=T,r.style.height=`${T}px`),r.style.overflow=s.overflowing?"hidden":""},[b]),k=l.useRef(-1);D.useEnhancedEffect(()=>{const r=We.debounce(C),s=d==null?void 0:d.current;if(!s)return;const T=fe.ownerWindow(s);T.addEventListener("resize",r);let p;return typeof ResizeObserver<"u"&&(p=new ResizeObserver(()=>{z()&&(p.unobserve(s),cancelAnimationFrame(k.current),C(),k.current=requestAnimationFrame(()=>{p.observe(s)}))}),p.observe(s)),()=>{r.clear(),cancelAnimationFrame(k.current),T.removeEventListener("resize",r),p&&p.disconnect()}},[b,C,z]),D.useEnhancedEffect(()=>{C()});const _=r=>{w||C(),u&&u(r)};return v.jsxs(l.Fragment,{children:[v.jsx("textarea",{value:S,onChange:_,ref:O,rows:c,style:R,...N}),v.jsx("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:x,tabIndex:-1,style:{..._e.shadow,...R,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(ge.propTypes={className:e.PropTypes.string,maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),onChange:e.PropTypes.func,placeholder:e.PropTypes.string,style:e.PropTypes.object,value:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.number,e.PropTypes.string])});var me;const Pe=(n,o)=>{const{ownerState:t}=n;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${e.capitalize(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},ve=(n,o)=>{const{ownerState:t}=n;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]},$e=n=>{const{classes:o,color:t,disabled:u,error:y,endAdornment:c,focused:R,formControl:S,fullWidth:N,hiddenLabel:w,multiline:d,readOnly:O,size:f,startAdornment:x,type:b}=n,z={root:["root",`color${e.capitalize(t)}`,u&&"disabled",y&&"error",N&&"fullWidth",R&&"focused",S&&"formControl",f&&f!=="medium"&&`size${e.capitalize(f)}`,d&&"multiline",x&&"adornedStart",c&&"adornedEnd",w&&"hiddenLabel",O&&"readOnly"],input:["input",u&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",w&&"inputHiddenLabel",x&&"inputAdornedStart",c&&"inputAdornedEnd",O&&"readOnly"]};return V.composeClasses(z,L.getInputBaseUtilityClass,o)},we=V.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pe})(Te.memoTheme(({theme:n})=>({...n.typography.body1,color:(n.vars||n).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${L.inputBaseClasses.disabled}`]:{color:(n.vars||n).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:o})=>o.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:o,size:t})=>o.multiline&&t==="small",style:{paddingTop:1}},{props:({ownerState:o})=>o.fullWidth,style:{width:"100%"}}]}))),xe=V.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ve})(Te.memoTheme(({theme:n})=>{const o=n.palette.mode==="light",t={color:"currentColor",...n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})},u={opacity:"0 !important"},y=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":t,"&::-moz-placeholder":t,"&::-ms-input-placeholder":t,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${L.inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":u,"&::-moz-placeholder":u,"&::-ms-input-placeholder":u,"&:focus::-webkit-input-placeholder":y,"&:focus::-moz-placeholder":y,"&:focus::-ms-input-placeholder":y},[`&.${L.inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:c})=>c.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),he=qe.globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ce=l.forwardRef(function(o,t){const u=V.useDefaultProps({props:o,name:"MuiInputBase"}),{"aria-describedby":y,autoComplete:c,autoFocus:R,className:S,color:N,components:w={},componentsProps:d={},defaultValue:O,disabled:f,disableInjectingGlobalStyles:x,endAdornment:b,error:z,fullWidth:C=!1,id:k,inputComponent:_="input",inputProps:r={},inputRef:s,margin:T,maxRows:p,minRows:A,multiline:j=!1,name:U,onBlur:P,onChange:E,onClick:m,onFocus:H,onKeyDown:$,onKeyUp:Re,placeholder:Se,readOnly:K,renderSuffix:ne,rows:q,size:Ke,slotProps:te={},slots:re={},startAdornment:B,type:se="text",value:Oe,...Ee}=u,M=r.value!=null?r.value:Oe,{current:G}=l.useRef(M!=null),I=l.useRef(),Ie=l.useCallback(i=>{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(`
3
+ `))},[]),ze=be.useForkRef(I,s,r.ref,Ie),[Y,Z]=l.useState(!1),a=de.useFormControl();process.env.NODE_ENV!=="production"&&l.useEffect(()=>{if(a)return a.registerEffect()},[a]);const h=He.formControlState({props:u,muiFormControl:a,states:["color","disabled","error","hiddenLabel","size","required","filled"]});h.focused=a?a.focused:Y,l.useEffect(()=>{!a&&f&&Y&&(Z(!1),P&&P())},[a,f,Y,P]);const J=a&&a.onFilled,Q=a&&a.onEmpty,F=l.useCallback(i=>{Me.isFilled(i)?J&&J():Q&&Q()},[J,Q]);D.useEnhancedEffect(()=>{G&&F({value:M})},[M,F,G]);const ke=i=>{H&&H(i),r.onFocus&&r.onFocus(i),a&&a.onFocus?a.onFocus(i):Z(!0)},Be=i=>{P&&P(i),r.onBlur&&r.onBlur(i),a&&a.onBlur?a.onBlur(i):Z(!1)},Fe=(i,...pe)=>{if(!G){const ue=i.target||I.current;if(ue==null)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.":e.formatMuiErrorMessage(1));F({value:ue.value})}r.onChange&&r.onChange(i,...pe),E&&E(i,...pe)};l.useEffect(()=>{F(I.current)},[]);const Ne=i=>{I.current&&i.currentTarget===i.target&&I.current.focus(),m&&m(i)};let X=_,g=r;j&&X==="input"&&(q?(process.env.NODE_ENV!=="production"&&(A||p)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),g={type:void 0,minRows:q,maxRows:q,...g}):g={type:void 0,maxRows:p,minRows:A,...g},X=ge);const Ae=i=>{F(i.animationName==="mui-auto-fill-cancel"?I.current:{value:"x"})};l.useEffect(()=>{a&&a.setAdornedStart(!!B)},[a,B]);const ee={...u,color:h.color||"primary",disabled:h.disabled,endAdornment:b,error:h.error,focused:h.focused,formControl:a,fullWidth:C,hiddenLabel:h.hiddenLabel,multiline:j,size:h.size,startAdornment:B,type:se},ie=$e(ee),ae=re.root||w.Root||we,oe=te.root||d.root||{},le=re.input||w.Input||xe;return g={...g,...te.input??d.input},v.jsxs(l.Fragment,{children:[!x&&typeof he=="function"&&(me||(me=v.jsx(he,{}))),v.jsxs(ae,{...oe,ref:t,onClick:Ne,...Ee,...!ce.isHostComponent(ae)&&{ownerState:{...ee,...oe.ownerState}},className:e.clsx(ie.root,oe.className,S,K&&"MuiInputBase-readOnly"),children:[B,v.jsx(de.FormControlContext.Provider,{value:null,children:v.jsx(le,{"aria-invalid":h.error,"aria-describedby":y,autoComplete:c,autoFocus:R,defaultValue:O,disabled:h.disabled,id:k,onAnimationStart:Ae,name:U,placeholder:Se,readOnly:K,required:h.required,rows:q,value:M,onKeyDown:$,onKeyUp:Re,type:se,...g,...!ce.isHostComponent(le)&&{as:X,ownerState:{...ee,...g.ownerState}},ref:ze,className:e.clsx(ie.input,g.className,K&&"MuiInputBase-readOnly"),onBlur:Be,onChange:Fe,onFocus:ke})}),b,ne?ne({...h,startAdornment:B}):null]})]})});process.env.NODE_ENV!=="production"&&(Ce.propTypes={"aria-describedby":e.PropTypes.string,autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({Input:e.PropTypes.elementType,Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,disableInjectingGlobalStyles:e.PropTypes.bool,endAdornment:e.PropTypes.node,error:e.PropTypes.bool,fullWidth:e.PropTypes.bool,id:e.PropTypes.string,inputComponent:Le.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:De.refType,margin:e.PropTypes.oneOf(["dense","none"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,onInvalid:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,placeholder:e.PropTypes.string,readOnly:e.PropTypes.bool,renderSuffix:e.PropTypes.func,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),startAdornment:e.PropTypes.node,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.string,value:e.PropTypes.any});exports.InputBase=Ce;exports.InputBaseInput=xe;exports.InputBaseRoot=we;exports.inputOverridesResolver=ve;exports.rootOverridesResolver=Pe;
@@ -1,17 +1,17 @@
1
1
  import * as v from "react";
2
- import { F as S, G as V, U as l, n as c, H as F, K as w, P as o } from "./identifier-BJqC6EXa.js";
3
- import { u as P } from "./useTheme-Dt-VOIyT.js";
2
+ import { F as V, G as S, V as l, n as c, H as F, K as w, P as o } from "./identifier-UGP6vjyr.js";
3
+ import { u as P } from "./useTheme-9UmqLsq5.js";
4
4
  import { jsx as j } from "react/jsx-runtime";
5
- import { u as A, s as R, c as N } from "./DefaultPropsProvider-Bg-6nX-u.js";
6
- import { m as M } from "./memoTheme-D_Qap2ZW.js";
7
- import { c as U } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
8
- import { T as B } from "./Typography-BNt9mZKm.js";
5
+ import { u as A, s as R, c as N } from "./DefaultPropsProvider-CojEWOKR.js";
6
+ import { m as M } from "./memoTheme-D0vyNKLd.js";
7
+ import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
8
+ import { T as U } from "./Typography-BceX4HUn.js";
9
9
  import { i as h } from "./isFocusVisible-CPZqtjv2.js";
10
- import { e as z } from "./elementTypeAcceptingRef-COpcDx5q.js";
10
+ import { e as z } from "./elementTypeAcceptingRef-DAXsN6bV.js";
11
11
  function H(e) {
12
- return V("MuiLink", e);
12
+ return S("MuiLink", e);
13
13
  }
14
- const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), W = ({
14
+ const E = V("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlways", "button", "focusVisible"]), W = ({
15
15
  theme: e,
16
16
  ownerState: r
17
17
  }) => {
@@ -37,7 +37,7 @@ const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlw
37
37
  root: ["root", `underline${w(s)}`, n === "button" && "button", t && "focusVisible"]
38
38
  };
39
39
  return N(u, H, r);
40
- }, K = R(B, {
40
+ }, K = R(U, {
41
41
  name: "MuiLink",
42
42
  slot: "Root",
43
43
  overridesResolver: (e, r) => {
@@ -84,7 +84,7 @@ const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlw
84
84
  style: {
85
85
  textDecorationColor: "var(--Link-underlineColor)"
86
86
  }
87
- }, ...Object.entries(e.palette).filter(U()).map(([r]) => ({
87
+ }, ...Object.entries(e.palette).filter(B()).map(([r]) => ({
88
88
  props: {
89
89
  underline: "always",
90
90
  color: r