@mui/x-date-pickers-pro 6.13.0 → 6.15.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 +162 -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,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
+ ## 6.15.0
7
+
8
+ _Sep 22, 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
+ - 🚀 Implement columns auto-sizing (#10180) @romgrk
13
+ - 🎁 Add support for `getRowsToExport` option to print export on the data grid (#10084) @zreecespieces
14
+ - 🌍 Improve Finnish (fi-FI) locale
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@6.15.0`
21
+
22
+ - [DataGrid] Add support for `getRowsToExport` option to print export (#10084) @zreecespieces
23
+ - [DataGrid] Fix dev warning about `InputLabelProps` (#10413) @romgrk
24
+ - [DataGrid] Refactor `GridMenu` prop `onClickAway` to `onClose` (#10411) @romgrk
25
+ - [DataGrid] Restore focus after `GridMenu` closes (#10412) @romgrk
26
+ - [DataGrid] Fix typing of `GridActionsCellItem` (#10344) @romgrk
27
+ - [DataGrid] Hide `eval` from bundlers (#10329) @romgrk
28
+ - [DataGrid] Add `border: 0` to unmounted focused cell to avoid layout shifts in that row (#10318) @lauri865
29
+
30
+ #### `@mui/x-data-grid-pro@6.15.0` [![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@6.15.0`, plus:
33
+
34
+ - [DataGridPro] Implement columns auto-sizing (#10180) @romgrk
35
+ - [DataGridPro] Fix keyboard navigation issue in header filters (#10358) @MBilalShafi
36
+ - [DataGridPro] Add missing row hover styles (#10252) @cherniavskii
37
+ - [DataGridPro] Make default filter items have stable references in header filters (#10338) @MBilalShafi
38
+
39
+ #### `@mui/x-data-grid-premium@6.15.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
40
+
41
+ Same changes as in `@mui/x-data-grid-pro@6.15.0`.
42
+
43
+ ### Date Pickers
44
+
45
+ #### `@mui/x-date-pickers@6.15.0`
46
+
47
+ - [pickers] Support tokens without spaces (#10185) @alexfauquette
48
+ - [l10n] Improve Finnish (fi-FI) locale (#10346) @samijouppila
49
+
50
+ #### `@mui/x-date-pickers-pro@6.15.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-date-pickers@6.15.0`.
53
+
54
+ ### Charts / `@mui/x-charts@6.0.0-alpha.12`
55
+
56
+ - [charts] Fix sparkline scale and rendering (#10402) @alexfauquette
57
+ - [charts] Remove components from `@mui/material` (#10115) @alexfauquette
58
+
59
+ ### Tree View / `@mui/x-tree-view@6.0.0-alpha.4`
60
+
61
+ - [TreeView] Split features into plugins to prepare for Pro version (#10123) @flaviendelangle
62
+
63
+ ### Docs
64
+
65
+ - [docs] Add charts documentation pages to complete pricing table (#10394) @alexfauquette
66
+ - [docs] Add missing MIT packages on the Licensing page (#10348) @flaviendelangle
67
+ - [docs] Clearer component pattern @oliviertassinari
68
+ - [docs] Easier to understand demo (#10370) @oliviertassinari
69
+ - [docs] Fix `301` to Material UI @oliviertassinari
70
+ - [docs] Improve the column visibility section (#10327) @MBilalShafi
71
+ - [docs] Improve the documentation section `rowIdentifier` (#10326) @MBilalShafi
72
+ - [docs] Improve pickers localization documentation (#10202) @flaviendelangle
73
+ - [docs] Polish typescript ref usage (#10359) @oliviertassinari
74
+ - [docs] Improve charts tooltip wording (#10406) @alexfauquette
75
+
76
+ ### Core
77
+
78
+ - [core] Cleanup GitHub issues template (#10372) @romgrk
79
+ - [core] Fix Circle CI OOM (#10385) @romgrk
80
+ - [core] Improve sleep test helper @oliviertassinari
81
+ - [core] Remove unwanted prefixes @oliviertassinari
82
+ - [core] Remove duplicate label @oliviertassinari
83
+ - [core] Simplify source @oliviertassinari
84
+ - [core] Upgrade monorepo (#10425) @cherniavskii
85
+ - [core] Upgrade monorepo to have the new typescript-to-proptype (#10224) @flaviendelangle
86
+ - [test] Do not use deprecated adapter methods (#10416) @flaviendelangle
87
+ - [test] Name test suites according to sentence case (#10429) @alexfauquette
88
+
89
+ ## 6.14.0
90
+
91
+ _Sep 14, 2023_
92
+
93
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
94
+
95
+ - 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
96
+
97
+ The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
98
+ 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.
99
+
100
+ - 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
101
+ - 🐞 Bugfixes
102
+ - 📚 Documentation improvements
103
+
104
+ ### Data Grid
105
+
106
+ #### `@mui/x-data-grid@6.14.0`
107
+
108
+ - [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
109
+ - [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
110
+ - [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
111
+
112
+ #### `@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')
113
+
114
+ Same changes as in `@mui/x-data-grid@6.14.0`.
115
+
116
+ #### `@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')
117
+
118
+ Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
119
+
120
+ - [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
121
+
122
+ ### Date Pickers
123
+
124
+ #### `@mui/x-date-pickers@6.14.0`
125
+
126
+ - [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
127
+ - [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
128
+
129
+ #### `@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')
130
+
131
+ Same changes as in `@mui/x-date-pickers@6.14.0`.
132
+
133
+ ### Charts / `@mui/x-charts@6.0.0-alpha.11`
134
+
135
+ - [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
136
+ - [charts] Enable `eslint` on the package (#10330) @LukasTy
137
+
138
+ ### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
139
+
140
+ - [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
141
+
142
+ ### Docs
143
+
144
+ - [docs] Add conditional range picker props example (#10227) @LukasTy
145
+ - [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
146
+ - [docs] Avoid the use of "We" @oliviertassinari
147
+ - [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
148
+ - [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
149
+ - [docs] Fix Tree View link to API references (#10282) @oliviertassinari
150
+ - [docs] Fix image layout shift (#10313) @oliviertassinari
151
+ - [docs] Fix link to MUI X from readme logo @oliviertassinari
152
+ - [docs] Fix redirection to Base UI URLs @oliviertassinari
153
+ - [docs] Improve Tree View demos (#10268) @oliviertassinari
154
+ - [docs] Improve docs for ref type props (#10273) @michelengelen
155
+ - [docs] Improve npm package README (#10269) @oliviertassinari
156
+ - [docs] Improve the clarity of the npm links @oliviertassinari
157
+ - [docs] Keep installation readme simple @oliviertassinari
158
+ - [docs] Make each component feel more standalone @oliviertassinari
159
+
160
+ ### Core
161
+
162
+ - [core] Add types extension for clarity @oliviertassinari
163
+ - [core] Set logo height to fix layout shift in GitHub @oliviertassinari
164
+ - [core] TrapFocus was renamed to FocusTrap @oliviertassinari
165
+
6
166
  ## 6.13.0
7
167
 
8
168
  _Sep 8, 2023_
@@ -12,6 +172,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
12
172
  - 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
13
173
 
14
174
  The range picker popup will now be anchored to the first input element and left aligned like other pickers.
175
+
15
176
  - 🌍 Improve Slovak (sk-SK) locale on the data grid
16
177
  - 🐞 Bugfixes
17
178
  - 📚 Documentation improvements
@@ -1838,7 +1999,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1838
1999
  #### Changes
1839
2000
 
1840
2001
  - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
1841
- - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @ivek-Prajapatii
2002
+ - [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
1842
2003
  - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
1843
2004
  - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
1844
2005
  - [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.15.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 = "MTY5NTMzMDAwMDAwMA==";
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.15.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 = "MTY5NTMzMDAwMDAwMA==";
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.15.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 = "MTY5NTMzMDAwMDAwMA==";
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.15.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 = "MTY5NTMzMDAwMDAwMA==";
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.15.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.15.0",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "clsx": "^2.0.0",
39
39
  "prop-types": "^15.8.1",