Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
}
CarouselItem.propTypes = {
...Transition.propTypes,
tag: tagPropType,
in: PropTypes.bool,
cssModule: PropTypes.object,
children: PropTypes.node,
slide: PropTypes.bool,
className: PropTypes.string,
};
CarouselItem.defaultProps = {
...Transition.defaultProps,
tag: 'div',
timeout: TransitionTimeouts.Carousel,
slide: true,
};
CarouselItem.contextTypes = {
direction: PropTypes.string
};
export default CarouselItem;
PropTypes.node
]),
tag: tagPropType,
baseClass: PropTypes.string,
baseClassActive: PropTypes.string,
className: PropTypes.string,
cssModule: PropTypes.object,
innerRef: PropTypes.oneOfType([
PropTypes.object,
PropTypes.string,
PropTypes.func,
]),
};
const defaultProps = {
...Transition.defaultProps,
tag: 'div',
baseClass: 'fade',
baseClassActive: 'show',
timeout: TransitionTimeouts.Fade,
appear: true,
enter: true,
exit: true,
in: true,
};
function Fade(props) {
const {
tag: Tag,
baseClass,
baseClassActive,
className,
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]),
tag: tagPropType,
className: PropTypes.node,
navbar: PropTypes.bool,
cssModule: PropTypes.object,
innerRef: PropTypes.oneOfType([
PropTypes.func,
PropTypes.string,
PropTypes.object
]),
};
const defaultProps = {
...Transition.defaultProps,
isOpen: false,
appear: false,
enter: true,
exit: true,
tag: 'div',
timeout: TransitionTimeouts.Collapse,
};
const transitionStatusToClassHash = {
[TransitionStatuses.ENTERING]: 'collapsing',
[TransitionStatuses.ENTERED]: 'collapse show',
[TransitionStatuses.EXITING]: 'collapsing',
[TransitionStatuses.EXITED]: 'collapse',
};
function getTransitionClass(status) {