UNPKG

react-dates

Version:

A responsive and accessible date range picker component built with React

60 lines (45 loc) 1.95 kB
Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _reactMomentProptypes = require('react-moment-proptypes'); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); var _OrientationShape = require('../shapes/OrientationShape'); var _OrientationShape2 = _interopRequireDefault(_OrientationShape); var _AnchorDirectionShape = require('../shapes/AnchorDirectionShape'); var _AnchorDirectionShape2 = _interopRequireDefault(_AnchorDirectionShape); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } exports['default'] = { id: _react.PropTypes.string.isRequired, placeholder: _react.PropTypes.string, date: _reactMomentProptypes2['default'].momentObj, focused: _react.PropTypes.bool, showClearDate: _react.PropTypes.bool, reopenPickerOnClearDates: _react.PropTypes.bool, keepOpenOnDateSelect: _react.PropTypes.bool, disabled: _react.PropTypes.bool, required: _react.PropTypes.bool, onDateChange: _react.PropTypes.func, onFocusChange: _react.PropTypes.func, isDayBlocked: _react.PropTypes.func, isOutsideRange: _react.PropTypes.func, enableOutsideDays: _react.PropTypes.bool, numberOfMonths: _react.PropTypes.number, orientation: _OrientationShape2['default'], initialVisibleMonth: _react.PropTypes.func, anchorDirection: _AnchorDirectionShape2['default'], horizontalMargin: _react.PropTypes.number, navPrev: _react.PropTypes.node, navNext: _react.PropTypes.node, // portal options withPortal: _react.PropTypes.bool, withFullScreenPortal: _react.PropTypes.bool, onPrevMonthClick: _react.PropTypes.func, onNextMonthClick: _react.PropTypes.func, // i18n displayFormat: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), monthFormat: _react.PropTypes.string, phrases: _react.PropTypes.shape({ closeDatePicker: _react.PropTypes.node }) };