@mui/lab 5.0.0-alpha.52 → 5.0.0-alpha.56

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 (384) hide show
  1. package/AdapterDateFns/index.d.ts +1 -1
  2. package/AdapterDayjs/index.d.ts +1 -1
  3. package/AdapterLuxon/index.d.ts +1 -1
  4. package/AdapterMoment/index.d.ts +1 -1
  5. package/CHANGELOG.md +302 -9
  6. package/CalendarPicker/CalendarPicker.d.ts +106 -96
  7. package/CalendarPicker/CalendarPicker.js +13 -1
  8. package/CalendarPicker/PickersCalendar.d.ts +47 -45
  9. package/CalendarPicker/PickersCalendar.js +9 -3
  10. package/CalendarPicker/PickersCalendarHeader.d.ts +43 -42
  11. package/CalendarPicker/PickersCalendarHeader.js +5 -4
  12. package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
  13. package/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
  14. package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
  15. package/CalendarPicker/PickersSlideTransition.js +1 -1
  16. package/CalendarPicker/index.d.ts +5 -5
  17. package/CalendarPicker/shared.d.ts +1 -1
  18. package/CalendarPicker/useCalendarState.d.ts +32 -32
  19. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -41
  20. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  21. package/CalendarPickerSkeleton/index.d.ts +3 -3
  22. package/ClockPicker/Clock.d.ts +28 -28
  23. package/ClockPicker/ClockNumber.d.ts +19 -19
  24. package/ClockPicker/ClockNumber.js +1 -1
  25. package/ClockPicker/ClockNumbers.d.ts +24 -24
  26. package/ClockPicker/ClockPicker.d.ts +121 -121
  27. package/ClockPicker/ClockPicker.js +1 -1
  28. package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
  29. package/ClockPicker/ClockPointer.d.ts +23 -23
  30. package/ClockPicker/index.d.ts +5 -5
  31. package/ClockPicker/shared.d.ts +5 -5
  32. package/DatePicker/DatePicker.d.ts +27 -27
  33. package/DatePicker/DatePicker.js +2 -0
  34. package/DatePicker/DatePickerToolbar.d.ts +23 -23
  35. package/DatePicker/DatePickerToolbar.js +1 -1
  36. package/DatePicker/index.d.ts +2 -2
  37. package/DatePicker/shared.d.ts +45 -45
  38. package/DateRangePicker/DateRangePicker.d.ts +65 -65
  39. package/DateRangePicker/DateRangePicker.js +2 -0
  40. package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
  41. package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
  42. package/DateRangePicker/DateRangePickerToolbar.js +1 -1
  43. package/DateRangePicker/DateRangePickerView.d.ts +44 -44
  44. package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
  45. package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
  46. package/DateRangePicker/RangeTypes.d.ts +8 -8
  47. package/DateRangePicker/date-range-manager.d.ts +14 -14
  48. package/DateRangePicker/index.d.ts +3 -3
  49. package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
  50. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  51. package/DateRangePickerDay/index.d.ts +2 -2
  52. package/DateTimePicker/DateTimePicker.d.ts +27 -27
  53. package/DateTimePicker/DateTimePicker.js +2 -0
  54. package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
  55. package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
  56. package/DateTimePicker/DateTimePickerToolbar.js +1 -1
  57. package/DateTimePicker/index.d.ts +2 -2
  58. package/DateTimePicker/shared.d.ts +67 -67
  59. package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
  60. package/DesktopDatePicker/DesktopDatePicker.js +2 -0
  61. package/DesktopDatePicker/index.d.ts +2 -2
  62. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
  63. package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  64. package/DesktopDateRangePicker/index.d.ts +2 -2
  65. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
  66. package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  67. package/DesktopDateTimePicker/index.d.ts +2 -2
  68. package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
  69. package/DesktopTimePicker/index.d.ts +2 -2
  70. package/LoadingButton/LoadingButton.js +20 -7
  71. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  72. package/LoadingButton/loadingButtonClasses.js +1 -1
  73. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  74. package/LocalizationProvider/index.d.ts +2 -2
  75. package/Masonry/Masonry.js +83 -98
  76. package/Masonry/masonryClasses.d.ts +8 -8
  77. package/Masonry/masonryClasses.js +1 -1
  78. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  79. package/MobileDatePicker/MobileDatePicker.js +2 -0
  80. package/MobileDatePicker/index.d.ts +2 -2
  81. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  82. package/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  83. package/MobileDateRangePicker/index.d.ts +2 -2
  84. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  85. package/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  86. package/MobileDateTimePicker/index.d.ts +2 -2
  87. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  88. package/MobileTimePicker/index.d.ts +2 -2
  89. package/MonthPicker/MonthPicker.d.ts +53 -49
  90. package/MonthPicker/MonthPicker.js +23 -6
  91. package/MonthPicker/PickersMonth.d.ts +15 -15
  92. package/MonthPicker/PickersMonth.js +19 -14
  93. package/MonthPicker/index.d.ts +3 -3
  94. package/PickersDay/PickersDay.d.ts +93 -93
  95. package/PickersDay/PickersDay.js +2 -2
  96. package/PickersDay/index.d.ts +4 -4
  97. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  98. package/StaticDatePicker/StaticDatePicker.js +2 -0
  99. package/StaticDatePicker/index.d.ts +2 -2
  100. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  101. package/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  102. package/StaticDateRangePicker/index.d.ts +2 -2
  103. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  104. package/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  105. package/StaticDateTimePicker/index.d.ts +2 -2
  106. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  107. package/StaticTimePicker/index.d.ts +2 -2
  108. package/TabPanel/TabPanel.js +2 -2
  109. package/TabPanel/tabPanelClasses.d.ts +8 -8
  110. package/TabPanel/tabPanelClasses.js +1 -1
  111. package/TimePicker/TimePicker.d.ts +27 -27
  112. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  113. package/TimePicker/TimePickerToolbar.js +1 -1
  114. package/TimePicker/index.d.ts +2 -2
  115. package/TimePicker/shared.d.ts +36 -36
  116. package/Timeline/Timeline.d.ts +59 -59
  117. package/Timeline/Timeline.js +2 -2
  118. package/Timeline/TimelineContext.d.ts +6 -6
  119. package/Timeline/index.d.ts +5 -5
  120. package/Timeline/timelineClasses.d.ts +3 -3
  121. package/Timeline/timelineClasses.js +1 -1
  122. package/TimelineConnector/TimelineConnector.js +2 -2
  123. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  124. package/TimelineConnector/timelineConnectorClasses.js +1 -1
  125. package/TimelineContent/TimelineContent.js +2 -2
  126. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  127. package/TimelineContent/timelineContentClasses.js +1 -1
  128. package/TimelineDot/TimelineDot.js +2 -2
  129. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  130. package/TimelineDot/timelineDotClasses.js +1 -1
  131. package/TimelineItem/TimelineItem.js +2 -2
  132. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  133. package/TimelineItem/timelineItemClasses.js +1 -1
  134. package/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  135. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  136. package/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  137. package/TimelineSeparator/TimelineSeparator.js +2 -2
  138. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  139. package/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  140. package/TreeItem/TreeItem.js +2 -2
  141. package/TreeItem/treeItemClasses.d.ts +24 -24
  142. package/TreeItem/treeItemClasses.js +1 -1
  143. package/TreeView/TreeView.js +2 -2
  144. package/TreeView/treeViewClasses.d.ts +8 -8
  145. package/TreeView/treeViewClasses.js +1 -1
  146. package/YearPicker/PickersYear.d.ts +28 -28
  147. package/YearPicker/PickersYear.js +2 -2
  148. package/YearPicker/YearPicker.d.ts +44 -42
  149. package/YearPicker/YearPicker.js +18 -2
  150. package/YearPicker/index.d.ts +5 -5
  151. package/YearPicker/yearPickerClasses.d.ts +3 -3
  152. package/YearPicker/yearPickerClasses.js +1 -1
  153. package/index.d.ts +3 -0
  154. package/index.js +4 -2
  155. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  156. package/internal/pickers/Picker/Picker.d.ts +33 -33
  157. package/internal/pickers/Picker/PickerView.d.ts +3 -3
  158. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  159. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  160. package/internal/pickers/PickersPopper.d.ts +33 -33
  161. package/internal/pickers/PickersToolbar.d.ts +14 -14
  162. package/internal/pickers/PickersToolbar.js +1 -1
  163. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  164. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  165. package/internal/pickers/PickersToolbarText.js +1 -1
  166. package/internal/pickers/PureDateInput.d.ts +80 -80
  167. package/internal/pickers/constants/dimensions.d.ts +4 -4
  168. package/internal/pickers/constants/prop-types.d.ts +1 -1
  169. package/internal/pickers/date-time-utils.d.ts +8 -8
  170. package/internal/pickers/date-utils.d.ts +52 -52
  171. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  172. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  173. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  174. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  175. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  176. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  177. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  178. package/internal/pickers/hooks/useViews.d.ts +19 -19
  179. package/internal/pickers/test-utils.js +17 -7
  180. package/internal/pickers/text-field-helper.d.ts +11 -11
  181. package/internal/pickers/time-utils.d.ts +33 -33
  182. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  183. package/internal/pickers/typings/Views.d.ts +1 -1
  184. package/internal/pickers/typings/helpers.d.ts +9 -9
  185. package/internal/pickers/utils.d.ts +7 -7
  186. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  187. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  188. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  189. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  190. package/internal/pickers/wrappers/StaticWrapper.d.ts +10 -10
  191. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  192. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  193. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  194. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  195. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  196. package/internal/svg-icons/Calendar.d.ts +7 -7
  197. package/internal/svg-icons/Clock.d.ts +7 -7
  198. package/internal/svg-icons/DateRange.d.ts +7 -7
  199. package/internal/svg-icons/Pen.d.ts +7 -7
  200. package/internal/svg-icons/Time.d.ts +7 -7
  201. package/legacy/CalendarPicker/CalendarPicker.js +13 -1
  202. package/legacy/CalendarPicker/PickersCalendar.js +10 -3
  203. package/legacy/CalendarPicker/PickersCalendarHeader.js +5 -4
  204. package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
  205. package/legacy/CalendarPicker/PickersSlideTransition.js +1 -1
  206. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  207. package/legacy/ClockPicker/ClockNumber.js +1 -1
  208. package/legacy/ClockPicker/ClockPicker.js +1 -1
  209. package/legacy/DatePicker/DatePicker.js +2 -0
  210. package/legacy/DatePicker/DatePickerToolbar.js +1 -1
  211. package/legacy/DateRangePicker/DateRangePicker.js +2 -0
  212. package/legacy/DateRangePicker/DateRangePickerToolbar.js +1 -1
  213. package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
  214. package/legacy/DateTimePicker/DateTimePicker.js +2 -0
  215. package/legacy/DateTimePicker/DateTimePickerToolbar.js +1 -1
  216. package/legacy/DesktopDatePicker/DesktopDatePicker.js +2 -0
  217. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  218. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  219. package/legacy/LoadingButton/LoadingButton.js +20 -6
  220. package/legacy/LoadingButton/loadingButtonClasses.js +1 -1
  221. package/legacy/Masonry/Masonry.js +83 -96
  222. package/legacy/Masonry/masonryClasses.js +1 -1
  223. package/legacy/MobileDatePicker/MobileDatePicker.js +2 -0
  224. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  225. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  226. package/legacy/MonthPicker/MonthPicker.js +22 -5
  227. package/legacy/MonthPicker/PickersMonth.js +20 -15
  228. package/legacy/PickersDay/PickersDay.js +2 -2
  229. package/legacy/StaticDatePicker/StaticDatePicker.js +2 -0
  230. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  231. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  232. package/legacy/TabPanel/TabPanel.js +2 -2
  233. package/legacy/TabPanel/tabPanelClasses.js +1 -1
  234. package/legacy/TimePicker/TimePickerToolbar.js +1 -1
  235. package/legacy/Timeline/Timeline.js +2 -2
  236. package/legacy/Timeline/timelineClasses.js +1 -1
  237. package/legacy/TimelineConnector/TimelineConnector.js +2 -2
  238. package/legacy/TimelineConnector/timelineConnectorClasses.js +1 -1
  239. package/legacy/TimelineContent/TimelineContent.js +2 -2
  240. package/legacy/TimelineContent/timelineContentClasses.js +1 -1
  241. package/legacy/TimelineDot/TimelineDot.js +2 -2
  242. package/legacy/TimelineDot/timelineDotClasses.js +1 -1
  243. package/legacy/TimelineItem/TimelineItem.js +2 -2
  244. package/legacy/TimelineItem/timelineItemClasses.js +1 -1
  245. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  246. package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  247. package/legacy/TimelineSeparator/TimelineSeparator.js +2 -2
  248. package/legacy/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  249. package/legacy/TreeItem/TreeItem.js +2 -2
  250. package/legacy/TreeItem/treeItemClasses.js +1 -1
  251. package/legacy/TreeView/TreeView.js +2 -2
  252. package/legacy/TreeView/treeViewClasses.js +1 -1
  253. package/legacy/YearPicker/PickersYear.js +2 -2
  254. package/legacy/YearPicker/YearPicker.js +18 -2
  255. package/legacy/YearPicker/yearPickerClasses.js +1 -1
  256. package/legacy/index.js +4 -2
  257. package/legacy/internal/pickers/PickersToolbar.js +1 -1
  258. package/legacy/internal/pickers/PickersToolbarText.js +1 -1
  259. package/legacy/internal/pickers/test-utils.js +13 -8
  260. package/legacy/useAutocomplete/index.js +1 -1
  261. package/modern/CalendarPicker/CalendarPicker.js +13 -1
  262. package/modern/CalendarPicker/PickersCalendar.js +9 -3
  263. package/modern/CalendarPicker/PickersCalendarHeader.js +5 -4
  264. package/modern/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
  265. package/modern/CalendarPicker/PickersSlideTransition.js +1 -1
  266. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  267. package/modern/ClockPicker/ClockNumber.js +1 -1
  268. package/modern/ClockPicker/ClockPicker.js +1 -1
  269. package/modern/DatePicker/DatePicker.js +2 -0
  270. package/modern/DatePicker/DatePickerToolbar.js +1 -1
  271. package/modern/DateRangePicker/DateRangePicker.js +2 -0
  272. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  273. package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
  274. package/modern/DateTimePicker/DateTimePicker.js +2 -0
  275. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -1
  276. package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -0
  277. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  278. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  279. package/modern/LoadingButton/LoadingButton.js +20 -7
  280. package/modern/LoadingButton/loadingButtonClasses.js +1 -1
  281. package/modern/Masonry/Masonry.js +79 -98
  282. package/modern/Masonry/masonryClasses.js +1 -1
  283. package/modern/MobileDatePicker/MobileDatePicker.js +2 -0
  284. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  285. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  286. package/modern/MonthPicker/MonthPicker.js +23 -6
  287. package/modern/MonthPicker/PickersMonth.js +19 -14
  288. package/modern/PickersDay/PickersDay.js +2 -2
  289. package/modern/StaticDatePicker/StaticDatePicker.js +2 -0
  290. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  291. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  292. package/modern/TabPanel/TabPanel.js +2 -2
  293. package/modern/TabPanel/tabPanelClasses.js +1 -1
  294. package/modern/TimePicker/TimePickerToolbar.js +1 -1
  295. package/modern/Timeline/Timeline.js +2 -2
  296. package/modern/Timeline/timelineClasses.js +1 -1
  297. package/modern/TimelineConnector/TimelineConnector.js +2 -2
  298. package/modern/TimelineConnector/timelineConnectorClasses.js +1 -1
  299. package/modern/TimelineContent/TimelineContent.js +2 -2
  300. package/modern/TimelineContent/timelineContentClasses.js +1 -1
  301. package/modern/TimelineDot/TimelineDot.js +2 -2
  302. package/modern/TimelineDot/timelineDotClasses.js +1 -1
  303. package/modern/TimelineItem/TimelineItem.js +2 -2
  304. package/modern/TimelineItem/timelineItemClasses.js +1 -1
  305. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  306. package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  307. package/modern/TimelineSeparator/TimelineSeparator.js +2 -2
  308. package/modern/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  309. package/modern/TreeItem/TreeItem.js +2 -2
  310. package/modern/TreeItem/treeItemClasses.js +1 -1
  311. package/modern/TreeView/TreeView.js +2 -2
  312. package/modern/TreeView/treeViewClasses.js +1 -1
  313. package/modern/YearPicker/PickersYear.js +2 -2
  314. package/modern/YearPicker/YearPicker.js +18 -2
  315. package/modern/YearPicker/yearPickerClasses.js +1 -1
  316. package/modern/index.js +4 -2
  317. package/modern/internal/pickers/PickersToolbar.js +1 -1
  318. package/modern/internal/pickers/PickersToolbarText.js +1 -1
  319. package/modern/internal/pickers/test-utils.js +17 -7
  320. package/modern/useAutocomplete/index.js +1 -1
  321. package/node/CalendarPicker/CalendarPicker.js +16 -4
  322. package/node/CalendarPicker/PickersCalendar.js +9 -3
  323. package/node/CalendarPicker/PickersCalendarHeader.js +5 -4
  324. package/node/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
  325. package/node/CalendarPicker/PickersSlideTransition.js +2 -2
  326. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +5 -5
  327. package/node/ClockPicker/ClockNumber.js +2 -2
  328. package/node/ClockPicker/ClockPicker.js +4 -4
  329. package/node/DatePicker/DatePicker.js +2 -0
  330. package/node/DatePicker/DatePickerToolbar.js +2 -2
  331. package/node/DateRangePicker/DateRangePicker.js +2 -0
  332. package/node/DateRangePicker/DateRangePickerToolbar.js +2 -2
  333. package/node/DateRangePickerDay/DateRangePickerDay.js +5 -5
  334. package/node/DateTimePicker/DateTimePicker.js +2 -0
  335. package/node/DateTimePicker/DateTimePickerToolbar.js +2 -2
  336. package/node/DesktopDatePicker/DesktopDatePicker.js +2 -0
  337. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  338. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  339. package/node/LoadingButton/LoadingButton.js +21 -8
  340. package/node/LoadingButton/loadingButtonClasses.js +3 -3
  341. package/node/Masonry/Masonry.js +88 -100
  342. package/node/Masonry/masonryClasses.js +3 -3
  343. package/node/MobileDatePicker/MobileDatePicker.js +2 -0
  344. package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  345. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  346. package/node/MonthPicker/MonthPicker.js +26 -9
  347. package/node/MonthPicker/PickersMonth.js +20 -15
  348. package/node/PickersDay/PickersDay.js +5 -5
  349. package/node/StaticDatePicker/StaticDatePicker.js +2 -0
  350. package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  351. package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  352. package/node/TabPanel/TabPanel.js +3 -3
  353. package/node/TabPanel/tabPanelClasses.js +3 -3
  354. package/node/TimePicker/TimePickerToolbar.js +4 -4
  355. package/node/Timeline/Timeline.js +3 -3
  356. package/node/Timeline/timelineClasses.js +3 -3
  357. package/node/TimelineConnector/TimelineConnector.js +3 -3
  358. package/node/TimelineConnector/timelineConnectorClasses.js +3 -3
  359. package/node/TimelineContent/TimelineContent.js +3 -3
  360. package/node/TimelineContent/timelineContentClasses.js +3 -3
  361. package/node/TimelineDot/TimelineDot.js +3 -3
  362. package/node/TimelineDot/timelineDotClasses.js +3 -3
  363. package/node/TimelineItem/TimelineItem.js +3 -3
  364. package/node/TimelineItem/timelineItemClasses.js +3 -3
  365. package/node/TimelineOppositeContent/TimelineOppositeContent.js +3 -3
  366. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -3
  367. package/node/TimelineSeparator/TimelineSeparator.js +3 -3
  368. package/node/TimelineSeparator/timelineSeparatorClasses.js +3 -3
  369. package/node/TreeItem/TreeItem.js +3 -3
  370. package/node/TreeItem/treeItemClasses.js +3 -3
  371. package/node/TreeView/TreeView.js +3 -3
  372. package/node/TreeView/treeViewClasses.js +3 -3
  373. package/node/YearPicker/PickersYear.js +5 -5
  374. package/node/YearPicker/YearPicker.js +19 -3
  375. package/node/YearPicker/yearPickerClasses.js +3 -3
  376. package/node/index.js +23 -2
  377. package/node/internal/pickers/PickersToolbar.js +2 -2
  378. package/node/internal/pickers/PickersToolbarText.js +2 -2
  379. package/node/internal/pickers/test-utils.js +17 -7
  380. package/node/useAutocomplete/index.js +3 -3
  381. package/package.json +7 -6
  382. package/themeAugmentation/components.d.ts +10 -0
  383. package/useAutocomplete/index.d.ts +1 -1
  384. package/useAutocomplete/index.js +1 -1
@@ -77,6 +77,7 @@ function PickersCalendarHeader(props) {
77
77
  _props$componentsProp = props.componentsProps,
78
78
  componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
79
79
  month = props.currentMonth,
80
+ disabled = props.disabled,
80
81
  disableFuture = props.disableFuture,
81
82
  disablePast = props.disablePast,
82
83
  _props$getViewSwitchi = props.getViewSwitchingButtonText,
@@ -104,16 +105,16 @@ function PickersCalendarHeader(props) {
104
105
  };
105
106
 
106
107
  var isNextMonthDisabled = useNextMonthDisabled(month, {
107
- disableFuture: disableFuture,
108
+ disableFuture: disableFuture || disabled,
108
109
  maxDate: maxDate
109
110
  });
110
111
  var isPreviousMonthDisabled = usePreviousMonthDisabled(month, {
111
- disablePast: disablePast,
112
+ disablePast: disablePast || disabled,
112
113
  minDate: minDate
113
114
  });
114
115
 
115
116
  var handleToggleView = function handleToggleView() {
116
- if (views.length === 1 || !onViewChange) {
117
+ if (views.length === 1 || !onViewChange || disabled) {
117
118
  return;
118
119
  }
119
120
 
@@ -156,7 +157,7 @@ function PickersCalendarHeader(props) {
156
157
  ownerState: ownerState,
157
158
  children: utils.format(month, 'year')
158
159
  })
159
- }), views.length > 1 && /*#__PURE__*/_jsx(PickersCalendarHeaderSwitchViewButton, _extends({
160
+ }), views.length > 1 && !disabled && /*#__PURE__*/_jsx(PickersCalendarHeaderSwitchViewButton, _extends({
160
161
  size: "small",
161
162
  as: components.SwitchViewButton,
162
163
  "aria-label": getViewSwitchingButtonText(currentView)
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import clsx from 'clsx';
3
3
  import Fade from '@mui/material/Fade';
4
4
  import { styled } from '@mui/material/styles';
5
- import { generateUtilityClasses } from '@mui/core';
5
+ import { generateUtilityClasses } from '@mui/base';
6
6
  import { TransitionGroup } from 'react-transition-group';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  var classes = generateUtilityClasses('PrivatePickersFadeTransitionGroup', ['root']);
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import * as React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { styled } from '@mui/material/styles';
7
- import { generateUtilityClasses } from '@mui/core';
7
+ import { generateUtilityClasses } from '@mui/base';
8
8
  import { CSSTransition, TransitionGroup } from 'react-transition-group';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  var classes = generateUtilityClasses('PrivatePickersSlideTransition', ['root', 'slideEnter-left', 'slideEnter-right', 'slideEnterActive', 'slideEnterActive', 'slideExit', 'slideExitActiveLeft-left', 'slideExitActiveLeft-right']);
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
6
  import Skeleton from '@mui/material/Skeleton';
7
7
  import { styled, useThemeProps } from '@mui/material/styles';
8
- import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/core';
8
+ import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
9
9
  import { DAY_SIZE, DAY_MARGIN } from '../internal/pickers/constants/dimensions';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  export function getCalendarPickerSkeletonUtilityClass(slot) {
@@ -150,6 +150,6 @@ process.env.NODE_ENV !== "production" ? CalendarPickerSkeleton.propTypes
150
150
  /**
151
151
  * The system prop that allows defining system overrides as well as additional CSS styles.
152
152
  */
153
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
153
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
154
154
  } : void 0;
155
155
  export default CalendarPickerSkeleton;
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { styled } from '@mui/material/styles';
7
- import { generateUtilityClasses } from '@mui/core';
7
+ import { generateUtilityClasses } from '@mui/base';
8
8
  import { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from './shared';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  export var classes = generateUtilityClasses('PrivateClockNumber', ['selected', 'disabled']);
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { unstable_useId as useId } from '@mui/utils';
5
5
  import { styled, useThemeProps } from '@mui/material/styles';
6
- import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/core';
6
+ import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
7
7
  import Clock from './Clock';
8
8
  import { pipe } from '../internal/pickers/utils';
9
9
  import { useUtils, useNow } from '../internal/pickers/hooks/useUtils';
@@ -153,6 +153,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
153
153
 
154
154
  /**
155
155
  * If `true`, the picker and text field are disabled.
156
+ * @default false
156
157
  */
157
158
  disabled: PropTypes.bool,
158
159
 
@@ -344,6 +345,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
344
345
 
345
346
  /**
346
347
  * Make picker read only.
348
+ * @default false
347
349
  */
348
350
  readOnly: PropTypes.bool,
349
351
 
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
4
  import * as React from 'react';
5
5
  import Typography from '@mui/material/Typography';
6
6
  import { styled } from '@mui/material/styles';
7
- import { generateUtilityClasses } from '@mui/core';
7
+ import { generateUtilityClasses } from '@mui/base';
8
8
  import PickersToolbar from '../internal/pickers/PickersToolbar';
9
9
  import { useUtils } from '../internal/pickers/hooks/useUtils';
10
10
  import { isYearAndMonthViews, isYearOnlyView } from './shared';
@@ -215,6 +215,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
215
215
 
216
216
  /**
217
217
  * If `true`, the picker and text field are disabled.
218
+ * @default false
218
219
  */
219
220
  disabled: PropTypes.bool,
220
221
 
@@ -405,6 +406,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
405
406
 
406
407
  /**
407
408
  * Make picker read only.
409
+ * @default false
408
410
  */
409
411
  readOnly: PropTypes.bool,
410
412
 
@@ -6,7 +6,7 @@ var _Typography;
6
6
  import * as React from 'react';
7
7
  import Typography from '@mui/material/Typography';
8
8
  import { styled } from '@mui/material/styles';
9
- import { generateUtilityClasses } from '@mui/core';
9
+ import { generateUtilityClasses } from '@mui/base';
10
10
  import PickersToolbar from '../internal/pickers/PickersToolbar';
11
11
  import { useUtils } from '../internal/pickers/hooks/useUtils';
12
12
  import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { alpha, styled } from '@mui/material/styles';
8
- import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/core';
8
+ import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
9
9
  import { DAY_MARGIN } from '../internal/pickers/constants/dimensions';
10
10
  import { useUtils } from '../internal/pickers/hooks/useUtils';
11
11
  import PickersDay, { areDayPropsEqual } from '../PickersDay/PickersDay';
@@ -233,7 +233,7 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDay.propTypes
233
233
  /**
234
234
  * The system prop that allows defining system overrides as well as additional CSS styles.
235
235
  */
236
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
236
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
237
237
  } : void 0;
238
238
  /**
239
239
  *
@@ -170,6 +170,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
170
170
 
171
171
  /**
172
172
  * If `true`, the picker and text field are disabled.
173
+ * @default false
173
174
  */
174
175
  disabled: PropTypes.bool,
175
176
 
@@ -413,6 +414,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes
413
414
 
414
415
  /**
415
416
  * Make picker read only.
417
+ * @default false
416
418
  */
417
419
  readOnly: PropTypes.bool,
418
420
 
@@ -6,7 +6,7 @@ var _DateTimePickerToolba, _DateTimePickerToolba2;
6
6
 
7
7
  import * as React from 'react';
8
8
  import { styled } from '@mui/material/styles';
9
- import { generateUtilityClasses } from '@mui/core';
9
+ import { generateUtilityClasses } from '@mui/base';
10
10
  import PickersToolbarText from '../internal/pickers/PickersToolbarText';
11
11
  import PickersToolbar from '../internal/pickers/PickersToolbar';
12
12
  import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';
@@ -136,6 +136,7 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
136
136
 
137
137
  /**
138
138
  * If `true`, the picker and text field are disabled.
139
+ * @default false
139
140
  */
140
141
  disabled: PropTypes.bool,
141
142
 
@@ -321,6 +322,7 @@ process.env.NODE_ENV !== "production" ? DesktopDatePicker.propTypes
321
322
 
322
323
  /**
323
324
  * Make picker read only.
325
+ * @default false
324
326
  */
325
327
  readOnly: PropTypes.bool,
326
328
 
@@ -187,6 +187,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
187
187
 
188
188
  /**
189
189
  * If `true`, the picker and text field are disabled.
190
+ * @default false
190
191
  */
191
192
  disabled: PropTypes.bool,
192
193
 
@@ -371,6 +372,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes
371
372
 
372
373
  /**
373
374
  * Make picker read only.
375
+ * @default false
374
376
  */
375
377
  readOnly: PropTypes.bool,
376
378
 
@@ -151,6 +151,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
151
151
 
152
152
  /**
153
153
  * If `true`, the picker and text field are disabled.
154
+ * @default false
154
155
  */
155
156
  disabled: PropTypes.bool,
156
157
 
@@ -388,6 +389,7 @@ process.env.NODE_ENV !== "production" ? DesktopDateTimePicker.propTypes
388
389
 
389
390
  /**
390
391
  * Make picker read only.
392
+ * @default false
391
393
  */
392
394
  readOnly: PropTypes.bool,
393
395
 
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { chainPropTypes } from '@mui/utils';
7
7
  import { capitalize } from '@mui/material/utils';
8
- import { unstable_composeClasses as composeClasses } from '@mui/core';
8
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
9
9
  import { styled, useThemeProps } from '@mui/material/styles';
10
10
  import Button from '@mui/material/Button';
11
11
  import CircularProgress from '@mui/material/CircularProgress';
@@ -83,14 +83,18 @@ var LoadingButtonLoadingIndicator = styled('div', {
83
83
  position: 'absolute',
84
84
  visibility: 'visible',
85
85
  display: 'flex'
86
- }, ownerState.loadingPosition === 'start' && {
86
+ }, ownerState.loadingPosition === 'start' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
87
87
  left: 14
88
+ }, ownerState.loadingPosition === 'start' && ownerState.variant === 'text' && {
89
+ left: 6
88
90
  }, ownerState.loadingPosition === 'center' && {
89
91
  left: '50%',
90
92
  transform: 'translate(-50%)',
91
93
  color: theme.palette.action.disabled
92
- }, ownerState.loadingPosition === 'end' && {
94
+ }, ownerState.loadingPosition === 'end' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
93
95
  right: 14
96
+ }, ownerState.loadingPosition === 'end' && ownerState.variant === 'text' && {
97
+ right: 6
94
98
  }, ownerState.loadingPosition === 'start' && ownerState.fullWidth && {
95
99
  position: 'relative',
96
100
  left: -10
@@ -120,13 +124,16 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
120
124
  loadingIndicator = _props$loadingIndicat === void 0 ? LoadingIndicator : _props$loadingIndicat,
121
125
  _props$loadingPositio = props.loadingPosition,
122
126
  loadingPosition = _props$loadingPositio === void 0 ? 'center' : _props$loadingPositio,
123
- other = _objectWithoutProperties(props, ["children", "disabled", "loading", "loadingIndicator", "loadingPosition"]);
127
+ _props$variant = props.variant,
128
+ variant = _props$variant === void 0 ? 'text' : _props$variant,
129
+ other = _objectWithoutProperties(props, ["children", "disabled", "loading", "loadingIndicator", "loadingPosition", "variant"]);
124
130
 
125
131
  var ownerState = _extends({}, props, {
126
132
  disabled: disabled,
127
133
  loading: loading,
128
134
  loadingIndicator: loadingIndicator,
129
- loadingPosition: loadingPosition
135
+ loadingPosition: loadingPosition,
136
+ variant: variant
130
137
  });
131
138
 
132
139
  var classes = useUtilityClasses(ownerState);
@@ -134,6 +141,7 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
134
141
  disabled: disabled || loading,
135
142
  ref: ref
136
143
  }, other, {
144
+ variant: variant,
137
145
  classes: classes,
138
146
  ownerState: ownerState,
139
147
  children: ownerState.loadingPosition === 'end' ? /*#__PURE__*/_jsxs(React.Fragment, {
@@ -206,6 +214,12 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
206
214
  /**
207
215
  * The system prop that allows defining system overrides as well as additional CSS styles.
208
216
  */
209
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
217
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
218
+
219
+ /**
220
+ * The variant to use.
221
+ * @default 'text'
222
+ */
223
+ variant: PropTypes.oneOf(['contained', 'outlined', 'text'])
210
224
  } : void 0;
211
225
  export default LoadingButton;
@@ -1,4 +1,4 @@
1
- import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
1
+ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getLoadingButtonUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiLoadingButton', slot);
4
4
  }
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  import _typeof from "@babel/runtime/helpers/esm/typeof";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- import { unstable_composeClasses as composeClasses } from '@mui/core';
5
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
6
6
  import { styled, useThemeProps } from '@mui/material/styles';
7
7
  import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
8
8
  import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
@@ -12,6 +12,9 @@ import * as React from 'react';
12
12
  import { getMasonryUtilityClass } from './masonryClasses';
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ export var parseToNumber = function parseToNumber(val) {
16
+ return Number(val.replace('px', ''));
17
+ };
15
18
 
16
19
  var useUtilityClasses = function useUtilityClasses(ownerState) {
17
20
  var classes = ownerState.classes;
@@ -19,44 +22,6 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
19
22
  root: ['root']
20
23
  };
21
24
  return composeClasses(slots, getMasonryUtilityClass, classes);
22
- }; // compute base for responsive values; e.g.,
23
- // [1,2,3] => {xs: true, sm: true, md: true}
24
- // {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
25
-
26
-
27
- var computeBreakpointsBase = function computeBreakpointsBase(breakpoints, prop) {
28
- var base = {};
29
-
30
- if (Array.isArray(prop)) {
31
- Object.keys(breakpoints.values).forEach(function (breakpoint, i, arr) {
32
- if (i < arr.length) {
33
- base[breakpoint] = true;
34
- }
35
- });
36
- } else {
37
- Object.keys(breakpoints.values).forEach(function (breakpoint) {
38
- if (prop[breakpoint] != null) {
39
- base[breakpoint] = true;
40
- }
41
- });
42
- }
43
-
44
- return base;
45
- }; // if prop is an array, convert to object; e.g.,
46
- // (base: {xs: true, sm: true, md: true}, prop: [1,2,3]) => {xs: 1, sm: 2, md: 3}
47
-
48
-
49
- var validatePropValues = function validatePropValues(base, prop) {
50
- var values = {};
51
-
52
- if (Array.isArray(prop)) {
53
- Object.keys(base).forEach(function (breakpoint, i) {
54
- values[breakpoint] = prop[i];
55
- });
56
- return values;
57
- }
58
-
59
- return prop;
60
25
  };
61
26
 
62
27
  export var getStyle = function getStyle(_ref) {
@@ -93,10 +58,9 @@ export var getStyle = function getStyle(_ref) {
93
58
  return _extends({}, styles, stylesSSR);
94
59
  }
95
60
 
96
- var spacingBreakpointsBase = computeBreakpointsBase(theme.breakpoints, ownerState.spacing);
97
61
  var spacingValues = resolveBreakpointValues({
98
- values: validatePropValues(spacingBreakpointsBase, ownerState.spacing),
99
- base: spacingBreakpointsBase
62
+ values: ownerState.spacing,
63
+ breakpoints: theme.breakpoints.values
100
64
  });
101
65
  var transformer = createUnarySpacing(theme);
102
66
 
@@ -116,10 +80,9 @@ export var getStyle = function getStyle(_ref) {
116
80
  styles = deepmerge(styles, handleBreakpoints({
117
81
  theme: theme
118
82
  }, spacingValues, spacingStyleFromPropValue));
119
- var columnBreakpointsBase = computeBreakpointsBase(theme.breakpoints, ownerState.columns);
120
83
  var columnValues = resolveBreakpointValues({
121
- values: validatePropValues(columnBreakpointsBase, ownerState.columns),
122
- base: columnBreakpointsBase
84
+ values: ownerState.columns,
85
+ breakpoints: theme.breakpoints.values
123
86
  });
124
87
 
125
88
  var columnStyleFromPropValue = function columnStyleFromPropValue(propValue) {
@@ -209,72 +172,96 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
209
172
  });
210
173
 
211
174
  var classes = useUtilityClasses(ownerState);
212
- React.useEffect(function () {
213
- var handleResize = function handleResize() {
214
- var parentWidth = masonryRef.current.clientWidth;
215
- var childWidth = masonryRef.current.firstChild.clientWidth;
216
- var firstChildComputedStyle = window.getComputedStyle(masonryRef.current.firstChild);
217
- var firstChildMarginLeft = Number(firstChildComputedStyle.marginLeft.replace('px', ''));
218
- var firstChildMarginRight = Number(firstChildComputedStyle.marginRight.replace('px', ''));
219
-
220
- if (parentWidth === 0 || childWidth === 0) {
221
- return;
222
- }
223
175
 
224
- var currentNumberOfColumns = Math.round(parentWidth / (childWidth + firstChildMarginLeft + firstChildMarginRight));
225
- var columnHeights = new Array(currentNumberOfColumns).fill(0);
226
- var skip = false;
227
- masonryRef.current.childNodes.forEach(function (child) {
228
- if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
229
- return;
230
- }
176
+ var handleResize = function handleResize(elements) {
177
+ if (!elements) {
178
+ return;
179
+ }
231
180
 
232
- var childComputedStyle = window.getComputedStyle(child);
233
- var childMarginTop = Number(childComputedStyle.marginTop.replace('px', ''));
234
- var childMarginBottom = Number(childComputedStyle.marginBottom.replace('px', '')); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
181
+ var masonry;
182
+ var masonryFirstChild;
183
+ var parentWidth;
184
+ var childWidth;
185
+
186
+ if (elements[0].target.className.includes(classes.root)) {
187
+ var _elements$, _masonryFirstChild, _masonryFirstChild$co, _masonryFirstChild2;
188
+
189
+ masonry = elements[0].target;
190
+ parentWidth = elements[0].contentRect.width;
191
+ masonryFirstChild = ((_elements$ = elements[1]) == null ? void 0 : _elements$.target) || masonry.firstChild;
192
+ childWidth = ((_masonryFirstChild = masonryFirstChild) == null ? void 0 : (_masonryFirstChild$co = _masonryFirstChild.contentRect) == null ? void 0 : _masonryFirstChild$co.width) || ((_masonryFirstChild2 = masonryFirstChild) == null ? void 0 : _masonryFirstChild2.clientWidth) || 0;
193
+ } else {
194
+ var _elements$2, _masonry$contentRect;
195
+
196
+ masonryFirstChild = elements[0].target;
197
+ childWidth = elements[0].contentRect.width;
198
+ masonry = ((_elements$2 = elements[1]) == null ? void 0 : _elements$2.target) || masonryFirstChild.parentElement;
199
+ parentWidth = ((_masonry$contentRect = masonry.contentRect) == null ? void 0 : _masonry$contentRect.width) || masonry.clientWidth;
200
+ }
235
201
 
236
- var childHeight = child.clientHeight ? Math.ceil(child.clientHeight) + childMarginTop + childMarginBottom : 0;
202
+ if (parentWidth === 0 || childWidth === 0 || !masonry || !masonryFirstChild) {
203
+ return;
204
+ }
237
205
 
238
- if (childHeight === 0) {
239
- skip = true;
240
- return;
241
- } // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
206
+ var firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
207
+ var firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
208
+ var firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
209
+ var currentNumberOfColumns = Math.round(parentWidth / (childWidth + firstChildMarginLeft + firstChildMarginRight));
210
+ var columnHeights = new Array(currentNumberOfColumns).fill(0);
211
+ var skip = false;
212
+ masonry.childNodes.forEach(function (child) {
213
+ if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
214
+ return;
215
+ }
242
216
 
217
+ var childComputedStyle = window.getComputedStyle(child);
218
+ var childMarginTop = parseToNumber(childComputedStyle.marginTop);
219
+ var childMarginBottom = parseToNumber(childComputedStyle.marginBottom); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
243
220
 
244
- for (var i = 0; i < child.childNodes.length; i += 1) {
245
- var nestedChild = child.childNodes[i];
221
+ var childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
222
+
223
+ if (childHeight === 0) {
224
+ skip = true;
225
+ return;
226
+ } // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
246
227
 
247
- if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
248
- skip = true;
249
- break;
250
- }
251
- }
252
228
 
253
- if (!skip) {
254
- // find the current shortest column (where the current item will be placed)
255
- var currentMinColumnIndex = columnHeights.indexOf(Math.min.apply(Math, _toConsumableArray(columnHeights)));
256
- columnHeights[currentMinColumnIndex] += childHeight;
257
- var order = currentMinColumnIndex + 1;
258
- child.style.order = order;
229
+ for (var i = 0; i < child.childNodes.length; i += 1) {
230
+ var nestedChild = child.childNodes[i];
231
+
232
+ if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
233
+ skip = true;
234
+ break;
259
235
  }
260
- });
236
+ }
261
237
 
262
238
  if (!skip) {
263
- setMaxColumnHeight(Math.max.apply(Math, _toConsumableArray(columnHeights)));
264
- var numOfLineBreaks = currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0;
265
- setNumberOfLineBreaks(numOfLineBreaks);
239
+ // find the current shortest column (where the current item will be placed)
240
+ var currentMinColumnIndex = columnHeights.indexOf(Math.min.apply(Math, _toConsumableArray(columnHeights)));
241
+ columnHeights[currentMinColumnIndex] += childHeight;
242
+ var order = currentMinColumnIndex + 1;
243
+ child.style.order = order;
266
244
  }
267
- }; // IE and old browsers are not supported
245
+ });
268
246
 
247
+ if (!skip) {
248
+ setMaxColumnHeight(Math.max.apply(Math, _toConsumableArray(columnHeights)));
249
+ var numOfLineBreaks = currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0;
250
+ setNumberOfLineBreaks(numOfLineBreaks);
251
+ }
252
+ };
269
253
 
270
- if (typeof ResizeObserver === 'undefined') {
271
- return null;
254
+ var observer = React.useRef(typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(handleResize));
255
+ React.useEffect(function () {
256
+ var resizeObserver = observer.current; // IE and old browsers are not supported
257
+
258
+ if (resizeObserver === undefined) {
259
+ return undefined;
272
260
  }
273
261
 
274
- var resizeObserver = new ResizeObserver(handleResize);
275
262
  var container = masonryRef.current;
276
263
 
277
- if (container) {
264
+ if (container && resizeObserver) {
278
265
  // only the masonry container and its first child are observed for resizing;
279
266
  // this might cause unforeseen problems in some use cases;
280
267
  resizeObserver.observe(container);
@@ -285,9 +272,9 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
285
272
  }
286
273
 
287
274
  return function () {
288
- resizeObserver.disconnect();
275
+ return resizeObserver ? resizeObserver.disconnect() : {};
289
276
  };
290
- }, [columns, spacing]);
277
+ }, [columns, spacing, children]);
291
278
  var handleRef = useForkRef(ref, masonryRef);
292
279
  var lineBreakStyle = {
293
280
  flexBasis: '100%',
@@ -375,6 +362,6 @@ process.env.NODE_ENV !== "production" ? Masonry.propTypes
375
362
  /**
376
363
  * Allows defining system overrides as well as additional CSS styles.
377
364
  */
378
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
365
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
379
366
  } : void 0;
380
367
  export default Masonry;
@@ -1,4 +1,4 @@
1
- import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
1
+ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getMasonryUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiMasonry', slot);
4
4
  }
@@ -155,6 +155,7 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
155
155
 
156
156
  /**
157
157
  * If `true`, the picker and text field are disabled.
158
+ * @default false
158
159
  */
159
160
  disabled: PropTypes.bool,
160
161
 
@@ -336,6 +337,7 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
336
337
 
337
338
  /**
338
339
  * Make picker read only.
340
+ * @default false
339
341
  */
340
342
  readOnly: PropTypes.bool,
341
343
 
@@ -206,6 +206,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
206
206
 
207
207
  /**
208
208
  * If `true`, the picker and text field are disabled.
209
+ * @default false
209
210
  */
210
211
  disabled: PropTypes.bool,
211
212
 
@@ -386,6 +387,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
386
387
 
387
388
  /**
388
389
  * Make picker read only.
390
+ * @default false
389
391
  */
390
392
  readOnly: PropTypes.bool,
391
393
 
@@ -172,6 +172,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
172
172
 
173
173
  /**
174
174
  * If `true`, the picker and text field are disabled.
175
+ * @default false
175
176
  */
176
177
  disabled: PropTypes.bool,
177
178
 
@@ -405,6 +406,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
405
406
 
406
407
  /**
407
408
  * Make picker read only.
409
+ * @default false
408
410
  */
409
411
  readOnly: PropTypes.bool,
410
412