ph-material-pickers
Version:
React components, that implements material design pickers for material-ui v4
13 lines (12 loc) • 787 B
TypeScript
import { ParsableDate } from '../../constants/prop-types';
export declare type OverrideParsableDateProps<TDate, TProps, TKey extends keyof TProps> = Omit<TProps, TKey> & Partial<Record<TKey, ParsableDate<TDate>>>;
export declare function useParsedDate<TDate>(possiblyUnparsedValue: ParsableDate<TDate>): TDate | undefined;
interface MonthValidationOptions {
disablePast?: boolean;
disableFuture?: boolean;
minDate: unknown;
maxDate: unknown;
}
export declare function useNextMonthDisabled(month: unknown, { disableFuture, maxDate }: Pick<MonthValidationOptions, 'disableFuture' | 'maxDate'>): boolean;
export declare function usePreviousMonthDisabled(month: unknown, { disablePast, minDate }: Pick<MonthValidationOptions, 'disablePast' | 'minDate'>): boolean;
export {};