@mui/x-date-pickers-pro 7.11.0 → 7.12.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 (77) hide show
  1. package/CHANGELOG.md +194 -4
  2. package/DateRangeCalendar/DateRangeCalendar.js +6 -4
  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 +6 -4
  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 +7 -5
  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 +6 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,196 @@
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.0
7
+
8
+ _Aug 1, 2024_
9
+
10
+ ### 💵 Our commercial offering is evolving
11
+
12
+ The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving two new packages:
13
+
14
+ - `@mui/x-tree-view-pro` (available today!)
15
+ - `@mui/x-charts-pro` (available in the coming weeks)
16
+
17
+ As always, every feature released as part of the MIT plan will remain free and MIT licensed forever.
18
+
19
+ 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.
20
+
21
+ ### Highlights
22
+
23
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
24
+
25
+ - 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component
26
+
27
+ <img width="384" src="https://github.com/user-attachments/assets/78bd83c5-7ce4-4ed7-acf9-be70b2dbce54" alt="Item reordering using drag and drop" />
28
+
29
+ - 📦 Support Common JS bundle out of the box on `@mui/x-charts` by adding vendored D3 dependencies.
30
+
31
+ - 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.
32
+ - For more context, the initial issue is caused by D3 only exporting ESM.
33
+
34
+ ![image](https://github.com/user-attachments/assets/d705b4de-0c93-420e-a416-528e7a044c1d)
35
+
36
+ - The solution up until now was to export charts with only ESM. But some frameworks are confused by this configuration.
37
+
38
+ ![image](https://github.com/user-attachments/assets/18a09703-9dd4-4226-a33d-167af059219c)
39
+
40
+ - So in order to fix this, we are providing a CJS version of D3.
41
+
42
+ ![image](https://github.com/user-attachments/assets/56387fe6-85d8-4750-bb9d-9866d5be68fa)
43
+
44
+ - 🌍 Improve Turkish (tr-TR) locale on the Data Grid
45
+ - 🌍 Improve Finnish (fi-FI) locale on the Date and Time Pickers
46
+ - 🐞 Bugfixes
47
+ - 📚 Documentation improvements
48
+
49
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
50
+
51
+ ### Data Grid
52
+
53
+ #### `@mui/x-data-grid@7.12.0`
54
+
55
+ - [DataGrid] Fix crash when updating columns immediately after scrolling (#13781) @cherniavskii
56
+ - [DataGrid] Fix `role=presentation` a11y issue (#13891) @romgrk
57
+ - [DataGrid] Fix top corner pixels & outline radius (#13943) @romgrk
58
+ - [DataGrid] Refactor: remove useless copy (#14039) @romgrk
59
+ - [l10n] Improve Turkish (tr-TR) locale (#13996) @bagcivan
60
+
61
+ #### `@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')
62
+
63
+ Same changes as in `@mui/x-data-grid@7.12.0`.
64
+
65
+ #### `@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')
66
+
67
+ Same changes as in `@mui/x-data-grid-pro@7.12.0`.
68
+
69
+ ### Date and Time Pickers
70
+
71
+ #### `@mui/x-date-pickers@7.12.0`
72
+
73
+ - [l10n] Improve Finnish (fi-FI) locale (#14054) @frozenzia
74
+
75
+ #### `@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')
76
+
77
+ Same changes as in `@mui/x-date-pickers@7.12.0`.
78
+
79
+ ### Charts
80
+
81
+ #### `@mui/x-charts@7.12.0`
82
+
83
+ - [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas
84
+ - [charts] Use vendor to have Common JS bundle working out of the box (#13608) @alexfauquette
85
+ - [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas
86
+
87
+ ### Tree View
88
+
89
+ #### `@mui/x-tree-view@7.12.0`
90
+
91
+ - [TreeView] Add new prop `onItemClick` on the Tree View components (#14018) @flaviendelangle
92
+ - [TreeView] Add new utility function `isEventTargetInDescendants` (#13982) @flaviendelangle
93
+ - [TreeView] Support item reordering using drag and drop (#12213) @flaviendelangle
94
+
95
+ ### Docs
96
+
97
+ - [docs] Add Pickers `minDate` and `maxDate` `default` description (#14024) @LukasTy
98
+ - [docs] Fix 404 (#13989) @alexfauquette
99
+ - [docs] Fix Vale errors (#14025) @oliviertassinari
100
+ - [docs] Update on `renderCell` & autogenerated rows (#13879) @romgrk
101
+
102
+ ### Core
103
+
104
+ - [core] Fix event naming convention @oliviertassinari
105
+ - [core] Replace @mui/base with @mui/utils + @mui/material (#13823) @mnajdova
106
+ - [core] Test `charts` performance with codspeed (#13952) @JCQuintas
107
+ - [infra] Consolidate issue cleanup and support labeling action (#14031) @michelengelen
108
+ - [infra] Revert `vale` action `paths` filtering (#14038) @LukasTy
109
+ - [test] Fix adapters code coverage (#13969) @alexfauquette
110
+ - [test] Fix mocha config to run charts tests (#14041) @alexfauquette
111
+
112
+ ## 7.11.1
113
+
114
+ _Jul 25, 2024_
115
+
116
+ We'd like to offer a big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
117
+
118
+ - 🔎 Allow `Zoom` to be controllable for charts (#13858) @JCQuintas
119
+ - 🌍 Add Icelandic (is-IS) and Norwegian Nynorsk (nn-NO) locales on the Data Grid
120
+ - 🌍 Improve Norwegian Bokmål (nb-NO) and German (de-DE) locales on the Data Grid
121
+ - 🌍 Add Norwegian Nynorsk (nn-NO) locale on the Date and Time Pickers
122
+ - 🐞 Bugfixes
123
+ - 📚 Documentation improvements
124
+
125
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
126
+
127
+ ### Data Grid
128
+
129
+ #### `@mui/x-data-grid@7.11.1`
130
+
131
+ - [DataGrid] Remove dead code in internal `GridPreferencesPanel` (#13934) @k-rajat19
132
+ - [DataGrid] Do not miss to escape formulas in CSV export (#13888) @arminmeh
133
+ - [l10n] Add Icelandic (is-IS) locale (#13283) @magnimarels
134
+ - [l10n] Add Norwegian nynorsk (nn-NO) locale and improve Norwegian bokmål (nb-NO) locale (#13588) @AnderzL7
135
+ - [l10n] Improve German (de-DE) locale (#13910) @lhilgert9
136
+
137
+ #### `@mui/x-data-grid-pro@7.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
138
+
139
+ Same changes as in `@mui/x-data-grid@7.11.1`.
140
+
141
+ #### `@mui/x-data-grid-premium@7.11.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
142
+
143
+ Same changes as in `@mui/x-data-grid-pro@7.11.1`, plus:
144
+
145
+ - [DataGridPremium] Pass the `api` object to events (#13893) @pcorpet
146
+ - [DataGridPremium] Fix paste to selected cells (#13967) @romgrk
147
+
148
+ ### Date and Time Pickers
149
+
150
+ #### `@mui/x-date-pickers@7.11.1`
151
+
152
+ - [fields] Prevent keyboard editing when disabled (#13900) @arthurbalduini
153
+ - [l10n] Add Norwegian Nynorsk (nn-NO) locale (#13946) @AnderzL7
154
+
155
+ #### `@mui/x-date-pickers-pro@7.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
156
+
157
+ Same changes as in `@mui/x-date-pickers@7.11.1`.
158
+
159
+ ### Charts
160
+
161
+ #### `@mui/x-charts@7.11.1`
162
+
163
+ - [charts] Add `ownerState` function to `slotProps` typing when available (#13965) @alexfauquette
164
+ - [charts] Allow `Zoom` to be controllable (#13858) @JCQuintas
165
+ - [charts] Deprecate `xAxisKey` /`zAxisKey` in favor of `xAxisId`/`zAxisId` (#13940) @alexfauquette
166
+ - [charts] Hide empty arcs in the PieChart (#13897) @alexfauquette
167
+ - [charts] Limit the trigger of exit charts (#13682) @alexfauquette
168
+
169
+ ### Tree View
170
+
171
+ #### `@mui/x-tree-view@7.11.1`
172
+
173
+ - [TreeView] Allow the plugins to enrich the props passed to the item slots (#13953) @flaviendelangle
174
+
175
+ ### Docs
176
+
177
+ - [docs] Bump pnpm priority as a package manager (#13894) @oliviertassinari
178
+ - [docs] Explicitly mark charts pro as not released (#13905) @alexfauquette
179
+ - [docs] Fix dot consistency a11y table @oliviertassinari
180
+ - [docs] Fix some typos in charts docs (#13906) @cratiu222
181
+ - [docs] Fix spelling (#13902) @nnsW3
182
+ - [docs] Improve error message when moving between plans (#13874) @oliviertassinari
183
+ - [docs] Update `SparkLineChart` reference not being correctly capitalised (#13960) @duckboy81
184
+ - [docs] Fix scroll demos disorientation (#13909) @oliviertassinari
185
+
186
+ ### Core
187
+
188
+ - [core] Add `@mui/material-nextjs` to `MUI Core` renovate group (#13966) @LukasTy
189
+ - [core] Remove warning message in production (#13911) @oliviertassinari
190
+ - [code-infra] Reuse `useReactVersion` script from the monorepo (#13710) @cherniavskii
191
+ - [infra] Adds order id validation action (#13957) @michelengelen
192
+ - [infra] Fix order id validator action (#13971) @michelengelen
193
+ - [infra] Fix regex in order id validation (#13976) @michelengelen
194
+ - [infra] Issue template improvement (#13954) @michelengelen
195
+
6
196
  ## 7.11.0
7
197
 
8
198
  _Jul 18, 2024_
@@ -59,8 +249,8 @@ Same changes as in `@mui/x-date-pickers@7.11.0`, plus:
59
249
  - [charts] Defaultize axis on top level `useChartContainerProps` (#13817) @JCQuintas
60
250
  - [charts] Fix charts not passing `className` to root element (#13647) @JCQuintas
61
251
  - [charts] Generate API documentation for pro components (#13822) @alexfauquette
62
- - [charts] Improve zoomed highlight behaviour (unreleased) (#13868) @JCQuintas
63
- - [charts] Allow zoom on Y axis and add zoom options to configure zooming behaviour (unreleased) (#13726) @JCQuintas
252
+ - [charts] Improve zoomed highlight behavior (unreleased) (#13868) @JCQuintas
253
+ - [charts] Allow zoom on Y axis and add zoom options to configure zooming behavior (unreleased) (#13726) @JCQuintas
64
254
  - [charts] Disable animations while zooming (unreleased) (#13807) @JCQuintas
65
255
 
66
256
  ### Tree View
@@ -533,7 +723,7 @@ Same changes as in `@mui/x-date-pickers@7.6.2`.
533
723
 
534
724
  #### `@mui/x-charts@7.6.2`
535
725
 
536
- - [charts] Add `Initializable` type and behaviour to allow checking if a complex context has been initialized. (#13365) @JCQuintas
726
+ - [charts] Add `Initializable` type and behavior to allow checking if a complex context has been initialized. (#13365) @JCQuintas
537
727
  - [charts] Fix some props not working in `xAxis` and `yAxis` (#13372) @Valyok26
538
728
  - [charts] Harmonize charts types (#13366) @alexfauquette
539
729
  - [charts] Introduce plugins system (#13367) @alexfauquette
@@ -541,7 +731,7 @@ Same changes as in `@mui/x-date-pickers@7.6.2`.
541
731
 
542
732
  ### Docs
543
733
 
544
- - [docs] Add badges like in Material UI @oliviertassinari
734
+ - [docs] Add badges like in Material UI @oliviertassinari
545
735
  - [docs] Update twitter.com to x.com @oliviertassinari
546
736
  - [docs] Fix the description of `tickInterval` (#13355) @alexfauquette
547
737
  - [docs] Adjust the code example for `quickFilterValues` (#12919) @michelengelen
@@ -7,12 +7,13 @@ 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';
14
15
  import { Watermark } from '@mui/x-license';
15
- import { applyDefaultDate, DayCalendar, useDefaultReduceAnimations, useCalendarState, useDefaultDates, useUtils, useNow, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone, useViews } from '@mui/x-date-pickers/internals';
16
+ import { applyDefaultDate, DayCalendar, useDefaultReduceAnimations, useCalendarState, useDefaultDates, useUtils, useNow, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, warnOnce, useControlledValueWithTimezone, useViews } from '@mui/x-date-pickers/internals';
16
17
  import { getReleaseInfo } from '../internals/utils/releaseInfo';
17
18
  import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from './dateRangeCalendarClasses';
18
19
  import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from '../internals/utils/date-utils';
@@ -45,7 +46,6 @@ const DateRangeCalendarMonthContainer = styled('div', {
45
46
  }
46
47
  }));
47
48
  const weeksContainerHeight = (DAY_RANGE_SIZE + DAY_MARGIN * 2) * 6;
48
- const warnInvalidCurrentMonthCalendarPosition = buildWarning(['The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.', 'For example if you have 2 calendars rendered, it should be equal to either 1 or 2.']);
49
49
  const DayCalendarForRange = styled(DayCalendar)(({
50
50
  theme
51
51
  }) => ({
@@ -402,7 +402,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
402
402
  const visibleMonths = React.useMemo(() => {
403
403
  if (process.env.NODE_ENV !== 'production') {
404
404
  if (currentMonthCalendarPosition > calendars || currentMonthCalendarPosition < 1) {
405
- warnInvalidCurrentMonthCalendarPosition();
405
+ warnOnce(['MUI X: The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.', 'For example if you have 2 calendars rendered, it should be equal to either 1 or 2.']);
406
406
  }
407
407
  }
408
408
  const firstMonth = utils.addMonths(calendarState.currentMonth, 1 - currentMonthCalendarPosition);
@@ -577,10 +577,12 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
577
577
  loading: PropTypes.bool,
578
578
  /**
579
579
  * Maximal selectable date.
580
+ * @default 2099-12-31
580
581
  */
581
582
  maxDate: PropTypes.object,
582
583
  /**
583
584
  * Minimal selectable date.
585
+ * @default 1900-01-01
584
586
  */
585
587
  minDate: PropTypes.object,
586
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.0
2
+ * @mui/x-date-pickers-pro v7.12.0
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';