@mui/x-date-pickers-pro 9.0.0 → 9.0.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 +351 -6891
- package/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/DateRangeCalendar/DateRangeCalendar.mjs +2 -2
- package/DateRangeCalendar/useDragRange.js +87 -20
- package/DateRangeCalendar/useDragRange.mjs +87 -20
- package/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/DateRangePickerDay/DateRangePickerDay.mjs +2 -2
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
- package/MultiInputDateRangeField/MultiInputDateRangeField.mjs +1 -1
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -1
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.mjs +1 -1
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.mjs +1 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.mjs +6 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.mts +1 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +1 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +6 -0
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.mjs +6 -0
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.mts +1 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +1 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +6 -0
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.mjs +6 -0
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.mts +1 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -2
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.mjs +4 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -2
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.mjs +4 -3
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -1
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.mjs +2 -2
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ import useSlotProps from '@mui/utils/useSlotProps';
|
|
|
6
6
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
7
7
|
import { useLicenseVerifier } from '@mui/x-license/internals';
|
|
8
8
|
import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
|
|
9
|
-
import { usePicker, PickerPopper, PickerProvider } from '@mui/x-date-pickers/internals';
|
|
9
|
+
import { usePicker, PickerPopper, PickerProvider, extractRootForwardedProps } from '@mui/x-date-pickers/internals';
|
|
10
10
|
import { useRangePosition } from "../useRangePosition.mjs";
|
|
11
11
|
import { PickerRangePositionContext } from "../../../hooks/usePickerRangePositionContext.mjs";
|
|
12
12
|
import { getRangeFieldType } from "../../utils/date-fields-utils.mjs";
|
|
@@ -19,8 +19,8 @@ export const useDesktopRangePicker = _ref => {
|
|
|
19
19
|
} = _ref,
|
|
20
20
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
21
21
|
useLicenseVerifier({
|
|
22
|
-
releaseDate: "
|
|
23
|
-
version: "9.0.
|
|
22
|
+
releaseDate: "MTc3NzI0ODAwMDAwMA==",
|
|
23
|
+
version: "9.0.3",
|
|
24
24
|
name: 'x-date-pickers-pro'
|
|
25
25
|
});
|
|
26
26
|
const {
|
|
@@ -57,6 +57,7 @@ export const useDesktopRangePicker = _ref => {
|
|
|
57
57
|
const _useSlotProps = useSlotProps({
|
|
58
58
|
elementType: Field,
|
|
59
59
|
externalSlotProps: slotProps?.field,
|
|
60
|
+
externalForwardedProps: extractRootForwardedProps(props),
|
|
60
61
|
ownerState,
|
|
61
62
|
additionalProps: {
|
|
62
63
|
'data-active-range-position': providerProps.contextValue.open ? rangePositionResponse.rangePosition : undefined
|
|
@@ -28,8 +28,8 @@ const useMobileRangePicker = _ref => {
|
|
|
28
28
|
} = _ref,
|
|
29
29
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
30
30
|
(0, _internals.useLicenseVerifier)({
|
|
31
|
-
releaseDate: "
|
|
32
|
-
version: "9.0.
|
|
31
|
+
releaseDate: "MTc3NzI0ODAwMDAwMA==",
|
|
32
|
+
version: "9.0.3",
|
|
33
33
|
name: 'x-date-pickers-pro'
|
|
34
34
|
});
|
|
35
35
|
const {
|
|
@@ -66,6 +66,7 @@ const useMobileRangePicker = _ref => {
|
|
|
66
66
|
const _useSlotProps = (0, _useSlotProps2.default)({
|
|
67
67
|
elementType: Field,
|
|
68
68
|
externalSlotProps: innerSlotProps?.field,
|
|
69
|
+
externalForwardedProps: (0, _internals2.extractRootForwardedProps)(props),
|
|
69
70
|
additionalProps: (0, _extends2.default)({}, isSingleInput && isToolbarHidden && {
|
|
70
71
|
id: labelId
|
|
71
72
|
}),
|
|
@@ -7,7 +7,7 @@ import useEventCallback from '@mui/utils/useEventCallback';
|
|
|
7
7
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
8
8
|
import { useLicenseVerifier } from '@mui/x-license/internals';
|
|
9
9
|
import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
|
|
10
|
-
import { usePicker, PickersModalDialog, PickerProvider } from '@mui/x-date-pickers/internals';
|
|
10
|
+
import { usePicker, PickersModalDialog, PickerProvider, extractRootForwardedProps } from '@mui/x-date-pickers/internals';
|
|
11
11
|
import { usePickerTranslations } from '@mui/x-date-pickers/hooks';
|
|
12
12
|
import { useRangePosition } from "../useRangePosition.mjs";
|
|
13
13
|
import { PickerRangePositionContext } from "../../../hooks/usePickerRangePositionContext.mjs";
|
|
@@ -21,8 +21,8 @@ export const useMobileRangePicker = _ref => {
|
|
|
21
21
|
} = _ref,
|
|
22
22
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
23
|
useLicenseVerifier({
|
|
24
|
-
releaseDate: "
|
|
25
|
-
version: "9.0.
|
|
24
|
+
releaseDate: "MTc3NzI0ODAwMDAwMA==",
|
|
25
|
+
version: "9.0.3",
|
|
26
26
|
name: 'x-date-pickers-pro'
|
|
27
27
|
});
|
|
28
28
|
const {
|
|
@@ -59,6 +59,7 @@ export const useMobileRangePicker = _ref => {
|
|
|
59
59
|
const _useSlotProps = useSlotProps({
|
|
60
60
|
elementType: Field,
|
|
61
61
|
externalSlotProps: innerSlotProps?.field,
|
|
62
|
+
externalForwardedProps: extractRootForwardedProps(props),
|
|
62
63
|
additionalProps: _extends({}, isSingleInput && isToolbarHidden && {
|
|
63
64
|
id: labelId
|
|
64
65
|
}),
|
|
@@ -64,7 +64,7 @@ const useStaticRangePicker = _ref => {
|
|
|
64
64
|
const renderPicker = () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
|
|
65
65
|
value: rangePositionResponse,
|
|
66
66
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerProvider, (0, _extends2.default)({}, providerProps, {
|
|
67
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, slotProps?.layout, {
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, (0, _internals.extractRootForwardedProps)(props), slotProps?.layout, {
|
|
68
68
|
slots: slots,
|
|
69
69
|
slotProps: slotProps,
|
|
70
70
|
sx: (0, _internals.mergeSx)(providerProps.contextValue.rootSx, slotProps?.layout?.sx),
|
|
@@ -6,7 +6,7 @@ const _excluded = ["props", "steps"];
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { styled } from '@mui/material/styles';
|
|
8
8
|
import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
|
|
9
|
-
import { usePicker, DIALOG_WIDTH, PickerProvider, mergeSx } from '@mui/x-date-pickers/internals';
|
|
9
|
+
import { usePicker, DIALOG_WIDTH, PickerProvider, extractRootForwardedProps, mergeSx } from '@mui/x-date-pickers/internals';
|
|
10
10
|
import { useRangePosition } from "../useRangePosition.mjs";
|
|
11
11
|
import { PickerRangePositionContext } from "../../../hooks/usePickerRangePositionContext.mjs";
|
|
12
12
|
import { createRangePickerStepNavigation } from "../../utils/createRangePickerStepNavigation.mjs";
|
|
@@ -58,7 +58,7 @@ export const useStaticRangePicker = _ref => {
|
|
|
58
58
|
const renderPicker = () => /*#__PURE__*/_jsx(PickerRangePositionContext.Provider, {
|
|
59
59
|
value: rangePositionResponse,
|
|
60
60
|
children: /*#__PURE__*/_jsx(PickerProvider, _extends({}, providerProps, {
|
|
61
|
-
children: /*#__PURE__*/_jsx(Layout, _extends({}, slotProps?.layout, {
|
|
61
|
+
children: /*#__PURE__*/_jsx(Layout, _extends({}, extractRootForwardedProps(props), slotProps?.layout, {
|
|
62
62
|
slots: slots,
|
|
63
63
|
slotProps: slotProps,
|
|
64
64
|
sx: mergeSx(providerProps.contextValue.rootSx, slotProps?.layout?.sx),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.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",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"directory": "packages/x-date-pickers-pro"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "^7.
|
|
33
|
+
"@babel/runtime": "^7.29.2",
|
|
34
34
|
"@mui/utils": "9.0.0",
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"prop-types": "^15.8.1",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/x-date-pickers": "^9.0.0",
|
|
39
38
|
"@mui/x-internals": "^9.0.0",
|
|
40
|
-
"@mui/x-license": "^9.0.
|
|
39
|
+
"@mui/x-license": "^9.0.2",
|
|
40
|
+
"@mui/x-date-pickers": "^9.0.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.9.0",
|