@mui/x-date-pickers-pro 6.10.2 → 6.11.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 (47) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/DateRangeCalendar/DateRangeCalendar.d.ts +1 -1
  3. package/DateRangeCalendar/DateRangeCalendar.js +3 -1
  4. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +3 -2
  5. package/DateRangePicker/DateRangePicker.d.ts +1 -1
  6. package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -1
  7. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -1
  8. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -1
  9. package/MobileDateRangePicker/MobileDateRangePicker.js +1 -4
  10. package/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +1 -1
  11. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +1 -1
  12. package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +1 -1
  13. package/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +1 -1
  14. package/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  15. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +1 -1
  16. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  17. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +1 -1
  18. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  19. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +1 -1
  20. package/index.js +1 -1
  21. package/internals/utils/releaseInfo.js +1 -1
  22. package/internals/utils/valueManagers.js +2 -2
  23. package/legacy/DateRangeCalendar/DateRangeCalendar.js +3 -1
  24. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +1 -6
  25. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  26. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  27. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  28. package/legacy/index.js +1 -1
  29. package/legacy/internals/utils/releaseInfo.js +1 -1
  30. package/legacy/internals/utils/valueManagers.js +2 -2
  31. package/modern/DateRangeCalendar/DateRangeCalendar.js +3 -1
  32. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -4
  33. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  34. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  35. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  36. package/modern/index.js +1 -1
  37. package/modern/internals/utils/releaseInfo.js +1 -1
  38. package/modern/internals/utils/valueManagers.js +2 -2
  39. package/node/DateRangeCalendar/DateRangeCalendar.js +4 -2
  40. package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -4
  41. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +2 -2
  42. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +2 -2
  43. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +2 -2
  44. package/node/index.js +1 -1
  45. package/node/internals/utils/releaseInfo.js +1 -1
  46. package/node/internals/utils/valueManagers.js +2 -2
  47. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,98 @@
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.11.0
7
+
8
+ _Aug 4, 2023_
9
+
10
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ⌚️ Move the tree view component from `@mui/lab` package
13
+
14
+ The `<TreeView />` component has been moved to the MUI X repository.
15
+ It is now accessible from its own package: `@mui/x-tree-view`.
16
+
17
+ - 🌍 Improve Hebrew (he-IL), Finnish (fi-FI), and Italian (it-IT) locales on the data grid
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@v6.11.0`
24
+
25
+ - [DataGrid] Add `ariaV7` experimental flag (#9496) @cherniavskii
26
+ - [DataGrid] Fix cell size when column width is set to `undefined` (#9871) @gitstart
27
+ - [l10n] Improve Hebrew (he-IL) locale (#9820) @itayG98
28
+ - [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
29
+ - [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
30
+
31
+ #### `@mui/x-data-grid-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
32
+
33
+ Same changes as in `@mui/x-data-grid@v6.11.0`.
34
+
35
+ #### `@mui/x-data-grid-premium@v6.11.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
36
+
37
+ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
38
+
39
+ ### Date Pickers
40
+
41
+ #### `@mui/x-date-pickers@v6.11.0`
42
+
43
+ - [fields] Correctly handle events with a complete value insertion (#9896) @LukasTy
44
+ - [fields] Fix hours editing on dayjs with timezone and DST (#9901) @flaviendelangle
45
+ - [fields] Fix section clearing with timezone (#9819) @flaviendelangle
46
+ - [pickers] Add `CalendarHeader` slot (#7784) @flaviendelangle
47
+ - [pickers] Allow to override the `InputProps` of the `TextField` using the `slotProps` (#9849) @flaviendelangle
48
+ - [pickers] Allow to override the opening aria text using the `localeText` prop on the pickers (#9870) @flaviendelangle
49
+ - [pickers] Fix `sx` and `className` props on `MobileDateRangePicker` (#9853) @flaviendelangle
50
+ - [pickers] Fix default descriptions (#9887) @LukasTy
51
+ - [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
52
+ - [pickers] Use device motion reduction preference (#9823) @LukasTy
53
+
54
+ #### `@mui/x-date-pickers-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
55
+
56
+ Same changes as in `@mui/x-date-pickers@v6.11.0`.
57
+
58
+ ### Charts / `@mui/x-charts@v6.0.0-alpha.6`
59
+
60
+ - [charts] Add TS definition to the exported elements (#9885) @alexfauquette
61
+ - [charts] Add sparkline (#9662) @alexfauquette
62
+ - [charts] Fix missing configuration types (#9886) @alexfauquette
63
+ - [charts] Introduce dataset to simplify plot of data from API (#9774) @alexfauquette
64
+
65
+ ### Tree View / `@mui/x-tree-view@v6.0.0-alpha.0`
66
+
67
+ - [TreeView] Add missing exported types (#9862) @flaviendelangle
68
+ - [TreeView] Add tree view to changelog generator script (#9903) @MBilalShafi
69
+ - [TreeView] Create the package on the X repository (#9798) @flaviendelangle
70
+ - [TreeView] Improve props typing (#9855) @flaviendelangle
71
+
72
+ ### Docs
73
+
74
+ - [docs] Add Tree View doc (#9825) @flaviendelangle
75
+ - [docs] Add charts nav item (#9821) @LukasTy
76
+ - [docs] Add charts to MUI X introduction pages (#9704) @joserodolfofreitas
77
+ - [docs] Add example for avoiding picker views layout shift (#9781) @noraleonte
78
+ - [docs] Consistency of Next.js App Router @oliviertassinari
79
+ - [docs] Fix API page regression: bring back slots section (#9866) @alexfauquette
80
+ - [docs] Fix demo using Pro while it's MIT (#9842) @oliviertassinari
81
+ - [docs] Get ready for next docs-infra change @oliviertassinari
82
+ - [docs] Improve the slots documentation `Recommended usage` section (#9892) @flaviendelangle
83
+
84
+ ### Core
85
+
86
+ - [core] Fix font loading issue dev-mode (#9843) @oliviertassinari
87
+ - [core] Fix pipeline (#9894) @LukasTy
88
+ - [core] Fix the link-check script on Windows (#9888) @alexfauquette
89
+ - [core] Fix v7 capitalization (#9878) @oliviertassinari
90
+ - [core] Regen doc (#9902) @flaviendelangle
91
+ - [core] Remove benchmark package (#9413) @LukasTy
92
+ - [core] Stop using the deprecated `JSX` global namespace (#9854) @flaviendelangle
93
+ - [core] Update monorepo (#9846) @flaviendelangle
94
+ - [core] Update tree data API docs (#9827) @cherniavskii
95
+ - [test] Add pickers e2e tests (#9747) @LukasTy
96
+ - [test] Data grid e2e tests follow-up (#9822) @cherniavskii
97
+
6
98
  ## 6.10.2
7
99
 
8
100
  _Jul 27, 2023_
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DateRangeCalendarProps } from './DateRangeCalendar.types';
3
- type DateRangeCalendarComponent = (<TDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ type DateRangeCalendarComponent = (<TDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const DateRangeCalendar: DateRangeCalendarComponent;
@@ -11,7 +11,8 @@ import { resolveComponentProps } from '@mui/base/utils';
11
11
  import { styled, useThemeProps } from '@mui/material/styles';
12
12
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
13
13
  import { Watermark } from '@mui/x-license-pro';
14
- import { applyDefaultDate, DAY_MARGIN, DayCalendar, defaultReduceAnimations, PickersArrowSwitcher, PickersCalendarHeader, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, uncapitalizeObjectKeys, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone } from '@mui/x-date-pickers/internals';
14
+ import { PickersCalendarHeader } from '@mui/x-date-pickers/PickersCalendarHeader';
15
+ import { applyDefaultDate, DAY_MARGIN, DayCalendar, useDefaultReduceAnimations, PickersArrowSwitcher, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, uncapitalizeObjectKeys, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone } from '@mui/x-date-pickers/internals';
15
16
  import { getReleaseInfo } from '../internals/utils/releaseInfo';
16
17
  import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from './dateRangeCalendarClasses';
17
18
  import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from '../internals/utils/date-utils';
@@ -77,6 +78,7 @@ function useDateRangeCalendarDefaultizedProps(props, name) {
77
78
  var _themeProps$renderLoa, _themeProps$reduceAni, _props$loading, _props$disablePast, _props$disableFuture, _themeProps$calendars, _themeProps$disableDr;
78
79
  const utils = useUtils();
79
80
  const defaultDates = useDefaultDates();
81
+ const defaultReduceAnimations = useDefaultReduceAnimations();
80
82
  const themeProps = useThemeProps({
81
83
  props,
82
84
  name
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { SlotComponentProps } from '@mui/base';
3
+ import { SlotComponentProps } from '@mui/base/utils';
4
4
  import { Theme } from '@mui/material/styles';
5
5
  import { TimezoneProps } from '@mui/x-date-pickers/models';
6
- import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlotsComponent, DayCalendarSlotsComponentsProps, PickersArrowSwitcherSlotsComponent, PickersArrowSwitcherSlotsComponentsProps, PickerSelectionState, PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps, DayCalendarProps, ExportedUseViewsOptions, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
6
+ import { PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps } from '@mui/x-date-pickers/PickersCalendarHeader';
7
+ import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlotsComponent, DayCalendarSlotsComponentsProps, PickersArrowSwitcherSlotsComponent, PickersArrowSwitcherSlotsComponentsProps, PickerSelectionState, DayCalendarProps, ExportedUseViewsOptions, UncapitalizeObjectKeys } from '@mui/x-date-pickers/internals';
7
8
  import { DateRange, DayRangeValidationProps } from '../internals/models';
8
9
  import { DateRangeCalendarClasses } from './dateRangeCalendarClasses';
9
10
  import { DateRangePickerDay, DateRangePickerDayProps } from '../DateRangePickerDay';
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DateRangePickerProps } from './DateRangePicker.types';
3
- type DatePickerComponent = (<TDate>(props: DateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ type DatePickerComponent = (<TDate>(props: DateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const DateRangePicker: DatePickerComponent;
@@ -35,7 +35,7 @@ export interface DateRangePickerDayProps<TDate> extends Omit<PickersDayProps<TDa
35
35
  */
36
36
  isVisuallySelected?: boolean;
37
37
  }
38
- type DateRangePickerDayComponent = <TDate>(props: DateRangePickerDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => JSX.Element;
38
+ type DateRangePickerDayComponent = <TDate>(props: DateRangePickerDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element;
39
39
  /**
40
40
  *
41
41
  * Demos:
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DesktopDateRangePickerProps } from './DesktopDateRangePicker.types';
3
- type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { MobileDateRangePickerProps } from './MobileDateRangePicker.types';
3
- type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const MobileDateRangePicker: MobileDateRangePickerComponent;
@@ -1,6 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["className", "sx"];
4
2
  import * as React from 'react';
5
3
  import PropTypes from 'prop-types';
6
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
@@ -14,8 +12,7 @@ import { validateDateRange } from '../internals/utils/validation/validateDateRan
14
12
  const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
15
13
  var _defaultizedProps$slo2;
16
14
  // Props with the default values common to all date time pickers
17
- const _useDateRangePickerDe = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker'),
18
- defaultizedProps = _objectWithoutPropertiesLoose(_useDateRangePickerDe, _excluded);
15
+ const defaultizedProps = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker');
19
16
  const viewRenderers = _extends({
20
17
  day: renderDateRangeViewCalendar
21
18
  }, defaultizedProps.viewRenderers);
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { MultiInputDateRangeFieldProps } from './MultiInputDateRangeField.types';
3
- type MultiInputDateRangeFieldComponent = (<TDate>(props: MultiInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
3
+ type MultiInputDateRangeFieldComponent = (<TDate>(props: MultiInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const MultiInputDateRangeField: MultiInputDateRangeFieldComponent;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { MultiInputDateTimeRangeFieldProps } from './MultiInputDateTimeRangeField.types';
3
- type MultiInputDateTimeRangeFieldComponent = (<TDate>(props: MultiInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
3
+ type MultiInputDateTimeRangeFieldComponent = (<TDate>(props: MultiInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const MultiInputDateTimeRangeField: MultiInputDateTimeRangeFieldComponent;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { MultiInputTimeRangeFieldProps } from './MultiInputTimeRangeField.types';
3
- type MultiInputTimeRangeFieldComponent = (<TDate>(props: MultiInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
3
+ type MultiInputTimeRangeFieldComponent = (<TDate>(props: MultiInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const MultiInputTimeRangeField: MultiInputTimeRangeFieldComponent;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputDateRangeFieldProps } from './SingleInputDateRangeField.types';
3
- type DateRangeFieldComponent = (<TDate>(props: SingleInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
3
+ type DateRangeFieldComponent = (<TDate>(props: SingleInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  fieldType?: string;
6
6
  };
@@ -39,8 +39,8 @@ const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleI
39
39
  textFieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
40
40
 
41
41
  // TODO: Remove when mui/material-ui#35088 will be merged
42
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
43
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
42
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
43
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
44
44
  const _useSingleInputDateRa = useSingleInputDateRangeField({
45
45
  props: textFieldProps,
46
46
  inputRef: externalInputRef
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputDateTimeRangeFieldProps } from './SingleInputDateTimeRangeField.types';
3
- type DateRangeFieldComponent = (<TDate>(props: SingleInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
3
+ type DateRangeFieldComponent = (<TDate>(props: SingleInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  fieldType?: string;
6
6
  };
@@ -39,8 +39,8 @@ const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Sin
39
39
  textFieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
40
40
 
41
41
  // TODO: Remove when mui/material-ui#35088 will be merged
42
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
43
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
42
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
43
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
44
44
  const _useSingleInputDateTi = useSingleInputDateTimeRangeField({
45
45
  props: textFieldProps,
46
46
  inputRef: externalInputRef
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SingleInputTimeRangeFieldProps } from './SingleInputTimeRangeField.types';
3
- type DateRangeFieldComponent = (<TDate>(props: SingleInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => JSX.Element) & {
3
+ type DateRangeFieldComponent = (<TDate>(props: SingleInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLInputElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  fieldType?: string;
6
6
  };
@@ -39,8 +39,8 @@ const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleI
39
39
  textFieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
40
40
 
41
41
  // TODO: Remove when mui/material-ui#35088 will be merged
42
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
43
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
42
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
43
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
44
44
  const _useSingleInputTimeRa = useSingleInputTimeRangeField({
45
45
  props: textFieldProps,
46
46
  inputRef: externalInputRef
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { StaticDateRangePickerProps } from './StaticDateRangePicker.types';
3
- type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
3
+ type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
4
4
  propTypes?: any;
5
5
  };
6
6
  declare const StaticDateRangePicker: StaticDateRangePickerComponent;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.10.2
2
+ * @mui/x-date-pickers-pro v6.11.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MDQwODgwMDAwMA==";
3
+ const releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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
@@ -26,8 +26,8 @@ export const rangeValueManager = {
26
26
  hasError: error => error[0] != null || error[1] != null,
27
27
  defaultErrorState: [null, null],
28
28
  getTimezone: (utils, value) => {
29
- const timezoneStart = value[0] == null ? null : utils.getTimezone(value[0]);
30
- const timezoneEnd = value[1] == null ? null : utils.getTimezone(value[1]);
29
+ const timezoneStart = value[0] == null || !utils.isValid(value[0]) ? null : utils.getTimezone(value[0]);
30
+ const timezoneEnd = value[1] == null || !utils.isValid(value[1]) ? null : utils.getTimezone(value[1]);
31
31
  if (timezoneStart != null && timezoneEnd != null && timezoneStart !== timezoneEnd) {
32
32
  throw new Error('MUI: The timezone of the start and the end date should be the same');
33
33
  }
@@ -13,7 +13,8 @@ import { resolveComponentProps } from '@mui/base/utils';
13
13
  import { styled, useThemeProps } from '@mui/material/styles';
14
14
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
15
15
  import { Watermark } from '@mui/x-license-pro';
16
- import { applyDefaultDate, DAY_MARGIN, DayCalendar, defaultReduceAnimations, PickersArrowSwitcher, PickersCalendarHeader, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, uncapitalizeObjectKeys, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone } from '@mui/x-date-pickers/internals';
16
+ import { PickersCalendarHeader } from '@mui/x-date-pickers/PickersCalendarHeader';
17
+ import { applyDefaultDate, DAY_MARGIN, DayCalendar, useDefaultReduceAnimations, PickersArrowSwitcher, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, uncapitalizeObjectKeys, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone } from '@mui/x-date-pickers/internals';
17
18
  import { getReleaseInfo } from '../internals/utils/releaseInfo';
18
19
  import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from './dateRangeCalendarClasses';
19
20
  import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from '../internals/utils/date-utils';
@@ -81,6 +82,7 @@ function useDateRangeCalendarDefaultizedProps(props, name) {
81
82
  var _themeProps$renderLoa, _themeProps$reduceAni, _props$loading, _props$disablePast, _props$disableFuture, _themeProps$calendars, _themeProps$disableDr;
82
83
  var utils = useUtils();
83
84
  var defaultDates = useDefaultDates();
85
+ var defaultReduceAnimations = useDefaultReduceAnimations();
84
86
  var themeProps = useThemeProps({
85
87
  props: props,
86
88
  name: name
@@ -1,6 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["className", "sx"];
4
2
  import * as React from 'react';
5
3
  import PropTypes from 'prop-types';
6
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
@@ -14,10 +12,7 @@ import { validateDateRange } from '../internals/utils/validation/validateDateRan
14
12
  var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
15
13
  var _defaultizedProps$slo2;
16
14
  // Props with the default values common to all date time pickers
17
- var _useDateRangePickerDe = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker'),
18
- className = _useDateRangePickerDe.className,
19
- sx = _useDateRangePickerDe.sx,
20
- defaultizedProps = _objectWithoutProperties(_useDateRangePickerDe, _excluded);
15
+ var defaultizedProps = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker');
21
16
  var viewRenderers = _extends({
22
17
  day: renderDateRangeViewCalendar
23
18
  }, defaultizedProps.viewRenderers);
@@ -35,8 +35,8 @@ var SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleInp
35
35
  textFieldProps = _objectWithoutProperties(_useSlotProps, _excluded2);
36
36
 
37
37
  // TODO: Remove when mui/material-ui#35088 will be merged
38
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
39
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
38
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
39
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
40
40
  var _useSingleInputDateRa = useSingleInputDateRangeField({
41
41
  props: textFieldProps,
42
42
  inputRef: externalInputRef
@@ -35,8 +35,8 @@ var SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Singl
35
35
  textFieldProps = _objectWithoutProperties(_useSlotProps, _excluded2);
36
36
 
37
37
  // TODO: Remove when mui/material-ui#35088 will be merged
38
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
39
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
38
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
39
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
40
40
  var _useSingleInputDateTi = useSingleInputDateTimeRangeField({
41
41
  props: textFieldProps,
42
42
  inputRef: externalInputRef
@@ -35,8 +35,8 @@ var SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInp
35
35
  textFieldProps = _objectWithoutProperties(_useSlotProps, _excluded2);
36
36
 
37
37
  // TODO: Remove when mui/material-ui#35088 will be merged
38
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
39
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
38
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
39
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
40
40
  var _useSingleInputTimeRa = useSingleInputTimeRangeField({
41
41
  props: textFieldProps,
42
42
  inputRef: externalInputRef
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.10.2
2
+ * @mui/x-date-pickers-pro v6.11.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5MDQwODgwMDAwMA==";
3
+ var releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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
@@ -38,8 +38,8 @@ export var rangeValueManager = {
38
38
  },
39
39
  defaultErrorState: [null, null],
40
40
  getTimezone: function getTimezone(utils, value) {
41
- var timezoneStart = value[0] == null ? null : utils.getTimezone(value[0]);
42
- var timezoneEnd = value[1] == null ? null : utils.getTimezone(value[1]);
41
+ var timezoneStart = value[0] == null || !utils.isValid(value[0]) ? null : utils.getTimezone(value[0]);
42
+ var timezoneEnd = value[1] == null || !utils.isValid(value[1]) ? null : utils.getTimezone(value[1]);
43
43
  if (timezoneStart != null && timezoneEnd != null && timezoneStart !== timezoneEnd) {
44
44
  throw new Error('MUI: The timezone of the start and the end date should be the same');
45
45
  }
@@ -11,7 +11,8 @@ import { resolveComponentProps } from '@mui/base/utils';
11
11
  import { styled, useThemeProps } from '@mui/material/styles';
12
12
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
13
13
  import { Watermark } from '@mui/x-license-pro';
14
- import { applyDefaultDate, DAY_MARGIN, DayCalendar, defaultReduceAnimations, PickersArrowSwitcher, PickersCalendarHeader, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, uncapitalizeObjectKeys, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone } from '@mui/x-date-pickers/internals';
14
+ import { PickersCalendarHeader } from '@mui/x-date-pickers/PickersCalendarHeader';
15
+ import { applyDefaultDate, DAY_MARGIN, DayCalendar, useDefaultReduceAnimations, PickersArrowSwitcher, useCalendarState, useDefaultDates, useLocaleText, useNextMonthDisabled, usePreviousMonthDisabled, useUtils, useNow, uncapitalizeObjectKeys, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, buildWarning, useControlledValueWithTimezone } from '@mui/x-date-pickers/internals';
15
16
  import { getReleaseInfo } from '../internals/utils/releaseInfo';
16
17
  import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from './dateRangeCalendarClasses';
17
18
  import { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from '../internals/utils/date-utils';
@@ -76,6 +77,7 @@ const DayCalendarForRange = styled(DayCalendar)(({
76
77
  function useDateRangeCalendarDefaultizedProps(props, name) {
77
78
  const utils = useUtils();
78
79
  const defaultDates = useDefaultDates();
80
+ const defaultReduceAnimations = useDefaultReduceAnimations();
79
81
  const themeProps = useThemeProps({
80
82
  props,
81
83
  name
@@ -1,6 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["className", "sx"];
4
2
  import * as React from 'react';
5
3
  import PropTypes from 'prop-types';
6
4
  import { extractValidationProps } from '@mui/x-date-pickers/internals';
@@ -13,8 +11,7 @@ import { useMobileRangePicker } from '../internals/hooks/useMobileRangePicker';
13
11
  import { validateDateRange } from '../internals/utils/validation/validateDateRange';
14
12
  const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
15
13
  // Props with the default values common to all date time pickers
16
- const _useDateRangePickerDe = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker'),
17
- defaultizedProps = _objectWithoutPropertiesLoose(_useDateRangePickerDe, _excluded);
14
+ const defaultizedProps = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker');
18
15
  const viewRenderers = _extends({
19
16
  day: renderDateRangeViewCalendar
20
17
  }, defaultizedProps.viewRenderers);
@@ -38,8 +38,8 @@ const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleI
38
38
  textFieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
39
39
 
40
40
  // TODO: Remove when mui/material-ui#35088 will be merged
41
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
42
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
41
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
42
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
43
43
  const _useSingleInputDateRa = useSingleInputDateRangeField({
44
44
  props: textFieldProps,
45
45
  inputRef: externalInputRef
@@ -38,8 +38,8 @@ const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Sin
38
38
  textFieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
39
39
 
40
40
  // TODO: Remove when mui/material-ui#35088 will be merged
41
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
42
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
41
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
42
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
43
43
  const _useSingleInputDateTi = useSingleInputDateTimeRangeField({
44
44
  props: textFieldProps,
45
45
  inputRef: externalInputRef
@@ -38,8 +38,8 @@ const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleI
38
38
  textFieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
39
39
 
40
40
  // TODO: Remove when mui/material-ui#35088 will be merged
41
- textFieldProps.inputProps = _extends({}, textFieldProps.inputProps, inputProps);
42
- textFieldProps.InputProps = _extends({}, textFieldProps.InputProps, InputProps);
41
+ textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);
42
+ textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);
43
43
  const _useSingleInputTimeRa = useSingleInputTimeRangeField({
44
44
  props: textFieldProps,
45
45
  inputRef: externalInputRef
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.10.2
2
+ * @mui/x-date-pickers-pro v6.11.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MDQwODgwMDAwMA==";
3
+ const releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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
@@ -26,8 +26,8 @@ export const rangeValueManager = {
26
26
  hasError: error => error[0] != null || error[1] != null,
27
27
  defaultErrorState: [null, null],
28
28
  getTimezone: (utils, value) => {
29
- const timezoneStart = value[0] == null ? null : utils.getTimezone(value[0]);
30
- const timezoneEnd = value[1] == null ? null : utils.getTimezone(value[1]);
29
+ const timezoneStart = value[0] == null || !utils.isValid(value[0]) ? null : utils.getTimezone(value[0]);
30
+ const timezoneEnd = value[1] == null || !utils.isValid(value[1]) ? null : utils.getTimezone(value[1]);
31
31
  if (timezoneStart != null && timezoneEnd != null && timezoneStart !== timezoneEnd) {
32
32
  throw new Error('MUI: The timezone of the start and the end date should be the same');
33
33
  }
@@ -16,6 +16,7 @@ var _utils = require("@mui/base/utils");
16
16
  var _styles = require("@mui/material/styles");
17
17
  var _utils2 = require("@mui/utils");
18
18
  var _xLicensePro = require("@mui/x-license-pro");
19
+ var _PickersCalendarHeader = require("@mui/x-date-pickers/PickersCalendarHeader");
19
20
  var _internals = require("@mui/x-date-pickers/internals");
20
21
  var _releaseInfo = require("../internals/utils/releaseInfo");
21
22
  var _dateRangeCalendarClasses = require("./dateRangeCalendarClasses");
@@ -84,6 +85,7 @@ const DayCalendarForRange = (0, _styles.styled)(_internals.DayCalendar)(({
84
85
  function useDateRangeCalendarDefaultizedProps(props, name) {
85
86
  const utils = (0, _internals.useUtils)();
86
87
  const defaultDates = (0, _internals.useDefaultDates)();
88
+ const defaultReduceAnimations = (0, _internals.useDefaultReduceAnimations)();
87
89
  const themeProps = (0, _styles.useThemeProps)({
88
90
  props,
89
91
  name
@@ -92,7 +94,7 @@ function useDateRangeCalendarDefaultizedProps(props, name) {
92
94
  renderLoading: themeProps.renderLoading ?? (() => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
93
95
  children: "..."
94
96
  })),
95
- reduceAnimations: themeProps.reduceAnimations ?? _internals.defaultReduceAnimations,
97
+ reduceAnimations: themeProps.reduceAnimations ?? defaultReduceAnimations,
96
98
  loading: props.loading ?? false,
97
99
  disablePast: props.disablePast ?? false,
98
100
  disableFuture: props.disableFuture ?? false,
@@ -417,7 +419,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
417
419
  releaseInfo: releaseInfo
418
420
  }), calendarMonths.map((month, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(DateRangeCalendarMonthContainer, {
419
421
  className: classes.monthContainer,
420
- children: [calendars === 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickersCalendarHeader, {
422
+ children: [calendars === 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersCalendarHeader.PickersCalendarHeader, {
421
423
  views: ['day'],
422
424
  view: 'day',
423
425
  currentMonth: calendarState.currentMonth,
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.MobileDateRangePicker = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
9
  var React = _interopRequireWildcard(require("react"));
11
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
11
  var _internals = require("@mui/x-date-pickers/internals");
@@ -17,13 +16,11 @@ var _dateRangeViewRenderers = require("../dateRangeViewRenderers");
17
16
  var _MultiInputDateRangeField = require("../MultiInputDateRangeField");
18
17
  var _useMobileRangePicker = require("../internals/hooks/useMobileRangePicker");
19
18
  var _validateDateRange = require("../internals/utils/validation/validateDateRange");
20
- const _excluded = ["className", "sx"];
21
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
21
  const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
24
22
  // Props with the default values common to all date time pickers
25
- const _useDateRangePickerDe = (0, _shared.useDateRangePickerDefaultizedProps)(inProps, 'MuiMobileDateRangePicker'),
26
- defaultizedProps = (0, _objectWithoutPropertiesLoose2.default)(_useDateRangePickerDe, _excluded);
23
+ const defaultizedProps = (0, _shared.useDateRangePickerDefaultizedProps)(inProps, 'MuiMobileDateRangePicker');
27
24
  const viewRenderers = (0, _extends2.default)({
28
25
  day: _dateRangeViewRenderers.renderDateRangeViewCalendar
29
26
  }, defaultizedProps.viewRenderers);
@@ -47,8 +47,8 @@ const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleI
47
47
  textFieldProps = (0, _objectWithoutPropertiesLoose2.default)(_useSlotProps, _excluded2);
48
48
 
49
49
  // TODO: Remove when mui/material-ui#35088 will be merged
50
- textFieldProps.inputProps = (0, _extends2.default)({}, textFieldProps.inputProps, inputProps);
51
- textFieldProps.InputProps = (0, _extends2.default)({}, textFieldProps.InputProps, InputProps);
50
+ textFieldProps.inputProps = (0, _extends2.default)({}, inputProps, textFieldProps.inputProps);
51
+ textFieldProps.InputProps = (0, _extends2.default)({}, InputProps, textFieldProps.InputProps);
52
52
  const _useSingleInputDateRa = (0, _useSingleInputDateRangeField.useSingleInputDateRangeField)({
53
53
  props: textFieldProps,
54
54
  inputRef: externalInputRef
@@ -47,8 +47,8 @@ const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Sin
47
47
  textFieldProps = (0, _objectWithoutPropertiesLoose2.default)(_useSlotProps, _excluded2);
48
48
 
49
49
  // TODO: Remove when mui/material-ui#35088 will be merged
50
- textFieldProps.inputProps = (0, _extends2.default)({}, textFieldProps.inputProps, inputProps);
51
- textFieldProps.InputProps = (0, _extends2.default)({}, textFieldProps.InputProps, InputProps);
50
+ textFieldProps.inputProps = (0, _extends2.default)({}, inputProps, textFieldProps.inputProps);
51
+ textFieldProps.InputProps = (0, _extends2.default)({}, InputProps, textFieldProps.InputProps);
52
52
  const _useSingleInputDateTi = (0, _useSingleInputDateTimeRangeField.useSingleInputDateTimeRangeField)({
53
53
  props: textFieldProps,
54
54
  inputRef: externalInputRef
@@ -47,8 +47,8 @@ const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleI
47
47
  textFieldProps = (0, _objectWithoutPropertiesLoose2.default)(_useSlotProps, _excluded2);
48
48
 
49
49
  // TODO: Remove when mui/material-ui#35088 will be merged
50
- textFieldProps.inputProps = (0, _extends2.default)({}, textFieldProps.inputProps, inputProps);
51
- textFieldProps.InputProps = (0, _extends2.default)({}, textFieldProps.InputProps, InputProps);
50
+ textFieldProps.inputProps = (0, _extends2.default)({}, inputProps, textFieldProps.inputProps);
51
+ textFieldProps.InputProps = (0, _extends2.default)({}, InputProps, textFieldProps.InputProps);
52
52
  const _useSingleInputTimeRa = (0, _useSingleInputTimeRangeField.useSingleInputTimeRangeField)({
53
53
  props: textFieldProps,
54
54
  inputRef: externalInputRef
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.10.2
2
+ * @mui/x-date-pickers-pro v6.11.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTY5MDQwODgwMDAwMA==";
9
+ const releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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
@@ -33,8 +33,8 @@ const rangeValueManager = {
33
33
  hasError: error => error[0] != null || error[1] != null,
34
34
  defaultErrorState: [null, null],
35
35
  getTimezone: (utils, value) => {
36
- const timezoneStart = value[0] == null ? null : utils.getTimezone(value[0]);
37
- const timezoneEnd = value[1] == null ? null : utils.getTimezone(value[1]);
36
+ const timezoneStart = value[0] == null || !utils.isValid(value[0]) ? null : utils.getTimezone(value[0]);
37
+ const timezoneEnd = value[1] == null || !utils.isValid(value[1]) ? null : utils.getTimezone(value[1]);
38
38
  if (timezoneStart != null && timezoneEnd != null && timezoneStart !== timezoneEnd) {
39
39
  throw new Error('MUI: The timezone of the start and the end date should be the same');
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "6.10.2",
3
+ "version": "6.11.0",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.22.6",
34
- "@mui/utils": "^5.13.7",
35
- "@mui/x-date-pickers": "6.10.2",
34
+ "@mui/utils": "^5.14.1",
35
+ "@mui/x-date-pickers": "6.11.0",
36
36
  "@mui/x-license-pro": "6.10.2",
37
37
  "clsx": "^1.2.1",
38
38
  "prop-types": "^15.8.1",