react-dates
Version:
A responsive and accessible date range picker component built with React
42 lines (34 loc) • 1.15 kB
JavaScript
import { PropTypes } from 'react';
import momentPropTypes from 'react-moment-proptypes';
import FocusedInputShape from '../shapes/FocusedInputShape';
import OrientationShape from '../shapes/OrientationShape';
export default {
startDate: momentPropTypes.momentObj,
endDate: momentPropTypes.momentObj,
focusedInput: FocusedInputShape,
minimumNights: PropTypes.number,
isDayBlocked: PropTypes.func,
isOutsideRange: PropTypes.func,
enableOutsideDays: PropTypes.bool,
numberOfMonths: PropTypes.number,
showClearDates: PropTypes.bool,
disabled: PropTypes.bool,
orientation: OrientationShape,
// portal options
withPortal: PropTypes.bool,
withFullScreenPortal: PropTypes.bool,
startDateId: PropTypes.string,
startDatePlaceholderText: PropTypes.string,
endDateId: PropTypes.string,
endDatePlaceholderText: PropTypes.string,
onDatesChange: PropTypes.func,
onFocusChange: PropTypes.func,
onPrevMonthClick: PropTypes.func,
onNextMonthClick: PropTypes.func,
// i18n
monthFormat: PropTypes.string,
phrases: PropTypes.shape({
closeDatePicker: PropTypes.node,
clearDates: PropTypes.node,
}),
};