@cgi-learning-hub/ui 1.5.0 → 1.5.1

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 (246) hide show
  1. package/dist/{Alert-D7eKsj1P.js → Alert-BfMYnyZX.js} +11 -11
  2. package/dist/{Alert-CvizDCvx.cjs → Alert-Dg5u5Z7d.cjs} +1 -1
  3. package/dist/{Autocomplete-DjU6i3zL.cjs → Autocomplete-3xshJ4m_.cjs} +1 -1
  4. package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DQyr97ya.js} +12 -12
  5. package/dist/{Backdrop-COiz4sPF.js → Backdrop-B200pms1.js} +6 -6
  6. package/dist/{Backdrop-BM-OE2Q_.cjs → Backdrop-BrTs3LxC.cjs} +1 -1
  7. package/dist/{Box-BmfpLwYG.cjs → Box-CFuWIdLg.cjs} +1 -1
  8. package/dist/{Box-C-j-U8SH.js → Box-D3Pi13ta.js} +3 -3
  9. package/dist/{Button-BGWvL_UD.cjs → Button-C7tsSPXV.cjs} +1 -1
  10. package/dist/{Button-CQQdMCSm.js → Button-D1aKdjIh.js} +6 -6
  11. package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-Bncgzjtp.js} +4 -4
  12. package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-CBFRgTBs.cjs} +1 -1
  13. package/dist/{CardContent-GHLuvxgm.cjs → CardContent-BRUkl8hU.cjs} +1 -1
  14. package/dist/{CardContent-sX9Bw4Ke.js → CardContent-DyggcxBG.js} +3 -3
  15. package/dist/{Checkbox-BZYoJieY.cjs → Checkbox-C_wSNEHD.cjs} +1 -1
  16. package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DkrWUPYT.js} +7 -7
  17. package/dist/{Chip-Cu_SZxrx.cjs → Chip-DUeBMcO4.cjs} +1 -1
  18. package/dist/{Chip-BsErraqe.js → Chip-Y39z3DS6.js} +6 -6
  19. package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-BDjnnyuL.js} +4 -4
  20. package/dist/{CircularProgress-CdS7-HOv.cjs → CircularProgress-DdHpo4Bf.cjs} +1 -1
  21. package/dist/{Close-ZXg7X3Tz.cjs → Close-DJDhRwj2.cjs} +1 -1
  22. package/dist/{Close-r-ZUhk0-.js → Close-hx7dlgmZ.js} +1 -1
  23. package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-DapqosK3.cjs} +1 -1
  24. package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-aZqv6aS-.js} +1 -1
  25. package/dist/CustomTreeItem-9kBuTFO8.cjs +4 -0
  26. package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-CgdZ-hEx.js} +261 -256
  27. package/dist/{DatePicker-tyDzcyzu.cjs → DatePicker-BYPJypQT.cjs} +1 -1
  28. package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C2ZobNcJ.js} +31 -31
  29. package/dist/{DefaultPropsProvider-BTnRBr0O.cjs → DefaultPropsProvider-B6DqRWnX.cjs} +1 -1
  30. package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Ik4eAJdt.js} +1 -1
  31. package/dist/{Delete-DKn2lIDB.js → Delete-Cfk3fOW-.js} +1 -1
  32. package/dist/{Delete-CpTtpM4U.cjs → Delete-DDxv1h6V.cjs} +1 -1
  33. package/dist/{Dialog-pU1ZAttp.js → Dialog-Ccvug1yq.js} +9 -9
  34. package/dist/{Dialog-DIHzs0ro.cjs → Dialog-DOXpPT7S.cjs} +1 -1
  35. package/dist/{DialogContent-B-9ga3Wv.cjs → DialogContent-BoIE95Tg.cjs} +1 -1
  36. package/dist/{DialogContent-BEgapieO.js → DialogContent-CIMpKm-U.js} +3 -3
  37. package/dist/{DialogTitle-B_UN_oL2.cjs → DialogTitle-B_am69Lr.cjs} +1 -1
  38. package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BwTvIaQe.js} +5 -5
  39. package/dist/{Divider-CT4XaEn6.js → Divider-C2cBikSL.js} +4 -4
  40. package/dist/{Divider-iYLSpFUc.cjs → Divider-Nyl7rx-c.cjs} +1 -1
  41. package/dist/{Folder-DoEl37QZ.js → Folder-Bnoqtzc6.js} +1 -1
  42. package/dist/{Folder-DWD_1Fux.cjs → Folder-DEtB13yM.cjs} +1 -1
  43. package/dist/{FormLabel-Cp2OFw8d.cjs → FormLabel-D4O160ND.cjs} +1 -1
  44. package/dist/{FormLabel-BF6m-_uI.js → FormLabel-EkpI8MQr.js} +4 -4
  45. package/dist/{Grow-Bk7XkPFP.js → Grow-B_clfUP9.js} +4 -4
  46. package/dist/{Grow-DXY5DOqR.cjs → Grow-DKA2Mfhu.cjs} +1 -1
  47. package/dist/{IconButton-BLZJne06.cjs → IconButton-CGfKAsNI.cjs} +1 -1
  48. package/dist/{IconButton-BQW0xjdH.js → IconButton-D1mhTuaI.js} +6 -6
  49. package/dist/{InputAdornment-C0WI_oQg.cjs → InputAdornment-BOcB8UIi.cjs} +1 -1
  50. package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-BxB8_tq-.js} +5 -5
  51. package/dist/{InputBase-B3KOyouT.cjs → InputBase-BIf-xtMJ.cjs} +1 -1
  52. package/dist/{InputBase-YOnatBxw.js → InputBase-BQnEIwl1.js} +7 -7
  53. package/dist/{Link-C3rf4gqc.js → Link-8ltXgZj7.js} +7 -7
  54. package/dist/{Link-lvpmE2yz.cjs → Link-CS0qbKjo.cjs} +1 -1
  55. package/dist/{List-CFInjv2S.js → List-DJsqHOqv.js} +2 -2
  56. package/dist/{List-PQXGlDbt.cjs → List-T5dKKWkc.cjs} +1 -1
  57. package/dist/{ListItem-CWEvdMjN.cjs → ListItem-BN7OXyEP.cjs} +1 -1
  58. package/dist/{ListItem-BAAZxsu5.js → ListItem-BspNcHM_.js} +5 -5
  59. package/dist/{ListItemText-BhxrnTkb.cjs → ListItemText-6gXRtF3r.cjs} +1 -1
  60. package/dist/{ListItemText-CADHegDF.js → ListItemText-afV0BrJL.js} +11 -11
  61. package/dist/{Menu-DBacrp-P.cjs → Menu-D6dHPVP_.cjs} +1 -1
  62. package/dist/{Menu-BgO92SV3.js → Menu-DPhreDcS.js} +12 -12
  63. package/dist/{MenuItem-DkcVAo3U.cjs → MenuItem-DOVsV_vI.cjs} +1 -1
  64. package/dist/{MenuItem-B8eWAj8E.js → MenuItem-Fb7iU47J.js} +7 -7
  65. package/dist/{Modal-kUvS-N46.cjs → Modal-B8xPmNJd.cjs} +1 -1
  66. package/dist/{Modal-CFv4UMTP.js → Modal-dmMiGSAp.js} +8 -8
  67. package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BCGFGn8f.js} +1 -1
  68. package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-DNeLf2VB.cjs} +1 -1
  69. package/dist/{Paper-DeL_n4k9.js → Paper-CEDxpHWv.js} +4 -4
  70. package/dist/{Paper-ByOgFIEE.cjs → Paper-owda8LtM.cjs} +1 -1
  71. package/dist/{Popper-BKxRTMsO.js → Popper-D5_YIJX6.js} +6 -6
  72. package/dist/{Popper-CsQqc5DE.cjs → Popper-DMGJYlm7.cjs} +1 -1
  73. package/dist/{Portal-7MKUQzjh.js → Portal-BKVc0iys.js} +2 -2
  74. package/dist/{Portal-DhGy1jKe.cjs → Portal-CgaP8O8B.cjs} +1 -1
  75. package/dist/{Radio-BVfoGshx.js → Radio-B4sx0387.js} +9 -9
  76. package/dist/{Radio-DG-k6cXx.cjs → Radio-OUfsD89D.cjs} +1 -1
  77. package/dist/{RadioGroup-Dd0mX-H2.cjs → RadioGroup-Cr_IFflA.cjs} +1 -1
  78. package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-UStIK_UX.js} +3 -3
  79. package/dist/{Select-b6liJFDI.cjs → Select-CUlunaOr.cjs} +1 -1
  80. package/dist/{Select-Vnsr3NSv.js → Select-CxnCi-3l.js} +10 -10
  81. package/dist/{Stack-PQFKjbdN.js → Stack-CzKIgmIE.js} +4 -4
  82. package/dist/{Stack-gtxG2YLo.cjs → Stack-D5_1ZBcn.cjs} +1 -1
  83. package/dist/{Switch-Bn8zlIOf.js → Switch-D3KweZGQ.js} +6 -6
  84. package/dist/{Switch-BlwDxL6O.cjs → Switch-DpdnFebj.cjs} +1 -1
  85. package/dist/{SwitchBase-QwOXoy8f.js → SwitchBase-BsP35Aas.js} +5 -5
  86. package/dist/{SwitchBase-DtKlxrES.cjs → SwitchBase-DMGf52a3.cjs} +1 -1
  87. package/dist/{Tab-A0R3g6rB.js → Tab-C1r8JXwz.js} +11 -11
  88. package/dist/{Tab-Dx7V4E6B.cjs → Tab-DZvAf79O.cjs} +1 -1
  89. package/dist/{TextField-CB2n4aV8.cjs → TextField-C0KpyS6X.cjs} +1 -1
  90. package/dist/{TextField-Di6Nfe3O.js → TextField-D-_WjPAW.js} +8 -8
  91. package/dist/{ToggleButtonGroup-D3bdznCl.cjs → ToggleButtonGroup-UNGSwlQe.cjs} +36 -36
  92. package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-gxIqbo6a.js} +806 -800
  93. package/dist/{Tooltip-D0jvnXYu.cjs → Tooltip-BljbhP1z.cjs} +1 -1
  94. package/dist/{Tooltip-KTkLBRQj.js → Tooltip-D0bof-68.js} +10 -10
  95. package/dist/{Typography-DZ11k9cZ.js → Typography-DBJqhIhB.js} +5 -5
  96. package/dist/{Typography-3CpuuLtj.cjs → Typography-yvyJLNFu.cjs} +1 -1
  97. package/dist/{capitalize-B3tmp8MO.cjs → capitalize-CToVceBw.cjs} +1 -1
  98. package/dist/{capitalize-Bs7Xs33U.js → capitalize-DSG2FA7x.js} +1 -1
  99. package/dist/components/Alert/Alert.cjs.js +1 -1
  100. package/dist/components/Alert/Alert.es.js +3 -3
  101. package/dist/components/Alert/index.cjs.js +1 -1
  102. package/dist/components/Alert/index.es.js +1 -1
  103. package/dist/components/Button/Button.cjs.js +1 -1
  104. package/dist/components/Button/Button.es.js +2 -2
  105. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  106. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  107. package/dist/components/DatePicker/index.cjs.js +1 -1
  108. package/dist/components/DatePicker/index.es.js +1 -1
  109. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  110. package/dist/components/Dialog/Dialog.es.js +15 -15
  111. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  112. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  113. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  114. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  115. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  116. package/dist/components/FileList/FileIcon.es.js +1 -1
  117. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  118. package/dist/components/FileList/FileListItem.es.js +4 -4
  119. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  120. package/dist/components/FolderCard/FolderCard.d.ts +1 -0
  121. package/dist/components/FolderCard/FolderCard.es.js +26 -17
  122. package/dist/components/FolderCard/styles.cjs.js +1 -1
  123. package/dist/components/FolderCard/styles.d.ts +4 -0
  124. package/dist/components/FolderCard/styles.es.js +9 -5
  125. package/dist/components/Heading/Heading.cjs.js +1 -1
  126. package/dist/components/Heading/Heading.es.js +2 -2
  127. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  128. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  129. package/dist/components/Loader/Loader.cjs.js +1 -1
  130. package/dist/components/Loader/Loader.es.js +1 -1
  131. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  132. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  133. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  134. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  135. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  136. package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
  137. package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
  138. package/dist/components/ResourceCard/style.cjs.js +1 -1
  139. package/dist/components/ResourceCard/style.es.js +40 -35
  140. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  141. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  142. package/dist/components/TreeView/TreeView.cjs.js +7 -7
  143. package/dist/components/TreeView/TreeView.es.js +318 -315
  144. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  145. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  146. package/dist/components/TreeView/style.cjs.js +1 -1
  147. package/dist/components/TreeView/style.es.js +24 -18
  148. package/dist/components/TreeView/types.d.ts +5 -2
  149. package/dist/components/TreeView/utils.cjs.js +1 -1
  150. package/dist/components/TreeView/utils.es.js +3 -3
  151. package/dist/components/index.cjs.js +1 -1
  152. package/dist/components/index.es.js +41 -41
  153. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  154. package/dist/components/stories/Alert.stories.es.js +1 -1
  155. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  156. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  157. package/dist/components/stories/Button.stories.cjs.js +1 -1
  158. package/dist/components/stories/Button.stories.es.js +1 -1
  159. package/dist/components/stories/Card.stories.cjs.js +1 -1
  160. package/dist/components/stories/Card.stories.es.js +2 -2
  161. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  162. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  163. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  164. package/dist/components/stories/Chip.stories.es.js +1 -1
  165. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  166. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  167. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  168. package/dist/components/stories/Dialog.stories.es.js +2 -2
  169. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  170. package/dist/components/stories/Divider.stories.es.js +1 -1
  171. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  172. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  173. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  174. package/dist/components/stories/Heading.stories.es.js +2 -2
  175. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  176. package/dist/components/stories/IconButton.stories.es.js +2 -2
  177. package/dist/components/stories/Link.stories.cjs.js +1 -1
  178. package/dist/components/stories/Link.stories.es.js +1 -1
  179. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  180. package/dist/components/stories/Menu.stories.es.js +2 -2
  181. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  182. package/dist/components/stories/Paper.stories.es.js +1 -1
  183. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  184. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  185. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  186. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  187. package/dist/components/stories/Select.stories.cjs.js +1 -1
  188. package/dist/components/stories/Select.stories.es.js +3 -3
  189. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  190. package/dist/components/stories/TabList.stories.es.js +1 -1
  191. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  192. package/dist/components/stories/TextField.stories.es.js +1 -1
  193. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  194. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  195. package/dist/components/stories/TreeView.stories.cjs.js +3 -3
  196. package/dist/components/stories/TreeView.stories.d.ts +2 -0
  197. package/dist/components/stories/TreeView.stories.es.js +517 -268
  198. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  199. package/dist/components/stories/Typography.stories.es.js +1 -1
  200. package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CsMK8tGM.js} +4 -4
  201. package/dist/{createSvgIcon-2wwaxLPT.cjs → createSvgIcon-EiiLl5-A.cjs} +1 -1
  202. package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-BfxSqqSn.js} +1 -1
  203. package/dist/{dividerClasses-izm7KFVg.cjs → dividerClasses-BtzbOVqV.cjs} +1 -1
  204. package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-CW5o2Qxo.js} +1 -1
  205. package/dist/{elementTypeAcceptingRef-GoqLuvj1.cjs → elementTypeAcceptingRef-D1T31ZXC.cjs} +1 -1
  206. package/dist/{extendSxProp-Bv3E507G.cjs → extendSxProp-BKP1AeGz.cjs} +1 -1
  207. package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-DSA-5JvJ.js} +1 -1
  208. package/dist/{generateUtilityClasses-CqzQXpT_.js → generateUtilityClasses-BpRGbQmY.js} +124 -122
  209. package/dist/{generateUtilityClasses-KugHyZhN.cjs → generateUtilityClasses-q4qbJjmd.cjs} +9 -9
  210. package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-CD3_Stk5.js} +1 -1
  211. package/dist/{getReactElementRef-D7IvykPI.cjs → getReactElementRef-yvpNgSpm.cjs} +1 -1
  212. package/dist/{index-BomeQRLD.cjs → index-Bt7ukCXi.cjs} +1 -1
  213. package/dist/{index-C7WfZsMe.js → index-CDLJvERp.js} +1 -1
  214. package/dist/{index-CFIk4hVM.js → index-CoYVLWJY.js} +4 -4
  215. package/dist/{index-DS8G_wjP.cjs → index-DCpyECL4.cjs} +1 -1
  216. package/dist/{index-sDFEVHTg.js → index-JOgYmUF8.js} +1 -1
  217. package/dist/{index-9hEUqvaJ.cjs → index-baZm35zL.cjs} +1 -1
  218. package/dist/index.cjs.js +1 -1
  219. package/dist/index.es.js +41 -41
  220. package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-Cy10XsJj.js} +1 -1
  221. package/dist/{listItemTextClasses-CQXcckDA.cjs → listItemTextClasses-DePeZNtZ.cjs} +1 -1
  222. package/dist/{memoTheme-B0xVysYu.js → memoTheme-44McxcVZ.js} +1 -1
  223. package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-BhhxAcUJ.cjs} +1 -1
  224. package/dist/{refType-D-n-tVSl.cjs → refType-DDdajp2p.cjs} +1 -1
  225. package/dist/{refType-BvSJNaoq.js → refType-DsRJ5_Sj.js} +1 -1
  226. package/dist/{resolveComponentProps-Byi_59AN.cjs → resolveComponentProps-BTEnlM7q.cjs} +1 -1
  227. package/dist/{resolveComponentProps-Ctw0-dUN.js → resolveComponentProps-BZQ1jKzF.js} +1 -1
  228. package/dist/{useSlot-CGbU9jGm.cjs → useSlot-CSTfsYPJ.cjs} +1 -1
  229. package/dist/{useSlot-CqjfyGd9.js → useSlot-CYOxsM2I.js} +1 -1
  230. package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-CDJdiQpV.js} +1 -1
  231. package/dist/{useSlotProps-DfO7r_4Y.cjs → useSlotProps-DTgWZk99.cjs} +1 -1
  232. package/dist/useTheme-BDL2rp7a.js +11 -0
  233. package/dist/{useTheme-2JCMQS-E.js → useTheme-C2OE_AnH.js} +1 -1
  234. package/dist/{useTheme-B6wow4M9.cjs → useTheme-CCi6a5Vl.cjs} +1 -1
  235. package/dist/{useTheme-MahNaB8C.cjs → useTheme-DpMakc_Y.cjs} +1 -1
  236. package/dist/useThemeProps-BnN3o4c1.cjs +1 -0
  237. package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-ClM1OENH.js} +2 -2
  238. package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-DQFApaJ_.cjs} +1 -1
  239. package/dist/useThemeProps-DjkGUV8r.js +17 -0
  240. package/dist/{utils-CUU5fjzL.cjs → utils-Cn6wZNus.cjs} +1 -1
  241. package/dist/{utils-BVg32WSe.js → utils-DFLaK7Ad.js} +1 -1
  242. package/package.json +1 -1
  243. package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
  244. package/dist/useTheme-DepbBZga.js +0 -11
  245. package/dist/useThemeProps-BqypsO1h.cjs +0 -1
  246. package/dist/useThemeProps-Drd5oJEF.js +0 -17
@@ -1,61 +1,61 @@
1
1
  import { jsx as S, jsxs as je } from "react/jsx-runtime";
2
2
  import * as E from "react";
3
3
  import { useState as yt, useMemo as Ct, useEffect as wt } from "react";
4
- import { a as Rt, T as St, b as _e, d as $e, e as Ne, f as se, h as Pt, i as vt, j as kt, k as he, l as ge, m as Mt, n as oe, u as H, o as Ke, p as Dt, q as Ot, r as Ue, w as xe, s as Vt, t as At, v as Ft, x as Lt, y as O, C as jt, z as _t } from "../../CustomTreeItem-BpAK85gf.js";
4
+ import { a as Rt, T as St, b as _e, d as $e, e as Ne, f as se, h as Pt, i as vt, j as kt, k as he, l as ge, m as Mt, n as oe, u as H, o as Ke, p as Dt, q as Ot, r as Ue, w as xe, s as Vt, t as At, v as Ft, x as Lt, y as O, C as jt, z as _t } from "../../CustomTreeItem-CgdZ-hEx.js";
5
5
  import { TreeContainer as $t, DEFAULT_CHILDREN_INDENT as Nt } from "./style.es.js";
6
6
  import { buildItemDataMap as Kt, findItemPath as Ut, getItemId as Bt } from "./utils.es.js";
7
- import { _ as C } from "../../ButtonBase-CZFKUUHD.js";
8
- import { H as zt, G as qt, I as Be, P as a, n as ne } from "../../generateUtilityClasses-CqzQXpT_.js";
7
+ import { _ as C } from "../../ButtonBase-Bncgzjtp.js";
8
+ import { H as zt, G as qt, I as Be, P as a, n as ne } from "../../generateUtilityClasses-BpRGbQmY.js";
9
9
  import { a as A } from "../../TransitionGroupContext-DbLioz_6.js";
10
10
  import { u as U } from "../../useEventCallback-BAQJJ3ye.js";
11
11
  import { o as Ht } from "../../ownerDocument-CUrv0DIK.js";
12
- import { u as Xt } from "../../index-sDFEVHTg.js";
13
- import { C as Wt } from "../../Checkbox-1Zr36vDa.js";
12
+ import { u as Xt } from "../../index-JOgYmUF8.js";
13
+ import { C as Wt } from "../../Checkbox-DkrWUPYT.js";
14
14
  import { u as Ee } from "../../useForkRef-C_4o__cU.js";
15
- import { u as N } from "../../useSlotProps-Ceyorp-u.js";
16
- import { r as $, e as Fe } from "../../resolveComponentProps-Ctw0-dUN.js";
17
- import { s as ie, c as ze, f as qe } from "../../DefaultPropsProvider-CXfMJdg8.js";
15
+ import { u as N } from "../../useSlotProps-CDJdiQpV.js";
16
+ import { r as $, e as Fe } from "../../resolveComponentProps-BZQ1jKzF.js";
17
+ import { s as ie, c as ze, f as qe } from "../../DefaultPropsProvider-Ik4eAJdt.js";
18
18
  import { u as Gt } from "../../unsupportedProp-BuVD30Gh.js";
19
- import { e as Jt } from "../../elementTypeAcceptingRef-1usJq_B8.js";
19
+ import { e as Jt } from "../../elementTypeAcceptingRef-CW5o2Qxo.js";
20
20
  function Yt(e) {
21
21
  return zt("MuiRichTreeView", e);
22
22
  }
23
23
  qt("MuiRichTreeView", ["root"]);
24
24
  const Qt = (e, t) => {
25
25
  const n = E.useRef({}), [r, l] = E.useState(() => {
26
- const m = {};
27
- return e.forEach((p) => {
28
- p.models && Object.entries(p.models).forEach(([g, u]) => {
26
+ const I = {};
27
+ return e.forEach((f) => {
28
+ f.models && Object.entries(f.models).forEach(([g, p]) => {
29
29
  n.current[g] = {
30
30
  isControlled: t[g] !== void 0,
31
- getDefaultValue: u.getDefaultValue
32
- }, m[g] = u.getDefaultValue(t);
31
+ getDefaultValue: p.getDefaultValue
32
+ }, I[g] = p.getDefaultValue(t);
33
33
  });
34
- }), m;
35
- }), x = Object.fromEntries(Object.entries(n.current).map(([m, p]) => {
36
- const g = t[m] ?? r[m];
37
- return [m, {
34
+ }), I;
35
+ }), x = Object.fromEntries(Object.entries(n.current).map(([I, f]) => {
36
+ const g = t[I] ?? r[I];
37
+ return [I, {
38
38
  value: g,
39
- setControlledValue: (u) => {
40
- p.isControlled || l((o) => C({}, o, {
41
- [m]: u
39
+ setControlledValue: (p) => {
40
+ f.isControlled || l((o) => C({}, o, {
41
+ [I]: p
42
42
  }));
43
43
  }
44
44
  }];
45
45
  }));
46
- return process.env.NODE_ENV !== "production" && Object.entries(n.current).forEach(([m, p]) => {
47
- const g = t[m], u = p.getDefaultValue(t);
46
+ return process.env.NODE_ENV !== "production" && Object.entries(n.current).forEach(([I, f]) => {
47
+ const g = t[I], p = f.getDefaultValue(t);
48
48
  E.useEffect(() => {
49
- p.isControlled !== (g !== void 0) && console.error([`MUI X: A component is changing the ${p.isControlled ? "" : "un"}controlled ${m} state of TreeView to be ${p.isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${m} 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"].join(`
49
+ f.isControlled !== (g !== void 0) && console.error([`MUI X: A component is changing the ${f.isControlled ? "" : "un"}controlled ${I} state of TreeView to be ${f.isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${I} 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"].join(`
50
50
  `));
51
51
  }, [g]);
52
52
  const {
53
53
  current: o
54
- } = E.useRef(u);
54
+ } = E.useRef(p);
55
55
  E.useEffect(() => {
56
- !p.isControlled && o !== u && console.error([`MUI X: A component is changing the default ${m} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
56
+ !f.isControlled && o !== p && console.error([`MUI X: A component is changing the default ${I} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
57
57
  `));
58
- }, [JSON.stringify(u)]);
58
+ }, [JSON.stringify(p)]);
59
59
  }), x;
60
60
  };
61
61
  class Zt {
@@ -84,13 +84,13 @@ class Zt {
84
84
  if (!r)
85
85
  return;
86
86
  const l = Array.from(r.highPriority.keys()), x = Array.from(r.regular.keys());
87
- for (let m = l.length - 1; m >= 0; m -= 1) {
88
- const p = l[m];
89
- r.highPriority.has(p) && p.apply(this, n);
87
+ for (let I = l.length - 1; I >= 0; I -= 1) {
88
+ const f = l[I];
89
+ r.highPriority.has(f) && f.apply(this, n);
90
90
  }
91
- for (let m = 0; m < x.length; m += 1) {
92
- const p = x[m];
93
- r.regular.has(p) && p.apply(this, n);
91
+ for (let I = 0; I < x.length; I += 1) {
92
+ const f = x[I];
93
+ r.regular.has(f) && f.apply(this, n);
94
94
  }
95
95
  }
96
96
  once(t, n) {
@@ -102,8 +102,8 @@ class Zt {
102
102
  }
103
103
  const en = (e) => e.isPropagationStopped !== void 0, He = () => {
104
104
  const [e] = E.useState(() => new Zt()), t = E.useCallback((...r) => {
105
- const [l, x, m = {}] = r;
106
- m.defaultMuiPrevented = !1, !(en(m) && m.isPropagationStopped()) && e.emit(l, x, m);
105
+ const [l, x, I = {}] = r;
106
+ I.defaultMuiPrevented = !1, !(en(I) && I.isPropagationStopped()) && e.emit(l, x, I);
107
107
  }, [e]), n = E.useCallback((r, l) => (e.on(r, l), () => {
108
108
  e.removeListener(r, l);
109
109
  }), [e]);
@@ -167,23 +167,23 @@ const tn = [He, Xe, Te], nn = ["slots", "slotProps", "apiRef", "experimentalFeat
167
167
  experimentalFeatures: l
168
168
  },
169
169
  plugins: x
170
- } = e, m = A(e.props, nn);
171
- const p = {};
172
- x.forEach((d) => {
173
- Object.assign(p, d.params);
170
+ } = e, I = A(e.props, nn);
171
+ const f = {};
172
+ x.forEach((u) => {
173
+ Object.assign(f, u.params);
174
174
  });
175
- const g = {}, u = {};
176
- Object.keys(m).forEach((d) => {
177
- const b = m[d];
178
- p[d] ? g[d] = b : u[d] = b;
175
+ const g = {}, p = {};
176
+ Object.keys(I).forEach((u) => {
177
+ const b = I[u];
178
+ f[u] ? g[u] = b : p[u] = b;
179
179
  });
180
- const o = l ?? {}, s = x.reduce((d, b) => b.getDefaultizedParams ? b.getDefaultizedParams({
181
- params: d,
180
+ const o = l ?? {}, s = x.reduce((u, b) => b.getDefaultizedParams ? b.getDefaultizedParams({
181
+ params: u,
182
182
  experimentalFeatures: o
183
- }) : d, g);
183
+ }) : u, g);
184
184
  return {
185
185
  apiRef: r,
186
- forwardedProps: u,
186
+ forwardedProps: p,
187
187
  pluginParams: s,
188
188
  slots: t ?? {},
189
189
  slotProps: n ?? {},
@@ -195,55 +195,55 @@ const tn = [He, Xe, Te], nn = ["slots", "slotProps", "apiRef", "experimentalFeat
195
195
  publicAPI: n,
196
196
  rootRef: r
197
197
  }) => ({
198
- runItemPlugins: (p) => {
199
- let g = null, u = null;
198
+ runItemPlugins: (f) => {
199
+ let g = null, p = null;
200
200
  const o = [], s = {};
201
201
  e.forEach((h) => {
202
202
  if (!h.itemPlugin)
203
203
  return;
204
204
  const c = h.itemPlugin({
205
- props: p,
205
+ props: f,
206
206
  rootRef: g,
207
- contentRef: u
207
+ contentRef: p
208
208
  });
209
- c != null && c.rootRef && (g = c.rootRef), c != null && c.contentRef && (u = c.contentRef), c != null && c.propsEnhancers && (o.push(c.propsEnhancers), Object.keys(c.propsEnhancers).forEach((i) => {
209
+ c != null && c.rootRef && (g = c.rootRef), c != null && c.contentRef && (p = c.contentRef), c != null && c.propsEnhancers && (o.push(c.propsEnhancers), Object.keys(c.propsEnhancers).forEach((i) => {
210
210
  s[i] = !0;
211
211
  }));
212
212
  });
213
- const d = (h) => (c) => {
213
+ const u = (h) => (c) => {
214
214
  const i = {};
215
- return o.forEach((f) => {
216
- const I = f[h];
217
- I != null && Object.assign(i, I(c));
215
+ return o.forEach((d) => {
216
+ const m = d[h];
217
+ m != null && Object.assign(i, m(c));
218
218
  }), i;
219
- }, b = Object.fromEntries(Object.keys(s).map((h) => [h, d(h)]));
219
+ }, b = Object.fromEntries(Object.keys(s).map((h) => [h, u(h)]));
220
220
  return {
221
- contentRef: u,
221
+ contentRef: p,
222
222
  rootRef: g,
223
223
  propsEnhancers: b
224
224
  };
225
225
  },
226
226
  wrapItem: ({
227
- itemId: p,
227
+ itemId: f,
228
228
  children: g
229
229
  }) => {
230
- let u = g;
230
+ let p = g;
231
231
  for (let o = e.length - 1; o >= 0; o -= 1) {
232
232
  const s = e[o];
233
- s.wrapItem && (u = s.wrapItem({
234
- itemId: p,
235
- children: u,
233
+ s.wrapItem && (p = s.wrapItem({
234
+ itemId: f,
235
+ children: p,
236
236
  instance: t
237
237
  }));
238
238
  }
239
- return u;
239
+ return p;
240
240
  },
241
241
  wrapRoot: ({
242
- children: p
242
+ children: f
243
243
  }) => {
244
- let g = p;
245
- for (let u = e.length - 1; u >= 0; u -= 1) {
246
- const o = e[u];
244
+ let g = f;
245
+ for (let p = e.length - 1; p >= 0; p -= 1) {
246
+ const o = e[p];
247
247
  o.wrapRoot && (g = o.wrapRoot({
248
248
  children: g,
249
249
  instance: t
@@ -267,37 +267,37 @@ const ln = ({
267
267
  const r = [...tn, ...e], {
268
268
  pluginParams: l,
269
269
  forwardedProps: x,
270
- apiRef: m,
271
- experimentalFeatures: p,
270
+ apiRef: I,
271
+ experimentalFeatures: f,
272
272
  slots: g,
273
- slotProps: u
273
+ slotProps: p
274
274
  } = on({
275
275
  plugins: r,
276
276
  props: n
277
- }), o = Qt(r, l), d = E.useRef({}).current, b = sn(m), h = E.useRef(null), c = Ee(h, t), i = rn({
277
+ }), o = Qt(r, l), u = E.useRef({}).current, b = sn(I), h = E.useRef(null), c = Ee(h, t), i = rn({
278
278
  plugins: r,
279
- instance: d,
279
+ instance: u,
280
280
  publicAPI: b,
281
281
  rootRef: h
282
- }), [f, I] = E.useState(() => {
282
+ }), [d, m] = E.useState(() => {
283
283
  const R = {};
284
284
  return r.forEach((v) => {
285
285
  v.getInitialState && Object.assign(R, v.getInitialState(l));
286
286
  }), R;
287
287
  }), T = [], P = (R) => {
288
288
  const v = R({
289
- instance: d,
289
+ instance: u,
290
290
  params: l,
291
291
  slots: g,
292
- slotProps: u,
293
- experimentalFeatures: p,
294
- state: f,
295
- setState: I,
292
+ slotProps: p,
293
+ experimentalFeatures: f,
294
+ state: d,
295
+ setState: m,
296
296
  rootRef: h,
297
297
  models: o,
298
298
  plugins: r
299
299
  });
300
- v.getRootProps && T.push(v.getRootProps), v.publicAPI && Object.assign(b, v.publicAPI), v.instance && Object.assign(d, v.instance), v.contextValue && Object.assign(i, v.contextValue);
300
+ v.getRootProps && T.push(v.getRootProps), v.publicAPI && Object.assign(b, v.publicAPI), v.instance && Object.assign(u, v.instance), v.contextValue && Object.assign(i, v.contextValue);
301
301
  };
302
302
  return r.forEach(P), {
303
303
  getRootProps: (R = {}) => {
@@ -312,7 +312,7 @@ const ln = ({
312
312
  },
313
313
  rootRef: c,
314
314
  contextValue: i,
315
- instance: d
315
+ instance: u
316
316
  };
317
317
  };
318
318
  function an(e) {
@@ -341,41 +341,41 @@ const cn = (e, t, n) => {
341
341
  getItemLabel: n,
342
342
  getItemId: r
343
343
  }) => {
344
- const l = {}, x = {}, m = {
344
+ const l = {}, x = {}, I = {
345
345
  [K]: []
346
- }, p = (u, o, s) => {
346
+ }, f = (p, o, s) => {
347
347
  var c, i;
348
- const d = r ? r(u) : u.id;
349
- if (d == null)
350
- 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(u)].join(`
348
+ const u = r ? r(p) : p.id;
349
+ if (u == null)
350
+ 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(p)].join(`
351
351
  `));
352
- if (l[d] != null)
353
- 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: "${d}"`].join(`
352
+ if (l[u] != null)
353
+ 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: "${u}"`].join(`
354
354
  `));
355
- const b = n ? n(u) : u.label;
355
+ const b = n ? n(p) : p.label;
356
356
  if (b == 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(u)].join(`
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(p)].join(`
358
358
  `));
359
- l[d] = {
360
- id: d,
359
+ l[u] = {
360
+ id: u,
361
361
  label: b,
362
362
  parentId: s,
363
363
  idAttribute: void 0,
364
- expandable: !!((c = u.children) != null && c.length),
365
- disabled: t ? t(u) : !1,
364
+ expandable: !!((c = p.children) != null && c.length),
365
+ disabled: t ? t(p) : !1,
366
366
  depth: o
367
- }, x[d] = u;
367
+ }, x[u] = p;
368
368
  const h = s ?? K;
369
- m[h] || (m[h] = []), m[h].push(d), (i = u.children) == null || i.forEach((f) => p(f, o + 1, d));
369
+ I[h] || (I[h] = []), I[h].push(u), (i = p.children) == null || i.forEach((d) => f(d, o + 1, u));
370
370
  };
371
- e.forEach((u) => p(u, 0, null));
371
+ e.forEach((p) => f(p, 0, null));
372
372
  const g = {};
373
- return Object.keys(m).forEach((u) => {
374
- g[u] = un(m[u]);
373
+ return Object.keys(I).forEach((p) => {
374
+ g[p] = un(I[p]);
375
375
  }), {
376
376
  itemMetaMap: l,
377
377
  itemMap: x,
378
- itemOrderedChildrenIds: m,
378
+ itemOrderedChildrenIds: I,
379
379
  itemChildrenIndexes: g
380
380
  };
381
381
  }, X = ({
@@ -385,51 +385,51 @@ const cn = (e, t, n) => {
385
385
  setState: r,
386
386
  experimentalFeatures: l
387
387
  }) => {
388
- const x = E.useCallback((f) => n.items.itemMetaMap[f], [n.items.itemMetaMap]), m = E.useCallback((f) => n.items.itemMap[f], [n.items.itemMap]), p = E.useCallback(() => {
389
- const f = (I) => {
390
- const T = n.items.itemMap[I], P = A(T, dn), y = n.items.itemOrderedChildrenIds[I];
391
- return y && (P.children = y.map(f)), P;
388
+ const x = E.useCallback((d) => n.items.itemMetaMap[d], [n.items.itemMetaMap]), I = E.useCallback((d) => n.items.itemMap[d], [n.items.itemMap]), f = E.useCallback(() => {
389
+ const d = (m) => {
390
+ const T = n.items.itemMap[m], P = A(T, dn), y = n.items.itemOrderedChildrenIds[m];
391
+ return y && (P.children = y.map(d)), P;
392
392
  };
393
- return n.items.itemOrderedChildrenIds[K].map(f);
394
- }, [n.items.itemMap, n.items.itemOrderedChildrenIds]), g = E.useCallback((f) => {
395
- if (f == null)
393
+ return n.items.itemOrderedChildrenIds[K].map(d);
394
+ }, [n.items.itemMap, n.items.itemOrderedChildrenIds]), g = E.useCallback((d) => {
395
+ if (d == null)
396
396
  return !1;
397
- let I = e.getItemMeta(f);
398
- if (!I)
397
+ let m = e.getItemMeta(d);
398
+ if (!m)
399
399
  return !1;
400
- if (I.disabled)
400
+ if (m.disabled)
401
401
  return !0;
402
- for (; I.parentId != null; )
403
- if (I = e.getItemMeta(I.parentId), I.disabled)
402
+ for (; m.parentId != null; )
403
+ if (m = e.getItemMeta(m.parentId), m.disabled)
404
404
  return !0;
405
405
  return !1;
406
- }, [e]), u = E.useCallback((f) => {
407
- const I = e.getItemMeta(f).parentId ?? K;
408
- return n.items.itemChildrenIndexes[I][f];
409
- }, [e, n.items.itemChildrenIndexes]), o = E.useCallback((f) => n.items.itemOrderedChildrenIds[f ?? K] ?? [], [n.items.itemOrderedChildrenIds]), s = (f) => {
410
- const I = e.getItemMeta(f);
411
- return I == null ? null : document.getElementById(_e({
406
+ }, [e]), p = E.useCallback((d) => {
407
+ const m = e.getItemMeta(d).parentId ?? K;
408
+ return n.items.itemChildrenIndexes[m][d];
409
+ }, [e, n.items.itemChildrenIndexes]), o = E.useCallback((d) => n.items.itemOrderedChildrenIds[d ?? K] ?? [], [n.items.itemOrderedChildrenIds]), s = (d) => {
410
+ const m = e.getItemMeta(d);
411
+ return m == null ? null : document.getElementById(_e({
412
412
  treeId: n.id.treeId,
413
- itemId: f,
414
- id: I.idAttribute
413
+ itemId: d,
414
+ id: m.idAttribute
415
415
  }));
416
- }, d = (f) => t.disabledItemsFocusable ? !0 : !e.isItemDisabled(f), b = E.useRef(!1), h = E.useCallback(() => {
416
+ }, u = (d) => t.disabledItemsFocusable ? !0 : !e.isItemDisabled(d), b = E.useRef(!1), h = E.useCallback(() => {
417
417
  b.current = !0;
418
418
  }, []), c = E.useCallback(() => b.current, []);
419
419
  return E.useEffect(() => {
420
- e.areItemUpdatesPrevented() || r((f) => {
421
- const I = We({
420
+ e.areItemUpdatesPrevented() || r((d) => {
421
+ const m = We({
422
422
  items: t.items,
423
423
  isItemDisabled: t.isItemDisabled,
424
424
  getItemId: t.getItemId,
425
425
  getItemLabel: t.getItemLabel
426
426
  });
427
- return Object.values(f.items.itemMetaMap).forEach((T) => {
428
- I.itemMetaMap[T.id] || cn(e, "removeItem", {
427
+ return Object.values(d.items.itemMetaMap).forEach((T) => {
428
+ m.itemMetaMap[T.id] || cn(e, "removeItem", {
429
429
  id: T.id
430
430
  });
431
- }), C({}, f, {
432
- items: I
431
+ }), C({}, d, {
432
+ items: m
433
433
  });
434
434
  });
435
435
  }, [e, r, t.items, t.isItemDisabled, t.getItemId, t.getItemLabel]), {
@@ -439,33 +439,33 @@ const cn = (e, t, n) => {
439
439
  }
440
440
  }),
441
441
  publicAPI: {
442
- getItem: m,
442
+ getItem: I,
443
443
  getItemDOMElement: s,
444
- getItemTree: p,
444
+ getItemTree: f,
445
445
  getItemOrderedChildrenIds: o
446
446
  },
447
447
  instance: {
448
448
  getItemMeta: x,
449
- getItem: m,
450
- getItemTree: p,
449
+ getItem: I,
450
+ getItemTree: f,
451
451
  getItemsToRender: () => {
452
- const f = (I) => {
452
+ const d = (m) => {
453
453
  var P;
454
- const T = n.items.itemMetaMap[I];
454
+ const T = n.items.itemMetaMap[m];
455
455
  return {
456
456
  label: T.label,
457
457
  itemId: T.id,
458
458
  id: T.idAttribute,
459
- children: (P = n.items.itemOrderedChildrenIds[I]) == null ? void 0 : P.map(f)
459
+ children: (P = n.items.itemOrderedChildrenIds[m]) == null ? void 0 : P.map(d)
460
460
  };
461
461
  };
462
- return n.items.itemOrderedChildrenIds[K].map(f);
462
+ return n.items.itemOrderedChildrenIds[K].map(d);
463
463
  },
464
- getItemIndex: u,
464
+ getItemIndex: p,
465
465
  getItemDOMElement: s,
466
466
  getItemOrderedChildrenIds: o,
467
467
  isItemDisabled: g,
468
- isItemNavigable: d,
468
+ isItemNavigable: u,
469
469
  preventItemUpdates: h,
470
470
  areItemUpdatesPrevented: c
471
471
  },
@@ -518,27 +518,27 @@ const le = ({
518
518
  }) => {
519
519
  const r = E.useMemo(() => {
520
520
  const s = /* @__PURE__ */ new Map();
521
- return n.expandedItems.value.forEach((d) => {
522
- s.set(d, !0);
521
+ return n.expandedItems.value.forEach((u) => {
522
+ s.set(u, !0);
523
523
  }), s;
524
- }, [n.expandedItems.value]), l = (s, d) => {
524
+ }, [n.expandedItems.value]), l = (s, u) => {
525
525
  var b;
526
- (b = t.onExpandedItemsChange) == null || b.call(t, s, d), n.expandedItems.setControlledValue(d);
527
- }, x = E.useCallback((s) => r.has(s), [r]), m = E.useCallback((s) => {
528
- var d;
529
- return !!((d = e.getItemMeta(s)) != null && d.expandable);
530
- }, [e]), p = U((s, d) => {
531
- const b = e.isItemExpanded(d);
532
- e.setItemExpansion(s, d, !b);
533
- }), g = U((s, d, b) => {
534
- if (e.isItemExpanded(d) === b)
526
+ (b = t.onExpandedItemsChange) == null || b.call(t, s, u), n.expandedItems.setControlledValue(u);
527
+ }, x = E.useCallback((s) => r.has(s), [r]), I = E.useCallback((s) => {
528
+ var u;
529
+ return !!((u = e.getItemMeta(s)) != null && u.expandable);
530
+ }, [e]), f = U((s, u) => {
531
+ const b = e.isItemExpanded(u);
532
+ e.setItemExpansion(s, u, !b);
533
+ }), g = U((s, u, b) => {
534
+ if (e.isItemExpanded(u) === b)
535
535
  return;
536
536
  let c;
537
- b ? c = [d].concat(n.expandedItems.value) : c = n.expandedItems.value.filter((i) => i !== d), t.onItemExpansionToggle && t.onItemExpansionToggle(s, d, b), l(s, c);
538
- }), u = (s, d) => {
539
- const b = e.getItemMeta(d), c = e.getItemOrderedChildrenIds(b.parentId).filter((f) => e.isItemExpandable(f) && !e.isItemExpanded(f)), i = n.expandedItems.value.concat(c);
540
- c.length > 0 && (t.onItemExpansionToggle && c.forEach((f) => {
541
- t.onItemExpansionToggle(s, f, !0);
537
+ b ? c = [u].concat(n.expandedItems.value) : c = n.expandedItems.value.filter((i) => i !== u), t.onItemExpansionToggle && t.onItemExpansionToggle(s, u, b), l(s, c);
538
+ }), p = (s, u) => {
539
+ const b = e.getItemMeta(u), c = e.getItemOrderedChildrenIds(b.parentId).filter((d) => e.isItemExpandable(d) && !e.isItemExpanded(d)), i = n.expandedItems.value.concat(c);
540
+ c.length > 0 && (t.onItemExpansionToggle && c.forEach((d) => {
541
+ t.onItemExpansionToggle(s, d, !0);
542
542
  }), l(s, i));
543
543
  }, o = E.useMemo(() => t.expansionTrigger ? t.expansionTrigger : e.isTreeViewEditable ? "iconContainer" : "content", [t.expansionTrigger, e.isTreeViewEditable]);
544
544
  return {
@@ -547,10 +547,10 @@ const le = ({
547
547
  },
548
548
  instance: {
549
549
  isItemExpanded: x,
550
- isItemExpandable: m,
550
+ isItemExpandable: I,
551
551
  setItemExpansion: g,
552
- toggleItemExpansion: p,
553
- expandAllSiblings: u
552
+ toggleItemExpansion: f,
553
+ expandAllSiblings: p
554
554
  },
555
555
  contextValue: {
556
556
  expansion: {
@@ -592,39 +592,39 @@ const re = (e) => Array.isArray(e) ? e : e != null ? [e] : [], be = (e) => {
592
592
  return Array.isArray(n.selectedItems.value) ? n.selectedItems.value.forEach((i) => {
593
593
  c.set(i, !0);
594
594
  }) : n.selectedItems.value != null && c.set(n.selectedItems.value, !0), c;
595
- }, [n.selectedItems.value]), m = (c, i) => {
595
+ }, [n.selectedItems.value]), I = (c, i) => {
596
596
  if (t.onItemSelectionToggle)
597
597
  if (t.multiSelect) {
598
- const f = i.filter((T) => !e.isItemSelected(T)), I = n.selectedItems.value.filter((T) => !i.includes(T));
599
- f.forEach((T) => {
598
+ const d = i.filter((T) => !e.isItemSelected(T)), m = n.selectedItems.value.filter((T) => !i.includes(T));
599
+ d.forEach((T) => {
600
600
  t.onItemSelectionToggle(c, T, !0);
601
- }), I.forEach((T) => {
601
+ }), m.forEach((T) => {
602
602
  t.onItemSelectionToggle(c, T, !1);
603
603
  });
604
604
  } else i !== n.selectedItems.value && (n.selectedItems.value != null && t.onItemSelectionToggle(c, n.selectedItems.value, !1), i != null && t.onItemSelectionToggle(c, i, !0));
605
605
  t.onSelectedItemsChange && t.onSelectedItemsChange(c, i), n.selectedItems.setControlledValue(i);
606
- }, p = (c) => x.has(c), g = ({
606
+ }, f = (c) => x.has(c), g = ({
607
607
  event: c,
608
608
  itemId: i,
609
- keepExistingSelection: f = !1,
610
- shouldBeSelected: I
609
+ keepExistingSelection: d = !1,
610
+ shouldBeSelected: m
611
611
  }) => {
612
612
  if (t.disableSelection)
613
613
  return;
614
614
  let T;
615
- if (f) {
615
+ if (d) {
616
616
  const P = re(n.selectedItems.value), y = e.isItemSelected(i);
617
- y && (I === !1 || I == null) ? T = P.filter((R) => R !== i) : !y && (I === !0 || I == null) ? T = [i].concat(P) : T = P;
617
+ y && (m === !1 || m == null) ? T = P.filter((R) => R !== i) : !y && (m === !0 || m == null) ? T = [i].concat(P) : T = P;
618
618
  } else
619
- I === !1 || I == null && e.isItemSelected(i) ? T = t.multiSelect ? [] : null : T = t.multiSelect ? [i] : i;
620
- m(c, T), r.current = i, l.current = {};
621
- }, u = (c, [i, f]) => {
619
+ m === !1 || m == null && e.isItemSelected(i) ? T = t.multiSelect ? [] : null : T = t.multiSelect ? [i] : i;
620
+ I(c, T), r.current = i, l.current = {};
621
+ }, p = (c, [i, d]) => {
622
622
  if (t.disableSelection || !t.multiSelect)
623
623
  return;
624
- let I = re(n.selectedItems.value).slice();
625
- Object.keys(l.current).length > 0 && (I = I.filter((R) => !l.current[R]));
626
- const T = be(I), P = kt(e, i, f), y = P.filter((R) => !T[R]);
627
- I = I.concat(y), m(c, I), l.current = be(P);
624
+ let m = re(n.selectedItems.value).slice();
625
+ Object.keys(l.current).length > 0 && (m = m.filter((R) => !l.current[R]));
626
+ const T = be(m), P = kt(e, i, d), y = P.filter((R) => !T[R]);
627
+ m = m.concat(y), I(c, m), l.current = be(P);
628
628
  };
629
629
  return {
630
630
  getRootProps: () => ({
@@ -634,34 +634,34 @@ const re = (e) => Array.isArray(e) ? e : e != null ? [e] : [], be = (e) => {
634
634
  selectItem: g
635
635
  },
636
636
  instance: {
637
- isItemSelected: p,
637
+ isItemSelected: f,
638
638
  selectItem: g,
639
639
  selectAllNavigableItems: (c) => {
640
640
  if (t.disableSelection || !t.multiSelect)
641
641
  return;
642
642
  const i = vt(e);
643
- m(c, i), l.current = be(i);
643
+ I(c, i), l.current = be(i);
644
644
  },
645
645
  expandSelectionRange: (c, i) => {
646
646
  if (r.current != null) {
647
- const [f, I] = Pt(e, i, r.current);
648
- u(c, [f, I]);
647
+ const [d, m] = Pt(e, i, r.current);
648
+ p(c, [d, m]);
649
649
  }
650
650
  },
651
651
  selectRangeFromStartToItem: (c, i) => {
652
- u(c, [se(e), i]);
652
+ p(c, [se(e), i]);
653
653
  },
654
654
  selectRangeFromItemToEnd: (c, i) => {
655
- u(c, [i, Ne(e)]);
655
+ p(c, [i, Ne(e)]);
656
656
  },
657
- selectItemFromArrowNavigation: (c, i, f) => {
657
+ selectItemFromArrowNavigation: (c, i, d) => {
658
658
  if (t.disableSelection || !t.multiSelect)
659
659
  return;
660
- let I = re(n.selectedItems.value).slice();
661
- Object.keys(l.current).length === 0 ? (I.push(f), l.current = {
660
+ let m = re(n.selectedItems.value).slice();
661
+ Object.keys(l.current).length === 0 ? (m.push(d), l.current = {
662
662
  [i]: !0,
663
- [f]: !0
664
- }) : (l.current[i] || (l.current = {}), l.current[f] ? (I = I.filter((T) => T !== i), delete l.current[i]) : (I.push(f), l.current[f] = !0)), m(c, I);
663
+ [d]: !0
664
+ }) : (l.current[i] || (l.current = {}), l.current[d] ? (m = m.filter((T) => T !== i), delete l.current[i]) : (m.push(d), l.current[d] = !0)), I(c, m);
665
665
  }
666
666
  },
667
667
  contextValue: {
@@ -742,37 +742,37 @@ function bn(e) {
742
742
  let t = 0;
743
743
  return function(r, l, x) {
744
744
  e.registry === null && (e.registry = typeof FinalizationRegistry < "u" ? new In() : new mn());
745
- const [m] = E.useState(new gn()), p = E.useRef(null), g = E.useRef(void 0);
745
+ const [I] = E.useState(new gn()), f = E.useRef(null), g = E.useRef(void 0);
746
746
  g.current = x;
747
- const u = E.useRef(null);
748
- if (!p.current && g.current) {
749
- const o = (s, d) => {
747
+ const p = E.useRef(null);
748
+ if (!f.current && g.current) {
749
+ const o = (s, u) => {
750
750
  var b;
751
- d.defaultMuiPrevented || (b = g.current) == null || b.call(g, s, d);
751
+ u.defaultMuiPrevented || (b = g.current) == null || b.call(g, s, u);
752
752
  };
753
- p.current = r.$$subscribeEvent(l, o), t += 1, u.current = {
753
+ f.current = r.$$subscribeEvent(l, o), t += 1, p.current = {
754
754
  cleanupToken: t
755
755
  }, e.registry.register(
756
- m,
756
+ I,
757
757
  // The callback below will be called once this reference stops being retained
758
758
  () => {
759
759
  var s;
760
- (s = p.current) == null || s.call(p), p.current = null, u.current = null;
760
+ (s = f.current) == null || s.call(f), f.current = null, p.current = null;
761
761
  },
762
- u.current
762
+ p.current
763
763
  );
764
- } else !g.current && p.current && (p.current(), p.current = null, u.current && (e.registry.unregister(u.current), u.current = null));
764
+ } else !g.current && f.current && (f.current(), f.current = null, p.current && (e.registry.unregister(p.current), p.current = null));
765
765
  E.useEffect(() => {
766
- if (!p.current && g.current) {
767
- const o = (s, d) => {
766
+ if (!f.current && g.current) {
767
+ const o = (s, u) => {
768
768
  var b;
769
- d.defaultMuiPrevented || (b = g.current) == null || b.call(g, s, d);
769
+ u.defaultMuiPrevented || (b = g.current) == null || b.call(g, s, u);
770
770
  };
771
- p.current = r.$$subscribeEvent(l, o);
771
+ f.current = r.$$subscribeEvent(l, o);
772
772
  }
773
- return u.current && e.registry && (e.registry.unregister(u.current), u.current = null), () => {
773
+ return p.current && e.registry && (e.registry.unregister(p.current), p.current = null), () => {
774
774
  var o;
775
- (o = p.current) == null || o.call(p), p.current = null;
775
+ (o = f.current) == null || o.call(f), f.current = null;
776
776
  };
777
777
  }, [r, l]);
778
778
  };
@@ -798,48 +798,48 @@ const hn = {
798
798
  models: l,
799
799
  rootRef: x
800
800
  }) => {
801
- const m = En(e, l.selectedItems.value), p = U((i) => {
802
- const f = typeof i == "function" ? i(n.focusedItemId) : i;
803
- n.focusedItemId !== f && r((I) => C({}, I, {
804
- focusedItemId: f
801
+ const I = En(e, l.selectedItems.value), f = U((i) => {
802
+ const d = typeof i == "function" ? i(n.focusedItemId) : i;
803
+ n.focusedItemId !== d && r((m) => C({}, m, {
804
+ focusedItemId: d
805
805
  }));
806
- }), g = E.useCallback(() => !!x.current && x.current.contains(Ge(Ht(x.current))), [x]), u = E.useCallback((i) => n.focusedItemId === i && g(), [n.focusedItemId, g]), o = (i) => {
807
- const f = e.getItemMeta(i);
808
- return f && (f.parentId == null || e.isItemExpanded(f.parentId));
809
- }, s = (i, f) => {
810
- const I = e.getItemDOMElement(f);
811
- I && I.focus(), p(f), t.onItemFocus && t.onItemFocus(i, f);
812
- }, d = U((i, f) => {
813
- o(f) && s(i, f);
806
+ }), g = E.useCallback(() => !!x.current && x.current.contains(Ge(Ht(x.current))), [x]), p = E.useCallback((i) => n.focusedItemId === i && g(), [n.focusedItemId, g]), o = (i) => {
807
+ const d = e.getItemMeta(i);
808
+ return d && (d.parentId == null || e.isItemExpanded(d.parentId));
809
+ }, s = (i, d) => {
810
+ const m = e.getItemDOMElement(d);
811
+ m && m.focus(), f(d), t.onItemFocus && t.onItemFocus(i, d);
812
+ }, u = U((i, d) => {
813
+ o(d) && s(i, d);
814
814
  }), b = U(() => {
815
815
  if (n.focusedItemId == null)
816
816
  return;
817
817
  if (e.getItemMeta(n.focusedItemId)) {
818
- const f = e.getItemDOMElement(n.focusedItemId);
819
- f && f.blur();
818
+ const d = e.getItemDOMElement(n.focusedItemId);
819
+ d && d.blur();
820
820
  }
821
- p(null);
822
- }), h = (i) => i === m;
821
+ f(null);
822
+ }), h = (i) => i === I;
823
823
  xn(e, "removeItem", ({
824
824
  id: i
825
825
  }) => {
826
- n.focusedItemId === i && s(null, m);
826
+ n.focusedItemId === i && s(null, I);
827
827
  });
828
- const c = (i) => (f) => {
829
- var I;
830
- (I = i.onFocus) == null || I.call(i, f), !f.defaultMuiPrevented && f.target === f.currentTarget && s(f, m);
828
+ const c = (i) => (d) => {
829
+ var m;
830
+ (m = i.onFocus) == null || m.call(i, d), !d.defaultMuiPrevented && d.target === d.currentTarget && s(d, I);
831
831
  };
832
832
  return {
833
833
  getRootProps: (i) => ({
834
834
  onFocus: c(i)
835
835
  }),
836
836
  publicAPI: {
837
- focusItem: d
837
+ focusItem: u
838
838
  },
839
839
  instance: {
840
- isItemFocused: u,
840
+ isItemFocused: p,
841
841
  canItemBeTabbed: h,
842
- focusItem: d,
842
+ focusItem: u,
843
843
  removeFocusedItem: b
844
844
  }
845
845
  };
@@ -864,32 +864,32 @@ const Je = ({
864
864
  E.useEffect(() => {
865
865
  if (e.areItemUpdatesPrevented())
866
866
  return;
867
- const o = {}, s = (d) => {
868
- o[d.id] = d.label.substring(0, 1).toLowerCase();
867
+ const o = {}, s = (u) => {
868
+ o[u.id] = u.label.substring(0, 1).toLowerCase();
869
869
  };
870
870
  Object.values(n.items.itemMetaMap).forEach(s), l.current = o;
871
871
  }, [n.items.itemMetaMap, t.getItemId, e]);
872
- const m = (o, s) => {
873
- const d = s.toLowerCase(), b = (f) => {
874
- const I = ge(e, f);
875
- return I === null ? se(e) : I;
872
+ const I = (o, s) => {
873
+ const u = s.toLowerCase(), b = (d) => {
874
+ const m = ge(e, d);
875
+ return m === null ? se(e) : m;
876
876
  };
877
877
  let h = null, c = b(o);
878
878
  const i = {};
879
879
  for (; h == null && !i[c]; )
880
- l.current[c] === d ? h = c : (i[c] = !0, c = b(c));
880
+ l.current[c] === u ? h = c : (i[c] = !0, c = b(c));
881
881
  return h;
882
- }, p = (o) => !t.disableSelection && !e.isItemDisabled(o), g = (o) => !e.isItemDisabled(o) && e.isItemExpandable(o);
882
+ }, f = (o) => !t.disableSelection && !e.isItemDisabled(o), g = (o) => !e.isItemDisabled(o) && e.isItemExpandable(o);
883
883
  return {
884
884
  instance: {
885
885
  updateFirstCharMap: x,
886
886
  handleItemKeyDown: (o, s) => {
887
887
  if (o.defaultMuiPrevented || o.altKey || he(o.target, o.currentTarget))
888
888
  return;
889
- const d = o.ctrlKey || o.metaKey, b = o.key;
889
+ const u = o.ctrlKey || o.metaKey, b = o.key;
890
890
  switch (!0) {
891
891
  // Select the item when pressing "Space"
892
- case (b === " " && p(s)): {
892
+ case (b === " " && f(s)): {
893
893
  o.preventDefault(), t.multiSelect && o.shiftKey ? e.expandSelectionRange(o, s) : e.selectItem({
894
894
  event: o,
895
895
  itemId: s,
@@ -901,7 +901,7 @@ const Je = ({
901
901
  // If the focused item has children, we expand it.
902
902
  // If the focused item has no children, we select it.
903
903
  case b === "Enter": {
904
- oe(e, H) && e.isItemEditable(s) && !e.isItemBeingEdited(s) ? e.setEditedItemId(s) : g(s) ? (e.toggleItemExpansion(o, s), o.preventDefault()) : p(s) && (t.multiSelect ? (o.preventDefault(), e.selectItem({
904
+ oe(e, H) && e.isItemEditable(s) && !e.isItemBeingEdited(s) ? e.setEditedItemId(s) : g(s) ? (e.toggleItemExpansion(o, s), o.preventDefault()) : f(s) && (t.multiSelect ? (o.preventDefault(), e.selectItem({
905
905
  event: o,
906
906
  itemId: s,
907
907
  keepExistingSelection: !0
@@ -914,19 +914,19 @@ const Je = ({
914
914
  // Focus the next focusable item
915
915
  case b === "ArrowDown": {
916
916
  const h = ge(e, s);
917
- h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey && p(h) && e.selectItemFromArrowNavigation(o, s, h));
917
+ h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey && f(h) && e.selectItemFromArrowNavigation(o, s, h));
918
918
  break;
919
919
  }
920
920
  // Focuses the previous focusable item
921
921
  case b === "ArrowUp": {
922
922
  const h = Mt(e, s);
923
- h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey && p(h) && e.selectItemFromArrowNavigation(o, s, h));
923
+ h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey && f(h) && e.selectItemFromArrowNavigation(o, s, h));
924
924
  break;
925
925
  }
926
926
  // If the focused item is expanded, we move the focus to its first child
927
927
  // If the focused item is collapsed and has children, we expand it
928
928
  case (b === "ArrowRight" && !r || b === "ArrowLeft" && r): {
929
- if (d)
929
+ if (u)
930
930
  return;
931
931
  if (e.isItemExpanded(s)) {
932
932
  const h = ge(e, s);
@@ -937,7 +937,7 @@ const Je = ({
937
937
  // If the focused item is expanded, we collapse it
938
938
  // If the focused item is collapsed and has a parent, we move the focus to this parent
939
939
  case (b === "ArrowLeft" && !r || b === "ArrowRight" && r): {
940
- if (d)
940
+ if (u)
941
941
  return;
942
942
  if (g(s) && e.isItemExpanded(s))
943
943
  e.toggleItemExpansion(o, s), o.preventDefault();
@@ -949,12 +949,12 @@ const Je = ({
949
949
  }
950
950
  // Focuses the first item in the tree
951
951
  case b === "Home": {
952
- p(s) && t.multiSelect && d && o.shiftKey ? e.selectRangeFromStartToItem(o, s) : e.focusItem(o, se(e)), o.preventDefault();
952
+ f(s) && t.multiSelect && u && o.shiftKey ? e.selectRangeFromStartToItem(o, s) : e.focusItem(o, se(e)), o.preventDefault();
953
953
  break;
954
954
  }
955
955
  // Focuses the last item in the tree
956
956
  case b === "End": {
957
- p(s) && t.multiSelect && d && o.shiftKey ? e.selectRangeFromItemToEnd(o, s) : e.focusItem(o, Ne(e)), o.preventDefault();
957
+ f(s) && t.multiSelect && u && o.shiftKey ? e.selectRangeFromItemToEnd(o, s) : e.focusItem(o, Ne(e)), o.preventDefault();
958
958
  break;
959
959
  }
960
960
  // Expand all siblings that are at the same level as the focused item
@@ -964,14 +964,14 @@ const Je = ({
964
964
  }
965
965
  // Multi select behavior when pressing Ctrl + a
966
966
  // Selects all the items
967
- case (String.fromCharCode(o.keyCode) === "A" && d && t.multiSelect && !t.disableSelection): {
967
+ case (String.fromCharCode(o.keyCode) === "A" && u && t.multiSelect && !t.disableSelection): {
968
968
  e.selectAllNavigableItems(o), o.preventDefault();
969
969
  break;
970
970
  }
971
971
  // Type-ahead
972
972
  // TODO: Support typing multiple characters
973
- case (!d && !o.shiftKey && Tn(b)): {
974
- const h = m(s, b);
973
+ case (!u && !o.shiftKey && Tn(b)): {
974
+ const h = I(s, b);
975
975
  h != null && (e.focusItem(o, h), o.preventDefault());
976
976
  break;
977
977
  }
@@ -1014,16 +1014,16 @@ function Qe(e) {
1014
1014
  disableSelection: x
1015
1015
  },
1016
1016
  expansion: {
1017
- expansionTrigger: m
1017
+ expansionTrigger: I
1018
1018
  }
1019
- } = Ke(), p = t.isItemExpandable(e), g = t.isItemExpanded(e), u = t.isItemFocused(e), o = t.isItemSelected(e), s = t.isItemDisabled(e), d = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, b = t.isItemEditable ? t.isItemEditable(e) : !1, h = (y) => {
1019
+ } = Ke(), f = t.isItemExpandable(e), g = t.isItemExpanded(e), p = t.isItemFocused(e), o = t.isItemSelected(e), s = t.isItemDisabled(e), u = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, b = t.isItemEditable ? t.isItemEditable(e) : !1, h = (y) => {
1020
1020
  if (!s) {
1021
- u || t.focusItem(y, e);
1021
+ p || t.focusItem(y, e);
1022
1022
  const R = r && (y.shiftKey || y.ctrlKey || y.metaKey);
1023
- p && !(R && t.isItemExpanded(e)) && t.toggleItemExpansion(y, e);
1023
+ f && !(R && t.isItemExpanded(e)) && t.toggleItemExpansion(y, e);
1024
1024
  }
1025
1025
  }, c = (y) => {
1026
- s || (u || t.focusItem(y, e), r && (y.shiftKey || y.ctrlKey || y.metaKey) ? y.shiftKey ? t.expandSelectionRange(y, e) : t.selectItem({
1026
+ s || (p || t.focusItem(y, e), r && (y.shiftKey || y.ctrlKey || y.metaKey) ? y.shiftKey ? t.expandSelectionRange(y, e) : t.selectItem({
1027
1027
  event: y,
1028
1028
  itemId: e,
1029
1029
  keepExistingSelection: !0
@@ -1042,32 +1042,32 @@ function Qe(e) {
1042
1042
  keepExistingSelection: r,
1043
1043
  shouldBeSelected: y.target.checked
1044
1044
  });
1045
- }, f = (y) => {
1045
+ }, d = (y) => {
1046
1046
  (y.shiftKey || y.ctrlKey || y.metaKey || s) && y.preventDefault();
1047
- }, I = () => {
1047
+ }, m = () => {
1048
1048
  oe(t, H) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
1049
1049
  };
1050
1050
  return {
1051
1051
  disabled: s,
1052
1052
  expanded: g,
1053
1053
  selected: o,
1054
- focused: u,
1054
+ focused: p,
1055
1055
  editable: b,
1056
- editing: d,
1056
+ editing: u,
1057
1057
  disableSelection: x,
1058
1058
  checkboxSelection: l,
1059
1059
  handleExpansion: h,
1060
1060
  handleSelection: c,
1061
1061
  handleCheckboxSelection: i,
1062
1062
  handleContentClick: n,
1063
- preventSelection: f,
1064
- expansionTrigger: m,
1065
- toggleItemEditing: I,
1063
+ preventSelection: d,
1064
+ expansionTrigger: I,
1065
+ toggleItemEditing: m,
1066
1066
  handleSaveItemLabel: (y, R) => {
1067
- oe(t, H) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, R), I(), t.focusItem(y, e));
1067
+ oe(t, H) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, R), m(), t.focusItem(y, e));
1068
1068
  },
1069
1069
  handleCancelItemLabelEditing: (y) => {
1070
- oe(t, H) && t.isItemBeingEditedRef(e) && (I(), t.focusItem(y, e));
1070
+ oe(t, H) && t.isItemBeingEditedRef(e) && (m(), t.focusItem(y, e));
1071
1071
  }
1072
1072
  };
1073
1073
  }
@@ -1076,19 +1076,19 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
1076
1076
  classes: r,
1077
1077
  className: l,
1078
1078
  displayIcon: x,
1079
- expansionIcon: m,
1080
- icon: p,
1079
+ expansionIcon: I,
1080
+ icon: f,
1081
1081
  label: g,
1082
- itemId: u,
1082
+ itemId: p,
1083
1083
  onClick: o,
1084
1084
  onMouseDown: s,
1085
- dragAndDropOverlayProps: d,
1085
+ dragAndDropOverlayProps: u,
1086
1086
  labelInputProps: b
1087
1087
  } = t, h = A(t, Cn), {
1088
1088
  disabled: c,
1089
1089
  expanded: i,
1090
- selected: f,
1091
- focused: I,
1090
+ selected: d,
1091
+ focused: m,
1092
1092
  editing: T,
1093
1093
  editable: P,
1094
1094
  disableSelection: y,
@@ -1100,18 +1100,18 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
1100
1100
  preventSelection: L,
1101
1101
  expansionTrigger: W,
1102
1102
  toggleItemEditing: G
1103
- } = Qe(u), j = p || m || x, J = E.useRef(null), ce = (M) => {
1103
+ } = Qe(p), j = f || I || x, J = E.useRef(null), ce = (M) => {
1104
1104
  L(M), s && s(M);
1105
1105
  }, ue = (M) => {
1106
1106
  var Y;
1107
- V == null || V(M, u), !((Y = J.current) != null && Y.contains(M.target)) && (W === "content" && v(M), R || F(M), o && o(M));
1107
+ V == null || V(M, p), !((Y = J.current) != null && Y.contains(M.target)) && (W === "content" && v(M), R || F(M), o && o(M));
1108
1108
  }, de = (M) => {
1109
1109
  M.defaultMuiPrevented || G();
1110
1110
  };
1111
1111
  return (
1112
1112
  /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
1113
1113
  /* @__PURE__ */ je("div", C({}, h, {
1114
- className: Be(r.root, l, i && r.expanded, f && r.selected, I && r.focused, c && r.disabled, T && r.editing, P && r.editable),
1114
+ className: Be(r.root, l, i && r.expanded, d && r.selected, m && r.focused, c && r.disabled, T && r.editing, P && r.editable),
1115
1115
  onClick: ue,
1116
1116
  onMouseDown: ce,
1117
1117
  ref: n,
@@ -1120,7 +1120,7 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
1120
1120
  children: j
1121
1121
  }), R && /* @__PURE__ */ S(Wt, {
1122
1122
  className: r.checkbox,
1123
- checked: f,
1123
+ checked: d,
1124
1124
  onChange: B,
1125
1125
  disabled: c || y,
1126
1126
  ref: J,
@@ -1133,7 +1133,7 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
1133
1133
  onDoubleClick: de
1134
1134
  }, {
1135
1135
  children: g
1136
- })), d && /* @__PURE__ */ S(Ot, C({}, d))]
1136
+ })), u && /* @__PURE__ */ S(Ot, C({}, u))]
1137
1137
  }))
1138
1138
  );
1139
1139
  });
@@ -1311,17 +1311,17 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1311
1311
  runItemPlugins: l,
1312
1312
  items: {
1313
1313
  disabledItemsFocusable: x,
1314
- indentationAtItemLevel: m
1314
+ indentationAtItemLevel: I
1315
1315
  },
1316
1316
  selection: {
1317
- disableSelection: p
1317
+ disableSelection: f
1318
1318
  },
1319
1319
  expansion: {
1320
1320
  expansionTrigger: g
1321
1321
  },
1322
- treeId: u,
1322
+ treeId: p,
1323
1323
  instance: o
1324
- } = Ke(), s = E.useContext($e), d = vn({
1324
+ } = Ke(), s = E.useContext($e), u = vn({
1325
1325
  props: t,
1326
1326
  name: "MuiTreeItem"
1327
1327
  }), {
@@ -1329,8 +1329,8 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1329
1329
  className: h,
1330
1330
  slots: c,
1331
1331
  slotProps: i,
1332
- ContentComponent: f = Ce,
1333
- ContentProps: I,
1332
+ ContentComponent: d = Ce,
1333
+ ContentProps: m,
1334
1334
  itemId: T,
1335
1335
  id: P,
1336
1336
  label: y,
@@ -1338,7 +1338,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1338
1338
  onMouseDown: v,
1339
1339
  onBlur: F,
1340
1340
  onKeyDown: B
1341
- } = d, V = A(d, wn), {
1341
+ } = u, V = A(u, wn), {
1342
1342
  expanded: L,
1343
1343
  focused: W,
1344
1344
  selected: G,
@@ -1348,23 +1348,23 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1348
1348
  handleCancelItemLabelEditing: ue,
1349
1349
  handleSaveItemLabel: de
1350
1350
  } = Qe(T);
1351
- process.env.NODE_ENV !== "production" && (d.ContentComponent && xe(["MUI X: The ContentComponent prop of the TreeItem component is deprecated and will be removed in the next major release.", "You can use the new TreeItem2 component or the new useTreeItem2 hook to customize the rendering of the content.", "For more detail, see https://mui.com/x/react-tree-view/tree-item-customization/."]), d.ContentProps && xe(["MUI X: The ContentProps prop of the TreeItem component is deprecated and will be removed in the next major release.", "You can use the new TreeItem2 component or the new useTreeItem2 hook to customize the rendering of the content.", "For more detail, see https://mui.com/x/react-tree-view/tree-item-customization/."]));
1351
+ process.env.NODE_ENV !== "production" && (u.ContentComponent && xe(["MUI X: The ContentComponent prop of the TreeItem component is deprecated and will be removed in the next major release.", "You can use the new TreeItem2 component or the new useTreeItem2 hook to customize the rendering of the content.", "For more detail, see https://mui.com/x/react-tree-view/tree-item-customization/."]), u.ContentProps && xe(["MUI X: The ContentProps prop of the TreeItem component is deprecated and will be removed in the next major release.", "You can use the new TreeItem2 component or the new useTreeItem2 hook to customize the rendering of the content.", "For more detail, see https://mui.com/x/react-tree-view/tree-item-customization/."]));
1352
1352
  const {
1353
1353
  contentRef: M,
1354
1354
  rootRef: Y,
1355
1355
  propsEnhancers: D
1356
- } = l(d), Q = E.useRef(null), we = E.useRef(null), nt = Ee(n, Y, Q), ot = Ee(I == null ? void 0 : I.ref, M, we), z = {
1356
+ } = l(u), Q = E.useRef(null), we = E.useRef(null), nt = Ee(n, Y, Q), ot = Ee(m == null ? void 0 : m.ref, M, we), z = {
1357
1357
  expandIcon: (c == null ? void 0 : c.expandIcon) ?? r.slots.expandIcon ?? At,
1358
1358
  collapseIcon: (c == null ? void 0 : c.collapseIcon) ?? r.slots.collapseIcon ?? Vt,
1359
1359
  endIcon: (c == null ? void 0 : c.endIcon) ?? r.slots.endIcon,
1360
1360
  icon: c == null ? void 0 : c.icon,
1361
1361
  groupTransition: c == null ? void 0 : c.groupTransition
1362
- }, Re = (w) => Array.isArray(w) ? w.length > 0 && w.some(Re) : !!w, Z = Re(b), fe = C({}, d, {
1362
+ }, Re = (w) => Array.isArray(w) ? w.length > 0 && w.some(Re) : !!w, Z = Re(b), fe = C({}, u, {
1363
1363
  expanded: L,
1364
1364
  focused: W,
1365
1365
  selected: G,
1366
1366
  disabled: j,
1367
- indentationAtItemLevel: m
1367
+ indentationAtItemLevel: I
1368
1368
  }), k = kn(fe), Se = z.groupTransition ?? void 0, rt = N({
1369
1369
  elementType: Se,
1370
1370
  ownerState: {},
@@ -1374,7 +1374,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1374
1374
  in: L,
1375
1375
  component: "ul",
1376
1376
  role: "group"
1377
- }, m ? {
1377
+ }, I ? {
1378
1378
  indentationAtItemLevel: !0
1379
1379
  } : {}),
1380
1380
  className: k.groupTransition
@@ -1397,7 +1397,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1397
1397
  externalSlotProps: i == null ? void 0 : i.icon
1398
1398
  }), pt = A(ft, Pn), mt = Ie ? /* @__PURE__ */ S(Ie, C({}, pt)) : null;
1399
1399
  let ee;
1400
- G ? ee = !0 : p || j ? ee = void 0 : ee = !1;
1400
+ G ? ee = !0 : f || j ? ee = void 0 : ee = !1;
1401
1401
  function It(w) {
1402
1402
  !W && (!j || x) && w.currentTarget === w.target && o.focusItem(w, T);
1403
1403
  }
@@ -1412,7 +1412,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1412
1412
  B == null || B(w), ((q = (_ = w.target) == null ? void 0 : _.dataset) == null ? void 0 : q.element) !== "labelInput" && o.handleItemKeyDown(w, T);
1413
1413
  }, ht = _e({
1414
1414
  itemId: T,
1415
- treeId: u,
1415
+ treeId: p,
1416
1416
  id: P
1417
1417
  }), xt = o.canItemBeTabbed(T) ? 0 : -1, te = {
1418
1418
  rootRefObject: Q,
@@ -1424,7 +1424,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1424
1424
  }, Et = ((ke = D.root) == null ? void 0 : ke.call(D, C({}, te, {
1425
1425
  externalEventHandlers: Fe(V)
1426
1426
  }))) ?? {}, Tt = ((Me = D.content) == null ? void 0 : Me.call(D, C({}, te, {
1427
- externalEventHandlers: Fe(I)
1427
+ externalEventHandlers: Fe(m)
1428
1428
  }))) ?? {}, Pe = ((De = D.dragAndDropOverlay) == null ? void 0 : De.call(D, C({}, te, {
1429
1429
  externalEventHandlers: {}
1430
1430
  }))) ?? {}, ve = ((Oe = D.labelInput) == null ? void 0 : Oe.call(D, C({}, te, {
@@ -1446,12 +1446,12 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1446
1446
  onBlur: gt,
1447
1447
  onKeyDown: bt,
1448
1448
  ref: nt,
1449
- style: m ? C({}, V.style, {
1449
+ style: I ? C({}, V.style, {
1450
1450
  "--TreeView-itemDepth": typeof s == "function" ? s(T) : s
1451
1451
  }) : V.style
1452
1452
  }, Et, {
1453
1453
  children: [/* @__PURE__ */ S(Dn, C({
1454
- as: f,
1454
+ as: d,
1455
1455
  classes: {
1456
1456
  root: k.content,
1457
1457
  expanded: k.expanded,
@@ -1473,7 +1473,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
1473
1473
  expansionIcon: at,
1474
1474
  displayIcon: dt,
1475
1475
  ownerState: fe
1476
- }, I, Tt, Pe.action == null ? {} : {
1476
+ }, m, Tt, Pe.action == null ? {} : {
1477
1477
  dragAndDropOverlayProps: Pe
1478
1478
  }, ve.value == null ? {} : {
1479
1479
  labelInputProps: ve
@@ -1558,8 +1558,8 @@ function An({
1558
1558
  itemId: l,
1559
1559
  itemsToRender: x
1560
1560
  }) {
1561
- const m = (e == null ? void 0 : e.item) ?? Ze, p = N({
1562
- elementType: m,
1561
+ const I = (e == null ? void 0 : e.item) ?? Ze, f = N({
1562
+ elementType: I,
1563
1563
  externalSlotProps: t == null ? void 0 : t.item,
1564
1564
  additionalProps: {
1565
1565
  itemId: l,
@@ -1570,13 +1570,13 @@ function An({
1570
1570
  itemId: l,
1571
1571
  label: n
1572
1572
  }
1573
- }), g = A(p, Vn), u = E.useMemo(() => x ? /* @__PURE__ */ S(et, {
1573
+ }), g = A(f, Vn), p = E.useMemo(() => x ? /* @__PURE__ */ S(et, {
1574
1574
  itemsToRender: x,
1575
1575
  slots: e,
1576
1576
  slotProps: t
1577
1577
  }) : null, [x, e, t]);
1578
- return /* @__PURE__ */ S(m, C({}, g, {
1579
- children: u
1578
+ return /* @__PURE__ */ S(I, C({}, g, {
1579
+ children: p
1580
1580
  }));
1581
1581
  }
1582
1582
  function et(e) {
@@ -1622,18 +1622,18 @@ const Fn = Ue(), Ln = (e) => {
1622
1622
  const {
1623
1623
  getRootProps: l,
1624
1624
  contextValue: x,
1625
- instance: m
1625
+ instance: I
1626
1626
  } = ln({
1627
1627
  plugins: yn,
1628
1628
  rootRef: n,
1629
1629
  props: r
1630
1630
  }), {
1631
- slots: p,
1631
+ slots: f,
1632
1632
  slotProps: g
1633
- } = r, u = Ln(r), o = (p == null ? void 0 : p.root) ?? jn, s = N({
1633
+ } = r, p = Ln(r), o = (f == null ? void 0 : f.root) ?? jn, s = N({
1634
1634
  elementType: o,
1635
1635
  externalSlotProps: g == null ? void 0 : g.root,
1636
- className: u.root,
1636
+ className: p.root,
1637
1637
  getSlotProps: l,
1638
1638
  ownerState: r
1639
1639
  });
@@ -1641,9 +1641,9 @@ const Fn = Ue(), Ln = (e) => {
1641
1641
  value: x,
1642
1642
  children: /* @__PURE__ */ S(o, C({}, s, {
1643
1643
  children: /* @__PURE__ */ S(et, {
1644
- slots: p,
1644
+ slots: f,
1645
1645
  slotProps: g,
1646
- itemsToRender: m.getItemsToRender()
1646
+ itemsToRender: I.getItemsToRender()
1647
1647
  })
1648
1648
  }))
1649
1649
  });
@@ -1841,43 +1841,46 @@ const no = ({
1841
1841
  selectedItemId: t,
1842
1842
  handleSelectedItemChange: n,
1843
1843
  iconColor: r = "primary",
1844
- height: l = 300
1844
+ hasNoIcons: l = !1,
1845
+ maxHeight: x = 300,
1846
+ defaultExpandedItems: I = []
1845
1847
  }) => {
1846
- const [x, m] = yt([]), p = Ct(() => Kt(e), [e]);
1848
+ const [f, g] = yt(I), p = Ct(() => Kt(e), [e]);
1847
1849
  return wt(() => {
1848
1850
  if (t) {
1849
- const u = Ut(e, t);
1850
- if (u) {
1851
- const o = u.slice(0, -1);
1852
- m((s) => {
1853
- const d = o.filter(
1854
- (b) => !s.includes(b)
1851
+ const s = Ut(e, t);
1852
+ if (s) {
1853
+ const u = s.slice(0, -1);
1854
+ g((b) => {
1855
+ const h = u.filter(
1856
+ (c) => !b.includes(c)
1855
1857
  );
1856
- return d.length > 0 ? [...s, ...d] : s;
1858
+ return h.length > 0 ? [...b, ...h] : b;
1857
1859
  });
1858
1860
  }
1859
1861
  }
1860
- }, [t, e]), /* @__PURE__ */ S($t, { height: l, "data-treeview-root": "true", children: /* @__PURE__ */ S(
1862
+ }, [t, e]), /* @__PURE__ */ S($t, { maxHeight: x, "data-treeview-root": "true", children: /* @__PURE__ */ S(
1861
1863
  tt,
1862
1864
  {
1863
1865
  items: e,
1864
1866
  selectedItems: t,
1865
- expandedItems: x,
1866
- onExpandedItemsChange: (u, o) => {
1867
- m(o);
1867
+ expandedItems: f,
1868
+ onExpandedItemsChange: (s, u) => {
1869
+ g(u);
1868
1870
  },
1869
1871
  itemChildrenIndentation: Nt,
1870
1872
  onSelectedItemsChange: n,
1871
1873
  getItemId: Bt,
1872
1874
  slots: {
1873
- item: (u) => {
1874
- const o = u.itemId ? p[u.itemId] : void 0;
1875
+ item: (s) => {
1876
+ const u = s.itemId ? p[s.itemId] : void 0;
1875
1877
  return /* @__PURE__ */ S(
1876
1878
  _t,
1877
1879
  {
1878
- ...u,
1879
- itemData: o,
1880
- iconColor: r
1880
+ ...s,
1881
+ itemData: u,
1882
+ iconColor: r,
1883
+ hasNoIcons: l
1881
1884
  }
1882
1885
  );
1883
1886
  }