@mui/x-date-pickers-pro 7.22.3 → 7.23.1

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 (24) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/DateRangeCalendar/DateRangeCalendar.js +1 -0
  3. package/README.md +3 -3
  4. package/index.js +1 -1
  5. package/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
  6. package/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +2 -0
  7. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +2 -0
  8. package/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +3 -1
  9. package/internals/utils/releaseInfo.js +1 -1
  10. package/modern/DateRangeCalendar/DateRangeCalendar.js +1 -0
  11. package/modern/index.js +1 -1
  12. package/modern/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
  13. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +2 -0
  14. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +2 -0
  15. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +3 -1
  16. package/modern/internals/utils/releaseInfo.js +1 -1
  17. package/node/DateRangeCalendar/DateRangeCalendar.js +1 -0
  18. package/node/index.js +1 -1
  19. package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
  20. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +2 -0
  21. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +2 -0
  22. package/node/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +3 -1
  23. package/node/internals/utils/releaseInfo.js +1 -1
  24. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,166 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.23.1
7
+
8
+ _Dec 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve German locale on the Data Grid component
13
+ - 🐞 Bugfixes
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @lhilgert9.
17
+
18
+ Following are all team members who have contributed to this release:
19
+ @arthurbalduini, @cherniavskii, @flaviendelangle, @JCQuintas, @LukasTy and @MBilalShafi.
20
+
21
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@7.23.1`
26
+
27
+ - [DataGrid] Make column autosizing work with flex columns (#15712) @cherniavskii
28
+ - [l10n] Improve German (de-DE) locale (#15641) @lhilgert9
29
+
30
+ #### `@mui/x-data-grid-pro@7.23.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@7.23.1`, plus:
33
+
34
+ - [DataGridPro] Cleanup pinned rows on removal (#15702) @cherniavskii
35
+
36
+ #### `@mui/x-data-grid-premium@7.23.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
37
+
38
+ Same changes as in `@mui/x-data-grid-pro@7.23.1`.
39
+
40
+ ### Date and Time Pickers
41
+
42
+ #### `@mui/x-date-pickers@7.23.1`
43
+
44
+ - [TimePicker] Prevent mouse events after `touchend` event (#15430) @arthurbalduini
45
+
46
+ #### `@mui/x-date-pickers-pro@7.23.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@7.23.1`.
49
+
50
+ ### Charts
51
+
52
+ #### `@mui/x-charts@7.23.1`
53
+
54
+ - [charts] Improve SVG `pattern` and `gradient` support (#15724) @JCQuintas
55
+
56
+ #### `@mui/x-charts-pro@7.23.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
57
+
58
+ Same changes as in `@mui/x-charts@7.23.1`.
59
+
60
+ ### Docs
61
+
62
+ - [docs] Fix Pickers theme augmentation example (#15675) @LukasTy
63
+ - [docs] Remove duplicated warning (#15715) @cherniavskii
64
+ - [test] Force hover in headless Chrome (#15711) @cherniavskii
65
+ - [docs-infra] Bump `@mui/internal-markdown` to support nested demo imports (#15738) @alexfauquette
66
+ - [docs] Improve SEO titles for the Data Grid (#15695) @MBilalShafi
67
+
68
+ ### Core
69
+
70
+ - [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
71
+
72
+ ## 7.23.0
73
+
74
+ _Nov 29, 2024_
75
+
76
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
77
+
78
+ - ✨ Support for a new display mode on the Data Grid with the [List View feature](https://mui.com/x/react-data-grid/list-view/), offering an extremely flexible way to render datasets and enabling developers to adapt how data is displayed across different screen sizes.
79
+
80
+ https://github.com/user-attachments/assets/61286adc-03fc-4323-9739-8ca726fcc16c
81
+
82
+ - ⚛️ React 19 support
83
+ - 📚 Documentation improvements
84
+ - 🌍 Improve Spanish, Portuguese, Chinese locales on the Data Grid component.
85
+ - 🌍 Improve Dutch locale on the Date and Time Picker components.
86
+ - 🐞 Bugfixes
87
+
88
+ Special thanks go out to the community contributors who have helped make this release possible:
89
+ @dloeda, @headironc, @mathzdev, @nphmuller, @lhilgert9, @lauri865.
90
+ Following are all team members who have contributed to this release:
91
+ @oliviertassinari, @arminmeh, @KenanYusuf, @flaviendelangle, @MBilalShafi.
92
+
93
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
94
+
95
+ ### Data Grid
96
+
97
+ #### `@mui/x-data-grid@v7.23.0`
98
+
99
+ - [DataGrid] React 19 support (#15557) @arminmeh
100
+ - [DataGrid] Change test dom check from `/jsdom/` to `/jsdom|HappyDOM/`. (#15642) @jedesroches
101
+ - [DataGrid] Fix last separator not being hidden when grid is scrollable (#15551) @KenanYusuf
102
+ - [DataGrid] Fix order of spread props on toolbar items (#15556) @KenanYusuf
103
+ - [DataGrid] Fix row-spanning in combination with column-pinning (#15460) @lhilgert9
104
+ - [DataGrid] Improve resize performance (#15592) @lauri865
105
+ - [DataGrid] Support column virtualization with dynamic row height (#15567) @cherniavskii
106
+ - [DataGrid] Improve `GridCell` performance (#15621) @lauri865
107
+ - [l10n] Improve Chinese (zh-CN) locale (#15570) @headironc
108
+ - [l10n] Improve Portuguese (pt-PT) locale (#15561) @mathzdev
109
+
110
+ #### `@mui/x-data-grid-pro@v7.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
111
+
112
+ Same changes as in `@mui/x-data-grid@v7.23.0`, plus:
113
+
114
+ - [DataGridPro] Fix header filtering with `boolean` column type (#15640) @k-rajat19
115
+ - [DataGridPro] Fix pagination state not updating if the data source response has no rows (#15643) @zinoroman
116
+ - [DataGridPro] Fix selection propagation issue on initialization (#15593) @MBilalShafi
117
+
118
+ #### `@mui/x-data-grid-premium@v7.23.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
119
+
120
+ Same changes as in `@mui/x-data-grid-pro@v7.23.0`.
121
+
122
+ ### Date and Time Pickers
123
+
124
+ #### `@mui/x-date-pickers@v7.23.0`
125
+
126
+ - [pickers] React 19 support (#15557) @arminmeh
127
+ - [pickers] Fix DST issue with `America/Asuncion` timezone and `AdapterMoment` (#15653) @flaviendelangle
128
+ - [pickers] Use `props.referenceDate` timezone when `props.value` and `props.defaultValue` are not defined (#15544) @flaviendelangle
129
+ - [l10n] Improve Dutch (nl-NL) locale (#15564) @nphmuller
130
+
131
+ #### `@mui/x-date-pickers-pro@v7.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
132
+
133
+ Same changes as in `@mui/x-date-pickers@v7.23.0`.
134
+
135
+ ### Charts
136
+
137
+ #### `@mui/x-charts@v7.23.0`
138
+
139
+ - [charts] React 19 support (#15557) @arminmeh
140
+ - [charts] Prevent invalid `releasePointerCapture` (#15609) @alexfauquette
141
+
142
+ #### `@mui/x-charts-pro@v7.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
143
+
144
+ Same changes as in `@mui/x-charts@v7.23.0`.
145
+
146
+ ### Tree View
147
+
148
+ #### `@mui/x-tree-view@v7.23.0`
149
+
150
+ - [TreeView] React 19 support (#15557) @arminmeh
151
+
152
+ #### `@mui/x-tree-view-pro@7.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
153
+
154
+ Same changes as in `@mui/x-tree-view@7.23.0`.
155
+
156
+ ### Docs
157
+
158
+ - [docs] Add data caching to lazy loaded detail panel demo (#15555) @cherniavskii
159
+ - [docs] Remove selectors section from list view docs (#15639) @KenanYusuf
160
+ - [docs] Add documentation for the list view feature (#15344) @KenanYusuf
161
+
162
+ ### Core
163
+
164
+ - [core] Update @mui/monorepo (#15574) @oliviertassinari
165
+
6
166
  ## 7.22.3
7
167
 
8
168
  _Nov 21, 2024_
@@ -172,6 +172,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
172
172
  name: 'DateRangeCalendar',
173
173
  timezone: timezoneProp,
174
174
  value: valueProp,
175
+ referenceDate,
175
176
  defaultValue,
176
177
  onChange,
177
178
  valueManager: rangeValueManager
package/README.md CHANGED
@@ -34,9 +34,9 @@ This component has the following peer dependencies that you will need to install
34
34
 
35
35
  ```json
36
36
  "peerDependencies": {
37
- "@mui/material": "^5.15.14",
38
- "react": "^17.0.0 || ^18.0.0",
39
- "react-dom": "^17.0.0 || ^18.0.0"
37
+ "@mui/material": "^5.15.14 || ^6.0.0",
38
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
39
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
40
40
  },
41
41
  ```
42
42
 
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.22.3
2
+ * @mui/x-date-pickers-pro v7.23.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -33,7 +33,7 @@ const useMultiInputFieldSlotProps = ({
33
33
  const handleEndFieldRef = useForkRef(fieldProps.unstableEndFieldRef, endFieldRef);
34
34
  const previousRangePosition = React.useRef(rangePosition);
35
35
  React.useEffect(() => {
36
- if (!open) {
36
+ if (!open || wrapperVariant === 'mobile') {
37
37
  return;
38
38
  }
39
39
  const currentFieldRef = rangePosition === 'start' ? startFieldRef : endFieldRef;
@@ -49,7 +49,7 @@ const useMultiInputFieldSlotProps = ({
49
49
  // use the current view or `0` when the range position has just been swapped
50
50
  previousRangePosition.current === rangePosition ? currentView : 0);
51
51
  previousRangePosition.current = rangePosition;
52
- }, [rangePosition, open, currentView, startFieldRef, endFieldRef]);
52
+ }, [rangePosition, open, currentView, startFieldRef, endFieldRef, wrapperVariant]);
53
53
  const openRangeStartSelection = event => {
54
54
  event.stopPropagation();
55
55
  onRangePositionChange('start');
@@ -166,7 +166,7 @@ const useSingleInputFieldSlotProps = ({
166
166
  }) => {
167
167
  const handleFieldRef = useForkRef(fieldProps.unstableFieldRef, startFieldRef, endFieldRef);
168
168
  React.useEffect(() => {
169
- if (!open || !startFieldRef.current) {
169
+ if (!open || !startFieldRef.current || wrapperVariant === 'mobile') {
170
170
  return;
171
171
  }
172
172
  if (startFieldRef.current.isFieldFocused()) {
@@ -179,7 +179,7 @@ const useSingleInputFieldSlotProps = ({
179
179
  const newSelectedSection = rangePosition === 'start' ? sections.indexOf(currentView) : sections.lastIndexOf(currentView);
180
180
  startFieldRef.current?.focusField(newSelectedSection);
181
181
  }
182
- }, [rangePosition, open, currentView, startFieldRef]);
182
+ }, [rangePosition, open, currentView, startFieldRef, wrapperVariant]);
183
183
  const updateRangePosition = () => {
184
184
  if (!startFieldRef.current?.isFieldFocused()) {
185
185
  return;
@@ -18,6 +18,7 @@ export const useMultiInputDateRangeField = ({
18
18
  const {
19
19
  value: valueProp,
20
20
  defaultValue,
21
+ referenceDate,
21
22
  format,
22
23
  formatDensity,
23
24
  shouldRespectLeadingZeros,
@@ -39,6 +40,7 @@ export const useMultiInputDateRangeField = ({
39
40
  timezone: timezoneProp,
40
41
  value: valueProp,
41
42
  defaultValue,
43
+ referenceDate,
42
44
  onChange,
43
45
  valueManager: rangeValueManager
44
46
  });
@@ -18,6 +18,7 @@ export const useMultiInputDateTimeRangeField = ({
18
18
  const {
19
19
  value: valueProp,
20
20
  defaultValue,
21
+ referenceDate,
21
22
  format,
22
23
  formatDensity,
23
24
  shouldRespectLeadingZeros,
@@ -39,6 +40,7 @@ export const useMultiInputDateTimeRangeField = ({
39
40
  timezone: timezoneProp,
40
41
  value: valueProp,
41
42
  defaultValue,
43
+ referenceDate,
42
44
  onChange,
43
45
  valueManager: rangeValueManager
44
46
  });
@@ -18,6 +18,7 @@ export const useMultiInputTimeRangeField = ({
18
18
  const {
19
19
  value: valueProp,
20
20
  defaultValue,
21
+ referenceDate,
21
22
  format,
22
23
  formatDensity,
23
24
  shouldRespectLeadingZeros,
@@ -40,7 +41,8 @@ export const useMultiInputTimeRangeField = ({
40
41
  value: valueProp,
41
42
  defaultValue,
42
43
  onChange,
43
- valueManager: rangeValueManager
44
+ valueManager: rangeValueManager,
45
+ referenceDate
44
46
  });
45
47
  const {
46
48
  validationError,
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczMjE0MzYwMDAwMA==";
3
+ const releaseInfo = "MTczMzM1MzIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -172,6 +172,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
172
172
  name: 'DateRangeCalendar',
173
173
  timezone: timezoneProp,
174
174
  value: valueProp,
175
+ referenceDate,
175
176
  defaultValue,
176
177
  onChange,
177
178
  valueManager: rangeValueManager
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.22.3
2
+ * @mui/x-date-pickers-pro v7.23.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -33,7 +33,7 @@ const useMultiInputFieldSlotProps = ({
33
33
  const handleEndFieldRef = useForkRef(fieldProps.unstableEndFieldRef, endFieldRef);
34
34
  const previousRangePosition = React.useRef(rangePosition);
35
35
  React.useEffect(() => {
36
- if (!open) {
36
+ if (!open || wrapperVariant === 'mobile') {
37
37
  return;
38
38
  }
39
39
  const currentFieldRef = rangePosition === 'start' ? startFieldRef : endFieldRef;
@@ -49,7 +49,7 @@ const useMultiInputFieldSlotProps = ({
49
49
  // use the current view or `0` when the range position has just been swapped
50
50
  previousRangePosition.current === rangePosition ? currentView : 0);
51
51
  previousRangePosition.current = rangePosition;
52
- }, [rangePosition, open, currentView, startFieldRef, endFieldRef]);
52
+ }, [rangePosition, open, currentView, startFieldRef, endFieldRef, wrapperVariant]);
53
53
  const openRangeStartSelection = event => {
54
54
  event.stopPropagation();
55
55
  onRangePositionChange('start');
@@ -166,7 +166,7 @@ const useSingleInputFieldSlotProps = ({
166
166
  }) => {
167
167
  const handleFieldRef = useForkRef(fieldProps.unstableFieldRef, startFieldRef, endFieldRef);
168
168
  React.useEffect(() => {
169
- if (!open || !startFieldRef.current) {
169
+ if (!open || !startFieldRef.current || wrapperVariant === 'mobile') {
170
170
  return;
171
171
  }
172
172
  if (startFieldRef.current.isFieldFocused()) {
@@ -179,7 +179,7 @@ const useSingleInputFieldSlotProps = ({
179
179
  const newSelectedSection = rangePosition === 'start' ? sections.indexOf(currentView) : sections.lastIndexOf(currentView);
180
180
  startFieldRef.current?.focusField(newSelectedSection);
181
181
  }
182
- }, [rangePosition, open, currentView, startFieldRef]);
182
+ }, [rangePosition, open, currentView, startFieldRef, wrapperVariant]);
183
183
  const updateRangePosition = () => {
184
184
  if (!startFieldRef.current?.isFieldFocused()) {
185
185
  return;
@@ -18,6 +18,7 @@ export const useMultiInputDateRangeField = ({
18
18
  const {
19
19
  value: valueProp,
20
20
  defaultValue,
21
+ referenceDate,
21
22
  format,
22
23
  formatDensity,
23
24
  shouldRespectLeadingZeros,
@@ -39,6 +40,7 @@ export const useMultiInputDateRangeField = ({
39
40
  timezone: timezoneProp,
40
41
  value: valueProp,
41
42
  defaultValue,
43
+ referenceDate,
42
44
  onChange,
43
45
  valueManager: rangeValueManager
44
46
  });
@@ -18,6 +18,7 @@ export const useMultiInputDateTimeRangeField = ({
18
18
  const {
19
19
  value: valueProp,
20
20
  defaultValue,
21
+ referenceDate,
21
22
  format,
22
23
  formatDensity,
23
24
  shouldRespectLeadingZeros,
@@ -39,6 +40,7 @@ export const useMultiInputDateTimeRangeField = ({
39
40
  timezone: timezoneProp,
40
41
  value: valueProp,
41
42
  defaultValue,
43
+ referenceDate,
42
44
  onChange,
43
45
  valueManager: rangeValueManager
44
46
  });
@@ -18,6 +18,7 @@ export const useMultiInputTimeRangeField = ({
18
18
  const {
19
19
  value: valueProp,
20
20
  defaultValue,
21
+ referenceDate,
21
22
  format,
22
23
  formatDensity,
23
24
  shouldRespectLeadingZeros,
@@ -40,7 +41,8 @@ export const useMultiInputTimeRangeField = ({
40
41
  value: valueProp,
41
42
  defaultValue,
42
43
  onChange,
43
- valueManager: rangeValueManager
44
+ valueManager: rangeValueManager,
45
+ referenceDate
44
46
  });
45
47
  const {
46
48
  validationError,
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczMjE0MzYwMDAwMA==";
3
+ const releaseInfo = "MTczMzM1MzIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -179,6 +179,7 @@ const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forward
179
179
  name: 'DateRangeCalendar',
180
180
  timezone: timezoneProp,
181
181
  value: valueProp,
182
+ referenceDate,
182
183
  defaultValue,
183
184
  onChange,
184
185
  valueManager: _valueManagers.rangeValueManager
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.22.3
2
+ * @mui/x-date-pickers-pro v7.23.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -41,7 +41,7 @@ const useMultiInputFieldSlotProps = ({
41
41
  const handleEndFieldRef = (0, _useForkRef.default)(fieldProps.unstableEndFieldRef, endFieldRef);
42
42
  const previousRangePosition = React.useRef(rangePosition);
43
43
  React.useEffect(() => {
44
- if (!open) {
44
+ if (!open || wrapperVariant === 'mobile') {
45
45
  return;
46
46
  }
47
47
  const currentFieldRef = rangePosition === 'start' ? startFieldRef : endFieldRef;
@@ -57,7 +57,7 @@ const useMultiInputFieldSlotProps = ({
57
57
  // use the current view or `0` when the range position has just been swapped
58
58
  previousRangePosition.current === rangePosition ? currentView : 0);
59
59
  previousRangePosition.current = rangePosition;
60
- }, [rangePosition, open, currentView, startFieldRef, endFieldRef]);
60
+ }, [rangePosition, open, currentView, startFieldRef, endFieldRef, wrapperVariant]);
61
61
  const openRangeStartSelection = event => {
62
62
  event.stopPropagation();
63
63
  onRangePositionChange('start');
@@ -174,7 +174,7 @@ const useSingleInputFieldSlotProps = ({
174
174
  }) => {
175
175
  const handleFieldRef = (0, _useForkRef.default)(fieldProps.unstableFieldRef, startFieldRef, endFieldRef);
176
176
  React.useEffect(() => {
177
- if (!open || !startFieldRef.current) {
177
+ if (!open || !startFieldRef.current || wrapperVariant === 'mobile') {
178
178
  return;
179
179
  }
180
180
  if (startFieldRef.current.isFieldFocused()) {
@@ -187,7 +187,7 @@ const useSingleInputFieldSlotProps = ({
187
187
  const newSelectedSection = rangePosition === 'start' ? sections.indexOf(currentView) : sections.lastIndexOf(currentView);
188
188
  startFieldRef.current?.focusField(newSelectedSection);
189
189
  }
190
- }, [rangePosition, open, currentView, startFieldRef]);
190
+ }, [rangePosition, open, currentView, startFieldRef, wrapperVariant]);
191
191
  const updateRangePosition = () => {
192
192
  if (!startFieldRef.current?.isFieldFocused()) {
193
193
  return;
@@ -25,6 +25,7 @@ const useMultiInputDateRangeField = ({
25
25
  const {
26
26
  value: valueProp,
27
27
  defaultValue,
28
+ referenceDate,
28
29
  format,
29
30
  formatDensity,
30
31
  shouldRespectLeadingZeros,
@@ -46,6 +47,7 @@ const useMultiInputDateRangeField = ({
46
47
  timezone: timezoneProp,
47
48
  value: valueProp,
48
49
  defaultValue,
50
+ referenceDate,
49
51
  onChange,
50
52
  valueManager: _valueManagers.rangeValueManager
51
53
  });
@@ -25,6 +25,7 @@ const useMultiInputDateTimeRangeField = ({
25
25
  const {
26
26
  value: valueProp,
27
27
  defaultValue,
28
+ referenceDate,
28
29
  format,
29
30
  formatDensity,
30
31
  shouldRespectLeadingZeros,
@@ -46,6 +47,7 @@ const useMultiInputDateTimeRangeField = ({
46
47
  timezone: timezoneProp,
47
48
  value: valueProp,
48
49
  defaultValue,
50
+ referenceDate,
49
51
  onChange,
50
52
  valueManager: _valueManagers.rangeValueManager
51
53
  });
@@ -25,6 +25,7 @@ const useMultiInputTimeRangeField = ({
25
25
  const {
26
26
  value: valueProp,
27
27
  defaultValue,
28
+ referenceDate,
28
29
  format,
29
30
  formatDensity,
30
31
  shouldRespectLeadingZeros,
@@ -47,7 +48,8 @@ const useMultiInputTimeRangeField = ({
47
48
  value: valueProp,
48
49
  defaultValue,
49
50
  onChange,
50
- valueManager: _valueManagers.rangeValueManager
51
+ valueManager: _valueManagers.rangeValueManager,
52
+ referenceDate
51
53
  });
52
54
  const {
53
55
  validationError,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTczMjE0MzYwMDAwMA==";
9
+ const releaseInfo = "MTczMzM1MzIwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "7.22.3",
3
+ "version": "7.23.1",
4
4
  "description": "The Pro plan edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -37,9 +37,9 @@
37
37
  "clsx": "^2.1.1",
38
38
  "prop-types": "^15.8.1",
39
39
  "react-transition-group": "^4.4.5",
40
- "@mui/x-date-pickers": "7.22.3",
41
- "@mui/x-internals": "7.21.0",
42
- "@mui/x-license": "7.21.0"
40
+ "@mui/x-internals": "7.23.0",
41
+ "@mui/x-license": "7.23.0",
42
+ "@mui/x-date-pickers": "7.23.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",
@@ -53,8 +53,8 @@
53
53
  "moment": "^2.29.4",
54
54
  "moment-hijri": "^2.1.2 || ^3.0.0",
55
55
  "moment-jalaali": "^0.7.4 || ^0.8.0 || ^0.9.0 || ^0.10.0",
56
- "react": "^17.0.0 || ^18.0.0",
57
- "react-dom": "^17.0.0 || ^18.0.0"
56
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
57
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@emotion/react": {