Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onDateSelect: PropTypes.func,
onMonthChange: PropTypes.func,
showWeekendSeparator: PropTypes.bool,
initiallyFocusedDate: PropTypes.instanceOf(Date),
renderTarget: PropTypes.func,
isOpen: PropTypes.bool,
};
BpkDatepicker.defaultProps = {
calendarComponent: BpkCalendar,
date: null,
dateModifiers: BpkCalendar.defaultProps.dateModifiers,
inputProps: {},
markOutsideDays: BpkCalendar.defaultProps.markOutsideDays,
markToday: BpkCalendar.defaultProps.markToday,
maxDate: BpkCalendar.defaultProps.maxDate,
minDate: BpkCalendar.defaultProps.minDate,
onDateSelect: null,
onMonthChange: null,
showWeekendSeparator: BpkCalendar.defaultProps.showWeekendSeparator,
initiallyFocusedDate: null,
renderTarget: null,
isOpen: false,
};
export default BpkDatepicker;
markOutsideDays: PropTypes.bool,
markToday: PropTypes.bool,
maxDate: PropTypes.instanceOf(Date),
minDate: PropTypes.instanceOf(Date),
onDateSelect: PropTypes.func,
onMonthChange: PropTypes.func,
showWeekendSeparator: PropTypes.bool,
initiallyFocusedDate: PropTypes.instanceOf(Date),
renderTarget: PropTypes.func,
isOpen: PropTypes.bool,
};
BpkDatepicker.defaultProps = {
calendarComponent: BpkCalendar,
date: null,
dateModifiers: BpkCalendar.defaultProps.dateModifiers,
inputProps: {},
markOutsideDays: BpkCalendar.defaultProps.markOutsideDays,
markToday: BpkCalendar.defaultProps.markToday,
maxDate: BpkCalendar.defaultProps.maxDate,
minDate: BpkCalendar.defaultProps.minDate,
onDateSelect: null,
onMonthChange: null,
showWeekendSeparator: BpkCalendar.defaultProps.showWeekendSeparator,
initiallyFocusedDate: null,
renderTarget: null,
isOpen: false,
};
export default BpkDatepicker;