@vurilo/nepali-date-picker
Version:
Nepali Calendars, date and time pickers based on Mantine components
30 lines (29 loc) • 1.24 kB
TypeScript
/// <reference types="react" />
import { DatePickerType, PickerBaseProps } from '../../types';
interface UseDatesRangeInput<Type extends DatePickerType = 'default'> extends PickerBaseProps<Type> {
level: 'year' | 'month' | 'day';
type: Type;
onMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void;
applyTimezone?: boolean;
}
export declare function useDatesState<Type extends DatePickerType = 'default'>({ type, level, value, defaultValue, onChange, allowSingleDateInRange, allowDeselect, onMouseLeave, applyTimezone, }: UseDatesRangeInput<Type>): {
onDateChange: (date: Date) => void;
onRootMouseLeave: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
onHoveredDateChange: import("react").Dispatch<import("react").SetStateAction<Date | null>>;
getControlProps: (date: Date) => {
selected: any;
inRange: boolean;
firstInRange: boolean;
lastInRange: boolean;
'data-autofocus': true | undefined;
} | {
selected: any;
'data-autofocus': true | undefined;
inRange?: undefined;
firstInRange?: undefined;
lastInRange?: undefined;
};
_value: any;
setValue: any;
};
export {};