@mui/x-date-pickers-pro 6.18.0 → 6.18.2

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 +116 -5
  2. package/DateRangeCalendar/DateRangeCalendar.js +1 -0
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +1 -0
  4. package/DateRangePicker/DateRangePicker.js +1 -0
  5. package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
  6. package/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
  7. package/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
  8. package/index.js +1 -1
  9. package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
  10. package/internals/utils/releaseInfo.js +1 -1
  11. package/legacy/DateRangeCalendar/DateRangeCalendar.js +1 -0
  12. package/legacy/DateRangePicker/DateRangePicker.js +1 -0
  13. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
  14. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
  15. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
  16. package/legacy/index.js +1 -1
  17. package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
  18. package/legacy/internals/utils/releaseInfo.js +1 -1
  19. package/modern/DateRangeCalendar/DateRangeCalendar.js +1 -0
  20. package/modern/DateRangePicker/DateRangePicker.js +1 -0
  21. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
  22. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
  23. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
  24. package/modern/index.js +1 -1
  25. package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
  26. package/modern/internals/utils/releaseInfo.js +1 -1
  27. package/node/DateRangeCalendar/DateRangeCalendar.js +1 -0
  28. package/node/DateRangePicker/DateRangePicker.js +1 -0
  29. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
  30. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
  31. package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
  32. package/node/index.js +1 -1
  33. package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
  34. package/node/internals/utils/releaseInfo.js +1 -1
  35. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,117 @@
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.18.2
7
+
8
+ _Nov 23, 2023_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Arabic (ar-SD), Czech (cs-CZ), and Hebrew (he-IL) locales on Data Grid
13
+ - 🌍 Add Basque (eu) and Macedonian (mk) locales on Pickers
14
+ - 🌍 Improve German (de-DE) and Spanish (es-ES) locales on Pickers
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@6.18.2`
21
+
22
+ - [l10n] Improve Arabic (ar-SD) locale (#11096) @OmarWebDev
23
+ - [l10n] Improve Czech (cs-CZ) locale (#10968) @luborepka
24
+ - [l10n] Improve Hebrew (he-IL) locale (#11056) @LironKiloma
25
+
26
+ #### `@mui/x-data-grid-pro@6.18.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
+
28
+ Same changes as in `@mui/x-data-grid@6.18.2`.
29
+
30
+ #### `@mui/x-data-grid-premium@6.18.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
+
32
+ Same changes as in `@mui/x-data-grid-pro@6.18.2`.
33
+
34
+ ### Date Pickers
35
+
36
+ #### `@mui/x-date-pickers@6.18.2`
37
+
38
+ - [l10n] Add Basque (eu) locale and improve Spanish (es-ES) locale (#10985) @lajtomekadimon
39
+ - [l10n] Add Macedonian (mk) locale (#11155) @brsnik
40
+ - [l10n] Improve German (de-DE) locale (#11104) @jho-vema
41
+ - [pickers] Deprecate `defaultCalendarMonth` prop (#11138) @flaviendelangle
42
+ - [pickers] Fix `DateCalendar` crashing when given an invalid value (#11101) @flaviendelangle
43
+
44
+ #### `@mui/x-date-pickers-pro@6.18.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
45
+
46
+ Same changes as in `@mui/x-date-pickers@6.18.2`.
47
+
48
+ ### Charts / `@mui/x-charts@6.18.2`
49
+
50
+ - [charts] Fix `ChartsTooltip` component setup (#11157) @LukasTy
51
+ - [charts] Remove outdated prop-types (#10998) @alexfauquette
52
+
53
+ ### Docs
54
+
55
+ - [docs] Fix incoherent naming of a component in `Custom slots and subcomponents` page (#11003) @lhilgert9
56
+ - [test] Skip flaky e2e test in webkit (#11115) @cherniavskii
57
+ - [test] Wait for images to load (#11109) @cherniavskii
58
+
59
+ ## 6.18.1
60
+
61
+ _Nov 9, 2023_
62
+
63
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
64
+
65
+ - ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
66
+ - 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) published
67
+ - 📈 `<ChartsReferenceLine />` component is now available
68
+ - 🐞 Bugfixes
69
+ - 📚 Documentation improvements
70
+
71
+ ### Data Grid
72
+
73
+ #### `@mui/x-data-grid@6.18.1`
74
+
75
+ - [DataGrid] Fix cell value type in quick filtering v7 (#10884) @cherniavskii
76
+ - [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10947) @michelengelen
77
+ - [DataGrid] Fix `undefined` slot values (#10934) @romgrk
78
+
79
+ #### `@mui/x-data-grid-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
80
+
81
+ Same changes as in `@mui/x-data-grid@6.18.1`, plus:
82
+
83
+ - [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi
84
+
85
+ #### `@mui/x-data-grid-premium@6.18.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
86
+
87
+ Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus:
88
+
89
+ - [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii
90
+
91
+ ### Date Pickers
92
+
93
+ #### `@mui/x-date-pickers@6.18.1`
94
+
95
+ - [fields] Fix multi input date time field section selection (#10915) @noraleonte
96
+ - [pickers] Always use up-to-date `defaultView` (#10889) @LukasTy
97
+
98
+ #### `@mui/x-date-pickers-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
99
+
100
+ Same changes as in `@mui/x-date-pickers@6.18.1`.
101
+
102
+ ### Charts / `@mui/x-charts@6.18.1`
103
+
104
+ - [charts] Add `<ChartsReferenceLine />` component (#10597) @wascou
105
+ - [charts] Improve properties JSDoc (#10931) @alexfauquette
106
+
107
+ ### Docs
108
+
109
+ - [docs] Fix charts docs as stable (#10888) @alexfauquette
110
+ - [docs] Document how to hide the legend (#10954) @alexfauquette
111
+
112
+ ### Core
113
+
114
+ - [core] Adds new alpha version to version select on the docs (#10944) @michelengelen
115
+ - [core] Fix GitHub title tag consistency @oliviertassinari
116
+
6
117
  ## 6.18.0
7
118
 
8
119
  _Nov 3, 2023_
@@ -357,7 +468,7 @@ Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
357
468
 
358
469
  - [core] Fix casing consistency with legal and marketing content @oliviertassinari
359
470
  - [core] Revert the link in the priority support ticket description (#10517) @michelengelen
360
- - [CHANGELOG] Polish image @oliviertassinari
471
+ - [changelog] Polish image @oliviertassinari
361
472
 
362
473
  ## 6.16.0
363
474
 
@@ -1149,7 +1260,7 @@ Same changes as in `@mui/x-date-pickers@6.10.1`.
1149
1260
  ### Core
1150
1261
 
1151
1262
  - [core] Add `validate` command (#9714) @romgrk
1152
- - [CHANGELOG] Update generator to new format @oliviertassinari
1263
+ - [changelog] Update generator to new format @oliviertassinari
1153
1264
 
1154
1265
  ## 6.10.0
1155
1266
 
@@ -1207,7 +1318,7 @@ Same changes as in `@mui/x-date-pickers@6.10.0`.
1207
1318
 
1208
1319
  - [core] Disambiguate eslint plugin name @oliviertassinari
1209
1320
  - [core] Update priority support issue template and prompt (#9574) @DanailH
1210
- - [CHANGELOG] Clarify each plan (#9446) @oliviertassinari
1321
+ - [changelog] Clarify each plan (#9446) @oliviertassinari
1211
1322
  - [license] Fix error terminology (#9614) @oliviertassinari
1212
1323
 
1213
1324
  ## 6.9.2
@@ -1356,8 +1467,8 @@ Same changes as in `@mui/x-date-pickers@6.9.1`.
1356
1467
  - [core] Fix priority support prompt action (#9472) @DanailH
1357
1468
  - [core] Update `uses` for priority support action (#9480) @DanailH
1358
1469
  - [core] Bumb update monorepo (#9476) @alexfauquette
1359
- - [CHANGELOG] Fix media quality (#9439) @oliviertassinari
1360
- - [CHANGELOG] Remove height img attribute @oliviertassinari
1470
+ - [changelog] Fix media quality (#9439) @oliviertassinari
1471
+ - [changelog] Remove height img attribute @oliviertassinari
1361
1472
  - [test] Skip flaky row pinning tests in JSDOM (#9511) @cherniavskii
1362
1473
 
1363
1474
  ## 6.9.0
@@ -527,6 +527,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
527
527
  dayOfWeekFormatter: PropTypes.func,
528
528
  /**
529
529
  * Default calendar month displayed when `value={[null, null]}`.
530
+ * @deprecated Consider using `referenceDate` instead.
530
531
  */
531
532
  defaultCalendarMonth: PropTypes.any,
532
533
  /**
@@ -32,6 +32,7 @@ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalend
32
32
  disableAutoMonthSwitching?: boolean;
33
33
  /**
34
34
  * Default calendar month displayed when `value={[null, null]}`.
35
+ * @deprecated Consider using `referenceDate` instead.
35
36
  */
36
37
  defaultCalendarMonth?: TDate;
37
38
  /**
@@ -95,6 +95,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
95
95
  dayOfWeekFormatter: PropTypes.func,
96
96
  /**
97
97
  * Default calendar month displayed when `value={[null, null]}`.
98
+ * @deprecated Consider using `referenceDate` instead.
98
99
  */
99
100
  defaultCalendarMonth: PropTypes.any,
100
101
  /**
@@ -110,6 +110,7 @@ DesktopDateRangePicker.propTypes = {
110
110
  dayOfWeekFormatter: PropTypes.func,
111
111
  /**
112
112
  * Default calendar month displayed when `value={[null, null]}`.
113
+ * @deprecated Consider using `referenceDate` instead.
113
114
  */
114
115
  defaultCalendarMonth: PropTypes.any,
115
116
  /**
@@ -110,6 +110,7 @@ MobileDateRangePicker.propTypes = {
110
110
  dayOfWeekFormatter: PropTypes.func,
111
111
  /**
112
112
  * Default calendar month displayed when `value={[null, null]}`.
113
+ * @deprecated Consider using `referenceDate` instead.
113
114
  */
114
115
  defaultCalendarMonth: PropTypes.any,
115
116
  /**
@@ -96,6 +96,7 @@ StaticDateRangePicker.propTypes = {
96
96
  dayOfWeekFormatter: PropTypes.func,
97
97
  /**
98
98
  * Default calendar month displayed when `value={[null, null]}`.
99
+ * @deprecated Consider using `referenceDate` instead.
99
100
  */
100
101
  defaultCalendarMonth: PropTypes.any,
101
102
  /**
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.18.0
2
+ * @mui/x-date-pickers-pro v6.18.2
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,9 @@ export const useMultiInputDateTimeRangeField = ({
41
41
  timezone: timezoneProp,
42
42
  onChange,
43
43
  disabled,
44
- readOnly
44
+ readOnly,
45
+ selectedSections,
46
+ onSelectedSectionsChange
45
47
  } = sharedProps;
46
48
  const {
47
49
  value,
@@ -89,7 +91,9 @@ export const useMultiInputDateTimeRangeField = ({
89
91
  unstableFieldRef: unstableStartFieldRef,
90
92
  value: valueProp === undefined ? undefined : valueProp[0],
91
93
  defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
92
- onChange: handleStartDateChange
94
+ onChange: handleStartDateChange,
95
+ selectedSections,
96
+ onSelectedSectionsChange
93
97
  });
94
98
  const endFieldProps = _extends({
95
99
  error: !!validationError[1]
@@ -102,7 +106,9 @@ export const useMultiInputDateTimeRangeField = ({
102
106
  unstableFieldRef: unstableEndFieldRef,
103
107
  value: valueProp === undefined ? undefined : valueProp[1],
104
108
  defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
105
- onChange: handleEndDateChange
109
+ onChange: handleEndDateChange,
110
+ selectedSections,
111
+ onSelectedSectionsChange
106
112
  });
107
113
  const startDateResponse = useDateTimeField({
108
114
  props: startFieldProps,
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5ODk2NjAwMDAwMA==";
3
+ const releaseInfo = "MTcwMDY5MDQwMDAwMA==";
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
@@ -550,6 +550,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
550
550
  dayOfWeekFormatter: PropTypes.func,
551
551
  /**
552
552
  * Default calendar month displayed when `value={[null, null]}`.
553
+ * @deprecated Consider using `referenceDate` instead.
553
554
  */
554
555
  defaultCalendarMonth: PropTypes.any,
555
556
  /**
@@ -94,6 +94,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
94
94
  dayOfWeekFormatter: PropTypes.func,
95
95
  /**
96
96
  * Default calendar month displayed when `value={[null, null]}`.
97
+ * @deprecated Consider using `referenceDate` instead.
97
98
  */
98
99
  defaultCalendarMonth: PropTypes.any,
99
100
  /**
@@ -109,6 +109,7 @@ DesktopDateRangePicker.propTypes = {
109
109
  dayOfWeekFormatter: PropTypes.func,
110
110
  /**
111
111
  * Default calendar month displayed when `value={[null, null]}`.
112
+ * @deprecated Consider using `referenceDate` instead.
112
113
  */
113
114
  defaultCalendarMonth: PropTypes.any,
114
115
  /**
@@ -109,6 +109,7 @@ MobileDateRangePicker.propTypes = {
109
109
  dayOfWeekFormatter: PropTypes.func,
110
110
  /**
111
111
  * Default calendar month displayed when `value={[null, null]}`.
112
+ * @deprecated Consider using `referenceDate` instead.
112
113
  */
113
114
  defaultCalendarMonth: PropTypes.any,
114
115
  /**
@@ -95,6 +95,7 @@ StaticDateRangePicker.propTypes = {
95
95
  dayOfWeekFormatter: PropTypes.func,
96
96
  /**
97
97
  * Default calendar month displayed when `value={[null, null]}`.
98
+ * @deprecated Consider using `referenceDate` instead.
98
99
  */
99
100
  defaultCalendarMonth: PropTypes.any,
100
101
  /**
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.18.0
2
+ * @mui/x-date-pickers-pro v6.18.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -39,7 +39,9 @@ export var useMultiInputDateTimeRangeField = function useMultiInputDateTimeRange
39
39
  timezoneProp = sharedProps.timezone,
40
40
  onChange = sharedProps.onChange,
41
41
  disabled = sharedProps.disabled,
42
- readOnly = sharedProps.readOnly;
42
+ readOnly = sharedProps.readOnly,
43
+ selectedSections = sharedProps.selectedSections,
44
+ onSelectedSectionsChange = sharedProps.onSelectedSectionsChange;
43
45
  var _useControlledValueWi = useControlledValueWithTimezone({
44
46
  name: 'useMultiInputDateRangeField',
45
47
  timezone: timezoneProp,
@@ -85,7 +87,9 @@ export var useMultiInputDateTimeRangeField = function useMultiInputDateTimeRange
85
87
  unstableFieldRef: unstableStartFieldRef,
86
88
  value: valueProp === undefined ? undefined : valueProp[0],
87
89
  defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
88
- onChange: handleStartDateChange
90
+ onChange: handleStartDateChange,
91
+ selectedSections: selectedSections,
92
+ onSelectedSectionsChange: onSelectedSectionsChange
89
93
  });
90
94
  var endFieldProps = _extends({
91
95
  error: !!validationError[1]
@@ -98,7 +102,9 @@ export var useMultiInputDateTimeRangeField = function useMultiInputDateTimeRange
98
102
  unstableFieldRef: unstableEndFieldRef,
99
103
  value: valueProp === undefined ? undefined : valueProp[1],
100
104
  defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
101
- onChange: handleEndDateChange
105
+ onChange: handleEndDateChange,
106
+ selectedSections: selectedSections,
107
+ onSelectedSectionsChange: onSelectedSectionsChange
102
108
  });
103
109
  var startDateResponse = useDateTimeField({
104
110
  props: startFieldProps,
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5ODk2NjAwMDAwMA==";
3
+ var releaseInfo = "MTcwMDY5MDQwMDAwMA==";
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
@@ -523,6 +523,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
523
523
  dayOfWeekFormatter: PropTypes.func,
524
524
  /**
525
525
  * Default calendar month displayed when `value={[null, null]}`.
526
+ * @deprecated Consider using `referenceDate` instead.
526
527
  */
527
528
  defaultCalendarMonth: PropTypes.any,
528
529
  /**
@@ -95,6 +95,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
95
95
  dayOfWeekFormatter: PropTypes.func,
96
96
  /**
97
97
  * Default calendar month displayed when `value={[null, null]}`.
98
+ * @deprecated Consider using `referenceDate` instead.
98
99
  */
99
100
  defaultCalendarMonth: PropTypes.any,
100
101
  /**
@@ -106,6 +106,7 @@ DesktopDateRangePicker.propTypes = {
106
106
  dayOfWeekFormatter: PropTypes.func,
107
107
  /**
108
108
  * Default calendar month displayed when `value={[null, null]}`.
109
+ * @deprecated Consider using `referenceDate` instead.
109
110
  */
110
111
  defaultCalendarMonth: PropTypes.any,
111
112
  /**
@@ -106,6 +106,7 @@ MobileDateRangePicker.propTypes = {
106
106
  dayOfWeekFormatter: PropTypes.func,
107
107
  /**
108
108
  * Default calendar month displayed when `value={[null, null]}`.
109
+ * @deprecated Consider using `referenceDate` instead.
109
110
  */
110
111
  defaultCalendarMonth: PropTypes.any,
111
112
  /**
@@ -95,6 +95,7 @@ StaticDateRangePicker.propTypes = {
95
95
  dayOfWeekFormatter: PropTypes.func,
96
96
  /**
97
97
  * Default calendar month displayed when `value={[null, null]}`.
98
+ * @deprecated Consider using `referenceDate` instead.
98
99
  */
99
100
  defaultCalendarMonth: PropTypes.any,
100
101
  /**
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.18.0
2
+ * @mui/x-date-pickers-pro v6.18.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -40,7 +40,9 @@ export const useMultiInputDateTimeRangeField = ({
40
40
  timezone: timezoneProp,
41
41
  onChange,
42
42
  disabled,
43
- readOnly
43
+ readOnly,
44
+ selectedSections,
45
+ onSelectedSectionsChange
44
46
  } = sharedProps;
45
47
  const {
46
48
  value,
@@ -88,7 +90,9 @@ export const useMultiInputDateTimeRangeField = ({
88
90
  unstableFieldRef: unstableStartFieldRef,
89
91
  value: valueProp === undefined ? undefined : valueProp[0],
90
92
  defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
91
- onChange: handleStartDateChange
93
+ onChange: handleStartDateChange,
94
+ selectedSections,
95
+ onSelectedSectionsChange
92
96
  });
93
97
  const endFieldProps = _extends({
94
98
  error: !!validationError[1]
@@ -101,7 +105,9 @@ export const useMultiInputDateTimeRangeField = ({
101
105
  unstableFieldRef: unstableEndFieldRef,
102
106
  value: valueProp === undefined ? undefined : valueProp[1],
103
107
  defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
104
- onChange: handleEndDateChange
108
+ onChange: handleEndDateChange,
109
+ selectedSections,
110
+ onSelectedSectionsChange
105
111
  });
106
112
  const startDateResponse = useDateTimeField({
107
113
  props: startFieldProps,
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5ODk2NjAwMDAwMA==";
3
+ const releaseInfo = "MTcwMDY5MDQwMDAwMA==";
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
@@ -531,6 +531,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
531
531
  dayOfWeekFormatter: _propTypes.default.func,
532
532
  /**
533
533
  * Default calendar month displayed when `value={[null, null]}`.
534
+ * @deprecated Consider using `referenceDate` instead.
534
535
  */
535
536
  defaultCalendarMonth: _propTypes.default.any,
536
537
  /**
@@ -104,6 +104,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
104
104
  dayOfWeekFormatter: _propTypes.default.func,
105
105
  /**
106
106
  * Default calendar month displayed when `value={[null, null]}`.
107
+ * @deprecated Consider using `referenceDate` instead.
107
108
  */
108
109
  defaultCalendarMonth: _propTypes.default.any,
109
110
  /**
@@ -115,6 +115,7 @@ DesktopDateRangePicker.propTypes = {
115
115
  dayOfWeekFormatter: _propTypes.default.func,
116
116
  /**
117
117
  * Default calendar month displayed when `value={[null, null]}`.
118
+ * @deprecated Consider using `referenceDate` instead.
118
119
  */
119
120
  defaultCalendarMonth: _propTypes.default.any,
120
121
  /**
@@ -115,6 +115,7 @@ MobileDateRangePicker.propTypes = {
115
115
  dayOfWeekFormatter: _propTypes.default.func,
116
116
  /**
117
117
  * Default calendar month displayed when `value={[null, null]}`.
118
+ * @deprecated Consider using `referenceDate` instead.
118
119
  */
119
120
  defaultCalendarMonth: _propTypes.default.any,
120
121
  /**
@@ -104,6 +104,7 @@ StaticDateRangePicker.propTypes = {
104
104
  dayOfWeekFormatter: _propTypes.default.func,
105
105
  /**
106
106
  * Default calendar month displayed when `value={[null, null]}`.
107
+ * @deprecated Consider using `referenceDate` instead.
107
108
  */
108
109
  defaultCalendarMonth: _propTypes.default.any,
109
110
  /**
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.18.0
2
+ * @mui/x-date-pickers-pro v6.18.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -48,7 +48,9 @@ const useMultiInputDateTimeRangeField = ({
48
48
  timezone: timezoneProp,
49
49
  onChange,
50
50
  disabled,
51
- readOnly
51
+ readOnly,
52
+ selectedSections,
53
+ onSelectedSectionsChange
52
54
  } = sharedProps;
53
55
  const {
54
56
  value,
@@ -96,7 +98,9 @@ const useMultiInputDateTimeRangeField = ({
96
98
  unstableFieldRef: unstableStartFieldRef,
97
99
  value: valueProp === undefined ? undefined : valueProp[0],
98
100
  defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
99
- onChange: handleStartDateChange
101
+ onChange: handleStartDateChange,
102
+ selectedSections,
103
+ onSelectedSectionsChange
100
104
  });
101
105
  const endFieldProps = (0, _extends2.default)({
102
106
  error: !!validationError[1]
@@ -109,7 +113,9 @@ const useMultiInputDateTimeRangeField = ({
109
113
  unstableFieldRef: unstableEndFieldRef,
110
114
  value: valueProp === undefined ? undefined : valueProp[1],
111
115
  defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
112
- onChange: handleEndDateChange
116
+ onChange: handleEndDateChange,
117
+ selectedSections,
118
+ onSelectedSectionsChange
113
119
  });
114
120
  const startDateResponse = (0, _DateTimeField.unstable_useDateTimeField)({
115
121
  props: startFieldProps,
@@ -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 = "MTY5ODk2NjAwMDAwMA==";
9
+ const releaseInfo = "MTcwMDY5MDQwMDAwMA==";
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.18.0",
3
+ "version": "6.18.2",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -33,7 +33,7 @@
33
33
  "@babel/runtime": "^7.23.2",
34
34
  "@mui/base": "^5.0.0-beta.22",
35
35
  "@mui/utils": "^5.14.16",
36
- "@mui/x-date-pickers": "6.18.0",
36
+ "@mui/x-date-pickers": "6.18.2",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "clsx": "^2.0.0",
39
39
  "prop-types": "^15.8.1",