Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import { DateStringValue } from '../../../types';
export declare function isInRange(date: DateStringValue, range: [DateStringValue, DateStringValue]): boolean;

View File

@@ -0,0 +1,27 @@
import { DatePickerType, DateStringValue, PickerBaseProps } from '../../types';
interface UseDatesRangeInput<Type extends DatePickerType = 'default'> extends PickerBaseProps<Type> {
level: 'year' | 'month' | 'day';
type: Type;
onMouseLeave?: (event: React.MouseEvent<HTMLDivElement>) => void;
}
export declare function useDatesState<Type extends DatePickerType = 'default'>({ type, level, value, defaultValue, onChange, allowSingleDateInRange, allowDeselect, onMouseLeave, }: UseDatesRangeInput<Type>): {
onDateChange: (date: DateStringValue) => void;
onRootMouseLeave: ((event: React.MouseEvent<HTMLDivElement>) => void) | undefined;
onHoveredDateChange: import("react").Dispatch<import("react").SetStateAction<string | null>>;
getControlProps: (date: DateStringValue) => {
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 {};