@mui/lab 5.0.0-alpha.51 → 5.0.0-alpha.55

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 (277) hide show
  1. package/CHANGELOG.md +287 -6
  2. package/CalendarPicker/CalendarPicker.d.ts +10 -0
  3. package/CalendarPicker/CalendarPicker.js +13 -1
  4. package/CalendarPicker/PickersCalendar.d.ts +2 -0
  5. package/CalendarPicker/PickersCalendar.js +9 -3
  6. package/CalendarPicker/PickersCalendarHeader.d.ts +1 -0
  7. package/CalendarPicker/PickersCalendarHeader.js +5 -4
  8. package/CalendarPicker/PickersFadeTransitionGroup.js +3 -3
  9. package/CalendarPicker/PickersSlideTransition.js +1 -1
  10. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +2 -1
  11. package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  12. package/ClockPicker/ClockNumber.js +1 -1
  13. package/ClockPicker/ClockPicker.js +1 -1
  14. package/DatePicker/DatePicker.js +2 -0
  15. package/DatePicker/DatePickerToolbar.js +1 -1
  16. package/DateRangePicker/DateRangePicker.js +2 -0
  17. package/DateRangePicker/DateRangePickerToolbar.js +1 -1
  18. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  19. package/DateTimePicker/DateTimePicker.js +2 -0
  20. package/DateTimePicker/DateTimePickerToolbar.js +1 -1
  21. package/DesktopDatePicker/DesktopDatePicker.js +2 -0
  22. package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  23. package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  24. package/LoadingButton/LoadingButton.js +56 -13
  25. package/LoadingButton/loadingButtonClasses.js +1 -1
  26. package/Masonry/Masonry.d.ts +13 -1
  27. package/Masonry/Masonry.js +232 -60
  28. package/Masonry/masonryClasses.js +1 -1
  29. package/MobileDatePicker/MobileDatePicker.js +2 -0
  30. package/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  31. package/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  32. package/MonthPicker/MonthPicker.d.ts +4 -0
  33. package/MonthPicker/MonthPicker.js +23 -6
  34. package/MonthPicker/PickersMonth.js +19 -14
  35. package/PickersDay/PickersDay.js +2 -2
  36. package/StaticDatePicker/StaticDatePicker.js +2 -0
  37. package/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  38. package/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  39. package/TabPanel/TabPanel.js +2 -2
  40. package/TabPanel/tabPanelClasses.js +1 -1
  41. package/TimePicker/TimePickerToolbar.js +1 -1
  42. package/Timeline/Timeline.js +2 -2
  43. package/Timeline/timelineClasses.js +1 -1
  44. package/TimelineConnector/TimelineConnector.js +2 -2
  45. package/TimelineConnector/timelineConnectorClasses.js +1 -1
  46. package/TimelineContent/TimelineContent.js +2 -2
  47. package/TimelineContent/timelineContentClasses.js +1 -1
  48. package/TimelineDot/TimelineDot.js +2 -2
  49. package/TimelineDot/timelineDotClasses.js +1 -1
  50. package/TimelineItem/TimelineItem.js +2 -2
  51. package/TimelineItem/timelineItemClasses.js +1 -1
  52. package/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  53. package/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  54. package/TimelineSeparator/TimelineSeparator.js +2 -2
  55. package/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  56. package/TreeItem/TreeItem.js +2 -2
  57. package/TreeItem/treeItemClasses.js +1 -1
  58. package/TreeView/TreeView.js +2 -2
  59. package/TreeView/treeViewClasses.js +1 -1
  60. package/YearPicker/PickersYear.js +2 -2
  61. package/YearPicker/YearPicker.d.ts +2 -0
  62. package/YearPicker/YearPicker.js +18 -2
  63. package/YearPicker/yearPickerClasses.js +1 -1
  64. package/index.js +1 -1
  65. package/internal/pickers/Picker/Picker.d.ts +1 -1
  66. package/internal/pickers/Picker/PickerView.d.ts +1 -1
  67. package/internal/pickers/PickersArrowSwitcher.d.ts +2 -2
  68. package/internal/pickers/PickersArrowSwitcher.js +1 -3
  69. package/internal/pickers/PickersToolbar.js +1 -1
  70. package/internal/pickers/PickersToolbarText.js +1 -1
  71. package/internal/pickers/test-utils.js +14 -7
  72. package/legacy/CalendarPicker/CalendarPicker.js +13 -1
  73. package/legacy/CalendarPicker/PickersCalendar.js +10 -3
  74. package/legacy/CalendarPicker/PickersCalendarHeader.js +5 -4
  75. package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +4 -6
  76. package/legacy/CalendarPicker/PickersSlideTransition.js +1 -1
  77. package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  78. package/legacy/ClockPicker/ClockNumber.js +1 -1
  79. package/legacy/ClockPicker/ClockPicker.js +1 -1
  80. package/legacy/DatePicker/DatePicker.js +2 -0
  81. package/legacy/DatePicker/DatePickerToolbar.js +1 -1
  82. package/legacy/DateRangePicker/DateRangePicker.js +2 -0
  83. package/legacy/DateRangePicker/DateRangePickerToolbar.js +1 -1
  84. package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
  85. package/legacy/DateTimePicker/DateTimePicker.js +2 -0
  86. package/legacy/DateTimePicker/DateTimePickerToolbar.js +1 -1
  87. package/legacy/DesktopDatePicker/DesktopDatePicker.js +2 -0
  88. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  89. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  90. package/legacy/LoadingButton/LoadingButton.js +55 -15
  91. package/legacy/LoadingButton/loadingButtonClasses.js +1 -1
  92. package/legacy/Masonry/Masonry.js +241 -58
  93. package/legacy/Masonry/masonryClasses.js +1 -1
  94. package/legacy/MobileDatePicker/MobileDatePicker.js +2 -0
  95. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  96. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  97. package/legacy/MonthPicker/MonthPicker.js +22 -5
  98. package/legacy/MonthPicker/PickersMonth.js +20 -15
  99. package/legacy/PickersDay/PickersDay.js +2 -2
  100. package/legacy/StaticDatePicker/StaticDatePicker.js +2 -0
  101. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  102. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  103. package/legacy/TabPanel/TabPanel.js +2 -2
  104. package/legacy/TabPanel/tabPanelClasses.js +1 -1
  105. package/legacy/TimePicker/TimePickerToolbar.js +1 -1
  106. package/legacy/Timeline/Timeline.js +2 -2
  107. package/legacy/Timeline/timelineClasses.js +1 -1
  108. package/legacy/TimelineConnector/TimelineConnector.js +2 -2
  109. package/legacy/TimelineConnector/timelineConnectorClasses.js +1 -1
  110. package/legacy/TimelineContent/TimelineContent.js +2 -2
  111. package/legacy/TimelineContent/timelineContentClasses.js +1 -1
  112. package/legacy/TimelineDot/TimelineDot.js +2 -2
  113. package/legacy/TimelineDot/timelineDotClasses.js +1 -1
  114. package/legacy/TimelineItem/TimelineItem.js +2 -2
  115. package/legacy/TimelineItem/timelineItemClasses.js +1 -1
  116. package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  117. package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  118. package/legacy/TimelineSeparator/TimelineSeparator.js +2 -2
  119. package/legacy/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  120. package/legacy/TreeItem/TreeItem.js +2 -2
  121. package/legacy/TreeItem/treeItemClasses.js +1 -1
  122. package/legacy/TreeView/TreeView.js +2 -2
  123. package/legacy/TreeView/treeViewClasses.js +1 -1
  124. package/legacy/YearPicker/PickersYear.js +2 -2
  125. package/legacy/YearPicker/YearPicker.js +18 -2
  126. package/legacy/YearPicker/yearPickerClasses.js +1 -1
  127. package/legacy/index.js +1 -1
  128. package/legacy/internal/pickers/PickersArrowSwitcher.js +1 -3
  129. package/legacy/internal/pickers/PickersToolbar.js +1 -1
  130. package/legacy/internal/pickers/PickersToolbarText.js +1 -1
  131. package/legacy/internal/pickers/test-utils.js +11 -8
  132. package/legacy/useAutocomplete/index.js +1 -1
  133. package/modern/CalendarPicker/CalendarPicker.js +13 -1
  134. package/modern/CalendarPicker/PickersCalendar.js +9 -3
  135. package/modern/CalendarPicker/PickersCalendarHeader.js +5 -4
  136. package/modern/CalendarPicker/PickersFadeTransitionGroup.js +3 -3
  137. package/modern/CalendarPicker/PickersSlideTransition.js +1 -1
  138. package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +2 -2
  139. package/modern/ClockPicker/ClockNumber.js +1 -1
  140. package/modern/ClockPicker/ClockPicker.js +1 -1
  141. package/modern/DatePicker/DatePicker.js +2 -0
  142. package/modern/DatePicker/DatePickerToolbar.js +1 -1
  143. package/modern/DateRangePicker/DateRangePicker.js +2 -0
  144. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  145. package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
  146. package/modern/DateTimePicker/DateTimePicker.js +2 -0
  147. package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -1
  148. package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -0
  149. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  150. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  151. package/modern/LoadingButton/LoadingButton.js +56 -13
  152. package/modern/LoadingButton/loadingButtonClasses.js +1 -1
  153. package/modern/Masonry/Masonry.js +228 -60
  154. package/modern/Masonry/masonryClasses.js +1 -1
  155. package/modern/MobileDatePicker/MobileDatePicker.js +2 -0
  156. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  157. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  158. package/modern/MonthPicker/MonthPicker.js +23 -6
  159. package/modern/MonthPicker/PickersMonth.js +19 -14
  160. package/modern/PickersDay/PickersDay.js +2 -2
  161. package/modern/StaticDatePicker/StaticDatePicker.js +2 -0
  162. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  163. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  164. package/modern/TabPanel/TabPanel.js +2 -2
  165. package/modern/TabPanel/tabPanelClasses.js +1 -1
  166. package/modern/TimePicker/TimePickerToolbar.js +1 -1
  167. package/modern/Timeline/Timeline.js +2 -2
  168. package/modern/Timeline/timelineClasses.js +1 -1
  169. package/modern/TimelineConnector/TimelineConnector.js +2 -2
  170. package/modern/TimelineConnector/timelineConnectorClasses.js +1 -1
  171. package/modern/TimelineContent/TimelineContent.js +2 -2
  172. package/modern/TimelineContent/timelineContentClasses.js +1 -1
  173. package/modern/TimelineDot/TimelineDot.js +2 -2
  174. package/modern/TimelineDot/timelineDotClasses.js +1 -1
  175. package/modern/TimelineItem/TimelineItem.js +2 -2
  176. package/modern/TimelineItem/timelineItemClasses.js +1 -1
  177. package/modern/TimelineOppositeContent/TimelineOppositeContent.js +2 -2
  178. package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +1 -1
  179. package/modern/TimelineSeparator/TimelineSeparator.js +2 -2
  180. package/modern/TimelineSeparator/timelineSeparatorClasses.js +1 -1
  181. package/modern/TreeItem/TreeItem.js +2 -2
  182. package/modern/TreeItem/treeItemClasses.js +1 -1
  183. package/modern/TreeView/TreeView.js +2 -2
  184. package/modern/TreeView/treeViewClasses.js +1 -1
  185. package/modern/YearPicker/PickersYear.js +2 -2
  186. package/modern/YearPicker/YearPicker.js +18 -2
  187. package/modern/YearPicker/yearPickerClasses.js +1 -1
  188. package/modern/index.js +1 -1
  189. package/modern/internal/pickers/PickersArrowSwitcher.js +1 -3
  190. package/modern/internal/pickers/PickersToolbar.js +1 -1
  191. package/modern/internal/pickers/PickersToolbarText.js +1 -1
  192. package/modern/internal/pickers/test-utils.js +14 -7
  193. package/modern/useAutocomplete/index.js +1 -1
  194. package/node/CalendarPicker/CalendarPicker.js +16 -4
  195. package/node/CalendarPicker/PickersCalendar.js +9 -3
  196. package/node/CalendarPicker/PickersCalendarHeader.js +5 -4
  197. package/node/CalendarPicker/PickersFadeTransitionGroup.js +4 -4
  198. package/node/CalendarPicker/PickersSlideTransition.js +2 -2
  199. package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +5 -5
  200. package/node/ClockPicker/ClockNumber.js +2 -2
  201. package/node/ClockPicker/ClockPicker.js +4 -4
  202. package/node/DatePicker/DatePicker.js +2 -0
  203. package/node/DatePicker/DatePickerToolbar.js +2 -2
  204. package/node/DateRangePicker/DateRangePicker.js +2 -0
  205. package/node/DateRangePicker/DateRangePickerToolbar.js +2 -2
  206. package/node/DateRangePickerDay/DateRangePickerDay.js +5 -5
  207. package/node/DateTimePicker/DateTimePicker.js +2 -0
  208. package/node/DateTimePicker/DateTimePickerToolbar.js +2 -2
  209. package/node/DesktopDatePicker/DesktopDatePicker.js +2 -0
  210. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -0
  211. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
  212. package/node/LoadingButton/LoadingButton.js +57 -14
  213. package/node/LoadingButton/loadingButtonClasses.js +3 -3
  214. package/node/Masonry/Masonry.js +237 -65
  215. package/node/Masonry/masonryClasses.js +3 -3
  216. package/node/MobileDatePicker/MobileDatePicker.js +2 -0
  217. package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -0
  218. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -0
  219. package/node/MonthPicker/MonthPicker.js +26 -9
  220. package/node/MonthPicker/PickersMonth.js +20 -15
  221. package/node/PickersDay/PickersDay.js +5 -5
  222. package/node/StaticDatePicker/StaticDatePicker.js +2 -0
  223. package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  224. package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -0
  225. package/node/TabPanel/TabPanel.js +3 -3
  226. package/node/TabPanel/tabPanelClasses.js +3 -3
  227. package/node/TimePicker/TimePickerToolbar.js +4 -4
  228. package/node/Timeline/Timeline.js +3 -3
  229. package/node/Timeline/timelineClasses.js +3 -3
  230. package/node/TimelineConnector/TimelineConnector.js +3 -3
  231. package/node/TimelineConnector/timelineConnectorClasses.js +3 -3
  232. package/node/TimelineContent/TimelineContent.js +3 -3
  233. package/node/TimelineContent/timelineContentClasses.js +3 -3
  234. package/node/TimelineDot/TimelineDot.js +3 -3
  235. package/node/TimelineDot/timelineDotClasses.js +3 -3
  236. package/node/TimelineItem/TimelineItem.js +3 -3
  237. package/node/TimelineItem/timelineItemClasses.js +3 -3
  238. package/node/TimelineOppositeContent/TimelineOppositeContent.js +3 -3
  239. package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +3 -3
  240. package/node/TimelineSeparator/TimelineSeparator.js +3 -3
  241. package/node/TimelineSeparator/timelineSeparatorClasses.js +3 -3
  242. package/node/TreeItem/TreeItem.js +3 -3
  243. package/node/TreeItem/treeItemClasses.js +3 -3
  244. package/node/TreeView/TreeView.js +3 -3
  245. package/node/TreeView/treeViewClasses.js +3 -3
  246. package/node/YearPicker/PickersYear.js +5 -5
  247. package/node/YearPicker/YearPicker.js +19 -3
  248. package/node/YearPicker/yearPickerClasses.js +3 -3
  249. package/node/index.js +1 -1
  250. package/node/internal/pickers/PickersArrowSwitcher.js +1 -3
  251. package/node/internal/pickers/PickersToolbar.js +2 -2
  252. package/node/internal/pickers/PickersToolbarText.js +2 -2
  253. package/node/internal/pickers/test-utils.js +14 -7
  254. package/node/useAutocomplete/index.js +3 -3
  255. package/package.json +6 -5
  256. package/useAutocomplete/index.d.ts +1 -1
  257. package/useAutocomplete/index.js +1 -1
  258. package/Masonry/MasonryContext.js +0 -12
  259. package/MasonryItem/MasonryItem.d.ts +0 -49
  260. package/MasonryItem/MasonryItem.js +0 -196
  261. package/MasonryItem/index.d.ts +0 -5
  262. package/MasonryItem/index.js +0 -3
  263. package/MasonryItem/masonryItemClasses.d.ts +0 -8
  264. package/MasonryItem/masonryItemClasses.js +0 -6
  265. package/MasonryItem/package.json +0 -6
  266. package/legacy/Masonry/MasonryContext.js +0 -12
  267. package/legacy/MasonryItem/MasonryItem.js +0 -201
  268. package/legacy/MasonryItem/index.js +0 -3
  269. package/legacy/MasonryItem/masonryItemClasses.js +0 -6
  270. package/modern/Masonry/MasonryContext.js +0 -12
  271. package/modern/MasonryItem/MasonryItem.js +0 -196
  272. package/modern/MasonryItem/index.js +0 -3
  273. package/modern/MasonryItem/masonryItemClasses.js +0 -6
  274. package/node/Masonry/MasonryContext.js +0 -24
  275. package/node/MasonryItem/MasonryItem.js +0 -220
  276. package/node/MasonryItem/index.js +0 -42
  277. package/node/MasonryItem/masonryItemClasses.js +0 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,286 @@
1
1
  ### [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.1.1
4
+
5
+ <!-- generated comparing v5.1.0..master -->
6
+
7
+ _Nov 16, 2021_
8
+
9
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🛠 Rename `@mui/core` to `@mui/base`. (#29585) @michaldudak
12
+ - And many more 🐛 bug fixes and 📚 improvements.
13
+
14
+ ### `@mui/material@5.1.1`
15
+
16
+ - &#8203;<!-- 34 -->[Breadcrumbs][divider] Replace decimal spacing values with integers and css calc (#29526) @anikcreative
17
+ - &#8203;<!-- 10 -->[Select][nativeselect] Add `multiple` class (#29566) @aaronholla
18
+ - &#8203;<!-- 09 -->[Popper] Split into PopperUnstyled and Popper (#29488) @michaldudak
19
+ - &#8203;<!-- 08 -->[Select] Make it clear that `Select` is not a root component (#29593) @hbjORbj
20
+ - &#8203;<!-- 13 -->[l10n] Improved Dutch (nl-NL) locale (#29592) @flipvrijn
21
+ - &#8203;<!-- 10 -->[Table] Improve pagination range, use "en dash" over "hyphen" (#29579) @narekmal
22
+
23
+ ### `@mui/base@5.0.0-alpha.55`
24
+
25
+ #### BREAKING CHANGE
26
+
27
+ - &#8203;<!-- 27 -->[core] Rename mui/core to mui/base (#29585) @michaldudak
28
+
29
+ ### `@mui/lab@5.0.0-alpha.55`
30
+
31
+ - &#8203;<!-- 12 -->[LoadingButton] Text variant spacing fixed for both start and end (#29194) @joshua-lawrence
32
+ - &#8203;<!-- 11 -->[Masonry] Check if container or child exists to prevent error (#29452) @hbjORbj
33
+
34
+ ### Docs
35
+
36
+ - &#8203;<!-- 25 -->[docs] Correct bundler configuration for using legacy MUI build (#29146) @petermikitsh
37
+ - &#8203;<!-- 24 -->[docs] Fix typo on autocomplete.md (#29570) @netizer
38
+ - &#8203;<!-- 23 -->[docs] Fix dark mode on branding pages (#29611) @alexfauquette
39
+ - &#8203;<!-- 22 -->[docs] Do not render CSS section in API docs navbar if there are no CSS classes (#29622) @ZeeshanTamboli
40
+ - &#8203;<!-- 21 -->[docs] Fix link locale handling (#29624) @oliviertassinari
41
+ - &#8203;<!-- 20 -->[docs] Fix Search navigation (#29623) @oliviertassinari
42
+ - &#8203;<!-- 19 -->[docs] Fix broken link & update MUI packages explanation (#29583) @siriwatknp
43
+ - &#8203;<!-- 18 -->[docs] Do not repeat language snippet in url in Algolia search (#29483) @hbjORbj
44
+ - &#8203;<!-- 17 -->[docs] Update `ThemeProvider` API link (#29573) @siriwatknp
45
+ - &#8203;<!-- 16 -->[docs] Remove svg logos from the Support page (#29431) @oliviertassinari
46
+ - &#8203;<!-- 15 -->[docs] Link UXPin integration (#29422) @oliviertassinari
47
+ - &#8203;<!-- 14 -->[docs] Link to the new public roadmap for the design kits (#29433) @oliviertassinari
48
+ - &#8203;<!-- 28 -->[docs] correct bundler configuration for using legacy MUI build (#29146) @petermikitsh
49
+ - &#8203;<!-- 01 -->[website] Fix premium plan release date (#29430) @oliviertassinari
50
+ - &#8203;<!-- 02 -->[website] Add GitHub icon button to the navbar (#29640) @danilo-leal
51
+ - &#8203;<!-- 39 -->[blog] Support many authors in markdown pages (#29633) @m4theushw
52
+
53
+ ### Core
54
+
55
+ - &#8203;<!-- 33 -->[core] Add `experiments` index page (#29582) @siriwatknp
56
+ - &#8203;<!-- 32 -->[core] Move s3 bucket ownership to mui-org (#29609) @eps1lon
57
+ - &#8203;<!-- 31 -->[core] Improve support request message (#29614) @mnajdova
58
+ - &#8203;<!-- 30 -->[core] Use support request Github Action (#29594) @mnajdova
59
+ - &#8203;<!-- 29 -->[core] Remove unused `getJsxPreview` util (#29586) @ZeeshanTamboli
60
+ - &#8203;<!-- 28 -->[core] Use GitHub issue forms (#28038) @oliviertassinari
61
+ - &#8203;<!-- 26 -->[core] Add playground (#29423) @oliviertassinari
62
+ - &#8203;<!-- 07 -->[test] Correctly identify what the `raf` helper is for (#29683) @eps1lon
63
+ - &#8203;<!-- 06 -->[test] Verify a quilted ImageList is created as test title suggests (#29565) @daniel-sachs
64
+ - &#8203;<!-- 05 -->[test] Replace `createServerRender` with `createRenderer` (#29503) @eps1lon
65
+ - &#8203;<!-- 04 -->[test] Always ignore "useLayoutEffect has no effect on the server"-warning (#29502) @eps1lon
66
+ - &#8203;<!-- 03 -->[test] Restore StrictMode by default (#29589) @eps1lon
67
+ - &#8203;<!-- 02 -->[test] createPickerRender -> createPickerRenderer (#29575) @eps1lon
68
+ - &#8203;<!-- 09 -->[test] Allow experimental CLI to run exact test (#29685) @eps1lon
69
+
70
+ All contributors of this release in alphabetical order: @aaronholla, @alexfauquette, @anikcreative, @daniel-sachs, @eps1lon, @flipvrijn, @hbjORbj, @joshua-lawrence, @michaldudak, @mnajdova, @netizer, @oliviertassinari, @petermikitsh, @siriwatknp, @ZeeshanTamboli
71
+
72
+ ## 5.1.0
73
+
74
+ <!-- generated comparing v5.0.6..master -->
75
+
76
+ _Nov 8, 2021_
77
+
78
+ A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
79
+
80
+ - 🎉 Support custom elements under `ButtonGroup` (#28645) @ZeeshanTamboli
81
+ - 🛠 Add support for arrays in the `sx` prop (#29297) @siriwatknp
82
+ - And many more 🐛 bug fixes and 📚 improvements.
83
+
84
+ ### `@mui/material@5.1.0`
85
+
86
+ - &#8203;<!-- 68 -->[Autocomplete] Fix `hiddenLabel` prop of `TextField variant={filled}` inside Autocomplete (#29234) @jatinsandilya
87
+ - &#8203;<!-- 67 -->[Box] Support generateClassName and defaultClassName (#29347) @siriwatknp
88
+ - &#8203;<!-- 66 -->[ButtonGroup] Fix variant outlined always has primary color borders on hover (#29487) @ZeeshanTamboli
89
+ - &#8203;<!-- 65 -->[ButtonGroup] Support different elements under ButtonGroup (#28645) @ZeeshanTamboli
90
+ - &#8203;<!-- 62 -->[CssBaseline] Add `enableColorScheme` prop so enable using `color-scheme` property to deal with dark mode (#29454) @alexfauquette
91
+ - &#8203;<!-- 29 -->[FormControlLabel] Narrow the label type (#29324) @michaldudak
92
+ - &#8203;<!-- 28 -->[Grid] Fix usage when columns > 12 (#29196) @tanay123456789
93
+ - &#8203;<!-- 27 -->[InputBase] Do not repeat the same classname (#29353) @hbjORbj
94
+ - &#8203;<!-- 30 -->[InputBase] Remove WebkitAppearance from search type (#29383) @nicbarajas
95
+ - &#8203;<!-- 25 -->[ListItem] Add missing exports (#29571) @robcaldecott
96
+ - &#8203;<!-- 22 -->[Pagination] Allow customization of icons (#29336) @mbeltramin
97
+ - &#8203;<!-- 11 -->[TextField] Fix bootstrap, normalize.css, sanitize.css conflicts (#28674) @ChrisClaude
98
+ - &#8203;<!-- 10 -->[TextField] Fix invisible wrap within notched inputs (#29088) @DASPRiD
99
+ - &#8203;<!-- 09 -->[Tooltip] `open` prop in `componentsProps.popper` can be optional (#29370) @ZeeshanTamboli
100
+ - &#8203;<!-- 08 -->[Tooltip] Fix `className` not getting applied from PopperProps (#29023) @ZeeshanTamboli
101
+ - &#8203;<!-- 07 -->[useRadioGroup] Convert to TypeScript (#29326) @eps1lon
102
+
103
+ ### `@mui/system@5.1.0`
104
+
105
+ - &#8203;<!-- 21 -->[system] Introduce `mode` to CssVarsProvider (#29418) @siriwatknp
106
+ - &#8203;<!-- 20 -->[system] Improve breakpoints resolver function (#29300) @hbjORbj
107
+ - &#8203;<!-- 19 -->[system] Add array support for `sx` prop (#29297) @siriwatknp
108
+
109
+ ### `@mui/codemod@5.1.0`
110
+
111
+ - &#8203;<!-- 64 -->[codemod] Add codemod parser flag (#29059) (#29229) @ElonVolo
112
+
113
+ ### `@mui/lab@5.0.0-alpha.54`
114
+
115
+ - &#8203;<!-- 52 -->[DatePicker] Fix disabled/readOnly for view components (#28815) @adamfitzgibbon
116
+ - &#8203;<!-- 24 -->[Masonry] Fix crash on unmount when using React 18 (#29358) @eps1lon
117
+ - &#8203;<!-- 23 -->[Masonry] Improve height computation and detect changes in `children` (#29351) @hbjORbj
118
+
119
+ ### `@mui/joy@5.0.0-alpha.0`
120
+
121
+ - &#8203;<!-- 28 -->[Joy] Update default theme (#29478) @siriwatknp
122
+ - &#8203;<!-- 26 -->[Joy] Export CssVarsProvider with default theme (#29150) @siriwatknp
123
+ - &#8203;<!-- 25 -->[Joy] Remove `private` to leverage CodeSandbox (#29280) @siriwatknp
124
+
125
+ ### Docs
126
+
127
+ - &#8203;<!-- 51 -->[docs] Add differences between styled and sx (#28685) @eric-burel
128
+ - &#8203;<!-- 50 -->[docs] Track usage of dark mode in Google Analytics (#29419) @oliviertassinari
129
+ - &#8203;<!-- 49 -->[docs] Remove create-mui-theme as it is no longer working (#29472) @IPJT
130
+ - &#8203;<!-- 48 -->[docs] Fix warnings in AppSearch (#29459) @eps1lon
131
+ - &#8203;<!-- 47 -->[docs] Add framework example for ClassNameGenerator (#29453) @siriwatknp
132
+ - &#8203;<!-- 46 -->[docs] Fix layout shift when scrolling (#29436) @oliviertassinari
133
+ - &#8203;<!-- 45 -->[docs] Fix layout-shift on id='main-content' (#29425) @oliviertassinari
134
+ - &#8203;<!-- 44 -->[docs] Remove usage of `process.browser` (#29438) @oliviertassinari
135
+ - &#8203;<!-- 43 -->[docs] Add instruction on how to use the child selector API with emotion (#29350) @mnajdova
136
+ - &#8203;<!-- 42 -->[docs] Fix small typos (#29424) @oliviertassinari
137
+ - &#8203;<!-- 41 -->[docs] Fix TOC highlighting logic (#29435) @oliviertassinari
138
+ - &#8203;<!-- 40 -->[docs] Fix about page flags (#29314) @mbrookes
139
+ - &#8203;<!-- 39 -->[docs] Fix Box JS docs (#29282) @Pablion
140
+ - &#8203;<!-- 38 -->[docs] Update storybook section in migration to v5 docs (#28800) @siriwatknp
141
+ - &#8203;<!-- 37 -->[docs] Document how to enable color on dark mode (#29340) @Wimukti
142
+ - &#8203;<!-- 36 -->[docs] Display search functionality in all viewports (#28819) @eps1lon
143
+ - &#8203;<!-- 35 -->[docs] Query heading for ToC on demand (#29204) @eps1lon
144
+ - &#8203;<!-- 34 -->[docs] Add next.js styled-component guide and update links to example (#29118) @Jareechang
145
+ - &#8203;<!-- 33 -->[docs] Fix overriding `MuiTextField`'s default props in the migration guide (#29174) @tm1000
146
+ - &#8203;<!-- 32 -->[docs] Fix "clickable" and "deletable" typos (#28702) @jacklaurencegaray
147
+ - &#8203;<!-- 31 -->[docs] Update migration-v4 docs for wrong import path (#29042) @busches
148
+ - &#8203;<!-- 30 -->[docs] Add GitHub icon change to "Migration from v4 to v5" guide (#29182) @dan-mba
149
+ - &#8203;<!-- 06 -->[website] Benny Joo joining MUI (#29499) @mnajdova
150
+ - &#8203;<!-- 05 -->[website] Update the `Print export` feature info on the pricing page (#29484) @DanailH
151
+ - &#8203;<!-- 04 -->[website] Improve the dev rel role description (#29477) @oliviertassinari
152
+ - &#8203;<!-- 03 -->[website] Add customers section on Design Kits and Templates marketing pages (#29168) @danilo-leal
153
+ - &#8203;<!-- 02 -->[website] Improvements to the /core product page @danilo-leal
154
+ - &#8203;<!-- 01 -->[website] Fix typo on the About Page (#29286) @gssakash
155
+
156
+ ### Core
157
+
158
+ - &#8203;<!-- 63 -->[core] Handle RecordType and FieldType in generatePropDescription.ts (#29467) @flaviendelangle
159
+ - &#8203;<!-- 61 -->[core] Convert a named color to lowercase (#29465) @ainatenhi
160
+ - &#8203;<!-- 60 -->[core] Allow to reuse functions from `docs:api` (#28828) @m4theushw
161
+ - &#8203;<!-- 59 -->[core] Commit new nextjs 12 tsconfig (#29458) @eps1lon
162
+ - &#8203;<!-- 58 -->[core] Settle on MUI X for the official name (#29420) @oliviertassinari
163
+ - &#8203;<!-- 57 -->[core] Add mui as a npm keyword (#29427) @oliviertassinari
164
+ - &#8203;<!-- 56 -->[core] Fix issue template redirection (#29432) @oliviertassinari
165
+ - &#8203;<!-- 55 -->[core] Remove unecessary destructuration (#29354) @oliviertassinari
166
+ - &#8203;<!-- 54 -->[core] Use cross-env to set env variables in material-icons scripts (#29327) @michaldudak
167
+ - &#8203;<!-- 53 -->[core] Don't bump peer dependency ranges on dependency updates (#29303) @eps1lon
168
+ - &#8203;<!-- 18 -->[test] Fix browser tests (#29505) @eps1lon
169
+ - &#8203;<!-- 69 -->[test] Fix missing act warnings in latest React 18 alpha (#29357) @eps1lon
170
+ - &#8203;<!-- 17 -->[test] Replace `createClientRender` with new `createRenderer` API (#29471) @eps1lon
171
+ - &#8203;<!-- 16 -->[test] Fix possible "missing act" warning (#29463) @eps1lon
172
+ - &#8203;<!-- 15 -->[test] Remove render#baseElement (#29462) @eps1lon
173
+ - &#8203;<!-- 14 -->[test] Expose `AbortController` on global (#29360) @eps1lon
174
+ - &#8203;<!-- 13 -->[test] Add internal test for uniqe `name` in `Rating` (#29329) @eps1lon
175
+ - &#8203;<!-- 12 -->[test] Fix browser tests (#29305) @eps1lon
176
+
177
+ All contributors of this release in alphabetical order: @adamfitzgibbon, @ainatenhi, @alexfauquette, @busches, @ChrisClaude, @dan-mba, @DanailH, @danilo-leal, @DASPRiD, @ElonVolo, @eps1lon, @eric-burel, @flaviendelangle, @gssakash, @hbjORbj, @IPJT, @jacklaurencegaray, @Jareechang, @jatinsandilya, @m4theushw, @mbeltramin, @mbrookes, @michaldudak, @mnajdova, @nicbarajas, @oliviertassinari, @Pablion, @robcaldecott, @siriwatknp, @tanay123456789, @tm1000, @Wimukti, @ZeeshanTamboli
178
+
179
+ ## 5.0.6
180
+
181
+ <!-- generated comparing v5.0.5..master -->
182
+
183
+ _Oct 27, 2021_
184
+
185
+ A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
186
+
187
+ - 🔧 Fix reported TypeScript issues on the `@mui/system` package because some packages were not released
188
+
189
+ ### `@mui/material@5.0.6`
190
+
191
+ - &#8203;<!-- 4 -->[Autocomplete] Fix `clearOnBlur` prop (#29208) @hbjORbj
192
+ - &#8203;<!-- 2 -->[Rating] Remove z-index from decimal stars (#29295) @williamhaley
193
+
194
+ ### `@mui/system@5.0.6`
195
+
196
+ - &#8203;<!-- 5 -->[system] Fix various issues reported by using @mui/styled-engine-sc (#29035) @mnajdova
197
+ - &#8203;<!-- 1 -->[system] Fix executing server-side Emotion component as function interpolation (#29290) @Andarist
198
+
199
+ ### Docs
200
+
201
+ - &#8203;<!-- 3 -->[blog] Q3 2021 Update (#28970) @oliviertassinari
202
+
203
+ All contributors of this release in alphabetical order: @Andarist, @hbjORbj, @oliviertassinari, @williamhaley
204
+
205
+ ## 5.0.5
206
+
207
+ <!-- generated comparing v5.0.4..master -->
208
+
209
+ _Oct 26, 2021_
210
+
211
+ A big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
212
+
213
+ - 🔧 Implement `Masonry` using Flexbox by @hbjORbj.
214
+ - 🧪 Add three components to `@mui/base` by @rebeccahongsf and @hbjORbj.
215
+
216
+ ### `@mui/codemod@5.0.5`
217
+
218
+ - &#8203;<!-- 38 -->[codemod] Support new package name in `link-underline-hover` transformer (#29214) @siriwatknp
219
+
220
+ ### `@mui/base@5.0.0-alpha.52`
221
+
222
+ - &#8203;<!-- 39 -->[ClickAwayListener] Move to the core package (#29186) @hbjORbj
223
+ - &#8203;<!-- 13 -->[Popper] Move from mui-material to mui-base (#28923) @rebeccahongsf
224
+ - &#8203;<!-- 04 -->[TextareaAutosize] Move to the core package (#29148) @hbjORbj
225
+
226
+ ### `@mui/lab@5.0.0-alpha.52`
227
+
228
+ - &#8203;<!-- 16 -->[Masonry] Improve demo styles (#29218) @hbjORbj
229
+ - &#8203;<!-- 15 -->[Masonry] Implement Masonry using Flexbox (#28059) @hbjORbj
230
+
231
+ ### `@mui/icons@5.0.5`
232
+
233
+ - &#8203;<!-- 19 -->[icons] Add TipsAndUpdates icon (#29004) @hbjORbj
234
+
235
+ ### `@mui/material@5.0.5`
236
+
237
+ - &#8203;<!-- 40 -->[CardMedia] Apply specified `img` role instead of custom `image` role (#29172) @eps1lon
238
+ - &#8203;<!-- 32 -->[CSSBaseline] Remove incorrect @deprecated annotation (#29069) @adamfitzgibbon
239
+ - &#8203;<!-- 20 -->[Grid] Support custom columns with nested grid (#28743) @Devesh21700Kumar
240
+ - &#8203;<!-- 18 -->[InputBase] Remove wrong theme overriding with MUI's default theme (#29157) @hbjORbj
241
+ - &#8203;<!-- 17 -->[LoadingButton] Fix `fullWidth` styling (#28652) @nikitabobers
242
+ - &#8203;<!-- 16 -->[Popper] make Popper display:none whenever it's closed (#29233) @adamfitzgibbon
243
+ - &#8203;<!-- 14 -->[Menu] Reduce min-height & padding in menu-item with dense property (#29180) @jatinsandilya
244
+ - &#8203;<!-- 07 -->[Tab] `iconPosition` prop added in Tab (#28764) @deepanshu2506
245
+ - &#8203;<!-- 03 -->[Tooltip] Correct inconsistent prop precedence (#29132) @michaldudak
246
+
247
+ ### `@mui/system@5.0.5`
248
+
249
+ - &#8203;<!-- 11 -->[system] Allow function type for `sx` prop (#29198) @hbjORbj
250
+ - &#8203;<!-- 10 -->[system] Fix various issues reported by using @mui/styled-engine-sc (#29035) @mnajdova
251
+ - &#8203;<!-- 09 -->[system] Fix `colorScheme` conflict between application (#29139) @siriwatknp
252
+ - &#8203;<!-- 08 -->[system] Add `unstable_createCssVarsProvider` api (#28965) @siriwatknp
253
+
254
+ ### Documentation
255
+
256
+ - &#8203;<!-- 31 -->[docs] Fix path to `DataGrid` CSV export options page (#29220) @DanailH
257
+ - &#8203;<!-- 30 -->[docs] Give anonymous components a name (#29189) @eps1lon
258
+ - &#8203;<!-- 29 -->[docs] Add deploy context variables (#29195) @siriwatknp
259
+ - &#8203;<!-- 28 -->[docs] Add MUI packages explanation (#29073) @siriwatknp
260
+ - &#8203;<!-- 27 -->[docs] Fix typo in CSP policy (#29187) @JuliaNeumann
261
+ - &#8203;<!-- 26 -->[docs] Dark mode conditional content rendering (#28665) @michal-perlakowski
262
+ - &#8203;<!-- 25 -->[docs] Fix ClassNameGenerator introduced version #29177 @siriwatknp
263
+ - &#8203;<!-- 24 -->[docs] Add missing `justifyContent` values and update box styling (#29117) @omarmosid
264
+ - &#8203;<!-- 23 -->[docs] Make landing page hero section scrollable (#29141) @waxidiotic
265
+ - &#8203;<!-- 22 -->[docs] Discourage importing different bundles directly (#29133) @eps1lon
266
+ - &#8203;<!-- 21 -->[docs] Update module augmentation reference url (#29064) @gnowland
267
+ - &#8203;<!-- 12 -->[pricing] Add tooltip to pricing icon (#28959) @siriwatknp
268
+ - &#8203;<!-- 07 -->[Team] Add Alexandre in the about page (#29289)
269
+ - &#8203;<!-- 02 -->[website] Fix status label overflow in AdvancedShowcase (#29143) @LorenzHenk
270
+ - &#8203;<!-- 01 -->[website] Update legacy logos (#28908) @michaldudak
271
+
272
+ ### Core
273
+
274
+ - &#8203;<!-- 37 -->[core] Order repro methods by preference (#29156) @eps1lon
275
+ - &#8203;<!-- 36 -->[core] Remove unnecessary usages of `useEventCallback` (#28910) @NMinhNguyen
276
+ - &#8203;<!-- 35 -->[core] add `unstable_ClassNameGenerator` API (#29051) @siriwatknp
277
+ - &#8203;<!-- 34 -->[core] Fix issues when using styled-components (#29048) @mnajdova
278
+ - &#8203;<!-- 33 -->[core] replace hard-coded classname with classes (#29070) @siriwatknp
279
+ - &#8203;<!-- 06 -->[test] Add documentation for visual regression tests (#29154) @eps1lon
280
+ - &#8203;<!-- 05 -->[test] Enable "missing act" warnings using new proposal (#29167) @eps1lon
281
+
282
+ All contributors of this release in alphabetical order: @adamfitzgibbon, @DanailH, @deepanshu2506, @Devesh21700Kumar, @eps1lon, @gnowland, @hbjORbj, @jatinsandilya, @JuliaNeumann, @LorenzHenk, @michal-perlakowski, @michaldudak, @mnajdova, @nikitabobers, @NMinhNguyen, @omarmosid, @rebeccahongsf, @siriwatknp, @waxidiotic
283
+
3
284
  ## 5.0.4
4
285
 
5
286
  <!-- generated comparing v5.0.3..master -->
@@ -8,7 +289,7 @@ _Oct 14, 2021_
8
289
 
9
290
  A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
10
291
 
11
- - 🧪 Added `UnstyledInput` and `useInput` hook in the the first component in @mui/core package @michaldudak (#28053)
292
+ - 🧪 Added `UnstyledInput` and `useInput` hook in the the first component in @mui/base package @michaldudak (#28053)
12
293
  - 🐛 Fixed many bugs and improved the documentation 📚.
13
294
 
14
295
  ### `@mui/material@5.0.4`
@@ -23,7 +304,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
23
304
 
24
305
  - &#8203;<!-- 05 -->[system] Update typing for `style` function (#28744) @hbjORbj
25
306
 
26
- ### `@mui/core@5.0.0-alpha.51`
307
+ ### `@mui/base@5.0.0-alpha.51`
27
308
 
28
309
  - &#8203;<!-- 07 -->[InputUnstyled] Create unstyled input and useInput hook (#28053) @michaldudak
29
310
 
@@ -92,7 +373,7 @@ A big thanks to the 19 contributors who made this release possible. Here are som
92
373
 
93
374
  - &#8203;<!-- 42 -->Don't allow styled-components APIs on mui styled function (#28807) @hbjORbj
94
375
 
95
- ### `@mui/core@5.0.0-alpha.50`
376
+ ### `@mui/base@5.0.0-alpha.50`
96
377
 
97
378
  - &#8203;<!-- 38 -->[ButtonUnstyled] Don't set redundant role=button (#28488) @michaldudak
98
379
  - &#8203;<!-- 43 -->[SliderUnstyled] Prevent unknown-prop error when using marks prop (#28868) @hbjORbj
@@ -471,10 +752,10 @@ A big thanks to the 18 contributors who made this release possible. Here are som
471
752
  ```
472
753
  @material-ui/core => @mui/material // represents Material Design components.
473
754
  @material-ui/icons => @mui/icons-material // represents Material Design icons.
474
- @material-ui/unstyled => @mui/core // fully functional components with minimum styles.
755
+ @material-ui/unstyled => @mui/base // fully functional components with minimum styles.
475
756
  ```
476
757
 
477
- > **Note**: `@mui/core` (previously `@material-ui/unstyled`) is not the same as `@material-ui/core`.
758
+ > **Note**: `@mui/base` (previously `@material-ui/unstyled`) is not the same as `@material-ui/core`.
478
759
 
479
760
  We encourage you to use the [codemod](https://github.com/mui-org/material-ui/blob/next/packages/mui-codemod/README.md#mui-replace) for smooth migration.
480
761
 
@@ -489,7 +770,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
489
770
  - &#8203;<!-- 05 -->[ToggleButtonGroup] Add "disabled" prop (#27998) @chetas411
490
771
  - &#8203;<!-- 34 -->[core] Export types for module augmentation (#28078) @m4theushw
491
772
 
492
- ### `@mui/core@5.0.0-alpha.45`
773
+ ### `@mui/base@5.0.0-alpha.45`
493
774
 
494
775
  - &#8203;<!-- 38 -->[Button] Create ButtonUnstyled and useButton (#27600) @michaldudak
495
776
 
@@ -18,6 +18,11 @@ export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>
18
18
  * Default calendar month displayed when `value={null}`.
19
19
  */
20
20
  defaultCalendarMonth?: TDate;
21
+ /**
22
+ * If `true`, the picker and text field are disabled.
23
+ * @default false
24
+ */
25
+ disabled?: boolean;
21
26
  /**
22
27
  * @default false
23
28
  */
@@ -51,6 +56,11 @@ export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>
51
56
  * @default 'day'
52
57
  */
53
58
  openTo?: CalendarPickerView;
59
+ /**
60
+ * Make picker read only.
61
+ * @default false
62
+ */
63
+ readOnly?: boolean;
54
64
  /**
55
65
  * Disable heavy animations.
56
66
  * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
@@ -8,7 +8,7 @@ import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import clsx from 'clsx';
10
10
  import { styled, useThemeProps } from '@mui/material/styles';
11
- import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/core';
11
+ import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses } from '@mui/base';
12
12
  import MonthPicker from '../MonthPicker/MonthPicker';
13
13
  import { useCalendarState } from './useCalendarState';
14
14
  import { useDefaultDates, useUtils } from '../internal/pickers/hooks/useUtils';
@@ -230,6 +230,12 @@ process.env.NODE_ENV !== "production" ? CalendarPicker.propTypes
230
230
  */
231
231
  defaultCalendarMonth: PropTypes.any,
232
232
 
233
+ /**
234
+ * If `true`, the picker and text field are disabled.
235
+ * @default false
236
+ */
237
+ disabled: PropTypes.bool,
238
+
233
239
  /**
234
240
  * @default false
235
241
  */
@@ -278,6 +284,12 @@ process.env.NODE_ENV !== "production" ? CalendarPicker.propTypes
278
284
  */
279
285
  openTo: PropTypes.oneOf(['day', 'month', 'year']),
280
286
 
287
+ /**
288
+ * Make picker read only.
289
+ * @default false
290
+ */
291
+ readOnly: PropTypes.bool,
292
+
281
293
  /**
282
294
  * Disable heavy animations.
283
295
  * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
@@ -29,11 +29,13 @@ export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate
29
29
  className?: string;
30
30
  currentMonth: TDate;
31
31
  date: TDate | [TDate | null, TDate | null] | null;
32
+ disabled?: boolean;
32
33
  focusedDay: TDate | null;
33
34
  isDateDisabled: (day: TDate) => boolean;
34
35
  isMonthSwitchingAnimating: boolean;
35
36
  onFocusedDayChange: (newFocusedDay: TDate) => void;
36
37
  onMonthSwitchingAnimationEnd: () => void;
38
+ readOnly?: boolean;
37
39
  reduceAnimations: boolean;
38
40
  slideDirection: SlideDirection;
39
41
  TransitionProps?: Partial<SlideTransitionProps>;
@@ -70,6 +70,7 @@ function PickersCalendar(props) {
70
70
  className,
71
71
  currentMonth,
72
72
  date,
73
+ disabled,
73
74
  disableHighlightToday,
74
75
  focusedDay,
75
76
  isDateDisabled,
@@ -77,6 +78,7 @@ function PickersCalendar(props) {
77
78
  loading,
78
79
  onChange,
79
80
  onMonthSwitchingAnimationEnd,
81
+ readOnly,
80
82
  reduceAnimations,
81
83
  renderDay,
82
84
  renderLoading = () => _span || (_span = /*#__PURE__*/_jsx("span", {
@@ -89,10 +91,14 @@ function PickersCalendar(props) {
89
91
  const now = useNow();
90
92
  const utils = useUtils();
91
93
  const handleDaySelect = React.useCallback((day, isFinish = 'finish') => {
92
- // TODO possibly buggy line figure out and add tests
94
+ if (readOnly) {
95
+ return;
96
+ } // TODO possibly buggy line figure out and add tests
97
+
98
+
93
99
  const finalDate = Array.isArray(date) ? day : utils.mergeDateAndTime(day, date || now);
94
100
  onChange(finalDate, isFinish);
95
- }, [date, now, onChange, utils]);
101
+ }, [date, now, onChange, readOnly, utils]);
96
102
  const currentMonthNumber = utils.getMonth(currentMonth);
97
103
  const selectedDates = (Array.isArray(date) ? date : [date]).filter(Boolean).map(selectedDateItem => selectedDateItem && utils.startOfDay(selectedDateItem)); // need a new ref whenever the `key` of the transition changes: https://reactcommunity.org/react-transition-group/transition#Transition-prop-nodeRef.
98
104
 
@@ -126,7 +132,7 @@ function PickersCalendar(props) {
126
132
  key: day == null ? void 0 : day.toString(),
127
133
  day,
128
134
  isAnimating: isMonthSwitchingAnimating,
129
- disabled: isDateDisabled(day),
135
+ disabled: disabled || isDateDisabled(day),
130
136
  allowSameDateSelection,
131
137
  autoFocus: autoFocus && focusedDay !== null && utils.isSameDay(day, focusedDay),
132
138
  today: utils.isSameDay(day, now),
@@ -25,6 +25,7 @@ export interface PickersCalendarHeaderProps<TDate> extends ExportedArrowSwitcher
25
25
  switchViewButton?: React.ComponentPropsWithRef<typeof IconButton> & PickersCalendarHeaderComponentsPropsOverides;
26
26
  };
27
27
  currentMonth: TDate;
28
+ disabled?: boolean;
28
29
  views: readonly CalendarPickerView[];
29
30
  /**
30
31
  * Get aria-label text for switching between views button.
@@ -74,6 +74,7 @@ function PickersCalendarHeader(props) {
74
74
  components = {},
75
75
  componentsProps = {},
76
76
  currentMonth: month,
77
+ disabled,
77
78
  disableFuture,
78
79
  disablePast,
79
80
  getViewSwitchingButtonText = getSwitchingViewAriaText,
@@ -95,16 +96,16 @@ function PickersCalendarHeader(props) {
95
96
  const selectPreviousMonth = () => onMonthChange(utils.getPreviousMonth(month), 'right');
96
97
 
97
98
  const isNextMonthDisabled = useNextMonthDisabled(month, {
98
- disableFuture,
99
+ disableFuture: disableFuture || disabled,
99
100
  maxDate
100
101
  });
101
102
  const isPreviousMonthDisabled = usePreviousMonthDisabled(month, {
102
- disablePast,
103
+ disablePast: disablePast || disabled,
103
104
  minDate
104
105
  });
105
106
 
106
107
  const handleToggleView = () => {
107
- if (views.length === 1 || !onViewChange) {
108
+ if (views.length === 1 || !onViewChange || disabled) {
108
109
  return;
109
110
  }
110
111
 
@@ -145,7 +146,7 @@ function PickersCalendarHeader(props) {
145
146
  ownerState: ownerState,
146
147
  children: utils.format(month, 'year')
147
148
  })
148
- }), views.length > 1 && /*#__PURE__*/_jsx(PickersCalendarHeaderSwitchViewButton, _extends({
149
+ }), views.length > 1 && !disabled && /*#__PURE__*/_jsx(PickersCalendarHeaderSwitchViewButton, _extends({
149
150
  size: "small",
150
151
  as: components.SwitchViewButton,
151
152
  "aria-label": getViewSwitchingButtonText(currentView)
@@ -2,17 +2,17 @@ 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
  const classes = generateUtilityClasses('PrivatePickersFadeTransitionGroup', ['root']);
9
9
  const animationDuration = 500;
10
10
  const PickersFadeTransitionGroupRoot = styled(TransitionGroup, {
11
11
  skipSx: true
12
- })(() => ({
12
+ })({
13
13
  display: 'block',
14
14
  position: 'relative'
15
- }));
15
+ });
16
16
  /**
17
17
  * @ignore - do not document.
18
18
  */
@@ -4,7 +4,7 @@ const _excluded = ["children", "className", "reduceAnimations", "slideDirection"
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
  const classes = generateUtilityClasses('PrivatePickersSlideTransition', ['root', 'slideEnter-left', 'slideEnter-right', 'slideEnterActive', 'slideEnterActive', 'slideExit', 'slideExitActiveLeft-left', 'slideExitActiveLeft-right']);
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { Theme } from '@mui/material/styles';
3
3
  import { SxProps } from '@mui/system';
4
4
  declare type HTMLDivProps = JSX.IntrinsicElements['div'];
@@ -19,6 +19,7 @@ export interface CalendarPickerSkeletonProps extends HTMLDivProps {
19
19
  * The system prop that allows defining system overrides as well as additional CSS styles.
20
20
  */
21
21
  sx?: SxProps<Theme>;
22
+ ref?: React.Ref<HTMLDivElement>;
22
23
  }
23
24
  export declare type CalendarPickerSkeletonClassKey = keyof CalendarPickerSkeletonClasses;
24
25
  export declare function getCalendarPickerSkeletonUtilityClass(slot: string): string;
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import Skeleton from '@mui/material/Skeleton';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
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 { DAY_SIZE, DAY_MARGIN } from '../internal/pickers/constants/dimensions';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  export function getCalendarPickerSkeletonUtilityClass(slot) {
@@ -144,6 +144,6 @@ process.env.NODE_ENV !== "production" ? CalendarPickerSkeleton.propTypes
144
144
  /**
145
145
  * The system prop that allows defining system overrides as well as additional CSS styles.
146
146
  */
147
- sx: PropTypes.object
147
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object])), PropTypes.func, PropTypes.object])
148
148
  } : void 0;
149
149
  export default CalendarPickerSkeleton;
@@ -4,7 +4,7 @@ const _excluded = ["className", "disabled", "index", "inner", "label", "selected
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 const 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';
@@ -155,6 +155,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.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
 
@@ -346,6 +347,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes
346
347
 
347
348
  /**
348
349
  * Make picker read only.
350
+ * @default false
349
351
  */
350
352
  readOnly: PropTypes.bool,
351
353
 
@@ -4,7 +4,7 @@ const _excluded = ["date", "isLandscape", "isMobileKeyboardViewOpen", "onChange"
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';
@@ -209,6 +209,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
209
209
 
210
210
  /**
211
211
  * If `true`, the picker and text field are disabled.
212
+ * @default false
212
213
  */
213
214
  disabled: PropTypes.bool,
214
215
 
@@ -399,6 +400,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes
399
400
 
400
401
  /**
401
402
  * Make picker read only.
403
+ * @default false
402
404
  */
403
405
  readOnly: PropTypes.bool,
404
406
 
@@ -3,7 +3,7 @@ var _Typography;
3
3
  import * as React from 'react';
4
4
  import Typography from '@mui/material/Typography';
5
5
  import { styled } from '@mui/material/styles';
6
- import { generateUtilityClasses } from '@mui/core';
6
+ import { generateUtilityClasses } from '@mui/base';
7
7
  import PickersToolbar from '../internal/pickers/PickersToolbar';
8
8
  import { useUtils } from '../internal/pickers/hooks/useUtils';
9
9
  import PickersToolbarButton from '../internal/pickers/PickersToolbarButton';