@cgi-learning-hub/ui 1.9.0-dev.1758209591 → 1.9.0-dev.1758558548

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 (510) hide show
  1. package/dist/index.cjs.js +63058 -1
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.css +138 -0
  4. package/dist/index.d.ts +751 -1
  5. package/dist/index.es.js +63035 -433
  6. package/dist/index.es.js.map +1 -0
  7. package/package.json +14 -15
  8. package/dist/Alert-BH_3hKCB.cjs +0 -1
  9. package/dist/Alert-BeVYzSS-.js +0 -94
  10. package/dist/Alert-BoYBWOXe.cjs +0 -1
  11. package/dist/Alert-CEu3llDi.js +0 -369
  12. package/dist/Autocomplete-BgtRO16l.cjs +0 -6
  13. package/dist/Autocomplete-CYZGxJpy.js +0 -1881
  14. package/dist/Backdrop-BvL371G3.js +0 -360
  15. package/dist/Backdrop-qOBrabpf.cjs +0 -1
  16. package/dist/Badge-2Kgbx-Cs.js +0 -466
  17. package/dist/Badge-DXl0Da36.cjs +0 -1
  18. package/dist/Box-BaZ7KlAc.js +0 -59
  19. package/dist/Box-CYQlQqRB.cjs +0 -1
  20. package/dist/Button-BP-QmmUu.cjs +0 -1
  21. package/dist/Button-C1mKNW-c.js +0 -698
  22. package/dist/ButtonBase-C2jRC_V7.js +0 -883
  23. package/dist/ButtonBase-DSJojbNE.cjs +0 -74
  24. package/dist/CardContent-DVcUynuH.cjs +0 -1
  25. package/dist/CardContent-kIapWv4T.js +0 -225
  26. package/dist/Checkbox-DhhuvKO5.cjs +0 -1
  27. package/dist/Checkbox-RxHWtafR.js +0 -271
  28. package/dist/Chip-DgGmi9yn.js +0 -574
  29. package/dist/Chip-n1kY-Dsh.cjs +0 -1
  30. package/dist/CircularProgress-BOm4zz7e.cjs +0 -28
  31. package/dist/CircularProgress-CLq0Rl-1.js +0 -253
  32. package/dist/Close-DR9m6hv3.cjs +0 -1
  33. package/dist/Close-vu-MZYNA.js +0 -9
  34. package/dist/CloseRounded-Cpp6nWQi.cjs +0 -1
  35. package/dist/CloseRounded-DF05lCUu.js +0 -8
  36. package/dist/CustomTreeItem-AecanDDg.js +0 -2046
  37. package/dist/CustomTreeItem-BBMp0k4i.cjs +0 -41
  38. package/dist/DatePicker-UgrKaJQy.js +0 -10758
  39. package/dist/DatePicker-ikRScuPG.cjs +0 -16
  40. package/dist/DefaultPropsProvider-BrmlvPWg.js +0 -312
  41. package/dist/DefaultPropsProvider-C1g4BXET.cjs +0 -1
  42. package/dist/Delete-C36W48MB.cjs +0 -1
  43. package/dist/Delete-DXUljXzP.js +0 -8
  44. package/dist/Dialog-C2HYr67H.cjs +0 -1
  45. package/dist/Dialog-D__8rwpw.js +0 -469
  46. package/dist/DialogContent-MPwmUJQp.js +0 -195
  47. package/dist/DialogContent-lup2v_ab.cjs +0 -1
  48. package/dist/DialogTitle-B8jOk7ZE.cjs +0 -1
  49. package/dist/DialogTitle-Dly5D3Ud.js +0 -134
  50. package/dist/Divider-BN12gMv9.js +0 -297
  51. package/dist/Divider-wisA5Qp_.cjs +0 -1
  52. package/dist/Folder-BSZMyA2L.js +0 -8
  53. package/dist/Folder-aAI_w_uF.cjs +0 -1
  54. package/dist/FormLabel-ByYWZh7M.cjs +0 -2
  55. package/dist/FormLabel-DtxJI2CU.js +0 -408
  56. package/dist/Grid-C0LY-MbT.js +0 -419
  57. package/dist/Grid-CPXE25PR.cjs +0 -2
  58. package/dist/Grow-6zwoqUfO.cjs +0 -1
  59. package/dist/Grow-CeGwnQpw.js +0 -197
  60. package/dist/IconButton-BTN16gZi.cjs +0 -2
  61. package/dist/IconButton-DBjiNqOa.js +0 -299
  62. package/dist/InputAdornment-C1r1YutO.cjs +0 -1
  63. package/dist/InputAdornment-DuR35FtU.js +0 -173
  64. package/dist/InputBase-BSlOG3kE.cjs +0 -4
  65. package/dist/InputBase-Bejmx-67.js +0 -798
  66. package/dist/Link-T11NCxGd.cjs +0 -1
  67. package/dist/Link-hWCqsQiI.js +0 -281
  68. package/dist/List-CmJ1jCss.js +0 -131
  69. package/dist/List-eQ4D0MvJ.cjs +0 -1
  70. package/dist/ListItem-CgWgbZ_g.cjs +0 -1
  71. package/dist/ListItem-onoPfwb4.js +0 -423
  72. package/dist/ListItemText-B-dySXgz.cjs +0 -1
  73. package/dist/ListItemText-BjhXxIIV.js +0 -441
  74. package/dist/Menu-D3pHSNKn.cjs +0 -7
  75. package/dist/Menu-DnbZe8y-.js +0 -918
  76. package/dist/MenuItem-Cusmy5t2.js +0 -268
  77. package/dist/MenuItem-D-4xzo-S.cjs +0 -1
  78. package/dist/Modal-DB9K8sJI.cjs +0 -2
  79. package/dist/Modal-DtjScKxh.js +0 -744
  80. package/dist/MoreVert-BwfUF9pO.cjs +0 -1
  81. package/dist/MoreVert-woCQ0dNf.js +0 -8
  82. package/dist/Paper-CZXfHfN_.js +0 -158
  83. package/dist/Paper-DcVuAxq3.cjs +0 -2
  84. package/dist/Popper-BwuGO_Si.js +0 -1407
  85. package/dist/Popper-D5Cs38W_.cjs +0 -4
  86. package/dist/Portal-Cmv45gpL.cjs +0 -1
  87. package/dist/Portal-PkRJuFYN.js +0 -85
  88. package/dist/Radio-DiyDpiVL.js +0 -617
  89. package/dist/Radio-DzKwkI68.cjs +0 -1
  90. package/dist/RadioGroup-BlkHQVRF.cjs +0 -1
  91. package/dist/RadioGroup-CjUaFqjJ.js +0 -191
  92. package/dist/Select-DyEZ55iV.cjs +0 -3
  93. package/dist/Select-L9Xb238J.js +0 -2648
  94. package/dist/Stack-ChvZzNqc.cjs +0 -1
  95. package/dist/Stack-pMJEpL7k.js +0 -173
  96. package/dist/Stepper-BsfN7O-W.cjs +0 -1
  97. package/dist/Stepper-DyH4sgY5.js +0 -966
  98. package/dist/Switch-BgZUmsKc.js +0 -392
  99. package/dist/Switch-Dr2jgPGV.cjs +0 -1
  100. package/dist/SwitchBase-BP_I-APE.cjs +0 -1
  101. package/dist/SwitchBase-BWz31Ed6.js +0 -319
  102. package/dist/Tab-Bksf_S4K.js +0 -1454
  103. package/dist/Tab-D2mI5G0L.cjs +0 -4
  104. package/dist/TextField-CfHWjd-c.cjs +0 -1
  105. package/dist/TextField-Dt84Mrje.js +0 -560
  106. package/dist/Tooltip-C5AffX17.js +0 -722
  107. package/dist/Tooltip-CUm8vKGq.cjs +0 -4
  108. package/dist/TransitionGroupContext-DbLioz_6.js +0 -24
  109. package/dist/TransitionGroupContext-Zt4NoR0u.cjs +0 -1
  110. package/dist/Typography-Cr-aIusw.js +0 -261
  111. package/dist/Typography-DHjq4GzQ.cjs +0 -1
  112. package/dist/Zoom-CUWaLRDY.js +0 -9252
  113. package/dist/Zoom-D30Zatsh.cjs +0 -138
  114. package/dist/assets/Loader.css +0 -1
  115. package/dist/assets/LoaderBackdrop.css +0 -1
  116. package/dist/capitalize-3OjkeP9i.cjs +0 -1
  117. package/dist/capitalize-BHEX83JQ.js +0 -9
  118. package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
  119. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  120. package/dist/client-error-CHkavqXs.cjs +0 -1
  121. package/dist/client-error-D0Ng5oOn.js +0 -393
  122. package/dist/components/ActionBar/ActionBar.cjs.js +0 -1
  123. package/dist/components/ActionBar/ActionBar.d.ts +0 -3
  124. package/dist/components/ActionBar/ActionBar.es.js +0 -63
  125. package/dist/components/ActionBar/index.cjs.js +0 -1
  126. package/dist/components/ActionBar/index.d.ts +0 -2
  127. package/dist/components/ActionBar/index.es.js +0 -4
  128. package/dist/components/ActionBar/style.cjs.js +0 -1
  129. package/dist/components/ActionBar/style.es.js +0 -61
  130. package/dist/components/ActionBar/types.cjs.js +0 -1
  131. package/dist/components/ActionBar/types.d.ts +0 -17
  132. package/dist/components/ActionBar/types.es.js +0 -1
  133. package/dist/components/Alert/Alert.cjs.js +0 -1
  134. package/dist/components/Alert/Alert.d.ts +0 -6
  135. package/dist/components/Alert/Alert.es.js +0 -8
  136. package/dist/components/Alert/index.cjs.js +0 -1
  137. package/dist/components/Alert/index.d.ts +0 -2
  138. package/dist/components/Alert/index.es.js +0 -4
  139. package/dist/components/Button/Button.cjs.js +0 -1
  140. package/dist/components/Button/Button.d.ts +0 -4
  141. package/dist/components/Button/Button.es.js +0 -44
  142. package/dist/components/Button/index.cjs.js +0 -1
  143. package/dist/components/Button/index.d.ts +0 -2
  144. package/dist/components/Button/index.es.js +0 -4
  145. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -1
  146. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -3
  147. package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -38
  148. package/dist/components/ButtonGroup/index.cjs.js +0 -1
  149. package/dist/components/ButtonGroup/index.d.ts +0 -2
  150. package/dist/components/ButtonGroup/index.es.js +0 -4
  151. package/dist/components/ButtonGroup/style.cjs.js +0 -1
  152. package/dist/components/ButtonGroup/style.es.js +0 -29
  153. package/dist/components/ButtonGroup/types.cjs.js +0 -1
  154. package/dist/components/ButtonGroup/types.d.ts +0 -22
  155. package/dist/components/ButtonGroup/types.es.js +0 -1
  156. package/dist/components/ColorPicker/ColorPicker.cjs.js +0 -27
  157. package/dist/components/ColorPicker/ColorPicker.d.ts +0 -4
  158. package/dist/components/ColorPicker/ColorPicker.es.js +0 -7960
  159. package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +0 -1
  160. package/dist/components/ColorPicker/ColorPickerIcon.d.ts +0 -5
  161. package/dist/components/ColorPicker/ColorPickerIcon.es.js +0 -58
  162. package/dist/components/ColorPicker/index.cjs.js +0 -1
  163. package/dist/components/ColorPicker/index.d.ts +0 -3
  164. package/dist/components/ColorPicker/index.es.js +0 -4
  165. package/dist/components/ColorPicker/styles.cjs.js +0 -1
  166. package/dist/components/ColorPicker/styles.es.js +0 -28
  167. package/dist/components/ColorPicker/types.cjs.js +0 -1
  168. package/dist/components/ColorPicker/types.d.ts +0 -19
  169. package/dist/components/ColorPicker/types.es.js +0 -1
  170. package/dist/components/DatePicker/DatePicker.cjs.js +0 -1
  171. package/dist/components/DatePicker/DatePicker.d.ts +0 -6
  172. package/dist/components/DatePicker/DatePicker.es.js +0 -5
  173. package/dist/components/DatePicker/index.cjs.js +0 -1
  174. package/dist/components/DatePicker/index.d.ts +0 -2
  175. package/dist/components/DatePicker/index.es.js +0 -4
  176. package/dist/components/Dialog/Dialog.cjs.js +0 -1
  177. package/dist/components/Dialog/Dialog.d.ts +0 -6
  178. package/dist/components/Dialog/Dialog.es.js +0 -31
  179. package/dist/components/Dialog/index.cjs.js +0 -1
  180. package/dist/components/Dialog/index.d.ts +0 -2
  181. package/dist/components/Dialog/index.es.js +0 -4
  182. package/dist/components/Dropzone/Dropzone.cjs.js +0 -1
  183. package/dist/components/Dropzone/Dropzone.d.ts +0 -12
  184. package/dist/components/Dropzone/Dropzone.es.js +0 -55
  185. package/dist/components/Dropzone/index.cjs.js +0 -1
  186. package/dist/components/Dropzone/index.d.ts +0 -2
  187. package/dist/components/Dropzone/index.es.js +0 -4
  188. package/dist/components/Dropzone/types.cjs.js +0 -1
  189. package/dist/components/Dropzone/types.d.ts +0 -8
  190. package/dist/components/Dropzone/types.es.js +0 -1
  191. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +0 -1
  192. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +0 -9
  193. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +0 -45
  194. package/dist/components/EllipsisWithTooltip/index.cjs.js +0 -1
  195. package/dist/components/EllipsisWithTooltip/index.d.ts +0 -2
  196. package/dist/components/EllipsisWithTooltip/index.es.js +0 -4
  197. package/dist/components/EmptyState/EmptyState.cjs.js +0 -1
  198. package/dist/components/EmptyState/EmptyState.d.ts +0 -22
  199. package/dist/components/EmptyState/EmptyState.es.js +0 -34
  200. package/dist/components/EmptyState/index.cjs.js +0 -1
  201. package/dist/components/EmptyState/index.d.ts +0 -2
  202. package/dist/components/EmptyState/index.es.js +0 -4
  203. package/dist/components/FileList/FileIcon.cjs.js +0 -1
  204. package/dist/components/FileList/FileIcon.d.ts +0 -3
  205. package/dist/components/FileList/FileIcon.es.js +0 -56
  206. package/dist/components/FileList/FileInfosSeparator.cjs.js +0 -1
  207. package/dist/components/FileList/FileInfosSeparator.d.ts +0 -1
  208. package/dist/components/FileList/FileInfosSeparator.es.js +0 -14
  209. package/dist/components/FileList/FileList.cjs.js +0 -1
  210. package/dist/components/FileList/FileList.d.ts +0 -9
  211. package/dist/components/FileList/FileList.es.js +0 -24
  212. package/dist/components/FileList/FileListItem.cjs.js +0 -1
  213. package/dist/components/FileList/FileListItem.d.ts +0 -16
  214. package/dist/components/FileList/FileListItem.es.js +0 -122
  215. package/dist/components/FileList/index.cjs.js +0 -1
  216. package/dist/components/FileList/index.d.ts +0 -4
  217. package/dist/components/FileList/index.es.js +0 -6
  218. package/dist/components/FileList/utils.cjs.js +0 -1
  219. package/dist/components/FileList/utils.d.ts +0 -2
  220. package/dist/components/FileList/utils.es.js +0 -13
  221. package/dist/components/FolderCard/FolderCard.cjs.js +0 -1
  222. package/dist/components/FolderCard/FolderCard.d.ts +0 -12
  223. package/dist/components/FolderCard/FolderCard.es.js +0 -88
  224. package/dist/components/FolderCard/index.cjs.js +0 -1
  225. package/dist/components/FolderCard/index.d.ts +0 -2
  226. package/dist/components/FolderCard/index.es.js +0 -4
  227. package/dist/components/FolderCard/styles.cjs.js +0 -1
  228. package/dist/components/FolderCard/styles.d.ts +0 -24
  229. package/dist/components/FolderCard/styles.es.js +0 -27
  230. package/dist/components/FolderCard/types.cjs.js +0 -1
  231. package/dist/components/FolderCard/types.d.ts +0 -3
  232. package/dist/components/FolderCard/types.es.js +0 -14
  233. package/dist/components/Heading/Heading.cjs.js +0 -1
  234. package/dist/components/Heading/Heading.d.ts +0 -14
  235. package/dist/components/Heading/Heading.es.js +0 -39
  236. package/dist/components/Heading/index.cjs.js +0 -1
  237. package/dist/components/Heading/index.d.ts +0 -2
  238. package/dist/components/Heading/index.es.js +0 -4
  239. package/dist/components/ImagePicker/ImagePicker.cjs.js +0 -1
  240. package/dist/components/ImagePicker/ImagePicker.d.ts +0 -13
  241. package/dist/components/ImagePicker/ImagePicker.es.js +0 -203
  242. package/dist/components/ImagePicker/index.cjs.js +0 -1
  243. package/dist/components/ImagePicker/index.d.ts +0 -2
  244. package/dist/components/ImagePicker/index.es.js +0 -4
  245. package/dist/components/Loader/Loader.cjs.js +0 -1
  246. package/dist/components/Loader/Loader.d.ts +0 -3
  247. package/dist/components/Loader/Loader.es.js +0 -11
  248. package/dist/components/Loader/index.cjs.js +0 -1
  249. package/dist/components/Loader/index.d.ts +0 -2
  250. package/dist/components/Loader/index.es.js +0 -4
  251. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +0 -1
  252. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -3
  253. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +0 -12
  254. package/dist/components/LoaderBackdrop/index.cjs.js +0 -1
  255. package/dist/components/LoaderBackdrop/index.d.ts +0 -2
  256. package/dist/components/LoaderBackdrop/index.es.js +0 -4
  257. package/dist/components/PasswordInput/PasswordInput.cjs.js +0 -1
  258. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -5
  259. package/dist/components/PasswordInput/PasswordInput.es.js +0 -39
  260. package/dist/components/PasswordInput/index.cjs.js +0 -1
  261. package/dist/components/PasswordInput/index.d.ts +0 -2
  262. package/dist/components/PasswordInput/index.es.js +0 -4
  263. package/dist/components/QueryError/QueryError.cjs.js +0 -1
  264. package/dist/components/QueryError/QueryError.d.ts +0 -8
  265. package/dist/components/QueryError/QueryError.es.js +0 -46
  266. package/dist/components/QueryError/helpers.cjs.js +0 -1
  267. package/dist/components/QueryError/helpers.d.ts +0 -11
  268. package/dist/components/QueryError/helpers.es.js +0 -10
  269. package/dist/components/QueryError/index.cjs.js +0 -1
  270. package/dist/components/QueryError/index.d.ts +0 -2
  271. package/dist/components/QueryError/index.es.js +0 -4
  272. package/dist/components/ResourceCard/ResourceCard.cjs.js +0 -1
  273. package/dist/components/ResourceCard/ResourceCard.d.ts +0 -25
  274. package/dist/components/ResourceCard/ResourceCard.es.js +0 -128
  275. package/dist/components/ResourceCard/index.cjs.js +0 -1
  276. package/dist/components/ResourceCard/index.d.ts +0 -2
  277. package/dist/components/ResourceCard/index.es.js +0 -4
  278. package/dist/components/ResourceCard/style.cjs.js +0 -1
  279. package/dist/components/ResourceCard/style.es.js +0 -130
  280. package/dist/components/SearchInput/SearchInput.cjs.js +0 -1
  281. package/dist/components/SearchInput/SearchInput.d.ts +0 -4
  282. package/dist/components/SearchInput/SearchInput.es.js +0 -38
  283. package/dist/components/SearchInput/index.cjs.js +0 -1
  284. package/dist/components/SearchInput/index.d.ts +0 -2
  285. package/dist/components/SearchInput/index.es.js +0 -4
  286. package/dist/components/TreeView/TreeView.cjs.js +0 -5
  287. package/dist/components/TreeView/TreeView.d.ts +0 -4
  288. package/dist/components/TreeView/TreeView.es.js +0 -1663
  289. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
  290. package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -6
  291. package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
  292. package/dist/components/TreeView/index.cjs.js +0 -1
  293. package/dist/components/TreeView/index.d.ts +0 -2
  294. package/dist/components/TreeView/index.es.js +0 -6
  295. package/dist/components/TreeView/style.cjs.js +0 -1
  296. package/dist/components/TreeView/style.es.js +0 -35
  297. package/dist/components/TreeView/types.cjs.js +0 -1
  298. package/dist/components/TreeView/types.d.ts +0 -45
  299. package/dist/components/TreeView/types.es.js +0 -4
  300. package/dist/components/TreeView/utils.cjs.js +0 -1
  301. package/dist/components/TreeView/utils.d.ts +0 -6
  302. package/dist/components/TreeView/utils.es.js +0 -50
  303. package/dist/components/index.cjs.js +0 -1
  304. package/dist/components/index.d.ts +0 -209
  305. package/dist/components/index.es.js +0 -435
  306. package/dist/components/stories/ActionBar.stories.cjs.js +0 -1
  307. package/dist/components/stories/ActionBar.stories.d.ts +0 -11
  308. package/dist/components/stories/ActionBar.stories.es.js +0 -206
  309. package/dist/components/stories/Alert.stories.cjs.js +0 -1
  310. package/dist/components/stories/Alert.stories.d.ts +0 -9
  311. package/dist/components/stories/Alert.stories.es.js +0 -32
  312. package/dist/components/stories/Autocomplete.stories.cjs.js +0 -3
  313. package/dist/components/stories/Autocomplete.stories.d.ts +0 -6
  314. package/dist/components/stories/Autocomplete.stories.es.js +0 -62
  315. package/dist/components/stories/Badge.stories.cjs.js +0 -1
  316. package/dist/components/stories/Badge.stories.d.ts +0 -17
  317. package/dist/components/stories/Badge.stories.es.js +0 -188
  318. package/dist/components/stories/Button.stories.cjs.js +0 -1
  319. package/dist/components/stories/Button.stories.d.ts +0 -8
  320. package/dist/components/stories/Button.stories.es.js +0 -61
  321. package/dist/components/stories/ButtonGroup.stories.cjs.js +0 -153
  322. package/dist/components/stories/ButtonGroup.stories.d.ts +0 -17
  323. package/dist/components/stories/ButtonGroup.stories.es.js +0 -1296
  324. package/dist/components/stories/Card.stories.cjs.js +0 -1
  325. package/dist/components/stories/Card.stories.d.ts +0 -7
  326. package/dist/components/stories/Card.stories.es.js +0 -42
  327. package/dist/components/stories/Checkbox.stories.cjs.js +0 -1
  328. package/dist/components/stories/Checkbox.stories.d.ts +0 -10
  329. package/dist/components/stories/Checkbox.stories.es.js +0 -57
  330. package/dist/components/stories/Chip.stories.cjs.js +0 -1
  331. package/dist/components/stories/Chip.stories.d.ts +0 -10
  332. package/dist/components/stories/Chip.stories.es.js +0 -77
  333. package/dist/components/stories/ColoPicker.stories.cjs.js +0 -1
  334. package/dist/components/stories/ColoPicker.stories.d.ts +0 -6
  335. package/dist/components/stories/ColoPicker.stories.es.js +0 -23
  336. package/dist/components/stories/DatePicker.stories.cjs.js +0 -1
  337. package/dist/components/stories/DatePicker.stories.d.ts +0 -6
  338. package/dist/components/stories/DatePicker.stories.es.js +0 -13
  339. package/dist/components/stories/Dialog.stories.cjs.js +0 -1
  340. package/dist/components/stories/Dialog.stories.d.ts +0 -7
  341. package/dist/components/stories/Dialog.stories.es.js +0 -65
  342. package/dist/components/stories/Divider.stories.cjs.js +0 -1
  343. package/dist/components/stories/Divider.stories.d.ts +0 -6
  344. package/dist/components/stories/Divider.stories.es.js +0 -41
  345. package/dist/components/stories/Dropzone.stories.cjs.js +0 -1
  346. package/dist/components/stories/Dropzone.stories.d.ts +0 -6
  347. package/dist/components/stories/Dropzone.stories.es.js +0 -14
  348. package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +0 -1
  349. package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +0 -6
  350. package/dist/components/stories/EllipsisWithTooltip.stories.es.js +0 -36
  351. package/dist/components/stories/EmptyState.stories.cjs.js +0 -1
  352. package/dist/components/stories/EmptyState.stories.d.ts +0 -6
  353. package/dist/components/stories/EmptyState.stories.es.js +0 -30
  354. package/dist/components/stories/FileList.stories.cjs.js +0 -8
  355. package/dist/components/stories/FileList.stories.d.ts +0 -6
  356. package/dist/components/stories/FileList.stories.es.js +0 -150
  357. package/dist/components/stories/FolderCard.stories.cjs.js +0 -1
  358. package/dist/components/stories/FolderCard.stories.d.ts +0 -7
  359. package/dist/components/stories/FolderCard.stories.es.js +0 -71
  360. package/dist/components/stories/FormControlLabel.stories.cjs.js +0 -1
  361. package/dist/components/stories/FormControlLabel.stories.d.ts +0 -9
  362. package/dist/components/stories/FormControlLabel.stories.es.js +0 -55
  363. package/dist/components/stories/Heading.stories.cjs.js +0 -1
  364. package/dist/components/stories/Heading.stories.d.ts +0 -6
  365. package/dist/components/stories/Heading.stories.es.js +0 -20
  366. package/dist/components/stories/IconButton.stories.cjs.js +0 -1
  367. package/dist/components/stories/IconButton.stories.d.ts +0 -6
  368. package/dist/components/stories/IconButton.stories.es.js +0 -55
  369. package/dist/components/stories/ImagePicker.stories.cjs.js +0 -1
  370. package/dist/components/stories/ImagePicker.stories.d.ts +0 -6
  371. package/dist/components/stories/ImagePicker.stories.es.js +0 -57
  372. package/dist/components/stories/Link.stories.cjs.js +0 -1
  373. package/dist/components/stories/Link.stories.d.ts +0 -7
  374. package/dist/components/stories/Link.stories.es.js +0 -43
  375. package/dist/components/stories/Loader.stories.cjs.js +0 -1
  376. package/dist/components/stories/Loader.stories.d.ts +0 -6
  377. package/dist/components/stories/Loader.stories.es.js +0 -11
  378. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +0 -1
  379. package/dist/components/stories/LoaderBackdrop.stories.d.ts +0 -6
  380. package/dist/components/stories/LoaderBackdrop.stories.es.js +0 -11
  381. package/dist/components/stories/Menu.stories.cjs.js +0 -1
  382. package/dist/components/stories/Menu.stories.d.ts +0 -7
  383. package/dist/components/stories/Menu.stories.es.js +0 -51
  384. package/dist/components/stories/Paper.stories.cjs.js +0 -1
  385. package/dist/components/stories/Paper.stories.d.ts +0 -7
  386. package/dist/components/stories/Paper.stories.es.js +0 -28
  387. package/dist/components/stories/PasswordInput.stories.cjs.js +0 -1
  388. package/dist/components/stories/PasswordInput.stories.d.ts +0 -6
  389. package/dist/components/stories/PasswordInput.stories.es.js +0 -13
  390. package/dist/components/stories/RadioGroup.stories.cjs.js +0 -1
  391. package/dist/components/stories/RadioGroup.stories.d.ts +0 -8
  392. package/dist/components/stories/RadioGroup.stories.es.js +0 -37
  393. package/dist/components/stories/ResourceCard.stories.cjs.js +0 -1
  394. package/dist/components/stories/ResourceCard.stories.d.ts +0 -9
  395. package/dist/components/stories/ResourceCard.stories.es.js +0 -141
  396. package/dist/components/stories/SearchInput.stories.cjs.js +0 -1
  397. package/dist/components/stories/SearchInput.stories.d.ts +0 -6
  398. package/dist/components/stories/SearchInput.stories.es.js +0 -13
  399. package/dist/components/stories/Select.stories.cjs.js +0 -1
  400. package/dist/components/stories/Select.stories.d.ts +0 -10
  401. package/dist/components/stories/Select.stories.es.js +0 -52
  402. package/dist/components/stories/Stepper.stories.cjs.js +0 -1
  403. package/dist/components/stories/Stepper.stories.d.ts +0 -7
  404. package/dist/components/stories/Stepper.stories.es.js +0 -161
  405. package/dist/components/stories/TabList.stories.cjs.js +0 -1
  406. package/dist/components/stories/TabList.stories.d.ts +0 -7
  407. package/dist/components/stories/TabList.stories.es.js +0 -73
  408. package/dist/components/stories/TextField.stories.cjs.js +0 -1
  409. package/dist/components/stories/TextField.stories.d.ts +0 -10
  410. package/dist/components/stories/TextField.stories.es.js +0 -69
  411. package/dist/components/stories/Tooltip.stories.cjs.js +0 -1
  412. package/dist/components/stories/Tooltip.stories.d.ts +0 -7
  413. package/dist/components/stories/Tooltip.stories.es.js +0 -46
  414. package/dist/components/stories/TreeView.stories.cjs.js +0 -69
  415. package/dist/components/stories/TreeView.stories.d.ts +0 -15
  416. package/dist/components/stories/TreeView.stories.es.js +0 -1036
  417. package/dist/components/stories/Typography.stories.cjs.js +0 -1
  418. package/dist/components/stories/Typography.stories.d.ts +0 -6
  419. package/dist/components/stories/Typography.stories.es.js +0 -65
  420. package/dist/composeClasses-BskurlZX.js +0 -51
  421. package/dist/composeClasses-vN5Almps.cjs +0 -1
  422. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  423. package/dist/createChainedFunction-CJmlQuW8.cjs +0 -1
  424. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  425. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +0 -1
  426. package/dist/createSvgIcon-CcWpa9Le.cjs +0 -1
  427. package/dist/createSvgIcon-DFIM5PqN.js +0 -254
  428. package/dist/debounce-46wSf_lW.js +0 -15
  429. package/dist/debounce-DpCj7ugL.cjs +0 -1
  430. package/dist/dividerClasses-BEzQ_reA.js +0 -9
  431. package/dist/dividerClasses-BpVbhp8e.cjs +0 -1
  432. package/dist/elementAcceptingRef-CZLfau9O.js +0 -31
  433. package/dist/elementAcceptingRef-CuMilXz3.cjs +0 -1
  434. package/dist/elementTypeAcceptingRef-vRb2iI4O.js +0 -23
  435. package/dist/elementTypeAcceptingRef-vjR5jGLx.cjs +0 -1
  436. package/dist/error-CRNeivL7.js +0 -5
  437. package/dist/error-Dk3o6ber.cjs +0 -1
  438. package/dist/extendSxProp-DGsHTtAe.js +0 -37
  439. package/dist/extendSxProp-Dwd9vpYv.cjs +0 -1
  440. package/dist/formControlState-CuX6WjAX.cjs +0 -1
  441. package/dist/formControlState-vgaj2ksH.js +0 -10
  442. package/dist/generateUtilityClasses-B_xKAflz.js +0 -2703
  443. package/dist/generateUtilityClasses-CENS22bI.cjs +0 -55
  444. package/dist/hooks/lazySvgImport.cjs.js +0 -1
  445. package/dist/hooks/lazySvgImport.d.ts +0 -6
  446. package/dist/hooks/lazySvgImport.es.js +0 -34
  447. package/dist/index-B9vkf41S.js +0 -672
  448. package/dist/index-BPpGXp0s.cjs +0 -1
  449. package/dist/index-BS46Ff4t.cjs +0 -5
  450. package/dist/index-Ba4TEBpP.js +0 -22
  451. package/dist/index-CJMnfcQs.js +0 -2152
  452. package/dist/index-CwHv-blH.js +0 -97
  453. package/dist/index-D_kvDIOz.cjs +0 -1
  454. package/dist/index-kjfz41UI.cjs +0 -20
  455. package/dist/integerPropType-BihGt2aU.js +0 -31
  456. package/dist/integerPropType-CR7ytEJG.cjs +0 -1
  457. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  458. package/dist/isFocusVisible-DlSijby6.cjs +0 -2
  459. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  460. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  461. package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
  462. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  463. package/dist/listItemTextClasses-CEbo8A-K.js +0 -9
  464. package/dist/listItemTextClasses-wcJANWC3.cjs +0 -1
  465. package/dist/memoTheme-Bi1UNdyO.cjs +0 -1
  466. package/dist/memoTheme-C-PaH-Cy.js +0 -15
  467. package/dist/mergeSlotProps-CL6s5QgQ.cjs +0 -1
  468. package/dist/mergeSlotProps-DVtjofCS.js +0 -62
  469. package/dist/ownerDocument-4MViGo3k.cjs +0 -1
  470. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  471. package/dist/ownerWindow-DDHucZi0.cjs +0 -1
  472. package/dist/ownerWindow-niciwP7I.js +0 -7
  473. package/dist/refType-8hihVLUh.js +0 -5
  474. package/dist/refType-DJyA--UV.cjs +0 -1
  475. package/dist/server-error-CqyYyPLN.cjs +0 -1
  476. package/dist/server-error-CvgIy7ap.js +0 -398
  477. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  478. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  479. package/dist/useControlled-QrrYcKxm.cjs +0 -3
  480. package/dist/useControlled-nm4pBabJ.js +0 -31
  481. package/dist/useEventCallback-BxpcFap0.cjs +0 -1
  482. package/dist/useEventCallback-Y2KwRxBw.js +0 -15
  483. package/dist/useForkRef-CFhhTu-Q.cjs +0 -1
  484. package/dist/useForkRef-u29GSuCu.js +0 -27
  485. package/dist/useFormControl-CatNKXAi.js +0 -10
  486. package/dist/useFormControl-haP0iPhl.cjs +0 -1
  487. package/dist/useId-CK6Kn3Tn.js +0 -21
  488. package/dist/useId-DNXtOFeX.cjs +0 -1
  489. package/dist/usePreviousProps-ByGlbpJ6.js +0 -10
  490. package/dist/usePreviousProps-jC3PWcIp.cjs +0 -1
  491. package/dist/useSlot-BSkdRaZr.js +0 -125
  492. package/dist/useSlot-C-aMxEm0.cjs +0 -1
  493. package/dist/useSlotProps-BVVfeURp.cjs +0 -1
  494. package/dist/useSlotProps-CWTjRiRv.js +0 -25
  495. package/dist/useTheme-0AkY41zn.js +0 -11
  496. package/dist/useTheme-BT6SDKkk.cjs +0 -1
  497. package/dist/useTheme-BrGF2Vm0.cjs +0 -1
  498. package/dist/useTheme-DSA6Ir8k.js +0 -18
  499. package/dist/useThemeProps-BWsN0TEk.cjs +0 -1
  500. package/dist/useThemeProps-CAonvyKa.js +0 -27
  501. package/dist/useThemeProps-JozrkyA_.cjs +0 -1
  502. package/dist/useThemeProps-hSh1qhnc.js +0 -17
  503. package/dist/useTimeout-COCrDKz-.cjs +0 -1
  504. package/dist/useTimeout-CrCYVizI.js +0 -42
  505. package/dist/utils-BWx1W_q1.cjs +0 -1
  506. package/dist/utils-B_pVp6UZ.js +0 -363
  507. package/dist/utils-DWqc1kRF.js +0 -13
  508. package/dist/utils-XujN9ndp.cjs +0 -1
  509. package/dist/warning-C8W811fV.js +0 -11
  510. package/dist/warning-DMUNDgRg.cjs +0 -2
@@ -1,1881 +0,0 @@
1
- import * as x from "react";
2
- import { P as t } from "./index-B9vkf41S.js";
3
- import { F as Dt, G as Nt, H as Je } from "./generateUtilityClasses-B_xKAflz.js";
4
- import { A as zt, f as xe, o as St, i as ft } from "./Select-L9Xb238J.js";
5
- import { i as pe } from "./InputBase-Bejmx-67.js";
6
- import { C as jt } from "./Close-vu-MZYNA.js";
7
- import { m as ue } from "./memoTheme-C-PaH-Cy.js";
8
- import { u as gt } from "./useSlot-BSkdRaZr.js";
9
- import { jsx as A, jsxs as _e } from "react/jsx-runtime";
10
- import { u as Et, s as F, c as Mt } from "./DefaultPropsProvider-BrmlvPWg.js";
11
- import { u as Ut } from "./useId-CK6Kn3Tn.js";
12
- import { u as mt } from "./useControlled-nm4pBabJ.js";
13
- import { u as Bt } from "./usePreviousProps-ByGlbpJ6.js";
14
- import { a as Ke } from "./useEventCallback-Y2KwRxBw.js";
15
- import { s as Wt } from "./Portal-PkRJuFYN.js";
16
- import { P as Vt } from "./Paper-CZXfHfN_.js";
17
- import { P as Ft } from "./Popper-BwuGO_Si.js";
18
- import { C as Gt } from "./Chip-DgGmi9yn.js";
19
- import { c as Ye } from "./capitalize-BHEX83JQ.js";
20
- import { I as Ht } from "./IconButton-DBjiNqOa.js";
21
- import { c as Tt } from "./chainPropTypes-D9lkm76m.js";
22
- import { i as qt } from "./integerPropType-BihGt2aU.js";
23
- function vt({
24
- array1: n,
25
- array2: a,
26
- parser: u = (f) => f
27
- }) {
28
- return n && a && n.length === a.length && n.every((f, $) => u(f) === u(a[$]));
29
- }
30
- function At(n) {
31
- return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
32
- }
33
- function _t(n = {}) {
34
- const {
35
- ignoreAccents: a = !0,
36
- ignoreCase: u = !0,
37
- limit: f,
38
- matchFrom: $ = "any",
39
- stringify: R,
40
- trim: v = !1
41
- } = n;
42
- return (D, {
43
- inputValue: U,
44
- getOptionLabel: O
45
- }) => {
46
- let T = v ? U.trim() : U;
47
- u && (T = T.toLowerCase()), a && (T = At(T));
48
- const B = T ? D.filter((ce) => {
49
- let N = (R || O)(ce);
50
- return u && (N = N.toLowerCase()), a && (N = At(N)), $ === "start" ? N.startsWith(T) : N.includes(T);
51
- }) : D;
52
- return typeof f == "number" ? B.slice(0, f) : B;
53
- };
54
- }
55
- const Kt = _t(), wt = 5, Jt = (n) => {
56
- var a;
57
- return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
58
- }, Xt = [];
59
- function Lt(n, a, u, f) {
60
- if (a || n == null || f)
61
- return "";
62
- const $ = u(n);
63
- return typeof $ == "string" ? $ : "";
64
- }
65
- function Yt(n) {
66
- const {
67
- // eslint-disable-next-line @typescript-eslint/naming-convention
68
- unstable_isActiveElementInListbox: a = Jt,
69
- // eslint-disable-next-line @typescript-eslint/naming-convention
70
- unstable_classNamePrefix: u = "Mui",
71
- autoComplete: f = !1,
72
- autoHighlight: $ = !1,
73
- autoSelect: R = !1,
74
- blurOnSelect: v = !1,
75
- clearOnBlur: D = !n.freeSolo,
76
- clearOnEscape: U = !1,
77
- componentName: O = "useAutocomplete",
78
- defaultValue: T = n.multiple ? Xt : null,
79
- disableClearable: B = !1,
80
- disableCloseOnSelect: ce = !1,
81
- disabled: N,
82
- disabledItemsFocusable: Le = !1,
83
- disableListWrap: ke = !1,
84
- filterOptions: bt = Kt,
85
- filterSelectedOptions: Re = !1,
86
- freeSolo: de = !1,
87
- getOptionDisabled: W,
88
- getOptionKey: De,
89
- getOptionLabel: Qe = (o) => o.label ?? o,
90
- groupBy: re,
91
- handleHomeEndKeys: Ze = !n.freeSolo,
92
- id: ht,
93
- includeInputInList: Ie = !1,
94
- inputValue: Ne,
95
- isOptionEqualToValue: Y = (o, e) => o === e,
96
- multiple: c = !1,
97
- onChange: et,
98
- onClose: tt,
99
- onHighlightChange: Ee,
100
- onInputChange: Q,
101
- onOpen: Me,
102
- open: yt,
103
- openOnFocus: xt = !1,
104
- options: It,
105
- readOnly: G = !1,
106
- renderValue: w,
107
- selectOnFocus: ot = !n.freeSolo,
108
- value: Ve
109
- } = n, E = Ut(ht);
110
- let P = Qe;
111
- P = (o) => {
112
- const e = Qe(o);
113
- if (typeof e != "string") {
114
- if (process.env.NODE_ENV !== "production") {
115
- const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
116
- console.error(`MUI: The \`getOptionLabel\` method of ${O} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
117
- }
118
- return String(e);
119
- }
120
- return e;
121
- };
122
- const Oe = x.useRef(!1), Pe = x.useRef(!0), h = x.useRef(null), V = x.useRef(null), [Ce, Ot] = x.useState(null), [M, Fe] = x.useState(-1), nt = $ ? 0 : -1, S = x.useRef(nt), Pt = x.useRef(Lt(T ?? Ve, c, P)).current, [l, $e] = mt({
123
- controlled: Ve,
124
- default: T,
125
- name: O
126
- }), [g, ae] = mt({
127
- controlled: Ne,
128
- default: Pt,
129
- name: O,
130
- state: "inputValue"
131
- }), [fe, He] = x.useState(!1), ge = x.useCallback((o, e, r) => {
132
- if (!(c ? l.length < e.length : e !== null) && !D)
133
- return;
134
- const i = Lt(e, c, P, w);
135
- g !== i && (ae(i), Q && Q(o, i, r));
136
- }, [P, g, c, Q, ae, D, l, w]), [q, se] = mt({
137
- controlled: yt,
138
- default: !1,
139
- name: O,
140
- state: "open"
141
- }), [Ct, me] = x.useState(!0), ze = !c && l != null && g === P(l), L = q && !G, m = L ? bt(
142
- It.filter((o) => !(Re && (c ? l : [l]).some((e) => e !== null && Y(o, e)))),
143
- // we use the empty string to manipulate `filterOptions` to not filter any options
144
- // i.e. the filter predicate always returns true
145
- {
146
- inputValue: ze && Ct ? "" : g,
147
- getOptionLabel: P
148
- }
149
- ) : [], H = Bt({
150
- filteredOptions: m,
151
- value: l,
152
- inputValue: g
153
- });
154
- x.useEffect(() => {
155
- const o = l !== H.value;
156
- fe && !o || de && !o || ge(null, l, "reset");
157
- }, [l, ge, fe, H.value, de]);
158
- const je = q && m.length > 0 && !G, z = Ke((o) => {
159
- if (o === -1)
160
- h.current.focus();
161
- else {
162
- const e = w ? "data-item-index" : "data-tag-index";
163
- Ce.querySelector(`[${e}="${o}"]`).focus();
164
- }
165
- });
166
- x.useEffect(() => {
167
- c && M > l.length - 1 && (Fe(-1), z(-1));
168
- }, [l, c, M, z]);
169
- function rt(o, e) {
170
- if (!V.current || o < 0 || o >= m.length)
171
- return -1;
172
- let r = o;
173
- for (; ; ) {
174
- const s = V.current.querySelector(`[data-option-index="${r}"]`), i = Le ? !1 : !s || s.disabled || s.getAttribute("aria-disabled") === "true";
175
- if (s && s.hasAttribute("tabindex") && !i)
176
- return r;
177
- if (e === "next" ? r = (r + 1) % m.length : r = (r - 1 + m.length) % m.length, r === o)
178
- return -1;
179
- }
180
- }
181
- const _ = Ke(({
182
- event: o,
183
- index: e,
184
- reason: r
185
- }) => {
186
- if (S.current = e, e === -1 ? h.current.removeAttribute("aria-activedescendant") : h.current.setAttribute("aria-activedescendant", `${E}-option-${e}`), Ee && ["mouse", "keyboard", "touch"].includes(r) && Ee(o, e === -1 ? null : m[e], r), !V.current)
187
- return;
188
- const s = V.current.querySelector(`[role="option"].${u}-focused`);
189
- s && (s.classList.remove(`${u}-focused`), s.classList.remove(`${u}-focusVisible`));
190
- let i = V.current;
191
- if (V.current.getAttribute("role") !== "listbox" && (i = V.current.parentElement.querySelector('[role="listbox"]')), !i)
192
- return;
193
- if (e === -1) {
194
- i.scrollTop = 0;
195
- return;
196
- }
197
- const b = V.current.querySelector(`[data-option-index="${e}"]`);
198
- if (b && (b.classList.add(`${u}-focused`), r === "keyboard" && b.classList.add(`${u}-focusVisible`), i.scrollHeight > i.clientHeight && r !== "mouse" && r !== "touch")) {
199
- const y = b, k = i.clientHeight + i.scrollTop, ye = y.offsetTop + y.offsetHeight;
200
- ye > k ? i.scrollTop = ye - i.clientHeight : y.offsetTop - y.offsetHeight * (re ? 1.3 : 0) < i.scrollTop && (i.scrollTop = y.offsetTop - y.offsetHeight * (re ? 1.3 : 0));
201
- }
202
- }), j = Ke(({
203
- event: o,
204
- diff: e,
205
- direction: r = "next",
206
- reason: s
207
- }) => {
208
- if (!L)
209
- return;
210
- const b = rt((() => {
211
- const y = m.length - 1;
212
- if (e === "reset")
213
- return nt;
214
- if (e === "start")
215
- return 0;
216
- if (e === "end")
217
- return y;
218
- const k = S.current + e;
219
- return k < 0 ? k === -1 && Ie ? -1 : ke && S.current !== -1 || Math.abs(e) > 1 ? 0 : y : k > y ? k === y + 1 && Ie ? -1 : ke || Math.abs(e) > 1 ? y : 0 : k;
220
- })(), r);
221
- if (_({
222
- index: b,
223
- reason: s,
224
- event: o
225
- }), f && e !== "reset")
226
- if (b === -1)
227
- h.current.value = g;
228
- else {
229
- const y = P(m[b]);
230
- h.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && h.current.setSelectionRange(g.length, y.length);
231
- }
232
- }), Ue = !vt({
233
- array1: H.filteredOptions,
234
- array2: m,
235
- parser: P
236
- }), at = () => {
237
- const o = (e, r) => {
238
- const s = e ? P(e) : "", i = r ? P(r) : "";
239
- return s === i;
240
- };
241
- if (S.current !== -1 && !vt({
242
- array1: H.filteredOptions,
243
- array2: m,
244
- parser: P
245
- }) && H.inputValue === g && (c ? l.length === H.value.length && H.value.every((e, r) => P(l[r]) === P(e)) : o(H.value, l))) {
246
- const e = H.filteredOptions[S.current];
247
- if (e)
248
- return m.findIndex((r) => P(r) === P(e));
249
- }
250
- return -1;
251
- }, Se = x.useCallback(() => {
252
- if (!L)
253
- return;
254
- const o = at();
255
- if (o !== -1) {
256
- S.current = o;
257
- return;
258
- }
259
- const e = c ? l[0] : l;
260
- if (m.length === 0 || e == null) {
261
- j({
262
- diff: "reset"
263
- });
264
- return;
265
- }
266
- if (V.current) {
267
- if (e != null) {
268
- const r = m[S.current];
269
- if (c && r && l.findIndex((i) => Y(r, i)) !== -1)
270
- return;
271
- const s = m.findIndex((i) => Y(i, e));
272
- s === -1 ? j({
273
- diff: "reset"
274
- }) : _({
275
- index: s
276
- });
277
- return;
278
- }
279
- if (S.current >= m.length - 1) {
280
- _({
281
- index: m.length - 1
282
- });
283
- return;
284
- }
285
- _({
286
- index: S.current
287
- });
288
- }
289
- }, [
290
- // Only sync the highlighted index when the option switch between empty and not
291
- m.length,
292
- // Don't sync the highlighted index with the value when multiple
293
- // eslint-disable-next-line react-hooks/exhaustive-deps
294
- c ? !1 : l,
295
- Re,
296
- j,
297
- _,
298
- L,
299
- g,
300
- c
301
- ]), Z = Ke((o) => {
302
- Wt(V, o), o && Se();
303
- });
304
- process.env.NODE_ENV !== "production" && x.useEffect(() => {
305
- (!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${O} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
306
- `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${O} expects an input element.`, "", O === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
307
- `)));
308
- }, [O]), x.useEffect(() => {
309
- Ue && Se();
310
- }, [Se, Ue]);
311
- const K = (o) => {
312
- q || (se(!0), me(!0), Me && Me(o));
313
- }, ie = (o, e) => {
314
- q && (se(!1), tt && tt(o, e));
315
- }, J = (o, e, r, s) => {
316
- if (c) {
317
- if (l.length === e.length && l.every((i, b) => i === e[b]))
318
- return;
319
- } else if (l === e)
320
- return;
321
- et && et(o, e, r, s), $e(e);
322
- }, X = x.useRef(!1), ee = (o, e, r = "selectOption", s = "options") => {
323
- let i = r, b = e;
324
- if (c) {
325
- if (b = Array.isArray(l) ? l.slice() : [], process.env.NODE_ENV !== "production") {
326
- const k = b.filter((ye) => Y(e, ye));
327
- k.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${O} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${k.length} matches.`].join(`
328
- `));
329
- }
330
- const y = b.findIndex((k) => Y(e, k));
331
- y === -1 ? b.push(e) : s !== "freeSolo" && (b.splice(y, 1), i = "removeOption");
332
- }
333
- ge(o, b, i), J(o, b, i, {
334
- option: e
335
- }), !ce && (!o || !o.ctrlKey && !o.metaKey) && ie(o, i), (v === !0 || v === "touch" && X.current || v === "mouse" && !X.current) && h.current.blur();
336
- };
337
- function st(o, e) {
338
- if (o === -1)
339
- return -1;
340
- let r = o;
341
- for (; ; ) {
342
- if (e === "next" && r === l.length || e === "previous" && r === -1)
343
- return -1;
344
- const s = w ? "data-item-index" : "data-tag-index", i = Ce.querySelector(`[${s}="${r}"]`);
345
- if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
346
- r += e === "next" ? 1 : -1;
347
- else
348
- return r;
349
- }
350
- }
351
- const le = (o, e) => {
352
- if (!c)
353
- return;
354
- g === "" && ie(o, "toggleInput");
355
- let r = M;
356
- M === -1 ? g === "" && e === "previous" && (r = l.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === l.length && (r = -1)), r = st(r, e), Fe(r), z(r);
357
- }, Be = (o) => {
358
- Oe.current = !0, ae(""), Q && Q(o, "", "clear"), J(o, c ? [] : null, "clear");
359
- }, it = (o) => (e) => {
360
- if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (M !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Fe(-1), z(-1)), e.which !== 229))
361
- switch (e.key) {
362
- case "Home":
363
- L && Ze && (e.preventDefault(), j({
364
- diff: "start",
365
- direction: "next",
366
- reason: "keyboard",
367
- event: e
368
- }));
369
- break;
370
- case "End":
371
- L && Ze && (e.preventDefault(), j({
372
- diff: "end",
373
- direction: "previous",
374
- reason: "keyboard",
375
- event: e
376
- }));
377
- break;
378
- case "PageUp":
379
- e.preventDefault(), j({
380
- diff: -wt,
381
- direction: "previous",
382
- reason: "keyboard",
383
- event: e
384
- }), K(e);
385
- break;
386
- case "PageDown":
387
- e.preventDefault(), j({
388
- diff: wt,
389
- direction: "next",
390
- reason: "keyboard",
391
- event: e
392
- }), K(e);
393
- break;
394
- case "ArrowDown":
395
- e.preventDefault(), j({
396
- diff: 1,
397
- direction: "next",
398
- reason: "keyboard",
399
- event: e
400
- }), K(e);
401
- break;
402
- case "ArrowUp":
403
- e.preventDefault(), j({
404
- diff: -1,
405
- direction: "previous",
406
- reason: "keyboard",
407
- event: e
408
- }), K(e);
409
- break;
410
- case "ArrowLeft":
411
- !c && w ? z(0) : le(e, "previous");
412
- break;
413
- case "ArrowRight":
414
- !c && w ? z(-1) : le(e, "next");
415
- break;
416
- case "Enter":
417
- if (S.current !== -1 && L) {
418
- const r = m[S.current], s = W ? W(r) : !1;
419
- if (e.preventDefault(), s)
420
- return;
421
- ee(e, r, "selectOption"), f && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
422
- } else de && g !== "" && ze === !1 && (c && e.preventDefault(), ee(e, g, "createOption", "freeSolo"));
423
- break;
424
- case "Escape":
425
- L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : U && (g !== "" || c && l.length > 0 || w) && (e.preventDefault(), e.stopPropagation(), Be(e));
426
- break;
427
- case "Backspace":
428
- if (c && !G && g === "" && l.length > 0) {
429
- const r = M === -1 ? l.length - 1 : M, s = l.slice();
430
- s.splice(r, 1), J(e, s, "removeOption", {
431
- option: l[r]
432
- });
433
- }
434
- !c && w && !G && ($e(null), z(-1));
435
- break;
436
- case "Delete":
437
- if (c && !G && g === "" && l.length > 0 && M !== -1) {
438
- const r = M, s = l.slice();
439
- s.splice(r, 1), J(e, s, "removeOption", {
440
- option: l[r]
441
- });
442
- }
443
- !c && w && !G && ($e(null), z(-1));
444
- break;
445
- }
446
- }, be = (o) => {
447
- He(!0), xt && !Oe.current && K(o);
448
- }, he = (o) => {
449
- if (a(V)) {
450
- h.current.focus();
451
- return;
452
- }
453
- He(!1), Pe.current = !0, Oe.current = !1, R && S.current !== -1 && L ? ee(o, m[S.current], "blur") : R && de && g !== "" ? ee(o, g, "blur", "freeSolo") : D && ge(o, l, "blur"), ie(o, "blur");
454
- }, Te = (o) => {
455
- const e = o.target.value;
456
- g !== e && (ae(e), me(!1), Q && Q(o, e, "input")), e === "" ? !B && !c && J(o, null, "clear") : K(o);
457
- }, lt = (o) => {
458
- const e = Number(o.currentTarget.getAttribute("data-option-index"));
459
- S.current !== e && _({
460
- event: o,
461
- index: e,
462
- reason: "mouse"
463
- });
464
- }, pt = (o) => {
465
- _({
466
- event: o,
467
- index: Number(o.currentTarget.getAttribute("data-option-index")),
468
- reason: "touch"
469
- }), X.current = !0;
470
- }, ut = (o) => {
471
- const e = Number(o.currentTarget.getAttribute("data-option-index"));
472
- ee(o, m[e], "selectOption"), X.current = !1;
473
- }, ct = (o) => (e) => {
474
- const r = l.slice();
475
- r.splice(o, 1), J(e, r, "removeOption", {
476
- option: l[o]
477
- });
478
- }, ve = (o) => {
479
- J(o, null, "removeOption", {
480
- option: l
481
- });
482
- }, I = (o) => {
483
- q ? ie(o, "toggleInput") : K(o);
484
- }, C = (o) => {
485
- o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== E && o.preventDefault();
486
- }, te = (o) => {
487
- o.currentTarget.contains(o.target) && (h.current.focus(), ot && Pe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Pe.current = !1);
488
- }, dt = (o) => {
489
- !N && (g === "" || !q) && I(o);
490
- };
491
- let Ae = de && g.length > 0;
492
- Ae = Ae || (c ? l.length > 0 : l !== null);
493
- let We = m;
494
- if (re) {
495
- const o = /* @__PURE__ */ new Map();
496
- let e = !1;
497
- We = m.reduce((r, s, i) => {
498
- const b = re(s);
499
- return r.length > 0 && r[r.length - 1].group === b ? r[r.length - 1].options.push(s) : (process.env.NODE_ENV !== "production" && (o.get(b) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${O} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(b, !0)), r.push({
500
- key: i,
501
- index: i,
502
- group: b,
503
- options: [s]
504
- })), r;
505
- }, []);
506
- }
507
- return N && fe && he(), {
508
- getRootProps: (o = {}) => ({
509
- ...o,
510
- onKeyDown: it(o),
511
- onMouseDown: C,
512
- onClick: te
513
- }),
514
- getInputLabelProps: () => ({
515
- id: `${E}-label`,
516
- htmlFor: E
517
- }),
518
- getInputProps: () => ({
519
- id: E,
520
- value: g,
521
- onBlur: he,
522
- onFocus: be,
523
- onChange: Te,
524
- onMouseDown: dt,
525
- // if open then this is handled imperatively so don't let react override
526
- // only have an opinion about this when closed
527
- "aria-activedescendant": L ? "" : null,
528
- "aria-autocomplete": f ? "both" : "list",
529
- "aria-controls": je ? `${E}-listbox` : void 0,
530
- "aria-expanded": je,
531
- // Disable browser's suggestion that might overlap with the popup.
532
- // Handle autocomplete but not autofill.
533
- autoComplete: "off",
534
- ref: h,
535
- autoCapitalize: "none",
536
- spellCheck: "false",
537
- role: "combobox",
538
- disabled: N
539
- }),
540
- getClearProps: () => ({
541
- tabIndex: -1,
542
- type: "button",
543
- onClick: Be
544
- }),
545
- getItemProps: ({
546
- index: o = 0
547
- } = {}) => ({
548
- ...c && {
549
- key: o
550
- },
551
- ...w ? {
552
- "data-item-index": o
553
- } : {
554
- "data-tag-index": o
555
- },
556
- tabIndex: -1,
557
- ...!G && {
558
- onDelete: c ? ct(o) : ve
559
- }
560
- }),
561
- getPopupIndicatorProps: () => ({
562
- tabIndex: -1,
563
- type: "button",
564
- onClick: I
565
- }),
566
- // deprecated
567
- getTagProps: ({
568
- index: o
569
- }) => ({
570
- key: o,
571
- "data-tag-index": o,
572
- tabIndex: -1,
573
- ...!G && {
574
- onDelete: ct(o)
575
- }
576
- }),
577
- getListboxProps: () => ({
578
- role: "listbox",
579
- id: `${E}-listbox`,
580
- "aria-labelledby": `${E}-label`,
581
- ref: Z,
582
- onMouseDown: (o) => {
583
- o.preventDefault();
584
- }
585
- }),
586
- getOptionProps: ({
587
- index: o,
588
- option: e
589
- }) => {
590
- const r = (c ? l : [l]).some((i) => i != null && Y(e, i)), s = W ? W(e) : !1;
591
- return {
592
- key: (De == null ? void 0 : De(e)) ?? P(e),
593
- tabIndex: -1,
594
- role: "option",
595
- id: `${E}-option-${o}`,
596
- onMouseMove: lt,
597
- onClick: ut,
598
- onTouchStart: pt,
599
- "data-option-index": o,
600
- "aria-disabled": s,
601
- "aria-selected": r
602
- };
603
- },
604
- id: E,
605
- inputValue: g,
606
- value: l,
607
- dirty: Ae,
608
- expanded: L && Ce,
609
- popupOpen: L,
610
- focused: fe || M !== -1,
611
- anchorEl: Ce,
612
- setAnchorEl: Ot,
613
- focusedItem: M,
614
- // deprecated
615
- focusedTag: M,
616
- groupedOptions: We
617
- };
618
- }
619
- function Qt(n) {
620
- return Nt("MuiListSubheader", n);
621
- }
622
- const Vo = Dt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
623
- const {
624
- classes: a,
625
- color: u,
626
- disableGutters: f,
627
- inset: $,
628
- disableSticky: R
629
- } = n, v = {
630
- root: ["root", u !== "default" && `color${Ye(u)}`, !f && "gutters", $ && "inset", !R && "sticky"]
631
- };
632
- return Mt(v, Qt, a);
633
- }, eo = F("li", {
634
- name: "MuiListSubheader",
635
- slot: "Root",
636
- overridesResolver: (n, a) => {
637
- const {
638
- ownerState: u
639
- } = n;
640
- return [a.root, u.color !== "default" && a[`color${Ye(u.color)}`], !u.disableGutters && a.gutters, u.inset && a.inset, !u.disableSticky && a.sticky];
641
- }
642
- })(ue(({
643
- theme: n
644
- }) => ({
645
- boxSizing: "border-box",
646
- lineHeight: "48px",
647
- listStyle: "none",
648
- color: (n.vars || n).palette.text.secondary,
649
- fontFamily: n.typography.fontFamily,
650
- fontWeight: n.typography.fontWeightMedium,
651
- fontSize: n.typography.pxToRem(14),
652
- variants: [{
653
- props: {
654
- color: "primary"
655
- },
656
- style: {
657
- color: (n.vars || n).palette.primary.main
658
- }
659
- }, {
660
- props: {
661
- color: "inherit"
662
- },
663
- style: {
664
- color: "inherit"
665
- }
666
- }, {
667
- props: ({
668
- ownerState: a
669
- }) => !a.disableGutters,
670
- style: {
671
- paddingLeft: 16,
672
- paddingRight: 16
673
- }
674
- }, {
675
- props: ({
676
- ownerState: a
677
- }) => a.inset,
678
- style: {
679
- paddingLeft: 72
680
- }
681
- }, {
682
- props: ({
683
- ownerState: a
684
- }) => !a.disableSticky,
685
- style: {
686
- position: "sticky",
687
- top: 0,
688
- zIndex: 1,
689
- backgroundColor: (n.vars || n).palette.background.paper
690
- }
691
- }]
692
- }))), Xe = /* @__PURE__ */ x.forwardRef(function(a, u) {
693
- const f = Et({
694
- props: a,
695
- name: "MuiListSubheader"
696
- }), {
697
- className: $,
698
- color: R = "default",
699
- component: v = "li",
700
- disableGutters: D = !1,
701
- disableSticky: U = !1,
702
- inset: O = !1,
703
- ...T
704
- } = f, B = {
705
- ...f,
706
- color: R,
707
- component: v,
708
- disableGutters: D,
709
- disableSticky: U,
710
- inset: O
711
- }, ce = Zt(B);
712
- return /* @__PURE__ */ A(eo, {
713
- as: v,
714
- className: Je(ce.root, $),
715
- ref: u,
716
- ownerState: B,
717
- ...T
718
- });
719
- });
720
- Xe && (Xe.muiSkipListHighlight = !0);
721
- process.env.NODE_ENV !== "production" && (Xe.propTypes = {
722
- // ┌────────────────────────────── Warning ──────────────────────────────┐
723
- // │ These PropTypes are generated from the TypeScript type definitions. │
724
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
725
- // └─────────────────────────────────────────────────────────────────────┘
726
- /**
727
- * The content of the component.
728
- */
729
- children: t.node,
730
- /**
731
- * Override or extend the styles applied to the component.
732
- */
733
- classes: t.object,
734
- /**
735
- * @ignore
736
- */
737
- className: t.string,
738
- /**
739
- * The color of the component. It supports those theme colors that make sense for this component.
740
- * @default 'default'
741
- */
742
- color: t.oneOf(["default", "inherit", "primary"]),
743
- /**
744
- * The component used for the root node.
745
- * Either a string to use a HTML element or a component.
746
- */
747
- component: t.elementType,
748
- /**
749
- * If `true`, the List Subheader will not have gutters.
750
- * @default false
751
- */
752
- disableGutters: t.bool,
753
- /**
754
- * If `true`, the List Subheader will not stick to the top during scroll.
755
- * @default false
756
- */
757
- disableSticky: t.bool,
758
- /**
759
- * If `true`, the List Subheader is indented.
760
- * @default false
761
- */
762
- inset: t.bool,
763
- /**
764
- * The system prop that allows defining system overrides as well as additional CSS styles.
765
- */
766
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
767
- });
768
- function to(n) {
769
- return Nt("MuiAutocomplete", n);
770
- }
771
- const p = Dt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
772
- var kt, Rt;
773
- const oo = (n) => {
774
- const {
775
- classes: a,
776
- disablePortal: u,
777
- expanded: f,
778
- focused: $,
779
- fullWidth: R,
780
- hasClearIcon: v,
781
- hasPopupIcon: D,
782
- inputFocused: U,
783
- popupOpen: O,
784
- size: T
785
- } = n, B = {
786
- root: ["root", f && "expanded", $ && "focused", R && "fullWidth", v && "hasClearIcon", D && "hasPopupIcon"],
787
- inputRoot: ["inputRoot"],
788
- input: ["input", U && "inputFocused"],
789
- tag: ["tag", `tagSize${Ye(T)}`],
790
- endAdornment: ["endAdornment"],
791
- clearIndicator: ["clearIndicator"],
792
- popupIndicator: ["popupIndicator", O && "popupIndicatorOpen"],
793
- popper: ["popper", u && "popperDisablePortal"],
794
- paper: ["paper"],
795
- listbox: ["listbox"],
796
- loading: ["loading"],
797
- noOptions: ["noOptions"],
798
- option: ["option"],
799
- groupLabel: ["groupLabel"],
800
- groupUl: ["groupUl"]
801
- };
802
- return Mt(B, to, a);
803
- }, no = F("div", {
804
- name: "MuiAutocomplete",
805
- slot: "Root",
806
- overridesResolver: (n, a) => {
807
- const {
808
- ownerState: u
809
- } = n, {
810
- fullWidth: f,
811
- hasClearIcon: $,
812
- hasPopupIcon: R,
813
- inputFocused: v,
814
- size: D
815
- } = u;
816
- return [{
817
- [`& .${p.tag}`]: a.tag
818
- }, {
819
- [`& .${p.tag}`]: a[`tagSize${Ye(D)}`]
820
- }, {
821
- [`& .${p.inputRoot}`]: a.inputRoot
822
- }, {
823
- [`& .${p.input}`]: a.input
824
- }, {
825
- [`& .${p.input}`]: v && a.inputFocused
826
- }, a.root, f && a.fullWidth, R && a.hasPopupIcon, $ && a.hasClearIcon];
827
- }
828
- })({
829
- [`&.${p.focused} .${p.clearIndicator}`]: {
830
- visibility: "visible"
831
- },
832
- /* Avoid double tap issue on iOS */
833
- "@media (pointer: fine)": {
834
- [`&:hover .${p.clearIndicator}`]: {
835
- visibility: "visible"
836
- }
837
- },
838
- [`& .${p.tag}`]: {
839
- margin: 3,
840
- maxWidth: "calc(100% - 6px)"
841
- },
842
- [`& .${p.inputRoot}`]: {
843
- [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
844
- paddingRight: 30
845
- },
846
- [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
847
- paddingRight: 56
848
- },
849
- [`& .${p.input}`]: {
850
- width: 0,
851
- minWidth: 30
852
- }
853
- },
854
- [`& .${ft.root}`]: {
855
- paddingBottom: 1,
856
- "& .MuiInput-input": {
857
- padding: "4px 4px 4px 0px"
858
- }
859
- },
860
- [`& .${ft.root}.${pe.sizeSmall}`]: {
861
- [`& .${ft.input}`]: {
862
- padding: "2px 4px 3px 0"
863
- }
864
- },
865
- [`& .${St.root}`]: {
866
- padding: 9,
867
- [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
868
- paddingRight: 39
869
- },
870
- [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
871
- paddingRight: 65
872
- },
873
- [`& .${p.input}`]: {
874
- padding: "7.5px 4px 7.5px 5px"
875
- },
876
- [`& .${p.endAdornment}`]: {
877
- right: 9
878
- }
879
- },
880
- [`& .${St.root}.${pe.sizeSmall}`]: {
881
- // Don't specify paddingRight, as it overrides the default value set when there is only
882
- // one of the popup or clear icon as the specificity is equal so the latter one wins
883
- paddingTop: 6,
884
- paddingBottom: 6,
885
- paddingLeft: 6,
886
- [`& .${p.input}`]: {
887
- padding: "2.5px 4px 2.5px 8px"
888
- }
889
- },
890
- [`& .${xe.root}`]: {
891
- paddingTop: 19,
892
- paddingLeft: 8,
893
- [`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
894
- paddingRight: 39
895
- },
896
- [`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
897
- paddingRight: 65
898
- },
899
- [`& .${xe.input}`]: {
900
- padding: "7px 4px"
901
- },
902
- [`& .${p.endAdornment}`]: {
903
- right: 9
904
- }
905
- },
906
- [`& .${xe.root}.${pe.sizeSmall}`]: {
907
- paddingBottom: 1,
908
- [`& .${xe.input}`]: {
909
- padding: "2.5px 4px"
910
- }
911
- },
912
- [`& .${pe.hiddenLabel}`]: {
913
- paddingTop: 8
914
- },
915
- [`& .${xe.root}.${pe.hiddenLabel}`]: {
916
- paddingTop: 0,
917
- paddingBottom: 0,
918
- [`& .${p.input}`]: {
919
- paddingTop: 16,
920
- paddingBottom: 17
921
- }
922
- },
923
- [`& .${xe.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
924
- [`& .${p.input}`]: {
925
- paddingTop: 8,
926
- paddingBottom: 9
927
- }
928
- },
929
- [`& .${p.input}`]: {
930
- flexGrow: 1,
931
- textOverflow: "ellipsis",
932
- opacity: 0
933
- },
934
- variants: [{
935
- props: {
936
- fullWidth: !0
937
- },
938
- style: {
939
- width: "100%"
940
- }
941
- }, {
942
- props: {
943
- size: "small"
944
- },
945
- style: {
946
- [`& .${p.tag}`]: {
947
- margin: 2,
948
- maxWidth: "calc(100% - 4px)"
949
- }
950
- }
951
- }, {
952
- props: {
953
- inputFocused: !0
954
- },
955
- style: {
956
- [`& .${p.input}`]: {
957
- opacity: 1
958
- }
959
- }
960
- }, {
961
- props: {
962
- multiple: !0
963
- },
964
- style: {
965
- [`& .${p.inputRoot}`]: {
966
- flexWrap: "wrap"
967
- }
968
- }
969
- }]
970
- }), ro = F("div", {
971
- name: "MuiAutocomplete",
972
- slot: "EndAdornment"
973
- })({
974
- // We use a position absolute to support wrapping tags.
975
- position: "absolute",
976
- right: 0,
977
- top: "50%",
978
- transform: "translate(0, -50%)"
979
- }), ao = F(Ht, {
980
- name: "MuiAutocomplete",
981
- slot: "ClearIndicator"
982
- })({
983
- marginRight: -2,
984
- padding: 4,
985
- visibility: "hidden"
986
- }), so = F(Ht, {
987
- name: "MuiAutocomplete",
988
- slot: "PopupIndicator",
989
- overridesResolver: (n, a) => {
990
- const {
991
- ownerState: u
992
- } = n;
993
- return [a.popupIndicator, u.popupOpen && a.popupIndicatorOpen];
994
- }
995
- })({
996
- padding: 2,
997
- marginRight: -2,
998
- variants: [{
999
- props: {
1000
- popupOpen: !0
1001
- },
1002
- style: {
1003
- transform: "rotate(180deg)"
1004
- }
1005
- }]
1006
- }), io = F(Ft, {
1007
- name: "MuiAutocomplete",
1008
- slot: "Popper",
1009
- overridesResolver: (n, a) => {
1010
- const {
1011
- ownerState: u
1012
- } = n;
1013
- return [{
1014
- [`& .${p.option}`]: a.option
1015
- }, a.popper, u.disablePortal && a.popperDisablePortal];
1016
- }
1017
- })(ue(({
1018
- theme: n
1019
- }) => ({
1020
- zIndex: (n.vars || n).zIndex.modal,
1021
- variants: [{
1022
- props: {
1023
- disablePortal: !0
1024
- },
1025
- style: {
1026
- position: "absolute"
1027
- }
1028
- }]
1029
- }))), lo = F(Vt, {
1030
- name: "MuiAutocomplete",
1031
- slot: "Paper"
1032
- })(ue(({
1033
- theme: n
1034
- }) => ({
1035
- ...n.typography.body1,
1036
- overflow: "auto"
1037
- }))), po = F("div", {
1038
- name: "MuiAutocomplete",
1039
- slot: "Loading"
1040
- })(ue(({
1041
- theme: n
1042
- }) => ({
1043
- color: (n.vars || n).palette.text.secondary,
1044
- padding: "14px 16px"
1045
- }))), uo = F("div", {
1046
- name: "MuiAutocomplete",
1047
- slot: "NoOptions"
1048
- })(ue(({
1049
- theme: n
1050
- }) => ({
1051
- color: (n.vars || n).palette.text.secondary,
1052
- padding: "14px 16px"
1053
- }))), co = F("ul", {
1054
- name: "MuiAutocomplete",
1055
- slot: "Listbox"
1056
- })(ue(({
1057
- theme: n
1058
- }) => ({
1059
- listStyle: "none",
1060
- margin: 0,
1061
- padding: "8px 0",
1062
- maxHeight: "40vh",
1063
- overflow: "auto",
1064
- position: "relative",
1065
- [`& .${p.option}`]: {
1066
- minHeight: 48,
1067
- display: "flex",
1068
- overflow: "hidden",
1069
- justifyContent: "flex-start",
1070
- alignItems: "center",
1071
- cursor: "pointer",
1072
- paddingTop: 6,
1073
- boxSizing: "border-box",
1074
- outline: "0",
1075
- WebkitTapHighlightColor: "transparent",
1076
- paddingBottom: 6,
1077
- paddingLeft: 16,
1078
- paddingRight: 16,
1079
- [n.breakpoints.up("sm")]: {
1080
- minHeight: "auto"
1081
- },
1082
- [`&.${p.focused}`]: {
1083
- backgroundColor: (n.vars || n).palette.action.hover,
1084
- // Reset on touch devices, it doesn't add specificity
1085
- "@media (hover: none)": {
1086
- backgroundColor: "transparent"
1087
- }
1088
- },
1089
- '&[aria-disabled="true"]': {
1090
- opacity: (n.vars || n).palette.action.disabledOpacity,
1091
- pointerEvents: "none"
1092
- },
1093
- [`&.${p.focusVisible}`]: {
1094
- backgroundColor: (n.vars || n).palette.action.focus
1095
- },
1096
- '&[aria-selected="true"]': {
1097
- backgroundColor: n.alpha((n.vars || n).palette.primary.main, (n.vars || n).palette.action.selectedOpacity),
1098
- [`&.${p.focused}`]: {
1099
- backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.hoverOpacity}`),
1100
- // Reset on touch devices, it doesn't add specificity
1101
- "@media (hover: none)": {
1102
- backgroundColor: (n.vars || n).palette.action.selected
1103
- }
1104
- },
1105
- [`&.${p.focusVisible}`]: {
1106
- backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.focusOpacity}`)
1107
- }
1108
- }
1109
- }
1110
- }))), fo = F(Xe, {
1111
- name: "MuiAutocomplete",
1112
- slot: "GroupLabel"
1113
- })(ue(({
1114
- theme: n
1115
- }) => ({
1116
- backgroundColor: (n.vars || n).palette.background.paper,
1117
- top: -8
1118
- }))), go = F("ul", {
1119
- name: "MuiAutocomplete",
1120
- slot: "GroupUl"
1121
- })({
1122
- padding: 0,
1123
- [`& .${p.option}`]: {
1124
- paddingLeft: 24
1125
- }
1126
- }), mo = /* @__PURE__ */ x.forwardRef(function(a, u) {
1127
- const f = Et({
1128
- props: a,
1129
- name: "MuiAutocomplete"
1130
- }), {
1131
- autoComplete: $ = !1,
1132
- autoHighlight: R = !1,
1133
- autoSelect: v = !1,
1134
- blurOnSelect: D = !1,
1135
- ChipProps: U,
1136
- className: O,
1137
- clearIcon: T = kt || (kt = /* @__PURE__ */ A(jt, {
1138
- fontSize: "small"
1139
- })),
1140
- clearOnBlur: B = !f.freeSolo,
1141
- clearOnEscape: ce = !1,
1142
- clearText: N = "Clear",
1143
- closeText: Le = "Close",
1144
- componentsProps: ke,
1145
- defaultValue: bt = f.multiple ? [] : null,
1146
- disableClearable: Re = !1,
1147
- disableCloseOnSelect: de = !1,
1148
- disabled: W = !1,
1149
- disabledItemsFocusable: De = !1,
1150
- disableListWrap: Qe = !1,
1151
- disablePortal: re = !1,
1152
- filterOptions: Ze,
1153
- filterSelectedOptions: ht = !1,
1154
- forcePopupIcon: Ie = "auto",
1155
- freeSolo: Ne = !1,
1156
- fullWidth: Y = !1,
1157
- getLimitTagsText: c = (d) => `+${d}`,
1158
- getOptionDisabled: et,
1159
- getOptionKey: tt,
1160
- getOptionLabel: Ee,
1161
- isOptionEqualToValue: Q,
1162
- groupBy: Me,
1163
- handleHomeEndKeys: yt = !f.freeSolo,
1164
- id: xt,
1165
- includeInputInList: It = !1,
1166
- inputValue: G,
1167
- limitTags: w = -1,
1168
- ListboxComponent: ot,
1169
- ListboxProps: Ve,
1170
- loading: E = !1,
1171
- loadingText: P = "Loading…",
1172
- multiple: Oe = !1,
1173
- noOptionsText: Pe = "No options",
1174
- onChange: h,
1175
- onClose: V,
1176
- onHighlightChange: Ce,
1177
- onInputChange: Ot,
1178
- onOpen: M,
1179
- open: Fe,
1180
- openOnFocus: nt = !1,
1181
- openText: S = "Open",
1182
- options: Pt,
1183
- PaperComponent: l,
1184
- PopperComponent: $e,
1185
- popupIcon: g = Rt || (Rt = /* @__PURE__ */ A(zt, {})),
1186
- readOnly: ae = !1,
1187
- renderGroup: fe,
1188
- renderInput: He,
1189
- renderOption: ge,
1190
- renderTags: q,
1191
- renderValue: se,
1192
- selectOnFocus: Ct = !f.freeSolo,
1193
- size: me = "medium",
1194
- slots: ze = {},
1195
- slotProps: L = {},
1196
- value: m,
1197
- ...H
1198
- } = f, {
1199
- getRootProps: je,
1200
- getInputProps: z,
1201
- getInputLabelProps: rt,
1202
- getPopupIndicatorProps: _,
1203
- getClearProps: j,
1204
- getItemProps: Ue,
1205
- getListboxProps: at,
1206
- getOptionProps: Se,
1207
- value: Z,
1208
- dirty: K,
1209
- expanded: ie,
1210
- id: J,
1211
- popupOpen: X,
1212
- focused: ee,
1213
- focusedItem: st,
1214
- anchorEl: le,
1215
- setAnchorEl: Be,
1216
- inputValue: it,
1217
- groupedOptions: be
1218
- } = Yt({
1219
- ...f,
1220
- componentName: "Autocomplete"
1221
- }), he = !Re && !W && K && !ae, Te = (!Ne || Ie === !0) && Ie !== !1, {
1222
- onMouseDown: lt
1223
- } = z(), {
1224
- ref: pt,
1225
- ...ut
1226
- } = at(), ve = Ee || ((d) => d.label ?? d), I = {
1227
- ...f,
1228
- disablePortal: re,
1229
- expanded: ie,
1230
- focused: ee,
1231
- fullWidth: Y,
1232
- getOptionLabel: ve,
1233
- hasClearIcon: he,
1234
- hasPopupIcon: Te,
1235
- inputFocused: st === -1,
1236
- popupOpen: X,
1237
- size: me
1238
- }, C = oo(I), te = {
1239
- slots: {
1240
- paper: l,
1241
- popper: $e,
1242
- ...ze
1243
- },
1244
- slotProps: {
1245
- chip: U,
1246
- listbox: Ve,
1247
- ...ke,
1248
- ...L
1249
- }
1250
- }, [dt, Ae] = gt("listbox", {
1251
- elementType: co,
1252
- externalForwardedProps: te,
1253
- ownerState: I,
1254
- className: C.listbox,
1255
- additionalProps: ut,
1256
- ref: pt
1257
- }), [We, o] = gt("paper", {
1258
- elementType: Vt,
1259
- externalForwardedProps: te,
1260
- ownerState: I,
1261
- className: C.paper
1262
- }), [e, r] = gt("popper", {
1263
- elementType: Ft,
1264
- externalForwardedProps: te,
1265
- ownerState: I,
1266
- className: C.popper,
1267
- additionalProps: {
1268
- disablePortal: re,
1269
- style: {
1270
- width: le ? le.clientWidth : null
1271
- },
1272
- role: "presentation",
1273
- anchorEl: le,
1274
- open: X
1275
- }
1276
- });
1277
- let s;
1278
- const i = (d) => ({
1279
- className: C.tag,
1280
- disabled: W,
1281
- ...Ue(d)
1282
- });
1283
- if (Oe ? Z.length > 0 && (q ? s = q(Z, i, I) : se ? s = se(Z, i, I) : s = Z.map((d, oe) => {
1284
- const {
1285
- key: ne,
1286
- ...we
1287
- } = i({
1288
- index: oe
1289
- });
1290
- return /* @__PURE__ */ A(Gt, {
1291
- label: ve(d),
1292
- size: me,
1293
- ...we,
1294
- ...te.slotProps.chip
1295
- }, ne);
1296
- })) : se && Z != null && (s = se(Z, i, I)), w > -1 && Array.isArray(s)) {
1297
- const d = s.length - w;
1298
- !ee && d > 0 && (s = s.splice(0, w), s.push(/* @__PURE__ */ A("span", {
1299
- className: C.tag,
1300
- children: c(d)
1301
- }, s.length)));
1302
- }
1303
- const y = fe || ((d) => /* @__PURE__ */ _e("li", {
1304
- children: [/* @__PURE__ */ A(fo, {
1305
- className: C.groupLabel,
1306
- ownerState: I,
1307
- component: "div",
1308
- children: d.group
1309
- }), /* @__PURE__ */ A(go, {
1310
- className: C.groupUl,
1311
- ownerState: I,
1312
- children: d.children
1313
- })]
1314
- }, d.key)), ye = ge || ((d, oe) => {
1315
- const {
1316
- key: ne,
1317
- ...we
1318
- } = d;
1319
- return /* @__PURE__ */ A("li", {
1320
- ...we,
1321
- children: ve(oe)
1322
- }, ne);
1323
- }), $t = (d, oe) => {
1324
- const ne = Se({
1325
- option: d,
1326
- index: oe
1327
- });
1328
- return ye({
1329
- ...ne,
1330
- className: C.option
1331
- }, d, {
1332
- selected: ne["aria-selected"],
1333
- index: oe,
1334
- inputValue: it
1335
- }, I);
1336
- }, Ge = te.slotProps.clearIndicator, qe = te.slotProps.popupIndicator;
1337
- return /* @__PURE__ */ _e(x.Fragment, {
1338
- children: [/* @__PURE__ */ A(no, {
1339
- ref: u,
1340
- className: Je(C.root, O),
1341
- ownerState: I,
1342
- ...je(H),
1343
- children: He({
1344
- id: J,
1345
- disabled: W,
1346
- fullWidth: !0,
1347
- size: me === "small" ? "small" : void 0,
1348
- InputLabelProps: rt(),
1349
- InputProps: {
1350
- ref: Be,
1351
- className: C.inputRoot,
1352
- startAdornment: s,
1353
- onMouseDown: (d) => {
1354
- d.target === d.currentTarget && lt(d);
1355
- },
1356
- ...(he || Te) && {
1357
- endAdornment: /* @__PURE__ */ _e(ro, {
1358
- className: C.endAdornment,
1359
- ownerState: I,
1360
- children: [he ? /* @__PURE__ */ A(ao, {
1361
- ...j(),
1362
- "aria-label": N,
1363
- title: N,
1364
- ownerState: I,
1365
- ...Ge,
1366
- className: Je(C.clearIndicator, Ge == null ? void 0 : Ge.className),
1367
- children: T
1368
- }) : null, Te ? /* @__PURE__ */ A(so, {
1369
- ..._(),
1370
- disabled: W,
1371
- "aria-label": X ? Le : S,
1372
- title: X ? Le : S,
1373
- ownerState: I,
1374
- ...qe,
1375
- className: Je(C.popupIndicator, qe == null ? void 0 : qe.className),
1376
- children: g
1377
- }) : null]
1378
- })
1379
- }
1380
- },
1381
- inputProps: {
1382
- className: C.input,
1383
- disabled: W,
1384
- readOnly: ae,
1385
- ...z()
1386
- }
1387
- })
1388
- }), le ? /* @__PURE__ */ A(io, {
1389
- as: e,
1390
- ...r,
1391
- children: /* @__PURE__ */ _e(lo, {
1392
- as: We,
1393
- ...o,
1394
- children: [E && be.length === 0 ? /* @__PURE__ */ A(po, {
1395
- className: C.loading,
1396
- ownerState: I,
1397
- children: P
1398
- }) : null, be.length === 0 && !Ne && !E ? /* @__PURE__ */ A(uo, {
1399
- className: C.noOptions,
1400
- ownerState: I,
1401
- role: "presentation",
1402
- onMouseDown: (d) => {
1403
- d.preventDefault();
1404
- },
1405
- children: Pe
1406
- }) : null, be.length > 0 ? /* @__PURE__ */ A(dt, {
1407
- as: ot,
1408
- ...Ae,
1409
- children: be.map((d, oe) => Me ? y({
1410
- key: d.key,
1411
- group: d.group,
1412
- children: d.options.map((ne, we) => $t(ne, d.index + we))
1413
- }) : $t(d, oe))
1414
- }) : null]
1415
- })
1416
- }) : null]
1417
- });
1418
- });
1419
- process.env.NODE_ENV !== "production" && (mo.propTypes = {
1420
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1421
- // │ These PropTypes are generated from the TypeScript type definitions. │
1422
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1423
- // └─────────────────────────────────────────────────────────────────────┘
1424
- /**
1425
- * If `true`, the portion of the selected suggestion that the user hasn't typed,
1426
- * known as the completion string, appears inline after the input cursor in the textbox.
1427
- * The inline completion string is visually highlighted and has a selected state.
1428
- * @default false
1429
- */
1430
- autoComplete: t.bool,
1431
- /**
1432
- * If `true`, the first option is automatically highlighted.
1433
- * @default false
1434
- */
1435
- autoHighlight: t.bool,
1436
- /**
1437
- * If `true`, the selected option becomes the value of the input
1438
- * when the Autocomplete loses focus unless the user chooses
1439
- * a different option or changes the character string in the input.
1440
- *
1441
- * When using the `freeSolo` mode, the typed value will be the input value
1442
- * if the Autocomplete loses focus without highlighting an option.
1443
- * @default false
1444
- */
1445
- autoSelect: t.bool,
1446
- /**
1447
- * Control if the input should be blurred when an option is selected:
1448
- *
1449
- * - `false` the input is not blurred.
1450
- * - `true` the input is always blurred.
1451
- * - `touch` the input is blurred after a touch event.
1452
- * - `mouse` the input is blurred after a mouse event.
1453
- * @default false
1454
- */
1455
- blurOnSelect: t.oneOfType([t.oneOf(["mouse", "touch"]), t.bool]),
1456
- /**
1457
- * Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
1458
- * @deprecated Use `slotProps.chip` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1459
- */
1460
- ChipProps: t.object,
1461
- /**
1462
- * Override or extend the styles applied to the component.
1463
- */
1464
- classes: t.object,
1465
- /**
1466
- * @ignore
1467
- */
1468
- className: t.string,
1469
- /**
1470
- * The icon to display in place of the default clear icon.
1471
- * @default <ClearIcon fontSize="small" />
1472
- */
1473
- clearIcon: t.node,
1474
- /**
1475
- * If `true`, the input's text is cleared on blur if no value is selected.
1476
- *
1477
- * Set it to `true` if you want to help the user enter a new value.
1478
- * Set it to `false` if you want to help the user resume their search.
1479
- * @default !props.freeSolo
1480
- */
1481
- clearOnBlur: t.bool,
1482
- /**
1483
- * If `true`, clear all values when the user presses escape and the popup is closed.
1484
- * @default false
1485
- */
1486
- clearOnEscape: t.bool,
1487
- /**
1488
- * Override the default text for the *clear* icon button.
1489
- *
1490
- * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1491
- * @default 'Clear'
1492
- */
1493
- clearText: t.string,
1494
- /**
1495
- * Override the default text for the *close popup* icon button.
1496
- *
1497
- * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1498
- * @default 'Close'
1499
- */
1500
- closeText: t.string,
1501
- /**
1502
- * The props used for each slot inside.
1503
- * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1504
- */
1505
- componentsProps: t.shape({
1506
- clearIndicator: t.object,
1507
- paper: t.object,
1508
- popper: t.object,
1509
- popupIndicator: t.object
1510
- }),
1511
- /**
1512
- * The default value. Use when the component is not controlled.
1513
- * @default props.multiple ? [] : null
1514
- */
1515
- defaultValue: Tt(t.any, (n) => n.multiple && n.defaultValue !== void 0 && !Array.isArray(n.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${n.defaultValue} was provided.`].join(`
1516
- `)) : null),
1517
- /**
1518
- * If `true`, the input can't be cleared.
1519
- * @default false
1520
- */
1521
- disableClearable: t.bool,
1522
- /**
1523
- * If `true`, the popup won't close when a value is selected.
1524
- * @default false
1525
- */
1526
- disableCloseOnSelect: t.bool,
1527
- /**
1528
- * If `true`, the component is disabled.
1529
- * @default false
1530
- */
1531
- disabled: t.bool,
1532
- /**
1533
- * If `true`, will allow focus on disabled items.
1534
- * @default false
1535
- */
1536
- disabledItemsFocusable: t.bool,
1537
- /**
1538
- * If `true`, the list box in the popup will not wrap focus.
1539
- * @default false
1540
- */
1541
- disableListWrap: t.bool,
1542
- /**
1543
- * If `true`, the `Popper` content will be under the DOM hierarchy of the parent component.
1544
- * @default false
1545
- */
1546
- disablePortal: t.bool,
1547
- /**
1548
- * A function that determines the filtered options to be rendered on search.
1549
- *
1550
- * @default createFilterOptions()
1551
- * @param {Value[]} options The options to render.
1552
- * @param {object} state The state of the component.
1553
- * @returns {Value[]}
1554
- */
1555
- filterOptions: t.func,
1556
- /**
1557
- * If `true`, hide the selected options from the list box.
1558
- * @default false
1559
- */
1560
- filterSelectedOptions: t.bool,
1561
- /**
1562
- * Force the visibility display of the popup icon.
1563
- * @default 'auto'
1564
- */
1565
- forcePopupIcon: t.oneOfType([t.oneOf(["auto"]), t.bool]),
1566
- /**
1567
- * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
1568
- * @default false
1569
- */
1570
- freeSolo: t.bool,
1571
- /**
1572
- * If `true`, the input will take up the full width of its container.
1573
- * @default false
1574
- */
1575
- fullWidth: t.bool,
1576
- /**
1577
- * The label to display when the tags are truncated (`limitTags`).
1578
- *
1579
- * @param {number} more The number of truncated tags.
1580
- * @returns {ReactNode}
1581
- * @default (more) => `+${more}`
1582
- */
1583
- getLimitTagsText: t.func,
1584
- /**
1585
- * Used to determine the disabled state for a given option.
1586
- *
1587
- * @param {Value} option The option to test.
1588
- * @template Value The option shape. Will be the same shape as an item of the options.
1589
- * @returns {boolean}
1590
- */
1591
- getOptionDisabled: t.func,
1592
- /**
1593
- * Used to determine the key for a given option.
1594
- * This can be useful when the labels of options are not unique (since labels are used as keys by default).
1595
- *
1596
- * @param {Value} option The option to get the key for.
1597
- * @returns {string | number}
1598
- */
1599
- getOptionKey: t.func,
1600
- /**
1601
- * Used to determine the string value for a given option.
1602
- * It's used to fill the input (and the list box options if `renderOption` is not provided).
1603
- *
1604
- * If used in free solo mode, it must accept both the type of the options and a string.
1605
- *
1606
- * @param {Value} option
1607
- * @returns {string}
1608
- * @default (option) => option.label ?? option
1609
- */
1610
- getOptionLabel: t.func,
1611
- /**
1612
- * If provided, the options will be grouped under the returned string.
1613
- * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
1614
- *
1615
- * @param {Value} option The Autocomplete option.
1616
- * @returns {string}
1617
- */
1618
- groupBy: t.func,
1619
- /**
1620
- * If `true`, the component handles the "Home" and "End" keys when the popup is open.
1621
- * It should move focus to the first option and last option, respectively.
1622
- * @default !props.freeSolo
1623
- */
1624
- handleHomeEndKeys: t.bool,
1625
- /**
1626
- * This prop is used to help implement the accessibility logic.
1627
- * If you don't provide an id it will fall back to a randomly generated one.
1628
- */
1629
- id: t.string,
1630
- /**
1631
- * If `true`, the highlight can move to the input.
1632
- * @default false
1633
- */
1634
- includeInputInList: t.bool,
1635
- /**
1636
- * The input value.
1637
- */
1638
- inputValue: t.string,
1639
- /**
1640
- * Used to determine if the option represents the given value.
1641
- * Uses strict equality by default.
1642
- * ⚠️ Both arguments need to be handled, an option can only match with one value.
1643
- *
1644
- * @param {Value} option The option to test.
1645
- * @param {Value} value The value to test against.
1646
- * @returns {boolean}
1647
- */
1648
- isOptionEqualToValue: t.func,
1649
- /**
1650
- * The maximum number of tags that will be visible when not focused.
1651
- * Set `-1` to disable the limit.
1652
- * @default -1
1653
- */
1654
- limitTags: qt,
1655
- /**
1656
- * The component used to render the listbox.
1657
- * @default 'ul'
1658
- * @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1659
- */
1660
- ListboxComponent: t.elementType,
1661
- /**
1662
- * Props applied to the Listbox element.
1663
- * @deprecated Use `slotProps.listbox` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1664
- */
1665
- ListboxProps: t.object,
1666
- /**
1667
- * If `true`, the component is in a loading state.
1668
- * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, for example `options` are empty).
1669
- * @default false
1670
- */
1671
- loading: t.bool,
1672
- /**
1673
- * Text to display when in a loading state.
1674
- *
1675
- * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1676
- * @default 'Loading…'
1677
- */
1678
- loadingText: t.node,
1679
- /**
1680
- * If `true`, `value` must be an array and the menu will support multiple selections.
1681
- * @default false
1682
- */
1683
- multiple: t.bool,
1684
- /**
1685
- * Text to display when there are no options.
1686
- *
1687
- * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1688
- * @default 'No options'
1689
- */
1690
- noOptionsText: t.node,
1691
- /**
1692
- * Callback fired when the value changes.
1693
- *
1694
- * @param {React.SyntheticEvent} event The event source of the callback.
1695
- * @param {Value|Value[]} value The new value of the component.
1696
- * @param {string} reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
1697
- * @param {string} [details]
1698
- */
1699
- onChange: t.func,
1700
- /**
1701
- * Callback fired when the popup requests to be closed.
1702
- * Use in controlled mode (see open).
1703
- *
1704
- * @param {React.SyntheticEvent} event The event source of the callback.
1705
- * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"selectOption"`, `"removeOption"`, `"blur"`.
1706
- */
1707
- onClose: t.func,
1708
- /**
1709
- * Callback fired when the highlight option changes.
1710
- *
1711
- * @param {React.SyntheticEvent} event The event source of the callback.
1712
- * @param {Value} option The highlighted option.
1713
- * @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
1714
- */
1715
- onHighlightChange: t.func,
1716
- /**
1717
- * Callback fired when the input value changes.
1718
- *
1719
- * @param {React.SyntheticEvent} event The event source of the callback.
1720
- * @param {string} value The new value of the text input.
1721
- * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`, `"blur"`, `"selectOption"`, `"removeOption"`
1722
- */
1723
- onInputChange: t.func,
1724
- /**
1725
- * @ignore
1726
- */
1727
- onKeyDown: t.func,
1728
- /**
1729
- * Callback fired when the popup requests to be opened.
1730
- * Use in controlled mode (see open).
1731
- *
1732
- * @param {React.SyntheticEvent} event The event source of the callback.
1733
- */
1734
- onOpen: t.func,
1735
- /**
1736
- * If `true`, the component is shown.
1737
- */
1738
- open: t.bool,
1739
- /**
1740
- * If `true`, the popup will open on input focus.
1741
- * @default false
1742
- */
1743
- openOnFocus: t.bool,
1744
- /**
1745
- * Override the default text for the *open popup* icon button.
1746
- *
1747
- * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
1748
- * @default 'Open'
1749
- */
1750
- openText: t.string,
1751
- /**
1752
- * A list of options that will be shown in the Autocomplete.
1753
- */
1754
- options: t.array.isRequired,
1755
- /**
1756
- * The component used to render the body of the popup.
1757
- * @default Paper
1758
- * @deprecated Use `slots.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1759
- */
1760
- PaperComponent: t.elementType,
1761
- /**
1762
- * The component used to position the popup.
1763
- * @default Popper
1764
- * @deprecated Use `slots.popper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1765
- */
1766
- PopperComponent: t.elementType,
1767
- /**
1768
- * The icon to display in place of the default popup icon.
1769
- * @default <ArrowDropDownIcon />
1770
- */
1771
- popupIcon: t.node,
1772
- /**
1773
- * If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
1774
- * @default false
1775
- */
1776
- readOnly: t.bool,
1777
- /**
1778
- * Render the group.
1779
- *
1780
- * @param {AutocompleteRenderGroupParams} params The group to render.
1781
- * @returns {ReactNode}
1782
- */
1783
- renderGroup: t.func,
1784
- /**
1785
- * Render the input.
1786
- *
1787
- * **Note:** The `renderInput` prop must return a `TextField` component or a compatible custom component
1788
- * that correctly forwards `InputProps.ref` and spreads `inputProps`. This ensures proper integration
1789
- * with the Autocomplete's internal logic (e.g., focus management and keyboard navigation).
1790
- *
1791
- * Avoid using components like `DatePicker` or `Select` directly, as they may not forward the required props,
1792
- * leading to runtime errors or unexpected behavior.
1793
- *
1794
- * @param {object} params
1795
- * @returns {ReactNode}
1796
- */
1797
- renderInput: t.func.isRequired,
1798
- /**
1799
- * Render the option, use `getOptionLabel` by default.
1800
- *
1801
- * @param {object} props The props to apply on the li element.
1802
- * @param {Value} option The option to render.
1803
- * @param {object} state The state of each option.
1804
- * @param {object} ownerState The state of the Autocomplete component.
1805
- * @returns {ReactNode}
1806
- */
1807
- renderOption: t.func,
1808
- /**
1809
- * Render the selected value when doing multiple selections.
1810
- *
1811
- * @deprecated Use `renderValue` prop instead
1812
- *
1813
- * @param {Value[]} value The `value` provided to the component.
1814
- * @param {function} getTagProps A tag props getter.
1815
- * @param {object} ownerState The state of the Autocomplete component.
1816
- * @returns {ReactNode}
1817
- */
1818
- renderTags: t.func,
1819
- /**
1820
- * Renders the selected value(s) as rich content in the input for both single and multiple selections.
1821
- *
1822
- * @param {AutocompleteRenderValue<Value, Multiple, FreeSolo>} value The `value` provided to the component.
1823
- * @param {function} getItemProps The value item props.
1824
- * @param {object} ownerState The state of the Autocomplete component.
1825
- * @returns {ReactNode}
1826
- */
1827
- renderValue: t.func,
1828
- /**
1829
- * If `true`, the input's text is selected on focus.
1830
- * It helps the user clear the selected value.
1831
- * @default !props.freeSolo
1832
- */
1833
- selectOnFocus: t.bool,
1834
- /**
1835
- * The size of the component.
1836
- * @default 'medium'
1837
- */
1838
- size: t.oneOfType([t.oneOf(["small", "medium"]), t.string]),
1839
- /**
1840
- * The props used for each slot inside.
1841
- * @default {}
1842
- */
1843
- slotProps: t.shape({
1844
- chip: t.oneOfType([t.func, t.object]),
1845
- clearIndicator: t.oneOfType([t.func, t.object]),
1846
- listbox: t.oneOfType([t.func, t.object]),
1847
- paper: t.oneOfType([t.func, t.object]),
1848
- popper: t.oneOfType([t.func, t.object]),
1849
- popupIndicator: t.oneOfType([t.func, t.object])
1850
- }),
1851
- /**
1852
- * The components used for each slot inside.
1853
- * @default {}
1854
- */
1855
- slots: t.shape({
1856
- listbox: t.elementType,
1857
- paper: t.elementType,
1858
- popper: t.elementType
1859
- }),
1860
- /**
1861
- * The system prop that allows defining system overrides as well as additional CSS styles.
1862
- */
1863
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1864
- /**
1865
- * The value of the autocomplete.
1866
- *
1867
- * The value must have reference equality with the option in order to be selected.
1868
- * You can customize the equality behavior with the `isOptionEqualToValue` prop.
1869
- */
1870
- value: Tt(t.any, (n) => n.multiple && n.value !== void 0 && !Array.isArray(n.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${n.value} was provided.`].join(`
1871
- `)) : null)
1872
- });
1873
- export {
1874
- mo as A,
1875
- Xe as L,
1876
- p as a,
1877
- Qt as b,
1878
- _t as c,
1879
- to as g,
1880
- Vo as l
1881
- };