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

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 (252) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +6 -17
  2. package/AdapterDateFns/AdapterDateFns.js +9 -93
  3. package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +6 -17
  4. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +9 -93
  5. package/AdapterDayjs/AdapterDayjs.d.ts +7 -19
  6. package/AdapterDayjs/AdapterDayjs.js +13 -67
  7. package/AdapterLuxon/AdapterLuxon.d.ts +6 -17
  8. package/AdapterLuxon/AdapterLuxon.js +5 -96
  9. package/AdapterMoment/AdapterMoment.d.ts +6 -22
  10. package/AdapterMoment/AdapterMoment.js +11 -75
  11. package/AdapterMomentHijri/AdapterMomentHijri.d.ts +2 -9
  12. package/AdapterMomentHijri/AdapterMomentHijri.js +1 -33
  13. package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +2 -11
  14. package/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -43
  15. package/CHANGELOG.md +591 -5
  16. package/DateCalendar/DateCalendar.js +2 -9
  17. package/DateCalendar/DateCalendar.types.d.ts +0 -4
  18. package/DateCalendar/DayCalendar.d.ts +1 -2
  19. package/DateCalendar/DayCalendar.js +9 -16
  20. package/DateCalendar/dayCalendarClasses.d.ts +1 -1
  21. package/DateCalendar/dayCalendarClasses.js +1 -1
  22. package/DateCalendar/index.d.ts +1 -2
  23. package/DateCalendar/index.js +2 -4
  24. package/DateCalendar/useCalendarState.d.ts +1 -1
  25. package/DateCalendar/useCalendarState.js +1 -9
  26. package/DateField/DateField.js +1 -1
  27. package/DatePicker/DatePicker.js +1 -6
  28. package/DatePicker/shared.d.ts +1 -1
  29. package/DateTimeField/DateTimeField.js +1 -9
  30. package/DateTimePicker/DateTimePicker.js +1 -14
  31. package/DateTimePicker/shared.d.ts +1 -1
  32. package/DesktopDatePicker/DesktopDatePicker.js +1 -6
  33. package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  34. package/DesktopTimePicker/DesktopTimePicker.js +1 -9
  35. package/DigitalClock/DigitalClock.js +6 -17
  36. package/LocalizationProvider/LocalizationProvider.js +0 -6
  37. package/MobileDatePicker/MobileDatePicker.js +1 -6
  38. package/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  39. package/MobileTimePicker/MobileTimePicker.js +1 -9
  40. package/MonthCalendar/MonthCalendar.js +1 -1
  41. package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  42. package/PickersCalendarHeader/PickersCalendarHeader.js +11 -4
  43. package/PickersDay/PickersDay.js +1 -1
  44. package/StaticDatePicker/StaticDatePicker.js +1 -6
  45. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  46. package/StaticTimePicker/StaticTimePicker.js +1 -9
  47. package/TimeClock/Clock.js +1 -1
  48. package/TimeClock/TimeClock.js +3 -15
  49. package/TimeField/TimeField.js +1 -9
  50. package/TimePicker/TimePicker.js +1 -9
  51. package/TimePicker/shared.d.ts +1 -1
  52. package/YearCalendar/YearCalendar.js +2 -2
  53. package/dateTimeViewRenderers/dateTimeViewRenderers.d.ts +2 -2
  54. package/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  55. package/dateViewRenderers/dateViewRenderers.d.ts +1 -1
  56. package/dateViewRenderers/dateViewRenderers.js +0 -2
  57. package/index.d.ts +1 -0
  58. package/index.js +4 -1
  59. package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.types.d.ts +5 -0
  60. package/internals/hooks/date-helpers-hooks.js +2 -2
  61. package/internals/hooks/useField/useField.utils.js +8 -9
  62. package/internals/hooks/useField/useFieldState.js +2 -2
  63. package/internals/hooks/usePicker/usePickerValue.types.d.ts +1 -1
  64. package/internals/hooks/useUtils.js +1 -1
  65. package/internals/hooks/useViews.js +2 -2
  66. package/internals/models/validation.d.ts +0 -8
  67. package/internals/utils/date-utils.js +2 -2
  68. package/internals/utils/getDefaultReferenceDate.d.ts +1 -2
  69. package/internals/utils/getDefaultReferenceDate.js +0 -4
  70. package/internals/utils/validation/extractValidationProps.d.ts +1 -1
  71. package/internals/utils/validation/extractValidationProps.js +1 -1
  72. package/internals/utils/validation/validateDate.js +1 -1
  73. package/internals/utils/validation/validateTime.js +1 -8
  74. package/legacy/AdapterDateFns/AdapterDateFns.js +13 -94
  75. package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +13 -94
  76. package/legacy/AdapterDayjs/AdapterDayjs.js +19 -69
  77. package/legacy/AdapterLuxon/AdapterLuxon.js +10 -97
  78. package/legacy/AdapterMoment/AdapterMoment.js +16 -78
  79. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +5 -33
  80. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +5 -43
  81. package/legacy/DateCalendar/DateCalendar.js +2 -9
  82. package/legacy/DateCalendar/DayCalendar.js +7 -11
  83. package/legacy/DateCalendar/PickersSlideTransition.js +8 -9
  84. package/legacy/DateCalendar/dayCalendarClasses.js +1 -1
  85. package/legacy/DateCalendar/index.js +2 -4
  86. package/legacy/DateCalendar/useCalendarState.js +1 -9
  87. package/legacy/DateField/DateField.js +1 -1
  88. package/legacy/DatePicker/DatePicker.js +1 -6
  89. package/legacy/DateTimeField/DateTimeField.js +1 -9
  90. package/legacy/DateTimePicker/DateTimePicker.js +1 -14
  91. package/legacy/DesktopDatePicker/DesktopDatePicker.js +1 -6
  92. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  93. package/legacy/DesktopTimePicker/DesktopTimePicker.js +1 -9
  94. package/legacy/DigitalClock/DigitalClock.js +6 -17
  95. package/legacy/LocalizationProvider/LocalizationProvider.js +0 -6
  96. package/legacy/MobileDatePicker/MobileDatePicker.js +1 -6
  97. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  98. package/legacy/MobileTimePicker/MobileTimePicker.js +1 -9
  99. package/legacy/MonthCalendar/MonthCalendar.js +1 -1
  100. package/legacy/MonthCalendar/PickersMonth.js +4 -5
  101. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  102. package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +11 -3
  103. package/legacy/PickersDay/PickersDay.js +6 -7
  104. package/legacy/PickersLayout/PickersLayout.js +5 -6
  105. package/legacy/StaticDatePicker/StaticDatePicker.js +1 -6
  106. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  107. package/legacy/StaticTimePicker/StaticTimePicker.js +1 -9
  108. package/legacy/TimeClock/Clock.js +1 -1
  109. package/legacy/TimeClock/ClockNumber.js +4 -5
  110. package/legacy/TimeClock/TimeClock.js +3 -15
  111. package/legacy/TimeField/TimeField.js +1 -9
  112. package/legacy/TimePicker/TimePicker.js +1 -9
  113. package/legacy/TimePicker/TimePickerToolbar.js +1 -2
  114. package/legacy/YearCalendar/PickersYear.js +4 -5
  115. package/legacy/YearCalendar/YearCalendar.js +2 -2
  116. package/legacy/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  117. package/legacy/dateViewRenderers/dateViewRenderers.js +0 -2
  118. package/legacy/index.js +4 -1
  119. package/legacy/internals/components/PickersModalDialog.js +3 -4
  120. package/legacy/internals/hooks/date-helpers-hooks.js +2 -2
  121. package/legacy/internals/hooks/useField/useField.utils.js +8 -9
  122. package/legacy/internals/hooks/useField/useFieldState.js +2 -2
  123. package/legacy/internals/hooks/useUtils.js +1 -1
  124. package/legacy/internals/hooks/useViews.js +2 -2
  125. package/legacy/internals/utils/date-utils.js +2 -2
  126. package/legacy/internals/utils/getDefaultReferenceDate.js +0 -6
  127. package/legacy/internals/utils/validation/extractValidationProps.js +1 -1
  128. package/legacy/internals/utils/validation/validateDate.js +1 -1
  129. package/legacy/internals/utils/validation/validateTime.js +1 -8
  130. package/legacy/locales/deDE.js +4 -3
  131. package/legacy/locales/index.js +1 -0
  132. package/legacy/locales/mk.js +91 -0
  133. package/legacy/timeViewRenderers/timeViewRenderers.js +0 -6
  134. package/locales/deDE.js +2 -3
  135. package/locales/index.d.ts +1 -0
  136. package/locales/index.js +1 -0
  137. package/locales/mk.d.ts +53 -0
  138. package/locales/mk.js +55 -0
  139. package/models/adapters.d.ts +16 -145
  140. package/models/fields.d.ts +0 -6
  141. package/models/timezone.d.ts +1 -1
  142. package/models/validation.d.ts +1 -1
  143. package/modern/AdapterDateFns/AdapterDateFns.js +9 -93
  144. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +9 -93
  145. package/modern/AdapterDayjs/AdapterDayjs.js +13 -66
  146. package/modern/AdapterLuxon/AdapterLuxon.js +5 -96
  147. package/modern/AdapterMoment/AdapterMoment.js +11 -74
  148. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -33
  149. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -43
  150. package/modern/DateCalendar/DateCalendar.js +2 -9
  151. package/modern/DateCalendar/DayCalendar.js +9 -15
  152. package/modern/DateCalendar/dayCalendarClasses.js +1 -1
  153. package/modern/DateCalendar/index.js +2 -4
  154. package/modern/DateCalendar/useCalendarState.js +1 -9
  155. package/modern/DateField/DateField.js +1 -1
  156. package/modern/DatePicker/DatePicker.js +1 -6
  157. package/modern/DateTimeField/DateTimeField.js +1 -9
  158. package/modern/DateTimePicker/DateTimePicker.js +1 -14
  159. package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -6
  160. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  161. package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -9
  162. package/modern/DigitalClock/DigitalClock.js +6 -17
  163. package/modern/LocalizationProvider/LocalizationProvider.js +0 -6
  164. package/modern/MobileDatePicker/MobileDatePicker.js +1 -6
  165. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  166. package/modern/MobileTimePicker/MobileTimePicker.js +1 -9
  167. package/modern/MonthCalendar/MonthCalendar.js +1 -1
  168. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  169. package/modern/PickersCalendarHeader/PickersCalendarHeader.js +11 -4
  170. package/modern/PickersDay/PickersDay.js +1 -1
  171. package/modern/StaticDatePicker/StaticDatePicker.js +1 -6
  172. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  173. package/modern/StaticTimePicker/StaticTimePicker.js +1 -9
  174. package/modern/TimeClock/Clock.js +1 -1
  175. package/modern/TimeClock/TimeClock.js +3 -15
  176. package/modern/TimeField/TimeField.js +1 -9
  177. package/modern/TimePicker/TimePicker.js +1 -9
  178. package/modern/YearCalendar/YearCalendar.js +2 -2
  179. package/modern/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  180. package/modern/dateViewRenderers/dateViewRenderers.js +0 -2
  181. package/modern/index.js +4 -1
  182. package/modern/internals/hooks/date-helpers-hooks.js +2 -2
  183. package/modern/internals/hooks/useField/useField.utils.js +8 -9
  184. package/modern/internals/hooks/useField/useFieldState.js +2 -2
  185. package/modern/internals/hooks/useUtils.js +1 -1
  186. package/modern/internals/hooks/useViews.js +2 -2
  187. package/modern/internals/utils/date-utils.js +2 -2
  188. package/modern/internals/utils/getDefaultReferenceDate.js +0 -1
  189. package/modern/internals/utils/validation/extractValidationProps.js +1 -1
  190. package/modern/internals/utils/validation/validateDate.js +1 -1
  191. package/modern/internals/utils/validation/validateTime.js +1 -8
  192. package/modern/locales/deDE.js +2 -3
  193. package/modern/locales/index.js +1 -0
  194. package/modern/locales/mk.js +55 -0
  195. package/modern/timeViewRenderers/timeViewRenderers.js +0 -6
  196. package/node/AdapterDateFns/AdapterDateFns.js +9 -93
  197. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +9 -93
  198. package/node/AdapterDayjs/AdapterDayjs.js +13 -66
  199. package/node/AdapterLuxon/AdapterLuxon.js +5 -96
  200. package/node/AdapterMoment/AdapterMoment.js +11 -74
  201. package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -33
  202. package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -43
  203. package/node/DateCalendar/DateCalendar.js +2 -9
  204. package/node/DateCalendar/DayCalendar.js +9 -15
  205. package/node/DateCalendar/dayCalendarClasses.js +2 -2
  206. package/node/DateCalendar/index.js +3 -23
  207. package/node/DateCalendar/useCalendarState.js +1 -9
  208. package/node/DateField/DateField.js +1 -1
  209. package/node/DatePicker/DatePicker.js +1 -6
  210. package/node/DateTimeField/DateTimeField.js +1 -9
  211. package/node/DateTimePicker/DateTimePicker.js +1 -14
  212. package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
  213. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -14
  214. package/node/DesktopTimePicker/DesktopTimePicker.js +1 -9
  215. package/node/DigitalClock/DigitalClock.js +6 -17
  216. package/node/LocalizationProvider/LocalizationProvider.js +0 -6
  217. package/node/MobileDatePicker/MobileDatePicker.js +1 -6
  218. package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -14
  219. package/node/MobileTimePicker/MobileTimePicker.js +1 -9
  220. package/node/MonthCalendar/MonthCalendar.js +1 -1
  221. package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -15
  222. package/node/PickersCalendarHeader/PickersCalendarHeader.js +11 -4
  223. package/node/PickersDay/PickersDay.js +1 -1
  224. package/node/StaticDatePicker/StaticDatePicker.js +1 -6
  225. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -14
  226. package/node/StaticTimePicker/StaticTimePicker.js +1 -9
  227. package/node/TimeClock/Clock.js +1 -1
  228. package/node/TimeClock/TimeClock.js +3 -15
  229. package/node/TimeField/TimeField.js +1 -9
  230. package/node/TimePicker/TimePicker.js +1 -9
  231. package/node/YearCalendar/YearCalendar.js +2 -2
  232. package/node/dateTimeViewRenderers/dateTimeViewRenderers.js +0 -4
  233. package/node/dateViewRenderers/dateViewRenderers.js +0 -2
  234. package/node/index.js +13 -1
  235. package/node/internals/hooks/date-helpers-hooks.js +2 -2
  236. package/node/internals/hooks/useField/useField.utils.js +8 -9
  237. package/node/internals/hooks/useField/useFieldState.js +2 -2
  238. package/node/internals/hooks/useUtils.js +1 -1
  239. package/node/internals/hooks/useViews.js +2 -2
  240. package/node/internals/utils/date-utils.js +2 -2
  241. package/node/internals/utils/getDefaultReferenceDate.js +1 -3
  242. package/node/internals/utils/validation/extractValidationProps.js +1 -1
  243. package/node/internals/utils/validation/validateDate.js +1 -1
  244. package/node/internals/utils/validation/validateTime.js +1 -8
  245. package/node/locales/deDE.js +2 -3
  246. package/node/locales/index.js +11 -0
  247. package/node/locales/mk.js +60 -0
  248. package/node/timeViewRenderers/timeViewRenderers.js +0 -6
  249. package/package.json +7 -6
  250. package/themeAugmentation/overrides.d.ts +1 -1
  251. package/timeViewRenderers/timeViewRenderers.d.ts +3 -3
  252. package/timeViewRenderers/timeViewRenderers.js +0 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,538 @@
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.2
7
+
8
+ _Nov 23, 2023_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 📈 Export missing Charts props
13
+ - 🌍 Improve Arabic (ar-SD) and Hebrew (he-IL) locales on Data Grid
14
+ - 🌍 Add Macedonian (mk) locale and improve German (de-DE) locale on Pickers
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@7.0.0-alpha.2`
21
+
22
+ - [l10n] Improve Arabic (ar-SD) locale (#11114) @MBilalShafi
23
+ - [l10n] Improve Hebrew (he-IL) locale (#11056) (#11149) @MBilalShafi
24
+ - [DataGrid] Remove unused utilities (#11156) @flaviendelangle
25
+
26
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
+
28
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.2`.
29
+
30
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
+
32
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.2`.
33
+
34
+ ### Date Pickers
35
+
36
+ #### Breaking changes
37
+
38
+ - The deprecated `shouldDisableClock` prop has been removed in favor of the more flexible `shouldDisableTime` prop.
39
+ The `shouldDisableClock` prop received `value` as a `number` of hours, minutes, or seconds.
40
+ Instead, the `shouldDisableTime` prop receives the date object (based on the used adapter).
41
+
42
+ You can read more about the deprecation of this prop in [v6 migration guide](https://next.mui.com//x/migration/migration-pickers-v5/#%E2%9C%85-rename-or-refactor-shoulddisabletime-prop).
43
+
44
+ ```diff
45
+ <DateTimePicker
46
+ - shouldDisableClock={(timeValue, view) => view === 'hours' && timeValue < 12}
47
+ + shouldDisableTime={(value, view) => view === 'hours' && value.hour() < 12}
48
+ />
49
+ ```
50
+
51
+ - The `adapter.dateWithTimezone` method has been removed and its content moved to the `date` method.
52
+ You can use the `adapter.date` method instead:
53
+
54
+ ```diff
55
+ - adapter.dateWithTimezone(undefined, 'system');
56
+ + adapter.date(undefined, 'system');
57
+ ```
58
+
59
+ - The `dayPickerClasses` variable has been renamed to `dayCalendarClasses` to be consistent with the new name of the `DayCalendar` component introduced in v6.0.0.
60
+
61
+ ```diff
62
+ - import { dayPickerClasses } from '@mui/x-date-pickers/DateCalendar';
63
+ + import { dayCalendarClasses } from '@mui/x-date-pickers/DateCalendar';
64
+ ```
65
+
66
+ - The deprecated `defaultCalendarMonth` prop has been removed in favor of the more flexible `referenceDate` prop.
67
+
68
+ ```diff
69
+ - <DateCalendar defaultCalendarMonth={dayjs('2022-04-01')};
70
+ + <DateCalendar referenceDate{dayjs('2022-04-01')} />
71
+ ```
72
+
73
+ - The `adapter.date` method now has the v6 `adapter.dateWithTimezone` method behavior.
74
+ It no longer accepts `any` as a value but only `string | null | undefined`.
75
+
76
+ ```diff
77
+ - adapter.date(new Date());
78
+ + adapter.date();
79
+
80
+ - adapter.date(new Date('2022-04-17');
81
+ + adapter.date('2022-04-17');
82
+
83
+ - adapter.date(new Date(2022, 3, 17, 4, 5, 34));
84
+ + adapter.date('2022-04-17T04:05:34');
85
+
86
+ - adapter.date(new Date('Invalid Date'));
87
+ + adapter.getInvalidDate();
88
+ ```
89
+
90
+ #### `@mui/x-date-pickers@7.0.0-alpha.2`
91
+
92
+ - [l10n] Improve German (de-DE) locale (#11103) @jho-vema
93
+ - [l10n] Add Macedonian (mk) locale (#10935) @brsnik
94
+ - [pickers] Remove the `defaultCalendarMonth` prop (#10987) @flaviendelangle
95
+ - [pickers] Remove the `shouldDisableClock` prop (#11042) @flaviendelangle
96
+ - [pickers] Rename the `dayPickerClasses` variable `dayCalendarClasses` (#11140) @flaviendelangle
97
+ - [pickers] Replace `adapter.date` with the current `adapter.dateWithTimezone` (#10979) @flaviendelangle
98
+
99
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
100
+
101
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.2`.
102
+
103
+ ### Charts / `@mui/x-charts@7.0.0-alpha.2`
104
+
105
+ - [charts] Change export strategy in index files (#11113) @michelengelen
106
+ - [charts] Fix `ChartsTooltip` component setup (#11152) @LukasTy
107
+
108
+ ### `@mui/x-codemod@7.0.0-alpha.2`
109
+
110
+ - [codemod] Add codemod to use `referenceDate` instead of `defaultCalendarMonth` (#11139) @flaviendelangle
111
+ - [codemod] Clean the components to slots codemod usage (#11145) @flaviendelangle
112
+
113
+ ### Docs
114
+
115
+ - [docs] Add LTS section to support docs (#10927) @joserodolfofreitas
116
+ - [docs] Clean the codemod README (#11051) @flaviendelangle
117
+ - [docs] Fix typos and grammar issues (#11049) @flaviendelangle
118
+ - [docs] Fix version links (#11001) @LukasTy
119
+ - [docs] Point to the source of `@mui/x-data-grid-generator` (#11134) @oliviertassinari
120
+
121
+ ### Core
122
+
123
+ - [core] Bump monorepo (#11160) @LukasTy
124
+ - [core] Fix comment in doc generation (#11098) @flaviendelangle
125
+ - [core] Rename OpenCollective @oliviertassinari
126
+ - [core] Upgrade `babel-plugin-module-resolver` to 5.0.0 (#11065) @flaviendelangle
127
+ - [changelog] Improve git diff format @oliviertassinari
128
+ - [renovate] Monthly schedule for lockfile maintenance (#10336) @Janpot
129
+ - [test] Skip flaky e2e test in webkit (#11110) @cherniavskii
130
+
131
+ ## 7.0.0-alpha.1
132
+
133
+ _Nov 17, 2023_
134
+
135
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
136
+
137
+ - 🐞 Bugfixes
138
+ - 📚 Documentation improvements
139
+
140
+ ### Date Pickers
141
+
142
+ #### `@mui/x-date-pickers@7.0.0-alpha.1` / `@mui/x-date-pickers-pro@7.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
143
+
144
+ #### Breaking changes
145
+
146
+ - The string argument of the `dayOfWeekFormatter` prop has been replaced in favor of the date object to allow more flexibility.
147
+
148
+ ```diff
149
+ <DateCalendar
150
+ // If you were still using the day string, you can get it back with your date library.
151
+ - dayOfWeekFormatter={dayStr => `${dayStr}.`}
152
+ + dayOfWeekFormatter={day => `${day.format('dd')}.`}
153
+
154
+ // If you were already using the day object, just remove the first argument.
155
+ - dayOfWeekFormatter={(_dayStr, day) => `${day.format('dd')}.`}
156
+ + dayOfWeekFormatter={day => `${day.format('dd')}.`}
157
+ />
158
+ ```
159
+
160
+ - The imports related to the `calendarHeader` slot have been moved from `@mui/x-date-pickers/DateCalendar` to `@mui/x-date-pickers/PIckersCalendarHeader`:
161
+
162
+ ```diff
163
+ export {
164
+ pickersCalendarHeaderClasses,
165
+ PickersCalendarHeaderClassKey,
166
+ PickersCalendarHeaderClasses,
167
+ PickersCalendarHeader,
168
+ PickersCalendarHeaderProps,
169
+ PickersCalendarHeaderSlotsComponent,
170
+ PickersCalendarHeaderSlotsComponentsProps,
171
+ ExportedPickersCalendarHeaderProps,
172
+ -} from '@mui/x-date-pickers/DateCalendar';
173
+ +} from '@mui/x-date-pickers/PickersCalendarHeader';
174
+
175
+ ```
176
+
177
+ - The `monthAndYear` format has been removed.
178
+ It was used in the header of the calendar views, you can replace it with the new `format` prop of the `calendarHeader` slot:
179
+
180
+ ```diff
181
+ <LocalizationProvider
182
+ adapter={AdapterDayJS}
183
+ - formats={{ monthAndYear: 'MM/YYYY' }}
184
+ />
185
+ <DatePicker
186
+ + slotProps={{ calendarHeader: { format: 'MM/YYYY' }}}
187
+ />
188
+ <DateRangePicker
189
+ + slotProps={{ calendarHeader: { format: 'MM/YYYY' }}}
190
+ />
191
+ <LocalizationProvider />
192
+ ```
193
+
194
+ - The `adapter.getDiff` method have been removed, you can directly use your date library:
195
+
196
+ ```diff
197
+ // For Day.js
198
+ -const diff = adapter.getDiff(value, comparing, unit);
199
+ +const diff = value.diff(comparing, unit);
200
+
201
+ // For Luxon
202
+ -const diff = adapter.getDiff(value, comparing, unit);
203
+ +const getDiff = (value: DateTime, comparing: DateTime | string, unit?: AdapterUnits) => {
204
+ + const parsedComparing = typeof comparing === 'string'
205
+ + ? DateTime.fromJSDate(new Date(comparing))
206
+ + : comparing;
207
+ + if (unit) {
208
+ + return Math.floor(value.diff(comparing).as(unit));
209
+ + }
210
+ + return value.diff(comparing).as('millisecond');
211
+ +};
212
+ +
213
+ +const diff = getDiff(value, comparing, unit);
214
+
215
+ // For DateFns
216
+ -const diff = adapter.getDiff(value, comparing, unit);
217
+ +const getDiff = (value: Date, comparing: Date | string, unit?: AdapterUnits) => {
218
+ + const parsedComparing = typeof comparing === 'string' ? new Date(comparing) : comparing;
219
+ + switch (unit) {
220
+ + case 'years':
221
+ + return dateFns.differenceInYears(value, parsedComparing);
222
+ + case 'quarters':
223
+ + return dateFns.differenceInQuarters(value, parsedComparing);
224
+ + case 'months':
225
+ + return dateFns.differenceInMonths(value, parsedComparing);
226
+ + case 'weeks':
227
+ + return dateFns.differenceInWeeks(value, parsedComparing);
228
+ + case 'days':
229
+ + return dateFns.differenceInDays(value, parsedComparing);
230
+ + case 'hours':
231
+ + return dateFns.differenceInHours(value, parsedComparing);
232
+ + case 'minutes':
233
+ + return dateFns.differenceInMinutes(value, parsedComparing);
234
+ + case 'seconds':
235
+ + return dateFns.differenceInSeconds(value, parsedComparing);
236
+ + default: {
237
+ + return dateFns.differenceInMilliseconds(value, parsedComparing);
238
+ + }
239
+ + }
240
+ +};
241
+ +
242
+ +const diff = getDiff(value, comparing, unit);
243
+
244
+ // For Moment
245
+ -const diff = adapter.getDiff(value, comparing, unit);
246
+ +const diff = value.diff(comparing, unit);
247
+ ```
248
+
249
+ - The `adapter.getFormatHelperText` method have been removed, you can use the `adapter.expandFormat` instead:
250
+
251
+ ```diff
252
+ -const expandedFormat = adapter.getFormatHelperText(format);
253
+ +const expandedFormat = adapter.expandFormat(format);
254
+ ```
255
+
256
+ And if you need the exact same output you can apply the following transformation:
257
+
258
+ ```diff
259
+ // For Day.js
260
+ -const expandedFormat = adapter.getFormatHelperText(format);
261
+ +const expandedFormat = adapter.expandFormat(format).replace(/a/gi, '(a|p)m').toLocaleLowerCase();
262
+
263
+ // For Luxon
264
+ -const expandedFormat = adapter.getFormatHelperText(format);
265
+ +const expandedFormat = adapter.expandFormat(format).replace(/(a)/g, '(a|p)m').toLocaleLowerCase();
266
+
267
+ // For DateFns
268
+ -const expandedFormat = adapter.getFormatHelperText(format);
269
+ +const expandedFormat = adapter.expandFormat(format).replace(/(aaa|aa|a)/g, '(a|p)m').toLocaleLowerCase();
270
+
271
+ // For Moment
272
+ -const expandedFormat = adapter.getFormatHelperText(format);
273
+ +const expandedFormat = adapter.expandFormat(format).replace(/a/gi, '(a|p)m').toLocaleLowerCase();
274
+ ```
275
+
276
+ - The `adapter.getMeridiemText` method have been removed, you can use the `adapter.setHours`, `adapter.date` and `adapter.format` methods to recreate its behavior:
277
+
278
+ ```diff
279
+ -const meridiem = adapter.getMeridiemText('am');
280
+ +const getMeridiemText = (meridiem: 'am' | 'pm') => {
281
+ + const date = adapter.setHours(adapter.date()!, meridiem === 'am' ? 2 : 14);
282
+ + return utils.format(date, 'meridiem');
283
+ +};
284
+ +
285
+ +const meridiem = getMeridiemText('am');
286
+ ```
287
+
288
+ - The `adapter.getMonthArray` method have been removed, you can use the `adapter.startOfYear` and `adapter.addMonths` methods to recreate its behavior:
289
+
290
+ ```diff
291
+ -const monthArray = adapter.getMonthArray(value);
292
+ +const getMonthArray = (year) => {
293
+ + const firstMonth = utils.startOfYear(year);
294
+ + const months = [firstMonth];
295
+ +
296
+ + while (months.length < 12) {
297
+ + const prevMonth = months[months.length - 1];
298
+ + months.push(utils.addMonths(prevMonth, 1));
299
+ + }
300
+ +
301
+ + return months;
302
+ +}
303
+ +
304
+ +const monthArray = getMonthArray(value);
305
+ ```
306
+
307
+ - The `adapter.getNextMonth` method have been removed, you can use the `adapter.addMonths` method instead:
308
+
309
+ ```diff
310
+ -const nextMonth = adapter.getNextMonth(value);
311
+ +const nextMonth = adapter.addMonths(value, 1);
312
+ ```
313
+
314
+ - The `adapter.getPreviousMonth` method have been removed, you can use the `adapter.addMonths` method instead:
315
+
316
+ ```diff
317
+ -const previousMonth = adapter.getPreviousMonth(value);
318
+ +const previousMonth = adapter.addMonths(value, -1);
319
+ ```
320
+
321
+ - The `adapter.getWeekdays` method have been removed, you can use the `adapter.startOfWeek` and `adapter.addDays` methods instead:
322
+
323
+ ```diff
324
+ -const weekDays = adapter.getWeekdays(value);
325
+ +const getWeekdays = (value) => {
326
+ + const start = adapter.startOfWeek(value);
327
+ + return [0, 1, 2, 3, 4, 5, 6].map((diff) => utils.addDays(start, diff));
328
+ +};
329
+ +
330
+ +const weekDays = getWeekdays(value);
331
+ ```
332
+
333
+ - The `isNull` method have been removed, you can replace it with a very basic check:
334
+
335
+ ```diff
336
+ -const isNull = adapter.isNull(value);
337
+ +const isNull = value === null;
338
+ ```
339
+
340
+ - The `adapter.mergeDateAndTime` method have been removed, you can use the `adapter.setHours`, `adapter.setMinutes`, and `adapter.setSeconds` methods to recreate its behavior:
341
+
342
+ ```diff
343
+ -const result = adapter.mergeDateAndTime(valueWithDate, valueWithTime);
344
+ +const mergeDateAndTime = <TDate>(
345
+ + dateParam,
346
+ + timeParam,
347
+ + ) => {
348
+ + let mergedDate = dateParam;
349
+ + mergedDate = utils.setHours(mergedDate, utils.getHours(timeParam));
350
+ + mergedDate = utils.setMinutes(mergedDate, utils.getMinutes(timeParam));
351
+ + mergedDate = utils.setSeconds(mergedDate, utils.getSeconds(timeParam));
352
+ +
353
+ + return mergedDate;
354
+ + };
355
+ +
356
+ +const result = mergeDateAndTime(valueWithDate, valueWithTime);
357
+ ```
358
+
359
+ - The `adapter.parseISO` method have been removed, you can directly use your date library:
360
+
361
+ ```diff
362
+ // For Day.js
363
+ -const value = adapter.parseISO(isoString);
364
+ +const value = dayjs(isoString);
365
+
366
+ // For Luxon
367
+ -const value = adapter.parseISO(isoString);
368
+ +const value = DateTime.fromISO(isoString);
369
+
370
+ // For DateFns
371
+ -const value = adapter.parseISO(isoString);
372
+ +const value = dateFns.parseISO(isoString);
373
+
374
+ // For Moment
375
+ -const value = adapter.parseISO(isoString);
376
+ +const value = moment(isoString, true);
377
+ ```
378
+
379
+ - The `adapter.toISO` method have been removed, you can directly use your date library:
380
+
381
+ ```diff
382
+ -const isoString = adapter.toISO(value);
383
+ +const isoString = value.toISOString();
384
+ +const isoString = value.toUTC().toISO({ format: 'extended' });
385
+ +const isoString = dateFns.formatISO(value, { format: 'extended' });
386
+ +const isoString = value.toISOString();
387
+ ```
388
+
389
+ - The `adapter.isEqual` method used to accept any type of value for its two input and tried to parse them before checking if they were equal.
390
+ The method has been simplified and now only accepts an already-parsed date or `null` (ie: the same formats used by the `value` prop in the pickers)
391
+
392
+ ```diff
393
+ const adapterDayjs = new AdapterDayjs();
394
+ const adapterLuxon = new AdapterLuxon();
395
+ const adapterDateFns = new AdapterDateFns();
396
+ const adapterMoment = new AdatperMoment();
397
+
398
+ // Supported formats
399
+ const isEqual = adapterDayjs.isEqual(null, null); // Same for the other adapters
400
+ const isEqual = adapterLuxon.isEqual(DateTime.now(), DateTime.fromISO('2022-04-17'));
401
+ const isEqual = adapterMoment.isEqual(moment(), moment('2022-04-17'));
402
+ const isEqual = adapterDateFns.isEqual(new Date(), new Date('2022-04-17'));
403
+
404
+ // Non-supported formats (JS Date)
405
+ -const isEqual = adapterDayjs.isEqual(new Date(), new Date('2022-04-17'));
406
+ +const isEqual = adapterDayjs.isEqual(dayjs(), dayjs('2022-04-17'));
407
+
408
+ -const isEqual = adapterLuxon.isEqual(new Date(), new Date('2022-04-17'));
409
+ +const isEqual = adapterLuxon.isEqual(DateTime.now(), DateTime.fromISO('2022-04-17'));
410
+
411
+ -const isEqual = adapterMoment.isEqual(new Date(), new Date('2022-04-17'));
412
+ +const isEqual = adapterMoment.isEqual(moment(), moment('2022-04-17'));
413
+
414
+ // Non-supported formats (string)
415
+ -const isEqual = adapterDayjs.isEqual('2022-04-16', '2022-04-17');
416
+ +const isEqual = adapterDayjs.isEqual(dayjs('2022-04-17'), dayjs('2022-04-17'));
417
+
418
+ -const isEqual = adapterLuxon.isEqual('2022-04-16', '2022-04-17');
419
+ +const isEqual = adapterLuxon.isEqual(DateTime.fromISO('2022-04-17'), DateTime.fromISO('2022-04-17'));
420
+
421
+ -const isEqual = adapterMoment.isEqual('2022-04-16', '2022-04-17');
422
+ +const isEqual = adapterMoment.isEqual(moment('2022-04-17'), moment('2022-04-17'));
423
+
424
+ -const isEqual = adapterDateFns.isEqual('2022-04-16', '2022-04-17');
425
+ +const isEqual = adapterDateFns.isEqual(new Date('2022-04-17'), new Date('2022-04-17'));
426
+ ```
427
+
428
+ - The `dateLibInstance` prop of `LocalizationProvider` does not work with `AdapterDayjs` anymore (#11023). This prop was used to set the pickers in UTC mode before the implementation of a proper timezone support in the components.
429
+ You can learn more about the new approach on the [dedicated doc page](https://mui.com/x/react-date-pickers/timezone/).
430
+
431
+ ```diff
432
+ // When a `value` or a `defaultValue` is provided
433
+ <LocalizationProvider
434
+ adapter={AdapterDayjs}
435
+ - dateLibInstance={dayjs.utc}
436
+ >
437
+ <DatePicker value={dayjs.utc('2022-04-17')} />
438
+ </LocalizationProvider>
439
+
440
+ // When no `value` or `defaultValue` is provided
441
+ <LocalizationProvider
442
+ adapter={AdapterDayjs}
443
+ - dateLibInstance={dayjs.utc}
444
+ >
445
+ - <DatePicker />
446
+ + <DatePicker timezone="UTC" />
447
+ </LocalizationProvider>
448
+ ```
449
+
450
+ - The property `hasLeadingZeros` has been removed from the sections in favor of the more precise `hasLeadingZerosInFormat` and `hasLeadingZerosInInput` properties (#10994). To keep the same behavior, you can replace it by `hasLeadingZerosInFormat`:
451
+
452
+ ```diff
453
+ const fieldRef = React.useRef<FieldRef<FieldSection>>(null);
454
+
455
+ React.useEffect(() => {
456
+ const firstSection = fieldRef.current!.getSections()[0];
457
+ - console.log(firstSection.hasLeadingZeros);
458
+ + console.log(firstSection.hasLeadingZerosInFormat);
459
+ }, []);
460
+
461
+ return (
462
+ <DateField unstableFieldRef={fieldRef} />
463
+ );
464
+ ```
465
+
466
+ - The `adapter.getYearRange` method used to accept two params and now accepts a tuple to be consistent with the `adapter.isWithinRange` method (#10978):
467
+
468
+ ```diff
469
+ -adapter.getYearRange(start, end);
470
+ +adapter.getYearRange([start, end])
471
+ ```
472
+
473
+ - The `adapter.isValid` method used to accept any type of value and tried to parse them before checking their validity (#10971).
474
+ The method has been simplified and now only accepts an already-parsed date or `null`.
475
+ Which is the same type as the one accepted by the components `value` prop.
476
+
477
+ ```diff
478
+ const adapterDayjs = new AdapterDayjs();
479
+ const adapterLuxon = new AdapterLuxon();
480
+ const adapterDateFns = new AdapterDateFns();
481
+ const adapterMoment = new AdatperMoment();
482
+
483
+ // Supported formats
484
+ const isValid = adapterDayjs.isValid(null); // Same for the other adapters
485
+ const isValid = adapterLuxon.isValid(DateTime.now());
486
+ const isValid = adapterMoment.isValid(moment());
487
+ const isValid = adapterDateFns.isValid(new Date());
488
+
489
+ // Non-supported formats (JS Date)
490
+ -const isValid = adapterDayjs.isValid(new Date('2022-04-17'));
491
+ +const isValid = adapterDayjs.isValid(dayjs('2022-04-17'));
492
+
493
+ -const isValid = adapterLuxon.isValid(new Date('2022-04-17'));
494
+ +const isValid = adapterLuxon.isValid(DateTime.fromISO('2022-04-17'));
495
+
496
+ -const isValid = adapterMoment.isValid(new Date('2022-04-17'));
497
+ +const isValid = adapterMoment.isValid(moment('2022-04-17'));
498
+
499
+ // Non-supported formats (string)
500
+ -const isValid = adapterDayjs.isValid('2022-04-17');
501
+ +const isValid = adapterDayjs.isValid(dayjs('2022-04-17'));
502
+
503
+ -const isValid = adapterLuxon.isValid('2022-04-17');
504
+ +const isValid = adapterLuxon.isValid(DateTime.fromISO('2022-04-17'));
505
+
506
+ -const isValid = adapterMoment.isValid('2022-04-17');
507
+ +const isValid = adapterMoment.isValid(moment('2022-04-17'));
508
+
509
+ -const isValid = adapterDateFns.isValid('2022-04-17');
510
+ +const isValid = adapterDateFns.isValid(new Date('2022-04-17'));
511
+ ```
512
+
513
+ #### Changes
514
+
515
+ - [pickers] Change the input format of `adapter.getYearRange` to be consistent with `adapter.isWithinRange` (#10978) @flaviendelangle
516
+ - [pickers] Clean remaining `components` / `componentsProps` typings (#11040) @flaviendelangle
517
+ - [pickers] Modify `adapter.isEqual` method to accept `TDate | null` instead of `any` (#10976) @flaviendelangle
518
+ - [pickers] Modify `adapter.isValid` method to accept `TDate | null` instead of `any` (#10971) @flaviendelangle
519
+ - [pickers] Remove the `hasLeadingZeros` property from `FieldSection` (#10994) @flaviendelangle
520
+ - [pickers] Remove the deprecated methods and formats from the adapters (#10776) @flaviendelangle
521
+ - [pickers] Remove the legacy UTC implementation for `dayjs` (#11023) @flaviendelangle
522
+ - [pickers] Remove unused code (#11048) @flaviendelangle
523
+ - [pickers] Move the exports of the `calendarHeader` slot to `@mui/x-date-pickers/PickersCalendarHeader` (#11020) @flaviendelangle
524
+ - [DateCalendar] Allow to override the format of the header with a prop (#10990) @flaviendelangle
525
+ - [DateCalendar] Remove the string argument of the `dayOfWeekFormatter` prop (#10992) @flaviendelangle
526
+
527
+ ### Docs
528
+
529
+ - [docs] Fix incorrect component name in the "Custom slots and subcomponents" page (#11024) @flaviendelangle
530
+ - [docs] Fix typos in pickers migration guide (#11057) @flaviendelangle
531
+
532
+ ### Core
533
+
534
+ - [core] Clean the component slots doc generation (#11021) @flaviendelangle
535
+ - [core] Fix script to release with `next` tag (#10996) @LukasTy
536
+ - [test] Wait for images to load (#11004) @cherniavskii
537
+
6
538
  ## 7.0.0-alpha.0
7
539
 
8
540
  _Nov 10, 2023_
@@ -40,7 +572,7 @@ A special shoutout to thank the 12 contributors who made this release possible.
40
572
  }
41
573
  const filterRegex = new RegExp(escapeRegExp(filterItem.value), 'i');
42
574
  - return (cellParams) => {
43
- - const { value } = cellParams;
575
+ - const { value } = cellParams;
44
576
  + return (value, row, colDef, apiRef) => {
45
577
  return value != null ? filterRegex.test(String(value)) : false;
46
578
  };
@@ -152,6 +684,59 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
152
684
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
153
685
  - [license] Correctly throw errors (#10924) @oliviertassinari
154
686
 
687
+ ## 6.18.2
688
+
689
+ _Nov 23, 2023_
690
+
691
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
692
+
693
+ - 🌍 Improve Arabic (ar-SD), Czech (cs-CZ), and Hebrew (he-IL) locales on Data Grid
694
+ - 🌍 Add Basque (eu) and Macedonian (mk) locales on Pickers
695
+ - 🌍 Improve German (de-DE) and Spanish (es-ES) locales on Pickers
696
+ - 🐞 Bugfixes
697
+ - 📚 Documentation improvements
698
+
699
+ ### Data Grid
700
+
701
+ #### `@mui/x-data-grid@6.18.2`
702
+
703
+ - [l10n] Improve Arabic (ar-SD) locale (#11096) @OmarWebDev
704
+ - [l10n] Improve Czech (cs-CZ) locale (#10968) @luborepka
705
+ - [l10n] Improve Hebrew (he-IL) locale (#11056) @LironKiloma
706
+
707
+ #### `@mui/x-data-grid-pro@6.18.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
708
+
709
+ Same changes as in `@mui/x-data-grid@6.18.2`.
710
+
711
+ #### `@mui/x-data-grid-premium@6.18.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
712
+
713
+ Same changes as in `@mui/x-data-grid-pro@6.18.2`.
714
+
715
+ ### Date Pickers
716
+
717
+ #### `@mui/x-date-pickers@6.18.2`
718
+
719
+ - [l10n] Add Basque (eu) locale and improve Spanish (es-ES) locale (#10985) @lajtomekadimon
720
+ - [l10n] Add Macedonian (mk) locale (#11155) @brsnik
721
+ - [l10n] Improve German (de-DE) locale (#11104) @jho-vema
722
+ - [pickers] Deprecate `defaultCalendarMonth` prop (#11138) @flaviendelangle
723
+ - [pickers] Fix `DateCalendar` crashing when given an invalid value (#11101) @flaviendelangle
724
+
725
+ #### `@mui/x-date-pickers-pro@6.18.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
726
+
727
+ Same changes as in `@mui/x-date-pickers@6.18.2`.
728
+
729
+ ### Charts / `@mui/x-charts@6.18.2`
730
+
731
+ - [charts] Fix `ChartsTooltip` component setup (#11157) @LukasTy
732
+ - [charts] Remove outdated prop-types (#10998) @alexfauquette
733
+
734
+ ### Docs
735
+
736
+ - [docs] Fix incoherent naming of a component in `Custom slots and subcomponents` page (#11003) @lhilgert9
737
+ - [test] Skip flaky e2e test in webkit (#11115) @cherniavskii
738
+ - [test] Wait for images to load (#11109) @cherniavskii
739
+
155
740
  ## 6.18.1
156
741
 
157
742
  _Nov 9, 2023_
@@ -218,11 +803,11 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
218
803
 
219
804
  - 🎁 The Charts package is now officially stable!
220
805
  - 🥧 Pie charts are now animated.
221
- - 📈 Line charts now support partial data, and can interpolate missing data.
806
+ - 📈 Line charts now support partial data, and can interpolate missing data https://mui.com/x/react-charts/lines/#skip-missing-points.
222
807
 
223
- <img width="380" alt="line charts with partial data" src="https://github.com/mui/mui-x/assets/45398769/385ecf77-19b2-4a03-8aef-5d547db1d9ad">
808
+ <img src="https://github.com/mui/mui-x/assets/3165635/d2d50b1b-ee29-4e4c-9ebe-629c06f3093e" width="683" height="436" />
224
809
 
225
- - ✨ Allow to ignore [diacritics](https://en.wikipedia.org/wiki/Diacritic) when filtering
810
+ - ✨ The data grid allows to ignore [diacritics](https://en.wikipedia.org/wiki/Diacritic) when filtering.
226
811
  - 📚 Documentation improvements
227
812
 
228
813
  ### Data Grid
@@ -384,7 +969,7 @@ Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
384
969
 
385
970
  - [charts] Add reference links to area + bar chart components (#10652) @michelengelen
386
971
  - [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
387
- - [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
972
+ - [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
388
973
  - [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
389
974
  - [charts] Support animation on `BarChart` (#9926) @alexfauquette
390
975
  - [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
@@ -460,6 +1045,7 @@ It adds line break support and avoids overlapping text in the legend.
460
1045
  This comes with some breaking changes.
461
1046
 
462
1047
  - The DOM structure is modified. An intermediary `<tspan />` element has been added. This can impact how your style is applied.
1048
+
463
1049
  ```diff
464
1050
  - <text>The label</text>
465
1051
  + <text><tspan>The label</tspan></text>
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["autoFocus", "onViewChange", "value", "defaultValue", "referenceDate", "disableFuture", "disablePast", "defaultCalendarMonth", "onChange", "onYearChange", "onMonthChange", "reduceAnimations", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "view", "views", "openTo", "className", "disabled", "readOnly", "minDate", "maxDate", "disableHighlightToday", "focusedView", "onFocusedViewChange", "showDaysOutsideCurrentMonth", "fixedWeekNumber", "dayOfWeekFormatter", "slots", "slotProps", "loading", "renderLoading", "displayWeekNumber", "yearsPerRow", "monthsPerRow", "timezone"];
3
+ const _excluded = ["autoFocus", "onViewChange", "value", "defaultValue", "referenceDate", "disableFuture", "disablePast", "onChange", "onYearChange", "onMonthChange", "reduceAnimations", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "view", "views", "openTo", "className", "disabled", "readOnly", "minDate", "maxDate", "disableHighlightToday", "focusedView", "onFocusedViewChange", "showDaysOutsideCurrentMonth", "fixedWeekNumber", "dayOfWeekFormatter", "slots", "slotProps", "loading", "renderLoading", "displayWeekNumber", "yearsPerRow", "monthsPerRow", "timezone"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
@@ -95,7 +95,6 @@ export const DateCalendar = /*#__PURE__*/React.forwardRef(function DateCalendar(
95
95
  referenceDate: referenceDateProp,
96
96
  disableFuture,
97
97
  disablePast,
98
- defaultCalendarMonth,
99
98
  onChange,
100
99
  onYearChange,
101
100
  onMonthChange,
@@ -166,7 +165,6 @@ export const DateCalendar = /*#__PURE__*/React.forwardRef(function DateCalendar(
166
165
  onMonthSwitchingAnimationEnd
167
166
  } = useCalendarState({
168
167
  value,
169
- defaultCalendarMonth,
170
168
  referenceDate: referenceDateProp,
171
169
  reduceAnimations,
172
170
  onMonthChange,
@@ -362,16 +360,11 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
362
360
  className: PropTypes.string,
363
361
  /**
364
362
  * Formats the day of week displayed in the calendar header.
365
- * @param {string} day The day of week provided by the adapter. Deprecated, will be removed in v7: Use `date` instead.
366
363
  * @param {TDate} date The date of the day of week provided by the adapter.
367
364
  * @returns {string} The name to display.
368
365
  * @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
369
366
  */
370
367
  dayOfWeekFormatter: PropTypes.func,
371
- /**
372
- * Default calendar month displayed when `value` and `defaultValue` are empty.
373
- */
374
- defaultCalendarMonth: PropTypes.any,
375
368
  /**
376
369
  * The default selected value.
377
370
  * Used when the component is not controlled.
@@ -542,7 +535,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
542
535
  * Choose which timezone to use for the value.
543
536
  * Example: "default", "system", "UTC", "America/New_York".
544
537
  * If you pass values from other timezones to some props, they will be converted to this timezone before being used.
545
- * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documention} for more details.
538
+ * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
546
539
  * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
547
540
  */
548
541
  timezone: PropTypes.string,