@mui/x-date-pickers 8.1.0 → 8.3.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/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +74 -74
- package/AdapterDateFnsV2/AdapterDateFnsV2.js +74 -74
- package/CHANGELOG.md +233 -7
- package/DateCalendar/PickersFadeTransitionGroup.d.ts +4 -2
- package/DateCalendar/PickersFadeTransitionGroup.js +7 -1
- 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/index.d.ts +3 -3
- package/DateTimeField/index.d.ts +1 -1
- package/DateTimeField/useDateTimeField.d.ts +1 -1
- package/DateTimePicker/index.d.ts +5 -5
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -1
- package/DayCalendarSkeleton/index.d.ts +2 -2
- package/DesktopDatePicker/index.d.ts +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/DesktopDateTimePicker/index.d.ts +1 -1
- package/DesktopTimePicker/index.d.ts +1 -1
- package/DigitalClock/DigitalClock.js +2 -1
- 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/index.d.ts +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +8 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
- package/MultiSectionDigitalClock/index.d.ts +4 -4
- package/PickersActionBar/index.d.ts +1 -1
- package/PickersCalendarHeader/index.d.ts +2 -2
- package/PickersDay/index.d.ts +2 -2
- package/PickersLayout/index.d.ts +2 -2
- package/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/PickersSectionList/PickersSectionList.types.d.ts +1 -1
- package/PickersSectionList/index.d.ts +2 -2
- package/PickersShortcuts/index.d.ts +1 -1
- package/PickersTextField/PickersFilledInput/index.d.ts +2 -2
- package/PickersTextField/PickersInput/PickersInput.d.ts +7 -0
- package/PickersTextField/PickersInput/index.d.ts +2 -2
- package/PickersTextField/PickersInputBase/index.d.ts +2 -2
- package/PickersTextField/PickersOutlinedInput/index.d.ts +2 -2
- package/PickersTextField/PickersTextField.d.ts +1 -1
- package/PickersTextField/PickersTextField.types.d.ts +3 -3
- package/PickersTextField/index.d.ts +2 -2
- 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/ClockNumber.d.ts +18 -0
- package/TimeClock/ClockNumbers.d.ts +1 -1
- package/TimeClock/ClockPointer.d.ts +13 -1
- package/TimeClock/index.d.ts +8 -8
- package/TimeField/index.d.ts +1 -1
- package/TimeField/useTimeField.d.ts +1 -1
- package/TimePicker/index.d.ts +3 -3
- package/YearCalendar/index.d.ts +2 -2
- package/dateViewRenderers/index.d.ts +1 -1
- package/esm/DateCalendar/PickersFadeTransitionGroup.d.ts +4 -2
- package/esm/DateCalendar/PickersFadeTransitionGroup.js +7 -1
- 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/index.d.ts +3 -3
- package/esm/DateTimeField/index.d.ts +1 -1
- package/esm/DateTimeField/useDateTimeField.d.ts +1 -1
- package/esm/DateTimePicker/index.d.ts +5 -5
- package/esm/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -1
- package/esm/DayCalendarSkeleton/index.d.ts +2 -2
- package/esm/DesktopDatePicker/index.d.ts +1 -1
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/esm/DesktopDateTimePicker/index.d.ts +1 -1
- package/esm/DesktopTimePicker/index.d.ts +1 -1
- package/esm/DigitalClock/DigitalClock.js +2 -1
- 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/index.d.ts +2 -2
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +8 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
- package/esm/MultiSectionDigitalClock/index.d.ts +4 -4
- package/esm/PickersActionBar/index.d.ts +1 -1
- package/esm/PickersCalendarHeader/index.d.ts +2 -2
- package/esm/PickersDay/index.d.ts +2 -2
- package/esm/PickersLayout/index.d.ts +2 -2
- package/esm/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/esm/PickersSectionList/PickersSectionList.types.d.ts +1 -1
- package/esm/PickersSectionList/index.d.ts +2 -2
- package/esm/PickersShortcuts/index.d.ts +1 -1
- package/esm/PickersTextField/PickersFilledInput/index.d.ts +2 -2
- package/esm/PickersTextField/PickersInput/PickersInput.d.ts +7 -0
- package/esm/PickersTextField/PickersInput/index.d.ts +2 -2
- package/esm/PickersTextField/PickersInputBase/index.d.ts +2 -2
- package/esm/PickersTextField/PickersOutlinedInput/index.d.ts +2 -2
- package/esm/PickersTextField/PickersTextField.d.ts +1 -1
- package/esm/PickersTextField/PickersTextField.types.d.ts +3 -3
- package/esm/PickersTextField/index.d.ts +2 -2
- 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/ClockNumber.d.ts +18 -0
- package/esm/TimeClock/ClockNumbers.d.ts +1 -1
- package/esm/TimeClock/ClockPointer.d.ts +13 -1
- 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/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/index.d.ts +2 -2
- package/esm/internals/components/PickerProvider.d.ts +2 -2
- package/esm/internals/components/PickersArrowSwitcher/index.d.ts +2 -2
- package/esm/internals/components/PickersModalDialog.js +6 -2
- package/esm/internals/components/PickersToolbarButton.js +2 -1
- package/esm/internals/components/PickersToolbarText.js +2 -1
- 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 +4 -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/index.d.ts +2 -2
- package/internals/components/PickerProvider.d.ts +2 -2
- package/internals/components/PickersArrowSwitcher/index.d.ts +2 -2
- package/internals/components/PickersModalDialog.js +6 -2
- package/internals/components/PickersToolbarButton.js +2 -1
- package/internals/components/PickersToolbarText.js +2 -1
- 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 +4 -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 +4 -4
- 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
|
@@ -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
|
};
|
|
@@ -10,6 +10,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
10
10
|
import MenuList from '@mui/material/MenuList';
|
|
11
11
|
import MenuItem from '@mui/material/MenuItem';
|
|
12
12
|
import useForkRef from '@mui/utils/useForkRef';
|
|
13
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
13
14
|
import { getMultiSectionDigitalClockSectionUtilityClass } from "./multiSectionDigitalClockSectionClasses.js";
|
|
14
15
|
import { DIGITAL_CLOCK_VIEW_HEIGHT, MULTI_SECTION_CLOCK_SECTION_WIDTH } from "../internals/constants/dimensions.js";
|
|
15
16
|
import { getFocusedListItemIndex } from "../internals/utils/utils.js";
|
|
@@ -124,7 +125,7 @@ export const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(fun
|
|
|
124
125
|
});
|
|
125
126
|
const classes = useUtilityClasses(classesProp);
|
|
126
127
|
const DigitalClockSectionItem = slots?.digitalClockSectionItem ?? MultiSectionDigitalClockSectionItem;
|
|
127
|
-
|
|
128
|
+
useEnhancedEffect(() => {
|
|
128
129
|
if (containerRef.current === null) {
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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>>, {}>;
|
|
@@ -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";
|
|
@@ -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,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
|
*/
|
|
@@ -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,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";
|
|
@@ -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 };
|
|
@@ -4,9 +4,9 @@ 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
|
|
7
|
+
import type { PickersInputProps } from "./PickersInput/index.js";
|
|
8
|
+
import type { PickersOutlinedInputProps } from "./PickersOutlinedInput/index.js";
|
|
9
|
+
import type { PickersFilledInputProps } from "./PickersFilledInput/index.js";
|
|
10
10
|
interface PickersTextFieldPropsUsedByField {
|
|
11
11
|
onFocus: React.FocusEventHandler<HTMLDivElement>;
|
|
12
12
|
onBlur: React.FocusEventHandler<HTMLDivElement>;
|
|
@@ -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,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
|
*/
|
|
@@ -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
|
*/
|
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>;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickerPopper } from "./PickerPopper.js";
|
|
2
|
-
export type { ExportedPickerPopperProps } from
|
|
2
|
+
export type { ExportedPickerPopperProps } from "./PickerPopper.js";
|
|
3
3
|
export { pickerPopperClasses, getPickerPopperUtilityClass } from "./pickerPopperClasses.js";
|
|
4
|
-
export type { PickerPopperClassKey, PickerPopperClasses } from
|
|
4
|
+
export type { PickerPopperClassKey, PickerPopperClasses } from "./pickerPopperClasses.js";
|
|
@@ -5,8 +5,8 @@ import { PickerChangeImportance, PickerOwnerState, PickersTimezone } from "../..
|
|
|
5
5
|
import { PickersInputLocaleText } from "../../locales/index.js";
|
|
6
6
|
import { DateOrTimeViewWithMeridiem, PickerOrientation, PickerValidValue, PickerVariant } from "../models/index.js";
|
|
7
7
|
import { PickerFieldPrivateContextValue } from "../hooks/useNullableFieldPrivateContext.js";
|
|
8
|
-
import type { PickersShortcutsItemContext } from
|
|
9
|
-
import type { PickersActionBarAction } from
|
|
8
|
+
import type { PickersShortcutsItemContext } from "../../PickersShortcuts/index.js";
|
|
9
|
+
import type { PickersActionBarAction } from "../../PickersActionBar/index.js";
|
|
10
10
|
export declare const PickerActionsContext: React.Context<PickerActionsContextValue<any, any, any> | null>;
|
|
11
11
|
export declare const PickerPrivateContext: React.Context<PickerPrivateContextValue>;
|
|
12
12
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PickersArrowSwitcher } from "./PickersArrowSwitcher.js";
|
|
2
|
-
export type { PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, ExportedPickersArrowSwitcherProps } from
|
|
2
|
+
export type { PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, ExportedPickersArrowSwitcherProps } from "./PickersArrowSwitcher.types.js";
|
|
3
3
|
export { pickersArrowSwitcherClasses, getPickersArrowSwitcherUtilityClass } from "./pickersArrowSwitcherClasses.js";
|
|
4
|
-
export type { PickersArrowSwitcherClassKey, PickersArrowSwitcherClasses } from
|
|
4
|
+
export type { PickersArrowSwitcherClassKey, PickersArrowSwitcherClasses } from "./pickersArrowSwitcherClasses.js";
|
|
@@ -32,13 +32,17 @@ export function PickersModalDialog(props) {
|
|
|
32
32
|
open
|
|
33
33
|
} = usePickerContext();
|
|
34
34
|
const {
|
|
35
|
-
dismissViews
|
|
35
|
+
dismissViews,
|
|
36
|
+
onPopperExited
|
|
36
37
|
} = usePickerPrivateContext();
|
|
37
38
|
const Dialog = slots?.dialog ?? PickersModalDialogRoot;
|
|
38
39
|
const Transition = slots?.mobileTransition ?? Fade;
|
|
39
40
|
return /*#__PURE__*/_jsx(Dialog, _extends({
|
|
40
41
|
open: open,
|
|
41
|
-
onClose:
|
|
42
|
+
onClose: () => {
|
|
43
|
+
dismissViews();
|
|
44
|
+
onPopperExited?.();
|
|
45
|
+
}
|
|
42
46
|
}, slotProps?.dialog, {
|
|
43
47
|
TransitionComponent: Transition,
|
|
44
48
|
TransitionProps: slotProps?.mobileTransition,
|
|
@@ -43,7 +43,8 @@ export const PickersToolbarButton = /*#__PURE__*/React.forwardRef(function Picke
|
|
|
43
43
|
return /*#__PURE__*/_jsx(PickersToolbarButtonRoot, _extends({
|
|
44
44
|
variant: "text",
|
|
45
45
|
ref: ref,
|
|
46
|
-
className: clsx(classes.root, className)
|
|
46
|
+
className: clsx(classes.root, className),
|
|
47
|
+
ownerState: props
|
|
47
48
|
}, width ? {
|
|
48
49
|
sx: {
|
|
49
50
|
width
|
|
@@ -42,7 +42,8 @@ export const PickersToolbarText = /*#__PURE__*/React.forwardRef(function Pickers
|
|
|
42
42
|
return /*#__PURE__*/_jsx(PickersToolbarTextRoot, _extends({
|
|
43
43
|
ref: ref,
|
|
44
44
|
className: clsx(classes.root, className),
|
|
45
|
-
component: "span"
|
|
45
|
+
component: "span",
|
|
46
|
+
ownerState: props
|
|
46
47
|
}, selected && {
|
|
47
48
|
'data-selected': true
|
|
48
49
|
}, other, {
|
|
@@ -19,6 +19,6 @@ export declare function usePreviousMonthDisabled(month: PickerValidDate, {
|
|
|
19
19
|
timezone
|
|
20
20
|
}: Pick<MonthValidationOptions, 'disablePast' | 'minDate' | 'timezone'>): boolean;
|
|
21
21
|
export declare function useMeridiemMode(date: PickerValidDate | null, ampm: boolean | undefined, onChange: PickerOnChangeFn, selectionState?: PickerSelectionState): {
|
|
22
|
-
meridiemMode: import("../utils/time-utils").Meridiem | null;
|
|
22
|
+
meridiemMode: import("../utils/time-utils.js").Meridiem | null;
|
|
23
23
|
handleMeridiemChange: (mode: "am" | "pm") => void;
|
|
24
24
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useDesktopPicker } from "./useDesktopPicker.js";
|
|
2
|
-
export type { UseDesktopPickerSlots, UseDesktopPickerSlotProps, ExportedUseDesktopPickerSlotProps, DesktopOnlyPickerProps, UseDesktopPickerProps } from
|
|
2
|
+
export type { UseDesktopPickerSlots, UseDesktopPickerSlotProps, ExportedUseDesktopPickerSlotProps, DesktopOnlyPickerProps, UseDesktopPickerProps } from "./useDesktopPicker.types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useField } from "./useField.js";
|
|
2
|
-
export type { UseFieldInternalProps, UseFieldParameters, UseFieldReturnValue, UseFieldProps, FieldValueManager, FieldChangeHandler, FieldChangeHandlerContext } from
|
|
2
|
+
export type { UseFieldInternalProps, UseFieldParameters, UseFieldReturnValue, UseFieldProps, FieldValueManager, FieldChangeHandler, FieldChangeHandlerContext } from "./useField.types.js";
|
|
3
3
|
export { createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections } from "./useField.utils.js";
|
|
4
4
|
export { useFieldInternalPropsWithDefaults } from "./useFieldInternalPropsWithDefaults.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FieldSectionType, FieldSection, FieldSelectedSections, MuiPickersAdapter, TimezoneProps, FieldSectionContentType, PickerValidDate, FieldRef, OnErrorProps, InferFieldSection, PickerManager, PickerValueType } from "../../../models/index.js";
|
|
3
3
|
import { InternalPropNames } from "../../../hooks/useSplitFieldProps.js";
|
|
4
|
-
import type { PickersSectionElement, PickersSectionListRef } from
|
|
4
|
+
import type { PickersSectionElement, PickersSectionListRef } from "../../../PickersSectionList/index.js";
|
|
5
5
|
import { FormProps, InferNonNullablePickerValue, PickerValidValue } from "../../models/index.js";
|
|
6
6
|
export interface UseFieldParameters<TValue extends PickerValidValue, TEnableAccessibleFieldDOMStructure extends boolean, TError, TValidationProps extends {}, TProps extends UseFieldProps<TEnableAccessibleFieldDOMStructure>> {
|
|
7
7
|
manager: PickerManager<TValue, TEnableAccessibleFieldDOMStructure, TError, TValidationProps, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useMobilePicker } from "./useMobilePicker.js";
|
|
2
|
-
export type { UseMobilePickerSlots, UseMobilePickerSlotProps, ExportedUseMobilePickerSlotProps, MobileOnlyPickerProps } from
|
|
2
|
+
export type { UseMobilePickerSlots, UseMobilePickerSlotProps, ExportedUseMobilePickerSlotProps, MobileOnlyPickerProps } from "./useMobilePicker.types.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { UseFieldInternalProps } from
|
|
2
|
+
import type { UseFieldInternalProps } from "./useField/index.js";
|
|
3
3
|
import { FieldRef } from "../../models/index.js";
|
|
4
4
|
import { PickerRangeValue, PickerValue } from "../models/index.js";
|
|
5
5
|
export declare const PickerFieldPrivateContext: React.Context<PickerFieldPrivateContextValue | null>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Returns the context passed by the Picker wrapping the current component.
|
|
3
3
|
* If the context is not found, returns `null`.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useNullablePickerContext: () => import("
|
|
5
|
+
export declare const useNullablePickerContext: () => import("../index.js").PickerContextValue<any, any, any> | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { usePicker } from "./usePicker.js";
|
|
2
|
-
export type { UsePickerProps, UsePickerBaseProps, UsePickerParameters, PickerSelectionState, PickerViewsRendererProps, PickerViewRendererLookup, PickerRendererInterceptorProps, PickerViewRenderer, UsePickerNonStaticProps } from
|
|
2
|
+
export type { UsePickerProps, UsePickerBaseProps, UsePickerParameters, PickerSelectionState, PickerViewsRendererProps, PickerViewRendererLookup, PickerRendererInterceptorProps, PickerViewRenderer, UsePickerNonStaticProps } from "./usePicker.types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns the private context passed by the Picker wrapping the current component.
|
|
3
3
|
*/
|
|
4
|
-
export declare const usePickerPrivateContext: () => import("../components/PickerProvider").PickerPrivateContextValue;
|
|
4
|
+
export declare const usePickerPrivateContext: () => import("../components/PickerProvider.js").PickerPrivateContextValue;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useStaticPicker } from "./useStaticPicker.js";
|
|
2
|
-
export type { UseStaticPickerSlots, UseStaticPickerSlotProps, StaticOnlyPickerProps } from
|
|
2
|
+
export type { UseStaticPickerSlots, UseStaticPickerSlotProps, StaticOnlyPickerProps } from "./useStaticPicker.types.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MakeOptional } from '@mui/x-internals/types';
|
|
2
|
-
import type { PickerSelectionState } from
|
|
2
|
+
import type { PickerSelectionState } from "./usePicker/index.js";
|
|
3
3
|
import { DateOrTimeViewWithMeridiem, PickerValidValue } from "../models/index.js";
|
|
4
4
|
import { PickerValidDate } from "../../models/index.js";
|
|
5
5
|
import { CreateStepNavigationReturnValue } from "../utils/createStepNavigation.js";
|