@cgi-learning-hub/ui 1.9.0 → 1.10.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 (508) hide show
  1. package/dist/index.cjs.js +63417 -1
  2. package/dist/index.d.ts +773 -1
  3. package/dist/index.es.js +63394 -417
  4. package/dist/ui.css +151 -0
  5. package/package.json +26 -24
  6. package/dist/Alert-BH_3hKCB.cjs +0 -1
  7. package/dist/Alert-BeVYzSS-.js +0 -94
  8. package/dist/Alert-BoYBWOXe.cjs +0 -1
  9. package/dist/Alert-CEu3llDi.js +0 -369
  10. package/dist/Autocomplete-BKpavKFW.cjs +0 -6
  11. package/dist/Autocomplete-DBZYn4YL.js +0 -1881
  12. package/dist/Backdrop-BvL371G3.js +0 -360
  13. package/dist/Backdrop-qOBrabpf.cjs +0 -1
  14. package/dist/Badge-2Kgbx-Cs.js +0 -466
  15. package/dist/Badge-DXl0Da36.cjs +0 -1
  16. package/dist/Box-BaZ7KlAc.js +0 -59
  17. package/dist/Box-CYQlQqRB.cjs +0 -1
  18. package/dist/Button-BP-QmmUu.cjs +0 -1
  19. package/dist/Button-C1mKNW-c.js +0 -698
  20. package/dist/ButtonBase-C2jRC_V7.js +0 -883
  21. package/dist/ButtonBase-DSJojbNE.cjs +0 -74
  22. package/dist/CardContent-DVcUynuH.cjs +0 -1
  23. package/dist/CardContent-kIapWv4T.js +0 -225
  24. package/dist/Checkbox-DhhuvKO5.cjs +0 -1
  25. package/dist/Checkbox-RxHWtafR.js +0 -271
  26. package/dist/Chip-DgGmi9yn.js +0 -574
  27. package/dist/Chip-n1kY-Dsh.cjs +0 -1
  28. package/dist/CircularProgress-BOm4zz7e.cjs +0 -28
  29. package/dist/CircularProgress-CLq0Rl-1.js +0 -253
  30. package/dist/Close-DR9m6hv3.cjs +0 -1
  31. package/dist/Close-vu-MZYNA.js +0 -9
  32. package/dist/CloseRounded-Cpp6nWQi.cjs +0 -1
  33. package/dist/CloseRounded-DF05lCUu.js +0 -8
  34. package/dist/CustomTreeItem-AecanDDg.js +0 -2046
  35. package/dist/CustomTreeItem-BBMp0k4i.cjs +0 -41
  36. package/dist/DatePicker-Cd-Aj-F8.js +0 -10758
  37. package/dist/DatePicker-Dj7U52Mk.cjs +0 -16
  38. package/dist/DefaultPropsProvider-BrmlvPWg.js +0 -312
  39. package/dist/DefaultPropsProvider-C1g4BXET.cjs +0 -1
  40. package/dist/Delete-C36W48MB.cjs +0 -1
  41. package/dist/Delete-DXUljXzP.js +0 -8
  42. package/dist/Dialog-C2HYr67H.cjs +0 -1
  43. package/dist/Dialog-D__8rwpw.js +0 -469
  44. package/dist/DialogContent-MPwmUJQp.js +0 -195
  45. package/dist/DialogContent-lup2v_ab.cjs +0 -1
  46. package/dist/DialogTitle-B8jOk7ZE.cjs +0 -1
  47. package/dist/DialogTitle-Dly5D3Ud.js +0 -134
  48. package/dist/Divider-BN12gMv9.js +0 -297
  49. package/dist/Divider-wisA5Qp_.cjs +0 -1
  50. package/dist/Folder-BSZMyA2L.js +0 -8
  51. package/dist/Folder-aAI_w_uF.cjs +0 -1
  52. package/dist/FormLabel-ByYWZh7M.cjs +0 -2
  53. package/dist/FormLabel-DtxJI2CU.js +0 -408
  54. package/dist/Grid-C0LY-MbT.js +0 -419
  55. package/dist/Grid-CPXE25PR.cjs +0 -2
  56. package/dist/Grow-6zwoqUfO.cjs +0 -1
  57. package/dist/Grow-CeGwnQpw.js +0 -197
  58. package/dist/IconButton-BTN16gZi.cjs +0 -2
  59. package/dist/IconButton-DBjiNqOa.js +0 -299
  60. package/dist/InputAdornment-C1r1YutO.cjs +0 -1
  61. package/dist/InputAdornment-DuR35FtU.js +0 -173
  62. package/dist/InputBase-CxknnWV4.cjs +0 -4
  63. package/dist/InputBase-D5UJOJBu.js +0 -797
  64. package/dist/Link-T11NCxGd.cjs +0 -1
  65. package/dist/Link-hWCqsQiI.js +0 -281
  66. package/dist/List-CmJ1jCss.js +0 -131
  67. package/dist/List-eQ4D0MvJ.cjs +0 -1
  68. package/dist/ListItem-CgWgbZ_g.cjs +0 -1
  69. package/dist/ListItem-onoPfwb4.js +0 -423
  70. package/dist/ListItemText-B-dySXgz.cjs +0 -1
  71. package/dist/ListItemText-BjhXxIIV.js +0 -441
  72. package/dist/Menu-D7B383z4.cjs +0 -7
  73. package/dist/Menu-DGvAkF5F.js +0 -911
  74. package/dist/MenuItem-Cusmy5t2.js +0 -268
  75. package/dist/MenuItem-D-4xzo-S.cjs +0 -1
  76. package/dist/Modal-DB9K8sJI.cjs +0 -2
  77. package/dist/Modal-DtjScKxh.js +0 -744
  78. package/dist/MoreVert-BwfUF9pO.cjs +0 -1
  79. package/dist/MoreVert-woCQ0dNf.js +0 -8
  80. package/dist/Paper-CZXfHfN_.js +0 -158
  81. package/dist/Paper-DcVuAxq3.cjs +0 -2
  82. package/dist/Popper-BwuGO_Si.js +0 -1407
  83. package/dist/Popper-D5Cs38W_.cjs +0 -4
  84. package/dist/Portal-Cmv45gpL.cjs +0 -1
  85. package/dist/Portal-PkRJuFYN.js +0 -85
  86. package/dist/Radio-DiyDpiVL.js +0 -617
  87. package/dist/Radio-DzKwkI68.cjs +0 -1
  88. package/dist/RadioGroup-BlkHQVRF.cjs +0 -1
  89. package/dist/RadioGroup-CjUaFqjJ.js +0 -191
  90. package/dist/Select-BxH16ruJ.js +0 -2648
  91. package/dist/Select-CSQfbogA.cjs +0 -3
  92. package/dist/Stack-ChvZzNqc.cjs +0 -1
  93. package/dist/Stack-pMJEpL7k.js +0 -173
  94. package/dist/Stepper-BsfN7O-W.cjs +0 -1
  95. package/dist/Stepper-DyH4sgY5.js +0 -966
  96. package/dist/Switch-BgZUmsKc.js +0 -392
  97. package/dist/Switch-Dr2jgPGV.cjs +0 -1
  98. package/dist/SwitchBase-BP_I-APE.cjs +0 -1
  99. package/dist/SwitchBase-BWz31Ed6.js +0 -319
  100. package/dist/Tab-Bksf_S4K.js +0 -1454
  101. package/dist/Tab-D2mI5G0L.cjs +0 -4
  102. package/dist/TextField-C9AnzUpZ.cjs +0 -1
  103. package/dist/TextField-Ctx4aW6-.js +0 -560
  104. package/dist/ToggleButtonGroup-CBw2I124.cjs +0 -138
  105. package/dist/ToggleButtonGroup-DtjRqNbI.js +0 -9091
  106. package/dist/Tooltip-C5AffX17.js +0 -722
  107. package/dist/Tooltip-CUm8vKGq.cjs +0 -4
  108. package/dist/TransitionGroupContext-DbLioz_6.js +0 -24
  109. package/dist/TransitionGroupContext-Zt4NoR0u.cjs +0 -1
  110. package/dist/Typography-Cr-aIusw.js +0 -261
  111. package/dist/Typography-DHjq4GzQ.cjs +0 -1
  112. package/dist/assets/Loader.css +0 -1
  113. package/dist/assets/LoaderBackdrop.css +0 -1
  114. package/dist/capitalize-3OjkeP9i.cjs +0 -1
  115. package/dist/capitalize-BHEX83JQ.js +0 -9
  116. package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
  117. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  118. package/dist/client-error-CHkavqXs.cjs +0 -1
  119. package/dist/client-error-D0Ng5oOn.js +0 -393
  120. package/dist/components/ActionBar/ActionBar.cjs.js +0 -1
  121. package/dist/components/ActionBar/ActionBar.d.ts +0 -3
  122. package/dist/components/ActionBar/ActionBar.es.js +0 -63
  123. package/dist/components/ActionBar/index.cjs.js +0 -1
  124. package/dist/components/ActionBar/index.d.ts +0 -2
  125. package/dist/components/ActionBar/index.es.js +0 -4
  126. package/dist/components/ActionBar/style.cjs.js +0 -1
  127. package/dist/components/ActionBar/style.es.js +0 -61
  128. package/dist/components/ActionBar/types.cjs.js +0 -1
  129. package/dist/components/ActionBar/types.d.ts +0 -17
  130. package/dist/components/ActionBar/types.es.js +0 -1
  131. package/dist/components/Alert/Alert.cjs.js +0 -1
  132. package/dist/components/Alert/Alert.d.ts +0 -6
  133. package/dist/components/Alert/Alert.es.js +0 -8
  134. package/dist/components/Alert/index.cjs.js +0 -1
  135. package/dist/components/Alert/index.d.ts +0 -2
  136. package/dist/components/Alert/index.es.js +0 -4
  137. package/dist/components/Button/Button.cjs.js +0 -1
  138. package/dist/components/Button/Button.d.ts +0 -3
  139. package/dist/components/Button/Button.es.js +0 -44
  140. package/dist/components/Button/index.cjs.js +0 -1
  141. package/dist/components/Button/index.d.ts +0 -2
  142. package/dist/components/Button/index.es.js +0 -4
  143. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -1
  144. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -3
  145. package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -38
  146. package/dist/components/ButtonGroup/index.cjs.js +0 -1
  147. package/dist/components/ButtonGroup/index.d.ts +0 -2
  148. package/dist/components/ButtonGroup/index.es.js +0 -4
  149. package/dist/components/ButtonGroup/style.cjs.js +0 -1
  150. package/dist/components/ButtonGroup/style.es.js +0 -29
  151. package/dist/components/ButtonGroup/types.cjs.js +0 -1
  152. package/dist/components/ButtonGroup/types.d.ts +0 -22
  153. package/dist/components/ButtonGroup/types.es.js +0 -1
  154. package/dist/components/ColorPicker/ColorPicker.cjs.js +0 -27
  155. package/dist/components/ColorPicker/ColorPicker.d.ts +0 -4
  156. package/dist/components/ColorPicker/ColorPicker.es.js +0 -7960
  157. package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +0 -1
  158. package/dist/components/ColorPicker/ColorPickerIcon.d.ts +0 -5
  159. package/dist/components/ColorPicker/ColorPickerIcon.es.js +0 -58
  160. package/dist/components/ColorPicker/index.cjs.js +0 -1
  161. package/dist/components/ColorPicker/index.d.ts +0 -3
  162. package/dist/components/ColorPicker/index.es.js +0 -4
  163. package/dist/components/ColorPicker/styles.cjs.js +0 -1
  164. package/dist/components/ColorPicker/styles.es.js +0 -28
  165. package/dist/components/ColorPicker/types.cjs.js +0 -1
  166. package/dist/components/ColorPicker/types.d.ts +0 -19
  167. package/dist/components/ColorPicker/types.es.js +0 -1
  168. package/dist/components/DatePicker/DatePicker.cjs.js +0 -1
  169. package/dist/components/DatePicker/DatePicker.d.ts +0 -6
  170. package/dist/components/DatePicker/DatePicker.es.js +0 -5
  171. package/dist/components/DatePicker/index.cjs.js +0 -1
  172. package/dist/components/DatePicker/index.d.ts +0 -2
  173. package/dist/components/DatePicker/index.es.js +0 -4
  174. package/dist/components/Dialog/Dialog.cjs.js +0 -1
  175. package/dist/components/Dialog/Dialog.d.ts +0 -6
  176. package/dist/components/Dialog/Dialog.es.js +0 -31
  177. package/dist/components/Dialog/index.cjs.js +0 -1
  178. package/dist/components/Dialog/index.d.ts +0 -2
  179. package/dist/components/Dialog/index.es.js +0 -4
  180. package/dist/components/Dropzone/Dropzone.cjs.js +0 -1
  181. package/dist/components/Dropzone/Dropzone.d.ts +0 -12
  182. package/dist/components/Dropzone/Dropzone.es.js +0 -55
  183. package/dist/components/Dropzone/index.cjs.js +0 -1
  184. package/dist/components/Dropzone/index.d.ts +0 -2
  185. package/dist/components/Dropzone/index.es.js +0 -4
  186. package/dist/components/Dropzone/types.cjs.js +0 -1
  187. package/dist/components/Dropzone/types.d.ts +0 -8
  188. package/dist/components/Dropzone/types.es.js +0 -1
  189. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +0 -1
  190. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +0 -9
  191. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +0 -45
  192. package/dist/components/EllipsisWithTooltip/index.cjs.js +0 -1
  193. package/dist/components/EllipsisWithTooltip/index.d.ts +0 -2
  194. package/dist/components/EllipsisWithTooltip/index.es.js +0 -4
  195. package/dist/components/EmptyState/EmptyState.cjs.js +0 -1
  196. package/dist/components/EmptyState/EmptyState.d.ts +0 -22
  197. package/dist/components/EmptyState/EmptyState.es.js +0 -34
  198. package/dist/components/EmptyState/index.cjs.js +0 -1
  199. package/dist/components/EmptyState/index.d.ts +0 -2
  200. package/dist/components/EmptyState/index.es.js +0 -4
  201. package/dist/components/FileList/FileIcon.cjs.js +0 -1
  202. package/dist/components/FileList/FileIcon.d.ts +0 -3
  203. package/dist/components/FileList/FileIcon.es.js +0 -56
  204. package/dist/components/FileList/FileInfosSeparator.cjs.js +0 -1
  205. package/dist/components/FileList/FileInfosSeparator.d.ts +0 -1
  206. package/dist/components/FileList/FileInfosSeparator.es.js +0 -14
  207. package/dist/components/FileList/FileList.cjs.js +0 -1
  208. package/dist/components/FileList/FileList.d.ts +0 -9
  209. package/dist/components/FileList/FileList.es.js +0 -24
  210. package/dist/components/FileList/FileListItem.cjs.js +0 -1
  211. package/dist/components/FileList/FileListItem.d.ts +0 -16
  212. package/dist/components/FileList/FileListItem.es.js +0 -122
  213. package/dist/components/FileList/index.cjs.js +0 -1
  214. package/dist/components/FileList/index.d.ts +0 -4
  215. package/dist/components/FileList/index.es.js +0 -6
  216. package/dist/components/FileList/utils.cjs.js +0 -1
  217. package/dist/components/FileList/utils.d.ts +0 -2
  218. package/dist/components/FileList/utils.es.js +0 -13
  219. package/dist/components/FolderCard/FolderCard.cjs.js +0 -1
  220. package/dist/components/FolderCard/FolderCard.d.ts +0 -12
  221. package/dist/components/FolderCard/FolderCard.es.js +0 -88
  222. package/dist/components/FolderCard/index.cjs.js +0 -1
  223. package/dist/components/FolderCard/index.d.ts +0 -2
  224. package/dist/components/FolderCard/index.es.js +0 -4
  225. package/dist/components/FolderCard/styles.cjs.js +0 -1
  226. package/dist/components/FolderCard/styles.d.ts +0 -24
  227. package/dist/components/FolderCard/styles.es.js +0 -27
  228. package/dist/components/FolderCard/types.cjs.js +0 -1
  229. package/dist/components/FolderCard/types.d.ts +0 -3
  230. package/dist/components/FolderCard/types.es.js +0 -14
  231. package/dist/components/Heading/Heading.cjs.js +0 -1
  232. package/dist/components/Heading/Heading.d.ts +0 -14
  233. package/dist/components/Heading/Heading.es.js +0 -39
  234. package/dist/components/Heading/index.cjs.js +0 -1
  235. package/dist/components/Heading/index.d.ts +0 -2
  236. package/dist/components/Heading/index.es.js +0 -4
  237. package/dist/components/ImagePicker/ImagePicker.cjs.js +0 -1
  238. package/dist/components/ImagePicker/ImagePicker.d.ts +0 -13
  239. package/dist/components/ImagePicker/ImagePicker.es.js +0 -203
  240. package/dist/components/ImagePicker/index.cjs.js +0 -1
  241. package/dist/components/ImagePicker/index.d.ts +0 -2
  242. package/dist/components/ImagePicker/index.es.js +0 -4
  243. package/dist/components/Loader/Loader.cjs.js +0 -1
  244. package/dist/components/Loader/Loader.d.ts +0 -3
  245. package/dist/components/Loader/Loader.es.js +0 -11
  246. package/dist/components/Loader/index.cjs.js +0 -1
  247. package/dist/components/Loader/index.d.ts +0 -2
  248. package/dist/components/Loader/index.es.js +0 -4
  249. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +0 -1
  250. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -3
  251. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +0 -12
  252. package/dist/components/LoaderBackdrop/index.cjs.js +0 -1
  253. package/dist/components/LoaderBackdrop/index.d.ts +0 -2
  254. package/dist/components/LoaderBackdrop/index.es.js +0 -4
  255. package/dist/components/PasswordInput/PasswordInput.cjs.js +0 -1
  256. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -5
  257. package/dist/components/PasswordInput/PasswordInput.es.js +0 -39
  258. package/dist/components/PasswordInput/index.cjs.js +0 -1
  259. package/dist/components/PasswordInput/index.d.ts +0 -2
  260. package/dist/components/PasswordInput/index.es.js +0 -4
  261. package/dist/components/QueryError/QueryError.cjs.js +0 -1
  262. package/dist/components/QueryError/QueryError.d.ts +0 -8
  263. package/dist/components/QueryError/QueryError.es.js +0 -46
  264. package/dist/components/QueryError/helpers.cjs.js +0 -1
  265. package/dist/components/QueryError/helpers.d.ts +0 -11
  266. package/dist/components/QueryError/helpers.es.js +0 -10
  267. package/dist/components/QueryError/index.cjs.js +0 -1
  268. package/dist/components/QueryError/index.d.ts +0 -2
  269. package/dist/components/QueryError/index.es.js +0 -4
  270. package/dist/components/ResourceCard/ResourceCard.cjs.js +0 -1
  271. package/dist/components/ResourceCard/ResourceCard.d.ts +0 -25
  272. package/dist/components/ResourceCard/ResourceCard.es.js +0 -128
  273. package/dist/components/ResourceCard/index.cjs.js +0 -1
  274. package/dist/components/ResourceCard/index.d.ts +0 -2
  275. package/dist/components/ResourceCard/index.es.js +0 -4
  276. package/dist/components/ResourceCard/style.cjs.js +0 -1
  277. package/dist/components/ResourceCard/style.es.js +0 -130
  278. package/dist/components/SearchInput/SearchInput.cjs.js +0 -1
  279. package/dist/components/SearchInput/SearchInput.d.ts +0 -4
  280. package/dist/components/SearchInput/SearchInput.es.js +0 -38
  281. package/dist/components/SearchInput/index.cjs.js +0 -1
  282. package/dist/components/SearchInput/index.d.ts +0 -2
  283. package/dist/components/SearchInput/index.es.js +0 -4
  284. package/dist/components/TreeView/TreeView.cjs.js +0 -5
  285. package/dist/components/TreeView/TreeView.d.ts +0 -4
  286. package/dist/components/TreeView/TreeView.es.js +0 -1663
  287. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
  288. package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -6
  289. package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
  290. package/dist/components/TreeView/index.cjs.js +0 -1
  291. package/dist/components/TreeView/index.d.ts +0 -2
  292. package/dist/components/TreeView/index.es.js +0 -6
  293. package/dist/components/TreeView/style.cjs.js +0 -1
  294. package/dist/components/TreeView/style.es.js +0 -35
  295. package/dist/components/TreeView/types.cjs.js +0 -1
  296. package/dist/components/TreeView/types.d.ts +0 -45
  297. package/dist/components/TreeView/types.es.js +0 -4
  298. package/dist/components/TreeView/utils.cjs.js +0 -1
  299. package/dist/components/TreeView/utils.d.ts +0 -6
  300. package/dist/components/TreeView/utils.es.js +0 -50
  301. package/dist/components/index.cjs.js +0 -1
  302. package/dist/components/index.d.ts +0 -197
  303. package/dist/components/index.es.js +0 -419
  304. package/dist/components/stories/ActionBar.stories.cjs.js +0 -1
  305. package/dist/components/stories/ActionBar.stories.d.ts +0 -11
  306. package/dist/components/stories/ActionBar.stories.es.js +0 -206
  307. package/dist/components/stories/Alert.stories.cjs.js +0 -1
  308. package/dist/components/stories/Alert.stories.d.ts +0 -9
  309. package/dist/components/stories/Alert.stories.es.js +0 -32
  310. package/dist/components/stories/Autocomplete.stories.cjs.js +0 -3
  311. package/dist/components/stories/Autocomplete.stories.d.ts +0 -6
  312. package/dist/components/stories/Autocomplete.stories.es.js +0 -62
  313. package/dist/components/stories/Badge.stories.cjs.js +0 -1
  314. package/dist/components/stories/Badge.stories.d.ts +0 -17
  315. package/dist/components/stories/Badge.stories.es.js +0 -188
  316. package/dist/components/stories/Button.stories.cjs.js +0 -1
  317. package/dist/components/stories/Button.stories.d.ts +0 -8
  318. package/dist/components/stories/Button.stories.es.js +0 -61
  319. package/dist/components/stories/ButtonGroup.stories.cjs.js +0 -153
  320. package/dist/components/stories/ButtonGroup.stories.d.ts +0 -17
  321. package/dist/components/stories/ButtonGroup.stories.es.js +0 -1296
  322. package/dist/components/stories/Card.stories.cjs.js +0 -1
  323. package/dist/components/stories/Card.stories.d.ts +0 -7
  324. package/dist/components/stories/Card.stories.es.js +0 -42
  325. package/dist/components/stories/Checkbox.stories.cjs.js +0 -1
  326. package/dist/components/stories/Checkbox.stories.d.ts +0 -10
  327. package/dist/components/stories/Checkbox.stories.es.js +0 -57
  328. package/dist/components/stories/Chip.stories.cjs.js +0 -1
  329. package/dist/components/stories/Chip.stories.d.ts +0 -10
  330. package/dist/components/stories/Chip.stories.es.js +0 -77
  331. package/dist/components/stories/ColoPicker.stories.cjs.js +0 -1
  332. package/dist/components/stories/ColoPicker.stories.d.ts +0 -6
  333. package/dist/components/stories/ColoPicker.stories.es.js +0 -23
  334. package/dist/components/stories/DatePicker.stories.cjs.js +0 -1
  335. package/dist/components/stories/DatePicker.stories.d.ts +0 -6
  336. package/dist/components/stories/DatePicker.stories.es.js +0 -13
  337. package/dist/components/stories/Dialog.stories.cjs.js +0 -1
  338. package/dist/components/stories/Dialog.stories.d.ts +0 -7
  339. package/dist/components/stories/Dialog.stories.es.js +0 -65
  340. package/dist/components/stories/Divider.stories.cjs.js +0 -1
  341. package/dist/components/stories/Divider.stories.d.ts +0 -6
  342. package/dist/components/stories/Divider.stories.es.js +0 -41
  343. package/dist/components/stories/Dropzone.stories.cjs.js +0 -1
  344. package/dist/components/stories/Dropzone.stories.d.ts +0 -6
  345. package/dist/components/stories/Dropzone.stories.es.js +0 -14
  346. package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +0 -1
  347. package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +0 -6
  348. package/dist/components/stories/EllipsisWithTooltip.stories.es.js +0 -36
  349. package/dist/components/stories/EmptyState.stories.cjs.js +0 -1
  350. package/dist/components/stories/EmptyState.stories.d.ts +0 -6
  351. package/dist/components/stories/EmptyState.stories.es.js +0 -30
  352. package/dist/components/stories/FileList.stories.cjs.js +0 -8
  353. package/dist/components/stories/FileList.stories.d.ts +0 -6
  354. package/dist/components/stories/FileList.stories.es.js +0 -150
  355. package/dist/components/stories/FolderCard.stories.cjs.js +0 -1
  356. package/dist/components/stories/FolderCard.stories.d.ts +0 -7
  357. package/dist/components/stories/FolderCard.stories.es.js +0 -71
  358. package/dist/components/stories/FormControlLabel.stories.cjs.js +0 -1
  359. package/dist/components/stories/FormControlLabel.stories.d.ts +0 -9
  360. package/dist/components/stories/FormControlLabel.stories.es.js +0 -55
  361. package/dist/components/stories/Heading.stories.cjs.js +0 -1
  362. package/dist/components/stories/Heading.stories.d.ts +0 -6
  363. package/dist/components/stories/Heading.stories.es.js +0 -20
  364. package/dist/components/stories/IconButton.stories.cjs.js +0 -1
  365. package/dist/components/stories/IconButton.stories.d.ts +0 -6
  366. package/dist/components/stories/IconButton.stories.es.js +0 -55
  367. package/dist/components/stories/ImagePicker.stories.cjs.js +0 -1
  368. package/dist/components/stories/ImagePicker.stories.d.ts +0 -6
  369. package/dist/components/stories/ImagePicker.stories.es.js +0 -57
  370. package/dist/components/stories/Link.stories.cjs.js +0 -1
  371. package/dist/components/stories/Link.stories.d.ts +0 -7
  372. package/dist/components/stories/Link.stories.es.js +0 -43
  373. package/dist/components/stories/Loader.stories.cjs.js +0 -1
  374. package/dist/components/stories/Loader.stories.d.ts +0 -6
  375. package/dist/components/stories/Loader.stories.es.js +0 -11
  376. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +0 -1
  377. package/dist/components/stories/LoaderBackdrop.stories.d.ts +0 -6
  378. package/dist/components/stories/LoaderBackdrop.stories.es.js +0 -11
  379. package/dist/components/stories/Menu.stories.cjs.js +0 -1
  380. package/dist/components/stories/Menu.stories.d.ts +0 -7
  381. package/dist/components/stories/Menu.stories.es.js +0 -51
  382. package/dist/components/stories/Paper.stories.cjs.js +0 -1
  383. package/dist/components/stories/Paper.stories.d.ts +0 -7
  384. package/dist/components/stories/Paper.stories.es.js +0 -28
  385. package/dist/components/stories/PasswordInput.stories.cjs.js +0 -1
  386. package/dist/components/stories/PasswordInput.stories.d.ts +0 -6
  387. package/dist/components/stories/PasswordInput.stories.es.js +0 -13
  388. package/dist/components/stories/RadioGroup.stories.cjs.js +0 -1
  389. package/dist/components/stories/RadioGroup.stories.d.ts +0 -8
  390. package/dist/components/stories/RadioGroup.stories.es.js +0 -37
  391. package/dist/components/stories/ResourceCard.stories.cjs.js +0 -1
  392. package/dist/components/stories/ResourceCard.stories.d.ts +0 -9
  393. package/dist/components/stories/ResourceCard.stories.es.js +0 -141
  394. package/dist/components/stories/SearchInput.stories.cjs.js +0 -1
  395. package/dist/components/stories/SearchInput.stories.d.ts +0 -6
  396. package/dist/components/stories/SearchInput.stories.es.js +0 -13
  397. package/dist/components/stories/Select.stories.cjs.js +0 -1
  398. package/dist/components/stories/Select.stories.d.ts +0 -10
  399. package/dist/components/stories/Select.stories.es.js +0 -52
  400. package/dist/components/stories/Stepper.stories.cjs.js +0 -1
  401. package/dist/components/stories/Stepper.stories.d.ts +0 -7
  402. package/dist/components/stories/Stepper.stories.es.js +0 -161
  403. package/dist/components/stories/TabList.stories.cjs.js +0 -1
  404. package/dist/components/stories/TabList.stories.d.ts +0 -7
  405. package/dist/components/stories/TabList.stories.es.js +0 -73
  406. package/dist/components/stories/TextField.stories.cjs.js +0 -1
  407. package/dist/components/stories/TextField.stories.d.ts +0 -10
  408. package/dist/components/stories/TextField.stories.es.js +0 -69
  409. package/dist/components/stories/Tooltip.stories.cjs.js +0 -1
  410. package/dist/components/stories/Tooltip.stories.d.ts +0 -7
  411. package/dist/components/stories/Tooltip.stories.es.js +0 -46
  412. package/dist/components/stories/TreeView.stories.cjs.js +0 -69
  413. package/dist/components/stories/TreeView.stories.d.ts +0 -15
  414. package/dist/components/stories/TreeView.stories.es.js +0 -1036
  415. package/dist/components/stories/Typography.stories.cjs.js +0 -1
  416. package/dist/components/stories/Typography.stories.d.ts +0 -6
  417. package/dist/components/stories/Typography.stories.es.js +0 -65
  418. package/dist/composeClasses-BskurlZX.js +0 -51
  419. package/dist/composeClasses-vN5Almps.cjs +0 -1
  420. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  421. package/dist/createChainedFunction-CJmlQuW8.cjs +0 -1
  422. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  423. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +0 -1
  424. package/dist/createSvgIcon-CcWpa9Le.cjs +0 -1
  425. package/dist/createSvgIcon-DFIM5PqN.js +0 -254
  426. package/dist/debounce-46wSf_lW.js +0 -15
  427. package/dist/debounce-DpCj7ugL.cjs +0 -1
  428. package/dist/dividerClasses-BEzQ_reA.js +0 -9
  429. package/dist/dividerClasses-BpVbhp8e.cjs +0 -1
  430. package/dist/elementAcceptingRef-CZLfau9O.js +0 -31
  431. package/dist/elementAcceptingRef-CuMilXz3.cjs +0 -1
  432. package/dist/elementTypeAcceptingRef-vRb2iI4O.js +0 -23
  433. package/dist/elementTypeAcceptingRef-vjR5jGLx.cjs +0 -1
  434. package/dist/error-CRNeivL7.js +0 -5
  435. package/dist/error-Dk3o6ber.cjs +0 -1
  436. package/dist/extendSxProp-DGsHTtAe.js +0 -37
  437. package/dist/extendSxProp-Dwd9vpYv.cjs +0 -1
  438. package/dist/formControlState-CuX6WjAX.cjs +0 -1
  439. package/dist/formControlState-vgaj2ksH.js +0 -10
  440. package/dist/generateUtilityClasses-B_xKAflz.js +0 -2703
  441. package/dist/generateUtilityClasses-CENS22bI.cjs +0 -55
  442. package/dist/hooks/lazySvgImport.cjs.js +0 -1
  443. package/dist/hooks/lazySvgImport.d.ts +0 -6
  444. package/dist/hooks/lazySvgImport.es.js +0 -34
  445. package/dist/index-B9vkf41S.js +0 -672
  446. package/dist/index-BPpGXp0s.cjs +0 -1
  447. package/dist/index-BS46Ff4t.cjs +0 -5
  448. package/dist/index-Ba4TEBpP.js +0 -22
  449. package/dist/index-CJMnfcQs.js +0 -2152
  450. package/dist/index-CwHv-blH.js +0 -97
  451. package/dist/index-D_kvDIOz.cjs +0 -1
  452. package/dist/index-kjfz41UI.cjs +0 -20
  453. package/dist/integerPropType-BihGt2aU.js +0 -31
  454. package/dist/integerPropType-CR7ytEJG.cjs +0 -1
  455. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  456. package/dist/isFocusVisible-DlSijby6.cjs +0 -2
  457. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  458. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  459. package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
  460. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  461. package/dist/listItemTextClasses-CEbo8A-K.js +0 -9
  462. package/dist/listItemTextClasses-wcJANWC3.cjs +0 -1
  463. package/dist/memoTheme-Bi1UNdyO.cjs +0 -1
  464. package/dist/memoTheme-C-PaH-Cy.js +0 -15
  465. package/dist/mergeSlotProps-CL6s5QgQ.cjs +0 -1
  466. package/dist/mergeSlotProps-DVtjofCS.js +0 -62
  467. package/dist/ownerDocument-4MViGo3k.cjs +0 -1
  468. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  469. package/dist/ownerWindow-DDHucZi0.cjs +0 -1
  470. package/dist/ownerWindow-niciwP7I.js +0 -7
  471. package/dist/refType-8hihVLUh.js +0 -5
  472. package/dist/refType-DJyA--UV.cjs +0 -1
  473. package/dist/server-error-CqyYyPLN.cjs +0 -1
  474. package/dist/server-error-CvgIy7ap.js +0 -398
  475. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  476. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  477. package/dist/useControlled-QrrYcKxm.cjs +0 -3
  478. package/dist/useControlled-nm4pBabJ.js +0 -31
  479. package/dist/useEventCallback-BxpcFap0.cjs +0 -1
  480. package/dist/useEventCallback-Y2KwRxBw.js +0 -15
  481. package/dist/useForkRef-CFhhTu-Q.cjs +0 -1
  482. package/dist/useForkRef-u29GSuCu.js +0 -27
  483. package/dist/useFormControl-CatNKXAi.js +0 -10
  484. package/dist/useFormControl-haP0iPhl.cjs +0 -1
  485. package/dist/useId-CK6Kn3Tn.js +0 -21
  486. package/dist/useId-DNXtOFeX.cjs +0 -1
  487. package/dist/usePreviousProps-ByGlbpJ6.js +0 -10
  488. package/dist/usePreviousProps-jC3PWcIp.cjs +0 -1
  489. package/dist/useSlot-BSkdRaZr.js +0 -125
  490. package/dist/useSlot-C-aMxEm0.cjs +0 -1
  491. package/dist/useSlotProps-BVVfeURp.cjs +0 -1
  492. package/dist/useSlotProps-CWTjRiRv.js +0 -25
  493. package/dist/useTheme-0AkY41zn.js +0 -11
  494. package/dist/useTheme-BT6SDKkk.cjs +0 -1
  495. package/dist/useTheme-BrGF2Vm0.cjs +0 -1
  496. package/dist/useTheme-DSA6Ir8k.js +0 -18
  497. package/dist/useThemeProps-BWsN0TEk.cjs +0 -1
  498. package/dist/useThemeProps-CAonvyKa.js +0 -27
  499. package/dist/useThemeProps-JozrkyA_.cjs +0 -1
  500. package/dist/useThemeProps-hSh1qhnc.js +0 -17
  501. package/dist/useTimeout-COCrDKz-.cjs +0 -1
  502. package/dist/useTimeout-CrCYVizI.js +0 -42
  503. package/dist/utils-BWx1W_q1.cjs +0 -1
  504. package/dist/utils-B_pVp6UZ.js +0 -363
  505. package/dist/utils-DWqc1kRF.js +0 -13
  506. package/dist/utils-XujN9ndp.cjs +0 -1
  507. package/dist/warning-C8W811fV.js +0 -11
  508. package/dist/warning-DMUNDgRg.cjs +0 -2
@@ -1,2046 +0,0 @@
1
- import { jsx as O, jsxs as de } from "react/jsx-runtime";
2
- import { c as Ce } from "./createSvgIcon-DFIM5PqN.js";
3
- import At from "./components/EllipsisWithTooltip/EllipsisWithTooltip.es.js";
4
- import { treeItemRootStyle as Pt, treeContentStyle as zt, iconStyle as Be, arrowContainerStyle as jt, expandedGroupStyle as $t } from "./components/TreeView/style.es.js";
5
- import { getIconComponent as Kt } from "./components/TreeView/utils.es.js";
6
- import { _ as E } from "./ButtonBase-C2jRC_V7.js";
7
- import * as P from "react";
8
- import Se from "react";
9
- import { u as Ft } from "./useEventCallback-Y2KwRxBw.js";
10
- import { u as ke } from "./useForkRef-u29GSuCu.js";
11
- import { e as B, r as Ge } from "./useSlot-BSkdRaZr.js";
12
- import { P as m } from "./index-B9vkf41S.js";
13
- import { a as at } from "./TransitionGroupContext-DbLioz_6.js";
14
- import { F as lt, G as ct, w as Wt, H as W, n as ue } from "./generateUtilityClasses-B_xKAflz.js";
15
- import { u as Bt } from "./useThemeProps-hSh1qhnc.js";
16
- import { u as Gt, s as K, c as ut, f as Me } from "./DefaultPropsProvider-BrmlvPWg.js";
17
- import { u as qt } from "./useTheme-0AkY41zn.js";
18
- import { m as Ut } from "./memoTheme-C-PaH-Cy.js";
19
- import { T as Xt, g as qe } from "./utils-B_pVp6UZ.js";
20
- import { u as Yt } from "./useTimeout-CrCYVizI.js";
21
- import { e as Jt } from "./elementTypeAcceptingRef-vRb2iI4O.js";
22
- import { u as G } from "./useSlotProps-CWTjRiRv.js";
23
- import { C as Qt } from "./Checkbox-RxHWtafR.js";
24
- import { C as Zt } from "./CircularProgress-CLq0Rl-1.js";
25
- import { u as Ht } from "./unsupportedProp-BuVD30Gh.js";
26
- import { B as en } from "./Box-BaZ7KlAc.js";
27
- function tn(e) {
28
- return ct("MuiCollapse", e);
29
- }
30
- const Uo = lt("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), nn = (e) => {
31
- const {
32
- orientation: t,
33
- classes: n
34
- } = e, o = {
35
- root: ["root", `${t}`],
36
- entered: ["entered"],
37
- hidden: ["hidden"],
38
- wrapper: ["wrapper", `${t}`],
39
- wrapperInner: ["wrapperInner", `${t}`]
40
- };
41
- return ut(o, tn, n);
42
- }, on = K("div", {
43
- name: "MuiCollapse",
44
- slot: "Root",
45
- overridesResolver: (e, t) => {
46
- const {
47
- ownerState: n
48
- } = e;
49
- return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
50
- }
51
- })(Ut(({
52
- theme: e
53
- }) => ({
54
- height: 0,
55
- overflow: "hidden",
56
- transition: e.transitions.create("height"),
57
- variants: [{
58
- props: {
59
- orientation: "horizontal"
60
- },
61
- style: {
62
- height: "auto",
63
- width: 0,
64
- transition: e.transitions.create("width")
65
- }
66
- }, {
67
- props: {
68
- state: "entered"
69
- },
70
- style: {
71
- height: "auto",
72
- overflow: "visible"
73
- }
74
- }, {
75
- props: {
76
- state: "entered",
77
- orientation: "horizontal"
78
- },
79
- style: {
80
- width: "auto"
81
- }
82
- }, {
83
- props: ({
84
- ownerState: t
85
- }) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
86
- style: {
87
- visibility: "hidden"
88
- }
89
- }]
90
- }))), rn = K("div", {
91
- name: "MuiCollapse",
92
- slot: "Wrapper"
93
- })({
94
- // Hack to get children with a negative margin to not falsify the height computation.
95
- display: "flex",
96
- width: "100%",
97
- variants: [{
98
- props: {
99
- orientation: "horizontal"
100
- },
101
- style: {
102
- width: "auto",
103
- height: "100%"
104
- }
105
- }]
106
- }), sn = K("div", {
107
- name: "MuiCollapse",
108
- slot: "WrapperInner"
109
- })({
110
- width: "100%",
111
- variants: [{
112
- props: {
113
- orientation: "horizontal"
114
- },
115
- style: {
116
- width: "auto",
117
- height: "100%"
118
- }
119
- }]
120
- }), ve = /* @__PURE__ */ P.forwardRef(function(t, n) {
121
- const o = Gt({
122
- props: t,
123
- name: "MuiCollapse"
124
- }), {
125
- addEndListener: r,
126
- children: s,
127
- className: u,
128
- collapsedSize: i = "0px",
129
- component: l,
130
- easing: a,
131
- in: d,
132
- onEnter: h,
133
- onEntered: I,
134
- onEntering: p,
135
- onExit: c,
136
- onExited: b,
137
- onExiting: y,
138
- orientation: x = "vertical",
139
- style: L,
140
- timeout: R = Wt.standard,
141
- // eslint-disable-next-line react/prop-types
142
- TransitionComponent: V = Xt,
143
- ...A
144
- } = o, w = {
145
- ...o,
146
- orientation: x,
147
- collapsedSize: i
148
- }, _ = nn(w), D = qt(), v = Yt(), N = P.useRef(null), F = P.useRef(), J = typeof i == "number" ? `${i}px` : i, Q = x === "horizontal", X = Q ? "width" : "height", Z = P.useRef(null), ie = ke(n, Z), Y = (T) => ($) => {
149
- if (T) {
150
- const j = Z.current;
151
- $ === void 0 ? T(j) : T(j, $);
152
- }
153
- }, H = () => N.current ? N.current[Q ? "clientWidth" : "clientHeight"] : 0, fe = Y((T, $) => {
154
- N.current && Q && (N.current.style.position = "absolute"), T.style[X] = J, h && h(T, $);
155
- }), ae = Y((T, $) => {
156
- const j = H();
157
- N.current && Q && (N.current.style.position = "");
158
- const {
159
- duration: ee,
160
- easing: g
161
- } = qe({
162
- style: L,
163
- timeout: R,
164
- easing: a
165
- }, {
166
- mode: "enter"
167
- });
168
- if (R === "auto") {
169
- const f = D.transitions.getAutoHeightDuration(j);
170
- T.style.transitionDuration = `${f}ms`, F.current = f;
171
- } else
172
- T.style.transitionDuration = typeof ee == "string" ? ee : `${ee}ms`;
173
- T.style[X] = `${j}px`, T.style.transitionTimingFunction = g, p && p(T, $);
174
- }), me = Y((T, $) => {
175
- T.style[X] = "auto", I && I(T, $);
176
- }), le = Y((T) => {
177
- T.style[X] = `${H()}px`, c && c(T);
178
- }), ge = Y(b), ce = Y((T) => {
179
- const $ = H(), {
180
- duration: j,
181
- easing: ee
182
- } = qe({
183
- style: L,
184
- timeout: R,
185
- easing: a
186
- }, {
187
- mode: "exit"
188
- });
189
- if (R === "auto") {
190
- const g = D.transitions.getAutoHeightDuration($);
191
- T.style.transitionDuration = `${g}ms`, F.current = g;
192
- } else
193
- T.style.transitionDuration = typeof j == "string" ? j : `${j}ms`;
194
- T.style[X] = J, T.style.transitionTimingFunction = ee, y && y(T);
195
- });
196
- return /* @__PURE__ */ O(V, {
197
- in: d,
198
- onEnter: fe,
199
- onEntered: me,
200
- onEntering: ae,
201
- onExit: le,
202
- onExited: ge,
203
- onExiting: ce,
204
- addEndListener: (T) => {
205
- R === "auto" && v.start(F.current || 0, T), r && r(Z.current, T);
206
- },
207
- nodeRef: Z,
208
- timeout: R === "auto" ? null : R,
209
- ...A,
210
- children: (T, {
211
- ownerState: $,
212
- ...j
213
- }) => /* @__PURE__ */ O(on, {
214
- as: l,
215
- className: W(_.root, u, {
216
- entered: _.entered,
217
- exited: !d && J === "0px" && _.hidden
218
- }[T]),
219
- style: {
220
- [Q ? "minWidth" : "minHeight"]: J,
221
- ...L
222
- },
223
- ref: ie,
224
- ownerState: {
225
- ...w,
226
- state: T
227
- },
228
- ...j,
229
- children: /* @__PURE__ */ O(rn, {
230
- ownerState: {
231
- ...w,
232
- state: T
233
- },
234
- className: _.wrapper,
235
- ref: N,
236
- children: /* @__PURE__ */ O(sn, {
237
- ownerState: {
238
- ...w,
239
- state: T
240
- },
241
- className: _.wrapperInner,
242
- children: s
243
- })
244
- })
245
- })
246
- });
247
- });
248
- process.env.NODE_ENV !== "production" && (ve.propTypes = {
249
- // ┌────────────────────────────── Warning ──────────────────────────────┐
250
- // │ These PropTypes are generated from the TypeScript type definitions. │
251
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
252
- // └─────────────────────────────────────────────────────────────────────┘
253
- /**
254
- * Add a custom transition end trigger. Called with the transitioning DOM
255
- * node and a done callback. Allows for more fine grained transition end
256
- * logic. Note: Timeouts are still used as a fallback if provided.
257
- */
258
- addEndListener: m.func,
259
- /**
260
- * The content node to be collapsed.
261
- */
262
- children: m.node,
263
- /**
264
- * Override or extend the styles applied to the component.
265
- */
266
- classes: m.object,
267
- /**
268
- * @ignore
269
- */
270
- className: m.string,
271
- /**
272
- * The width (horizontal) or height (vertical) of the container when collapsed.
273
- * @default '0px'
274
- */
275
- collapsedSize: m.oneOfType([m.number, m.string]),
276
- /**
277
- * The component used for the root node.
278
- * Either a string to use a HTML element or a component.
279
- */
280
- component: Jt,
281
- /**
282
- * The transition timing function.
283
- * You may specify a single easing or a object containing enter and exit values.
284
- */
285
- easing: m.oneOfType([m.shape({
286
- enter: m.string,
287
- exit: m.string
288
- }), m.string]),
289
- /**
290
- * If `true`, the component will transition in.
291
- */
292
- in: m.bool,
293
- /**
294
- * @ignore
295
- */
296
- onEnter: m.func,
297
- /**
298
- * @ignore
299
- */
300
- onEntered: m.func,
301
- /**
302
- * @ignore
303
- */
304
- onEntering: m.func,
305
- /**
306
- * @ignore
307
- */
308
- onExit: m.func,
309
- /**
310
- * @ignore
311
- */
312
- onExited: m.func,
313
- /**
314
- * @ignore
315
- */
316
- onExiting: m.func,
317
- /**
318
- * The transition orientation.
319
- * @default 'vertical'
320
- */
321
- orientation: m.oneOf(["horizontal", "vertical"]),
322
- /**
323
- * @ignore
324
- */
325
- style: m.object,
326
- /**
327
- * The system prop that allows defining system overrides as well as additional CSS styles.
328
- */
329
- sx: m.oneOfType([m.arrayOf(m.oneOfType([m.func, m.object, m.bool])), m.func, m.object]),
330
- /**
331
- * The duration for the transition, in milliseconds.
332
- * You may specify a single timeout for all transitions, or individually with an object.
333
- *
334
- * Set to 'auto' to automatically calculate transition time based on height.
335
- * @default duration.standard
336
- */
337
- timeout: m.oneOfType([m.oneOf(["auto"]), m.number, m.shape({
338
- appear: m.number,
339
- enter: m.number,
340
- exit: m.number
341
- })])
342
- });
343
- ve && (ve.muiSupportAuto = !0);
344
- const an = Ce(/* @__PURE__ */ O("path", {
345
- d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
346
- }), "KeyboardArrowDown"), ln = Ce(/* @__PURE__ */ O("path", {
347
- d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
348
- }), "KeyboardArrowRight");
349
- function cn(e) {
350
- return Bt;
351
- }
352
- var be = { exports: {} }, Oe = {}, ye = { exports: {} }, _e = {};
353
- /**
354
- * @license React
355
- * use-sync-external-store-shim.production.js
356
- *
357
- * Copyright (c) Meta Platforms, Inc. and affiliates.
358
- *
359
- * This source code is licensed under the MIT license found in the
360
- * LICENSE file in the root directory of this source tree.
361
- */
362
- var Ue;
363
- function un() {
364
- if (Ue) return _e;
365
- Ue = 1;
366
- var e = Se;
367
- function t(h, I) {
368
- return h === I && (h !== 0 || 1 / h === 1 / I) || h !== h && I !== I;
369
- }
370
- var n = typeof Object.is == "function" ? Object.is : t, o = e.useState, r = e.useEffect, s = e.useLayoutEffect, u = e.useDebugValue;
371
- function i(h, I) {
372
- var p = I(), c = o({ inst: { value: p, getSnapshot: I } }), b = c[0].inst, y = c[1];
373
- return s(
374
- function() {
375
- b.value = p, b.getSnapshot = I, l(b) && y({ inst: b });
376
- },
377
- [h, p, I]
378
- ), r(
379
- function() {
380
- return l(b) && y({ inst: b }), h(function() {
381
- l(b) && y({ inst: b });
382
- });
383
- },
384
- [h]
385
- ), u(p), p;
386
- }
387
- function l(h) {
388
- var I = h.getSnapshot;
389
- h = h.value;
390
- try {
391
- var p = I();
392
- return !n(h, p);
393
- } catch {
394
- return !0;
395
- }
396
- }
397
- function a(h, I) {
398
- return I();
399
- }
400
- var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : i;
401
- return _e.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, _e;
402
- }
403
- var Re = {};
404
- /**
405
- * @license React
406
- * use-sync-external-store-shim.development.js
407
- *
408
- * Copyright (c) Meta Platforms, Inc. and affiliates.
409
- *
410
- * This source code is licensed under the MIT license found in the
411
- * LICENSE file in the root directory of this source tree.
412
- */
413
- var Xe;
414
- function dn() {
415
- return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && (function() {
416
- function e(p, c) {
417
- return p === c && (p !== 0 || 1 / p === 1 / c) || p !== p && c !== c;
418
- }
419
- function t(p, c) {
420
- d || r.startTransition === void 0 || (d = !0, console.error(
421
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
422
- ));
423
- var b = c();
424
- if (!h) {
425
- var y = c();
426
- s(b, y) || (console.error(
427
- "The result of getSnapshot should be cached to avoid an infinite loop"
428
- ), h = !0);
429
- }
430
- y = u({
431
- inst: { value: b, getSnapshot: c }
432
- });
433
- var x = y[0].inst, L = y[1];
434
- return l(
435
- function() {
436
- x.value = b, x.getSnapshot = c, n(x) && L({ inst: x });
437
- },
438
- [p, b, c]
439
- ), i(
440
- function() {
441
- return n(x) && L({ inst: x }), p(function() {
442
- n(x) && L({ inst: x });
443
- });
444
- },
445
- [p]
446
- ), a(b), b;
447
- }
448
- function n(p) {
449
- var c = p.getSnapshot;
450
- p = p.value;
451
- try {
452
- var b = c();
453
- return !s(p, b);
454
- } catch {
455
- return !0;
456
- }
457
- }
458
- function o(p, c) {
459
- return c();
460
- }
461
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
462
- var r = Se, s = typeof Object.is == "function" ? Object.is : e, u = r.useState, i = r.useEffect, l = r.useLayoutEffect, a = r.useDebugValue, d = !1, h = !1, I = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? o : t;
463
- Re.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : I, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
464
- })()), Re;
465
- }
466
- var Ye;
467
- function dt() {
468
- return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? ye.exports = un() : ye.exports = dn()), ye.exports;
469
- }
470
- /**
471
- * @license React
472
- * use-sync-external-store-shim/with-selector.production.js
473
- *
474
- * Copyright (c) Meta Platforms, Inc. and affiliates.
475
- *
476
- * This source code is licensed under the MIT license found in the
477
- * LICENSE file in the root directory of this source tree.
478
- */
479
- var Je;
480
- function pn() {
481
- if (Je) return Oe;
482
- Je = 1;
483
- var e = Se, t = dt();
484
- function n(a, d) {
485
- return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
486
- }
487
- var o = typeof Object.is == "function" ? Object.is : n, r = t.useSyncExternalStore, s = e.useRef, u = e.useEffect, i = e.useMemo, l = e.useDebugValue;
488
- return Oe.useSyncExternalStoreWithSelector = function(a, d, h, I, p) {
489
- var c = s(null);
490
- if (c.current === null) {
491
- var b = { hasValue: !1, value: null };
492
- c.current = b;
493
- } else b = c.current;
494
- c = i(
495
- function() {
496
- function x(w) {
497
- if (!L) {
498
- if (L = !0, R = w, w = I(w), p !== void 0 && b.hasValue) {
499
- var _ = b.value;
500
- if (p(_, w))
501
- return V = _;
502
- }
503
- return V = w;
504
- }
505
- if (_ = V, o(R, w)) return _;
506
- var D = I(w);
507
- return p !== void 0 && p(_, D) ? (R = w, _) : (R = w, V = D);
508
- }
509
- var L = !1, R, V, A = h === void 0 ? null : h;
510
- return [
511
- function() {
512
- return x(d());
513
- },
514
- A === null ? void 0 : function() {
515
- return x(A());
516
- }
517
- ];
518
- },
519
- [d, h, I, p]
520
- );
521
- var y = r(a, c[0], c[1]);
522
- return u(
523
- function() {
524
- b.hasValue = !0, b.value = y;
525
- },
526
- [y]
527
- ), l(y), y;
528
- }, Oe;
529
- }
530
- var De = {};
531
- /**
532
- * @license React
533
- * use-sync-external-store-shim/with-selector.development.js
534
- *
535
- * Copyright (c) Meta Platforms, Inc. and affiliates.
536
- *
537
- * This source code is licensed under the MIT license found in the
538
- * LICENSE file in the root directory of this source tree.
539
- */
540
- var Qe;
541
- function fn() {
542
- return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && (function() {
543
- function e(a, d) {
544
- return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
545
- }
546
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
547
- var t = Se, n = dt(), o = typeof Object.is == "function" ? Object.is : e, r = n.useSyncExternalStore, s = t.useRef, u = t.useEffect, i = t.useMemo, l = t.useDebugValue;
548
- De.useSyncExternalStoreWithSelector = function(a, d, h, I, p) {
549
- var c = s(null);
550
- if (c.current === null) {
551
- var b = { hasValue: !1, value: null };
552
- c.current = b;
553
- } else b = c.current;
554
- c = i(
555
- function() {
556
- function x(w) {
557
- if (!L) {
558
- if (L = !0, R = w, w = I(w), p !== void 0 && b.hasValue) {
559
- var _ = b.value;
560
- if (p(_, w))
561
- return V = _;
562
- }
563
- return V = w;
564
- }
565
- if (_ = V, o(R, w))
566
- return _;
567
- var D = I(w);
568
- return p !== void 0 && p(_, D) ? (R = w, _) : (R = w, V = D);
569
- }
570
- var L = !1, R, V, A = h === void 0 ? null : h;
571
- return [
572
- function() {
573
- return x(d());
574
- },
575
- A === null ? void 0 : function() {
576
- return x(A());
577
- }
578
- ];
579
- },
580
- [d, h, I, p]
581
- );
582
- var y = r(a, c[0], c[1]);
583
- return u(
584
- function() {
585
- b.hasValue = !0, b.value = y;
586
- },
587
- [y]
588
- ), l(y), y;
589
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
590
- })()), De;
591
- }
592
- var Ze;
593
- function mn() {
594
- return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? be.exports = pn() : be.exports = fn()), be.exports;
595
- }
596
- var gn = mn();
597
- const bn = Object.is, M = (e, t, n = void 0, o = bn) => {
598
- const r = (s) => t(s, n);
599
- return gn.useSyncExternalStoreWithSelector(e.subscribe, e.getSnapshot, e.getSnapshot, r, o);
600
- };
601
- var yn = (e, t, n) => {
602
- if (t.length === 1 && t[0] === n) {
603
- let o = !1;
604
- try {
605
- const r = {};
606
- e(r) === r && (o = !0);
607
- } catch {
608
- }
609
- if (o) {
610
- let r;
611
- try {
612
- throw new Error();
613
- } catch (s) {
614
- ({ stack: r } = s);
615
- }
616
- console.warn(
617
- `The result function returned its own inputs without modification. e.g
618
- \`createSelector([state => state.todos], todos => todos)\`
619
- This could lead to inefficient memoization and unnecessary re-renders.
620
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
621
- { stack: r }
622
- );
623
- }
624
- }
625
- }, hn = (e, t, n) => {
626
- const { memoize: o, memoizeOptions: r } = t, { inputSelectorResults: s, inputSelectorResultsCopy: u } = e, i = o(() => ({}), ...r);
627
- if (!(i.apply(null, s) === i.apply(null, u))) {
628
- let a;
629
- try {
630
- throw new Error();
631
- } catch (d) {
632
- ({ stack: a } = d);
633
- }
634
- console.warn(
635
- `An input selector returned a different result when passed same arguments.
636
- This means your output selector will likely run more frequently than intended.
637
- Avoid returning a new reference inside your input selector, e.g.
638
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
639
- {
640
- arguments: n,
641
- firstInputs: s,
642
- secondInputs: u,
643
- stack: a
644
- }
645
- );
646
- }
647
- }, In = {
648
- inputStabilityCheck: "once",
649
- identityFunctionCheck: "once"
650
- }, Ee = /* @__PURE__ */ Symbol("NOT_FOUND");
651
- function vn(e, t = `expected a function, instead received ${typeof e}`) {
652
- if (typeof e != "function")
653
- throw new TypeError(t);
654
- }
655
- function En(e, t = `expected an object, instead received ${typeof e}`) {
656
- if (typeof e != "object")
657
- throw new TypeError(t);
658
- }
659
- function Cn(e, t = "expected all items to be functions, instead received the following types: ") {
660
- if (!e.every((n) => typeof n == "function")) {
661
- const n = e.map(
662
- (o) => typeof o == "function" ? `function ${o.name || "unnamed"}()` : typeof o
663
- ).join(", ");
664
- throw new TypeError(`${t}[${n}]`);
665
- }
666
- }
667
- var He = (e) => Array.isArray(e) ? e : [e];
668
- function Sn(e) {
669
- const t = Array.isArray(e[0]) ? e[0] : e;
670
- return Cn(
671
- t,
672
- "createSelector expects all input-selectors to be functions, but received the following types: "
673
- ), t;
674
- }
675
- function et(e, t) {
676
- const n = [], { length: o } = e;
677
- for (let r = 0; r < o; r++)
678
- n.push(e[r].apply(null, t));
679
- return n;
680
- }
681
- var Tn = (e, t) => {
682
- const { identityFunctionCheck: n, inputStabilityCheck: o } = {
683
- ...In,
684
- ...t
685
- };
686
- return {
687
- identityFunctionCheck: {
688
- shouldRun: n === "always" || n === "once" && e,
689
- run: yn
690
- },
691
- inputStabilityCheck: {
692
- shouldRun: o === "always" || o === "once" && e,
693
- run: hn
694
- }
695
- };
696
- };
697
- function xn(e) {
698
- let t;
699
- return {
700
- get(n) {
701
- return t && e(t.key, n) ? t.value : Ee;
702
- },
703
- put(n, o) {
704
- t = { key: n, value: o };
705
- },
706
- getEntries() {
707
- return t ? [t] : [];
708
- },
709
- clear() {
710
- t = void 0;
711
- }
712
- };
713
- }
714
- function wn(e, t) {
715
- let n = [];
716
- function o(i) {
717
- const l = n.findIndex((a) => t(i, a.key));
718
- if (l > -1) {
719
- const a = n[l];
720
- return l > 0 && (n.splice(l, 1), n.unshift(a)), a.value;
721
- }
722
- return Ee;
723
- }
724
- function r(i, l) {
725
- o(i) === Ee && (n.unshift({ key: i, value: l }), n.length > e && n.pop());
726
- }
727
- function s() {
728
- return n;
729
- }
730
- function u() {
731
- n = [];
732
- }
733
- return { get: o, put: r, getEntries: s, clear: u };
734
- }
735
- var On = (e, t) => e === t;
736
- function _n(e) {
737
- return function(n, o) {
738
- if (n === null || o === null || n.length !== o.length)
739
- return !1;
740
- const { length: r } = n;
741
- for (let s = 0; s < r; s++)
742
- if (!e(n[s], o[s]))
743
- return !1;
744
- return !0;
745
- };
746
- }
747
- function Rn(e, t) {
748
- const n = typeof t == "object" ? t : { equalityCheck: t }, {
749
- equalityCheck: o = On,
750
- maxSize: r = 1,
751
- resultEqualityCheck: s
752
- } = n, u = _n(o);
753
- let i = 0;
754
- const l = r <= 1 ? xn(u) : wn(r, u);
755
- function a() {
756
- let d = l.get(arguments);
757
- if (d === Ee) {
758
- if (d = e.apply(null, arguments), i++, s) {
759
- const I = l.getEntries().find(
760
- (p) => s(p.value, d)
761
- );
762
- I && (d = I.value, i !== 0 && i--);
763
- }
764
- l.put(arguments, d);
765
- }
766
- return d;
767
- }
768
- return a.clearCache = () => {
769
- l.clear(), a.resetResultsCount();
770
- }, a.resultsCount = () => i, a.resetResultsCount = () => {
771
- i = 0;
772
- }, a;
773
- }
774
- var Dn = class {
775
- constructor(e) {
776
- this.value = e;
777
- }
778
- deref() {
779
- return this.value;
780
- }
781
- }, Ln = typeof WeakRef < "u" ? WeakRef : Dn, kn = 0, tt = 1;
782
- function he() {
783
- return {
784
- s: kn,
785
- v: void 0,
786
- o: null,
787
- p: null
788
- };
789
- }
790
- function pt(e, t = {}) {
791
- let n = he();
792
- const { resultEqualityCheck: o } = t;
793
- let r, s = 0;
794
- function u() {
795
- var h;
796
- let i = n;
797
- const { length: l } = arguments;
798
- for (let I = 0, p = l; I < p; I++) {
799
- const c = arguments[I];
800
- if (typeof c == "function" || typeof c == "object" && c !== null) {
801
- let b = i.o;
802
- b === null && (i.o = b = /* @__PURE__ */ new WeakMap());
803
- const y = b.get(c);
804
- y === void 0 ? (i = he(), b.set(c, i)) : i = y;
805
- } else {
806
- let b = i.p;
807
- b === null && (i.p = b = /* @__PURE__ */ new Map());
808
- const y = b.get(c);
809
- y === void 0 ? (i = he(), b.set(c, i)) : i = y;
810
- }
811
- }
812
- const a = i;
813
- let d;
814
- if (i.s === tt)
815
- d = i.v;
816
- else if (d = e.apply(null, arguments), s++, o) {
817
- const I = ((h = r == null ? void 0 : r.deref) == null ? void 0 : h.call(r)) ?? r;
818
- I != null && o(I, d) && (d = I, s !== 0 && s--), r = typeof d == "object" && d !== null || typeof d == "function" ? new Ln(d) : d;
819
- }
820
- return a.s = tt, a.v = d, d;
821
- }
822
- return u.clearCache = () => {
823
- n = he(), u.resetResultsCount();
824
- }, u.resultsCount = () => s, u.resetResultsCount = () => {
825
- s = 0;
826
- }, u;
827
- }
828
- function ft(e, ...t) {
829
- const n = typeof e == "function" ? {
830
- memoize: e,
831
- memoizeOptions: t
832
- } : e, o = (...r) => {
833
- let s = 0, u = 0, i, l = {}, a = r.pop();
834
- typeof a == "object" && (l = a, a = r.pop()), vn(
835
- a,
836
- `createSelector expects an output function after the inputs, but received: [${typeof a}]`
837
- );
838
- const d = {
839
- ...n,
840
- ...l
841
- }, {
842
- memoize: h,
843
- memoizeOptions: I = [],
844
- argsMemoize: p = pt,
845
- argsMemoizeOptions: c = [],
846
- devModeChecks: b = {}
847
- } = d, y = He(I), x = He(c), L = Sn(r), R = h(function() {
848
- return s++, a.apply(
849
- null,
850
- arguments
851
- );
852
- }, ...y);
853
- let V = !0;
854
- const A = p(function() {
855
- u++;
856
- const _ = et(
857
- L,
858
- arguments
859
- );
860
- if (i = R.apply(null, _), process.env.NODE_ENV !== "production") {
861
- const { identityFunctionCheck: D, inputStabilityCheck: v } = Tn(V, b);
862
- if (D.shouldRun && D.run(
863
- a,
864
- _,
865
- i
866
- ), v.shouldRun) {
867
- const N = et(
868
- L,
869
- arguments
870
- );
871
- v.run(
872
- { inputSelectorResults: _, inputSelectorResultsCopy: N },
873
- { memoize: h, memoizeOptions: y },
874
- arguments
875
- );
876
- }
877
- V && (V = !1);
878
- }
879
- return i;
880
- }, ...x);
881
- return Object.assign(A, {
882
- resultFunc: a,
883
- memoizedResultFunc: R,
884
- dependencies: L,
885
- dependencyRecomputations: () => u,
886
- resetDependencyRecomputations: () => {
887
- u = 0;
888
- },
889
- lastResult: () => i,
890
- recomputations: () => s,
891
- resetRecomputations: () => {
892
- s = 0;
893
- },
894
- memoize: h,
895
- argsMemoize: p
896
- });
897
- };
898
- return Object.assign(o, {
899
- withTypes: () => o
900
- }), o;
901
- }
902
- var Vn = /* @__PURE__ */ ft(pt), Nn = Object.assign(
903
- (e, t = Vn) => {
904
- En(
905
- e,
906
- `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
907
- );
908
- const n = Object.keys(e), o = n.map(
909
- (s) => e[s]
910
- );
911
- return t(
912
- o,
913
- (...s) => s.reduce((u, i, l) => (u[n[l]] = i, u), {})
914
- );
915
- },
916
- { withTypes: () => Nn }
917
- );
918
- const Mn = ft({
919
- memoize: Rn,
920
- memoizeOptions: {
921
- maxSize: 1,
922
- equalityCheck: Object.is
923
- }
924
- }), nt = /* @__PURE__ */ new WeakMap(), C = (...e) => (n, o) => {
925
- const r = n.cacheKey;
926
- let s = nt.get(r);
927
- s || (s = /* @__PURE__ */ new Map(), nt.set(r, s));
928
- const u = s.get(e);
929
- if (u)
930
- return u(n, o);
931
- const i = Mn(...e);
932
- return s.set(e, i), i(n, o);
933
- }, An = (e) => e.id, mt = C(An, (e) => e.treeId);
934
- let ot = 0;
935
- const Xo = () => (ot += 1, `mui-tree-view-${ot}`), gt = ({
936
- id: e,
937
- treeId: t = "",
938
- itemId: n
939
- }) => e ?? `${t}-${n}`, bt = /* @__PURE__ */ P.createContext(null);
940
- process.env.NODE_ENV !== "production" && (bt.displayName = "TreeViewContext");
941
- const Te = () => {
942
- const e = P.useContext(bt);
943
- if (e == null)
944
- 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(`
945
- `));
946
- return e;
947
- }, yt = /* @__PURE__ */ P.createContext({
948
- classes: {},
949
- slots: {},
950
- slotProps: {}
951
- });
952
- process.env.NODE_ENV !== "production" && (yt.displayName = "TreeViewStyleContext");
953
- const ht = () => P.useContext(yt), Ae = "__TREE_VIEW_ROOT_PARENT_ID__", Yo = (e) => {
954
- const t = {};
955
- return e.forEach((n, o) => {
956
- t[n] = o;
957
- }), t;
958
- }, Ve = (e, t) => {
959
- if (t == null)
960
- return !1;
961
- let n = e[t];
962
- if (!n)
963
- return !1;
964
- if (n.disabled)
965
- return !0;
966
- for (; n.parentId != null; ) {
967
- if (n = e[n.parentId], !n)
968
- return !1;
969
- if (n.disabled)
970
- return !0;
971
- }
972
- return !1;
973
- }, It = /* @__PURE__ */ P.createContext(() => -1);
974
- process.env.NODE_ENV !== "production" && (It.displayName = "TreeViewItemDepthContext");
975
- const re = (e) => e.items, Jo = C(re, (e) => e.loading), Qo = C(re, (e) => e.error), Pe = C(re, (e) => e.itemMetaLookup), Pn = [], q = C([re, (e, t) => t], (e, t) => e.itemOrderedChildrenIdsLookup[t ?? Ae] ?? Pn), zn = C([re, (e, t) => t], (e, t) => e.itemModelLookup[t]), U = C([Pe, (e, t) => t], (e, t) => e[t ?? Ae] ?? null), xe = C([Pe, (e, t) => t], Ve), ze = C([re, U], (e, t) => t == null ? -1 : e.itemChildrenIndexesLookup[t.parentId ?? Ae][t.id]), rt = C([U], (e) => (e == null ? void 0 : e.parentId) ?? null), Zo = C([U], (e) => (e == null ? void 0 : e.depth) ?? 0), vt = C([re], (e) => e.disabledItemsFocusable), ne = C([vt, xe], (e, t) => e ? !0 : !t), Et = (e) => e.expansion, jn = C([Et], (e) => e.expandedItems), Ct = C([jn], (e) => {
976
- const t = /* @__PURE__ */ new Map();
977
- return e.forEach((n) => {
978
- t.set(n, !0);
979
- }), t;
980
- }), se = C([Ct, (e, t) => t], (e, t) => e.has(t)), St = C([U], (e) => (e == null ? void 0 : e.expandable) ?? !1), it = C([Et], (e) => e.expansionTrigger), Ne = (e, t) => {
981
- let n = t.length - 1;
982
- for (; n >= 0 && !ne(e, t[n]); )
983
- n -= 1;
984
- if (n !== -1)
985
- return t[n];
986
- }, $n = (e, t) => {
987
- const n = U(e, t);
988
- if (!n)
989
- return null;
990
- const o = q(e, n.parentId), r = ze(e, t);
991
- if (r === 0)
992
- return n.parentId;
993
- let s = r - 1;
994
- for (; !ne(e, o[s]) && s >= 0; )
995
- s -= 1;
996
- if (s === -1)
997
- return n.parentId == null ? null : $n(e, n.parentId);
998
- let u = o[s], i = Ne(e, q(e, u));
999
- for (; se(e, u) && i != null; )
1000
- u = i, i = Ne(e, q(e, u));
1001
- return u;
1002
- }, Kn = (e, t) => {
1003
- if (se(e, t)) {
1004
- const o = q(e, t).find((r) => ne(e, r));
1005
- if (o != null)
1006
- return o;
1007
- }
1008
- let n = U(e, t);
1009
- for (; n != null; ) {
1010
- const o = q(e, n.parentId), r = ze(e, n.id);
1011
- if (r < o.length - 1) {
1012
- let s = r + 1;
1013
- for (; !ne(e, o[s]) && s < o.length - 1; )
1014
- s += 1;
1015
- if (ne(e, o[s]))
1016
- return o[s];
1017
- }
1018
- n = U(e, n.parentId);
1019
- }
1020
- return null;
1021
- }, Ho = (e) => {
1022
- let t = null;
1023
- for (; t == null || se(e, t); ) {
1024
- const n = q(e, t), o = Ne(e, n);
1025
- if (o == null)
1026
- return t;
1027
- t = o;
1028
- }
1029
- return t;
1030
- }, Fn = (e) => q(e, null).find((t) => ne(e, t)), Wn = (e, t, n) => {
1031
- if (t === n)
1032
- return [t, n];
1033
- const o = U(e, t), r = U(e, n);
1034
- if (!o || !r)
1035
- return [t, n];
1036
- if (o.parentId === r.id || r.parentId === o.id)
1037
- return r.parentId === o.id ? [o.id, r.id] : [r.id, o.id];
1038
- const s = [o.id], u = [r.id];
1039
- let i = o.parentId, l = r.parentId, a = u.indexOf(i) !== -1, d = s.indexOf(l) !== -1, h = !0, I = !0;
1040
- for (; !d && !a; )
1041
- h && (s.push(i), a = u.indexOf(i) !== -1, h = i !== null, !a && h && (i = rt(e, i))), I && !a && (u.push(l), d = s.indexOf(l) !== -1, I = l !== null, !d && I && (l = rt(e, l)));
1042
- const p = a ? i : l, c = q(e, p), b = s[s.indexOf(p) - 1], y = u[u.indexOf(p) - 1];
1043
- return c.indexOf(b) < c.indexOf(y) ? [t, n] : [n, t];
1044
- }, er = (e, t, n) => {
1045
- const o = (l) => {
1046
- if (St(e, l) && se(e, l))
1047
- return q(e, l)[0];
1048
- let a = U(e, l);
1049
- for (; a != null; ) {
1050
- const d = q(e, a.parentId), h = ze(e, a.id);
1051
- if (h < d.length - 1)
1052
- return d[h + 1];
1053
- a = a.parentId ? U(e, a.parentId) : null;
1054
- }
1055
- throw new Error("Invalid range");
1056
- }, [r, s] = Wn(e, t, n), u = [r];
1057
- let i = r;
1058
- for (; i !== s; )
1059
- i = o(i), xe(e, i) || u.push(i);
1060
- return u;
1061
- }, tr = (e) => {
1062
- let t = Fn(e);
1063
- const n = [];
1064
- for (; t != null; )
1065
- n.push(t), t = Kn(e, t);
1066
- return n;
1067
- }, st = (e, t) => t !== e.closest('*[role="treeitem"]'), pe = (e) => e.selection, Bn = C([pe], (e) => e.selectedItems), Tt = C([Bn], (e) => Array.isArray(e) ? e : e != null ? [e] : []), Gn = C([Tt], (e) => {
1068
- const t = /* @__PURE__ */ new Map();
1069
- return e.forEach((n) => {
1070
- t.set(n, !0);
1071
- }), t;
1072
- }), qn = C([Gn, (e, t) => t], (e, t) => e.has(t)), Un = C([pe], (e) => e.isEnabled && e.isMultiSelectEnabled), Xn = C([pe], (e) => e.isEnabled), Yn = C([pe], (e) => e.isCheckboxSelectionEnabled), Jn = C([xe, Xn], (e, t) => t && !e), nr = C([pe], (e) => e.selectionPropagation), Qn = (e) => e.focus, Zn = C([Tt, Ct, Pe, vt, (e) => q(e, null)], (e, t, n, o, r) => {
1073
- const s = e.find((i) => {
1074
- if (!o && Ve(n, i))
1075
- return !1;
1076
- const l = n[i];
1077
- return l && (l.parentId == null || t.has(l.parentId));
1078
- });
1079
- if (s != null)
1080
- return s;
1081
- const u = r.find((i) => o || !Ve(n, i));
1082
- return u ?? null;
1083
- }), Hn = C([Zn, (e, t) => t], (e, t) => e === t), eo = C(Qn, (e) => e.focusedItemId), to = C([eo, (e, t) => t], (e, t) => e === t), Le = (e, t) => e.getAvailablePlugins().has(t), je = (e) => e.label, $e = C([je, (e, t) => zn(e, t)], (e, t) => !t || !e ? !1 : typeof e.isItemEditable == "boolean" ? e.isItemEditable : e.isItemEditable(t)), Ie = C([je, (e, t) => t], (e, t) => t ? (e == null ? void 0 : e.editedItemId) === t : !1);
1084
- C(je, (e) => !!(e != null && e.editedItemId));
1085
- const no = ({
1086
- props: e
1087
- }) => {
1088
- const {
1089
- store: t
1090
- } = Te(), {
1091
- label: n,
1092
- itemId: o
1093
- } = e, [r, s] = P.useState(n), u = M(t, $e, o), i = M(t, Ie, o);
1094
- return P.useEffect(() => {
1095
- i || s(n);
1096
- }, [i, n]), {
1097
- propsEnhancers: {
1098
- label: () => ({
1099
- editable: u
1100
- }),
1101
- labelInput: ({
1102
- externalEventHandlers: l,
1103
- interactions: a
1104
- }) => u ? {
1105
- value: r ?? "",
1106
- "data-element": "labelInput",
1107
- onChange: (p) => {
1108
- var c;
1109
- (c = l.onChange) == null || c.call(l, p), s(p.target.value);
1110
- },
1111
- onKeyDown: (p) => {
1112
- var b;
1113
- if ((b = l.onKeyDown) == null || b.call(l, p), p.defaultMuiPrevented)
1114
- return;
1115
- const c = p.target;
1116
- p.key === "Enter" && c.value ? a.handleSaveItemLabel(p, c.value) : p.key === "Escape" && a.handleCancelItemLabelEditing(p);
1117
- },
1118
- onBlur: (p) => {
1119
- var c;
1120
- (c = l.onBlur) == null || c.call(l, p), !p.defaultMuiPrevented && p.target.value && a.handleSaveItemLabel(p, p.target.value);
1121
- },
1122
- autoFocus: !0,
1123
- type: "text"
1124
- } : {}
1125
- }
1126
- };
1127
- }, oe = ({
1128
- store: e,
1129
- params: t
1130
- }) => {
1131
- const n = (r) => {
1132
- r !== null && !$e(e.value, r) || e.update((s) => E({}, s, {
1133
- label: E({}, s.label, {
1134
- editedItemId: r
1135
- })
1136
- }));
1137
- }, o = (r, s) => {
1138
- if (!s)
1139
- 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.", r].join(`
1140
- `));
1141
- e.update((u) => {
1142
- const i = u.items.itemMetaLookup[r];
1143
- return i.label !== s ? E({}, u, {
1144
- items: E({}, u.items, {
1145
- itemMetaLookup: E({}, u.items.itemMetaLookup, {
1146
- [r]: E({}, i, {
1147
- label: s
1148
- })
1149
- })
1150
- })
1151
- }) : u;
1152
- }), t.onItemLabelChange && t.onItemLabelChange(r, s);
1153
- };
1154
- return Ft(() => {
1155
- e.update((r) => E({}, r, {
1156
- label: E({}, r.label, {
1157
- isItemEditable: t.isItemEditable
1158
- })
1159
- }));
1160
- }, [e, t.isItemEditable]), {
1161
- instance: {
1162
- setEditedItem: n,
1163
- updateItemLabel: o
1164
- },
1165
- publicAPI: {
1166
- setEditedItem: n,
1167
- updateItemLabel: o
1168
- }
1169
- };
1170
- };
1171
- oe.itemPlugin = no;
1172
- oe.applyDefaultValuesToParams = ({
1173
- params: e
1174
- }) => E({}, e, {
1175
- isItemEditable: e.isItemEditable ?? !1
1176
- });
1177
- oe.getInitialState = (e) => ({
1178
- label: {
1179
- isItemEditable: e.isItemEditable,
1180
- editedItemId: null
1181
- }
1182
- });
1183
- oe.params = {
1184
- onItemLabelChange: !0,
1185
- isItemEditable: !0
1186
- };
1187
- const oo = (e) => e.lazyLoading, ro = (e) => e.lazyLoading, xt = C([oo], (e) => e.dataSource), io = C([ro], (e) => !!(e != null && e.enabled)), so = C([xt, (e, t) => t], (e, t) => e.loading[t] || !1), ao = C([xt, (e, t) => t], (e, t) => e.errors[t] || null), wt = (e) => Array.isArray(e) ? e.length > 0 && e.some(wt) : !!e, lo = ({
1188
- itemId: e,
1189
- children: t
1190
- }) => {
1191
- const {
1192
- instance: n,
1193
- store: o,
1194
- publicAPI: r
1195
- } = Te(), s = M(o, St, e), u = M(o, io), i = M(o, Un), l = M(o, (v) => u ? so(v, e) : !1), a = M(o, (v) => u ? !!ao(v, e) : !1), d = wt(t) || s, h = M(o, se, e), I = M(o, to, e), p = M(o, qn, e), c = M(o, xe, e), b = M(o, Ie, e), y = M(o, $e, e), x = {
1196
- expandable: d,
1197
- expanded: h,
1198
- focused: I,
1199
- selected: p,
1200
- disabled: c,
1201
- editing: b,
1202
- editable: y,
1203
- loading: l,
1204
- error: a
1205
- }, L = (v) => {
1206
- if (x.disabled)
1207
- return;
1208
- x.focused || n.focusItem(v, e);
1209
- const N = i && (v.shiftKey || v.ctrlKey || v.metaKey);
1210
- x.expandable && !(N && se(o.value, e)) && n.setItemExpansion({
1211
- event: v,
1212
- itemId: e
1213
- });
1214
- }, R = (v) => {
1215
- if (x.disabled)
1216
- return;
1217
- !x.focused && !x.editing && n.focusItem(v, e), i && (v.shiftKey || v.ctrlKey || v.metaKey) ? v.shiftKey ? n.expandSelectionRange(v, e) : n.setItemSelection({
1218
- event: v,
1219
- itemId: e,
1220
- keepExistingSelection: !0
1221
- }) : n.setItemSelection({
1222
- event: v,
1223
- itemId: e,
1224
- shouldBeSelected: !0
1225
- });
1226
- }, V = (v) => {
1227
- const N = v.nativeEvent.shiftKey;
1228
- i && N ? n.expandSelectionRange(v, e) : n.setItemSelection({
1229
- event: v,
1230
- itemId: e,
1231
- keepExistingSelection: i,
1232
- shouldBeSelected: v.target.checked
1233
- });
1234
- }, A = () => {
1235
- Le(n, oe) && (b ? n.setEditedItem(null) : n.setEditedItem(e));
1236
- };
1237
- return {
1238
- interactions: {
1239
- handleExpansion: L,
1240
- handleSelection: R,
1241
- handleCheckboxSelection: V,
1242
- toggleItemEditing: A,
1243
- handleSaveItemLabel: (v, N) => {
1244
- Le(n, oe) && Ie(o.value, e) && (n.updateItemLabel(e, N), A(), n.focusItem(v, e));
1245
- },
1246
- handleCancelItemLabelEditing: (v) => {
1247
- Le(n, oe) && Ie(o.value, e) && (A(), n.focusItem(v, e));
1248
- }
1249
- },
1250
- status: x,
1251
- publicAPI: r
1252
- };
1253
- }, Ot = (e) => {
1254
- const {
1255
- runItemPlugins: t,
1256
- instance: n,
1257
- publicAPI: o,
1258
- store: r
1259
- } = Te(), s = P.useContext(It), u = M(r, (...g) => typeof s == "function" ? s(...g) : s, e.itemId), {
1260
- id: i,
1261
- itemId: l,
1262
- label: a,
1263
- children: d,
1264
- rootRef: h
1265
- } = e, {
1266
- rootRef: I,
1267
- contentRef: p,
1268
- propsEnhancers: c
1269
- } = t(e), {
1270
- interactions: b,
1271
- status: y
1272
- } = lo({
1273
- itemId: l,
1274
- children: d
1275
- }), x = P.useRef(null), L = P.useRef(null), R = ke(h, I, x), V = ke(p, L), A = P.useRef(null), w = M(r, mt), _ = M(r, Jn, l), D = M(r, Yn), v = gt({
1276
- itemId: l,
1277
- treeId: w,
1278
- id: i
1279
- }), N = M(r, Hn, l), F = {
1280
- rootRefObject: x,
1281
- contentRefObject: L,
1282
- interactions: b
1283
- }, J = (g) => (f) => {
1284
- var S;
1285
- (S = g.onFocus) == null || S.call(g, f), !f.defaultMuiPrevented && !y.focused && ne(r.value, l) && f.currentTarget === f.target && n.focusItem(f, l);
1286
- }, Q = (g) => (f) => {
1287
- var k, z, te, Fe, We;
1288
- if ((k = g.onBlur) == null || k.call(g, f), f.defaultMuiPrevented)
1289
- return;
1290
- const S = n.getItemDOMElement(l);
1291
- y.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
1292
- // 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
1293
- f.relatedTarget && st(f.relatedTarget, S) && (f.target && ((te = (z = f.target) == null ? void 0 : z.dataset) == null ? void 0 : te.element) === "labelInput" && st(f.target, S) || ((We = (Fe = f.relatedTarget) == null ? void 0 : Fe.dataset) == null ? void 0 : We.element) === "labelInput") || n.removeFocusedItem();
1294
- }, X = (g) => (f) => {
1295
- var S, k, z;
1296
- (S = g.onKeyDown) == null || S.call(g, f), !(f.defaultMuiPrevented || ((z = (k = f.target) == null ? void 0 : k.dataset) == null ? void 0 : z.element) === "labelInput") && n.handleItemKeyDown(f, l);
1297
- }, Z = (g) => (f) => {
1298
- var S;
1299
- (S = g.onDoubleClick) == null || S.call(g, f), !f.defaultMuiPrevented && b.toggleItemEditing();
1300
- }, ie = (g) => (f) => {
1301
- var S, k;
1302
- (S = g.onClick) == null || S.call(g, f), n.handleItemClick(f, l), !(f.defaultMuiPrevented || (k = A.current) != null && k.contains(f.target)) && (it(r.value) === "content" && b.handleExpansion(f), D || b.handleSelection(f));
1303
- }, Y = (g) => (f) => {
1304
- var S;
1305
- (S = g.onMouseDown) == null || S.call(g, f), !f.defaultMuiPrevented && (f.shiftKey || f.ctrlKey || f.metaKey || y.disabled) && f.preventDefault();
1306
- }, H = (g) => (f) => {
1307
- var S;
1308
- (S = g.onClick) == null || S.call(g, f), !f.defaultMuiPrevented && it(r.value) === "iconContainer" && b.handleExpansion(f);
1309
- };
1310
- return {
1311
- getContextProviderProps: () => ({
1312
- itemId: l,
1313
- id: i
1314
- }),
1315
- getRootProps: (g = {}) => {
1316
- var te;
1317
- const f = E({}, B(e), B(g));
1318
- let S;
1319
- y.selected ? S = !0 : _ ? S = !1 : S = void 0;
1320
- const k = E({}, f, {
1321
- ref: R,
1322
- role: "treeitem",
1323
- tabIndex: N ? 0 : -1,
1324
- id: v,
1325
- "aria-expanded": y.expandable ? y.expanded : void 0,
1326
- "aria-selected": S,
1327
- "aria-disabled": y.disabled || void 0
1328
- }, g, {
1329
- style: E({}, g.style ?? {}, {
1330
- "--TreeView-itemDepth": u
1331
- }),
1332
- onFocus: J(f),
1333
- onBlur: Q(f),
1334
- onKeyDown: X(f)
1335
- }), z = ((te = c.root) == null ? void 0 : te.call(c, E({}, F, {
1336
- externalEventHandlers: f
1337
- }))) ?? {};
1338
- return E({}, k, z);
1339
- },
1340
- getContentProps: (g = {}) => {
1341
- var z;
1342
- const f = B(g), S = E({}, f, g, {
1343
- ref: V,
1344
- onClick: ie(f),
1345
- onMouseDown: Y(f),
1346
- status: y
1347
- });
1348
- ["expanded", "selected", "focused", "disabled", "editing", "editable"].forEach((te) => {
1349
- y[te] && (S[`data-${te}`] = "");
1350
- });
1351
- const k = ((z = c.content) == null ? void 0 : z.call(c, E({}, F, {
1352
- externalEventHandlers: f
1353
- }))) ?? {};
1354
- return E({}, S, k);
1355
- },
1356
- getGroupTransitionProps: (g = {}) => {
1357
- const f = B(g);
1358
- return E({}, f, {
1359
- unmountOnExit: !0,
1360
- component: "ul",
1361
- role: "group",
1362
- in: y.expanded,
1363
- children: d
1364
- }, g);
1365
- },
1366
- getIconContainerProps: (g = {}) => {
1367
- const f = B(g);
1368
- return E({}, f, g, {
1369
- onClick: H(f)
1370
- });
1371
- },
1372
- getCheckboxProps: (g = {}) => {
1373
- var z;
1374
- const f = B(g), S = E({}, f, {
1375
- ref: A,
1376
- "aria-hidden": !0
1377
- }, g), k = ((z = c.checkbox) == null ? void 0 : z.call(c, E({}, F, {
1378
- externalEventHandlers: f
1379
- }))) ?? {};
1380
- return E({}, S, k);
1381
- },
1382
- getLabelProps: (g = {}) => {
1383
- var z;
1384
- const f = E({}, B(g)), S = E({}, f, {
1385
- children: a
1386
- }, g, {
1387
- onDoubleClick: Z(f)
1388
- }), k = ((z = c.label) == null ? void 0 : z.call(c, E({}, F, {
1389
- externalEventHandlers: f
1390
- }))) ?? {};
1391
- return E({}, k, S);
1392
- },
1393
- getLabelInputProps: (g = {}) => {
1394
- var k;
1395
- const f = B(g), S = ((k = c.labelInput) == null ? void 0 : k.call(c, E({}, F, {
1396
- externalEventHandlers: f
1397
- }))) ?? {};
1398
- return E({}, g, S);
1399
- },
1400
- getDragAndDropOverlayProps: (g = {}) => {
1401
- var k;
1402
- const f = B(g), S = ((k = c.dragAndDropOverlay) == null ? void 0 : k.call(c, E({}, F, {
1403
- externalEventHandlers: f
1404
- }))) ?? {};
1405
- return E({}, g, S);
1406
- },
1407
- getErrorContainerProps: (g = {}) => {
1408
- const f = B(g);
1409
- return E({}, f, g);
1410
- },
1411
- getLoadingContainerProps: (g = {}) => {
1412
- const f = B(g);
1413
- return E({
1414
- size: "12px",
1415
- thickness: 6
1416
- }, f, g);
1417
- },
1418
- rootRef: R,
1419
- status: y,
1420
- publicAPI: o
1421
- };
1422
- };
1423
- function co(e) {
1424
- return ct("MuiTreeItem", e);
1425
- }
1426
- lt("MuiTreeItem", [
1427
- "root",
1428
- "content",
1429
- "groupTransition",
1430
- "iconContainer",
1431
- "label",
1432
- "checkbox",
1433
- "labelInput",
1434
- "dragAndDropOverlay",
1435
- "errorIcon",
1436
- "loadingIcon",
1437
- // State classes, will be replaced by data-attrs in the next major
1438
- "expanded",
1439
- "selected",
1440
- "focused",
1441
- "disabled",
1442
- "editable",
1443
- "editing"
1444
- ]);
1445
- const uo = Ce(/* @__PURE__ */ O("path", {
1446
- d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
1447
- }), "TreeViewExpandIcon"), po = Ce(/* @__PURE__ */ O("path", {
1448
- d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
1449
- }), "TreeViewCollapseIcon");
1450
- function _t(e) {
1451
- const {
1452
- slots: t,
1453
- slotProps: n,
1454
- status: o
1455
- } = e, {
1456
- slots: r,
1457
- slotProps: s
1458
- } = ht(), u = {
1459
- collapseIcon: (t == null ? void 0 : t.collapseIcon) ?? r.collapseIcon ?? po,
1460
- expandIcon: (t == null ? void 0 : t.expandIcon) ?? r.expandIcon ?? uo,
1461
- endIcon: (t == null ? void 0 : t.endIcon) ?? r.endIcon,
1462
- icon: t == null ? void 0 : t.icon
1463
- };
1464
- let i;
1465
- u != null && u.icon ? i = "icon" : o.expandable ? o.expanded ? i = "collapseIcon" : i = "expandIcon" : i = "endIcon";
1466
- const l = u[i], a = G({
1467
- elementType: l,
1468
- externalSlotProps: (d) => E({}, Ge(s[i], d), Ge(n == null ? void 0 : n[i], d)),
1469
- // TODO: Add proper ownerState
1470
- ownerState: {}
1471
- });
1472
- return l ? /* @__PURE__ */ O(l, E({}, a)) : null;
1473
- }
1474
- process.env.NODE_ENV !== "production" && (_t.propTypes = {
1475
- // ----------------------------- Warning --------------------------------
1476
- // | These PropTypes are generated from the TypeScript type definitions |
1477
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1478
- // ----------------------------------------------------------------------
1479
- /**
1480
- * The props used for each component slot.
1481
- * @default {}
1482
- */
1483
- slotProps: m.object,
1484
- /**
1485
- * Overridable component slots.
1486
- * @default {}
1487
- */
1488
- slots: m.object,
1489
- status: m.shape({
1490
- disabled: m.bool.isRequired,
1491
- editable: m.bool.isRequired,
1492
- editing: m.bool.isRequired,
1493
- error: m.bool.isRequired,
1494
- expandable: m.bool.isRequired,
1495
- expanded: m.bool.isRequired,
1496
- focused: m.bool.isRequired,
1497
- loading: m.bool.isRequired,
1498
- selected: m.bool.isRequired
1499
- }).isRequired
1500
- });
1501
- const fo = K("div", {
1502
- name: "MuiTreeItemDragAndDropOverlay",
1503
- slot: "Root",
1504
- shouldForwardProp: (e) => Me(e) && e !== "action"
1505
- })(({
1506
- theme: e
1507
- }) => ({
1508
- position: "absolute",
1509
- left: 0,
1510
- display: "flex",
1511
- top: 0,
1512
- bottom: 0,
1513
- right: 0,
1514
- pointerEvents: "none",
1515
- variants: [{
1516
- props: {
1517
- action: "make-child"
1518
- },
1519
- style: {
1520
- marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
1521
- borderRadius: e.shape.borderRadius,
1522
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})` : ue(e.palette.primary.dark, e.palette.action.focusOpacity)
1523
- }
1524
- }, {
1525
- props: {
1526
- action: "reorder-above"
1527
- },
1528
- style: {
1529
- marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
1530
- borderTop: `1px solid ${(e.vars || e).palette.action.active}`
1531
- }
1532
- }, {
1533
- props: {
1534
- action: "reorder-below"
1535
- },
1536
- style: {
1537
- marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
1538
- borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
1539
- }
1540
- }, {
1541
- props: {
1542
- action: "move-to-parent"
1543
- },
1544
- style: {
1545
- marginLeft: "calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",
1546
- borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
1547
- }
1548
- }]
1549
- }));
1550
- function Rt(e) {
1551
- return e.action == null ? null : /* @__PURE__ */ O(fo, E({}, e));
1552
- }
1553
- process.env.NODE_ENV !== "production" && (Rt.propTypes = {
1554
- // ----------------------------- Warning --------------------------------
1555
- // | These PropTypes are generated from the TypeScript type definitions |
1556
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1557
- // ----------------------------------------------------------------------
1558
- action: m.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
1559
- style: m.object
1560
- });
1561
- function Ke(e) {
1562
- const {
1563
- children: t,
1564
- itemId: n,
1565
- id: o
1566
- } = e, {
1567
- wrapItem: r,
1568
- instance: s,
1569
- store: u
1570
- } = Te(), i = M(u, mt), l = gt({
1571
- itemId: n,
1572
- treeId: i,
1573
- id: o
1574
- });
1575
- return /* @__PURE__ */ O(P.Fragment, {
1576
- children: r({
1577
- children: t,
1578
- itemId: n,
1579
- instance: s,
1580
- idAttribute: l
1581
- })
1582
- });
1583
- }
1584
- process.env.NODE_ENV !== "production" && (Ke.propTypes = {
1585
- // ----------------------------- Warning --------------------------------
1586
- // | These PropTypes are generated from the TypeScript type definitions |
1587
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1588
- // ----------------------------------------------------------------------
1589
- children: m.node,
1590
- id: m.string,
1591
- itemId: m.string.isRequired
1592
- });
1593
- const mo = K("input", {
1594
- name: "MuiTreeItem",
1595
- slot: "LabelInput"
1596
- })(({
1597
- theme: e
1598
- }) => E({}, e.typography.body1, {
1599
- width: "100%",
1600
- backgroundColor: (e.vars || e).palette.background.paper,
1601
- borderRadius: e.shape.borderRadius,
1602
- border: "none",
1603
- padding: "0 2px",
1604
- boxSizing: "border-box",
1605
- "&:focus": {
1606
- outline: `1px solid ${(e.vars || e).palette.primary.main}`
1607
- }
1608
- })), go = ["visible"], bo = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps", "classes"], yo = cn(), Dt = K("li", {
1609
- name: "MuiTreeItem",
1610
- slot: "Root"
1611
- })({
1612
- listStyle: "none",
1613
- margin: 0,
1614
- padding: 0,
1615
- outline: 0
1616
- }), Lt = K("div", {
1617
- name: "MuiTreeItem",
1618
- slot: "Content",
1619
- shouldForwardProp: (e) => Me(e) && e !== "status"
1620
- })(({
1621
- theme: e
1622
- }) => ({
1623
- padding: e.spacing(0.5, 1),
1624
- paddingLeft: `calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,
1625
- borderRadius: e.shape.borderRadius,
1626
- width: "100%",
1627
- boxSizing: "border-box",
1628
- // prevent width + padding to overflow
1629
- position: "relative",
1630
- display: "flex",
1631
- alignItems: "center",
1632
- gap: e.spacing(1),
1633
- cursor: "pointer",
1634
- WebkitTapHighlightColor: "transparent",
1635
- "&:hover": {
1636
- backgroundColor: (e.vars || e).palette.action.hover,
1637
- // Reset on touch devices, it doesn't add specificity
1638
- "@media (hover: none)": {
1639
- backgroundColor: "transparent"
1640
- }
1641
- },
1642
- "&[data-disabled]": {
1643
- opacity: (e.vars || e).palette.action.disabledOpacity,
1644
- backgroundColor: "transparent"
1645
- },
1646
- "&[data-focused]": {
1647
- backgroundColor: (e.vars || e).palette.action.focus
1648
- },
1649
- "&[data-selected]": {
1650
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : ue(e.palette.primary.main, e.palette.action.selectedOpacity),
1651
- "&:hover": {
1652
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : ue(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1653
- // Reset on touch devices, it doesn't add specificity
1654
- "@media (hover: none)": {
1655
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : ue(e.palette.primary.main, e.palette.action.selectedOpacity)
1656
- }
1657
- }
1658
- },
1659
- "&[data-selected][data-focused]": {
1660
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : ue(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
1661
- }
1662
- })), ho = K("div", {
1663
- name: "MuiTreeItem",
1664
- slot: "Label",
1665
- shouldForwardProp: (e) => Me(e) && e !== "editable"
1666
- })(({
1667
- theme: e
1668
- }) => E({
1669
- width: "100%",
1670
- boxSizing: "border-box",
1671
- // prevent width + padding to overflow
1672
- // fixes overflow - see https://github.com/mui/material-ui/issues/27372
1673
- minWidth: 0,
1674
- position: "relative",
1675
- overflow: "hidden"
1676
- }, e.typography.body1, {
1677
- variants: [{
1678
- props: ({
1679
- editable: t
1680
- }) => t,
1681
- style: {
1682
- paddingLeft: "2px"
1683
- }
1684
- }]
1685
- })), kt = K("div", {
1686
- name: "MuiTreeItem",
1687
- slot: "IconContainer"
1688
- })({
1689
- width: 16,
1690
- display: "flex",
1691
- flexShrink: 0,
1692
- justifyContent: "center",
1693
- position: "relative",
1694
- "& svg": {
1695
- fontSize: 18
1696
- }
1697
- }), Vt = K(ve, {
1698
- name: "MuiTreeItem",
1699
- slot: "GroupTransition",
1700
- overridesResolver: (e, t) => t.groupTransition
1701
- })({
1702
- margin: 0,
1703
- padding: 0
1704
- }), Io = K("div", {
1705
- name: "MuiTreeItem",
1706
- slot: "ErrorIcon"
1707
- })({
1708
- position: "absolute",
1709
- right: -3,
1710
- width: 7,
1711
- height: 7,
1712
- borderRadius: "50%",
1713
- backgroundColor: "red"
1714
- }), vo = K(Zt, {
1715
- name: "MuiTreeItem",
1716
- slot: "LoadingIcon"
1717
- })({
1718
- color: "text.primary"
1719
- }), Nt = K(/* @__PURE__ */ P.forwardRef((e, t) => {
1720
- const {
1721
- visible: n
1722
- } = e, o = at(e, go);
1723
- return n ? /* @__PURE__ */ O(Qt, E({}, o, {
1724
- ref: t
1725
- })) : null;
1726
- }), {
1727
- name: "MuiTreeItem",
1728
- slot: "Checkbox"
1729
- })({
1730
- padding: 0
1731
- });
1732
- process.env.NODE_ENV !== "production" && (Nt.displayName = "TreeItemCheckbox");
1733
- const Eo = (e) => {
1734
- const {
1735
- classes: t
1736
- } = ht(), n = E({}, e, {
1737
- root: W(e == null ? void 0 : e.root, t.root),
1738
- content: W(e == null ? void 0 : e.content, t.itemContent),
1739
- iconContainer: W(e == null ? void 0 : e.iconContainer, t.itemIconContainer),
1740
- checkbox: W(e == null ? void 0 : e.checkbox, t.itemCheckbox),
1741
- label: W(e == null ? void 0 : e.label, t.itemLabel),
1742
- groupTransition: W(e == null ? void 0 : e.groupTransition, t.itemGroupTransition),
1743
- labelInput: W(e == null ? void 0 : e.labelInput, t.itemLabelInput),
1744
- dragAndDropOverlay: W(e == null ? void 0 : e.dragAndDropOverlay, t.itemDragAndDropOverlay),
1745
- errorIcon: W(e == null ? void 0 : e.errorIcon, t.itemErrorIcon),
1746
- loadingIcon: W(e == null ? void 0 : e.loadingIcon, t.itemLoadingIcon)
1747
- });
1748
- return ut({
1749
- root: ["root"],
1750
- content: ["content"],
1751
- iconContainer: ["iconContainer"],
1752
- checkbox: ["checkbox"],
1753
- label: ["label"],
1754
- groupTransition: ["groupTransition"],
1755
- labelInput: ["labelInput"],
1756
- dragAndDropOverlay: ["dragAndDropOverlay"],
1757
- errorIcon: ["errorIcon"],
1758
- loadingIcon: ["loadingIcon"],
1759
- expanded: ["expanded"],
1760
- editing: ["editing"],
1761
- editable: ["editable"],
1762
- selected: ["selected"],
1763
- focused: ["focused"],
1764
- disabled: ["disabled"]
1765
- }, co, n);
1766
- }, Mt = /* @__PURE__ */ P.forwardRef(function(t, n) {
1767
- const o = yo({
1768
- props: t,
1769
- name: "MuiTreeItem"
1770
- }), {
1771
- id: r,
1772
- itemId: s,
1773
- label: u,
1774
- disabled: i,
1775
- children: l,
1776
- slots: a = {},
1777
- slotProps: d = {},
1778
- classes: h
1779
- } = o, I = at(o, bo), {
1780
- getContextProviderProps: p,
1781
- getRootProps: c,
1782
- getContentProps: b,
1783
- getIconContainerProps: y,
1784
- getCheckboxProps: x,
1785
- getLabelProps: L,
1786
- getGroupTransitionProps: R,
1787
- getLabelInputProps: V,
1788
- getDragAndDropOverlayProps: A,
1789
- getErrorContainerProps: w,
1790
- getLoadingContainerProps: _,
1791
- status: D
1792
- } = Ot({
1793
- id: r,
1794
- itemId: s,
1795
- children: l,
1796
- label: u,
1797
- disabled: i
1798
- }), v = Eo(h), N = a.root ?? Dt, F = G({
1799
- elementType: N,
1800
- getSlotProps: c,
1801
- externalForwardedProps: I,
1802
- externalSlotProps: d.root,
1803
- additionalProps: {
1804
- ref: n
1805
- },
1806
- ownerState: {},
1807
- className: v.root
1808
- }), J = a.content ?? Lt, Q = G({
1809
- elementType: J,
1810
- getSlotProps: b,
1811
- externalSlotProps: d.content,
1812
- ownerState: {},
1813
- className: W(v.content, D.expanded && v.expanded, D.selected && v.selected, D.focused && v.focused, D.disabled && v.disabled, D.editing && v.editing, D.editable && v.editable)
1814
- }), X = a.iconContainer ?? kt, Z = G({
1815
- elementType: X,
1816
- getSlotProps: y,
1817
- externalSlotProps: d.iconContainer,
1818
- ownerState: {},
1819
- className: v.iconContainer
1820
- }), ie = a.label ?? ho, Y = G({
1821
- elementType: ie,
1822
- getSlotProps: L,
1823
- externalSlotProps: d.label,
1824
- ownerState: {},
1825
- className: v.label
1826
- }), H = a.checkbox ?? Nt, fe = G({
1827
- elementType: H,
1828
- getSlotProps: x,
1829
- externalSlotProps: d.checkbox,
1830
- ownerState: {},
1831
- className: v.checkbox
1832
- }), ae = a.groupTransition ?? void 0, me = G({
1833
- elementType: ae,
1834
- getSlotProps: R,
1835
- externalSlotProps: d.groupTransition,
1836
- ownerState: {},
1837
- className: v.groupTransition
1838
- }), le = a.labelInput ?? mo, ge = G({
1839
- elementType: le,
1840
- getSlotProps: V,
1841
- externalSlotProps: d.labelInput,
1842
- ownerState: {},
1843
- className: v.labelInput
1844
- }), ce = a.dragAndDropOverlay ?? Rt, we = G({
1845
- elementType: ce,
1846
- getSlotProps: A,
1847
- externalSlotProps: d.dragAndDropOverlay,
1848
- ownerState: {},
1849
- className: v.dragAndDropOverlay
1850
- }), T = a.errorIcon ?? Io, $ = G({
1851
- elementType: T,
1852
- getSlotProps: w,
1853
- externalSlotProps: d.errorIcon,
1854
- ownerState: {},
1855
- className: v.errorIcon
1856
- }), j = a.loadingIcon ?? vo, ee = G({
1857
- elementType: j,
1858
- getSlotProps: _,
1859
- externalSlotProps: d.loadingIcon,
1860
- ownerState: {},
1861
- className: v.loadingIcon
1862
- });
1863
- return /* @__PURE__ */ O(Ke, E({}, p(), {
1864
- children: /* @__PURE__ */ de(N, E({}, F, {
1865
- children: [/* @__PURE__ */ de(J, E({}, Q, {
1866
- children: [/* @__PURE__ */ de(X, E({}, Z, {
1867
- children: [D.error && /* @__PURE__ */ O(T, E({}, $)), D.loading ? /* @__PURE__ */ O(j, E({}, ee)) : /* @__PURE__ */ O(_t, {
1868
- status: D,
1869
- slots: a,
1870
- slotProps: d
1871
- })]
1872
- })), /* @__PURE__ */ O(H, E({}, fe)), D.editing ? /* @__PURE__ */ O(le, E({}, ge)) : /* @__PURE__ */ O(ie, E({}, Y)), /* @__PURE__ */ O(ce, E({}, we))]
1873
- })), l && /* @__PURE__ */ O(Vt, E({
1874
- as: ae
1875
- }, me))]
1876
- }))
1877
- }));
1878
- });
1879
- process.env.NODE_ENV !== "production" && (Mt.displayName = "TreeItem");
1880
- process.env.NODE_ENV !== "production" && (Mt.propTypes = {
1881
- // ----------------------------- Warning --------------------------------
1882
- // | These PropTypes are generated from the TypeScript type definitions |
1883
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1884
- // ----------------------------------------------------------------------
1885
- /**
1886
- * The content of the component.
1887
- */
1888
- children: m.any,
1889
- /**
1890
- * Override or extend the styles applied to the component.
1891
- */
1892
- classes: m.object,
1893
- className: m.string,
1894
- /**
1895
- * If `true`, the item is disabled.
1896
- * @default false
1897
- */
1898
- disabled: m.bool,
1899
- /**
1900
- * The id attribute of the item. If not provided, it will be generated.
1901
- */
1902
- id: m.string,
1903
- /**
1904
- * The id of the item.
1905
- * Must be unique.
1906
- */
1907
- itemId: m.string.isRequired,
1908
- /**
1909
- * The label of the item.
1910
- */
1911
- label: m.node,
1912
- /**
1913
- * Callback fired when the item root is blurred.
1914
- */
1915
- onBlur: m.func,
1916
- /**
1917
- * This prop isn't supported.
1918
- * Use the `onItemFocus` callback on the tree if you need to monitor an item's focus.
1919
- */
1920
- onFocus: Ht,
1921
- /**
1922
- * Callback fired when a key is pressed on the keyboard and the tree is in focus.
1923
- */
1924
- onKeyDown: m.func,
1925
- /**
1926
- * The props used for each component slot.
1927
- * @default {}
1928
- */
1929
- slotProps: m.object,
1930
- /**
1931
- * Overridable component slots.
1932
- * @default {}
1933
- */
1934
- slots: m.object,
1935
- /**
1936
- * The system prop that allows defining system overrides as well as additional CSS styles.
1937
- */
1938
- sx: m.oneOfType([m.arrayOf(m.oneOfType([m.func, m.object, m.bool])), m.func, m.object])
1939
- });
1940
- function or(e) {
1941
- const {
1942
- id: t,
1943
- itemId: n,
1944
- label: o,
1945
- disabled: r,
1946
- children: s,
1947
- itemData: u,
1948
- iconColor: i = "primary",
1949
- hasNoIcons: l,
1950
- ref: a
1951
- } = e, d = Kt(
1952
- u == null ? void 0 : u.iconType,
1953
- u == null ? void 0 : u.customIcon
1954
- ), {
1955
- getRootProps: h,
1956
- getContentProps: I,
1957
- getLabelProps: p,
1958
- getGroupTransitionProps: c,
1959
- getIconContainerProps: b,
1960
- status: y
1961
- } = Ot({ id: t, itemId: n, label: o, disabled: r, children: s, rootRef: a }), x = {
1962
- ...y.selected && { fontWeight: 600 },
1963
- color: "var(--theme-palette-text-primary)"
1964
- };
1965
- return /* @__PURE__ */ O(Ke, { itemId: n, children: /* @__PURE__ */ de(
1966
- Dt,
1967
- {
1968
- ...h(),
1969
- "data-treeview-item": n || "",
1970
- "data-treeview-item-label": o || "",
1971
- sx: Pt,
1972
- children: [
1973
- /* @__PURE__ */ de(Lt, { ...I(), style: zt, children: [
1974
- !l && /* @__PURE__ */ O(kt, { ...b(), sx: Be, children: /* @__PURE__ */ O(d, { color: i, sx: Be }) }),
1975
- /* @__PURE__ */ O(
1976
- At,
1977
- {
1978
- ...p(),
1979
- typographyProps: x
1980
- }
1981
- ),
1982
- /* @__PURE__ */ O(en, { sx: jt, children: y.expandable && (y.expanded ? /* @__PURE__ */ O(an, { fontSize: "small" }) : /* @__PURE__ */ O(ln, { fontSize: "small" })) })
1983
- ] }),
1984
- s && /* @__PURE__ */ O(
1985
- Vt,
1986
- {
1987
- ...c(),
1988
- style: y.expanded ? $t : void 0
1989
- }
1990
- )
1991
- ]
1992
- }
1993
- ) });
1994
- }
1995
- export {
1996
- Fn as A,
1997
- Wn as B,
1998
- ve as C,
1999
- tr as D,
2000
- Xn as E,
2001
- Bn as F,
2002
- er as G,
2003
- eo as H,
2004
- Zn as I,
2005
- Pe as J,
2006
- st as K,
2007
- Kn as L,
2008
- $n as M,
2009
- Le as N,
2010
- $e as O,
2011
- Ie as P,
2012
- xe as Q,
2013
- oe as R,
2014
- Mt as S,
2015
- bt as T,
2016
- cn as U,
2017
- Jo as V,
2018
- Qo as W,
2019
- or as X,
2020
- Xo as a,
2021
- yt as b,
2022
- Uo as c,
2023
- zn as d,
2024
- U as e,
2025
- q as f,
2026
- tn as g,
2027
- Yo as h,
2028
- gt as i,
2029
- Ae as j,
2030
- It as k,
2031
- Zo as l,
2032
- jn as m,
2033
- se as n,
2034
- St as o,
2035
- rt as p,
2036
- qn as q,
2037
- Te as r,
2038
- mt as s,
2039
- Yn as t,
2040
- M as u,
2041
- Jn as v,
2042
- nr as w,
2043
- Un as x,
2044
- Tt as y,
2045
- Ho as z
2046
- };