@mui/lab 5.0.0-alpha.53 → 5.0.0-alpha.57

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 (385) 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 +299 -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/LICENSE +21 -21
  71. package/LoadingButton/LoadingButton.js +20 -7
  72. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  73. package/LoadingButton/loadingButtonClasses.js +1 -1
  74. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  75. package/LocalizationProvider/index.d.ts +2 -2
  76. package/Masonry/Masonry.js +83 -98
  77. package/Masonry/masonryClasses.d.ts +8 -8
  78. package/Masonry/masonryClasses.js +1 -1
  79. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  80. package/MobileDatePicker/MobileDatePicker.js +2 -0
  81. package/MobileDatePicker/index.d.ts +2 -2
  82. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  83. package/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  84. package/MobileDateRangePicker/index.d.ts +2 -2
  85. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  86. package/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  87. package/MobileDateTimePicker/index.d.ts +2 -2
  88. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  89. package/MobileTimePicker/index.d.ts +2 -2
  90. package/MonthPicker/MonthPicker.d.ts +53 -49
  91. package/MonthPicker/MonthPicker.js +23 -6
  92. package/MonthPicker/PickersMonth.d.ts +15 -15
  93. package/MonthPicker/PickersMonth.js +19 -14
  94. package/MonthPicker/index.d.ts +3 -3
  95. package/PickersDay/PickersDay.d.ts +93 -93
  96. package/PickersDay/PickersDay.js +2 -2
  97. package/PickersDay/index.d.ts +4 -4
  98. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  99. package/StaticDatePicker/StaticDatePicker.js +2 -0
  100. package/StaticDatePicker/index.d.ts +2 -2
  101. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  102. package/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  103. package/StaticDateRangePicker/index.d.ts +2 -2
  104. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  105. package/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  106. package/StaticDateTimePicker/index.d.ts +2 -2
  107. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  108. package/StaticTimePicker/index.d.ts +2 -2
  109. package/TabPanel/TabPanel.js +2 -2
  110. package/TabPanel/tabPanelClasses.d.ts +8 -8
  111. package/TabPanel/tabPanelClasses.js +1 -1
  112. package/TimePicker/TimePicker.d.ts +27 -27
  113. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  114. package/TimePicker/TimePickerToolbar.js +1 -1
  115. package/TimePicker/index.d.ts +2 -2
  116. package/TimePicker/shared.d.ts +36 -36
  117. package/Timeline/Timeline.d.ts +59 -59
  118. package/Timeline/Timeline.js +2 -2
  119. package/Timeline/TimelineContext.d.ts +6 -6
  120. package/Timeline/index.d.ts +5 -5
  121. package/Timeline/timelineClasses.d.ts +3 -3
  122. package/Timeline/timelineClasses.js +1 -1
  123. package/TimelineConnector/TimelineConnector.js +2 -2
  124. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  125. package/TimelineConnector/timelineConnectorClasses.js +1 -1
  126. package/TimelineContent/TimelineContent.js +2 -2
  127. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  128. package/TimelineContent/timelineContentClasses.js +1 -1
  129. package/TimelineDot/TimelineDot.js +2 -2
  130. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  131. package/TimelineDot/timelineDotClasses.js +1 -1
  132. package/TimelineItem/TimelineItem.js +2 -2
  133. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  134. package/TimelineItem/timelineItemClasses.js +1 -1
  135. package/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  136. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  137. package/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  138. package/TimelineSeparator/TimelineSeparator.js +2 -2
  139. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  140. package/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  141. package/TreeItem/TreeItem.js +2 -2
  142. package/TreeItem/treeItemClasses.d.ts +24 -24
  143. package/TreeItem/treeItemClasses.js +1 -1
  144. package/TreeView/TreeView.js +2 -2
  145. package/TreeView/treeViewClasses.d.ts +8 -8
  146. package/TreeView/treeViewClasses.js +1 -1
  147. package/YearPicker/PickersYear.d.ts +28 -28
  148. package/YearPicker/PickersYear.js +2 -2
  149. package/YearPicker/YearPicker.d.ts +44 -42
  150. package/YearPicker/YearPicker.js +18 -2
  151. package/YearPicker/index.d.ts +5 -5
  152. package/YearPicker/yearPickerClasses.d.ts +3 -3
  153. package/YearPicker/yearPickerClasses.js +1 -1
  154. package/index.d.ts +3 -0
  155. package/index.js +4 -2
  156. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  157. package/internal/pickers/Picker/Picker.d.ts +33 -33
  158. package/internal/pickers/Picker/PickerView.d.ts +3 -3
  159. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  160. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  161. package/internal/pickers/PickersPopper.d.ts +33 -33
  162. package/internal/pickers/PickersToolbar.d.ts +14 -14
  163. package/internal/pickers/PickersToolbar.js +1 -1
  164. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  165. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  166. package/internal/pickers/PickersToolbarText.js +1 -1
  167. package/internal/pickers/PureDateInput.d.ts +80 -80
  168. package/internal/pickers/constants/dimensions.d.ts +4 -4
  169. package/internal/pickers/constants/prop-types.d.ts +1 -1
  170. package/internal/pickers/date-time-utils.d.ts +8 -8
  171. package/internal/pickers/date-utils.d.ts +52 -52
  172. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  173. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  174. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  175. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  176. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  177. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  178. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  179. package/internal/pickers/hooks/useViews.d.ts +19 -19
  180. package/internal/pickers/test-utils.js +17 -7
  181. package/internal/pickers/text-field-helper.d.ts +11 -11
  182. package/internal/pickers/time-utils.d.ts +33 -33
  183. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  184. package/internal/pickers/typings/Views.d.ts +1 -1
  185. package/internal/pickers/typings/helpers.d.ts +9 -9
  186. package/internal/pickers/utils.d.ts +7 -7
  187. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  188. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  189. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  190. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  191. package/internal/pickers/wrappers/StaticWrapper.d.ts +10 -10
  192. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  193. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  194. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  195. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  196. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  197. package/internal/svg-icons/Calendar.d.ts +7 -7
  198. package/internal/svg-icons/Clock.d.ts +7 -7
  199. package/internal/svg-icons/DateRange.d.ts +7 -7
  200. package/internal/svg-icons/Pen.d.ts +7 -7
  201. package/internal/svg-icons/Time.d.ts +7 -7
  202. package/legacy/CalendarPicker/CalendarPicker.js +13 -1
  203. package/legacy/CalendarPicker/PickersCalendar.js +10 -3
  204. package/legacy/CalendarPicker/PickersCalendarHeader.js +5 -4
  205. package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
  206. package/legacy/CalendarPicker/PickersSlideTransition.js +1 -1
  207. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  208. package/legacy/ClockPicker/ClockNumber.js +1 -1
  209. package/legacy/ClockPicker/ClockPicker.js +1 -1
  210. package/legacy/DatePicker/DatePicker.js +2 -0
  211. package/legacy/DatePicker/DatePickerToolbar.js +1 -1
  212. package/legacy/DateRangePicker/DateRangePicker.js +2 -0
  213. package/legacy/DateRangePicker/DateRangePickerToolbar.js +1 -1
  214. package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
  215. package/legacy/DateTimePicker/DateTimePicker.js +2 -0
  216. package/legacy/DateTimePicker/DateTimePickerToolbar.js +1 -1
  217. package/legacy/DesktopDatePicker/DesktopDatePicker.js +2 -0
  218. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  219. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  220. package/legacy/LoadingButton/LoadingButton.js +20 -6
  221. package/legacy/LoadingButton/loadingButtonClasses.js +1 -1
  222. package/legacy/Masonry/Masonry.js +83 -96
  223. package/legacy/Masonry/masonryClasses.js +1 -1
  224. package/legacy/MobileDatePicker/MobileDatePicker.js +2 -0
  225. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  226. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  227. package/legacy/MonthPicker/MonthPicker.js +22 -5
  228. package/legacy/MonthPicker/PickersMonth.js +20 -15
  229. package/legacy/PickersDay/PickersDay.js +2 -2
  230. package/legacy/StaticDatePicker/StaticDatePicker.js +2 -0
  231. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  232. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  233. package/legacy/TabPanel/TabPanel.js +2 -2
  234. package/legacy/TabPanel/tabPanelClasses.js +1 -1
  235. package/legacy/TimePicker/TimePickerToolbar.js +1 -1
  236. package/legacy/Timeline/Timeline.js +2 -2
  237. package/legacy/Timeline/timelineClasses.js +1 -1
  238. package/legacy/TimelineConnector/TimelineConnector.js +2 -2
  239. package/legacy/TimelineConnector/timelineConnectorClasses.js +1 -1
  240. package/legacy/TimelineContent/TimelineContent.js +2 -2
  241. package/legacy/TimelineContent/timelineContentClasses.js +1 -1
  242. package/legacy/TimelineDot/TimelineDot.js +2 -2
  243. package/legacy/TimelineDot/timelineDotClasses.js +1 -1
  244. package/legacy/TimelineItem/TimelineItem.js +2 -2
  245. package/legacy/TimelineItem/timelineItemClasses.js +1 -1
  246. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  247. package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  248. package/legacy/TimelineSeparator/TimelineSeparator.js +2 -2
  249. package/legacy/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  250. package/legacy/TreeItem/TreeItem.js +2 -2
  251. package/legacy/TreeItem/treeItemClasses.js +1 -1
  252. package/legacy/TreeView/TreeView.js +2 -2
  253. package/legacy/TreeView/treeViewClasses.js +1 -1
  254. package/legacy/YearPicker/PickersYear.js +2 -2
  255. package/legacy/YearPicker/YearPicker.js +18 -2
  256. package/legacy/YearPicker/yearPickerClasses.js +1 -1
  257. package/legacy/index.js +4 -2
  258. package/legacy/internal/pickers/PickersToolbar.js +1 -1
  259. package/legacy/internal/pickers/PickersToolbarText.js +1 -1
  260. package/legacy/internal/pickers/test-utils.js +13 -8
  261. package/legacy/useAutocomplete/index.js +1 -1
  262. package/modern/CalendarPicker/CalendarPicker.js +13 -1
  263. package/modern/CalendarPicker/PickersCalendar.js +9 -3
  264. package/modern/CalendarPicker/PickersCalendarHeader.js +5 -4
  265. package/modern/CalendarPicker/PickersFadeTransitionGroup.js +1 -1
  266. package/modern/CalendarPicker/PickersSlideTransition.js +1 -1
  267. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  268. package/modern/ClockPicker/ClockNumber.js +1 -1
  269. package/modern/ClockPicker/ClockPicker.js +1 -1
  270. package/modern/DatePicker/DatePicker.js +2 -0
  271. package/modern/DatePicker/DatePickerToolbar.js +1 -1
  272. package/modern/DateRangePicker/DateRangePicker.js +2 -0
  273. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  274. package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
  275. package/modern/DateTimePicker/DateTimePicker.js +2 -0
  276. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -1
  277. package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -0
  278. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  279. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  280. package/modern/LoadingButton/LoadingButton.js +20 -7
  281. package/modern/LoadingButton/loadingButtonClasses.js +1 -1
  282. package/modern/Masonry/Masonry.js +79 -98
  283. package/modern/Masonry/masonryClasses.js +1 -1
  284. package/modern/MobileDatePicker/MobileDatePicker.js +2 -0
  285. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  286. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  287. package/modern/MonthPicker/MonthPicker.js +23 -6
  288. package/modern/MonthPicker/PickersMonth.js +19 -14
  289. package/modern/PickersDay/PickersDay.js +2 -2
  290. package/modern/StaticDatePicker/StaticDatePicker.js +2 -0
  291. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  292. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  293. package/modern/TabPanel/TabPanel.js +2 -2
  294. package/modern/TabPanel/tabPanelClasses.js +1 -1
  295. package/modern/TimePicker/TimePickerToolbar.js +1 -1
  296. package/modern/Timeline/Timeline.js +2 -2
  297. package/modern/Timeline/timelineClasses.js +1 -1
  298. package/modern/TimelineConnector/TimelineConnector.js +2 -2
  299. package/modern/TimelineConnector/timelineConnectorClasses.js +1 -1
  300. package/modern/TimelineContent/TimelineContent.js +2 -2
  301. package/modern/TimelineContent/timelineContentClasses.js +1 -1
  302. package/modern/TimelineDot/TimelineDot.js +2 -2
  303. package/modern/TimelineDot/timelineDotClasses.js +1 -1
  304. package/modern/TimelineItem/TimelineItem.js +2 -2
  305. package/modern/TimelineItem/timelineItemClasses.js +1 -1
  306. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  307. package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  308. package/modern/TimelineSeparator/TimelineSeparator.js +2 -2
  309. package/modern/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  310. package/modern/TreeItem/TreeItem.js +2 -2
  311. package/modern/TreeItem/treeItemClasses.js +1 -1
  312. package/modern/TreeView/TreeView.js +2 -2
  313. package/modern/TreeView/treeViewClasses.js +1 -1
  314. package/modern/YearPicker/PickersYear.js +2 -2
  315. package/modern/YearPicker/YearPicker.js +18 -2
  316. package/modern/YearPicker/yearPickerClasses.js +1 -1
  317. package/modern/index.js +4 -2
  318. package/modern/internal/pickers/PickersToolbar.js +1 -1
  319. package/modern/internal/pickers/PickersToolbarText.js +1 -1
  320. package/modern/internal/pickers/test-utils.js +17 -7
  321. package/modern/useAutocomplete/index.js +1 -1
  322. package/node/CalendarPicker/CalendarPicker.js +16 -4
  323. package/node/CalendarPicker/PickersCalendar.js +9 -3
  324. package/node/CalendarPicker/PickersCalendarHeader.js +5 -4
  325. package/node/CalendarPicker/PickersFadeTransitionGroup.js +2 -2
  326. package/node/CalendarPicker/PickersSlideTransition.js +2 -2
  327. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +5 -5
  328. package/node/ClockPicker/ClockNumber.js +2 -2
  329. package/node/ClockPicker/ClockPicker.js +4 -4
  330. package/node/DatePicker/DatePicker.js +2 -0
  331. package/node/DatePicker/DatePickerToolbar.js +2 -2
  332. package/node/DateRangePicker/DateRangePicker.js +2 -0
  333. package/node/DateRangePicker/DateRangePickerToolbar.js +2 -2
  334. package/node/DateRangePickerDay/DateRangePickerDay.js +5 -5
  335. package/node/DateTimePicker/DateTimePicker.js +2 -0
  336. package/node/DateTimePicker/DateTimePickerToolbar.js +2 -2
  337. package/node/DesktopDatePicker/DesktopDatePicker.js +2 -0
  338. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  339. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  340. package/node/LoadingButton/LoadingButton.js +21 -8
  341. package/node/LoadingButton/loadingButtonClasses.js +3 -3
  342. package/node/Masonry/Masonry.js +88 -100
  343. package/node/Masonry/masonryClasses.js +3 -3
  344. package/node/MobileDatePicker/MobileDatePicker.js +2 -0
  345. package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  346. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  347. package/node/MonthPicker/MonthPicker.js +26 -9
  348. package/node/MonthPicker/PickersMonth.js +20 -15
  349. package/node/PickersDay/PickersDay.js +5 -5
  350. package/node/StaticDatePicker/StaticDatePicker.js +2 -0
  351. package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  352. package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  353. package/node/TabPanel/TabPanel.js +3 -3
  354. package/node/TabPanel/tabPanelClasses.js +3 -3
  355. package/node/TimePicker/TimePickerToolbar.js +4 -4
  356. package/node/Timeline/Timeline.js +3 -3
  357. package/node/Timeline/timelineClasses.js +3 -3
  358. package/node/TimelineConnector/TimelineConnector.js +3 -3
  359. package/node/TimelineConnector/timelineConnectorClasses.js +3 -3
  360. package/node/TimelineContent/TimelineContent.js +3 -3
  361. package/node/TimelineContent/timelineContentClasses.js +3 -3
  362. package/node/TimelineDot/TimelineDot.js +3 -3
  363. package/node/TimelineDot/timelineDotClasses.js +3 -3
  364. package/node/TimelineItem/TimelineItem.js +3 -3
  365. package/node/TimelineItem/timelineItemClasses.js +3 -3
  366. package/node/TimelineOppositeContent/TimelineOppositeContent.js +3 -3
  367. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -3
  368. package/node/TimelineSeparator/TimelineSeparator.js +3 -3
  369. package/node/TimelineSeparator/timelineSeparatorClasses.js +3 -3
  370. package/node/TreeItem/TreeItem.js +3 -3
  371. package/node/TreeItem/treeItemClasses.js +3 -3
  372. package/node/TreeView/TreeView.js +3 -3
  373. package/node/TreeView/treeViewClasses.js +3 -3
  374. package/node/YearPicker/PickersYear.js +5 -5
  375. package/node/YearPicker/YearPicker.js +19 -3
  376. package/node/YearPicker/yearPickerClasses.js +3 -3
  377. package/node/index.js +23 -2
  378. package/node/internal/pickers/PickersToolbar.js +2 -2
  379. package/node/internal/pickers/PickersToolbarText.js +2 -2
  380. package/node/internal/pickers/test-utils.js +17 -7
  381. package/node/useAutocomplete/index.js +3 -3
  382. package/package.json +7 -6
  383. package/themeAugmentation/components.d.ts +10 -0
  384. package/useAutocomplete/index.d.ts +1 -1
  385. package/useAutocomplete/index.js +1 -1
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"];
4
- import { unstable_composeClasses as composeClasses } from '@mui/core';
4
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
5
5
  import { styled, useThemeProps } from '@mui/material/styles';
6
6
  import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
7
7
  import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
@@ -11,6 +11,9 @@ import * as React from 'react';
11
11
  import { getMasonryUtilityClass } from './masonryClasses';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ export const parseToNumber = val => {
15
+ return Number(val.replace('px', ''));
16
+ };
14
17
 
15
18
  const useUtilityClasses = ownerState => {
16
19
  const {
@@ -20,44 +23,6 @@ const useUtilityClasses = ownerState => {
20
23
  root: ['root']
21
24
  };
22
25
  return composeClasses(slots, getMasonryUtilityClass, classes);
23
- }; // compute base for responsive values; e.g.,
24
- // [1,2,3] => {xs: true, sm: true, md: true}
25
- // {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
26
-
27
-
28
- const computeBreakpointsBase = (breakpoints, prop) => {
29
- const base = {};
30
-
31
- if (Array.isArray(prop)) {
32
- Object.keys(breakpoints.values).forEach((breakpoint, i, arr) => {
33
- if (i < arr.length) {
34
- base[breakpoint] = true;
35
- }
36
- });
37
- } else {
38
- Object.keys(breakpoints.values).forEach(breakpoint => {
39
- if (prop[breakpoint] != null) {
40
- base[breakpoint] = true;
41
- }
42
- });
43
- }
44
-
45
- return base;
46
- }; // if prop is an array, convert to object; e.g.,
47
- // (base: {xs: true, sm: true, md: true}, prop: [1,2,3]) => {xs: 1, sm: 2, md: 3}
48
-
49
-
50
- const validatePropValues = (base, prop) => {
51
- const values = {};
52
-
53
- if (Array.isArray(prop)) {
54
- Object.keys(base).forEach((breakpoint, i) => {
55
- values[breakpoint] = prop[i];
56
- });
57
- return values;
58
- }
59
-
60
- return prop;
61
26
  };
62
27
 
63
28
  export const getStyle = ({
@@ -95,10 +60,9 @@ export const getStyle = ({
95
60
  return _extends({}, styles, stylesSSR);
96
61
  }
97
62
 
98
- const spacingBreakpointsBase = computeBreakpointsBase(theme.breakpoints, ownerState.spacing);
99
63
  const spacingValues = resolveBreakpointValues({
100
- values: validatePropValues(spacingBreakpointsBase, ownerState.spacing),
101
- base: spacingBreakpointsBase
64
+ values: ownerState.spacing,
65
+ breakpoints: theme.breakpoints.values
102
66
  });
103
67
  const transformer = createUnarySpacing(theme);
104
68
 
@@ -118,10 +82,9 @@ export const getStyle = ({
118
82
  styles = deepmerge(styles, handleBreakpoints({
119
83
  theme
120
84
  }, spacingValues, spacingStyleFromPropValue));
121
- const columnBreakpointsBase = computeBreakpointsBase(theme.breakpoints, ownerState.columns);
122
85
  const columnValues = resolveBreakpointValues({
123
- values: validatePropValues(columnBreakpointsBase, ownerState.columns),
124
- base: columnBreakpointsBase
86
+ values: ownerState.columns,
87
+ breakpoints: theme.breakpoints.values
125
88
  });
126
89
 
127
90
  const columnStyleFromPropValue = propValue => {
@@ -203,72 +166,92 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
203
166
  });
204
167
 
205
168
  const classes = useUtilityClasses(ownerState);
206
- React.useEffect(() => {
207
- const handleResize = () => {
208
- const parentWidth = masonryRef.current.clientWidth;
209
- const childWidth = masonryRef.current.firstChild.clientWidth;
210
- const firstChildComputedStyle = window.getComputedStyle(masonryRef.current.firstChild);
211
- const firstChildMarginLeft = Number(firstChildComputedStyle.marginLeft.replace('px', ''));
212
- const firstChildMarginRight = Number(firstChildComputedStyle.marginRight.replace('px', ''));
213
-
214
- if (parentWidth === 0 || childWidth === 0) {
215
- return;
216
- }
217
169
 
218
- const currentNumberOfColumns = Math.round(parentWidth / (childWidth + firstChildMarginLeft + firstChildMarginRight));
219
- const columnHeights = new Array(currentNumberOfColumns).fill(0);
220
- let skip = false;
221
- masonryRef.current.childNodes.forEach(child => {
222
- if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
223
- return;
224
- }
170
+ const handleResize = elements => {
171
+ if (!elements) {
172
+ return;
173
+ }
225
174
 
226
- const childComputedStyle = window.getComputedStyle(child);
227
- const childMarginTop = Number(childComputedStyle.marginTop.replace('px', ''));
228
- const childMarginBottom = Number(childComputedStyle.marginBottom.replace('px', '')); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
175
+ let masonry;
176
+ let masonryFirstChild;
177
+ let parentWidth;
178
+ let childWidth;
179
+
180
+ if (elements[0].target.className.includes(classes.root)) {
181
+ masonry = elements[0].target;
182
+ parentWidth = elements[0].contentRect.width;
183
+ masonryFirstChild = elements[1]?.target || masonry.firstChild;
184
+ childWidth = masonryFirstChild?.contentRect?.width || masonryFirstChild?.clientWidth || 0;
185
+ } else {
186
+ masonryFirstChild = elements[0].target;
187
+ childWidth = elements[0].contentRect.width;
188
+ masonry = elements[1]?.target || masonryFirstChild.parentElement;
189
+ parentWidth = masonry.contentRect?.width || masonry.clientWidth;
190
+ }
229
191
 
230
- const childHeight = child.clientHeight ? Math.ceil(child.clientHeight) + childMarginTop + childMarginBottom : 0;
192
+ if (parentWidth === 0 || childWidth === 0 || !masonry || !masonryFirstChild) {
193
+ return;
194
+ }
231
195
 
232
- if (childHeight === 0) {
233
- skip = true;
234
- return;
235
- } // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
196
+ const firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
197
+ const firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
198
+ const firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
199
+ const currentNumberOfColumns = Math.round(parentWidth / (childWidth + firstChildMarginLeft + firstChildMarginRight));
200
+ const columnHeights = new Array(currentNumberOfColumns).fill(0);
201
+ let skip = false;
202
+ masonry.childNodes.forEach(child => {
203
+ if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
204
+ return;
205
+ }
236
206
 
207
+ const childComputedStyle = window.getComputedStyle(child);
208
+ const childMarginTop = parseToNumber(childComputedStyle.marginTop);
209
+ const childMarginBottom = parseToNumber(childComputedStyle.marginBottom); // if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
237
210
 
238
- for (let i = 0; i < child.childNodes.length; i += 1) {
239
- const nestedChild = child.childNodes[i];
211
+ const childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
212
+
213
+ if (childHeight === 0) {
214
+ skip = true;
215
+ return;
216
+ } // if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
240
217
 
241
- if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
242
- skip = true;
243
- break;
244
- }
245
- }
246
218
 
247
- if (!skip) {
248
- // find the current shortest column (where the current item will be placed)
249
- const currentMinColumnIndex = columnHeights.indexOf(Math.min(...columnHeights));
250
- columnHeights[currentMinColumnIndex] += childHeight;
251
- const order = currentMinColumnIndex + 1;
252
- child.style.order = order;
219
+ for (let i = 0; i < child.childNodes.length; i += 1) {
220
+ const nestedChild = child.childNodes[i];
221
+
222
+ if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
223
+ skip = true;
224
+ break;
253
225
  }
254
- });
226
+ }
255
227
 
256
228
  if (!skip) {
257
- setMaxColumnHeight(Math.max(...columnHeights));
258
- const numOfLineBreaks = currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0;
259
- setNumberOfLineBreaks(numOfLineBreaks);
229
+ // find the current shortest column (where the current item will be placed)
230
+ const currentMinColumnIndex = columnHeights.indexOf(Math.min(...columnHeights));
231
+ columnHeights[currentMinColumnIndex] += childHeight;
232
+ const order = currentMinColumnIndex + 1;
233
+ child.style.order = order;
260
234
  }
261
- }; // IE and old browsers are not supported
235
+ });
236
+
237
+ if (!skip) {
238
+ setMaxColumnHeight(Math.max(...columnHeights));
239
+ const numOfLineBreaks = currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0;
240
+ setNumberOfLineBreaks(numOfLineBreaks);
241
+ }
242
+ };
262
243
 
244
+ const observer = React.useRef(typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(handleResize));
245
+ React.useEffect(() => {
246
+ const resizeObserver = observer.current; // IE and old browsers are not supported
263
247
 
264
- if (typeof ResizeObserver === 'undefined') {
265
- return null;
248
+ if (resizeObserver === undefined) {
249
+ return undefined;
266
250
  }
267
251
 
268
- const resizeObserver = new ResizeObserver(handleResize);
269
252
  const container = masonryRef.current;
270
253
 
271
- if (container) {
254
+ if (container && resizeObserver) {
272
255
  // only the masonry container and its first child are observed for resizing;
273
256
  // this might cause unforeseen problems in some use cases;
274
257
  resizeObserver.observe(container);
@@ -278,10 +261,8 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
278
261
  }
279
262
  }
280
263
 
281
- return () => {
282
- resizeObserver.disconnect();
283
- };
284
- }, [columns, spacing]);
264
+ return () => resizeObserver ? resizeObserver.disconnect() : {};
265
+ }, [columns, spacing, children]);
285
266
  const handleRef = useForkRef(ref, masonryRef);
286
267
  const lineBreakStyle = {
287
268
  flexBasis: '100%',
@@ -367,6 +348,6 @@ process.env.NODE_ENV !== "production" ? Masonry.propTypes
367
348
  /**
368
349
  * Allows defining system overrides as well as additional CSS styles.
369
350
  */
370
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
351
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
371
352
  } : void 0;
372
353
  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
  }
@@ -152,6 +152,7 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
152
152
 
153
153
  /**
154
154
  * If `true`, the picker and text field are disabled.
155
+ * @default false
155
156
  */
156
157
  disabled: PropTypes.bool,
157
158
 
@@ -333,6 +334,7 @@ process.env.NODE_ENV !== "production" ? MobileDatePicker.propTypes
333
334
 
334
335
  /**
335
336
  * Make picker read only.
337
+ * @default false
336
338
  */
337
339
  readOnly: PropTypes.bool,
338
340
 
@@ -200,6 +200,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
200
200
 
201
201
  /**
202
202
  * If `true`, the picker and text field are disabled.
203
+ * @default false
203
204
  */
204
205
  disabled: PropTypes.bool,
205
206
 
@@ -380,6 +381,7 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes
380
381
 
381
382
  /**
382
383
  * Make picker read only.
384
+ * @default false
383
385
  */
384
386
  readOnly: PropTypes.bool,
385
387
 
@@ -169,6 +169,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
169
169
 
170
170
  /**
171
171
  * If `true`, the picker and text field are disabled.
172
+ * @default false
172
173
  */
173
174
  disabled: PropTypes.bool,
174
175
 
@@ -402,6 +403,7 @@ process.env.NODE_ENV !== "production" ? MobileDateTimePicker.propTypes
402
403
 
403
404
  /**
404
405
  * Make picker read only.
406
+ * @default false
405
407
  */
406
408
  readOnly: PropTypes.bool,
407
409
 
@@ -1,11 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["className", "date", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "onMonthChange"];
3
+ const _excluded = ["className", "date", "disabled", "disableFuture", "disablePast", "maxDate", "minDate", "onChange", "onMonthChange", "readOnly"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
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 PickersMonth from './PickersMonth';
10
10
  import { useUtils, useNow } from '../internal/pickers/hooks/useUtils';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -32,7 +32,8 @@ const MonthPickerRoot = styled('div', {
32
32
  width: 310,
33
33
  display: 'flex',
34
34
  flexWrap: 'wrap',
35
- alignContent: 'stretch'
35
+ alignContent: 'stretch',
36
+ margin: '0 4px'
36
37
  });
37
38
  const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps, ref) {
38
39
  const props = useThemeProps({
@@ -43,12 +44,14 @@ const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps,
43
44
  const {
44
45
  className,
45
46
  date,
47
+ disabled,
46
48
  disableFuture,
47
49
  disablePast,
48
50
  maxDate,
49
51
  minDate,
50
52
  onChange,
51
- onMonthChange
53
+ onMonthChange,
54
+ readOnly
52
55
  } = props,
53
56
  other = _objectWithoutPropertiesLoose(props, _excluded);
54
57
 
@@ -67,6 +70,10 @@ const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps,
67
70
  };
68
71
 
69
72
  const onMonthSelect = month => {
73
+ if (readOnly) {
74
+ return;
75
+ }
76
+
70
77
  const newDate = utils.setMonth(date || now, month);
71
78
  onChange(newDate, 'finish');
72
79
 
@@ -87,7 +94,7 @@ const MonthPicker = /*#__PURE__*/React.forwardRef(function MonthPicker(inProps,
87
94
  value: monthNumber,
88
95
  selected: monthNumber === currentMonth,
89
96
  onSelect: onMonthSelect,
90
- disabled: shouldDisableMonth(month),
97
+ disabled: disabled || shouldDisableMonth(month),
91
98
  children: monthText
92
99
  }, monthText);
93
100
  })
@@ -116,6 +123,11 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
116
123
  */
117
124
  date: PropTypes.any,
118
125
 
126
+ /**
127
+ * If `true` picker is disabled
128
+ */
129
+ disabled: PropTypes.bool,
130
+
119
131
  /**
120
132
  * If `true` future days are disabled.
121
133
  */
@@ -146,10 +158,15 @@ process.env.NODE_ENV !== "production" ? MonthPicker.propTypes
146
158
  */
147
159
  onMonthChange: PropTypes.func,
148
160
 
161
+ /**
162
+ * If `true` picker is readonly
163
+ */
164
+ readOnly: PropTypes.bool,
165
+
149
166
  /**
150
167
  * The system prop that allows defining system overrides as well as additional CSS styles.
151
168
  */
152
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
169
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
153
170
  } : void 0;
154
171
  /**
155
172
  *
@@ -1,11 +1,11 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["disabled", "onSelect", "selected", "value"];
4
4
  import * as React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import Typography from '@mui/material/Typography';
7
- import { styled } from '@mui/material/styles';
8
- import { generateUtilityClasses } from '@mui/core';
7
+ import { styled, alpha } from '@mui/material/styles';
8
+ import { generateUtilityClasses } from '@mui/base';
9
9
  import { onSpaceOrEnter } from '../internal/pickers/utils';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const classes = generateUtilityClasses('PrivatePickersMonth', ['root', 'selected']);
@@ -13,28 +13,33 @@ const PickersMonthRoot = styled(Typography, {
13
13
  skipSx: true
14
14
  })(({
15
15
  theme
16
- }) => ({
16
+ }) => _extends({
17
17
  flex: '1 0 33.33%',
18
18
  display: 'flex',
19
19
  alignItems: 'center',
20
20
  justifyContent: 'center',
21
+ color: 'unset',
22
+ backgroundColor: 'transparent',
23
+ border: 0,
24
+ outline: 0
25
+ }, theme.typography.subtitle1, {
26
+ margin: '8px 0',
27
+ height: 36,
28
+ borderRadius: 18,
21
29
  cursor: 'pointer',
22
- height: 64,
23
- outline: 0,
24
- transition: theme.transitions.create('font-size', {
25
- duration: '100ms'
26
- }),
27
- '&:focus': {
28
- color: theme.palette.primary.main,
29
- fontWeight: theme.typography.fontWeightMedium
30
+ '&:focus, &:hover': {
31
+ backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)
30
32
  },
31
33
  '&:disabled': {
32
34
  pointerEvents: 'none',
33
35
  color: theme.palette.text.secondary
34
36
  },
35
37
  [`&.${classes.selected}`]: {
36
- color: theme.palette.primary.main,
37
- fontWeight: theme.typography.fontWeightMedium
38
+ color: theme.palette.primary.contrastText,
39
+ backgroundColor: theme.palette.primary.main,
40
+ '&:focus, &:hover': {
41
+ backgroundColor: theme.palette.primary.dark
42
+ }
38
43
  }
39
44
  }));
40
45
  /**
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import ButtonBase from '@mui/material/ButtonBase';
8
8
  import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';
9
- import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/core';
9
+ import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
10
10
  import { useTheme, alpha, styled, useThemeProps } from '@mui/material/styles';
11
11
  import { useForkRef } from '@mui/material/utils';
12
12
  import { useUtils } from '../internal/pickers/hooks/useUtils';
@@ -374,7 +374,7 @@ process.env.NODE_ENV !== "production" ? PickersDay.propTypes
374
374
  /**
375
375
  * The system prop that allows defining system overrides as well as additional CSS styles.
376
376
  */
377
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
377
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
378
378
 
379
379
  /**
380
380
  * If `true`, renders as today date.
@@ -121,6 +121,7 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
121
121
 
122
122
  /**
123
123
  * If `true`, the picker and text field are disabled.
124
+ * @default false
124
125
  */
125
126
  disabled: PropTypes.bool,
126
127
 
@@ -302,6 +303,7 @@ process.env.NODE_ENV !== "production" ? StaticDatePicker.propTypes
302
303
 
303
304
  /**
304
305
  * Make picker read only.
306
+ * @default false
305
307
  */
306
308
  readOnly: PropTypes.bool,
307
309
 
@@ -170,6 +170,7 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.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
 
@@ -348,6 +349,7 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes
348
349
 
349
350
  /**
350
351
  * Make picker read only.
352
+ * @default false
351
353
  */
352
354
  readOnly: PropTypes.bool,
353
355
 
@@ -138,6 +138,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
138
138
 
139
139
  /**
140
140
  * If `true`, the picker and text field are disabled.
141
+ * @default false
141
142
  */
142
143
  disabled: PropTypes.bool,
143
144
 
@@ -371,6 +372,7 @@ process.env.NODE_ENV !== "production" ? StaticDateTimePicker.propTypes
371
372
 
372
373
  /**
373
374
  * Make picker read only.
375
+ * @default false
374
376
  */
375
377
  readOnly: PropTypes.bool,
376
378
 
@@ -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 { styled, useThemeProps } from '@mui/material/styles';
8
- import { unstable_composeClasses as composeClasses } from '@mui/core';
8
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
9
9
  import { getTabPanelUtilityClass } from './tabPanelClasses';
10
10
  import { getPanelId, getTabId, useTabContext } from '../TabContext';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -91,7 +91,7 @@ process.env.NODE_ENV !== "production" ? TabPanel.propTypes
91
91
  /**
92
92
  * The system prop that allows defining system overrides as well as additional CSS styles.
93
93
  */
94
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
94
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
95
95
 
96
96
  /**
97
97
  * The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
@@ -1,4 +1,4 @@
1
- import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
1
+ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getTabPanelUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiTabPanel', slot);
4
4
  }
@@ -4,7 +4,7 @@ const _excluded = ["ampm", "ampmInClock", "date", "isLandscape", "isMobileKeyboa
4
4
  import * as React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import { useTheme, styled } from '@mui/material/styles';
7
- import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/core';
7
+ import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
8
8
  import PickersToolbarText from '../internal/pickers/PickersToolbarText';
9
9
  import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';
10
10
  import PickersToolbar from '../internal/pickers/PickersToolbar';
@@ -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 { 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 TimelineContext from './TimelineContext';
11
11
  import { getTimelineUtilityClass } from './timelineClasses';
@@ -109,7 +109,7 @@ process.env.NODE_ENV !== "production" ? Timeline.propTypes
109
109
  /**
110
110
  * The system prop that allows defining system overrides as well as additional CSS styles.
111
111
  */
112
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
112
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
113
113
  } : void 0;
114
114
  /**
115
115
  *
@@ -1,4 +1,4 @@
1
- import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
1
+ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getTimelineUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiTimeline', slot);
4
4
  }
@@ -4,7 +4,7 @@ const _excluded = ["className"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
- import { unstable_composeClasses as composeClasses } from '@mui/core';
7
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
9
9
  import { getTimelineConnectorUtilityClass } from './timelineConnectorClasses';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -77,6 +77,6 @@ process.env.NODE_ENV !== "production" ? TimelineConnector.propTypes
77
77
  /**
78
78
  * The system prop that allows defining system overrides as well as additional CSS styles.
79
79
  */
80
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
80
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
81
81
  } : void 0;
82
82
  export default TimelineConnector;
@@ -1,4 +1,4 @@
1
- import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
1
+ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getTimelineConnectorUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiTimelineConnector', slot);
4
4
  }
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { capitalize } from '@mui/material/utils';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
9
- import { unstable_composeClasses as composeClasses } from '@mui/core';
9
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
10
10
  import Typography from '@mui/material/Typography';
11
11
  import TimelineContext from '../Timeline/TimelineContext';
12
12
  import { getTimelineContentUtilityClass } from './timelineContentClasses';
@@ -94,6 +94,6 @@ process.env.NODE_ENV !== "production" ? TimelineContent.propTypes
94
94
  /**
95
95
  * The system prop that allows defining system overrides as well as additional CSS styles.
96
96
  */
97
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
97
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
98
98
  } : void 0;
99
99
  export default TimelineContent;
@@ -1,4 +1,4 @@
1
- import { generateUtilityClass, generateUtilityClasses } from '@mui/core';
1
+ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getTimelineContentUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiTimelineContent', slot);
4
4
  }
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { styled, useThemeProps } from '@mui/material/styles';
8
8
  import { capitalize } from '@mui/material/utils';
9
- import { unstable_composeClasses as composeClasses } from '@mui/core';
9
+ import { unstable_composeClasses as composeClasses } from '@mui/base';
10
10
  import { getTimelineDotUtilityClass } from './timelineDotClasses';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
 
@@ -116,7 +116,7 @@ process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
116
116
  /**
117
117
  * The system prop that allows defining system overrides as well as additional CSS styles.
118
118
  */
119
- sx: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
119
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object]),
120
120
 
121
121
  /**
122
122
  * The dot can appear filled or outlined.