@cgi-learning-hub/ui 1.4.0 → 1.5.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 (335) hide show
  1. package/dist/Alert-CvizDCvx.cjs +1 -0
  2. package/dist/Alert-D7eKsj1P.js +452 -0
  3. package/dist/Autocomplete-Cfz4sLy8.js +1829 -0
  4. package/dist/Autocomplete-DjU6i3zL.cjs +6 -0
  5. package/dist/Backdrop-BM-OE2Q_.cjs +1 -0
  6. package/dist/{Backdrop-DdA12b-5.js → Backdrop-COiz4sPF.js} +20 -19
  7. package/dist/Box-BmfpLwYG.cjs +1 -0
  8. package/dist/{Box-DbRInJ2-.js → Box-C-j-U8SH.js} +7 -7
  9. package/dist/Button-BGWvL_UD.cjs +1 -0
  10. package/dist/{Button-rxIER0bL.js → Button-CQQdMCSm.js} +147 -113
  11. package/dist/{ButtonBase-DzpmdR6N.js → ButtonBase-CZFKUUHD.js} +4 -4
  12. package/dist/{ButtonBase-C2rhY3j-.cjs → ButtonBase-NqQjeQ4X.cjs} +1 -1
  13. package/dist/CardContent-GHLuvxgm.cjs +1 -0
  14. package/dist/{CardContent-u1MKaFvP.js → CardContent-sX9Bw4Ke.js} +3 -3
  15. package/dist/{Checkbox-BI77q7eR.js → Checkbox-1Zr36vDa.js} +23 -22
  16. package/dist/Checkbox-BZYoJieY.cjs +1 -0
  17. package/dist/{Chip-6-zATjcr.js → Chip-BsErraqe.js} +50 -49
  18. package/dist/Chip-Cu_SZxrx.cjs +1 -0
  19. package/dist/{CircularProgress-CDa_qU1a.js → CircularProgress-BBHGA0JX.js} +14 -13
  20. package/dist/CircularProgress-CdS7-HOv.cjs +28 -0
  21. package/dist/Close-ZXg7X3Tz.cjs +1 -0
  22. package/dist/Close-r-ZUhk0-.js +9 -0
  23. package/dist/{CloseRounded-DTpqUeWr.js → CloseRounded-B-eaQsyM.js} +1 -1
  24. package/dist/{CloseRounded-DQWTEbNz.cjs → CloseRounded-CWmxueMc.cjs} +1 -1
  25. package/dist/CustomTreeItem-BIl2yiro.cjs +4 -0
  26. package/dist/CustomTreeItem-BpAK85gf.js +1336 -0
  27. package/dist/{DatePicker-BTTLIBm9.js → DatePicker-CWMXTgRG.js} +3032 -3133
  28. package/dist/DatePicker-tyDzcyzu.cjs +14 -0
  29. package/dist/DefaultPropsProvider-BTnRBr0O.cjs +1 -0
  30. package/dist/{DefaultPropsProvider-BcmyIf2H.js → DefaultPropsProvider-CXfMJdg8.js} +24 -24
  31. package/dist/Delete-CpTtpM4U.cjs +1 -0
  32. package/dist/Delete-DKn2lIDB.js +8 -0
  33. package/dist/Dialog-DIHzs0ro.cjs +1 -0
  34. package/dist/{Dialog-CgBiKk8B.js → Dialog-pU1ZAttp.js} +17 -16
  35. package/dist/DialogContent-B-9ga3Wv.cjs +1 -0
  36. package/dist/{DialogContent-SYCCu1VD.js → DialogContent-BEgapieO.js} +3 -3
  37. package/dist/DialogTitle-B_UN_oL2.cjs +1 -0
  38. package/dist/{DialogTitle-_yayDwkI.js → DialogTitle-Dcls3mcZ.js} +5 -5
  39. package/dist/{Divider-Doy31VS6.js → Divider-CT4XaEn6.js} +8 -8
  40. package/dist/Divider-iYLSpFUc.cjs +1 -0
  41. package/dist/Folder-DWD_1Fux.cjs +1 -0
  42. package/dist/Folder-DoEl37QZ.js +8 -0
  43. package/dist/{FormLabel-DjkS3S9h.js → FormLabel-BF6m-_uI.js} +68 -76
  44. package/dist/FormLabel-Cp2OFw8d.cjs +2 -0
  45. package/dist/{Grow-DPD-iBAX.js → Grow-Bk7XkPFP.js} +14 -13
  46. package/dist/Grow-DXY5DOqR.cjs +1 -0
  47. package/dist/IconButton-BLZJne06.cjs +2 -0
  48. package/dist/{IconButton-B4bt0Hp2.js → IconButton-BQW0xjdH.js} +27 -26
  49. package/dist/InputAdornment-C0WI_oQg.cjs +1 -0
  50. package/dist/{InputAdornment-GzDm1zf_.js → InputAdornment-C6UfLaud.js} +9 -8
  51. package/dist/InputBase-B3KOyouT.cjs +3 -0
  52. package/dist/{InputBase-CF5oNEfh.js → InputBase-YOnatBxw.js} +41 -40
  53. package/dist/{Link-CnahHTmK.js → Link-C3rf4gqc.js} +11 -10
  54. package/dist/Link-lvpmE2yz.cjs +1 -0
  55. package/dist/List-CFInjv2S.js +130 -0
  56. package/dist/List-PQXGlDbt.cjs +1 -0
  57. package/dist/ListItem-BAAZxsu5.js +423 -0
  58. package/dist/ListItem-CWEvdMjN.cjs +1 -0
  59. package/dist/ListItemText-BhxrnTkb.cjs +1 -0
  60. package/dist/ListItemText-CADHegDF.js +928 -0
  61. package/dist/{Menu-DzBX10ev.js → Menu-BgO92SV3.js} +302 -424
  62. package/dist/Menu-DBacrp-P.cjs +7 -0
  63. package/dist/{MenuItem-DQQ-p2ie.js → MenuItem-B8eWAj8E.js} +72 -77
  64. package/dist/MenuItem-DkcVAo3U.cjs +1 -0
  65. package/dist/{Modal-B8JRJWm0.js → Modal-CFv4UMTP.js} +8 -8
  66. package/dist/{Modal-D8lS9C1l.cjs → Modal-kUvS-N46.cjs} +2 -2
  67. package/dist/MoreVert-B_Gz5Gfx.cjs +1 -0
  68. package/dist/MoreVert-Dq8BqKg4.js +8 -0
  69. package/dist/Paper-ByOgFIEE.cjs +2 -0
  70. package/dist/{Paper-CbgkVQVx.js → Paper-DeL_n4k9.js} +4 -4
  71. package/dist/{Popper-1-DDNRPD.js → Popper-BKxRTMsO.js} +31 -30
  72. package/dist/Popper-CsQqc5DE.cjs +4 -0
  73. package/dist/{Portal-T-1Qk77D.js → Portal-7MKUQzjh.js} +2 -2
  74. package/dist/Portal-DhGy1jKe.cjs +1 -0
  75. package/dist/{Radio-BxMxeQa-.js → Radio-BVfoGshx.js} +9 -8
  76. package/dist/Radio-DG-k6cXx.cjs +1 -0
  77. package/dist/{RadioGroup-BLrD8_Lp.js → RadioGroup-DcqRUtV8.js} +3 -3
  78. package/dist/RadioGroup-Dd0mX-H2.cjs +1 -0
  79. package/dist/{Select-B6mYfJPA.js → Select-Vnsr3NSv.js} +49 -48
  80. package/dist/Select-b6liJFDI.cjs +3 -0
  81. package/dist/{Stack-aCUdCw1A.js → Stack-PQFKjbdN.js} +104 -59
  82. package/dist/Stack-gtxG2YLo.cjs +1 -0
  83. package/dist/Switch-BlwDxL6O.cjs +1 -0
  84. package/dist/{Switch-BOpqo-TS.js → Switch-Bn8zlIOf.js} +11 -10
  85. package/dist/SwitchBase-DtKlxrES.cjs +1 -0
  86. package/dist/{SwitchBase-BAjfatYA.js → SwitchBase-QwOXoy8f.js} +21 -20
  87. package/dist/Tab-A0R3g6rB.js +1394 -0
  88. package/dist/Tab-Dx7V4E6B.cjs +4 -0
  89. package/dist/TextField-CB2n4aV8.cjs +1 -0
  90. package/dist/{TextField-CAmc1Qpg.js → TextField-Di6Nfe3O.js} +18 -17
  91. package/dist/ToggleButtonGroup-B-zfmsAO.js +7716 -0
  92. package/dist/ToggleButtonGroup-D3bdznCl.cjs +137 -0
  93. package/dist/Tooltip-D0jvnXYu.cjs +4 -0
  94. package/dist/{Tooltip-BvVFPsVR.js → Tooltip-KTkLBRQj.js} +30 -29
  95. package/dist/Typography-3CpuuLtj.cjs +1 -0
  96. package/dist/{Typography-CE8fQQ8B.js → Typography-DZ11k9cZ.js} +13 -12
  97. package/dist/capitalize-B3tmp8MO.cjs +1 -0
  98. package/dist/capitalize-Bs7Xs33U.js +9 -0
  99. package/dist/components/Alert/Alert.cjs.js +1 -1
  100. package/dist/components/Alert/Alert.d.ts +3 -3
  101. package/dist/components/Alert/Alert.es.js +5 -20
  102. package/dist/components/Alert/index.cjs.js +1 -1
  103. package/dist/components/Alert/index.es.js +2 -2
  104. package/dist/components/Button/Button.cjs.js +1 -1
  105. package/dist/components/Button/Button.es.js +2 -2
  106. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  107. package/dist/components/DatePicker/DatePicker.es.js +2 -3
  108. package/dist/components/DatePicker/index.cjs.js +1 -1
  109. package/dist/components/DatePicker/index.es.js +1 -1
  110. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  111. package/dist/components/Dialog/Dialog.es.js +2 -2
  112. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  113. package/dist/components/Dropzone/Dropzone.d.ts +2 -0
  114. package/dist/components/Dropzone/Dropzone.es.js +33 -30
  115. package/dist/components/Dropzone/types.cjs.js +1 -0
  116. package/dist/components/Dropzone/types.d.ts +8 -0
  117. package/dist/components/Dropzone/types.es.js +1 -0
  118. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  119. package/dist/components/EmptyState/EmptyState.d.ts +10 -2
  120. package/dist/components/EmptyState/EmptyState.es.js +26 -26
  121. package/dist/components/FileList/FileIcon.cjs.js +1 -1
  122. package/dist/components/FileList/FileIcon.es.js +1 -1
  123. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  124. package/dist/components/FileList/FileListItem.es.js +14 -13
  125. package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
  126. package/dist/components/FolderCard/FolderCard.d.ts +11 -0
  127. package/dist/components/FolderCard/FolderCard.es.js +79 -0
  128. package/dist/components/FolderCard/index.cjs.js +1 -0
  129. package/dist/components/FolderCard/index.d.ts +2 -0
  130. package/dist/components/FolderCard/index.es.js +4 -0
  131. package/dist/components/FolderCard/styles.cjs.js +1 -0
  132. package/dist/components/FolderCard/styles.d.ts +20 -0
  133. package/dist/components/FolderCard/styles.es.js +23 -0
  134. package/dist/components/FolderCard/types.cjs.js +1 -0
  135. package/dist/components/FolderCard/types.d.ts +3 -0
  136. package/dist/components/FolderCard/types.es.js +14 -0
  137. package/dist/components/Heading/Heading.cjs.js +1 -1
  138. package/dist/components/Heading/Heading.es.js +2 -2
  139. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  140. package/dist/components/ImagePicker/ImagePicker.es.js +54 -51
  141. package/dist/components/Loader/Loader.cjs.js +1 -1
  142. package/dist/components/Loader/Loader.es.js +8 -9
  143. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  144. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +4 -5
  145. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  146. package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
  147. package/dist/components/PasswordInput/PasswordInput.es.js +28 -37
  148. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  149. package/dist/components/QueryError/QueryError.es.js +23 -20
  150. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  151. package/dist/components/ResourceCard/ResourceCard.es.js +21 -23
  152. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  153. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  154. package/dist/components/TreeView/TreeView.cjs.js +7 -0
  155. package/dist/components/TreeView/TreeView.d.ts +4 -0
  156. package/dist/components/TreeView/TreeView.es.js +1890 -0
  157. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
  158. package/dist/components/TreeView/components/CustomTreeItem.d.ts +6 -0
  159. package/dist/components/TreeView/components/CustomTreeItem.es.js +8 -0
  160. package/dist/components/TreeView/index.cjs.js +1 -0
  161. package/dist/components/TreeView/index.d.ts +2 -0
  162. package/dist/components/TreeView/index.es.js +6 -0
  163. package/dist/components/TreeView/style.cjs.js +1 -0
  164. package/dist/components/TreeView/style.es.js +29 -0
  165. package/dist/components/TreeView/types.cjs.js +1 -0
  166. package/dist/components/TreeView/types.d.ts +41 -0
  167. package/dist/components/TreeView/types.es.js +4 -0
  168. package/dist/components/TreeView/utils.cjs.js +1 -0
  169. package/dist/components/TreeView/utils.d.ts +6 -0
  170. package/dist/components/TreeView/utils.es.js +50 -0
  171. package/dist/components/index.cjs.js +1 -1
  172. package/dist/components/index.d.ts +12 -1
  173. package/dist/components/index.es.js +368 -344
  174. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  175. package/dist/components/stories/Alert.stories.es.js +1 -1
  176. package/dist/components/stories/Autocomplete.stories.cjs.js +3 -0
  177. package/dist/components/stories/Autocomplete.stories.d.ts +6 -0
  178. package/dist/components/stories/Autocomplete.stories.es.js +62 -0
  179. package/dist/components/stories/Button.stories.cjs.js +1 -1
  180. package/dist/components/stories/Button.stories.es.js +1 -1
  181. package/dist/components/stories/Card.stories.cjs.js +1 -1
  182. package/dist/components/stories/Card.stories.es.js +2 -2
  183. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  184. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  185. package/dist/components/stories/Chip.stories.cjs.js +1 -1
  186. package/dist/components/stories/Chip.stories.es.js +1 -1
  187. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  188. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  189. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  190. package/dist/components/stories/Dialog.stories.es.js +2 -2
  191. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  192. package/dist/components/stories/Divider.stories.es.js +1 -1
  193. package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
  194. package/dist/components/stories/EmptyState.stories.es.js +23 -7
  195. package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
  196. package/dist/components/stories/FolderCard.stories.d.ts +7 -0
  197. package/dist/components/stories/FolderCard.stories.es.js +71 -0
  198. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  199. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  200. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  201. package/dist/components/stories/Heading.stories.es.js +2 -2
  202. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  203. package/dist/components/stories/IconButton.stories.es.js +2 -2
  204. package/dist/components/stories/Link.stories.cjs.js +1 -1
  205. package/dist/components/stories/Link.stories.es.js +1 -1
  206. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  207. package/dist/components/stories/Menu.stories.es.js +2 -2
  208. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  209. package/dist/components/stories/Paper.stories.es.js +1 -1
  210. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  211. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  212. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  213. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  214. package/dist/components/stories/Select.stories.cjs.js +1 -1
  215. package/dist/components/stories/Select.stories.es.js +3 -3
  216. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  217. package/dist/components/stories/TabList.stories.es.js +21 -184
  218. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  219. package/dist/components/stories/TextField.stories.es.js +1 -1
  220. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  221. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  222. package/dist/components/stories/TreeView.stories.cjs.js +69 -0
  223. package/dist/components/stories/TreeView.stories.d.ts +13 -0
  224. package/dist/components/stories/TreeView.stories.es.js +786 -0
  225. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  226. package/dist/components/stories/Typography.stories.es.js +1 -1
  227. package/dist/createSvgIcon-2wwaxLPT.cjs +1 -0
  228. package/dist/{createSvgIcon-CCejzj0C.js → createSvgIcon-BFqOnlgU.js} +19 -18
  229. package/dist/{dividerClasses-DN9F43tq.js → dividerClasses-BYkvalOn.js} +1 -1
  230. package/dist/dividerClasses-izm7KFVg.cjs +1 -0
  231. package/dist/{elementTypeAcceptingRef-CrAqn_fc.js → elementTypeAcceptingRef-1usJq_B8.js} +1 -1
  232. package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +1 -0
  233. package/dist/extendSxProp-Bv3E507G.cjs +1 -0
  234. package/dist/{extendSxProp-DFv-GFt5.js → extendSxProp-D_IkoDXB.js} +1 -1
  235. package/dist/{identifier-D58rA1gM.js → generateUtilityClasses-CqzQXpT_.js} +885 -855
  236. package/dist/generateUtilityClasses-KugHyZhN.cjs +75 -0
  237. package/dist/getReactElementRef-D7IvykPI.cjs +1 -0
  238. package/dist/getReactElementRef-DtLerx40.js +31 -0
  239. package/dist/index-9hEUqvaJ.cjs +1 -0
  240. package/dist/index-BomeQRLD.cjs +5 -0
  241. package/dist/{index-BGS2uu2L.js → index-C7WfZsMe.js} +1 -1
  242. package/dist/{index-ClXCinr6.js → index-CFIk4hVM.js} +4 -4
  243. package/dist/index-DS8G_wjP.cjs +1 -0
  244. package/dist/index-sDFEVHTg.js +22 -0
  245. package/dist/index.cjs.js +1 -1
  246. package/dist/index.es.js +368 -344
  247. package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
  248. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  249. package/dist/listItemTextClasses-C0D3xQur.js +9 -0
  250. package/dist/listItemTextClasses-CQXcckDA.cjs +1 -0
  251. package/dist/{memoTheme-DyiN-Awd.js → memoTheme-B0xVysYu.js} +1 -1
  252. package/dist/{memoTheme-C8EfvlY1.cjs → memoTheme-WwIyYqBX.cjs} +1 -1
  253. package/dist/{refType-B86yTZra.js → refType-BvSJNaoq.js} +1 -1
  254. package/dist/refType-D-n-tVSl.cjs +1 -0
  255. package/dist/resolveComponentProps-Byi_59AN.cjs +1 -0
  256. package/dist/{resolveComponentProps-0QnU-fDT.js → resolveComponentProps-Ctw0-dUN.js} +1 -1
  257. package/dist/{useSlot-CyXLaLc2.cjs → useSlot-CGbU9jGm.cjs} +1 -1
  258. package/dist/{useSlot-CZNcsPv1.js → useSlot-CqjfyGd9.js} +1 -1
  259. package/dist/useSlotProps-Ceyorp-u.js +25 -0
  260. package/dist/useSlotProps-DfO7r_4Y.cjs +1 -0
  261. package/dist/{useTheme-DxxkErdZ.js → useTheme-2JCMQS-E.js} +1 -1
  262. package/dist/useTheme-B6wow4M9.cjs +1 -0
  263. package/dist/useTheme-DepbBZga.js +11 -0
  264. package/dist/useTheme-MahNaB8C.cjs +1 -0
  265. package/dist/useThemeProps-BqypsO1h.cjs +1 -0
  266. package/dist/{useThemeProps-BGZrRNnL.js → useThemeProps-Cuazh32X.js} +2 -2
  267. package/dist/useThemeProps-Drd5oJEF.js +17 -0
  268. package/dist/{useThemeProps-CpNQz1Ap.cjs → useThemeProps-RdxbcMsR.cjs} +1 -1
  269. package/dist/{utils-SrEVp7Pm.js → utils-BVg32WSe.js} +76 -104
  270. package/dist/utils-CUU5fjzL.cjs +1 -0
  271. package/package.json +2 -1
  272. package/dist/Backdrop-COarwgJj.cjs +0 -1
  273. package/dist/Box-C0mEbUoK.cjs +0 -1
  274. package/dist/Button-1tZRtOeG.cjs +0 -1
  275. package/dist/CardContent-BXjX98Jd.cjs +0 -1
  276. package/dist/Checkbox-C6CIGK27.cjs +0 -1
  277. package/dist/Chip-CAPnyZyW.cjs +0 -1
  278. package/dist/CircularProgress-DTVP6gln.cjs +0 -28
  279. package/dist/DatePicker-CJ5-Udgh.cjs +0 -14
  280. package/dist/DefaultPropsProvider-QmkL7lbM.cjs +0 -1
  281. package/dist/Dialog-Cmv58WoN.cjs +0 -1
  282. package/dist/DialogContent-CGEdCDYk.cjs +0 -1
  283. package/dist/DialogTitle-Dxm2NHs7.cjs +0 -1
  284. package/dist/Divider-D_LVNUqS.cjs +0 -1
  285. package/dist/FormLabel-D0gSgwnj.cjs +0 -2
  286. package/dist/Grow-D7scX77o.cjs +0 -1
  287. package/dist/IconButton-Edo5JMfQ.cjs +0 -2
  288. package/dist/InputAdornment-C9NrmB_z.cjs +0 -1
  289. package/dist/InputBase-CgOQ0M4_.cjs +0 -3
  290. package/dist/Link-CAbb9OCV.cjs +0 -1
  291. package/dist/Menu-C-R0FVOB.cjs +0 -7
  292. package/dist/MenuItem-Cp1_Q0FD.cjs +0 -1
  293. package/dist/Paper-C-oPGpbI.cjs +0 -2
  294. package/dist/Popper-uw9PkkLY.cjs +0 -4
  295. package/dist/Portal-bIKnnWR4.cjs +0 -1
  296. package/dist/Radio-CvCkmq8g.cjs +0 -1
  297. package/dist/RadioGroup-Ya-I8Lz1.cjs +0 -1
  298. package/dist/Select-KMdcuol6.cjs +0 -3
  299. package/dist/Stack-C6v70ALA.cjs +0 -1
  300. package/dist/Switch-DF4bSjED.cjs +0 -1
  301. package/dist/SwitchBase-7zONZyYP.cjs +0 -1
  302. package/dist/Tabs-CrWcC5nJ.js +0 -1225
  303. package/dist/Tabs-Dploq_37.cjs +0 -4
  304. package/dist/TextField-BC7GvvHh.cjs +0 -1
  305. package/dist/ToggleButtonGroup-BCVgsika.cjs +0 -140
  306. package/dist/ToggleButtonGroup-ekxVeQCc.js +0 -10461
  307. package/dist/Tooltip-CWA-GKdK.cjs +0 -4
  308. package/dist/Typography-DEAE8-8u.cjs +0 -1
  309. package/dist/components/TextInput/TextInput.cjs.js +0 -1
  310. package/dist/components/TextInput/TextInput.d.ts +0 -4
  311. package/dist/components/TextInput/TextInput.es.js +0 -6
  312. package/dist/components/TextInput/index.cjs.js +0 -1
  313. package/dist/components/TextInput/index.d.ts +0 -2
  314. package/dist/components/TextInput/index.es.js +0 -4
  315. package/dist/createSvgIcon-Dn4BBPej.cjs +0 -1
  316. package/dist/dividerClasses-Zk1QmrZw.cjs +0 -1
  317. package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +0 -1
  318. package/dist/extendSxProp-BB6jYY1x.cjs +0 -1
  319. package/dist/fr-B3qrCNcK.js +0 -312
  320. package/dist/fr-JE-1WKP6.cjs +0 -1
  321. package/dist/identifier-5n4d7br9.cjs +0 -75
  322. package/dist/index-5BAFzrXD.cjs +0 -1
  323. package/dist/index-CFm-oAsb.cjs +0 -1
  324. package/dist/index-CJW5gB6d.cjs +0 -5
  325. package/dist/index-DwHI-aa0.js +0 -45
  326. package/dist/refType-CjW6JOBA.cjs +0 -1
  327. package/dist/resolveComponentProps-D0sgyopa.cjs +0 -1
  328. package/dist/useTheme-Bi8B4Op1.cjs +0 -1
  329. package/dist/useTheme-C_2IF7CS.cjs +0 -1
  330. package/dist/useTheme-Clhsq4HW.js +0 -11
  331. package/dist/useThemeProps-C6qniHmV.js +0 -17
  332. package/dist/useThemeProps-Dq3GRYN1.cjs +0 -1
  333. package/dist/utils-D4if93Yl.cjs +0 -1
  334. /package/dist/assets/{styles.css → Loader.css} +0 -0
  335. /package/dist/assets/{styles2.css → LoaderBackdrop.css} +0 -0
@@ -0,0 +1,1336 @@
1
+ import { jsx as x, jsxs as ie } from "react/jsx-runtime";
2
+ import { c as ae } from "./createSvgIcon-BFqOnlgU.js";
3
+ import { B as Be } from "./Box-C-j-U8SH.js";
4
+ import { _ as f } from "./ButtonBase-CZFKUUHD.js";
5
+ import * as R from "react";
6
+ import { u as ce } from "./useForkRef-C_4o__cU.js";
7
+ import { e as B, r as be } from "./resolveComponentProps-Ctw0-dUN.js";
8
+ import { treeContentStyle as Ke, arrowContainerStyle as Fe, expandedGroupStyle as je } from "./components/TreeView/style.es.js";
9
+ import { getIconComponent as qe } from "./components/TreeView/utils.es.js";
10
+ import { G as Ce, H as we, x as _e, I as Te, P as i, n as oe } from "./generateUtilityClasses-CqzQXpT_.js";
11
+ import { a as ve } from "./TransitionGroupContext-DbLioz_6.js";
12
+ import { u as Ue } from "./useThemeProps-Drd5oJEF.js";
13
+ import { u as We, s as A, c as Pe, f as le } from "./DefaultPropsProvider-CXfMJdg8.js";
14
+ import { u as Ge } from "./useTheme-DepbBZga.js";
15
+ import { m as Xe } from "./memoTheme-B0xVysYu.js";
16
+ import { T as Ye, g as Ie } from "./utils-BVg32WSe.js";
17
+ import { u as Je } from "./useTimeout-CrCYVizI.js";
18
+ import { e as Qe } from "./elementTypeAcceptingRef-1usJq_B8.js";
19
+ import { C as Ze } from "./Checkbox-1Zr36vDa.js";
20
+ import { u as He } from "./unsupportedProp-BuVD30Gh.js";
21
+ import { u as K } from "./useSlotProps-Ceyorp-u.js";
22
+ function et(e) {
23
+ return we("MuiCollapse", e);
24
+ }
25
+ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), tt = (e) => {
26
+ const {
27
+ orientation: t,
28
+ classes: o
29
+ } = e, s = {
30
+ root: ["root", `${t}`],
31
+ entered: ["entered"],
32
+ hidden: ["hidden"],
33
+ wrapper: ["wrapper", `${t}`],
34
+ wrapperInner: ["wrapperInner", `${t}`]
35
+ };
36
+ return Pe(s, et, o);
37
+ }, ot = A("div", {
38
+ name: "MuiCollapse",
39
+ slot: "Root",
40
+ overridesResolver: (e, t) => {
41
+ const {
42
+ ownerState: o
43
+ } = e;
44
+ return [t.root, t[o.orientation], o.state === "entered" && t.entered, o.state === "exited" && !o.in && o.collapsedSize === "0px" && t.hidden];
45
+ }
46
+ })(Xe(({
47
+ theme: e
48
+ }) => ({
49
+ height: 0,
50
+ overflow: "hidden",
51
+ transition: e.transitions.create("height"),
52
+ variants: [{
53
+ props: {
54
+ orientation: "horizontal"
55
+ },
56
+ style: {
57
+ height: "auto",
58
+ width: 0,
59
+ transition: e.transitions.create("width")
60
+ }
61
+ }, {
62
+ props: {
63
+ state: "entered"
64
+ },
65
+ style: {
66
+ height: "auto",
67
+ overflow: "visible"
68
+ }
69
+ }, {
70
+ props: {
71
+ state: "entered",
72
+ orientation: "horizontal"
73
+ },
74
+ style: {
75
+ width: "auto"
76
+ }
77
+ }, {
78
+ props: ({
79
+ ownerState: t
80
+ }) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
81
+ style: {
82
+ visibility: "hidden"
83
+ }
84
+ }]
85
+ }))), nt = A("div", {
86
+ name: "MuiCollapse",
87
+ slot: "Wrapper",
88
+ overridesResolver: (e, t) => t.wrapper
89
+ })({
90
+ // Hack to get children with a negative margin to not falsify the height computation.
91
+ display: "flex",
92
+ width: "100%",
93
+ variants: [{
94
+ props: {
95
+ orientation: "horizontal"
96
+ },
97
+ style: {
98
+ width: "auto",
99
+ height: "100%"
100
+ }
101
+ }]
102
+ }), rt = A("div", {
103
+ name: "MuiCollapse",
104
+ slot: "WrapperInner",
105
+ overridesResolver: (e, t) => t.wrapperInner
106
+ })({
107
+ width: "100%",
108
+ variants: [{
109
+ props: {
110
+ orientation: "horizontal"
111
+ },
112
+ style: {
113
+ width: "auto",
114
+ height: "100%"
115
+ }
116
+ }]
117
+ }), se = /* @__PURE__ */ R.forwardRef(function(t, o) {
118
+ const s = We({
119
+ props: t,
120
+ name: "MuiCollapse"
121
+ }), {
122
+ addEndListener: p,
123
+ children: d,
124
+ className: g,
125
+ collapsedSize: l = "0px",
126
+ component: m,
127
+ easing: c,
128
+ in: h,
129
+ onEnter: b,
130
+ onEntered: C,
131
+ onEntering: r,
132
+ onExit: y,
133
+ onExited: S,
134
+ onExiting: F,
135
+ orientation: X = "vertical",
136
+ style: _,
137
+ timeout: T = _e.standard,
138
+ // eslint-disable-next-line react/prop-types
139
+ TransitionComponent: E = Ye,
140
+ ...P
141
+ } = s, w = {
142
+ ...s,
143
+ orientation: X,
144
+ collapsedSize: l
145
+ }, O = tt(w), U = Ge(), Y = Je(), D = R.useRef(null), j = R.useRef(), q = typeof l == "number" ? `${l}px` : l, M = X === "horizontal", z = M ? "width" : "height", $ = R.useRef(null), H = ce(o, $), N = (I) => (k) => {
146
+ if (I) {
147
+ const L = $.current;
148
+ k === void 0 ? I(L) : I(L, k);
149
+ }
150
+ }, W = () => D.current ? D.current[M ? "clientWidth" : "clientHeight"] : 0, J = N((I, k) => {
151
+ D.current && M && (D.current.style.position = "absolute"), I.style[z] = q, b && b(I, k);
152
+ }), ee = N((I, k) => {
153
+ const L = W();
154
+ D.current && M && (D.current.style.position = "");
155
+ const {
156
+ duration: Z,
157
+ easing: a
158
+ } = Ie({
159
+ style: _,
160
+ timeout: T,
161
+ easing: c
162
+ }, {
163
+ mode: "enter"
164
+ });
165
+ if (T === "auto") {
166
+ const n = U.transitions.getAutoHeightDuration(L);
167
+ I.style.transitionDuration = `${n}ms`, j.current = n;
168
+ } else
169
+ I.style.transitionDuration = typeof Z == "string" ? Z : `${Z}ms`;
170
+ I.style[z] = `${L}px`, I.style.transitionTimingFunction = a, r && r(I, k);
171
+ }), Q = N((I, k) => {
172
+ I.style[z] = "auto", C && C(I, k);
173
+ }), re = N((I) => {
174
+ I.style[z] = `${W()}px`, y && y(I);
175
+ }), ue = N(S), ge = N((I) => {
176
+ const k = W(), {
177
+ duration: L,
178
+ easing: Z
179
+ } = Ie({
180
+ style: _,
181
+ timeout: T,
182
+ easing: c
183
+ }, {
184
+ mode: "exit"
185
+ });
186
+ if (T === "auto") {
187
+ const a = U.transitions.getAutoHeightDuration(k);
188
+ I.style.transitionDuration = `${a}ms`, j.current = a;
189
+ } else
190
+ I.style.transitionDuration = typeof L == "string" ? L : `${L}ms`;
191
+ I.style[z] = q, I.style.transitionTimingFunction = Z, F && F(I);
192
+ });
193
+ return /* @__PURE__ */ x(E, {
194
+ in: h,
195
+ onEnter: J,
196
+ onEntered: Q,
197
+ onEntering: ee,
198
+ onExit: re,
199
+ onExited: ue,
200
+ onExiting: ge,
201
+ addEndListener: (I) => {
202
+ T === "auto" && Y.start(j.current || 0, I), p && p($.current, I);
203
+ },
204
+ nodeRef: $,
205
+ timeout: T === "auto" ? null : T,
206
+ ...P,
207
+ children: (I, {
208
+ ownerState: k,
209
+ ...L
210
+ }) => /* @__PURE__ */ x(ot, {
211
+ as: m,
212
+ className: Te(O.root, g, {
213
+ entered: O.entered,
214
+ exited: !h && q === "0px" && O.hidden
215
+ }[I]),
216
+ style: {
217
+ [M ? "minWidth" : "minHeight"]: q,
218
+ ..._
219
+ },
220
+ ref: H,
221
+ ownerState: {
222
+ ...w,
223
+ state: I
224
+ },
225
+ ...L,
226
+ children: /* @__PURE__ */ x(nt, {
227
+ ownerState: {
228
+ ...w,
229
+ state: I
230
+ },
231
+ className: O.wrapper,
232
+ ref: D,
233
+ children: /* @__PURE__ */ x(rt, {
234
+ ownerState: {
235
+ ...w,
236
+ state: I
237
+ },
238
+ className: O.wrapperInner,
239
+ children: d
240
+ })
241
+ })
242
+ })
243
+ });
244
+ });
245
+ process.env.NODE_ENV !== "production" && (se.propTypes = {
246
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
247
+ // │ These PropTypes are generated from the TypeScript type definitions. │
248
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
249
+ // └─────────────────────────────────────────────────────────────────────┘
250
+ /**
251
+ * Add a custom transition end trigger. Called with the transitioning DOM
252
+ * node and a done callback. Allows for more fine grained transition end
253
+ * logic. Note: Timeouts are still used as a fallback if provided.
254
+ */
255
+ addEndListener: i.func,
256
+ /**
257
+ * The content node to be collapsed.
258
+ */
259
+ children: i.node,
260
+ /**
261
+ * Override or extend the styles applied to the component.
262
+ */
263
+ classes: i.object,
264
+ /**
265
+ * @ignore
266
+ */
267
+ className: i.string,
268
+ /**
269
+ * The width (horizontal) or height (vertical) of the container when collapsed.
270
+ * @default '0px'
271
+ */
272
+ collapsedSize: i.oneOfType([i.number, i.string]),
273
+ /**
274
+ * The component used for the root node.
275
+ * Either a string to use a HTML element or a component.
276
+ */
277
+ component: Qe,
278
+ /**
279
+ * The transition timing function.
280
+ * You may specify a single easing or a object containing enter and exit values.
281
+ */
282
+ easing: i.oneOfType([i.shape({
283
+ enter: i.string,
284
+ exit: i.string
285
+ }), i.string]),
286
+ /**
287
+ * If `true`, the component will transition in.
288
+ */
289
+ in: i.bool,
290
+ /**
291
+ * @ignore
292
+ */
293
+ onEnter: i.func,
294
+ /**
295
+ * @ignore
296
+ */
297
+ onEntered: i.func,
298
+ /**
299
+ * @ignore
300
+ */
301
+ onEntering: i.func,
302
+ /**
303
+ * @ignore
304
+ */
305
+ onExit: i.func,
306
+ /**
307
+ * @ignore
308
+ */
309
+ onExited: i.func,
310
+ /**
311
+ * @ignore
312
+ */
313
+ onExiting: i.func,
314
+ /**
315
+ * The transition orientation.
316
+ * @default 'vertical'
317
+ */
318
+ orientation: i.oneOf(["horizontal", "vertical"]),
319
+ /**
320
+ * @ignore
321
+ */
322
+ style: i.object,
323
+ /**
324
+ * The system prop that allows defining system overrides as well as additional CSS styles.
325
+ */
326
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
327
+ /**
328
+ * The duration for the transition, in milliseconds.
329
+ * You may specify a single timeout for all transitions, or individually with an object.
330
+ *
331
+ * Set to 'auto' to automatically calculate transition time based on height.
332
+ * @default duration.standard
333
+ */
334
+ timeout: i.oneOfType([i.oneOf(["auto"]), i.number, i.shape({
335
+ appear: i.number,
336
+ enter: i.number,
337
+ exit: i.number
338
+ })])
339
+ });
340
+ se && (se.muiSupportAuto = !0);
341
+ const it = ae(/* @__PURE__ */ x("path", {
342
+ d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
343
+ }), "KeyboardArrowDown"), st = ae(/* @__PURE__ */ x("path", {
344
+ d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
345
+ }), "KeyboardArrowRight"), he = /* @__PURE__ */ new Set();
346
+ function at(e, t = "warning") {
347
+ if (process.env.NODE_ENV === "production")
348
+ return;
349
+ const o = Array.isArray(e) ? e.join(`
350
+ `) : e;
351
+ he.has(o) || (he.add(o), t === "error" ? console.error(o) : console.warn(o));
352
+ }
353
+ function lt(e) {
354
+ return Ue;
355
+ }
356
+ let ye = 0;
357
+ const Yt = () => (ye += 1, `mui-tree-view-${ye}`), dt = ({
358
+ id: e,
359
+ treeId: t = "",
360
+ itemId: o
361
+ }) => e ?? `${t}-${o}`, Ee = /* @__PURE__ */ R.createContext(null);
362
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "TreeViewContext");
363
+ const ne = () => {
364
+ const e = R.useContext(Ee);
365
+ if (e == null)
366
+ throw new Error(["MUI X: Could not find the Tree View context.", "It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
367
+ `));
368
+ return e;
369
+ }, Re = /* @__PURE__ */ R.createContext(() => -1);
370
+ process.env.NODE_ENV !== "production" && (Re.displayName = "TreeViewItemDepthContext");
371
+ const Se = (e, t) => {
372
+ let o = t.length - 1;
373
+ for (; o >= 0 && !e.isItemNavigable(t[o]); )
374
+ o -= 1;
375
+ if (o !== -1)
376
+ return t[o];
377
+ }, ct = (e, t) => {
378
+ const o = e.getItemMeta(t), s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(t);
379
+ if (p === 0)
380
+ return o.parentId;
381
+ let d = p - 1;
382
+ for (; !e.isItemNavigable(s[d]) && d >= 0; )
383
+ d -= 1;
384
+ if (d === -1)
385
+ return o.parentId == null ? null : ct(e, o.parentId);
386
+ let g = s[d], l = Se(e, e.getItemOrderedChildrenIds(g));
387
+ for (; e.isItemExpanded(g) && l != null; )
388
+ g = l, l = e.getItemOrderedChildrenIds(g).find(e.isItemNavigable);
389
+ return g;
390
+ }, pt = (e, t) => {
391
+ if (e.isItemExpanded(t)) {
392
+ const s = e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);
393
+ if (s != null)
394
+ return s;
395
+ }
396
+ let o = e.getItemMeta(t);
397
+ for (; o != null; ) {
398
+ const s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(o.id);
399
+ if (p < s.length - 1) {
400
+ let d = p + 1;
401
+ for (; !e.isItemNavigable(s[d]) && d < s.length - 1; )
402
+ d += 1;
403
+ if (e.isItemNavigable(s[d]))
404
+ return s[d];
405
+ }
406
+ o = e.getItemMeta(o.parentId);
407
+ }
408
+ return null;
409
+ }, Jt = (e) => {
410
+ let t = null;
411
+ for (; t == null || e.isItemExpanded(t); ) {
412
+ const o = e.getItemOrderedChildrenIds(t), s = Se(e, o);
413
+ if (s == null)
414
+ return t;
415
+ t = s;
416
+ }
417
+ return t;
418
+ }, ut = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), gt = (e, t, o) => {
419
+ if (t === o)
420
+ return [t, o];
421
+ const s = e.getItemMeta(t), p = e.getItemMeta(o);
422
+ if (s.parentId === p.id || p.parentId === s.id)
423
+ return p.parentId === s.id ? [s.id, p.id] : [p.id, s.id];
424
+ const d = [s.id], g = [p.id];
425
+ let l = s.parentId, m = p.parentId, c = g.indexOf(l) !== -1, h = d.indexOf(m) !== -1, b = !0, C = !0;
426
+ for (; !h && !c; )
427
+ b && (d.push(l), c = g.indexOf(l) !== -1, b = l !== null, !c && b && (l = e.getItemMeta(l).parentId)), C && !c && (g.push(m), h = d.indexOf(m) !== -1, C = m !== null, !h && C && (m = e.getItemMeta(m).parentId));
428
+ const r = c ? l : m, y = e.getItemOrderedChildrenIds(r), S = d[d.indexOf(r) - 1], F = g[g.indexOf(r) - 1];
429
+ return y.indexOf(S) < y.indexOf(F) ? [t, o] : [o, t];
430
+ }, Qt = (e, t, o) => {
431
+ const s = (m) => {
432
+ if (e.isItemExpandable(m) && e.isItemExpanded(m))
433
+ return e.getItemOrderedChildrenIds(m)[0];
434
+ let c = e.getItemMeta(m);
435
+ for (; c != null; ) {
436
+ const h = e.getItemOrderedChildrenIds(c.parentId), b = e.getItemIndex(c.id);
437
+ if (b < h.length - 1)
438
+ return h[b + 1];
439
+ c = e.getItemMeta(c.parentId);
440
+ }
441
+ throw new Error("Invalid range");
442
+ }, [p, d] = gt(e, t, o), g = [p];
443
+ let l = p;
444
+ for (; l !== d; )
445
+ l = s(l), e.isItemDisabled(l) || g.push(l);
446
+ return g;
447
+ }, Zt = (e) => {
448
+ let t = ut(e);
449
+ const o = [];
450
+ for (; t != null; )
451
+ o.push(t), t = pt(e, t);
452
+ return o;
453
+ }, xe = (e, t) => t !== e.closest('*[role="treeitem"]'), de = (e, t) => e.getAvailablePlugins().has(t), ft = ({
454
+ props: e
455
+ }) => {
456
+ const {
457
+ instance: t
458
+ } = ne(), {
459
+ label: o,
460
+ itemId: s
461
+ } = e, [p, d] = R.useState(o), g = t.isItemBeingEdited(s);
462
+ return R.useEffect(() => {
463
+ g || d(o);
464
+ }, [g, o]), {
465
+ propsEnhancers: {
466
+ labelInput: ({
467
+ externalEventHandlers: l,
468
+ interactions: m
469
+ }) => t.isItemEditable(s) ? {
470
+ value: p ?? "",
471
+ "data-element": "labelInput",
472
+ onChange: (r) => {
473
+ var y;
474
+ (y = l.onChange) == null || y.call(l, r), d(r.target.value);
475
+ },
476
+ onKeyDown: (r) => {
477
+ var S;
478
+ if ((S = l.onKeyDown) == null || S.call(l, r), r.defaultMuiPrevented)
479
+ return;
480
+ const y = r.target;
481
+ r.key === "Enter" && y.value ? m.handleSaveItemLabel(r, y.value) : r.key === "Escape" && m.handleCancelItemLabelEditing(r);
482
+ },
483
+ onBlur: (r) => {
484
+ var y;
485
+ (y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value && m.handleSaveItemLabel(r, r.target.value);
486
+ },
487
+ autoFocus: !0,
488
+ type: "text"
489
+ } : {}
490
+ }
491
+ };
492
+ }, G = ({
493
+ instance: e,
494
+ state: t,
495
+ setState: o,
496
+ params: s
497
+ }) => {
498
+ const p = R.useRef(t.editedItemId), d = (b) => p.current === b, g = (b) => {
499
+ o((C) => f({}, C, {
500
+ editedItemId: b
501
+ })), p.current = b;
502
+ }, l = (b) => b === t.editedItemId, m = !!s.isItemEditable, c = (b) => {
503
+ if (b == null || !m)
504
+ return !1;
505
+ const C = e.getItem(b);
506
+ return C ? typeof s.isItemEditable == "function" ? s.isItemEditable(C) : !!s.isItemEditable : !1;
507
+ }, h = (b, C) => {
508
+ if (!C)
509
+ throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "The label of an item cannot be empty.", b].join(`
510
+ `));
511
+ o((r) => {
512
+ const y = r.items.itemMetaMap[b];
513
+ return y.label !== C ? f({}, r, {
514
+ items: f({}, r.items, {
515
+ itemMetaMap: f({}, r.items.itemMetaMap, {
516
+ [b]: f({}, y, {
517
+ label: C
518
+ })
519
+ })
520
+ })
521
+ }) : r;
522
+ }), s.onItemLabelChange && s.onItemLabelChange(b, C);
523
+ };
524
+ return {
525
+ instance: {
526
+ setEditedItemId: g,
527
+ isItemBeingEdited: l,
528
+ updateItemLabel: h,
529
+ isItemEditable: c,
530
+ isTreeViewEditable: m,
531
+ isItemBeingEditedRef: d
532
+ },
533
+ publicAPI: {
534
+ updateItemLabel: h
535
+ }
536
+ };
537
+ };
538
+ G.itemPlugin = ft;
539
+ G.getDefaultizedParams = ({
540
+ params: e,
541
+ experimentalFeatures: t
542
+ }) => {
543
+ const o = t == null ? void 0 : t.labelEditing;
544
+ return process.env.NODE_ENV !== "production" && e.isItemEditable && !o && at(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the Rich Tree View Pro component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]), f({}, e, {
545
+ isItemEditable: o ? e.isItemEditable ?? !1 : !1
546
+ });
547
+ };
548
+ G.getInitialState = () => ({
549
+ editedItemId: null
550
+ });
551
+ G.params = {
552
+ onItemLabelChange: !0,
553
+ isItemEditable: !0
554
+ };
555
+ const mt = A("div", {
556
+ name: "MuiTreeItem2DragAndDropOverlay",
557
+ slot: "Root",
558
+ overridesResolver: (e, t) => t.root,
559
+ shouldForwardProp: (e) => le(e) && e !== "action"
560
+ })(({
561
+ theme: e
562
+ }) => ({
563
+ position: "absolute",
564
+ left: 0,
565
+ display: "flex",
566
+ top: 0,
567
+ bottom: 0,
568
+ right: 0,
569
+ pointerEvents: "none",
570
+ variants: [{
571
+ props: {
572
+ action: "make-child"
573
+ },
574
+ style: {
575
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
576
+ borderRadius: e.shape.borderRadius,
577
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})` : oe(e.palette.primary.dark, e.palette.action.focusOpacity)
578
+ }
579
+ }, {
580
+ props: {
581
+ action: "reorder-above"
582
+ },
583
+ style: {
584
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
585
+ borderTop: `1px solid ${(e.vars || e).palette.action.active}`
586
+ }
587
+ }, {
588
+ props: {
589
+ action: "reorder-below"
590
+ },
591
+ style: {
592
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
593
+ borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
594
+ }
595
+ }, {
596
+ props: {
597
+ action: "move-to-parent"
598
+ },
599
+ style: {
600
+ marginLeft: "calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",
601
+ borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
602
+ }
603
+ }]
604
+ }));
605
+ function Oe(e) {
606
+ return e.action == null ? null : /* @__PURE__ */ x(mt, f({}, e));
607
+ }
608
+ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
609
+ // ----------------------------- Warning --------------------------------
610
+ // | These PropTypes are generated from the TypeScript type definitions |
611
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
612
+ // ----------------------------------------------------------------------
613
+ action: i.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
614
+ style: i.object
615
+ });
616
+ const bt = A("input", {
617
+ name: "MuiTreeItem2",
618
+ slot: "LabelInput",
619
+ overridesResolver: (e, t) => t.labelInput
620
+ })(({
621
+ theme: e
622
+ }) => f({}, e.typography.body1, {
623
+ width: "100%",
624
+ backgroundColor: e.palette.background.paper,
625
+ borderRadius: e.shape.borderRadius,
626
+ border: "none",
627
+ padding: "0 2px",
628
+ boxSizing: "border-box",
629
+ "&:focus": {
630
+ outline: `1px solid ${e.palette.primary.main}`
631
+ }
632
+ }));
633
+ function It(e) {
634
+ return we("MuiTreeItem", e);
635
+ }
636
+ const Ht = Ce("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), ht = ae(/* @__PURE__ */ x("path", {
637
+ d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
638
+ }), "TreeViewExpandIcon"), yt = ae(/* @__PURE__ */ x("path", {
639
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
640
+ }), "TreeViewCollapseIcon");
641
+ function pe(e) {
642
+ const {
643
+ children: t,
644
+ itemId: o
645
+ } = e, {
646
+ wrapItem: s,
647
+ instance: p
648
+ } = ne();
649
+ return s({
650
+ children: t,
651
+ itemId: o,
652
+ instance: p
653
+ });
654
+ }
655
+ pe.propTypes = {
656
+ // ----------------------------- Warning --------------------------------
657
+ // | These PropTypes are generated from the TypeScript type definitions |
658
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
659
+ // ----------------------------------------------------------------------
660
+ children: i.node,
661
+ itemId: i.string.isRequired
662
+ };
663
+ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
664
+ itemId: e,
665
+ children: t
666
+ }) => {
667
+ const {
668
+ instance: o,
669
+ selection: {
670
+ multiSelect: s
671
+ },
672
+ publicAPI: p
673
+ } = ne(), d = {
674
+ expandable: De(t),
675
+ expanded: o.isItemExpanded(e),
676
+ focused: o.isItemFocused(e),
677
+ selected: o.isItemSelected(e),
678
+ disabled: o.isItemDisabled(e),
679
+ editing: o != null && o.isItemBeingEdited ? o == null ? void 0 : o.isItemBeingEdited(e) : !1,
680
+ editable: o.isItemEditable ? o.isItemEditable(e) : !1
681
+ }, g = (r) => {
682
+ if (d.disabled)
683
+ return;
684
+ d.focused || o.focusItem(r, e);
685
+ const y = s && (r.shiftKey || r.ctrlKey || r.metaKey);
686
+ d.expandable && !(y && o.isItemExpanded(e)) && o.toggleItemExpansion(r, e);
687
+ }, l = (r) => {
688
+ if (d.disabled)
689
+ return;
690
+ d.focused || o.focusItem(r, e), s && (r.shiftKey || r.ctrlKey || r.metaKey) ? r.shiftKey ? o.expandSelectionRange(r, e) : o.selectItem({
691
+ event: r,
692
+ itemId: e,
693
+ keepExistingSelection: !0
694
+ }) : o.selectItem({
695
+ event: r,
696
+ itemId: e,
697
+ shouldBeSelected: !0
698
+ });
699
+ }, m = (r) => {
700
+ const y = r.nativeEvent.shiftKey;
701
+ s && y ? o.expandSelectionRange(r, e) : o.selectItem({
702
+ event: r,
703
+ itemId: e,
704
+ keepExistingSelection: s,
705
+ shouldBeSelected: r.target.checked
706
+ });
707
+ }, c = () => {
708
+ de(o, G) && o.isItemEditable(e) && (o.isItemBeingEdited(e) ? o.setEditedItemId(null) : o.setEditedItemId(e));
709
+ };
710
+ return {
711
+ interactions: {
712
+ handleExpansion: g,
713
+ handleSelection: l,
714
+ handleCheckboxSelection: m,
715
+ toggleItemEditing: c,
716
+ handleSaveItemLabel: (r, y) => {
717
+ de(o, G) && o.isItemBeingEditedRef(e) && (o.updateItemLabel(e, y), c(), o.focusItem(r, e));
718
+ },
719
+ handleCancelItemLabelEditing: (r) => {
720
+ de(o, G) && o.isItemBeingEditedRef(e) && (c(), o.focusItem(r, e));
721
+ }
722
+ },
723
+ status: d,
724
+ publicAPI: p
725
+ };
726
+ }, Ct = (e) => {
727
+ const {
728
+ runItemPlugins: t,
729
+ items: {
730
+ onItemClick: o,
731
+ disabledItemsFocusable: s,
732
+ indentationAtItemLevel: p
733
+ },
734
+ selection: {
735
+ disableSelection: d,
736
+ checkboxSelection: g
737
+ },
738
+ expansion: {
739
+ expansionTrigger: l
740
+ },
741
+ treeId: m,
742
+ instance: c,
743
+ publicAPI: h
744
+ } = ne(), b = R.useContext(Re), {
745
+ id: C,
746
+ itemId: r,
747
+ label: y,
748
+ children: S,
749
+ rootRef: F
750
+ } = e, {
751
+ rootRef: X,
752
+ contentRef: _,
753
+ propsEnhancers: T
754
+ } = t(e), {
755
+ interactions: E,
756
+ status: P
757
+ } = xt({
758
+ itemId: r,
759
+ children: S
760
+ }), w = R.useRef(null), O = R.useRef(null), U = ce(F, X, w), Y = ce(_, O), D = R.useRef(null), j = dt({
761
+ itemId: r,
762
+ treeId: m,
763
+ id: C
764
+ }), q = c.canItemBeTabbed(r) ? 0 : -1, M = {
765
+ rootRefObject: w,
766
+ contentRefObject: O,
767
+ interactions: E
768
+ }, z = (a) => (n) => {
769
+ var v;
770
+ if ((v = a.onFocus) == null || v.call(a, n), n.defaultMuiPrevented)
771
+ return;
772
+ const u = !P.disabled || s;
773
+ !P.focused && u && n.currentTarget === n.target && c.focusItem(n, r);
774
+ }, $ = (a) => (n) => {
775
+ var v, V, te, fe, me;
776
+ if ((v = a.onBlur) == null || v.call(a, n), n.defaultMuiPrevented)
777
+ return;
778
+ const u = c.getItemDOMElement(r);
779
+ P.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
780
+ // we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
781
+ n.relatedTarget && xe(n.relatedTarget, u) && (n.target && ((te = (V = n.target) == null ? void 0 : V.dataset) == null ? void 0 : te.element) === "labelInput" && xe(n.target, u) || ((me = (fe = n.relatedTarget) == null ? void 0 : fe.dataset) == null ? void 0 : me.element) === "labelInput") || c.removeFocusedItem();
782
+ }, H = (a) => (n) => {
783
+ var u, v, V;
784
+ (u = a.onKeyDown) == null || u.call(a, n), !(n.defaultMuiPrevented || ((V = (v = n.target) == null ? void 0 : v.dataset) == null ? void 0 : V.element) === "labelInput") && c.handleItemKeyDown(n, r);
785
+ }, N = (a) => (n) => {
786
+ var u;
787
+ (u = a.onDoubleClick) == null || u.call(a, n), !n.defaultMuiPrevented && E.toggleItemEditing();
788
+ }, W = (a) => (n) => {
789
+ var u, v;
790
+ (u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v = D.current) != null && v.contains(n.target)) && (l === "content" && E.handleExpansion(n), g || E.handleSelection(n));
791
+ }, J = (a) => (n) => {
792
+ var u;
793
+ (u = a.onMouseDown) == null || u.call(a, n), !n.defaultMuiPrevented && (n.shiftKey || n.ctrlKey || n.metaKey || P.disabled) && n.preventDefault();
794
+ }, ee = (a) => (n) => {
795
+ var u;
796
+ (u = a.onChange) == null || u.call(a, n), !n.defaultMuiPrevented && (d || P.disabled || E.handleCheckboxSelection(n));
797
+ }, Q = (a) => (n) => {
798
+ var u;
799
+ (u = a.onClick) == null || u.call(a, n), !n.defaultMuiPrevented && l === "iconContainer" && E.handleExpansion(n);
800
+ };
801
+ return {
802
+ getRootProps: (a = {}) => {
803
+ var te;
804
+ const n = f({}, B(e), B(a));
805
+ let u;
806
+ P.selected ? u = !0 : d || P.disabled ? u = void 0 : u = !1;
807
+ const v = f({}, n, {
808
+ ref: U,
809
+ role: "treeitem",
810
+ tabIndex: q,
811
+ id: j,
812
+ "aria-expanded": P.expandable ? P.expanded : void 0,
813
+ "aria-selected": u,
814
+ "aria-disabled": P.disabled || void 0
815
+ }, a, {
816
+ onFocus: z(n),
817
+ onBlur: $(n),
818
+ onKeyDown: H(n)
819
+ });
820
+ p && (v.style = {
821
+ "--TreeView-itemDepth": typeof b == "function" ? b(r) : b
822
+ });
823
+ const V = ((te = T.root) == null ? void 0 : te.call(T, f({}, M, {
824
+ externalEventHandlers: n
825
+ }))) ?? {};
826
+ return f({}, v, V);
827
+ },
828
+ getContentProps: (a = {}) => {
829
+ var V;
830
+ const n = B(a), u = f({}, n, a, {
831
+ ref: Y,
832
+ onClick: W(n),
833
+ onMouseDown: J(n),
834
+ status: P
835
+ });
836
+ p && (u.indentationAtItemLevel = !0);
837
+ const v = ((V = T.content) == null ? void 0 : V.call(T, f({}, M, {
838
+ externalEventHandlers: n
839
+ }))) ?? {};
840
+ return f({}, u, v);
841
+ },
842
+ getGroupTransitionProps: (a = {}) => {
843
+ const n = B(a), u = f({}, n, {
844
+ unmountOnExit: !0,
845
+ component: "ul",
846
+ role: "group",
847
+ in: P.expanded,
848
+ children: S
849
+ }, a);
850
+ return p && (u.indentationAtItemLevel = !0), u;
851
+ },
852
+ getIconContainerProps: (a = {}) => {
853
+ const n = B(a);
854
+ return f({}, n, a, {
855
+ onClick: Q(n)
856
+ });
857
+ },
858
+ getCheckboxProps: (a = {}) => {
859
+ const n = B(a);
860
+ return f({}, n, {
861
+ visible: g,
862
+ ref: D,
863
+ checked: P.selected,
864
+ disabled: d || P.disabled,
865
+ tabIndex: -1
866
+ }, a, {
867
+ onChange: ee(n)
868
+ });
869
+ },
870
+ getLabelProps: (a = {}) => {
871
+ const n = f({}, B(a)), u = f({}, n, {
872
+ children: y
873
+ }, a, {
874
+ onDoubleClick: N(n)
875
+ });
876
+ return c.isTreeViewEditable && (u.editable = P.editable), u;
877
+ },
878
+ getLabelInputProps: (a = {}) => {
879
+ var v;
880
+ const n = B(a), u = ((v = T.labelInput) == null ? void 0 : v.call(T, {
881
+ rootRefObject: w,
882
+ contentRefObject: O,
883
+ externalEventHandlers: n,
884
+ interactions: E
885
+ })) ?? {};
886
+ return f({}, a, u);
887
+ },
888
+ getDragAndDropOverlayProps: (a = {}) => {
889
+ var v;
890
+ const n = B(a), u = ((v = T.dragAndDropOverlay) == null ? void 0 : v.call(T, f({}, M, {
891
+ externalEventHandlers: n
892
+ }))) ?? {};
893
+ return f({}, a, u);
894
+ },
895
+ rootRef: U,
896
+ status: P,
897
+ publicAPI: h
898
+ };
899
+ }, Me = Ct;
900
+ function ke(e) {
901
+ const {
902
+ slots: t,
903
+ slotProps: o,
904
+ status: s
905
+ } = e, p = ne(), d = f({}, p.icons.slots, {
906
+ expandIcon: p.icons.slots.expandIcon ?? ht,
907
+ collapseIcon: p.icons.slots.collapseIcon ?? yt
908
+ }), g = p.icons.slotProps;
909
+ let l;
910
+ t != null && t.icon ? l = "icon" : s.expandable ? s.expanded ? l = "collapseIcon" : l = "expandIcon" : l = "endIcon";
911
+ const m = (t == null ? void 0 : t[l]) ?? d[l], c = K({
912
+ elementType: m,
913
+ externalSlotProps: (h) => f({}, be(g[l], h), be(o == null ? void 0 : o[l], h)),
914
+ // TODO: Add proper ownerState
915
+ ownerState: {}
916
+ });
917
+ return m ? /* @__PURE__ */ x(m, f({}, c)) : null;
918
+ }
919
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
920
+ // ----------------------------- Warning --------------------------------
921
+ // | These PropTypes are generated from the TypeScript type definitions |
922
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
923
+ // ----------------------------------------------------------------------
924
+ /**
925
+ * The props used for each component slot.
926
+ * @default {}
927
+ */
928
+ slotProps: i.object,
929
+ /**
930
+ * Overridable component slots.
931
+ * @default {}
932
+ */
933
+ slots: i.object,
934
+ status: i.shape({
935
+ disabled: i.bool.isRequired,
936
+ editable: i.bool.isRequired,
937
+ editing: i.bool.isRequired,
938
+ expandable: i.bool.isRequired,
939
+ expanded: i.bool.isRequired,
940
+ focused: i.bool.isRequired,
941
+ selected: i.bool.isRequired
942
+ }).isRequired
943
+ });
944
+ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps"], vt = lt(), Le = A("li", {
945
+ name: "MuiTreeItem2",
946
+ slot: "Root",
947
+ overridesResolver: (e, t) => t.root
948
+ })({
949
+ listStyle: "none",
950
+ margin: 0,
951
+ padding: 0,
952
+ outline: 0
953
+ }), Ne = A("div", {
954
+ name: "MuiTreeItem2",
955
+ slot: "Content",
956
+ overridesResolver: (e, t) => t.content,
957
+ shouldForwardProp: (e) => le(e) && e !== "status" && e !== "indentationAtItemLevel"
958
+ })(({
959
+ theme: e
960
+ }) => ({
961
+ padding: e.spacing(0.5, 1),
962
+ borderRadius: e.shape.borderRadius,
963
+ width: "100%",
964
+ boxSizing: "border-box",
965
+ // prevent width + padding to overflow
966
+ position: "relative",
967
+ display: "flex",
968
+ alignItems: "center",
969
+ gap: e.spacing(1),
970
+ cursor: "pointer",
971
+ WebkitTapHighlightColor: "transparent",
972
+ "&:hover": {
973
+ backgroundColor: (e.vars || e).palette.action.hover,
974
+ // Reset on touch devices, it doesn't add specificity
975
+ "@media (hover: none)": {
976
+ backgroundColor: "transparent"
977
+ }
978
+ },
979
+ variants: [{
980
+ props: {
981
+ indentationAtItemLevel: !0
982
+ },
983
+ style: {
984
+ paddingLeft: `calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`
985
+ }
986
+ }, {
987
+ props: ({
988
+ status: t
989
+ }) => t.disabled,
990
+ style: {
991
+ opacity: (e.vars || e).palette.action.disabledOpacity,
992
+ backgroundColor: "transparent"
993
+ }
994
+ }, {
995
+ props: ({
996
+ status: t
997
+ }) => t.focused,
998
+ style: {
999
+ backgroundColor: (e.vars || e).palette.action.focus
1000
+ }
1001
+ }, {
1002
+ props: ({
1003
+ status: t
1004
+ }) => t.selected,
1005
+ style: {
1006
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : oe(e.palette.primary.main, e.palette.action.selectedOpacity),
1007
+ "&:hover": {
1008
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : oe(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1009
+ // Reset on touch devices, it doesn't add specificity
1010
+ "@media (hover: none)": {
1011
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : oe(e.palette.primary.main, e.palette.action.selectedOpacity)
1012
+ }
1013
+ }
1014
+ }
1015
+ }, {
1016
+ props: ({
1017
+ status: t
1018
+ }) => t.selected && t.focused,
1019
+ style: {
1020
+ backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : oe(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1021
+ }
1022
+ }]
1023
+ })), Ae = A("div", {
1024
+ name: "MuiTreeItem2",
1025
+ slot: "Label",
1026
+ overridesResolver: (e, t) => t.label,
1027
+ shouldForwardProp: (e) => le(e) && e !== "editable"
1028
+ })(({
1029
+ theme: e
1030
+ }) => f({
1031
+ width: "100%",
1032
+ boxSizing: "border-box",
1033
+ // prevent width + padding to overflow
1034
+ // fixes overflow - see https://github.com/mui/material-ui/issues/27372
1035
+ minWidth: 0,
1036
+ position: "relative",
1037
+ overflow: "hidden"
1038
+ }, e.typography.body1, {
1039
+ variants: [{
1040
+ props: ({
1041
+ editable: t
1042
+ }) => t,
1043
+ style: {
1044
+ paddingLeft: "2px"
1045
+ }
1046
+ }]
1047
+ })), Ve = A("div", {
1048
+ name: "MuiTreeItem2",
1049
+ slot: "IconContainer",
1050
+ overridesResolver: (e, t) => t.iconContainer
1051
+ })({
1052
+ width: 16,
1053
+ display: "flex",
1054
+ flexShrink: 0,
1055
+ justifyContent: "center",
1056
+ "& svg": {
1057
+ fontSize: 18
1058
+ }
1059
+ }), ze = A(se, {
1060
+ name: "MuiTreeItem2",
1061
+ slot: "GroupTransition",
1062
+ overridesResolver: (e, t) => t.groupTransition,
1063
+ shouldForwardProp: (e) => le(e) && e !== "indentationAtItemLevel"
1064
+ })({
1065
+ margin: 0,
1066
+ padding: 0,
1067
+ paddingLeft: "var(--TreeView-itemChildrenIndentation)",
1068
+ variants: [{
1069
+ props: {
1070
+ indentationAtItemLevel: !0
1071
+ },
1072
+ style: {
1073
+ paddingLeft: 0
1074
+ }
1075
+ }]
1076
+ }), Pt = A(/* @__PURE__ */ R.forwardRef((e, t) => {
1077
+ const {
1078
+ visible: o
1079
+ } = e, s = ve(e, wt);
1080
+ return o ? /* @__PURE__ */ x(Ze, f({}, s, {
1081
+ ref: t
1082
+ })) : null;
1083
+ }), {
1084
+ name: "MuiTreeItem2",
1085
+ slot: "Checkbox",
1086
+ overridesResolver: (e, t) => t.checkbox
1087
+ })({
1088
+ padding: 0
1089
+ }), Et = (e) => {
1090
+ const {
1091
+ classes: t
1092
+ } = e;
1093
+ return Pe({
1094
+ root: ["root"],
1095
+ content: ["content"],
1096
+ expanded: ["expanded"],
1097
+ editing: ["editing"],
1098
+ editable: ["editable"],
1099
+ selected: ["selected"],
1100
+ focused: ["focused"],
1101
+ disabled: ["disabled"],
1102
+ iconContainer: ["iconContainer"],
1103
+ checkbox: ["checkbox"],
1104
+ label: ["label"],
1105
+ groupTransition: ["groupTransition"],
1106
+ labelInput: ["labelInput"],
1107
+ dragAndDropOverlay: ["dragAndDropOverlay"]
1108
+ }, It, t);
1109
+ }, Rt = /* @__PURE__ */ R.forwardRef(function(t, o) {
1110
+ const s = vt({
1111
+ props: t,
1112
+ name: "MuiTreeItem2"
1113
+ }), {
1114
+ id: p,
1115
+ itemId: d,
1116
+ label: g,
1117
+ disabled: l,
1118
+ children: m,
1119
+ slots: c = {},
1120
+ slotProps: h = {}
1121
+ } = s, b = ve(s, Tt), {
1122
+ getRootProps: C,
1123
+ getContentProps: r,
1124
+ getIconContainerProps: y,
1125
+ getCheckboxProps: S,
1126
+ getLabelProps: F,
1127
+ getGroupTransitionProps: X,
1128
+ getLabelInputProps: _,
1129
+ getDragAndDropOverlayProps: T,
1130
+ status: E
1131
+ } = Me({
1132
+ id: p,
1133
+ itemId: d,
1134
+ children: m,
1135
+ label: g,
1136
+ disabled: l
1137
+ }), P = f({}, s, E), w = Et(P), O = c.root ?? Le, U = K({
1138
+ elementType: O,
1139
+ getSlotProps: C,
1140
+ externalForwardedProps: b,
1141
+ externalSlotProps: h.root,
1142
+ additionalProps: {
1143
+ ref: o
1144
+ },
1145
+ ownerState: {},
1146
+ className: w.root
1147
+ }), Y = c.content ?? Ne, D = K({
1148
+ elementType: Y,
1149
+ getSlotProps: r,
1150
+ externalSlotProps: h.content,
1151
+ ownerState: {},
1152
+ className: Te(w.content, E.expanded && w.expanded, E.selected && w.selected, E.focused && w.focused, E.disabled && w.disabled, E.editing && w.editing, E.editable && w.editable)
1153
+ }), j = c.iconContainer ?? Ve, q = K({
1154
+ elementType: j,
1155
+ getSlotProps: y,
1156
+ externalSlotProps: h.iconContainer,
1157
+ ownerState: {},
1158
+ className: w.iconContainer
1159
+ }), M = c.label ?? Ae, z = K({
1160
+ elementType: M,
1161
+ getSlotProps: F,
1162
+ externalSlotProps: h.label,
1163
+ ownerState: {},
1164
+ className: w.label
1165
+ }), $ = c.checkbox ?? Pt, H = K({
1166
+ elementType: $,
1167
+ getSlotProps: S,
1168
+ externalSlotProps: h.checkbox,
1169
+ ownerState: {},
1170
+ className: w.checkbox
1171
+ }), N = c.groupTransition ?? void 0, W = K({
1172
+ elementType: N,
1173
+ getSlotProps: X,
1174
+ externalSlotProps: h.groupTransition,
1175
+ ownerState: {},
1176
+ className: w.groupTransition
1177
+ }), J = c.labelInput ?? bt, ee = K({
1178
+ elementType: J,
1179
+ getSlotProps: _,
1180
+ externalSlotProps: h.labelInput,
1181
+ ownerState: {},
1182
+ className: w.labelInput
1183
+ }), Q = c.dragAndDropOverlay ?? Oe, re = K({
1184
+ elementType: Q,
1185
+ getSlotProps: T,
1186
+ externalSlotProps: h.dragAndDropOverlay,
1187
+ ownerState: {},
1188
+ className: w.dragAndDropOverlay
1189
+ });
1190
+ return /* @__PURE__ */ x(pe, {
1191
+ itemId: d,
1192
+ children: /* @__PURE__ */ ie(O, f({}, U, {
1193
+ children: [/* @__PURE__ */ ie(Y, f({}, D, {
1194
+ children: [/* @__PURE__ */ x(j, f({}, q, {
1195
+ children: /* @__PURE__ */ x(ke, {
1196
+ status: E,
1197
+ slots: c,
1198
+ slotProps: h
1199
+ })
1200
+ })), /* @__PURE__ */ x($, f({}, H)), E.editing ? /* @__PURE__ */ x(J, f({}, ee)) : /* @__PURE__ */ x(M, f({}, z)), /* @__PURE__ */ x(Q, f({}, re))]
1201
+ })), m && /* @__PURE__ */ x(ze, f({
1202
+ as: N
1203
+ }, W))]
1204
+ }))
1205
+ });
1206
+ });
1207
+ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
1208
+ // ----------------------------- Warning --------------------------------
1209
+ // | These PropTypes are generated from the TypeScript type definitions |
1210
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
1211
+ // ----------------------------------------------------------------------
1212
+ /**
1213
+ * The content of the component.
1214
+ */
1215
+ children: i.node,
1216
+ /**
1217
+ * Override or extend the styles applied to the component.
1218
+ */
1219
+ classes: i.object,
1220
+ className: i.string,
1221
+ /**
1222
+ * If `true`, the item is disabled.
1223
+ * @default false
1224
+ */
1225
+ disabled: i.bool,
1226
+ /**
1227
+ * The id attribute of the item. If not provided, it will be generated.
1228
+ */
1229
+ id: i.string,
1230
+ /**
1231
+ * The id of the item.
1232
+ * Must be unique.
1233
+ */
1234
+ itemId: i.string.isRequired,
1235
+ /**
1236
+ * The label of the item.
1237
+ */
1238
+ label: i.node,
1239
+ /**
1240
+ * Callback fired when the item root is blurred.
1241
+ */
1242
+ onBlur: i.func,
1243
+ /**
1244
+ * This prop isn't supported.
1245
+ * Use the `onItemFocus` callback on the tree if you need to monitor an item's focus.
1246
+ */
1247
+ onFocus: He,
1248
+ /**
1249
+ * Callback fired when a key is pressed on the keyboard and the tree is in focus.
1250
+ */
1251
+ onKeyDown: i.func,
1252
+ /**
1253
+ * The props used for each component slot.
1254
+ * @default {}
1255
+ */
1256
+ slotProps: i.object,
1257
+ /**
1258
+ * Overridable component slots.
1259
+ * @default {}
1260
+ */
1261
+ slots: i.object
1262
+ });
1263
+ function eo(e) {
1264
+ const {
1265
+ id: t,
1266
+ itemId: o,
1267
+ label: s,
1268
+ disabled: p,
1269
+ children: d,
1270
+ itemData: g,
1271
+ iconColor: l = "primary",
1272
+ ref: m
1273
+ } = e, c = qe(
1274
+ g == null ? void 0 : g.iconType,
1275
+ g == null ? void 0 : g.customIcon
1276
+ ), {
1277
+ getRootProps: h,
1278
+ getContentProps: b,
1279
+ getLabelProps: C,
1280
+ getGroupTransitionProps: r,
1281
+ getIconContainerProps: y,
1282
+ status: S
1283
+ } = Me({ id: t, itemId: o, label: s, disabled: p, children: d, rootRef: m });
1284
+ return /* @__PURE__ */ x(pe, { itemId: o, children: /* @__PURE__ */ ie(
1285
+ Le,
1286
+ {
1287
+ ...h(),
1288
+ "data-treeview-item": o || "",
1289
+ "data-treeview-item-label": s || "",
1290
+ children: [
1291
+ /* @__PURE__ */ ie(Ne, { ...b(), style: Ke, children: [
1292
+ /* @__PURE__ */ x(Ve, { ...y(), children: /* @__PURE__ */ x(c, { fontSize: "small", color: l }) }),
1293
+ /* @__PURE__ */ x(Ae, { ...C() }),
1294
+ /* @__PURE__ */ x(Be, { sx: Fe, children: S.expandable && (S.expanded ? /* @__PURE__ */ x(it, { fontSize: "small" }) : /* @__PURE__ */ x(st, { fontSize: "small" })) })
1295
+ ] }),
1296
+ d && /* @__PURE__ */ x(
1297
+ ze,
1298
+ {
1299
+ ...r(),
1300
+ style: S.expanded ? je : void 0
1301
+ }
1302
+ )
1303
+ ]
1304
+ }
1305
+ ) });
1306
+ }
1307
+ export {
1308
+ se as C,
1309
+ Ee as T,
1310
+ Yt as a,
1311
+ dt as b,
1312
+ Xt as c,
1313
+ Re as d,
1314
+ Jt as e,
1315
+ ut as f,
1316
+ et as g,
1317
+ gt as h,
1318
+ Zt as i,
1319
+ Qt as j,
1320
+ xe as k,
1321
+ pt as l,
1322
+ ct as m,
1323
+ de as n,
1324
+ ne as o,
1325
+ bt as p,
1326
+ Oe as q,
1327
+ lt as r,
1328
+ yt as s,
1329
+ ht as t,
1330
+ G as u,
1331
+ pe as v,
1332
+ at as w,
1333
+ It as x,
1334
+ Ht as y,
1335
+ eo as z
1336
+ };