@mui/lab 5.0.0-alpha.106 → 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 (347) hide show
  1. package/AdapterDateFns/AdapterDateFns.js +2 -4
  2. package/AdapterDayjs/AdapterDayjs.js +2 -4
  3. package/AdapterLuxon/AdapterLuxon.js +2 -4
  4. package/AdapterMoment/AdapterMoment.js +2 -4
  5. package/Alert/Alert.js +1 -2
  6. package/AlertTitle/AlertTitle.js +1 -2
  7. package/Autocomplete/Autocomplete.js +1 -2
  8. package/AvatarGroup/AvatarGroup.js +1 -2
  9. package/CHANGELOG.md +127 -1
  10. package/CalendarPicker/CalendarPicker.js +0 -2
  11. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
  12. package/ClockPicker/ClockPicker.js +0 -2
  13. package/DatePicker/DatePicker.js +0 -2
  14. package/DateRangePicker/DateRangePicker.js +0 -2
  15. package/DateRangePickerDay/DateRangePickerDay.js +0 -2
  16. package/DateTimePicker/DateTimePicker.js +0 -2
  17. package/DesktopDatePicker/DesktopDatePicker.js +0 -2
  18. package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
  19. package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
  20. package/DesktopTimePicker/DesktopTimePicker.js +0 -2
  21. package/LoadingButton/LoadingButton.js +13 -34
  22. package/LocalizationProvider/LocalizationProvider.js +0 -2
  23. package/Masonry/Masonry.js +27 -68
  24. package/MobileDatePicker/MobileDatePicker.js +0 -2
  25. package/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
  26. package/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
  27. package/MobileTimePicker/MobileTimePicker.js +0 -2
  28. package/MonthPicker/MonthPicker.js +0 -2
  29. package/Pagination/Pagination.js +1 -2
  30. package/PaginationItem/PaginationItem.js +1 -2
  31. package/PickersDay/PickersDay.js +0 -2
  32. package/Rating/Rating.js +1 -2
  33. package/Skeleton/Skeleton.js +1 -2
  34. package/SpeedDial/SpeedDial.js +1 -2
  35. package/SpeedDialAction/SpeedDialAction.js +1 -2
  36. package/SpeedDialIcon/SpeedDialIcon.js +1 -2
  37. package/StaticDatePicker/StaticDatePicker.js +0 -2
  38. package/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
  39. package/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
  40. package/StaticTimePicker/StaticTimePicker.js +0 -2
  41. package/TabContext/TabContext.js +3 -14
  42. package/TabList/TabList.js +4 -11
  43. package/TabPanel/TabPanel.js +6 -20
  44. package/TimePicker/TimePicker.js +0 -2
  45. package/Timeline/Timeline.js +9 -20
  46. package/Timeline/TimelineContext.js +1 -3
  47. package/TimelineConnector/TimelineConnector.js +4 -14
  48. package/TimelineContent/TimelineContent.js +4 -16
  49. package/TimelineDot/TimelineDot.js +8 -25
  50. package/TimelineItem/TimelineItem.js +5 -18
  51. package/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
  52. package/TimelineSeparator/TimelineSeparator.js +4 -14
  53. package/ToggleButton/ToggleButton.js +1 -2
  54. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
  55. package/TreeItem/TreeItem.js +19 -58
  56. package/TreeItem/TreeItemContent.js +12 -28
  57. package/TreeItem/useTreeItem.js +2 -8
  58. package/TreeView/TreeView.js +51 -195
  59. package/TreeView/TreeViewContext.js +1 -3
  60. package/TreeView/descendants.js +19 -31
  61. package/YearPicker/YearPicker.js +1 -3
  62. package/index.js +3 -2
  63. package/internal/svg-icons/ArrowDropDown.js +1 -1
  64. package/internal/svg-icons/ArrowLeft.js +1 -1
  65. package/internal/svg-icons/ArrowRight.js +1 -1
  66. package/internal/svg-icons/Calendar.js +1 -1
  67. package/internal/svg-icons/Clock.js +1 -1
  68. package/internal/svg-icons/DateRange.js +1 -1
  69. package/internal/svg-icons/Pen.js +1 -1
  70. package/internal/svg-icons/Time.js +1 -1
  71. package/legacy/AdapterDateFns/AdapterDateFns.js +2 -5
  72. package/legacy/AdapterDayjs/AdapterDayjs.js +2 -5
  73. package/legacy/AdapterLuxon/AdapterLuxon.js +2 -5
  74. package/legacy/AdapterMoment/AdapterMoment.js +2 -5
  75. package/legacy/Alert/Alert.js +1 -2
  76. package/legacy/AlertTitle/AlertTitle.js +1 -2
  77. package/legacy/Autocomplete/Autocomplete.js +1 -2
  78. package/legacy/AvatarGroup/AvatarGroup.js +1 -2
  79. package/legacy/CalendarPicker/CalendarPicker.js +0 -2
  80. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
  81. package/legacy/ClockPicker/ClockPicker.js +0 -2
  82. package/legacy/DatePicker/DatePicker.js +0 -2
  83. package/legacy/DateRangePicker/DateRangePicker.js +0 -2
  84. package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -2
  85. package/legacy/DateTimePicker/DateTimePicker.js +0 -2
  86. package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -2
  87. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
  88. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
  89. package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -2
  90. package/legacy/LoadingButton/LoadingButton.js +19 -40
  91. package/legacy/LocalizationProvider/LocalizationProvider.js +0 -2
  92. package/legacy/Masonry/Masonry.js +33 -77
  93. package/legacy/MobileDatePicker/MobileDatePicker.js +0 -2
  94. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
  95. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
  96. package/legacy/MobileTimePicker/MobileTimePicker.js +0 -2
  97. package/legacy/MonthPicker/MonthPicker.js +0 -2
  98. package/legacy/Pagination/Pagination.js +1 -2
  99. package/legacy/PaginationItem/PaginationItem.js +1 -2
  100. package/legacy/PickersDay/PickersDay.js +0 -2
  101. package/legacy/Rating/Rating.js +1 -2
  102. package/legacy/Skeleton/Skeleton.js +1 -2
  103. package/legacy/SpeedDial/SpeedDial.js +1 -2
  104. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
  105. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
  106. package/legacy/StaticDatePicker/StaticDatePicker.js +0 -2
  107. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
  108. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
  109. package/legacy/StaticTimePicker/StaticTimePicker.js +0 -2
  110. package/legacy/TabContext/TabContext.js +6 -18
  111. package/legacy/TabList/TabList.js +2 -9
  112. package/legacy/TabPanel/TabPanel.js +4 -18
  113. package/legacy/TimePicker/TimePicker.js +0 -2
  114. package/legacy/Timeline/Timeline.js +9 -20
  115. package/legacy/Timeline/TimelineContext.js +1 -3
  116. package/legacy/TimelineConnector/TimelineConnector.js +2 -12
  117. package/legacy/TimelineContent/TimelineContent.js +4 -16
  118. package/legacy/TimelineDot/TimelineDot.js +11 -28
  119. package/legacy/TimelineItem/TimelineItem.js +6 -21
  120. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
  121. package/legacy/TimelineSeparator/TimelineSeparator.js +2 -12
  122. package/legacy/ToggleButton/ToggleButton.js +1 -2
  123. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
  124. package/legacy/TreeItem/TreeItem.js +37 -81
  125. package/legacy/TreeItem/TreeItemContent.js +17 -34
  126. package/legacy/TreeItem/useTreeItem.js +12 -19
  127. package/legacy/TreeView/TreeView.js +83 -236
  128. package/legacy/TreeView/TreeViewContext.js +1 -3
  129. package/legacy/TreeView/descendants.js +26 -44
  130. package/legacy/YearPicker/YearPicker.js +1 -3
  131. package/legacy/index.js +3 -2
  132. package/legacy/internal/svg-icons/ArrowDropDown.js +1 -1
  133. package/legacy/internal/svg-icons/ArrowLeft.js +1 -1
  134. package/legacy/internal/svg-icons/ArrowRight.js +1 -1
  135. package/legacy/internal/svg-icons/Calendar.js +1 -1
  136. package/legacy/internal/svg-icons/Clock.js +1 -1
  137. package/legacy/internal/svg-icons/DateRange.js +1 -1
  138. package/legacy/internal/svg-icons/Pen.js +1 -1
  139. package/legacy/internal/svg-icons/Time.js +1 -1
  140. package/modern/AdapterDateFns/AdapterDateFns.js +2 -4
  141. package/modern/AdapterDayjs/AdapterDayjs.js +2 -4
  142. package/modern/AdapterLuxon/AdapterLuxon.js +2 -4
  143. package/modern/AdapterMoment/AdapterMoment.js +2 -4
  144. package/modern/Alert/Alert.js +1 -2
  145. package/modern/AlertTitle/AlertTitle.js +1 -2
  146. package/modern/Autocomplete/Autocomplete.js +1 -2
  147. package/modern/AvatarGroup/AvatarGroup.js +1 -2
  148. package/modern/CalendarPicker/CalendarPicker.js +0 -2
  149. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
  150. package/modern/ClockPicker/ClockPicker.js +0 -2
  151. package/modern/DatePicker/DatePicker.js +0 -2
  152. package/modern/DateRangePicker/DateRangePicker.js +0 -2
  153. package/modern/DateRangePickerDay/DateRangePickerDay.js +0 -2
  154. package/modern/DateTimePicker/DateTimePicker.js +0 -2
  155. package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -2
  156. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
  157. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
  158. package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -2
  159. package/modern/LoadingButton/LoadingButton.js +13 -35
  160. package/modern/LocalizationProvider/LocalizationProvider.js +0 -2
  161. package/modern/Masonry/Masonry.js +27 -68
  162. package/modern/MobileDatePicker/MobileDatePicker.js +0 -2
  163. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
  164. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
  165. package/modern/MobileTimePicker/MobileTimePicker.js +0 -2
  166. package/modern/MonthPicker/MonthPicker.js +0 -2
  167. package/modern/Pagination/Pagination.js +1 -2
  168. package/modern/PaginationItem/PaginationItem.js +1 -2
  169. package/modern/PickersDay/PickersDay.js +0 -2
  170. package/modern/Rating/Rating.js +1 -2
  171. package/modern/Skeleton/Skeleton.js +1 -2
  172. package/modern/SpeedDial/SpeedDial.js +1 -2
  173. package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
  174. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
  175. package/modern/StaticDatePicker/StaticDatePicker.js +0 -2
  176. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
  177. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
  178. package/modern/StaticTimePicker/StaticTimePicker.js +0 -2
  179. package/modern/TabContext/TabContext.js +3 -14
  180. package/modern/TabList/TabList.js +4 -11
  181. package/modern/TabPanel/TabPanel.js +6 -20
  182. package/modern/TimePicker/TimePicker.js +0 -2
  183. package/modern/Timeline/Timeline.js +9 -20
  184. package/modern/Timeline/TimelineContext.js +1 -3
  185. package/modern/TimelineConnector/TimelineConnector.js +4 -14
  186. package/modern/TimelineContent/TimelineContent.js +4 -16
  187. package/modern/TimelineDot/TimelineDot.js +8 -25
  188. package/modern/TimelineItem/TimelineItem.js +5 -18
  189. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
  190. package/modern/TimelineSeparator/TimelineSeparator.js +4 -14
  191. package/modern/ToggleButton/ToggleButton.js +1 -2
  192. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
  193. package/modern/TreeItem/TreeItem.js +19 -58
  194. package/modern/TreeItem/TreeItemContent.js +12 -28
  195. package/modern/TreeItem/useTreeItem.js +2 -8
  196. package/modern/TreeView/TreeView.js +51 -195
  197. package/modern/TreeView/TreeViewContext.js +1 -3
  198. package/modern/TreeView/descendants.js +19 -31
  199. package/modern/YearPicker/YearPicker.js +1 -3
  200. package/modern/index.js +3 -2
  201. package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
  202. package/modern/internal/svg-icons/ArrowLeft.js +1 -1
  203. package/modern/internal/svg-icons/ArrowRight.js +1 -1
  204. package/modern/internal/svg-icons/Calendar.js +1 -1
  205. package/modern/internal/svg-icons/Clock.js +1 -1
  206. package/modern/internal/svg-icons/DateRange.js +1 -1
  207. package/modern/internal/svg-icons/Pen.js +1 -1
  208. package/modern/internal/svg-icons/Time.js +1 -1
  209. package/node/AdapterDateFns/AdapterDateFns.js +2 -5
  210. package/node/AdapterDateFns/index.js +0 -2
  211. package/node/AdapterDayjs/AdapterDayjs.js +2 -5
  212. package/node/AdapterDayjs/index.js +0 -2
  213. package/node/AdapterLuxon/AdapterLuxon.js +2 -5
  214. package/node/AdapterLuxon/index.js +0 -2
  215. package/node/AdapterMoment/AdapterMoment.js +2 -5
  216. package/node/AdapterMoment/index.js +0 -2
  217. package/node/Alert/Alert.js +1 -11
  218. package/node/Alert/index.js +0 -2
  219. package/node/AlertTitle/AlertTitle.js +1 -11
  220. package/node/AlertTitle/index.js +0 -2
  221. package/node/Autocomplete/Autocomplete.js +1 -11
  222. package/node/Autocomplete/index.js +0 -2
  223. package/node/AvatarGroup/AvatarGroup.js +1 -11
  224. package/node/AvatarGroup/index.js +0 -2
  225. package/node/CalendarPicker/CalendarPicker.js +1 -6
  226. package/node/CalendarPicker/index.js +0 -4
  227. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -8
  228. package/node/CalendarPickerSkeleton/index.js +0 -4
  229. package/node/ClockPicker/ClockPicker.js +1 -6
  230. package/node/ClockPicker/index.js +0 -4
  231. package/node/DatePicker/DatePicker.js +1 -6
  232. package/node/DatePicker/index.js +0 -4
  233. package/node/DateRangePicker/DateRangePicker.js +1 -6
  234. package/node/DateRangePicker/index.js +0 -4
  235. package/node/DateRangePickerDay/DateRangePickerDay.js +1 -8
  236. package/node/DateRangePickerDay/index.js +0 -4
  237. package/node/DateTimePicker/DateTimePicker.js +1 -6
  238. package/node/DateTimePicker/index.js +0 -4
  239. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
  240. package/node/DesktopDatePicker/index.js +0 -4
  241. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -6
  242. package/node/DesktopDateRangePicker/index.js +0 -4
  243. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -6
  244. package/node/DesktopDateTimePicker/index.js +0 -4
  245. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -6
  246. package/node/DesktopTimePicker/index.js +0 -4
  247. package/node/LoadingButton/LoadingButton.js +13 -46
  248. package/node/LoadingButton/index.js +0 -6
  249. package/node/LoadingButton/loadingButtonClasses.js +0 -5
  250. package/node/LocalizationProvider/LocalizationProvider.js +0 -6
  251. package/node/LocalizationProvider/index.js +0 -4
  252. package/node/Masonry/Masonry.js +27 -83
  253. package/node/Masonry/index.js +0 -6
  254. package/node/Masonry/masonryClasses.js +0 -5
  255. package/node/MobileDatePicker/MobileDatePicker.js +1 -6
  256. package/node/MobileDatePicker/index.js +0 -4
  257. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -6
  258. package/node/MobileDateRangePicker/index.js +0 -4
  259. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -6
  260. package/node/MobileDateTimePicker/index.js +0 -4
  261. package/node/MobileTimePicker/MobileTimePicker.js +1 -6
  262. package/node/MobileTimePicker/index.js +0 -4
  263. package/node/MonthPicker/MonthPicker.js +1 -8
  264. package/node/MonthPicker/index.js +0 -4
  265. package/node/Pagination/Pagination.js +1 -11
  266. package/node/Pagination/index.js +0 -3
  267. package/node/Pagination/usePagination.js +0 -2
  268. package/node/PaginationItem/PaginationItem.js +1 -11
  269. package/node/PaginationItem/index.js +0 -2
  270. package/node/PickersDay/PickersDay.js +1 -8
  271. package/node/PickersDay/index.js +0 -4
  272. package/node/Rating/Rating.js +1 -11
  273. package/node/Rating/index.js +0 -2
  274. package/node/Skeleton/Skeleton.js +1 -11
  275. package/node/Skeleton/index.js +0 -2
  276. package/node/SpeedDial/SpeedDial.js +1 -11
  277. package/node/SpeedDial/index.js +0 -2
  278. package/node/SpeedDialAction/SpeedDialAction.js +1 -11
  279. package/node/SpeedDialAction/index.js +0 -2
  280. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -11
  281. package/node/SpeedDialIcon/index.js +0 -2
  282. package/node/StaticDatePicker/StaticDatePicker.js +1 -6
  283. package/node/StaticDatePicker/index.js +0 -4
  284. package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -6
  285. package/node/StaticDateRangePicker/index.js +0 -4
  286. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -6
  287. package/node/StaticDateTimePicker/index.js +0 -4
  288. package/node/StaticTimePicker/StaticTimePicker.js +1 -6
  289. package/node/StaticTimePicker/index.js +0 -4
  290. package/node/TabContext/TabContext.js +2 -23
  291. package/node/TabContext/index.js +0 -4
  292. package/node/TabList/TabList.js +4 -22
  293. package/node/TabList/index.js +0 -2
  294. package/node/TabPanel/TabPanel.js +6 -31
  295. package/node/TabPanel/index.js +0 -6
  296. package/node/TabPanel/tabPanelClasses.js +0 -5
  297. package/node/TimePicker/TimePicker.js +1 -6
  298. package/node/TimePicker/index.js +0 -4
  299. package/node/Timeline/Timeline.js +9 -32
  300. package/node/Timeline/TimelineContext.js +0 -6
  301. package/node/Timeline/index.js +0 -6
  302. package/node/Timeline/timelineClasses.js +0 -5
  303. package/node/TimelineConnector/TimelineConnector.js +4 -25
  304. package/node/TimelineConnector/index.js +0 -6
  305. package/node/TimelineConnector/timelineConnectorClasses.js +0 -5
  306. package/node/TimelineContent/TimelineContent.js +4 -28
  307. package/node/TimelineContent/index.js +0 -6
  308. package/node/TimelineContent/timelineContentClasses.js +0 -5
  309. package/node/TimelineDot/TimelineDot.js +8 -36
  310. package/node/TimelineDot/index.js +0 -6
  311. package/node/TimelineDot/timelineDotClasses.js +0 -5
  312. package/node/TimelineItem/TimelineItem.js +5 -31
  313. package/node/TimelineItem/index.js +0 -6
  314. package/node/TimelineItem/timelineItemClasses.js +0 -5
  315. package/node/TimelineOppositeContent/TimelineOppositeContent.js +4 -28
  316. package/node/TimelineOppositeContent/index.js +0 -6
  317. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -5
  318. package/node/TimelineSeparator/TimelineSeparator.js +4 -25
  319. package/node/TimelineSeparator/index.js +0 -6
  320. package/node/TimelineSeparator/timelineSeparatorClasses.js +0 -5
  321. package/node/ToggleButton/ToggleButton.js +1 -11
  322. package/node/ToggleButton/index.js +0 -2
  323. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -11
  324. package/node/ToggleButtonGroup/index.js +0 -2
  325. package/node/TreeItem/TreeItem.js +19 -73
  326. package/node/TreeItem/TreeItemContent.js +11 -38
  327. package/node/TreeItem/index.js +0 -7
  328. package/node/TreeItem/treeItemClasses.js +0 -5
  329. package/node/TreeItem/useTreeItem.js +2 -14
  330. package/node/TreeView/TreeView.js +51 -205
  331. package/node/TreeView/TreeViewContext.js +0 -6
  332. package/node/TreeView/descendants.js +18 -40
  333. package/node/TreeView/index.js +0 -6
  334. package/node/TreeView/treeViewClasses.js +0 -5
  335. package/node/YearPicker/YearPicker.js +1 -6
  336. package/node/YearPicker/index.js +0 -4
  337. package/node/index.js +1 -107
  338. package/node/internal/svg-icons/ArrowDropDown.js +0 -7
  339. package/node/internal/svg-icons/ArrowLeft.js +0 -7
  340. package/node/internal/svg-icons/ArrowRight.js +0 -7
  341. package/node/internal/svg-icons/Calendar.js +0 -7
  342. package/node/internal/svg-icons/Clock.js +0 -7
  343. package/node/internal/svg-icons/DateRange.js +0 -7
  344. package/node/internal/svg-icons/Pen.js +0 -7
  345. package/node/internal/svg-icons/Time.js +0 -7
  346. package/node/useAutocomplete/index.js +0 -1
  347. package/package.json +6 -6
@@ -21,7 +21,6 @@ const lineBreakStyle = {
21
21
  margin: 0,
22
22
  padding: 0
23
23
  };
24
-
25
24
  const useUtilityClasses = ownerState => {
26
25
  const {
27
26
  classes
@@ -31,7 +30,6 @@ const useUtilityClasses = ownerState => {
31
30
  };
32
31
  return composeClasses(slots, getMasonryUtilityClass, classes);
33
32
  };
34
-
35
33
  export const getStyle = ({
36
34
  ownerState,
37
35
  theme
@@ -46,18 +44,16 @@ export const getStyle = ({
46
44
  boxSizing: 'border-box'
47
45
  }
48
46
  };
49
- const stylesSSR = {}; // Only applicable for Server-Side Rendering
50
-
47
+ const stylesSSR = {};
48
+ // Only applicable for Server-Side Rendering
51
49
  if (ownerState.isSSR) {
52
50
  const orderStyleSSR = {};
53
51
  const defaultSpacing = parseToNumber(theme.spacing(ownerState.defaultSpacing));
54
-
55
52
  for (let i = 1; i <= ownerState.defaultColumns; i += 1) {
56
53
  orderStyleSSR[`&:nth-of-type(${ownerState.defaultColumns}n+${i % ownerState.defaultColumns})`] = {
57
54
  order: i
58
55
  };
59
56
  }
60
-
61
57
  stylesSSR.height = ownerState.defaultHeight;
62
58
  stylesSSR.margin = -(defaultSpacing / 2);
63
59
  stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
@@ -66,23 +62,20 @@ export const getStyle = ({
66
62
  });
67
63
  return _extends({}, styles, stylesSSR);
68
64
  }
69
-
70
65
  const spacingValues = resolveBreakpointValues({
71
66
  values: ownerState.spacing,
72
67
  breakpoints: theme.breakpoints.values
73
68
  });
74
69
  const transformer = createUnarySpacing(theme);
75
-
76
70
  const spacingStyleFromPropValue = propValue => {
77
- let spacing; // in case of string/number value
78
-
71
+ let spacing;
72
+ // in case of string/number value
79
73
  if (typeof propValue === 'string' && !Number.isNaN(Number(propValue)) || typeof propValue === 'number') {
80
74
  const themeSpacingValue = Number(propValue);
81
75
  spacing = getValue(transformer, themeSpacingValue);
82
76
  } else {
83
77
  spacing = propValue;
84
78
  }
85
-
86
79
  return _extends({
87
80
  margin: `calc(0px - (${spacing} / 2))`,
88
81
  '& > *': {
@@ -92,7 +85,6 @@ export const getStyle = ({
92
85
  height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : `calc(${ownerState.maxColumnHeight}px + ${spacing})`
93
86
  });
94
87
  };
95
-
96
88
  styles = deepmerge(styles, handleBreakpoints({
97
89
  theme
98
90
  }, spacingValues, spacingStyleFromPropValue));
@@ -100,7 +92,6 @@ export const getStyle = ({
100
92
  values: ownerState.columns,
101
93
  breakpoints: theme.breakpoints.values
102
94
  });
103
-
104
95
  const columnStyleFromPropValue = propValue => {
105
96
  const columnValue = Number(propValue);
106
97
  const width = `${(100 / columnValue).toFixed(2)}%`;
@@ -111,11 +102,11 @@ export const getStyle = ({
111
102
  }
112
103
  };
113
104
  };
114
-
115
105
  styles = deepmerge(styles, handleBreakpoints({
116
106
  theme
117
- }, columnValues, columnStyleFromPropValue)); // configure width for responsive spacing values
107
+ }, columnValues, columnStyleFromPropValue));
118
108
 
109
+ // configure width for responsive spacing values
119
110
  if (typeof spacingValues === 'object') {
120
111
  styles = deepmerge(styles, handleBreakpoints({
121
112
  theme
@@ -132,11 +123,9 @@ export const getStyle = ({
132
123
  }
133
124
  };
134
125
  }
135
-
136
126
  return null;
137
127
  }));
138
128
  }
139
-
140
129
  return styles;
141
130
  };
142
131
  const MasonryRoot = styled('div', {
@@ -151,24 +140,21 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
151
140
  props: inProps,
152
141
  name: 'MuiMasonry'
153
142
  });
154
-
155
143
  const {
156
- children,
157
- className,
158
- component = 'div',
159
- columns = 4,
160
- spacing = 1,
161
- defaultColumns,
162
- defaultHeight,
163
- defaultSpacing
164
- } = props,
165
- other = _objectWithoutPropertiesLoose(props, _excluded);
166
-
144
+ children,
145
+ className,
146
+ component = 'div',
147
+ columns = 4,
148
+ spacing = 1,
149
+ defaultColumns,
150
+ defaultHeight,
151
+ defaultSpacing
152
+ } = props,
153
+ other = _objectWithoutPropertiesLoose(props, _excluded);
167
154
  const masonryRef = React.useRef();
168
155
  const [maxColumnHeight, setMaxColumnHeight] = React.useState();
169
156
  const isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
170
157
  const [numberOfLineBreaks, setNumberOfLineBreaks] = React.useState(isSSR ? defaultColumns - 1 : 0);
171
-
172
158
  const ownerState = _extends({}, props, {
173
159
  spacing,
174
160
  columns,
@@ -178,23 +164,18 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
178
164
  defaultSpacing,
179
165
  isSSR
180
166
  });
181
-
182
167
  const classes = useUtilityClasses(ownerState);
183
-
184
168
  const handleResize = masonryChildren => {
185
169
  if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
186
170
  return;
187
171
  }
188
-
189
172
  const masonry = masonryRef.current;
190
173
  const masonryFirstChild = masonryRef.current.firstChild;
191
174
  const parentWidth = masonry.clientWidth;
192
175
  const firstChildWidth = masonryFirstChild.clientWidth;
193
-
194
176
  if (parentWidth === 0 || firstChildWidth === 0) {
195
177
  return;
196
178
  }
197
-
198
179
  const firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
199
180
  const firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
200
181
  const firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
@@ -205,28 +186,23 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
205
186
  if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
206
187
  return;
207
188
  }
208
-
209
189
  const childComputedStyle = window.getComputedStyle(child);
210
190
  const childMarginTop = parseToNumber(childComputedStyle.marginTop);
211
- const childMarginBottom = parseToNumber(childComputedStyle.marginBottom); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
212
-
191
+ const childMarginBottom = parseToNumber(childComputedStyle.marginBottom);
192
+ // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
213
193
  const childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
214
-
215
194
  if (childHeight === 0) {
216
195
  skip = true;
217
196
  return;
218
- } // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
219
-
220
-
197
+ }
198
+ // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
221
199
  for (let i = 0; i < child.childNodes.length; i += 1) {
222
200
  const nestedChild = child.childNodes[i];
223
-
224
201
  if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
225
202
  skip = true;
226
203
  break;
227
204
  }
228
205
  }
229
-
230
206
  if (!skip) {
231
207
  // find the current shortest column (where the current item will be placed)
232
208
  const currentMinColumnIndex = columnHeights.indexOf(Math.min(...columnHeights));
@@ -235,7 +211,6 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
235
211
  child.style.order = order;
236
212
  }
237
213
  });
238
-
239
214
  if (!skip) {
240
215
  // In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
241
216
  // when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
@@ -246,26 +221,24 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
246
221
  });
247
222
  }
248
223
  };
249
-
250
224
  const observer = React.useRef(typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(handleResize));
251
225
  React.useEffect(() => {
252
- const resizeObserver = observer.current; // IE and old browsers are not supported
253
-
226
+ const resizeObserver = observer.current;
227
+ // IE and old browsers are not supported
254
228
  if (resizeObserver === undefined) {
255
229
  return undefined;
256
230
  }
257
-
258
231
  if (masonryRef.current) {
259
232
  masonryRef.current.childNodes.forEach(childNode => {
260
233
  resizeObserver.observe(childNode);
261
234
  });
262
235
  }
263
-
264
236
  return () => resizeObserver ? resizeObserver.disconnect() : {};
265
237
  }, [columns, spacing, children]);
266
- const handleRef = useForkRef(ref, masonryRef); // columns are likely to have different heights and hence can start to merge;
267
- // a line break at the end of each column prevents columns from merging
238
+ const handleRef = useForkRef(ref, masonryRef);
268
239
 
240
+ // columns are likely to have different heights and hence can start to merge;
241
+ // a line break at the end of each column prevents columns from merging
269
242
  const lineBreaks = new Array(numberOfLineBreaks).fill('').map((_, index) => /*#__PURE__*/_jsx("span", {
270
243
  "data-class": "line-break",
271
244
  style: _extends({}, lineBreakStyle, {
@@ -281,64 +254,50 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
281
254
  children: [children, lineBreaks]
282
255
  }));
283
256
  });
284
- process.env.NODE_ENV !== "production" ? Masonry.propTypes
285
- /* remove-proptypes */
286
- = {
257
+ process.env.NODE_ENV !== "production" ? Masonry.propTypes /* remove-proptypes */ = {
287
258
  // ----------------------------- Warning --------------------------------
288
259
  // | These PropTypes are generated from the TypeScript type definitions |
289
260
  // | To update them edit the d.ts file and run "yarn proptypes" |
290
261
  // ----------------------------------------------------------------------
291
-
292
262
  /**
293
263
  * The content of the component.
294
264
  */
295
- children: PropTypes
296
- /* @typescript-to-proptypes-ignore */
297
- .node.isRequired,
298
-
265
+ children: PropTypes /* @typescript-to-proptypes-ignore */.node.isRequired,
299
266
  /**
300
267
  * Override or extend the styles applied to the component.
301
268
  */
302
269
  classes: PropTypes.object,
303
-
304
270
  /**
305
271
  * @ignore
306
272
  */
307
273
  className: PropTypes.string,
308
-
309
274
  /**
310
275
  * Number of columns.
311
276
  * @default 4
312
277
  */
313
278
  columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
314
-
315
279
  /**
316
280
  * The component used for the root node.
317
281
  * Either a string to use a HTML element or a component.
318
282
  */
319
283
  component: PropTypes.elementType,
320
-
321
284
  /**
322
285
  * The default number of columns of the component. This is provided for server-side rendering.
323
286
  */
324
287
  defaultColumns: PropTypes.number,
325
-
326
288
  /**
327
289
  * The default height of the component in px. This is provided for server-side rendering.
328
290
  */
329
291
  defaultHeight: PropTypes.number,
330
-
331
292
  /**
332
293
  * The default spacing of the component. Like `spacing`, it is a factor of the theme's spacing. This is provided for server-side rendering.
333
294
  */
334
295
  defaultSpacing: PropTypes.number,
335
-
336
296
  /**
337
297
  * Defines the space between children. It is a factor of the theme's spacing.
338
298
  * @default 1
339
299
  */
340
300
  spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
341
-
342
301
  /**
343
302
  * Allows defining system overrides as well as additional CSS styles.
344
303
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileDatePicker } from '@mui/x-date-pickers'`", "or `import { MobileDatePicker } from '@mui/x-date-pickers/MobileDatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileDateTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileDateTimePicker } from '@mui/x-date-pickers/MobileDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MonthPicker } from '@mui/x-date-pickers'`", "or `import { MonthPicker } from '@mui/x-date-pickers/MonthPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import Pagination from '@mui/material/Pagination';
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 DeprecatedPagination(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(Pagination, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import PaginationItem from '@mui/material/PaginationItem';
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 DeprecatedPaginationItem(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(PaginationItem, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The PickersDay component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { PickersDay } from '@mui/x-date-pickers'`", "or `import { PickersDay } from '@mui/x-date-pickers/PickersDay'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
package/Rating/Rating.js CHANGED
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import Rating from '@mui/material/Rating';
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 DeprecatedRating(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(Rating, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import Skeleton from '@mui/material/Skeleton';
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 DeprecatedSkeleton(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(Skeleton, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import SpeedDial from '@mui/material/SpeedDial';
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 DeprecatedSpeedDial(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(SpeedDial, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import SpeedDialAction from '@mui/material/SpeedDialAction';
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 DeprecatedSpeedDialAction(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import SpeedDialIcon from '@mui/material/SpeedDialIcon';
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 DeprecatedSpeedDialIcon(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDatePicker } from '@mui/x-date-pickers'`", "or `import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro/StaticDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDateTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticDateTimePicker } from '@mui/x-date-pickers/StaticDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,14 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
2
  import * as React from 'react';
3
3
  let warnedOnce = false;
4
-
5
4
  const warn = () => {
6
5
  if (!warnedOnce) {
7
6
  console.warn(['MUI: The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticTimePicker } from '@mui/x-date-pickers/StaticTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
8
7
  warnedOnce = true;
9
8
  }
10
9
  };
11
-
12
10
  /**
13
11
  * @ignore - do not document.
14
12
  */
@@ -1,16 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+
3
4
  /**
4
5
  * @type {React.Context<{ idPrefix: string; value: string } | null>}
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  const Context = /*#__PURE__*/React.createContext(null);
9
-
10
9
  if (process.env.NODE_ENV !== 'production') {
11
10
  Context.displayName = 'TabContext';
12
11
  }
13
-
14
12
  function useUniquePrefix() {
15
13
  const [id, setId] = React.useState(null);
16
14
  React.useEffect(() => {
@@ -18,7 +16,6 @@ function useUniquePrefix() {
18
16
  }, []);
19
17
  return id;
20
18
  }
21
-
22
19
  export default function TabContext(props) {
23
20
  const {
24
21
  children,
@@ -36,28 +33,24 @@ export default function TabContext(props) {
36
33
  children: children
37
34
  });
38
35
  }
39
- process.env.NODE_ENV !== "production" ? TabContext.propTypes
40
- /* remove-proptypes */
41
- = {
36
+ process.env.NODE_ENV !== "production" ? TabContext.propTypes /* remove-proptypes */ = {
42
37
  // ----------------------------- Warning --------------------------------
43
38
  // | These PropTypes are generated from the TypeScript type definitions |
44
39
  // | To update them edit the d.ts file and run "yarn proptypes" |
45
40
  // ----------------------------------------------------------------------
46
-
47
41
  /**
48
42
  * The content of the component.
49
43
  */
50
44
  children: PropTypes.node,
51
-
52
45
  /**
53
46
  * The value of the currently selected `Tab`.
54
47
  */
55
48
  value: PropTypes.string.isRequired
56
49
  } : void 0;
50
+
57
51
  /**
58
52
  * @returns {unknown}
59
53
  */
60
-
61
54
  export function useTabContext() {
62
55
  return React.useContext(Context);
63
56
  }
@@ -65,21 +58,17 @@ export function getPanelId(context, value) {
65
58
  const {
66
59
  idPrefix
67
60
  } = context;
68
-
69
61
  if (idPrefix === null) {
70
62
  return null;
71
63
  }
72
-
73
64
  return `${context.idPrefix}-P-${value}`;
74
65
  }
75
66
  export function getTabId(context, value) {
76
67
  const {
77
68
  idPrefix
78
69
  } = context;
79
-
80
70
  if (idPrefix === null) {
81
71
  return null;
82
72
  }
83
-
84
73
  return `${context.idPrefix}-T-${value}`;
85
74
  }