UNPKG

react-dates

Version:

A responsive and accessible date range picker component built with React

47 lines (38 loc) 1.31 kB
import { PropTypes } from 'react'; import momentPropTypes from 'react-moment-proptypes'; import OrientationShape from '../shapes/OrientationShape'; import anchorDirectionShape from '../shapes/AnchorDirectionShape'; export default { id: PropTypes.string.isRequired, placeholder: PropTypes.string, date: momentPropTypes.momentObj, focused: PropTypes.bool, showClearDate: PropTypes.bool, reopenPickerOnClearDates: PropTypes.bool, keepOpenOnDateSelect: PropTypes.bool, disabled: PropTypes.bool, required: PropTypes.bool, onDateChange: PropTypes.func, onFocusChange: PropTypes.func, isDayBlocked: PropTypes.func, isOutsideRange: PropTypes.func, enableOutsideDays: PropTypes.bool, numberOfMonths: PropTypes.number, orientation: OrientationShape, initialVisibleMonth: PropTypes.func, anchorDirection: anchorDirectionShape, horizontalMargin: PropTypes.number, navPrev: PropTypes.node, navNext: PropTypes.node, // portal options withPortal: PropTypes.bool, withFullScreenPortal: PropTypes.bool, onPrevMonthClick: PropTypes.func, onNextMonthClick: PropTypes.func, // i18n displayFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), monthFormat: PropTypes.string, phrases: PropTypes.shape({ closeDatePicker: PropTypes.node, }), };