@mui/x-date-pickers 8.11.1 → 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 +181 -0
- package/DateCalendar/DateCalendar.js +1 -0
- package/DateField/DateField.js +6 -3
- package/DateTimeField/DateTimeField.js +6 -3
- package/MonthCalendar/MonthCalendar.js +10 -6
- package/MonthCalendar/MonthCalendar.types.d.ts +1 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +14 -8
- package/TimeField/TimeField.js +6 -3
- package/esm/DateCalendar/DateCalendar.js +1 -0
- package/esm/DateField/DateField.js +7 -4
- package/esm/DateTimeField/DateTimeField.js +7 -4
- package/esm/MonthCalendar/MonthCalendar.js +10 -6
- package/esm/MonthCalendar/MonthCalendar.types.d.ts +1 -0
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +14 -8
- package/esm/TimeField/TimeField.js +7 -4
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.d.ts +0 -10
- package/esm/internals/components/PickerFieldUI.js +56 -21
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js +10 -12
- package/esm/internals/hooks/useField/useFieldSectionContentProps.js +9 -8
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.js +10 -12
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.d.ts +0 -10
- package/internals/components/PickerFieldUI.js +56 -21
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +10 -12
- package/internals/hooks/useField/useFieldSectionContentProps.js +9 -8
- package/internals/hooks/useMobilePicker/useMobilePicker.js +10 -12
- package/package.json +3 -3
|
@@ -14,7 +14,6 @@ var _PickersModalDialog = require("../../components/PickersModalDialog");
|
|
|
14
14
|
var _usePicker = require("../usePicker");
|
|
15
15
|
var _PickersLayout = require("../../../PickersLayout");
|
|
16
16
|
var _PickerProvider = require("../../components/PickerProvider");
|
|
17
|
-
var _PickerFieldUI = require("../../components/PickerFieldUI");
|
|
18
17
|
var _createNonRangePickerStepNavigation = require("../../utils/createNonRangePickerStepNavigation");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["props", "steps"],
|
|
@@ -82,21 +81,20 @@ const useMobilePicker = _ref => {
|
|
|
82
81
|
'aria-labelledby': labelledById
|
|
83
82
|
}, innerSlotProps?.mobilePaper)
|
|
84
83
|
});
|
|
85
|
-
const renderPicker = () => /*#__PURE__*/(0, _jsxRuntime.
|
|
86
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
84
|
+
const renderPicker = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PickerProvider.PickerProvider, (0, _extends2.default)({}, providerProps, {
|
|
85
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps, {
|
|
87
86
|
slots: slots,
|
|
88
87
|
slotProps: slotProps,
|
|
89
|
-
inputRef: inputRef
|
|
90
|
-
|
|
88
|
+
inputRef: inputRef
|
|
89
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersModalDialog.PickersModalDialog, {
|
|
90
|
+
slots: slots,
|
|
91
|
+
slotProps: slotProps,
|
|
92
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Layout, (0, _extends2.default)({}, slotProps?.layout, {
|
|
91
93
|
slots: slots,
|
|
92
94
|
slotProps: slotProps,
|
|
93
|
-
children:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
children: renderCurrentView()
|
|
97
|
-
}))
|
|
98
|
-
})]
|
|
99
|
-
})
|
|
95
|
+
children: renderCurrentView()
|
|
96
|
+
}))
|
|
97
|
+
})]
|
|
100
98
|
}));
|
|
101
99
|
if (process.env.NODE_ENV !== "production") renderPicker.displayName = "renderPicker";
|
|
102
100
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.3",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of the MUI X Date and Time Picker components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.28.2",
|
|
37
|
-
"@mui/utils": "^7.3.
|
|
37
|
+
"@mui/utils": "^7.3.2",
|
|
38
38
|
"@types/react-transition-group": "^4.4.12",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-internals": "8.11.
|
|
42
|
+
"@mui/x-internals": "8.11.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|