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

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 (323) hide show
  1. package/dist/Alert-5zQ9TB22.cjs +1 -0
  2. package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
  3. package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
  4. package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
  5. package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
  6. package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
  7. package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
  8. package/dist/Box-Bl24J58B.cjs +1 -0
  9. package/dist/Button-CZTPCtLu.cjs +1 -0
  10. package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
  11. package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
  12. package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
  13. package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
  14. package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
  15. package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
  16. package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
  17. package/dist/Chip-BJSNxQBQ.cjs +1 -0
  18. package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
  19. package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
  20. package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
  21. package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
  22. package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
  23. package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
  24. package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
  25. package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
  26. package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
  27. package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
  28. package/dist/DatePicker-DbH5IN_w.cjs +13 -0
  29. package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
  30. package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
  31. package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
  32. package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
  33. package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
  34. package/dist/Dialog-D1VJ5jXx.cjs +1 -0
  35. package/dist/DialogContent-DqdeAbSs.cjs +1 -0
  36. package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
  37. package/dist/DialogTitle-B3MlGamo.cjs +1 -0
  38. package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
  39. package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
  40. package/dist/Divider-I7KOokm8.cjs +1 -0
  41. package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
  42. package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
  43. package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
  44. package/dist/FormLabel-xZr5oZgx.cjs +2 -0
  45. package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
  46. package/dist/Grow-DrEdqZgX.cjs +1 -0
  47. package/dist/IconButton-C1I_233O.cjs +2 -0
  48. package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
  49. package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
  50. package/dist/InputAdornment-_UPzajRP.cjs +1 -0
  51. package/dist/InputBase-C-ES3FPH.cjs +3 -0
  52. package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
  53. package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
  54. package/dist/Link-BQrFDQ-K.cjs +1 -0
  55. package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
  56. package/dist/List-Bii833np.cjs +1 -0
  57. package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
  58. package/dist/ListItem-BtjE87R1.cjs +1 -0
  59. package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
  60. package/dist/ListItemText-zFoA_mgx.js +845 -0
  61. package/dist/Menu-4e60iiMU.cjs +7 -0
  62. package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
  63. package/dist/MenuItem-De2MJkYT.cjs +1 -0
  64. package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
  65. package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
  66. package/dist/Modal-JAWJUstF.cjs +2 -0
  67. package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
  68. package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
  69. package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
  70. package/dist/Paper-CKG165jt.cjs +2 -0
  71. package/dist/Popper-CyH7Z-lN.cjs +4 -0
  72. package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
  73. package/dist/Portal-CtsVKOQ9.js +85 -0
  74. package/dist/Portal-LP7SUKpU.cjs +1 -0
  75. package/dist/Radio-BEfQuau1.cjs +1 -0
  76. package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
  77. package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
  78. package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
  79. package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
  80. package/dist/Select-CxofSqZJ.cjs +3 -0
  81. package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
  82. package/dist/Stack-DpH56CPw.cjs +1 -0
  83. package/dist/Switch-BIGFww3p.cjs +1 -0
  84. package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
  85. package/dist/SwitchBase-BHC3uchj.js +314 -0
  86. package/dist/SwitchBase-DA079uiU.cjs +1 -0
  87. package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
  88. package/dist/Tab-BsIC620i.cjs +4 -0
  89. package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
  90. package/dist/TextField-DFr8lsXU.cjs +1 -0
  91. package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
  92. package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
  93. package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
  94. package/dist/Tooltip-DJC7nrsk.cjs +4 -0
  95. package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
  96. package/dist/Typography-DOpE-TJz.cjs +1 -0
  97. package/dist/components/Alert/Alert.cjs.js +1 -1
  98. package/dist/components/Alert/Alert.es.js +3 -3
  99. package/dist/components/Alert/index.cjs.js +1 -1
  100. package/dist/components/Alert/index.es.js +1 -1
  101. package/dist/components/Button/Button.cjs.js +1 -1
  102. package/dist/components/Button/Button.es.js +2 -2
  103. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  104. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  105. package/dist/components/DatePicker/index.cjs.js +1 -1
  106. package/dist/components/DatePicker/index.es.js +1 -1
  107. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  108. package/dist/components/Dialog/Dialog.es.js +15 -15
  109. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  110. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  111. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  112. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  113. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  114. package/dist/components/FileList/FileIcon.es.js +1 -1
  115. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  116. package/dist/components/FileList/FileListItem.es.js +4 -4
  117. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  118. package/dist/components/FolderCard/FolderCard.d.ts +1 -0
  119. package/dist/components/FolderCard/FolderCard.es.js +26 -17
  120. package/dist/components/FolderCard/styles.cjs.js +1 -1
  121. package/dist/components/FolderCard/styles.d.ts +4 -0
  122. package/dist/components/FolderCard/styles.es.js +9 -5
  123. package/dist/components/Heading/Heading.cjs.js +1 -1
  124. package/dist/components/Heading/Heading.es.js +2 -2
  125. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  126. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  127. package/dist/components/Loader/Loader.cjs.js +1 -1
  128. package/dist/components/Loader/Loader.es.js +1 -1
  129. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  130. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  131. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  132. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  133. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  134. package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
  135. package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
  136. package/dist/components/ResourceCard/style.cjs.js +1 -1
  137. package/dist/components/ResourceCard/style.es.js +49 -44
  138. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  139. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  140. package/dist/components/TreeView/TreeView.cjs.js +7 -7
  141. package/dist/components/TreeView/TreeView.es.js +323 -319
  142. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  143. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  144. package/dist/components/TreeView/style.cjs.js +1 -1
  145. package/dist/components/TreeView/style.es.js +24 -18
  146. package/dist/components/TreeView/types.d.ts +5 -2
  147. package/dist/components/TreeView/utils.cjs.js +1 -1
  148. package/dist/components/TreeView/utils.es.js +3 -3
  149. package/dist/components/index.cjs.js +1 -1
  150. package/dist/components/index.es.js +264 -266
  151. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  152. package/dist/components/stories/Alert.stories.es.js +1 -1
  153. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  154. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  155. package/dist/components/stories/Button.stories.cjs.js +1 -1
  156. package/dist/components/stories/Button.stories.es.js +1 -1
  157. package/dist/components/stories/Card.stories.cjs.js +1 -1
  158. package/dist/components/stories/Card.stories.es.js +2 -2
  159. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  160. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  161. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  162. package/dist/components/stories/Chip.stories.es.js +1 -1
  163. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  164. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  165. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  166. package/dist/components/stories/Dialog.stories.es.js +2 -2
  167. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  168. package/dist/components/stories/Divider.stories.es.js +1 -1
  169. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  170. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  171. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  172. package/dist/components/stories/Heading.stories.es.js +2 -2
  173. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  174. package/dist/components/stories/IconButton.stories.es.js +2 -2
  175. package/dist/components/stories/Link.stories.cjs.js +1 -1
  176. package/dist/components/stories/Link.stories.es.js +1 -1
  177. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  178. package/dist/components/stories/Menu.stories.es.js +2 -2
  179. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  180. package/dist/components/stories/Paper.stories.es.js +1 -1
  181. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  182. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  183. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  184. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  185. package/dist/components/stories/Select.stories.cjs.js +1 -1
  186. package/dist/components/stories/Select.stories.es.js +3 -3
  187. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  188. package/dist/components/stories/TabList.stories.es.js +1 -1
  189. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  190. package/dist/components/stories/TextField.stories.es.js +1 -1
  191. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  192. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  193. package/dist/components/stories/TreeView.stories.cjs.js +3 -3
  194. package/dist/components/stories/TreeView.stories.d.ts +2 -0
  195. package/dist/components/stories/TreeView.stories.es.js +517 -268
  196. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  197. package/dist/components/stories/Typography.stories.es.js +1 -1
  198. package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
  199. package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
  200. package/dist/dividerClasses-B_bu1fey.cjs +1 -0
  201. package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
  202. package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
  203. package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
  204. package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
  205. package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
  206. package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
  207. package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
  208. package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
  209. package/dist/identifier-gJdGmHeC.cjs +74 -0
  210. package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
  211. package/dist/index-Cfd-LNZn.cjs +1 -0
  212. package/dist/index-D14TzUgK.cjs +1 -0
  213. package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
  214. package/dist/index-Dmu1HrwE.cjs +5 -0
  215. package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
  216. package/dist/index.cjs.js +1 -1
  217. package/dist/index.es.js +264 -266
  218. package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
  219. package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
  220. package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
  221. package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
  222. package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
  223. package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
  224. package/dist/refType-53jD7LEO.cjs +1 -0
  225. package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
  226. package/dist/styled-C7OKoThH.cjs +1 -0
  227. package/dist/styled-DpPa0vDp.js +5 -0
  228. package/dist/useEventCallback-BxpcFap0.cjs +1 -0
  229. package/dist/useEventCallback-Yoj9nCug.js +15 -0
  230. package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
  231. package/dist/useForkRef-u29GSuCu.js +27 -0
  232. package/dist/useSlot-DhC6EPU2.js +125 -0
  233. package/dist/useSlot-zJFQDOgm.cjs +1 -0
  234. package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
  235. package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
  236. package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
  237. package/dist/useTheme-BJZcQSBU.cjs +1 -0
  238. package/dist/useTheme-Dt-VOIyT.js +11 -0
  239. package/dist/useTheme-NQRIebh0.cjs +1 -0
  240. package/dist/useThemeProps-CxMYNgfp.js +17 -0
  241. package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
  242. package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
  243. package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
  244. package/dist/utils-B2EQZFZP.cjs +1 -0
  245. package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
  246. package/dist/warning-C8W811fV.js +11 -0
  247. package/dist/warning-DMUNDgRg.cjs +2 -0
  248. package/package.json +10 -10
  249. package/dist/Alert-CvizDCvx.cjs +0 -1
  250. package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
  251. package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
  252. package/dist/Box-BmfpLwYG.cjs +0 -1
  253. package/dist/Button-BGWvL_UD.cjs +0 -1
  254. package/dist/CardContent-GHLuvxgm.cjs +0 -1
  255. package/dist/Checkbox-BZYoJieY.cjs +0 -1
  256. package/dist/Chip-Cu_SZxrx.cjs +0 -1
  257. package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
  258. package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
  259. package/dist/DatePicker-tyDzcyzu.cjs +0 -14
  260. package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
  261. package/dist/Dialog-DIHzs0ro.cjs +0 -1
  262. package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
  263. package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
  264. package/dist/Divider-iYLSpFUc.cjs +0 -1
  265. package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
  266. package/dist/Grow-DXY5DOqR.cjs +0 -1
  267. package/dist/IconButton-BLZJne06.cjs +0 -2
  268. package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
  269. package/dist/InputBase-B3KOyouT.cjs +0 -3
  270. package/dist/Link-lvpmE2yz.cjs +0 -1
  271. package/dist/List-PQXGlDbt.cjs +0 -1
  272. package/dist/ListItem-CWEvdMjN.cjs +0 -1
  273. package/dist/ListItemText-BhxrnTkb.cjs +0 -1
  274. package/dist/ListItemText-CADHegDF.js +0 -928
  275. package/dist/Menu-DBacrp-P.cjs +0 -7
  276. package/dist/MenuItem-DkcVAo3U.cjs +0 -1
  277. package/dist/Modal-kUvS-N46.cjs +0 -2
  278. package/dist/Paper-ByOgFIEE.cjs +0 -2
  279. package/dist/Popper-CsQqc5DE.cjs +0 -4
  280. package/dist/Portal-7MKUQzjh.js +0 -81
  281. package/dist/Portal-DhGy1jKe.cjs +0 -1
  282. package/dist/Radio-DG-k6cXx.cjs +0 -1
  283. package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
  284. package/dist/Select-b6liJFDI.cjs +0 -3
  285. package/dist/Stack-gtxG2YLo.cjs +0 -1
  286. package/dist/Switch-BlwDxL6O.cjs +0 -1
  287. package/dist/SwitchBase-DtKlxrES.cjs +0 -1
  288. package/dist/SwitchBase-QwOXoy8f.js +0 -262
  289. package/dist/Tab-Dx7V4E6B.cjs +0 -4
  290. package/dist/TextField-CB2n4aV8.cjs +0 -1
  291. package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
  292. package/dist/Tooltip-D0jvnXYu.cjs +0 -4
  293. package/dist/Typography-3CpuuLtj.cjs +0 -1
  294. package/dist/capitalize-B3tmp8MO.cjs +0 -1
  295. package/dist/capitalize-Bs7Xs33U.js +0 -9
  296. package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
  297. package/dist/dividerClasses-izm7KFVg.cjs +0 -1
  298. package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
  299. package/dist/extendSxProp-Bv3E507G.cjs +0 -1
  300. package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
  301. package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
  302. package/dist/index-9hEUqvaJ.cjs +0 -1
  303. package/dist/index-BomeQRLD.cjs +0 -5
  304. package/dist/index-DS8G_wjP.cjs +0 -1
  305. package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
  306. package/dist/refType-D-n-tVSl.cjs +0 -1
  307. package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
  308. package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
  309. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
  310. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  311. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  312. package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
  313. package/dist/useForkRef-CTI33h-3.cjs +0 -1
  314. package/dist/useForkRef-C_4o__cU.js +0 -15
  315. package/dist/useSlot-CGbU9jGm.cjs +0 -1
  316. package/dist/useSlot-CqjfyGd9.js +0 -48
  317. package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
  318. package/dist/useTheme-B6wow4M9.cjs +0 -1
  319. package/dist/useTheme-DepbBZga.js +0 -11
  320. package/dist/useTheme-MahNaB8C.cjs +0 -1
  321. package/dist/useThemeProps-BqypsO1h.cjs +0 -1
  322. package/dist/useThemeProps-Drd5oJEF.js +0 -17
  323. package/dist/utils-CUU5fjzL.cjs +0 -1
@@ -1,110 +1,110 @@
1
1
  import * as y from "react";
2
- import { G as wt, H as Lt, I as qe, P as t, n as ct } from "./generateUtilityClasses-CqzQXpT_.js";
3
- import { A as Ft, f as ge, o as vt, i as dt } from "./Select-Vnsr3NSv.js";
4
- import { i as ae } from "./InputBase-YOnatBxw.js";
5
- import { C as Ht } from "./Close-r-ZUhk0-.js";
6
- import { m as se } from "./memoTheme-B0xVysYu.js";
7
- import { u as ft } from "./useSlot-CqjfyGd9.js";
8
- import { jsx as A, jsxs as We } from "react/jsx-runtime";
9
- import { u as kt, s as V, c as Rt } from "./DefaultPropsProvider-CXfMJdg8.js";
10
- import { u as zt } from "./useId-CK6Kn3Tn.js";
2
+ import { F as kt, G as Rt, H as Je, K as Ye, P as t, n as ct } from "./identifier-BJqC6EXa.js";
3
+ import { A as Ht, f as he, o as $t, i as dt } from "./Select-21Pm-BzJ.js";
4
+ import { i as ie } from "./InputBase-CJvM-WXJ.js";
5
+ import { C as zt } from "./Close-CSvE0tu1.js";
6
+ import { m as le } from "./memoTheme-D_Qap2ZW.js";
7
+ import { u as ft } from "./useSlot-DhC6EPU2.js";
8
+ import { jsx as w, jsxs as Ke } from "react/jsx-runtime";
9
+ import { u as Dt, s as H, c as Nt } from "./DefaultPropsProvider-Bg-6nX-u.js";
10
+ import { u as jt } from "./useId-CK6Kn3Tn.js";
11
11
  import { u as gt } from "./useControlled-BYdyS7Pn.js";
12
- import { u as Ge } from "./useEventCallback-BAQJJ3ye.js";
13
- import { s as jt } from "./useForkRef-C_4o__cU.js";
14
- import { P as Dt, i as Ut } from "./Paper-DeL_n4k9.js";
15
- import { P as Nt } from "./Popper-BKxRTMsO.js";
16
- import { C as Bt } from "./Chip-BsErraqe.js";
17
- import { c as Ke } from "./capitalize-Bs7Xs33U.js";
18
- import { I as Et } from "./IconButton-BQW0xjdH.js";
19
- import { c as Ct } from "./chainPropTypes-D9lkm76m.js";
20
- const Wt = (n) => {
12
+ import { u as _e } from "./useEventCallback-Yoj9nCug.js";
13
+ import { s as Ut } from "./Portal-CtsVKOQ9.js";
14
+ import { P as Et, i as Bt } from "./Paper-BTFv1nzl.js";
15
+ import { P as Mt } from "./Popper-YJsxmJsm.js";
16
+ import { C as Wt } from "./Chip-CacnC2L1.js";
17
+ import { I as Vt } from "./IconButton-CT0Plyy5.js";
18
+ import { c as St } from "./chainPropTypes-D9lkm76m.js";
19
+ const Gt = (n) => {
21
20
  const a = y.useRef({});
22
21
  return y.useEffect(() => {
23
22
  a.current = n;
24
23
  }), a.current;
25
24
  };
26
- function $t(n) {
25
+ function Tt(n) {
27
26
  return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
28
27
  }
29
- function Gt(n = {}) {
28
+ function qt(n = {}) {
30
29
  const {
31
30
  ignoreAccents: a = !0,
32
- ignoreCase: c = !0,
33
- limit: g,
34
- matchFrom: D = "any",
35
- stringify: L,
36
- trim: $ = !1
31
+ ignoreCase: d = !0,
32
+ limit: m,
33
+ matchFrom: S = "any",
34
+ stringify: D,
35
+ trim: T = !1
37
36
  } = n;
38
- return (k, {
39
- inputValue: j,
37
+ return (N, {
38
+ inputValue: B,
40
39
  getOptionLabel: I
41
40
  }) => {
42
- let v = $ ? j.trim() : j;
43
- c && (v = v.toLowerCase()), a && (v = $t(v));
44
- const U = v ? k.filter((ie) => {
45
- let R = (L || I)(ie);
46
- return c && (R = R.toLowerCase()), a && (R = $t(R)), D === "start" ? R.startsWith(v) : R.includes(v);
47
- }) : k;
48
- return typeof g == "number" ? U.slice(0, g) : U;
41
+ let C = T ? B.trim() : B;
42
+ d && (C = C.toLowerCase()), a && (C = Tt(C));
43
+ const W = C ? N.filter((pe) => {
44
+ let E = (D || I)(pe);
45
+ return d && (E = E.toLowerCase()), a && (E = Tt(E)), S === "start" ? E.startsWith(C) : E.includes(C);
46
+ }) : N;
47
+ return typeof m == "number" ? W.slice(0, m) : W;
49
48
  };
50
49
  }
51
- const qt = Gt(), _t = 5, Kt = (n) => {
50
+ const Kt = qt(), _t = 5, Jt = (n) => {
52
51
  var a;
53
52
  return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
54
- }, Jt = [];
55
- function Tt(n, a, c) {
56
- if (a || n == null)
53
+ }, Xt = [];
54
+ function At(n, a, d, m) {
55
+ if (a || n == null || m)
57
56
  return "";
58
- const g = c(n);
59
- return typeof g == "string" ? g : "";
57
+ const S = d(n);
58
+ return typeof S == "string" ? S : "";
60
59
  }
61
- function Xt(n) {
60
+ function Yt(n) {
62
61
  const {
63
62
  // eslint-disable-next-line @typescript-eslint/naming-convention
64
- unstable_isActiveElementInListbox: a = Kt,
63
+ unstable_isActiveElementInListbox: a = Jt,
65
64
  // eslint-disable-next-line @typescript-eslint/naming-convention
66
- unstable_classNamePrefix: c = "Mui",
67
- autoComplete: g = !1,
68
- autoHighlight: D = !1,
69
- autoSelect: L = !1,
70
- blurOnSelect: $ = !1,
71
- clearOnBlur: k = !n.freeSolo,
72
- clearOnEscape: j = !1,
65
+ unstable_classNamePrefix: d = "Mui",
66
+ autoComplete: m = !1,
67
+ autoHighlight: S = !1,
68
+ autoSelect: D = !1,
69
+ blurOnSelect: T = !1,
70
+ clearOnBlur: N = !n.freeSolo,
71
+ clearOnEscape: B = !1,
73
72
  componentName: I = "useAutocomplete",
74
- defaultValue: v = n.multiple ? Jt : null,
75
- disableClearable: U = !1,
76
- disableCloseOnSelect: ie = !1,
77
- disabled: R,
78
- disabledItemsFocusable: Se = !1,
79
- disableListWrap: Ae = !1,
80
- filterOptions: bt = qt,
81
- filterSelectedOptions: we = !1,
82
- freeSolo: le = !1,
83
- getOptionDisabled: B,
84
- getOptionKey: Le,
85
- getOptionLabel: Je = (o) => o.label ?? o,
86
- groupBy: Z,
87
- handleHomeEndKeys: Xe = !n.freeSolo,
88
- id: mt,
89
- includeInputInList: be = !1,
90
- inputValue: ke,
91
- isOptionEqualToValue: K = (o, e) => o === e,
92
- multiple: b = !1,
93
- onChange: Ye,
94
- onClose: Qe,
95
- onHighlightChange: Re,
96
- onInputChange: J,
97
- onOpen: De,
73
+ defaultValue: C = n.multiple ? Xt : null,
74
+ disableClearable: W = !1,
75
+ disableCloseOnSelect: pe = !1,
76
+ disabled: E,
77
+ disabledItemsFocusable: we = !1,
78
+ disableListWrap: Le = !1,
79
+ filterOptions: mt = Kt,
80
+ filterSelectedOptions: ke = !1,
81
+ freeSolo: ue = !1,
82
+ getOptionDisabled: G,
83
+ getOptionKey: Re,
84
+ getOptionLabel: Qe = (o) => o.label ?? o,
85
+ groupBy: oe,
86
+ handleHomeEndKeys: Ze = !n.freeSolo,
87
+ id: bt,
88
+ includeInputInList: ye = !1,
89
+ inputValue: De,
90
+ isOptionEqualToValue: Y = (o, e) => o === e,
91
+ multiple: u = !1,
92
+ onChange: et,
93
+ onClose: tt,
94
+ onHighlightChange: Ne,
95
+ onInputChange: Q,
96
+ onOpen: Ee,
98
97
  open: ht,
99
98
  openOnFocus: yt = !1,
100
99
  options: xt,
101
- readOnly: pe = !1,
102
- selectOnFocus: me = !n.freeSolo,
103
- value: Ze
104
- } = n, N = zt(mt);
105
- let P = Je;
106
- P = (o) => {
107
- const e = Je(o);
100
+ readOnly: K = !1,
101
+ renderValue: L,
102
+ selectOnFocus: ot = !n.freeSolo,
103
+ value: Me
104
+ } = n, M = jt(bt);
105
+ let $ = Qe;
106
+ $ = (o) => {
107
+ const e = Qe(o);
108
108
  if (typeof e != "string") {
109
109
  if (process.env.NODE_ENV !== "production") {
110
110
  const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
@@ -114,235 +114,240 @@ function Xt(n) {
114
114
  }
115
115
  return e;
116
116
  };
117
- const he = y.useRef(!1), ye = y.useRef(!0), m = y.useRef(null), E = y.useRef(null), [xe, It] = y.useState(null), [M, Ne] = y.useState(-1), et = D ? 0 : -1, T = y.useRef(et), Ee = y.useRef(Tt(v, b, P)).current, [s, tt] = gt({
118
- controlled: Ze,
119
- default: v,
117
+ const ce = y.useRef(!1), xe = y.useRef(!0), h = y.useRef(null), F = y.useRef(null), [Ie, It] = y.useState(null), [V, Ve] = y.useState(-1), nt = S ? 0 : -1, P = y.useRef(nt), Ot = y.useRef(At(C ?? Me, u, $)).current, [i, Oe] = gt({
118
+ controlled: Me,
119
+ default: C,
120
120
  name: I
121
- }), [f, ue] = gt({
122
- controlled: ke,
123
- default: Ee,
121
+ }), [f, ne] = gt({
122
+ controlled: De,
123
+ default: Ot,
124
124
  name: I,
125
125
  state: "inputValue"
126
- }), [ee, Me] = y.useState(!1), ce = y.useCallback((o, e, r) => {
127
- if (!(b ? s.length < e.length : e !== null) && !k)
126
+ }), [de, Fe] = y.useState(!1), fe = y.useCallback((o, e, r) => {
127
+ if (!(u ? i.length < e.length : e !== null) && !N)
128
128
  return;
129
- const p = Tt(e, b, P);
130
- f !== p && (ue(p), J && J(o, p, r));
131
- }, [P, f, b, J, ue, k, s]), [X, Ie] = gt({
129
+ const s = At(e, u, $, L);
130
+ f !== s && (ne(s), Q && Q(o, s, r));
131
+ }, [$, f, u, Q, ne, N, i, L]), [_, Pe] = gt({
132
132
  controlled: ht,
133
133
  default: !1,
134
134
  name: I,
135
135
  state: "open"
136
- }), [Ot, de] = y.useState(!0), Ve = !b && s != null && f === P(s), w = X && !pe, h = w ? bt(
137
- xt.filter((o) => !(we && (b ? s : [s]).some((e) => e !== null && K(o, e)))),
136
+ }), [Pt, ge] = y.useState(!0), He = !u && i != null && f === $(i), k = _ && !K, b = k ? mt(
137
+ xt.filter((o) => !(ke && (u ? i : [i]).some((e) => e !== null && Y(o, e)))),
138
138
  // we use the empty string to manipulate `filterOptions` to not filter any options
139
139
  // i.e. the filter predicate always returns true
140
140
  {
141
- inputValue: Ve && Ot ? "" : f,
142
- getOptionLabel: P
141
+ inputValue: He && Pt ? "" : f,
142
+ getOptionLabel: $
143
143
  }
144
- ) : [], F = Wt({
145
- filteredOptions: h,
146
- value: s,
144
+ ) : [], z = Gt({
145
+ filteredOptions: b,
146
+ value: i,
147
147
  inputValue: f
148
148
  });
149
149
  y.useEffect(() => {
150
- const o = s !== F.value;
151
- ee && !o || le && !o || ce(null, s, "reset");
152
- }, [s, ce, ee, F.value, le]);
153
- const Fe = X && h.length > 0 && !pe, te = Ge((o) => {
154
- o === -1 ? m.current.focus() : xe.querySelector(`[data-tag-index="${o}"]`).focus();
150
+ const o = i !== z.value;
151
+ de && !o || ue && !o || fe(null, i, "reset");
152
+ }, [i, fe, de, z.value, ue]);
153
+ const ze = _ && b.length > 0 && !K, j = _e((o) => {
154
+ if (o === -1)
155
+ h.current.focus();
156
+ else {
157
+ const e = L ? "data-item-index" : "data-tag-index";
158
+ Ie.querySelector(`[${e}="${o}"]`).focus();
159
+ }
155
160
  });
156
161
  y.useEffect(() => {
157
- b && M > s.length - 1 && (Ne(-1), te(-1));
158
- }, [s, b, M, te]);
159
- function ot(o, e) {
160
- if (!E.current || o < 0 || o >= h.length)
162
+ u && V > i.length - 1 && (Ve(-1), j(-1));
163
+ }, [i, u, V, j]);
164
+ function rt(o, e) {
165
+ if (!F.current || o < 0 || o >= b.length)
161
166
  return -1;
162
167
  let r = o;
163
168
  for (; ; ) {
164
- const i = E.current.querySelector(`[data-option-index="${r}"]`), p = Se ? !1 : !i || i.disabled || i.getAttribute("aria-disabled") === "true";
165
- if (i && i.hasAttribute("tabindex") && !p)
169
+ const p = F.current.querySelector(`[data-option-index="${r}"]`), s = we ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
170
+ if (p && p.hasAttribute("tabindex") && !s)
166
171
  return r;
167
- if (e === "next" ? r = (r + 1) % h.length : r = (r - 1 + h.length) % h.length, r === o)
172
+ if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
168
173
  return -1;
169
174
  }
170
175
  }
171
- const _ = Ge(({
176
+ const J = _e(({
172
177
  event: o,
173
178
  index: e,
174
- reason: r = "auto"
179
+ reason: r
175
180
  }) => {
176
- if (T.current = e, e === -1 ? m.current.removeAttribute("aria-activedescendant") : m.current.setAttribute("aria-activedescendant", `${N}-option-${e}`), Re && Re(o, e === -1 ? null : h[e], r), !E.current)
181
+ if (P.current = e, e === -1 ? h.current.removeAttribute("aria-activedescendant") : h.current.setAttribute("aria-activedescendant", `${M}-option-${e}`), Ne && ["mouse", "keyboard", "touch"].includes(r) && Ne(o, e === -1 ? null : b[e], r), !F.current)
177
182
  return;
178
- const i = E.current.querySelector(`[role="option"].${c}-focused`);
179
- i && (i.classList.remove(`${c}-focused`), i.classList.remove(`${c}-focusVisible`));
180
- let p = E.current;
181
- if (E.current.getAttribute("role") !== "listbox" && (p = E.current.parentElement.querySelector('[role="listbox"]')), !p)
183
+ const p = F.current.querySelector(`[role="option"].${d}-focused`);
184
+ p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
185
+ let s = F.current;
186
+ if (F.current.getAttribute("role") !== "listbox" && (s = F.current.parentElement.querySelector('[role="listbox"]')), !s)
182
187
  return;
183
188
  if (e === -1) {
184
- p.scrollTop = 0;
189
+ s.scrollTop = 0;
185
190
  return;
186
191
  }
187
- const u = E.current.querySelector(`[data-option-index="${e}"]`);
188
- if (u && (u.classList.add(`${c}-focused`), r === "keyboard" && u.classList.add(`${c}-focusVisible`), p.scrollHeight > p.clientHeight && r !== "mouse" && r !== "touch")) {
189
- const x = u, S = p.clientHeight + p.scrollTop, $e = x.offsetTop + x.offsetHeight;
190
- $e > S ? p.scrollTop = $e - p.clientHeight : x.offsetTop - x.offsetHeight * (Z ? 1.3 : 0) < p.scrollTop && (p.scrollTop = x.offsetTop - x.offsetHeight * (Z ? 1.3 : 0));
192
+ const g = F.current.querySelector(`[data-option-index="${e}"]`);
193
+ if (g && (g.classList.add(`${d}-focused`), r === "keyboard" && g.classList.add(`${d}-focusVisible`), s.scrollHeight > s.clientHeight && r !== "mouse" && r !== "touch")) {
194
+ const x = g, A = s.clientHeight + s.scrollTop, Te = x.offsetTop + x.offsetHeight;
195
+ Te > A ? s.scrollTop = Te - s.clientHeight : x.offsetTop - x.offsetHeight * (oe ? 1.3 : 0) < s.scrollTop && (s.scrollTop = x.offsetTop - x.offsetHeight * (oe ? 1.3 : 0));
191
196
  }
192
- }), H = Ge(({
197
+ }), U = _e(({
193
198
  event: o,
194
199
  diff: e,
195
200
  direction: r = "next",
196
- reason: i = "auto"
201
+ reason: p
197
202
  }) => {
198
- if (!w)
203
+ if (!k)
199
204
  return;
200
- const u = ot((() => {
201
- const x = h.length - 1;
205
+ const g = rt((() => {
206
+ const x = b.length - 1;
202
207
  if (e === "reset")
203
- return et;
208
+ return nt;
204
209
  if (e === "start")
205
210
  return 0;
206
211
  if (e === "end")
207
212
  return x;
208
- const S = T.current + e;
209
- return S < 0 ? S === -1 && be ? -1 : Ae && T.current !== -1 || Math.abs(e) > 1 ? 0 : x : S > x ? S === x + 1 && be ? -1 : Ae || Math.abs(e) > 1 ? x : 0 : S;
213
+ const A = P.current + e;
214
+ return A < 0 ? A === -1 && ye ? -1 : Le && P.current !== -1 || Math.abs(e) > 1 ? 0 : x : A > x ? A === x + 1 && ye ? -1 : Le || Math.abs(e) > 1 ? x : 0 : A;
210
215
  })(), r);
211
- if (_({
212
- index: u,
213
- reason: i,
216
+ if (J({
217
+ index: g,
218
+ reason: p,
214
219
  event: o
215
- }), g && e !== "reset")
216
- if (u === -1)
217
- m.current.value = f;
220
+ }), m && e !== "reset")
221
+ if (g === -1)
222
+ h.current.value = f;
218
223
  else {
219
- const x = P(h[u]);
220
- m.current.value = x, x.toLowerCase().indexOf(f.toLowerCase()) === 0 && f.length > 0 && m.current.setSelectionRange(f.length, x.length);
224
+ const x = $(b[g]);
225
+ h.current.value = x, x.toLowerCase().indexOf(f.toLowerCase()) === 0 && f.length > 0 && h.current.setSelectionRange(f.length, x.length);
221
226
  }
222
- }), nt = () => {
227
+ }), at = () => {
223
228
  const o = (e, r) => {
224
- const i = e ? P(e) : "", p = r ? P(r) : "";
225
- return i === p;
229
+ const p = e ? $(e) : "", s = r ? $(r) : "";
230
+ return p === s;
226
231
  };
227
- if (T.current !== -1 && F.filteredOptions && F.filteredOptions.length !== h.length && F.inputValue === f && (b ? s.length === F.value.length && F.value.every((e, r) => P(s[r]) === P(e)) : o(F.value, s))) {
228
- const e = F.filteredOptions[T.current];
232
+ if (P.current !== -1 && z.filteredOptions && z.filteredOptions.length !== b.length && z.inputValue === f && (u ? i.length === z.value.length && z.value.every((e, r) => $(i[r]) === $(e)) : o(z.value, i))) {
233
+ const e = z.filteredOptions[P.current];
229
234
  if (e)
230
- return h.findIndex((r) => P(r) === P(e));
235
+ return b.findIndex((r) => $(r) === $(e));
231
236
  }
232
237
  return -1;
233
- }, Oe = y.useCallback(() => {
234
- if (!w)
238
+ }, ve = y.useCallback(() => {
239
+ if (!k)
235
240
  return;
236
- const o = nt();
241
+ const o = at();
237
242
  if (o !== -1) {
238
- T.current = o;
243
+ P.current = o;
239
244
  return;
240
245
  }
241
- const e = b ? s[0] : s;
242
- if (h.length === 0 || e == null) {
243
- H({
246
+ const e = u ? i[0] : i;
247
+ if (b.length === 0 || e == null) {
248
+ U({
244
249
  diff: "reset"
245
250
  });
246
251
  return;
247
252
  }
248
- if (E.current) {
253
+ if (F.current) {
249
254
  if (e != null) {
250
- const r = h[T.current];
251
- if (b && r && s.findIndex((p) => K(r, p)) !== -1)
255
+ const r = b[P.current];
256
+ if (u && r && i.findIndex((s) => Y(r, s)) !== -1)
252
257
  return;
253
- const i = h.findIndex((p) => K(p, e));
254
- i === -1 ? H({
258
+ const p = b.findIndex((s) => Y(s, e));
259
+ p === -1 ? U({
255
260
  diff: "reset"
256
- }) : _({
257
- index: i
261
+ }) : J({
262
+ index: p
258
263
  });
259
264
  return;
260
265
  }
261
- if (T.current >= h.length - 1) {
262
- _({
263
- index: h.length - 1
266
+ if (P.current >= b.length - 1) {
267
+ J({
268
+ index: b.length - 1
264
269
  });
265
270
  return;
266
271
  }
267
- _({
268
- index: T.current
272
+ J({
273
+ index: P.current
269
274
  });
270
275
  }
271
276
  }, [
272
277
  // Only sync the highlighted index when the option switch between empty and not
273
- h.length,
278
+ b.length,
274
279
  // Don't sync the highlighted index with the value when multiple
275
280
  // eslint-disable-next-line react-hooks/exhaustive-deps
276
- b ? !1 : s,
277
- we,
278
- H,
279
- _,
280
- w,
281
+ u ? !1 : i,
282
+ ke,
283
+ U,
284
+ J,
285
+ k,
281
286
  f,
282
- b
283
- ]), rt = Ge((o) => {
284
- jt(E, o), o && Oe();
287
+ u
288
+ ]), st = _e((o) => {
289
+ Ut(F, o), o && ve();
285
290
  });
286
291
  process.env.NODE_ENV !== "production" && y.useEffect(() => {
287
- (!m.current || m.current.nodeName !== "INPUT") && (m.current && m.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${I} 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(`
288
- `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${m.current} while an HTMLInputElement was expected.`, `Instead, ${I} expects an input element.`, "", I === "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(`
292
+ (!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${I} 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(`
293
+ `)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${I} expects an input element.`, "", I === "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(`
289
294
  `)));
290
295
  }, [I]), y.useEffect(() => {
291
- Oe();
292
- }, [Oe]);
293
- const z = (o) => {
294
- X || (Ie(!0), de(!0), De && De(o));
295
- }, oe = (o, e) => {
296
- X && (Ie(!1), Qe && Qe(o, e));
297
- }, Y = (o, e, r, i) => {
298
- if (b) {
299
- if (s.length === e.length && s.every((p, u) => p === e[u]))
296
+ ve();
297
+ }, [ve]);
298
+ const R = (o) => {
299
+ _ || (Pe(!0), ge(!0), Ee && Ee(o));
300
+ }, re = (o, e) => {
301
+ _ && (Pe(!1), tt && tt(o, e));
302
+ }, X = (o, e, r, p) => {
303
+ if (u) {
304
+ if (i.length === e.length && i.every((s, g) => s === e[g]))
300
305
  return;
301
- } else if (s === e)
306
+ } else if (i === e)
302
307
  return;
303
- Ye && Ye(o, e, r, i), tt(e);
304
- }, fe = y.useRef(!1), W = (o, e, r = "selectOption", i = "options") => {
305
- let p = r, u = e;
306
- if (b) {
307
- if (u = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
308
- const S = u.filter(($e) => K(e, $e));
309
- S.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${I} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${S.length} matches.`].join(`
308
+ et && et(o, e, r, p), Oe(e);
309
+ }, me = y.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
310
+ let s = r, g = e;
311
+ if (u) {
312
+ if (g = Array.isArray(i) ? i.slice() : [], process.env.NODE_ENV !== "production") {
313
+ const A = g.filter((Te) => Y(e, Te));
314
+ A.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${I} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${A.length} matches.`].join(`
310
315
  `));
311
316
  }
312
- const x = u.findIndex((S) => K(e, S));
313
- x === -1 ? u.push(e) : i !== "freeSolo" && (u.splice(x, 1), p = "removeOption");
317
+ const x = g.findIndex((A) => Y(e, A));
318
+ x === -1 ? g.push(e) : p !== "freeSolo" && (g.splice(x, 1), s = "removeOption");
314
319
  }
315
- ce(o, u, p), Y(o, u, p, {
320
+ fe(o, g, s), X(o, g, s, {
316
321
  option: e
317
- }), !ie && (!o || !o.ctrlKey && !o.metaKey) && oe(o, p), ($ === !0 || $ === "touch" && fe.current || $ === "mouse" && !fe.current) && m.current.blur();
322
+ }), !pe && (!o || !o.ctrlKey && !o.metaKey) && re(o, s), (T === !0 || T === "touch" && me.current || T === "mouse" && !me.current) && h.current.blur();
318
323
  };
319
- function He(o, e) {
324
+ function je(o, e) {
320
325
  if (o === -1)
321
326
  return -1;
322
327
  let r = o;
323
328
  for (; ; ) {
324
- if (e === "next" && r === s.length || e === "previous" && r === -1)
329
+ if (e === "next" && r === i.length || e === "previous" && r === -1)
325
330
  return -1;
326
- const i = xe.querySelector(`[data-tag-index="${r}"]`);
327
- if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
331
+ const p = L ? "data-item-index" : "data-tag-index", s = Ie.querySelector(`[${p}="${r}"]`);
332
+ if (!s || !s.hasAttribute("tabindex") || s.disabled || s.getAttribute("aria-disabled") === "true")
328
333
  r += e === "next" ? 1 : -1;
329
334
  else
330
335
  return r;
331
336
  }
332
337
  }
333
- const ze = (o, e) => {
334
- if (!b)
338
+ const Ue = (o, e) => {
339
+ if (!u)
335
340
  return;
336
- f === "" && oe(o, "toggleInput");
337
- let r = M;
338
- M === -1 ? f === "" && e === "previous" && (r = s.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === s.length && (r = -1)), r = He(r, e), Ne(r), te(r);
339
- }, ne = (o) => {
340
- he.current = !0, ue(""), J && J(o, "", "clear"), Y(o, b ? [] : null, "clear");
341
- }, at = (o) => (e) => {
342
- if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (M !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ne(-1), te(-1)), e.which !== 229))
341
+ f === "" && re(o, "toggleInput");
342
+ let r = V;
343
+ V === -1 ? f === "" && e === "previous" && (r = i.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === i.length && (r = -1)), r = je(r, e), Ve(r), j(r);
344
+ }, ae = (o) => {
345
+ ce.current = !0, ne(""), Q && Q(o, "", "clear"), X(o, u ? [] : null, "clear");
346
+ }, it = (o) => (e) => {
347
+ if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
343
348
  switch (e.key) {
344
349
  case "Home":
345
- w && Xe && (e.preventDefault(), H({
350
+ k && Ze && (e.preventDefault(), U({
346
351
  diff: "start",
347
352
  direction: "next",
348
353
  reason: "keyboard",
@@ -350,7 +355,7 @@ function Xt(n) {
350
355
  }));
351
356
  break;
352
357
  case "End":
353
- w && Xe && (e.preventDefault(), H({
358
+ k && Ze && (e.preventDefault(), U({
354
359
  diff: "end",
355
360
  direction: "previous",
356
361
  reason: "keyboard",
@@ -358,186 +363,209 @@ function Xt(n) {
358
363
  }));
359
364
  break;
360
365
  case "PageUp":
361
- e.preventDefault(), H({
366
+ e.preventDefault(), U({
362
367
  diff: -5,
363
368
  direction: "previous",
364
369
  reason: "keyboard",
365
370
  event: e
366
- }), z(e);
371
+ }), R(e);
367
372
  break;
368
373
  case "PageDown":
369
- e.preventDefault(), H({
374
+ e.preventDefault(), U({
370
375
  diff: _t,
371
376
  direction: "next",
372
377
  reason: "keyboard",
373
378
  event: e
374
- }), z(e);
379
+ }), R(e);
375
380
  break;
376
381
  case "ArrowDown":
377
- e.preventDefault(), H({
382
+ e.preventDefault(), U({
378
383
  diff: 1,
379
384
  direction: "next",
380
385
  reason: "keyboard",
381
386
  event: e
382
- }), z(e);
387
+ }), R(e);
383
388
  break;
384
389
  case "ArrowUp":
385
- e.preventDefault(), H({
390
+ e.preventDefault(), U({
386
391
  diff: -1,
387
392
  direction: "previous",
388
393
  reason: "keyboard",
389
394
  event: e
390
- }), z(e);
395
+ }), R(e);
391
396
  break;
392
397
  case "ArrowLeft":
393
- ze(e, "previous");
398
+ !u && L ? j(0) : Ue(e, "previous");
394
399
  break;
395
400
  case "ArrowRight":
396
- ze(e, "next");
401
+ !u && L ? j(-1) : Ue(e, "next");
397
402
  break;
398
403
  case "Enter":
399
- if (T.current !== -1 && w) {
400
- const r = h[T.current], i = B ? B(r) : !1;
401
- if (e.preventDefault(), i)
404
+ if (P.current !== -1 && k) {
405
+ const r = b[P.current], p = G ? G(r) : !1;
406
+ if (e.preventDefault(), p)
402
407
  return;
403
- W(e, r, "selectOption"), g && m.current.setSelectionRange(m.current.value.length, m.current.value.length);
404
- } else le && f !== "" && Ve === !1 && (b && e.preventDefault(), W(e, f, "createOption", "freeSolo"));
408
+ q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
409
+ } else ue && f !== "" && He === !1 && (u && e.preventDefault(), q(e, f, "createOption", "freeSolo"));
405
410
  break;
406
411
  case "Escape":
407
- w ? (e.preventDefault(), e.stopPropagation(), oe(e, "escape")) : j && (f !== "" || b && s.length > 0) && (e.preventDefault(), e.stopPropagation(), ne(e));
412
+ k ? (e.preventDefault(), e.stopPropagation(), re(e, "escape")) : B && (f !== "" || u && i.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), ae(e));
408
413
  break;
409
414
  case "Backspace":
410
- if (b && !pe && f === "" && s.length > 0) {
411
- const r = M === -1 ? s.length - 1 : M, i = s.slice();
412
- i.splice(r, 1), Y(e, i, "removeOption", {
413
- option: s[r]
415
+ if (u && !K && f === "" && i.length > 0) {
416
+ const r = V === -1 ? i.length - 1 : V, p = i.slice();
417
+ p.splice(r, 1), X(e, p, "removeOption", {
418
+ option: i[r]
414
419
  });
415
420
  }
421
+ !u && L && !K && (Oe(null), j(-1));
416
422
  break;
417
423
  case "Delete":
418
- if (b && !pe && f === "" && s.length > 0 && M !== -1) {
419
- const r = M, i = s.slice();
420
- i.splice(r, 1), Y(e, i, "removeOption", {
421
- option: s[r]
424
+ if (u && !K && f === "" && i.length > 0 && V !== -1) {
425
+ const r = V, p = i.slice();
426
+ p.splice(r, 1), X(e, p, "removeOption", {
427
+ option: i[r]
422
428
  });
423
429
  }
430
+ !u && L && !K && (Oe(null), j(-1));
424
431
  break;
425
432
  }
426
- }, st = (o) => {
427
- Me(!0), yt && !he.current && z(o);
428
- }, re = (o) => {
429
- if (a(E)) {
430
- m.current.focus();
433
+ }, lt = (o) => {
434
+ Fe(!0), yt && !ce.current && R(o);
435
+ }, se = (o) => {
436
+ if (a(F)) {
437
+ h.current.focus();
431
438
  return;
432
439
  }
433
- Me(!1), ye.current = !0, he.current = !1, L && T.current !== -1 && w ? W(o, h[T.current], "blur") : L && le && f !== "" ? W(o, f, "blur", "freeSolo") : k && ce(o, s, "blur"), oe(o, "blur");
434
- }, Pe = (o) => {
440
+ Fe(!1), xe.current = !0, ce.current = !1, D && P.current !== -1 && k ? q(o, b[P.current], "blur") : D && ue && f !== "" ? q(o, f, "blur", "freeSolo") : N && fe(o, i, "blur"), re(o, "blur");
441
+ }, Ce = (o) => {
435
442
  const e = o.target.value;
436
- f !== e && (ue(e), de(!1), J && J(o, e, "input")), e === "" ? !U && !b && Y(o, null, "clear") : z(o);
437
- }, ve = (o) => {
443
+ f !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
444
+ }, $e = (o) => {
438
445
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
439
- T.current !== e && _({
446
+ P.current !== e && J({
440
447
  event: o,
441
448
  index: e,
442
449
  reason: "mouse"
443
450
  });
444
- }, it = (o) => {
445
- _({
451
+ }, pt = (o) => {
452
+ J({
446
453
  event: o,
447
454
  index: Number(o.currentTarget.getAttribute("data-option-index")),
448
455
  reason: "touch"
449
- }), fe.current = !0;
450
- }, lt = (o) => {
456
+ }), me.current = !0;
457
+ }, ut = (o) => {
451
458
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
452
- W(o, h[e], "selectOption"), fe.current = !1;
453
- }, pt = (o) => (e) => {
454
- const r = s.slice();
455
- r.splice(o, 1), Y(e, r, "removeOption", {
456
- option: s[o]
459
+ q(o, b[e], "selectOption"), me.current = !1;
460
+ }, Be = (o) => (e) => {
461
+ const r = i.slice();
462
+ r.splice(o, 1), X(e, r, "removeOption", {
463
+ option: i[o]
457
464
  });
458
- }, ut = (o) => {
459
- X ? oe(o, "toggleInput") : z(o);
460
- }, Ce = (o) => {
461
- o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== N && o.preventDefault();
462
- }, C = (o) => {
463
- o.currentTarget.contains(o.target) && (m.current.focus(), me && ye.current && m.current.selectionEnd - m.current.selectionStart === 0 && m.current.select(), ye.current = !1);
465
+ }, vt = (o) => {
466
+ X(o, null, "removeOption", {
467
+ option: i
468
+ });
469
+ }, be = (o) => {
470
+ _ ? re(o, "toggleInput") : R(o);
471
+ }, v = (o) => {
472
+ o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
464
473
  }, O = (o) => {
465
- !R && (f === "" || !X) && ut(o);
474
+ o.currentTarget.contains(o.target) && (h.current.focus(), ot && xe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), xe.current = !1);
475
+ }, Z = (o) => {
476
+ !E && (f === "" || !_) && be(o);
466
477
  };
467
- let G = le && f.length > 0;
468
- G = G || (b ? s.length > 0 : s !== null);
469
- let je = h;
470
- if (Z) {
478
+ let Se = ue && f.length > 0;
479
+ Se = Se || (u ? i.length > 0 : i !== null);
480
+ let We = b;
481
+ if (oe) {
471
482
  const o = /* @__PURE__ */ new Map();
472
483
  let e = !1;
473
- je = h.reduce((r, i, p) => {
474
- const u = Z(i);
475
- return r.length > 0 && r[r.length - 1].group === u ? r[r.length - 1].options.push(i) : (process.env.NODE_ENV !== "production" && (o.get(u) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${I} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(u, !0)), r.push({
476
- key: p,
477
- index: p,
478
- group: u,
479
- options: [i]
484
+ We = b.reduce((r, p, s) => {
485
+ const g = oe(p);
486
+ return r.length > 0 && r[r.length - 1].group === g ? r[r.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (o.get(g) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${I} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(g, !0)), r.push({
487
+ key: s,
488
+ index: s,
489
+ group: g,
490
+ options: [p]
480
491
  })), r;
481
492
  }, []);
482
493
  }
483
- return R && ee && re(), {
494
+ return E && de && se(), {
484
495
  getRootProps: (o = {}) => ({
485
496
  ...o,
486
- onKeyDown: at(o),
487
- onMouseDown: Ce,
488
- onClick: C
497
+ onKeyDown: it(o),
498
+ onMouseDown: v,
499
+ onClick: O
489
500
  }),
490
501
  getInputLabelProps: () => ({
491
- id: `${N}-label`,
492
- htmlFor: N
502
+ id: `${M}-label`,
503
+ htmlFor: M
493
504
  }),
494
505
  getInputProps: () => ({
495
- id: N,
506
+ id: M,
496
507
  value: f,
497
- onBlur: re,
498
- onFocus: st,
499
- onChange: Pe,
500
- onMouseDown: O,
508
+ onBlur: se,
509
+ onFocus: lt,
510
+ onChange: Ce,
511
+ onMouseDown: Z,
501
512
  // if open then this is handled imperatively so don't let react override
502
513
  // only have an opinion about this when closed
503
- "aria-activedescendant": w ? "" : null,
504
- "aria-autocomplete": g ? "both" : "list",
505
- "aria-controls": Fe ? `${N}-listbox` : void 0,
506
- "aria-expanded": Fe,
514
+ "aria-activedescendant": k ? "" : null,
515
+ "aria-autocomplete": m ? "both" : "list",
516
+ "aria-controls": ze ? `${M}-listbox` : void 0,
517
+ "aria-expanded": ze,
507
518
  // Disable browser's suggestion that might overlap with the popup.
508
519
  // Handle autocomplete but not autofill.
509
520
  autoComplete: "off",
510
- ref: m,
521
+ ref: h,
511
522
  autoCapitalize: "none",
512
523
  spellCheck: "false",
513
524
  role: "combobox",
514
- disabled: R
525
+ disabled: E
515
526
  }),
516
527
  getClearProps: () => ({
517
528
  tabIndex: -1,
518
529
  type: "button",
519
- onClick: ne
530
+ onClick: ae
531
+ }),
532
+ getItemProps: ({
533
+ index: o = 0
534
+ } = {}) => ({
535
+ ...u && {
536
+ key: o
537
+ },
538
+ ...L ? {
539
+ "data-item-index": o
540
+ } : {
541
+ "data-tag-index": o
542
+ },
543
+ tabIndex: -1,
544
+ ...!K && {
545
+ onDelete: u ? Be(o) : vt
546
+ }
520
547
  }),
521
548
  getPopupIndicatorProps: () => ({
522
549
  tabIndex: -1,
523
550
  type: "button",
524
- onClick: ut
551
+ onClick: be
525
552
  }),
553
+ // deprecated
526
554
  getTagProps: ({
527
555
  index: o
528
556
  }) => ({
529
557
  key: o,
530
558
  "data-tag-index": o,
531
559
  tabIndex: -1,
532
- ...!pe && {
533
- onDelete: pt(o)
560
+ ...!K && {
561
+ onDelete: Be(o)
534
562
  }
535
563
  }),
536
564
  getListboxProps: () => ({
537
565
  role: "listbox",
538
- id: `${N}-listbox`,
539
- "aria-labelledby": `${N}-label`,
540
- ref: rt,
566
+ id: `${M}-listbox`,
567
+ "aria-labelledby": `${M}-label`,
568
+ ref: st,
541
569
  onMouseDown: (o) => {
542
570
  o.preventDefault();
543
571
  }
@@ -546,57 +574,59 @@ function Xt(n) {
546
574
  index: o,
547
575
  option: e
548
576
  }) => {
549
- const r = (b ? s : [s]).some((p) => p != null && K(e, p)), i = B ? B(e) : !1;
577
+ const r = (u ? i : [i]).some((s) => s != null && Y(e, s)), p = G ? G(e) : !1;
550
578
  return {
551
- key: (Le == null ? void 0 : Le(e)) ?? P(e),
579
+ key: (Re == null ? void 0 : Re(e)) ?? $(e),
552
580
  tabIndex: -1,
553
581
  role: "option",
554
- id: `${N}-option-${o}`,
555
- onMouseMove: ve,
556
- onClick: lt,
557
- onTouchStart: it,
582
+ id: `${M}-option-${o}`,
583
+ onMouseMove: $e,
584
+ onClick: ut,
585
+ onTouchStart: pt,
558
586
  "data-option-index": o,
559
- "aria-disabled": i,
587
+ "aria-disabled": p,
560
588
  "aria-selected": r
561
589
  };
562
590
  },
563
- id: N,
591
+ id: M,
564
592
  inputValue: f,
565
- value: s,
566
- dirty: G,
567
- expanded: w && xe,
568
- popupOpen: w,
569
- focused: ee || M !== -1,
570
- anchorEl: xe,
593
+ value: i,
594
+ dirty: Se,
595
+ expanded: k && Ie,
596
+ popupOpen: k,
597
+ focused: de || V !== -1,
598
+ anchorEl: Ie,
571
599
  setAnchorEl: It,
572
- focusedTag: M,
573
- groupedOptions: je
600
+ focusedItem: V,
601
+ // deprecated
602
+ focusedTag: V,
603
+ groupedOptions: We
574
604
  };
575
605
  }
576
- function Yt(n) {
577
- return Lt("MuiListSubheader", n);
606
+ function Qt(n) {
607
+ return Rt("MuiListSubheader", n);
578
608
  }
579
- const Do = wt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Qt = (n) => {
609
+ const Do = kt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
580
610
  const {
581
611
  classes: a,
582
- color: c,
583
- disableGutters: g,
584
- inset: D,
585
- disableSticky: L
586
- } = n, $ = {
587
- root: ["root", c !== "default" && `color${Ke(c)}`, !g && "gutters", D && "inset", !L && "sticky"]
612
+ color: d,
613
+ disableGutters: m,
614
+ inset: S,
615
+ disableSticky: D
616
+ } = n, T = {
617
+ root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters", S && "inset", !D && "sticky"]
588
618
  };
589
- return Rt($, Yt, a);
590
- }, Zt = V("li", {
619
+ return Nt(T, Qt, a);
620
+ }, eo = H("li", {
591
621
  name: "MuiListSubheader",
592
622
  slot: "Root",
593
623
  overridesResolver: (n, a) => {
594
624
  const {
595
- ownerState: c
625
+ ownerState: d
596
626
  } = n;
597
- return [a.root, c.color !== "default" && a[`color${Ke(c.color)}`], !c.disableGutters && a.gutters, c.inset && a.inset, !c.disableSticky && a.sticky];
627
+ return [a.root, d.color !== "default" && a[`color${Ye(d.color)}`], !d.disableGutters && a.gutters, d.inset && a.inset, !d.disableSticky && a.sticky];
598
628
  }
599
- })(se(({
629
+ })(le(({
600
630
  theme: n
601
631
  }) => ({
602
632
  boxSizing: "border-box",
@@ -646,36 +676,36 @@ const Do = wt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
646
676
  backgroundColor: (n.vars || n).palette.background.paper
647
677
  }
648
678
  }]
649
- }))), _e = /* @__PURE__ */ y.forwardRef(function(a, c) {
650
- const g = kt({
679
+ }))), Xe = /* @__PURE__ */ y.forwardRef(function(a, d) {
680
+ const m = Dt({
651
681
  props: a,
652
682
  name: "MuiListSubheader"
653
683
  }), {
654
- className: D,
655
- color: L = "default",
656
- component: $ = "li",
657
- disableGutters: k = !1,
658
- disableSticky: j = !1,
684
+ className: S,
685
+ color: D = "default",
686
+ component: T = "li",
687
+ disableGutters: N = !1,
688
+ disableSticky: B = !1,
659
689
  inset: I = !1,
660
- ...v
661
- } = g, U = {
662
- ...g,
663
- color: L,
664
- component: $,
665
- disableGutters: k,
666
- disableSticky: j,
690
+ ...C
691
+ } = m, W = {
692
+ ...m,
693
+ color: D,
694
+ component: T,
695
+ disableGutters: N,
696
+ disableSticky: B,
667
697
  inset: I
668
- }, ie = Qt(U);
669
- return /* @__PURE__ */ A(Zt, {
670
- as: $,
671
- className: qe(ie.root, D),
672
- ref: c,
673
- ownerState: U,
674
- ...v
698
+ }, pe = Zt(W);
699
+ return /* @__PURE__ */ w(eo, {
700
+ as: T,
701
+ className: Je(pe.root, S),
702
+ ref: d,
703
+ ownerState: W,
704
+ ...C
675
705
  });
676
706
  });
677
- _e && (_e.muiSkipListHighlight = !0);
678
- process.env.NODE_ENV !== "production" && (_e.propTypes = {
707
+ Xe && (Xe.muiSkipListHighlight = !0);
708
+ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
679
709
  // ┌────────────────────────────── Warning ──────────────────────────────┐
680
710
  // │ These PropTypes are generated from the TypeScript type definitions. │
681
711
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -722,32 +752,32 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
722
752
  */
723
753
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
724
754
  });
725
- function eo(n) {
726
- return Lt("MuiAutocomplete", n);
755
+ function to(n) {
756
+ return Rt("MuiAutocomplete", n);
727
757
  }
728
- const l = wt("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"]);
729
- var St, At;
730
- const to = (n) => {
758
+ const l = kt("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"]);
759
+ var wt, Lt;
760
+ const oo = (n) => {
731
761
  const {
732
762
  classes: a,
733
- disablePortal: c,
734
- expanded: g,
735
- focused: D,
736
- fullWidth: L,
737
- hasClearIcon: $,
738
- hasPopupIcon: k,
739
- inputFocused: j,
763
+ disablePortal: d,
764
+ expanded: m,
765
+ focused: S,
766
+ fullWidth: D,
767
+ hasClearIcon: T,
768
+ hasPopupIcon: N,
769
+ inputFocused: B,
740
770
  popupOpen: I,
741
- size: v
742
- } = n, U = {
743
- root: ["root", g && "expanded", D && "focused", L && "fullWidth", $ && "hasClearIcon", k && "hasPopupIcon"],
771
+ size: C
772
+ } = n, W = {
773
+ root: ["root", m && "expanded", S && "focused", D && "fullWidth", T && "hasClearIcon", N && "hasPopupIcon"],
744
774
  inputRoot: ["inputRoot"],
745
- input: ["input", j && "inputFocused"],
746
- tag: ["tag", `tagSize${Ke(v)}`],
775
+ input: ["input", B && "inputFocused"],
776
+ tag: ["tag", `tagSize${Ye(C)}`],
747
777
  endAdornment: ["endAdornment"],
748
778
  clearIndicator: ["clearIndicator"],
749
779
  popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
750
- popper: ["popper", c && "popperDisablePortal"],
780
+ popper: ["popper", d && "popperDisablePortal"],
751
781
  paper: ["paper"],
752
782
  listbox: ["listbox"],
753
783
  loading: ["loading"],
@@ -756,31 +786,31 @@ const to = (n) => {
756
786
  groupLabel: ["groupLabel"],
757
787
  groupUl: ["groupUl"]
758
788
  };
759
- return Rt(U, eo, a);
760
- }, oo = V("div", {
789
+ return Nt(W, to, a);
790
+ }, no = H("div", {
761
791
  name: "MuiAutocomplete",
762
792
  slot: "Root",
763
793
  overridesResolver: (n, a) => {
764
794
  const {
765
- ownerState: c
795
+ ownerState: d
766
796
  } = n, {
767
- fullWidth: g,
768
- hasClearIcon: D,
769
- hasPopupIcon: L,
770
- inputFocused: $,
771
- size: k
772
- } = c;
797
+ fullWidth: m,
798
+ hasClearIcon: S,
799
+ hasPopupIcon: D,
800
+ inputFocused: T,
801
+ size: N
802
+ } = d;
773
803
  return [{
774
804
  [`& .${l.tag}`]: a.tag
775
805
  }, {
776
- [`& .${l.tag}`]: a[`tagSize${Ke(k)}`]
806
+ [`& .${l.tag}`]: a[`tagSize${Ye(N)}`]
777
807
  }, {
778
808
  [`& .${l.inputRoot}`]: a.inputRoot
779
809
  }, {
780
810
  [`& .${l.input}`]: a.input
781
811
  }, {
782
- [`& .${l.input}`]: $ && a.inputFocused
783
- }, a.root, g && a.fullWidth, L && a.hasPopupIcon, D && a.hasClearIcon];
812
+ [`& .${l.input}`]: T && a.inputFocused
813
+ }, a.root, m && a.fullWidth, D && a.hasPopupIcon, S && a.hasClearIcon];
784
814
  }
785
815
  })({
786
816
  [`&.${l.focused} .${l.clearIndicator}`]: {
@@ -814,12 +844,12 @@ const to = (n) => {
814
844
  padding: "4px 4px 4px 0px"
815
845
  }
816
846
  },
817
- [`& .${dt.root}.${ae.sizeSmall}`]: {
847
+ [`& .${dt.root}.${ie.sizeSmall}`]: {
818
848
  [`& .${dt.input}`]: {
819
849
  padding: "2px 4px 3px 0"
820
850
  }
821
851
  },
822
- [`& .${vt.root}`]: {
852
+ [`& .${$t.root}`]: {
823
853
  padding: 9,
824
854
  [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
825
855
  paddingRight: 39
@@ -834,7 +864,7 @@ const to = (n) => {
834
864
  right: 9
835
865
  }
836
866
  },
837
- [`& .${vt.root}.${ae.sizeSmall}`]: {
867
+ [`& .${$t.root}.${ie.sizeSmall}`]: {
838
868
  // Don't specify paddingRight, as it overrides the default value set when there is only
839
869
  // one of the popup or clear icon as the specificity is equal so the latter one wins
840
870
  paddingTop: 6,
@@ -844,7 +874,7 @@ const to = (n) => {
844
874
  padding: "2.5px 4px 2.5px 8px"
845
875
  }
846
876
  },
847
- [`& .${ge.root}`]: {
877
+ [`& .${he.root}`]: {
848
878
  paddingTop: 19,
849
879
  paddingLeft: 8,
850
880
  [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
@@ -853,23 +883,23 @@ const to = (n) => {
853
883
  [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
854
884
  paddingRight: 65
855
885
  },
856
- [`& .${ge.input}`]: {
886
+ [`& .${he.input}`]: {
857
887
  padding: "7px 4px"
858
888
  },
859
889
  [`& .${l.endAdornment}`]: {
860
890
  right: 9
861
891
  }
862
892
  },
863
- [`& .${ge.root}.${ae.sizeSmall}`]: {
893
+ [`& .${he.root}.${ie.sizeSmall}`]: {
864
894
  paddingBottom: 1,
865
- [`& .${ge.input}`]: {
895
+ [`& .${he.input}`]: {
866
896
  padding: "2.5px 4px"
867
897
  }
868
898
  },
869
- [`& .${ae.hiddenLabel}`]: {
899
+ [`& .${ie.hiddenLabel}`]: {
870
900
  paddingTop: 8
871
901
  },
872
- [`& .${ge.root}.${ae.hiddenLabel}`]: {
902
+ [`& .${he.root}.${ie.hiddenLabel}`]: {
873
903
  paddingTop: 0,
874
904
  paddingBottom: 0,
875
905
  [`& .${l.input}`]: {
@@ -877,7 +907,7 @@ const to = (n) => {
877
907
  paddingBottom: 17
878
908
  }
879
909
  },
880
- [`& .${ge.root}.${ae.hiddenLabel}.${ae.sizeSmall}`]: {
910
+ [`& .${he.root}.${ie.hiddenLabel}.${ie.sizeSmall}`]: {
881
911
  [`& .${l.input}`]: {
882
912
  paddingTop: 8,
883
913
  paddingBottom: 9
@@ -924,7 +954,7 @@ const to = (n) => {
924
954
  }
925
955
  }
926
956
  }]
927
- }), no = V("div", {
957
+ }), ro = H("div", {
928
958
  name: "MuiAutocomplete",
929
959
  slot: "EndAdornment",
930
960
  overridesResolver: (n, a) => a.endAdornment
@@ -934,7 +964,7 @@ const to = (n) => {
934
964
  right: 0,
935
965
  top: "50%",
936
966
  transform: "translate(0, -50%)"
937
- }), ro = V(Et, {
967
+ }), ao = H(Vt, {
938
968
  name: "MuiAutocomplete",
939
969
  slot: "ClearIndicator",
940
970
  overridesResolver: (n, a) => a.clearIndicator
@@ -942,14 +972,14 @@ const to = (n) => {
942
972
  marginRight: -2,
943
973
  padding: 4,
944
974
  visibility: "hidden"
945
- }), ao = V(Et, {
975
+ }), so = H(Vt, {
946
976
  name: "MuiAutocomplete",
947
977
  slot: "PopupIndicator",
948
978
  overridesResolver: (n, a) => {
949
979
  const {
950
- ownerState: c
980
+ ownerState: d
951
981
  } = n;
952
- return [a.popupIndicator, c.popupOpen && a.popupIndicatorOpen];
982
+ return [a.popupIndicator, d.popupOpen && a.popupIndicatorOpen];
953
983
  }
954
984
  })({
955
985
  padding: 2,
@@ -962,18 +992,18 @@ const to = (n) => {
962
992
  transform: "rotate(180deg)"
963
993
  }
964
994
  }]
965
- }), so = V(Nt, {
995
+ }), io = H(Mt, {
966
996
  name: "MuiAutocomplete",
967
997
  slot: "Popper",
968
998
  overridesResolver: (n, a) => {
969
999
  const {
970
- ownerState: c
1000
+ ownerState: d
971
1001
  } = n;
972
1002
  return [{
973
1003
  [`& .${l.option}`]: a.option
974
- }, a.popper, c.disablePortal && a.popperDisablePortal];
1004
+ }, a.popper, d.disablePortal && a.popperDisablePortal];
975
1005
  }
976
- })(se(({
1006
+ })(le(({
977
1007
  theme: n
978
1008
  }) => ({
979
1009
  zIndex: (n.vars || n).zIndex.modal,
@@ -985,38 +1015,38 @@ const to = (n) => {
985
1015
  position: "absolute"
986
1016
  }
987
1017
  }]
988
- }))), io = V(Dt, {
1018
+ }))), lo = H(Et, {
989
1019
  name: "MuiAutocomplete",
990
1020
  slot: "Paper",
991
1021
  overridesResolver: (n, a) => a.paper
992
- })(se(({
1022
+ })(le(({
993
1023
  theme: n
994
1024
  }) => ({
995
1025
  ...n.typography.body1,
996
1026
  overflow: "auto"
997
- }))), lo = V("div", {
1027
+ }))), po = H("div", {
998
1028
  name: "MuiAutocomplete",
999
1029
  slot: "Loading",
1000
1030
  overridesResolver: (n, a) => a.loading
1001
- })(se(({
1031
+ })(le(({
1002
1032
  theme: n
1003
1033
  }) => ({
1004
1034
  color: (n.vars || n).palette.text.secondary,
1005
1035
  padding: "14px 16px"
1006
- }))), po = V("div", {
1036
+ }))), uo = H("div", {
1007
1037
  name: "MuiAutocomplete",
1008
1038
  slot: "NoOptions",
1009
1039
  overridesResolver: (n, a) => a.noOptions
1010
- })(se(({
1040
+ })(le(({
1011
1041
  theme: n
1012
1042
  }) => ({
1013
1043
  color: (n.vars || n).palette.text.secondary,
1014
1044
  padding: "14px 16px"
1015
- }))), uo = V("ul", {
1045
+ }))), co = H("ul", {
1016
1046
  name: "MuiAutocomplete",
1017
1047
  slot: "Listbox",
1018
1048
  overridesResolver: (n, a) => a.listbox
1019
- })(se(({
1049
+ })(le(({
1020
1050
  theme: n
1021
1051
  }) => ({
1022
1052
  listStyle: "none",
@@ -1070,16 +1100,16 @@ const to = (n) => {
1070
1100
  }
1071
1101
  }
1072
1102
  }
1073
- }))), co = V(_e, {
1103
+ }))), fo = H(Xe, {
1074
1104
  name: "MuiAutocomplete",
1075
1105
  slot: "GroupLabel",
1076
1106
  overridesResolver: (n, a) => a.groupLabel
1077
- })(se(({
1107
+ })(le(({
1078
1108
  theme: n
1079
1109
  }) => ({
1080
1110
  backgroundColor: (n.vars || n).palette.background.paper,
1081
1111
  top: -8
1082
- }))), fo = V("ul", {
1112
+ }))), go = H("ul", {
1083
1113
  name: "MuiAutocomplete",
1084
1114
  slot: "GroupUl",
1085
1115
  overridesResolver: (n, a) => a.groupUl
@@ -1088,302 +1118,300 @@ const to = (n) => {
1088
1118
  [`& .${l.option}`]: {
1089
1119
  paddingLeft: 24
1090
1120
  }
1091
- }), go = /* @__PURE__ */ y.forwardRef(function(a, c) {
1092
- const g = kt({
1121
+ }), mo = /* @__PURE__ */ y.forwardRef(function(a, d) {
1122
+ const m = Dt({
1093
1123
  props: a,
1094
1124
  name: "MuiAutocomplete"
1095
1125
  }), {
1096
- autoComplete: D = !1,
1097
- autoHighlight: L = !1,
1098
- autoSelect: $ = !1,
1099
- blurOnSelect: k = !1,
1100
- ChipProps: j,
1126
+ autoComplete: S = !1,
1127
+ autoHighlight: D = !1,
1128
+ autoSelect: T = !1,
1129
+ blurOnSelect: N = !1,
1130
+ ChipProps: B,
1101
1131
  className: I,
1102
- clearIcon: v = St || (St = /* @__PURE__ */ A(Ht, {
1132
+ clearIcon: C = wt || (wt = /* @__PURE__ */ w(zt, {
1103
1133
  fontSize: "small"
1104
1134
  })),
1105
- clearOnBlur: U = !g.freeSolo,
1106
- clearOnEscape: ie = !1,
1107
- clearText: R = "Clear",
1108
- closeText: Se = "Close",
1109
- componentsProps: Ae,
1110
- defaultValue: bt = g.multiple ? [] : null,
1111
- disableClearable: we = !1,
1112
- disableCloseOnSelect: le = !1,
1113
- disabled: B = !1,
1114
- disabledItemsFocusable: Le = !1,
1115
- disableListWrap: Je = !1,
1116
- disablePortal: Z = !1,
1117
- filterOptions: Xe,
1118
- filterSelectedOptions: mt = !1,
1119
- forcePopupIcon: be = "auto",
1120
- freeSolo: ke = !1,
1121
- fullWidth: K = !1,
1122
- getLimitTagsText: b = (d) => `+${d}`,
1123
- getOptionDisabled: Ye,
1124
- getOptionKey: Qe,
1125
- getOptionLabel: Re,
1126
- isOptionEqualToValue: J,
1127
- groupBy: De,
1128
- handleHomeEndKeys: ht = !g.freeSolo,
1135
+ clearOnBlur: W = !m.freeSolo,
1136
+ clearOnEscape: pe = !1,
1137
+ clearText: E = "Clear",
1138
+ closeText: we = "Close",
1139
+ componentsProps: Le,
1140
+ defaultValue: mt = m.multiple ? [] : null,
1141
+ disableClearable: ke = !1,
1142
+ disableCloseOnSelect: ue = !1,
1143
+ disabled: G = !1,
1144
+ disabledItemsFocusable: Re = !1,
1145
+ disableListWrap: Qe = !1,
1146
+ disablePortal: oe = !1,
1147
+ filterOptions: Ze,
1148
+ filterSelectedOptions: bt = !1,
1149
+ forcePopupIcon: ye = "auto",
1150
+ freeSolo: De = !1,
1151
+ fullWidth: Y = !1,
1152
+ getLimitTagsText: u = (c) => `+${c}`,
1153
+ getOptionDisabled: et,
1154
+ getOptionKey: tt,
1155
+ getOptionLabel: Ne,
1156
+ isOptionEqualToValue: Q,
1157
+ groupBy: Ee,
1158
+ handleHomeEndKeys: ht = !m.freeSolo,
1129
1159
  id: yt,
1130
1160
  includeInputInList: xt = !1,
1131
- inputValue: pe,
1132
- limitTags: me = -1,
1133
- ListboxComponent: Ze,
1134
- ListboxProps: N,
1135
- loading: P = !1,
1136
- loadingText: he = "Loading…",
1137
- multiple: ye = !1,
1138
- noOptionsText: m = "No options",
1139
- onChange: E,
1140
- onClose: xe,
1141
- onHighlightChange: It,
1142
- onInputChange: M,
1143
- onOpen: Ne,
1144
- open: et,
1145
- openOnFocus: T = !1,
1146
- openText: Ee = "Open",
1147
- options: s,
1148
- PaperComponent: tt,
1149
- PopperComponent: f,
1150
- popupIcon: ue = At || (At = /* @__PURE__ */ A(Ft, {})),
1151
- readOnly: ee = !1,
1152
- renderGroup: Me,
1153
- renderInput: ce,
1154
- renderOption: X,
1155
- renderTags: Ie,
1156
- selectOnFocus: Ot = !g.freeSolo,
1157
- size: de = "medium",
1158
- slots: Ve = {},
1159
- slotProps: w = {},
1160
- value: h,
1161
- ...F
1162
- } = g, {
1163
- getRootProps: Fe,
1164
- getInputProps: te,
1165
- getInputLabelProps: ot,
1166
- getPopupIndicatorProps: _,
1167
- getClearProps: H,
1168
- getTagProps: nt,
1169
- getListboxProps: Oe,
1170
- getOptionProps: rt,
1171
- value: z,
1172
- dirty: oe,
1173
- expanded: Y,
1174
- id: fe,
1175
- popupOpen: W,
1176
- focused: He,
1177
- focusedTag: ze,
1178
- anchorEl: ne,
1179
- setAnchorEl: at,
1180
- inputValue: st,
1181
- groupedOptions: re
1182
- } = Xt({
1183
- ...g,
1161
+ inputValue: K,
1162
+ limitTags: L = -1,
1163
+ ListboxComponent: ot,
1164
+ ListboxProps: Me,
1165
+ loading: M = !1,
1166
+ loadingText: $ = "Loading…",
1167
+ multiple: ce = !1,
1168
+ noOptionsText: xe = "No options",
1169
+ onChange: h,
1170
+ onClose: F,
1171
+ onHighlightChange: Ie,
1172
+ onInputChange: It,
1173
+ onOpen: V,
1174
+ open: Ve,
1175
+ openOnFocus: nt = !1,
1176
+ openText: P = "Open",
1177
+ options: Ot,
1178
+ PaperComponent: i,
1179
+ PopperComponent: Oe,
1180
+ popupIcon: f = Lt || (Lt = /* @__PURE__ */ w(Ht, {})),
1181
+ readOnly: ne = !1,
1182
+ renderGroup: de,
1183
+ renderInput: Fe,
1184
+ renderOption: fe,
1185
+ renderTags: _,
1186
+ renderValue: Pe,
1187
+ selectOnFocus: Pt = !m.freeSolo,
1188
+ size: ge = "medium",
1189
+ slots: He = {},
1190
+ slotProps: k = {},
1191
+ value: b,
1192
+ ...z
1193
+ } = m, {
1194
+ getRootProps: ze,
1195
+ getInputProps: j,
1196
+ getInputLabelProps: rt,
1197
+ getPopupIndicatorProps: J,
1198
+ getClearProps: U,
1199
+ getItemProps: at,
1200
+ getListboxProps: ve,
1201
+ getOptionProps: st,
1202
+ value: R,
1203
+ dirty: re,
1204
+ expanded: X,
1205
+ id: me,
1206
+ popupOpen: q,
1207
+ focused: je,
1208
+ focusedItem: Ue,
1209
+ anchorEl: ae,
1210
+ setAnchorEl: it,
1211
+ inputValue: lt,
1212
+ groupedOptions: se
1213
+ } = Yt({
1214
+ ...m,
1184
1215
  componentName: "Autocomplete"
1185
- }), Pe = !we && !B && oe && !ee, ve = (!ke || be === !0) && be !== !1, {
1186
- onMouseDown: it
1187
- } = te(), {
1188
- ref: lt,
1189
- ...pt
1190
- } = Oe(), Ce = Re || ((d) => d.label ?? d), C = {
1191
- ...g,
1192
- disablePortal: Z,
1193
- expanded: Y,
1194
- focused: He,
1195
- fullWidth: K,
1196
- getOptionLabel: Ce,
1197
- hasClearIcon: Pe,
1198
- hasPopupIcon: ve,
1199
- inputFocused: ze === -1,
1200
- popupOpen: W,
1201
- size: de
1202
- }, O = to(C), G = {
1216
+ }), Ce = !ke && !G && re && !ne, $e = (!De || ye === !0) && ye !== !1, {
1217
+ onMouseDown: pt
1218
+ } = j(), {
1219
+ ref: ut,
1220
+ ...Be
1221
+ } = ve(), be = Ne || ((c) => c.label ?? c), v = {
1222
+ ...m,
1223
+ disablePortal: oe,
1224
+ expanded: X,
1225
+ focused: je,
1226
+ fullWidth: Y,
1227
+ getOptionLabel: be,
1228
+ hasClearIcon: Ce,
1229
+ hasPopupIcon: $e,
1230
+ inputFocused: Ue === -1,
1231
+ popupOpen: q,
1232
+ size: ge
1233
+ }, O = oo(v), Z = {
1203
1234
  slots: {
1204
- paper: tt,
1205
- popper: f,
1206
- ...Ve
1235
+ paper: i,
1236
+ popper: Oe,
1237
+ ...He
1207
1238
  },
1208
1239
  slotProps: {
1209
- chip: j,
1210
- listbox: N,
1211
- ...Ae,
1212
- ...w
1240
+ chip: B,
1241
+ listbox: Me,
1242
+ ...Le,
1243
+ ...k
1213
1244
  }
1214
- }, [je, o] = ft("listbox", {
1215
- elementType: uo,
1216
- externalForwardedProps: G,
1217
- ownerState: C,
1245
+ }, [Se, We] = ft("listbox", {
1246
+ elementType: co,
1247
+ externalForwardedProps: Z,
1248
+ ownerState: v,
1218
1249
  className: O.listbox,
1219
- additionalProps: pt,
1220
- ref: lt
1221
- }), [e, r] = ft("paper", {
1222
- elementType: Dt,
1223
- externalForwardedProps: G,
1224
- ownerState: C,
1250
+ additionalProps: Be,
1251
+ ref: ut
1252
+ }), [o, e] = ft("paper", {
1253
+ elementType: Et,
1254
+ externalForwardedProps: Z,
1255
+ ownerState: v,
1225
1256
  className: O.paper
1226
- }), [i, p] = ft("popper", {
1227
- elementType: Nt,
1228
- externalForwardedProps: G,
1229
- ownerState: C,
1257
+ }), [r, p] = ft("popper", {
1258
+ elementType: Mt,
1259
+ externalForwardedProps: Z,
1260
+ ownerState: v,
1230
1261
  className: O.popper,
1231
1262
  additionalProps: {
1232
- disablePortal: Z,
1263
+ disablePortal: oe,
1233
1264
  style: {
1234
- width: ne ? ne.clientWidth : null
1265
+ width: ae ? ae.clientWidth : null
1235
1266
  },
1236
1267
  role: "presentation",
1237
- anchorEl: ne,
1238
- open: W
1268
+ anchorEl: ae,
1269
+ open: q
1239
1270
  }
1240
1271
  });
1241
- let u;
1242
- if (ye && z.length > 0) {
1243
- const d = (q) => ({
1244
- className: O.tag,
1245
- disabled: B,
1246
- ...nt(q)
1247
- });
1248
- Ie ? u = Ie(z, d, C) : u = z.map((q, Q) => {
1249
- const {
1250
- key: Te,
1251
- ...Vt
1252
- } = d({
1253
- index: Q
1254
- });
1255
- return /* @__PURE__ */ A(Bt, {
1256
- label: Ce(q),
1257
- size: de,
1258
- ...Vt,
1259
- ...G.slotProps.chip
1260
- }, Te);
1272
+ let s;
1273
+ const g = (c) => ({
1274
+ className: O.tag,
1275
+ disabled: G,
1276
+ ...at(c)
1277
+ });
1278
+ if (_ && ce && R.length > 0 ? s = _(R, g, v) : Pe && R ? s = Pe(R, g, v) : ce && R.length > 0 && (s = R.map((c, ee) => {
1279
+ const {
1280
+ key: te,
1281
+ ...Ae
1282
+ } = g({
1283
+ index: ee
1261
1284
  });
1262
- }
1263
- if (me > -1 && Array.isArray(u)) {
1264
- const d = u.length - me;
1265
- !He && d > 0 && (u = u.splice(0, me), u.push(/* @__PURE__ */ A("span", {
1285
+ return /* @__PURE__ */ w(Wt, {
1286
+ label: be(c),
1287
+ size: ge,
1288
+ ...Ae,
1289
+ ...Z.slotProps.chip
1290
+ }, te);
1291
+ })), L > -1 && Array.isArray(s)) {
1292
+ const c = s.length - L;
1293
+ !je && c > 0 && (s = s.splice(0, L), s.push(/* @__PURE__ */ w("span", {
1266
1294
  className: O.tag,
1267
- children: b(d)
1268
- }, u.length)));
1295
+ children: u(c)
1296
+ }, s.length)));
1269
1297
  }
1270
- const S = Me || ((d) => /* @__PURE__ */ We("li", {
1271
- children: [/* @__PURE__ */ A(co, {
1298
+ const A = de || ((c) => /* @__PURE__ */ Ke("li", {
1299
+ children: [/* @__PURE__ */ w(fo, {
1272
1300
  className: O.groupLabel,
1273
- ownerState: C,
1301
+ ownerState: v,
1274
1302
  component: "div",
1275
- children: d.group
1276
- }), /* @__PURE__ */ A(fo, {
1303
+ children: c.group
1304
+ }), /* @__PURE__ */ w(go, {
1277
1305
  className: O.groupUl,
1278
- ownerState: C,
1279
- children: d.children
1306
+ ownerState: v,
1307
+ children: c.children
1280
1308
  })]
1281
- }, d.key)), Mt = X || ((d, q) => {
1309
+ }, c.key)), Ft = fe || ((c, ee) => {
1282
1310
  const {
1283
- key: Q,
1284
- ...Te
1285
- } = d;
1286
- return /* @__PURE__ */ A("li", {
1287
- ...Te,
1288
- children: Ce(q)
1289
- }, Q);
1290
- }), Pt = (d, q) => {
1291
- const Q = rt({
1292
- option: d,
1293
- index: q
1311
+ key: te,
1312
+ ...Ae
1313
+ } = c;
1314
+ return /* @__PURE__ */ w("li", {
1315
+ ...Ae,
1316
+ children: be(ee)
1317
+ }, te);
1318
+ }), Ct = (c, ee) => {
1319
+ const te = st({
1320
+ option: c,
1321
+ index: ee
1294
1322
  });
1295
- return Mt({
1296
- ...Q,
1323
+ return Ft({
1324
+ ...te,
1297
1325
  className: O.option
1298
- }, d, {
1299
- selected: Q["aria-selected"],
1300
- index: q,
1301
- inputValue: st
1302
- }, C);
1303
- }, Ue = G.slotProps.clearIndicator, Be = G.slotProps.popupIndicator;
1304
- return /* @__PURE__ */ We(y.Fragment, {
1305
- children: [/* @__PURE__ */ A(oo, {
1306
- ref: c,
1307
- className: qe(O.root, I),
1308
- ownerState: C,
1309
- ...Fe(F),
1310
- children: ce({
1311
- id: fe,
1312
- disabled: B,
1326
+ }, c, {
1327
+ selected: te["aria-selected"],
1328
+ index: ee,
1329
+ inputValue: lt
1330
+ }, v);
1331
+ }, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
1332
+ return /* @__PURE__ */ Ke(y.Fragment, {
1333
+ children: [/* @__PURE__ */ w(no, {
1334
+ ref: d,
1335
+ className: Je(O.root, I),
1336
+ ownerState: v,
1337
+ ...ze(z),
1338
+ children: Fe({
1339
+ id: me,
1340
+ disabled: G,
1313
1341
  fullWidth: !0,
1314
- size: de === "small" ? "small" : void 0,
1315
- InputLabelProps: ot(),
1342
+ size: ge === "small" ? "small" : void 0,
1343
+ InputLabelProps: rt(),
1316
1344
  InputProps: {
1317
- ref: at,
1345
+ ref: it,
1318
1346
  className: O.inputRoot,
1319
- startAdornment: u,
1320
- onMouseDown: (d) => {
1321
- d.target === d.currentTarget && it(d);
1347
+ startAdornment: s,
1348
+ onMouseDown: (c) => {
1349
+ c.target === c.currentTarget && pt(c);
1322
1350
  },
1323
- ...(Pe || ve) && {
1324
- endAdornment: /* @__PURE__ */ We(no, {
1351
+ ...(Ce || $e) && {
1352
+ endAdornment: /* @__PURE__ */ Ke(ro, {
1325
1353
  className: O.endAdornment,
1326
- ownerState: C,
1327
- children: [Pe ? /* @__PURE__ */ A(ro, {
1328
- ...H(),
1329
- "aria-label": R,
1330
- title: R,
1331
- ownerState: C,
1332
- ...Ue,
1333
- className: qe(O.clearIndicator, Ue == null ? void 0 : Ue.className),
1334
- children: v
1335
- }) : null, ve ? /* @__PURE__ */ A(ao, {
1336
- ..._(),
1337
- disabled: B,
1338
- "aria-label": W ? Se : Ee,
1339
- title: W ? Se : Ee,
1340
- ownerState: C,
1341
- ...Be,
1342
- className: qe(O.popupIndicator, Be == null ? void 0 : Be.className),
1343
- children: ue
1354
+ ownerState: v,
1355
+ children: [Ce ? /* @__PURE__ */ w(ao, {
1356
+ ...U(),
1357
+ "aria-label": E,
1358
+ title: E,
1359
+ ownerState: v,
1360
+ ...Ge,
1361
+ className: Je(O.clearIndicator, Ge == null ? void 0 : Ge.className),
1362
+ children: C
1363
+ }) : null, $e ? /* @__PURE__ */ w(so, {
1364
+ ...J(),
1365
+ disabled: G,
1366
+ "aria-label": q ? we : P,
1367
+ title: q ? we : P,
1368
+ ownerState: v,
1369
+ ...qe,
1370
+ className: Je(O.popupIndicator, qe == null ? void 0 : qe.className),
1371
+ children: f
1344
1372
  }) : null]
1345
1373
  })
1346
1374
  }
1347
1375
  },
1348
1376
  inputProps: {
1349
1377
  className: O.input,
1350
- disabled: B,
1351
- readOnly: ee,
1352
- ...te()
1378
+ disabled: G,
1379
+ readOnly: ne,
1380
+ ...j()
1353
1381
  }
1354
1382
  })
1355
- }), ne ? /* @__PURE__ */ A(so, {
1356
- as: i,
1383
+ }), ae ? /* @__PURE__ */ w(io, {
1384
+ as: r,
1357
1385
  ...p,
1358
- children: /* @__PURE__ */ We(io, {
1359
- as: e,
1360
- ...r,
1361
- children: [P && re.length === 0 ? /* @__PURE__ */ A(lo, {
1386
+ children: /* @__PURE__ */ Ke(lo, {
1387
+ as: o,
1388
+ ...e,
1389
+ children: [M && se.length === 0 ? /* @__PURE__ */ w(po, {
1362
1390
  className: O.loading,
1363
- ownerState: C,
1364
- children: he
1365
- }) : null, re.length === 0 && !ke && !P ? /* @__PURE__ */ A(po, {
1391
+ ownerState: v,
1392
+ children: $
1393
+ }) : null, se.length === 0 && !De && !M ? /* @__PURE__ */ w(uo, {
1366
1394
  className: O.noOptions,
1367
- ownerState: C,
1395
+ ownerState: v,
1368
1396
  role: "presentation",
1369
- onMouseDown: (d) => {
1370
- d.preventDefault();
1397
+ onMouseDown: (c) => {
1398
+ c.preventDefault();
1371
1399
  },
1372
- children: m
1373
- }) : null, re.length > 0 ? /* @__PURE__ */ A(je, {
1374
- as: Ze,
1375
- ...o,
1376
- children: re.map((d, q) => De ? S({
1377
- key: d.key,
1378
- group: d.group,
1379
- children: d.options.map((Q, Te) => Pt(Q, d.index + Te))
1380
- }) : Pt(d, q))
1400
+ children: xe
1401
+ }) : null, se.length > 0 ? /* @__PURE__ */ w(Se, {
1402
+ as: ot,
1403
+ ...We,
1404
+ children: se.map((c, ee) => Ee ? A({
1405
+ key: c.key,
1406
+ group: c.group,
1407
+ children: c.options.map((te, Ae) => Ct(te, c.index + Ae))
1408
+ }) : Ct(c, ee))
1381
1409
  }) : null]
1382
1410
  })
1383
1411
  }) : null]
1384
1412
  });
1385
1413
  });
1386
- process.env.NODE_ENV !== "production" && (go.propTypes = {
1414
+ process.env.NODE_ENV !== "production" && (mo.propTypes = {
1387
1415
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1388
1416
  // │ These PropTypes are generated from the TypeScript type definitions. │
1389
1417
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1422,7 +1450,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1422
1450
  blurOnSelect: t.oneOfType([t.oneOf(["mouse", "touch"]), t.bool]),
1423
1451
  /**
1424
1452
  * Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
1425
- * @deprecated Use `slotProps.chip` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1453
+ * @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.
1426
1454
  */
1427
1455
  ChipProps: t.object,
1428
1456
  /**
@@ -1467,7 +1495,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1467
1495
  closeText: t.string,
1468
1496
  /**
1469
1497
  * The props used for each slot inside.
1470
- * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1498
+ * @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.
1471
1499
  */
1472
1500
  componentsProps: t.shape({
1473
1501
  clearIndicator: t.object,
@@ -1479,7 +1507,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1479
1507
  * The default value. Use when the component is not controlled.
1480
1508
  * @default props.multiple ? [] : null
1481
1509
  */
1482
- defaultValue: Ct(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(`
1510
+ defaultValue: St(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(`
1483
1511
  `)) : null),
1484
1512
  /**
1485
1513
  * If `true`, the input can't be cleared.
@@ -1617,16 +1645,16 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1617
1645
  * Set `-1` to disable the limit.
1618
1646
  * @default -1
1619
1647
  */
1620
- limitTags: Ut,
1648
+ limitTags: Bt,
1621
1649
  /**
1622
1650
  * The component used to render the listbox.
1623
1651
  * @default 'ul'
1624
- * @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1652
+ * @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.
1625
1653
  */
1626
1654
  ListboxComponent: t.elementType,
1627
1655
  /**
1628
1656
  * Props applied to the Listbox element.
1629
- * @deprecated Use `slotProps.listbox` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1657
+ * @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.
1630
1658
  */
1631
1659
  ListboxProps: t.object,
1632
1660
  /**
@@ -1676,7 +1704,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1676
1704
  *
1677
1705
  * @param {React.SyntheticEvent} event The event source of the callback.
1678
1706
  * @param {Value} option The highlighted option.
1679
- * @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`, `"touch"`.
1707
+ * @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
1680
1708
  */
1681
1709
  onHighlightChange: t.func,
1682
1710
  /**
@@ -1721,13 +1749,13 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1721
1749
  /**
1722
1750
  * The component used to render the body of the popup.
1723
1751
  * @default Paper
1724
- * @deprecated Use `slots.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1752
+ * @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.
1725
1753
  */
1726
1754
  PaperComponent: t.elementType,
1727
1755
  /**
1728
1756
  * The component used to position the popup.
1729
1757
  * @default Popper
1730
- * @deprecated Use `slots.popper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
1758
+ * @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.
1731
1759
  */
1732
1760
  PopperComponent: t.elementType,
1733
1761
  /**
@@ -1765,7 +1793,9 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1765
1793
  */
1766
1794
  renderOption: t.func,
1767
1795
  /**
1768
- * Render the selected value.
1796
+ * Render the selected value when doing multiple selections.
1797
+ *
1798
+ * @deprecated Use `renderValue` prop instead
1769
1799
  *
1770
1800
  * @param {Value[]} value The `value` provided to the component.
1771
1801
  * @param {function} getTagProps A tag props getter.
@@ -1773,6 +1803,15 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1773
1803
  * @returns {ReactNode}
1774
1804
  */
1775
1805
  renderTags: t.func,
1806
+ /**
1807
+ * Renders the selected value(s) as rich content in the input for both single and multiple selections.
1808
+ *
1809
+ * @param {AutocompleteRenderValue<Value, Multiple, FreeSolo>} value The `value` provided to the component.
1810
+ * @param {function} getItemProps The value item props.
1811
+ * @param {object} ownerState The state of the Autocomplete component.
1812
+ * @returns {ReactNode}
1813
+ */
1814
+ renderValue: t.func,
1776
1815
  /**
1777
1816
  * If `true`, the input's text is selected on focus.
1778
1817
  * It helps the user clear the selected value.
@@ -1815,15 +1854,15 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1815
1854
  * The value must have reference equality with the option in order to be selected.
1816
1855
  * You can customize the equality behavior with the `isOptionEqualToValue` prop.
1817
1856
  */
1818
- value: Ct(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(`
1857
+ value: St(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(`
1819
1858
  `)) : null)
1820
1859
  });
1821
1860
  export {
1822
- go as A,
1823
- _e as L,
1861
+ mo as A,
1862
+ Xe as L,
1824
1863
  l as a,
1825
- Yt as b,
1826
- Gt as c,
1827
- eo as g,
1864
+ Qt as b,
1865
+ qt as c,
1866
+ to as g,
1828
1867
  Do as l
1829
1868
  };