@mui/x-date-pickers-pro 6.0.0-alpha.11 → 6.0.0-alpha.13

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 (147) hide show
  1. package/CHANGELOG.md +260 -0
  2. package/DateRangeCalendar/DateRangeCalendar.js +30 -3
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +37 -37
  4. package/DateRangePicker/DateRangePicker.js +0 -6
  5. package/DateRangePicker/DateRangePickerView.d.ts +3 -3
  6. package/DateRangePicker/DateRangePickerView.js +6 -3
  7. package/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  8. package/DateRangePickerDay/DateRangePickerDay.js +72 -1
  9. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +5 -0
  10. package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -6
  11. package/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +22 -9
  12. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +5 -0
  13. package/MobileDateRangePicker/MobileDateRangePicker.js +0 -6
  14. package/MobileNextDateRangePicker/MobileNextDateRangePicker.js +22 -9
  15. package/MultiInputDateRangeField/MultiInputDateRangeField.js +51 -11
  16. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +4 -2
  17. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +45 -10
  18. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +3 -3
  19. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +45 -10
  20. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +2 -2
  21. package/NextDateRangePicker/NextDateRangePicker.js +16 -2
  22. package/NextDateRangePicker/shared.d.ts +9 -2
  23. package/SingleInputDateRangeField/SingleInputDateRangeField.js +110 -5
  24. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +3 -2
  25. package/StaticDateRangePicker/StaticDateRangePicker.js +0 -5
  26. package/StaticNextDateRangePicker/StaticNextDateRangePicker.js +20 -6
  27. package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +13 -0
  28. package/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +3 -4
  29. package/dateRangeViewRenderers/index.d.ts +2 -0
  30. package/dateRangeViewRenderers/index.js +1 -0
  31. package/dateRangeViewRenderers/package.json +6 -0
  32. package/index.d.ts +2 -1
  33. package/index.js +5 -2
  34. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -1
  35. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +6 -4
  36. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +4 -5
  37. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -1
  38. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +4 -4
  39. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +4 -5
  40. package/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +7 -1
  41. package/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +7 -1
  42. package/internal/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +2 -0
  43. package/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +7 -1
  44. package/internal/hooks/useRangePickerInputProps.d.ts +7 -7
  45. package/internal/hooks/useRangePickerInputProps.js +12 -11
  46. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -1
  47. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
  48. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +2 -2
  49. package/internal/models/dateRange.d.ts +11 -1
  50. package/internal/models/dateTimeRange.d.ts +2 -2
  51. package/internal/models/fields.d.ts +6 -1
  52. package/internal/models/range.d.ts +0 -4
  53. package/internal/models/timeRange.d.ts +2 -1
  54. package/internal/utils/date-fields-utils.d.ts +21 -5
  55. package/internal/utils/releaseInfo.js +1 -1
  56. package/internal/utils/valueManagers.d.ts +3 -2
  57. package/internal/utils/valueManagers.js +21 -22
  58. package/legacy/DateRangeCalendar/DateRangeCalendar.js +36 -3
  59. package/legacy/DateRangePicker/DateRangePicker.js +0 -6
  60. package/legacy/DateRangePicker/DateRangePickerView.js +7 -2
  61. package/legacy/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  62. package/legacy/DateRangePickerDay/DateRangePickerDay.js +72 -1
  63. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -6
  64. package/legacy/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +22 -9
  65. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -6
  66. package/legacy/MobileNextDateRangePicker/MobileNextDateRangePicker.js +22 -9
  67. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +48 -8
  68. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +43 -8
  69. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +43 -8
  70. package/legacy/NextDateRangePicker/NextDateRangePicker.js +16 -2
  71. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +109 -4
  72. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -5
  73. package/legacy/StaticNextDateRangePicker/StaticNextDateRangePicker.js +20 -6
  74. package/legacy/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +3 -4
  75. package/legacy/dateRangeViewRenderers/index.js +1 -0
  76. package/legacy/index.js +5 -2
  77. package/legacy/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +6 -4
  78. package/legacy/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +4 -4
  79. package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +7 -1
  80. package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +7 -1
  81. package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +7 -1
  82. package/legacy/internal/hooks/useRangePickerInputProps.js +12 -11
  83. package/legacy/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
  84. package/legacy/internal/utils/releaseInfo.js +1 -1
  85. package/legacy/internal/utils/valueManagers.js +20 -23
  86. package/legacy/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  87. package/modern/DateRangeCalendar/DateRangeCalendar.js +29 -3
  88. package/modern/DateRangePicker/DateRangePicker.js +0 -6
  89. package/modern/DateRangePicker/DateRangePickerView.js +6 -3
  90. package/modern/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  91. package/modern/DateRangePickerDay/DateRangePickerDay.js +72 -1
  92. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -6
  93. package/modern/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +22 -9
  94. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -6
  95. package/modern/MobileNextDateRangePicker/MobileNextDateRangePicker.js +22 -9
  96. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +51 -11
  97. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +45 -10
  98. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +45 -10
  99. package/modern/NextDateRangePicker/NextDateRangePicker.js +16 -2
  100. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +110 -5
  101. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -5
  102. package/modern/StaticNextDateRangePicker/StaticNextDateRangePicker.js +20 -6
  103. package/modern/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +3 -4
  104. package/modern/dateRangeViewRenderers/index.js +1 -0
  105. package/modern/index.js +5 -2
  106. package/modern/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +6 -4
  107. package/modern/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +4 -4
  108. package/modern/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +7 -1
  109. package/modern/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +7 -1
  110. package/modern/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +7 -1
  111. package/modern/internal/hooks/useRangePickerInputProps.js +11 -11
  112. package/modern/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
  113. package/modern/internal/utils/releaseInfo.js +1 -1
  114. package/modern/internal/utils/valueManagers.js +21 -22
  115. package/modern/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  116. package/node/DateRangeCalendar/DateRangeCalendar.js +28 -2
  117. package/node/DateRangePicker/DateRangePicker.js +0 -6
  118. package/node/DateRangePicker/DateRangePickerView.js +6 -3
  119. package/node/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  120. package/node/DateRangePickerDay/DateRangePickerDay.js +72 -1
  121. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -6
  122. package/node/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +22 -9
  123. package/node/MobileDateRangePicker/MobileDateRangePicker.js +0 -6
  124. package/node/MobileNextDateRangePicker/MobileNextDateRangePicker.js +22 -9
  125. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +51 -11
  126. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +45 -10
  127. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +45 -10
  128. package/node/NextDateRangePicker/NextDateRangePicker.js +16 -2
  129. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +110 -5
  130. package/node/StaticDateRangePicker/StaticDateRangePicker.js +0 -5
  131. package/node/StaticNextDateRangePicker/StaticNextDateRangePicker.js +20 -6
  132. package/node/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +4 -4
  133. package/node/dateRangeViewRenderers/index.js +12 -0
  134. package/node/index.js +13 -1
  135. package/node/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +6 -4
  136. package/node/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +4 -4
  137. package/node/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +7 -1
  138. package/node/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +7 -1
  139. package/node/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +7 -1
  140. package/node/internal/hooks/useRangePickerInputProps.js +11 -11
  141. package/node/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +3 -3
  142. package/node/internal/utils/releaseInfo.js +1 -1
  143. package/node/internal/utils/valueManagers.js +20 -21
  144. package/node/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  145. package/package.json +4 -4
  146. package/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  147. package/internal/utils/viewRenderers.d.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,212 @@
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
+ ## 6.0.0-alpha.13
7
+
8
+ _Dec 24, 2022_
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
+ - 🚀 New column menu design and API
13
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
14
+ - 📚 Documentation improvements
15
+ - 🐞 Bugfixes
16
+
17
+ ### `@mui/x-data-grid@6.0.0-alpha.13` / `@mui/x-data-grid-pro@6.0.0-alpha.13` / `@mui/x-data-grid-premium@6.0.0-alpha.13`
18
+
19
+ #### Breaking changes
20
+
21
+ - New column menu design and API (#6619) MBilalShafi
22
+
23
+ The `currentColumn` prop passed to `components.ColumnMenu` was renamed to `colDef`.
24
+ The `column` prop passed to the items of the column menu was renamed to `colDef`.
25
+ The `DATA_GRID_DEFAULT_SLOTS_COMPONENTS` export has been removed.
26
+ The following components and interfaces were been renamed for consistency:
27
+
28
+ **Community Package:**
29
+
30
+ ```diff
31
+ -<GridFilterMenuItem />
32
+ +<GridColumnMenuFilterItem />
33
+ ```
34
+
35
+ ```diff
36
+ -<HideGridColMenuItem />
37
+ +<GridColumnMenuHideItem />
38
+ ```
39
+
40
+ ```diff
41
+ -<GridColumnsMenuItem />
42
+ +<GridColumnMenuColumnsItem />
43
+ ```
44
+
45
+ ```diff
46
+ -<SortGridMenuItems />
47
+ +<GridColumnMenuSortItem />
48
+ ```
49
+
50
+ ```diff
51
+ -interface GridFilterItemProps
52
+ +interface GridColumnMenuItemProps
53
+ ```
54
+
55
+ **Pro package:**
56
+
57
+ ```diff
58
+ -<GridColumnPinningMenuItems />
59
+ +<GridColumnMenuPinningItem />
60
+ ```
61
+
62
+ **Premium package:**
63
+
64
+ ```diff
65
+ -<GridAggregationColumnMenuItem />
66
+ +<GridColumnMenuAggregationItem />
67
+ ```
68
+
69
+ ```diff
70
+ -<GridRowGroupingColumnMenuItems />
71
+ -<GridRowGroupableColumnMenuItems />
72
+ +<GridColumnMenuGroupingItem />
73
+ ```
74
+
75
+ - Improve column definition typing (#7224) @cherniavskii
76
+
77
+ The `GridColumns` type was removed. Use `GridColDef[]` instead.
78
+ The `GridActionsColDef` interface was removed. Use `GridColDef` instead.
79
+ The `GridEnrichedColDef` type was removed. Use `GridColDef` instead.
80
+ The `GridStateColDef` type was removed.
81
+
82
+ If you use it to type `searchPredicate`, use `GridColumnsPanelProps['searchPredicate']` instead.
83
+ If you use it to type `getApplyFilterFn`, `GridFilterOperator['getApplyFilterFn']` can be used as replacement.
84
+
85
+ - Remove GridDensityType enum (#7304) @cherniavskii
86
+
87
+ The `GridDensityTypes` enum was removed. Use `GridDensity` type instead.
88
+
89
+ #### Changes
90
+
91
+ - [DataGrid] Allow disabling of buttons in column panel (#6947) @MBilalShafi
92
+ - [DataGrid] Improve column definition typing (#7224) @cherniavskii
93
+ - [DataGrid] Improve column menu design and API (#6619) @MBilalShafi
94
+ - [DataGrid] Remove `GridDensityType` enum (#7304) @cherniavskii
95
+ - [DataGrid] Remove `rowHeight` and `headerHeight` from state (#7199) @DanailH
96
+ - [DataGrid] Remove column separator to match table styles (#7067) @MBilalShafi
97
+ - [DataGrid] Update Russian (ru-RU) locale (#7220) @VeceluXa
98
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7302) @m4theushw
99
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7284) @alexfauquette
100
+
101
+ ### `@mui/x-date-pickers@6.0.0-alpha.13` / `@mui/x-date-pickers-pro@6.0.0-alpha.13`
102
+
103
+ #### Breaking changes
104
+
105
+ - Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
106
+
107
+ `AdapterLuxon` now requires `luxon` in version `3.0.2` or higher in order to work.
108
+
109
+ Take a look at the [Upgrading Luxon](https://moment.github.io/luxon/#/upgrading) guide if you are using an older version.
110
+
111
+ #### Changes
112
+
113
+ - [DateRangePicker] Fix to propagate `disabled` and `readOnly` on multi input picker (#7135) @LukasTy
114
+ - [fields] Fix multi input fields root element props order and types (#7225) @LukasTy
115
+ - [fields] Support escaped characters (#7184) @flaviendelangle
116
+ - [pickers] Allow to define custom view renderers on the pickers (#7176) @flaviendelangle
117
+ - [pickers] Avoid running validation methods several times in `DateCalendar` (#7247) @flaviendelangle
118
+ - [pickers] Improve Korean (ko-KR) locale (#7266) @hanbin9775
119
+ - [pickers] Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
120
+ - [pickers] Rework view internals (#7097) @flaviendelangle
121
+
122
+ ### `@mui/x-codemod@6.0.0-alpha.13`
123
+
124
+ #### Changes
125
+
126
+ - [codemod] New codemod for view component renaming (#7264) @flaviendelangle
127
+
128
+ ### Docs
129
+
130
+ - [docs] Fix some selectors not being documented (#7218) @cherniavskii
131
+ - [docs] New page for `DateCalendar` (#7053) @flaviendelangle
132
+ - [docs] Split selection docs (#7213) @m4theushw
133
+
134
+ ### Core
135
+
136
+ - [core] Fix API demos callout spacing @oliviertassinari
137
+
138
+ ## 6.0.0-alpha.12
139
+
140
+ _Dec 16, 2022_
141
+
142
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
143
+
144
+ - 🚀 The `apiRef` prop is now available in the `@mui/x-data-grid` package:
145
+
146
+ ```tsx
147
+ const apiRef = useGridApiRef();
148
+
149
+ return (
150
+ <DataGrid apiRef={apiRef} {...other} />
151
+ )
152
+ ```
153
+
154
+ See [the documentation](https://next.mui.com/x/react-data-grid/api-object/) for more information.
155
+
156
+ - 🎁 The `DataGridPremium` now supports cell selection:
157
+
158
+ ```tsx
159
+ <DataGridPremium unstable_cellSelection />
160
+ ```
161
+
162
+ See [the documentation](https://next.mui.com/x/react-data-grid/selection/#cell-selection) for more information
163
+
164
+ - 🌍 Support the Right To Left orientation on the fields components
165
+ - 📚 Documentation improvements
166
+ - 🐞 Bugfixes
167
+
168
+ ### `@mui/x-data-grid@v6.0.0-alpha.12` / `@mui/x-data-grid-pro@v6.0.0-alpha.12` / `@mui/x-data-grid-premium@v6.0.0-alpha.12`
169
+
170
+ #### Breaking changes
171
+
172
+ - The `showCellRightBorder` was renamed to `showCellVerticalBorder`
173
+ - The `showColumnRightBorder` was renamed to `showColumnVerticalBorder`
174
+ - The `.MuiDataGrid-withBorder` CSS class was renamed to `.MuiDataGrid-withBorderColor` and it only sets `border-color` CSS property now.
175
+ - The following undocumented properties from `apiRef` were removed: `footerRef`, `headerRef`, `columnHeadersElementRef`, `columnHeadersContainerElementRef`
176
+ - The `GridHeaderPlaceholder` component was removed.
177
+ - The `MAX_PAGE_SIZE` constant was removed.
178
+ - The `useGridScrollFn` hook was removed.
179
+
180
+ #### Changes
181
+
182
+ - [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7180) @MBilalShafi
183
+ - [DataGrid] Support `apiRef` in Community package (#6773) @cherniavskii
184
+ - [DataGridPremium] Add support for cell selection (#6567) @m4theushw
185
+ - [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7142) @m4theushw
186
+ - [DataGridPro] Fix missing border in right-pinned columns (#4197) @cherniavskii
187
+ - [DataGridPro] Fix wrong border color on skeleton cells (#7202) @cherniavskii
188
+
189
+ ### `@mui/x-date-pickers@v6.0.0-alpha.12` / `@mui/x-date-pickers-pro@v6.0.0-alpha.12`
190
+
191
+ #### Changes
192
+
193
+ - [fields] Fix bug introduced by RTL in single input range fields (#7189) @alexfauquette
194
+ - [fields] Support RTL out of the box (#6715) @alexfauquette
195
+ - [pickers] Clean `autoFocus` behavior on fields and new pickers (#7153) @flaviendelangle
196
+ - [pickers] Fix label on the new range pickers (#7210) @flaviendelangle
197
+ - [pickers] Fix wrong component name on `StaticNextDateTime` (#7187) @flaviendelangle
198
+
199
+ ### Docs
200
+
201
+ - [docs] Add docs section about field placeholders' localization (#7139) @flaviendelangle
202
+ - [docs] Create a `DemoGrid` component to unify demos with several components (#7057) @flaviendelangle
203
+ - [docs] Document aggregation selectors (#7148) @cherniavskii
204
+ - [docs] Fix 301 links to demo pages in API pages (#7197) @oliviertassinari
205
+ - [docs] Fix errors and warning in demos (#7209) @LukasTy
206
+ - [docs] Use `DemoContainer` and `DemoItem` on every picker demo (#7149) @flaviendelangle
207
+
208
+ ### Core
209
+
210
+ - [core] Fix broken test (#7179) @flaviendelangle
211
+
6
212
  ## 6.0.0-alpha.11
7
213
 
8
214
  _Dec 8, 2022_
@@ -1301,6 +1507,60 @@ You can find more information about the new api, including how to set those tran
1301
1507
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
1302
1508
  - [website] Improve security header @oliviertassinari
1303
1509
 
1510
+ ## 5.17.16
1511
+
1512
+ _Dec 16, 2022_
1513
+
1514
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1515
+
1516
+ - 🐞 Bugfixes
1517
+
1518
+ ### `@mui/x-data-grid@v5.17.16` / `@mui/x-data-grid-pro@v5.17.16` / `@mui/x-data-grid-premium@v5.17.16`
1519
+
1520
+ #### Changes
1521
+
1522
+ - [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7125) @hanbin9775
1523
+ - [DataGrid] Fix flickering on mount (#7155) @cherniavskii
1524
+ - [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7174) @m4theushw
1525
+
1526
+ ### `@mui/x-date-pickers@v5.0.11` / `@mui/x-date-pickers-pro@v5.0.11`
1527
+
1528
+ #### Changes
1529
+
1530
+ - [DateTimePicker] Update export pattern (#7172) @kealjones-wk
1531
+
1532
+ ### Docs
1533
+
1534
+ - [docs] Document aggregation selectors (#7151) @cherniavskii
1535
+
1536
+ ## 5.17.15
1537
+
1538
+ _Dec 8, 2022_
1539
+
1540
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1541
+
1542
+ - ✨ Fix lazy-loading not working in `DataGridPremium` (#7130) @m4theushw
1543
+ - 🐞 Bugfixes
1544
+
1545
+ ### `@mui/x-data-grid@v5.17.15` / `@mui/x-data-grid-pro@v5.17.15` / `@mui/x-data-grid-premium@v5.17.15`
1546
+
1547
+ #### Changes
1548
+
1549
+ - [DataGridPremium] Add support for lazy-loading (#7130) @m4theushw
1550
+ - [DataGridPremium] Pass `groupId` to the aggregation function (#7143) @m4theushw
1551
+
1552
+ ### `@mui/x-date-pickers@v5.0.10` / `@mui/x-date-pickers-pro@v5.0.10`
1553
+
1554
+ #### Changes
1555
+
1556
+ - [pickers] Initialize date without time when selecting year or month (#7136) @LukasTy
1557
+
1558
+ ### Docs
1559
+
1560
+ - [docs] Fix the nested import on the api pages (#7134) @flaviendelangle
1561
+ - [docs] Keep track of the localization completion (#7099) @alexfauquette
1562
+ - [docs] Update localization doc to use existing locale (#7104) @LukasTy
1563
+
1304
1564
  ## 5.17.14
1305
1565
 
1306
1566
  _Dec 1, 2022_
@@ -11,7 +11,7 @@ import { resolveComponentProps } from '@mui/base/utils';
11
11
  import { styled, useThemeProps } from '@mui/material/styles';
12
12
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
13
13
  import { Watermark } from '@mui/x-license-pro';
14
- import { applyDefaultDate, DAY_MARGIN, DayCalendar, defaultReduceAnimations, PickersArrowSwitcher, PickersCalendarHeader, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, WrapperVariantContext } from '@mui/x-date-pickers/internals';
14
+ import { applyDefaultDate, DAY_MARGIN, DayCalendar, defaultReduceAnimations, PickersArrowSwitcher, PickersCalendarHeader, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, WrapperVariantContext, useNow } from '@mui/x-date-pickers/internals';
15
15
  import { getReleaseInfo } from '../internal/utils/releaseInfo';
16
16
  import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from './dateRangeCalendarClasses';
17
17
  import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from '../internal/utils/date-utils';
@@ -108,6 +108,7 @@ const useUtilityClasses = ownerState => {
108
108
  const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar(inProps, ref) {
109
109
  const utils = useUtils();
110
110
  const localeText = useLocaleText();
111
+ const now = useNow();
111
112
  const props = useDateRangeCalendarDefaultizedProps(inProps, 'MuiDateRangeCalendar');
112
113
  const isMobile = React.useContext(WrapperVariantContext) === 'mobile';
113
114
  const {
@@ -350,6 +351,26 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
350
351
  const visibleMonths = React.useMemo(() => Array.from({
351
352
  length: calendars
352
353
  }).map((_, index) => utils.setMonth(calendarState.currentMonth, utils.getMonth(calendarState.currentMonth) + index)), [utils, calendarState.currentMonth, calendars]);
354
+ const focusedMonth = React.useMemo(() => {
355
+ var _visibleMonths$find;
356
+ if (!autoFocus) {
357
+ return null;
358
+ }
359
+
360
+ // The focus priority of the "day" view is as follows:
361
+ // 1. Month of the `start` date
362
+ // 2. Month of the `end` date
363
+ // 3. Month of the current date
364
+ // 4. First visible month
365
+
366
+ if (value[0] != null) {
367
+ return visibleMonths.find(month => utils.isSameMonth(month, value[0]));
368
+ }
369
+ if (value[1] != null) {
370
+ return visibleMonths.find(month => utils.isSameMonth(month, value[1]));
371
+ }
372
+ return (_visibleMonths$find = visibleMonths.find(month => utils.isSameMonth(month, now))) != null ? _visibleMonths$find : visibleMonths[0];
373
+ }, [utils, value, visibleMonths, autoFocus, now]);
353
374
  return /*#__PURE__*/_jsxs(DateRangeCalendarRoot, _extends({
354
375
  ref: ref,
355
376
  className: clsx(className, classes.root),
@@ -362,7 +383,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
362
383
  className: classes.monthContainer,
363
384
  children: [calendars === 1 ? /*#__PURE__*/_jsx(PickersCalendarHeader, {
364
385
  views: ['day'],
365
- openView: 'day',
386
+ view: 'day',
366
387
  currentMonth: calendarState.currentMonth,
367
388
  onMonthChange: (newMonth, direction) => handleChangeMonth({
368
389
  newMonth,
@@ -405,7 +426,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
405
426
  renderLoading: renderLoading,
406
427
  components: componentsForDayCalendar,
407
428
  componentsProps: componentsPropsForDayCalendar,
408
- autoFocus: autoFocus,
429
+ autoFocus: month === focusedMonth,
409
430
  fixedWeekNumber: fixedWeekNumber,
410
431
  displayWeekNumber: displayWeekNumber
411
432
  }), index)]
@@ -417,6 +438,12 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
417
438
  // | These PropTypes are generated from the TypeScript type definitions |
418
439
  // | To update them edit the TypeScript types and run "yarn proptypes" |
419
440
  // ----------------------------------------------------------------------
441
+ /**
442
+ * If `true`, the main element is focused during the first mount.
443
+ * This main element is:
444
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
445
+ * - the `input` element if there is a field rendered.
446
+ */
420
447
  autoFocus: PropTypes.bool,
421
448
  /**
422
449
  * The number of calendars to render.
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { SlotComponentProps } from '@mui/base';
4
4
  import { Theme } from '@mui/material/styles';
5
- import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlotsComponent, DayCalendarSlotsComponentsProps, PickersArrowSwitcherSlotsComponent, PickersArrowSwitcherSlotsComponentsProps, PickerSelectionState, PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps, DayCalendarProps } from '@mui/x-date-pickers/internals';
5
+ import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlotsComponent, DayCalendarSlotsComponentsProps, PickersArrowSwitcherSlotsComponent, PickersArrowSwitcherSlotsComponentsProps, PickerSelectionState, PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps, DayCalendarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
6
6
  import { DateRange, RangePositionProps, DayRangeValidationProps } from '../internal/models';
7
7
  import { DateRangeCalendarClasses } from './dateRangeCalendarClasses';
8
8
  import { DateRangePickerDay, DateRangePickerDayProps } from '../DateRangePickerDay';
@@ -21,41 +21,7 @@ export interface DateRangeCalendarSlotsComponentsProps<TDate> extends PickersArr
21
21
  selected: boolean;
22
22
  }>;
23
23
  }
24
- export interface DateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, Partial<RangePositionProps> {
25
- /**
26
- * The selected value.
27
- * Used when the component is controlled.
28
- */
29
- value?: DateRange<TDate>;
30
- /**
31
- * The default selected value.
32
- * Used when the component is not controlled.
33
- */
34
- defaultValue?: DateRange<TDate>;
35
- /**
36
- * Callback fired when the value changes.
37
- * @template TDate
38
- * @param {DateRange<TDate>} value The new value.
39
- * @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
40
- */
41
- onChange?: (value: DateRange<TDate>, selectionState?: PickerSelectionState) => void;
42
- autoFocus?: boolean;
43
- className?: string;
44
- classes?: Partial<DateRangeCalendarClasses>;
45
- /**
46
- * The system prop that allows defining system overrides as well as additional CSS styles.
47
- */
48
- sx?: SxProps<Theme>;
49
- /**
50
- * Overrideable components.
51
- * @default {}
52
- */
53
- components?: DateRangeCalendarSlotsComponent<TDate>;
54
- /**
55
- * The props used for each component slot.
56
- * @default {}
57
- */
58
- componentsProps?: DateRangeCalendarSlotsComponentsProps<TDate>;
24
+ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, Pick<ExportedUseViewsOptions<'day'>, 'autoFocus'> {
59
25
  /**
60
26
  * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
61
27
  * @default false
@@ -98,8 +64,42 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<
98
64
  */
99
65
  disableDragEditing?: boolean;
100
66
  }
67
+ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendarProps<TDate>, Partial<RangePositionProps> {
68
+ /**
69
+ * The selected value.
70
+ * Used when the component is controlled.
71
+ */
72
+ value?: DateRange<TDate>;
73
+ /**
74
+ * The default selected value.
75
+ * Used when the component is not controlled.
76
+ */
77
+ defaultValue?: DateRange<TDate>;
78
+ /**
79
+ * Callback fired when the value changes.
80
+ * @template TDate
81
+ * @param {DateRange<TDate>} value The new value.
82
+ * @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
83
+ */
84
+ onChange?: (value: DateRange<TDate>, selectionState?: PickerSelectionState) => void;
85
+ className?: string;
86
+ classes?: Partial<DateRangeCalendarClasses>;
87
+ /**
88
+ * The system prop that allows defining system overrides as well as additional CSS styles.
89
+ */
90
+ sx?: SxProps<Theme>;
91
+ /**
92
+ * Overrideable components.
93
+ * @default {}
94
+ */
95
+ components?: DateRangeCalendarSlotsComponent<TDate>;
96
+ /**
97
+ * The props used for each component slot.
98
+ * @default {}
99
+ */
100
+ componentsProps?: DateRangeCalendarSlotsComponentsProps<TDate>;
101
+ }
101
102
  export interface DateRangeCalendarOwnerState<TDate> extends DateRangeCalendarProps<TDate> {
102
103
  isDragging: boolean;
103
104
  }
104
105
  export type DateRangeCalendarDefaultizedProps<TDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'reduceAnimations' | 'calendars' | 'disableDragEditing' | keyof BaseDateValidationProps<TDate>>;
105
- export type ExportedDateRangeCalendarProps<TDate> = Omit<DateRangeCalendarProps<TDate>, 'defaultValue' | 'value' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className' | 'classes' | 'components' | 'componentsProps' | 'rangePosition' | 'onRangePositionChange'>;
@@ -55,7 +55,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
55
55
  * @default /\dap/gi
56
56
  */
57
57
  acceptRegex: PropTypes.instanceOf(RegExp),
58
- autoFocus: PropTypes.bool,
59
58
  /**
60
59
  * The number of calendars that render on **desktop**.
61
60
  * @default 2
@@ -235,11 +234,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
235
234
  * Use in controlled mode (see open).
236
235
  */
237
236
  onOpen: PropTypes.func,
238
- /**
239
- * Callback fired on view change.
240
- * @param {DateView} view The new view.
241
- */
242
- onViewChange: PropTypes.func,
243
237
  /**
244
238
  * Control the popup or dialog open state.
245
239
  */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ExportedDateCalendarProps, PickerStatePickerProps, BaseDateValidationProps, DayValidationProps, ExportedBaseToolbarProps } from '@mui/x-date-pickers/internals';
2
+ import { ExportedDateCalendarProps, PickerStatePickerProps, BaseDateValidationProps, DayValidationProps, ExportedBaseToolbarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
3
3
  import { DateRange, RangePositionProps } from '../internal/models/range';
4
4
  import { DayRangeValidationProps } from '../internal/models/dateRange';
5
5
  import { DateRangePickerViewMobileSlotsComponent, DateRangePickerViewMobileSlotsComponentsProps } from './DateRangePickerViewMobile';
@@ -16,7 +16,7 @@ export interface DateRangePickerViewSlotsComponent<TDate> extends DateRangePicke
16
16
  export interface DateRangePickerViewSlotsComponentsProps<TDate> extends DateRangePickerViewMobileSlotsComponentsProps<TDate> {
17
17
  toolbar?: ExportedBaseToolbarProps;
18
18
  }
19
- export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDateRangePickerViewDesktopProps, DayRangeValidationProps<TDate>, Omit<ExportedDateCalendarProps<TDate>, 'onYearChange' | keyof BaseDateValidationProps<TDate> | keyof DayValidationProps<TDate>> {
19
+ export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDateRangePickerViewDesktopProps, DayRangeValidationProps<TDate>, Omit<ExportedDateCalendarProps<TDate>, 'value' | 'defaultValue' | 'onChange' | 'onYearChange' | keyof BaseDateValidationProps<TDate> | keyof DayValidationProps<TDate>> {
20
20
  /**
21
21
  * Overrideable components.
22
22
  * @default {}
@@ -41,7 +41,7 @@ export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDateRan
41
41
  */
42
42
  className?: string;
43
43
  }
44
- interface DateRangePickerViewProps<TDate> extends RangePositionProps, ExportedDateRangePickerViewProps<TDate>, PickerStatePickerProps<DateRange<TDate>>, Required<BaseDateValidationProps<TDate>> {
44
+ interface DateRangePickerViewProps<TDate> extends RangePositionProps, ExportedDateRangePickerViewProps<TDate>, PickerStatePickerProps<DateRange<TDate>>, Required<BaseDateValidationProps<TDate>>, Pick<ExportedUseViewsOptions<'day'>, 'onFocusedViewChange'> {
45
45
  calendars: 1 | 2 | 3;
46
46
  open: boolean;
47
47
  DateInputProps: DateRangePickerInputProps<TDate>;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["calendars", "className", "value", "DateInputProps", "defaultCalendarMonth", "disableAutoMonthSwitching", "disableFuture", "disableHighlightToday", "disablePast", "isMobileKeyboardViewOpen", "maxDate", "minDate", "onDateChange", "onMonthChange", "open", "reduceAnimations", "rangePosition", "onRangePositionChange", "shouldDisableDate", "showToolbar", "toggleMobileKeyboardView", "components", "componentsProps"];
3
+ const _excluded = ["calendars", "className", "value", "DateInputProps", "defaultCalendarMonth", "disableAutoMonthSwitching", "disableFuture", "disableHighlightToday", "disablePast", "isMobileKeyboardViewOpen", "maxDate", "minDate", "onDateChange", "onMonthChange", "open", "reduceAnimations", "rangePosition", "onRangePositionChange", "shouldDisableDate", "showToolbar", "toggleMobileKeyboardView", "components", "componentsProps", "onFocusedViewChange"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { Watermark } from '@mui/x-license-pro';
@@ -40,7 +40,8 @@ function DateRangePickerViewRaw(props) {
40
40
  showToolbar,
41
41
  toggleMobileKeyboardView,
42
42
  components,
43
- componentsProps
43
+ componentsProps,
44
+ onFocusedViewChange
44
45
  } = props,
45
46
  other = _objectWithoutPropertiesLoose(props, _excluded);
46
47
  const utils = useUtils();
@@ -123,7 +124,9 @@ function DateRangePickerViewRaw(props) {
123
124
  components,
124
125
  componentsProps,
125
126
  shouldDisableDate: wrappedShouldDisableDate
126
- }, calendarState, other);
127
+ }, calendarState, {
128
+ onFocusedViewChange: onFocusedViewChange ? newHasFocus => onFocusedViewChange('day', newHasFocus) : undefined
129
+ }, other);
127
130
  switch (wrapperVariant) {
128
131
  case 'desktop':
129
132
  {
@@ -66,7 +66,7 @@ export function DateRangePickerViewMobile(props) {
66
66
  maxDate: maxDateWithDisabled,
67
67
  minDate: minDateWithDisabled,
68
68
  onMonthChange: changeMonth,
69
- openView: "day",
69
+ view: "day",
70
70
  views: onlyDayView,
71
71
  disabled: disabled
72
72
  }, other)), /*#__PURE__*/_jsx(DayCalendar, _extends({}, other, {
@@ -196,10 +196,26 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
196
196
  // | These PropTypes are generated from the TypeScript type definitions |
197
197
  // | To update them edit the TypeScript types and run "yarn proptypes" |
198
198
  // ----------------------------------------------------------------------
199
+ /**
200
+ * A ref for imperative actions.
201
+ * It currently only supports `focusVisible()` action.
202
+ */
203
+ action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
204
+ current: PropTypes.shape({
205
+ focusVisible: PropTypes.func.isRequired
206
+ })
207
+ })]),
208
+ /**
209
+ * If `true`, the ripples are centered.
210
+ * They won't start at the cursor interaction position.
211
+ * @default false
212
+ */
213
+ centerRipple: PropTypes.bool,
199
214
  /**
200
215
  * Override or extend the styles applied to the component.
201
216
  */
202
217
  classes: PropTypes.object,
218
+ className: PropTypes.string,
203
219
  /**
204
220
  * The date to show.
205
221
  */
@@ -219,6 +235,33 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
219
235
  * @default false
220
236
  */
221
237
  disableMargin: PropTypes.bool,
238
+ /**
239
+ * If `true`, the ripple effect is disabled.
240
+ *
241
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
242
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
243
+ * @default false
244
+ */
245
+ disableRipple: PropTypes.bool,
246
+ /**
247
+ * If `true`, the touch ripple effect is disabled.
248
+ * @default false
249
+ */
250
+ disableTouchRipple: PropTypes.bool,
251
+ /**
252
+ * If `true`, the base button will have a keyboard focus ripple.
253
+ * @default false
254
+ */
255
+ focusRipple: PropTypes.bool,
256
+ /**
257
+ * This prop can help identify which element has keyboard focus.
258
+ * The class name will be applied when the element gains the focus through keyboard interaction.
259
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
260
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
261
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
262
+ * if needed.
263
+ */
264
+ focusVisibleClassName: PropTypes.string,
222
265
  isAnimating: PropTypes.bool,
223
266
  /**
224
267
  * Set to `true` if the `day` is the end of a highlighted date range.
@@ -249,6 +292,11 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
249
292
  */
250
293
  isVisuallySelected: PropTypes.bool,
251
294
  onDaySelect: PropTypes.func.isRequired,
295
+ /**
296
+ * Callback fired when the component is focused with a keyboard.
297
+ * We trigger a `onFocus` callback too.
298
+ */
299
+ onFocusVisible: PropTypes.func,
252
300
  onMouseEnter: PropTypes.func,
253
301
  /**
254
302
  * If `true`, day is outside of month and will be hidden.
@@ -264,11 +312,34 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
264
312
  * @default false
265
313
  */
266
314
  showDaysOutsideCurrentMonth: PropTypes.bool,
315
+ style: PropTypes.object,
316
+ /**
317
+ * The system prop that allows defining system overrides as well as additional CSS styles.
318
+ */
319
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
320
+ /**
321
+ * @default 0
322
+ */
323
+ tabIndex: PropTypes.number,
267
324
  /**
268
325
  * If `true`, renders as today date.
269
326
  * @default false
270
327
  */
271
- today: PropTypes.bool
328
+ today: PropTypes.bool,
329
+ /**
330
+ * Props applied to the `TouchRipple` element.
331
+ */
332
+ TouchRippleProps: PropTypes.object,
333
+ /**
334
+ * A ref that points to the `TouchRipple` element.
335
+ */
336
+ touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
337
+ current: PropTypes.shape({
338
+ pulsate: PropTypes.func.isRequired,
339
+ start: PropTypes.func.isRequired,
340
+ stop: PropTypes.func.isRequired
341
+ })
342
+ })])
272
343
  } : void 0;
273
344
 
274
345
  /**
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { SxProps } from '@mui/system';
2
3
  import { DesktopWrapperProps, DesktopWrapperSlotsComponent, DesktopWrapperSlotsComponentsProps, DateInputSlotsComponent } from '@mui/x-date-pickers/internals';
3
4
  import { BaseDateRangePickerProps, BaseDateRangePickerSlotsComponent, BaseDateRangePickerSlotsComponentsProps } from '../DateRangePicker/shared';
4
5
  export interface DesktopDateRangePickerSlotsComponent<TDate> extends BaseDateRangePickerSlotsComponent<TDate>, DesktopWrapperSlotsComponent, DateInputSlotsComponent {
@@ -16,6 +17,10 @@ export interface DesktopDateRangePickerProps<TDate> extends BaseDateRangePickerP
16
17
  * @default {}
17
18
  */
18
19
  componentsProps?: DesktopDateRangePickerSlotsComponentsProps<TDate>;
20
+ /**
21
+ * The system prop that allows defining system overrides as well as additional CSS styles.
22
+ */
23
+ sx?: SxProps;
19
24
  }
20
25
  type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
21
26
  propTypes?: any;
@@ -75,7 +75,6 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes = {
75
75
  * @default /\dap/gi
76
76
  */
77
77
  acceptRegex: PropTypes.instanceOf(RegExp),
78
- autoFocus: PropTypes.bool,
79
78
  /**
80
79
  * The number of calendars that render on **desktop**.
81
80
  * @default 2
@@ -249,11 +248,6 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes = {
249
248
  * Use in controlled mode (see open).
250
249
  */
251
250
  onOpen: PropTypes.func,
252
- /**
253
- * Callback fired on view change.
254
- * @param {DateView} view The new view.
255
- */
256
- onViewChange: PropTypes.func,
257
251
  /**
258
252
  * Control the popup or dialog open state.
259
253
  */