@mui/x-date-pickers 7.0.0-alpha.2 → 7.0.0-alpha.4

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 (242) hide show
  1. package/AdapterDateFns/AdapterDateFns.js +10 -14
  2. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
  3. package/AdapterDayjs/AdapterDayjs.js +11 -8
  4. package/AdapterLuxon/AdapterLuxon.d.ts +28 -28
  5. package/AdapterLuxon/AdapterLuxon.js +29 -17
  6. package/AdapterMoment/AdapterMoment.d.ts +1 -1
  7. package/AdapterMoment/AdapterMoment.js +14 -14
  8. package/AdapterMomentHijri/AdapterMomentHijri.d.ts +0 -1
  9. package/AdapterMomentHijri/AdapterMomentHijri.js +1 -24
  10. package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +0 -2
  11. package/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -26
  12. package/CHANGELOG.md +364 -0
  13. package/DateCalendar/DateCalendar.js +2 -2
  14. package/DateCalendar/DayCalendar.d.ts +3 -3
  15. package/DateCalendar/useCalendarState.js +0 -1
  16. package/DatePicker/DatePicker.js +2 -2
  17. package/DateTimePicker/DateTimePicker.js +2 -2
  18. package/DesktopDatePicker/DesktopDatePicker.js +2 -2
  19. package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  20. package/MobileDatePicker/MobileDatePicker.js +2 -2
  21. package/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  22. package/MonthCalendar/MonthCalendar.js +0 -1
  23. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  24. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +3 -2
  25. package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  26. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  27. package/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  28. package/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  29. package/PickersShortcuts/PickersShortcuts.d.ts +1 -1
  30. package/PickersShortcuts/PickersShortcuts.js +1 -1
  31. package/README.md +0 -1
  32. package/StaticDatePicker/StaticDatePicker.js +2 -2
  33. package/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  34. package/TimeClock/Clock.js +0 -1
  35. package/TimeClock/ClockPointer.js +0 -1
  36. package/YearCalendar/YearCalendar.js +0 -1
  37. package/index.js +1 -1
  38. package/internals/components/PickersTextField/Outline.d.ts +8 -0
  39. package/internals/components/PickersTextField/Outline.js +97 -0
  40. package/internals/components/PickersTextField/PickersInput.d.ts +3 -0
  41. package/internals/components/PickersTextField/PickersInput.js +269 -0
  42. package/internals/components/PickersTextField/PickersInput.types.d.ts +45 -0
  43. package/internals/components/PickersTextField/PickersInput.types.js +1 -0
  44. package/internals/components/PickersTextField/PickersTextField.d.ts +3 -0
  45. package/internals/components/PickersTextField/PickersTextField.js +129 -0
  46. package/internals/components/PickersTextField/PickersTextField.types.d.ts +21 -0
  47. package/internals/components/PickersTextField/PickersTextField.types.js +1 -0
  48. package/internals/components/PickersTextField/index.d.ts +1 -0
  49. package/internals/components/PickersTextField/index.js +1 -0
  50. package/internals/components/PickersTextField/pickersTextFieldClasses.d.ts +46 -0
  51. package/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
  52. package/internals/constants/dimensions.d.ts +1 -1
  53. package/internals/constants/dimensions.js +1 -1
  54. package/internals/demo/DemoContainer.d.ts +4 -0
  55. package/internals/demo/DemoContainer.js +47 -19
  56. package/internals/hooks/useClockReferenceDate.js +0 -1
  57. package/internals/hooks/useField/useField.utils.js +23 -12
  58. package/internals/hooks/usePicker/usePickerValue.js +2 -6
  59. package/internals/hooks/usePicker/usePickerValue.types.d.ts +2 -2
  60. package/internals/hooks/useViews.js +0 -1
  61. package/legacy/AdapterDateFns/AdapterDateFns.js +10 -14
  62. package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
  63. package/legacy/AdapterDayjs/AdapterDayjs.js +11 -8
  64. package/legacy/AdapterLuxon/AdapterLuxon.js +30 -18
  65. package/legacy/AdapterMoment/AdapterMoment.js +326 -320
  66. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +4 -25
  67. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -30
  68. package/legacy/DateCalendar/DateCalendar.js +2 -2
  69. package/legacy/DateCalendar/useCalendarState.js +0 -1
  70. package/legacy/DatePicker/DatePicker.js +2 -2
  71. package/legacy/DateTimePicker/DateTimePicker.js +2 -2
  72. package/legacy/DesktopDatePicker/DesktopDatePicker.js +2 -2
  73. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  74. package/legacy/MobileDatePicker/MobileDatePicker.js +2 -2
  75. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  76. package/legacy/MonthCalendar/MonthCalendar.js +0 -1
  77. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  78. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  79. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  80. package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  81. package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  82. package/legacy/PickersShortcuts/PickersShortcuts.js +2 -1
  83. package/legacy/StaticDatePicker/StaticDatePicker.js +2 -2
  84. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  85. package/legacy/TimeClock/Clock.js +0 -1
  86. package/legacy/TimeClock/ClockPointer.js +0 -1
  87. package/legacy/YearCalendar/YearCalendar.js +0 -1
  88. package/legacy/index.js +1 -1
  89. package/legacy/internals/components/PickersTextField/Outline.js +97 -0
  90. package/legacy/internals/components/PickersTextField/PickersInput.js +277 -0
  91. package/legacy/internals/components/PickersTextField/PickersInput.types.js +1 -0
  92. package/legacy/internals/components/PickersTextField/PickersTextField.js +129 -0
  93. package/legacy/internals/components/PickersTextField/PickersTextField.types.js +1 -0
  94. package/legacy/internals/components/PickersTextField/index.js +1 -0
  95. package/legacy/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
  96. package/legacy/internals/constants/dimensions.js +1 -1
  97. package/legacy/internals/demo/DemoContainer.js +45 -19
  98. package/legacy/internals/hooks/useClockReferenceDate.js +0 -1
  99. package/legacy/internals/hooks/useField/useField.utils.js +23 -12
  100. package/legacy/internals/hooks/usePicker/usePickerValue.js +2 -6
  101. package/legacy/internals/hooks/useViews.js +0 -1
  102. package/legacy/locales/plPL.js +0 -1
  103. package/legacy/locales/svSE.js +0 -1
  104. package/legacy/locales/urPK.js +0 -1
  105. package/locales/beBY.d.ts +18 -5
  106. package/locales/caES.d.ts +18 -5
  107. package/locales/csCZ.d.ts +18 -5
  108. package/locales/daDK.d.ts +18 -5
  109. package/locales/deDE.d.ts +18 -5
  110. package/locales/elGR.d.ts +18 -5
  111. package/locales/enUS.d.ts +18 -5
  112. package/locales/esES.d.ts +18 -5
  113. package/locales/eu.d.ts +18 -5
  114. package/locales/faIR.d.ts +18 -5
  115. package/locales/fiFI.d.ts +18 -5
  116. package/locales/frFR.d.ts +18 -5
  117. package/locales/heIL.d.ts +18 -5
  118. package/locales/huHU.d.ts +18 -5
  119. package/locales/isIS.d.ts +18 -5
  120. package/locales/itIT.d.ts +18 -5
  121. package/locales/jaJP.d.ts +18 -5
  122. package/locales/koKR.d.ts +18 -5
  123. package/locales/kzKZ.d.ts +18 -5
  124. package/locales/mk.d.ts +18 -5
  125. package/locales/nbNO.d.ts +18 -5
  126. package/locales/nlNL.d.ts +18 -5
  127. package/locales/plPL.d.ts +18 -5
  128. package/locales/plPL.js +0 -1
  129. package/locales/ptBR.d.ts +18 -5
  130. package/locales/roRO.d.ts +18 -5
  131. package/locales/ruRU.d.ts +18 -5
  132. package/locales/skSK.d.ts +18 -5
  133. package/locales/svSE.d.ts +18 -5
  134. package/locales/svSE.js +0 -1
  135. package/locales/trTR.d.ts +18 -5
  136. package/locales/ukUA.d.ts +18 -5
  137. package/locales/urPK.d.ts +18 -5
  138. package/locales/urPK.js +0 -1
  139. package/locales/utils/getPickersLocalization.d.ts +18 -5
  140. package/locales/utils/pickersLocaleTextApi.d.ts +18 -5
  141. package/locales/viVN.d.ts +18 -5
  142. package/locales/zhCN.d.ts +18 -5
  143. package/locales/zhHK.d.ts +18 -5
  144. package/modern/AdapterDateFns/AdapterDateFns.js +10 -14
  145. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
  146. package/modern/AdapterDayjs/AdapterDayjs.js +11 -8
  147. package/modern/AdapterLuxon/AdapterLuxon.js +28 -17
  148. package/modern/AdapterMoment/AdapterMoment.js +14 -14
  149. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -24
  150. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -26
  151. package/modern/DateCalendar/DateCalendar.js +2 -2
  152. package/modern/DateCalendar/useCalendarState.js +0 -1
  153. package/modern/DatePicker/DatePicker.js +2 -2
  154. package/modern/DateTimePicker/DateTimePicker.js +2 -2
  155. package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -2
  156. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  157. package/modern/MobileDatePicker/MobileDatePicker.js +2 -2
  158. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  159. package/modern/MonthCalendar/MonthCalendar.js +0 -1
  160. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  161. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  162. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  163. package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  164. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  165. package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
  166. package/modern/StaticDatePicker/StaticDatePicker.js +2 -2
  167. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  168. package/modern/TimeClock/Clock.js +0 -1
  169. package/modern/TimeClock/ClockPointer.js +0 -1
  170. package/modern/YearCalendar/YearCalendar.js +0 -1
  171. package/modern/index.js +1 -1
  172. package/modern/internals/components/PickersTextField/Outline.js +97 -0
  173. package/modern/internals/components/PickersTextField/PickersInput.js +268 -0
  174. package/modern/internals/components/PickersTextField/PickersInput.types.js +1 -0
  175. package/modern/internals/components/PickersTextField/PickersTextField.js +129 -0
  176. package/modern/internals/components/PickersTextField/PickersTextField.types.js +1 -0
  177. package/modern/internals/components/PickersTextField/index.js +1 -0
  178. package/modern/internals/components/PickersTextField/pickersTextFieldClasses.js +9 -0
  179. package/modern/internals/constants/dimensions.js +1 -1
  180. package/modern/internals/demo/DemoContainer.js +47 -19
  181. package/modern/internals/hooks/useClockReferenceDate.js +0 -1
  182. package/modern/internals/hooks/useField/useField.utils.js +23 -12
  183. package/modern/internals/hooks/usePicker/usePickerValue.js +2 -6
  184. package/modern/internals/hooks/useViews.js +0 -1
  185. package/modern/locales/plPL.js +0 -1
  186. package/modern/locales/svSE.js +0 -1
  187. package/modern/locales/urPK.js +0 -1
  188. package/node/AdapterDateFns/AdapterDateFns.js +10 -14
  189. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +12 -16
  190. package/node/AdapterDayjs/AdapterDayjs.js +10 -7
  191. package/node/AdapterLuxon/AdapterLuxon.js +28 -17
  192. package/node/AdapterMoment/AdapterMoment.js +14 -14
  193. package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -24
  194. package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -26
  195. package/node/DateCalendar/DateCalendar.js +2 -2
  196. package/node/DateCalendar/useCalendarState.js +0 -1
  197. package/node/DatePicker/DatePicker.js +2 -2
  198. package/node/DateTimePicker/DateTimePicker.js +2 -2
  199. package/node/DesktopDatePicker/DesktopDatePicker.js +2 -2
  200. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
  201. package/node/MobileDatePicker/MobileDatePicker.js +2 -2
  202. package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
  203. package/node/MonthCalendar/MonthCalendar.js +0 -1
  204. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +2 -0
  205. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +2 -1
  206. package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +8 -2
  207. package/node/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +2 -2
  208. package/node/PickersCalendarHeader/PickersCalendarHeader.js +4 -4
  209. package/node/PickersShortcuts/PickersShortcuts.js +1 -1
  210. package/node/StaticDatePicker/StaticDatePicker.js +2 -2
  211. package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
  212. package/node/TimeClock/Clock.js +0 -1
  213. package/node/TimeClock/ClockPointer.js +0 -1
  214. package/node/YearCalendar/YearCalendar.js +0 -1
  215. package/node/index.js +1 -1
  216. package/node/internals/components/PickersTextField/Outline.js +106 -0
  217. package/node/internals/components/PickersTextField/PickersInput.js +276 -0
  218. package/node/internals/components/PickersTextField/PickersInput.types.js +5 -0
  219. package/node/internals/components/PickersTextField/PickersTextField.js +137 -0
  220. package/node/internals/components/PickersTextField/PickersTextField.types.js +5 -0
  221. package/node/internals/components/PickersTextField/index.js +12 -0
  222. package/node/internals/components/PickersTextField/pickersTextFieldClasses.js +17 -0
  223. package/node/internals/constants/dimensions.js +1 -1
  224. package/node/internals/demo/DemoContainer.js +47 -19
  225. package/node/internals/hooks/useClockReferenceDate.js +0 -1
  226. package/node/internals/hooks/useField/useField.utils.js +23 -12
  227. package/node/internals/hooks/usePicker/usePickerValue.js +2 -6
  228. package/node/internals/hooks/useViews.js +0 -1
  229. package/node/locales/plPL.js +0 -1
  230. package/node/locales/svSE.js +0 -1
  231. package/node/locales/urPK.js +0 -1
  232. package/package.json +5 -5
  233. package/internals/components/FakeTextField/FakeTextField.d.ts +0 -22
  234. package/internals/components/FakeTextField/FakeTextField.js +0 -44
  235. package/internals/components/FakeTextField/index.d.ts +0 -1
  236. package/internals/components/FakeTextField/index.js +0 -1
  237. package/legacy/internals/components/FakeTextField/FakeTextField.js +0 -49
  238. package/legacy/internals/components/FakeTextField/index.js +0 -1
  239. package/modern/internals/components/FakeTextField/FakeTextField.js +0 -44
  240. package/modern/internals/components/FakeTextField/index.js +0 -1
  241. package/node/internals/components/FakeTextField/FakeTextField.js +0 -52
  242. package/node/internals/components/FakeTextField/index.js +0 -12
package/CHANGELOG.md CHANGED
@@ -3,6 +3,271 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.0.0-alpha.4
7
+
8
+ _Dec 8, 2023_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 The scatter charts now use voronoi to trigger items
13
+
14
+ Users needed to hover the item to highlight the scatter item or show the tooltip.
15
+ Now they can interact with data by triggering the closest element. See the [docs page](https://next.mui.com/x/react-charts/scatter/#interaction) for more info.
16
+
17
+ - 📚 Add [Pickers FAQ page](https://next.mui.com/x/react-date-pickers/faq/)
18
+ - 🎉 The Data Grid Header filters feature is now stable
19
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
20
+ - 🐞 Bugfixes
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The header filters feature is now stable. `unstable_` prefix is removed from prop `headerFilters` and related exports.
27
+ See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#filtering) for more details.
28
+
29
+ - The `GridColDef['type']` has been narrowed down to only accept the built-in column types.
30
+ TypeScript users need to use the `GridColDef` interface when defining columns:
31
+
32
+ ```tsx
33
+ // 🛑 `type` is inferred as `string` and is too wide
34
+ const columns = [{ type: 'number', field: 'id' }];
35
+ <DataGrid columns={columns} />;
36
+
37
+ // ✅ `type` is `'number'`
38
+ const columns: GridColDef[] = [{ type: 'number', field: 'id' }];
39
+ <DataGrid columns={columns} />;
40
+
41
+ // ✅ Alternalively, `as const` can be used to narrow down the type
42
+ const columns = [{ type: 'number' as const, field: 'id' }];
43
+ <DataGrid columns={columns} />;
44
+ ```
45
+
46
+ #### `@mui/x-data-grid@7.0.0-alpha.4`
47
+
48
+ - [DataGrid] Added a guard for reorder cells (#11159) @michelengelen
49
+ - [DataGrid] Narrow down `GridColDef['type']` (#11270) @cherniavskii
50
+ - [l10n] Improve Danish (da-DK) locale (#11304) @goibon
51
+
52
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.4`, plus:
55
+
56
+ - [DataGridPro] Make header filters feature stable (#11243) @MBilalShafi
57
+
58
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
59
+
60
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.4`.
61
+
62
+ ### Date Pickers
63
+
64
+ #### `@mui/x-date-pickers@7.0.0-alpha.4`
65
+
66
+ - [fields] Rework `PickersTextField` (#11258) @flaviendelangle
67
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11305) @LukasTy
68
+ - [pickers] Fix views height consistency (#11337) @LukasTy
69
+
70
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
71
+
72
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.4`.
73
+
74
+ ### Charts / `@mui/x-charts@7.0.0-alpha.4`
75
+
76
+ - [charts] Remove animation on sparkline (#11311) @oliviertassinari
77
+ - [charts] Use voronoi cells to trigger interaction with scatter items (#10981) @alexfauquette
78
+ - [charts] Add `@mui/utils` as a dependency (#11351) @michelengelen
79
+
80
+ ### Docs
81
+
82
+ - [docs] Add FAQ page (#11271) @noraleonte
83
+ - [docs] Add a doc section on how to override the start of the week with each adapter (#11223) @flaviendelangle
84
+ - [docs] Added params to `onPaginationModelChange` docs (#10191) @JFBenzs
85
+ - [docs] Fix typo (#11324) @cadam11
86
+ - [docs] Improve `DemoContainer` styling coverage (#11315) @LukasTy
87
+ - [docs] General revision of the Charts docs (#11249) @danilo-leal
88
+
89
+ ## 7.0.0-alpha.3
90
+
91
+ _Dec 4, 2023_
92
+
93
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
94
+
95
+ - 🚀 Support localized start of the week on pickers' `AdapterLuxon`
96
+
97
+ When using Luxon 3.4.4 or higher, the start of the week will be defined by the date locale (e.g.: Sunday for `en-US`, Monday for `fr-FR`).
98
+
99
+ - 📈 Fix a lot of Charts package issues
100
+ - 🎉 The Data Grid features Cell selection and Clipboard paste are now stable
101
+ - 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
102
+ - 🐞 Bugfixes
103
+ - 📚 Documentation improvements
104
+
105
+ ### Data Grid
106
+
107
+ #### Breaking changes
108
+
109
+ - The clipboard paste feature is now enabled by default. The flag `clipboardPaste` is no longer needed to be passed to the `experimentalFeatures` prop.
110
+
111
+ - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
112
+
113
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
114
+
115
+ - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
116
+
117
+ - The `GridPreferencesPanel` component is not exported anymore as it wasn't meant to be used outside of the Data Grid.
118
+
119
+ - The `unstable_` prefix has been removed from the cell selection props listed below.
120
+
121
+ | Old name | New name |
122
+ | :------------------------------------ | :--------------------------- |
123
+ | `unstable_cellSelection` | `cellSelection` |
124
+ | `unstable_cellSelectionModel` | `cellSelectionModel` |
125
+ | `unstable_onCellSelectionModelChange` | `onCellSelectionModelChange` |
126
+
127
+ - The `unstable_` prefix has been removed from the cell selection API methods listed below.
128
+
129
+ | Old name | New name |
130
+ | :--------------------------------- | :------------------------ |
131
+ | `unstable_getCellSelectionModel` | `getCellSelectionModel` |
132
+ | `unstable_getSelectedCellsAsArray` | `getSelectedCellsAsArray` |
133
+ | `unstable_isCellSelected` | `isCellSelected` |
134
+ | `unstable_selectCellRange` | `selectCellRange` |
135
+ | `unstable_setCellSelectionModel` | `setCellSelectionModel` |
136
+
137
+ - The Quick Filter now ignores hidden columns by default.
138
+ See [including hidden columns](https://next.mui.com/x/react-data-grid/filtering/quick-filter/#including-hidden-columns) section for more details.
139
+
140
+ #### `@mui/x-data-grid@7.0.0-alpha.3`
141
+
142
+ - [DataGrid] Fix cell editing adding a leading "v" on paste (#9205) @prasad5795
143
+ - [DataGrid] Exclude hidden columns from quick filtering by default (#11229) @cherniavskii
144
+ - [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11000) @gitstart
145
+ - [DataGrid] Fix handling of event target in portal (#11174) @cherniavskii
146
+ - [DataGrid] Remove deprecated constants (#11233) @michelengelen
147
+ - [DataGrid] Remove the `preferencesPanel` slot (#11228) @cherniavskii
148
+ - [l10n] Improve Bulgarian (bg-BG) locale (#10856) @Kristiqn95
149
+
150
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
151
+
152
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.3`.
153
+
154
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
155
+
156
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.3`, plus:
157
+
158
+ - [DataGridPremium] Fix aggregated column ignoring column definition changes (#11129) @cherniavskii
159
+ - [DataGridPremium] Make Cell selection feature stable (#11246) @MBilalShafi
160
+ - [DataGridPremium] Make Clipboard paste feature stable (#11248) @MBilalShafi
161
+
162
+ ### Date Pickers
163
+
164
+ #### Breaking changes
165
+
166
+ - The Date and Time Pickers now use the localized week when using `AdapterLuxon` and Luxon v3.4.4 or higher is installed.
167
+ This new behavior allows `AdapterLuxon` to have the same behavior as the other adapters.
168
+ If you want to keep the start of the week on Monday even if your locale says otherwise, you can hardcode the week settings as follows:
169
+ The Firefox browser currently does not support this behavior because the [getWeekInfo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) API is not yet implemented.
170
+
171
+ ```ts
172
+ import { Settings } from 'luxon';
173
+
174
+ Settings.defaultWeekSettings = {
175
+ firstDay: 1,
176
+ minimalDays: Info.getMinimumDaysInFirstWeek(),
177
+ weekend: [6, 7],
178
+ };
179
+ ```
180
+
181
+ - Add new parameters to the `shortcuts` slot `onChange` callback
182
+
183
+ The `onChange` callback fired when selecting a shortcut now requires two new parameters (previously they were optional):
184
+
185
+ - The [`changeImportance`](/x/react-date-pickers/shortcuts/#behavior-when-selecting-a-shortcut) of the shortcut.
186
+ - The `item` containing the entire shortcut object.
187
+
188
+ ```diff
189
+ const CustomShortcuts = (props) => {
190
+ return (
191
+ <React.Fragment>
192
+ {props.items.map(item => {
193
+ const value = item.getValue({ isValid: props.isValid });
194
+ return (
195
+ <button
196
+ - onClick={() => onChange(value)}
197
+ + onClick={() => onChange(value, props.changeImportance ?? 'accept', item)}
198
+ >
199
+ {value}
200
+ </button>
201
+ )
202
+ }}
203
+ </React.Fragment>
204
+ )
205
+ }
206
+
207
+ <DatePicker slots={{ shortcuts: CustomShortcuts }} />
208
+ ```
209
+
210
+ - Usage of `AdapterDayjs` with the `customParseFormat` plugin
211
+ The call to `dayjs.extend(customParseFormatPlugin)` has been moved to the `AdapterDayjs` constructor. This allows users to pass custom options to this plugin before the adapter uses it.
212
+
213
+ If you are using this plugin before the rendering of the first `LocalizationProvider` component and did not call `dayjs.extend` in your own codebase, you will need to manually extend `dayjs`:
214
+
215
+ ```tsx
216
+ import dayjs from 'dayjs';
217
+ import customParseFormatPlugin from 'dayjs/plugin/customParseFormat';
218
+
219
+ dayjs.extend(customParseFormatPlugin);
220
+ ```
221
+
222
+ The other plugins are still added before the adapter initialization.
223
+
224
+ #### `@mui/x-date-pickers@7.0.0-alpha.3`
225
+
226
+ - [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11130) @LukasTy
227
+ - [pickers] Make `changeImportance` and `shortcut` mandatory in `PickersShortcuts` (#10941) @flaviendelangle
228
+ - [pickers] Moved extend with `customParseFormat` to constructor (#11151) @michelengelen
229
+ - [pickers] POC: `PickersTextField` styling - outlined variant (#10778) @noraleonte
230
+ - [pickers] Support localized start of the week on `AdapterLuxon` (#10964) @flaviendelangle
231
+ - [pickers] Use adapter methods instead of date library ones whenever possible (#11142) @flaviendelangle
232
+
233
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
234
+
235
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
236
+
237
+ ### Charts / `@mui/x-charts@7.0.0-alpha.3`
238
+
239
+ - [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11144) @michelengelen
240
+ - [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
241
+ - [charts] Fix TS config (#11259) @alexfauquette
242
+ - [charts] Fix error with empty dataset (#11063) @alexfauquette
243
+ - [charts] Fix export strategy (#11235) @alexfauquette
244
+ - [charts] Remove outdated prop-types (#11045) @alexfauquette
245
+
246
+ ### Docs
247
+
248
+ - [docs] Add `TextField` styling example to customization playground (#10812) @noraleonte
249
+ - [docs] Add a card grid to the installation page (#11177) @danilo-leal
250
+ - [docs] Add end v6 blogpost to whats new page (#10999) @joserodolfofreitas
251
+ - [docs] Add small formatting improvements to the licensing page (#11178) @danilo-leal
252
+ - [docs] Document charts composition (#10710) (#11239) @alexfauquette
253
+ - [docs] Fix <title> generation (#11182) @oliviertassinari
254
+ - [docs] Fix dead anchor link (#11265) @oliviertassinari
255
+ - [docs] Improve Data Grid togglable columns example (#11238) @MBilalShafi
256
+ - [docs] Improve the prop descriptions of `DayCalendar` (#11158) @flaviendelangle
257
+ - [docs] Move the adapter breaking changes in a collapsable block (#11205) @flaviendelangle
258
+ - [docs] Polish Next.js header description @oliviertassinari
259
+ - [docs] Remove the `newFeature` flag on v6 features (#11168) @flaviendelangle
260
+ - [docs] Simplify a bit chart demo (#11173) @oliviertassinari
261
+ - [docs] Standardize the usage of callouts in the MUI X docs (#7127) @samuelsycamore
262
+ - [docs] Adjust the Data Grid demo page design (#11231) @danilo-leal
263
+
264
+ ### Core
265
+
266
+ - [core] Make `@mui/system` a direct dependency (#11128) @LukasTy
267
+ - [core] Remove blank lines, coding style @oliviertassinari
268
+ - [core] Remove outdated `ENABLE_AD` env variable (#11181) @oliviertassinari
269
+ - [github] Do not add `plan: Pro` and `plan: Premium` labels on pro / premium issue templates (#10183) @flaviendelangle
270
+
6
271
  ## 7.0.0-alpha.2
7
272
 
8
273
  _Nov 23, 2023_
@@ -684,6 +949,105 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
684
949
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
685
950
  - [license] Correctly throw errors (#10924) @oliviertassinari
686
951
 
952
+ ## 6.18.4
953
+
954
+ _Dec 8, 2023_
955
+
956
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
957
+
958
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
959
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
960
+ - 🐞 Bugfixes
961
+
962
+ ### Data Grid
963
+
964
+ #### `@mui/x-data-grid@6.18.4`
965
+
966
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
967
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
968
+
969
+ #### `@mui/x-data-grid-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
970
+
971
+ Same changes as in `@mui/x-data-grid@6.18.4`.
972
+
973
+ #### `@mui/x-data-grid-premium@6.18.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
974
+
975
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
976
+
977
+ ### Date Pickers
978
+
979
+ #### `@mui/x-date-pickers@6.18.4`
980
+
981
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
982
+
983
+ #### `@mui/x-date-pickers-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
984
+
985
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
986
+
987
+ ### Docs
988
+
989
+ - [docs] Fix typo (#11323) @cadam11
990
+ - [docs] Add FAQ page (#11347) @noraleonte
991
+
992
+ ## 6.18.3
993
+
994
+ _Dec 4, 2023_
995
+
996
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
997
+
998
+ - 📈 Fix a lot of Charts package issues
999
+ - 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
1000
+ - 🐞 Bugfixes
1001
+ - 📚 Documentation improvements
1002
+
1003
+ ### Data Grid
1004
+
1005
+ #### `@mui/x-data-grid@6.18.3`
1006
+
1007
+ - [DataGrid] Fix cell editing adding a leading "v" on paste (#11166) @prasad5795
1008
+ - [DataGrid] Fix handling of event target in portal (#11209) @cherniavskii
1009
+ - [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11244) @gitstart
1010
+ - [l10n] Improve Bulgarian (bg-BG) locale (#10856) (#11206) @Kristiqn95
1011
+
1012
+ #### `@mui/x-data-grid-pro@6.18.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1013
+
1014
+ Same changes as in `@mui/x-data-grid@6.18.3`.
1015
+
1016
+ #### `@mui/x-data-grid-premium@6.18.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
1017
+
1018
+ Same changes as in `@mui/x-data-grid-pro@6.18.3`, plus:
1019
+
1020
+ - [DataGridPremium] Fix aggregated column ignoring column definition changes (#11176) @cherniavskii
1021
+ - [DataGridPremium] Fix custom filter operators not working on aggregated column (#11201) @cherniavskii
1022
+
1023
+ ### Date Pickers
1024
+
1025
+ #### `@mui/x-date-pickers@6.18.3`
1026
+
1027
+ - [pickers] Correctly format `MultiSectionDigitalClock` number sections (#11297) @LukasTy
1028
+ - [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11254) @LukasTy
1029
+
1030
+ #### `@mui/x-date-pickers-pro@6.18.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1031
+
1032
+ Same changes as in `@mui/x-date-pickers@6.18.3`.
1033
+
1034
+ ### Charts / `@mui/x-charts@6.18.3`
1035
+
1036
+ - [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11213) @michelengelen
1037
+ - [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
1038
+ - [charts] Fix TS config (#11259) @alexfauquette
1039
+ - [charts] Fix error with empty dataset (#11063) @alexfauquette
1040
+ - [charts] Fix export strategy (#11235) @alexfauquette
1041
+
1042
+ ### Docs
1043
+
1044
+ - [docs] Add LTS section to support page (#11300) @joserodolfofreitas
1045
+ - [docs] Add end v6 blogpost to whats new page (#11299) @joserodolfofreitas
1046
+ - [docs] Document charts composition (#10710) @alexfauquette
1047
+ - [docs] Fix version links (#11167) @LukasTy
1048
+ - [docs] Improve Data Grid togglable columns example (#11241) @MBilalShafi
1049
+ - [docs] Split charts overview and getting started in distinct pages (#10910) @alexfauquette
1050
+
687
1051
  ## 6.18.2
688
1052
 
689
1053
  _Nov 23, 2023_
@@ -395,8 +395,8 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
395
395
  */
396
396
  displayWeekNumber: PropTypes.bool,
397
397
  /**
398
- * Calendar will show more weeks in order to match this value.
399
- * Put it to 6 for having fix number of week in Gregorian calendars
398
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
399
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
400
400
  * @default undefined
401
401
  */
402
402
  fixedWeekNumber: PropTypes.number,
@@ -29,7 +29,7 @@ export interface ExportedDayCalendarProps<TDate> extends ExportedPickersDayProps
29
29
  */
30
30
  loading?: boolean;
31
31
  /**
32
- * Component displaying when passed `loading` true.
32
+ * Component rendered on the "day" view when `props.loading` is true.
33
33
  * @returns {React.ReactNode} The node to render when loading.
34
34
  * @default () => "..."
35
35
  */
@@ -46,8 +46,8 @@ export interface ExportedDayCalendarProps<TDate> extends ExportedPickersDayProps
46
46
  */
47
47
  displayWeekNumber?: boolean;
48
48
  /**
49
- * Calendar will show more weeks in order to match this value.
50
- * Put it to 6 for having fix number of week in Gregorian calendars
49
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
50
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
51
51
  * @default undefined
52
52
  */
53
53
  fixedWeekNumber?: number;
@@ -61,7 +61,6 @@ export const useCalendarState = params => {
61
61
  });
62
62
  }, [] // eslint-disable-line react-hooks/exhaustive-deps
63
63
  );
64
-
65
64
  const [calendarState, dispatch] = React.useReducer(reducerFn, {
66
65
  isMonthSwitchingAnimating: false,
67
66
  focusedDay: referenceDate,
@@ -112,8 +112,8 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
112
112
  */
113
113
  displayWeekNumber: PropTypes.bool,
114
114
  /**
115
- * Calendar will show more weeks in order to match this value.
116
- * Put it to 6 for having fix number of week in Gregorian calendars
115
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
116
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
117
117
  * @default undefined
118
118
  */
119
119
  fixedWeekNumber: PropTypes.number,
@@ -127,8 +127,8 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
127
127
  */
128
128
  displayWeekNumber: PropTypes.bool,
129
129
  /**
130
- * Calendar will show more weeks in order to match this value.
131
- * Put it to 6 for having fix number of week in Gregorian calendars
130
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
131
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
132
132
  * @default undefined
133
133
  */
134
134
  fixedWeekNumber: PropTypes.number,
@@ -130,8 +130,8 @@ DesktopDatePicker.propTypes = {
130
130
  */
131
131
  displayWeekNumber: PropTypes.bool,
132
132
  /**
133
- * Calendar will show more weeks in order to match this value.
134
- * Put it to 6 for having fix number of week in Gregorian calendars
133
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
134
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
135
135
  * @default undefined
136
136
  */
137
137
  fixedWeekNumber: PropTypes.number,
@@ -184,8 +184,8 @@ DesktopDateTimePicker.propTypes = {
184
184
  */
185
185
  displayWeekNumber: PropTypes.bool,
186
186
  /**
187
- * Calendar will show more weeks in order to match this value.
188
- * Put it to 6 for having fix number of week in Gregorian calendars
187
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
188
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
189
189
  * @default undefined
190
190
  */
191
191
  fixedWeekNumber: PropTypes.number,
@@ -127,8 +127,8 @@ MobileDatePicker.propTypes = {
127
127
  */
128
128
  displayWeekNumber: PropTypes.bool,
129
129
  /**
130
- * Calendar will show more weeks in order to match this value.
131
- * Put it to 6 for having fix number of week in Gregorian calendars
130
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
131
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
132
132
  * @default undefined
133
133
  */
134
134
  fixedWeekNumber: PropTypes.number,
@@ -153,8 +153,8 @@ MobileDateTimePicker.propTypes = {
153
153
  */
154
154
  displayWeekNumber: PropTypes.bool,
155
155
  /**
156
- * Calendar will show more weeks in order to match this value.
157
- * Put it to 6 for having fix number of week in Gregorian calendars
156
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
157
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
158
158
  * @default undefined
159
159
  */
160
160
  fixedWeekNumber: PropTypes.number,
@@ -110,7 +110,6 @@ export const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalenda
110
110
  granularity: SECTION_TYPE_GRANULARITY.month
111
111
  }), [] // eslint-disable-line react-hooks/exhaustive-deps
112
112
  );
113
-
114
113
  const ownerState = props;
115
114
  const classes = useUtilityClasses(ownerState);
116
115
  const todayMonth = React.useMemo(() => utils.getMonth(now), [utils, now]);
@@ -249,6 +249,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
249
249
  },
250
250
  items: getTimeSectionOptions({
251
251
  value: utils.getMinutes(valueOrReferenceDate),
252
+ utils,
252
253
  isDisabled: minutes => disabled || isTimeDisabled(minutes, 'minutes'),
253
254
  resolveLabel: minutes => utils.format(utils.setMinutes(now, minutes), 'minutes'),
254
255
  timeStep: timeSteps.minutes,
@@ -265,6 +266,7 @@ export const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function M
265
266
  },
266
267
  items: getTimeSectionOptions({
267
268
  value: utils.getSeconds(valueOrReferenceDate),
269
+ utils,
268
270
  isDisabled: seconds => disabled || isTimeDisabled(seconds, 'seconds'),
269
271
  resolveLabel: seconds => utils.format(utils.setSeconds(now, seconds), 'seconds'),
270
272
  timeStep: timeSteps.seconds,
@@ -11,13 +11,14 @@ interface IGetHoursSectionOptions<TDate> {
11
11
  valueOrReferenceDate: TDate;
12
12
  }
13
13
  export declare const getHourSectionOptions: <TDate>({ now, value, utils, ampm, isDisabled, resolveAriaLabel, timeStep, valueOrReferenceDate, }: IGetHoursSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
14
- interface IGetTimeSectionOptions {
14
+ interface IGetTimeSectionOptions<TDate> {
15
15
  value: number | null;
16
+ utils: MuiPickersAdapter<TDate>;
16
17
  isDisabled: (value: number) => boolean;
17
18
  timeStep: number;
18
19
  resolveLabel: (value: number) => string;
19
20
  hasValue?: boolean;
20
21
  resolveAriaLabel: (value: string) => string;
21
22
  }
22
- export declare const getTimeSectionOptions: ({ value, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions) => MultiSectionDigitalClockOption<number>[];
23
+ export declare const getTimeSectionOptions: <TDate>({ value, utils, isDisabled, timeStep, resolveLabel, resolveAriaLabel, hasValue, }: IGetTimeSectionOptions<TDate>) => MultiSectionDigitalClockOption<number>[];
23
24
  export {};
@@ -44,6 +44,7 @@ export const getHourSectionOptions = ({
44
44
  };
45
45
  export const getTimeSectionOptions = ({
46
46
  value,
47
+ utils,
47
48
  isDisabled,
48
49
  timeStep,
49
50
  resolveLabel,
@@ -65,7 +66,7 @@ export const getTimeSectionOptions = ({
65
66
  const timeValue = timeStep * index;
66
67
  return {
67
68
  value: timeValue,
68
- label: resolveLabel(timeValue),
69
+ label: utils.formatNumber(resolveLabel(timeValue)),
69
70
  isDisabled,
70
71
  isSelected,
71
72
  isFocused,
@@ -36,7 +36,12 @@ const MultiSectionDigitalClockSectionRoot = styled(MenuList, {
36
36
  '@media (prefers-reduced-motion: no-preference)': {
37
37
  scrollBehavior: ownerState.alreadyRendered ? 'smooth' : 'auto'
38
38
  },
39
- '&:hover': {
39
+ '@media (pointer: fine)': {
40
+ '&:hover': {
41
+ overflowY: 'auto'
42
+ }
43
+ },
44
+ '@media (pointer: none), (pointer: coarse)': {
40
45
  overflowY: 'auto'
41
46
  },
42
47
  '&:not(:first-of-type)': {
@@ -154,7 +159,8 @@ export const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(fun
154
159
  "aria-disabled": readOnly,
155
160
  "aria-label": option.ariaLabel,
156
161
  "aria-selected": isSelected,
157
- tabIndex: tabIndex
162
+ tabIndex: tabIndex,
163
+ className: classes.item
158
164
  }, slotProps == null ? void 0 : slotProps.digitalClockSectionItem, {
159
165
  children: option.label
160
166
  }), option.label);
@@ -1,6 +1,6 @@
1
1
  import generateUtilityClass from '@mui/utils/generateUtilityClass';
2
2
  import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
3
3
  export function getMultiSectionDigitalClockSectionUtilityClass(slot) {
4
- return generateUtilityClass('MuiMultiSectionDigitalClock', slot);
4
+ return generateUtilityClass('MuiMultiSectionDigitalClockSection', slot);
5
5
  }
6
- export const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClock', ['root', 'item']);
6
+ export const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClockSection', ['root', 'item']);
@@ -38,13 +38,13 @@ const PickersCalendarHeaderRoot = styled('div', {
38
38
  })({
39
39
  display: 'flex',
40
40
  alignItems: 'center',
41
- marginTop: 16,
42
- marginBottom: 8,
41
+ marginTop: 12,
42
+ marginBottom: 4,
43
43
  paddingLeft: 24,
44
44
  paddingRight: 12,
45
45
  // prevent jumping in safari
46
- maxHeight: 30,
47
- minHeight: 30
46
+ maxHeight: 40,
47
+ minHeight: 40
48
48
  });
49
49
  const PickersCalendarHeaderLabelContainer = styled('div', {
50
50
  name: 'MuiPickersCalendarHeader',
@@ -26,7 +26,7 @@ export interface ExportedPickersShortcutProps<TValue> extends Omit<ListProps, 'o
26
26
  }
27
27
  export interface PickersShortcutsProps<TValue> extends ExportedPickersShortcutProps<TValue> {
28
28
  isLandscape: boolean;
29
- onChange: (newValue: TValue, changeImportance?: PickerShortcutChangeImportance, shortcut?: PickersShortcutsItemContext) => void;
29
+ onChange: (newValue: TValue, changeImportance: PickerShortcutChangeImportance, shortcut: PickersShortcutsItemContext) => void;
30
30
  isValid: (value: TValue) => boolean;
31
31
  }
32
32
  /**
@@ -21,7 +21,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
21
21
  function PickersShortcuts(props) {
22
22
  const {
23
23
  items,
24
- changeImportance,
24
+ changeImportance = 'accept',
25
25
  onChange,
26
26
  isValid
27
27
  } = props,
package/README.md CHANGED
@@ -35,7 +35,6 @@ This component has the following peer dependencies that you will need to install
35
35
  ```json
36
36
  "peerDependencies": {
37
37
  "@mui/material": "^5.8.6",
38
- "@mui/system": "^5.8.0",
39
38
  "react": "^17.0.0 || ^18.0.0",
40
39
  "react-dom": "^17.0.0 || ^18.0.0"
41
40
  },
@@ -106,8 +106,8 @@ StaticDatePicker.propTypes = {
106
106
  */
107
107
  displayWeekNumber: PropTypes.bool,
108
108
  /**
109
- * Calendar will show more weeks in order to match this value.
110
- * Put it to 6 for having fix number of week in Gregorian calendars
109
+ * The day view will show as many weeks as needed after the end of the current month to match this value.
110
+ * Put it to 6 to have a fixed number of weeks in Gregorian calendars
111
111
  * @default undefined
112
112
  */
113
113
  fixedWeekNumber: PropTypes.number,