@mui/x-date-pickers-pro 8.11.2 → 8.11.3

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,92 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.11.3
9
+
10
+ _Sep 16, 2025_
11
+
12
+ We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🐞 Bugfixes
15
+ - 📚 Documentation improvements
16
+
17
+ Special thanks go out to the community members for their valuable contributions:
18
+ @sai6855
19
+
20
+ The following are all team members who have contributed to this release:
21
+ @alexfauquette, @bernardobelchior, @brijeshb42, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @rita-codes, @siriwatknp
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@8.11.3`
26
+
27
+ - [DataGrid] Fix numeric font size not being applied (#19552) @cherniavskii
28
+ - [DataGrid] Improve `operator` types to display literal values (#19529) @siriwatknp
29
+
30
+ #### `@mui/x-data-grid-pro@8.11.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
31
+
32
+ Same changes as in `@mui/x-data-grid@8.11.3`.
33
+
34
+ #### `@mui/x-data-grid-premium@8.11.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
35
+
36
+ Same changes as in `@mui/x-data-grid-pro@8.11.3`.
37
+
38
+ ### Date and Time Pickers
39
+
40
+ #### `@mui/x-date-pickers@8.11.3`
41
+
42
+ - [pickers] Refactor `slots` and `slotProps` propagation strategy (#18867) @LukasTy
43
+
44
+ #### `@mui/x-date-pickers-pro@8.11.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
45
+
46
+ Same changes as in `@mui/x-date-pickers@8.11.3`.
47
+
48
+ ### Charts
49
+
50
+ #### `@mui/x-charts@8.11.3`
51
+
52
+ - [charts] Add `inline-` piecewise legend options (#19382) @JCQuintas
53
+ - [charts] Add bar gradient example (#19174) @bernardobelchior
54
+ - [charts] Ignore empty tick labels in label overlap computation (#19547) @alexfauquette
55
+ - [charts] Rename `isBandScale` to `isDiscreteScale` (#19514) @bernardobelchior
56
+ - [charts] Fix legend position affecting toolbar's position (#19257) @sai6855
57
+
58
+ #### `@mui/x-charts-pro@8.11.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
59
+
60
+ Same changes as in `@mui/x-charts@8.11.3`, plus:
61
+
62
+ - [charts-pro] Add chart title and caption to export demo (#19524) @bernardobelchior
63
+
64
+ ### Tree View
65
+
66
+ #### `@mui/x-tree-view@8.11.3`
67
+
68
+ - [tree view] Stop looping through all items to publish the `removeItem` event (#19500) @flaviendelangle
69
+ - [tree view] Support flat DOM structure (#19350) @flaviendelangle
70
+ - [tree view] Update cursor styles for disabled TreeItem (#19548) @sai6855
71
+
72
+ #### `@mui/x-tree-view-pro@8.11.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
73
+
74
+ Same changes as in `@mui/x-tree-view@8.11.3`.
75
+
76
+ ### Codemod
77
+
78
+ #### `@mui/x-codemod@8.11.3`
79
+
80
+ Internal changes.
81
+
82
+ ### Docs
83
+
84
+ - [docs] Add styling row group recipe (#19349) @siriwatknp
85
+ - [docs] Group demos data into the dataset folder (#19549) @alexfauquette
86
+ - [docs] Add `shiny` bar chart example at the top (#19416) @JCQuintas
87
+
88
+ ### Core
89
+
90
+ - [code-infra] Axios update (#19577) @Janpot
91
+ - [code-infra] Remove usage of copy-files command from code-infra (#19518) @brijeshb42
92
+ - [internal] Fix naming to match convention @oliviertassinari
93
+
8
94
  ## 8.11.2
9
95
 
10
96
  _Sep 10, 2025_
@@ -37,7 +37,7 @@ var _DateRangePickerDay2 = require("../DateRangePickerDay2");
37
37
  var _jsxRuntime = require("react/jsx-runtime");
38
38
  const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "classes", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "focusedView", "onFocusedViewChange", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone", "availableRangePositions", "views", "view", "openTo", "onViewChange"],
39
39
  _excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
40
- const releaseInfo = "MTc1NzQ2MjQwMDAwMA==";
40
+ const releaseInfo = "MTc1ODA2NzIwMDAwMA==";
41
41
  const DateRangeCalendarRoot = (0, _styles.styled)('div', {
42
42
  name: 'MuiDateRangeCalendar',
43
43
  slot: 'Root'
@@ -235,7 +235,7 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
235
235
  showDaysOutsideCurrentMonth
236
236
  } = props,
237
237
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
238
- (0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc1NzQ2MjQwMDAwMA==");
238
+ (0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc1ODA2NzIwMDAwMA==");
239
239
  const adapter = (0, _hooks.usePickerAdapter)();
240
240
  const shouldRenderHighlight = isHighlighting && !outsideCurrentMonth;
241
241
  const shouldRenderPreview = isPreviewing && !outsideCurrentMonth;
@@ -43,11 +43,14 @@ const SingleInputDateRangeField = exports.SingleInputDateRangeField = /*#__PURE_
43
43
  externalForwardedProps: other
44
44
  });
45
45
  const fieldResponse = (0, _useSingleInputDateRangeField.useSingleInputDateRangeField)(textFieldProps);
46
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUI, {
46
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUIContextProvider, {
47
47
  slots: slots,
48
48
  slotProps: slotProps,
49
- fieldResponse: fieldResponse,
50
- defaultOpenPickerIcon: _icons.DateRangeIcon
49
+ inputRef: other.inputRef,
50
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUI, {
51
+ fieldResponse: fieldResponse,
52
+ defaultOpenPickerIcon: _icons.DateRangeIcon
53
+ })
51
54
  });
52
55
  });
53
56
  if (process.env.NODE_ENV !== "production") SingleInputDateRangeField.displayName = "SingleInputDateRangeField";
@@ -43,11 +43,14 @@ const SingleInputDateTimeRangeField = exports.SingleInputDateTimeRangeField = /*
43
43
  externalForwardedProps: other
44
44
  });
45
45
  const fieldResponse = (0, _useSingleInputDateTimeRangeField.useSingleInputDateTimeRangeField)(textFieldProps);
46
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUI, {
46
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUIContextProvider, {
47
47
  slots: slots,
48
48
  slotProps: slotProps,
49
- fieldResponse: fieldResponse,
50
- defaultOpenPickerIcon: _icons.DateRangeIcon
49
+ inputRef: other.inputRef,
50
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUI, {
51
+ fieldResponse: fieldResponse,
52
+ defaultOpenPickerIcon: _icons.DateRangeIcon
53
+ })
51
54
  });
52
55
  });
53
56
  if (process.env.NODE_ENV !== "production") SingleInputDateTimeRangeField.displayName = "SingleInputDateTimeRangeField";
@@ -43,11 +43,14 @@ const SingleInputTimeRangeField = exports.SingleInputTimeRangeField = /*#__PURE_
43
43
  externalForwardedProps: other
44
44
  });
45
45
  const fieldResponse = (0, _useSingleInputTimeRangeField.useSingleInputTimeRangeField)(textFieldProps);
46
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUI, {
46
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUIContextProvider, {
47
47
  slots: slots,
48
48
  slotProps: slotProps,
49
- fieldResponse: fieldResponse,
50
- defaultOpenPickerIcon: _icons.ClockIcon
49
+ inputRef: other.inputRef,
50
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUI, {
51
+ fieldResponse: fieldResponse,
52
+ defaultOpenPickerIcon: _icons.ClockIcon
53
+ })
51
54
  });
52
55
  });
53
56
  if (process.env.NODE_ENV !== "production") SingleInputTimeRangeField.displayName = "SingleInputTimeRangeField";
@@ -30,7 +30,7 @@ import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.
30
30
  import { useNullablePickerRangePositionContext } from "../internals/hooks/useNullablePickerRangePositionContext.js";
31
31
  import { dateRangePickerDay2Classes } from "../DateRangePickerDay2/index.js";
32
32
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
33
- const releaseInfo = "MTc1NzQ2MjQwMDAwMA==";
33
+ const releaseInfo = "MTc1ODA2NzIwMDAwMA==";
34
34
  const DateRangeCalendarRoot = styled('div', {
35
35
  name: 'MuiDateRangeCalendar',
36
36
  slot: 'Root'
@@ -228,7 +228,7 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
228
228
  showDaysOutsideCurrentMonth
229
229
  } = props,
230
230
  other = _objectWithoutPropertiesLoose(props, _excluded);
231
- useLicenseVerifier('x-date-pickers-pro', "MTc1NzQ2MjQwMDAwMA==");
231
+ useLicenseVerifier('x-date-pickers-pro', "MTc1ODA2NzIwMDAwMA==");
232
232
  const adapter = usePickerAdapter();
233
233
  const shouldRenderHighlight = isHighlighting && !outsideCurrentMonth;
234
234
  const shouldRenderPreview = isPreviewing && !outsideCurrentMonth;
@@ -7,7 +7,7 @@ import PropTypes from 'prop-types';
7
7
  import { useThemeProps } from '@mui/material/styles';
8
8
  import refType from '@mui/utils/refType';
9
9
  import { DateRangeIcon } from '@mui/x-date-pickers/icons';
10
- import { PickerFieldUI, useFieldTextFieldProps } from '@mui/x-date-pickers/internals';
10
+ import { PickerFieldUI, PickerFieldUIContextProvider, useFieldTextFieldProps } from '@mui/x-date-pickers/internals';
11
11
  import { useSingleInputDateRangeField } from "./useSingleInputDateRangeField.js";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  /**
@@ -36,11 +36,14 @@ const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleI
36
36
  externalForwardedProps: other
37
37
  });
38
38
  const fieldResponse = useSingleInputDateRangeField(textFieldProps);
39
- return /*#__PURE__*/_jsx(PickerFieldUI, {
39
+ return /*#__PURE__*/_jsx(PickerFieldUIContextProvider, {
40
40
  slots: slots,
41
41
  slotProps: slotProps,
42
- fieldResponse: fieldResponse,
43
- defaultOpenPickerIcon: DateRangeIcon
42
+ inputRef: other.inputRef,
43
+ children: /*#__PURE__*/_jsx(PickerFieldUI, {
44
+ fieldResponse: fieldResponse,
45
+ defaultOpenPickerIcon: DateRangeIcon
46
+ })
44
47
  });
45
48
  });
46
49
  if (process.env.NODE_ENV !== "production") SingleInputDateRangeField.displayName = "SingleInputDateRangeField";
@@ -5,7 +5,7 @@ const _excluded = ["slots", "slotProps"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { DateRangeIcon } from '@mui/x-date-pickers/icons';
8
- import { PickerFieldUI, useFieldTextFieldProps } from '@mui/x-date-pickers/internals';
8
+ import { PickerFieldUI, PickerFieldUIContextProvider, useFieldTextFieldProps } from '@mui/x-date-pickers/internals';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import refType from '@mui/utils/refType';
11
11
  import { useSingleInputDateTimeRangeField } from "./useSingleInputDateTimeRangeField.js";
@@ -36,11 +36,14 @@ const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function Sin
36
36
  externalForwardedProps: other
37
37
  });
38
38
  const fieldResponse = useSingleInputDateTimeRangeField(textFieldProps);
39
- return /*#__PURE__*/_jsx(PickerFieldUI, {
39
+ return /*#__PURE__*/_jsx(PickerFieldUIContextProvider, {
40
40
  slots: slots,
41
41
  slotProps: slotProps,
42
- fieldResponse: fieldResponse,
43
- defaultOpenPickerIcon: DateRangeIcon
42
+ inputRef: other.inputRef,
43
+ children: /*#__PURE__*/_jsx(PickerFieldUI, {
44
+ fieldResponse: fieldResponse,
45
+ defaultOpenPickerIcon: DateRangeIcon
46
+ })
44
47
  });
45
48
  });
46
49
  if (process.env.NODE_ENV !== "production") SingleInputDateTimeRangeField.displayName = "SingleInputDateTimeRangeField";
@@ -5,7 +5,7 @@ const _excluded = ["slots", "slotProps"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { ClockIcon } from '@mui/x-date-pickers/icons';
8
- import { PickerFieldUI, useFieldTextFieldProps } from '@mui/x-date-pickers/internals';
8
+ import { PickerFieldUI, PickerFieldUIContextProvider, useFieldTextFieldProps } from '@mui/x-date-pickers/internals';
9
9
  import { useThemeProps } from '@mui/material/styles';
10
10
  import refType from '@mui/utils/refType';
11
11
  import { useSingleInputTimeRangeField } from "./useSingleInputTimeRangeField.js";
@@ -36,11 +36,14 @@ const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleI
36
36
  externalForwardedProps: other
37
37
  });
38
38
  const fieldResponse = useSingleInputTimeRangeField(textFieldProps);
39
- return /*#__PURE__*/_jsx(PickerFieldUI, {
39
+ return /*#__PURE__*/_jsx(PickerFieldUIContextProvider, {
40
40
  slots: slots,
41
41
  slotProps: slotProps,
42
- fieldResponse: fieldResponse,
43
- defaultOpenPickerIcon: ClockIcon
42
+ inputRef: other.inputRef,
43
+ children: /*#__PURE__*/_jsx(PickerFieldUI, {
44
+ fieldResponse: fieldResponse,
45
+ defaultOpenPickerIcon: ClockIcon
46
+ })
44
47
  });
45
48
  });
46
49
  if (process.env.NODE_ENV !== "production") SingleInputTimeRangeField.displayName = "SingleInputTimeRangeField";
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v8.11.2
2
+ * @mui/x-date-pickers-pro v8.11.3
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -7,7 +7,7 @@ import useSlotProps from '@mui/utils/useSlotProps';
7
7
  import useEventCallback from '@mui/utils/useEventCallback';
8
8
  import { useLicenseVerifier } from '@mui/x-license';
9
9
  import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
10
- import { usePicker, PickerPopper, PickerProvider, PickerFieldUIContextProvider } from '@mui/x-date-pickers/internals';
10
+ import { usePicker, PickerPopper, PickerProvider } from '@mui/x-date-pickers/internals';
11
11
  import { useRangePosition } from "../useRangePosition.js";
12
12
  import { PickerRangePositionContext } from "../../../hooks/usePickerRangePositionContext.js";
13
13
  import { getRangeFieldType } from "../../utils/date-fields-utils.js";
@@ -19,7 +19,7 @@ export const useDesktopRangePicker = _ref => {
19
19
  steps
20
20
  } = _ref,
21
21
  pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
22
- useLicenseVerifier('x-date-pickers-pro', "MTc1NzQ2MjQwMDAwMA==");
22
+ useLicenseVerifier('x-date-pickers-pro', "MTc1ODA2NzIwMDAwMA==");
23
23
  const {
24
24
  slots,
25
25
  slotProps,
@@ -27,7 +27,8 @@ export const useDesktopRangePicker = _ref => {
27
27
  localeText
28
28
  } = props;
29
29
  const fieldType = getRangeFieldType(slots.field);
30
- const viewContainerRole = fieldType === 'single-input' ? 'dialog' : 'tooltip';
30
+ const isSingleInput = fieldType === 'single-input';
31
+ const viewContainerRole = isSingleInput ? 'dialog' : 'tooltip';
31
32
  const rangePositionResponse = useRangePosition(props);
32
33
  const getStepNavigation = createRangePickerStepNavigation({
33
34
  steps,
@@ -58,22 +59,22 @@ export const useDesktopRangePicker = _ref => {
58
59
  fieldProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);
59
60
  const Layout = slots?.layout ?? PickersLayout;
60
61
  const renderPicker = () => /*#__PURE__*/_jsx(PickerProvider, _extends({}, providerProps, {
61
- children: /*#__PURE__*/_jsx(PickerFieldUIContextProvider, {
62
- slots: slots,
63
- slotProps: slotProps,
64
- inputRef: inputRef,
65
- children: /*#__PURE__*/_jsxs(PickerRangePositionContext.Provider, {
66
- value: rangePositionResponse,
67
- children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps)), /*#__PURE__*/_jsx(PickerPopper, {
62
+ children: /*#__PURE__*/_jsxs(PickerRangePositionContext.Provider, {
63
+ value: rangePositionResponse,
64
+ children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {
65
+ slots: slots,
66
+ slotProps: slotProps
67
+ }, isSingleInput && {
68
+ inputRef
69
+ })), /*#__PURE__*/_jsx(PickerPopper, {
70
+ slots: slots,
71
+ slotProps: slotProps,
72
+ children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {
68
73
  slots: slots,
69
74
  slotProps: slotProps,
70
- children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {
71
- slots: slots,
72
- slotProps: slotProps,
73
- children: renderCurrentView()
74
- }))
75
- })]
76
- })
75
+ children: renderCurrentView()
76
+ }))
77
+ })]
77
78
  })
78
79
  }));
79
80
  if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
@@ -8,7 +8,7 @@ import useEventCallback from '@mui/utils/useEventCallback';
8
8
  import resolveComponentProps from '@mui/utils/resolveComponentProps';
9
9
  import { useLicenseVerifier } from '@mui/x-license';
10
10
  import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
11
- import { usePicker, PickersModalDialog, PickerProvider, PickerFieldUIContextProvider } from '@mui/x-date-pickers/internals';
11
+ import { usePicker, PickersModalDialog, PickerProvider } from '@mui/x-date-pickers/internals';
12
12
  import { usePickerTranslations } from '@mui/x-date-pickers/hooks';
13
13
  import { useRangePosition } from "../useRangePosition.js";
14
14
  import { PickerRangePositionContext } from "../../../hooks/usePickerRangePositionContext.js";
@@ -21,7 +21,7 @@ export const useMobileRangePicker = _ref => {
21
21
  steps
22
22
  } = _ref,
23
23
  pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
24
- useLicenseVerifier('x-date-pickers-pro', "MTc1NzQ2MjQwMDAwMA==");
24
+ useLicenseVerifier('x-date-pickers-pro', "MTc1ODA2NzIwMDAwMA==");
25
25
  const {
26
26
  slots,
27
27
  slotProps: innerSlotProps,
@@ -30,6 +30,7 @@ export const useMobileRangePicker = _ref => {
30
30
  localeText
31
31
  } = props;
32
32
  const fieldType = getRangeFieldType(slots.field);
33
+ const isSingleInput = fieldType === 'single-input';
33
34
  const rangePositionResponse = useRangePosition(props);
34
35
  const contextTranslations = usePickerTranslations();
35
36
  const getStepNavigation = createRangePickerStepNavigation({
@@ -55,7 +56,7 @@ export const useMobileRangePicker = _ref => {
55
56
  const _useSlotProps = useSlotProps({
56
57
  elementType: Field,
57
58
  externalSlotProps: innerSlotProps?.field,
58
- additionalProps: _extends({}, fieldType === 'single-input' && isToolbarHidden && {
59
+ additionalProps: _extends({}, isSingleInput && isToolbarHidden && {
59
60
  id: labelId
60
61
  }),
61
62
  ownerState
@@ -93,22 +94,22 @@ export const useMobileRangePicker = _ref => {
93
94
  }
94
95
  });
95
96
  const renderPicker = () => /*#__PURE__*/_jsx(PickerProvider, _extends({}, providerProps, {
96
- children: /*#__PURE__*/_jsx(PickerFieldUIContextProvider, {
97
- slots: slots,
98
- slotProps: slotProps,
99
- inputRef: inputRef,
100
- children: /*#__PURE__*/_jsxs(PickerRangePositionContext.Provider, {
101
- value: rangePositionResponse,
102
- children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps)), /*#__PURE__*/_jsx(PickersModalDialog, {
97
+ children: /*#__PURE__*/_jsxs(PickerRangePositionContext.Provider, {
98
+ value: rangePositionResponse,
99
+ children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {
100
+ slots: slots,
101
+ slotProps: slotProps
102
+ }, isSingleInput && {
103
+ inputRef
104
+ })), /*#__PURE__*/_jsx(PickersModalDialog, {
105
+ slots: slots,
106
+ slotProps: slotProps,
107
+ children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {
103
108
  slots: slots,
104
109
  slotProps: slotProps,
105
- children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {
106
- slots: slots,
107
- slotProps: slotProps,
108
- children: renderCurrentView()
109
- }))
110
- })]
111
- })
110
+ children: renderCurrentView()
111
+ }))
112
+ })]
112
113
  })
113
114
  }));
114
115
  if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v8.11.2
2
+ * @mui/x-date-pickers-pro v8.11.3
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -27,7 +27,7 @@ const useDesktopRangePicker = _ref => {
27
27
  steps
28
28
  } = _ref,
29
29
  pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
30
- (0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc1NzQ2MjQwMDAwMA==");
30
+ (0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc1ODA2NzIwMDAwMA==");
31
31
  const {
32
32
  slots,
33
33
  slotProps,
@@ -35,7 +35,8 @@ const useDesktopRangePicker = _ref => {
35
35
  localeText
36
36
  } = props;
37
37
  const fieldType = (0, _dateFieldsUtils.getRangeFieldType)(slots.field);
38
- const viewContainerRole = fieldType === 'single-input' ? 'dialog' : 'tooltip';
38
+ const isSingleInput = fieldType === 'single-input';
39
+ const viewContainerRole = isSingleInput ? 'dialog' : 'tooltip';
39
40
  const rangePositionResponse = (0, _useRangePosition.useRangePosition)(props);
40
41
  const getStepNavigation = (0, _createRangePickerStepNavigation.createRangePickerStepNavigation)({
41
42
  steps,
@@ -66,22 +67,22 @@ const useDesktopRangePicker = _ref => {
66
67
  fieldProps = (0, _objectWithoutPropertiesLoose2.default)(_useSlotProps, _excluded2);
67
68
  const Layout = slots?.layout ?? _PickersLayout.PickersLayout;
68
69
  const renderPicker = () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerProvider, (0, _extends2.default)({}, providerProps, {
69
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUIContextProvider, {
70
- slots: slots,
71
- slotProps: slotProps,
72
- inputRef: inputRef,
73
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
74
- value: rangePositionResponse,
75
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerPopper, {
70
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
71
+ value: rangePositionResponse,
72
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps, {
73
+ slots: slots,
74
+ slotProps: slotProps
75
+ }, isSingleInput && {
76
+ inputRef
77
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerPopper, {
78
+ slots: slots,
79
+ slotProps: slotProps,
80
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, slotProps?.layout, {
76
81
  slots: slots,
77
82
  slotProps: slotProps,
78
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, slotProps?.layout, {
79
- slots: slots,
80
- slotProps: slotProps,
81
- children: renderCurrentView()
82
- }))
83
- })]
84
- })
83
+ children: renderCurrentView()
84
+ }))
85
+ })]
85
86
  })
86
87
  }));
87
88
  if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
@@ -29,7 +29,7 @@ const useMobileRangePicker = _ref => {
29
29
  steps
30
30
  } = _ref,
31
31
  pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
32
- (0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc1NzQ2MjQwMDAwMA==");
32
+ (0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc1ODA2NzIwMDAwMA==");
33
33
  const {
34
34
  slots,
35
35
  slotProps: innerSlotProps,
@@ -38,6 +38,7 @@ const useMobileRangePicker = _ref => {
38
38
  localeText
39
39
  } = props;
40
40
  const fieldType = (0, _dateFieldsUtils.getRangeFieldType)(slots.field);
41
+ const isSingleInput = fieldType === 'single-input';
41
42
  const rangePositionResponse = (0, _useRangePosition.useRangePosition)(props);
42
43
  const contextTranslations = (0, _hooks.usePickerTranslations)();
43
44
  const getStepNavigation = (0, _createRangePickerStepNavigation.createRangePickerStepNavigation)({
@@ -63,7 +64,7 @@ const useMobileRangePicker = _ref => {
63
64
  const _useSlotProps = (0, _useSlotProps2.default)({
64
65
  elementType: Field,
65
66
  externalSlotProps: innerSlotProps?.field,
66
- additionalProps: (0, _extends2.default)({}, fieldType === 'single-input' && isToolbarHidden && {
67
+ additionalProps: (0, _extends2.default)({}, isSingleInput && isToolbarHidden && {
67
68
  id: labelId
68
69
  }),
69
70
  ownerState
@@ -101,22 +102,22 @@ const useMobileRangePicker = _ref => {
101
102
  }
102
103
  });
103
104
  const renderPicker = () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerProvider, (0, _extends2.default)({}, providerProps, {
104
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerFieldUIContextProvider, {
105
- slots: slots,
106
- slotProps: slotProps,
107
- inputRef: inputRef,
108
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
109
- value: rangePositionResponse,
110
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickersModalDialog, {
105
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
106
+ value: rangePositionResponse,
107
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps, {
108
+ slots: slots,
109
+ slotProps: slotProps
110
+ }, isSingleInput && {
111
+ inputRef
112
+ })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickersModalDialog, {
113
+ slots: slots,
114
+ slotProps: slotProps,
115
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, slotProps?.layout, {
111
116
  slots: slots,
112
117
  slotProps: slotProps,
113
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, slotProps?.layout, {
114
- slots: slots,
115
- slotProps: slotProps,
116
- children: renderCurrentView()
117
- }))
118
- })]
119
- })
118
+ children: renderCurrentView()
119
+ }))
120
+ })]
120
121
  })
121
122
  }));
122
123
  if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "8.11.2",
3
+ "version": "8.11.3",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Date and Time Picker components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -35,9 +35,9 @@
35
35
  "clsx": "^2.1.1",
36
36
  "prop-types": "^15.8.1",
37
37
  "react-transition-group": "^4.4.5",
38
- "@mui/x-internals": "8.11.2",
39
- "@mui/x-license": "8.11.2",
40
- "@mui/x-date-pickers": "8.11.2"
38
+ "@mui/x-date-pickers": "8.11.3",
39
+ "@mui/x-internals": "8.11.3",
40
+ "@mui/x-license": "8.11.3"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@emotion/react": "^11.9.0",