import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React, { PropTypes } from 'react'; import elementType from 'react-prop-types/lib/elementType'; import warning from 'warning'; import { bsClass, getClassSet, prefix, splitBsPropsAndOmit } from './utils/bootstrapUtils'; import createChainedFunction from './utils/createChainedFunction'; import Fade from './Fade'; var propTypes = { /** * Uniquely identify the `` among its siblings. */ eventKey: PropTypes.any, /** * Use animation when showing or hiding ``s. Use `false` to disable, * `true` to enable the default `` animation or any `` * component. */ animation: PropTypes.oneOfType([PropTypes.bool, elementType]), /** @private **/ id: PropTypes.string, /** @private **/ 'aria-labelledby': PropTypes.string, /** * If not explicitly specified and rendered in the context of a * ``, the `bsClass` of the `` suffixed by `-pane`. * If otherwise not explicitly specified, `tab-pane`. */ bsClass: React.PropTypes.string, /** * Transition onEnter callback when animation is not `false` */ onEnter: PropTypes.func, /** * Transition onEntering callback when animation is not `false` */ onEntering: PropTypes.func, /** * Transition onEntered callback when animation is not `false` */ onEntered: PropTypes.func, /** * Transition onExit callback when animation is not `false` */ onExit: PropTypes.func, /** * Transition onExiting callback when animation is not `false` */ onExiting: PropTypes.func, /** * Transition onExited callback when animation is not `false` */ onExited: PropTypes.func, /** * Unmount the tab (remove it from the DOM) when it is no longer visible */ unmountOnExit: PropTypes.bool }; var contextTypes = { $bs_tabContainer: PropTypes.shape({ getId: PropTypes.func, unmountOnExit: PropTypes.bool }), $bs_tabContent: PropTypes.shape({ bsClass: PropTypes.string, animation: PropTypes.oneOfType([PropTypes.bool, elementType]), activeKey: PropTypes.any, unmountOnExit: PropTypes.bool, onPaneEnter: PropTypes.func.isRequired, onPaneExited: PropTypes.func.isRequired, exiting: PropTypes.bool.isRequired }) }; /** * We override the `` context so `