@mui/x-date-pickers 8.23.0 → 8.24.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/CHANGELOG.md +111 -1
- package/DatePicker/DatePicker.js +1 -1
- package/DateTimePicker/DateTimePicker.js +1 -1
- package/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/MobileTimePicker/MobileTimePicker.js +1 -1
- package/PickersDay/PickersDay.js +1 -1
- package/PickersTextField/PickersOutlinedInput/Outline.js +5 -1
- package/StaticDatePicker/StaticDatePicker.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/StaticTimePicker/StaticTimePicker.js +1 -1
- package/TimePicker/TimePicker.js +1 -1
- package/esm/DatePicker/DatePicker.js +1 -1
- package/esm/DateTimePicker/DateTimePicker.js +1 -1
- package/esm/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -1
- package/esm/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/esm/MobileDatePicker/MobileDatePicker.js +1 -1
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/esm/MobileTimePicker/MobileTimePicker.js +1 -1
- package/esm/PickersDay/PickersDay.js +1 -1
- package/esm/PickersTextField/PickersOutlinedInput/Outline.js +5 -1
- package/esm/StaticDatePicker/StaticDatePicker.js +1 -1
- package/esm/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/esm/StaticTimePicker/StaticTimePicker.js +1 -1
- package/esm/TimePicker/TimePicker.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerViewRoot/PickerViewRoot.d.ts +1 -1
- package/esm/internals/components/PickerViewRoot/PickerViewRoot.js +4 -1
- package/esm/internals/components/PickersModalDialog.js +6 -2
- package/esm/internals/hooks/usePicker/usePicker.types.d.ts +1 -1
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.js +3 -1
- package/index.js +1 -1
- package/internals/components/PickerViewRoot/PickerViewRoot.d.ts +1 -1
- package/internals/components/PickerViewRoot/PickerViewRoot.js +4 -1
- package/internals/components/PickersModalDialog.js +6 -2
- package/internals/hooks/usePicker/usePicker.types.d.ts +1 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,119 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.24.0
|
|
9
|
+
|
|
10
|
+
_Jan 8, 2026_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- ⚡️Add bar [batch renderer](https://mui.com/x/react-charts/bars/#performance), result in a significant performance improvement when rendering thousands of bars
|
|
15
|
+
- 📊 Add [range bar chart](https://mui.com/x/react-charts/range-bar/) to render
|
|
16
|
+

|
|
17
|
+
- 🌎 Improved Danish (da-DK) and Japanese (ja-JP) locales on the Data Grid
|
|
18
|
+
|
|
19
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
20
|
+
@anders-noerrelykke, @auloin, @sai6855, @yuito-it
|
|
21
|
+
|
|
22
|
+
The following team members contributed to this release:
|
|
23
|
+
@alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @JCQuintas, @mapache-salvaje, @siriwatknp
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### `@mui/x-data-grid@8.24.0`
|
|
28
|
+
|
|
29
|
+
- [l10n] Improve Danish (da-DK) locale (#20828) @anders-noerrelykke
|
|
30
|
+
- [l10n] Improve Japanese (ja-JP) locale (#20251) @yuito-it
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-pro@8.24.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid@8.24.0`, plus:
|
|
35
|
+
|
|
36
|
+
- [DataGridPro] Fix header filter height for `density="compact"` (#20834) @arminmeh
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-data-grid-premium@8.24.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
39
|
+
|
|
40
|
+
Same changes as in `@mui/x-data-grid-pro@8.24.0`.
|
|
41
|
+
|
|
42
|
+
### Date and Time Pickers
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers@8.24.0`
|
|
45
|
+
|
|
46
|
+
- [pickers] Fix Styles applied to PickersDay when MuiPickersDay-dayOutsideMonth is used (#20719) @sai6855
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@8.24.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@8.24.0`.
|
|
51
|
+
|
|
52
|
+
### Charts
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-charts@8.24.0`
|
|
55
|
+
|
|
56
|
+
- [charts] Add `VisibilityManager` logic to allow managing series/items (#20571) @JCQuintas
|
|
57
|
+
- [charts] Add `identifierSerializer` configuration (#20775) @JCQuintas
|
|
58
|
+
- [charts] Add `serializeIdentifier` instance function (#20791) @JCQuintas
|
|
59
|
+
- [charts] Add bar batch renderer (#20457) @bernardobelchior
|
|
60
|
+
- [charts] Allow animating bar, line, and pie elements to hidden state (#20798) @JCQuintas
|
|
61
|
+
- [charts] Fix failing lint step (#20813) @bernardobelchior
|
|
62
|
+
- [charts] Fix tooltip anchored to item (#20783) @alexfauquette
|
|
63
|
+
- [charts] Fix type casting in getCategoryAxisConfig and applySeriesLayout functions (#20797) @sai6855
|
|
64
|
+
- [charts] Let keyboard navigation avoid overflow and handle nullish values (#20757) @alexfauquette
|
|
65
|
+
- [charts] Refactor `PieChart` and `PieChartPro` to use `slots` and `slotProps` directly (#20795) @sai6855
|
|
66
|
+
- [charts] Refactor `useRegisterPointerEventHandlers` (#20824) @bernardobelchior
|
|
67
|
+
- [charts] Update legend types to allow hiding/showing items (#20784) @JCQuintas
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-charts-pro@8.24.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-charts@8.24.0`, plus:
|
|
72
|
+
|
|
73
|
+
- [charts-pro] Pass `slotProps.toolbar` to `Toolbar` in `PieChartPro` (#20796) @sai6855
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts-premium@8.24.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-charts-pro@8.24.0`, plus:
|
|
78
|
+
|
|
79
|
+
- [charts-premium] Add range bar chart (#20275) @bernardobelchior
|
|
80
|
+
|
|
81
|
+
### Tree View
|
|
82
|
+
|
|
83
|
+
#### `@mui/x-tree-view@8.24.0`
|
|
84
|
+
|
|
85
|
+
- [tree view] Introduce a Tree View Store to clean the internals (#20051) @flaviendelangle
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-tree-view-pro@8.24.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
88
|
+
|
|
89
|
+
Same changes as in `@mui/x-tree-view@8.24.0`.
|
|
90
|
+
|
|
91
|
+
### Codemod
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-codemod@8.24.0`
|
|
94
|
+
|
|
95
|
+
Internal changes.
|
|
96
|
+
|
|
97
|
+
### Docs
|
|
98
|
+
|
|
99
|
+
- [docs] Fix axis size default values (#20799) @bernardobelchior
|
|
100
|
+
- [docs] Update What's New in MUI X page with post v8 features (DX-118) (#20787) @alelthomas
|
|
101
|
+
- [docs] Fix `onAccept`'s `context.source` documentation to use 'view' instead of 'picker' (#20465) @auloin
|
|
102
|
+
- [docs] Revise the Charts Brush doc (#20792) @mapache-salvaje
|
|
103
|
+
- [docs] Revise the Charts Highlighting doc (#20788) @mapache-salvaje
|
|
104
|
+
- [docs] Revise the Charts Label doc (#20794) @mapache-salvaje
|
|
105
|
+
- [docs] Revise the Charts Export doc (#20779) @mapache-salvaje
|
|
106
|
+
|
|
107
|
+
### Core
|
|
108
|
+
|
|
109
|
+
- [code-infra] Fix v8.23.0 release date (#20767) @bernardobelchior
|
|
110
|
+
- [code-infra] Remove `glob-gitignore` (#20801) @bernardobelchior
|
|
111
|
+
- [code-infra] Remove `nyc` (#20804) @bernardobelchior
|
|
112
|
+
- [code-infra] Remove `stream-browserify` and `null-loader` (#20805) @bernardobelchior
|
|
113
|
+
- [code-infra] Remove `stylelint-config-tailwindcss` (#20807) @bernardobelchior
|
|
114
|
+
- [code-infra] Remove unused `path` package (#20802) @bernardobelchior
|
|
115
|
+
- [code-infra] Retry flaky e2e test on webkit (#20806) @JCQuintas
|
|
116
|
+
- [internal] Add `internal` slot to properly generate components CSS layer (#20763) @siriwatknp
|
|
117
|
+
|
|
8
118
|
## 8.23.0
|
|
9
119
|
|
|
10
|
-
_Dec
|
|
120
|
+
_Dec 24, 2025_
|
|
11
121
|
|
|
12
122
|
We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
123
|
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -185,7 +185,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
185
185
|
* @param {TValue} value The value that was just accepted.
|
|
186
186
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
187
187
|
* - `validationError`: validation result of the current value
|
|
188
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
188
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
189
189
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
190
190
|
*/
|
|
191
191
|
onAccept: _propTypes.default.func,
|
|
@@ -223,7 +223,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
223
223
|
* @param {TValue} value The value that was just accepted.
|
|
224
224
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
225
225
|
* - `validationError`: validation result of the current value
|
|
226
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
226
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
227
227
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
228
228
|
*/
|
|
229
229
|
onAccept: _propTypes.default.func,
|
|
@@ -196,7 +196,7 @@ DesktopDatePicker.propTypes = {
|
|
|
196
196
|
* @param {TValue} value The value that was just accepted.
|
|
197
197
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
198
198
|
* - `validationError`: validation result of the current value
|
|
199
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
199
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
200
200
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
201
201
|
*/
|
|
202
202
|
onAccept: _propTypes.default.func,
|
|
@@ -318,7 +318,7 @@ DesktopDateTimePicker.propTypes = {
|
|
|
318
318
|
* @param {TValue} value The value that was just accepted.
|
|
319
319
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
320
320
|
* - `validationError`: validation result of the current value
|
|
321
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
321
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
322
322
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
323
323
|
*/
|
|
324
324
|
onAccept: _propTypes.default.func,
|
|
@@ -200,7 +200,7 @@ DesktopTimePicker.propTypes = {
|
|
|
200
200
|
* @param {TValue} value The value that was just accepted.
|
|
201
201
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
202
202
|
* - `validationError`: validation result of the current value
|
|
203
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
203
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
204
204
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
205
205
|
*/
|
|
206
206
|
onAccept: _propTypes.default.func,
|
|
@@ -194,7 +194,7 @@ MobileDatePicker.propTypes = {
|
|
|
194
194
|
* @param {TValue} value The value that was just accepted.
|
|
195
195
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
196
196
|
* - `validationError`: validation result of the current value
|
|
197
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
197
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
198
198
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
199
199
|
*/
|
|
200
200
|
onAccept: _propTypes.default.func,
|
|
@@ -284,7 +284,7 @@ MobileDateTimePicker.propTypes = {
|
|
|
284
284
|
* @param {TValue} value The value that was just accepted.
|
|
285
285
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
286
286
|
* - `validationError`: validation result of the current value
|
|
287
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
287
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
288
288
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
289
289
|
*/
|
|
290
290
|
onAccept: _propTypes.default.func,
|
|
@@ -185,7 +185,7 @@ MobileTimePicker.propTypes = {
|
|
|
185
185
|
* @param {TValue} value The value that was just accepted.
|
|
186
186
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
187
187
|
* - `validationError`: validation result of the current value
|
|
188
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
188
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
189
189
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
190
190
|
*/
|
|
191
191
|
onAccept: _propTypes.default.func,
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -111,7 +111,7 @@ const overridesResolver = (props, styles) => {
|
|
|
111
111
|
const {
|
|
112
112
|
ownerState
|
|
113
113
|
} = props;
|
|
114
|
-
return [styles.root, !ownerState.disableMargin && styles.dayWithMargin, !ownerState.disableHighlightToday && ownerState.isDayCurrent && styles.today,
|
|
114
|
+
return [styles.root, !ownerState.disableMargin && styles.dayWithMargin, !ownerState.disableHighlightToday && ownerState.isDayCurrent && styles.today, ownerState.isDayOutsideMonth && ownerState.showDaysOutsideCurrentMonth && styles.dayOutsideMonth, ownerState.isDayOutsideMonth && !ownerState.showDaysOutsideCurrentMonth && styles.hiddenDaySpacingFiller];
|
|
115
115
|
};
|
|
116
116
|
const PickersDayRoot = (0, _styles.styled)(_ButtonBase.default, {
|
|
117
117
|
name: 'MuiPickersDay',
|
|
@@ -39,13 +39,17 @@ const OutlineRoot = (0, _styles.styled)('fieldset', {
|
|
|
39
39
|
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
40
40
|
};
|
|
41
41
|
});
|
|
42
|
-
const OutlineLabel = (0, _styles.styled)('span'
|
|
42
|
+
const OutlineLabel = (0, _styles.styled)('span', {
|
|
43
|
+
slot: 'internal',
|
|
44
|
+
shouldForwardProp: undefined
|
|
45
|
+
})(({
|
|
43
46
|
theme
|
|
44
47
|
}) => ({
|
|
45
48
|
fontFamily: theme.typography.fontFamily,
|
|
46
49
|
fontSize: 'inherit'
|
|
47
50
|
}));
|
|
48
51
|
const OutlineLegend = (0, _styles.styled)('legend', {
|
|
52
|
+
slot: 'internal',
|
|
49
53
|
shouldForwardProp: prop => (0, _createStyled.shouldForwardProp)(prop) && prop !== 'notched'
|
|
50
54
|
})(({
|
|
51
55
|
theme
|
|
@@ -151,7 +151,7 @@ StaticDatePicker.propTypes = {
|
|
|
151
151
|
* @param {TValue} value The value that was just accepted.
|
|
152
152
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
153
153
|
* - `validationError`: validation result of the current value
|
|
154
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
154
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
155
155
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
156
156
|
*/
|
|
157
157
|
onAccept: _propTypes.default.func,
|
|
@@ -238,7 +238,7 @@ StaticDateTimePicker.propTypes = {
|
|
|
238
238
|
* @param {TValue} value The value that was just accepted.
|
|
239
239
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
240
240
|
* - `validationError`: validation result of the current value
|
|
241
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
241
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
242
242
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
243
243
|
*/
|
|
244
244
|
onAccept: _propTypes.default.func,
|
|
@@ -141,7 +141,7 @@ StaticTimePicker.propTypes = {
|
|
|
141
141
|
* @param {TValue} value The value that was just accepted.
|
|
142
142
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
143
143
|
* - `validationError`: validation result of the current value
|
|
144
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
144
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
145
145
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
146
146
|
*/
|
|
147
147
|
onAccept: _propTypes.default.func,
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -173,7 +173,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
|
|
|
173
173
|
* @param {TValue} value The value that was just accepted.
|
|
174
174
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
175
175
|
* - `validationError`: validation result of the current value
|
|
176
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
176
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
177
177
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
178
178
|
*/
|
|
179
179
|
onAccept: _propTypes.default.func,
|
|
@@ -178,7 +178,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
178
178
|
* @param {TValue} value The value that was just accepted.
|
|
179
179
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
180
180
|
* - `validationError`: validation result of the current value
|
|
181
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
181
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
182
182
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
183
183
|
*/
|
|
184
184
|
onAccept: PropTypes.func,
|
|
@@ -216,7 +216,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
216
216
|
* @param {TValue} value The value that was just accepted.
|
|
217
217
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
218
218
|
* - `validationError`: validation result of the current value
|
|
219
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
219
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
220
220
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
221
221
|
*/
|
|
222
222
|
onAccept: PropTypes.func,
|
|
@@ -189,7 +189,7 @@ DesktopDatePicker.propTypes = {
|
|
|
189
189
|
* @param {TValue} value The value that was just accepted.
|
|
190
190
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
191
191
|
* - `validationError`: validation result of the current value
|
|
192
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
192
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
193
193
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
194
194
|
*/
|
|
195
195
|
onAccept: PropTypes.func,
|
|
@@ -311,7 +311,7 @@ DesktopDateTimePicker.propTypes = {
|
|
|
311
311
|
* @param {TValue} value The value that was just accepted.
|
|
312
312
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
313
313
|
* - `validationError`: validation result of the current value
|
|
314
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
314
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
315
315
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
316
316
|
*/
|
|
317
317
|
onAccept: PropTypes.func,
|
|
@@ -193,7 +193,7 @@ DesktopTimePicker.propTypes = {
|
|
|
193
193
|
* @param {TValue} value The value that was just accepted.
|
|
194
194
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
195
195
|
* - `validationError`: validation result of the current value
|
|
196
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
196
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
197
197
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
198
198
|
*/
|
|
199
199
|
onAccept: PropTypes.func,
|
|
@@ -187,7 +187,7 @@ MobileDatePicker.propTypes = {
|
|
|
187
187
|
* @param {TValue} value The value that was just accepted.
|
|
188
188
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
189
189
|
* - `validationError`: validation result of the current value
|
|
190
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
190
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
191
191
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
192
192
|
*/
|
|
193
193
|
onAccept: PropTypes.func,
|
|
@@ -277,7 +277,7 @@ MobileDateTimePicker.propTypes = {
|
|
|
277
277
|
* @param {TValue} value The value that was just accepted.
|
|
278
278
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
279
279
|
* - `validationError`: validation result of the current value
|
|
280
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
280
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
281
281
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
282
282
|
*/
|
|
283
283
|
onAccept: PropTypes.func,
|
|
@@ -178,7 +178,7 @@ MobileTimePicker.propTypes = {
|
|
|
178
178
|
* @param {TValue} value The value that was just accepted.
|
|
179
179
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
180
180
|
* - `validationError`: validation result of the current value
|
|
181
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
181
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
182
182
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
183
183
|
*/
|
|
184
184
|
onAccept: PropTypes.func,
|
|
@@ -104,7 +104,7 @@ const overridesResolver = (props, styles) => {
|
|
|
104
104
|
const {
|
|
105
105
|
ownerState
|
|
106
106
|
} = props;
|
|
107
|
-
return [styles.root, !ownerState.disableMargin && styles.dayWithMargin, !ownerState.disableHighlightToday && ownerState.isDayCurrent && styles.today,
|
|
107
|
+
return [styles.root, !ownerState.disableMargin && styles.dayWithMargin, !ownerState.disableHighlightToday && ownerState.isDayCurrent && styles.today, ownerState.isDayOutsideMonth && ownerState.showDaysOutsideCurrentMonth && styles.dayOutsideMonth, ownerState.isDayOutsideMonth && !ownerState.showDaysOutsideCurrentMonth && styles.hiddenDaySpacingFiller];
|
|
108
108
|
};
|
|
109
109
|
const PickersDayRoot = styled(ButtonBase, {
|
|
110
110
|
name: 'MuiPickersDay',
|
|
@@ -31,13 +31,17 @@ const OutlineRoot = styled('fieldset', {
|
|
|
31
31
|
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
|
-
const OutlineLabel = styled('span'
|
|
34
|
+
const OutlineLabel = styled('span', {
|
|
35
|
+
slot: 'internal',
|
|
36
|
+
shouldForwardProp: undefined
|
|
37
|
+
})(({
|
|
35
38
|
theme
|
|
36
39
|
}) => ({
|
|
37
40
|
fontFamily: theme.typography.fontFamily,
|
|
38
41
|
fontSize: 'inherit'
|
|
39
42
|
}));
|
|
40
43
|
const OutlineLegend = styled('legend', {
|
|
44
|
+
slot: 'internal',
|
|
41
45
|
shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'notched'
|
|
42
46
|
})(({
|
|
43
47
|
theme
|
|
@@ -144,7 +144,7 @@ StaticDatePicker.propTypes = {
|
|
|
144
144
|
* @param {TValue} value The value that was just accepted.
|
|
145
145
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
146
146
|
* - `validationError`: validation result of the current value
|
|
147
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
147
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
148
148
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
149
149
|
*/
|
|
150
150
|
onAccept: PropTypes.func,
|
|
@@ -231,7 +231,7 @@ StaticDateTimePicker.propTypes = {
|
|
|
231
231
|
* @param {TValue} value The value that was just accepted.
|
|
232
232
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
233
233
|
* - `validationError`: validation result of the current value
|
|
234
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
234
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
235
235
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
236
236
|
*/
|
|
237
237
|
onAccept: PropTypes.func,
|
|
@@ -134,7 +134,7 @@ StaticTimePicker.propTypes = {
|
|
|
134
134
|
* @param {TValue} value The value that was just accepted.
|
|
135
135
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
136
136
|
* - `validationError`: validation result of the current value
|
|
137
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
137
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
138
138
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
139
139
|
*/
|
|
140
140
|
onAccept: PropTypes.func,
|
|
@@ -166,7 +166,7 @@ process.env.NODE_ENV !== "production" ? TimePicker.propTypes = {
|
|
|
166
166
|
* @param {TValue} value The value that was just accepted.
|
|
167
167
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
168
168
|
* - `validationError`: validation result of the current value
|
|
169
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
169
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
170
170
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
171
171
|
*/
|
|
172
172
|
onAccept: PropTypes.func,
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("react").ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { styled } from '@mui/material/styles';
|
|
2
2
|
import { DIALOG_WIDTH, VIEW_HEIGHT } from "../../constants/dimensions.js";
|
|
3
|
-
export const PickerViewRoot = styled('div'
|
|
3
|
+
export const PickerViewRoot = styled('div', {
|
|
4
|
+
slot: 'internal',
|
|
5
|
+
shouldForwardProp: undefined
|
|
6
|
+
})({
|
|
4
7
|
overflow: 'hidden',
|
|
5
8
|
width: DIALOG_WIDTH,
|
|
6
9
|
maxHeight: VIEW_HEIGHT,
|
|
@@ -8,7 +8,9 @@ import { DIALOG_WIDTH } from "../constants/dimensions.js";
|
|
|
8
8
|
import { usePickerContext } from "../../hooks/index.js";
|
|
9
9
|
import { usePickerPrivateContext } from "../hooks/usePickerPrivateContext.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const PickersModalDialogRoot = styled(MuiDialog
|
|
11
|
+
const PickersModalDialogRoot = styled(MuiDialog, {
|
|
12
|
+
slot: 'internal'
|
|
13
|
+
})({
|
|
12
14
|
[`& .${dialogClasses.container}`]: {
|
|
13
15
|
outline: 0
|
|
14
16
|
},
|
|
@@ -17,7 +19,9 @@ const PickersModalDialogRoot = styled(MuiDialog)({
|
|
|
17
19
|
minWidth: DIALOG_WIDTH
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
|
-
const PickersModalDialogContent = styled(DialogContent
|
|
22
|
+
const PickersModalDialogContent = styled(DialogContent, {
|
|
23
|
+
slot: 'internal'
|
|
24
|
+
})({
|
|
21
25
|
'&:first-of-type': {
|
|
22
26
|
padding: 0
|
|
23
27
|
}
|
|
@@ -41,7 +41,7 @@ export interface UsePickerBaseProps<TValue extends PickerValidValue, TView exten
|
|
|
41
41
|
* @param {TValue} value The value that was just accepted.
|
|
42
42
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
43
43
|
* - `validationError`: validation result of the current value
|
|
44
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
44
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
45
45
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
46
46
|
*/
|
|
47
47
|
onAccept?: (value: TValue, context: PickerChangeHandlerContext<TError>) => void;
|
|
@@ -10,7 +10,9 @@ import { DIALOG_WIDTH } from "../../constants/dimensions.js";
|
|
|
10
10
|
import { mergeSx } from "../../utils/utils.js";
|
|
11
11
|
import { createNonRangePickerStepNavigation } from "../../utils/createNonRangePickerStepNavigation.js";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const PickerStaticLayout = styled(PickersLayout
|
|
13
|
+
const PickerStaticLayout = styled(PickersLayout, {
|
|
14
|
+
slot: 'internal'
|
|
15
|
+
})(({
|
|
14
16
|
theme
|
|
15
17
|
}) => ({
|
|
16
18
|
overflow: 'hidden',
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1
|
+
export declare const PickerViewRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement> | keyof import("react").ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.PickerViewRoot = void 0;
|
|
7
7
|
var _styles = require("@mui/material/styles");
|
|
8
8
|
var _dimensions = require("../../constants/dimensions");
|
|
9
|
-
const PickerViewRoot = exports.PickerViewRoot = (0, _styles.styled)('div'
|
|
9
|
+
const PickerViewRoot = exports.PickerViewRoot = (0, _styles.styled)('div', {
|
|
10
|
+
slot: 'internal',
|
|
11
|
+
shouldForwardProp: undefined
|
|
12
|
+
})({
|
|
10
13
|
overflow: 'hidden',
|
|
11
14
|
width: _dimensions.DIALOG_WIDTH,
|
|
12
15
|
maxHeight: _dimensions.VIEW_HEIGHT,
|
|
@@ -16,7 +16,9 @@ var _dimensions = require("../constants/dimensions");
|
|
|
16
16
|
var _hooks = require("../../hooks");
|
|
17
17
|
var _usePickerPrivateContext = require("../hooks/usePickerPrivateContext");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
const PickersModalDialogRoot = (0, _styles.styled)(_Dialog.default
|
|
19
|
+
const PickersModalDialogRoot = (0, _styles.styled)(_Dialog.default, {
|
|
20
|
+
slot: 'internal'
|
|
21
|
+
})({
|
|
20
22
|
[`& .${_Dialog.dialogClasses.container}`]: {
|
|
21
23
|
outline: 0
|
|
22
24
|
},
|
|
@@ -25,7 +27,9 @@ const PickersModalDialogRoot = (0, _styles.styled)(_Dialog.default)({
|
|
|
25
27
|
minWidth: _dimensions.DIALOG_WIDTH
|
|
26
28
|
}
|
|
27
29
|
});
|
|
28
|
-
const PickersModalDialogContent = (0, _styles.styled)(_DialogContent.default
|
|
30
|
+
const PickersModalDialogContent = (0, _styles.styled)(_DialogContent.default, {
|
|
31
|
+
slot: 'internal'
|
|
32
|
+
})({
|
|
29
33
|
'&:first-of-type': {
|
|
30
34
|
padding: 0
|
|
31
35
|
}
|
|
@@ -41,7 +41,7 @@ export interface UsePickerBaseProps<TValue extends PickerValidValue, TView exten
|
|
|
41
41
|
* @param {TValue} value The value that was just accepted.
|
|
42
42
|
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
43
43
|
* - `validationError`: validation result of the current value
|
|
44
|
-
* - `source`: source of the acceptance. One of 'field' | '
|
|
44
|
+
* - `source`: source of the acceptance. One of 'field' | 'view' | 'unknown'
|
|
45
45
|
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
46
46
|
*/
|
|
47
47
|
onAccept?: (value: TValue, context: PickerChangeHandlerContext<TError>) => void;
|
|
@@ -17,7 +17,9 @@ var _utils = require("../../utils/utils");
|
|
|
17
17
|
var _createNonRangePickerStepNavigation = require("../../utils/createNonRangePickerStepNavigation");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const _excluded = ["props", "steps"];
|
|
20
|
-
const PickerStaticLayout = (0, _styles.styled)(_PickersLayout.PickersLayout
|
|
20
|
+
const PickerStaticLayout = (0, _styles.styled)(_PickersLayout.PickersLayout, {
|
|
21
|
+
slot: 'internal'
|
|
22
|
+
})(({
|
|
21
23
|
theme
|
|
22
24
|
}) => ({
|
|
23
25
|
overflow: 'hidden',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.24.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of the MUI X Date and Time Picker components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-internals": "8.
|
|
42
|
+
"@mui/x-internals": "8.24.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|