@cgi-learning-hub/ui 1.8.0 → 1.9.0

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 (313) hide show
  1. package/dist/Alert-BH_3hKCB.cjs +1 -0
  2. package/dist/{Alert-6yOnGlLE.js → Alert-BeVYzSS-.js} +7 -7
  3. package/dist/Alert-BoYBWOXe.cjs +1 -0
  4. package/dist/{Alert-D6SQnjuJ.js → Alert-CEu3llDi.js} +15 -14
  5. package/dist/Autocomplete-BKpavKFW.cjs +6 -0
  6. package/dist/{Autocomplete-B8u-WYi5.js → Autocomplete-DBZYn4YL.js} +49 -48
  7. package/dist/{Backdrop-DuOPKUSY.js → Backdrop-BvL371G3.js} +7 -7
  8. package/dist/Backdrop-qOBrabpf.cjs +1 -0
  9. package/dist/{Badge-BJ4yH_Da.js → Badge-2Kgbx-Cs.js} +11 -10
  10. package/dist/Badge-DXl0Da36.cjs +1 -0
  11. package/dist/{Box-BWETzF5p.js → Box-BaZ7KlAc.js} +4 -4
  12. package/dist/Box-CYQlQqRB.cjs +1 -0
  13. package/dist/Button-BP-QmmUu.cjs +1 -0
  14. package/dist/{Button-C8_HxKFe.js → Button-C1mKNW-c.js} +167 -130
  15. package/dist/{ButtonBase-CJYV8wgs.js → ButtonBase-C2jRC_V7.js} +7 -7
  16. package/dist/{ButtonBase-DPIkh47Q.cjs → ButtonBase-DSJojbNE.cjs} +1 -1
  17. package/dist/CardContent-DVcUynuH.cjs +1 -0
  18. package/dist/{CardContent-V9JMSLmA.js → CardContent-kIapWv4T.js} +4 -4
  19. package/dist/Checkbox-DhhuvKO5.cjs +1 -0
  20. package/dist/{Checkbox-DMMz_IAP.js → Checkbox-RxHWtafR.js} +16 -15
  21. package/dist/{Chip-BDVqkZZM.js → Chip-DgGmi9yn.js} +13 -12
  22. package/dist/Chip-n1kY-Dsh.cjs +1 -0
  23. package/dist/CircularProgress-BOm4zz7e.cjs +28 -0
  24. package/dist/{CircularProgress-CrWnCGqN.js → CircularProgress-CLq0Rl-1.js} +15 -14
  25. package/dist/{Close-2eEmvKPH.cjs → Close-DR9m6hv3.cjs} +1 -1
  26. package/dist/{Close-Cr2OT0GV.js → Close-vu-MZYNA.js} +1 -1
  27. package/dist/{CloseRounded-B6cT7aGi.cjs → CloseRounded-Cpp6nWQi.cjs} +1 -1
  28. package/dist/{CloseRounded-BrGeesu1.js → CloseRounded-DF05lCUu.js} +1 -1
  29. package/dist/{CustomTreeItem-DhB3ECa2.js → CustomTreeItem-AecanDDg.js} +21 -20
  30. package/dist/CustomTreeItem-BBMp0k4i.cjs +41 -0
  31. package/dist/{DatePicker-ofISDY8Q.js → DatePicker-Cd-Aj-F8.js} +3905 -3811
  32. package/dist/DatePicker-Dj7U52Mk.cjs +16 -0
  33. package/dist/{DefaultPropsProvider-nxIPd34m.js → DefaultPropsProvider-BrmlvPWg.js} +24 -24
  34. package/dist/DefaultPropsProvider-C1g4BXET.cjs +1 -0
  35. package/dist/{Delete-BF63Gpr-.cjs → Delete-C36W48MB.cjs} +1 -1
  36. package/dist/{Delete-CwWpjEOT.js → Delete-DXUljXzP.js} +1 -1
  37. package/dist/Dialog-C2HYr67H.cjs +1 -0
  38. package/dist/{Dialog-eK1zTFBm.js → Dialog-D__8rwpw.js} +16 -15
  39. package/dist/{DialogContent-BsPZJR2a.js → DialogContent-MPwmUJQp.js} +4 -4
  40. package/dist/DialogContent-lup2v_ab.cjs +1 -0
  41. package/dist/DialogTitle-B8jOk7ZE.cjs +1 -0
  42. package/dist/{DialogTitle-CaAd59jN.js → DialogTitle-Dly5D3Ud.js} +6 -6
  43. package/dist/{Divider-D_gbcyWE.js → Divider-BN12gMv9.js} +5 -5
  44. package/dist/Divider-wisA5Qp_.cjs +1 -0
  45. package/dist/{Folder-COKXTjZ4.js → Folder-BSZMyA2L.js} +1 -1
  46. package/dist/{Folder-D0fZbyc-.cjs → Folder-aAI_w_uF.cjs} +1 -1
  47. package/dist/FormLabel-ByYWZh7M.cjs +2 -0
  48. package/dist/{FormLabel-DmLckqyT.js → FormLabel-DtxJI2CU.js} +17 -16
  49. package/dist/{Grid-vM--ojbL.js → Grid-C0LY-MbT.js} +83 -75
  50. package/dist/Grid-CPXE25PR.cjs +2 -0
  51. package/dist/{Grow-ovNT7Sot.cjs → Grow-6zwoqUfO.cjs} +1 -1
  52. package/dist/{Grow-DE5x7F5S.js → Grow-CeGwnQpw.js} +4 -4
  53. package/dist/IconButton-BTN16gZi.cjs +2 -0
  54. package/dist/{IconButton-f9EZgwvD.js → IconButton-DBjiNqOa.js} +17 -16
  55. package/dist/InputAdornment-C1r1YutO.cjs +1 -0
  56. package/dist/{InputAdornment-B615VSjF.js → InputAdornment-DuR35FtU.js} +16 -15
  57. package/dist/InputBase-CxknnWV4.cjs +4 -0
  58. package/dist/{InputBase-BCbPPzW1.js → InputBase-D5UJOJBu.js} +52 -51
  59. package/dist/Link-T11NCxGd.cjs +1 -0
  60. package/dist/{Link-GBRiPElP.js → Link-hWCqsQiI.js} +50 -49
  61. package/dist/{List-DZkddOsr.js → List-CmJ1jCss.js} +3 -3
  62. package/dist/List-eQ4D0MvJ.cjs +1 -0
  63. package/dist/ListItem-CgWgbZ_g.cjs +1 -0
  64. package/dist/{ListItem-CMoibMI7.js → ListItem-onoPfwb4.js} +6 -6
  65. package/dist/ListItemText-B-dySXgz.cjs +1 -0
  66. package/dist/{ListItemText-BbrPf29n.js → ListItemText-BjhXxIIV.js} +10 -10
  67. package/dist/{Menu-C0uY9Dd0.cjs → Menu-D7B383z4.cjs} +5 -5
  68. package/dist/{Menu-3UjlpKRJ.js → Menu-DGvAkF5F.js} +32 -32
  69. package/dist/{MenuItem-CHEWce5u.js → MenuItem-Cusmy5t2.js} +8 -8
  70. package/dist/MenuItem-D-4xzo-S.cjs +1 -0
  71. package/dist/Modal-DB9K8sJI.cjs +2 -0
  72. package/dist/{Modal-Du5LfkZg.js → Modal-DtjScKxh.js} +8 -8
  73. package/dist/{MoreVert-DZjEMvuw.cjs → MoreVert-BwfUF9pO.cjs} +1 -1
  74. package/dist/{MoreVert-PLU7h8WO.js → MoreVert-woCQ0dNf.js} +1 -1
  75. package/dist/{Paper-BylmTlAJ.js → Paper-CZXfHfN_.js} +5 -5
  76. package/dist/Paper-DcVuAxq3.cjs +2 -0
  77. package/dist/{Popper-CvQLHjwo.js → Popper-BwuGO_Si.js} +7 -7
  78. package/dist/Popper-D5Cs38W_.cjs +4 -0
  79. package/dist/Portal-Cmv45gpL.cjs +1 -0
  80. package/dist/{Portal-BlK6ttxt.js → Portal-PkRJuFYN.js} +17 -17
  81. package/dist/{Radio-CbYgci2-.js → Radio-DiyDpiVL.js} +18 -17
  82. package/dist/Radio-DzKwkI68.cjs +1 -0
  83. package/dist/RadioGroup-BlkHQVRF.cjs +1 -0
  84. package/dist/{RadioGroup-D-Cq8SmM.js → RadioGroup-CjUaFqjJ.js} +4 -4
  85. package/dist/{Select-Bx0yVOZE.js → Select-BxH16ruJ.js} +528 -552
  86. package/dist/Select-CSQfbogA.cjs +3 -0
  87. package/dist/Stack-ChvZzNqc.cjs +1 -0
  88. package/dist/{Stack-CbK4a2n5.js → Stack-pMJEpL7k.js} +17 -17
  89. package/dist/Stepper-BsfN7O-W.cjs +1 -0
  90. package/dist/{Stepper-DU9nixCp.js → Stepper-DyH4sgY5.js} +24 -23
  91. package/dist/{Switch-Bm3Gclye.js → Switch-BgZUmsKc.js} +8 -7
  92. package/dist/Switch-Dr2jgPGV.cjs +1 -0
  93. package/dist/SwitchBase-BP_I-APE.cjs +1 -0
  94. package/dist/{SwitchBase-9CKmTWdZ.js → SwitchBase-BWz31Ed6.js} +22 -21
  95. package/dist/{Tab-DBCv1T9W.js → Tab-Bksf_S4K.js} +78 -77
  96. package/dist/Tab-D2mI5G0L.cjs +4 -0
  97. package/dist/TextField-C9AnzUpZ.cjs +1 -0
  98. package/dist/{TextField-V-EQ80Y6.js → TextField-Ctx4aW6-.js} +25 -24
  99. package/dist/ToggleButtonGroup-CBw2I124.cjs +138 -0
  100. package/dist/{ToggleButtonGroup-_UpIjysl.js → ToggleButtonGroup-DtjRqNbI.js} +1225 -1199
  101. package/dist/{Tooltip-DKHOTDh0.js → Tooltip-C5AffX17.js} +24 -23
  102. package/dist/Tooltip-CUm8vKGq.cjs +4 -0
  103. package/dist/{Typography-o0iALAVg.js → Typography-Cr-aIusw.js} +8 -7
  104. package/dist/Typography-DHjq4GzQ.cjs +1 -0
  105. package/dist/capitalize-3OjkeP9i.cjs +1 -0
  106. package/dist/capitalize-BHEX83JQ.js +9 -0
  107. package/dist/components/ActionBar/style.cjs.js +1 -1
  108. package/dist/components/ActionBar/style.es.js +2 -2
  109. package/dist/components/Alert/Alert.cjs.js +1 -1
  110. package/dist/components/Alert/Alert.es.js +4 -4
  111. package/dist/components/Alert/index.cjs.js +1 -1
  112. package/dist/components/Alert/index.es.js +1 -1
  113. package/dist/components/Button/Button.cjs.js +1 -1
  114. package/dist/components/Button/Button.es.js +42 -20
  115. package/dist/components/ColorPicker/ColorPicker.cjs.js +4 -4
  116. package/dist/components/ColorPicker/ColorPicker.es.js +64 -64
  117. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  118. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  119. package/dist/components/DatePicker/index.cjs.js +1 -1
  120. package/dist/components/DatePicker/index.es.js +1 -1
  121. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  122. package/dist/components/Dialog/Dialog.es.js +2 -2
  123. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  124. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  125. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  126. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  127. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  128. package/dist/components/FileList/FileIcon.es.js +1 -1
  129. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  130. package/dist/components/FileList/FileListItem.es.js +4 -4
  131. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  132. package/dist/components/FolderCard/FolderCard.es.js +2 -2
  133. package/dist/components/Heading/Heading.cjs.js +1 -1
  134. package/dist/components/Heading/Heading.es.js +2 -2
  135. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  136. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  137. package/dist/components/Loader/Loader.cjs.js +1 -1
  138. package/dist/components/Loader/Loader.es.js +1 -1
  139. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  140. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  141. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  142. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  143. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  144. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  145. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  146. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  147. package/dist/components/TreeView/TreeView.cjs.js +5 -5
  148. package/dist/components/TreeView/TreeView.es.js +568 -555
  149. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  150. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  151. package/dist/components/TreeView/utils.cjs.js +1 -1
  152. package/dist/components/TreeView/utils.es.js +3 -3
  153. package/dist/components/index.cjs.js +1 -1
  154. package/dist/components/index.es.js +44 -44
  155. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  156. package/dist/components/stories/Alert.stories.es.js +1 -1
  157. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  158. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  159. package/dist/components/stories/Badge.stories.cjs.js +1 -1
  160. package/dist/components/stories/Badge.stories.es.js +2 -2
  161. package/dist/components/stories/Button.stories.cjs.js +1 -1
  162. package/dist/components/stories/Button.stories.es.js +26 -8
  163. package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
  164. package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
  165. package/dist/components/stories/Card.stories.cjs.js +1 -1
  166. package/dist/components/stories/Card.stories.es.js +2 -2
  167. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  168. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  169. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  170. package/dist/components/stories/Chip.stories.es.js +1 -1
  171. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  172. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  173. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  174. package/dist/components/stories/Dialog.stories.es.js +2 -2
  175. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  176. package/dist/components/stories/Divider.stories.es.js +1 -1
  177. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  178. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  179. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  180. package/dist/components/stories/Heading.stories.es.js +2 -2
  181. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  182. package/dist/components/stories/IconButton.stories.es.js +2 -2
  183. package/dist/components/stories/Link.stories.cjs.js +1 -1
  184. package/dist/components/stories/Link.stories.es.js +1 -1
  185. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  186. package/dist/components/stories/Menu.stories.es.js +2 -2
  187. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  188. package/dist/components/stories/Paper.stories.es.js +1 -1
  189. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  190. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  191. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  192. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  193. package/dist/components/stories/Select.stories.cjs.js +1 -1
  194. package/dist/components/stories/Select.stories.es.js +3 -3
  195. package/dist/components/stories/Stepper.stories.cjs.js +1 -1
  196. package/dist/components/stories/Stepper.stories.es.js +4 -4
  197. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  198. package/dist/components/stories/TabList.stories.es.js +1 -1
  199. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  200. package/dist/components/stories/TextField.stories.es.js +1 -1
  201. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  202. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  203. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  204. package/dist/components/stories/TreeView.stories.es.js +12 -12
  205. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  206. package/dist/components/stories/Typography.stories.es.js +1 -1
  207. package/dist/composeClasses-BskurlZX.js +51 -0
  208. package/dist/composeClasses-vN5Almps.cjs +1 -0
  209. package/dist/createSvgIcon-CcWpa9Le.cjs +1 -0
  210. package/dist/{createSvgIcon-BV54rC7k.js → createSvgIcon-DFIM5PqN.js} +9 -8
  211. package/dist/{dividerClasses-DDXs86hs.js → dividerClasses-BEzQ_reA.js} +1 -1
  212. package/dist/dividerClasses-BpVbhp8e.cjs +1 -0
  213. package/dist/{elementAcceptingRef-CEweUuUA.js → elementAcceptingRef-CZLfau9O.js} +1 -1
  214. package/dist/{elementAcceptingRef-BZ42cOGO.cjs → elementAcceptingRef-CuMilXz3.cjs} +1 -1
  215. package/dist/{elementTypeAcceptingRef-DOeckaXy.js → elementTypeAcceptingRef-vRb2iI4O.js} +1 -1
  216. package/dist/{elementTypeAcceptingRef-BwZv9xBI.cjs → elementTypeAcceptingRef-vjR5jGLx.cjs} +1 -1
  217. package/dist/{extendSxProp-XouBF-Ct.js → extendSxProp-DGsHTtAe.js} +1 -1
  218. package/dist/extendSxProp-Dwd9vpYv.cjs +1 -0
  219. package/dist/{identifier-Dnc8T93Z.js → generateUtilityClasses-B_xKAflz.js} +645 -615
  220. package/dist/generateUtilityClasses-CENS22bI.cjs +55 -0
  221. package/dist/{index-Sy88PpwE.js → index-B9vkf41S.js} +2 -2
  222. package/dist/index-BPpGXp0s.cjs +1 -0
  223. package/dist/{index-DIyAQH20.cjs → index-BS46Ff4t.cjs} +1 -1
  224. package/dist/{index-DX2Sl0Ig.js → index-Ba4TEBpP.js} +1 -1
  225. package/dist/{index-CX0sAlmK.js → index-CJMnfcQs.js} +1 -1
  226. package/dist/{index-9te7SXrs.js → index-CwHv-blH.js} +5 -5
  227. package/dist/{index-CrINMjCH.cjs → index-D_kvDIOz.cjs} +1 -1
  228. package/dist/{index-DLnSn8GT.cjs → index-kjfz41UI.cjs} +1 -1
  229. package/dist/index.cjs.js +1 -1
  230. package/dist/index.es.js +44 -44
  231. package/dist/{listItemTextClasses-4p_83pwn.js → listItemTextClasses-CEbo8A-K.js} +1 -1
  232. package/dist/listItemTextClasses-wcJANWC3.cjs +1 -0
  233. package/dist/{memoTheme-Dv-rDqFz.cjs → memoTheme-Bi1UNdyO.cjs} +1 -1
  234. package/dist/{memoTheme-K37vidlb.js → memoTheme-C-PaH-Cy.js} +1 -1
  235. package/dist/mergeSlotProps-CL6s5QgQ.cjs +1 -0
  236. package/dist/{mergeSlotProps-DSWiBSbD.js → mergeSlotProps-DVtjofCS.js} +1 -1
  237. package/dist/{refType-Dp7CJc86.js → refType-8hihVLUh.js} +1 -1
  238. package/dist/{refType-B_IEJm4x.cjs → refType-DJyA--UV.cjs} +1 -1
  239. package/dist/{useSlot-GooGQrej.js → useSlot-BSkdRaZr.js} +1 -1
  240. package/dist/useSlot-C-aMxEm0.cjs +1 -0
  241. package/dist/{useSlotProps-CtYqUyy1.cjs → useSlotProps-BVVfeURp.cjs} +1 -1
  242. package/dist/{useSlotProps-C34Wr67s.js → useSlotProps-CWTjRiRv.js} +1 -1
  243. package/dist/useTheme-0AkY41zn.js +11 -0
  244. package/dist/useTheme-BT6SDKkk.cjs +1 -0
  245. package/dist/useTheme-BrGF2Vm0.cjs +1 -0
  246. package/dist/{useTheme-VH02z7nF.js → useTheme-DSA6Ir8k.js} +1 -1
  247. package/dist/useThemeProps-BWsN0TEk.cjs +1 -0
  248. package/dist/{useThemeProps-DZ05-54P.js → useThemeProps-CAonvyKa.js} +4 -4
  249. package/dist/{useThemeProps-BU5PNyhK.cjs → useThemeProps-JozrkyA_.cjs} +1 -1
  250. package/dist/useThemeProps-hSh1qhnc.js +17 -0
  251. package/dist/{utils-BQenyzDz.js → utils-B_pVp6UZ.js} +3 -3
  252. package/dist/utils-XujN9ndp.cjs +1 -0
  253. package/package.json +5 -5
  254. package/dist/Alert-CWHOYWde.cjs +0 -1
  255. package/dist/Alert-D4-73fYc.cjs +0 -1
  256. package/dist/Autocomplete-BA6NkciB.cjs +0 -6
  257. package/dist/Backdrop-Dp1hKKfU.cjs +0 -1
  258. package/dist/Badge-XMr4Ygjv.cjs +0 -1
  259. package/dist/Box-B5E7sstc.cjs +0 -1
  260. package/dist/Button-BJB830NI.cjs +0 -1
  261. package/dist/CardContent-H0z20SY7.cjs +0 -1
  262. package/dist/Checkbox-BZPMiwbF.cjs +0 -1
  263. package/dist/Chip-DMBSp59F.cjs +0 -1
  264. package/dist/CircularProgress-BMVNeiSf.cjs +0 -28
  265. package/dist/CustomTreeItem-BXgsWbl_.cjs +0 -41
  266. package/dist/DatePicker-DtPvvFiK.cjs +0 -16
  267. package/dist/DefaultPropsProvider-BFTLy05-.cjs +0 -1
  268. package/dist/Dialog-Cymf3DJ2.cjs +0 -1
  269. package/dist/DialogContent-Gy1s3ela.cjs +0 -1
  270. package/dist/DialogTitle-BDyrzRXS.cjs +0 -1
  271. package/dist/Divider-BzdMIEJJ.cjs +0 -1
  272. package/dist/FormLabel-BLySmpkL.cjs +0 -2
  273. package/dist/Grid-DFaRzlB4.cjs +0 -2
  274. package/dist/IconButton-DCQiOq7W.cjs +0 -2
  275. package/dist/InputAdornment-BrrJ8chb.cjs +0 -1
  276. package/dist/InputBase-CRrFludT.cjs +0 -4
  277. package/dist/Link-CMes5bws.cjs +0 -1
  278. package/dist/List-E_TAQ1jJ.cjs +0 -1
  279. package/dist/ListItem-qTKJTg7f.cjs +0 -1
  280. package/dist/ListItemText-B3z5dHrQ.cjs +0 -1
  281. package/dist/MenuItem--a878rw9.cjs +0 -1
  282. package/dist/Modal-CdcolE0C.cjs +0 -2
  283. package/dist/Paper-DgHGh6vt.cjs +0 -2
  284. package/dist/Popper-BsNp09Gg.cjs +0 -4
  285. package/dist/Portal-CPOCKeMh.cjs +0 -1
  286. package/dist/Radio-CLNMQGNf.cjs +0 -1
  287. package/dist/RadioGroup-Dyf8fKum.cjs +0 -1
  288. package/dist/Select-CRVPbesC.cjs +0 -3
  289. package/dist/Stack-COmIqMxy.cjs +0 -1
  290. package/dist/Stepper-CWq9t5jy.cjs +0 -1
  291. package/dist/Switch-kHZOqjeU.cjs +0 -1
  292. package/dist/SwitchBase-Hbqxtooi.cjs +0 -1
  293. package/dist/Tab-DnxFjc89.cjs +0 -4
  294. package/dist/TextField-BhdmUny-.cjs +0 -1
  295. package/dist/ToggleButtonGroup-B2FBwoDV.cjs +0 -138
  296. package/dist/Tooltip-DYTDIzp4.cjs +0 -4
  297. package/dist/Typography-BvRUTdLD.cjs +0 -1
  298. package/dist/createSvgIcon-BJRigbha.cjs +0 -1
  299. package/dist/dividerClasses-CbwbHy8r.cjs +0 -1
  300. package/dist/extendSxProp-CxMSlckP.cjs +0 -1
  301. package/dist/identifier-DBvccNCw.cjs +0 -55
  302. package/dist/index-BkNQtUZJ.cjs +0 -1
  303. package/dist/listItemTextClasses-Cxo4anAo.cjs +0 -1
  304. package/dist/mergeSlotProps-CXO1f70l.cjs +0 -1
  305. package/dist/styled-B7pKW9DQ.cjs +0 -1
  306. package/dist/styled-JnAdiSL5.js +0 -5
  307. package/dist/useSlot-ONna5RyM.cjs +0 -1
  308. package/dist/useTheme-CH7DA5fq.js +0 -11
  309. package/dist/useTheme-D6wPRo0G.cjs +0 -1
  310. package/dist/useTheme-DkiCyF-9.cjs +0 -1
  311. package/dist/useThemeProps-CnZ-QgwI.cjs +0 -1
  312. package/dist/useThemeProps-DT4QxdFn.js +0 -17
  313. package/dist/utils-ByXw_ZY1.cjs +0 -1
@@ -1,28 +1,33 @@
1
+ var Pe = Object.defineProperty;
2
+ var ye = (t, e, o) => e in t ? Pe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var L = (t, e, o) => ye(t, typeof e != "symbol" ? e + "" : e, o);
1
4
  import { jsx as P } from "react/jsx-runtime";
2
5
  import * as x from "react";
3
- import { useState as Ce, useMemo as Pe, useEffect as ye } from "react";
4
- import { a as Re, u as L, s as ae, T as Se, b as Le, d as oe, e as O, f as R, h as Me, i as ve, j as se, k as De, l as Oe, m as ie, n as F, o as de, p as j, q as V, r as Y, t as Ve, v as fe, w as Ae, x as D, y as q, z as me, A as G, B as Fe, D as Ne, E as W, F as je, G as _e, H as K, I as le, J as $e, K as Ue, L as B, M as qe, N as Ke, O as Be, P as ze, Q as re, R as pe, S as Ge, U as We, V as Xe, W as Je, X as Qe } from "../../CustomTreeItem-DhB3ECa2.js";
5
- import { TreeContainer as Ye, DEFAULT_CHILDREN_INDENT as Ze } from "./style.es.js";
6
- import { buildItemDataMap as He, findItemPath as et, getItemId as tt } from "./utils.es.js";
7
- import { _ as T } from "../../ButtonBase-CJYV8wgs.js";
8
- import { a as Z } from "../../TransitionGroupContext-DbLioz_6.js";
9
- import { P as g } from "../../index-Sy88PpwE.js";
10
- import { G as nt, F as ot } from "../../identifier-Dnc8T93Z.js";
11
- import { a as S, u as X } from "../../useEventCallback-Y2KwRxBw.js";
12
- import { w as J } from "../../warning-C8W811fV.js";
13
- import { u as st } from "../../index-DX2Sl0Ig.js";
14
- import { u as Ie } from "../../useSlotProps-C34Wr67s.js";
15
- import { u as it } from "../../useForkRef-u29GSuCu.js";
16
- import { s as lt, c as rt } from "../../DefaultPropsProvider-nxIPd34m.js";
17
- import { T as ct } from "../../Typography-o0iALAVg.js";
18
- import { A as ut } from "../../Alert-D6SQnjuJ.js";
19
- function at(t) {
20
- return nt("MuiRichTreeView", t);
6
+ import { useState as Re, useMemo as Se, useEffect as Le } from "react";
7
+ import { a as Me, u as M, s as de, T as ve, b as De, d as se, e as V, f as R, h as Oe, i as Ve, j as ie, k as Ae, l as Fe, m as le, n as N, o as fe, p as _, q as A, r as Z, t as Ne, v as me, w as je, x as O, y as K, z as pe, A as W, B as _e, D as $e, E as X, F as Ue, G as qe, H as B, I as re, J as Ke, K as Be, L as z, M as ze, N as Ge, O as We, P as Xe, Q as ce, R as Ie, S as Je, U as Qe, V as Ye, W as Ze, X as He } from "../../CustomTreeItem-AecanDDg.js";
8
+ import { TreeContainer as et, DEFAULT_CHILDREN_INDENT as tt } from "./style.es.js";
9
+ import { buildItemDataMap as nt, findItemPath as ot, getItemId as st } from "./utils.es.js";
10
+ import { _ as T } from "../../ButtonBase-C2jRC_V7.js";
11
+ import { a as H } from "../../TransitionGroupContext-DbLioz_6.js";
12
+ import { P as g } from "../../index-B9vkf41S.js";
13
+ import { G as it, F as lt } from "../../generateUtilityClasses-B_xKAflz.js";
14
+ import { a as S, u as J } from "../../useEventCallback-Y2KwRxBw.js";
15
+ import { w as Q } from "../../warning-C8W811fV.js";
16
+ import { u as rt } from "../../index-Ba4TEBpP.js";
17
+ import { u as he } from "../../useSlotProps-CWTjRiRv.js";
18
+ import { u as ct } from "../../useForkRef-u29GSuCu.js";
19
+ import { s as ut, c as at } from "../../DefaultPropsProvider-BrmlvPWg.js";
20
+ import { T as dt } from "../../Typography-Cr-aIusw.js";
21
+ import { A as ft } from "../../Alert-CEu3llDi.js";
22
+ function mt(t) {
23
+ return it("MuiRichTreeView", t);
21
24
  }
22
- ot("MuiRichTreeView", ["root", "item", "itemContent", "itemGroupTransition", "itemIconContainer", "itemLabel", "itemCheckbox", "itemLabelInput"]);
23
- class dt {
25
+ lt("MuiRichTreeView", ["root", "item", "itemContent", "itemGroupTransition", "itemIconContainer", "itemLabel", "itemCheckbox", "itemLabelInput"]);
26
+ class pt {
24
27
  constructor() {
25
- this.maxListeners = 20, this.warnOnce = !1, this.events = {};
28
+ L(this, "maxListeners", 20);
29
+ L(this, "warnOnce", !1);
30
+ L(this, "events", {});
26
31
  }
27
32
  on(e, o, i = {}) {
28
33
  let l = this.events[e];
@@ -30,8 +35,8 @@ class dt {
30
35
  highPriority: /* @__PURE__ */ new Map(),
31
36
  regular: /* @__PURE__ */ new Map()
32
37
  }, this.events[e] = l), i.isFirst ? l.highPriority.set(o, !0) : l.regular.set(o, !0), process.env.NODE_ENV !== "production") {
33
- const p = l.highPriority.size + l.regular.size;
34
- p > this.maxListeners && !this.warnOnce && (this.warnOnce = !0, console.warn([`Possible EventEmitter memory leak detected. ${p} ${e} listeners added.`].join(`
38
+ const h = l.highPriority.size + l.regular.size;
39
+ h > this.maxListeners && !this.warnOnce && (this.warnOnce = !0, console.warn([`Possible EventEmitter memory leak detected. ${h} ${e} listeners added.`].join(`
35
40
  `)));
36
41
  }
37
42
  }
@@ -45,27 +50,27 @@ class dt {
45
50
  const i = this.events[e];
46
51
  if (!i)
47
52
  return;
48
- const l = Array.from(i.highPriority.keys()), p = Array.from(i.regular.keys());
49
- for (let d = l.length - 1; d >= 0; d -= 1) {
50
- const r = l[d];
51
- i.highPriority.has(r) && r.apply(this, o);
53
+ const l = Array.from(i.highPriority.keys()), h = Array.from(i.regular.keys());
54
+ for (let a = l.length - 1; a >= 0; a -= 1) {
55
+ const d = l[a];
56
+ i.highPriority.has(d) && d.apply(this, o);
52
57
  }
53
- for (let d = 0; d < p.length; d += 1) {
54
- const r = p[d];
55
- i.regular.has(r) && r.apply(this, o);
58
+ for (let a = 0; a < h.length; a += 1) {
59
+ const d = h[a];
60
+ i.regular.has(d) && d.apply(this, o);
56
61
  }
57
62
  }
58
63
  once(e, o) {
59
64
  const i = this;
60
- this.on(e, function l(...p) {
61
- i.removeListener(e, l), o.apply(i, p);
65
+ this.on(e, function l(...h) {
66
+ i.removeListener(e, l), o.apply(i, h);
62
67
  });
63
68
  }
64
69
  }
65
- const ft = (t) => t.isPropagationStopped !== void 0, he = () => {
66
- const [t] = x.useState(() => new dt()), e = x.useCallback((...i) => {
67
- const [l, p, d = {}] = i;
68
- d.defaultMuiPrevented = !1, !(ft(d) && d.isPropagationStopped()) && t.emit(l, p, d);
70
+ const It = (t) => t.isPropagationStopped !== void 0, ge = () => {
71
+ const [t] = x.useState(() => new pt()), e = x.useCallback((...i) => {
72
+ const [l, h, a = {}] = i;
73
+ a.defaultMuiPrevented = !1, !(It(a) && a.isPropagationStopped()) && t.emit(l, h, a);
69
74
  }, [t]), o = x.useCallback((i, l) => (t.on(i, l), () => {
70
75
  t.removeListener(i, l);
71
76
  }), [t]);
@@ -76,8 +81,8 @@ const ft = (t) => t.isPropagationStopped !== void 0, he = () => {
76
81
  }
77
82
  };
78
83
  };
79
- he.params = {};
80
- const ge = ({
84
+ ge.params = {};
85
+ const be = ({
81
86
  plugins: t
82
87
  }) => {
83
88
  const e = new Set(t);
@@ -87,29 +92,29 @@ const ge = ({
87
92
  }
88
93
  };
89
94
  };
90
- ge.params = {};
91
- const H = ({
95
+ be.params = {};
96
+ const ee = ({
92
97
  params: t,
93
98
  store: e
94
99
  }) => {
95
100
  x.useEffect(() => {
96
101
  e.update((i) => t.id === i.id.providedTreeId && i.id.treeId !== void 0 ? i : T({}, i, {
97
102
  id: T({}, i.id, {
98
- treeId: t.id ?? Re()
103
+ treeId: t.id ?? Me()
99
104
  })
100
105
  }));
101
106
  }, [e, t.id]);
102
- const o = L(e, ae);
107
+ const o = M(e, de);
103
108
  return {
104
109
  getRootProps: () => ({
105
110
  id: o
106
111
  })
107
112
  };
108
113
  };
109
- H.params = {
114
+ ee.params = {
110
115
  id: !0
111
116
  };
112
- H.getInitialState = ({
117
+ ee.getInitialState = ({
113
118
  id: t
114
119
  }) => ({
115
120
  id: {
@@ -117,94 +122,94 @@ H.getInitialState = ({
117
122
  providedTreeId: t
118
123
  }
119
124
  });
120
- const mt = [he, ge, H], pt = ["apiRef"], It = (t) => {
125
+ const ht = [ge, be, ee], gt = ["apiRef"], bt = (t) => {
121
126
  let {
122
127
  props: {
123
128
  apiRef: e
124
129
  },
125
130
  plugins: o
126
- } = t, i = Z(t.props, pt);
131
+ } = t, i = H(t.props, gt);
127
132
  const l = x.useMemo(() => {
128
- const r = {};
129
- return o.forEach((u) => {
130
- Object.assign(r, u.params);
131
- }), r;
133
+ const d = {};
134
+ return o.forEach((r) => {
135
+ Object.assign(d, r.params);
136
+ }), d;
132
137
  }, [o]), {
133
- forwardedProps: p,
134
- pluginParams: d
138
+ forwardedProps: h,
139
+ pluginParams: a
135
140
  } = x.useMemo(() => {
136
- const r = {}, u = {};
141
+ const d = {}, r = {};
137
142
  Object.keys(i).forEach((c) => {
138
143
  const n = i[c];
139
- l[c] ? r[c] = n : u[c] = n;
144
+ l[c] ? d[c] = n : r[c] = n;
140
145
  });
141
- const h = o.reduce((c, n) => n.applyDefaultValuesToParams ? n.applyDefaultValuesToParams({
146
+ const m = o.reduce((c, n) => n.applyDefaultValuesToParams ? n.applyDefaultValuesToParams({
142
147
  params: c
143
- }) : c, r);
148
+ }) : c, d);
144
149
  return {
145
- forwardedProps: u,
146
- pluginParams: h
150
+ forwardedProps: r,
151
+ pluginParams: m
147
152
  };
148
153
  }, [o, i, l]);
149
154
  return {
150
- forwardedProps: p,
151
- pluginParams: d,
155
+ forwardedProps: h,
156
+ pluginParams: a,
152
157
  apiRef: e
153
158
  };
154
- }, ht = (t) => {
159
+ }, Et = (t) => {
155
160
  const {
156
161
  plugins: e,
157
162
  instance: o,
158
163
  publicAPI: i,
159
164
  store: l,
160
- rootRef: p
161
- } = t, d = x.useCallback((h) => {
165
+ rootRef: h
166
+ } = t, a = x.useCallback((m) => {
162
167
  let c = null, n = null;
163
168
  const s = [], I = {};
164
- e.forEach((m) => {
165
- if (!m.itemPlugin)
169
+ e.forEach((p) => {
170
+ if (!p.itemPlugin)
166
171
  return;
167
- const a = m.itemPlugin({
168
- props: h,
172
+ const u = p.itemPlugin({
173
+ props: m,
169
174
  rootRef: c,
170
175
  contentRef: n
171
176
  });
172
- a != null && a.rootRef && (c = a.rootRef), a != null && a.contentRef && (n = a.contentRef), a != null && a.propsEnhancers && (s.push(a.propsEnhancers), Object.keys(a.propsEnhancers).forEach((f) => {
177
+ u != null && u.rootRef && (c = u.rootRef), u != null && u.contentRef && (n = u.contentRef), u != null && u.propsEnhancers && (s.push(u.propsEnhancers), Object.keys(u.propsEnhancers).forEach((f) => {
173
178
  I[f] = !0;
174
179
  }));
175
180
  });
176
- const E = (m) => (a) => {
181
+ const b = (p) => (u) => {
177
182
  const f = {};
178
183
  return s.forEach((w) => {
179
- const k = w[m];
180
- k != null && Object.assign(f, k(a));
184
+ const k = w[p];
185
+ k != null && Object.assign(f, k(u));
181
186
  }), f;
182
- }, b = Object.fromEntries(Object.keys(I).map((m) => [m, E(m)]));
187
+ }, E = Object.fromEntries(Object.keys(I).map((p) => [p, b(p)]));
183
188
  return {
184
189
  contentRef: n,
185
190
  rootRef: c,
186
- propsEnhancers: b
191
+ propsEnhancers: E
187
192
  };
188
- }, [e]), r = x.useCallback(({
189
- itemId: h,
193
+ }, [e]), d = x.useCallback(({
194
+ itemId: m,
190
195
  children: c,
191
196
  idAttribute: n
192
197
  }) => {
193
198
  let s = c;
194
199
  for (let I = e.length - 1; I >= 0; I -= 1) {
195
- const E = e[I];
196
- E.wrapItem && (s = E.wrapItem({
200
+ const b = e[I];
201
+ b.wrapItem && (s = b.wrapItem({
197
202
  instance: o,
198
- itemId: h,
203
+ itemId: m,
199
204
  children: s,
200
205
  idAttribute: n
201
206
  }));
202
207
  }
203
208
  return s;
204
- }, [e, o]), u = x.useCallback(({
205
- children: h
209
+ }, [e, o]), r = x.useCallback(({
210
+ children: m
206
211
  }) => {
207
- let c = h;
212
+ let c = m;
208
213
  for (let n = e.length - 1; n >= 0; n -= 1) {
209
214
  const s = e[n];
210
215
  s.wrapRoot && (c = s.wrapRoot({
@@ -214,96 +219,99 @@ const mt = [he, ge, H], pt = ["apiRef"], It = (t) => {
214
219
  return c;
215
220
  }, [e]);
216
221
  return x.useMemo(() => ({
217
- runItemPlugins: d,
218
- wrapItem: r,
219
- wrapRoot: u,
222
+ runItemPlugins: a,
223
+ wrapItem: d,
224
+ wrapRoot: r,
220
225
  instance: o,
221
226
  publicAPI: i,
222
227
  store: l,
223
- rootRef: p
224
- }), [d, r, u, o, i, l, p]);
228
+ rootRef: h
229
+ }), [a, d, r, o, i, l, h]);
225
230
  };
226
- class gt {
231
+ class Tt {
227
232
  constructor(e) {
228
- this.value = void 0, this.listeners = void 0, this.subscribe = (o) => (this.listeners.add(o), () => {
229
- this.listeners.delete(o);
230
- }), this.getSnapshot = () => this.value, this.update = (o) => {
231
- const i = o(this.value);
232
- i !== this.value && (this.value = i, this.listeners.forEach((l) => l(i)));
233
- }, this.value = e, this.listeners = /* @__PURE__ */ new Set();
233
+ L(this, "subscribe", (e) => (this.listeners.add(e), () => {
234
+ this.listeners.delete(e);
235
+ }));
236
+ L(this, "getSnapshot", () => this.value);
237
+ L(this, "update", (e) => {
238
+ const o = e(this.value);
239
+ o !== this.value && (this.value = o, this.listeners.forEach((i) => i(o)));
240
+ });
241
+ this.value = e, this.listeners = /* @__PURE__ */ new Set();
234
242
  }
235
243
  }
236
- function bt(t) {
244
+ function xt(t) {
237
245
  return t.current == null && (t.current = {}), t;
238
246
  }
239
- function Et(t) {
247
+ function wt(t) {
240
248
  const e = x.useRef({});
241
- return t ? bt(t) : e;
249
+ return t ? xt(t) : e;
242
250
  }
243
- let ce = 0;
244
- const Tt = ({
251
+ let ue = 0;
252
+ const kt = ({
245
253
  plugins: t,
246
254
  rootRef: e,
247
255
  props: o
248
256
  }) => {
249
- const i = x.useMemo(() => [...mt, ...t], [t]), {
257
+ const i = x.useMemo(() => [...ht, ...t], [t]), {
250
258
  pluginParams: l,
251
- forwardedProps: p,
252
- apiRef: d
253
- } = It({
259
+ forwardedProps: h,
260
+ apiRef: a
261
+ } = bt({
254
262
  plugins: i,
255
263
  props: o
256
- }), u = x.useRef({}).current, h = Et(d), c = x.useRef(null), n = it(c, e), s = x.useRef(null);
264
+ }), r = x.useRef({}).current, m = wt(a), c = x.useRef(null), n = ct(c, e), s = x.useRef(null);
257
265
  if (s.current == null) {
258
- ce += 1;
259
- const a = {
266
+ ue += 1;
267
+ const u = {
260
268
  cacheKey: {
261
- id: ce
269
+ id: ue
262
270
  }
263
271
  };
264
272
  i.forEach((f) => {
265
- f.getInitialState && Object.assign(a, f.getInitialState(l));
266
- }), s.current = new gt(a);
273
+ f.getInitialState && Object.assign(u, f.getInitialState(l));
274
+ }), s.current = new Tt(u);
267
275
  }
268
- const I = ht({
276
+ const I = Et({
269
277
  plugins: i,
270
- instance: u,
271
- publicAPI: h.current,
278
+ instance: r,
279
+ publicAPI: m.current,
272
280
  store: s.current,
273
281
  rootRef: c
274
- }), E = [], b = (a) => {
275
- const f = a({
276
- instance: u,
282
+ }), b = [], E = (u) => {
283
+ const f = u({
284
+ instance: r,
277
285
  params: l,
278
286
  rootRef: c,
279
287
  plugins: i,
280
288
  store: s.current
281
289
  });
282
- f.getRootProps && E.push(f.getRootProps), f.publicAPI && Object.assign(h.current, f.publicAPI), f.instance && Object.assign(u, f.instance);
290
+ f.getRootProps && b.push(f.getRootProps), f.publicAPI && Object.assign(m.current, f.publicAPI), f.instance && Object.assign(r, f.instance);
283
291
  };
284
- return i.forEach(b), {
285
- getRootProps: (a = {}) => {
292
+ return i.forEach(E), {
293
+ getRootProps: (u = {}) => {
286
294
  const f = T({
287
295
  role: "tree"
288
- }, p, a, {
296
+ }, h, u, {
289
297
  ref: n
290
298
  });
291
- return E.forEach((w) => {
292
- Object.assign(f, w(a));
299
+ return b.forEach((w) => {
300
+ Object.assign(f, w(u));
293
301
  }), f;
294
302
  },
295
303
  rootRef: n,
296
304
  contextValue: I
297
305
  };
298
- }, z = {};
299
- function xt(t) {
306
+ }, G = {};
307
+ function Ct(t) {
300
308
  const {
301
309
  contextValue: e,
302
- classes: o = z,
303
- slots: i = z,
304
- slotProps: l = z,
305
- children: p
306
- } = t, d = x.useMemo(() => ({
310
+ classes: o = G,
311
+ slots: i = G,
312
+ slotProps: l = G,
313
+ children: h
314
+ } = t, a = x.useMemo(() => ({
307
315
  classes: o,
308
316
  slots: {
309
317
  collapseIcon: i.collapseIcon,
@@ -316,134 +324,134 @@ function xt(t) {
316
324
  endIcon: l.endIcon
317
325
  }
318
326
  }), [o, i.collapseIcon, i.expandIcon, i.endIcon, l.collapseIcon, l.expandIcon, l.endIcon]);
319
- return /* @__PURE__ */ P(Se.Provider, {
327
+ return /* @__PURE__ */ P(ve.Provider, {
320
328
  value: e,
321
- children: /* @__PURE__ */ P(Le.Provider, {
322
- value: d,
329
+ children: /* @__PURE__ */ P(De.Provider, {
330
+ value: a,
323
331
  children: e.wrapRoot({
324
- children: p
332
+ children: h
325
333
  })
326
334
  })
327
335
  });
328
336
  }
329
- const _ = (t, e, o) => {
337
+ const $ = (t, e, o) => {
330
338
  t.$$publishEvent(e, o);
331
- }, wt = (t, e, o) => {
339
+ }, Pt = (t, e, o) => {
332
340
  if (t == null)
333
341
  throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", "An item was provided without id in the `items` prop:", JSON.stringify(e)].join(`
334
342
  `));
335
343
  if (o[t] != null)
336
344
  throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${t}"`].join(`
337
345
  `));
338
- }, Q = ({
346
+ }, Y = ({
339
347
  disabledItemsFocusable: t,
340
348
  items: e,
341
349
  isItemDisabled: o,
342
350
  getItemLabel: i,
343
351
  getItemChildren: l,
344
- getItemId: p,
345
- initialDepth: d = 0,
346
- initialParentId: r = null,
347
- getChildrenCount: u,
348
- ignoreChildren: h = !1
352
+ getItemId: h,
353
+ initialDepth: a = 0,
354
+ initialParentId: d = null,
355
+ getChildrenCount: r,
356
+ ignoreChildren: m = !1
349
357
  }) => {
350
358
  const c = {}, n = {}, s = {
351
- [se]: []
352
- }, I = (b, m, a) => {
353
- const f = p ? p(b) : b.id;
354
- wt(f, b, c);
355
- const w = i ? i(b) : b.label;
359
+ [ie]: []
360
+ }, I = (E, p, u) => {
361
+ const f = h ? h(E) : E.id;
362
+ Pt(f, E, c);
363
+ const w = i ? i(E) : E.label;
356
364
  if (w == null)
357
- throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(b)].join(`
365
+ throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(E)].join(`
358
366
  `));
359
- const k = l ? l(b) : b.children;
367
+ const k = l ? l(E) : E.children;
360
368
  c[f] = {
361
369
  id: f,
362
370
  label: w,
363
- parentId: a,
371
+ parentId: u,
364
372
  idAttribute: void 0,
365
- expandable: u ? u(b) > 0 : !!(k != null && k.length),
366
- disabled: o ? o(b) : !1,
367
- depth: m
368
- }, n[f] = b;
369
- const C = a ?? se;
370
- s[C] || (s[C] = []), s[C].push(f), h || k == null || k.forEach((y) => I(y, m + 1, f));
373
+ expandable: r ? r(E) > 0 : !!(k != null && k.length),
374
+ disabled: o ? o(E) : !1,
375
+ depth: p
376
+ }, n[f] = E;
377
+ const C = u ?? ie;
378
+ s[C] || (s[C] = []), s[C].push(f), m || k == null || k.forEach((y) => I(y, p + 1, f));
371
379
  };
372
- e == null || e.forEach((b) => I(b, d, r));
373
- const E = {};
374
- return Object.keys(s).forEach((b) => {
375
- E[b] = Me(s[b]);
380
+ e == null || e.forEach((E) => I(E, a, d));
381
+ const b = {};
382
+ return Object.keys(s).forEach((E) => {
383
+ b[E] = Oe(s[E]);
376
384
  }), {
377
385
  disabledItemsFocusable: t,
378
386
  itemMetaLookup: c,
379
387
  itemModelLookup: n,
380
388
  itemOrderedChildrenIdsLookup: s,
381
- itemChildrenIndexesLookup: E
389
+ itemChildrenIndexesLookup: b
382
390
  };
383
- }, A = ({
391
+ }, F = ({
384
392
  instance: t,
385
393
  params: e,
386
394
  store: o
387
395
  }) => {
388
- const i = x.useCallback((a) => oe(o.value, a), [o]), l = x.useCallback((a) => {
389
- const f = O(o.value, a);
396
+ const i = x.useCallback((u) => se(o.value, u), [o]), l = x.useCallback((u) => {
397
+ const f = V(o.value, u);
390
398
  return (f == null ? void 0 : f.parentId) || null;
391
- }, [o]), p = S((a) => {
399
+ }, [o]), h = S((u) => {
392
400
  o.update((f) => T({}, f, {
393
401
  items: T({}, f.items, {
394
- loading: a
402
+ loading: u
395
403
  })
396
404
  }));
397
- }), d = S((a) => {
405
+ }), a = S((u) => {
398
406
  o.update((f) => T({}, f, {
399
407
  items: T({}, f.items, {
400
- error: a
408
+ error: u
401
409
  })
402
410
  }));
403
- }), r = S(({
404
- itemId: a,
411
+ }), d = S(({
412
+ itemId: u,
405
413
  shouldBeDisabled: f
406
414
  }) => {
407
415
  o.update((w) => {
408
- if (!w.items.itemMetaLookup[a])
416
+ if (!w.items.itemMetaLookup[u])
409
417
  return w;
410
418
  const k = T({}, w.items.itemMetaLookup);
411
- return k[a] = T({}, k[a], {
412
- disabled: f ?? !k[a].disabled
419
+ return k[u] = T({}, k[u], {
420
+ disabled: f ?? !k[u].disabled
413
421
  }), T({}, w, {
414
422
  items: T({}, w.items, {
415
423
  itemMetaLookup: k
416
424
  })
417
425
  });
418
426
  });
419
- }), u = x.useCallback(() => {
420
- const a = (f) => {
421
- const w = oe(o.value, f), k = R(o.value, f);
422
- return k.length > 0 ? w.children = k.map(a) : delete w.children, w;
427
+ }), r = x.useCallback(() => {
428
+ const u = (f) => {
429
+ const w = se(o.value, f), k = R(o.value, f);
430
+ return k.length > 0 ? w.children = k.map(u) : delete w.children, w;
423
431
  };
424
- return R(o.value, null).map(a);
425
- }, [o]), h = x.useCallback((a) => R(o.value, a), [o]), c = (a) => {
426
- const f = O(o.value, a);
432
+ return R(o.value, null).map(u);
433
+ }, [o]), m = x.useCallback((u) => R(o.value, u), [o]), c = (u) => {
434
+ const f = V(o.value, u);
427
435
  if (f == null)
428
436
  return null;
429
- const w = ve({
430
- treeId: ae(o.value),
431
- itemId: a,
437
+ const w = Ve({
438
+ treeId: de(o.value),
439
+ itemId: u,
432
440
  id: f.idAttribute
433
441
  });
434
442
  return document.getElementById(w);
435
443
  }, n = x.useRef(!1), s = x.useCallback(() => {
436
444
  n.current = !0;
437
- }, []), I = x.useCallback(() => n.current, []), E = ({
438
- items: a,
445
+ }, []), I = x.useCallback(() => n.current, []), b = ({
446
+ items: u,
439
447
  parentId: f,
440
448
  depth: w,
441
449
  getChildrenCount: k
442
450
  }) => {
443
- if (a) {
444
- const C = Q({
451
+ if (u) {
452
+ const C = Y({
445
453
  disabledItemsFocusable: e.disabledItemsFocusable,
446
- items: a,
454
+ items: u,
447
455
  isItemDisabled: e.isItemDisabled,
448
456
  getItemId: e.getItemId,
449
457
  getItemLabel: e.getItemLabel,
@@ -454,29 +462,29 @@ const _ = (t, e, o) => {
454
462
  ignoreChildren: !0
455
463
  });
456
464
  o.update((y) => {
457
- let v;
458
- return f ? v = {
465
+ let D;
466
+ return f ? D = {
459
467
  itemModelLookup: T({}, y.items.itemModelLookup, C.itemModelLookup),
460
468
  itemMetaLookup: T({}, y.items.itemMetaLookup, C.itemMetaLookup),
461
469
  itemOrderedChildrenIdsLookup: T({}, C.itemOrderedChildrenIdsLookup, y.items.itemOrderedChildrenIdsLookup),
462
470
  itemChildrenIndexesLookup: T({}, C.itemChildrenIndexesLookup, y.items.itemChildrenIndexesLookup)
463
- } : v = {
471
+ } : D = {
464
472
  itemModelLookup: C.itemModelLookup,
465
473
  itemMetaLookup: C.itemMetaLookup,
466
474
  itemOrderedChildrenIdsLookup: C.itemOrderedChildrenIdsLookup,
467
475
  itemChildrenIndexesLookup: C.itemChildrenIndexesLookup
468
- }, Object.values(y.items.itemMetaLookup).forEach((M) => {
469
- v.itemMetaLookup[M.id] || _(t, "removeItem", {
470
- id: M.id
476
+ }, Object.values(y.items.itemMetaLookup).forEach((v) => {
477
+ D.itemMetaLookup[v.id] || $(t, "removeItem", {
478
+ id: v.id
471
479
  });
472
480
  }), T({}, y, {
473
- items: T({}, y.items, v)
481
+ items: T({}, y.items, D)
474
482
  });
475
483
  });
476
484
  }
477
- }, b = (a) => {
485
+ }, E = (u) => {
478
486
  o.update((f) => {
479
- if (!a)
487
+ if (!u)
480
488
  return T({}, f, {
481
489
  items: T({}, f.items, {
482
490
  itemMetaLookup: {},
@@ -484,15 +492,15 @@ const _ = (t, e, o) => {
484
492
  itemChildrenIndexesLookup: {}
485
493
  })
486
494
  });
487
- const w = Object.keys(f.items.itemMetaLookup).reduce((y, v) => {
488
- const M = f.items.itemMetaLookup[v];
489
- return M.parentId === a ? (_(t, "removeItem", {
490
- id: M.id
495
+ const w = Object.keys(f.items.itemMetaLookup).reduce((y, D) => {
496
+ const v = f.items.itemMetaLookup[D];
497
+ return v.parentId === u ? ($(t, "removeItem", {
498
+ id: v.id
491
499
  }), y) : T({}, y, {
492
- [M.id]: M
500
+ [v.id]: v
493
501
  });
494
502
  }, {}), k = f.items.itemOrderedChildrenIdsLookup, C = f.items.itemChildrenIndexesLookup;
495
- return delete C[a], delete k[a], T({}, f, {
503
+ return delete C[u], delete k[u], T({}, f, {
496
504
  items: T({}, f.items, {
497
505
  itemMetaLookup: w,
498
506
  itemOrderedChildrenIdsLookup: k,
@@ -502,8 +510,8 @@ const _ = (t, e, o) => {
502
510
  });
503
511
  };
504
512
  x.useEffect(() => {
505
- t.areItemUpdatesPrevented() || o.update((a) => {
506
- const f = Q({
513
+ t.areItemUpdatesPrevented() || o.update((u) => {
514
+ const f = Y({
507
515
  disabledItemsFocusable: e.disabledItemsFocusable,
508
516
  items: e.items,
509
517
  isItemDisabled: e.isItemDisabled,
@@ -511,17 +519,17 @@ const _ = (t, e, o) => {
511
519
  getItemLabel: e.getItemLabel,
512
520
  getItemChildren: e.getItemChildren
513
521
  });
514
- return Object.values(a.items.itemMetaLookup).forEach((w) => {
515
- f.itemMetaLookup[w.id] || _(t, "removeItem", {
522
+ return Object.values(u.items.itemMetaLookup).forEach((w) => {
523
+ f.itemMetaLookup[w.id] || $(t, "removeItem", {
516
524
  id: w.id
517
525
  });
518
- }), T({}, a, {
519
- items: T({}, a.items, f)
526
+ }), T({}, u, {
527
+ items: T({}, u.items, f)
520
528
  });
521
529
  });
522
530
  }, [t, o, e.items, e.disabledItemsFocusable, e.isItemDisabled, e.getItemId, e.getItemLabel, e.getItemChildren]);
523
- const m = S((a, f) => {
524
- e.onItemClick && e.onItemClick(a, f);
531
+ const p = S((u, f) => {
532
+ e.onItemClick && e.onItemClick(u, f);
525
533
  });
526
534
  return {
527
535
  getRootProps: () => ({
@@ -532,25 +540,25 @@ const _ = (t, e, o) => {
532
540
  publicAPI: {
533
541
  getItem: i,
534
542
  getItemDOMElement: c,
535
- getItemTree: u,
536
- getItemOrderedChildrenIds: h,
537
- setIsItemDisabled: r,
543
+ getItemTree: r,
544
+ getItemOrderedChildrenIds: m,
545
+ setIsItemDisabled: d,
538
546
  getParentId: l
539
547
  },
540
548
  instance: {
541
549
  getItemDOMElement: c,
542
550
  preventItemUpdates: s,
543
551
  areItemUpdatesPrevented: I,
544
- addItems: E,
545
- setTreeViewLoading: p,
546
- setTreeViewError: d,
547
- removeChildren: b,
548
- handleItemClick: m
552
+ addItems: b,
553
+ setTreeViewLoading: h,
554
+ setTreeViewError: a,
555
+ removeChildren: E,
556
+ handleItemClick: p
549
557
  }
550
558
  };
551
559
  };
552
- A.getInitialState = (t) => ({
553
- items: T({}, Q({
560
+ F.getInitialState = (t) => ({
561
+ items: T({}, Y({
554
562
  disabledItemsFocusable: t.disabledItemsFocusable,
555
563
  items: t.items,
556
564
  isItemDisabled: t.isItemDisabled,
@@ -562,20 +570,20 @@ A.getInitialState = (t) => ({
562
570
  error: null
563
571
  })
564
572
  });
565
- A.applyDefaultValuesToParams = ({
573
+ F.applyDefaultValuesToParams = ({
566
574
  params: t
567
575
  }) => T({}, t, {
568
576
  disabledItemsFocusable: t.disabledItemsFocusable ?? !1,
569
577
  itemChildrenIndentation: t.itemChildrenIndentation ?? "12px"
570
578
  });
571
- A.wrapRoot = ({
579
+ F.wrapRoot = ({
572
580
  children: t
573
- }) => /* @__PURE__ */ P(De.Provider, {
574
- value: Oe,
581
+ }) => /* @__PURE__ */ P(Ae.Provider, {
582
+ value: Fe,
575
583
  children: t
576
584
  });
577
- process.env.NODE_ENV !== "production" && (A.wrapRoot.displayName = "useTreeViewItems.wrapRoot");
578
- A.params = {
585
+ process.env.NODE_ENV !== "production" && (F.wrapRoot.displayName = "useTreeViewItems.wrapRoot");
586
+ F.params = {
579
587
  disabledItemsFocusable: !0,
580
588
  items: !0,
581
589
  isItemDisabled: !0,
@@ -585,134 +593,137 @@ A.params = {
585
593
  onItemClick: !0,
586
594
  itemChildrenIndentation: !0
587
595
  };
588
- function kt(t) {
596
+ function yt(t) {
589
597
  const {
590
598
  componentName: e,
591
599
  propName: o,
592
600
  controlled: i,
593
601
  defaultValue: l,
594
- warningPrefix: p = "MUI X"
602
+ warningPrefix: h = "MUI X"
595
603
  } = t, [{
596
- initialDefaultValue: d,
597
- isControlled: r
604
+ initialDefaultValue: a,
605
+ isControlled: d
598
606
  }] = x.useState({
599
607
  initialDefaultValue: l,
600
608
  isControlled: i !== void 0
601
609
  });
602
- r !== (i !== void 0) && J([`${p}: A component is changing the ${r ? "" : "un"}controlled ${o} state of ${e} to be ${r ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"], "error"), JSON.stringify(d) !== JSON.stringify(l) && J([`${p}: A component is changing the default ${o} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`], "error");
610
+ d !== (i !== void 0) && Q([`${h}: A component is changing the ${d ? "" : "un"}controlled ${o} state of ${e} to be ${d ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"], "error"), JSON.stringify(a) !== JSON.stringify(l) && Q([`${h}: A component is changing the default ${o} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`], "error");
603
611
  }
604
- const be = process.env.NODE_ENV === "production" ? () => {
605
- } : kt, Ee = ({
612
+ const Ee = process.env.NODE_ENV === "production" ? () => {
613
+ } : yt, Te = ({
606
614
  isItemEditable: t,
607
615
  expansionTrigger: e
608
- }) => e || (t ? "iconContainer" : "content"), U = ({
616
+ }) => e || (t ? "iconContainer" : "content"), q = ({
609
617
  instance: t,
610
618
  store: e,
611
619
  params: o
612
620
  }) => {
613
- be({
621
+ Ee({
614
622
  componentName: "Tree View",
615
623
  propName: "expandedItems",
616
624
  controlled: o.expandedItems,
617
625
  defaultValue: o.defaultExpandedItems
618
- }), X(() => {
626
+ }), J(() => {
619
627
  e.update((r) => {
620
- const u = Ee({
628
+ const m = Te({
621
629
  isItemEditable: o.isItemEditable,
622
630
  expansionTrigger: o.expansionTrigger
623
631
  });
624
- return r.expansion.expansionTrigger === u ? r : T({}, r, {
632
+ return r.expansion.expansionTrigger === m ? r : T({}, r, {
625
633
  expansion: T({}, r.expansion, {
626
- expansionTrigger: u
634
+ expansionTrigger: m
627
635
  })
628
636
  });
629
637
  });
630
638
  }, [e, o.isItemEditable, o.expansionTrigger]);
631
- const i = (r, u) => {
632
- var h;
633
- o.expandedItems === void 0 && e.update((c) => T({}, c, {
634
- expansion: T({}, c.expansion, {
635
- expandedItems: u
639
+ const i = (r, m) => {
640
+ var c;
641
+ o.expandedItems === void 0 && e.update((n) => T({}, n, {
642
+ expansion: T({}, n.expansion, {
643
+ expandedItems: m
636
644
  })
637
- })), (h = o.onExpandedItemsChange) == null || h.call(o, r, u);
638
- }, l = S(({
645
+ })), (c = o.onExpandedItemsChange) == null || c.call(o, r, m);
646
+ }, l = S(() => {
647
+ i(null, []);
648
+ }), h = S(({
639
649
  itemId: r,
640
- event: u,
641
- shouldBeExpanded: h
650
+ event: m,
651
+ shouldBeExpanded: c
642
652
  }) => {
643
- const c = ie(e.value);
644
- let n;
645
- h ? n = [r].concat(c) : n = c.filter((s) => s !== r), o.onItemExpansionToggle && o.onItemExpansionToggle(u, r, h), i(u, n);
646
- }), p = S(({
653
+ const n = le(e.value);
654
+ let s;
655
+ c ? s = [r].concat(n) : s = n.filter((I) => I !== r), o.onItemExpansionToggle && o.onItemExpansionToggle(m, r, c), i(m, s);
656
+ }), a = S(({
647
657
  itemId: r,
648
- event: u = null,
649
- shouldBeExpanded: h
658
+ event: m = null,
659
+ shouldBeExpanded: c
650
660
  }) => {
651
- const c = F(e.value, r), n = h ?? !c;
652
- if (c === n)
661
+ const n = N(e.value, r), s = c ?? !n;
662
+ if (n === s)
653
663
  return;
654
- const s = {
664
+ const I = {
655
665
  isExpansionPrevented: !1,
656
- shouldBeExpanded: n,
657
- event: u,
666
+ shouldBeExpanded: s,
667
+ event: m,
658
668
  itemId: r
659
669
  };
660
- _(t, "beforeItemToggleExpansion", s), !s.isExpansionPrevented && t.applyItemExpansion({
670
+ $(t, "beforeItemToggleExpansion", I), !I.isExpansionPrevented && t.applyItemExpansion({
661
671
  itemId: r,
662
- event: u,
663
- shouldBeExpanded: n
672
+ event: m,
673
+ shouldBeExpanded: s
664
674
  });
665
- }), d = (r, u) => {
666
- const h = O(e.value, u);
667
- if (h == null)
675
+ }), d = (r, m) => {
676
+ const c = V(e.value, m);
677
+ if (c == null)
668
678
  return;
669
- const n = R(e.value, h.parentId).filter((I) => de(e.value, I) && !F(e.value, I)), s = ie(e.value).concat(n);
670
- n.length > 0 && (o.onItemExpansionToggle && n.forEach((I) => {
671
- o.onItemExpansionToggle(r, I, !0);
672
- }), i(r, s));
679
+ const s = R(e.value, c.parentId).filter((b) => fe(e.value, b) && !N(e.value, b)), I = le(e.value).concat(s);
680
+ s.length > 0 && (o.onItemExpansionToggle && s.forEach((b) => {
681
+ o.onItemExpansionToggle(r, b, !0);
682
+ }), i(r, I));
673
683
  };
674
- return X(() => {
684
+ return J(() => {
675
685
  const r = o.expandedItems;
676
- r !== void 0 && e.update((u) => T({}, u, {
677
- expansion: T({}, u.expansion, {
686
+ r !== void 0 && e.update((m) => T({}, m, {
687
+ expansion: T({}, m.expansion, {
678
688
  expandedItems: r
679
689
  })
680
690
  }));
681
691
  }, [e, o.expandedItems]), {
682
692
  publicAPI: {
683
- setItemExpansion: p
693
+ setItemExpansion: a
684
694
  },
685
695
  instance: {
686
- setItemExpansion: p,
687
- applyItemExpansion: l,
688
- expandAllSiblings: d
696
+ setItemExpansion: a,
697
+ applyItemExpansion: h,
698
+ expandAllSiblings: d,
699
+ resetItemExpansion: l
689
700
  }
690
701
  };
691
- }, Ct = [];
692
- U.applyDefaultValuesToParams = ({
702
+ }, Rt = [];
703
+ q.applyDefaultValuesToParams = ({
693
704
  params: t
694
705
  }) => T({}, t, {
695
- defaultExpandedItems: t.defaultExpandedItems ?? Ct
706
+ defaultExpandedItems: t.defaultExpandedItems ?? Rt
696
707
  });
697
- U.getInitialState = (t) => ({
708
+ q.getInitialState = (t) => ({
698
709
  expansion: {
699
710
  expandedItems: t.expandedItems === void 0 ? t.defaultExpandedItems : t.expandedItems,
700
- expansionTrigger: Ee(t)
711
+ expansionTrigger: Te(t)
701
712
  }
702
713
  });
703
- U.params = {
714
+ q.params = {
704
715
  expandedItems: !0,
705
716
  defaultExpandedItems: !0,
706
717
  onExpandedItemsChange: !0,
707
718
  onItemExpansionToggle: !0,
708
719
  expansionTrigger: !0
709
720
  };
710
- const $ = (t) => {
721
+ const U = (t) => {
711
722
  const e = {};
712
723
  return t.forEach((o) => {
713
724
  e[o] = !0;
714
725
  }), e;
715
- }, Te = ({
726
+ }, xe = ({
716
727
  store: t,
717
728
  oldModel: e,
718
729
  newModel: o
@@ -721,10 +732,10 @@ const $ = (t) => {
721
732
  return o.forEach((l) => {
722
733
  i.set(l, !0);
723
734
  }), {
724
- added: o.filter((l) => !V(t.value, l)),
735
+ added: o.filter((l) => !A(t.value, l)),
725
736
  removed: e.filter((l) => !i.has(l))
726
737
  };
727
- }, Pt = ({
738
+ }, St = ({
728
739
  store: t,
729
740
  selectionPropagation: e,
730
741
  newModel: o,
@@ -733,60 +744,60 @@ const $ = (t) => {
733
744
  }) => {
734
745
  if (!e.descendants && !e.parents)
735
746
  return o;
736
- let p = !1;
737
- const d = $(o), r = Te({
747
+ let h = !1;
748
+ const a = U(o), d = xe({
738
749
  store: t,
739
750
  newModel: o,
740
751
  oldModel: i
741
752
  });
742
- return l == null || l.forEach((u) => {
743
- d[u] ? r.added.includes(u) || r.added.push(u) : r.removed.includes(u) || r.removed.push(u);
744
- }), r.added.forEach((u) => {
753
+ return l == null || l.forEach((r) => {
754
+ a[r] ? d.added.includes(r) || d.added.push(r) : d.removed.includes(r) || d.removed.push(r);
755
+ }), d.added.forEach((r) => {
745
756
  if (e.descendants) {
746
- const h = (c) => {
747
- c !== u && (p = !0, d[c] = !0), R(t.value, c).forEach(h);
757
+ const m = (c) => {
758
+ c !== r && (h = !0, a[c] = !0), R(t.value, c).forEach(m);
748
759
  };
749
- h(u);
760
+ m(r);
750
761
  }
751
762
  if (e.parents) {
752
- const h = (n) => d[n] ? R(t.value, n).every(h) : !1, c = (n) => {
753
- const s = j(t.value, n);
763
+ const m = (n) => a[n] ? R(t.value, n).every(m) : !1, c = (n) => {
764
+ const s = _(t.value, n);
754
765
  if (s == null)
755
766
  return;
756
- R(t.value, s).every(h) && (p = !0, d[s] = !0, c(s));
767
+ R(t.value, s).every(m) && (h = !0, a[s] = !0, c(s));
757
768
  };
758
- c(u);
769
+ c(r);
759
770
  }
760
- }), r.removed.forEach((u) => {
771
+ }), d.removed.forEach((r) => {
761
772
  if (e.parents) {
762
- let h = j(t.value, u);
763
- for (; h != null; )
764
- d[h] && (p = !0, delete d[h]), h = j(t.value, h);
773
+ let m = _(t.value, r);
774
+ for (; m != null; )
775
+ a[m] && (h = !0, delete a[m]), m = _(t.value, m);
765
776
  }
766
777
  if (e.descendants) {
767
- const h = (c) => {
768
- c !== u && (p = !0, delete d[c]), R(t.value, c).forEach(h);
778
+ const m = (c) => {
779
+ c !== r && (h = !0, delete a[c]), R(t.value, c).forEach(m);
769
780
  };
770
- h(u);
781
+ m(r);
771
782
  }
772
- }), p ? Object.keys(d) : o;
773
- }, yt = Object.is;
774
- function xe(t, e) {
783
+ }), h ? Object.keys(a) : o;
784
+ }, Lt = Object.is;
785
+ function we(t, e) {
775
786
  if (t === e)
776
787
  return !0;
777
788
  if (!(t instanceof Object) || !(e instanceof Object))
778
789
  return !1;
779
790
  let o = 0, i = 0;
780
791
  for (const l in t)
781
- if (o += 1, !yt(t[l], e[l]) || !(l in e))
792
+ if (o += 1, !Lt(t[l], e[l]) || !(l in e))
782
793
  return !1;
783
794
  for (const l in e)
784
795
  i += 1;
785
796
  return o === i;
786
797
  }
787
- function Rt(t, e) {
788
- const o = Ve(t), i = fe(t, e);
789
- if (V(t, e))
798
+ function Mt(t, e) {
799
+ const o = Ne(t), i = me(t, e);
800
+ if (A(t, e))
790
801
  return {
791
802
  disabled: !i,
792
803
  visible: o,
@@ -800,131 +811,131 @@ function Rt(t, e) {
800
811
  indeterminate: !1,
801
812
  checked: !1
802
813
  };
803
- let p = !1, d = !1;
804
- const r = (u) => {
805
- u !== e && (V(t, u) ? p = !0 : d = !0), R(t, u).forEach(r);
814
+ let h = !1, a = !1;
815
+ const d = (r) => {
816
+ r !== e && (A(t, r) ? h = !0 : a = !0), R(t, r).forEach(d);
806
817
  };
807
- return r(e), {
818
+ return d(e), {
808
819
  disabled: !i,
809
820
  visible: o,
810
- indeterminate: p && d,
811
- checked: Ae(t).parents ? p && !d : !1
821
+ indeterminate: h && a,
822
+ checked: je(t).parents ? h && !a : !1
812
823
  };
813
824
  }
814
- const St = ({
825
+ const vt = ({
815
826
  props: t
816
827
  }) => {
817
828
  const {
818
829
  itemId: e
819
830
  } = t, {
820
831
  store: o
821
- } = Y(), i = L(o, Rt, e, xe);
832
+ } = Z(), i = M(o, Mt, e, we);
822
833
  return {
823
834
  propsEnhancers: {
824
835
  checkbox: ({
825
836
  externalEventHandlers: l,
826
- interactions: p
837
+ interactions: h
827
838
  }) => T({
828
839
  tabIndex: -1,
829
- onChange: (r) => {
830
- var u;
831
- (u = l.onChange) == null || u.call(l, r), !r.defaultMuiPrevented && fe(o.value, e) && p.handleCheckboxSelection(r);
840
+ onChange: (d) => {
841
+ var r;
842
+ (r = l.onChange) == null || r.call(l, d), !d.defaultMuiPrevented && me(o.value, e) && h.handleCheckboxSelection(d);
832
843
  }
833
844
  }, i)
834
845
  }
835
846
  };
836
- }, N = ({
847
+ }, j = ({
837
848
  store: t,
838
849
  params: e
839
850
  }) => {
840
- be({
851
+ Ee({
841
852
  componentName: "Tree View",
842
853
  propName: "selectedItems",
843
854
  controlled: e.selectedItems,
844
855
  defaultValue: e.defaultSelectedItems
845
856
  });
846
- const o = x.useRef(null), i = x.useRef({}), l = (s, I, E) => {
857
+ const o = x.useRef(null), i = x.useRef({}), l = (s, I, b) => {
847
858
  var f;
848
- const b = je(t.value);
849
- let m;
850
- const a = D(t.value);
851
- if (a && (e.selectionPropagation.descendants || e.selectionPropagation.parents) ? m = Pt({
859
+ const E = Ue(t.value);
860
+ let p;
861
+ const u = O(t.value);
862
+ if (u && (e.selectionPropagation.descendants || e.selectionPropagation.parents) ? p = St({
852
863
  store: t,
853
864
  selectionPropagation: e.selectionPropagation,
854
865
  newModel: I,
855
- oldModel: b,
856
- additionalItemsToPropagate: E
857
- }) : m = I, e.onItemSelectionToggle)
858
- if (a) {
859
- const w = Te({
866
+ oldModel: E,
867
+ additionalItemsToPropagate: b
868
+ }) : p = I, e.onItemSelectionToggle)
869
+ if (u) {
870
+ const w = xe({
860
871
  store: t,
861
- newModel: m,
862
- oldModel: b
872
+ newModel: p,
873
+ oldModel: E
863
874
  });
864
875
  e.onItemSelectionToggle && (w.added.forEach((k) => {
865
876
  e.onItemSelectionToggle(s, k, !0);
866
877
  }), w.removed.forEach((k) => {
867
878
  e.onItemSelectionToggle(s, k, !1);
868
879
  }));
869
- } else e.onItemSelectionToggle && m !== b && (b != null && e.onItemSelectionToggle(s, b, !1), m != null && e.onItemSelectionToggle(s, m, !0));
880
+ } else e.onItemSelectionToggle && p !== E && (E != null && e.onItemSelectionToggle(s, E, !1), p != null && e.onItemSelectionToggle(s, p, !0));
870
881
  e.selectedItems === void 0 && t.update((w) => T({}, w, {
871
882
  selection: T({}, w.selection, {
872
- selectedItems: m
883
+ selectedItems: p
873
884
  })
874
- })), (f = e.onSelectedItemsChange) == null || f.call(e, s, m);
875
- }, p = ({
885
+ })), (f = e.onSelectedItemsChange) == null || f.call(e, s, p);
886
+ }, h = ({
876
887
  itemId: s,
877
888
  event: I = null,
878
- keepExistingSelection: E = !1,
879
- shouldBeSelected: b
889
+ keepExistingSelection: b = !1,
890
+ shouldBeSelected: E
880
891
  }) => {
881
- if (!W(t.value))
892
+ if (!X(t.value))
882
893
  return;
883
- let m;
884
- const a = D(t.value);
885
- if (E) {
886
- const f = q(t.value), w = V(t.value, s);
887
- w && (b === !1 || b == null) ? m = f.filter((k) => k !== s) : !w && (b === !0 || b == null) ? m = [s].concat(f) : m = f;
894
+ let p;
895
+ const u = O(t.value);
896
+ if (b) {
897
+ const f = K(t.value), w = A(t.value, s);
898
+ w && (E === !1 || E == null) ? p = f.filter((k) => k !== s) : !w && (E === !0 || E == null) ? p = [s].concat(f) : p = f;
888
899
  } else
889
- b === !1 || b == null && V(t.value, s) ? m = a ? [] : null : m = a ? [s] : s;
900
+ E === !1 || E == null && A(t.value, s) ? p = u ? [] : null : p = u ? [s] : s;
890
901
  l(
891
902
  I,
892
- m,
903
+ p,
893
904
  // If shouldBeSelected === selectorIsItemSelected(store, itemId), we still want to propagate the select.
894
905
  // This is useful when the element is in an indeterminate state.
895
906
  [s]
896
907
  ), o.current = s, i.current = {};
897
- }, d = (s, [I, E]) => {
898
- if (!D(t.value))
908
+ }, a = (s, [I, b]) => {
909
+ if (!O(t.value))
899
910
  return;
900
- let m = q(t.value).slice();
901
- Object.keys(i.current).length > 0 && (m = m.filter((k) => !i.current[k]));
902
- const a = $(m), f = _e(t.value, I, E), w = f.filter((k) => !a[k]);
903
- m = m.concat(w), l(s, m), i.current = $(f);
904
- }, r = (s, I) => {
911
+ let p = K(t.value).slice();
912
+ Object.keys(i.current).length > 0 && (p = p.filter((k) => !i.current[k]));
913
+ const u = U(p), f = qe(t.value, I, b), w = f.filter((k) => !u[k]);
914
+ p = p.concat(w), l(s, p), i.current = U(f);
915
+ }, d = (s, I) => {
905
916
  if (o.current != null) {
906
- const [E, b] = Fe(t.value, I, o.current);
907
- d(s, [E, b]);
917
+ const [b, E] = _e(t.value, I, o.current);
918
+ a(s, [b, E]);
908
919
  }
909
- }, u = (s, I) => {
910
- d(s, [G(t.value), I]);
911
- }, h = (s, I) => {
912
- d(s, [I, me(t.value)]);
920
+ }, r = (s, I) => {
921
+ a(s, [W(t.value), I]);
922
+ }, m = (s, I) => {
923
+ a(s, [I, pe(t.value)]);
913
924
  }, c = (s) => {
914
- if (!D(t.value))
925
+ if (!O(t.value))
915
926
  return;
916
- const E = Ne(t.value);
917
- l(s, E), i.current = $(E);
918
- }, n = (s, I, E) => {
919
- if (!D(t.value))
927
+ const b = $e(t.value);
928
+ l(s, b), i.current = U(b);
929
+ }, n = (s, I, b) => {
930
+ if (!O(t.value))
920
931
  return;
921
- let m = q(t.value).slice();
922
- Object.keys(i.current).length === 0 ? (m.push(E), i.current = {
932
+ let p = K(t.value).slice();
933
+ Object.keys(i.current).length === 0 ? (p.push(b), i.current = {
923
934
  [I]: !0,
924
- [E]: !0
925
- }) : (i.current[I] || (i.current = {}), i.current[E] ? (m = m.filter((a) => a !== I), delete i.current[I]) : (m.push(E), i.current[E] = !0)), l(s, m);
935
+ [b]: !0
936
+ }) : (i.current[I] || (i.current = {}), i.current[b] ? (p = p.filter((u) => u !== I), delete i.current[I]) : (p.push(b), i.current[b] = !0)), l(s, p);
926
937
  };
927
- return X(() => {
938
+ return J(() => {
928
939
  t.update((s) => T({}, s, {
929
940
  selection: {
930
941
  selectedItems: e.selectedItems === void 0 ? s.selection.selectedItems : e.selectedItems,
@@ -942,30 +953,30 @@ const St = ({
942
953
  "aria-multiselectable": e.multiSelect
943
954
  }),
944
955
  publicAPI: {
945
- setItemSelection: p
956
+ setItemSelection: h
946
957
  },
947
958
  instance: {
948
- setItemSelection: p,
959
+ setItemSelection: h,
949
960
  selectAllNavigableItems: c,
950
- expandSelectionRange: r,
951
- selectRangeFromStartToItem: u,
952
- selectRangeFromItemToEnd: h,
961
+ expandSelectionRange: d,
962
+ selectRangeFromStartToItem: r,
963
+ selectRangeFromItemToEnd: m,
953
964
  selectItemFromArrowNavigation: n
954
965
  }
955
966
  };
956
967
  };
957
- N.itemPlugin = St;
958
- const Lt = [], Mt = {};
959
- N.applyDefaultValuesToParams = ({
968
+ j.itemPlugin = vt;
969
+ const Dt = [], Ot = {};
970
+ j.applyDefaultValuesToParams = ({
960
971
  params: t
961
972
  }) => T({}, t, {
962
973
  disableSelection: t.disableSelection ?? !1,
963
974
  multiSelect: t.multiSelect ?? !1,
964
975
  checkboxSelection: t.checkboxSelection ?? !1,
965
- defaultSelectedItems: t.defaultSelectedItems ?? (t.multiSelect ? Lt : null),
966
- selectionPropagation: t.selectionPropagation ?? Mt
976
+ defaultSelectedItems: t.defaultSelectedItems ?? (t.multiSelect ? Dt : null),
977
+ selectionPropagation: t.selectionPropagation ?? Ot
967
978
  });
968
- N.getInitialState = (t) => ({
979
+ j.getInitialState = (t) => ({
969
980
  selection: {
970
981
  selectedItems: t.selectedItems === void 0 ? t.defaultSelectedItems : t.selectedItems,
971
982
  isEnabled: !t.disableSelection,
@@ -974,7 +985,7 @@ N.getInitialState = (t) => ({
974
985
  selectionPropagation: t.selectionPropagation
975
986
  }
976
987
  });
977
- N.params = {
988
+ j.params = {
978
989
  disableSelection: !0,
979
990
  multiSelect: !0,
980
991
  checkboxSelection: !0,
@@ -984,10 +995,12 @@ N.params = {
984
995
  onItemSelectionToggle: !0,
985
996
  selectionPropagation: !0
986
997
  };
987
- const ue = 1e3;
988
- class vt {
989
- constructor(e = ue) {
990
- this.timeouts = /* @__PURE__ */ new Map(), this.cleanupTimeout = ue, this.cleanupTimeout = e;
998
+ const ae = 1e3;
999
+ class Vt {
1000
+ constructor(e = ae) {
1001
+ L(this, "timeouts", /* @__PURE__ */ new Map());
1002
+ L(this, "cleanupTimeout", ae);
1003
+ this.cleanupTimeout = e;
991
1004
  }
992
1005
  register(e, o, i) {
993
1006
  this.timeouts || (this.timeouts = /* @__PURE__ */ new Map());
@@ -1008,11 +1021,11 @@ class vt {
1008
1021
  }), this.timeouts = void 0);
1009
1022
  }
1010
1023
  }
1011
- class Dt {
1024
+ class At {
1012
1025
  constructor() {
1013
- this.registry = new FinalizationRegistry((e) => {
1026
+ L(this, "registry", new FinalizationRegistry((e) => {
1014
1027
  typeof e == "function" && e();
1015
- });
1028
+ }));
1016
1029
  }
1017
1030
  register(e, o, i) {
1018
1031
  this.registry.register(e, o, i);
@@ -1024,201 +1037,201 @@ class Dt {
1024
1037
  reset() {
1025
1038
  }
1026
1039
  }
1027
- class Ot {
1040
+ class Ft {
1028
1041
  }
1029
- function Vt(t) {
1042
+ function Nt(t) {
1030
1043
  let e = 0;
1031
- return function(i, l, p) {
1032
- t.registry === null && (t.registry = typeof FinalizationRegistry < "u" ? new Dt() : new vt());
1033
- const [d] = x.useState(new Ot()), r = x.useRef(null), u = x.useRef(void 0);
1034
- u.current = p;
1035
- const h = x.useRef(null);
1036
- if (!r.current && u.current) {
1044
+ return function(i, l, h) {
1045
+ t.registry === null && (t.registry = typeof FinalizationRegistry < "u" ? new At() : new Vt());
1046
+ const [a] = x.useState(new Ft()), d = x.useRef(null), r = x.useRef(void 0);
1047
+ r.current = h;
1048
+ const m = x.useRef(null);
1049
+ if (!d.current && r.current) {
1037
1050
  const c = (n, s) => {
1038
1051
  var I;
1039
- s.defaultMuiPrevented || (I = u.current) == null || I.call(u, n, s);
1052
+ s.defaultMuiPrevented || (I = r.current) == null || I.call(r, n, s);
1040
1053
  };
1041
- r.current = i.$$subscribeEvent(l, c), e += 1, h.current = {
1054
+ d.current = i.$$subscribeEvent(l, c), e += 1, m.current = {
1042
1055
  cleanupToken: e
1043
1056
  }, t.registry.register(
1044
- d,
1057
+ a,
1045
1058
  // The callback below will be called once this reference stops being retained
1046
1059
  () => {
1047
1060
  var n;
1048
- (n = r.current) == null || n.call(r), r.current = null, h.current = null;
1061
+ (n = d.current) == null || n.call(d), d.current = null, m.current = null;
1049
1062
  },
1050
- h.current
1063
+ m.current
1051
1064
  );
1052
- } else !u.current && r.current && (r.current(), r.current = null, h.current && (t.registry.unregister(h.current), h.current = null));
1065
+ } else !r.current && d.current && (d.current(), d.current = null, m.current && (t.registry.unregister(m.current), m.current = null));
1053
1066
  x.useEffect(() => {
1054
- if (!r.current && u.current) {
1067
+ if (!d.current && r.current) {
1055
1068
  const c = (n, s) => {
1056
1069
  var I;
1057
- s.defaultMuiPrevented || (I = u.current) == null || I.call(u, n, s);
1070
+ s.defaultMuiPrevented || (I = r.current) == null || I.call(r, n, s);
1058
1071
  };
1059
- r.current = i.$$subscribeEvent(l, c);
1072
+ d.current = i.$$subscribeEvent(l, c);
1060
1073
  }
1061
- return h.current && t.registry && (t.registry.unregister(h.current), h.current = null), () => {
1074
+ return m.current && t.registry && (t.registry.unregister(m.current), m.current = null), () => {
1062
1075
  var c;
1063
- (c = r.current) == null || c.call(r), r.current = null;
1076
+ (c = d.current) == null || c.call(d), d.current = null;
1064
1077
  };
1065
1078
  }, [i, l]);
1066
1079
  };
1067
1080
  }
1068
- const At = {
1081
+ const jt = {
1069
1082
  registry: null
1070
- }, Ft = Vt(At), ee = ({
1083
+ }, _t = Nt(jt), te = ({
1071
1084
  instance: t,
1072
1085
  params: e,
1073
1086
  store: o
1074
1087
  }) => {
1075
1088
  const i = S((c) => {
1076
- o.update((n) => K(n) === c ? n : T({}, n, {
1089
+ o.update((n) => B(n) === c ? n : T({}, n, {
1077
1090
  focus: T({}, n.focus, {
1078
1091
  focusedItemId: c
1079
1092
  })
1080
1093
  }));
1081
1094
  }), l = (c) => {
1082
- const n = O(o.value, c);
1083
- return n && (n.parentId == null || F(o.value, n.parentId));
1084
- }, p = (c, n) => {
1095
+ const n = V(o.value, c);
1096
+ return n && (n.parentId == null || N(o.value, n.parentId));
1097
+ }, h = (c, n) => {
1085
1098
  const s = t.getItemDOMElement(n);
1086
1099
  s && s.focus(), i(n), e.onItemFocus && e.onItemFocus(c, n);
1087
- }, d = S((c, n) => {
1088
- l(n) && p(c, n);
1089
- }), r = S(() => {
1090
- const c = K(o.value);
1100
+ }, a = S((c, n) => {
1101
+ l(n) && h(c, n);
1102
+ }), d = S(() => {
1103
+ const c = B(o.value);
1091
1104
  if (c == null)
1092
1105
  return;
1093
- if (O(o.value, c)) {
1106
+ if (V(o.value, c)) {
1094
1107
  const s = t.getItemDOMElement(c);
1095
1108
  s && s.blur();
1096
1109
  }
1097
1110
  i(null);
1098
1111
  });
1099
- Ft(t, "removeItem", ({
1112
+ _t(t, "removeItem", ({
1100
1113
  id: c
1101
1114
  }) => {
1102
- const n = K(o.value), s = le(o.value);
1103
- n === c && s != null && p(null, s);
1115
+ const n = B(o.value), s = re(o.value);
1116
+ n === c && s != null && h(null, s);
1104
1117
  });
1105
- const u = (c) => (n) => {
1118
+ const r = (c) => (n) => {
1106
1119
  var I;
1107
1120
  if ((I = c.onFocus) == null || I.call(c, n), n.defaultMuiPrevented)
1108
1121
  return;
1109
- const s = le(o.value);
1110
- n.target === n.currentTarget && s != null && p(n, s);
1111
- }, h = (c) => (n) => {
1122
+ const s = re(o.value);
1123
+ n.target === n.currentTarget && s != null && h(n, s);
1124
+ }, m = (c) => (n) => {
1112
1125
  var s;
1113
1126
  (s = c.onBlur) == null || s.call(c, n), !n.defaultMuiPrevented && i(null);
1114
1127
  };
1115
1128
  return {
1116
1129
  getRootProps: (c) => ({
1117
- onFocus: u(c),
1118
- onBlur: h(c)
1130
+ onFocus: r(c),
1131
+ onBlur: m(c)
1119
1132
  }),
1120
1133
  publicAPI: {
1121
- focusItem: d
1134
+ focusItem: a
1122
1135
  },
1123
1136
  instance: {
1124
- focusItem: d,
1125
- removeFocusedItem: r
1137
+ focusItem: a,
1138
+ removeFocusedItem: d
1126
1139
  }
1127
1140
  };
1128
1141
  };
1129
- ee.getInitialState = () => ({
1142
+ te.getInitialState = () => ({
1130
1143
  focus: {
1131
1144
  focusedItemId: null
1132
1145
  }
1133
1146
  });
1134
- ee.params = {
1147
+ te.params = {
1135
1148
  onItemFocus: !0
1136
1149
  };
1137
- function Nt(t) {
1150
+ function $t(t) {
1138
1151
  return !!t && t.length === 1 && !!t.match(/\S/);
1139
1152
  }
1140
- const we = ({
1153
+ const ke = ({
1141
1154
  instance: t,
1142
1155
  store: e,
1143
1156
  params: o
1144
1157
  }) => {
1145
- const i = st(), l = x.useRef({}), p = S((n) => {
1158
+ const i = rt(), l = x.useRef({}), h = S((n) => {
1146
1159
  l.current = n(l.current);
1147
- }), d = L(e, $e);
1160
+ }), a = M(e, Ke);
1148
1161
  x.useEffect(() => {
1149
1162
  if (t.areItemUpdatesPrevented())
1150
1163
  return;
1151
1164
  const n = {}, s = (I) => {
1152
1165
  n[I.id] = I.label.substring(0, 1).toLowerCase();
1153
1166
  };
1154
- Object.values(d).forEach(s), l.current = n;
1155
- }, [d, o.getItemId, t]);
1156
- const r = (n, s) => {
1157
- const I = s.toLowerCase(), E = (f) => {
1158
- const w = B(e.value, f);
1159
- return w === null ? G(e.value) : w;
1167
+ Object.values(a).forEach(s), l.current = n;
1168
+ }, [a, o.getItemId, t]);
1169
+ const d = (n, s) => {
1170
+ const I = s.toLowerCase(), b = (f) => {
1171
+ const w = z(e.value, f);
1172
+ return w === null ? W(e.value) : w;
1160
1173
  };
1161
- let b = null, m = E(n);
1162
- const a = {};
1163
- for (; b == null && !a[m]; )
1164
- l.current[m] === I ? b = m : (a[m] = !0, m = E(m));
1165
- return b;
1166
- }, u = (n) => W(e.value) && !re(e.value, n), h = (n) => !re(e.value, n) && de(e.value, n);
1174
+ let E = null, p = b(n);
1175
+ const u = {};
1176
+ for (; E == null && !u[p]; )
1177
+ l.current[p] === I ? E = p : (u[p] = !0, p = b(p));
1178
+ return E;
1179
+ }, r = (n) => X(e.value) && !ce(e.value, n), m = (n) => !ce(e.value, n) && fe(e.value, n);
1167
1180
  return {
1168
1181
  instance: {
1169
- updateFirstCharMap: p,
1182
+ updateFirstCharMap: h,
1170
1183
  handleItemKeyDown: async (n, s) => {
1171
- if (n.defaultMuiPrevented || n.altKey || Ue(n.target, n.currentTarget))
1184
+ if (n.defaultMuiPrevented || n.altKey || Be(n.target, n.currentTarget))
1172
1185
  return;
1173
- const I = n.ctrlKey || n.metaKey, E = n.key, b = D(e.value);
1186
+ const I = n.ctrlKey || n.metaKey, b = n.key, E = O(e.value);
1174
1187
  switch (!0) {
1175
1188
  // Select the item when pressing "Space"
1176
- case (E === " " && u(s)): {
1177
- n.preventDefault(), b && n.shiftKey ? t.expandSelectionRange(n, s) : t.setItemSelection({
1189
+ case (b === " " && r(s)): {
1190
+ n.preventDefault(), E && n.shiftKey ? t.expandSelectionRange(n, s) : t.setItemSelection({
1178
1191
  event: n,
1179
1192
  itemId: s,
1180
- keepExistingSelection: b,
1193
+ keepExistingSelection: E,
1181
1194
  shouldBeSelected: void 0
1182
1195
  });
1183
1196
  break;
1184
1197
  }
1185
1198
  // If the focused item has children, we expand it.
1186
1199
  // If the focused item has no children, we select it.
1187
- case E === "Enter": {
1188
- Ke(t, pe) && Be(e.value, s) && !ze(e.value, s) ? t.setEditedItem(s) : h(s) ? (t.setItemExpansion({
1200
+ case b === "Enter": {
1201
+ Ge(t, Ie) && We(e.value, s) && !Xe(e.value, s) ? t.setEditedItem(s) : m(s) ? (t.setItemExpansion({
1189
1202
  event: n,
1190
1203
  itemId: s
1191
- }), n.preventDefault()) : u(s) && (b ? (n.preventDefault(), t.setItemSelection({
1204
+ }), n.preventDefault()) : r(s) && (E ? (n.preventDefault(), t.setItemSelection({
1192
1205
  event: n,
1193
1206
  itemId: s,
1194
1207
  keepExistingSelection: !0
1195
- })) : V(e.value, s) || (t.setItemSelection({
1208
+ })) : A(e.value, s) || (t.setItemSelection({
1196
1209
  event: n,
1197
1210
  itemId: s
1198
1211
  }), n.preventDefault()));
1199
1212
  break;
1200
1213
  }
1201
1214
  // Focus the next focusable item
1202
- case E === "ArrowDown": {
1203
- const m = B(e.value, s);
1204
- m && (n.preventDefault(), t.focusItem(n, m), b && n.shiftKey && u(m) && t.selectItemFromArrowNavigation(n, s, m));
1215
+ case b === "ArrowDown": {
1216
+ const p = z(e.value, s);
1217
+ p && (n.preventDefault(), t.focusItem(n, p), E && n.shiftKey && r(p) && t.selectItemFromArrowNavigation(n, s, p));
1205
1218
  break;
1206
1219
  }
1207
1220
  // Focuses the previous focusable item
1208
- case E === "ArrowUp": {
1209
- const m = qe(e.value, s);
1210
- m && (n.preventDefault(), t.focusItem(n, m), b && n.shiftKey && u(m) && t.selectItemFromArrowNavigation(n, s, m));
1221
+ case b === "ArrowUp": {
1222
+ const p = ze(e.value, s);
1223
+ p && (n.preventDefault(), t.focusItem(n, p), E && n.shiftKey && r(p) && t.selectItemFromArrowNavigation(n, s, p));
1211
1224
  break;
1212
1225
  }
1213
1226
  // If the focused item is expanded, we move the focus to its first child
1214
1227
  // If the focused item is collapsed and has children, we expand it
1215
- case (E === "ArrowRight" && !i || E === "ArrowLeft" && i): {
1228
+ case (b === "ArrowRight" && !i || b === "ArrowLeft" && i): {
1216
1229
  if (I)
1217
1230
  return;
1218
- if (F(e.value, s)) {
1219
- const m = B(e.value, s);
1220
- m && (t.focusItem(n, m), n.preventDefault());
1221
- } else h(s) && (t.setItemExpansion({
1231
+ if (N(e.value, s)) {
1232
+ const p = z(e.value, s);
1233
+ p && (t.focusItem(n, p), n.preventDefault());
1234
+ } else m(s) && (t.setItemExpansion({
1222
1235
  event: n,
1223
1236
  itemId: s
1224
1237
  }), n.preventDefault());
@@ -1226,46 +1239,46 @@ const we = ({
1226
1239
  }
1227
1240
  // If the focused item is expanded, we collapse it
1228
1241
  // If the focused item is collapsed and has a parent, we move the focus to this parent
1229
- case (E === "ArrowLeft" && !i || E === "ArrowRight" && i): {
1242
+ case (b === "ArrowLeft" && !i || b === "ArrowRight" && i): {
1230
1243
  if (I)
1231
1244
  return;
1232
- if (h(s) && F(e.value, s))
1245
+ if (m(s) && N(e.value, s))
1233
1246
  t.setItemExpansion({
1234
1247
  event: n,
1235
1248
  itemId: s
1236
1249
  }), n.preventDefault();
1237
1250
  else {
1238
- const m = j(e.value, s);
1239
- m && (t.focusItem(n, m), n.preventDefault());
1251
+ const p = _(e.value, s);
1252
+ p && (t.focusItem(n, p), n.preventDefault());
1240
1253
  }
1241
1254
  break;
1242
1255
  }
1243
1256
  // Focuses the first item in the tree
1244
- case E === "Home": {
1245
- u(s) && b && I && n.shiftKey ? t.selectRangeFromStartToItem(n, s) : t.focusItem(n, G(e.value)), n.preventDefault();
1257
+ case b === "Home": {
1258
+ r(s) && E && I && n.shiftKey ? t.selectRangeFromStartToItem(n, s) : t.focusItem(n, W(e.value)), n.preventDefault();
1246
1259
  break;
1247
1260
  }
1248
1261
  // Focuses the last item in the tree
1249
- case E === "End": {
1250
- u(s) && b && I && n.shiftKey ? t.selectRangeFromItemToEnd(n, s) : t.focusItem(n, me(e.value)), n.preventDefault();
1262
+ case b === "End": {
1263
+ r(s) && E && I && n.shiftKey ? t.selectRangeFromItemToEnd(n, s) : t.focusItem(n, pe(e.value)), n.preventDefault();
1251
1264
  break;
1252
1265
  }
1253
1266
  // Expand all siblings that are at the same level as the focused item
1254
- case E === "*": {
1267
+ case b === "*": {
1255
1268
  t.expandAllSiblings(n, s), n.preventDefault();
1256
1269
  break;
1257
1270
  }
1258
1271
  // Multi select behavior when pressing Ctrl + a
1259
1272
  // Selects all the items
1260
- case (String.fromCharCode(n.keyCode) === "A" && I && b && W(e.value)): {
1273
+ case (String.fromCharCode(n.keyCode) === "A" && I && E && X(e.value)): {
1261
1274
  t.selectAllNavigableItems(n), n.preventDefault();
1262
1275
  break;
1263
1276
  }
1264
1277
  // Type-ahead
1265
1278
  // TODO: Support typing multiple characters
1266
- case (!I && !n.shiftKey && Nt(E)): {
1267
- const m = r(s, E);
1268
- m != null && (t.focusItem(n, m), n.preventDefault());
1279
+ case (!I && !n.shiftKey && $t(b)): {
1280
+ const p = d(s, b);
1281
+ p != null && (t.focusItem(n, p), n.preventDefault());
1269
1282
  break;
1270
1283
  }
1271
1284
  }
@@ -1273,55 +1286,55 @@ const we = ({
1273
1286
  }
1274
1287
  };
1275
1288
  };
1276
- we.params = {};
1277
- const jt = [A, U, N, ee, we, pe], _t = ["ownerState"], te = /* @__PURE__ */ x.createContext(null);
1278
- process.env.NODE_ENV !== "production" && (te.displayName = "RichTreeViewItemsContext");
1279
- const ke = /* @__PURE__ */ x.memo(function({
1289
+ ke.params = {};
1290
+ const Ut = [F, q, j, te, ke, Ie], qt = ["ownerState"], ne = /* @__PURE__ */ x.createContext(null);
1291
+ process.env.NODE_ENV !== "production" && (ne.displayName = "RichTreeViewItemsContext");
1292
+ const Ce = /* @__PURE__ */ x.memo(function({
1280
1293
  itemSlot: e,
1281
1294
  itemSlotProps: o,
1282
1295
  itemId: i
1283
1296
  }) {
1284
- const l = x.useContext(te), {
1285
- store: p
1286
- } = Y(), d = L(p, O, i), r = L(p, R, i), u = e ?? Ge, h = Ie({
1287
- elementType: u,
1297
+ const l = x.useContext(ne), {
1298
+ store: h
1299
+ } = Z(), a = M(h, V, i), d = M(h, R, i), r = e ?? Je, m = he({
1300
+ elementType: r,
1288
1301
  externalSlotProps: o,
1289
1302
  additionalProps: {
1290
- label: d == null ? void 0 : d.label,
1291
- id: d == null ? void 0 : d.idAttribute,
1303
+ label: a == null ? void 0 : a.label,
1304
+ id: a == null ? void 0 : a.idAttribute,
1292
1305
  itemId: i
1293
1306
  },
1294
1307
  ownerState: {
1295
1308
  itemId: i,
1296
- label: d == null ? void 0 : d.label
1309
+ label: a == null ? void 0 : a.label
1297
1310
  }
1298
- }), c = Z(h, _t);
1299
- return /* @__PURE__ */ P(u, T({}, c, {
1300
- children: r == null ? void 0 : r.map(l)
1311
+ }), c = H(m, qt);
1312
+ return /* @__PURE__ */ P(r, T({}, c, {
1313
+ children: d == null ? void 0 : d.map(l)
1301
1314
  }));
1302
- }, xe);
1303
- process.env.NODE_ENV !== "production" && (ke.displayName = "WrappedTreeItem");
1304
- function $t(t) {
1315
+ }, we);
1316
+ process.env.NODE_ENV !== "production" && (Ce.displayName = "WrappedTreeItem");
1317
+ function Kt(t) {
1305
1318
  const {
1306
1319
  slots: e,
1307
1320
  slotProps: o
1308
1321
  } = t, {
1309
1322
  store: i
1310
- } = Y(), l = e == null ? void 0 : e.item, p = o == null ? void 0 : o.item, d = L(i, R, null), r = x.useCallback((u) => /* @__PURE__ */ P(ke, {
1323
+ } = Z(), l = e == null ? void 0 : e.item, h = o == null ? void 0 : o.item, a = M(i, R, null), d = x.useCallback((r) => /* @__PURE__ */ P(Ce, {
1311
1324
  itemSlot: l,
1312
- itemSlotProps: p,
1313
- itemId: u
1314
- }, u), [l, p]);
1315
- return /* @__PURE__ */ P(te.Provider, {
1316
- value: r,
1317
- children: d.map(r)
1325
+ itemSlotProps: h,
1326
+ itemId: r
1327
+ }, r), [l, h]);
1328
+ return /* @__PURE__ */ P(ne.Provider, {
1329
+ value: d,
1330
+ children: a.map(d)
1318
1331
  });
1319
1332
  }
1320
- const Ut = ["slots", "slotProps"], qt = We(), Kt = (t) => {
1333
+ const Bt = ["slots", "slotProps"], zt = Qe(), Gt = (t) => {
1321
1334
  const {
1322
1335
  classes: e
1323
1336
  } = t;
1324
- return x.useMemo(() => rt({
1337
+ return x.useMemo(() => at({
1325
1338
  root: ["root"],
1326
1339
  item: ["item"],
1327
1340
  itemContent: ["itemContent"],
@@ -1332,8 +1345,8 @@ const Ut = ["slots", "slotProps"], qt = We(), Kt = (t) => {
1332
1345
  itemCheckbox: ["itemCheckbox"]
1333
1346
  // itemDragAndDropOverlay: ['itemDragAndDropOverlay'], => feature not available on this component
1334
1347
  // itemErrorIcon: ['itemErrorIcon'], => feature not available on this component
1335
- }, at, e), [e]);
1336
- }, Bt = lt("ul", {
1348
+ }, mt, e), [e]);
1349
+ }, Wt = ut("ul", {
1337
1350
  name: "MuiRichTreeView",
1338
1351
  slot: "Root"
1339
1352
  })({
@@ -1342,49 +1355,49 @@ const Ut = ["slots", "slotProps"], qt = We(), Kt = (t) => {
1342
1355
  listStyle: "none",
1343
1356
  outline: 0,
1344
1357
  position: "relative"
1345
- }), ne = /* @__PURE__ */ x.forwardRef(function(e, o) {
1346
- const i = qt({
1358
+ }), oe = /* @__PURE__ */ x.forwardRef(function(e, o) {
1359
+ const i = zt({
1347
1360
  props: e,
1348
1361
  name: "MuiRichTreeView"
1349
1362
  }), {
1350
1363
  slots: l,
1351
- slotProps: p
1352
- } = i, d = Z(i, Ut);
1353
- process.env.NODE_ENV !== "production" && i.children != null && J(["MUI X: The Rich Tree View component does not support JSX children.", "If you want to add items, you need to use the `items` prop.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);
1364
+ slotProps: h
1365
+ } = i, a = H(i, Bt);
1366
+ process.env.NODE_ENV !== "production" && i.children != null && Q(["MUI X: The Rich Tree View component does not support JSX children.", "If you want to add items, you need to use the `items` prop.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);
1354
1367
  const {
1355
- getRootProps: r,
1356
- contextValue: u
1357
- } = Tt({
1358
- plugins: jt,
1368
+ getRootProps: d,
1369
+ contextValue: r
1370
+ } = kt({
1371
+ plugins: Ut,
1359
1372
  rootRef: o,
1360
- props: d
1361
- }), h = L(u.store, Xe), c = L(u.store, Je), n = Kt(i), s = (l == null ? void 0 : l.root) ?? Bt, I = Ie({
1373
+ props: a
1374
+ }), m = M(r.store, Ye), c = M(r.store, Ze), n = Gt(i), s = (l == null ? void 0 : l.root) ?? Wt, I = he({
1362
1375
  elementType: s,
1363
- externalSlotProps: p == null ? void 0 : p.root,
1376
+ externalSlotProps: h == null ? void 0 : h.root,
1364
1377
  className: n.root,
1365
- getSlotProps: r,
1378
+ getSlotProps: d,
1366
1379
  ownerState: i
1367
1380
  });
1368
- return h ? /* @__PURE__ */ P(ct, {
1381
+ return m ? /* @__PURE__ */ P(dt, {
1369
1382
  children: "Loading..."
1370
- }) : c ? /* @__PURE__ */ P(ut, {
1383
+ }) : c ? /* @__PURE__ */ P(ft, {
1371
1384
  severity: "error",
1372
1385
  children: c.message
1373
- }) : /* @__PURE__ */ P(xt, {
1374
- contextValue: u,
1386
+ }) : /* @__PURE__ */ P(Ct, {
1387
+ contextValue: r,
1375
1388
  classes: n,
1376
1389
  slots: l,
1377
- slotProps: p,
1390
+ slotProps: h,
1378
1391
  children: /* @__PURE__ */ P(s, T({}, I, {
1379
- children: /* @__PURE__ */ P($t, {
1392
+ children: /* @__PURE__ */ P(Kt, {
1380
1393
  slots: l,
1381
- slotProps: p
1394
+ slotProps: h
1382
1395
  })
1383
1396
  }))
1384
1397
  });
1385
1398
  });
1386
- process.env.NODE_ENV !== "production" && (ne.displayName = "RichTreeView");
1387
- process.env.NODE_ENV !== "production" && (ne.propTypes = {
1399
+ process.env.NODE_ENV !== "production" && (oe.displayName = "RichTreeView");
1400
+ process.env.NODE_ENV !== "production" && (oe.propTypes = {
1388
1401
  // ----------------------------- Warning --------------------------------
1389
1402
  // | These PropTypes are generated from the TypeScript type definitions |
1390
1403
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -1593,46 +1606,46 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
1593
1606
  */
1594
1607
  sx: g.oneOfType([g.arrayOf(g.oneOfType([g.func, g.object, g.bool])), g.func, g.object])
1595
1608
  });
1596
- const un = ({
1609
+ const mn = ({
1597
1610
  items: t,
1598
1611
  selectedItemId: e,
1599
1612
  handleSelectedItemChange: o,
1600
1613
  iconColor: i = "primary",
1601
1614
  hasNoIcons: l = !1,
1602
- maxHeight: p = 300,
1603
- defaultExpandedItems: d = []
1615
+ maxHeight: h = 300,
1616
+ defaultExpandedItems: a = []
1604
1617
  }) => {
1605
- const [r, u] = Ce(d), h = Pe(() => He(t), [t]);
1606
- return ye(() => {
1618
+ const [d, r] = Re(a), m = Se(() => nt(t), [t]);
1619
+ return Le(() => {
1607
1620
  if (e) {
1608
- const n = et(t, e);
1621
+ const n = ot(t, e);
1609
1622
  if (n) {
1610
1623
  const s = n.slice(0, -1);
1611
- u((I) => {
1612
- const E = s.filter(
1613
- (b) => !I.includes(b)
1624
+ r((I) => {
1625
+ const b = s.filter(
1626
+ (E) => !I.includes(E)
1614
1627
  );
1615
- return E.length > 0 ? [...I, ...E] : I;
1628
+ return b.length > 0 ? [...I, ...b] : I;
1616
1629
  });
1617
1630
  }
1618
1631
  }
1619
- }, [e, t]), /* @__PURE__ */ P(Ye, { maxHeight: p, "data-treeview-root": "true", children: /* @__PURE__ */ P(
1620
- ne,
1632
+ }, [e, t]), /* @__PURE__ */ P(et, { maxHeight: h, "data-treeview-root": "true", children: /* @__PURE__ */ P(
1633
+ oe,
1621
1634
  {
1622
1635
  items: t,
1623
1636
  selectedItems: e,
1624
- expandedItems: r,
1637
+ expandedItems: d,
1625
1638
  onExpandedItemsChange: (n, s) => {
1626
- u(s);
1639
+ r(s);
1627
1640
  },
1628
- itemChildrenIndentation: Ze,
1641
+ itemChildrenIndentation: tt,
1629
1642
  onSelectedItemsChange: o,
1630
- getItemId: tt,
1643
+ getItemId: st,
1631
1644
  slots: {
1632
1645
  item: (n) => {
1633
- const s = n.itemId ? h[n.itemId] : void 0;
1646
+ const s = n.itemId ? m[n.itemId] : void 0;
1634
1647
  return /* @__PURE__ */ P(
1635
- Qe,
1648
+ He,
1636
1649
  {
1637
1650
  ...n,
1638
1651
  itemData: s,
@@ -1646,5 +1659,5 @@ const un = ({
1646
1659
  ) });
1647
1660
  };
1648
1661
  export {
1649
- un as default
1662
+ mn as default
1650
1663
  };