@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
|
@@ -15,7 +15,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
const PickersInputRoot = styled(PickersInputBaseRoot, {
|
|
16
16
|
name: 'MuiPickersInput',
|
|
17
17
|
slot: 'Root',
|
|
18
|
-
overridesResolver: (props, styles) => styles.root,
|
|
19
18
|
shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'disableUnderline'
|
|
20
19
|
})(({
|
|
21
20
|
theme
|
|
@@ -187,7 +186,7 @@ process.env.NODE_ENV !== "production" ? PickersInput.propTypes = {
|
|
|
187
186
|
onInput: PropTypes.func.isRequired,
|
|
188
187
|
onKeyDown: PropTypes.func.isRequired,
|
|
189
188
|
onPaste: PropTypes.func.isRequired,
|
|
190
|
-
ownerState: PropTypes
|
|
189
|
+
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
191
190
|
readOnly: PropTypes.bool,
|
|
192
191
|
renderSuffix: PropTypes.func,
|
|
193
192
|
sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.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>>, {}>;
|
|
@@ -18,8 +18,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
const round = value => Math.round(value * 1e5) / 1e5;
|
|
19
19
|
export const PickersInputBaseRoot = styled('div', {
|
|
20
20
|
name: 'MuiPickersInputBase',
|
|
21
|
-
slot: 'Root'
|
|
22
|
-
overridesResolver: (props, styles) => styles.root
|
|
21
|
+
slot: 'Root'
|
|
23
22
|
})(({
|
|
24
23
|
theme
|
|
25
24
|
}) => _extends({}, theme.typography.body1, {
|
|
@@ -44,8 +43,7 @@ export const PickersInputBaseRoot = styled('div', {
|
|
|
44
43
|
}));
|
|
45
44
|
export const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot, {
|
|
46
45
|
name: 'MuiPickersInputBase',
|
|
47
|
-
slot: 'SectionsContainer'
|
|
48
|
-
overridesResolver: (props, styles) => styles.sectionsContainer
|
|
46
|
+
slot: 'SectionsContainer'
|
|
49
47
|
})(({
|
|
50
48
|
theme
|
|
51
49
|
}) => ({
|
|
@@ -102,8 +100,7 @@ export const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot,
|
|
|
102
100
|
}));
|
|
103
101
|
const PickersInputBaseSection = styled(PickersSectionListSection, {
|
|
104
102
|
name: 'MuiPickersInputBase',
|
|
105
|
-
slot: 'Section'
|
|
106
|
-
overridesResolver: (props, styles) => styles.section
|
|
103
|
+
slot: 'Section'
|
|
107
104
|
})(({
|
|
108
105
|
theme
|
|
109
106
|
}) => ({
|
|
@@ -118,7 +115,7 @@ const PickersInputBaseSection = styled(PickersSectionListSection, {
|
|
|
118
115
|
const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {
|
|
119
116
|
name: 'MuiPickersInputBase',
|
|
120
117
|
slot: 'SectionContent',
|
|
121
|
-
overridesResolver: (props, styles) => styles.content
|
|
118
|
+
overridesResolver: (props, styles) => styles.content // FIXME: Inconsistent naming with slot
|
|
122
119
|
})(({
|
|
123
120
|
theme
|
|
124
121
|
}) => ({
|
|
@@ -131,8 +128,7 @@ const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent,
|
|
|
131
128
|
}));
|
|
132
129
|
const PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparator, {
|
|
133
130
|
name: 'MuiPickersInputBase',
|
|
134
|
-
slot: 'Separator'
|
|
135
|
-
overridesResolver: (props, styles) => styles.separator
|
|
131
|
+
slot: 'Separator'
|
|
136
132
|
})(() => ({
|
|
137
133
|
whiteSpace: 'pre',
|
|
138
134
|
letterSpacing: 'inherit'
|
|
@@ -140,12 +136,11 @@ const PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparat
|
|
|
140
136
|
const PickersInputBaseInput = styled('input', {
|
|
141
137
|
name: 'MuiPickersInputBase',
|
|
142
138
|
slot: 'Input',
|
|
143
|
-
overridesResolver: (props, styles) => styles.hiddenInput
|
|
139
|
+
overridesResolver: (props, styles) => styles.hiddenInput // FIXME: Inconsistent naming with slot
|
|
144
140
|
})(_extends({}, visuallyHidden));
|
|
145
141
|
const PickersInputBaseActiveBar = styled('div', {
|
|
146
142
|
name: 'MuiPickersInputBase',
|
|
147
|
-
slot: 'ActiveBar'
|
|
148
|
-
overridesResolver: (props, styles) => styles.activeBar
|
|
143
|
+
slot: 'ActiveBar'
|
|
149
144
|
})(({
|
|
150
145
|
theme,
|
|
151
146
|
ownerState
|
|
@@ -440,7 +435,7 @@ process.env.NODE_ENV !== "production" ? PickersInputBase.propTypes = {
|
|
|
440
435
|
onInput: PropTypes.func.isRequired,
|
|
441
436
|
onKeyDown: PropTypes.func.isRequired,
|
|
442
437
|
onPaste: PropTypes.func.isRequired,
|
|
443
|
-
ownerState: PropTypes
|
|
438
|
+
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
444
439
|
readOnly: PropTypes.bool,
|
|
445
440
|
renderSuffix: PropTypes.func,
|
|
446
441
|
sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.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";
|
|
@@ -8,8 +8,7 @@ import { usePickerTextFieldOwnerState } from "../usePickerTextFieldOwnerState.js
|
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const OutlineRoot = styled('fieldset', {
|
|
10
10
|
name: 'MuiPickersOutlinedInput',
|
|
11
|
-
slot: 'NotchedOutline'
|
|
12
|
-
overridesResolver: (props, styles) => styles.notchedOutline
|
|
11
|
+
slot: 'NotchedOutline'
|
|
13
12
|
})(({
|
|
14
13
|
theme
|
|
15
14
|
}) => {
|
|
@@ -14,8 +14,7 @@ import { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from "../Pick
|
|
|
14
14
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
|
|
16
16
|
name: 'MuiPickersOutlinedInput',
|
|
17
|
-
slot: 'Root'
|
|
18
|
-
overridesResolver: (props, styles) => styles.root
|
|
17
|
+
slot: 'Root'
|
|
19
18
|
})(({
|
|
20
19
|
theme
|
|
21
20
|
}) => {
|
|
@@ -64,8 +63,7 @@ const PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {
|
|
|
64
63
|
});
|
|
65
64
|
const PickersOutlinedInputSectionsContainer = styled(PickersInputBaseSectionsContainer, {
|
|
66
65
|
name: 'MuiPickersOutlinedInput',
|
|
67
|
-
slot: 'SectionsContainer'
|
|
68
|
-
overridesResolver: (props, styles) => styles.sectionsContainer
|
|
66
|
+
slot: 'SectionsContainer'
|
|
69
67
|
})({
|
|
70
68
|
padding: '16.5px 0',
|
|
71
69
|
variants: [{
|
|
@@ -165,7 +163,7 @@ process.env.NODE_ENV !== "production" ? PickersOutlinedInput.propTypes = {
|
|
|
165
163
|
onInput: PropTypes.func.isRequired,
|
|
166
164
|
onKeyDown: PropTypes.func.isRequired,
|
|
167
165
|
onPaste: PropTypes.func.isRequired,
|
|
168
|
-
ownerState: PropTypes
|
|
166
|
+
ownerState: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
169
167
|
readOnly: PropTypes.bool,
|
|
170
168
|
renderSuffix: PropTypes.func,
|
|
171
169
|
sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersOutlinedInput } from "./PickersOutlinedInput.js";
|
|
2
|
-
export type { PickersOutlinedInputProps } from
|
|
3
|
-
export type { PickersOutlinedInputClasses, PickersOutlinedInputClassKey } from
|
|
2
|
+
export type { PickersOutlinedInputProps } from "./PickersOutlinedInput.js";
|
|
3
|
+
export type { PickersOutlinedInputClasses, PickersOutlinedInputClassKey } from "./pickersOutlinedInputClasses.js";
|
|
4
4
|
export { getPickersOutlinedInputUtilityClass, pickersOutlinedInputClasses } from "./pickersOutlinedInputClasses.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const PickersTextField: React.ForwardRefExoticComponent<(Omit<import("./PickersTextField.types").PickersStandardTextFieldProps, "ref"> | Omit<import("./PickersTextField.types").PickersOutlinedTextFieldProps, "ref"> | Omit<import("./PickersTextField.types").PickersFilledTextFieldProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
declare const PickersTextField: React.ForwardRefExoticComponent<(Omit<import("./PickersTextField.types.js").PickersStandardTextFieldProps, "ref"> | Omit<import("./PickersTextField.types.js").PickersOutlinedTextFieldProps, "ref"> | Omit<import("./PickersTextField.types.js").PickersFilledTextFieldProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
3
3
|
export { PickersTextField };
|
|
@@ -28,8 +28,7 @@ const VARIANT_COMPONENT = {
|
|
|
28
28
|
};
|
|
29
29
|
const PickersTextFieldRoot = styled(FormControl, {
|
|
30
30
|
name: 'MuiPickersTextField',
|
|
31
|
-
slot: 'Root'
|
|
32
|
-
overridesResolver: (props, styles) => styles.root
|
|
31
|
+
slot: 'Root'
|
|
33
32
|
})({});
|
|
34
33
|
const useUtilityClasses = (classes, ownerState) => {
|
|
35
34
|
const {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FormControlProps } from '@mui/material/FormControl';
|
|
3
3
|
import { FormHelperTextProps } from '@mui/material/FormHelperText';
|
|
4
4
|
import { InputLabelProps } from '@mui/material/InputLabel';
|
|
5
5
|
import { TextFieldVariants } from '@mui/material/TextField';
|
|
6
6
|
import { PickersInputPropsUsedByField } from "./PickersInputBase/PickersInputBase.types.js";
|
|
7
|
-
import type { PickersInputProps } from
|
|
8
|
-
import type { PickersOutlinedInputProps } from
|
|
9
|
-
import type { PickersFilledInputProps } from
|
|
10
|
-
import { FieldOwnerState } from "../models/index.js";
|
|
7
|
+
import type { PickersInputProps } from "./PickersInput/index.js";
|
|
8
|
+
import type { PickersOutlinedInputProps } from "./PickersOutlinedInput/index.js";
|
|
9
|
+
import type { PickersFilledInputProps } from "./PickersFilledInput/index.js";
|
|
11
10
|
interface PickersTextFieldPropsUsedByField {
|
|
12
11
|
onFocus: React.FocusEventHandler<HTMLDivElement>;
|
|
13
12
|
onBlur: React.FocusEventHandler<HTMLDivElement>;
|
|
@@ -65,42 +64,4 @@ export interface PickersFilledTextFieldProps extends PickersBaseTextFieldProps {
|
|
|
65
64
|
InputProps?: Partial<PickersFilledInputProps>;
|
|
66
65
|
}
|
|
67
66
|
export type PickersTextFieldProps<Variant extends TextFieldVariants = TextFieldVariants> = Variant extends 'filled' ? PickersFilledTextFieldProps : Variant extends 'standard' ? PickersStandardTextFieldProps : PickersOutlinedTextFieldProps;
|
|
68
|
-
export interface PickerTextFieldOwnerState extends FieldOwnerState {
|
|
69
|
-
/**
|
|
70
|
-
* `true` if the value of the field is currently empty.
|
|
71
|
-
*/
|
|
72
|
-
isFieldValueEmpty: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* `true` if the field is focused, `false` otherwise.
|
|
75
|
-
*/
|
|
76
|
-
isFieldFocused: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* `true` if the field has an error, `false` otherwise.
|
|
79
|
-
*/
|
|
80
|
-
hasFieldError: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* The size of the input.
|
|
83
|
-
*/
|
|
84
|
-
inputSize: Exclude<FormControlOwnProps['size'], undefined>;
|
|
85
|
-
/**
|
|
86
|
-
* The color of the input.
|
|
87
|
-
*/
|
|
88
|
-
inputColor: Exclude<FormControlOwnProps['color'], undefined>;
|
|
89
|
-
/**
|
|
90
|
-
* `true` if the input takes up the full width of its container.
|
|
91
|
-
*/
|
|
92
|
-
isInputInFullWidth: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* `true` if the input has a start adornment, `false` otherwise.
|
|
95
|
-
*/
|
|
96
|
-
hasStartAdornment: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* `true` if the input has an end adornment, `false` otherwise.
|
|
99
|
-
*/
|
|
100
|
-
hasEndAdornment: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* `true` if the input has a label, `false` otherwise.
|
|
103
|
-
*/
|
|
104
|
-
inputHasLabel: boolean;
|
|
105
|
-
}
|
|
106
67
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { PickersTextField } from "./PickersTextField.js";
|
|
2
|
-
export type { PickersTextFieldProps } from
|
|
2
|
+
export type { PickersTextFieldProps } from "./PickersTextField.types.js";
|
|
3
3
|
export { pickersTextFieldClasses, getPickersTextFieldUtilityClass } from "./pickersTextFieldClasses.js";
|
|
4
|
-
export type { PickersTextFieldClasses, PickersTextFieldClassKey } from
|
|
4
|
+
export type { PickersTextFieldClasses, PickersTextFieldClassKey } from "./pickersTextFieldClasses.js";
|
|
5
5
|
export * from "./PickersInput/index.js";
|
|
6
6
|
export * from "./PickersFilledInput/index.js";
|
|
7
7
|
export * from "./PickersOutlinedInput/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PickerTextFieldOwnerState } from "
|
|
2
|
+
import { PickerTextFieldOwnerState } from "../models/fields.js";
|
|
3
3
|
export declare const PickerTextFieldOwnerStateContext: React.Context<PickerTextFieldOwnerState | null>;
|
|
4
4
|
export declare const usePickerTextFieldOwnerState: () => PickerTextFieldOwnerState;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { StaticDatePicker } from "./StaticDatePicker.js";
|
|
2
|
-
export type { StaticDatePickerProps, StaticDatePickerSlots, StaticDatePickerSlotProps } from
|
|
2
|
+
export type { StaticDatePickerProps, StaticDatePickerSlots, StaticDatePickerSlotProps } from "./StaticDatePicker.types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { StaticDateTimePicker } from "./StaticDateTimePicker.js";
|
|
2
|
-
export type { StaticDateTimePickerProps, StaticDateTimePickerSlots, StaticDateTimePickerSlotProps } from
|
|
2
|
+
export type { StaticDateTimePickerProps, StaticDateTimePickerSlots, StaticDateTimePickerSlotProps } from "./StaticDateTimePicker.types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { StaticTimePicker } from "./StaticTimePicker.js";
|
|
2
|
-
export type { StaticTimePickerProps, StaticTimePickerSlots, StaticTimePickerSlotProps } from
|
|
2
|
+
export type { StaticTimePickerProps, StaticTimePickerSlots, StaticTimePickerSlotProps } from "./StaticTimePicker.types.js";
|
package/esm/TimeClock/Clock.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PickerSelectionState } from
|
|
2
|
+
import type { PickerSelectionState } from "../internals/hooks/usePicker/index.js";
|
|
3
3
|
import { useMeridiemMode } from "../internals/hooks/date-helpers-hooks.js";
|
|
4
|
-
import { PickerValidDate, TimeView } from "../models/index.js";
|
|
4
|
+
import { PickerOwnerState, PickerValidDate, TimeView } from "../models/index.js";
|
|
5
5
|
import { ClockClasses } from "./clockClasses.js";
|
|
6
|
+
import { Meridiem } from "../internals/utils/time-utils.js";
|
|
6
7
|
import { FormProps } from "../internals/models/formProps.js";
|
|
7
8
|
export interface ClockProps extends ReturnType<typeof useMeridiemMode>, FormProps {
|
|
8
9
|
ampm: boolean;
|
|
@@ -33,6 +34,16 @@ export interface ClockProps extends ReturnType<typeof useMeridiemMode>, FormProp
|
|
|
33
34
|
className?: string;
|
|
34
35
|
classes?: Partial<ClockClasses>;
|
|
35
36
|
}
|
|
37
|
+
export interface ClockOwnerState extends PickerOwnerState {
|
|
38
|
+
/**
|
|
39
|
+
* `true` if the clock is disabled, `false` otherwise.
|
|
40
|
+
*/
|
|
41
|
+
isClockDisabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The current meridiem mode of the clock.
|
|
44
|
+
*/
|
|
45
|
+
clockMeridiemMode: Meridiem | null;
|
|
46
|
+
}
|
|
36
47
|
/**
|
|
37
48
|
* @ignore - internal component.
|
|
38
49
|
*/
|
package/esm/TimeClock/Clock.js
CHANGED
|
@@ -28,8 +28,7 @@ const useUtilityClasses = (classes, ownerState) => {
|
|
|
28
28
|
};
|
|
29
29
|
const ClockRoot = styled('div', {
|
|
30
30
|
name: 'MuiClock',
|
|
31
|
-
slot: 'Root'
|
|
32
|
-
overridesResolver: (_, styles) => styles.root
|
|
31
|
+
slot: 'Root'
|
|
33
32
|
})(({
|
|
34
33
|
theme
|
|
35
34
|
}) => ({
|
|
@@ -40,8 +39,7 @@ const ClockRoot = styled('div', {
|
|
|
40
39
|
}));
|
|
41
40
|
const ClockClock = styled('div', {
|
|
42
41
|
name: 'MuiClock',
|
|
43
|
-
slot: 'Clock'
|
|
44
|
-
overridesResolver: (_, styles) => styles.clock
|
|
42
|
+
slot: 'Clock'
|
|
45
43
|
})({
|
|
46
44
|
backgroundColor: 'rgba(0,0,0,.07)',
|
|
47
45
|
borderRadius: '50%',
|
|
@@ -53,8 +51,7 @@ const ClockClock = styled('div', {
|
|
|
53
51
|
});
|
|
54
52
|
const ClockWrapper = styled('div', {
|
|
55
53
|
name: 'MuiClock',
|
|
56
|
-
slot: 'Wrapper'
|
|
57
|
-
overridesResolver: (_, styles) => styles.wrapper
|
|
54
|
+
slot: 'Wrapper'
|
|
58
55
|
})({
|
|
59
56
|
'&:focus': {
|
|
60
57
|
outline: 'none'
|
|
@@ -62,8 +59,7 @@ const ClockWrapper = styled('div', {
|
|
|
62
59
|
});
|
|
63
60
|
const ClockSquareMask = styled('div', {
|
|
64
61
|
name: 'MuiClock',
|
|
65
|
-
slot: 'SquareMask'
|
|
66
|
-
overridesResolver: (_, styles) => styles.squareMask
|
|
62
|
+
slot: 'SquareMask'
|
|
67
63
|
})({
|
|
68
64
|
width: '100%',
|
|
69
65
|
height: '100%',
|
|
@@ -90,8 +86,7 @@ const ClockSquareMask = styled('div', {
|
|
|
90
86
|
});
|
|
91
87
|
const ClockPin = styled('div', {
|
|
92
88
|
name: 'MuiClock',
|
|
93
|
-
slot: 'Pin'
|
|
94
|
-
overridesResolver: (_, styles) => styles.pin
|
|
89
|
+
slot: 'Pin'
|
|
95
90
|
})(({
|
|
96
91
|
theme
|
|
97
92
|
}) => ({
|
|
@@ -125,8 +120,7 @@ const meridiemButtonCommonStyles = (theme, clockMeridiemMode) => ({
|
|
|
125
120
|
});
|
|
126
121
|
const ClockAmButton = styled(IconButton, {
|
|
127
122
|
name: 'MuiClock',
|
|
128
|
-
slot: 'AmButton'
|
|
129
|
-
overridesResolver: (_, styles) => styles.amButton
|
|
123
|
+
slot: 'AmButton'
|
|
130
124
|
})(({
|
|
131
125
|
theme
|
|
132
126
|
}) => _extends({}, meridiemButtonCommonStyles(theme, 'am'), {
|
|
@@ -136,8 +130,7 @@ const ClockAmButton = styled(IconButton, {
|
|
|
136
130
|
}));
|
|
137
131
|
const ClockPmButton = styled(IconButton, {
|
|
138
132
|
name: 'MuiClock',
|
|
139
|
-
slot: 'PmButton'
|
|
140
|
-
overridesResolver: (_, styles) => styles.pmButton
|
|
133
|
+
slot: 'PmButton'
|
|
141
134
|
})(({
|
|
142
135
|
theme
|
|
143
136
|
}) => _extends({}, meridiemButtonCommonStyles(theme, 'pm'), {
|
|
@@ -147,8 +140,7 @@ const ClockPmButton = styled(IconButton, {
|
|
|
147
140
|
}));
|
|
148
141
|
const ClockMeridiemText = styled(Typography, {
|
|
149
142
|
name: 'MuiClock',
|
|
150
|
-
slot: '
|
|
151
|
-
overridesResolver: (_, styles) => styles.meridiemText
|
|
143
|
+
slot: 'MeridiemText'
|
|
152
144
|
})({
|
|
153
145
|
overflow: 'hidden',
|
|
154
146
|
whiteSpace: 'nowrap',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ClockNumberClasses } from "./clockNumberClasses.js";
|
|
3
|
+
import { PickerOwnerState } from "../models/pickers.js";
|
|
3
4
|
export interface ClockNumberProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
5
|
'aria-label': string;
|
|
5
6
|
disabled: boolean;
|
|
@@ -13,6 +14,23 @@ export interface ClockNumberProps extends React.HTMLAttributes<HTMLSpanElement>
|
|
|
13
14
|
selected: boolean;
|
|
14
15
|
classes?: Partial<ClockNumberClasses>;
|
|
15
16
|
}
|
|
17
|
+
export interface ClockNumberOwnerState extends PickerOwnerState {
|
|
18
|
+
/**
|
|
19
|
+
* `true` if the clock number is in the inner clock ring.
|
|
20
|
+
* When used with meridiem, all the hours are in the outer ring.
|
|
21
|
+
* When used without meridiem, the hours from 1 to 12 are in the outer ring and the hours from 13 to 24 are in the inner ring.
|
|
22
|
+
* The minutes are always in the outer ring.
|
|
23
|
+
*/
|
|
24
|
+
isClockNumberInInnerRing: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* `true` if the clock number is selected.
|
|
27
|
+
*/
|
|
28
|
+
isClockNumberSelected: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* `true` if the clock number is disabled.
|
|
31
|
+
*/
|
|
32
|
+
isClockNumberDisabled: boolean;
|
|
33
|
+
}
|
|
16
34
|
/**
|
|
17
35
|
* @ignore - internal component.
|
|
18
36
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MuiPickersAdapter, PickerValidDate } from "../models/index.js";
|
|
3
|
-
import type { PickerSelectionState } from
|
|
3
|
+
import type { PickerSelectionState } from "../internals/hooks/usePicker/index.js";
|
|
4
4
|
interface GetHourNumbersOptions {
|
|
5
5
|
ampm: boolean;
|
|
6
6
|
value: PickerValidDate | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TimeView } from "../models/index.js";
|
|
2
|
+
import { PickerOwnerState, TimeView } from "../models/index.js";
|
|
3
3
|
import { ClockPointerClasses } from "./clockPointerClasses.js";
|
|
4
4
|
export interface ClockPointerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
@@ -13,6 +13,18 @@ export interface ClockPointerProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
13
13
|
viewValue: number;
|
|
14
14
|
classes?: Partial<ClockPointerClasses>;
|
|
15
15
|
}
|
|
16
|
+
export interface ClockPointerOwnerState extends PickerOwnerState {
|
|
17
|
+
/**
|
|
18
|
+
* `true` if the clock pointer should animate.
|
|
19
|
+
*/
|
|
20
|
+
isClockPointerAnimated: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* `true` if the pointer is between two clock values.
|
|
23
|
+
* On the `hours` view, it is always false.
|
|
24
|
+
* On the `minutes` view, it is true if the pointer is on a value that is not a multiple of 5.
|
|
25
|
+
*/
|
|
26
|
+
isClockPointerBetweenTwoValues: boolean;
|
|
27
|
+
}
|
|
16
28
|
/**
|
|
17
29
|
* @ignore - internal component.
|
|
18
30
|
*/
|
|
@@ -20,8 +20,7 @@ const useUtilityClasses = classes => {
|
|
|
20
20
|
};
|
|
21
21
|
const ClockPointerRoot = styled('div', {
|
|
22
22
|
name: 'MuiClockPointer',
|
|
23
|
-
slot: 'Root'
|
|
24
|
-
overridesResolver: (_, styles) => styles.root
|
|
23
|
+
slot: 'Root'
|
|
25
24
|
})(({
|
|
26
25
|
theme
|
|
27
26
|
}) => ({
|
|
@@ -42,8 +41,7 @@ const ClockPointerRoot = styled('div', {
|
|
|
42
41
|
}));
|
|
43
42
|
const ClockPointerThumb = styled('div', {
|
|
44
43
|
name: 'MuiClockPointer',
|
|
45
|
-
slot: 'Thumb'
|
|
46
|
-
overridesResolver: (_, styles) => styles.thumb
|
|
44
|
+
slot: 'Thumb'
|
|
47
45
|
})(({
|
|
48
46
|
theme
|
|
49
47
|
}) => ({
|
|
@@ -32,8 +32,7 @@ const useUtilityClasses = classes => {
|
|
|
32
32
|
};
|
|
33
33
|
const TimeClockRoot = styled(PickerViewRoot, {
|
|
34
34
|
name: 'MuiTimeClock',
|
|
35
|
-
slot: 'Root'
|
|
36
|
-
overridesResolver: (props, styles) => styles.root
|
|
35
|
+
slot: 'Root'
|
|
37
36
|
})({
|
|
38
37
|
display: 'flex',
|
|
39
38
|
flexDirection: 'column',
|
|
@@ -41,8 +40,7 @@ const TimeClockRoot = styled(PickerViewRoot, {
|
|
|
41
40
|
});
|
|
42
41
|
const TimeClockArrowSwitcher = styled(PickersArrowSwitcher, {
|
|
43
42
|
name: 'MuiTimeClock',
|
|
44
|
-
slot: 'ArrowSwitcher'
|
|
45
|
-
overridesResolver: (props, styles) => styles.arrowSwitcher
|
|
43
|
+
slot: 'ArrowSwitcher'
|
|
46
44
|
})({
|
|
47
45
|
position: 'absolute',
|
|
48
46
|
right: 12,
|
package/esm/TimeClock/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { TimeClock } from "./TimeClock.js";
|
|
2
|
-
export type { TimeClockProps, TimeClockSlots, TimeClockSlotProps } from
|
|
2
|
+
export type { TimeClockProps, TimeClockSlots, TimeClockSlotProps } from "./TimeClock.types.js";
|
|
3
3
|
export { clockClasses } from "./clockClasses.js";
|
|
4
|
-
export type { ClockClasses, ClockClassKey } from
|
|
5
|
-
export type { ClockProps } from
|
|
4
|
+
export type { ClockClasses, ClockClassKey } from "./clockClasses.js";
|
|
5
|
+
export type { ClockProps } from "./Clock.js";
|
|
6
6
|
export { clockNumberClasses } from "./clockNumberClasses.js";
|
|
7
|
-
export type { ClockNumberClasses, ClockNumberClassKey } from
|
|
8
|
-
export type { ClockNumberProps } from
|
|
7
|
+
export type { ClockNumberClasses, ClockNumberClassKey } from "./clockNumberClasses.js";
|
|
8
|
+
export type { ClockNumberProps } from "./ClockNumber.js";
|
|
9
9
|
export { timeClockClasses, getTimeClockUtilityClass } from "./timeClockClasses.js";
|
|
10
|
-
export type { TimeClockClasses, TimeClockClassKey } from
|
|
10
|
+
export type { TimeClockClasses, TimeClockClassKey } from "./timeClockClasses.js";
|
|
11
11
|
export { clockPointerClasses } from "./clockPointerClasses.js";
|
|
12
|
-
export type { ClockPointerClasses, ClockPointerClassKey } from
|
|
13
|
-
export type { ClockPointerProps } from
|
|
12
|
+
export type { ClockPointerClasses, ClockPointerClassKey } from "./clockPointerClasses.js";
|
|
13
|
+
export type { ClockPointerProps } from "./ClockPointer.js";
|
package/esm/TimeField/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { TimeField } from "./TimeField.js";
|
|
2
2
|
export { useTimeField as unstable_useTimeField } from "./useTimeField.js";
|
|
3
|
-
export type { UseTimeFieldProps, TimeFieldProps } from
|
|
3
|
+
export type { UseTimeFieldProps, TimeFieldProps } from "./TimeField.types.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseTimeFieldProps } from "./TimeField.types.js";
|
|
2
|
-
export declare const useTimeField: <TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseTimeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TProps) => import("../internals").UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, TProps>;
|
|
2
|
+
export declare const useTimeField: <TEnableAccessibleFieldDOMStructure extends boolean, TProps extends UseTimeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TProps) => import("../internals/index.js").UseFieldReturnValue<TEnableAccessibleFieldDOMStructure, TProps>;
|
|
@@ -36,13 +36,11 @@ const useUtilityClasses = (classes, ownerState) => {
|
|
|
36
36
|
};
|
|
37
37
|
const TimePickerToolbarRoot = styled(PickersToolbar, {
|
|
38
38
|
name: 'MuiTimePickerToolbar',
|
|
39
|
-
slot: 'Root'
|
|
40
|
-
overridesResolver: (props, styles) => styles.root
|
|
39
|
+
slot: 'Root'
|
|
41
40
|
})({});
|
|
42
41
|
const TimePickerToolbarSeparator = styled(PickersToolbarText, {
|
|
43
42
|
name: 'MuiTimePickerToolbar',
|
|
44
|
-
slot: 'Separator'
|
|
45
|
-
overridesResolver: (props, styles) => styles.separator
|
|
43
|
+
slot: 'Separator'
|
|
46
44
|
})({
|
|
47
45
|
outline: 0,
|
|
48
46
|
margin: '0 4px 0 2px',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TimePicker } from "./TimePicker.js";
|
|
2
|
-
export type { TimePickerProps, TimePickerSlots, TimePickerSlotProps, TimePickerFieldProps } from
|
|
2
|
+
export type { TimePickerProps, TimePickerSlots, TimePickerSlotProps, TimePickerFieldProps } from "./TimePicker.types.js";
|
|
3
3
|
export { TimePickerToolbar } from "./TimePickerToolbar.js";
|
|
4
|
-
export type { TimePickerToolbarProps } from
|
|
4
|
+
export type { TimePickerToolbarProps } from "./TimePickerToolbar.js";
|
|
5
5
|
export { timePickerToolbarClasses } from "./timePickerToolbarClasses.js";
|
|
6
|
-
export type { TimePickerToolbarClassKey, TimePickerToolbarClasses } from
|
|
6
|
+
export type { TimePickerToolbarClassKey, TimePickerToolbarClasses } from "./timePickerToolbarClasses.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { YearCalendar } from "./YearCalendar.js";
|
|
2
|
-
export type { YearCalendarProps, YearCalendarSlots, YearCalendarSlotProps } from
|
|
2
|
+
export type { YearCalendarProps, YearCalendarSlots, YearCalendarSlotProps } from "./YearCalendar.types.js";
|
|
3
3
|
export { yearCalendarClasses, getYearCalendarUtilityClass } from "./yearCalendarClasses.js";
|
|
4
|
-
export type { YearCalendarClasses, YearCalendarClassKey } from
|
|
4
|
+
export type { YearCalendarClasses, YearCalendarClassKey } from "./yearCalendarClasses.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { renderDateViewCalendar } from "./dateViewRenderers.js";
|
|
2
|
-
export type { DateViewRendererProps } from
|
|
2
|
+
export type { DateViewRendererProps } from "./dateViewRenderers.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PickerContextValue } from
|
|
2
|
+
import type { PickerContextValue } from "../internals/components/PickerProvider.js";
|
|
3
3
|
import { DateOrTimeViewWithMeridiem, PickerValidValue, PickerValue } from "../internals/models/index.js";
|
|
4
4
|
export declare const PickerContext: React.Context<PickerContextValue<any, any, any> | null>;
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const usePickerTranslations: () => import("
|
|
1
|
+
export declare const usePickerTranslations: () => import("../index.js").PickersLocaleText;
|
package/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
|
6
6
|
import { MakeOptional, SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
7
7
|
import { FieldOwnerState } from "../../models/index.js";
|
|
8
8
|
import { UseFieldOwnerStateParameters } from "../hooks/useFieldOwnerState.js";
|
|
9
|
-
import type { UseFieldReturnValue, UseFieldProps } from
|
|
9
|
+
import type { UseFieldReturnValue, UseFieldProps } from "../hooks/useField/index.js";
|
|
10
10
|
import { PickersTextFieldProps } from "../../PickersTextField/index.js";
|
|
11
11
|
export declare const cleanFieldResponse: <TFieldResponse extends MakeOptional<UseFieldReturnValue<any, ExportedPickerFieldUIProps & {
|
|
12
12
|
[key: string]: any;
|
|
@@ -6,7 +6,7 @@ import { TransitionProps as MuiTransitionProps } from '@mui/material/transitions
|
|
|
6
6
|
import { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
7
7
|
import { PickerPopperClasses } from "./pickerPopperClasses.js";
|
|
8
8
|
import { PickerOwnerState } from "../../../models/index.js";
|
|
9
|
-
interface PickerPopperOwnerState extends PickerOwnerState {
|
|
9
|
+
export interface PickerPopperOwnerState extends PickerOwnerState {
|
|
10
10
|
popperPlacement: PopperPlacementType;
|
|
11
11
|
}
|
|
12
12
|
export interface PickerPopperSlots {
|
|
@@ -64,5 +64,4 @@ export interface PickerPopperProps extends ExportedPickerPopperProps {
|
|
|
64
64
|
slots?: PickerPopperSlots;
|
|
65
65
|
slotProps?: PickerPopperSlotProps;
|
|
66
66
|
}
|
|
67
|
-
export declare function PickerPopper(inProps: PickerPopperProps): React.JSX.Element;
|
|
68
|
-
export {};
|
|
67
|
+
export declare function PickerPopper(inProps: PickerPopperProps): React.JSX.Element;
|