UNPKG

oneframe-react

Version:

Oneframe React ## Components, Hooks, Helper Functions & State Management

42 lines (41 loc) 1.37 kB
import { RemovePropsTypes } from '../../../commonTypes'; import React from 'react'; import { ITextFieldProps } from '../Input/type'; export interface IDatePickerProps extends RemovePropsTypes<ITextFieldProps, 'maskFormat' | 'numberFormat' | 'value'> { value: Date | string; dateFormat?: string; locale?: string; showTodayButton?: boolean; autoOk?: boolean; autoFocus?: boolean; disabled?: boolean; todayLabel?: string; okLabel?: string; cancelLabel?: string; disableFuture?: boolean; disablePast?: boolean; disableToolbar?: boolean; emptyLabel?: string; initialFocusedDate?: string; invalidLabel?: string; invalidDateMessage?: React.ReactNode; maxDate?: string; maxDateMessage?: string; minDate?: string; minDateMessage?: string; onChange?: any; shouldDisableDate?: any; clearable?: boolean; clearLabel?: string; momentLocale?: string; } export interface ITimePickerProps extends RemovePropsTypes<IDatePickerProps, 'disableFuture' | 'disablePast' | 'disableToolbar' | 'maxDate' | 'maxDateMessage' | 'minDate' | 'minDateMessage' | 'shouldDisableDate'> { ampm?: boolean; minutesStep?: number; addTimeToDate?: any; } export interface IDateTimePickerProps extends IDatePickerProps { ampm?: boolean; hideTabs?: boolean; minutesStep?: number; }