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
28 lines (24 loc) • 989 B
TypeScript
import { ComponentClass, ReactNode } from 'react';
import { DateType } from '../constants/prop-types';
import { Utils } from '../typings/utils';
import { RenderDay } from './Calendar';
import { ModalWrapperProps } from '../wrappers/ModalWrapper';
import { MaterialUiPickersDate } from '../typings/date'
import { PickerBaseProps } from '../_shared/PickerBase'
import { Omit } from '@material-ui/core'
export interface DatePickerWrapperProps extends PickerBaseProps,
Omit<ModalWrapperProps, 'onChange'> {
minDate?: DateType;
maxDate?: DateType;
disablePast?: boolean;
disableFuture?: boolean;
animateYearScrolling?: boolean;
openToYearSelection?: boolean;
leftArrowIcon?: ReactNode;
rightArrowIcon?: ReactNode;
renderDay?: RenderDay;
utils?: Utils<MaterialUiPickersDate>;
shouldDisableDate?: (day: MaterialUiPickersDate) => boolean;
}
declare const DatePickerWrapper: ComponentClass<DatePickerWrapperProps>;
export default DatePickerWrapper;