@mui/lab 5.0.0-alpha.107 → 5.0.0-alpha.108

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 (426) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +3 -3
  2. package/AdapterDateFns/AdapterDateFns.js +2 -4
  3. package/AdapterDateFns/index.d.ts +1 -1
  4. package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
  5. package/AdapterDayjs/AdapterDayjs.js +2 -4
  6. package/AdapterDayjs/index.d.ts +1 -1
  7. package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
  8. package/AdapterLuxon/AdapterLuxon.js +2 -4
  9. package/AdapterLuxon/index.d.ts +1 -1
  10. package/AdapterMoment/AdapterMoment.d.ts +3 -3
  11. package/AdapterMoment/AdapterMoment.js +2 -4
  12. package/AdapterMoment/index.d.ts +1 -1
  13. package/Alert/Alert.js +1 -2
  14. package/AlertTitle/AlertTitle.js +1 -2
  15. package/Autocomplete/Autocomplete.js +1 -2
  16. package/AvatarGroup/AvatarGroup.js +1 -2
  17. package/CHANGELOG.md +70 -2
  18. package/CalendarPicker/CalendarPicker.d.ts +14 -14
  19. package/CalendarPicker/CalendarPicker.js +0 -2
  20. package/CalendarPicker/index.d.ts +2 -2
  21. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
  22. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
  23. package/CalendarPickerSkeleton/index.d.ts +2 -2
  24. package/ClockPicker/ClockPicker.d.ts +14 -14
  25. package/ClockPicker/ClockPicker.js +0 -2
  26. package/ClockPicker/index.d.ts +2 -2
  27. package/DatePicker/DatePicker.d.ts +10 -10
  28. package/DatePicker/DatePicker.js +0 -2
  29. package/DatePicker/index.d.ts +2 -2
  30. package/DateRangePicker/DateRangePicker.d.ts +11 -11
  31. package/DateRangePicker/DateRangePicker.js +0 -2
  32. package/DateRangePicker/index.d.ts +2 -2
  33. package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
  34. package/DateRangePickerDay/DateRangePickerDay.js +0 -2
  35. package/DateRangePickerDay/index.d.ts +2 -2
  36. package/DateTimePicker/DateTimePicker.d.ts +10 -10
  37. package/DateTimePicker/DateTimePicker.js +0 -2
  38. package/DateTimePicker/index.d.ts +2 -2
  39. package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
  40. package/DesktopDatePicker/DesktopDatePicker.js +0 -2
  41. package/DesktopDatePicker/index.d.ts +2 -2
  42. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
  43. package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
  44. package/DesktopDateRangePicker/index.d.ts +2 -2
  45. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
  46. package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
  47. package/DesktopDateTimePicker/index.d.ts +2 -2
  48. package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
  49. package/DesktopTimePicker/DesktopTimePicker.js +0 -2
  50. package/DesktopTimePicker/index.d.ts +2 -2
  51. package/LoadingButton/LoadingButton.js +13 -34
  52. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  53. package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
  54. package/LocalizationProvider/LocalizationProvider.js +0 -2
  55. package/LocalizationProvider/index.d.ts +2 -2
  56. package/Masonry/Masonry.js +27 -68
  57. package/Masonry/masonryClasses.d.ts +8 -8
  58. package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
  59. package/MobileDatePicker/MobileDatePicker.js +0 -2
  60. package/MobileDatePicker/index.d.ts +2 -2
  61. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
  62. package/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
  63. package/MobileDateRangePicker/index.d.ts +2 -2
  64. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
  65. package/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
  66. package/MobileDateTimePicker/index.d.ts +2 -2
  67. package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
  68. package/MobileTimePicker/MobileTimePicker.js +0 -2
  69. package/MobileTimePicker/index.d.ts +2 -2
  70. package/MonthPicker/MonthPicker.d.ts +13 -13
  71. package/MonthPicker/MonthPicker.js +0 -2
  72. package/MonthPicker/index.d.ts +2 -2
  73. package/Pagination/Pagination.js +1 -2
  74. package/PaginationItem/PaginationItem.js +1 -2
  75. package/PickersDay/PickersDay.d.ts +13 -13
  76. package/PickersDay/PickersDay.js +0 -2
  77. package/PickersDay/index.d.ts +2 -2
  78. package/Rating/Rating.js +1 -2
  79. package/Skeleton/Skeleton.js +1 -2
  80. package/SpeedDial/SpeedDial.js +1 -2
  81. package/SpeedDialAction/SpeedDialAction.js +1 -2
  82. package/SpeedDialIcon/SpeedDialIcon.js +1 -2
  83. package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
  84. package/StaticDatePicker/StaticDatePicker.js +0 -2
  85. package/StaticDatePicker/index.d.ts +2 -2
  86. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
  87. package/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
  88. package/StaticDateRangePicker/index.d.ts +2 -2
  89. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
  90. package/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
  91. package/StaticDateTimePicker/index.d.ts +2 -2
  92. package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
  93. package/StaticTimePicker/StaticTimePicker.js +0 -2
  94. package/StaticTimePicker/index.d.ts +2 -2
  95. package/TabContext/TabContext.js +3 -14
  96. package/TabList/TabList.js +4 -11
  97. package/TabPanel/TabPanel.js +6 -20
  98. package/TabPanel/tabPanelClasses.d.ts +8 -8
  99. package/TimePicker/TimePicker.d.ts +10 -10
  100. package/TimePicker/TimePicker.js +0 -2
  101. package/TimePicker/index.d.ts +2 -2
  102. package/Timeline/Timeline.d.ts +59 -59
  103. package/Timeline/Timeline.js +9 -20
  104. package/Timeline/TimelineContext.d.ts +6 -6
  105. package/Timeline/TimelineContext.js +1 -3
  106. package/Timeline/index.d.ts +5 -5
  107. package/Timeline/timelineClasses.d.ts +3 -3
  108. package/TimelineConnector/TimelineConnector.js +4 -14
  109. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  110. package/TimelineContent/TimelineContent.js +4 -16
  111. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  112. package/TimelineDot/TimelineDot.js +8 -25
  113. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  114. package/TimelineItem/TimelineItem.js +5 -18
  115. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  116. package/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
  117. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  118. package/TimelineSeparator/TimelineSeparator.js +4 -14
  119. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  120. package/ToggleButton/ToggleButton.js +1 -2
  121. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
  122. package/TreeItem/TreeItem.js +19 -58
  123. package/TreeItem/TreeItemContent.js +12 -28
  124. package/TreeItem/treeItemClasses.d.ts +24 -24
  125. package/TreeItem/useTreeItem.js +2 -8
  126. package/TreeView/TreeView.js +51 -195
  127. package/TreeView/TreeViewContext.js +1 -3
  128. package/TreeView/descendants.js +19 -31
  129. package/TreeView/treeViewClasses.d.ts +8 -8
  130. package/YearPicker/YearPicker.d.ts +14 -14
  131. package/YearPicker/YearPicker.js +1 -3
  132. package/YearPicker/index.d.ts +2 -2
  133. package/index.js +3 -2
  134. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  135. package/internal/svg-icons/ArrowDropDown.js +1 -1
  136. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  137. package/internal/svg-icons/ArrowLeft.js +1 -1
  138. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  139. package/internal/svg-icons/ArrowRight.js +1 -1
  140. package/internal/svg-icons/Calendar.d.ts +7 -7
  141. package/internal/svg-icons/Calendar.js +1 -1
  142. package/internal/svg-icons/Clock.d.ts +7 -7
  143. package/internal/svg-icons/Clock.js +1 -1
  144. package/internal/svg-icons/DateRange.d.ts +7 -7
  145. package/internal/svg-icons/DateRange.js +1 -1
  146. package/internal/svg-icons/Pen.d.ts +7 -7
  147. package/internal/svg-icons/Pen.js +1 -1
  148. package/internal/svg-icons/Time.d.ts +7 -7
  149. package/internal/svg-icons/Time.js +1 -1
  150. package/legacy/AdapterDateFns/AdapterDateFns.js +2 -5
  151. package/legacy/AdapterDayjs/AdapterDayjs.js +2 -5
  152. package/legacy/AdapterLuxon/AdapterLuxon.js +2 -5
  153. package/legacy/AdapterMoment/AdapterMoment.js +2 -5
  154. package/legacy/Alert/Alert.js +1 -2
  155. package/legacy/AlertTitle/AlertTitle.js +1 -2
  156. package/legacy/Autocomplete/Autocomplete.js +1 -2
  157. package/legacy/AvatarGroup/AvatarGroup.js +1 -2
  158. package/legacy/CalendarPicker/CalendarPicker.js +0 -2
  159. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
  160. package/legacy/ClockPicker/ClockPicker.js +0 -2
  161. package/legacy/DatePicker/DatePicker.js +0 -2
  162. package/legacy/DateRangePicker/DateRangePicker.js +0 -2
  163. package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -2
  164. package/legacy/DateTimePicker/DateTimePicker.js +0 -2
  165. package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -2
  166. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
  167. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
  168. package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -2
  169. package/legacy/LoadingButton/LoadingButton.js +19 -40
  170. package/legacy/LocalizationProvider/LocalizationProvider.js +0 -2
  171. package/legacy/Masonry/Masonry.js +33 -77
  172. package/legacy/MobileDatePicker/MobileDatePicker.js +0 -2
  173. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
  174. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
  175. package/legacy/MobileTimePicker/MobileTimePicker.js +0 -2
  176. package/legacy/MonthPicker/MonthPicker.js +0 -2
  177. package/legacy/Pagination/Pagination.js +1 -2
  178. package/legacy/PaginationItem/PaginationItem.js +1 -2
  179. package/legacy/PickersDay/PickersDay.js +0 -2
  180. package/legacy/Rating/Rating.js +1 -2
  181. package/legacy/Skeleton/Skeleton.js +1 -2
  182. package/legacy/SpeedDial/SpeedDial.js +1 -2
  183. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
  184. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
  185. package/legacy/StaticDatePicker/StaticDatePicker.js +0 -2
  186. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
  187. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
  188. package/legacy/StaticTimePicker/StaticTimePicker.js +0 -2
  189. package/legacy/TabContext/TabContext.js +6 -18
  190. package/legacy/TabList/TabList.js +2 -9
  191. package/legacy/TabPanel/TabPanel.js +4 -18
  192. package/legacy/TimePicker/TimePicker.js +0 -2
  193. package/legacy/Timeline/Timeline.js +9 -20
  194. package/legacy/Timeline/TimelineContext.js +1 -3
  195. package/legacy/TimelineConnector/TimelineConnector.js +2 -12
  196. package/legacy/TimelineContent/TimelineContent.js +4 -16
  197. package/legacy/TimelineDot/TimelineDot.js +11 -28
  198. package/legacy/TimelineItem/TimelineItem.js +6 -21
  199. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
  200. package/legacy/TimelineSeparator/TimelineSeparator.js +2 -12
  201. package/legacy/ToggleButton/ToggleButton.js +1 -2
  202. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
  203. package/legacy/TreeItem/TreeItem.js +37 -81
  204. package/legacy/TreeItem/TreeItemContent.js +17 -34
  205. package/legacy/TreeItem/useTreeItem.js +12 -19
  206. package/legacy/TreeView/TreeView.js +83 -236
  207. package/legacy/TreeView/TreeViewContext.js +1 -3
  208. package/legacy/TreeView/descendants.js +26 -44
  209. package/legacy/YearPicker/YearPicker.js +1 -3
  210. package/legacy/index.js +3 -2
  211. package/legacy/internal/svg-icons/ArrowDropDown.js +1 -1
  212. package/legacy/internal/svg-icons/ArrowLeft.js +1 -1
  213. package/legacy/internal/svg-icons/ArrowRight.js +1 -1
  214. package/legacy/internal/svg-icons/Calendar.js +1 -1
  215. package/legacy/internal/svg-icons/Clock.js +1 -1
  216. package/legacy/internal/svg-icons/DateRange.js +1 -1
  217. package/legacy/internal/svg-icons/Pen.js +1 -1
  218. package/legacy/internal/svg-icons/Time.js +1 -1
  219. package/modern/AdapterDateFns/AdapterDateFns.js +2 -4
  220. package/modern/AdapterDayjs/AdapterDayjs.js +2 -4
  221. package/modern/AdapterLuxon/AdapterLuxon.js +2 -4
  222. package/modern/AdapterMoment/AdapterMoment.js +2 -4
  223. package/modern/Alert/Alert.js +1 -2
  224. package/modern/AlertTitle/AlertTitle.js +1 -2
  225. package/modern/Autocomplete/Autocomplete.js +1 -2
  226. package/modern/AvatarGroup/AvatarGroup.js +1 -2
  227. package/modern/CalendarPicker/CalendarPicker.js +0 -2
  228. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
  229. package/modern/ClockPicker/ClockPicker.js +0 -2
  230. package/modern/DatePicker/DatePicker.js +0 -2
  231. package/modern/DateRangePicker/DateRangePicker.js +0 -2
  232. package/modern/DateRangePickerDay/DateRangePickerDay.js +0 -2
  233. package/modern/DateTimePicker/DateTimePicker.js +0 -2
  234. package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -2
  235. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
  236. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
  237. package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -2
  238. package/modern/LoadingButton/LoadingButton.js +13 -35
  239. package/modern/LocalizationProvider/LocalizationProvider.js +0 -2
  240. package/modern/Masonry/Masonry.js +27 -68
  241. package/modern/MobileDatePicker/MobileDatePicker.js +0 -2
  242. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
  243. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
  244. package/modern/MobileTimePicker/MobileTimePicker.js +0 -2
  245. package/modern/MonthPicker/MonthPicker.js +0 -2
  246. package/modern/Pagination/Pagination.js +1 -2
  247. package/modern/PaginationItem/PaginationItem.js +1 -2
  248. package/modern/PickersDay/PickersDay.js +0 -2
  249. package/modern/Rating/Rating.js +1 -2
  250. package/modern/Skeleton/Skeleton.js +1 -2
  251. package/modern/SpeedDial/SpeedDial.js +1 -2
  252. package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
  253. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
  254. package/modern/StaticDatePicker/StaticDatePicker.js +0 -2
  255. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
  256. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
  257. package/modern/StaticTimePicker/StaticTimePicker.js +0 -2
  258. package/modern/TabContext/TabContext.js +3 -14
  259. package/modern/TabList/TabList.js +4 -11
  260. package/modern/TabPanel/TabPanel.js +6 -20
  261. package/modern/TimePicker/TimePicker.js +0 -2
  262. package/modern/Timeline/Timeline.js +9 -20
  263. package/modern/Timeline/TimelineContext.js +1 -3
  264. package/modern/TimelineConnector/TimelineConnector.js +4 -14
  265. package/modern/TimelineContent/TimelineContent.js +4 -16
  266. package/modern/TimelineDot/TimelineDot.js +8 -25
  267. package/modern/TimelineItem/TimelineItem.js +5 -18
  268. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
  269. package/modern/TimelineSeparator/TimelineSeparator.js +4 -14
  270. package/modern/ToggleButton/ToggleButton.js +1 -2
  271. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
  272. package/modern/TreeItem/TreeItem.js +19 -58
  273. package/modern/TreeItem/TreeItemContent.js +12 -28
  274. package/modern/TreeItem/useTreeItem.js +2 -8
  275. package/modern/TreeView/TreeView.js +51 -195
  276. package/modern/TreeView/TreeViewContext.js +1 -3
  277. package/modern/TreeView/descendants.js +19 -31
  278. package/modern/YearPicker/YearPicker.js +1 -3
  279. package/modern/index.js +3 -2
  280. package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
  281. package/modern/internal/svg-icons/ArrowLeft.js +1 -1
  282. package/modern/internal/svg-icons/ArrowRight.js +1 -1
  283. package/modern/internal/svg-icons/Calendar.js +1 -1
  284. package/modern/internal/svg-icons/Clock.js +1 -1
  285. package/modern/internal/svg-icons/DateRange.js +1 -1
  286. package/modern/internal/svg-icons/Pen.js +1 -1
  287. package/modern/internal/svg-icons/Time.js +1 -1
  288. package/node/AdapterDateFns/AdapterDateFns.js +2 -5
  289. package/node/AdapterDateFns/index.js +0 -2
  290. package/node/AdapterDayjs/AdapterDayjs.js +2 -5
  291. package/node/AdapterDayjs/index.js +0 -2
  292. package/node/AdapterLuxon/AdapterLuxon.js +2 -5
  293. package/node/AdapterLuxon/index.js +0 -2
  294. package/node/AdapterMoment/AdapterMoment.js +2 -5
  295. package/node/AdapterMoment/index.js +0 -2
  296. package/node/Alert/Alert.js +1 -11
  297. package/node/Alert/index.js +0 -2
  298. package/node/AlertTitle/AlertTitle.js +1 -11
  299. package/node/AlertTitle/index.js +0 -2
  300. package/node/Autocomplete/Autocomplete.js +1 -11
  301. package/node/Autocomplete/index.js +0 -2
  302. package/node/AvatarGroup/AvatarGroup.js +1 -11
  303. package/node/AvatarGroup/index.js +0 -2
  304. package/node/CalendarPicker/CalendarPicker.js +1 -6
  305. package/node/CalendarPicker/index.js +0 -4
  306. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -8
  307. package/node/CalendarPickerSkeleton/index.js +0 -4
  308. package/node/ClockPicker/ClockPicker.js +1 -6
  309. package/node/ClockPicker/index.js +0 -4
  310. package/node/DatePicker/DatePicker.js +1 -6
  311. package/node/DatePicker/index.js +0 -4
  312. package/node/DateRangePicker/DateRangePicker.js +1 -6
  313. package/node/DateRangePicker/index.js +0 -4
  314. package/node/DateRangePickerDay/DateRangePickerDay.js +1 -8
  315. package/node/DateRangePickerDay/index.js +0 -4
  316. package/node/DateTimePicker/DateTimePicker.js +1 -6
  317. package/node/DateTimePicker/index.js +0 -4
  318. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
  319. package/node/DesktopDatePicker/index.js +0 -4
  320. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -6
  321. package/node/DesktopDateRangePicker/index.js +0 -4
  322. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -6
  323. package/node/DesktopDateTimePicker/index.js +0 -4
  324. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -6
  325. package/node/DesktopTimePicker/index.js +0 -4
  326. package/node/LoadingButton/LoadingButton.js +13 -46
  327. package/node/LoadingButton/index.js +0 -6
  328. package/node/LoadingButton/loadingButtonClasses.js +0 -5
  329. package/node/LocalizationProvider/LocalizationProvider.js +0 -6
  330. package/node/LocalizationProvider/index.js +0 -4
  331. package/node/Masonry/Masonry.js +27 -83
  332. package/node/Masonry/index.js +0 -6
  333. package/node/Masonry/masonryClasses.js +0 -5
  334. package/node/MobileDatePicker/MobileDatePicker.js +1 -6
  335. package/node/MobileDatePicker/index.js +0 -4
  336. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -6
  337. package/node/MobileDateRangePicker/index.js +0 -4
  338. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -6
  339. package/node/MobileDateTimePicker/index.js +0 -4
  340. package/node/MobileTimePicker/MobileTimePicker.js +1 -6
  341. package/node/MobileTimePicker/index.js +0 -4
  342. package/node/MonthPicker/MonthPicker.js +1 -8
  343. package/node/MonthPicker/index.js +0 -4
  344. package/node/Pagination/Pagination.js +1 -11
  345. package/node/Pagination/index.js +0 -3
  346. package/node/Pagination/usePagination.js +0 -2
  347. package/node/PaginationItem/PaginationItem.js +1 -11
  348. package/node/PaginationItem/index.js +0 -2
  349. package/node/PickersDay/PickersDay.js +1 -8
  350. package/node/PickersDay/index.js +0 -4
  351. package/node/Rating/Rating.js +1 -11
  352. package/node/Rating/index.js +0 -2
  353. package/node/Skeleton/Skeleton.js +1 -11
  354. package/node/Skeleton/index.js +0 -2
  355. package/node/SpeedDial/SpeedDial.js +1 -11
  356. package/node/SpeedDial/index.js +0 -2
  357. package/node/SpeedDialAction/SpeedDialAction.js +1 -11
  358. package/node/SpeedDialAction/index.js +0 -2
  359. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -11
  360. package/node/SpeedDialIcon/index.js +0 -2
  361. package/node/StaticDatePicker/StaticDatePicker.js +1 -6
  362. package/node/StaticDatePicker/index.js +0 -4
  363. package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -6
  364. package/node/StaticDateRangePicker/index.js +0 -4
  365. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -6
  366. package/node/StaticDateTimePicker/index.js +0 -4
  367. package/node/StaticTimePicker/StaticTimePicker.js +1 -6
  368. package/node/StaticTimePicker/index.js +0 -4
  369. package/node/TabContext/TabContext.js +2 -23
  370. package/node/TabContext/index.js +0 -4
  371. package/node/TabList/TabList.js +4 -22
  372. package/node/TabList/index.js +0 -2
  373. package/node/TabPanel/TabPanel.js +6 -31
  374. package/node/TabPanel/index.js +0 -6
  375. package/node/TabPanel/tabPanelClasses.js +0 -5
  376. package/node/TimePicker/TimePicker.js +1 -6
  377. package/node/TimePicker/index.js +0 -4
  378. package/node/Timeline/Timeline.js +9 -32
  379. package/node/Timeline/TimelineContext.js +0 -6
  380. package/node/Timeline/index.js +0 -6
  381. package/node/Timeline/timelineClasses.js +0 -5
  382. package/node/TimelineConnector/TimelineConnector.js +4 -25
  383. package/node/TimelineConnector/index.js +0 -6
  384. package/node/TimelineConnector/timelineConnectorClasses.js +0 -5
  385. package/node/TimelineContent/TimelineContent.js +4 -28
  386. package/node/TimelineContent/index.js +0 -6
  387. package/node/TimelineContent/timelineContentClasses.js +0 -5
  388. package/node/TimelineDot/TimelineDot.js +8 -36
  389. package/node/TimelineDot/index.js +0 -6
  390. package/node/TimelineDot/timelineDotClasses.js +0 -5
  391. package/node/TimelineItem/TimelineItem.js +5 -31
  392. package/node/TimelineItem/index.js +0 -6
  393. package/node/TimelineItem/timelineItemClasses.js +0 -5
  394. package/node/TimelineOppositeContent/TimelineOppositeContent.js +4 -28
  395. package/node/TimelineOppositeContent/index.js +0 -6
  396. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -5
  397. package/node/TimelineSeparator/TimelineSeparator.js +4 -25
  398. package/node/TimelineSeparator/index.js +0 -6
  399. package/node/TimelineSeparator/timelineSeparatorClasses.js +0 -5
  400. package/node/ToggleButton/ToggleButton.js +1 -11
  401. package/node/ToggleButton/index.js +0 -2
  402. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -11
  403. package/node/ToggleButtonGroup/index.js +0 -2
  404. package/node/TreeItem/TreeItem.js +19 -73
  405. package/node/TreeItem/TreeItemContent.js +11 -38
  406. package/node/TreeItem/index.js +0 -7
  407. package/node/TreeItem/treeItemClasses.js +0 -5
  408. package/node/TreeItem/useTreeItem.js +2 -14
  409. package/node/TreeView/TreeView.js +51 -205
  410. package/node/TreeView/TreeViewContext.js +0 -6
  411. package/node/TreeView/descendants.js +18 -40
  412. package/node/TreeView/index.js +0 -6
  413. package/node/TreeView/treeViewClasses.js +0 -5
  414. package/node/YearPicker/YearPicker.js +1 -6
  415. package/node/YearPicker/index.js +0 -4
  416. package/node/index.js +1 -107
  417. package/node/internal/svg-icons/ArrowDropDown.js +0 -7
  418. package/node/internal/svg-icons/ArrowLeft.js +0 -7
  419. package/node/internal/svg-icons/ArrowRight.js +0 -7
  420. package/node/internal/svg-icons/Calendar.js +0 -7
  421. package/node/internal/svg-icons/Clock.js +0 -7
  422. package/node/internal/svg-icons/DateRange.js +0 -7
  423. package/node/internal/svg-icons/Pen.js +0 -7
  424. package/node/internal/svg-icons/Time.js +0 -7
  425. package/node/useAutocomplete/index.js +0 -1
  426. package/package.json +6 -6
@@ -12,7 +12,6 @@ import { timelineOppositeContentClasses } from '../TimelineOppositeContent';
12
12
  import TimelineContext from '../Timeline/TimelineContext';
13
13
  import { getTimelineItemUtilityClass } from './timelineItemClasses';
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
-
16
15
  const useUtilityClasses = ownerState => {
17
16
  const {
18
17
  position,
@@ -24,7 +23,6 @@ const useUtilityClasses = ownerState => {
24
23
  };
25
24
  return composeClasses(slots, getTimelineItemUtilityClass, classes);
26
25
  };
27
-
28
26
  const TimelineItemRoot = styled('li', {
29
27
  name: 'MuiTimelineItem',
30
28
  slot: 'Root',
@@ -65,13 +63,11 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
65
63
  props: inProps,
66
64
  name: 'MuiTimelineItem'
67
65
  });
68
-
69
66
  const {
70
- position: positionProp,
71
- className
72
- } = props,
73
- other = _objectWithoutPropertiesLoose(props, _excluded);
74
-
67
+ position: positionProp,
68
+ className
69
+ } = props,
70
+ other = _objectWithoutPropertiesLoose(props, _excluded);
75
71
  const {
76
72
  position: positionContext
77
73
  } = React.useContext(TimelineContext);
@@ -81,12 +77,10 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
81
77
  hasOppositeContent = true;
82
78
  }
83
79
  });
84
-
85
80
  const ownerState = _extends({}, props, {
86
81
  position: positionProp || positionContext || 'right',
87
82
  hasOppositeContent
88
83
  });
89
-
90
84
  const classes = useUtilityClasses(ownerState);
91
85
  const contextValue = React.useMemo(() => ({
92
86
  position: ownerState.position
@@ -100,34 +94,27 @@ const TimelineItem = /*#__PURE__*/React.forwardRef(function TimelineItem(inProps
100
94
  }, other))
101
95
  });
102
96
  });
103
- process.env.NODE_ENV !== "production" ? TimelineItem.propTypes
104
- /* remove-proptypes */
105
- = {
97
+ process.env.NODE_ENV !== "production" ? TimelineItem.propTypes /* remove-proptypes */ = {
106
98
  // ----------------------------- Warning --------------------------------
107
99
  // | These PropTypes are generated from the TypeScript type definitions |
108
100
  // | To update them edit the d.ts file and run "yarn proptypes" |
109
101
  // ----------------------------------------------------------------------
110
-
111
102
  /**
112
103
  * The content of the component.
113
104
  */
114
105
  children: PropTypes.node,
115
-
116
106
  /**
117
107
  * Override or extend the styles applied to the component.
118
108
  */
119
109
  classes: PropTypes.object,
120
-
121
110
  /**
122
111
  * @ignore
123
112
  */
124
113
  className: PropTypes.string,
125
-
126
114
  /**
127
115
  * The position where the timeline's item should appear.
128
116
  */
129
117
  position: PropTypes.oneOf(['left', 'right']),
130
-
131
118
  /**
132
119
  * The system prop that allows defining system overrides as well as additional CSS styles.
133
120
  */
@@ -1,16 +1,16 @@
1
- export interface TimelineItemClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="left"`. */
5
- positionLeft: string;
6
- /** Styles applied to the root element if `position="right"`. */
7
- positionRight: string;
8
- /** Styles applied to the root element if `position="alternate"`. */
9
- positionAlternate: string;
10
- /** Styles applied to the root element if TimelineOppositeContent isn't provided. */
11
- missingOppositeContent: string;
12
- }
13
- export declare type TimelineItemClassKey = keyof TimelineItemClasses;
14
- export declare function getTimelineItemUtilityClass(slot: string): string;
15
- declare const timelineItemClasses: TimelineItemClasses;
16
- export default timelineItemClasses;
1
+ export interface TimelineItemClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="left"`. */
5
+ positionLeft: string;
6
+ /** Styles applied to the root element if `position="right"`. */
7
+ positionRight: string;
8
+ /** Styles applied to the root element if `position="alternate"`. */
9
+ positionAlternate: string;
10
+ /** Styles applied to the root element if TimelineOppositeContent isn't provided. */
11
+ missingOppositeContent: string;
12
+ }
13
+ export declare type TimelineItemClassKey = keyof TimelineItemClasses;
14
+ export declare function getTimelineItemUtilityClass(slot: string): string;
15
+ declare const timelineItemClasses: TimelineItemClasses;
16
+ export default timelineItemClasses;
@@ -11,7 +11,6 @@ import Typography from '@mui/material/Typography';
11
11
  import TimelineContext from '../Timeline/TimelineContext';
12
12
  import { getTimelineOppositeContentUtilityClass } from './timelineOppositeContentClasses';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
-
15
14
  const useUtilityClasses = ownerState => {
16
15
  const {
17
16
  position,
@@ -22,7 +21,6 @@ const useUtilityClasses = ownerState => {
22
21
  };
23
22
  return composeClasses(slots, getTimelineOppositeContentUtilityClass, classes);
24
23
  };
25
-
26
24
  const TimelineOppositeContentRoot = styled(Typography, {
27
25
  name: 'MuiTimelineOppositeContent',
28
26
  slot: 'Root',
@@ -47,20 +45,16 @@ const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineO
47
45
  props: inProps,
48
46
  name: 'MuiTimelineOppositeContent'
49
47
  });
50
-
51
48
  const {
52
- className
53
- } = props,
54
- other = _objectWithoutPropertiesLoose(props, _excluded);
55
-
49
+ className
50
+ } = props,
51
+ other = _objectWithoutPropertiesLoose(props, _excluded);
56
52
  const {
57
53
  position: positionContext
58
54
  } = React.useContext(TimelineContext);
59
-
60
55
  const ownerState = _extends({}, props, {
61
56
  position: positionContext || 'left'
62
57
  });
63
-
64
58
  const classes = useUtilityClasses(ownerState);
65
59
  return /*#__PURE__*/_jsx(TimelineOppositeContentRoot, _extends({
66
60
  component: "div",
@@ -69,29 +63,23 @@ const TimelineOppositeContent = /*#__PURE__*/React.forwardRef(function TimelineO
69
63
  ref: ref
70
64
  }, other));
71
65
  });
72
- process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes
73
- /* remove-proptypes */
74
- = {
66
+ process.env.NODE_ENV !== "production" ? TimelineOppositeContent.propTypes /* remove-proptypes */ = {
75
67
  // ----------------------------- Warning --------------------------------
76
68
  // | These PropTypes are generated from the TypeScript type definitions |
77
69
  // | To update them edit the d.ts file and run "yarn proptypes" |
78
70
  // ----------------------------------------------------------------------
79
-
80
71
  /**
81
72
  * The content of the component.
82
73
  */
83
74
  children: PropTypes.node,
84
-
85
75
  /**
86
76
  * Override or extend the styles applied to the component.
87
77
  */
88
78
  classes: PropTypes.object,
89
-
90
79
  /**
91
80
  * @ignore
92
81
  */
93
82
  className: PropTypes.string,
94
-
95
83
  /**
96
84
  * The system prop that allows defining system overrides as well as additional CSS styles.
97
85
  */
@@ -1,14 +1,14 @@
1
- export interface TimelineOppositeContentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `position="right"`. */
5
- positionRight: string;
6
- /** Styles applied to the root element if `position="left"`. */
7
- positionLeft: string;
8
- /** Styles applied to the root element if `position="alternate"`. */
9
- positionAlternate: string;
10
- }
11
- export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
12
- export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
13
- declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
14
- export default timelineOppositeContentClasses;
1
+ export interface TimelineOppositeContentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `position="right"`. */
5
+ positionRight: string;
6
+ /** Styles applied to the root element if `position="left"`. */
7
+ positionLeft: string;
8
+ /** Styles applied to the root element if `position="alternate"`. */
9
+ positionAlternate: string;
10
+ }
11
+ export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
12
+ export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
13
+ declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
14
+ export default timelineOppositeContentClasses;
@@ -8,7 +8,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
9
9
  import { getTimelineSeparatorUtilityClass } from './timelineSeparatorClasses';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
-
12
11
  const useUtilityClasses = ownerState => {
13
12
  const {
14
13
  classes
@@ -18,7 +17,6 @@ const useUtilityClasses = ownerState => {
18
17
  };
19
18
  return composeClasses(slots, getTimelineSeparatorUtilityClass, classes);
20
19
  };
21
-
22
20
  const TimelineSeparatorRoot = styled('div', {
23
21
  name: 'MuiTimelineSeparator',
24
22
  slot: 'Root',
@@ -34,12 +32,10 @@ const TimelineSeparator = /*#__PURE__*/React.forwardRef(function TimelineSeparat
34
32
  props: inProps,
35
33
  name: 'MuiTimelineSeparator'
36
34
  });
37
-
38
35
  const {
39
- className
40
- } = props,
41
- other = _objectWithoutPropertiesLoose(props, _excluded);
42
-
36
+ className
37
+ } = props,
38
+ other = _objectWithoutPropertiesLoose(props, _excluded);
43
39
  const ownerState = props;
44
40
  const classes = useUtilityClasses(ownerState);
45
41
  return /*#__PURE__*/_jsx(TimelineSeparatorRoot, _extends({
@@ -48,29 +44,23 @@ const TimelineSeparator = /*#__PURE__*/React.forwardRef(function TimelineSeparat
48
44
  ref: ref
49
45
  }, other));
50
46
  });
51
- process.env.NODE_ENV !== "production" ? TimelineSeparator.propTypes
52
- /* remove-proptypes */
53
- = {
47
+ process.env.NODE_ENV !== "production" ? TimelineSeparator.propTypes /* remove-proptypes */ = {
54
48
  // ----------------------------- Warning --------------------------------
55
49
  // | These PropTypes are generated from the TypeScript type definitions |
56
50
  // | To update them edit the d.ts file and run "yarn proptypes" |
57
51
  // ----------------------------------------------------------------------
58
-
59
52
  /**
60
53
  * The content of the component.
61
54
  */
62
55
  children: PropTypes.node,
63
-
64
56
  /**
65
57
  * Override or extend the styles applied to the component.
66
58
  */
67
59
  classes: PropTypes.object,
68
-
69
60
  /**
70
61
  * @ignore
71
62
  */
72
63
  className: PropTypes.string,
73
-
74
64
  /**
75
65
  * The system prop that allows defining system overrides as well as additional CSS styles.
76
66
  */
@@ -1,8 +1,8 @@
1
- export interface TimelineSeparatorClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
6
- export declare function getTimelineSeparatorUtilityClass(slot: string): string;
7
- declare const timelineSeparatorClasses: TimelineSeparatorClasses;
8
- export default timelineSeparatorClasses;
1
+ export interface TimelineSeparatorClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
6
+ export declare function getTimelineSeparatorUtilityClass(slot: string): string;
7
+ declare const timelineSeparatorClasses: TimelineSeparatorClasses;
8
+ export default timelineSeparatorClasses;
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import ToggleButton from '@mui/material/ToggleButton';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  let warnedOnce = false;
6
+
6
7
  /**
7
8
  * @ignore - do not document.
8
9
  */
9
-
10
10
  export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButton(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The ToggleButton component was moved from the lab to the core.', '', "You should use `import { ToggleButton } from '@mui/material'`", "or `import ToggleButton from '@mui/material/ToggleButton'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(ToggleButton, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  let warnedOnce = false;
6
+
6
7
  /**
7
8
  * @ignore - do not document.
8
9
  */
9
-
10
10
  export default /*#__PURE__*/React.forwardRef(function DeprecatedToggleButtonGroup(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The ToggleButtonGroup component was moved from the lab to the core.', '', "You should use `import { ToggleButtonGroup } from '@mui/material'`", "or `import ToggleButtonGroup from '@mui/material/ToggleButtonGroup'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(ToggleButtonGroup, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -15,7 +15,6 @@ import TreeItemContent from './TreeItemContent';
15
15
  import treeItemClasses, { getTreeItemUtilityClass } from './treeItemClasses';
16
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
18
-
19
18
  const useUtilityClasses = ownerState => {
20
19
  const {
21
20
  classes
@@ -33,7 +32,6 @@ const useUtilityClasses = ownerState => {
33
32
  };
34
33
  return composeClasses(slots, getTreeItemUtilityClass, classes);
35
34
  };
36
-
37
35
  const TreeItemRoot = styled('li', {
38
36
  name: 'MuiTreeItem',
39
37
  slot: 'Root',
@@ -122,27 +120,25 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
122
120
  props: inProps,
123
121
  name: 'MuiTreeItem'
124
122
  });
125
-
126
123
  const {
127
- children,
128
- className,
129
- collapseIcon,
130
- ContentComponent = TreeItemContent,
131
- ContentProps,
132
- endIcon,
133
- expandIcon,
134
- disabled: disabledProp,
135
- icon,
136
- id: idProp,
137
- label,
138
- nodeId,
139
- onClick,
140
- onMouseDown,
141
- TransitionComponent = Collapse,
142
- TransitionProps
143
- } = props,
144
- other = _objectWithoutPropertiesLoose(props, _excluded);
145
-
124
+ children,
125
+ className,
126
+ collapseIcon,
127
+ ContentComponent = TreeItemContent,
128
+ ContentProps,
129
+ endIcon,
130
+ expandIcon,
131
+ disabled: disabledProp,
132
+ icon,
133
+ id: idProp,
134
+ label,
135
+ nodeId,
136
+ onClick,
137
+ onMouseDown,
138
+ TransitionComponent = Collapse,
139
+ TransitionProps
140
+ } = props,
141
+ other = _objectWithoutPropertiesLoose(props, _excluded);
146
142
  const {
147
143
  icons: contextIcons = {},
148
144
  focus,
@@ -159,13 +155,11 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
159
155
  treeId
160
156
  } = React.useContext(TreeViewContext);
161
157
  let id = null;
162
-
163
158
  if (idProp != null) {
164
159
  id = idProp;
165
160
  } else if (treeId && nodeId) {
166
161
  id = `${treeId}-${nodeId}`;
167
162
  }
168
-
169
163
  const [treeitemElement, setTreeitemElement] = React.useState(null);
170
164
  const contentRef = React.useRef(null);
171
165
  const handleRef = useForkRef(setTreeitemElement, ref);
@@ -182,18 +176,15 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
182
176
  const focused = isFocused ? isFocused(nodeId) : false;
183
177
  const selected = isSelected ? isSelected(nodeId) : false;
184
178
  const disabled = isDisabled ? isDisabled(nodeId) : false;
185
-
186
179
  const ownerState = _extends({}, props, {
187
180
  expanded,
188
181
  focused,
189
182
  selected,
190
183
  disabled
191
184
  });
192
-
193
185
  const classes = useUtilityClasses(ownerState);
194
186
  let displayIcon;
195
187
  let expansionIcon;
196
-
197
188
  if (expandable) {
198
189
  if (!expanded) {
199
190
  expansionIcon = expandIcon || contextIcons.defaultExpandIcon;
@@ -201,13 +192,11 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
201
192
  expansionIcon = collapseIcon || contextIcons.defaultCollapseIcon;
202
193
  }
203
194
  }
204
-
205
195
  if (expandable) {
206
196
  displayIcon = contextIcons.defaultParentIcon;
207
197
  } else {
208
198
  displayIcon = endIcon || contextIcons.defaultEndIcon;
209
199
  }
210
-
211
200
  React.useEffect(() => {
212
201
  // On the first render a node's index will be -1. We want to wait for the real index.
213
202
  if (registerNode && unregisterNode && index !== -1) {
@@ -223,7 +212,6 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
223
212
  unregisterNode(nodeId);
224
213
  };
225
214
  }
226
-
227
215
  return undefined;
228
216
  }, [registerNode, unregisterNode, parentId, index, nodeId, expandable, disabledProp, id]);
229
217
  React.useEffect(() => {
@@ -233,11 +221,9 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
233
221
  unMapFirstChar(nodeId);
234
222
  };
235
223
  }
236
-
237
224
  return undefined;
238
225
  }, [mapFirstChar, unMapFirstChar, nodeId, label]);
239
226
  let ariaSelected;
240
-
241
227
  if (multiSelect) {
242
228
  ariaSelected = selected;
243
229
  } else if (selected) {
@@ -249,7 +235,6 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
249
235
  */
250
236
  ariaSelected = true;
251
237
  }
252
-
253
238
  function handleFocus(event) {
254
239
  // DOM focus stays on the tree which manages focus with aria-activedescendant
255
240
  if (event.target === event.currentTarget) {
@@ -257,14 +242,11 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
257
242
  preventScroll: true
258
243
  });
259
244
  }
260
-
261
245
  const unfocusable = !disabledItemsFocusable && disabled;
262
-
263
246
  if (!focused && event.currentTarget === event.target && !unfocusable) {
264
247
  focus(event, nodeId);
265
248
  }
266
249
  }
267
-
268
250
  return /*#__PURE__*/_jsxs(TreeItemRoot, _extends({
269
251
  className: clsx(classes.root, className),
270
252
  role: "treeitem",
@@ -312,108 +294,87 @@ const TreeItem = /*#__PURE__*/React.forwardRef(function TreeItem(inProps, ref) {
312
294
  })]
313
295
  }));
314
296
  });
315
- process.env.NODE_ENV !== "production" ? TreeItem.propTypes
316
- /* remove-proptypes */
317
- = {
297
+ process.env.NODE_ENV !== "production" ? TreeItem.propTypes /* remove-proptypes */ = {
318
298
  // ----------------------------- Warning --------------------------------
319
299
  // | These PropTypes are generated from the TypeScript type definitions |
320
300
  // | To update them edit the d.ts file and run "yarn proptypes" |
321
301
  // ----------------------------------------------------------------------
322
-
323
302
  /**
324
303
  * The content of the component.
325
304
  */
326
305
  children: PropTypes.node,
327
-
328
306
  /**
329
307
  * Override or extend the styles applied to the component.
330
308
  */
331
309
  classes: PropTypes.object,
332
-
333
310
  /**
334
311
  * @ignore
335
312
  */
336
313
  className: PropTypes.string,
337
-
338
314
  /**
339
315
  * The icon used to collapse the node.
340
316
  */
341
317
  collapseIcon: PropTypes.node,
342
-
343
318
  /**
344
319
  * The component used for the content node.
345
320
  * @default TreeItemContent
346
321
  */
347
322
  ContentComponent: elementTypeAcceptingRef,
348
-
349
323
  /**
350
324
  * Props applied to ContentComponent
351
325
  */
352
326
  ContentProps: PropTypes.object,
353
-
354
327
  /**
355
328
  * If `true`, the node is disabled.
356
329
  */
357
330
  disabled: PropTypes.bool,
358
-
359
331
  /**
360
332
  * The icon displayed next to a end node.
361
333
  */
362
334
  endIcon: PropTypes.node,
363
-
364
335
  /**
365
336
  * The icon used to expand the node.
366
337
  */
367
338
  expandIcon: PropTypes.node,
368
-
369
339
  /**
370
340
  * The icon to display next to the tree node's label.
371
341
  */
372
342
  icon: PropTypes.node,
373
-
374
343
  /**
375
344
  * @ignore
376
345
  */
377
346
  id: PropTypes.string,
378
-
379
347
  /**
380
348
  * The tree node label.
381
349
  */
382
350
  label: PropTypes.node,
383
-
384
351
  /**
385
352
  * The id of the node.
386
353
  */
387
354
  nodeId: PropTypes.string.isRequired,
388
-
389
355
  /**
390
356
  * @ignore
391
357
  */
392
358
  onClick: PropTypes.func,
393
-
394
359
  /**
395
360
  * This prop isn't supported.
396
361
  * Use the `onNodeFocus` callback on the tree if you need to monitor a node's focus.
397
362
  */
398
363
  onFocus: unsupportedProp,
399
-
400
364
  /**
401
365
  * @ignore
402
366
  */
403
367
  onMouseDown: PropTypes.func,
404
-
405
368
  /**
406
369
  * The system prop that allows defining system overrides as well as additional CSS styles.
407
370
  */
408
371
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
409
-
410
372
  /**
411
373
  * The component used for the transition.
412
374
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
413
375
  * @default Collapse
414
376
  */
415
377
  TransitionComponent: PropTypes.elementType,
416
-
417
378
  /**
418
379
  * Props applied to the transition element.
419
380
  * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.