UNPKG

@i-novus/ui-core

Version:

Базовые UI компоненты

22 lines (21 loc) 979 B
/// <reference types="react" /> import { ReactMaskOpts } from 'react-imask/mixin'; import { ComponentBaseProps } from '../../../core'; import { InputProps } from '../../Input'; import { PopoverPlacement } from '../../../data-display/Popover/types'; import { CalendarView } from '../../../data-display/Calendar/types'; export interface DatePickerProps extends ComponentBaseProps, Omit<InputProps, 'onChange' | 'value' | 'defaultValue'> { calendarView?: CalendarView; dateFormat?: string; getContainer?(): Element; maskConfig?: ReactMaskOpts; maxDate?: Date | string; minDate?: Date | string; onChange(date: string | null, event?: InputEvent): void; parentId?: string; placement?: PopoverPlacement; popupClassName?: string; timeFormat?: string; value?: Date | string | null; } export declare const DatePicker: import("react").ForwardRefExoticComponent<Omit<DatePickerProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;