@mui/x-date-pickers-pro 7.0.0-beta.0 → 7.0.0-beta.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 (149) hide show
  1. package/CHANGELOG.md +406 -1
  2. package/DateRangeCalendar/DateRangeCalendar.d.ts +2 -1
  3. package/DateRangeCalendar/DateRangeCalendar.js +6 -6
  4. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +7 -7
  5. package/DateRangeCalendar/useDragRange.d.ts +4 -4
  6. package/DateRangePicker/DateRangePicker.d.ts +2 -1
  7. package/DateRangePicker/DateRangePicker.js +5 -5
  8. package/DateRangePicker/DateRangePicker.types.d.ts +4 -3
  9. package/DateRangePicker/DateRangePickerToolbar.d.ts +3 -2
  10. package/DateRangePicker/DateRangePickerToolbar.js +1 -1
  11. package/DateRangePicker/shared.d.ts +6 -5
  12. package/DateRangePickerDay/DateRangePickerDay.d.ts +3 -2
  13. package/DateRangePickerDay/DateRangePickerDay.js +2 -2
  14. package/DateTimeRangePicker/DateTimeRangePicker.d.ts +2 -1
  15. package/DateTimeRangePicker/DateTimeRangePicker.js +9 -9
  16. package/DateTimeRangePicker/DateTimeRangePicker.types.d.ts +4 -3
  17. package/DateTimeRangePicker/DateTimeRangePickerTimeWrapper.d.ts +3 -2
  18. package/DateTimeRangePicker/DateTimeRangePickerToolbar.d.ts +3 -2
  19. package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  20. package/DateTimeRangePicker/shared.d.ts +6 -5
  21. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +2 -1
  22. package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
  23. package/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +4 -3
  24. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.d.ts +2 -1
  25. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -9
  26. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.types.d.ts +4 -3
  27. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePickerLayout.d.ts +2 -1
  28. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +2 -1
  29. package/MobileDateRangePicker/MobileDateRangePicker.js +5 -5
  30. package/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +4 -3
  31. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.d.ts +2 -1
  32. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +9 -9
  33. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.types.d.ts +4 -3
  34. package/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +2 -1
  35. package/MultiInputDateRangeField/MultiInputDateRangeField.js +5 -5
  36. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +7 -6
  37. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +2 -1
  38. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -9
  39. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +8 -7
  40. package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +2 -1
  41. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +5 -5
  42. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +8 -7
  43. package/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +2 -1
  44. package/SingleInputDateRangeField/SingleInputDateRangeField.js +5 -5
  45. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +7 -6
  46. package/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +3 -2
  47. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +2 -1
  48. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +9 -9
  49. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +7 -6
  50. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -2
  51. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +2 -1
  52. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +5 -5
  53. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +7 -6
  54. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -2
  55. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +2 -1
  56. package/StaticDateRangePicker/StaticDateRangePicker.js +5 -5
  57. package/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +4 -3
  58. package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +3 -2
  59. package/index.d.ts +7 -1
  60. package/index.js +7 -2
  61. package/internals/hooks/models/useRangePicker.d.ts +6 -5
  62. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -1
  63. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
  64. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +6 -5
  65. package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +4 -4
  66. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -1
  67. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
  68. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +6 -5
  69. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +2 -1
  70. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +3 -2
  71. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +3 -2
  72. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +2 -1
  73. package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +5 -4
  74. package/internals/models/dateRange.d.ts +4 -3
  75. package/internals/models/dateTimeRange.d.ts +3 -2
  76. package/internals/models/fields.d.ts +2 -2
  77. package/internals/models/timeRange.d.ts +3 -2
  78. package/internals/utils/date-range-manager.d.ts +5 -5
  79. package/internals/utils/date-utils.d.ts +5 -5
  80. package/internals/utils/releaseInfo.js +1 -1
  81. package/internals/utils/validation/validateDateRange.d.ts +2 -2
  82. package/internals/utils/validation/validateDateTimeRange.d.ts +2 -2
  83. package/internals/utils/valueManagers.d.ts +2 -1
  84. package/legacy/DateRangeCalendar/DateRangeCalendar.js +6 -6
  85. package/legacy/DateRangePicker/DateRangePicker.js +5 -5
  86. package/legacy/DateRangePicker/DateRangePickerToolbar.js +1 -1
  87. package/legacy/DateRangePickerDay/DateRangePickerDay.js +2 -2
  88. package/legacy/DateTimeRangePicker/DateTimeRangePicker.js +9 -9
  89. package/legacy/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  90. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
  91. package/legacy/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -9
  92. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -5
  93. package/legacy/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +9 -9
  94. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +5 -5
  95. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -9
  96. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +5 -5
  97. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +5 -5
  98. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +9 -9
  99. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +5 -5
  100. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -5
  101. package/legacy/index.js +21 -2
  102. package/legacy/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
  103. package/legacy/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
  104. package/legacy/internals/utils/releaseInfo.js +1 -1
  105. package/models/range.d.ts +3 -2
  106. package/modern/DateRangeCalendar/DateRangeCalendar.js +6 -6
  107. package/modern/DateRangePicker/DateRangePicker.js +5 -5
  108. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  109. package/modern/DateRangePickerDay/DateRangePickerDay.js +2 -2
  110. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +9 -9
  111. package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  112. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
  113. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -9
  114. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -5
  115. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +9 -9
  116. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +5 -5
  117. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -9
  118. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +5 -5
  119. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +5 -5
  120. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +9 -9
  121. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +5 -5
  122. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -5
  123. package/modern/index.js +7 -2
  124. package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
  125. package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
  126. package/modern/internals/utils/releaseInfo.js +1 -1
  127. package/node/DateRangeCalendar/DateRangeCalendar.js +7 -7
  128. package/node/DateRangePicker/DateRangePicker.js +5 -5
  129. package/node/DateRangePicker/DateRangePickerToolbar.js +1 -1
  130. package/node/DateRangePickerDay/DateRangePickerDay.js +3 -3
  131. package/node/DateTimeRangePicker/DateTimeRangePicker.js +9 -9
  132. package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  133. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
  134. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -9
  135. package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -5
  136. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +9 -9
  137. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +5 -5
  138. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +9 -9
  139. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +5 -5
  140. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +5 -5
  141. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +9 -9
  142. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +5 -5
  143. package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -5
  144. package/node/index.js +18 -9
  145. package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
  146. package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
  147. package/node/internals/utils/releaseInfo.js +1 -1
  148. package/package.json +7 -7
  149. package/themeAugmentation/props.d.ts +17 -17
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
+ ## v7.0.0-beta.2
7
+
8
+ _Feb 9, 2024_
9
+
10
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
13
+ - 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
14
+ - 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@v7.0.0-beta.2`
21
+
22
+ - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
23
+ - [DataGrid] Add slot typings (#11795) @romgrk
24
+ - [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
25
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
26
+ - [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
27
+ - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
28
+ - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
29
+
30
+ #### `@mui/x-data-grid-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
33
+
34
+ #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
+
36
+ Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
37
+
38
+ - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
39
+ - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
40
+
41
+ ### Date Pickers
42
+
43
+ #### `@mui/x-date-pickers@v7.0.0-beta.2`
44
+
45
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
46
+ - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
47
+
48
+ #### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
49
+
50
+ Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
51
+
52
+ ### Charts / `@mui/x-charts@v7.0.0-beta.2`
53
+
54
+ - [charts] Add `reverse` property to axes (#11899) @alexfauquette
55
+ - [charts] Allow series ids to be numbers (#11941) @alexfauquette
56
+ - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
57
+
58
+ ### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
59
+
60
+ - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
61
+ - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
62
+
63
+ ### License
64
+
65
+ #### Breaking changes
66
+
67
+ - If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
68
+
69
+ ```diff
70
+ -import { LicenseInfo } from '@mui/x-license-pro';
71
+ +import { LicenseInfo } from '@mui/x-license';
72
+ ```
73
+
74
+ `@mui/x-license@v7.0.0-beta.2`
75
+
76
+ - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
77
+
78
+ ### Docs
79
+
80
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
81
+ - [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
82
+ - [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
83
+ - [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
84
+ - [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
85
+ - [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
86
+ - [docs] Avoid use of shorthand (#12000) @oliviertassinari
87
+ - [docs] Avoid the use of MUI Core @oliviertassinari
88
+ - [docs] Fix image size and dark mode @oliviertassinari
89
+ - [docs] Follow blank line convention with use client @oliviertassinari
90
+ - [docs] Stable layout between light and dark mode @oliviertassinari
91
+
92
+ ### Core
93
+
94
+ - [core] Add `docs:serve` script (#11935) @cherniavskii
95
+ - [core] Bump monorepo (#12001) @cherniavskii
96
+ - [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
97
+ - [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
98
+ - [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
99
+ - [core] Flatten grid packages folder (#11946) @cherniavskii
100
+ - [core] Improve license info deprecation message (#11974) @cherniavskii
101
+ - [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
102
+ - [core] Move next config to ESM (#11882) @Janpot
103
+ - [core] Add auto-message on closed issues (#11805) @michelengelen
104
+ - [core] Simplify bug reproduction (#11849) @oliviertassinari
105
+ - [core] Fix npm reference @oliviertassinari
106
+ - [core] Normalize issue template @oliviertassinari
107
+
108
+ ## 7.0.0-beta.1
109
+
110
+ _Feb 1, 2024_
111
+
112
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
113
+
114
+ - 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
115
+ - 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
116
+ - 🚀 All charts have click handlers (#11411) @alexfauquette
117
+ Test their respective documentation demonstrations to know more about the data format:
118
+
119
+ - [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
120
+ - [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
121
+ - [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
122
+ - [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)
123
+
124
+ Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.
125
+
126
+ ### Data Grid
127
+
128
+ ### Breaking changes
129
+
130
+ - The signature of `GridColDef['valueGetter']` has been changed for performance reasons:
131
+
132
+ ```diff
133
+ - valueGetter: ({ value, row }) => value,
134
+ + valueGetter: (value, row, column, apiRef) => value,
135
+ ```
136
+
137
+ The `GridValueGetterParams` interface has been removed:
138
+
139
+ ```diff
140
+ - const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
141
+ + const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
142
+ ```
143
+
144
+ - The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:
145
+
146
+ ```diff
147
+ - valueFormatter: ({ value }) => value,
148
+ + valueFormatter: (value, row, column, apiRef) => value,
149
+ ```
150
+
151
+ The `GridValueFormatterParams` interface has been removed:
152
+
153
+ ```diff
154
+ - const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
155
+ + const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
156
+ ```
157
+
158
+ - The signature of `GridColDef['valueSetter']` has been changed for performance reasons:
159
+
160
+ ```diff
161
+ - valueSetter: (params) => {
162
+ - const [firstName, lastName] = params.value!.toString().split(' ');
163
+ - return { ...params.row, firstName, lastName };
164
+ - }
165
+ + valueSetter: (value, row) => {
166
+ + const [firstName, lastName] = value!.toString().split(' ');
167
+ + return { ...row, firstName, lastName };
168
+ +}
169
+ ```
170
+
171
+ The `GridValueSetterParams` interface has been removed:
172
+
173
+ ```diff
174
+ - const setFullName = (params: GridValueSetterParams) => {
175
+ - const [firstName, lastName] = params.value!.toString().split(' ');
176
+ - return { ...params.row, firstName, lastName };
177
+ - };
178
+ + const setFullName: GridValueSetter<Row> = (value, row) => {
179
+ + const [firstName, lastName] = value!.toString().split(' ');
180
+ + return { ...row, firstName, lastName };
181
+ + }
182
+ ```
183
+
184
+ - The signature of `GridColDef['valueParser']` has been changed for performance reasons:
185
+
186
+ ```diff
187
+ - valueParser: (value, params: GridCellParams) => value.toLowerCase(),
188
+ + valueParser: (value, row, column, apiRef) => value.toLowerCase(),
189
+ ```
190
+
191
+ - The signature of `GridColDef['colSpan']` has been changed for performance reasons:
192
+
193
+ ```diff
194
+ - colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
195
+ + colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
196
+ ```
197
+
198
+ - The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:
199
+
200
+ ```diff
201
+ - pastedValueParser: (value, params) => new Date(value),
202
+ + pastedValueParser: (value, row, column, apiRef) => new Date(value),
203
+ ```
204
+
205
+ - The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:
206
+
207
+ ```diff
208
+ - groupingValueGetter: (params) => params.value.name,
209
+ + groupingValueGetter: (value: { name: string }) => value.name,
210
+ ```
211
+
212
+ #### `@mui/x-data-grid@7.0.0-beta.1`
213
+
214
+ - [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
215
+ - [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
216
+ - [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
217
+ - [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
218
+ - [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85
219
+
220
+ #### `@mui/x-data-grid-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
221
+
222
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
223
+
224
+ #### `@mui/x-data-grid-premium@7.0.0-beta.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
225
+
226
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
227
+
228
+ ### Date Pickers
229
+
230
+ #### `@mui/x-date-pickers@7.0.0-beta.1`
231
+
232
+ - [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy
233
+
234
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
235
+
236
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
237
+
238
+ ### Charts
239
+
240
+ #### Breaking changes
241
+
242
+ - The line chart now have animation by default.
243
+ You can disable it with `skipAnimation` prop.
244
+ See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.
245
+
246
+ - Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.
247
+
248
+ `@mui/x-charts@7.0.0-beta.1`
249
+
250
+ - [charts] Add `onClick` support (#11411) @alexfauquette
251
+ - [charts] Add line animation (#11620) @alexfauquette
252
+ - [charts] Document how to modify color according to values (#11824) @alexfauquette
253
+ - [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette
254
+
255
+ ### Docs
256
+
257
+ - [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
258
+ - [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
259
+ - [docs] Fix charts API links (#11832) @alexfauquette
260
+ - [docs] Improve Support page (#11556) @oliviertassinari
261
+ - [docs] Improve column visibility documentation (#11857) @MBilalShafi
262
+ - [docs] Polish header @oliviertassinari
263
+ - [docs] Sync support page with core @oliviertassinari
264
+ - [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas
265
+
266
+ ### Core
267
+
268
+ - [core] Rely on immutable ref when possible (#11847) @oliviertassinari
269
+ - [core] Bump monorepo (#11897) @alexfauquette
270
+
6
271
  ## 7.0.0-beta.0
7
272
 
8
273
  _Jan 26, 2024_
@@ -1873,6 +2138,146 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
1873
2138
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
1874
2139
  - [license] Correctly throw errors (#10924) @oliviertassinari
1875
2140
 
2141
+ ## v6.19.4
2142
+
2143
+ _Feb 9, 2024_
2144
+
2145
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
2146
+
2147
+ - 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
2148
+ - 🐞 Bugfixes
2149
+ - 📚 Documentation improvements
2150
+
2151
+ ### Data Grid
2152
+
2153
+ #### `@mui/x-data-grid@v6.19.4`
2154
+
2155
+ - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2156
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
2157
+ - [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
2158
+ - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2159
+ - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2160
+
2161
+ #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2162
+
2163
+ Same changes as in `@mui/x-data-grid@v6.19.4`.
2164
+
2165
+ #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2166
+
2167
+ Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2168
+
2169
+ - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2170
+ - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2171
+
2172
+ ### Date Pickers
2173
+
2174
+ #### `@mui/x-date-pickers@v6.19.4`
2175
+
2176
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2177
+
2178
+ #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2179
+
2180
+ Same changes as in `@mui/x-date-pickers@v6.19.4`.
2181
+
2182
+ ### Charts / `@mui/x-charts@v6.19.4`
2183
+
2184
+ - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2185
+ - [charts] Allow series ids to be numbers (#11960) @alexfauquette
2186
+ - [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
2187
+
2188
+ ### Docs
2189
+
2190
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
2191
+ - [docs] Avoid the use of MUI Core @oliviertassinari
2192
+ - [docs] Fix API links (#11930) @alexfauquette
2193
+ - [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
2194
+ - [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
2195
+ - [code] Simplify bug reproduction (#11932) @alexfauquette
2196
+
2197
+ ## 6.19.3
2198
+
2199
+ _Feb 1, 2024_
2200
+
2201
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2202
+
2203
+ - 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
2204
+ - 🐞 Bugfixes
2205
+ - 📚 Documentation improvements
2206
+
2207
+ ### Data Grid
2208
+
2209
+ #### `@mui/x-data-grid@6.19.3`
2210
+
2211
+ - [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
2212
+
2213
+ #### `@mui/x-data-grid-pro@6.19.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2214
+
2215
+ Same changes as in `@mui/x-data-grid@6.19.3`.
2216
+
2217
+ #### `@mui/x-data-grid-premium@6.19.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2218
+
2219
+ Same changes as in `@mui/x-data-grid-pro@6.19.3`.
2220
+
2221
+ ### Date Pickers
2222
+
2223
+ #### `@mui/x-date-pickers@6.19.3`
2224
+
2225
+ - [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
2226
+
2227
+ #### `@mui/x-date-pickers-pro@6.19.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2228
+
2229
+ Same changes as in `@mui/x-date-pickers@6.19.3`.
2230
+
2231
+ ### Charts / `@mui/x-charts@6.19.3`
2232
+
2233
+ - [charts] Document how to modify color according to values (#11854) @alexfauquette
2234
+
2235
+ ### Docs
2236
+
2237
+ - [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
2238
+ - [docs] Fix 404 (#11852) @alexfauquette
2239
+ - [docs] Fix <title> generation (#11825) @alexfauquette
2240
+ - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2241
+ - [docs] Improve Support page (#11556) @oliviertassinari
2242
+ - [docs] Sync support page with core @oliviertassinari
2243
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2244
+ - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2245
+
2246
+ ## 6.19.2
2247
+
2248
+ _Jan 25, 2024_
2249
+
2250
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
2251
+
2252
+ - 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
2253
+ - 🐞 Bugfixes
2254
+
2255
+ ### Date Pickers
2256
+
2257
+ #### `@mui/x-date-pickers@6.19.2`
2258
+
2259
+ - [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
2260
+
2261
+ #### `@mui/x-date-pickers-pro@6.19.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2262
+
2263
+ Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
2264
+
2265
+ - [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
2266
+
2267
+ ### Data Grid
2268
+
2269
+ #### `@mui/x-data-grid@6.19.2`
2270
+
2271
+ - [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
2272
+
2273
+ #### `@mui/x-data-grid-pro@6.19.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2274
+
2275
+ Same changes as in `@mui/x-data-grid@6.19.2`.
2276
+
2277
+ #### `@mui/x-data-grid-premium@6.19.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2278
+
2279
+ Same changes as in `@mui/x-data-grid-pro@6.19.2`.
2280
+
1876
2281
  ## 6.19.1
1877
2282
 
1878
2283
  _Jan 19, 2024_
@@ -6876,7 +7281,7 @@ You can find more information about the new api, including how to set those tran
6876
7281
  - [core] Add link to the security page on the `README` (#6073) @oliviertassinari
6877
7282
  - [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
6878
7283
  - [core] Remove the Storybook (#6099) @flaviendelangle
6879
- - [core] Tag release as `next` in NPM (#6256) @m4theushw
7284
+ - [core] Tag release as `next` in npm (#6256) @m4theushw
6880
7285
  - [core] Update monorepo (#6180) @flaviendelangle
6881
7286
  - [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
6882
7287
  - [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { PickerValidDate } from '@mui/x-date-pickers/models';
2
3
  import { DateRangeCalendarProps } from './DateRangeCalendar.types';
3
- type DateRangeCalendarComponent = (<TDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DateRangeCalendarComponent = (<TDate extends PickerValidDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
5
  propTypes?: any;
5
6
  };
6
7
  /**
@@ -10,7 +10,7 @@ import useMediaQuery from '@mui/material/useMediaQuery';
10
10
  import { resolveComponentProps, useSlotProps } from '@mui/base/utils';
11
11
  import { styled, useThemeProps } from '@mui/material/styles';
12
12
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
13
- import { Watermark } from '@mui/x-license-pro';
13
+ import { Watermark } from '@mui/x-license';
14
14
  import { PickersCalendarHeader } from '@mui/x-date-pickers/PickersCalendarHeader';
15
15
  import { applyDefaultDate, DayCalendar, useDefaultReduceAnimations, PickersArrowSwitcher, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone, useViews } from '@mui/x-date-pickers/internals';
16
16
  import { getReleaseInfo } from '../internals/utils/releaseInfo';
@@ -558,7 +558,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
558
558
  * The default selected value.
559
559
  * Used when the component is not controlled.
560
560
  */
561
- defaultValue: PropTypes.arrayOf(PropTypes.any),
561
+ defaultValue: PropTypes.arrayOf(PropTypes.object),
562
562
  /**
563
563
  * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
564
564
  * @default false
@@ -612,11 +612,11 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
612
612
  /**
613
613
  * Maximal selectable date.
614
614
  */
615
- maxDate: PropTypes.any,
615
+ maxDate: PropTypes.object,
616
616
  /**
617
617
  * Minimal selectable date.
618
618
  */
619
- minDate: PropTypes.any,
619
+ minDate: PropTypes.object,
620
620
  /**
621
621
  * Callback fired when the value changes.
622
622
  * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
@@ -675,7 +675,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
675
675
  * The date used to generate the new value when both `value` and `defaultValue` are empty.
676
676
  * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.
677
677
  */
678
- referenceDate: PropTypes.any,
678
+ referenceDate: PropTypes.object,
679
679
  /**
680
680
  * Component rendered on the "day" view when `props.loading` is true.
681
681
  * @returns {React.ReactNode} The node to render when loading.
@@ -730,7 +730,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
730
730
  * The selected value.
731
731
  * Used when the component is controlled.
732
732
  */
733
- value: PropTypes.arrayOf(PropTypes.any),
733
+ value: PropTypes.arrayOf(PropTypes.object),
734
734
  /**
735
735
  * The visible view.
736
736
  * Used when the component view is controlled.
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { SlotComponentProps } from '@mui/base/utils';
4
4
  import { Theme } from '@mui/material/styles';
5
- import { TimezoneProps } from '@mui/x-date-pickers/models';
5
+ import { PickerValidDate, TimezoneProps } from '@mui/x-date-pickers/models';
6
6
  import { PickersCalendarHeader, PickersCalendarHeaderProps, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps } from '@mui/x-date-pickers/PickersCalendarHeader';
7
7
  import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlots, DayCalendarSlotProps, PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, DayCalendarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
8
8
  import { DayRangeValidationProps } from '../internals/models';
@@ -11,7 +11,7 @@ import { DateRangeCalendarClasses } from './dateRangeCalendarClasses';
11
11
  import { DateRangePickerDay, DateRangePickerDayProps } from '../DateRangePickerDay';
12
12
  import { UseRangePositionProps } from '../internals/hooks/useRangePosition';
13
13
  export type DateRangePosition = 'start' | 'end';
14
- export interface DateRangeCalendarSlots<TDate> extends PickersArrowSwitcherSlots, Omit<DayCalendarSlots<TDate>, 'day'>, PickersCalendarHeaderSlots {
14
+ export interface DateRangeCalendarSlots<TDate extends PickerValidDate> extends PickersArrowSwitcherSlots, Omit<DayCalendarSlots<TDate>, 'day'>, PickersCalendarHeaderSlots {
15
15
  /**
16
16
  * Custom component for calendar header.
17
17
  * Check the [PickersCalendarHeader](https://mui.com/x/api/date-pickers/pickers-calendar-header/) component.
@@ -25,14 +25,14 @@ export interface DateRangeCalendarSlots<TDate> extends PickersArrowSwitcherSlots
25
25
  */
26
26
  day?: React.ElementType<DateRangePickerDayProps<TDate>>;
27
27
  }
28
- export interface DateRangeCalendarSlotProps<TDate> extends PickersArrowSwitcherSlotProps, Omit<DayCalendarSlotProps<TDate>, 'day'>, PickersCalendarHeaderSlotProps<TDate> {
28
+ export interface DateRangeCalendarSlotProps<TDate extends PickerValidDate> extends PickersArrowSwitcherSlotProps, Omit<DayCalendarSlotProps<TDate>, 'day'>, PickersCalendarHeaderSlotProps<TDate> {
29
29
  calendarHeader?: SlotComponentProps<typeof PickersCalendarHeader, {}, DateRangeCalendarProps<TDate>>;
30
30
  day?: SlotComponentProps<typeof DateRangePickerDay, {}, DayCalendarProps<TDate> & {
31
31
  day: TDate;
32
32
  selected: boolean;
33
33
  }>;
34
34
  }
35
- export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, TimezoneProps {
35
+ export interface ExportedDateRangeCalendarProps<TDate extends PickerValidDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, TimezoneProps {
36
36
  /**
37
37
  * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
38
38
  * @default false
@@ -70,7 +70,7 @@ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalend
70
70
  */
71
71
  disableDragEditing?: boolean;
72
72
  }
73
- export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendarProps<TDate>, UseRangePositionProps, ExportedUseViewsOptions<'day'> {
73
+ export interface DateRangeCalendarProps<TDate extends PickerValidDate> extends ExportedDateRangeCalendarProps<TDate>, UseRangePositionProps, ExportedUseViewsOptions<'day'> {
74
74
  /**
75
75
  * The selected value.
76
76
  * Used when the component is controlled.
@@ -116,7 +116,7 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
116
116
  */
117
117
  availableRangePositions?: DateRangePosition[];
118
118
  }
119
- export interface DateRangeCalendarOwnerState<TDate> extends DateRangeCalendarProps<TDate> {
119
+ export interface DateRangeCalendarOwnerState<TDate extends PickerValidDate> extends DateRangeCalendarProps<TDate> {
120
120
  isDragging: boolean;
121
121
  }
122
- export type DateRangeCalendarDefaultizedProps<TDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'views' | 'openTo' | 'reduceAnimations' | 'calendars' | 'disableDragEditing' | 'availableRangePositions' | keyof BaseDateValidationProps<TDate>>;
122
+ export type DateRangeCalendarDefaultizedProps<TDate extends PickerValidDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'views' | 'openTo' | 'reduceAnimations' | 'calendars' | 'disableDragEditing' | 'availableRangePositions' | keyof BaseDateValidationProps<TDate>>;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { MuiPickersAdapter, PickersTimezone } from '@mui/x-date-pickers/models';
2
+ import { MuiPickersAdapter, PickersTimezone, PickerValidDate } from '@mui/x-date-pickers/models';
3
3
  import { DateRangePosition } from './DateRangeCalendar.types';
4
4
  import { DateRange } from '../models';
5
- interface UseDragRangeParams<TDate> {
5
+ interface UseDragRangeParams<TDate extends PickerValidDate> {
6
6
  disableDragEditing?: boolean;
7
7
  utils: MuiPickersAdapter<TDate>;
8
8
  setRangeDragDay: (value: TDate | null) => void;
@@ -24,10 +24,10 @@ interface UseDragRangeEvents {
24
24
  onTouchMove?: React.TouchEventHandler<HTMLButtonElement>;
25
25
  onTouchEnd?: React.TouchEventHandler<HTMLButtonElement>;
26
26
  }
27
- interface UseDragRangeResponse<TDate> extends UseDragRangeEvents {
27
+ interface UseDragRangeResponse<TDate extends PickerValidDate> extends UseDragRangeEvents {
28
28
  isDragging: boolean;
29
29
  rangeDragDay: TDate | null;
30
30
  draggingDatePosition: DateRangePosition | null;
31
31
  }
32
- export declare const useDragRange: <TDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>, "isDragging" | "setRangeDragDay" | "setIsDragging">) => UseDragRangeResponse<TDate>;
32
+ export declare const useDragRange: <TDate extends PickerValidDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>, "isDragging" | "setRangeDragDay" | "setIsDragging">) => UseDragRangeResponse<TDate>;
33
33
  export {};
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { PickerValidDate } from '@mui/x-date-pickers/models';
2
3
  import { DateRangePickerProps } from './DateRangePicker.types';
3
- type DatePickerComponent = (<TDate>(props: DateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
+ type DatePickerComponent = (<TDate extends PickerValidDate>(props: DateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
5
  propTypes?: any;
5
6
  };
6
7
  /**
@@ -87,7 +87,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
87
87
  * The default value.
88
88
  * Used when the component is not controlled.
89
89
  */
90
- defaultValue: PropTypes.arrayOf(PropTypes.any),
90
+ defaultValue: PropTypes.arrayOf(PropTypes.object),
91
91
  /**
92
92
  * CSS media query when `Mobile` mode will be changed to `Desktop`.
93
93
  * @default '@media (pointer: fine)'
@@ -174,11 +174,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
174
174
  /**
175
175
  * Maximal selectable date.
176
176
  */
177
- maxDate: PropTypes.any,
177
+ maxDate: PropTypes.object,
178
178
  /**
179
179
  * Minimal selectable date.
180
180
  */
181
- minDate: PropTypes.any,
181
+ minDate: PropTypes.object,
182
182
  /**
183
183
  * Name attribute used by the `input` element in the Field.
184
184
  * Ignored if the field has several inputs.
@@ -254,7 +254,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
254
254
  * The date used to generate the new value when both `value` and `defaultValue` are empty.
255
255
  * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
256
256
  */
257
- referenceDate: PropTypes.any,
257
+ referenceDate: PropTypes.object,
258
258
  /**
259
259
  * Component rendered on the "day" view when `props.loading` is true.
260
260
  * @returns {React.ReactNode} The node to render when loading.
@@ -322,7 +322,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
322
322
  * The selected value.
323
323
  * Used when the component is controlled.
324
324
  */
325
- value: PropTypes.arrayOf(PropTypes.any),
325
+ value: PropTypes.arrayOf(PropTypes.object),
326
326
  /**
327
327
  * Define custom view renderers for each section.
328
328
  * If `null`, the section will only have field editing.
@@ -1,10 +1,11 @@
1
+ import { PickerValidDate } from '@mui/x-date-pickers/models';
1
2
  import { DesktopDateRangePickerProps, DesktopDateRangePickerSlots, DesktopDateRangePickerSlotProps } from '../DesktopDateRangePicker';
2
3
  import { MobileDateRangePickerProps, MobileDateRangePickerSlots, MobileDateRangePickerSlotProps } from '../MobileDateRangePicker';
3
- export interface DateRangePickerSlots<TDate> extends DesktopDateRangePickerSlots<TDate>, MobileDateRangePickerSlots<TDate> {
4
+ export interface DateRangePickerSlots<TDate extends PickerValidDate> extends DesktopDateRangePickerSlots<TDate>, MobileDateRangePickerSlots<TDate> {
4
5
  }
5
- export interface DateRangePickerSlotProps<TDate> extends DesktopDateRangePickerSlotProps<TDate>, MobileDateRangePickerSlotProps<TDate> {
6
+ export interface DateRangePickerSlotProps<TDate extends PickerValidDate> extends DesktopDateRangePickerSlotProps<TDate>, MobileDateRangePickerSlotProps<TDate> {
6
7
  }
7
- export interface DateRangePickerProps<TDate> extends DesktopDateRangePickerProps<TDate>, MobileDateRangePickerProps<TDate> {
8
+ export interface DateRangePickerProps<TDate extends PickerValidDate> extends DesktopDateRangePickerProps<TDate>, MobileDateRangePickerProps<TDate> {
8
9
  /**
9
10
  * CSS media query when `Mobile` mode will be changed to `Desktop`.
10
11
  * @default '@media (pointer: fine)'
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { BaseToolbarProps, ExportedBaseToolbarProps } from '@mui/x-date-pickers/internals';
3
+ import { PickerValidDate } from '@mui/x-date-pickers/models';
3
4
  import { DateRange } from '../models';
4
5
  import { UseRangePositionResponse } from '../internals/hooks/useRangePosition';
5
6
  import { DateRangePickerToolbarClasses } from './dateRangePickerToolbarClasses';
6
- export interface DateRangePickerToolbarProps<TDate> extends Omit<BaseToolbarProps<DateRange<TDate>, 'day'>, 'views' | 'view' | 'onViewChange' | 'onChange' | 'isLandscape'>, Pick<UseRangePositionResponse, 'rangePosition' | 'onRangePositionChange'> {
7
+ export interface DateRangePickerToolbarProps<TDate extends PickerValidDate> extends Omit<BaseToolbarProps<DateRange<TDate>, 'day'>, 'views' | 'view' | 'onViewChange' | 'onChange' | 'isLandscape'>, Pick<UseRangePositionResponse, 'rangePosition' | 'onRangePositionChange'> {
7
8
  classes?: Partial<DateRangePickerToolbarClasses>;
8
9
  }
9
10
  export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbarProps {
@@ -18,5 +19,5 @@ export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbar
18
19
  *
19
20
  * - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)
20
21
  */
21
- declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
22
+ declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<PickerValidDate> & React.RefAttributes<HTMLDivElement>>;
22
23
  export { DateRangePickerToolbar };
@@ -115,6 +115,6 @@ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
115
115
  * @default "––"
116
116
  */
117
117
  toolbarPlaceholder: PropTypes.node,
118
- value: PropTypes.arrayOf(PropTypes.any).isRequired
118
+ value: PropTypes.arrayOf(PropTypes.object).isRequired
119
119
  } : void 0;
120
120
  export { DateRangePickerToolbar };