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

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 +132 -2
  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 +53 -197
  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 +85 -238
  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 +53 -197
  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 +53 -207
  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
@@ -1,12 +1,10 @@
1
1
  import * as React from 'react';
2
+
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
-
6
6
  var TreeViewContext = /*#__PURE__*/React.createContext({});
7
-
8
7
  if (process.env.NODE_ENV !== 'production') {
9
8
  TreeViewContext.displayName = 'TreeViewContext';
10
9
  }
11
-
12
10
  export default TreeViewContext;
@@ -3,51 +3,43 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/material/utils';
6
+
6
7
  /** Credit: https://github.com/reach/reach-ui/blob/86a046f54d53b6420e392b3fa56dd991d9d4e458/packages/descendants/README.md
7
8
  * Modified slightly to suit our purposes.
8
9
  */
9
- // To replace with .findIndex() once we stop IE11 support.
10
10
 
11
+ // To replace with .findIndex() once we stop IE11 support.
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
-
13
13
  function findIndex(array, comp) {
14
14
  for (var i = 0; i < array.length; i += 1) {
15
15
  if (comp(array[i])) {
16
16
  return i;
17
17
  }
18
18
  }
19
-
20
19
  return -1;
21
20
  }
22
-
23
21
  function binaryFindElement(array, element) {
24
22
  var start = 0;
25
23
  var end = array.length - 1;
26
-
27
24
  while (start <= end) {
28
25
  var middle = Math.floor((start + end) / 2);
29
-
30
26
  if (array[middle].element === element) {
31
27
  return middle;
32
- } // eslint-disable-next-line no-bitwise
33
-
28
+ }
34
29
 
30
+ // eslint-disable-next-line no-bitwise
35
31
  if (array[middle].element.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_PRECEDING) {
36
32
  end = middle - 1;
37
33
  } else {
38
34
  start = middle + 1;
39
35
  }
40
36
  }
41
-
42
37
  return start;
43
38
  }
44
-
45
39
  var DescendantContext = /*#__PURE__*/React.createContext({});
46
-
47
40
  if (process.env.NODE_ENV !== 'production') {
48
41
  DescendantContext.displayName = 'DescendantContext';
49
42
  }
50
-
51
43
  function usePrevious(value) {
52
44
  var ref = React.useRef(null);
53
45
  React.useEffect(function () {
@@ -55,8 +47,8 @@ function usePrevious(value) {
55
47
  }, [value]);
56
48
  return ref.current;
57
49
  }
58
-
59
50
  var noop = function noop() {};
51
+
60
52
  /**
61
53
  * This hook registers our descendant by passing it into an array. We can then
62
54
  * search that array by to find its index when registering it in the component.
@@ -77,39 +69,36 @@ var noop = function noop() {};
77
69
  * server for most use-cases, as we are only using it to determine the order of
78
70
  * composed descendants for keyboard navigation.
79
71
  */
80
-
81
-
82
72
  export function useDescendant(descendant) {
83
73
  var _React$useState = React.useState(),
84
- forceUpdate = _React$useState[1];
85
-
74
+ forceUpdate = _React$useState[1];
86
75
  var _React$useContext = React.useContext(DescendantContext),
87
- _React$useContext$reg = _React$useContext.registerDescendant,
88
- registerDescendant = _React$useContext$reg === void 0 ? noop : _React$useContext$reg,
89
- _React$useContext$unr = _React$useContext.unregisterDescendant,
90
- unregisterDescendant = _React$useContext$unr === void 0 ? noop : _React$useContext$unr,
91
- _React$useContext$des = _React$useContext.descendants,
92
- descendants = _React$useContext$des === void 0 ? [] : _React$useContext$des,
93
- _React$useContext$par = _React$useContext.parentId,
94
- parentId = _React$useContext$par === void 0 ? null : _React$useContext$par; // This will initially return -1 because we haven't registered the descendant
76
+ _React$useContext$reg = _React$useContext.registerDescendant,
77
+ registerDescendant = _React$useContext$reg === void 0 ? noop : _React$useContext$reg,
78
+ _React$useContext$unr = _React$useContext.unregisterDescendant,
79
+ unregisterDescendant = _React$useContext$unr === void 0 ? noop : _React$useContext$unr,
80
+ _React$useContext$des = _React$useContext.descendants,
81
+ descendants = _React$useContext$des === void 0 ? [] : _React$useContext$des,
82
+ _React$useContext$par = _React$useContext.parentId,
83
+ parentId = _React$useContext$par === void 0 ? null : _React$useContext$par; // This will initially return -1 because we haven't registered the descendant
95
84
  // on the first render. After we register, this will then return the correct
96
85
  // index on the following render and we will re-register descendants
97
86
  // so that everything is up-to-date before the user interacts with a
98
87
  // collection.
99
-
100
-
101
88
  var index = findIndex(descendants, function (item) {
102
89
  return item.element === descendant.element;
103
90
  });
104
- var previousDescendants = usePrevious(descendants); // We also need to re-register descendants any time ANY of the other
91
+ var previousDescendants = usePrevious(descendants);
92
+
93
+ // We also need to re-register descendants any time ANY of the other
105
94
  // descendants have changed. My brain was melting when I wrote this and it
106
95
  // feels a little off, but checking in render and using the result in the
107
96
  // effect's dependency array works well enough.
108
-
109
97
  var someDescendantsHaveChanged = descendants.some(function (newDescendant, position) {
110
98
  return previousDescendants && previousDescendants[position] && previousDescendants[position].element !== newDescendant.element;
111
- }); // Prevent any flashing
99
+ });
112
100
 
101
+ // Prevent any flashing
113
102
  useEnhancedEffect(function () {
114
103
  if (descendant.element) {
115
104
  registerDescendant(_extends({}, descendant, {
@@ -119,7 +108,6 @@ export function useDescendant(descendant) {
119
108
  unregisterDescendant(descendant.element);
120
109
  };
121
110
  }
122
-
123
111
  forceUpdate({});
124
112
  return undefined;
125
113
  }, [registerDescendant, unregisterDescendant, index, someDescendantsHaveChanged, descendant]);
@@ -130,19 +118,15 @@ export function useDescendant(descendant) {
130
118
  }
131
119
  export function DescendantProvider(props) {
132
120
  var children = props.children,
133
- id = props.id;
134
-
121
+ id = props.id;
135
122
  var _React$useState2 = React.useState([]),
136
- items = _React$useState2[0],
137
- set = _React$useState2[1];
138
-
123
+ items = _React$useState2[0],
124
+ set = _React$useState2[1];
139
125
  var registerDescendant = React.useCallback(function (_ref) {
140
126
  var element = _ref.element,
141
- other = _objectWithoutProperties(_ref, ["element"]);
142
-
127
+ other = _objectWithoutProperties(_ref, ["element"]);
143
128
  set(function (oldItems) {
144
129
  var newItems;
145
-
146
130
  if (oldItems.length === 0) {
147
131
  // If there are no items, register at index 0 and bail.
148
132
  return [_extends({}, other, {
@@ -150,9 +134,7 @@ export function DescendantProvider(props) {
150
134
  index: 0
151
135
  })];
152
136
  }
153
-
154
137
  var index = binaryFindElement(oldItems, element);
155
-
156
138
  if (oldItems[index] && oldItems[index].element === element) {
157
139
  // If the element is already registered, just use the same array
158
140
  newItems = oldItems;
@@ -169,16 +151,16 @@ export function DescendantProvider(props) {
169
151
  // called in an effect every time the descendants state value changes,
170
152
  // we should be sure that this index is accurate when descendent
171
153
  // elements come or go from our component.
154
+
172
155
  var newItem = _extends({}, other, {
173
156
  element: element,
174
157
  index: index
175
- }); // If an index is not found we will push the element to the end.
176
-
158
+ });
177
159
 
160
+ // If an index is not found we will push the element to the end.
178
161
  newItems = oldItems.slice();
179
162
  newItems.splice(index, 0, newItem);
180
163
  }
181
-
182
164
  newItems.forEach(function (item, position) {
183
165
  item.index = position;
184
166
  });
@@ -1,13 +1,12 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
- var warnedOnce = false;
3
2
 
3
+ var warnedOnce = false;
4
4
  var warn = function warn() {
5
5
  if (!warnedOnce) {
6
6
  console.warn(['MUI: The YearPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { YearPicker } from '@mui/x-date-pickers'`", "or `import { YearPicker } from '@mui/x-date-pickers/YearPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
7
7
  warnedOnce = true;
8
8
  }
9
9
  };
10
-
11
10
  /**
12
11
  * @ignore - do not document.
13
12
  */
@@ -15,7 +14,6 @@ var YearPicker = function DeprecatedYearPicker() {
15
14
  warn();
16
15
  return null;
17
16
  };
18
-
19
17
  export default YearPicker;
20
18
  export var yearPickerClasses = {};
21
19
  export var getYearPickerUtilityClass = function getYearPickerUtilityClass(slot) {
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.107
1
+ /** @license MUI v5.0.0-alpha.109
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -103,8 +103,9 @@ export * from './TreeItem';
103
103
  export { default as TreeView } from './TreeView';
104
104
  export * from './TreeView';
105
105
  export { default as YearPicker } from './YearPicker';
106
- export * from './YearPicker'; // createFilterOptions is exported from Autocomplete
106
+ export * from './YearPicker';
107
107
 
108
+ // createFilterOptions is exported from Autocomplete
108
109
  export { default as useAutocomplete } from './useAutocomplete';
109
110
  export { default as Masonry } from './Masonry';
110
111
  export * from './Masonry';
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default createSvgIcon( /*#__PURE__*/_jsx("path", {
9
9
  d: "M7 10l5 5 5-5z"
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default createSvgIcon( /*#__PURE__*/_jsx("path", {
9
9
  d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default createSvgIcon( /*#__PURE__*/_jsx("path", {
9
9
  d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default createSvgIcon( /*#__PURE__*/_jsx("path", {
9
9
  d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, {
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default createSvgIcon( /*#__PURE__*/_jsx("path", {
9
9
  d: "M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default createSvgIcon( /*#__PURE__*/_jsx("path", {
9
9
  d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { createSvgIcon } from '@mui/material/utils';
3
+
3
4
  /**
4
5
  * @ignore - internal component.
5
6
  */
6
-
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, {
@@ -1,16 +1,14 @@
1
1
  let warnedOnce = false;
2
-
3
2
  const warn = () => {
4
3
  if (!warnedOnce) {
5
4
  console.warn(['MUI: The AdapterDateFns class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
6
5
  warnedOnce = true;
7
6
  }
8
- }; // tslint:disable-next-line:no-unnecessary-class
9
-
7
+ };
10
8
 
9
+ // tslint:disable-next-line:no-unnecessary-class
11
10
  export default class AdapterDateFns {
12
11
  constructor() {
13
12
  warn();
14
13
  }
15
-
16
14
  }
@@ -1,16 +1,14 @@
1
1
  let warnedOnce = false;
2
-
3
2
  const warn = () => {
4
3
  if (!warnedOnce) {
5
4
  console.warn(['MUI: The AdapterDayjs class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
6
5
  warnedOnce = true;
7
6
  }
8
- }; // tslint:disable-next-line:no-unnecessary-class
9
-
7
+ };
10
8
 
9
+ // tslint:disable-next-line:no-unnecessary-class
11
10
  export default class AdapterDayjs {
12
11
  constructor() {
13
12
  warn();
14
13
  }
15
-
16
14
  }
@@ -1,16 +1,14 @@
1
1
  let warnedOnce = false;
2
-
3
2
  const warn = () => {
4
3
  if (!warnedOnce) {
5
4
  console.warn(['MUI: The AdapterLuxon class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterLuxon } from '@mui/x-date-pickers/AdapterLuxon'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
6
5
  warnedOnce = true;
7
6
  }
8
- }; // tslint:disable-next-line:no-unnecessary-class
9
-
7
+ };
10
8
 
9
+ // tslint:disable-next-line:no-unnecessary-class
11
10
  export default class AdapterLuxon {
12
11
  constructor() {
13
12
  warn();
14
13
  }
15
-
16
14
  }
@@ -1,16 +1,14 @@
1
1
  let warnedOnce = false;
2
-
3
2
  const warn = () => {
4
3
  if (!warnedOnce) {
5
4
  console.warn(['MUI: The AdapterMoment class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
6
5
  warnedOnce = true;
7
6
  }
8
- }; // tslint:disable-next-line:no-unnecessary-class
9
-
7
+ };
10
8
 
9
+ // tslint:disable-next-line:no-unnecessary-class
11
10
  export default class AdapterMoment {
12
11
  constructor() {
13
12
  warn();
14
13
  }
15
-
16
14
  }
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import Alert from '@mui/material/Alert';
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 DeprecatedAlert(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(Alert, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import AlertTitle from '@mui/material/AlertTitle';
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 DeprecatedAlertTitle(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(AlertTitle, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import Autocomplete from '@mui/material/Autocomplete';
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 DeprecatedAutocomplete(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
17
16
  ref: ref
18
17
  }, props));
@@ -3,16 +3,15 @@ import * as React from 'react';
3
3
  import AvatarGroup from '@mui/material/AvatarGroup';
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 DeprecatedAvatarGroup(props, ref) {
11
11
  if (!warnedOnce) {
12
12
  console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
13
13
  warnedOnce = true;
14
14
  }
15
-
16
15
  return /*#__PURE__*/_jsx(AvatarGroup, _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 CalendarPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { CalendarPicker } from '@mui/x-date-pickers'`", "or `import { CalendarPicker } from '@mui/x-date-pickers/CalendarPicker'`", '', '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 CalendarPickerSkeleton component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { CalendarPickerSkeleton } from '@mui/x-date-pickers'`", "or `import { CalendarPickerSkeleton } from '@mui/x-date-pickers/CalendarPickerSkeleton'`", '', '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 ClockPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { ClockPicker } from '@mui/x-date-pickers'`", "or `import { ClockPicker } from '@mui/x-date-pickers/ClockPicker'`", '', '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 DatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DatePicker } from '@mui/x-date-pickers'`", "or `import { DatePicker } from '@mui/x-date-pickers/DatePicker'`", '', '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 DateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { DateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker'`", '', '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 DateRangePickerDay component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { DateRangePickerDay } from '@mui/x-date-pickers-pro'`", "or `import { DateRangePickerDay } from '@mui/x-date-pickers-pro/DateRangePickerDay'`", '', '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 DateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DateTimePicker } from '@mui/x-date-pickers'`", "or `import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'`", '', '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 DesktopDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DesktopDatePicker } from '@mui/x-date-pickers'`", "or `import { DesktopDatePicker } from '@mui/x-date-pickers/DesktopDatePicker'`", '', '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 DesktopDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { DesktopDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { DesktopDateRangePicker } from '@mui/x-date-pickers-pro/DesktopDateRangePicker'`", '', '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 DesktopDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DesktopDateTimePicker } from '@mui/x-date-pickers'`", "or `import { DesktopDateTimePicker } from '@mui/x-date-pickers/DesktopDateTimePicker'`", '', '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
  */