UNPKG

@onesy/ui-react

Version:
71 lines (70 loc) 2.66 kB
import React from 'react'; import { OnesyDate } from '@onesy/date'; import { ILine } from '../Line/Line'; import { TCalendarUnit } from '../Calendar/Calendar'; import { TCalendarMonthCalendar, TCalendarMonthValue } from '../CalendarMonth/CalendarMonth'; import { IValueBreakpoints, IElement, IElementReference, IPropsAny } from '../types'; import { ITextField } from '../TextField/TextField'; export declare const SEPARATOR_SYMBOL = "\u2013"; export declare const SEPARATOR: string; export declare type IDatePicker = Omit<ILine, 'onChange'> & ITextField & { version?: 'auto' | 'mobile' | 'desktop'; value?: TCalendarMonthValue; valueDefault?: TCalendarMonthValue; onChange?: (value: TCalendarMonthValue) => any; calendar?: TCalendarMonthCalendar; calendarDefault?: TCalendarMonthCalendar; onChangeCalendar?: (value: TCalendarMonthCalendar) => any; now?: boolean; range?: boolean; static?: boolean; valid?: (value: OnesyDate, version: TCalendarUnit) => boolean; validate?: (value: OnesyDate) => boolean; min?: OnesyDate; max?: OnesyDate; calendars?: number; placeholder?: string; openMobile?: 'input' | 'select'; weekStartDay?: string; modeModalSubHeadingText?: string; modeModalSubHeadingTextRange?: string; selectModeHeadingText?: string; inputModeHeadingText?: string; switch?: boolean | Partial<Record<IValueBreakpoints, boolean>>; useHelperText?: boolean | Partial<Record<IValueBreakpoints, boolean>>; name?: IElement; nameFrom?: string; nameTo?: string; label?: IElement; labelFrom?: string; labelTo?: string; today?: boolean; clear?: boolean; fullScreen?: boolean; heading?: boolean; actions?: boolean; fullWidth?: boolean; onClick?: (event: React.MouseEvent<any>) => any; onClose?: (event: React.MouseEvent<any>) => any; onCancel?: (event: React.MouseEvent<any>) => any; onToday?: (event: React.MouseEvent<any>) => any; onClear?: (event: React.MouseEvent<any>) => any; onOk?: (event: React.MouseEvent<any>) => any; Icon?: IElementReference; IconCheck?: IElementReference; IconEnter?: IElementReference; IconClose?: IElementReference; WrapperProps?: IPropsAny; CalendarProps?: IPropsAny; CalendarPropsDesktop?: IPropsAny; CalendarPropsMobile?: IPropsAny; TooltipProps?: IPropsAny; IconButtonProps?: IPropsAny; AdvancedTextFieldProps?: IPropsAny; ButtonProps?: IPropsAny; ModalProps?: IPropsAny; IconProps?: IPropsAny; MobileSurfaceProps?: IPropsAny; }; declare const DatePicker: React.FC<IDatePicker>; export default DatePicker;