@mui/x-date-pickers 8.0.0 → 8.2.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.
- package/CHANGELOG.md +230 -5
- package/DateCalendar/DateCalendar.js +2 -4
- package/DateCalendar/DayCalendar.js +9 -18
- package/DateCalendar/PickersFadeTransitionGroup.d.ts +4 -2
- package/DateCalendar/PickersFadeTransitionGroup.js +10 -3
- package/DateCalendar/PickersSlideTransition.d.ts +4 -0
- package/DateCalendar/PickersSlideTransition.js +1 -0
- package/DateCalendar/index.d.ts +7 -7
- package/DateField/index.d.ts +1 -1
- package/DateField/useDateField.d.ts +1 -1
- package/DatePicker/DatePickerToolbar.js +2 -4
- package/DatePicker/index.d.ts +3 -3
- package/DateTimeField/index.d.ts +1 -1
- package/DateTimeField/useDateTimeField.d.ts +1 -1
- package/DateTimePicker/DateTimePickerTabs.js +1 -2
- package/DateTimePicker/DateTimePickerToolbar.js +1 -6
- package/DateTimePicker/index.d.ts +5 -5
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +5 -7
- package/DayCalendarSkeleton/index.d.ts +2 -2
- package/DesktopDatePicker/index.d.ts +1 -1
- package/DesktopDateTimePicker/index.d.ts +1 -1
- package/DesktopTimePicker/index.d.ts +1 -1
- package/DigitalClock/DigitalClock.js +3 -6
- package/DigitalClock/index.d.ts +2 -2
- package/LocalizationProvider/index.d.ts +1 -1
- package/MobileDatePicker/index.d.ts +1 -1
- package/MobileDateTimePicker/index.d.ts +1 -1
- package/MobileTimePicker/index.d.ts +1 -1
- package/MonthCalendar/MonthCalendar.js +0 -1
- package/MonthCalendar/index.d.ts +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +8 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -4
- package/MultiSectionDigitalClock/index.d.ts +4 -4
- package/PickersActionBar/PickersActionBar.js +1 -2
- package/PickersActionBar/index.d.ts +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +5 -10
- package/PickersCalendarHeader/index.d.ts +2 -2
- package/PickersDay/index.d.ts +2 -2
- package/PickersLayout/PickersLayout.js +2 -4
- package/PickersLayout/index.d.ts +2 -2
- package/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/PickersSectionList/PickersSectionList.js +4 -8
- package/PickersSectionList/PickersSectionList.types.d.ts +1 -1
- package/PickersSectionList/index.d.ts +2 -2
- package/PickersShortcuts/PickersShortcuts.js +1 -2
- package/PickersShortcuts/index.d.ts +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -3
- package/PickersTextField/PickersFilledInput/index.d.ts +2 -2
- package/PickersTextField/PickersInput/PickersInput.d.ts +7 -0
- package/PickersTextField/PickersInput/PickersInput.js +1 -2
- package/PickersTextField/PickersInput/index.d.ts +2 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
- package/PickersTextField/PickersInputBase/PickersInputBase.js +8 -13
- package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +2 -1
- package/PickersTextField/PickersInputBase/index.d.ts +2 -2
- package/PickersTextField/PickersOutlinedInput/Outline.js +1 -2
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -5
- package/PickersTextField/PickersOutlinedInput/index.d.ts +2 -2
- package/PickersTextField/PickersTextField.d.ts +1 -1
- package/PickersTextField/PickersTextField.js +1 -2
- package/PickersTextField/PickersTextField.types.d.ts +4 -43
- package/PickersTextField/index.d.ts +2 -2
- package/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
- package/StaticDatePicker/index.d.ts +1 -1
- package/StaticDateTimePicker/index.d.ts +1 -1
- package/StaticTimePicker/index.d.ts +1 -1
- package/TimeClock/Clock.d.ts +13 -2
- package/TimeClock/Clock.js +8 -16
- package/TimeClock/ClockNumber.d.ts +18 -0
- package/TimeClock/ClockNumbers.d.ts +1 -1
- package/TimeClock/ClockPointer.d.ts +13 -1
- package/TimeClock/ClockPointer.js +2 -4
- package/TimeClock/TimeClock.js +2 -4
- package/TimeClock/index.d.ts +8 -8
- package/TimeField/index.d.ts +1 -1
- package/TimeField/useTimeField.d.ts +1 -1
- package/TimePicker/TimePickerToolbar.js +2 -4
- package/TimePicker/index.d.ts +3 -3
- package/YearCalendar/index.d.ts +2 -2
- package/dateViewRenderers/index.d.ts +1 -1
- package/esm/DateCalendar/DateCalendar.js +2 -4
- package/esm/DateCalendar/DayCalendar.js +9 -18
- package/esm/DateCalendar/PickersFadeTransitionGroup.d.ts +4 -2
- package/esm/DateCalendar/PickersFadeTransitionGroup.js +10 -3
- package/esm/DateCalendar/PickersSlideTransition.d.ts +4 -0
- package/esm/DateCalendar/PickersSlideTransition.js +1 -0
- package/esm/DateCalendar/index.d.ts +7 -7
- package/esm/DateField/index.d.ts +1 -1
- package/esm/DateField/useDateField.d.ts +1 -1
- package/esm/DatePicker/DatePickerToolbar.js +2 -4
- package/esm/DatePicker/index.d.ts +3 -3
- package/esm/DateTimeField/index.d.ts +1 -1
- package/esm/DateTimeField/useDateTimeField.d.ts +1 -1
- package/esm/DateTimePicker/DateTimePickerTabs.js +1 -2
- package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -6
- package/esm/DateTimePicker/index.d.ts +5 -5
- package/esm/DayCalendarSkeleton/DayCalendarSkeleton.js +5 -7
- package/esm/DayCalendarSkeleton/index.d.ts +2 -2
- package/esm/DesktopDatePicker/index.d.ts +1 -1
- package/esm/DesktopDateTimePicker/index.d.ts +1 -1
- package/esm/DesktopTimePicker/index.d.ts +1 -1
- package/esm/DigitalClock/DigitalClock.js +3 -6
- package/esm/DigitalClock/index.d.ts +2 -2
- package/esm/LocalizationProvider/index.d.ts +1 -1
- package/esm/MobileDatePicker/index.d.ts +1 -1
- package/esm/MobileDateTimePicker/index.d.ts +1 -1
- package/esm/MobileTimePicker/index.d.ts +1 -1
- package/esm/MonthCalendar/MonthCalendar.js +0 -1
- package/esm/MonthCalendar/index.d.ts +2 -2
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -2
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +8 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -4
- package/esm/MultiSectionDigitalClock/index.d.ts +4 -4
- package/esm/PickersActionBar/PickersActionBar.js +1 -2
- package/esm/PickersActionBar/index.d.ts +1 -1
- package/esm/PickersCalendarHeader/PickersCalendarHeader.js +5 -10
- package/esm/PickersCalendarHeader/index.d.ts +2 -2
- package/esm/PickersDay/index.d.ts +2 -2
- package/esm/PickersLayout/PickersLayout.js +2 -4
- package/esm/PickersLayout/index.d.ts +2 -2
- package/esm/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/esm/PickersSectionList/PickersSectionList.js +4 -8
- package/esm/PickersSectionList/PickersSectionList.types.d.ts +1 -1
- package/esm/PickersSectionList/index.d.ts +2 -2
- package/esm/PickersShortcuts/PickersShortcuts.js +1 -2
- package/esm/PickersShortcuts/index.d.ts +1 -1
- package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.d.ts +1 -1
- package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -3
- package/esm/PickersTextField/PickersFilledInput/index.d.ts +2 -2
- package/esm/PickersTextField/PickersInput/PickersInput.d.ts +7 -0
- package/esm/PickersTextField/PickersInput/PickersInput.js +1 -2
- package/esm/PickersTextField/PickersInput/index.d.ts +2 -2
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.d.ts +1 -1
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +8 -13
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +2 -1
- package/esm/PickersTextField/PickersInputBase/index.d.ts +2 -2
- package/esm/PickersTextField/PickersOutlinedInput/Outline.js +1 -2
- package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +3 -5
- package/esm/PickersTextField/PickersOutlinedInput/index.d.ts +2 -2
- package/esm/PickersTextField/PickersTextField.d.ts +1 -1
- package/esm/PickersTextField/PickersTextField.js +1 -2
- package/esm/PickersTextField/PickersTextField.types.d.ts +4 -43
- package/esm/PickersTextField/index.d.ts +2 -2
- package/esm/PickersTextField/usePickerTextFieldOwnerState.d.ts +1 -1
- package/esm/StaticDatePicker/index.d.ts +1 -1
- package/esm/StaticDateTimePicker/index.d.ts +1 -1
- package/esm/StaticTimePicker/index.d.ts +1 -1
- package/esm/TimeClock/Clock.d.ts +13 -2
- package/esm/TimeClock/Clock.js +8 -16
- package/esm/TimeClock/ClockNumber.d.ts +18 -0
- package/esm/TimeClock/ClockNumbers.d.ts +1 -1
- package/esm/TimeClock/ClockPointer.d.ts +13 -1
- package/esm/TimeClock/ClockPointer.js +2 -4
- package/esm/TimeClock/TimeClock.js +2 -4
- package/esm/TimeClock/index.d.ts +8 -8
- package/esm/TimeField/index.d.ts +1 -1
- package/esm/TimeField/useTimeField.d.ts +1 -1
- package/esm/TimePicker/TimePickerToolbar.js +2 -4
- package/esm/TimePicker/index.d.ts +3 -3
- package/esm/YearCalendar/index.d.ts +2 -2
- package/esm/dateViewRenderers/index.d.ts +1 -1
- package/esm/hooks/usePickerContext.d.ts +1 -1
- package/esm/hooks/usePickerTranslations.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.d.ts +1 -1
- package/esm/internals/components/PickerPopper/PickerPopper.d.ts +2 -3
- package/esm/internals/components/PickerPopper/PickerPopper.js +2 -4
- package/esm/internals/components/PickerPopper/index.d.ts +2 -2
- package/esm/internals/components/PickerProvider.d.ts +2 -2
- package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +3 -6
- package/esm/internals/components/PickersArrowSwitcher/index.d.ts +2 -2
- package/esm/internals/components/PickersToolbar.js +1 -3
- package/esm/internals/components/PickersToolbarButton.js +3 -3
- package/esm/internals/components/PickersToolbarText.js +3 -3
- package/esm/internals/hooks/date-helpers-hooks.d.ts +1 -1
- package/esm/internals/hooks/useControlledValue.d.ts +1 -1
- package/esm/internals/hooks/useDesktopPicker/index.d.ts +1 -1
- package/esm/internals/hooks/useField/index.d.ts +1 -1
- package/esm/internals/hooks/useField/useField.types.d.ts +1 -1
- package/esm/internals/hooks/useMobilePicker/index.d.ts +1 -1
- package/esm/internals/hooks/useNullableFieldPrivateContext.d.ts +1 -1
- package/esm/internals/hooks/useNullablePickerContext.d.ts +1 -1
- package/esm/internals/hooks/usePicker/index.d.ts +1 -1
- package/esm/internals/hooks/usePickerPrivateContext.d.ts +1 -1
- package/esm/internals/hooks/useStaticPicker/index.d.ts +1 -1
- package/esm/internals/hooks/useViews.d.ts +1 -1
- package/esm/internals/index.d.ts +34 -32
- package/esm/internals/index.js +1 -0
- package/esm/internals/models/fields.d.ts +1 -1
- package/esm/internals/models/helpers.d.ts +12 -1
- package/esm/internals/models/manager.d.ts +3 -3
- package/esm/internals/models/props/basePickerProps.d.ts +1 -1
- package/esm/internals/models/props/time.d.ts +3 -3
- package/esm/internals/models/validation.d.ts +1 -1
- package/esm/internals/utils/createNonRangePickerStepNavigation.d.ts +1 -1
- package/esm/internals/utils/valueManagers.d.ts +2 -2
- package/esm/locales/enUS.d.ts +1 -1
- package/esm/locales/itIT.js +2 -2
- package/esm/locales/mk.d.ts +1 -1
- package/esm/locales/utils/getPickersLocalization.d.ts +1 -1
- package/esm/managers/index.d.ts +3 -3
- package/esm/models/fields.d.ts +43 -4
- package/esm/models/manager.d.ts +4 -4
- package/esm/models/pickers.d.ts +1 -1
- package/esm/models/validation.d.ts +1 -1
- package/esm/themeAugmentation/components.d.ts +44 -37
- package/esm/themeAugmentation/components.js +1 -0
- package/esm/themeAugmentation/index.d.ts +3 -3
- package/esm/themeAugmentation/overrides.d.ts +0 -6
- package/esm/themeAugmentation/overrides.js +4 -0
- package/esm/themeAugmentation/props.d.ts +2 -12
- package/esm/themeAugmentation/props.js +2 -0
- package/esm/timeViewRenderers/index.d.ts +1 -1
- package/esm/timeViewRenderers/timeViewRenderers.d.ts +1 -1
- package/esm/validation/index.d.ts +4 -4
- package/esm/validation/useValidation.d.ts +1 -1
- package/hooks/usePickerContext.d.ts +1 -1
- package/hooks/usePickerTranslations.d.ts +1 -1
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.d.ts +1 -1
- package/internals/components/PickerPopper/PickerPopper.d.ts +2 -3
- package/internals/components/PickerPopper/PickerPopper.js +2 -4
- package/internals/components/PickerPopper/index.d.ts +2 -2
- package/internals/components/PickerProvider.d.ts +2 -2
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +3 -6
- package/internals/components/PickersArrowSwitcher/index.d.ts +2 -2
- package/internals/components/PickersToolbar.js +1 -3
- package/internals/components/PickersToolbarButton.js +3 -3
- package/internals/components/PickersToolbarText.js +3 -3
- package/internals/hooks/date-helpers-hooks.d.ts +1 -1
- package/internals/hooks/useControlledValue.d.ts +1 -1
- package/internals/hooks/useDesktopPicker/index.d.ts +1 -1
- package/internals/hooks/useField/index.d.ts +1 -1
- package/internals/hooks/useField/useField.types.d.ts +1 -1
- package/internals/hooks/useMobilePicker/index.d.ts +1 -1
- package/internals/hooks/useNullableFieldPrivateContext.d.ts +1 -1
- package/internals/hooks/useNullablePickerContext.d.ts +1 -1
- package/internals/hooks/usePicker/index.d.ts +1 -1
- package/internals/hooks/usePickerPrivateContext.d.ts +1 -1
- package/internals/hooks/useStaticPicker/index.d.ts +1 -1
- package/internals/hooks/useViews.d.ts +1 -1
- package/internals/index.d.ts +34 -32
- package/internals/index.js +7 -0
- package/internals/models/fields.d.ts +1 -1
- package/internals/models/helpers.d.ts +12 -1
- package/internals/models/manager.d.ts +3 -3
- package/internals/models/props/basePickerProps.d.ts +1 -1
- package/internals/models/props/time.d.ts +3 -3
- package/internals/models/validation.d.ts +1 -1
- package/internals/utils/createNonRangePickerStepNavigation.d.ts +1 -1
- package/internals/utils/valueManagers.d.ts +2 -2
- package/locales/enUS.d.ts +1 -1
- package/locales/itIT.js +2 -2
- package/locales/mk.d.ts +1 -1
- package/locales/utils/getPickersLocalization.d.ts +1 -1
- package/managers/index.d.ts +3 -3
- package/models/fields.d.ts +43 -4
- package/models/manager.d.ts +4 -4
- package/models/pickers.d.ts +1 -1
- package/models/validation.d.ts +1 -1
- package/package.json +2 -2
- package/themeAugmentation/components.d.ts +44 -37
- package/themeAugmentation/components.js +5 -0
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/overrides.d.ts +0 -6
- package/themeAugmentation/overrides.js +5 -0
- package/themeAugmentation/props.d.ts +2 -12
- package/themeAugmentation/props.js +5 -0
- package/timeViewRenderers/index.d.ts +1 -1
- package/timeViewRenderers/timeViewRenderers.d.ts +1 -1
- package/validation/index.d.ts +4 -4
- package/validation/useValidation.d.ts +1 -1
|
@@ -29,15 +29,13 @@ const useUtilityClasses = classes => {
|
|
|
29
29
|
};
|
|
30
30
|
const DayCalendarSkeletonRoot = (0, _styles.styled)('div', {
|
|
31
31
|
name: 'MuiDayCalendarSkeleton',
|
|
32
|
-
slot: 'Root'
|
|
33
|
-
overridesResolver: (props, styles) => styles.root
|
|
32
|
+
slot: 'Root'
|
|
34
33
|
})({
|
|
35
34
|
alignSelf: 'start'
|
|
36
35
|
});
|
|
37
36
|
const DayCalendarSkeletonWeek = (0, _styles.styled)('div', {
|
|
38
37
|
name: 'MuiDayCalendarSkeleton',
|
|
39
|
-
slot: 'Week'
|
|
40
|
-
overridesResolver: (props, styles) => styles.week
|
|
38
|
+
slot: 'Week'
|
|
41
39
|
})({
|
|
42
40
|
margin: `${_dimensions.DAY_MARGIN}px 0`,
|
|
43
41
|
display: 'flex',
|
|
@@ -45,8 +43,7 @@ const DayCalendarSkeletonWeek = (0, _styles.styled)('div', {
|
|
|
45
43
|
});
|
|
46
44
|
const DayCalendarSkeletonDay = (0, _styles.styled)(_Skeleton.default, {
|
|
47
45
|
name: 'MuiDayCalendarSkeleton',
|
|
48
|
-
slot: 'DaySkeleton'
|
|
49
|
-
overridesResolver: (props, styles) => styles.daySkeleton
|
|
46
|
+
slot: 'DaySkeleton'
|
|
50
47
|
})({
|
|
51
48
|
margin: `0 ${_dimensions.DAY_MARGIN}px`,
|
|
52
49
|
'&[data-day-in-month="0"]': {
|
|
@@ -76,7 +73,8 @@ function DayCalendarSkeleton(inProps) {
|
|
|
76
73
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
77
74
|
const classes = useUtilityClasses(classesProp);
|
|
78
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DayCalendarSkeletonRoot, (0, _extends2.default)({
|
|
79
|
-
className: (0, _clsx.default)(classes.root, className)
|
|
76
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
77
|
+
ownerState: props
|
|
80
78
|
}, other, {
|
|
81
79
|
children: monthMap.map((week, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(DayCalendarSkeletonWeek, {
|
|
82
80
|
className: classes.week,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DayCalendarSkeleton } from "./DayCalendarSkeleton.js";
|
|
2
|
-
export type { DayCalendarSkeletonProps } from
|
|
2
|
+
export type { DayCalendarSkeletonProps } from "./DayCalendarSkeleton.js";
|
|
3
3
|
export { dayCalendarSkeletonClasses, getDayCalendarSkeletonUtilityClass } from "./dayCalendarSkeletonClasses.js";
|
|
4
|
-
export type { DayCalendarSkeletonClassKey, DayCalendarSkeletonClasses } from
|
|
4
|
+
export type { DayCalendarSkeletonClassKey, DayCalendarSkeletonClasses } from "./dayCalendarSkeletonClasses.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DesktopDatePicker } from "./DesktopDatePicker.js";
|
|
2
|
-
export type { DesktopDatePickerProps, DesktopDatePickerSlots, DesktopDatePickerSlotProps } from
|
|
2
|
+
export type { DesktopDatePickerProps, DesktopDatePickerSlots, DesktopDatePickerSlotProps } from "./DesktopDatePicker.types.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { DesktopDateTimePicker } from "./DesktopDateTimePicker.js";
|
|
2
2
|
export { DesktopDateTimePickerLayout } from "./DesktopDateTimePickerLayout.js";
|
|
3
|
-
export type { DesktopDateTimePickerProps, DesktopDateTimePickerSlots, DesktopDateTimePickerSlotProps } from
|
|
3
|
+
export type { DesktopDateTimePickerProps, DesktopDateTimePickerSlots, DesktopDateTimePickerSlotProps } from "./DesktopDateTimePicker.types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { DesktopTimePicker } from "./DesktopTimePicker.js";
|
|
2
|
-
export type { DesktopTimePickerProps, DesktopTimePickerSlots, DesktopTimePickerSlotProps } from
|
|
2
|
+
export type { DesktopTimePickerProps, DesktopTimePickerSlots, DesktopTimePickerSlotProps } from "./DesktopTimePicker.types.js";
|
|
@@ -43,8 +43,7 @@ const useUtilityClasses = classes => {
|
|
|
43
43
|
};
|
|
44
44
|
const DigitalClockRoot = (0, _styles.styled)(_PickerViewRoot.PickerViewRoot, {
|
|
45
45
|
name: 'MuiDigitalClock',
|
|
46
|
-
slot: 'Root'
|
|
47
|
-
overridesResolver: (props, styles) => styles.root
|
|
46
|
+
slot: 'Root'
|
|
48
47
|
})({
|
|
49
48
|
overflowY: 'auto',
|
|
50
49
|
width: '100%',
|
|
@@ -66,16 +65,14 @@ const DigitalClockRoot = (0, _styles.styled)(_PickerViewRoot.PickerViewRoot, {
|
|
|
66
65
|
});
|
|
67
66
|
const DigitalClockList = (0, _styles.styled)(_MenuList.default, {
|
|
68
67
|
name: 'MuiDigitalClock',
|
|
69
|
-
slot: 'List'
|
|
70
|
-
overridesResolver: (props, styles) => styles.list
|
|
68
|
+
slot: 'List'
|
|
71
69
|
})({
|
|
72
70
|
padding: 0
|
|
73
71
|
});
|
|
74
72
|
const DigitalClockItem = exports.DigitalClockItem = (0, _styles.styled)(_MenuItem.default, {
|
|
75
73
|
name: 'MuiDigitalClock',
|
|
76
74
|
slot: 'Item',
|
|
77
|
-
shouldForwardProp: prop => prop !== 'itemValue' && prop !== 'formattedValue'
|
|
78
|
-
overridesResolver: (props, styles) => styles.item
|
|
75
|
+
shouldForwardProp: prop => prop !== 'itemValue' && prop !== 'formattedValue'
|
|
79
76
|
})(({
|
|
80
77
|
theme
|
|
81
78
|
}) => ({
|
package/DigitalClock/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DigitalClock, DigitalClockItem } from "./DigitalClock.js";
|
|
2
|
-
export type { DigitalClockProps, DigitalClockSlots, DigitalClockSlotProps, ExportedDigitalClockProps, DigitalClockItemProps } from
|
|
2
|
+
export type { DigitalClockProps, DigitalClockSlots, DigitalClockSlotProps, ExportedDigitalClockProps, DigitalClockItemProps } from "./DigitalClock.types.js";
|
|
3
3
|
export { digitalClockClasses, getDigitalClockUtilityClass } from "./digitalClockClasses.js";
|
|
4
|
-
export type { DigitalClockClasses, DigitalClockClassKey } from
|
|
4
|
+
export type { DigitalClockClasses, DigitalClockClassKey } from "./digitalClockClasses.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { LocalizationProvider, MuiPickersAdapterContext } from "./LocalizationProvider.js";
|
|
2
|
-
export type { LocalizationProviderProps } from
|
|
2
|
+
export type { LocalizationProviderProps } from "./LocalizationProvider.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MobileDatePicker } from "./MobileDatePicker.js";
|
|
2
|
-
export type { MobileDatePickerProps, MobileDatePickerSlots, MobileDatePickerSlotProps } from
|
|
2
|
+
export type { MobileDatePickerProps, MobileDatePickerSlots, MobileDatePickerSlotProps } from "./MobileDatePicker.types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MobileDateTimePicker } from "./MobileDateTimePicker.js";
|
|
2
|
-
export type { MobileDateTimePickerProps, MobileDateTimePickerSlots, MobileDateTimePickerSlotProps } from
|
|
2
|
+
export type { MobileDateTimePickerProps, MobileDateTimePickerSlots, MobileDateTimePickerSlotProps } from "./MobileDateTimePicker.types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MobileTimePicker } from "./MobileTimePicker.js";
|
|
2
|
-
export type { MobileTimePickerProps, MobileTimePickerSlots, MobileTimePickerSlotProps } from
|
|
2
|
+
export type { MobileTimePickerProps, MobileTimePickerSlots, MobileTimePickerSlotProps } from "./MobileTimePicker.types.js";
|
|
@@ -48,7 +48,6 @@ function useMonthCalendarDefaultizedProps(props, name) {
|
|
|
48
48
|
const MonthCalendarRoot = (0, _styles.styled)('div', {
|
|
49
49
|
name: 'MuiMonthCalendar',
|
|
50
50
|
slot: 'Root',
|
|
51
|
-
overridesResolver: (props, styles) => styles.root,
|
|
52
51
|
shouldForwardProp: prop => (0, _createStyled.shouldForwardProp)(prop) && prop !== 'monthsPerRow'
|
|
53
52
|
})({
|
|
54
53
|
display: 'flex',
|
package/MonthCalendar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { MonthCalendar } from "./MonthCalendar.js";
|
|
2
|
-
export type { MonthCalendarProps, MonthCalendarSlots, MonthCalendarSlotProps } from
|
|
2
|
+
export type { MonthCalendarProps, MonthCalendarSlots, MonthCalendarSlotProps } from "./MonthCalendar.types.js";
|
|
3
3
|
export { monthCalendarClasses, getMonthCalendarUtilityClass } from "./monthCalendarClasses.js";
|
|
4
|
-
export type { MonthCalendarClasses, MonthCalendarClassKey } from
|
|
4
|
+
export type { MonthCalendarClasses, MonthCalendarClassKey } from "./monthCalendarClasses.js";
|
|
@@ -40,8 +40,7 @@ const useUtilityClasses = classes => {
|
|
|
40
40
|
};
|
|
41
41
|
const MultiSectionDigitalClockRoot = (0, _styles.styled)(_PickerViewRoot.PickerViewRoot, {
|
|
42
42
|
name: 'MuiMultiSectionDigitalClock',
|
|
43
|
-
slot: 'Root'
|
|
44
|
-
overridesResolver: (_, styles) => styles.root
|
|
43
|
+
slot: 'Root'
|
|
45
44
|
})(({
|
|
46
45
|
theme
|
|
47
46
|
}) => ({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MultiSectionDigitalClockSectionClasses } from "./multiSectionDigitalClockSectionClasses.js";
|
|
3
|
-
import type { MultiSectionDigitalClockOption, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from
|
|
3
|
+
import type { MultiSectionDigitalClockOption, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from "./MultiSectionDigitalClock.types.js";
|
|
4
4
|
import { FormProps } from "../internals/models/formProps.js";
|
|
5
|
+
import { PickerOwnerState } from "../models/pickers.js";
|
|
5
6
|
export interface ExportedMultiSectionDigitalClockSectionProps {
|
|
6
7
|
className?: string;
|
|
7
8
|
classes?: Partial<MultiSectionDigitalClockSectionClasses>;
|
|
@@ -16,6 +17,12 @@ export interface MultiSectionDigitalClockSectionProps<TSectionValue extends numb
|
|
|
16
17
|
skipDisabled?: boolean;
|
|
17
18
|
role?: string;
|
|
18
19
|
}
|
|
20
|
+
export interface MultiSectionDigitalClockSectionOwnerState extends PickerOwnerState {
|
|
21
|
+
/**
|
|
22
|
+
* `true` if this is not the initial render of the digital clock.
|
|
23
|
+
*/
|
|
24
|
+
hasDigitalClockAlreadyBeenRendered: boolean;
|
|
25
|
+
}
|
|
19
26
|
type MultiSectionDigitalClockSectionComponent = <TSectionValue extends number | string>(props: MultiSectionDigitalClockSectionProps<TSectionValue> & React.RefAttributes<HTMLUListElement>) => React.JSX.Element & {
|
|
20
27
|
propTypes?: any;
|
|
21
28
|
};
|
|
@@ -31,8 +31,7 @@ const useUtilityClasses = classes => {
|
|
|
31
31
|
};
|
|
32
32
|
const MultiSectionDigitalClockSectionRoot = (0, _styles.styled)(_MenuList.default, {
|
|
33
33
|
name: 'MuiMultiSectionDigitalClockSection',
|
|
34
|
-
slot: 'Root'
|
|
35
|
-
overridesResolver: (_, styles) => styles.root
|
|
34
|
+
slot: 'Root'
|
|
36
35
|
})(({
|
|
37
36
|
theme
|
|
38
37
|
}) => ({
|
|
@@ -74,8 +73,7 @@ const MultiSectionDigitalClockSectionRoot = (0, _styles.styled)(_MenuList.defaul
|
|
|
74
73
|
}));
|
|
75
74
|
const MultiSectionDigitalClockSectionItem = (0, _styles.styled)(_MenuItem.default, {
|
|
76
75
|
name: 'MuiMultiSectionDigitalClockSection',
|
|
77
|
-
slot: 'Item'
|
|
78
|
-
overridesResolver: (_, styles) => styles.item
|
|
76
|
+
slot: 'Item'
|
|
79
77
|
})(({
|
|
80
78
|
theme
|
|
81
79
|
}) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { MultiSectionDigitalClock } from "./MultiSectionDigitalClock.js";
|
|
2
|
-
export type { MultiSectionDigitalClockProps, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from
|
|
2
|
+
export type { MultiSectionDigitalClockProps, MultiSectionDigitalClockSlots, MultiSectionDigitalClockSlotProps } from "./MultiSectionDigitalClock.types.js";
|
|
3
3
|
export { multiSectionDigitalClockSectionClasses } from "./multiSectionDigitalClockSectionClasses.js";
|
|
4
|
-
export type { MultiSectionDigitalClockSectionClasses, MultiSectionDigitalClockSectionClassKey } from
|
|
5
|
-
export type { ExportedMultiSectionDigitalClockSectionProps } from
|
|
4
|
+
export type { MultiSectionDigitalClockSectionClasses, MultiSectionDigitalClockSectionClassKey } from "./multiSectionDigitalClockSectionClasses.js";
|
|
5
|
+
export type { ExportedMultiSectionDigitalClockSectionProps } from "./MultiSectionDigitalClockSection.js";
|
|
6
6
|
export { multiSectionDigitalClockClasses, getMultiSectionDigitalClockUtilityClass } from "./multiSectionDigitalClockClasses.js";
|
|
7
|
-
export type { MultiSectionDigitalClockClasses, MultiSectionDigitalClockClassKey } from
|
|
7
|
+
export type { MultiSectionDigitalClockClasses, MultiSectionDigitalClockClassKey } from "./multiSectionDigitalClockClasses.js";
|
|
@@ -20,8 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
const _excluded = ["actions"];
|
|
21
21
|
const PickersActionBarRoot = (0, _styles.styled)(_DialogActions.default, {
|
|
22
22
|
name: 'MuiPickersLayout',
|
|
23
|
-
slot: 'ActionBar'
|
|
24
|
-
overridesResolver: (_, styles) => styles.actionBar
|
|
23
|
+
slot: 'ActionBar'
|
|
25
24
|
})({});
|
|
26
25
|
|
|
27
26
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PickersActionBar } from "./PickersActionBar.js";
|
|
2
|
-
export type { PickersActionBarProps, PickersActionBarAction } from
|
|
2
|
+
export type { PickersActionBarProps, PickersActionBarAction } from "./PickersActionBar.js";
|
|
@@ -40,8 +40,7 @@ const useUtilityClasses = classes => {
|
|
|
40
40
|
};
|
|
41
41
|
const PickersCalendarHeaderRoot = (0, _styles.styled)('div', {
|
|
42
42
|
name: 'MuiPickersCalendarHeader',
|
|
43
|
-
slot: 'Root'
|
|
44
|
-
overridesResolver: (_, styles) => styles.root
|
|
43
|
+
slot: 'Root'
|
|
45
44
|
})({
|
|
46
45
|
display: 'flex',
|
|
47
46
|
alignItems: 'center',
|
|
@@ -55,8 +54,7 @@ const PickersCalendarHeaderRoot = (0, _styles.styled)('div', {
|
|
|
55
54
|
});
|
|
56
55
|
const PickersCalendarHeaderLabelContainer = (0, _styles.styled)('div', {
|
|
57
56
|
name: 'MuiPickersCalendarHeader',
|
|
58
|
-
slot: 'LabelContainer'
|
|
59
|
-
overridesResolver: (_, styles) => styles.labelContainer
|
|
57
|
+
slot: 'LabelContainer'
|
|
60
58
|
})(({
|
|
61
59
|
theme
|
|
62
60
|
}) => (0, _extends2.default)({
|
|
@@ -70,15 +68,13 @@ const PickersCalendarHeaderLabelContainer = (0, _styles.styled)('div', {
|
|
|
70
68
|
}));
|
|
71
69
|
const PickersCalendarHeaderLabel = (0, _styles.styled)('div', {
|
|
72
70
|
name: 'MuiPickersCalendarHeader',
|
|
73
|
-
slot: 'Label'
|
|
74
|
-
overridesResolver: (_, styles) => styles.label
|
|
71
|
+
slot: 'Label'
|
|
75
72
|
})({
|
|
76
73
|
marginRight: 6
|
|
77
74
|
});
|
|
78
75
|
const PickersCalendarHeaderSwitchViewButton = (0, _styles.styled)(_IconButton.default, {
|
|
79
76
|
name: 'MuiPickersCalendarHeader',
|
|
80
|
-
slot: 'SwitchViewButton'
|
|
81
|
-
overridesResolver: (_, styles) => styles.switchViewButton
|
|
77
|
+
slot: 'SwitchViewButton'
|
|
82
78
|
})({
|
|
83
79
|
marginRight: 'auto',
|
|
84
80
|
variants: [{
|
|
@@ -94,8 +90,7 @@ const PickersCalendarHeaderSwitchViewButton = (0, _styles.styled)(_IconButton.de
|
|
|
94
90
|
});
|
|
95
91
|
const PickersCalendarHeaderSwitchViewIcon = (0, _styles.styled)(_icons.ArrowDropDownIcon, {
|
|
96
92
|
name: 'MuiPickersCalendarHeader',
|
|
97
|
-
slot: 'SwitchViewIcon'
|
|
98
|
-
overridesResolver: (_, styles) => styles.switchViewIcon
|
|
93
|
+
slot: 'SwitchViewIcon'
|
|
99
94
|
})(({
|
|
100
95
|
theme
|
|
101
96
|
}) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { pickersCalendarHeaderClasses } from "./pickersCalendarHeaderClasses.js";
|
|
2
|
-
export type { PickersCalendarHeaderClassKey, PickersCalendarHeaderClasses } from
|
|
2
|
+
export type { PickersCalendarHeaderClassKey, PickersCalendarHeaderClasses } from "./pickersCalendarHeaderClasses.js";
|
|
3
3
|
export { PickersCalendarHeader } from "./PickersCalendarHeader.js";
|
|
4
|
-
export type { PickersCalendarHeaderProps, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps, ExportedPickersCalendarHeaderProps } from
|
|
4
|
+
export type { PickersCalendarHeaderProps, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps, ExportedPickersCalendarHeaderProps } from "./PickersCalendarHeader.types.js";
|
package/PickersDay/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersDay } from "./PickersDay.js";
|
|
2
|
-
export type { PickersDayProps, PickerDayOwnerState } from
|
|
2
|
+
export type { PickersDayProps, PickerDayOwnerState } from "./PickersDay.types.js";
|
|
3
3
|
export { pickersDayClasses, getPickersDayUtilityClass } from "./pickersDayClasses.js";
|
|
4
|
-
export type { PickersDayClasses, PickersDayClassKey } from
|
|
4
|
+
export type { PickersDayClasses, PickersDayClassKey } from "./pickersDayClasses.js";
|
|
@@ -28,8 +28,7 @@ const useUtilityClasses = (classes, ownerState) => {
|
|
|
28
28
|
};
|
|
29
29
|
const PickersLayoutRoot = exports.PickersLayoutRoot = (0, _styles.styled)('div', {
|
|
30
30
|
name: 'MuiPickersLayout',
|
|
31
|
-
slot: 'Root'
|
|
32
|
-
overridesResolver: (props, styles) => styles.root
|
|
31
|
+
slot: 'Root'
|
|
33
32
|
})({
|
|
34
33
|
display: 'grid',
|
|
35
34
|
gridAutoColumns: 'max-content auto max-content',
|
|
@@ -90,8 +89,7 @@ const PickersLayoutRoot = exports.PickersLayoutRoot = (0, _styles.styled)('div',
|
|
|
90
89
|
});
|
|
91
90
|
const PickersLayoutContentWrapper = exports.PickersLayoutContentWrapper = (0, _styles.styled)('div', {
|
|
92
91
|
name: 'MuiPickersLayout',
|
|
93
|
-
slot: 'ContentWrapper'
|
|
94
|
-
overridesResolver: (props, styles) => styles.contentWrapper
|
|
92
|
+
slot: 'ContentWrapper'
|
|
95
93
|
})({
|
|
96
94
|
gridColumn: '2 / 4',
|
|
97
95
|
gridRow: 2,
|
package/PickersLayout/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { PickersLayout, PickersLayoutRoot, PickersLayoutContentWrapper } from "./PickersLayout.js";
|
|
2
|
-
export type { PickersLayoutProps, PickersLayoutSlots, PickersLayoutSlotProps, ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickerLayoutOwnerState } from
|
|
2
|
+
export type { PickersLayoutProps, PickersLayoutSlots, PickersLayoutSlotProps, ExportedPickersLayoutSlots, ExportedPickersLayoutSlotProps, PickerLayoutOwnerState } from "./PickersLayout.types.js";
|
|
3
3
|
export { default as usePickerLayout } from "./usePickerLayout.js";
|
|
4
4
|
export { pickersLayoutClasses } from "./pickersLayoutClasses.js";
|
|
5
|
-
export type { PickersLayoutClassKey } from
|
|
5
|
+
export type { PickersLayoutClassKey } from "./pickersLayoutClasses.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PickersSectionListProps } from
|
|
2
|
+
import type { PickersSectionListProps } from "./PickersSectionList.types.js";
|
|
3
3
|
export declare const PickersSectionListRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
4
|
export declare const PickersSectionListSection: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
5
5
|
export declare const PickersSectionListSectionSeparator: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof React.ClassAttributes<HTMLSpanElement> | keyof React.HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
@@ -21,28 +21,24 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
const _excluded = ["slots", "slotProps", "elements", "sectionListRef", "classes"];
|
|
22
22
|
const PickersSectionListRoot = exports.PickersSectionListRoot = (0, _styles.styled)('div', {
|
|
23
23
|
name: 'MuiPickersSectionList',
|
|
24
|
-
slot: 'Root'
|
|
25
|
-
overridesResolver: (props, styles) => styles.root
|
|
24
|
+
slot: 'Root'
|
|
26
25
|
})({
|
|
27
26
|
direction: 'ltr /*! @noflip */',
|
|
28
27
|
outline: 'none'
|
|
29
28
|
});
|
|
30
29
|
const PickersSectionListSection = exports.PickersSectionListSection = (0, _styles.styled)('span', {
|
|
31
30
|
name: 'MuiPickersSectionList',
|
|
32
|
-
slot: 'Section'
|
|
33
|
-
overridesResolver: (props, styles) => styles.section
|
|
31
|
+
slot: 'Section'
|
|
34
32
|
})({});
|
|
35
33
|
const PickersSectionListSectionSeparator = exports.PickersSectionListSectionSeparator = (0, _styles.styled)('span', {
|
|
36
34
|
name: 'MuiPickersSectionList',
|
|
37
|
-
slot: 'SectionSeparator'
|
|
38
|
-
overridesResolver: (props, styles) => styles.sectionSeparator
|
|
35
|
+
slot: 'SectionSeparator'
|
|
39
36
|
})({
|
|
40
37
|
whiteSpace: 'pre'
|
|
41
38
|
});
|
|
42
39
|
const PickersSectionListSectionContent = exports.PickersSectionListSectionContent = (0, _styles.styled)('span', {
|
|
43
40
|
name: 'MuiPickersSectionList',
|
|
44
|
-
slot: 'SectionContent'
|
|
45
|
-
overridesResolver: (props, styles) => styles.sectionContent
|
|
41
|
+
slot: 'SectionContent'
|
|
46
42
|
})({
|
|
47
43
|
outline: 'none'
|
|
48
44
|
});
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
import { PickersSectionListClasses } from "./pickersSectionListClasses.js";
|
|
4
4
|
import { PickerOwnerState } from "../models/index.js";
|
|
5
|
-
import type { UseFieldDOMGetters } from
|
|
5
|
+
import type { UseFieldDOMGetters } from "../internals/hooks/useField/useField.types.js";
|
|
6
6
|
export interface PickersSectionListSlots {
|
|
7
7
|
root: React.ElementType;
|
|
8
8
|
section: React.ElementType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersSectionList as Unstable_PickersSectionList, PickersSectionListRoot as Unstable_PickersSectionListRoot, PickersSectionListSection as Unstable_PickersSectionListSection, PickersSectionListSectionSeparator as Unstable_PickersSectionListSectionSeparator, PickersSectionListSectionContent as Unstable_PickersSectionListSectionContent } from "./PickersSectionList.js";
|
|
2
|
-
export type { PickersSectionListProps, PickersSectionElement, PickersSectionListRef, PickersSectionListSlots, PickersSectionListSlotProps, ExportedPickersSectionListProps } from
|
|
2
|
+
export type { PickersSectionListProps, PickersSectionElement, PickersSectionListRef, PickersSectionListSlots, PickersSectionListSlotProps, ExportedPickersSectionListProps } from "./PickersSectionList.types.js";
|
|
3
3
|
export { getPickersSectionListUtilityClass, pickersSectionListClasses } from "./pickersSectionListClasses.js";
|
|
4
|
-
export type { PickersSectionListClasses, PickersSectionListClassKey } from
|
|
4
|
+
export type { PickersSectionListClasses, PickersSectionListClassKey } from "./pickersSectionListClasses.js";
|
|
@@ -22,8 +22,7 @@ const _excluded = ["items", "changeImportance"],
|
|
|
22
22
|
_excluded2 = ["getValue"];
|
|
23
23
|
const PickersShortcutsRoot = (0, _styles.styled)(_List.default, {
|
|
24
24
|
name: 'MuiPickersLayout',
|
|
25
|
-
slot: 'Shortcuts'
|
|
26
|
-
overridesResolver: (_, styles) => styles.shortcuts
|
|
25
|
+
slot: 'Shortcuts'
|
|
27
26
|
})({});
|
|
28
27
|
|
|
29
28
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PickersShortcuts } from "./PickersShortcuts.js";
|
|
2
|
-
export type { PickersShortcutsProps, PickersShortcutsItem, PickersShortcutsItemContext } from
|
|
2
|
+
export type { PickersShortcutsProps, PickersShortcutsItem, PickersShortcutsItemContext } from "./PickersShortcuts.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "
|
|
3
|
+
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
4
4
|
export interface PickersFilledInputProps extends PickersInputBaseProps {
|
|
5
5
|
disableUnderline?: boolean;
|
|
6
6
|
hiddenLabel?: boolean;
|
|
@@ -23,7 +23,6 @@ const _excluded = ["label", "autoFocus", "disableUnderline", "hiddenLabel", "cla
|
|
|
23
23
|
const PickersFilledInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
|
|
24
24
|
name: 'MuiPickersFilledInput',
|
|
25
25
|
slot: 'Root',
|
|
26
|
-
overridesResolver: (props, styles) => styles.root,
|
|
27
26
|
shouldForwardProp: prop => (0, _system.shouldForwardProp)(prop) && prop !== 'disableUnderline'
|
|
28
27
|
})(({
|
|
29
28
|
theme
|
|
@@ -136,7 +135,6 @@ const PickersFilledInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInp
|
|
|
136
135
|
const PickersFilledSectionsContainer = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseSectionsContainer, {
|
|
137
136
|
name: 'MuiPickersFilledInput',
|
|
138
137
|
slot: 'sectionsContainer',
|
|
139
|
-
overridesResolver: (props, styles) => styles.sectionsContainer,
|
|
140
138
|
shouldForwardProp: prop => (0, _system.shouldForwardProp)(prop) && prop !== 'hiddenLabel'
|
|
141
139
|
})({
|
|
142
140
|
paddingTop: 25,
|
|
@@ -280,7 +278,7 @@ process.env.NODE_ENV !== "production" ? PickersFilledInput.propTypes = {
|
|
|
280
278
|
onInput: _propTypes.default.func.isRequired,
|
|
281
279
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
282
280
|
onPaste: _propTypes.default.func.isRequired,
|
|
283
|
-
ownerState: _propTypes.default
|
|
281
|
+
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
284
282
|
readOnly: _propTypes.default.bool,
|
|
285
283
|
renderSuffix: _propTypes.default.func,
|
|
286
284
|
sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersFilledInput } from "./PickersFilledInput.js";
|
|
2
|
-
export type { PickersFilledInputProps } from
|
|
3
|
-
export type { PickersFilledInputClasses, PickersFilledInputClassKey } from
|
|
2
|
+
export type { PickersFilledInputProps } from "./PickersFilledInput.js";
|
|
3
|
+
export type { PickersFilledInputClasses, PickersFilledInputClassKey } from "./pickersFilledInputClasses.js";
|
|
4
4
|
export { getPickersFilledInputUtilityClass, pickersFilledInputClasses } from "./pickersFilledInputClasses.js";
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickersInputBaseProps } from "../PickersInputBase/index.js";
|
|
3
|
+
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
3
4
|
export interface PickersInputProps extends PickersInputBaseProps {
|
|
4
5
|
disableUnderline?: boolean;
|
|
5
6
|
}
|
|
7
|
+
export interface PickerInputOwnerState extends PickerTextFieldOwnerState {
|
|
8
|
+
/**
|
|
9
|
+
* `true` if the input has an underline, `false` otherwise.
|
|
10
|
+
*/
|
|
11
|
+
inputHasUnderline: boolean;
|
|
12
|
+
}
|
|
6
13
|
/**
|
|
7
14
|
* @ignore - internal component.
|
|
8
15
|
*/
|
|
@@ -23,7 +23,6 @@ const _excluded = ["label", "autoFocus", "disableUnderline", "ownerState", "clas
|
|
|
23
23
|
const PickersInputRoot = (0, _styles.styled)(_PickersInputBase2.PickersInputBaseRoot, {
|
|
24
24
|
name: 'MuiPickersInput',
|
|
25
25
|
slot: 'Root',
|
|
26
|
-
overridesResolver: (props, styles) => styles.root,
|
|
27
26
|
shouldForwardProp: prop => (0, _createStyled.shouldForwardProp)(prop) && prop !== 'disableUnderline'
|
|
28
27
|
})(({
|
|
29
28
|
theme
|
|
@@ -195,7 +194,7 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
|
195
194
|
onInput: _propTypes.default.func.isRequired,
|
|
196
195
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
197
196
|
onPaste: _propTypes.default.func.isRequired,
|
|
198
|
-
ownerState: _propTypes.default
|
|
197
|
+
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
199
198
|
readOnly: _propTypes.default.bool,
|
|
200
199
|
renderSuffix: _propTypes.default.func,
|
|
201
200
|
sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersInput } from "./PickersInput.js";
|
|
2
|
-
export type { PickersInputProps } from
|
|
3
|
-
export type { PickersInputClasses, PickersInputClassKey } from
|
|
2
|
+
export type { PickersInputProps } from "./PickersInput.js";
|
|
3
|
+
export type { PickersInputClasses, PickersInputClassKey } from "./pickersInputClasses.js";
|
|
4
4
|
export { getPickersInputUtilityClass, pickersInputClasses } from "./pickersInputClasses.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickersInputBaseProps } from "./PickersInputBase.types.js";
|
|
3
|
-
import { PickerTextFieldOwnerState } from "
|
|
3
|
+
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
4
4
|
export declare const PickersInputBaseRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
5
|
ownerState: PickerTextFieldOwnerState;
|
|
6
6
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -26,8 +26,7 @@ const _excluded = ["elements", "areAllSectionsEmpty", "defaultValue", "label", "
|
|
|
26
26
|
const round = value => Math.round(value * 1e5) / 1e5;
|
|
27
27
|
const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)('div', {
|
|
28
28
|
name: 'MuiPickersInputBase',
|
|
29
|
-
slot: 'Root'
|
|
30
|
-
overridesResolver: (props, styles) => styles.root
|
|
29
|
+
slot: 'Root'
|
|
31
30
|
})(({
|
|
32
31
|
theme
|
|
33
32
|
}) => (0, _extends2.default)({}, theme.typography.body1, {
|
|
@@ -52,8 +51,7 @@ const PickersInputBaseRoot = exports.PickersInputBaseRoot = (0, _styles.styled)(
|
|
|
52
51
|
}));
|
|
53
52
|
const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContainer = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListRoot, {
|
|
54
53
|
name: 'MuiPickersInputBase',
|
|
55
|
-
slot: 'SectionsContainer'
|
|
56
|
-
overridesResolver: (props, styles) => styles.sectionsContainer
|
|
54
|
+
slot: 'SectionsContainer'
|
|
57
55
|
})(({
|
|
58
56
|
theme
|
|
59
57
|
}) => ({
|
|
@@ -110,8 +108,7 @@ const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContai
|
|
|
110
108
|
}));
|
|
111
109
|
const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSection, {
|
|
112
110
|
name: 'MuiPickersInputBase',
|
|
113
|
-
slot: 'Section'
|
|
114
|
-
overridesResolver: (props, styles) => styles.section
|
|
111
|
+
slot: 'Section'
|
|
115
112
|
})(({
|
|
116
113
|
theme
|
|
117
114
|
}) => ({
|
|
@@ -126,7 +123,7 @@ const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable
|
|
|
126
123
|
const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionContent, {
|
|
127
124
|
name: 'MuiPickersInputBase',
|
|
128
125
|
slot: 'SectionContent',
|
|
129
|
-
overridesResolver: (props, styles) => styles.content
|
|
126
|
+
overridesResolver: (props, styles) => styles.content // FIXME: Inconsistent naming with slot
|
|
130
127
|
})(({
|
|
131
128
|
theme
|
|
132
129
|
}) => ({
|
|
@@ -139,8 +136,7 @@ const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.U
|
|
|
139
136
|
}));
|
|
140
137
|
const PickersInputBaseSectionSeparator = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionSeparator, {
|
|
141
138
|
name: 'MuiPickersInputBase',
|
|
142
|
-
slot: 'Separator'
|
|
143
|
-
overridesResolver: (props, styles) => styles.separator
|
|
139
|
+
slot: 'Separator'
|
|
144
140
|
})(() => ({
|
|
145
141
|
whiteSpace: 'pre',
|
|
146
142
|
letterSpacing: 'inherit'
|
|
@@ -148,12 +144,11 @@ const PickersInputBaseSectionSeparator = (0, _styles.styled)(_PickersSectionList
|
|
|
148
144
|
const PickersInputBaseInput = (0, _styles.styled)('input', {
|
|
149
145
|
name: 'MuiPickersInputBase',
|
|
150
146
|
slot: 'Input',
|
|
151
|
-
overridesResolver: (props, styles) => styles.hiddenInput
|
|
147
|
+
overridesResolver: (props, styles) => styles.hiddenInput // FIXME: Inconsistent naming with slot
|
|
152
148
|
})((0, _extends2.default)({}, _visuallyHidden.default));
|
|
153
149
|
const PickersInputBaseActiveBar = (0, _styles.styled)('div', {
|
|
154
150
|
name: 'MuiPickersInputBase',
|
|
155
|
-
slot: 'ActiveBar'
|
|
156
|
-
overridesResolver: (props, styles) => styles.activeBar
|
|
151
|
+
slot: 'ActiveBar'
|
|
157
152
|
})(({
|
|
158
153
|
theme,
|
|
159
154
|
ownerState
|
|
@@ -448,7 +443,7 @@ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
|
448
443
|
onInput: _propTypes.default.func.isRequired,
|
|
449
444
|
onKeyDown: _propTypes.default.func.isRequired,
|
|
450
445
|
onPaste: _propTypes.default.func.isRequired,
|
|
451
|
-
ownerState: _propTypes.default
|
|
446
|
+
ownerState: _propTypes.default /* @typescript-to-proptypes-ignore */.any,
|
|
452
447
|
readOnly: _propTypes.default.bool,
|
|
453
448
|
renderSuffix: _propTypes.default.func,
|
|
454
449
|
sectionListRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
3
|
import { MuiEvent } from '@mui/x-internals/types';
|
|
4
4
|
import { PickersSectionListProps } from "../../PickersSectionList/index.js";
|
|
5
|
+
import { PickerTextFieldOwnerState } from "../../models/fields.js";
|
|
5
6
|
export interface PickersInputPropsUsedByField extends Pick<PickersSectionListProps, 'elements' | 'sectionListRef' | 'contentEditable' | 'tabIndex'> {
|
|
6
7
|
/**
|
|
7
8
|
* Is `true` if the current values equals the empty value.
|
|
@@ -28,7 +29,7 @@ export interface PickersInputPropsUsedByField extends Pick<PickersSectionListPro
|
|
|
28
29
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
29
30
|
}
|
|
30
31
|
export interface PickersInputBaseProps extends Omit<BoxProps, keyof PickersInputPropsUsedByField>, PickersInputPropsUsedByField {
|
|
31
|
-
ownerState?:
|
|
32
|
+
ownerState?: PickerTextFieldOwnerState;
|
|
32
33
|
margin?: 'dense' | 'none' | 'normal';
|
|
33
34
|
renderSuffix?: (state: {
|
|
34
35
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersInputBase } from "./PickersInputBase.js";
|
|
2
|
-
export type { PickersInputBaseProps } from
|
|
2
|
+
export type { PickersInputBaseProps } from "./PickersInputBase.types.js";
|
|
3
3
|
export { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from "./pickersInputBaseClasses.js";
|
|
4
|
-
export type { PickersInputBaseClasses, PickersInputBaseClassKey } from
|
|
4
|
+
export type { PickersInputBaseClasses, PickersInputBaseClassKey } from "./pickersInputBaseClasses.js";
|
|
@@ -16,8 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
const _excluded = ["children", "className", "label", "notched", "shrink"];
|
|
17
17
|
const OutlineRoot = (0, _styles.styled)('fieldset', {
|
|
18
18
|
name: 'MuiPickersOutlinedInput',
|
|
19
|
-
slot: 'NotchedOutline'
|
|
20
|
-
overridesResolver: (props, styles) => styles.notchedOutline
|
|
19
|
+
slot: 'NotchedOutline'
|
|
21
20
|
})(({
|
|
22
21
|
theme
|
|
23
22
|
}) => {
|