@i-novus/ui-core
Version:
Базовые UI компоненты
24 lines (23 loc) • 968 B
TypeScript
/// <reference types="react" />
import { PopoverPlacement } from '../../../data-display/Popover/types';
import { ComponentBaseProps } from '../../../core';
import { InputProps } from '../../Input';
export interface Range {
begin: Date | string | null;
end: Date | string | null;
}
export interface DateRangePickerProps extends ComponentBaseProps, Omit<InputProps, 'onChange' | 'value' | 'defaultValue' | 'onBlur'> {
dateFormat?: string;
getContainer?(): Element;
maxDate?: Date | string;
minDate?: Date | string;
onBlur?(event?: InputEvent): void;
onChange(date: Range | null, event?: InputEvent): void;
outputFormat?: string;
parentId?: string;
placement?: PopoverPlacement;
popupClassName?: string;
timeFormat?: string;
value?: Range | null;
}
export declare const DateRangePicker: import("react").ForwardRefExoticComponent<Omit<DateRangePickerProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;