@mui/lab 5.0.0-alpha.66 → 5.0.0-alpha.67

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 (245) 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 +84 -0
  6. package/CalendarPicker/CalendarPicker.d.ts +106 -106
  7. package/CalendarPicker/PickersCalendar.d.ts +47 -47
  8. package/CalendarPicker/PickersCalendar.js +6 -18
  9. package/CalendarPicker/PickersCalendarHeader.d.ts +43 -43
  10. package/CalendarPicker/PickersCalendarHeader.js +5 -15
  11. package/CalendarPicker/PickersFadeTransitionGroup.d.ts +12 -12
  12. package/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
  13. package/CalendarPicker/PickersSlideTransition.d.ts +16 -16
  14. package/CalendarPicker/PickersSlideTransition.js +1 -3
  15. package/CalendarPicker/index.d.ts +5 -5
  16. package/CalendarPicker/shared.d.ts +1 -1
  17. package/CalendarPicker/useCalendarState.d.ts +32 -32
  18. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +41 -41
  19. package/CalendarPickerSkeleton/index.d.ts +3 -3
  20. package/ClockPicker/Clock.d.ts +28 -28
  21. package/ClockPicker/Clock.js +6 -18
  22. package/ClockPicker/ClockNumber.d.ts +19 -19
  23. package/ClockPicker/ClockNumber.js +1 -3
  24. package/ClockPicker/ClockNumbers.d.ts +24 -24
  25. package/ClockPicker/ClockPicker.d.ts +121 -121
  26. package/ClockPicker/ClockPickerStandalone.d.ts +28 -28
  27. package/ClockPicker/ClockPointer.d.ts +23 -23
  28. package/ClockPicker/ClockPointer.js +2 -6
  29. package/ClockPicker/index.d.ts +5 -5
  30. package/ClockPicker/shared.d.ts +5 -5
  31. package/DatePicker/DatePicker.d.ts +27 -27
  32. package/DatePicker/DatePickerToolbar.d.ts +23 -23
  33. package/DatePicker/DatePickerToolbar.js +2 -6
  34. package/DatePicker/index.d.ts +2 -2
  35. package/DatePicker/shared.d.ts +45 -45
  36. package/DateRangePicker/DateRangePicker.d.ts +65 -65
  37. package/DateRangePicker/DateRangePickerInput.d.ts +35 -35
  38. package/DateRangePicker/DateRangePickerInput.js +1 -3
  39. package/DateRangePicker/DateRangePickerToolbar.d.ts +15 -15
  40. package/DateRangePicker/DateRangePickerToolbar.js +2 -6
  41. package/DateRangePicker/DateRangePickerView.d.ts +44 -44
  42. package/DateRangePicker/DateRangePickerViewDesktop.d.ts +29 -29
  43. package/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
  44. package/DateRangePicker/DateRangePickerViewMobile.d.ts +17 -17
  45. package/DateRangePicker/RangeTypes.d.ts +8 -8
  46. package/DateRangePicker/date-range-manager.d.ts +14 -14
  47. package/DateRangePicker/index.d.ts +3 -3
  48. package/DateRangePickerDay/DateRangePickerDay.d.ts +79 -79
  49. package/DateRangePickerDay/index.d.ts +2 -2
  50. package/DateTimePicker/DateTimePicker.d.ts +27 -27
  51. package/DateTimePicker/DateTimePickerTabs.d.ts +13 -13
  52. package/DateTimePicker/DateTimePickerTabs.js +2 -4
  53. package/DateTimePicker/DateTimePickerToolbar.d.ts +7 -7
  54. package/DateTimePicker/DateTimePickerToolbar.js +4 -12
  55. package/DateTimePicker/index.d.ts +2 -2
  56. package/DateTimePicker/shared.d.ts +67 -67
  57. package/DesktopDatePicker/DesktopDatePicker.d.ts +20 -20
  58. package/DesktopDatePicker/index.d.ts +2 -2
  59. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +64 -64
  60. package/DesktopDateRangePicker/index.d.ts +2 -2
  61. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +20 -20
  62. package/DesktopDateTimePicker/index.d.ts +2 -2
  63. package/DesktopTimePicker/DesktopTimePicker.d.ts +20 -20
  64. package/DesktopTimePicker/index.d.ts +2 -2
  65. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  66. package/LocalizationProvider/LocalizationProvider.d.ts +35 -35
  67. package/LocalizationProvider/index.d.ts +2 -2
  68. package/Masonry/masonryClasses.d.ts +8 -8
  69. package/MobileDatePicker/MobileDatePicker.d.ts +20 -20
  70. package/MobileDatePicker/index.d.ts +2 -2
  71. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +64 -64
  72. package/MobileDateRangePicker/index.d.ts +2 -2
  73. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +20 -20
  74. package/MobileDateTimePicker/index.d.ts +2 -2
  75. package/MobileTimePicker/MobileTimePicker.d.ts +20 -20
  76. package/MobileTimePicker/index.d.ts +2 -2
  77. package/MonthPicker/MonthPicker.d.ts +53 -53
  78. package/MonthPicker/PickersMonth.d.ts +15 -15
  79. package/MonthPicker/PickersMonth.js +1 -3
  80. package/MonthPicker/index.d.ts +3 -3
  81. package/PickersDay/PickersDay.d.ts +93 -93
  82. package/PickersDay/index.d.ts +4 -4
  83. package/StaticDatePicker/StaticDatePicker.d.ts +25 -25
  84. package/StaticDatePicker/index.d.ts +2 -2
  85. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +67 -67
  86. package/StaticDateRangePicker/index.d.ts +2 -2
  87. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +25 -25
  88. package/StaticDateTimePicker/index.d.ts +2 -2
  89. package/StaticTimePicker/StaticTimePicker.d.ts +25 -25
  90. package/StaticTimePicker/index.d.ts +2 -2
  91. package/TabPanel/tabPanelClasses.d.ts +8 -8
  92. package/TimePicker/TimePicker.d.ts +27 -27
  93. package/TimePicker/TimePickerToolbar.d.ts +23 -23
  94. package/TimePicker/TimePickerToolbar.js +4 -12
  95. package/TimePicker/index.d.ts +2 -2
  96. package/TimePicker/shared.d.ts +36 -36
  97. package/Timeline/Timeline.d.ts +59 -59
  98. package/Timeline/TimelineContext.d.ts +6 -6
  99. package/Timeline/index.d.ts +5 -5
  100. package/Timeline/timelineClasses.d.ts +3 -3
  101. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  102. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  103. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  104. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  105. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  106. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  107. package/TreeItem/treeItemClasses.d.ts +24 -24
  108. package/TreeView/TreeView.js +4 -0
  109. package/TreeView/treeViewClasses.d.ts +8 -8
  110. package/YearPicker/PickersYear.d.ts +28 -28
  111. package/YearPicker/PickersYear.js +2 -6
  112. package/YearPicker/YearPicker.d.ts +44 -44
  113. package/YearPicker/index.d.ts +5 -5
  114. package/YearPicker/yearPickerClasses.d.ts +3 -3
  115. package/index.js +1 -1
  116. package/internal/pickers/KeyboardDateInput.d.ts +4 -4
  117. package/internal/pickers/Picker/Picker.d.ts +33 -33
  118. package/internal/pickers/Picker/Picker.js +1 -3
  119. package/internal/pickers/Picker/PickerView.d.ts +3 -3
  120. package/internal/pickers/PickersArrowSwitcher.d.ts +41 -41
  121. package/internal/pickers/PickersArrowSwitcher.js +2 -6
  122. package/internal/pickers/PickersModalDialog.d.ts +47 -47
  123. package/internal/pickers/PickersModalDialog.js +3 -9
  124. package/internal/pickers/PickersPopper.d.ts +33 -33
  125. package/internal/pickers/PickersPopper.js +2 -6
  126. package/internal/pickers/PickersToolbar.d.ts +14 -14
  127. package/internal/pickers/PickersToolbar.js +2 -6
  128. package/internal/pickers/PickersToolbarButton.d.ts +13 -13
  129. package/internal/pickers/PickersToolbarButton.js +1 -3
  130. package/internal/pickers/PickersToolbarText.d.ts +8 -8
  131. package/internal/pickers/PickersToolbarText.js +1 -3
  132. package/internal/pickers/PureDateInput.d.ts +80 -80
  133. package/internal/pickers/constants/dimensions.d.ts +4 -4
  134. package/internal/pickers/constants/prop-types.d.ts +1 -1
  135. package/internal/pickers/date-time-utils.d.ts +8 -8
  136. package/internal/pickers/date-utils.d.ts +52 -52
  137. package/internal/pickers/hooks/date-helpers-hooks.d.ts +16 -16
  138. package/internal/pickers/hooks/useIsLandscape.d.ts +4 -4
  139. package/internal/pickers/hooks/useMaskedInput.d.ts +7 -7
  140. package/internal/pickers/hooks/useOpenState.d.ts +10 -10
  141. package/internal/pickers/hooks/usePickerState.d.ts +38 -38
  142. package/internal/pickers/hooks/useUtils.d.ts +7 -7
  143. package/internal/pickers/hooks/useValidation.d.ts +23 -23
  144. package/internal/pickers/hooks/useViews.d.ts +19 -19
  145. package/internal/pickers/text-field-helper.d.ts +11 -11
  146. package/internal/pickers/time-utils.d.ts +33 -33
  147. package/internal/pickers/typings/BasePicker.d.ts +95 -95
  148. package/internal/pickers/typings/Views.d.ts +1 -1
  149. package/internal/pickers/typings/helpers.d.ts +9 -9
  150. package/internal/pickers/utils.d.ts +7 -7
  151. package/internal/pickers/wrappers/DesktopTooltipWrapper.d.ts +4 -4
  152. package/internal/pickers/wrappers/DesktopWrapper.d.ts +16 -16
  153. package/internal/pickers/wrappers/MobileWrapper.d.ts +14 -14
  154. package/internal/pickers/wrappers/PickerStaticWrapper.d.ts +21 -21
  155. package/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
  156. package/internal/pickers/wrappers/ResponsiveWrapper.d.ts +23 -23
  157. package/internal/pickers/wrappers/WrapperProps.d.ts +13 -13
  158. package/internal/pickers/wrappers/WrapperVariantContext.d.ts +11 -11
  159. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  160. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  161. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  162. package/internal/svg-icons/Calendar.d.ts +7 -7
  163. package/internal/svg-icons/Clock.d.ts +7 -7
  164. package/internal/svg-icons/DateRange.d.ts +7 -7
  165. package/internal/svg-icons/Pen.d.ts +7 -7
  166. package/internal/svg-icons/Time.d.ts +7 -7
  167. package/legacy/CalendarPicker/PickersCalendar.js +6 -18
  168. package/legacy/CalendarPicker/PickersCalendarHeader.js +5 -15
  169. package/legacy/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
  170. package/legacy/CalendarPicker/PickersSlideTransition.js +1 -3
  171. package/legacy/ClockPicker/Clock.js +6 -18
  172. package/legacy/ClockPicker/ClockNumber.js +1 -3
  173. package/legacy/ClockPicker/ClockPointer.js +2 -6
  174. package/legacy/DatePicker/DatePickerToolbar.js +2 -6
  175. package/legacy/DateRangePicker/DateRangePickerInput.js +1 -3
  176. package/legacy/DateRangePicker/DateRangePickerToolbar.js +2 -6
  177. package/legacy/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
  178. package/legacy/DateTimePicker/DateTimePickerTabs.js +2 -4
  179. package/legacy/DateTimePicker/DateTimePickerToolbar.js +4 -12
  180. package/legacy/MonthPicker/PickersMonth.js +1 -3
  181. package/legacy/TimePicker/TimePickerToolbar.js +4 -12
  182. package/legacy/TreeView/TreeView.js +4 -0
  183. package/legacy/YearPicker/PickersYear.js +2 -6
  184. package/legacy/index.js +1 -1
  185. package/legacy/internal/pickers/Picker/Picker.js +1 -3
  186. package/legacy/internal/pickers/PickersArrowSwitcher.js +2 -6
  187. package/legacy/internal/pickers/PickersModalDialog.js +3 -9
  188. package/legacy/internal/pickers/PickersPopper.js +2 -6
  189. package/legacy/internal/pickers/PickersToolbar.js +2 -6
  190. package/legacy/internal/pickers/PickersToolbarButton.js +1 -3
  191. package/legacy/internal/pickers/PickersToolbarText.js +1 -3
  192. package/legacy/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
  193. package/modern/CalendarPicker/PickersCalendar.js +6 -18
  194. package/modern/CalendarPicker/PickersCalendarHeader.js +5 -15
  195. package/modern/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
  196. package/modern/CalendarPicker/PickersSlideTransition.js +1 -3
  197. package/modern/ClockPicker/Clock.js +6 -18
  198. package/modern/ClockPicker/ClockNumber.js +1 -3
  199. package/modern/ClockPicker/ClockPointer.js +2 -6
  200. package/modern/DatePicker/DatePickerToolbar.js +2 -6
  201. package/modern/DateRangePicker/DateRangePickerInput.js +1 -3
  202. package/modern/DateRangePicker/DateRangePickerToolbar.js +2 -6
  203. package/modern/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
  204. package/modern/DateTimePicker/DateTimePickerTabs.js +2 -4
  205. package/modern/DateTimePicker/DateTimePickerToolbar.js +4 -12
  206. package/modern/MonthPicker/PickersMonth.js +1 -3
  207. package/modern/TimePicker/TimePickerToolbar.js +4 -12
  208. package/modern/TreeView/TreeView.js +4 -0
  209. package/modern/YearPicker/PickersYear.js +2 -6
  210. package/modern/index.js +1 -1
  211. package/modern/internal/pickers/Picker/Picker.js +1 -3
  212. package/modern/internal/pickers/PickersArrowSwitcher.js +2 -6
  213. package/modern/internal/pickers/PickersModalDialog.js +3 -9
  214. package/modern/internal/pickers/PickersPopper.js +2 -6
  215. package/modern/internal/pickers/PickersToolbar.js +2 -6
  216. package/modern/internal/pickers/PickersToolbarButton.js +1 -3
  217. package/modern/internal/pickers/PickersToolbarText.js +1 -3
  218. package/modern/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
  219. package/node/CalendarPicker/PickersCalendar.js +6 -18
  220. package/node/CalendarPicker/PickersCalendarHeader.js +5 -15
  221. package/node/CalendarPicker/PickersFadeTransitionGroup.js +1 -3
  222. package/node/CalendarPicker/PickersSlideTransition.js +1 -3
  223. package/node/ClockPicker/Clock.js +6 -18
  224. package/node/ClockPicker/ClockNumber.js +1 -3
  225. package/node/ClockPicker/ClockPointer.js +2 -6
  226. package/node/DatePicker/DatePickerToolbar.js +2 -6
  227. package/node/DateRangePicker/DateRangePickerInput.js +1 -3
  228. package/node/DateRangePicker/DateRangePickerToolbar.js +2 -6
  229. package/node/DateRangePicker/DateRangePickerViewDesktop.js +4 -12
  230. package/node/DateTimePicker/DateTimePickerTabs.js +2 -4
  231. package/node/DateTimePicker/DateTimePickerToolbar.js +4 -12
  232. package/node/MonthPicker/PickersMonth.js +1 -3
  233. package/node/TimePicker/TimePickerToolbar.js +4 -12
  234. package/node/TreeView/TreeView.js +4 -0
  235. package/node/YearPicker/PickersYear.js +2 -6
  236. package/node/index.js +1 -1
  237. package/node/internal/pickers/Picker/Picker.js +1 -3
  238. package/node/internal/pickers/PickersArrowSwitcher.js +2 -6
  239. package/node/internal/pickers/PickersModalDialog.js +3 -9
  240. package/node/internal/pickers/PickersPopper.js +2 -6
  241. package/node/internal/pickers/PickersToolbar.js +2 -6
  242. package/node/internal/pickers/PickersToolbarButton.js +1 -3
  243. package/node/internal/pickers/PickersToolbarText.js +1 -3
  244. package/node/internal/pickers/wrappers/PickerStaticWrapper.js +1 -2
  245. package/package.json +3 -3
@@ -1 +1 @@
1
- export { default } from '@date-io/date-fns';
1
+ export { default } from '@date-io/date-fns';
@@ -1 +1 @@
1
- export { default } from '@date-io/dayjs';
1
+ export { default } from '@date-io/dayjs';
@@ -1 +1 @@
1
- export { default } from '@date-io/luxon';
1
+ export { default } from '@date-io/luxon';
@@ -1 +1 @@
1
- export { default } from '@date-io/moment';
1
+ export { default } from '@date-io/moment';
package/CHANGELOG.md CHANGED
@@ -1,5 +1,89 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.4.0
4
+
5
+ <!-- generated comparing v5.3.1..master -->
6
+
7
+ _Feb 1, 2022_
8
+
9
+ A big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🛠 @goncalovf added an example project using [MUI with Vite.js](https://github.com/mui-org/material-ui/tree/master/examples/vitejs) (#28241)
12
+ - Number of 🐛 bug fixes and 📚 documentation improvements.
13
+
14
+ ### `@mui/material@5.4.0`
15
+
16
+ #### Breaking changes
17
+
18
+ - &#8203;<!-- 27 -->[core] Do not reexport Base from Material (#30853) @michaldudak
19
+
20
+ All Base components were exported from the `@mui/material` package and treated as stable even though the `@mui/base` package is in development. It could create a lot of confusion if developers start using Base components, depend on them, and demand quality found in "proper" Material components. We admit it was a mistake to reexport these components without marking them as unstable.
21
+
22
+ Developers are still encouraged to evaluate the Base components, but they should do so by explicitly installing the `@mui/base` package.
23
+
24
+ This is technically a breaking change as it removes a number of components from the `@mui/material` package. However, we believe that removing the components now and potentially breaking the codebases will do less harm than introducing "silent" breaking changes to Base components while continuing reexporting them from `@mui/material`.
25
+
26
+ Note: the utility components, such as ClickAwayListener, NoSsr, Portal, and TextareaAutosize continue to be exported from both `@mui/material` and `@mui/base`.
27
+
28
+ If you're encountering build errors after upgrading @mui/material, do the following:
29
+
30
+ 1. Install @mui/base: npm install @mui/base or yarn add @mui/base
31
+ 2. Make sure the version of @mui/base match the version of @mui/material
32
+ 3. Change the import paths of unstyled components from @mui/material to @mui/base, e.g.:
33
+
34
+ ```diff
35
+ - @import ButtonUnstyled from '@mui/material/ButtonUnstyled';
36
+ + @import ButtonUnstyled from '@mui/base/ButtonUnstyled';
37
+ ```
38
+
39
+ #### Changes
40
+
41
+ - &#8203;<!-- 30 -->[Autocomplete] Add `readOnly` prop (#30706) @ZeeshanTamboli
42
+ - &#8203;<!-- 29 -->[Autocomplete] Fix typos in the page (#30737) @austinewuncler
43
+ - &#8203;<!-- 14 -->[FormControlLabel][formgroup] add Mui-error class (#30656) @alisasanib
44
+ - &#8203;<!-- 13 -->[Grid] Fix prop check for applying wrap-reverse (#30813) @Hubbz
45
+ - &#8203;<!-- 07 -->[TextField] Remove notch when no label is added (#30560) @alisasanib
46
+ - &#8203;<!-- 06 -->[TextField] Remove usage of dangerouslySetInnerHTML (#30776) @Jack-Works
47
+ - &#8203;<!-- 05 -->[TreeView] Select node when key `Enter` is pressed (#30795) @dryrainbow
48
+ - &#8203;<!-- 04 -->[useMediaQuery] Ensure no tearing in React 18 (#30655) @eps1lon
49
+
50
+ ### `@mui/base@5.0.0-alpha.67`
51
+
52
+ - &#8203;<!-- 11 -->[SelectUnstyled] Create unstyled select (+ hook) (#30113) @michaldudak
53
+
54
+ ### `@mui/lab@5.0.0-alpha.67`
55
+
56
+ - &#8203;<!-- 23 -->[DateTimePicker] Fix month view highlight wrong tab (#30773) @DiegoYungh
57
+ - &#8203;<!-- 12 -->[pickers] Enable the sx props on all components (#30749) @boutahlilsoufiane
58
+
59
+ ### Docs
60
+
61
+ - &#8203;<!-- 28 -->[blog] Introducing callback support in style overrides (#30668) @siriwatknp
62
+ - &#8203;<!-- 23 -->[docs] Add notifications for the blog posts (#30852) @siriwatknp
63
+ - &#8203;<!-- 22 -->[docs] Improve the interoperability guide (#30785) @mnajdova
64
+ - &#8203;<!-- 21 -->[docs] Improve the Getting Started documentation content (#30808) @mnajdova
65
+ - &#8203;<!-- 20 -->[docs] Fix typo in ad fallback (#30823) @cherniavskii
66
+ - &#8203;<!-- 19 -->[docs] Change ThemeProvider API links (#30705) @atakanzen
67
+ - &#8203;<!-- 18 -->[docs] Retain vendor prefixing in rtl example (#30710) @ryancogswell
68
+ - &#8203;<!-- 17 -->[docs] Fix typo in the Popper ScrollPlayground demo (#30780) @tanyabouman
69
+ - &#8203;<!-- 16 -->[docs] Small fixes on the jss-to-tss migration guide (#30734) @garronej
70
+ - &#8203;<!-- 15 -->[examples] Add Vite.js example (#28241) @goncalovf
71
+
72
+ ### Core
73
+
74
+ - &#8203;<!-- 29 -->[core] Clarify the label, to match with MUI X (#30831) @oliviertassinari
75
+ - &#8203;<!-- 26 -->[core] Remove none code related instructions from git (#30843) @oliviertassinari
76
+ - &#8203;<!-- 25 -->[core] Fix typos in comments for scripts (#30809) @aefox
77
+ - &#8203;<!-- 24 -->[core] Fix 301 link in the blog @oliviertassinari
78
+ - &#8203;<!-- 10 -->[test] Fix tests on Node 16 (#30819) @michaldudak
79
+ - &#8203;<!-- 09 -->[test] Add explicit types to support noImplicityAny=false (#30798) @m4theushw
80
+ - &#8203;<!-- 08 -->[test] Support React.useId format in \*DescriptionOf (#30657) @eps1lon
81
+ - &#8203;<!-- 03 -->[website] Fix SEO issues (#30829) @oliviertassinari
82
+ - &#8203;<!-- 02 -->[website] Add designer position page (#30708) @danilo-leal
83
+ - &#8203;<!-- 01 -->[website] Polish /about page (#30747) @oliviertassinari
84
+
85
+ All contributors of this release in alphabetical order: @aefox, @alisasanib, @atakanzen, @austinewuncler, @boutahlilsoufiane, @cherniavskii, @danilo-leal, @DiegoYungh, @dryrainbow, @eps1lon, @garronej, @goncalovf, @Hubbz, @Jack-Works, @m4theushw, @michaldudak, @mnajdova, @oliviertassinari, @ryancogswell, @siriwatknp, @tanyabouman, @ZeeshanTamboli
86
+
3
87
  ## 5.3.1
4
88
 
5
89
  <!-- generated comparing v5.3.0..master -->
@@ -1,106 +1,106 @@
1
- import * as React from 'react';
2
- import { ExportedCalendarProps } from './PickersCalendar';
3
- import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
- import { ExportedCalendarHeaderProps } from './PickersCalendarHeader';
5
- import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
6
- import { CalendarPickerView } from './shared';
7
- export interface CalendarPickerClasses {
8
- /** Styles applied to the root element. */
9
- root: string;
10
- /** Styles applied to the transition group element. */
11
- viewTransitionContainer: string;
12
- }
13
- export declare type CalendarPickerClassKey = keyof CalendarPickerClasses;
14
- export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>, ExportedYearPickerProps<TDate>, ExportedCalendarHeaderProps<TDate> {
15
- className?: string;
16
- date: TDate | null;
17
- /**
18
- * Default calendar month displayed when `value={null}`.
19
- */
20
- defaultCalendarMonth?: TDate;
21
- /**
22
- * If `true`, the picker and text field are disabled.
23
- * @default false
24
- */
25
- disabled?: boolean;
26
- /**
27
- * @default false
28
- */
29
- disableFuture?: boolean;
30
- /**
31
- * @default false
32
- */
33
- disablePast?: boolean;
34
- /**
35
- * Max selectable date. @DateIOType
36
- */
37
- maxDate?: TDate;
38
- /**
39
- * Min selectable date. @DateIOType
40
- */
41
- minDate?: TDate;
42
- /**
43
- * Callback fired on view change.
44
- */
45
- onViewChange?: (view: CalendarPickerView) => void;
46
- /**
47
- * Callback fired on date change
48
- */
49
- onChange: PickerOnChangeFn<TDate>;
50
- /**
51
- * Callback firing on month change. @DateIOType
52
- */
53
- onMonthChange?: (date: TDate) => void;
54
- /**
55
- * Initially open view.
56
- * @default 'day'
57
- */
58
- openTo?: CalendarPickerView;
59
- /**
60
- * Make picker read only.
61
- * @default false
62
- */
63
- readOnly?: boolean;
64
- /**
65
- * Disable heavy animations.
66
- * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
67
- */
68
- reduceAnimations?: boolean;
69
- /**
70
- * Component displaying when passed `loading` true.
71
- * @default () => <span data-mui-test="loading-progress">...</span>
72
- */
73
- renderLoading?: () => React.ReactNode;
74
- /**
75
- * Disable specific date. @DateIOType
76
- */
77
- shouldDisableDate?: (day: TDate) => boolean;
78
- /**
79
- * Controlled open view.
80
- */
81
- view?: CalendarPickerView;
82
- /**
83
- * Views for calendar picker.
84
- * @default ['year', 'day']
85
- */
86
- views?: readonly CalendarPickerView[];
87
- }
88
- export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
89
- interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
90
- classes?: Partial<CalendarPickerClasses>;
91
- }
92
- export declare function getCalendarPickerUtilityClass(slot: string): string;
93
- export declare const calendarPickerClasses: CalendarPickerClasses;
94
- export declare const defaultReduceAnimations: boolean;
95
- declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
96
- /**
97
- *
98
- * Demos:
99
- *
100
- * - [Date Picker](https://mui.com/components/date-picker/)
101
- *
102
- * API:
103
- *
104
- * - [CalendarPicker API](https://mui.com/api/calendar-picker/)
105
- */
106
- export default _default;
1
+ import * as React from 'react';
2
+ import { ExportedCalendarProps } from './PickersCalendar';
3
+ import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
+ import { ExportedCalendarHeaderProps } from './PickersCalendarHeader';
5
+ import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
6
+ import { CalendarPickerView } from './shared';
7
+ export interface CalendarPickerClasses {
8
+ /** Styles applied to the root element. */
9
+ root: string;
10
+ /** Styles applied to the transition group element. */
11
+ viewTransitionContainer: string;
12
+ }
13
+ export declare type CalendarPickerClassKey = keyof CalendarPickerClasses;
14
+ export interface CalendarPickerProps<TDate> extends ExportedCalendarProps<TDate>, ExportedYearPickerProps<TDate>, ExportedCalendarHeaderProps<TDate> {
15
+ className?: string;
16
+ date: TDate | null;
17
+ /**
18
+ * Default calendar month displayed when `value={null}`.
19
+ */
20
+ defaultCalendarMonth?: TDate;
21
+ /**
22
+ * If `true`, the picker and text field are disabled.
23
+ * @default false
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * @default false
28
+ */
29
+ disableFuture?: boolean;
30
+ /**
31
+ * @default false
32
+ */
33
+ disablePast?: boolean;
34
+ /**
35
+ * Max selectable date. @DateIOType
36
+ */
37
+ maxDate?: TDate;
38
+ /**
39
+ * Min selectable date. @DateIOType
40
+ */
41
+ minDate?: TDate;
42
+ /**
43
+ * Callback fired on view change.
44
+ */
45
+ onViewChange?: (view: CalendarPickerView) => void;
46
+ /**
47
+ * Callback fired on date change
48
+ */
49
+ onChange: PickerOnChangeFn<TDate>;
50
+ /**
51
+ * Callback firing on month change. @DateIOType
52
+ */
53
+ onMonthChange?: (date: TDate) => void;
54
+ /**
55
+ * Initially open view.
56
+ * @default 'day'
57
+ */
58
+ openTo?: CalendarPickerView;
59
+ /**
60
+ * Make picker read only.
61
+ * @default false
62
+ */
63
+ readOnly?: boolean;
64
+ /**
65
+ * Disable heavy animations.
66
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
67
+ */
68
+ reduceAnimations?: boolean;
69
+ /**
70
+ * Component displaying when passed `loading` true.
71
+ * @default () => <span data-mui-test="loading-progress">...</span>
72
+ */
73
+ renderLoading?: () => React.ReactNode;
74
+ /**
75
+ * Disable specific date. @DateIOType
76
+ */
77
+ shouldDisableDate?: (day: TDate) => boolean;
78
+ /**
79
+ * Controlled open view.
80
+ */
81
+ view?: CalendarPickerView;
82
+ /**
83
+ * Views for calendar picker.
84
+ * @default ['year', 'day']
85
+ */
86
+ views?: readonly CalendarPickerView[];
87
+ }
88
+ export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className'>;
89
+ interface CalendarPickerPropsWithClasses<TDate> extends CalendarPickerProps<TDate> {
90
+ classes?: Partial<CalendarPickerClasses>;
91
+ }
92
+ export declare function getCalendarPickerUtilityClass(slot: string): string;
93
+ export declare const calendarPickerClasses: CalendarPickerClasses;
94
+ export declare const defaultReduceAnimations: boolean;
95
+ declare const _default: <TDate>(props: CalendarPickerPropsWithClasses<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
96
+ /**
97
+ *
98
+ * Demos:
99
+ *
100
+ * - [Date Picker](https://mui.com/components/date-picker/)
101
+ *
102
+ * API:
103
+ *
104
+ * - [CalendarPicker API](https://mui.com/api/calendar-picker/)
105
+ */
106
+ export default _default;
@@ -1,47 +1,47 @@
1
- import * as React from 'react';
2
- import { PickersDayProps } from '../PickersDay/PickersDay';
3
- import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
- import { SlideDirection, SlideTransitionProps } from './PickersSlideTransition';
5
- export interface ExportedCalendarProps<TDate> extends Pick<PickersDayProps<TDate>, 'disableHighlightToday' | 'showDaysOutsideCurrentMonth' | 'allowSameDateSelection'> {
6
- autoFocus?: boolean;
7
- /**
8
- * If `true` renders `LoadingComponent` in calendar instead of calendar view.
9
- * Can be used to preload information and show it in calendar.
10
- * @default false
11
- */
12
- loading?: boolean;
13
- /**
14
- * Calendar onChange.
15
- */
16
- onChange: PickerOnChangeFn<TDate>;
17
- /**
18
- * Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
19
- */
20
- renderDay?: (day: TDate, selectedDates: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element;
21
- /**
22
- * Component displaying when passed `loading` true.
23
- * @default () => "..."
24
- */
25
- renderLoading?: () => React.ReactNode;
26
- }
27
- export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate> {
28
- autoFocus?: boolean;
29
- className?: string;
30
- currentMonth: TDate;
31
- date: TDate | [TDate | null, TDate | null] | null;
32
- disabled?: boolean;
33
- focusedDay: TDate | null;
34
- isDateDisabled: (day: TDate) => boolean;
35
- isMonthSwitchingAnimating: boolean;
36
- onFocusedDayChange: (newFocusedDay: TDate) => void;
37
- onMonthSwitchingAnimationEnd: () => void;
38
- readOnly?: boolean;
39
- reduceAnimations: boolean;
40
- slideDirection: SlideDirection;
41
- TransitionProps?: Partial<SlideTransitionProps>;
42
- }
43
- /**
44
- * @ignore - do not document.
45
- */
46
- declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
47
- export default PickersCalendar;
1
+ import * as React from 'react';
2
+ import { PickersDayProps } from '../PickersDay/PickersDay';
3
+ import { PickerOnChangeFn } from '../internal/pickers/hooks/useViews';
4
+ import { SlideDirection, SlideTransitionProps } from './PickersSlideTransition';
5
+ export interface ExportedCalendarProps<TDate> extends Pick<PickersDayProps<TDate>, 'disableHighlightToday' | 'showDaysOutsideCurrentMonth' | 'allowSameDateSelection'> {
6
+ autoFocus?: boolean;
7
+ /**
8
+ * If `true` renders `LoadingComponent` in calendar instead of calendar view.
9
+ * Can be used to preload information and show it in calendar.
10
+ * @default false
11
+ */
12
+ loading?: boolean;
13
+ /**
14
+ * Calendar onChange.
15
+ */
16
+ onChange: PickerOnChangeFn<TDate>;
17
+ /**
18
+ * Custom renderer for day. Check the [PickersDay](https://mui.com/api/pickers-day/) component.
19
+ */
20
+ renderDay?: (day: TDate, selectedDates: Array<TDate | null>, pickersDayProps: PickersDayProps<TDate>) => JSX.Element;
21
+ /**
22
+ * Component displaying when passed `loading` true.
23
+ * @default () => "..."
24
+ */
25
+ renderLoading?: () => React.ReactNode;
26
+ }
27
+ export interface PickersCalendarProps<TDate> extends ExportedCalendarProps<TDate> {
28
+ autoFocus?: boolean;
29
+ className?: string;
30
+ currentMonth: TDate;
31
+ date: TDate | [TDate | null, TDate | null] | null;
32
+ disabled?: boolean;
33
+ focusedDay: TDate | null;
34
+ isDateDisabled: (day: TDate) => boolean;
35
+ isMonthSwitchingAnimating: boolean;
36
+ onFocusedDayChange: (newFocusedDay: TDate) => void;
37
+ onMonthSwitchingAnimationEnd: () => void;
38
+ readOnly?: boolean;
39
+ reduceAnimations: boolean;
40
+ slideDirection: SlideDirection;
41
+ TransitionProps?: Partial<SlideTransitionProps>;
42
+ }
43
+ /**
44
+ * @ignore - do not document.
45
+ */
46
+ declare function PickersCalendar<TDate>(props: PickersCalendarProps<TDate>): JSX.Element;
47
+ export default PickersCalendar;
@@ -12,16 +12,12 @@ import SlideTransition from './PickersSlideTransition';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const weeksContainerHeight = (DAY_SIZE + DAY_MARGIN * 4) * 6;
15
- const PickersCalendarDayHeader = styled('div', {
16
- skipSx: true
17
- })({
15
+ const PickersCalendarDayHeader = styled('div')({
18
16
  display: 'flex',
19
17
  justifyContent: 'center',
20
18
  alignItems: 'center'
21
19
  });
22
- const PickersCalendarWeekDayLabel = styled(Typography, {
23
- skipSx: true
24
- })(({
20
+ const PickersCalendarWeekDayLabel = styled(Typography)(({
25
21
  theme
26
22
  }) => ({
27
23
  width: 36,
@@ -33,27 +29,19 @@ const PickersCalendarWeekDayLabel = styled(Typography, {
33
29
  alignItems: 'center',
34
30
  color: theme.palette.text.secondary
35
31
  }));
36
- const PickersCalendarLoadingContainer = styled('div', {
37
- skipSx: true
38
- })({
32
+ const PickersCalendarLoadingContainer = styled('div')({
39
33
  display: 'flex',
40
34
  justifyContent: 'center',
41
35
  alignItems: 'center',
42
36
  minHeight: weeksContainerHeight
43
37
  });
44
- const PickersCalendarSlideTransition = styled(SlideTransition, {
45
- skipSx: true
46
- })({
38
+ const PickersCalendarSlideTransition = styled(SlideTransition)({
47
39
  minHeight: weeksContainerHeight
48
40
  });
49
- const PickersCalendarWeekContainer = styled('div', {
50
- skipSx: true
51
- })({
41
+ const PickersCalendarWeekContainer = styled('div')({
52
42
  overflow: 'hidden'
53
43
  });
54
- const PickersCalendarWeek = styled('div', {
55
- skipSx: true
56
- })({
44
+ const PickersCalendarWeek = styled('div')({
57
45
  margin: `${DAY_MARGIN}px 0`,
58
46
  display: 'flex',
59
47
  justifyContent: 'center'
@@ -1,43 +1,43 @@
1
- import * as React from 'react';
2
- import IconButton from '@mui/material/IconButton';
3
- import { SlideDirection } from './PickersSlideTransition';
4
- import { DateValidationProps } from '../internal/pickers/date-utils';
5
- import { ExportedArrowSwitcherProps } from '../internal/pickers/PickersArrowSwitcher';
6
- import { CalendarPickerView } from './shared';
7
- export declare type ExportedCalendarHeaderProps<TDate> = Pick<PickersCalendarHeaderProps<TDate>, 'components' | 'componentsProps' | 'getViewSwitchingButtonText' | 'leftArrowButtonText' | 'rightArrowButtonText'>;
8
- export interface PickersCalendarHeaderComponentsPropsOverides {
9
- }
10
- export interface PickersCalendarHeaderProps<TDate> extends ExportedArrowSwitcherProps, Omit<DateValidationProps<TDate>, 'shouldDisableDate'> {
11
- /**
12
- * The components used for each slot.
13
- * Either a string to use a HTML element or a component.
14
- * @default {}
15
- */
16
- components?: ExportedArrowSwitcherProps['components'] & {
17
- SwitchViewButton?: React.ElementType;
18
- SwitchViewIcon?: React.ElementType;
19
- };
20
- /**
21
- * The props used for each slot inside.
22
- * @default {}
23
- */
24
- componentsProps?: ExportedArrowSwitcherProps['componentsProps'] & {
25
- switchViewButton?: React.ComponentPropsWithRef<typeof IconButton> & PickersCalendarHeaderComponentsPropsOverides;
26
- };
27
- currentMonth: TDate;
28
- disabled?: boolean;
29
- views: readonly CalendarPickerView[];
30
- /**
31
- * Get aria-label text for switching between views button.
32
- */
33
- getViewSwitchingButtonText?: (currentView: CalendarPickerView) => string;
34
- onMonthChange: (date: TDate, slideDirection: SlideDirection) => void;
35
- openView: CalendarPickerView;
36
- reduceAnimations: boolean;
37
- onViewChange?: (view: CalendarPickerView) => void;
38
- }
39
- /**
40
- * @ignore - do not document.
41
- */
42
- declare function PickersCalendarHeader<TDate>(props: PickersCalendarHeaderProps<TDate>): JSX.Element | null;
43
- export default PickersCalendarHeader;
1
+ import * as React from 'react';
2
+ import IconButton from '@mui/material/IconButton';
3
+ import { SlideDirection } from './PickersSlideTransition';
4
+ import { DateValidationProps } from '../internal/pickers/date-utils';
5
+ import { ExportedArrowSwitcherProps } from '../internal/pickers/PickersArrowSwitcher';
6
+ import { CalendarPickerView } from './shared';
7
+ export declare type ExportedCalendarHeaderProps<TDate> = Pick<PickersCalendarHeaderProps<TDate>, 'components' | 'componentsProps' | 'getViewSwitchingButtonText' | 'leftArrowButtonText' | 'rightArrowButtonText'>;
8
+ export interface PickersCalendarHeaderComponentsPropsOverides {
9
+ }
10
+ export interface PickersCalendarHeaderProps<TDate> extends ExportedArrowSwitcherProps, Omit<DateValidationProps<TDate>, 'shouldDisableDate'> {
11
+ /**
12
+ * The components used for each slot.
13
+ * Either a string to use a HTML element or a component.
14
+ * @default {}
15
+ */
16
+ components?: ExportedArrowSwitcherProps['components'] & {
17
+ SwitchViewButton?: React.ElementType;
18
+ SwitchViewIcon?: React.ElementType;
19
+ };
20
+ /**
21
+ * The props used for each slot inside.
22
+ * @default {}
23
+ */
24
+ componentsProps?: ExportedArrowSwitcherProps['componentsProps'] & {
25
+ switchViewButton?: React.ComponentPropsWithRef<typeof IconButton> & PickersCalendarHeaderComponentsPropsOverides;
26
+ };
27
+ currentMonth: TDate;
28
+ disabled?: boolean;
29
+ views: readonly CalendarPickerView[];
30
+ /**
31
+ * Get aria-label text for switching between views button.
32
+ */
33
+ getViewSwitchingButtonText?: (currentView: CalendarPickerView) => string;
34
+ onMonthChange: (date: TDate, slideDirection: SlideDirection) => void;
35
+ openView: CalendarPickerView;
36
+ reduceAnimations: boolean;
37
+ onViewChange?: (view: CalendarPickerView) => void;
38
+ }
39
+ /**
40
+ * @ignore - do not document.
41
+ */
42
+ declare function PickersCalendarHeader<TDate>(props: PickersCalendarHeaderProps<TDate>): JSX.Element | null;
43
+ export default PickersCalendarHeader;
@@ -11,9 +11,7 @@ import PickersArrowSwitcher from '../internal/pickers/PickersArrowSwitcher';
11
11
  import { usePreviousMonthDisabled, useNextMonthDisabled } from '../internal/pickers/hooks/date-helpers-hooks';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
- const PickersCalendarHeaderRoot = styled('div', {
15
- skipSx: true
16
- })({
14
+ const PickersCalendarHeaderRoot = styled('div')({
17
15
  display: 'flex',
18
16
  alignItems: 'center',
19
17
  marginTop: 16,
@@ -24,9 +22,7 @@ const PickersCalendarHeaderRoot = styled('div', {
24
22
  maxHeight: 30,
25
23
  minHeight: 30
26
24
  });
27
- const PickersCalendarHeaderLabel = styled('div', {
28
- skipSx: true
29
- })(({
25
+ const PickersCalendarHeaderLabel = styled('div')(({
30
26
  theme
31
27
  }) => _extends({
32
28
  display: 'flex',
@@ -38,19 +34,13 @@ const PickersCalendarHeaderLabel = styled('div', {
38
34
  }, theme.typography.body1, {
39
35
  fontWeight: theme.typography.fontWeightMedium
40
36
  }));
41
- const PickersCalendarHeaderLabelItem = styled('div', {
42
- skipSx: true
43
- })({
37
+ const PickersCalendarHeaderLabelItem = styled('div')({
44
38
  marginRight: 6
45
39
  });
46
- const PickersCalendarHeaderSwitchViewButton = styled(IconButton, {
47
- skipSx: true
48
- })({
40
+ const PickersCalendarHeaderSwitchViewButton = styled(IconButton)({
49
41
  marginRight: 'auto'
50
42
  });
51
- const PickersCalendarHeaderSwitchView = styled(ArrowDropDownIcon, {
52
- skipSx: true
53
- })(({
43
+ const PickersCalendarHeaderSwitchView = styled(ArrowDropDownIcon)(({
54
44
  theme,
55
45
  ownerState
56
46
  }) => _extends({
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
2
- interface FadeTransitionProps {
3
- children: React.ReactElement;
4
- className?: string;
5
- reduceAnimations: boolean;
6
- transKey: React.Key;
7
- }
8
- /**
9
- * @ignore - do not document.
10
- */
11
- declare const PickersFadeTransitionGroup: ({ children, className, reduceAnimations, transKey, }: FadeTransitionProps) => JSX.Element;
12
- export default PickersFadeTransitionGroup;
1
+ import * as React from 'react';
2
+ interface FadeTransitionProps {
3
+ children: React.ReactElement;
4
+ className?: string;
5
+ reduceAnimations: boolean;
6
+ transKey: React.Key;
7
+ }
8
+ /**
9
+ * @ignore - do not document.
10
+ */
11
+ declare const PickersFadeTransitionGroup: ({ children, className, reduceAnimations, transKey, }: FadeTransitionProps) => JSX.Element;
12
+ export default PickersFadeTransitionGroup;
@@ -7,9 +7,7 @@ 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
- const PickersFadeTransitionGroupRoot = styled(TransitionGroup, {
11
- skipSx: true
12
- })({
10
+ const PickersFadeTransitionGroupRoot = styled(TransitionGroup)({
13
11
  display: 'block',
14
12
  position: 'relative'
15
13
  });