UNPKG

react-dates

Version:

A responsive and accessible date range picker component built with React

53 lines (45 loc) 1.63 kB
import { PropTypes } from 'react'; import momentPropTypes from 'react-moment-proptypes'; import FocusedInputShape from '../shapes/FocusedInputShape'; import OrientationShape from '../shapes/OrientationShape'; import anchorDirectionShape from '../shapes/AnchorDirectionShape'; export default { startDate: momentPropTypes.momentObj, endDate: momentPropTypes.momentObj, focusedInput: FocusedInputShape, screenReaderInputMessage: PropTypes.string, minimumNights: PropTypes.number, isDayBlocked: PropTypes.func, isOutsideRange: PropTypes.func, enableOutsideDays: PropTypes.bool, reopenPickerOnClearDates: PropTypes.bool, keepOpenOnDateSelect: PropTypes.bool, numberOfMonths: PropTypes.number, showClearDates: PropTypes.bool, disabled: PropTypes.bool, required: PropTypes.bool, showDefaultInputIcon: PropTypes.bool, orientation: OrientationShape, anchorDirection: anchorDirectionShape, horizontalMargin: PropTypes.number, // portal options withPortal: PropTypes.bool, withFullScreenPortal: PropTypes.bool, startDateId: PropTypes.string, startDatePlaceholderText: PropTypes.string, endDateId: PropTypes.string, endDatePlaceholderText: PropTypes.string, initialVisibleMonth: PropTypes.func, onDatesChange: PropTypes.func, onFocusChange: PropTypes.func, onPrevMonthClick: PropTypes.func, onNextMonthClick: PropTypes.func, renderDay: PropTypes.func, // i18n displayFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), monthFormat: PropTypes.string, phrases: PropTypes.shape({ closeDatePicker: PropTypes.node, clearDates: PropTypes.node, }), };