@cgi-learning-hub/ui 1.5.1 → 1.6.0-dev.1747215952

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 (343) hide show
  1. package/dist/Alert-DW8yCR-B.cjs +1 -0
  2. package/dist/{Alert-BfMYnyZX.js → Alert-PmI169Dq.js} +144 -142
  3. package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BIBR54X2.js} +709 -667
  4. package/dist/Autocomplete-D9hZ2wrR.cjs +6 -0
  5. package/dist/Backdrop-3TL73mAe.cjs +1 -0
  6. package/dist/{Backdrop-B200pms1.js → Backdrop-BxgGvlLM.js} +21 -20
  7. package/dist/Badge-DhyDno9j.cjs +138 -0
  8. package/dist/{ToggleButtonGroup-gxIqbo6a.js → Badge-rX7YUmBc.js} +6487 -4178
  9. package/dist/Box-DYD6q-6M.cjs +1 -0
  10. package/dist/{Box-D3Pi13ta.js → Box-o7Tjjyko.js} +21 -20
  11. package/dist/{Button-D1aKdjIh.js → Button-D974vesA.js} +19 -18
  12. package/dist/Button-y1LmxqGA.cjs +1 -0
  13. package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-Chb99sDQ.js} +25 -24
  14. package/dist/ButtonBase-Cteo-mSC.cjs +74 -0
  15. package/dist/{CardContent-DyggcxBG.js → CardContent-DaZl2i3G.js} +10 -9
  16. package/dist/CardContent-ji0_AneN.cjs +1 -0
  17. package/dist/Checkbox-XXqW_dbW.cjs +1 -0
  18. package/dist/{Checkbox-DkrWUPYT.js → Checkbox-p-PKpEw_.js} +91 -62
  19. package/dist/Chip-Bpcd3tnL.cjs +1 -0
  20. package/dist/{Chip-Y39z3DS6.js → Chip-CPR3r42q.js} +13 -12
  21. package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DVKNRMKq.js} +15 -14
  22. package/dist/CircularProgress-Wqx0-T36.cjs +28 -0
  23. package/dist/{Close-DJDhRwj2.cjs → Close-DyRqry3p.cjs} +1 -1
  24. package/dist/{Close-hx7dlgmZ.js → Close-m-MX3rFn.js} +1 -1
  25. package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-Bpxbxvyb.cjs} +1 -1
  26. package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-CjjQdrNy.js} +1 -1
  27. package/dist/CustomTreeItem-DPyfIueW.cjs +3 -0
  28. package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-hIRSCwAW.js} +251 -256
  29. package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-BMzW4v1g.js} +1079 -1081
  30. package/dist/DatePicker-CNhBoaI3.cjs +14 -0
  31. package/dist/DefaultPropsProvider-B1crdkTC.cjs +1 -0
  32. package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-hFv1J_xl.js} +68 -67
  33. package/dist/{Delete-Cfk3fOW-.js → Delete-9fJbdRit.js} +1 -1
  34. package/dist/{Delete-DDxv1h6V.cjs → Delete-CEX2hq0f.cjs} +1 -1
  35. package/dist/Dialog-B2LKe7ZM.cjs +1 -0
  36. package/dist/{Dialog-Ccvug1yq.js → Dialog-BzsWl6Vl.js} +106 -111
  37. package/dist/{DialogContent-CIMpKm-U.js → DialogContent-B41jvlMn.js} +14 -13
  38. package/dist/DialogContent-BbCu_OEw.cjs +1 -0
  39. package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-CVvztEM0.js} +22 -21
  40. package/dist/DialogTitle-SwUSpeBT.cjs +1 -0
  41. package/dist/{Divider-C2cBikSL.js → Divider-CJwnMdVg.js} +9 -8
  42. package/dist/Divider-Cshcr5kR.cjs +1 -0
  43. package/dist/{Folder-DEtB13yM.cjs → Folder-7plrMkOp.cjs} +1 -1
  44. package/dist/{Folder-Bnoqtzc6.js → Folder-CutUz0bW.js} +1 -1
  45. package/dist/FormLabel-0LbNeQQU.cjs +2 -0
  46. package/dist/{FormLabel-EkpI8MQr.js → FormLabel-DSi2pGSZ.js} +16 -15
  47. package/dist/{Grow-B_clfUP9.js → Grow-FFFqe81C.js} +5 -5
  48. package/dist/Grow-aEgTOewU.cjs +1 -0
  49. package/dist/IconButton-BKwDNYJl.cjs +2 -0
  50. package/dist/{IconButton-D1mhTuaI.js → IconButton-CgwURB2g.js} +7 -6
  51. package/dist/InputAdornment-C7e-kyf7.cjs +1 -0
  52. package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-DgWvMLgR.js} +22 -21
  53. package/dist/{InputBase-BQnEIwl1.js → InputBase-DxLqRpcl.js} +263 -256
  54. package/dist/InputBase-pYQWRFK2.cjs +3 -0
  55. package/dist/Link-DUtuCYMx.cjs +1 -0
  56. package/dist/{Link-8ltXgZj7.js → Link-rb-SwfiY.js} +18 -17
  57. package/dist/List-BH_S4Hqm.cjs +1 -0
  58. package/dist/{List-DJsqHOqv.js → List-BjfdkeEI.js} +5 -4
  59. package/dist/{ListItem-BspNcHM_.js → ListItem-B0EiObKw.js} +40 -39
  60. package/dist/ListItem-D33t-hkx.cjs +1 -0
  61. package/dist/ListItemText-B8jlTz59.cjs +2 -0
  62. package/dist/ListItemText-BeyHu1da.js +853 -0
  63. package/dist/Menu-BjrN8rMF.cjs +7 -0
  64. package/dist/{Menu-DPhreDcS.js → Menu-By6cOqEO.js} +407 -336
  65. package/dist/{MenuItem-Fb7iU47J.js → MenuItem-B1FTx8Uo.js} +17 -16
  66. package/dist/MenuItem-Cz_x60jl.cjs +1 -0
  67. package/dist/Modal-DxwlW5NV.cjs +2 -0
  68. package/dist/{Modal-dmMiGSAp.js → Modal-vrLLqk9Y.js} +240 -245
  69. package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-DC6HBf1h.cjs} +1 -1
  70. package/dist/{MoreVert-BCGFGn8f.js → MoreVert-DJ8sAY3o.js} +1 -1
  71. package/dist/{Paper-CEDxpHWv.js → Paper-984iTz4H.js} +32 -31
  72. package/dist/Paper-Bh9CKUCb.cjs +2 -0
  73. package/dist/{Popper-D5_YIJX6.js → Popper-DfwuvxaQ.js} +11 -10
  74. package/dist/Popper-yO_RaCbM.cjs +4 -0
  75. package/dist/Portal-B5KqLEa0.cjs +1 -0
  76. package/dist/Portal-ChC9wmMZ.js +85 -0
  77. package/dist/{Radio-B4sx0387.js → Radio-BqY-su_F.js} +228 -183
  78. package/dist/Radio-C7zzpRFc.cjs +1 -0
  79. package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-BQvlYFpE.js} +24 -23
  80. package/dist/RadioGroup-BlUWRmLG.cjs +1 -0
  81. package/dist/{Select-CxnCi-3l.js → Select-DZMwqCYA.js} +96 -95
  82. package/dist/Select-Doay7ukI.cjs +3 -0
  83. package/dist/Stack-BVWbOqY_.cjs +1 -0
  84. package/dist/{Stack-CzKIgmIE.js → Stack-CMUWQxQn.js} +63 -107
  85. package/dist/{Switch-D3KweZGQ.js → Switch-Bg4QB4PJ.js} +169 -108
  86. package/dist/Switch-CEfqaD33.cjs +1 -0
  87. package/dist/SwitchBase-DvCITKv8.cjs +1 -0
  88. package/dist/SwitchBase-EDFBMPd7.js +316 -0
  89. package/dist/{Tab-C1r8JXwz.js → Tab-52AkFc9v.js} +599 -537
  90. package/dist/Tab-C6H241Pf.cjs +4 -0
  91. package/dist/{TextField-D-_WjPAW.js → TextField-DG9mRp_m.js} +127 -116
  92. package/dist/TextField-bE2NUKKK.cjs +1 -0
  93. package/dist/{Tooltip-D0bof-68.js → Tooltip-DCgaU2em.js} +20 -19
  94. package/dist/Tooltip-D_w-IJoD.cjs +4 -0
  95. package/dist/Typography-De-21leI.cjs +1 -0
  96. package/dist/{Typography-DBJqhIhB.js → Typography-DwMlN0K5.js} +9 -8
  97. package/dist/{capitalize-DSG2FA7x.js → capitalize-BHFotl9B.js} +1 -1
  98. package/dist/{capitalize-CToVceBw.cjs → capitalize-CKLkSyDO.cjs} +1 -1
  99. package/dist/client-error-CHkavqXs.cjs +1 -0
  100. package/dist/{client-error-B_-qjgAB.js → client-error-D0Ng5oOn.js} +1 -3
  101. package/dist/components/Alert/Alert.cjs.js +1 -1
  102. package/dist/components/Alert/Alert.es.js +3 -3
  103. package/dist/components/Alert/index.cjs.js +1 -1
  104. package/dist/components/Alert/index.es.js +1 -1
  105. package/dist/components/Button/Button.cjs.js +1 -1
  106. package/dist/components/Button/Button.es.js +2 -2
  107. package/dist/components/ColorPicker/ColorPicker.cjs.js +27 -0
  108. package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
  109. package/dist/components/ColorPicker/ColorPicker.es.js +7960 -0
  110. package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +1 -0
  111. package/dist/components/ColorPicker/ColorPickerIcon.d.ts +5 -0
  112. package/dist/components/ColorPicker/ColorPickerIcon.es.js +58 -0
  113. package/dist/components/ColorPicker/index.cjs.js +1 -0
  114. package/dist/components/ColorPicker/index.d.ts +3 -0
  115. package/dist/components/ColorPicker/index.es.js +4 -0
  116. package/dist/components/ColorPicker/styles.cjs.js +1 -0
  117. package/dist/components/ColorPicker/styles.es.js +26 -0
  118. package/dist/components/ColorPicker/types.cjs.js +1 -0
  119. package/dist/components/ColorPicker/types.d.ts +19 -0
  120. package/dist/components/ColorPicker/types.es.js +1 -0
  121. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  122. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  123. package/dist/components/DatePicker/index.cjs.js +1 -1
  124. package/dist/components/DatePicker/index.es.js +1 -1
  125. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  126. package/dist/components/Dialog/Dialog.es.js +2 -2
  127. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  128. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  129. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  130. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  131. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  132. package/dist/components/FileList/FileIcon.es.js +1 -1
  133. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  134. package/dist/components/FileList/FileListItem.es.js +4 -4
  135. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  136. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  137. package/dist/components/Heading/Heading.cjs.js +1 -1
  138. package/dist/components/Heading/Heading.es.js +2 -2
  139. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  140. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  141. package/dist/components/Loader/Loader.cjs.js +1 -1
  142. package/dist/components/Loader/Loader.es.js +1 -1
  143. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  144. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  145. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  146. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  147. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  148. package/dist/components/QueryError/QueryError.es.js +2 -2
  149. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  150. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  151. package/dist/components/ResourceCard/style.cjs.js +1 -1
  152. package/dist/components/ResourceCard/style.es.js +22 -22
  153. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  154. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  155. package/dist/components/TreeView/TreeView.cjs.js +5 -5
  156. package/dist/components/TreeView/TreeView.es.js +15 -13
  157. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  158. package/dist/components/TreeView/components/CustomTreeItem.es.js +4 -3
  159. package/dist/components/TreeView/utils.cjs.js +1 -1
  160. package/dist/components/TreeView/utils.es.js +3 -3
  161. package/dist/components/index.cjs.js +1 -1
  162. package/dist/components/index.d.ts +19 -0
  163. package/dist/components/index.es.js +404 -373
  164. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  165. package/dist/components/stories/Alert.stories.es.js +1 -1
  166. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  167. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  168. package/dist/components/stories/Button.stories.cjs.js +1 -1
  169. package/dist/components/stories/Button.stories.es.js +1 -1
  170. package/dist/components/stories/Card.stories.cjs.js +1 -1
  171. package/dist/components/stories/Card.stories.es.js +2 -2
  172. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  173. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  174. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  175. package/dist/components/stories/Chip.stories.es.js +1 -1
  176. package/dist/components/stories/ColoPicker.stories.cjs.js +1 -0
  177. package/dist/components/stories/ColoPicker.stories.d.ts +6 -0
  178. package/dist/components/stories/ColoPicker.stories.es.js +23 -0
  179. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  180. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  181. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  182. package/dist/components/stories/Dialog.stories.es.js +2 -2
  183. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  184. package/dist/components/stories/Divider.stories.es.js +1 -1
  185. package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
  186. package/dist/components/stories/EmptyState.stories.es.js +1 -1
  187. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  188. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  189. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  190. package/dist/components/stories/Heading.stories.es.js +2 -2
  191. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  192. package/dist/components/stories/IconButton.stories.es.js +2 -2
  193. package/dist/components/stories/Link.stories.cjs.js +1 -1
  194. package/dist/components/stories/Link.stories.es.js +1 -1
  195. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  196. package/dist/components/stories/Menu.stories.es.js +2 -2
  197. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  198. package/dist/components/stories/Paper.stories.es.js +1 -1
  199. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  200. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  201. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  202. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  203. package/dist/components/stories/Select.stories.cjs.js +1 -1
  204. package/dist/components/stories/Select.stories.es.js +3 -3
  205. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  206. package/dist/components/stories/TabList.stories.es.js +1 -1
  207. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  208. package/dist/components/stories/TextField.stories.es.js +1 -1
  209. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  210. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  211. package/dist/components/stories/TreeView.stories.cjs.js +3 -3
  212. package/dist/components/stories/TreeView.stories.es.js +29 -29
  213. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  214. package/dist/components/stories/Typography.stories.es.js +1 -1
  215. package/dist/composeClasses-CJKlIaRn.js +51 -0
  216. package/dist/composeClasses-CWgX5SFD.cjs +1 -0
  217. package/dist/createSvgIcon-BgBODH2F.cjs +1 -0
  218. package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-BlKmtOkV.js} +48 -47
  219. package/dist/{dividerClasses-BtzbOVqV.cjs → dividerClasses-D3gnW6kZ.cjs} +1 -1
  220. package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-Glz8RJdF.js} +1 -1
  221. package/dist/elementTypeAcceptingRef-BwZv9xBI.cjs +1 -0
  222. package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DOeckaXy.js} +1 -1
  223. package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BouzOuB6.js} +1 -1
  224. package/dist/{extendSxProp-BKP1AeGz.cjs → extendSxProp-Cm-DtZe3.cjs} +1 -1
  225. package/dist/generateUtilityClasses-CMlilM6r.cjs +55 -0
  226. package/dist/generateUtilityClasses-DngCqveO.js +2628 -0
  227. package/dist/getReactElementRef-EVJnBPlV.cjs +1 -0
  228. package/dist/{getReactElementRef-CD3_Stk5.js → getReactElementRef-H8kwrWP1.js} +1 -1
  229. package/dist/hooks/lazySvgImport.cjs.js +1 -1
  230. package/dist/hooks/lazySvgImport.es.js +1 -1
  231. package/dist/index-BzsuDIEl.cjs +1 -0
  232. package/dist/{index-CDLJvERp.js → index-CX0sAlmK.js} +2 -2
  233. package/dist/index-CrINMjCH.cjs +1 -0
  234. package/dist/index-DIyAQH20.cjs +5 -0
  235. package/dist/index-DLnSn8GT.cjs +20 -0
  236. package/dist/{index-JOgYmUF8.js → index-DX2Sl0Ig.js} +1 -1
  237. package/dist/index-Sy88PpwE.js +672 -0
  238. package/dist/{index-CoYVLWJY.js → index-l8yqod25.js} +14 -13
  239. package/dist/index.cjs.js +1 -1
  240. package/dist/index.es.js +404 -373
  241. package/dist/{listItemTextClasses-DePeZNtZ.cjs → listItemTextClasses-BJFgw1ah.cjs} +1 -1
  242. package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-BRj19IXv.js} +1 -1
  243. package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-BAbn60Cb.cjs} +1 -1
  244. package/dist/{memoTheme-44McxcVZ.js → memoTheme-nmt7i1dS.js} +1 -1
  245. package/dist/mergeSlotProps-BBciKnr4.js +62 -0
  246. package/dist/mergeSlotProps-Z5-o9vSe.cjs +1 -0
  247. package/dist/refType-B_IEJm4x.cjs +1 -0
  248. package/dist/{refType-DsRJ5_Sj.js → refType-Dp7CJc86.js} +1 -1
  249. package/dist/server-error-CqyYyPLN.cjs +1 -0
  250. package/dist/{server-error-DMyaPFs8.js → server-error-CvgIy7ap.js} +1 -3
  251. package/dist/useEventCallback-BxpcFap0.cjs +1 -0
  252. package/dist/useEventCallback-Yoj9nCug.js +15 -0
  253. package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
  254. package/dist/useForkRef-u29GSuCu.js +27 -0
  255. package/dist/useSlot-BDb1lvxu.js +125 -0
  256. package/dist/useSlot-W0PiuVaZ.cjs +1 -0
  257. package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-B_D8u0j-.js} +2 -2
  258. package/dist/useSlotProps-OhEflPiz.cjs +1 -0
  259. package/dist/useTheme-C59wIJ3-.js +11 -0
  260. package/dist/{useTheme-DpMakc_Y.cjs → useTheme-ClhInrO2.cjs} +1 -1
  261. package/dist/{useTheme-CCi6a5Vl.cjs → useTheme-CqYtLDbs.cjs} +1 -1
  262. package/dist/{useTheme-C2OE_AnH.js → useTheme-D9cVynB-.js} +1 -1
  263. package/dist/useThemeProps-BFQ8ndnj.js +17 -0
  264. package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-DQOn-ezC.cjs} +1 -1
  265. package/dist/useThemeProps-DYpozGhe.cjs +1 -0
  266. package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-ggw56DH-.js} +2 -2
  267. package/dist/{utils-DFLaK7Ad.js → utils-BQenyzDz.js} +1 -1
  268. package/dist/utils-ByXw_ZY1.cjs +1 -0
  269. package/dist/warning-C8W811fV.js +11 -0
  270. package/dist/warning-DMUNDgRg.cjs +2 -0
  271. package/package.json +12 -10
  272. package/dist/Alert-Dg5u5Z7d.cjs +0 -1
  273. package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
  274. package/dist/Backdrop-BrTs3LxC.cjs +0 -1
  275. package/dist/Box-CFuWIdLg.cjs +0 -1
  276. package/dist/Button-C7tsSPXV.cjs +0 -1
  277. package/dist/ButtonBase-CBFRgTBs.cjs +0 -74
  278. package/dist/CardContent-BRUkl8hU.cjs +0 -1
  279. package/dist/Checkbox-C_wSNEHD.cjs +0 -1
  280. package/dist/Chip-DUeBMcO4.cjs +0 -1
  281. package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
  282. package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
  283. package/dist/DatePicker-BYPJypQT.cjs +0 -14
  284. package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
  285. package/dist/Dialog-DOXpPT7S.cjs +0 -1
  286. package/dist/DialogContent-BoIE95Tg.cjs +0 -1
  287. package/dist/DialogTitle-B_am69Lr.cjs +0 -1
  288. package/dist/Divider-Nyl7rx-c.cjs +0 -1
  289. package/dist/FormLabel-D4O160ND.cjs +0 -2
  290. package/dist/Grow-DKA2Mfhu.cjs +0 -1
  291. package/dist/IconButton-CGfKAsNI.cjs +0 -2
  292. package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
  293. package/dist/InputBase-BIf-xtMJ.cjs +0 -3
  294. package/dist/Link-CS0qbKjo.cjs +0 -1
  295. package/dist/List-T5dKKWkc.cjs +0 -1
  296. package/dist/ListItem-BN7OXyEP.cjs +0 -1
  297. package/dist/ListItemText-6gXRtF3r.cjs +0 -1
  298. package/dist/ListItemText-afV0BrJL.js +0 -928
  299. package/dist/Menu-D6dHPVP_.cjs +0 -7
  300. package/dist/MenuItem-DOVsV_vI.cjs +0 -1
  301. package/dist/Modal-B8xPmNJd.cjs +0 -2
  302. package/dist/Paper-owda8LtM.cjs +0 -2
  303. package/dist/Popper-DMGJYlm7.cjs +0 -4
  304. package/dist/Portal-BKVc0iys.js +0 -81
  305. package/dist/Portal-CgaP8O8B.cjs +0 -1
  306. package/dist/Radio-OUfsD89D.cjs +0 -1
  307. package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
  308. package/dist/Select-CUlunaOr.cjs +0 -3
  309. package/dist/Stack-D5_1ZBcn.cjs +0 -1
  310. package/dist/Switch-DpdnFebj.cjs +0 -1
  311. package/dist/SwitchBase-BsP35Aas.js +0 -262
  312. package/dist/SwitchBase-DMGf52a3.cjs +0 -1
  313. package/dist/Tab-DZvAf79O.cjs +0 -4
  314. package/dist/TextField-C0KpyS6X.cjs +0 -1
  315. package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
  316. package/dist/Tooltip-BljbhP1z.cjs +0 -4
  317. package/dist/Typography-yvyJLNFu.cjs +0 -1
  318. package/dist/client-error-BUtdld5f.cjs +0 -1
  319. package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
  320. package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
  321. package/dist/generateUtilityClasses-BpRGbQmY.js +0 -3299
  322. package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
  323. package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
  324. package/dist/index-Bt7ukCXi.cjs +0 -5
  325. package/dist/index-DCpyECL4.cjs +0 -1
  326. package/dist/index-baZm35zL.cjs +0 -1
  327. package/dist/refType-DDdajp2p.cjs +0 -1
  328. package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
  329. package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
  330. package/dist/server-error-CeAtUo4S.cjs +0 -1
  331. package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
  332. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  333. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  334. package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
  335. package/dist/useForkRef-CTI33h-3.cjs +0 -1
  336. package/dist/useForkRef-C_4o__cU.js +0 -15
  337. package/dist/useSlot-CSTfsYPJ.cjs +0 -1
  338. package/dist/useSlot-CYOxsM2I.js +0 -48
  339. package/dist/useSlotProps-DTgWZk99.cjs +0 -1
  340. package/dist/useTheme-BDL2rp7a.js +0 -11
  341. package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
  342. package/dist/useThemeProps-DjkGUV8r.js +0 -17
  343. package/dist/utils-Cn6wZNus.cjs +0 -1
@@ -1,110 +1,112 @@
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-BpRGbQmY.js";
3
- import { A as Ft, f as ge, o as vt, i as dt } from "./Select-CxnCi-3l.js";
4
- import { i as ae } from "./InputBase-BQnEIwl1.js";
5
- import { C as Ht } from "./Close-hx7dlgmZ.js";
6
- import { m as se } from "./memoTheme-44McxcVZ.js";
7
- import { u as ft } from "./useSlot-CYOxsM2I.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-Ik4eAJdt.js";
10
- import { u as zt } from "./useId-CK6Kn3Tn.js";
2
+ import { P as t } from "./index-Sy88PpwE.js";
3
+ import { F as kt, G as Rt, H as Je, n as ct } from "./generateUtilityClasses-DngCqveO.js";
4
+ import { A as Ht, f as he, o as $t, i as dt } from "./Select-DZMwqCYA.js";
5
+ import { i as ie } from "./InputBase-DxLqRpcl.js";
6
+ import { C as zt } from "./Close-m-MX3rFn.js";
7
+ import { m as le } from "./memoTheme-nmt7i1dS.js";
8
+ import { u as ft } from "./useSlot-BDb1lvxu.js";
9
+ import { jsx as w, jsxs as _e } from "react/jsx-runtime";
10
+ import { u as Dt, s as H, c as Nt } from "./DefaultPropsProvider-hFv1J_xl.js";
11
+ import { u as jt } from "./useId-CK6Kn3Tn.js";
11
12
  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-CEDxpHWv.js";
15
- import { P as Nt } from "./Popper-D5_YIJX6.js";
16
- import { C as Bt } from "./Chip-Y39z3DS6.js";
17
- import { c as Ke } from "./capitalize-DSG2FA7x.js";
18
- import { I as Et } from "./IconButton-D1mhTuaI.js";
19
- import { c as Ct } from "./chainPropTypes-D9lkm76m.js";
20
- const Wt = (n) => {
13
+ import { u as Ke } from "./useEventCallback-Yoj9nCug.js";
14
+ import { s as Ut } from "./Portal-ChC9wmMZ.js";
15
+ import { P as Et, i as Bt } from "./Paper-984iTz4H.js";
16
+ import { P as Mt } from "./Popper-DfwuvxaQ.js";
17
+ import { C as Wt } from "./Chip-CPR3r42q.js";
18
+ import { c as Ye } from "./capitalize-BHFotl9B.js";
19
+ import { I as Vt } from "./IconButton-CgwURB2g.js";
20
+ import { c as St } from "./chainPropTypes-D9lkm76m.js";
21
+ const Gt = (n) => {
21
22
  const a = y.useRef({});
22
23
  return y.useEffect(() => {
23
24
  a.current = n;
24
25
  }), a.current;
25
26
  };
26
- function $t(n) {
27
+ function Tt(n) {
27
28
  return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
28
29
  }
29
- function Gt(n = {}) {
30
+ function qt(n = {}) {
30
31
  const {
31
32
  ignoreAccents: a = !0,
32
- ignoreCase: c = !0,
33
- limit: g,
34
- matchFrom: D = "any",
35
- stringify: L,
36
- trim: $ = !1
33
+ ignoreCase: d = !0,
34
+ limit: m,
35
+ matchFrom: S = "any",
36
+ stringify: D,
37
+ trim: T = !1
37
38
  } = n;
38
- return (k, {
39
- inputValue: j,
39
+ return (N, {
40
+ inputValue: B,
40
41
  getOptionLabel: I
41
42
  }) => {
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;
43
+ let C = T ? B.trim() : B;
44
+ d && (C = C.toLowerCase()), a && (C = Tt(C));
45
+ const W = C ? N.filter((pe) => {
46
+ let E = (D || I)(pe);
47
+ return d && (E = E.toLowerCase()), a && (E = Tt(E)), S === "start" ? E.startsWith(C) : E.includes(C);
48
+ }) : N;
49
+ return typeof m == "number" ? W.slice(0, m) : W;
49
50
  };
50
51
  }
51
- const qt = Gt(), _t = 5, Kt = (n) => {
52
+ const _t = qt(), Kt = 5, Jt = (n) => {
52
53
  var a;
53
54
  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)
55
+ }, Xt = [];
56
+ function At(n, a, d, m) {
57
+ if (a || n == null || m)
57
58
  return "";
58
- const g = c(n);
59
- return typeof g == "string" ? g : "";
59
+ const S = d(n);
60
+ return typeof S == "string" ? S : "";
60
61
  }
61
- function Xt(n) {
62
+ function Yt(n) {
62
63
  const {
63
64
  // eslint-disable-next-line @typescript-eslint/naming-convention
64
- unstable_isActiveElementInListbox: a = Kt,
65
+ unstable_isActiveElementInListbox: a = Jt,
65
66
  // 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,
67
+ unstable_classNamePrefix: d = "Mui",
68
+ autoComplete: m = !1,
69
+ autoHighlight: S = !1,
70
+ autoSelect: D = !1,
71
+ blurOnSelect: T = !1,
72
+ clearOnBlur: N = !n.freeSolo,
73
+ clearOnEscape: B = !1,
73
74
  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,
75
+ defaultValue: C = n.multiple ? Xt : null,
76
+ disableClearable: W = !1,
77
+ disableCloseOnSelect: pe = !1,
78
+ disabled: E,
79
+ disabledItemsFocusable: we = !1,
80
+ disableListWrap: Le = !1,
81
+ filterOptions: mt = _t,
82
+ filterSelectedOptions: ke = !1,
83
+ freeSolo: ue = !1,
84
+ getOptionDisabled: G,
85
+ getOptionKey: Re,
86
+ getOptionLabel: Qe = (o) => o.label ?? o,
87
+ groupBy: oe,
88
+ handleHomeEndKeys: Ze = !n.freeSolo,
89
+ id: bt,
90
+ includeInputInList: ye = !1,
91
+ inputValue: De,
92
+ isOptionEqualToValue: Y = (o, e) => o === e,
93
+ multiple: u = !1,
94
+ onChange: et,
95
+ onClose: tt,
96
+ onHighlightChange: Ne,
97
+ onInputChange: Q,
98
+ onOpen: Ee,
98
99
  open: ht,
99
100
  openOnFocus: yt = !1,
100
101
  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);
102
+ readOnly: _ = !1,
103
+ renderValue: L,
104
+ selectOnFocus: ot = !n.freeSolo,
105
+ value: Me
106
+ } = n, M = jt(bt);
107
+ let $ = Qe;
108
+ $ = (o) => {
109
+ const e = Qe(o);
108
110
  if (typeof e != "string") {
109
111
  if (process.env.NODE_ENV !== "production") {
110
112
  const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
@@ -114,235 +116,240 @@ function Xt(n) {
114
116
  }
115
117
  return e;
116
118
  };
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,
119
+ 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({
120
+ controlled: Me,
121
+ default: C,
120
122
  name: I
121
- }), [f, ue] = gt({
122
- controlled: ke,
123
- default: Ee,
123
+ }), [f, ne] = gt({
124
+ controlled: De,
125
+ default: Ot,
124
126
  name: I,
125
127
  state: "inputValue"
126
- }), [ee, Me] = y.useState(!1), ce = y.useCallback((o, e, r) => {
127
- if (!(b ? s.length < e.length : e !== null) && !k)
128
+ }), [de, Fe] = y.useState(!1), fe = y.useCallback((o, e, r) => {
129
+ if (!(u ? i.length < e.length : e !== null) && !N)
128
130
  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({
131
+ const s = At(e, u, $, L);
132
+ f !== s && (ne(s), Q && Q(o, s, r));
133
+ }, [$, f, u, Q, ne, N, i, L]), [K, Pe] = gt({
132
134
  controlled: ht,
133
135
  default: !1,
134
136
  name: I,
135
137
  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)))),
138
+ }), [Pt, ge] = y.useState(!0), He = !u && i != null && f === $(i), k = K && !_, b = k ? mt(
139
+ xt.filter((o) => !(ke && (u ? i : [i]).some((e) => e !== null && Y(o, e)))),
138
140
  // we use the empty string to manipulate `filterOptions` to not filter any options
139
141
  // i.e. the filter predicate always returns true
140
142
  {
141
- inputValue: Ve && Ot ? "" : f,
142
- getOptionLabel: P
143
+ inputValue: He && Pt ? "" : f,
144
+ getOptionLabel: $
143
145
  }
144
- ) : [], F = Wt({
145
- filteredOptions: h,
146
- value: s,
146
+ ) : [], z = Gt({
147
+ filteredOptions: b,
148
+ value: i,
147
149
  inputValue: f
148
150
  });
149
151
  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();
152
+ const o = i !== z.value;
153
+ de && !o || ue && !o || fe(null, i, "reset");
154
+ }, [i, fe, de, z.value, ue]);
155
+ const ze = K && b.length > 0 && !_, j = Ke((o) => {
156
+ if (o === -1)
157
+ h.current.focus();
158
+ else {
159
+ const e = L ? "data-item-index" : "data-tag-index";
160
+ Ie.querySelector(`[${e}="${o}"]`).focus();
161
+ }
155
162
  });
156
163
  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)
164
+ u && V > i.length - 1 && (Ve(-1), j(-1));
165
+ }, [i, u, V, j]);
166
+ function rt(o, e) {
167
+ if (!F.current || o < 0 || o >= b.length)
161
168
  return -1;
162
169
  let r = o;
163
170
  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)
171
+ const p = F.current.querySelector(`[data-option-index="${r}"]`), s = we ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
172
+ if (p && p.hasAttribute("tabindex") && !s)
166
173
  return r;
167
- if (e === "next" ? r = (r + 1) % h.length : r = (r - 1 + h.length) % h.length, r === o)
174
+ if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
168
175
  return -1;
169
176
  }
170
177
  }
171
- const _ = Ge(({
178
+ const J = Ke(({
172
179
  event: o,
173
180
  index: e,
174
- reason: r = "auto"
181
+ reason: r
175
182
  }) => {
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)
183
+ 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
184
  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)
185
+ const p = F.current.querySelector(`[role="option"].${d}-focused`);
186
+ p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
187
+ let s = F.current;
188
+ if (F.current.getAttribute("role") !== "listbox" && (s = F.current.parentElement.querySelector('[role="listbox"]')), !s)
182
189
  return;
183
190
  if (e === -1) {
184
- p.scrollTop = 0;
191
+ s.scrollTop = 0;
185
192
  return;
186
193
  }
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));
194
+ const g = F.current.querySelector(`[data-option-index="${e}"]`);
195
+ if (g && (g.classList.add(`${d}-focused`), r === "keyboard" && g.classList.add(`${d}-focusVisible`), s.scrollHeight > s.clientHeight && r !== "mouse" && r !== "touch")) {
196
+ const x = g, A = s.clientHeight + s.scrollTop, Te = x.offsetTop + x.offsetHeight;
197
+ 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
198
  }
192
- }), H = Ge(({
199
+ }), U = Ke(({
193
200
  event: o,
194
201
  diff: e,
195
202
  direction: r = "next",
196
- reason: i = "auto"
203
+ reason: p
197
204
  }) => {
198
- if (!w)
205
+ if (!k)
199
206
  return;
200
- const u = ot((() => {
201
- const x = h.length - 1;
207
+ const g = rt((() => {
208
+ const x = b.length - 1;
202
209
  if (e === "reset")
203
- return et;
210
+ return nt;
204
211
  if (e === "start")
205
212
  return 0;
206
213
  if (e === "end")
207
214
  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;
215
+ const A = P.current + e;
216
+ 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
217
  })(), r);
211
- if (_({
212
- index: u,
213
- reason: i,
218
+ if (J({
219
+ index: g,
220
+ reason: p,
214
221
  event: o
215
- }), g && e !== "reset")
216
- if (u === -1)
217
- m.current.value = f;
222
+ }), m && e !== "reset")
223
+ if (g === -1)
224
+ h.current.value = f;
218
225
  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);
226
+ const x = $(b[g]);
227
+ h.current.value = x, x.toLowerCase().indexOf(f.toLowerCase()) === 0 && f.length > 0 && h.current.setSelectionRange(f.length, x.length);
221
228
  }
222
- }), nt = () => {
229
+ }), at = () => {
223
230
  const o = (e, r) => {
224
- const i = e ? P(e) : "", p = r ? P(r) : "";
225
- return i === p;
231
+ const p = e ? $(e) : "", s = r ? $(r) : "";
232
+ return p === s;
226
233
  };
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];
234
+ 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))) {
235
+ const e = z.filteredOptions[P.current];
229
236
  if (e)
230
- return h.findIndex((r) => P(r) === P(e));
237
+ return b.findIndex((r) => $(r) === $(e));
231
238
  }
232
239
  return -1;
233
- }, Oe = y.useCallback(() => {
234
- if (!w)
240
+ }, ve = y.useCallback(() => {
241
+ if (!k)
235
242
  return;
236
- const o = nt();
243
+ const o = at();
237
244
  if (o !== -1) {
238
- T.current = o;
245
+ P.current = o;
239
246
  return;
240
247
  }
241
- const e = b ? s[0] : s;
242
- if (h.length === 0 || e == null) {
243
- H({
248
+ const e = u ? i[0] : i;
249
+ if (b.length === 0 || e == null) {
250
+ U({
244
251
  diff: "reset"
245
252
  });
246
253
  return;
247
254
  }
248
- if (E.current) {
255
+ if (F.current) {
249
256
  if (e != null) {
250
- const r = h[T.current];
251
- if (b && r && s.findIndex((p) => K(r, p)) !== -1)
257
+ const r = b[P.current];
258
+ if (u && r && i.findIndex((s) => Y(r, s)) !== -1)
252
259
  return;
253
- const i = h.findIndex((p) => K(p, e));
254
- i === -1 ? H({
260
+ const p = b.findIndex((s) => Y(s, e));
261
+ p === -1 ? U({
255
262
  diff: "reset"
256
- }) : _({
257
- index: i
263
+ }) : J({
264
+ index: p
258
265
  });
259
266
  return;
260
267
  }
261
- if (T.current >= h.length - 1) {
262
- _({
263
- index: h.length - 1
268
+ if (P.current >= b.length - 1) {
269
+ J({
270
+ index: b.length - 1
264
271
  });
265
272
  return;
266
273
  }
267
- _({
268
- index: T.current
274
+ J({
275
+ index: P.current
269
276
  });
270
277
  }
271
278
  }, [
272
279
  // Only sync the highlighted index when the option switch between empty and not
273
- h.length,
280
+ b.length,
274
281
  // Don't sync the highlighted index with the value when multiple
275
282
  // eslint-disable-next-line react-hooks/exhaustive-deps
276
- b ? !1 : s,
277
- we,
278
- H,
279
- _,
280
- w,
283
+ u ? !1 : i,
284
+ ke,
285
+ U,
286
+ J,
287
+ k,
281
288
  f,
282
- b
283
- ]), rt = Ge((o) => {
284
- jt(E, o), o && Oe();
289
+ u
290
+ ]), st = Ke((o) => {
291
+ Ut(F, o), o && ve();
285
292
  });
286
293
  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(`
294
+ (!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(`
295
+ `)) : 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
296
  `)));
290
297
  }, [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]))
298
+ ve();
299
+ }, [ve]);
300
+ const R = (o) => {
301
+ K || (Pe(!0), ge(!0), Ee && Ee(o));
302
+ }, re = (o, e) => {
303
+ K && (Pe(!1), tt && tt(o, e));
304
+ }, X = (o, e, r, p) => {
305
+ if (u) {
306
+ if (i.length === e.length && i.every((s, g) => s === e[g]))
300
307
  return;
301
- } else if (s === e)
308
+ } else if (i === e)
302
309
  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(`
310
+ et && et(o, e, r, p), Oe(e);
311
+ }, me = y.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
312
+ let s = r, g = e;
313
+ if (u) {
314
+ if (g = Array.isArray(i) ? i.slice() : [], process.env.NODE_ENV !== "production") {
315
+ const A = g.filter((Te) => Y(e, Te));
316
+ 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
317
  `));
311
318
  }
312
- const x = u.findIndex((S) => K(e, S));
313
- x === -1 ? u.push(e) : i !== "freeSolo" && (u.splice(x, 1), p = "removeOption");
319
+ const x = g.findIndex((A) => Y(e, A));
320
+ x === -1 ? g.push(e) : p !== "freeSolo" && (g.splice(x, 1), s = "removeOption");
314
321
  }
315
- ce(o, u, p), Y(o, u, p, {
322
+ fe(o, g, s), X(o, g, s, {
316
323
  option: e
317
- }), !ie && (!o || !o.ctrlKey && !o.metaKey) && oe(o, p), ($ === !0 || $ === "touch" && fe.current || $ === "mouse" && !fe.current) && m.current.blur();
324
+ }), !pe && (!o || !o.ctrlKey && !o.metaKey) && re(o, s), (T === !0 || T === "touch" && me.current || T === "mouse" && !me.current) && h.current.blur();
318
325
  };
319
- function He(o, e) {
326
+ function je(o, e) {
320
327
  if (o === -1)
321
328
  return -1;
322
329
  let r = o;
323
330
  for (; ; ) {
324
- if (e === "next" && r === s.length || e === "previous" && r === -1)
331
+ if (e === "next" && r === i.length || e === "previous" && r === -1)
325
332
  return -1;
326
- const i = xe.querySelector(`[data-tag-index="${r}"]`);
327
- if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
333
+ const p = L ? "data-item-index" : "data-tag-index", s = Ie.querySelector(`[${p}="${r}"]`);
334
+ if (!s || !s.hasAttribute("tabindex") || s.disabled || s.getAttribute("aria-disabled") === "true")
328
335
  r += e === "next" ? 1 : -1;
329
336
  else
330
337
  return r;
331
338
  }
332
339
  }
333
- const ze = (o, e) => {
334
- if (!b)
340
+ const Ue = (o, e) => {
341
+ if (!u)
335
342
  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))
343
+ f === "" && re(o, "toggleInput");
344
+ let r = V;
345
+ 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);
346
+ }, ae = (o) => {
347
+ ce.current = !0, ne(""), Q && Q(o, "", "clear"), X(o, u ? [] : null, "clear");
348
+ }, it = (o) => (e) => {
349
+ if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
343
350
  switch (e.key) {
344
351
  case "Home":
345
- w && Xe && (e.preventDefault(), H({
352
+ k && Ze && (e.preventDefault(), U({
346
353
  diff: "start",
347
354
  direction: "next",
348
355
  reason: "keyboard",
@@ -350,7 +357,7 @@ function Xt(n) {
350
357
  }));
351
358
  break;
352
359
  case "End":
353
- w && Xe && (e.preventDefault(), H({
360
+ k && Ze && (e.preventDefault(), U({
354
361
  diff: "end",
355
362
  direction: "previous",
356
363
  reason: "keyboard",
@@ -358,186 +365,209 @@ function Xt(n) {
358
365
  }));
359
366
  break;
360
367
  case "PageUp":
361
- e.preventDefault(), H({
368
+ e.preventDefault(), U({
362
369
  diff: -5,
363
370
  direction: "previous",
364
371
  reason: "keyboard",
365
372
  event: e
366
- }), z(e);
373
+ }), R(e);
367
374
  break;
368
375
  case "PageDown":
369
- e.preventDefault(), H({
370
- diff: _t,
376
+ e.preventDefault(), U({
377
+ diff: Kt,
371
378
  direction: "next",
372
379
  reason: "keyboard",
373
380
  event: e
374
- }), z(e);
381
+ }), R(e);
375
382
  break;
376
383
  case "ArrowDown":
377
- e.preventDefault(), H({
384
+ e.preventDefault(), U({
378
385
  diff: 1,
379
386
  direction: "next",
380
387
  reason: "keyboard",
381
388
  event: e
382
- }), z(e);
389
+ }), R(e);
383
390
  break;
384
391
  case "ArrowUp":
385
- e.preventDefault(), H({
392
+ e.preventDefault(), U({
386
393
  diff: -1,
387
394
  direction: "previous",
388
395
  reason: "keyboard",
389
396
  event: e
390
- }), z(e);
397
+ }), R(e);
391
398
  break;
392
399
  case "ArrowLeft":
393
- ze(e, "previous");
400
+ !u && L ? j(0) : Ue(e, "previous");
394
401
  break;
395
402
  case "ArrowRight":
396
- ze(e, "next");
403
+ !u && L ? j(-1) : Ue(e, "next");
397
404
  break;
398
405
  case "Enter":
399
- if (T.current !== -1 && w) {
400
- const r = h[T.current], i = B ? B(r) : !1;
401
- if (e.preventDefault(), i)
406
+ if (P.current !== -1 && k) {
407
+ const r = b[P.current], p = G ? G(r) : !1;
408
+ if (e.preventDefault(), p)
402
409
  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"));
410
+ q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
411
+ } else ue && f !== "" && He === !1 && (u && e.preventDefault(), q(e, f, "createOption", "freeSolo"));
405
412
  break;
406
413
  case "Escape":
407
- w ? (e.preventDefault(), e.stopPropagation(), oe(e, "escape")) : j && (f !== "" || b && s.length > 0) && (e.preventDefault(), e.stopPropagation(), ne(e));
414
+ k ? (e.preventDefault(), e.stopPropagation(), re(e, "escape")) : B && (f !== "" || u && i.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), ae(e));
408
415
  break;
409
416
  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]
417
+ if (u && !_ && f === "" && i.length > 0) {
418
+ const r = V === -1 ? i.length - 1 : V, p = i.slice();
419
+ p.splice(r, 1), X(e, p, "removeOption", {
420
+ option: i[r]
414
421
  });
415
422
  }
423
+ !u && L && !_ && (Oe(null), j(-1));
416
424
  break;
417
425
  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]
426
+ if (u && !_ && f === "" && i.length > 0 && V !== -1) {
427
+ const r = V, p = i.slice();
428
+ p.splice(r, 1), X(e, p, "removeOption", {
429
+ option: i[r]
422
430
  });
423
431
  }
432
+ !u && L && !_ && (Oe(null), j(-1));
424
433
  break;
425
434
  }
426
- }, st = (o) => {
427
- Me(!0), yt && !he.current && z(o);
428
- }, re = (o) => {
429
- if (a(E)) {
430
- m.current.focus();
435
+ }, lt = (o) => {
436
+ Fe(!0), yt && !ce.current && R(o);
437
+ }, se = (o) => {
438
+ if (a(F)) {
439
+ h.current.focus();
431
440
  return;
432
441
  }
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) => {
442
+ 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");
443
+ }, Ce = (o) => {
435
444
  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) => {
445
+ f !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
446
+ }, $e = (o) => {
438
447
  const e = Number(o.currentTarget.getAttribute("data-option-index"));
439
- T.current !== e && _({
448
+ P.current !== e && J({
440
449
  event: o,
441
450
  index: e,
442
451
  reason: "mouse"
443
452
  });
444
- }, it = (o) => {
445
- _({
453
+ }, pt = (o) => {
454
+ J({
446
455
  event: o,
447
456
  index: Number(o.currentTarget.getAttribute("data-option-index")),
448
457
  reason: "touch"
449
- }), fe.current = !0;
450
- }, lt = (o) => {
458
+ }), me.current = !0;
459
+ }, ut = (o) => {
451
460
  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]
461
+ q(o, b[e], "selectOption"), me.current = !1;
462
+ }, Be = (o) => (e) => {
463
+ const r = i.slice();
464
+ r.splice(o, 1), X(e, r, "removeOption", {
465
+ option: i[o]
457
466
  });
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);
467
+ }, vt = (o) => {
468
+ X(o, null, "removeOption", {
469
+ option: i
470
+ });
471
+ }, be = (o) => {
472
+ K ? re(o, "toggleInput") : R(o);
473
+ }, v = (o) => {
474
+ o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
464
475
  }, O = (o) => {
465
- !R && (f === "" || !X) && ut(o);
476
+ o.currentTarget.contains(o.target) && (h.current.focus(), ot && xe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), xe.current = !1);
477
+ }, Z = (o) => {
478
+ !E && (f === "" || !K) && be(o);
466
479
  };
467
- let G = le && f.length > 0;
468
- G = G || (b ? s.length > 0 : s !== null);
469
- let je = h;
470
- if (Z) {
480
+ let Se = ue && f.length > 0;
481
+ Se = Se || (u ? i.length > 0 : i !== null);
482
+ let We = b;
483
+ if (oe) {
471
484
  const o = /* @__PURE__ */ new Map();
472
485
  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]
486
+ We = b.reduce((r, p, s) => {
487
+ const g = oe(p);
488
+ 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({
489
+ key: s,
490
+ index: s,
491
+ group: g,
492
+ options: [p]
480
493
  })), r;
481
494
  }, []);
482
495
  }
483
- return R && ee && re(), {
496
+ return E && de && se(), {
484
497
  getRootProps: (o = {}) => ({
485
498
  ...o,
486
- onKeyDown: at(o),
487
- onMouseDown: Ce,
488
- onClick: C
499
+ onKeyDown: it(o),
500
+ onMouseDown: v,
501
+ onClick: O
489
502
  }),
490
503
  getInputLabelProps: () => ({
491
- id: `${N}-label`,
492
- htmlFor: N
504
+ id: `${M}-label`,
505
+ htmlFor: M
493
506
  }),
494
507
  getInputProps: () => ({
495
- id: N,
508
+ id: M,
496
509
  value: f,
497
- onBlur: re,
498
- onFocus: st,
499
- onChange: Pe,
500
- onMouseDown: O,
510
+ onBlur: se,
511
+ onFocus: lt,
512
+ onChange: Ce,
513
+ onMouseDown: Z,
501
514
  // if open then this is handled imperatively so don't let react override
502
515
  // 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,
516
+ "aria-activedescendant": k ? "" : null,
517
+ "aria-autocomplete": m ? "both" : "list",
518
+ "aria-controls": ze ? `${M}-listbox` : void 0,
519
+ "aria-expanded": ze,
507
520
  // Disable browser's suggestion that might overlap with the popup.
508
521
  // Handle autocomplete but not autofill.
509
522
  autoComplete: "off",
510
- ref: m,
523
+ ref: h,
511
524
  autoCapitalize: "none",
512
525
  spellCheck: "false",
513
526
  role: "combobox",
514
- disabled: R
527
+ disabled: E
515
528
  }),
516
529
  getClearProps: () => ({
517
530
  tabIndex: -1,
518
531
  type: "button",
519
- onClick: ne
532
+ onClick: ae
533
+ }),
534
+ getItemProps: ({
535
+ index: o = 0
536
+ } = {}) => ({
537
+ ...u && {
538
+ key: o
539
+ },
540
+ ...L ? {
541
+ "data-item-index": o
542
+ } : {
543
+ "data-tag-index": o
544
+ },
545
+ tabIndex: -1,
546
+ ...!_ && {
547
+ onDelete: u ? Be(o) : vt
548
+ }
520
549
  }),
521
550
  getPopupIndicatorProps: () => ({
522
551
  tabIndex: -1,
523
552
  type: "button",
524
- onClick: ut
553
+ onClick: be
525
554
  }),
555
+ // deprecated
526
556
  getTagProps: ({
527
557
  index: o
528
558
  }) => ({
529
559
  key: o,
530
560
  "data-tag-index": o,
531
561
  tabIndex: -1,
532
- ...!pe && {
533
- onDelete: pt(o)
562
+ ...!_ && {
563
+ onDelete: Be(o)
534
564
  }
535
565
  }),
536
566
  getListboxProps: () => ({
537
567
  role: "listbox",
538
- id: `${N}-listbox`,
539
- "aria-labelledby": `${N}-label`,
540
- ref: rt,
568
+ id: `${M}-listbox`,
569
+ "aria-labelledby": `${M}-label`,
570
+ ref: st,
541
571
  onMouseDown: (o) => {
542
572
  o.preventDefault();
543
573
  }
@@ -546,57 +576,59 @@ function Xt(n) {
546
576
  index: o,
547
577
  option: e
548
578
  }) => {
549
- const r = (b ? s : [s]).some((p) => p != null && K(e, p)), i = B ? B(e) : !1;
579
+ const r = (u ? i : [i]).some((s) => s != null && Y(e, s)), p = G ? G(e) : !1;
550
580
  return {
551
- key: (Le == null ? void 0 : Le(e)) ?? P(e),
581
+ key: (Re == null ? void 0 : Re(e)) ?? $(e),
552
582
  tabIndex: -1,
553
583
  role: "option",
554
- id: `${N}-option-${o}`,
555
- onMouseMove: ve,
556
- onClick: lt,
557
- onTouchStart: it,
584
+ id: `${M}-option-${o}`,
585
+ onMouseMove: $e,
586
+ onClick: ut,
587
+ onTouchStart: pt,
558
588
  "data-option-index": o,
559
- "aria-disabled": i,
589
+ "aria-disabled": p,
560
590
  "aria-selected": r
561
591
  };
562
592
  },
563
- id: N,
593
+ id: M,
564
594
  inputValue: f,
565
- value: s,
566
- dirty: G,
567
- expanded: w && xe,
568
- popupOpen: w,
569
- focused: ee || M !== -1,
570
- anchorEl: xe,
595
+ value: i,
596
+ dirty: Se,
597
+ expanded: k && Ie,
598
+ popupOpen: k,
599
+ focused: de || V !== -1,
600
+ anchorEl: Ie,
571
601
  setAnchorEl: It,
572
- focusedTag: M,
573
- groupedOptions: je
602
+ focusedItem: V,
603
+ // deprecated
604
+ focusedTag: V,
605
+ groupedOptions: We
574
606
  };
575
607
  }
576
- function Yt(n) {
577
- return Lt("MuiListSubheader", n);
608
+ function Qt(n) {
609
+ return Rt("MuiListSubheader", n);
578
610
  }
579
- const Do = wt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Qt = (n) => {
611
+ const Eo = kt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
580
612
  const {
581
613
  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"]
614
+ color: d,
615
+ disableGutters: m,
616
+ inset: S,
617
+ disableSticky: D
618
+ } = n, T = {
619
+ root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters", S && "inset", !D && "sticky"]
588
620
  };
589
- return Rt($, Yt, a);
590
- }, Zt = V("li", {
621
+ return Nt(T, Qt, a);
622
+ }, eo = H("li", {
591
623
  name: "MuiListSubheader",
592
624
  slot: "Root",
593
625
  overridesResolver: (n, a) => {
594
626
  const {
595
- ownerState: c
627
+ ownerState: d
596
628
  } = 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];
629
+ return [a.root, d.color !== "default" && a[`color${Ye(d.color)}`], !d.disableGutters && a.gutters, d.inset && a.inset, !d.disableSticky && a.sticky];
598
630
  }
599
- })(se(({
631
+ })(le(({
600
632
  theme: n
601
633
  }) => ({
602
634
  boxSizing: "border-box",
@@ -646,36 +678,36 @@ const Do = wt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
646
678
  backgroundColor: (n.vars || n).palette.background.paper
647
679
  }
648
680
  }]
649
- }))), _e = /* @__PURE__ */ y.forwardRef(function(a, c) {
650
- const g = kt({
681
+ }))), Xe = /* @__PURE__ */ y.forwardRef(function(a, d) {
682
+ const m = Dt({
651
683
  props: a,
652
684
  name: "MuiListSubheader"
653
685
  }), {
654
- className: D,
655
- color: L = "default",
656
- component: $ = "li",
657
- disableGutters: k = !1,
658
- disableSticky: j = !1,
686
+ className: S,
687
+ color: D = "default",
688
+ component: T = "li",
689
+ disableGutters: N = !1,
690
+ disableSticky: B = !1,
659
691
  inset: I = !1,
660
- ...v
661
- } = g, U = {
662
- ...g,
663
- color: L,
664
- component: $,
665
- disableGutters: k,
666
- disableSticky: j,
692
+ ...C
693
+ } = m, W = {
694
+ ...m,
695
+ color: D,
696
+ component: T,
697
+ disableGutters: N,
698
+ disableSticky: B,
667
699
  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
700
+ }, pe = Zt(W);
701
+ return /* @__PURE__ */ w(eo, {
702
+ as: T,
703
+ className: Je(pe.root, S),
704
+ ref: d,
705
+ ownerState: W,
706
+ ...C
675
707
  });
676
708
  });
677
- _e && (_e.muiSkipListHighlight = !0);
678
- process.env.NODE_ENV !== "production" && (_e.propTypes = {
709
+ Xe && (Xe.muiSkipListHighlight = !0);
710
+ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
679
711
  // ┌────────────────────────────── Warning ──────────────────────────────┐
680
712
  // │ These PropTypes are generated from the TypeScript type definitions. │
681
713
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -722,32 +754,32 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
722
754
  */
723
755
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
724
756
  });
725
- function eo(n) {
726
- return Lt("MuiAutocomplete", n);
757
+ function to(n) {
758
+ return Rt("MuiAutocomplete", n);
727
759
  }
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) => {
760
+ 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"]);
761
+ var wt, Lt;
762
+ const oo = (n) => {
731
763
  const {
732
764
  classes: a,
733
- disablePortal: c,
734
- expanded: g,
735
- focused: D,
736
- fullWidth: L,
737
- hasClearIcon: $,
738
- hasPopupIcon: k,
739
- inputFocused: j,
765
+ disablePortal: d,
766
+ expanded: m,
767
+ focused: S,
768
+ fullWidth: D,
769
+ hasClearIcon: T,
770
+ hasPopupIcon: N,
771
+ inputFocused: B,
740
772
  popupOpen: I,
741
- size: v
742
- } = n, U = {
743
- root: ["root", g && "expanded", D && "focused", L && "fullWidth", $ && "hasClearIcon", k && "hasPopupIcon"],
773
+ size: C
774
+ } = n, W = {
775
+ root: ["root", m && "expanded", S && "focused", D && "fullWidth", T && "hasClearIcon", N && "hasPopupIcon"],
744
776
  inputRoot: ["inputRoot"],
745
- input: ["input", j && "inputFocused"],
746
- tag: ["tag", `tagSize${Ke(v)}`],
777
+ input: ["input", B && "inputFocused"],
778
+ tag: ["tag", `tagSize${Ye(C)}`],
747
779
  endAdornment: ["endAdornment"],
748
780
  clearIndicator: ["clearIndicator"],
749
781
  popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
750
- popper: ["popper", c && "popperDisablePortal"],
782
+ popper: ["popper", d && "popperDisablePortal"],
751
783
  paper: ["paper"],
752
784
  listbox: ["listbox"],
753
785
  loading: ["loading"],
@@ -756,31 +788,31 @@ const to = (n) => {
756
788
  groupLabel: ["groupLabel"],
757
789
  groupUl: ["groupUl"]
758
790
  };
759
- return Rt(U, eo, a);
760
- }, oo = V("div", {
791
+ return Nt(W, to, a);
792
+ }, no = H("div", {
761
793
  name: "MuiAutocomplete",
762
794
  slot: "Root",
763
795
  overridesResolver: (n, a) => {
764
796
  const {
765
- ownerState: c
797
+ ownerState: d
766
798
  } = n, {
767
- fullWidth: g,
768
- hasClearIcon: D,
769
- hasPopupIcon: L,
770
- inputFocused: $,
771
- size: k
772
- } = c;
799
+ fullWidth: m,
800
+ hasClearIcon: S,
801
+ hasPopupIcon: D,
802
+ inputFocused: T,
803
+ size: N
804
+ } = d;
773
805
  return [{
774
806
  [`& .${l.tag}`]: a.tag
775
807
  }, {
776
- [`& .${l.tag}`]: a[`tagSize${Ke(k)}`]
808
+ [`& .${l.tag}`]: a[`tagSize${Ye(N)}`]
777
809
  }, {
778
810
  [`& .${l.inputRoot}`]: a.inputRoot
779
811
  }, {
780
812
  [`& .${l.input}`]: a.input
781
813
  }, {
782
- [`& .${l.input}`]: $ && a.inputFocused
783
- }, a.root, g && a.fullWidth, L && a.hasPopupIcon, D && a.hasClearIcon];
814
+ [`& .${l.input}`]: T && a.inputFocused
815
+ }, a.root, m && a.fullWidth, D && a.hasPopupIcon, S && a.hasClearIcon];
784
816
  }
785
817
  })({
786
818
  [`&.${l.focused} .${l.clearIndicator}`]: {
@@ -814,12 +846,12 @@ const to = (n) => {
814
846
  padding: "4px 4px 4px 0px"
815
847
  }
816
848
  },
817
- [`& .${dt.root}.${ae.sizeSmall}`]: {
849
+ [`& .${dt.root}.${ie.sizeSmall}`]: {
818
850
  [`& .${dt.input}`]: {
819
851
  padding: "2px 4px 3px 0"
820
852
  }
821
853
  },
822
- [`& .${vt.root}`]: {
854
+ [`& .${$t.root}`]: {
823
855
  padding: 9,
824
856
  [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
825
857
  paddingRight: 39
@@ -834,7 +866,7 @@ const to = (n) => {
834
866
  right: 9
835
867
  }
836
868
  },
837
- [`& .${vt.root}.${ae.sizeSmall}`]: {
869
+ [`& .${$t.root}.${ie.sizeSmall}`]: {
838
870
  // Don't specify paddingRight, as it overrides the default value set when there is only
839
871
  // one of the popup or clear icon as the specificity is equal so the latter one wins
840
872
  paddingTop: 6,
@@ -844,7 +876,7 @@ const to = (n) => {
844
876
  padding: "2.5px 4px 2.5px 8px"
845
877
  }
846
878
  },
847
- [`& .${ge.root}`]: {
879
+ [`& .${he.root}`]: {
848
880
  paddingTop: 19,
849
881
  paddingLeft: 8,
850
882
  [`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
@@ -853,23 +885,23 @@ const to = (n) => {
853
885
  [`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
854
886
  paddingRight: 65
855
887
  },
856
- [`& .${ge.input}`]: {
888
+ [`& .${he.input}`]: {
857
889
  padding: "7px 4px"
858
890
  },
859
891
  [`& .${l.endAdornment}`]: {
860
892
  right: 9
861
893
  }
862
894
  },
863
- [`& .${ge.root}.${ae.sizeSmall}`]: {
895
+ [`& .${he.root}.${ie.sizeSmall}`]: {
864
896
  paddingBottom: 1,
865
- [`& .${ge.input}`]: {
897
+ [`& .${he.input}`]: {
866
898
  padding: "2.5px 4px"
867
899
  }
868
900
  },
869
- [`& .${ae.hiddenLabel}`]: {
901
+ [`& .${ie.hiddenLabel}`]: {
870
902
  paddingTop: 8
871
903
  },
872
- [`& .${ge.root}.${ae.hiddenLabel}`]: {
904
+ [`& .${he.root}.${ie.hiddenLabel}`]: {
873
905
  paddingTop: 0,
874
906
  paddingBottom: 0,
875
907
  [`& .${l.input}`]: {
@@ -877,7 +909,7 @@ const to = (n) => {
877
909
  paddingBottom: 17
878
910
  }
879
911
  },
880
- [`& .${ge.root}.${ae.hiddenLabel}.${ae.sizeSmall}`]: {
912
+ [`& .${he.root}.${ie.hiddenLabel}.${ie.sizeSmall}`]: {
881
913
  [`& .${l.input}`]: {
882
914
  paddingTop: 8,
883
915
  paddingBottom: 9
@@ -924,7 +956,7 @@ const to = (n) => {
924
956
  }
925
957
  }
926
958
  }]
927
- }), no = V("div", {
959
+ }), ro = H("div", {
928
960
  name: "MuiAutocomplete",
929
961
  slot: "EndAdornment",
930
962
  overridesResolver: (n, a) => a.endAdornment
@@ -934,7 +966,7 @@ const to = (n) => {
934
966
  right: 0,
935
967
  top: "50%",
936
968
  transform: "translate(0, -50%)"
937
- }), ro = V(Et, {
969
+ }), ao = H(Vt, {
938
970
  name: "MuiAutocomplete",
939
971
  slot: "ClearIndicator",
940
972
  overridesResolver: (n, a) => a.clearIndicator
@@ -942,14 +974,14 @@ const to = (n) => {
942
974
  marginRight: -2,
943
975
  padding: 4,
944
976
  visibility: "hidden"
945
- }), ao = V(Et, {
977
+ }), so = H(Vt, {
946
978
  name: "MuiAutocomplete",
947
979
  slot: "PopupIndicator",
948
980
  overridesResolver: (n, a) => {
949
981
  const {
950
- ownerState: c
982
+ ownerState: d
951
983
  } = n;
952
- return [a.popupIndicator, c.popupOpen && a.popupIndicatorOpen];
984
+ return [a.popupIndicator, d.popupOpen && a.popupIndicatorOpen];
953
985
  }
954
986
  })({
955
987
  padding: 2,
@@ -962,18 +994,18 @@ const to = (n) => {
962
994
  transform: "rotate(180deg)"
963
995
  }
964
996
  }]
965
- }), so = V(Nt, {
997
+ }), io = H(Mt, {
966
998
  name: "MuiAutocomplete",
967
999
  slot: "Popper",
968
1000
  overridesResolver: (n, a) => {
969
1001
  const {
970
- ownerState: c
1002
+ ownerState: d
971
1003
  } = n;
972
1004
  return [{
973
1005
  [`& .${l.option}`]: a.option
974
- }, a.popper, c.disablePortal && a.popperDisablePortal];
1006
+ }, a.popper, d.disablePortal && a.popperDisablePortal];
975
1007
  }
976
- })(se(({
1008
+ })(le(({
977
1009
  theme: n
978
1010
  }) => ({
979
1011
  zIndex: (n.vars || n).zIndex.modal,
@@ -985,38 +1017,38 @@ const to = (n) => {
985
1017
  position: "absolute"
986
1018
  }
987
1019
  }]
988
- }))), io = V(Dt, {
1020
+ }))), lo = H(Et, {
989
1021
  name: "MuiAutocomplete",
990
1022
  slot: "Paper",
991
1023
  overridesResolver: (n, a) => a.paper
992
- })(se(({
1024
+ })(le(({
993
1025
  theme: n
994
1026
  }) => ({
995
1027
  ...n.typography.body1,
996
1028
  overflow: "auto"
997
- }))), lo = V("div", {
1029
+ }))), po = H("div", {
998
1030
  name: "MuiAutocomplete",
999
1031
  slot: "Loading",
1000
1032
  overridesResolver: (n, a) => a.loading
1001
- })(se(({
1033
+ })(le(({
1002
1034
  theme: n
1003
1035
  }) => ({
1004
1036
  color: (n.vars || n).palette.text.secondary,
1005
1037
  padding: "14px 16px"
1006
- }))), po = V("div", {
1038
+ }))), uo = H("div", {
1007
1039
  name: "MuiAutocomplete",
1008
1040
  slot: "NoOptions",
1009
1041
  overridesResolver: (n, a) => a.noOptions
1010
- })(se(({
1042
+ })(le(({
1011
1043
  theme: n
1012
1044
  }) => ({
1013
1045
  color: (n.vars || n).palette.text.secondary,
1014
1046
  padding: "14px 16px"
1015
- }))), uo = V("ul", {
1047
+ }))), co = H("ul", {
1016
1048
  name: "MuiAutocomplete",
1017
1049
  slot: "Listbox",
1018
1050
  overridesResolver: (n, a) => a.listbox
1019
- })(se(({
1051
+ })(le(({
1020
1052
  theme: n
1021
1053
  }) => ({
1022
1054
  listStyle: "none",
@@ -1070,16 +1102,16 @@ const to = (n) => {
1070
1102
  }
1071
1103
  }
1072
1104
  }
1073
- }))), co = V(_e, {
1105
+ }))), fo = H(Xe, {
1074
1106
  name: "MuiAutocomplete",
1075
1107
  slot: "GroupLabel",
1076
1108
  overridesResolver: (n, a) => a.groupLabel
1077
- })(se(({
1109
+ })(le(({
1078
1110
  theme: n
1079
1111
  }) => ({
1080
1112
  backgroundColor: (n.vars || n).palette.background.paper,
1081
1113
  top: -8
1082
- }))), fo = V("ul", {
1114
+ }))), go = H("ul", {
1083
1115
  name: "MuiAutocomplete",
1084
1116
  slot: "GroupUl",
1085
1117
  overridesResolver: (n, a) => a.groupUl
@@ -1088,302 +1120,300 @@ const to = (n) => {
1088
1120
  [`& .${l.option}`]: {
1089
1121
  paddingLeft: 24
1090
1122
  }
1091
- }), go = /* @__PURE__ */ y.forwardRef(function(a, c) {
1092
- const g = kt({
1123
+ }), mo = /* @__PURE__ */ y.forwardRef(function(a, d) {
1124
+ const m = Dt({
1093
1125
  props: a,
1094
1126
  name: "MuiAutocomplete"
1095
1127
  }), {
1096
- autoComplete: D = !1,
1097
- autoHighlight: L = !1,
1098
- autoSelect: $ = !1,
1099
- blurOnSelect: k = !1,
1100
- ChipProps: j,
1128
+ autoComplete: S = !1,
1129
+ autoHighlight: D = !1,
1130
+ autoSelect: T = !1,
1131
+ blurOnSelect: N = !1,
1132
+ ChipProps: B,
1101
1133
  className: I,
1102
- clearIcon: v = St || (St = /* @__PURE__ */ A(Ht, {
1134
+ clearIcon: C = wt || (wt = /* @__PURE__ */ w(zt, {
1103
1135
  fontSize: "small"
1104
1136
  })),
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,
1137
+ clearOnBlur: W = !m.freeSolo,
1138
+ clearOnEscape: pe = !1,
1139
+ clearText: E = "Clear",
1140
+ closeText: we = "Close",
1141
+ componentsProps: Le,
1142
+ defaultValue: mt = m.multiple ? [] : null,
1143
+ disableClearable: ke = !1,
1144
+ disableCloseOnSelect: ue = !1,
1145
+ disabled: G = !1,
1146
+ disabledItemsFocusable: Re = !1,
1147
+ disableListWrap: Qe = !1,
1148
+ disablePortal: oe = !1,
1149
+ filterOptions: Ze,
1150
+ filterSelectedOptions: bt = !1,
1151
+ forcePopupIcon: ye = "auto",
1152
+ freeSolo: De = !1,
1153
+ fullWidth: Y = !1,
1154
+ getLimitTagsText: u = (c) => `+${c}`,
1155
+ getOptionDisabled: et,
1156
+ getOptionKey: tt,
1157
+ getOptionLabel: Ne,
1158
+ isOptionEqualToValue: Q,
1159
+ groupBy: Ee,
1160
+ handleHomeEndKeys: ht = !m.freeSolo,
1129
1161
  id: yt,
1130
1162
  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,
1163
+ inputValue: _,
1164
+ limitTags: L = -1,
1165
+ ListboxComponent: ot,
1166
+ ListboxProps: Me,
1167
+ loading: M = !1,
1168
+ loadingText: $ = "Loading…",
1169
+ multiple: ce = !1,
1170
+ noOptionsText: xe = "No options",
1171
+ onChange: h,
1172
+ onClose: F,
1173
+ onHighlightChange: Ie,
1174
+ onInputChange: It,
1175
+ onOpen: V,
1176
+ open: Ve,
1177
+ openOnFocus: nt = !1,
1178
+ openText: P = "Open",
1179
+ options: Ot,
1180
+ PaperComponent: i,
1181
+ PopperComponent: Oe,
1182
+ popupIcon: f = Lt || (Lt = /* @__PURE__ */ w(Ht, {})),
1183
+ readOnly: ne = !1,
1184
+ renderGroup: de,
1185
+ renderInput: Fe,
1186
+ renderOption: fe,
1187
+ renderTags: K,
1188
+ renderValue: Pe,
1189
+ selectOnFocus: Pt = !m.freeSolo,
1190
+ size: ge = "medium",
1191
+ slots: He = {},
1192
+ slotProps: k = {},
1193
+ value: b,
1194
+ ...z
1195
+ } = m, {
1196
+ getRootProps: ze,
1197
+ getInputProps: j,
1198
+ getInputLabelProps: rt,
1199
+ getPopupIndicatorProps: J,
1200
+ getClearProps: U,
1201
+ getItemProps: at,
1202
+ getListboxProps: ve,
1203
+ getOptionProps: st,
1204
+ value: R,
1205
+ dirty: re,
1206
+ expanded: X,
1207
+ id: me,
1208
+ popupOpen: q,
1209
+ focused: je,
1210
+ focusedItem: Ue,
1211
+ anchorEl: ae,
1212
+ setAnchorEl: it,
1213
+ inputValue: lt,
1214
+ groupedOptions: se
1215
+ } = Yt({
1216
+ ...m,
1184
1217
  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 = {
1218
+ }), Ce = !ke && !G && re && !ne, $e = (!De || ye === !0) && ye !== !1, {
1219
+ onMouseDown: pt
1220
+ } = j(), {
1221
+ ref: ut,
1222
+ ...Be
1223
+ } = ve(), be = Ne || ((c) => c.label ?? c), v = {
1224
+ ...m,
1225
+ disablePortal: oe,
1226
+ expanded: X,
1227
+ focused: je,
1228
+ fullWidth: Y,
1229
+ getOptionLabel: be,
1230
+ hasClearIcon: Ce,
1231
+ hasPopupIcon: $e,
1232
+ inputFocused: Ue === -1,
1233
+ popupOpen: q,
1234
+ size: ge
1235
+ }, O = oo(v), Z = {
1203
1236
  slots: {
1204
- paper: tt,
1205
- popper: f,
1206
- ...Ve
1237
+ paper: i,
1238
+ popper: Oe,
1239
+ ...He
1207
1240
  },
1208
1241
  slotProps: {
1209
- chip: j,
1210
- listbox: N,
1211
- ...Ae,
1212
- ...w
1242
+ chip: B,
1243
+ listbox: Me,
1244
+ ...Le,
1245
+ ...k
1213
1246
  }
1214
- }, [je, o] = ft("listbox", {
1215
- elementType: uo,
1216
- externalForwardedProps: G,
1217
- ownerState: C,
1247
+ }, [Se, We] = ft("listbox", {
1248
+ elementType: co,
1249
+ externalForwardedProps: Z,
1250
+ ownerState: v,
1218
1251
  className: O.listbox,
1219
- additionalProps: pt,
1220
- ref: lt
1221
- }), [e, r] = ft("paper", {
1222
- elementType: Dt,
1223
- externalForwardedProps: G,
1224
- ownerState: C,
1252
+ additionalProps: Be,
1253
+ ref: ut
1254
+ }), [o, e] = ft("paper", {
1255
+ elementType: Et,
1256
+ externalForwardedProps: Z,
1257
+ ownerState: v,
1225
1258
  className: O.paper
1226
- }), [i, p] = ft("popper", {
1227
- elementType: Nt,
1228
- externalForwardedProps: G,
1229
- ownerState: C,
1259
+ }), [r, p] = ft("popper", {
1260
+ elementType: Mt,
1261
+ externalForwardedProps: Z,
1262
+ ownerState: v,
1230
1263
  className: O.popper,
1231
1264
  additionalProps: {
1232
- disablePortal: Z,
1265
+ disablePortal: oe,
1233
1266
  style: {
1234
- width: ne ? ne.clientWidth : null
1267
+ width: ae ? ae.clientWidth : null
1235
1268
  },
1236
1269
  role: "presentation",
1237
- anchorEl: ne,
1238
- open: W
1270
+ anchorEl: ae,
1271
+ open: q
1239
1272
  }
1240
1273
  });
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);
1274
+ let s;
1275
+ const g = (c) => ({
1276
+ className: O.tag,
1277
+ disabled: G,
1278
+ ...at(c)
1279
+ });
1280
+ if (K && ce && R.length > 0 ? s = K(R, g, v) : Pe && R ? s = Pe(R, g, v) : ce && R.length > 0 && (s = R.map((c, ee) => {
1281
+ const {
1282
+ key: te,
1283
+ ...Ae
1284
+ } = g({
1285
+ index: ee
1261
1286
  });
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", {
1287
+ return /* @__PURE__ */ w(Wt, {
1288
+ label: be(c),
1289
+ size: ge,
1290
+ ...Ae,
1291
+ ...Z.slotProps.chip
1292
+ }, te);
1293
+ })), L > -1 && Array.isArray(s)) {
1294
+ const c = s.length - L;
1295
+ !je && c > 0 && (s = s.splice(0, L), s.push(/* @__PURE__ */ w("span", {
1266
1296
  className: O.tag,
1267
- children: b(d)
1268
- }, u.length)));
1297
+ children: u(c)
1298
+ }, s.length)));
1269
1299
  }
1270
- const S = Me || ((d) => /* @__PURE__ */ We("li", {
1271
- children: [/* @__PURE__ */ A(co, {
1300
+ const A = de || ((c) => /* @__PURE__ */ _e("li", {
1301
+ children: [/* @__PURE__ */ w(fo, {
1272
1302
  className: O.groupLabel,
1273
- ownerState: C,
1303
+ ownerState: v,
1274
1304
  component: "div",
1275
- children: d.group
1276
- }), /* @__PURE__ */ A(fo, {
1305
+ children: c.group
1306
+ }), /* @__PURE__ */ w(go, {
1277
1307
  className: O.groupUl,
1278
- ownerState: C,
1279
- children: d.children
1308
+ ownerState: v,
1309
+ children: c.children
1280
1310
  })]
1281
- }, d.key)), Mt = X || ((d, q) => {
1311
+ }, c.key)), Ft = fe || ((c, ee) => {
1282
1312
  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
1313
+ key: te,
1314
+ ...Ae
1315
+ } = c;
1316
+ return /* @__PURE__ */ w("li", {
1317
+ ...Ae,
1318
+ children: be(ee)
1319
+ }, te);
1320
+ }), Ct = (c, ee) => {
1321
+ const te = st({
1322
+ option: c,
1323
+ index: ee
1294
1324
  });
1295
- return Mt({
1296
- ...Q,
1325
+ return Ft({
1326
+ ...te,
1297
1327
  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,
1328
+ }, c, {
1329
+ selected: te["aria-selected"],
1330
+ index: ee,
1331
+ inputValue: lt
1332
+ }, v);
1333
+ }, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
1334
+ return /* @__PURE__ */ _e(y.Fragment, {
1335
+ children: [/* @__PURE__ */ w(no, {
1336
+ ref: d,
1337
+ className: Je(O.root, I),
1338
+ ownerState: v,
1339
+ ...ze(z),
1340
+ children: Fe({
1341
+ id: me,
1342
+ disabled: G,
1313
1343
  fullWidth: !0,
1314
- size: de === "small" ? "small" : void 0,
1315
- InputLabelProps: ot(),
1344
+ size: ge === "small" ? "small" : void 0,
1345
+ InputLabelProps: rt(),
1316
1346
  InputProps: {
1317
- ref: at,
1347
+ ref: it,
1318
1348
  className: O.inputRoot,
1319
- startAdornment: u,
1320
- onMouseDown: (d) => {
1321
- d.target === d.currentTarget && it(d);
1349
+ startAdornment: s,
1350
+ onMouseDown: (c) => {
1351
+ c.target === c.currentTarget && pt(c);
1322
1352
  },
1323
- ...(Pe || ve) && {
1324
- endAdornment: /* @__PURE__ */ We(no, {
1353
+ ...(Ce || $e) && {
1354
+ endAdornment: /* @__PURE__ */ _e(ro, {
1325
1355
  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
1356
+ ownerState: v,
1357
+ children: [Ce ? /* @__PURE__ */ w(ao, {
1358
+ ...U(),
1359
+ "aria-label": E,
1360
+ title: E,
1361
+ ownerState: v,
1362
+ ...Ge,
1363
+ className: Je(O.clearIndicator, Ge == null ? void 0 : Ge.className),
1364
+ children: C
1365
+ }) : null, $e ? /* @__PURE__ */ w(so, {
1366
+ ...J(),
1367
+ disabled: G,
1368
+ "aria-label": q ? we : P,
1369
+ title: q ? we : P,
1370
+ ownerState: v,
1371
+ ...qe,
1372
+ className: Je(O.popupIndicator, qe == null ? void 0 : qe.className),
1373
+ children: f
1344
1374
  }) : null]
1345
1375
  })
1346
1376
  }
1347
1377
  },
1348
1378
  inputProps: {
1349
1379
  className: O.input,
1350
- disabled: B,
1351
- readOnly: ee,
1352
- ...te()
1380
+ disabled: G,
1381
+ readOnly: ne,
1382
+ ...j()
1353
1383
  }
1354
1384
  })
1355
- }), ne ? /* @__PURE__ */ A(so, {
1356
- as: i,
1385
+ }), ae ? /* @__PURE__ */ w(io, {
1386
+ as: r,
1357
1387
  ...p,
1358
- children: /* @__PURE__ */ We(io, {
1359
- as: e,
1360
- ...r,
1361
- children: [P && re.length === 0 ? /* @__PURE__ */ A(lo, {
1388
+ children: /* @__PURE__ */ _e(lo, {
1389
+ as: o,
1390
+ ...e,
1391
+ children: [M && se.length === 0 ? /* @__PURE__ */ w(po, {
1362
1392
  className: O.loading,
1363
- ownerState: C,
1364
- children: he
1365
- }) : null, re.length === 0 && !ke && !P ? /* @__PURE__ */ A(po, {
1393
+ ownerState: v,
1394
+ children: $
1395
+ }) : null, se.length === 0 && !De && !M ? /* @__PURE__ */ w(uo, {
1366
1396
  className: O.noOptions,
1367
- ownerState: C,
1397
+ ownerState: v,
1368
1398
  role: "presentation",
1369
- onMouseDown: (d) => {
1370
- d.preventDefault();
1399
+ onMouseDown: (c) => {
1400
+ c.preventDefault();
1371
1401
  },
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))
1402
+ children: xe
1403
+ }) : null, se.length > 0 ? /* @__PURE__ */ w(Se, {
1404
+ as: ot,
1405
+ ...We,
1406
+ children: se.map((c, ee) => Ee ? A({
1407
+ key: c.key,
1408
+ group: c.group,
1409
+ children: c.options.map((te, Ae) => Ct(te, c.index + Ae))
1410
+ }) : Ct(c, ee))
1381
1411
  }) : null]
1382
1412
  })
1383
1413
  }) : null]
1384
1414
  });
1385
1415
  });
1386
- process.env.NODE_ENV !== "production" && (go.propTypes = {
1416
+ process.env.NODE_ENV !== "production" && (mo.propTypes = {
1387
1417
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1388
1418
  // │ These PropTypes are generated from the TypeScript type definitions. │
1389
1419
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1422,7 +1452,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1422
1452
  blurOnSelect: t.oneOfType([t.oneOf(["mouse", "touch"]), t.bool]),
1423
1453
  /**
1424
1454
  * 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.
1455
+ * @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
1456
  */
1427
1457
  ChipProps: t.object,
1428
1458
  /**
@@ -1467,7 +1497,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1467
1497
  closeText: t.string,
1468
1498
  /**
1469
1499
  * 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.
1500
+ * @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
1501
  */
1472
1502
  componentsProps: t.shape({
1473
1503
  clearIndicator: t.object,
@@ -1479,7 +1509,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1479
1509
  * The default value. Use when the component is not controlled.
1480
1510
  * @default props.multiple ? [] : null
1481
1511
  */
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(`
1512
+ 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
1513
  `)) : null),
1484
1514
  /**
1485
1515
  * If `true`, the input can't be cleared.
@@ -1617,16 +1647,16 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1617
1647
  * Set `-1` to disable the limit.
1618
1648
  * @default -1
1619
1649
  */
1620
- limitTags: Ut,
1650
+ limitTags: Bt,
1621
1651
  /**
1622
1652
  * The component used to render the listbox.
1623
1653
  * @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.
1654
+ * @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
1655
  */
1626
1656
  ListboxComponent: t.elementType,
1627
1657
  /**
1628
1658
  * 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.
1659
+ * @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
1660
  */
1631
1661
  ListboxProps: t.object,
1632
1662
  /**
@@ -1676,7 +1706,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1676
1706
  *
1677
1707
  * @param {React.SyntheticEvent} event The event source of the callback.
1678
1708
  * @param {Value} option The highlighted option.
1679
- * @param {string} reason Can be: `"keyboard"`, `"auto"`, `"mouse"`, `"touch"`.
1709
+ * @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
1680
1710
  */
1681
1711
  onHighlightChange: t.func,
1682
1712
  /**
@@ -1721,13 +1751,13 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1721
1751
  /**
1722
1752
  * The component used to render the body of the popup.
1723
1753
  * @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.
1754
+ * @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
1755
  */
1726
1756
  PaperComponent: t.elementType,
1727
1757
  /**
1728
1758
  * The component used to position the popup.
1729
1759
  * @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.
1760
+ * @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
1761
  */
1732
1762
  PopperComponent: t.elementType,
1733
1763
  /**
@@ -1765,7 +1795,9 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1765
1795
  */
1766
1796
  renderOption: t.func,
1767
1797
  /**
1768
- * Render the selected value.
1798
+ * Render the selected value when doing multiple selections.
1799
+ *
1800
+ * @deprecated Use `renderValue` prop instead
1769
1801
  *
1770
1802
  * @param {Value[]} value The `value` provided to the component.
1771
1803
  * @param {function} getTagProps A tag props getter.
@@ -1773,6 +1805,15 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1773
1805
  * @returns {ReactNode}
1774
1806
  */
1775
1807
  renderTags: t.func,
1808
+ /**
1809
+ * Renders the selected value(s) as rich content in the input for both single and multiple selections.
1810
+ *
1811
+ * @param {AutocompleteRenderValue<Value, Multiple, FreeSolo>} value The `value` provided to the component.
1812
+ * @param {function} getItemProps The value item props.
1813
+ * @param {object} ownerState The state of the Autocomplete component.
1814
+ * @returns {ReactNode}
1815
+ */
1816
+ renderValue: t.func,
1776
1817
  /**
1777
1818
  * If `true`, the input's text is selected on focus.
1778
1819
  * It helps the user clear the selected value.
@@ -1815,15 +1856,16 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
1815
1856
  * The value must have reference equality with the option in order to be selected.
1816
1857
  * You can customize the equality behavior with the `isOptionEqualToValue` prop.
1817
1858
  */
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(`
1859
+ 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
1860
  `)) : null)
1820
1861
  });
1821
1862
  export {
1822
- go as A,
1823
- _e as L,
1863
+ mo as A,
1864
+ Xe as L,
1824
1865
  l as a,
1825
- Yt as b,
1826
- Gt as c,
1827
- eo as g,
1828
- Do as l
1866
+ Qt as b,
1867
+ qt as c,
1868
+ to as g,
1869
+ Eo as l,
1870
+ Gt as u
1829
1871
  };