@mui/x-date-pickers
Version:
The community edition of the MUI X Date and Time Picker components.
39 lines • 1.33 kB
text/typescript
import type { PickerOnChangeFn } from "./useViews.mjs";
import type { PickerSelectionState } from "./usePicker/index.mjs";
import type { PickersTimezone, PickerValidDate } from "../../models/index.mjs";
export interface MonthValidationOptions {
/**
* If `true`, disable values before the current date.
*/
disablePast?: boolean;
/**
* If `true`, disable values after the current date.
*/
disableFuture?: boolean;
/**
* Minimal selectable date.
*/
minDate: PickerValidDate;
/**
* Maximal selectable date.
*/
maxDate: PickerValidDate;
/**
* The timezone used to compare dates.
*/
timezone: PickersTimezone;
}
export declare function useNextMonthDisabled(month: PickerValidDate, {
disableFuture,
maxDate,
timezone
}: Pick<MonthValidationOptions, 'disableFuture' | 'maxDate' | 'timezone'>): boolean;
export declare function usePreviousMonthDisabled(month: PickerValidDate, {
disablePast,
minDate,
timezone
}: Pick<MonthValidationOptions, 'disablePast' | 'minDate' | 'timezone'>): boolean;
export declare function useMeridiemMode(date: PickerValidDate | null, ampm: boolean | undefined, onChange: PickerOnChangeFn, selectionState?: PickerSelectionState): {
meridiemMode: import("../utils/time-utils.mjs").Meridiem | null;
handleMeridiemChange: (mode: 'am' | 'pm') => void;
};