@mui/x-date-pickers-pro 7.11.1 → 7.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +178 -4
  2. package/DateRangeCalendar/DateRangeCalendar.js +4 -1
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +1 -1
  4. package/DateRangePicker/DateRangePicker.js +2 -0
  5. package/DateRangePicker/DateRangePickerToolbar.js +1 -1
  6. package/DateRangePickerDay/DateRangePickerDay.js +1 -1
  7. package/DateTimeRangePicker/DateTimeRangePicker.js +2 -0
  8. package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  9. package/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -1
  10. package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +3 -1
  11. package/MobileDateRangePicker/MobileDateRangePicker.js +3 -1
  12. package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +3 -1
  13. package/MultiInputDateRangeField/MultiInputDateRangeField.js +3 -1
  14. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +1 -1
  15. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +3 -1
  16. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +1 -1
  17. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
  18. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +1 -1
  19. package/SingleInputDateRangeField/SingleInputDateRangeField.js +3 -1
  20. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +1 -1
  21. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +3 -1
  22. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +1 -1
  23. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
  24. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +1 -1
  25. package/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  26. package/index.js +1 -1
  27. package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
  28. package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +1 -1
  29. package/internals/hooks/useEnrichedRangePickerFieldProps.js +1 -1
  30. package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
  31. package/internals/utils/releaseInfo.js +1 -1
  32. package/models/fields.d.ts +1 -1
  33. package/modern/DateRangeCalendar/DateRangeCalendar.js +4 -1
  34. package/modern/DateRangePicker/DateRangePicker.js +2 -0
  35. package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
  36. package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
  37. package/modern/DateTimeRangePicker/DateTimeRangePicker.js +2 -0
  38. package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
  39. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -1
  40. package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +3 -1
  41. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +3 -1
  42. package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +3 -1
  43. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +3 -1
  44. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +3 -1
  45. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
  46. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +3 -1
  47. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +3 -1
  48. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
  49. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  50. package/modern/index.js +1 -1
  51. package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
  52. package/modern/internals/hooks/useEnrichedRangePickerFieldProps.js +1 -1
  53. package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
  54. package/modern/internals/utils/releaseInfo.js +1 -1
  55. package/node/DateRangeCalendar/DateRangeCalendar.js +6 -3
  56. package/node/DateRangePicker/DateRangePicker.js +2 -0
  57. package/node/DateRangePicker/DateRangePickerToolbar.js +2 -2
  58. package/node/DateRangePickerDay/DateRangePickerDay.js +2 -2
  59. package/node/DateTimeRangePicker/DateTimeRangePicker.js +2 -0
  60. package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -2
  61. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -4
  62. package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +7 -5
  63. package/node/MobileDateRangePicker/MobileDateRangePicker.js +6 -4
  64. package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +4 -2
  65. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +11 -9
  66. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +11 -9
  67. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +9 -9
  68. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -4
  69. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -2
  70. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
  71. package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
  72. package/node/index.js +1 -1
  73. package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
  74. package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
  75. package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
  76. package/node/internals/utils/releaseInfo.js +1 -1
  77. package/package.json +4 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,180 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.12.1
7
+
8
+ _Aug 8, 2024_
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
+ - 🎨 Charts get a new component to display color mapping in the legend
13
+ - 🚀 The `@mui/x-charts-pro` is released in alpha version 🧪. This new package introduces two main features:
14
+ - The Heatmap component
15
+ - The zoom interaction on the bar, line, and scatter charts
16
+ - 🌍 Improve Dutch (nl-NL) locale on the Date and Time Pickers
17
+ - 🐞 Bugfixes
18
+
19
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@7.12.1`
24
+
25
+ - [DataGrid] Fix `checkboxSelectionVisibleOnly` behavior with server-side pagination (#14083) @MBilalShafi
26
+ - [DataGrid] Fix `columnHeadersContainerRef` being `undefined` before mount (#14051) @samwato
27
+ - [DataGrid] Support Yarn PnP (#14126) @cherniavskii
28
+
29
+ #### `@mui/x-data-grid-pro@7.12.1` [![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@7.12.1`.
32
+
33
+ #### `@mui/x-data-grid-premium@7.12.1` [![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@7.12.1`.
36
+
37
+ ### Date and Time Pickers
38
+
39
+ #### `@mui/x-date-pickers@7.12.1`
40
+
41
+ - [l10n] Improve Dutch (nlNL) locale (pickers) (#14036) @Robin1896
42
+
43
+ #### `@mui/x-date-pickers-pro@7.12.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
44
+
45
+ Same changes as in `@mui/x-date-pickers@7.12.1`.
46
+
47
+ ### Charts
48
+
49
+ #### `@mui/x-charts@7.12.1`
50
+
51
+ - [charts] Fix charts vendor publish config (#14073) @JCQuintas
52
+ - [charts] Move `plugins` to `PluginProvider` (#14056) @JCQuintas
53
+
54
+ #### `@mui/x-date-charts-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
55
+
56
+ Same changes as in `@mui/x-charts@7.12.1`, plus:
57
+
58
+ - [charts-pro] Release the pro package in alpha (#13859) @alexfauquette
59
+
60
+ ### Tree View
61
+
62
+ #### `@mui/x-tree-view@7.12.1`
63
+
64
+ ### Docs
65
+
66
+ - [docs] Add a warning to promote the usage of `updateRows` (#14027) @MBilalShafi
67
+ - [docs] Disable ad in `Rich Tree View-Ordering` page (#14123) @oliviertassinari
68
+ - [docs] Redesign Date and Time Pickers overview page (#13241) @noraleonte
69
+
70
+ - [CHANGELOG] Polish details @oliviertassinari
71
+ - [code-infra] Use concurrency 1 in CircleCI (#14110) @JCQuintas
72
+ - [infra] Re-added the removal of `Latest Version` section (#14132) @michelengelen
73
+
74
+ ## 7.12.0
75
+
76
+ _Aug 1, 2024_
77
+
78
+ ### 💵 Our commercial offering is evolving
79
+
80
+ The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving two new packages:
81
+
82
+ - `@mui/x-tree-view-pro` (available today!)
83
+ - `@mui/x-charts-pro` (available in the coming weeks)
84
+
85
+ As always, every feature released as part of the MIT plan will remain free and MIT licensed forever.
86
+
87
+ This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
88
+
89
+ ### Highlights
90
+
91
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
92
+
93
+ - 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component
94
+
95
+ <img width="287" src="https://github.com/user-attachments/assets/78bd83c5-7ce4-4ed7-acf9-be70b2dbce54" alt="Item reordering using drag and drop" />
96
+
97
+ - 📦 Support CommonJS bundle out of the box on `@mui/x-charts` by adding vendored D3 dependencies.
98
+
99
+ - This modifies how the package imports D3.js. It will impact you if you use `d3` packages installed by `@mui/x-charts` and don't have them in your `package.json`. You shouldn't be affected otherwise.
100
+ - For more context, the initial issue is caused by D3 only exporting ESM.
101
+
102
+ ![image](https://github.com/user-attachments/assets/d705b4de-0c93-420e-a416-528e7a044c1d)
103
+
104
+ - The solution up until now was to export charts with only ESM. But some frameworks are confused by this configuration.
105
+
106
+ ![image](https://github.com/user-attachments/assets/18a09703-9dd4-4226-a33d-167af059219c)
107
+
108
+ - So in order to fix this, we are providing a CJS version of D3.
109
+
110
+ ![image](https://github.com/user-attachments/assets/56387fe6-85d8-4750-bb9d-9866d5be68fa)
111
+
112
+ - 🌍 Improve Turkish (tr-TR) locale on the Data Grid
113
+ - 🌍 Improve Finnish (fi-FI) locale on the Date and Time Pickers
114
+ - 🐞 Bugfixes
115
+ - 📚 Documentation improvements
116
+
117
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
118
+
119
+ ### Data Grid
120
+
121
+ #### `@mui/x-data-grid@7.12.0`
122
+
123
+ - [DataGrid] Fix crash when updating columns immediately after scrolling (#13781) @cherniavskii
124
+ - [DataGrid] Fix `role=presentation` a11y issue (#13891) @romgrk
125
+ - [DataGrid] Fix top corner pixels & outline radius (#13943) @romgrk
126
+ - [DataGrid] Refactor: remove useless copy (#14039) @romgrk
127
+ - [l10n] Improve Turkish (tr-TR) locale (#13996) @bagcivan
128
+
129
+ #### `@mui/x-data-grid-pro@7.12.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-data-grid@7.12.0`.
132
+
133
+ #### `@mui/x-data-grid-premium@7.12.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
134
+
135
+ Same changes as in `@mui/x-data-grid-pro@7.12.0`.
136
+
137
+ ### Date and Time Pickers
138
+
139
+ #### `@mui/x-date-pickers@7.12.0`
140
+
141
+ - [l10n] Improve Finnish (fi-FI) locale (#14054) @frozenzia
142
+
143
+ #### `@mui/x-date-pickers-pro@7.12.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
144
+
145
+ Same changes as in `@mui/x-date-pickers@7.12.0`.
146
+
147
+ ### Charts
148
+
149
+ #### `@mui/x-charts@7.12.0`
150
+
151
+ - [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas
152
+ - [charts] Use vendor to have Common JS bundle working out of the box (#13608) @alexfauquette
153
+ - [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas
154
+
155
+ ### Tree View
156
+
157
+ #### `@mui/x-tree-view@7.12.0`
158
+
159
+ - [TreeView] Add new prop `onItemClick` on the Tree View components (#14018) @flaviendelangle
160
+ - [TreeView] Add new utility function `isEventTargetInDescendants` (#13982) @flaviendelangle
161
+ - [TreeView] Support item reordering using drag and drop (#12213) @flaviendelangle
162
+
163
+ ### Docs
164
+
165
+ - [docs] Add Pickers `minDate` and `maxDate` `default` description (#14024) @LukasTy
166
+ - [docs] Fix 404 (#13989) @alexfauquette
167
+ - [docs] Fix Vale errors (#14025) @oliviertassinari
168
+ - [docs] Update on `renderCell` & autogenerated rows (#13879) @romgrk
169
+
170
+ ### Core
171
+
172
+ - [core] Fix event naming convention @oliviertassinari
173
+ - [core] Replace @mui/base with @mui/utils + @mui/material (#13823) @mnajdova
174
+ - [core] Test `charts` performance with codspeed (#13952) @JCQuintas
175
+ - [infra] Consolidate issue cleanup and support labeling action (#14031) @michelengelen
176
+ - [infra] Revert `vale` action `paths` filtering (#14038) @LukasTy
177
+ - [test] Fix adapters code coverage (#13969) @alexfauquette
178
+ - [test] Fix mocha config to run charts tests (#14041) @alexfauquette
179
+
6
180
  ## 7.11.1
7
181
 
8
182
  _Jul 25, 2024_
@@ -143,8 +317,8 @@ Same changes as in `@mui/x-date-pickers@7.11.0`, plus:
143
317
  - [charts] Defaultize axis on top level `useChartContainerProps` (#13817) @JCQuintas
144
318
  - [charts] Fix charts not passing `className` to root element (#13647) @JCQuintas
145
319
  - [charts] Generate API documentation for pro components (#13822) @alexfauquette
146
- - [charts] Improve zoomed highlight behaviour (unreleased) (#13868) @JCQuintas
147
- - [charts] Allow zoom on Y axis and add zoom options to configure zooming behaviour (unreleased) (#13726) @JCQuintas
320
+ - [charts] Improve zoomed highlight behavior (unreleased) (#13868) @JCQuintas
321
+ - [charts] Allow zoom on Y axis and add zoom options to configure zooming behavior (unreleased) (#13726) @JCQuintas
148
322
  - [charts] Disable animations while zooming (unreleased) (#13807) @JCQuintas
149
323
 
150
324
  ### Tree View
@@ -617,7 +791,7 @@ Same changes as in `@mui/x-date-pickers@7.6.2`.
617
791
 
618
792
  #### `@mui/x-charts@7.6.2`
619
793
 
620
- - [charts] Add `Initializable` type and behaviour to allow checking if a complex context has been initialized. (#13365) @JCQuintas
794
+ - [charts] Add `Initializable` type and behavior to allow checking if a complex context has been initialized. (#13365) @JCQuintas
621
795
  - [charts] Fix some props not working in `xAxis` and `yAxis` (#13372) @Valyok26
622
796
  - [charts] Harmonize charts types (#13366) @alexfauquette
623
797
  - [charts] Introduce plugins system (#13367) @alexfauquette
@@ -625,7 +799,7 @@ Same changes as in `@mui/x-date-pickers@7.6.2`.
625
799
 
626
800
  ### Docs
627
801
 
628
- - [docs] Add badges like in Material UI @oliviertassinari
802
+ - [docs] Add badges like in Material UI @oliviertassinari
629
803
  - [docs] Update twitter.com to x.com @oliviertassinari
630
804
  - [docs] Fix the description of `tickInterval` (#13355) @alexfauquette
631
805
  - [docs] Adjust the code example for `quickFilterValues` (#12919) @michelengelen
@@ -7,7 +7,8 @@ import PropTypes from 'prop-types';
7
7
  import clsx from 'clsx';
8
8
  import useEventCallback from '@mui/utils/useEventCallback';
9
9
  import useMediaQuery from '@mui/material/useMediaQuery';
10
- import { resolveComponentProps, useSlotProps } from '@mui/base/utils';
10
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
11
+ import useSlotProps from '@mui/utils/useSlotProps';
11
12
  import { styled, useThemeProps } from '@mui/material/styles';
12
13
  import composeClasses from '@mui/utils/composeClasses';
13
14
  import useId from '@mui/utils/useId';
@@ -576,10 +577,12 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
576
577
  loading: PropTypes.bool,
577
578
  /**
578
579
  * Maximal selectable date.
580
+ * @default 2099-12-31
579
581
  */
580
582
  maxDate: PropTypes.object,
581
583
  /**
582
584
  * Minimal selectable date.
585
+ * @default 1900-01-01
583
586
  */
584
587
  minDate: PropTypes.object,
585
588
  /**
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { SlotComponentProps } from '@mui/base/utils';
3
+ import { SlotComponentProps } from '@mui/utils';
4
4
  import { Theme } from '@mui/material/styles';
5
5
  import { PickerValidDate, TimezoneProps } from '@mui/x-date-pickers/models';
6
6
  import { PickersCalendarHeader, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps } from '@mui/x-date-pickers/PickersCalendarHeader';
@@ -176,10 +176,12 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
176
176
  localeText: PropTypes.object,
177
177
  /**
178
178
  * Maximal selectable date.
179
+ * @default 2099-12-31
179
180
  */
180
181
  maxDate: PropTypes.object,
181
182
  /**
182
183
  * Minimal selectable date.
184
+ * @default 1900-01-01
183
185
  */
184
186
  minDate: PropTypes.object,
185
187
  /**
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import Typography from '@mui/material/Typography';
8
8
  import { styled, useThemeProps } from '@mui/material/styles';
9
- import { unstable_composeClasses as composeClasses } from '@mui/utils';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import { PickersToolbar, PickersToolbarButton, useUtils } from '@mui/x-date-pickers/internals';
11
11
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
12
12
  import { getDateRangePickerToolbarUtilityClass } from './dateRangePickerToolbarClasses';
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { useLicenseVerifier } from '@mui/x-license';
8
8
  import { alpha, styled, useThemeProps } from '@mui/material/styles';
9
- import { unstable_composeClasses as composeClasses } from '@mui/utils';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import { useUtils } from '@mui/x-date-pickers/internals';
11
11
  import { PickersDay } from '@mui/x-date-pickers/PickersDay';
12
12
  import { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from './dateRangePickerDayClasses';
@@ -186,6 +186,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
186
186
  localeText: PropTypes.object,
187
187
  /**
188
188
  * Maximal selectable date.
189
+ * @default 2099-12-31
189
190
  */
190
191
  maxDate: PropTypes.object,
191
192
  /**
@@ -199,6 +200,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
199
200
  maxTime: PropTypes.object,
200
201
  /**
201
202
  * Minimal selectable date.
203
+ * @default 1900-01-01
202
204
  */
203
205
  minDate: PropTypes.object,
204
206
  /**
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { styled, useThemeProps } from '@mui/material/styles';
8
- import { unstable_composeClasses as composeClasses } from '@mui/utils';
8
+ import composeClasses from '@mui/utils/composeClasses';
9
9
  import { useUtils } from '@mui/x-date-pickers/internals';
10
10
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
11
11
  import { DateTimePickerToolbar } from '@mui/x-date-pickers/DateTimePicker';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
- import { resolveComponentProps } from '@mui/base/utils';
5
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
6
6
  import { refType } from '@mui/utils';
7
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
8
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
@@ -181,10 +181,12 @@ DesktopDateRangePicker.propTypes = {
181
181
  localeText: PropTypes.object,
182
182
  /**
183
183
  * Maximal selectable date.
184
+ * @default 2099-12-31
184
185
  */
185
186
  maxDate: PropTypes.object,
186
187
  /**
187
188
  * Minimal selectable date.
189
+ * @default 1900-01-01
188
190
  */
189
191
  minDate: PropTypes.object,
190
192
  /**
@@ -4,7 +4,7 @@ const _excluded = ["openTo", "rangePosition"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { extractValidationProps, isDatePickerView, isInternalTimeView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
7
- import { resolveComponentProps } from '@mui/base/utils';
7
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
8
8
  import { refType } from '@mui/utils';
9
9
  import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';
10
10
  import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '@mui/x-date-pickers/MultiSectionDigitalClock';
@@ -266,6 +266,7 @@ DesktopDateTimeRangePicker.propTypes = {
266
266
  localeText: PropTypes.object,
267
267
  /**
268
268
  * Maximal selectable date.
269
+ * @default 2099-12-31
269
270
  */
270
271
  maxDate: PropTypes.object,
271
272
  /**
@@ -279,6 +280,7 @@ DesktopDateTimeRangePicker.propTypes = {
279
280
  maxTime: PropTypes.object,
280
281
  /**
281
282
  * Minimal selectable date.
283
+ * @default 1900-01-01
282
284
  */
283
285
  minDate: PropTypes.object,
284
286
  /**
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
5
- import { resolveComponentProps } from '@mui/base/utils';
5
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
6
6
  import { refType } from '@mui/utils';
7
7
  import { rangeValueManager } from '../internals/utils/valueManagers';
8
8
  import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
@@ -177,10 +177,12 @@ MobileDateRangePicker.propTypes = {
177
177
  localeText: PropTypes.object,
178
178
  /**
179
179
  * Maximal selectable date.
180
+ * @default 2099-12-31
180
181
  */
181
182
  maxDate: PropTypes.object,
182
183
  /**
183
184
  * Minimal selectable date.
185
+ * @default 1900-01-01
184
186
  */
185
187
  minDate: PropTypes.object,
186
188
  /**
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { refType } from '@mui/utils';
7
7
  import { DIALOG_WIDTH, VIEW_HEIGHT, extractValidationProps, isInternalTimeView, isDatePickerView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
8
- import { resolveComponentProps } from '@mui/base/utils';
8
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
9
9
  import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';
10
10
  import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '@mui/x-date-pickers/MultiSectionDigitalClock';
11
11
  import { digitalClockClasses } from '@mui/x-date-pickers/DigitalClock';
@@ -260,6 +260,7 @@ MobileDateTimeRangePicker.propTypes = {
260
260
  localeText: PropTypes.object,
261
261
  /**
262
262
  * Maximal selectable date.
263
+ * @default 2099-12-31
263
264
  */
264
265
  maxDate: PropTypes.object,
265
266
  /**
@@ -273,6 +274,7 @@ MobileDateTimeRangePicker.propTypes = {
273
274
  maxTime: PropTypes.object,
274
275
  /**
275
276
  * Minimal selectable date.
277
+ * @default 1900-01-01
276
278
  */
277
279
  minDate: PropTypes.object,
278
280
  /**
@@ -8,7 +8,7 @@ import Stack from '@mui/material/Stack';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import Typography from '@mui/material/Typography';
10
10
  import { styled, useThemeProps } from '@mui/material/styles';
11
- import { useSlotProps } from '@mui/base/utils';
11
+ import useSlotProps from '@mui/utils/useSlotProps';
12
12
  import { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
13
13
  import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
14
14
  import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
@@ -190,10 +190,12 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
190
190
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
191
191
  /**
192
192
  * Maximal selectable date.
193
+ * @default 2099-12-31
193
194
  */
194
195
  maxDate: PropTypes.object,
195
196
  /**
196
197
  * Minimal selectable date.
198
+ * @default 1900-01-01
197
199
  */
198
200
  minDate: PropTypes.object,
199
201
  /**
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { PickerValidDate } from '@mui/x-date-pickers/models';
3
- import { SlotComponentProps } from '@mui/base/utils';
3
+ import { SlotComponentProps } from '@mui/utils';
4
4
  import Typography from '@mui/material/Typography';
5
5
  import Stack, { StackProps } from '@mui/material/Stack';
6
6
  import TextField from '@mui/material/TextField';
@@ -8,7 +8,7 @@ import Stack from '@mui/material/Stack';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import Typography from '@mui/material/Typography';
10
10
  import { styled, useThemeProps } from '@mui/material/styles';
11
- import { useSlotProps } from '@mui/base/utils';
11
+ import useSlotProps from '@mui/utils/useSlotProps';
12
12
  import { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
13
13
  import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
14
14
  import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
@@ -200,6 +200,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
200
200
  formatDensity: PropTypes.oneOf(['dense', 'spacious']),
201
201
  /**
202
202
  * Maximal selectable date.
203
+ * @default 2099-12-31
203
204
  */
204
205
  maxDate: PropTypes.object,
205
206
  /**
@@ -213,6 +214,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
213
214
  maxTime: PropTypes.object,
214
215
  /**
215
216
  * Minimal selectable date.
217
+ * @default 1900-01-01
216
218
  */
217
219
  minDate: PropTypes.object,
218
220
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
2
+ import { SlotComponentProps } from '@mui/utils';
3
3
  import Typography from '@mui/material/Typography';
4
4
  import Stack, { StackProps } from '@mui/material/Stack';
5
5
  import TextField from '@mui/material/TextField';
@@ -8,7 +8,7 @@ import Stack from '@mui/material/Stack';
8
8
  import MuiTextField from '@mui/material/TextField';
9
9
  import Typography from '@mui/material/Typography';
10
10
  import { styled, useThemeProps } from '@mui/material/styles';
11
- import { useSlotProps } from '@mui/base/utils';
11
+ import useSlotProps from '@mui/utils/useSlotProps';
12
12
  import { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
13
13
  import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
14
14
  import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
2
+ import { SlotComponentProps } from '@mui/utils';
3
3
  import Typography from '@mui/material/Typography';
4
4
  import Stack, { StackProps } from '@mui/material/Stack';
5
5
  import TextField from '@mui/material/TextField';
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import MuiTextField from '@mui/material/TextField';
7
7
  import { useThemeProps } from '@mui/material/styles';
8
- import { useSlotProps } from '@mui/base/utils';
8
+ import useSlotProps from '@mui/utils/useSlotProps';
9
9
  import { refType } from '@mui/utils';
10
10
  import { useClearableField } from '@mui/x-date-pickers/hooks';
11
11
  import { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
@@ -180,10 +180,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
180
180
  margin: PropTypes.oneOf(['dense', 'none', 'normal']),
181
181
  /**
182
182
  * Maximal selectable date.
183
+ * @default 2099-12-31
183
184
  */
184
185
  maxDate: PropTypes.object,
185
186
  /**
186
187
  * Minimal selectable date.
188
+ * @default 1900-01-01
187
189
  */
188
190
  minDate: PropTypes.object,
189
191
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
2
+ import { SlotComponentProps } from '@mui/utils';
3
3
  import TextField from '@mui/material/TextField';
4
4
  import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
5
5
  import { BuiltInFieldTextFieldProps, PickerValidDate } from '@mui/x-date-pickers/models';
@@ -8,7 +8,7 @@ import { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/i
8
8
  import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import { refType } from '@mui/utils';
11
- import { useSlotProps } from '@mui/base/utils';
11
+ import useSlotProps from '@mui/utils/useSlotProps';
12
12
  import { useClearableField } from '@mui/x-date-pickers/hooks';
13
13
  import { useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -190,6 +190,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
190
190
  margin: PropTypes.oneOf(['dense', 'none', 'normal']),
191
191
  /**
192
192
  * Maximal selectable date.
193
+ * @default 2099-12-31
193
194
  */
194
195
  maxDate: PropTypes.object,
195
196
  /**
@@ -203,6 +204,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
203
204
  maxTime: PropTypes.object,
204
205
  /**
205
206
  * Minimal selectable date.
207
+ * @default 1900-01-01
206
208
  */
207
209
  minDate: PropTypes.object,
208
210
  /**
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
2
+ import { SlotComponentProps } from '@mui/utils';
3
3
  import TextField from '@mui/material/TextField';
4
4
  import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
5
5
  import { BuiltInFieldTextFieldProps, PickerValidDate } from '@mui/x-date-pickers/models';
@@ -8,7 +8,7 @@ import { useClearableField } from '@mui/x-date-pickers/hooks';
8
8
  import { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
9
9
  import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
10
10
  import { useThemeProps } from '@mui/material/styles';
11
- import { useSlotProps } from '@mui/base/utils';
11
+ import useSlotProps from '@mui/utils/useSlotProps';
12
12
  import { refType } from '@mui/utils';
13
13
  import { useSingleInputTimeRangeField } from './useSingleInputTimeRangeField';
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
2
+ import { SlotComponentProps } from '@mui/utils';
3
3
  import TextField from '@mui/material/TextField';
4
4
  import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
5
5
  import { PickerValidDate, BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
@@ -145,10 +145,12 @@ StaticDateRangePicker.propTypes = {
145
145
  localeText: PropTypes.object,
146
146
  /**
147
147
  * Maximal selectable date.
148
+ * @default 2099-12-31
148
149
  */
149
150
  maxDate: PropTypes.object,
150
151
  /**
151
152
  * Minimal selectable date.
153
+ * @default 1900-01-01
152
154
  */
153
155
  minDate: PropTypes.object,
154
156
  /**
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.11.1
2
+ * @mui/x-date-pickers-pro v7.12.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["props"];
4
4
  import * as React from 'react';
5
- import { useSlotProps } from '@mui/base/utils';
5
+ import useSlotProps from '@mui/utils/useSlotProps';
6
6
  import { useLicenseVerifier } from '@mui/x-license';
7
7
  import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
8
8
  import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import Stack, { StackProps } from '@mui/material/Stack';
3
3
  import Typography, { TypographyProps } from '@mui/material/Typography';
4
4
  import TextField from '@mui/material/TextField';
5
- import { SlotComponentProps } from '@mui/base/utils';
5
+ import { SlotComponentProps } from '@mui/utils';
6
6
  import { BaseSingleInputFieldProps, FieldRef, PickerValidDate } from '@mui/x-date-pickers/models';
7
7
  import { UseClearableFieldSlots, UseClearableFieldSlotProps } from '@mui/x-date-pickers/hooks';
8
8
  import { PickersInputLocaleText } from '@mui/x-date-pickers/locales';
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["clearable", "onClear"];
4
4
  import * as React from 'react';
5
- import { resolveComponentProps } from '@mui/base/utils';
5
+ import resolveComponentProps from '@mui/utils/resolveComponentProps';
6
6
  import useEventCallback from '@mui/utils/useEventCallback';
7
7
  import useForkRef from '@mui/utils/useForkRef';
8
8
  import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["props"];
4
4
  import * as React from 'react';
5
- import { useSlotProps } from '@mui/base/utils';
5
+ import useSlotProps from '@mui/utils/useSlotProps';
6
6
  import { useLicenseVerifier } from '@mui/x-license';
7
7
  import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
8
8
  import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyMTg0NzYwMDAwMA==";
3
+ const releaseInfo = "MTcyMzE1NDQwMDAwMA==";
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