UNPKG

material-ui-arabic-datepicker

Version:

React components, that implements material design date and time pickers for material-ui v1 including a customized Datepicker with arabic header, months and weekdays and English numbers, modfied implementation from materail-ui-pickers

26 lines (22 loc) 847 B
import { ComponentClass, ReactNode } from 'react'; import { DateType } from '../constants/prop-types'; import { Utils } from '../typings/utils'; import { RenderDay } from './Calendar'; import { MaterialUiPickersDate } from '../typings/date' export interface DatePickerProps { date: MaterialUiPickersDate; minDate?: DateType; maxDate?: DateType; onChange: (date: MaterialUiPickersDate, isFinished?: boolean) => void; disablePast?: boolean; disableFuture?: boolean; animateYearScrolling?: boolean; openToYearSelection?: boolean; leftArrowIcon?: ReactNode; rightArrowIcon?: ReactNode; renderDay?: RenderDay; utils?: Utils<MaterialUiPickersDate>; shouldDisableDate?: (day: MaterialUiPickersDate) => boolean; } declare const DatePicker: ComponentClass<DatePickerProps>; export default DatePicker;