@mui/x-date-pickers 6.12.0 → 6.13.0
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.
- package/AdapterMoment/AdapterMoment.d.ts +5 -0
- package/AdapterMoment/AdapterMoment.js +17 -3
- package/CHANGELOG.md +184 -47
- package/DateField/DateField.js +0 -4
- package/DatePicker/DatePicker.js +5 -0
- package/DateTimeField/DateTimeField.js +0 -4
- package/DateTimePicker/DateTimePicker.js +5 -0
- package/DesktopDatePicker/DesktopDatePicker.js +5 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/DesktopTimePicker/DesktopTimePicker.js +5 -0
- package/LocalizationProvider/LocalizationProvider.d.ts +0 -3
- package/LocalizationProvider/LocalizationProvider.js +0 -3
- package/MobileDatePicker/MobileDatePicker.js +5 -0
- package/MobileDateTimePicker/MobileDateTimePicker.js +5 -0
- package/MobileTimePicker/MobileTimePicker.js +5 -0
- package/PickersDay/PickersDay.js +3 -3
- package/README.md +0 -1
- package/StaticDatePicker/StaticDatePicker.js +5 -0
- package/StaticDateTimePicker/StaticDateTimePicker.js +5 -0
- package/StaticTimePicker/StaticTimePicker.js +5 -0
- package/TimeField/TimeField.js +0 -4
- package/TimePicker/TimePicker.js +5 -0
- package/dateTimeViewRenderers/dateTimeViewRenderers.d.ts +1 -1
- package/dateTimeViewRenderers/dateTimeViewRenderers.js +3 -0
- package/dateViewRenderers/dateViewRenderers.d.ts +1 -1
- package/dateViewRenderers/dateViewRenderers.js +2 -0
- package/index.js +1 -1
- package/internals/demo/DemoContainer.d.ts +8 -0
- package/internals/demo/DemoContainer.js +9 -0
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +2 -2
- package/internals/hooks/usePicker/usePicker.d.ts +1 -1
- package/internals/hooks/usePicker/usePicker.types.d.ts +3 -3
- package/internals/hooks/usePicker/usePickerViews.d.ts +10 -5
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +1 -1
- package/internals/models/props/basePickerProps.d.ts +1 -1
- package/legacy/AdapterMoment/AdapterMoment.js +19 -1
- package/legacy/DateField/DateField.js +0 -4
- package/legacy/DatePicker/DatePicker.js +5 -0
- package/legacy/DateTimeField/DateTimeField.js +0 -4
- package/legacy/DateTimePicker/DateTimePicker.js +5 -0
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +5 -0
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +5 -0
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -3
- package/legacy/MobileDatePicker/MobileDatePicker.js +5 -0
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +5 -0
- package/legacy/MobileTimePicker/MobileTimePicker.js +5 -0
- package/legacy/PickersDay/PickersDay.js +3 -3
- package/legacy/StaticDatePicker/StaticDatePicker.js +5 -0
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +5 -0
- package/legacy/StaticTimePicker/StaticTimePicker.js +5 -0
- package/legacy/TimeField/TimeField.js +0 -4
- package/legacy/TimePicker/TimePicker.js +5 -0
- package/legacy/dateTimeViewRenderers/dateTimeViewRenderers.js +3 -0
- package/legacy/dateViewRenderers/dateViewRenderers.js +2 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/demo/DemoContainer.js +9 -0
- package/legacy/timeViewRenderers/timeViewRenderers.js +6 -0
- package/modern/AdapterMoment/AdapterMoment.js +16 -3
- package/modern/DateField/DateField.js +0 -4
- package/modern/DatePicker/DatePicker.js +5 -0
- package/modern/DateTimeField/DateTimeField.js +0 -4
- package/modern/DateTimePicker/DateTimePicker.js +5 -0
- package/modern/DesktopDatePicker/DesktopDatePicker.js +5 -0
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/modern/DesktopTimePicker/DesktopTimePicker.js +5 -0
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -3
- package/modern/MobileDatePicker/MobileDatePicker.js +5 -0
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +5 -0
- package/modern/MobileTimePicker/MobileTimePicker.js +5 -0
- package/modern/PickersDay/PickersDay.js +3 -3
- package/modern/StaticDatePicker/StaticDatePicker.js +5 -0
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +5 -0
- package/modern/StaticTimePicker/StaticTimePicker.js +5 -0
- package/modern/TimeField/TimeField.js +0 -4
- package/modern/TimePicker/TimePicker.js +5 -0
- package/modern/dateTimeViewRenderers/dateTimeViewRenderers.js +3 -0
- package/modern/dateViewRenderers/dateViewRenderers.js +2 -0
- package/modern/index.js +1 -1
- package/modern/internals/demo/DemoContainer.js +9 -0
- package/modern/timeViewRenderers/timeViewRenderers.js +6 -0
- package/node/AdapterMoment/AdapterMoment.js +16 -3
- package/node/DateField/DateField.js +0 -4
- package/node/DatePicker/DatePicker.js +5 -0
- package/node/DateTimeField/DateTimeField.js +0 -4
- package/node/DateTimePicker/DateTimePicker.js +5 -0
- package/node/DesktopDatePicker/DesktopDatePicker.js +5 -0
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +5 -0
- package/node/DesktopTimePicker/DesktopTimePicker.js +5 -0
- package/node/LocalizationProvider/LocalizationProvider.js +0 -3
- package/node/MobileDatePicker/MobileDatePicker.js +5 -0
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +5 -0
- package/node/MobileTimePicker/MobileTimePicker.js +5 -0
- package/node/PickersDay/PickersDay.js +3 -3
- package/node/StaticDatePicker/StaticDatePicker.js +5 -0
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +5 -0
- package/node/StaticTimePicker/StaticTimePicker.js +5 -0
- package/node/TimeField/TimeField.js +0 -4
- package/node/TimePicker/TimePicker.js +5 -0
- package/node/dateTimeViewRenderers/dateTimeViewRenderers.js +3 -0
- package/node/dateViewRenderers/dateViewRenderers.js +2 -0
- package/node/index.js +1 -1
- package/node/internals/demo/DemoContainer.js +9 -0
- package/node/timeViewRenderers/timeViewRenderers.js +6 -0
- package/package.json +4 -4
- package/timeViewRenderers/timeViewRenderers.d.ts +3 -3
- package/timeViewRenderers/timeViewRenderers.js +6 -0
|
@@ -39,6 +39,11 @@ export declare class AdapterMoment implements MuiPickersAdapter<Moment, string>
|
|
|
39
39
|
formatTokenMap: FieldFormatTokenMap;
|
|
40
40
|
constructor({ locale, formats, instance }?: AdapterOptions<string, typeof defaultMoment>);
|
|
41
41
|
private setLocaleToValue;
|
|
42
|
+
/**
|
|
43
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
44
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
45
|
+
*/
|
|
46
|
+
private syncMomentLocale;
|
|
42
47
|
private hasTimezonePlugin;
|
|
43
48
|
private createSystemDate;
|
|
44
49
|
private createUTCDate;
|
|
@@ -177,6 +177,22 @@ export class AdapterMoment {
|
|
|
177
177
|
}
|
|
178
178
|
return value.locale(expectedLocale);
|
|
179
179
|
};
|
|
180
|
+
/**
|
|
181
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
182
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
183
|
+
*/
|
|
184
|
+
this.syncMomentLocale = runner => {
|
|
185
|
+
var _this$locale;
|
|
186
|
+
const momentLocale = defaultMoment.locale();
|
|
187
|
+
const adapterLocale = (_this$locale = this.locale) != null ? _this$locale : 'en-us';
|
|
188
|
+
if (momentLocale !== adapterLocale) {
|
|
189
|
+
defaultMoment.locale(adapterLocale);
|
|
190
|
+
const result = runner();
|
|
191
|
+
defaultMoment.locale(momentLocale);
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
return runner();
|
|
195
|
+
};
|
|
180
196
|
this.hasTimezonePlugin = () => typeof this.moment.tz !== 'undefined';
|
|
181
197
|
this.createSystemDate = value => {
|
|
182
198
|
const parsedValue = this.moment(value).local();
|
|
@@ -468,9 +484,7 @@ export class AdapterMoment {
|
|
|
468
484
|
this.mergeDateAndTime = (dateParam, timeParam) => {
|
|
469
485
|
return dateParam.clone().hour(timeParam.hour()).minute(timeParam.minute()).second(timeParam.second());
|
|
470
486
|
};
|
|
471
|
-
this.getWeekdays = () =>
|
|
472
|
-
return defaultMoment.weekdaysShort(true);
|
|
473
|
-
};
|
|
487
|
+
this.getWeekdays = () => this.syncMomentLocale(() => defaultMoment.weekdaysShort(true));
|
|
474
488
|
this.getWeekArray = value => {
|
|
475
489
|
const cleanValue = this.setLocaleToValue(value);
|
|
476
490
|
const start = cleanValue.clone().startOf('month').startOf('week');
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,143 @@
|
|
|
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.13.0
|
|
7
|
+
|
|
8
|
+
_Sep 8, 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
|
+
- 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
|
|
13
|
+
|
|
14
|
+
The range picker popup will now be anchored to the first input element and left aligned like other pickers.
|
|
15
|
+
- 🌍 Improve Slovak (sk-SK) locale on the data grid
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@6.13.0`
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Allow to override the default overlay height in `autoHeight` mode (#10203) @cherniavskii
|
|
24
|
+
- [DataGrid] Allow to override the default row count component in footer (#10063) @hungmanhle
|
|
25
|
+
- [DataGrid] Fix an error when hovering on a row, the background changed to white (#10214) @chucamphong
|
|
26
|
+
- [DataGrid] Fix custom column docs, remove legacy `extendType` (#10175) @oliviertassinari
|
|
27
|
+
- [DataGrid] Make the pinned rows be on top of the no rows overlay (#9986) @DanailH
|
|
28
|
+
- [l10n] Improve Slovak (sk-SK) locale (#10182) @msidlo
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@6.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@6.13.0`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPro] Fix column resize with pinned rows (#10229) @cherniavskii
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@6.13.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@6.13.0`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPremium] Fix aggregated column resizing (#10079) @cherniavskii
|
|
41
|
+
|
|
42
|
+
### Date Pickers
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers@6.13.0`
|
|
45
|
+
|
|
46
|
+
- [pickers] Respect the adapter locale in `AdapterMoment.getWeekdays` (#10221) @flaviendelangle
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@6.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@6.13.0`, plus:
|
|
51
|
+
|
|
52
|
+
- [DateRangePicker] Fix `anchorRef` behavior (#10077) @LukasTy
|
|
53
|
+
|
|
54
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.10`
|
|
55
|
+
|
|
56
|
+
- [charts] Remove require condition from package.json exports (#10272) @Janpot
|
|
57
|
+
|
|
58
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.2`
|
|
59
|
+
|
|
60
|
+
- [TreeView] Add missing export (#10245) @flaviendelangle
|
|
61
|
+
|
|
62
|
+
### Docs
|
|
63
|
+
|
|
64
|
+
- [docs] Add a `Getting Started` page for the Tree View (#10218) @flaviendelangle
|
|
65
|
+
- [docs] Add pickers `Custom opening button` page (#10200) @flaviendelangle
|
|
66
|
+
- [docs] Add pie chart demo with a center label (#10220) @giladappsforce
|
|
67
|
+
- [docs] Do not document ignored components (#10258) @flaviendelangle
|
|
68
|
+
- [docs] Fix charts demo using too deep import (#10263) @LukasTy
|
|
69
|
+
- [docs] Fix `e.g.` typo @oliviertassinari
|
|
70
|
+
- [docs] Fix npm package indentation @oliviertassinari
|
|
71
|
+
- [docs] Fix typo in tree view docs @oliviertassinari
|
|
72
|
+
- [docs] Improve the week picker example (#8257) @flaviendelangle
|
|
73
|
+
- [docs] Include code links in the data grid demo (#10219) @cherniavskii
|
|
74
|
+
- [docs] Polish page for SEO (#10216) @oliviertassinari
|
|
75
|
+
- [docs] Use `Base UI` `Portal` for the quick filter recipe (#10188) @DanailH
|
|
76
|
+
|
|
77
|
+
### Core
|
|
78
|
+
|
|
79
|
+
- [core] Finish migration to GA4 @oliviertassinari
|
|
80
|
+
- [core] Fix yarn docs:create-playground script @oliviertassinari
|
|
81
|
+
- [core] Move @mui/base from peer dependency to dependency (#10215) @oliviertassinari
|
|
82
|
+
- [core] Prevent `e.g.` typo (#10193) @oliviertassinari
|
|
83
|
+
- [core] Remove unused `babel-plugin-tester` package (#10243) @LukasTy
|
|
84
|
+
|
|
85
|
+
## 6.12.1
|
|
86
|
+
|
|
87
|
+
_Aug 31, 2023_
|
|
88
|
+
|
|
89
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
90
|
+
|
|
91
|
+
- 🏎️ Perf improvement for line charts
|
|
92
|
+
- 🎁 Add `referenceDate` prop on pickers (#9991) @flaviendelangle
|
|
93
|
+
Find out more about this feature in the [documentation section](https://mui.com/x/react-date-pickers/base-concepts/#reference-date-when-no-value-is-defined).
|
|
94
|
+
- 🐞 Bugfixes
|
|
95
|
+
- 📚 Documentation improvements
|
|
96
|
+
|
|
97
|
+
### Data Grid
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-data-grid@6.12.1`
|
|
100
|
+
|
|
101
|
+
- [DataGrid] Add a recipe showing how to render components outside of the grid (#10121) @DanailH
|
|
102
|
+
- [DataGrid] Fix `valueFormatter` being persisted on column type change (#10041) @cherniavskii
|
|
103
|
+
- [DataGrid] Fix error when keyboard navigating an empty grid (#10081) @romgrk
|
|
104
|
+
- [DataGrid] Replace timeout with `useTimeout` (#10179) @romgrk
|
|
105
|
+
|
|
106
|
+
#### `@mui/x-data-grid-pro@6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
107
|
+
|
|
108
|
+
Same changes as in `@mui/x-data-grid@6.12.1`.
|
|
109
|
+
|
|
110
|
+
#### `@mui/x-data-grid-premium@6.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
111
|
+
|
|
112
|
+
Same changes as in `@mui/x-data-grid-pro@6.12.1`.
|
|
113
|
+
|
|
114
|
+
### Date Pickers
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-date-pickers@6.12.1`
|
|
117
|
+
|
|
118
|
+
- [pickers] Add `referenceDate` on picker components (and `DateRangeCalendar`) (#9991) @flaviendelangle
|
|
119
|
+
|
|
120
|
+
#### `@mui/x-date-pickers-pro@6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
121
|
+
|
|
122
|
+
Same changes as in `@mui/x-date-pickers@6.12.1`.
|
|
123
|
+
|
|
124
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.9`
|
|
125
|
+
|
|
126
|
+
- [charts] Move the line item highligh into a dedicated component (#10117) @alexfauquette
|
|
127
|
+
|
|
128
|
+
### Docs
|
|
129
|
+
|
|
130
|
+
- [docs] Add `DemoContainer` and `DemoItem` JSDoc (#10186) @LukasTy
|
|
131
|
+
- [docs] Add link to `custom layout` page (#10184) @LukasTy
|
|
132
|
+
- [docs] Add tree view nav item (#10181) @LukasTy
|
|
133
|
+
- [docs] Fix wrong chart tooltip reference (#10169) @oliviertassinari
|
|
134
|
+
- [docs] Improve chart SEO (#10170) @oliviertassinari
|
|
135
|
+
- [docs] Precise expired license key condition (#10165) @oliviertassinari
|
|
136
|
+
- [docs] Reorganize the page menu (#10139) @alexfauquette
|
|
137
|
+
|
|
138
|
+
### Core
|
|
139
|
+
|
|
140
|
+
- [core] Update babel configs (#9713) @romgrk
|
|
141
|
+
- [test] Disable false positive e2e test on webkit (#10187) @LukasTy
|
|
142
|
+
|
|
6
143
|
## 6.12.0
|
|
7
144
|
|
|
8
145
|
_Aug 25, 2023_
|
|
@@ -17,22 +154,22 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
17
154
|
|
|
18
155
|
### Data Grid
|
|
19
156
|
|
|
20
|
-
#### `@mui/x-data-grid@
|
|
157
|
+
#### `@mui/x-data-grid@6.12.0`
|
|
21
158
|
|
|
22
159
|
- [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
|
|
23
160
|
- [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
|
|
24
161
|
|
|
25
|
-
#### `@mui/x-data-grid-pro@
|
|
162
|
+
#### `@mui/x-data-grid-pro@6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
163
|
|
|
27
|
-
Same changes as in `@mui/x-data-grid@
|
|
164
|
+
Same changes as in `@mui/x-data-grid@6.12.0`.
|
|
28
165
|
|
|
29
|
-
#### `@mui/x-data-grid-premium@
|
|
166
|
+
#### `@mui/x-data-grid-premium@6.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
167
|
|
|
31
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
168
|
+
Same changes as in `@mui/x-data-grid-pro@6.12.0`.
|
|
32
169
|
|
|
33
170
|
### Date Pickers
|
|
34
171
|
|
|
35
|
-
#### `@mui/x-date-pickers@
|
|
172
|
+
#### `@mui/x-date-pickers@6.12.0`
|
|
36
173
|
|
|
37
174
|
- [fields] Do not clamp day of month (#9973) @flaviendelangle
|
|
38
175
|
- [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
|
|
@@ -42,11 +179,11 @@ Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
|
|
|
42
179
|
- [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
|
|
43
180
|
- [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
|
|
44
181
|
|
|
45
|
-
#### `@mui/x-date-pickers-pro@
|
|
182
|
+
#### `@mui/x-date-pickers-pro@6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
46
183
|
|
|
47
|
-
Same changes as in `@mui/x-date-pickers@
|
|
184
|
+
Same changes as in `@mui/x-date-pickers@6.12.0`.
|
|
48
185
|
|
|
49
|
-
### Charts / `@mui/x-charts@6.
|
|
186
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.8`
|
|
50
187
|
|
|
51
188
|
- [charts] Fix import issue (#10111) @alexfauquette
|
|
52
189
|
- [charts] Fix `slotProps` propagation (#10105) @alexfauquette
|
|
@@ -83,7 +220,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
83
220
|
|
|
84
221
|
### Data Grid
|
|
85
222
|
|
|
86
|
-
#### `@mui/x-data-grid@
|
|
223
|
+
#### `@mui/x-data-grid@6.11.2`
|
|
87
224
|
|
|
88
225
|
- [DataGrid] Fix `eval` blocked by CSP (#9863) @romgrk
|
|
89
226
|
- [DataGrid] Fix row id bug (#10051) @romgrk
|
|
@@ -93,26 +230,26 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
93
230
|
- [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
|
|
94
231
|
- [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
|
|
95
232
|
|
|
96
|
-
#### `@mui/x-data-grid-pro@
|
|
233
|
+
#### `@mui/x-data-grid-pro@6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
97
234
|
|
|
98
|
-
Same changes as in `@mui/x-data-grid@
|
|
235
|
+
Same changes as in `@mui/x-data-grid@6.11.2`.
|
|
99
236
|
|
|
100
|
-
#### `@mui/x-data-grid-premium@
|
|
237
|
+
#### `@mui/x-data-grid-premium@6.11.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
101
238
|
|
|
102
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
239
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.2`.
|
|
103
240
|
|
|
104
241
|
### Date Pickers
|
|
105
242
|
|
|
106
|
-
#### `@mui/x-date-pickers@
|
|
243
|
+
#### `@mui/x-date-pickers@6.11.2`
|
|
107
244
|
|
|
108
245
|
- [pickers] Fix month switcher RTL (#10003) @alexfauquette
|
|
109
246
|
- [pickers] Follow-up on using device motion reduction preference (#9858) @LukasTy
|
|
110
247
|
- [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
|
|
111
248
|
- [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
|
|
112
249
|
|
|
113
|
-
#### `@mui/x-date-pickers-pro@
|
|
250
|
+
#### `@mui/x-date-pickers-pro@6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
114
251
|
|
|
115
|
-
Same changes as in `@mui/x-date-pickers@
|
|
252
|
+
Same changes as in `@mui/x-date-pickers@6.11.2`.
|
|
116
253
|
|
|
117
254
|
### Docs
|
|
118
255
|
|
|
@@ -167,7 +304,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
|
167
304
|
|
|
168
305
|
Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
169
306
|
|
|
170
|
-
### Charts / `@mui/x-charts@
|
|
307
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.7`
|
|
171
308
|
|
|
172
309
|
- [charts] Fix label and tick alignment (#9952) @LukasTy
|
|
173
310
|
- [charts] Remove not functional component `styleOverrides` (#9996) @LukasTy
|
|
@@ -175,7 +312,7 @@ Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
|
175
312
|
- [charts] Use `slot`/`slotProps` for customization (#9744) @alexfauquette
|
|
176
313
|
- [charts] Extend cheerful fiesta palette (#9980) @noraleonte
|
|
177
314
|
|
|
178
|
-
### Tree View / `@mui/x-tree-view@
|
|
315
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.1`
|
|
179
316
|
|
|
180
317
|
- [TreeView] Add theme augmentation (#9967) @flaviendelangle
|
|
181
318
|
|
|
@@ -205,7 +342,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
205
342
|
|
|
206
343
|
### Data Grid
|
|
207
344
|
|
|
208
|
-
#### `@mui/x-data-grid@
|
|
345
|
+
#### `@mui/x-data-grid@6.11.0`
|
|
209
346
|
|
|
210
347
|
- [DataGrid] Add `ariaV7` experimental flag (#9496) @cherniavskii
|
|
211
348
|
- [DataGrid] Fix cell size when column width is set to `undefined` (#9871) @gitstart
|
|
@@ -213,17 +350,17 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
213
350
|
- [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
|
|
214
351
|
- [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
|
|
215
352
|
|
|
216
|
-
#### `@mui/x-data-grid-pro@
|
|
353
|
+
#### `@mui/x-data-grid-pro@6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
217
354
|
|
|
218
|
-
Same changes as in `@mui/x-data-grid@
|
|
355
|
+
Same changes as in `@mui/x-data-grid@6.11.0`.
|
|
219
356
|
|
|
220
|
-
#### `@mui/x-data-grid-premium@
|
|
357
|
+
#### `@mui/x-data-grid-premium@6.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
221
358
|
|
|
222
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
359
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.0`.
|
|
223
360
|
|
|
224
361
|
### Date Pickers
|
|
225
362
|
|
|
226
|
-
#### `@mui/x-date-pickers@
|
|
363
|
+
#### `@mui/x-date-pickers@6.11.0`
|
|
227
364
|
|
|
228
365
|
- [fields] Correctly handle events with a complete value insertion (#9896) @LukasTy
|
|
229
366
|
- [fields] Fix hours editing on dayjs with timezone and DST (#9901) @flaviendelangle
|
|
@@ -236,18 +373,18 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
|
236
373
|
- [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
|
|
237
374
|
- [pickers] Use device motion reduction preference (#9823) @LukasTy
|
|
238
375
|
|
|
239
|
-
#### `@mui/x-date-pickers-pro@
|
|
376
|
+
#### `@mui/x-date-pickers-pro@6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
240
377
|
|
|
241
|
-
Same changes as in `@mui/x-date-pickers@
|
|
378
|
+
Same changes as in `@mui/x-date-pickers@6.11.0`.
|
|
242
379
|
|
|
243
|
-
### Charts / `@mui/x-charts@
|
|
380
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.6`
|
|
244
381
|
|
|
245
382
|
- [charts] Add TS definition to the exported elements (#9885) @alexfauquette
|
|
246
383
|
- [charts] Add sparkline (#9662) @alexfauquette
|
|
247
384
|
- [charts] Fix missing configuration types (#9886) @alexfauquette
|
|
248
385
|
- [charts] Introduce dataset to simplify plot of data from API (#9774) @alexfauquette
|
|
249
386
|
|
|
250
|
-
### Tree View / `@mui/x-tree-view@
|
|
387
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.0`
|
|
251
388
|
|
|
252
389
|
- [TreeView] Add missing exported types (#9862) @flaviendelangle
|
|
253
390
|
- [TreeView] Add tree view to changelog generator script (#9903) @MBilalShafi
|
|
@@ -292,34 +429,34 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
292
429
|
|
|
293
430
|
### Data Grid
|
|
294
431
|
|
|
295
|
-
#### `@mui/x-data-grid@
|
|
432
|
+
#### `@mui/x-data-grid@6.10.2`
|
|
296
433
|
|
|
297
434
|
- [DataGrid] Fix quick filter & aggregation error (#9729) @romgrk
|
|
298
435
|
- [DataGrid] Fix row click propagation causing error in nested grid (#9741) @cherniavskii
|
|
299
436
|
- [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
|
|
300
437
|
- [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
|
|
301
438
|
|
|
302
|
-
#### `@mui/x-data-grid-pro@
|
|
439
|
+
#### `@mui/x-data-grid-pro@6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
303
440
|
|
|
304
|
-
Same changes as in `@mui/x-data-grid@
|
|
441
|
+
Same changes as in `@mui/x-data-grid@6.10.2`.
|
|
305
442
|
|
|
306
|
-
#### `@mui/x-data-grid-premium@
|
|
443
|
+
#### `@mui/x-data-grid-premium@6.10.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
307
444
|
|
|
308
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
445
|
+
Same changes as in `@mui/x-data-grid-pro@6.10.2`, plus:
|
|
309
446
|
|
|
310
447
|
- [DataGridPremium] Allow to customize grouping cell offset (#9417) @cherniavskii
|
|
311
448
|
|
|
312
449
|
### Date Pickers
|
|
313
450
|
|
|
314
|
-
#### `@mui/x-date-pickers@
|
|
451
|
+
#### `@mui/x-date-pickers@6.10.2`
|
|
315
452
|
|
|
316
453
|
- [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
|
|
317
454
|
|
|
318
|
-
#### `@mui/x-date-pickers-pro@
|
|
455
|
+
#### `@mui/x-date-pickers-pro@6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
319
456
|
|
|
320
|
-
Same changes as in `@mui/x-date-pickers@
|
|
457
|
+
Same changes as in `@mui/x-date-pickers@6.10.2`.
|
|
321
458
|
|
|
322
|
-
### Charts / `@mui/x-charts@
|
|
459
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.5`
|
|
323
460
|
|
|
324
461
|
- [charts] Improve JSDoc for axis-related props (#9779) @flaviendelangle
|
|
325
462
|
- [charts] Improve performances of Scatter component (#9527) @flaviendelangle
|
|
@@ -357,7 +494,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
357
494
|
|
|
358
495
|
### Data Grid
|
|
359
496
|
|
|
360
|
-
#### `@mui/x-data-grid@
|
|
497
|
+
#### `@mui/x-data-grid@6.10.1`
|
|
361
498
|
|
|
362
499
|
- [DataGrid] Filtering performance: compile filter applier with `eval` (#9635) @romgrk
|
|
363
500
|
- [DataGrid] Fix CSV export for values containing double quotes (#9667) @cherniavskii
|
|
@@ -367,29 +504,29 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
367
504
|
- [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
|
|
368
505
|
- [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
|
|
369
506
|
|
|
370
|
-
#### `@mui/x-data-grid-pro@
|
|
507
|
+
#### `@mui/x-data-grid-pro@6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
371
508
|
|
|
372
|
-
Same changes as in `@mui/x-data-grid@
|
|
509
|
+
Same changes as in `@mui/x-data-grid@6.10.1`, plus:
|
|
373
510
|
|
|
374
511
|
- [DataGridPro] Improve tree data performance (#9682) @cherniavskii
|
|
375
512
|
- [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
|
|
376
513
|
|
|
377
|
-
#### `@mui/x-data-grid-premium@
|
|
514
|
+
#### `@mui/x-data-grid-premium@6.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
378
515
|
|
|
379
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
516
|
+
Same changes as in `@mui/x-data-grid-pro@6.10.1`.
|
|
380
517
|
|
|
381
518
|
### Date Pickers
|
|
382
519
|
|
|
383
|
-
#### `@mui/x-date-pickers@
|
|
520
|
+
#### `@mui/x-date-pickers@6.10.1`
|
|
384
521
|
|
|
385
522
|
- [fields] Fix `format` and `value` update order (#9715) @LukasTy
|
|
386
523
|
- [pickers] Remove `require` usage in comment (#9675) @LukasTy
|
|
387
524
|
|
|
388
|
-
#### `@mui/x-date-pickers-pro@
|
|
525
|
+
#### `@mui/x-date-pickers-pro@6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
389
526
|
|
|
390
|
-
Same changes as in `@mui/x-date-pickers@
|
|
527
|
+
Same changes as in `@mui/x-date-pickers@6.10.1`.
|
|
391
528
|
|
|
392
|
-
### Charts / `@mui/x-charts@
|
|
529
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.4`
|
|
393
530
|
|
|
394
531
|
- [charts] Fix blinking in responsive charts and extremums computation for line charts (#9734) @alexfauquette
|
|
395
532
|
- [charts] Use ESM with imports (#9645) @alexfauquette
|
package/DateField/DateField.js
CHANGED
|
@@ -208,10 +208,6 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
208
208
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
209
209
|
*/
|
|
210
210
|
onChange: PropTypes.func,
|
|
211
|
-
/**
|
|
212
|
-
* @ignore
|
|
213
|
-
*/
|
|
214
|
-
onClick: PropTypes.func,
|
|
215
211
|
/**
|
|
216
212
|
* Callback fired when the error associated to the current value changes.
|
|
217
213
|
* @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.
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -245,6 +245,11 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
245
245
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
246
246
|
*/
|
|
247
247
|
reduceAnimations: PropTypes.bool,
|
|
248
|
+
/**
|
|
249
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
250
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
251
|
+
*/
|
|
252
|
+
referenceDate: PropTypes.any,
|
|
248
253
|
/**
|
|
249
254
|
* Component displaying when passed `loading` true.
|
|
250
255
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -241,10 +241,6 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
241
241
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
242
242
|
*/
|
|
243
243
|
onChange: PropTypes.func,
|
|
244
|
-
/**
|
|
245
|
-
* @ignore
|
|
246
|
-
*/
|
|
247
|
-
onClick: PropTypes.func,
|
|
248
244
|
/**
|
|
249
245
|
* Callback fired when the error associated to the current value changes.
|
|
250
246
|
* @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.
|
|
@@ -283,6 +283,11 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
283
283
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
284
284
|
*/
|
|
285
285
|
reduceAnimations: PropTypes.bool,
|
|
286
|
+
/**
|
|
287
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
288
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
289
|
+
*/
|
|
290
|
+
referenceDate: PropTypes.any,
|
|
286
291
|
/**
|
|
287
292
|
* Component displaying when passed `loading` true.
|
|
288
293
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -263,6 +263,11 @@ DesktopDatePicker.propTypes = {
|
|
|
263
263
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
264
264
|
*/
|
|
265
265
|
reduceAnimations: PropTypes.bool,
|
|
266
|
+
/**
|
|
267
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
268
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
269
|
+
*/
|
|
270
|
+
referenceDate: PropTypes.any,
|
|
266
271
|
/**
|
|
267
272
|
* Component displaying when passed `loading` true.
|
|
268
273
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -337,6 +337,11 @@ DesktopDateTimePicker.propTypes = {
|
|
|
337
337
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
338
338
|
*/
|
|
339
339
|
reduceAnimations: PropTypes.bool,
|
|
340
|
+
/**
|
|
341
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
342
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
343
|
+
*/
|
|
344
|
+
referenceDate: PropTypes.any,
|
|
340
345
|
/**
|
|
341
346
|
* Component displaying when passed `loading` true.
|
|
342
347
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -259,6 +259,11 @@ DesktopTimePicker.propTypes = {
|
|
|
259
259
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
260
260
|
*/
|
|
261
261
|
reduceAnimations: PropTypes.bool,
|
|
262
|
+
/**
|
|
263
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
264
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
265
|
+
*/
|
|
266
|
+
referenceDate: PropTypes.any,
|
|
262
267
|
/**
|
|
263
268
|
* The currently selected sections.
|
|
264
269
|
* This prop accept four formats:
|
|
@@ -41,8 +41,5 @@ export interface LocalizationProviderProps<TDate, TLocale> {
|
|
|
41
41
|
type LocalizationProviderComponent = (<TDate, TLocale>(props: LocalizationProviderProps<TDate, TLocale>) => React.JSX.Element) & {
|
|
42
42
|
propTypes?: any;
|
|
43
43
|
};
|
|
44
|
-
/**
|
|
45
|
-
* @ignore - do not document.
|
|
46
|
-
*/
|
|
47
44
|
export declare const LocalizationProvider: LocalizationProviderComponent;
|
|
48
45
|
export {};
|
|
@@ -9,9 +9,6 @@ export const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);
|
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @ignore - do not document.
|
|
14
|
-
*/
|
|
15
12
|
export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
16
13
|
var _React$useContext;
|
|
17
14
|
const {
|
|
@@ -260,6 +260,11 @@ MobileDatePicker.propTypes = {
|
|
|
260
260
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
261
261
|
*/
|
|
262
262
|
reduceAnimations: PropTypes.bool,
|
|
263
|
+
/**
|
|
264
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
265
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
266
|
+
*/
|
|
267
|
+
referenceDate: PropTypes.any,
|
|
263
268
|
/**
|
|
264
269
|
* Component displaying when passed `loading` true.
|
|
265
270
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -309,6 +309,11 @@ MobileDateTimePicker.propTypes = {
|
|
|
309
309
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
310
310
|
*/
|
|
311
311
|
reduceAnimations: PropTypes.bool,
|
|
312
|
+
/**
|
|
313
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
314
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
315
|
+
*/
|
|
316
|
+
referenceDate: PropTypes.any,
|
|
312
317
|
/**
|
|
313
318
|
* Component displaying when passed `loading` true.
|
|
314
319
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -237,6 +237,11 @@ MobileTimePicker.propTypes = {
|
|
|
237
237
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
238
238
|
*/
|
|
239
239
|
reduceAnimations: PropTypes.bool,
|
|
240
|
+
/**
|
|
241
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
242
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
243
|
+
*/
|
|
244
|
+
referenceDate: PropTypes.any,
|
|
240
245
|
/**
|
|
241
246
|
* The currently selected sections.
|
|
242
247
|
* This prop accept four formats:
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -39,6 +39,9 @@ const styleArg = ({
|
|
|
39
39
|
padding: 0,
|
|
40
40
|
// explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component
|
|
41
41
|
backgroundColor: 'transparent',
|
|
42
|
+
transition: theme.transitions.create('background-color', {
|
|
43
|
+
duration: theme.transitions.duration.short
|
|
44
|
+
}),
|
|
42
45
|
color: (theme.vars || theme).palette.text.primary,
|
|
43
46
|
'@media (pointer: fine)': {
|
|
44
47
|
'&:hover': {
|
|
@@ -56,9 +59,6 @@ const styleArg = ({
|
|
|
56
59
|
color: (theme.vars || theme).palette.primary.contrastText,
|
|
57
60
|
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
58
61
|
fontWeight: theme.typography.fontWeightMedium,
|
|
59
|
-
transition: theme.transitions.create('background-color', {
|
|
60
|
-
duration: theme.transitions.duration.short
|
|
61
|
-
}),
|
|
62
62
|
'&:hover': {
|
|
63
63
|
willChange: 'background-color',
|
|
64
64
|
backgroundColor: (theme.vars || theme).palette.primary.dark
|
package/README.md
CHANGED
|
@@ -205,6 +205,11 @@ StaticDatePicker.propTypes = {
|
|
|
205
205
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
206
206
|
*/
|
|
207
207
|
reduceAnimations: PropTypes.bool,
|
|
208
|
+
/**
|
|
209
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
210
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
211
|
+
*/
|
|
212
|
+
referenceDate: PropTypes.any,
|
|
208
213
|
/**
|
|
209
214
|
* Component displaying when passed `loading` true.
|
|
210
215
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -253,6 +253,11 @@ StaticDateTimePicker.propTypes = {
|
|
|
253
253
|
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
254
254
|
*/
|
|
255
255
|
reduceAnimations: PropTypes.bool,
|
|
256
|
+
/**
|
|
257
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
258
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
259
|
+
*/
|
|
260
|
+
referenceDate: PropTypes.any,
|
|
256
261
|
/**
|
|
257
262
|
* Component displaying when passed `loading` true.
|
|
258
263
|
* @returns {React.ReactNode} The node to render when loading.
|