@mui/x-date-pickers-pro 6.13.0 → 6.14.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +79 -1
  2. package/DateRangePicker/DateRangePicker.js +2 -3
  3. package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -3
  4. package/MobileDateRangePicker/MobileDateRangePicker.js +2 -3
  5. package/README.md +4 -4
  6. package/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -3
  7. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -3
  8. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -3
  9. package/index.js +1 -1
  10. package/internals/utils/releaseInfo.js +1 -1
  11. package/legacy/DateRangePicker/DateRangePicker.js +2 -3
  12. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -3
  13. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -3
  14. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -3
  15. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -3
  16. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -3
  17. package/legacy/index.js +1 -1
  18. package/legacy/internals/utils/releaseInfo.js +1 -1
  19. package/modern/DateRangePicker/DateRangePicker.js +2 -3
  20. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -3
  21. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -3
  22. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -3
  23. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -3
  24. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -3
  25. package/modern/index.js +1 -1
  26. package/modern/internals/utils/releaseInfo.js +1 -1
  27. package/node/DateRangePicker/DateRangePicker.js +2 -3
  28. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -3
  29. package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -3
  30. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -3
  31. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -3
  32. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -3
  33. package/node/index.js +1 -1
  34. package/node/internals/utils/releaseInfo.js +1 -1
  35. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,83 @@
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.14.0
7
+
8
+ _Sep 14, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
13
+
14
+ The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
15
+ If you were relying on the mentioned components having a `button` role for items, you will need to update your usage to expect a `radio` role instead.
16
+
17
+ - 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@6.14.0`
24
+
25
+ - [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
26
+ - [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
27
+ - [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
28
+
29
+ #### `@mui/x-data-grid-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
+
31
+ Same changes as in `@mui/x-data-grid@6.14.0`.
32
+
33
+ #### `@mui/x-data-grid-premium@6.14.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
+
35
+ Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
36
+
37
+ - [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
38
+
39
+ ### Date Pickers
40
+
41
+ #### `@mui/x-date-pickers@6.14.0`
42
+
43
+ - [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
44
+ - [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
45
+
46
+ #### `@mui/x-date-pickers-pro@6.14.0` [![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@6.14.0`.
49
+
50
+ ### Charts / `@mui/x-charts@6.0.0-alpha.11`
51
+
52
+ - [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
53
+ - [charts] Enable `eslint` on the package (#10330) @LukasTy
54
+
55
+ ### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
56
+
57
+ - [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
58
+
59
+ ### Docs
60
+
61
+ - [docs] Add conditional range picker props example (#10227) @LukasTy
62
+ - [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
63
+ - [docs] Avoid the use of "We" @oliviertassinari
64
+ - [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
65
+ - [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
66
+ - [docs] Fix Tree View link to API references (#10282) @oliviertassinari
67
+ - [docs] Fix image layout shift (#10313) @oliviertassinari
68
+ - [docs] Fix link to MUI X from readme logo @oliviertassinari
69
+ - [docs] Fix redirection to Base UI URLs @oliviertassinari
70
+ - [docs] Improve Tree View demos (#10268) @oliviertassinari
71
+ - [docs] Improve docs for ref type props (#10273) @michelengelen
72
+ - [docs] Improve npm package README (#10269) @oliviertassinari
73
+ - [docs] Improve the clarity of the npm links @oliviertassinari
74
+ - [docs] Keep installation readme simple @oliviertassinari
75
+ - [docs] Make each component feel more standalone @oliviertassinari
76
+
77
+ ### Core
78
+
79
+ - [core] Add types extension for clarity @oliviertassinari
80
+ - [core] Set logo height to fix layout shift in GitHub @oliviertassinari
81
+ - [core] TrapFocus was renamed to FocusTrap @oliviertassinari
82
+
6
83
  ## 6.13.0
7
84
 
8
85
  _Sep 8, 2023_
@@ -12,6 +89,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
12
89
  - 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
13
90
 
14
91
  The range picker popup will now be anchored to the first input element and left aligned like other pickers.
92
+
15
93
  - 🌍 Improve Slovak (sk-SK) locale on the data grid
16
94
  - 🐞 Bugfixes
17
95
  - 📚 Documentation improvements
@@ -1838,7 +1916,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1838
1916
  #### Changes
1839
1917
 
1840
1918
  - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
1841
- - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @ivek-Prajapatii
1919
+ - [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
1842
1920
  - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
1843
1921
  - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
1844
1922
  - [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import useMediaQuery from '@mui/material/useMediaQuery';
7
7
  import { useThemeProps } from '@mui/material/styles';
8
+ import { refType } from '@mui/utils';
8
9
  import { DesktopDateRangePicker } from '../DesktopDateRangePicker';
9
10
  import { MobileDateRangePicker } from '../MobileDateRangePicker';
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -162,9 +163,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
162
163
  * Pass a ref to the `input` element.
163
164
  * Ignored if the field has several inputs.
164
165
  */
165
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
166
- current: PropTypes.object
167
- })]),
166
+ inputRef: refType,
168
167
  /**
169
168
  * The label content.
170
169
  * Ignored if the field has several inputs.
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import { resolveComponentProps } from '@mui/base/utils';
6
+ import { refType } from '@mui/utils';
6
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
7
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
8
9
  import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
@@ -171,9 +172,7 @@ DesktopDateRangePicker.propTypes = {
171
172
  * Pass a ref to the `input` element.
172
173
  * Ignored if the field has several inputs.
173
174
  */
174
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
175
- current: PropTypes.object
176
- })]),
175
+ inputRef: refType,
177
176
  /**
178
177
  * The label content.
179
178
  * Ignored if the field has several inputs.
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import { resolveComponentProps } from '@mui/base/utils';
6
+ import { refType } from '@mui/utils';
6
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
7
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
8
9
  import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
@@ -171,9 +172,7 @@ MobileDateRangePicker.propTypes = {
171
172
  * Pass a ref to the `input` element.
172
173
  * Ignored if the field has several inputs.
173
174
  */
174
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
175
- current: PropTypes.object
176
- })]),
175
+ inputRef: refType,
177
176
  /**
178
177
  * The label content.
179
178
  * Ignored if the field has several inputs.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # @mui/x-date-pickers-pro
1
+ # MUI X Date Pickers Pro
2
2
 
3
3
  This package is the commercial edition of the date and time picker components.
4
- It's part of MUI X, an open-core extension of MUI, with advanced components.
4
+ It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
5
5
 
6
6
  ## Installation
7
7
 
@@ -12,7 +12,7 @@ npm install @mui/x-date-pickers-pro
12
12
  ```
13
13
 
14
14
  Then install the date library of your choice (if not already installed).
15
- We currently support 4 different date libraries:
15
+ The pickers currently support the following date libraries:
16
16
 
17
17
  - [date-fns](https://date-fns.org/)
18
18
  - [Day.js](https://day.js.org/)
@@ -62,4 +62,4 @@ function App({ children }) {
62
62
 
63
63
  ## Documentation
64
64
 
65
- [The documentation](https://mui.com/x/react-date-pickers/getting-started/)
65
+ Visit [https://mui.com/x/react-date-pickers/](https://mui.com/x/react-date-pickers/) to view the full documentation.
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputDateRangeField } from './useSingleInputDateRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateRangeField(inProps, ref) {
@@ -176,9 +177,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
176
177
  /**
177
178
  * Pass a ref to the `input` element.
178
179
  */
179
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
180
- current: PropTypes.any.isRequired
181
- })]),
180
+ inputRef: refType,
182
181
  /**
183
182
  * The label content.
184
183
  */
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateTimeRangeField(inProps, ref) {
@@ -186,9 +187,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
186
187
  /**
187
188
  * Pass a ref to the `input` element.
188
189
  */
189
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
190
- current: PropTypes.any.isRequired
191
- })]),
190
+ inputRef: refType,
192
191
  /**
193
192
  * The label content.
194
193
  */
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputTimeRangeField } from './useSingleInputTimeRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputTimeRangeField(inProps, ref) {
@@ -186,9 +187,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
186
187
  /**
187
188
  * Pass a ref to the `input` element.
188
189
  */
189
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
190
- current: PropTypes.any.isRequired
191
- })]),
190
+ inputRef: refType,
192
191
  /**
193
192
  * The label content.
194
193
  */
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.13.0
2
+ * @mui/x-date-pickers-pro v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5NDEyMDQwMDAwMA==";
3
+ const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import useMediaQuery from '@mui/material/useMediaQuery';
7
7
  import { useThemeProps } from '@mui/material/styles';
8
+ import { refType } from '@mui/utils';
8
9
  import { DesktopDateRangePicker } from '../DesktopDateRangePicker';
9
10
  import { MobileDateRangePicker } from '../MobileDateRangePicker';
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -161,9 +162,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
161
162
  * Pass a ref to the `input` element.
162
163
  * Ignored if the field has several inputs.
163
164
  */
164
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
165
- current: PropTypes.object
166
- })]),
165
+ inputRef: refType,
167
166
  /**
168
167
  * The label content.
169
168
  * Ignored if the field has several inputs.
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import { resolveComponentProps } from '@mui/base/utils';
6
+ import { refType } from '@mui/utils';
6
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
7
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
8
9
  import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
@@ -170,9 +171,7 @@ DesktopDateRangePicker.propTypes = {
170
171
  * Pass a ref to the `input` element.
171
172
  * Ignored if the field has several inputs.
172
173
  */
173
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
174
- current: PropTypes.object
175
- })]),
174
+ inputRef: refType,
176
175
  /**
177
176
  * The label content.
178
177
  * Ignored if the field has several inputs.
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import { resolveComponentProps } from '@mui/base/utils';
6
+ import { refType } from '@mui/utils';
6
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
7
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
8
9
  import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
@@ -170,9 +171,7 @@ MobileDateRangePicker.propTypes = {
170
171
  * Pass a ref to the `input` element.
171
172
  * Ignored if the field has several inputs.
172
173
  */
173
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
174
- current: PropTypes.object
175
- })]),
174
+ inputRef: refType,
176
175
  /**
177
176
  * The label content.
178
177
  * Ignored if the field has several inputs.
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputDateRangeField } from './useSingleInputDateRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  var SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateRangeField(inProps, ref) {
@@ -170,9 +171,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
170
171
  /**
171
172
  * Pass a ref to the `input` element.
172
173
  */
173
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
174
- current: PropTypes.any.isRequired
175
- })]),
174
+ inputRef: refType,
176
175
  /**
177
176
  * The label content.
178
177
  */
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  var SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateTimeRangeField(inProps, ref) {
@@ -180,9 +181,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
180
181
  /**
181
182
  * Pass a ref to the `input` element.
182
183
  */
183
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
184
- current: PropTypes.any.isRequired
185
- })]),
184
+ inputRef: refType,
186
185
  /**
187
186
  * The label content.
188
187
  */
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputTimeRangeField } from './useSingleInputTimeRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  var SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputTimeRangeField(inProps, ref) {
@@ -180,9 +181,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
180
181
  /**
181
182
  * Pass a ref to the `input` element.
182
183
  */
183
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
184
- current: PropTypes.any.isRequired
185
- })]),
184
+ inputRef: refType,
186
185
  /**
187
186
  * The label content.
188
187
  */
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.13.0
2
+ * @mui/x-date-pickers-pro v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5NDEyMDQwMDAwMA==";
3
+ var releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import useMediaQuery from '@mui/material/useMediaQuery';
7
7
  import { useThemeProps } from '@mui/material/styles';
8
+ import { refType } from '@mui/utils';
8
9
  import { DesktopDateRangePicker } from '../DesktopDateRangePicker';
9
10
  import { MobileDateRangePicker } from '../MobileDateRangePicker';
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -162,9 +163,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
162
163
  * Pass a ref to the `input` element.
163
164
  * Ignored if the field has several inputs.
164
165
  */
165
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
166
- current: PropTypes.object
167
- })]),
166
+ inputRef: refType,
168
167
  /**
169
168
  * The label content.
170
169
  * Ignored if the field has several inputs.
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import { resolveComponentProps } from '@mui/base/utils';
6
+ import { refType } from '@mui/utils';
6
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
7
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
8
9
  import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
@@ -167,9 +168,7 @@ DesktopDateRangePicker.propTypes = {
167
168
  * Pass a ref to the `input` element.
168
169
  * Ignored if the field has several inputs.
169
170
  */
170
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
171
- current: PropTypes.object
172
- })]),
171
+ inputRef: refType,
173
172
  /**
174
173
  * The label content.
175
174
  * Ignored if the field has several inputs.
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
5
  import { resolveComponentProps } from '@mui/base/utils';
6
+ import { refType } from '@mui/utils';
6
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
7
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
8
9
  import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
@@ -167,9 +168,7 @@ MobileDateRangePicker.propTypes = {
167
168
  * Pass a ref to the `input` element.
168
169
  * Ignored if the field has several inputs.
169
170
  */
170
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
171
- current: PropTypes.object
172
- })]),
171
+ inputRef: refType,
173
172
  /**
174
173
  * The label content.
175
174
  * Ignored if the field has several inputs.
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputDateRangeField } from './useSingleInputDateRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateRangeField(inProps, ref) {
@@ -175,9 +176,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
175
176
  /**
176
177
  * Pass a ref to the `input` element.
177
178
  */
178
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
179
- current: PropTypes.any.isRequired
180
- })]),
179
+ inputRef: refType,
181
180
  /**
182
181
  * The label content.
183
182
  */
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateTimeRangeField(inProps, ref) {
@@ -185,9 +186,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
185
186
  /**
186
187
  * Pass a ref to the `input` element.
187
188
  */
188
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
189
- current: PropTypes.any.isRequired
190
- })]),
189
+ inputRef: refType,
191
190
  /**
192
191
  * The label content.
193
192
  */
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { useSlotProps } from '@mui/base/utils';
11
+ import { refType } from '@mui/utils';
11
12
  import { useSingleInputTimeRangeField } from './useSingleInputTimeRangeField';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
  const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputTimeRangeField(inProps, ref) {
@@ -185,9 +186,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
185
186
  /**
186
187
  * Pass a ref to the `input` element.
187
188
  */
188
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
189
- current: PropTypes.any.isRequired
190
- })]),
189
+ inputRef: refType,
191
190
  /**
192
191
  * The label content.
193
192
  */
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.13.0
2
+ * @mui/x-date-pickers-pro v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5NDEyMDQwMDAwMA==";
3
+ const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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
@@ -11,6 +11,7 @@ var React = _interopRequireWildcard(require("react"));
11
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _useMediaQuery = _interopRequireDefault(require("@mui/material/useMediaQuery"));
13
13
  var _styles = require("@mui/material/styles");
14
+ var _utils = require("@mui/utils");
14
15
  var _DesktopDateRangePicker = require("../DesktopDateRangePicker");
15
16
  var _MobileDateRangePicker = require("../MobileDateRangePicker");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
@@ -172,9 +173,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
172
173
  * Pass a ref to the `input` element.
173
174
  * Ignored if the field has several inputs.
174
175
  */
175
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
176
- current: _propTypes.default.object
177
- })]),
176
+ inputRef: _utils.refType,
178
177
  /**
179
178
  * The label content.
180
179
  * Ignored if the field has several inputs.
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _internals = require("@mui/x-date-pickers/internals");
12
12
  var _utils = require("@mui/base/utils");
13
+ var _utils2 = require("@mui/utils");
13
14
  var _valueManagers = require("../internals/utils/valueManagers");
14
15
  var _shared = require("../DateRangePicker/shared");
15
16
  var _dateRangeViewRenderers = require("../dateRangeViewRenderers");
@@ -177,9 +178,7 @@ DesktopDateRangePicker.propTypes = {
177
178
  * Pass a ref to the `input` element.
178
179
  * Ignored if the field has several inputs.
179
180
  */
180
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
181
- current: _propTypes.default.object
182
- })]),
181
+ inputRef: _utils2.refType,
183
182
  /**
184
183
  * The label content.
185
184
  * Ignored if the field has several inputs.
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _internals = require("@mui/x-date-pickers/internals");
12
12
  var _utils = require("@mui/base/utils");
13
+ var _utils2 = require("@mui/utils");
13
14
  var _valueManagers = require("../internals/utils/valueManagers");
14
15
  var _shared = require("../DateRangePicker/shared");
15
16
  var _dateRangeViewRenderers = require("../dateRangeViewRenderers");
@@ -177,9 +178,7 @@ MobileDateRangePicker.propTypes = {
177
178
  * Pass a ref to the `input` element.
178
179
  * Ignored if the field has several inputs.
179
180
  */
180
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
181
- current: _propTypes.default.object
182
- })]),
181
+ inputRef: _utils2.refType,
183
182
  /**
184
183
  * The label content.
185
184
  * Ignored if the field has several inputs.
@@ -12,6 +12,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
13
13
  var _styles = require("@mui/material/styles");
14
14
  var _utils = require("@mui/base/utils");
15
+ var _utils2 = require("@mui/utils");
15
16
  var _useSingleInputDateRangeField = require("./useSingleInputDateRangeField");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  const _excluded = ["slots", "slotProps", "components", "componentsProps", "InputProps", "inputProps"],
@@ -185,9 +186,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
185
186
  /**
186
187
  * Pass a ref to the `input` element.
187
188
  */
188
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
189
- current: _propTypes.default.any.isRequired
190
- })]),
189
+ inputRef: _utils2.refType,
191
190
  /**
192
191
  * The label content.
193
192
  */
@@ -12,6 +12,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
13
13
  var _styles = require("@mui/material/styles");
14
14
  var _utils = require("@mui/base/utils");
15
+ var _utils2 = require("@mui/utils");
15
16
  var _useSingleInputDateTimeRangeField = require("./useSingleInputDateTimeRangeField");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  const _excluded = ["slots", "slotProps", "components", "componentsProps", "InputProps", "inputProps"],
@@ -195,9 +196,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
195
196
  /**
196
197
  * Pass a ref to the `input` element.
197
198
  */
198
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
199
- current: _propTypes.default.any.isRequired
200
- })]),
199
+ inputRef: _utils2.refType,
201
200
  /**
202
201
  * The label content.
203
202
  */
@@ -12,6 +12,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
12
12
  var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
13
13
  var _styles = require("@mui/material/styles");
14
14
  var _utils = require("@mui/base/utils");
15
+ var _utils2 = require("@mui/utils");
15
16
  var _useSingleInputTimeRangeField = require("./useSingleInputTimeRangeField");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  const _excluded = ["slots", "slotProps", "components", "componentsProps", "InputProps", "inputProps"],
@@ -195,9 +196,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
195
196
  /**
196
197
  * Pass a ref to the `input` element.
197
198
  */
198
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
199
- current: _propTypes.default.any.isRequired
200
- })]),
199
+ inputRef: _utils2.refType,
201
200
  /**
202
201
  * The label content.
203
202
  */
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.13.0
2
+ * @mui/x-date-pickers-pro v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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 = "MTY5NDEyMDQwMDAwMA==";
9
+ const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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": "6.13.0",
3
+ "version": "6.14.0",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.22.15",
34
- "@mui/base": "^5.0.0-alpha.87",
35
- "@mui/utils": "^5.14.7",
36
- "@mui/x-date-pickers": "6.13.0",
34
+ "@mui/base": "^5.0.0-beta.14",
35
+ "@mui/utils": "^5.14.8",
36
+ "@mui/x-date-pickers": "6.14.0",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "clsx": "^2.0.0",
39
39
  "prop-types": "^15.8.1",