Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Transition from 'react-transition-group/Transition'
import { Util } from 'reactstrap'
const {
TransitionTimeouts,
TransitionPropTypeKeys,
TransitionStatuses,
pick,
omit
} = Util
const propTypes = {
...Transition.propTypes, // eslint-disable-line react/forbid-foreign-prop-types
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]),
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
active: PropTypes.bool,
onToggle: PropTypes.func
}
const defaultProps = {
...Transition.defaultProps,
timeout: TransitionTimeouts.Collapse,
tag: 'div'
}
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Transition from 'react-transition-group/Transition'
import { Util, Button } from 'reactstrap'
const {
TransitionTimeouts,
TransitionPropTypeKeys,
TransitionStatuses,
pick,
omit
} = Util
const propTypes = {
...Transition.propTypes, // eslint-disable-line react/forbid-foreign-prop-types
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]),
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
onClose: PropTypes.func,
isOpen: PropTypes.bool
}
const defaultProps = {
...Transition.defaultProps,
timeout: TransitionTimeouts.Collapse,
tag: 'div'
}
"aria-expanded": active ? 'true' : 'false',
className: toggleClasses,
onClick: onToggle
}, attributes)));
}
AccordionHeader.propTypes = propTypes$1;
AccordionHeader.defaultProps = defaultProps$1;
var _transitionStatusToCl;
var TransitionTimeouts = Util.TransitionTimeouts,
TransitionPropTypeKeys = Util.TransitionPropTypeKeys,
TransitionStatuses = Util.TransitionStatuses,
pick = Util.pick,
omit = Util.omit;
var propTypes$2 = _extends({}, Transition.propTypes, {
// eslint-disable-line react/forbid-foreign-prop-types
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
active: PropTypes.bool,
onToggle: PropTypes.func
});
var defaultProps$2 = _extends({}, Transition.defaultProps, {
timeout: TransitionTimeouts.Collapse,
tag: 'div'
});
var transitionStatusToClassHash = (_transitionStatusToCl = {}, _transitionStatusToCl[TransitionStatuses.ENTERING] = 'collapsing', _transitionStatusToCl[TransitionStatuses.ENTERED] = 'collapse show', _transitionStatusToCl[TransitionStatuses.EXITING] = 'collapsing', _transitionStatusToCl[TransitionStatuses.EXITED] = 'collapse', _transitionStatusToCl);
function getTransitionClass(status) {
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import Transition from 'react-transition-group/Transition';
import mapToCssModules from 'map-to-css-modules';
import omit from 'lodash.omit';
import { pick } from '@bootstrap-styled/utils/lib/tools';
export const propTypes = {
...Transition.propTypes, // eslint-disable-line react/forbid-foreign-prop-types
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
tag: PropTypes.any,
baseClass: PropTypes.string,
baseClassActive: PropTypes.string,
className: PropTypes.string,
cssModule: PropTypes.object,
};
export const defaultProps = {
...Transition.defaultProps,
tag: 'div',
baseClass: 'fade',
baseClassActive: 'show',
import classNames from 'classnames'
import Transition from 'react-transition-group/Transition'
import { Util } from 'reactstrap'
const {
mapToCssModules,
omit,
pick,
TransitionTimeouts,
TransitionPropTypeKeys,
TransitionStatuses
} = Util
const propTypes = {
...Transition.propTypes, // eslint-disable-line react/forbid-foreign-prop-types
isOpen: PropTypes.bool,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]),
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.node,
navbar: PropTypes.bool,
cssModule: PropTypes.object
}
const defaultProps = {
...Transition.defaultProps,
isOpen: false,
appear: false,
enter: true,
);
}}
);
}
}
Collapse.defaultProps = {
...Transition.defaultProps,
isOpen: false,
timeout: TransitionTimeouts.Collapse
};
Collapse.propTypes = {
...Transition.propTypes,
isOpen: PropTypes.bool,
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
])
};
export default Collapse;