diff --git a/dist/react-tabs.js b/dist/react-tabs.js index c83d60d993..8da48866fe 100644 --- a/dist/react-tabs.js +++ b/dist/react-tabs.js @@ -7,7 +7,7 @@ exports["ReactTabs"] = factory(require("react"), require("prop-types"), require("classnames")); else root["ReactTabs"] = factory(root["React"], root["PropTypes"], root["classNames"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_5__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_5__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 11); +/******/ return __webpack_require__(__webpack_require__.s = 12); /******/ }) /************************************************************************/ /******/ ([ @@ -84,12 +84,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_0__; /***/ }), /* 1 */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_1__; - -/***/ }), -/* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -99,7 +93,7 @@ exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _propTypes = __webpack_require__(1); +var _propTypes = __webpack_require__(3); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -199,16 +193,17 @@ Tab.propTypes = true ? { children: _propTypes2.default.oneOfType([_propTypes2.default.array, _propTypes2.default.object, _propTypes2.default.string]), className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]), disabled: _propTypes2.default.bool, - disabledClassName: _propTypes2.default.string, // private + disabledClassName: _propTypes2.default.string, focus: _propTypes2.default.bool, // private id: _propTypes2.default.string, // private panelId: _propTypes2.default.string, // private selected: _propTypes2.default.bool, // private - selectedClassName: _propTypes2.default.string, // private - tabRef: _propTypes2.default.func } : {}; + selectedClassName: _propTypes2.default.string, + tabRef: _propTypes2.default.func // private +} : {}; /***/ }), -/* 3 */ +/* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -218,7 +213,7 @@ exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _propTypes = __webpack_require__(1); +var _propTypes = __webpack_require__(3); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -240,40 +235,68 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var TabList = function (_Component) { - _inherits(TabList, _Component); +var DEFAULT_CLASS = 'react-tabs__tab-panel'; - function TabList() { - _classCallCheck(this, TabList); +var TabPanel = function (_Component) { + _inherits(TabPanel, _Component); + + function TabPanel() { + _classCallCheck(this, TabPanel); return _possibleConstructorReturn(this, _Component.apply(this, arguments)); } - TabList.prototype.render = function render() { + TabPanel.prototype.render = function render() { + var _cx; + var _props = this.props, children = _props.children, className = _props.className, - attributes = _objectWithoutProperties(_props, ['children', 'className']); + forceRender = _props.forceRender, + id = _props.id, + selected = _props.selected, + selectedClassName = _props.selectedClassName, + tabId = _props.tabId, + attributes = _objectWithoutProperties(_props, ['children', 'className', 'forceRender', 'id', 'selected', 'selectedClassName', 'tabId']); return _react2.default.createElement( - 'ul', - _extends({}, attributes, { className: (0, _classnames2.default)(className), role: 'tablist' }), - children + 'div', + _extends({}, attributes, { + className: (0, _classnames2.default)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)), + role: 'tabpanel', + id: id, + 'aria-labelledby': tabId + }), + forceRender || selected ? children : null ); }; - return TabList; + return TabPanel; }(_react.Component); -TabList.defaultProps = { - className: 'react-tabs__tab-list' +TabPanel.defaultProps = { + className: DEFAULT_CLASS, + forceRender: false, + selectedClassName: DEFAULT_CLASS + '--selected', + style: {} }; -exports.default = TabList; -TabList.propTypes = true ? { - children: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.array]), - className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]) +exports.default = TabPanel; +TabPanel.propTypes = true ? { + children: _propTypes2.default.node, + className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]), + forceRender: _propTypes2.default.bool, + id: _propTypes2.default.string, // private + selected: _propTypes2.default.bool, // private + selectedClassName: _propTypes2.default.string, + tabId: _propTypes2.default.string // private } : {}; +/***/ }), +/* 3 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_3__; + /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { @@ -285,7 +308,7 @@ exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _propTypes = __webpack_require__(1); +var _propTypes = __webpack_require__(3); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -307,60 +330,39 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var DEFAULT_CLASS = 'react-tabs__tab-panel'; - -var TabPanel = function (_Component) { - _inherits(TabPanel, _Component); +var TabList = function (_Component) { + _inherits(TabList, _Component); - function TabPanel() { - _classCallCheck(this, TabPanel); + function TabList() { + _classCallCheck(this, TabList); return _possibleConstructorReturn(this, _Component.apply(this, arguments)); } - TabPanel.prototype.render = function render() { - var _cx; - + TabList.prototype.render = function render() { var _props = this.props, children = _props.children, className = _props.className, - forceRender = _props.forceRender, - id = _props.id, - selected = _props.selected, - selectedClassName = _props.selectedClassName, - tabId = _props.tabId, - attributes = _objectWithoutProperties(_props, ['children', 'className', 'forceRender', 'id', 'selected', 'selectedClassName', 'tabId']); + attributes = _objectWithoutProperties(_props, ['children', 'className']); return _react2.default.createElement( - 'div', - _extends({}, attributes, { - className: (0, _classnames2.default)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)), - role: 'tabpanel', - id: id, - 'aria-labelledby': tabId - }), - forceRender || selected ? children : null + 'ul', + _extends({}, attributes, { className: (0, _classnames2.default)(className), role: 'tablist' }), + children ); }; - return TabPanel; + return TabList; }(_react.Component); -TabPanel.defaultProps = { - className: DEFAULT_CLASS, - forceRender: false, - selectedClassName: DEFAULT_CLASS + '--selected', - style: {} +TabList.defaultProps = { + className: 'react-tabs__tab-list' }; -exports.default = TabPanel; -TabPanel.propTypes = true ? { - selectedClassName: _propTypes2.default.string, // private - children: _propTypes2.default.node, - className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]), - forceRender: _propTypes2.default.bool, - id: _propTypes2.default.string, // private - selected: _propTypes2.default.bool, // private - tabId: _propTypes2.default.string } : {}; +exports.default = TabList; +TabList.propTypes = true ? { + children: _propTypes2.default.oneOfType([_propTypes2.default.object, _propTypes2.default.array]), + className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]) +} : {}; /***/ }), /* 5 */ @@ -375,6 +377,78 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_5__; "use strict"; +exports.__esModule = true; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +exports.deepMap = deepMap; +exports.deepForEach = deepForEach; + +var _react = __webpack_require__(0); + +var _Tab = __webpack_require__(1); + +var _Tab2 = _interopRequireDefault(_Tab); + +var _TabList = __webpack_require__(4); + +var _TabList2 = _interopRequireDefault(_TabList); + +var _TabPanel = __webpack_require__(2); + +var _TabPanel2 = _interopRequireDefault(_TabPanel); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function isTabChild(child) { + return child.type === _Tab2.default || child.type === _TabList2.default || child.type === _TabPanel2.default; +} + +function deepMap(children, callback) { + return _react.Children.map(children, function (child) { + // null happens when conditionally rendering TabPanel/Tab + // see https://github.com/reactjs/react-tabs/issues/37 + if (child === null) return null; + + if (isTabChild(child)) { + return callback(child); + } + + if (child.props && child.props.children && _typeof(child.props.children) === 'object') { + // Clone the child that has children and map them too + return (0, _react.cloneElement)(child, _extends({}, child.props, { + children: deepMap(child.props.children, callback) + })); + } + + return child; + }); +} + +function deepForEach(children, callback) { + return _react.Children.forEach(children, function (child) { + // null happens when conditionally rendering TabPanel/Tab + // see https://github.com/reactjs/react-tabs/issues/37 + if (child === null) return; + + if (child.type === _Tab2.default || child.type === _TabPanel2.default) { + callback(child); + } else if (child.props && child.props.children && _typeof(child.props.children) === 'object') { + if (child.type === _TabList2.default) callback(child); + deepForEach(child.props.children, callback); + } + }); +} + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + exports.__esModule = true; exports.default = uuid; exports.reset = reset; @@ -389,7 +463,7 @@ function reset() { } /***/ }), -/* 7 */ +/* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -399,46 +473,38 @@ exports.__esModule = true; exports.getTabsCount = getTabsCount; exports.getPanelsCount = getPanelsCount; -var _react = __webpack_require__(0); - -var _react2 = _interopRequireDefault(_react); - -var _TabList = __webpack_require__(3); - -var _TabList2 = _interopRequireDefault(_TabList); +var _childrenDeepMap = __webpack_require__(6); -var _Tab = __webpack_require__(2); +var _Tab = __webpack_require__(1); var _Tab2 = _interopRequireDefault(_Tab); -var _TabPanel = __webpack_require__(4); +var _TabPanel = __webpack_require__(2); var _TabPanel2 = _interopRequireDefault(_TabPanel); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function getTabsCount(children) { - var tabLists = _react2.default.Children.toArray(children).filter(function (x) { - return x.type === _TabList2.default; + var tabCount = 0; + (0, _childrenDeepMap.deepForEach)(children, function (child) { + if (child.type === _Tab2.default) tabCount++; }); - if (tabLists[0] && tabLists[0].props.children) { - return _react2.default.Children.count(_react2.default.Children.toArray(tabLists[0].props.children).filter(function (x) { - return x.type === _Tab2.default; - })); - } - - return 0; + return tabCount; } function getPanelsCount(children) { - return _react2.default.Children.count(_react2.default.Children.toArray(children).filter(function (x) { - return x.type === _TabPanel2.default; - })); + var panelCount = 0; + (0, _childrenDeepMap.deepForEach)(children, function (child) { + if (child.type === _TabPanel2.default) panelCount++; + }); + + return panelCount; } /***/ }), -/* 8 */ +/* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -452,19 +518,17 @@ exports.childrenPropType = childrenPropType; exports.onSelectPropType = onSelectPropType; exports.selectedIndexPropType = selectedIndexPropType; -var _react = __webpack_require__(0); - -var _react2 = _interopRequireDefault(_react); +var _childrenDeepMap = __webpack_require__(6); -var _Tab = __webpack_require__(2); +var _Tab = __webpack_require__(1); var _Tab2 = _interopRequireDefault(_Tab); -var _TabList = __webpack_require__(3); +var _TabList = __webpack_require__(4); var _TabList2 = _interopRequireDefault(_TabList); -var _TabPanel = __webpack_require__(4); +var _TabPanel = __webpack_require__(2); var _TabPanel2 = _interopRequireDefault(_TabPanel); @@ -474,35 +538,34 @@ function childrenPropType(props, propName, componentName) { var error = void 0; var tabsCount = 0; var panelsCount = 0; + var tabListFound = false; + var listTabs = []; var children = props[propName]; - _react2.default.Children.forEach(children, function (child) { - // null happens when conditionally rendering TabPanel/Tab - // see https://github.com/reactjs/react-tabs/issues/37 - if (child === null) { - return; - } - + (0, _childrenDeepMap.deepForEach)(children, function (child) { if (child.type === _TabList2.default) { - _react2.default.Children.forEach(child.props.children, function (c) { - // null happens when conditionally rendering TabPanel/Tab - // see https://github.com/reactjs/react-tabs/issues/37 - if (c === null) { - return; - } + if (child.props && child.props.children && _typeof(child.props.children) === 'object') { + (0, _childrenDeepMap.deepForEach)(child.props.children, function (listChild) { + return listTabs.push(listChild); + }); + } - if (c.type === _Tab2.default) { - tabsCount++; - } - }); + if (tabListFound) { + error = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed."); + } + tabListFound = true; + } + if (child.type === _Tab2.default) { + if (!tabListFound || listTabs.indexOf(child) === -1) { + error = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component."); + } + tabsCount++; } else if (child.type === _TabPanel2.default) { panelsCount++; - } else { - error = new Error('Expected \'TabList\' or \'TabPanel\' but found \'' + (child.type.displayName || child.type) + '\' in `' + componentName + '`'); } }); - if (tabsCount !== panelsCount) { + if (!error && tabsCount !== panelsCount) { error = new Error('There should be an equal number of \'Tab\' and \'TabPanel\' in `' + componentName + '`.' + ('Received ' + tabsCount + ' \'Tab\' and ' + panelsCount + ' \'TabPanel\'.')); } @@ -538,7 +601,7 @@ function selectedIndexPropType(props, propName, componentName, location, propFul } /***/ }), -/* 9 */ +/* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -546,7 +609,7 @@ function selectedIndexPropType(props, propName, componentName, location, propFul exports.__esModule = true; -var _propTypes = __webpack_require__(1); +var _propTypes = __webpack_require__(3); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -554,13 +617,13 @@ var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); -var _propTypes3 = __webpack_require__(8); +var _propTypes3 = __webpack_require__(9); -var _UncontrolledTabs = __webpack_require__(10); +var _UncontrolledTabs = __webpack_require__(11); var _UncontrolledTabs2 = _interopRequireDefault(_UncontrolledTabs); -var _count = __webpack_require__(7); +var _count = __webpack_require__(8); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -689,7 +752,7 @@ Tabs.propTypes = true ? { } : {}; /***/ }), -/* 10 */ +/* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -699,7 +762,7 @@ exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var _propTypes = __webpack_require__(1); +var _propTypes = __webpack_require__(3); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -711,25 +774,27 @@ var _classnames = __webpack_require__(5); var _classnames2 = _interopRequireDefault(_classnames); -var _uuid = __webpack_require__(6); +var _uuid = __webpack_require__(7); var _uuid2 = _interopRequireDefault(_uuid); -var _propTypes3 = __webpack_require__(8); +var _propTypes3 = __webpack_require__(9); -var _Tab = __webpack_require__(2); +var _Tab = __webpack_require__(1); var _Tab2 = _interopRequireDefault(_Tab); -var _TabList = __webpack_require__(3); +var _TabList = __webpack_require__(4); var _TabList2 = _interopRequireDefault(_TabList); -var _TabPanel = __webpack_require__(4); +var _TabPanel = __webpack_require__(2); var _TabPanel2 = _interopRequireDefault(_TabPanel); -var _count = __webpack_require__(7); +var _count = __webpack_require__(8); + +var _childrenDeepMap = __webpack_require__(6); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -896,13 +961,7 @@ var UncontrolledTabs = function (_Component) { } // Map children to dynamically setup refs - return _react2.default.Children.map(children, function (child) { - // null happens when conditionally rendering TabPanel/Tab - // see https://github.com/reactjs/react-tabs/issues/37 - if (child === null) { - return null; - } - + return (0, _childrenDeepMap.deepMap)(children, function (child) { var result = child; // Clone TabList and Tab components to have refs @@ -922,17 +981,7 @@ var UncontrolledTabs = function (_Component) { } result = (0, _react.cloneElement)(child, { - children: _react2.default.Children.map(child.props.children, function (tab) { - // null happens when conditionally rendering TabPanel/Tab - // see https://github.com/reactjs/react-tabs/issues/37 - if (tab === null) { - return null; - } - - // Exit early if this is not a tab. That way we can have arbitrary - // elements anywhere inside - if (tab.type !== _Tab2.default) return tab; - + children: (0, _childrenDeepMap.deepMap)(child.props.children, function (tab) { var key = 'tabs-' + listIndex; var selected = selectedIndex === listIndex; @@ -1047,7 +1096,7 @@ UncontrolledTabs.propTypes = true ? { } : {}; /***/ }), -/* 11 */ +/* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1056,23 +1105,23 @@ UncontrolledTabs.propTypes = true ? { exports.__esModule = true; exports.resetIdCounter = exports.Tabs = exports.TabPanel = exports.TabList = exports.Tab = undefined; -var _Tabs = __webpack_require__(9); +var _Tabs = __webpack_require__(10); var _Tabs2 = _interopRequireDefault(_Tabs); -var _TabList = __webpack_require__(3); +var _TabList = __webpack_require__(4); var _TabList2 = _interopRequireDefault(_TabList); -var _Tab = __webpack_require__(2); +var _Tab = __webpack_require__(1); var _Tab2 = _interopRequireDefault(_Tab); -var _TabPanel = __webpack_require__(4); +var _TabPanel = __webpack_require__(2); var _TabPanel2 = _interopRequireDefault(_TabPanel); -var _uuid = __webpack_require__(6); +var _uuid = __webpack_require__(7); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } diff --git a/dist/react-tabs.js.map b/dist/react-tabs.js.map index ae29d6d380..7422a2991a 100644 --- a/dist/react-tabs.js.map +++ b/dist/react-tabs.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap f6b3e4b022b48fc44b30","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///external {\"root\":\"PropTypes\",\"commonjs2\":\"prop-types\",\"commonjs\":\"prop-types\",\"amd\":\"prop-types\"}","webpack:///./src/components/Tab.js","webpack:///./src/components/TabList.js","webpack:///./src/components/TabPanel.js","webpack:///external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}","webpack:///./src/helpers/uuid.js","webpack:///./src/helpers/count.js","webpack:///./src/helpers/propTypes.js","webpack:///./src/components/Tabs.js","webpack:///./src/components/UncontrolledTabs.js","webpack:///./src/index.js"],"names":["DEFAULT_CLASS","Tab","componentDidMount","checkFocus","componentDidUpdate","props","selected","focus","node","render","children","className","disabled","disabledClassName","id","panelId","selectedClassName","tabRef","attributes","defaultProps","propTypes","oneOfType","array","object","string","bool","func","TabList","TabPanel","forceRender","tabId","style","uuid","reset","count","getTabsCount","getPanelsCount","tabLists","Children","toArray","filter","x","type","childrenPropType","onSelectPropType","selectedIndexPropType","propName","componentName","error","tabsCount","panelsCount","forEach","child","c","Error","displayName","location","propFullName","prop","name","selectedIndex","defaultIndex","Tabs","handleSelected","index","last","event","onSelect","state","inUncontrolledMode","setState","copyPropsToState","defaultFocus","componentWillReceiveProps","newProps","newState","maxTabIndex","Math","min","forceRenderTabPanel","number","disabledTabClassName","selectedTabClassName","selectedTabPanelClassName","isTabNode","nodeName","getAttribute","isTabDisabled","canUseActiveElement","window","document","activeElement","UncontrolledTabs","tabNodes","handleKeyDown","isTabFromContainer","e","target","preventDefault","keyCode","getPrevTab","getNextTab","setSelected","handleClick","slice","call","parentNode","indexOf","i","getTab","getChildren","tabIds","panelIds","diff","length","push","map","result","listIndex","wasTabFocused","tab","some","key","nodeAncestor","parentElement","isRequired","resetI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B,O;QAASC,Q;QAAUkC,I;QAAMgE,c","file":"react-tabs.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"prop-types\"), require(\"classnames\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"prop-types\", \"classnames\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactTabs\"] = factory(require(\"react\"), require(\"prop-types\"), require(\"classnames\"));\n\telse\n\t\troot[\"ReactTabs\"] = factory(root[\"React\"], root[\"PropTypes\"], root[\"classNames\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_5__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 11);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap f6b3e4b022b48fc44b30","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 0\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"PropTypes\",\"commonjs2\":\"prop-types\",\"commonjs\":\"prop-types\",\"amd\":\"prop-types\"}\n// module id = 1\n// module chunks = 0","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab';\n\nexport default class Tab extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: `${DEFAULT_CLASS}--disabled`,\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n disabledClassName: PropTypes.string, // private\n focus: PropTypes.bool, // private\n id: PropTypes.string, // private\n panelId: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string, // private\n tabRef: PropTypes.func, // private\n };\n\n componentDidMount() {\n this.checkFocus();\n }\n\n componentDidUpdate() {\n this.checkFocus();\n }\n\n checkFocus() {\n if (this.props.selected && this.props.focus) {\n this.node.focus();\n }\n }\n\n render() {\n const {\n children,\n className,\n disabled,\n disabledClassName,\n focus, // unused\n id,\n panelId,\n selected,\n selectedClassName,\n tabRef,\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n if (tabRef) tabRef(node);\n }}\n role=\"tab\"\n id={id}\n aria-selected={selected ? 'true' : 'false'}\n aria-disabled={disabled ? 'true' : 'false'}\n aria-controls={panelId}\n tabIndex={selected ? '0' : null}\n >\n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tab.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nexport default class TabList extends Component {\n static defaultProps = {\n className: 'react-tabs__tab-list',\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n };\n\n render() {\n const { children, className, ...attributes } = this.props;\n\n return (\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabList.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nexport default class TabPanel extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n style: {},\n };\n\n static propTypes = {\n selectedClassName: PropTypes.string, // private\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string, // private\n selected: PropTypes.bool, // private\n tabId: PropTypes.string, // private\n };\n\n render() {\n const {\n children,\n className,\n forceRender,\n id,\n selected,\n selectedClassName,\n tabId,\n ...attributes\n } = this.props;\n\n return (\n \n {forceRender || selected ? children : null}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabPanel.js","module.exports = __WEBPACK_EXTERNAL_MODULE_5__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}\n// module id = 5\n// module chunks = 0","// Get a universally unique identifier\nlet count = 0;\nexport default function uuid() {\n return `react-tabs-${count++}`;\n}\n\nexport function reset() {\n count = 0;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/uuid.js","import React from 'react';\nimport TabList from '../components/TabList';\nimport Tab from '../components/Tab';\nimport TabPanel from '../components/TabPanel';\n\nexport function getTabsCount(children) {\n const tabLists = React.Children.toArray(children).filter(x => x.type === TabList);\n\n if (tabLists[0] && tabLists[0].props.children) {\n return React.Children.count(\n React.Children.toArray(tabLists[0].props.children).filter(x => x.type === Tab),\n );\n }\n\n return 0;\n}\n\nexport function getPanelsCount(children) {\n return React.Children.count(React.Children.toArray(children).filter(x => x.type === TabPanel));\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/count.js","import React from 'react';\nimport Tab from '../components/Tab';\nimport TabList from '../components/TabList';\nimport TabPanel from '../components/TabPanel';\n\nexport function childrenPropType(props, propName, componentName) {\n let error;\n let tabsCount = 0;\n let panelsCount = 0;\n const children = props[propName];\n\n React.Children.forEach(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) {\n return;\n }\n\n if (child.type === TabList) {\n React.Children.forEach(child.props.children, c => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (c === null) {\n return;\n }\n\n if (c.type === Tab) {\n tabsCount++;\n }\n });\n } else if (child.type === TabPanel) {\n panelsCount++;\n } else {\n error = new Error(\n `Expected 'TabList' or 'TabPanel' but found '${child.type.displayName || child.type}' in \\`${componentName}\\``,\n );\n }\n });\n\n if (tabsCount !== panelsCount) {\n error = new Error(\n `There should be an equal number of 'Tab' and 'TabPanel' in \\`${componentName}\\`.` +\n `Received ${tabsCount} 'Tab' and ${panelsCount} 'TabPanel'.`,\n );\n }\n\n return error;\n}\n\nexport function onSelectPropType(props, propName, componentName, location, propFullName) {\n const prop = props[propName];\n const name = propFullName || propName;\n let error = null;\n\n if (prop && typeof prop !== 'function') {\n error = new Error(\n `Invalid ${location} \\`${name}\\` of type \\`${typeof prop}\\` supplied to \\`${componentName}\\`, expected \\`function\\`.`,\n );\n } else if (props.selectedIndex != null && prop == null) {\n error = new Error(\n `The ${location} \\`${name}\\` is marked as required in \\`${componentName}\\`, but its value is \\`undefined\\` or \\`null\\`.\n\\`onSelect\\` is required when \\`selectedIndex\\` is also set. Not doing so will make the tabs not do anything, as \\`selectedIndex\\` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace \\`selectedIndex\\` with \\`defaultIndex\\`.`,\n );\n }\n\n return error;\n}\n\nexport function selectedIndexPropType(props, propName, componentName, location, propFullName) {\n const prop = props[propName];\n const name = propFullName || propName;\n let error = null;\n\n if (prop != null && typeof prop !== 'number') {\n error = new Error(\n `Invalid ${location} \\`${name}\\` of type \\`${typeof prop}\\` supplied to \\`${componentName}\\`, expected \\`number\\`.`,\n );\n } else if (props.defaultIndex != null && prop != null) {\n return new Error(\n `The ${location} \\`${name}\\` cannot be used together with \\`defaultIndex\\` in \\`${componentName}\\`.\nEither remove \\`${name}\\` to let \\`${componentName}\\` handle the selected tab internally or remove \\`defaultIndex\\` to handle it yourself.`,\n );\n }\n\n return error;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/propTypes.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { childrenPropType, onSelectPropType, selectedIndexPropType } from '../helpers/propTypes';\nimport UncontrolledTabs from './UncontrolledTabs';\nimport { getTabsCount } from '../helpers/count';\n\nexport default class Tabs extends Component {\n static defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n constructor(props) {\n super(props);\n\n this.state = Tabs.copyPropsToState(this.props, {}, this.props.defaultFocus);\n }\n\n componentWillReceiveProps(newProps) {\n if (\n process.env.NODE_ENV !== 'production' &&\n Tabs.inUncontrolledMode(newProps) !== Tabs.inUncontrolledMode(this.props)\n ) {\n throw new Error(\n `Switching between controlled mode (by using \\`selectedIndex\\`) and uncontrolled mode is not supported in \\`Tabs\\`.\nFor more information about controlled and uncontrolled mode of react-tabs see the README.`,\n );\n }\n // Use a transactional update to prevent race conditions\n // when reading the state in copyPropsToState\n // See https://github.com/reactjs/react-tabs/issues/51\n this.setState(state => Tabs.copyPropsToState(newProps, state));\n }\n\n static inUncontrolledMode(props) {\n return props.selectedIndex === null;\n }\n\n handleSelected = (index, last, event) => {\n // Call change event handler\n if (typeof this.props.onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (this.props.onSelect(index, last, event) === false) return;\n }\n\n const state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown',\n };\n\n if (Tabs.inUncontrolledMode(this.props)) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n this.setState(state);\n };\n\n // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n static copyPropsToState(props, state, focus = false) {\n const newState = {\n focus,\n };\n\n if (Tabs.inUncontrolledMode(props)) {\n const maxTabIndex = getTabsCount(props.children) - 1;\n let selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n }\n\n render() {\n const { children, defaultIndex, defaultFocus, ...props } = this.props;\n\n props.focus = this.state.focus;\n props.onSelect = this.handleSelected;\n\n if (this.state.selectedIndex != null) {\n props.selectedIndex = this.state.selectedIndex;\n }\n\n return (\n \n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tabs.js","import PropTypes from 'prop-types';\nimport React, { cloneElement, Component } from 'react';\nimport cx from 'classnames';\nimport uuid from '../helpers/uuid';\nimport { childrenPropType } from '../helpers/propTypes';\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport { getPanelsCount, getTabsCount } from '../helpers/count';\n\n// Determine if a node from event.target is a Tab element\nfunction isTabNode(node) {\n return node.nodeName === 'LI' && node.getAttribute('role') === 'tab';\n}\n\n// Determine if a tab node is disabled\nfunction isTabDisabled(node) {\n return node.getAttribute('aria-disabled') === 'true';\n}\n\nconst canUseActiveElement = !!(typeof window !== 'undefined' &&\n window.document &&\n window.document.activeElement);\n\nexport default class UncontrolledTabs extends Component {\n static defaultProps = {\n className: 'react-tabs',\n focus: false,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n tabNodes = [];\n\n setSelected(index, event) {\n // Don't do anything if nothing has changed\n if (index === this.props.selectedIndex) return;\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n\n // Call change event handler\n this.props.onSelect(index, this.props.selectedIndex, event);\n }\n\n getNextTab(index) {\n const count = this.getTabsCount();\n\n // Look for non-disabled tab from index to the last tab on the right\n for (let i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from first on left to index\n for (let i = 0; i < index; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getPrevTab(index) {\n let i = index;\n\n // Look for non-disabled tab from index to first tab on the left\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from last tab on right to index\n i = this.getTabsCount();\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getTabsCount() {\n return getTabsCount(this.props.children);\n }\n\n getPanelsCount() {\n return getPanelsCount(this.props.children);\n }\n\n getTab(index) {\n return this.tabNodes[`tabs-${index}`];\n }\n\n getChildren() {\n let index = 0;\n const {\n children,\n disabledTabClassName,\n focus,\n forceRenderTabPanel,\n selectedIndex,\n selectedTabClassName,\n selectedTabPanelClassName,\n } = this.props;\n\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n let diff = this.tabIds.length - this.getTabsCount();\n\n // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n while (diff++ < 0) {\n this.tabIds.push(uuid());\n this.panelIds.push(uuid());\n }\n\n // Map children to dynamically setup refs\n return React.Children.map(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) {\n return null;\n }\n\n let result = child;\n\n // Clone TabList and Tab components to have refs\n if (child.type === TabList) {\n let listIndex = 0;\n\n // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n let wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = React.Children\n .toArray(child.props.children)\n .filter(tab => tab.type === Tab)\n .some((tab, i) => document.activeElement === this.getTab(i));\n }\n\n result = cloneElement(child, {\n children: React.Children.map(child.props.children, tab => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (tab === null) {\n return null;\n }\n\n // Exit early if this is not a tab. That way we can have arbitrary\n // elements anywhere inside \n if (tab.type !== Tab) return tab;\n\n const key = `tabs-${listIndex}`;\n const selected = selectedIndex === listIndex;\n\n const props = {\n tabRef: node => {\n this.tabNodes[key] = node;\n },\n id: this.tabIds[listIndex],\n panelId: this.panelIds[listIndex],\n selected,\n focus: selected && (focus || wasTabFocused),\n };\n\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n\n listIndex++;\n\n return cloneElement(tab, props);\n }),\n });\n } else if (child.type === TabPanel) {\n const props = {\n id: this.panelIds[index],\n tabId: this.tabIds[index],\n selected: selectedIndex === index,\n };\n\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n\n index++;\n\n result = cloneElement(child, props);\n }\n\n return result;\n });\n }\n\n handleKeyDown = e => {\n if (this.isTabFromContainer(e.target)) {\n let index = this.props.selectedIndex;\n let preventDefault = false;\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n index = this.getPrevTab(index);\n preventDefault = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n index = this.getNextTab(index);\n preventDefault = true;\n }\n\n // This prevents scrollbars from moving around\n if (preventDefault) {\n e.preventDefault();\n }\n\n this.setSelected(index, e);\n }\n };\n\n handleClick = e => {\n let node = e.target;\n // eslint-disable-next-line no-cond-assign\n do {\n if (this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n const index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n this.setSelected(index, e);\n return;\n }\n } while ((node = node.parentNode) !== null);\n };\n\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n }\n\n // Check if the first occurrence of a Tabs container is `this` one.\n let nodeAncestor = node.parentElement;\n do {\n if (nodeAncestor === this.node) return true;\n else if (nodeAncestor.getAttribute('data-tabs')) break;\n\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n }\n\n render() {\n // Delete all known props, so they don't get added to DOM\n const {\n children, // unused\n className,\n disabledTabClassName, // unused\n focus, // unused\n forceRenderTabPanel, // unused\n onSelect, // unused\n selectedIndex, // unused\n selectedTabClassName, // unused\n selectedTabPanelClassName, // unused\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n }}\n data-tabs\n >\n {this.getChildren()}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/UncontrolledTabs.js","import Tabs from './components/Tabs';\nimport TabList from './components/TabList';\nimport Tab from './components/Tab';\nimport TabPanel from './components/TabPanel';\nimport { reset as resetIdCounter } from './helpers/uuid';\n\nexport { Tab, TabList, TabPanel, Tabs, resetIdCounter };\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 2162aa473d23f737a533","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./src/components/Tab.js","webpack:///./src/components/TabPanel.js","webpack:///external {\"root\":\"PropTypes\",\"commonjs2\":\"prop-types\",\"commonjs\":\"prop-types\",\"amd\":\"prop-types\"}","webpack:///./src/components/TabList.js","webpack:///external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}","webpack:///./src/helpers/childrenDeepMap.js","webpack:///./src/helpers/uuid.js","webpack:///./src/helpers/count.js","webpack:///./src/helpers/propTypes.js","webpack:///./src/components/Tabs.js","webpack:///./src/components/UncontrolledTabs.js","webpack:///./src/index.js"],"names":["DEFAULT_CLASS","Tab","componentDidMount","checkFocus","componentDidUpdate","props","selected","focus","node","render","children","className","disabled","disabledClassName","id","panelId","selectedClassName","tabRef","attributes","defaultProps","propTypes","oneOfType","array","object","string","bool","func","TabPanel","forceRender","tabId","style","TabList","deepMap","deepForEach","isTabChild","child","type","callback","map","forEach","uuid","reset","count","getTabsCount","getPanelsCount","tabCount","panelCount","childrenPropType","onSelectPropType","selectedIndexPropType","propName","componentName","error","tabsCount","panelsCount","tabListFound","listTabs","push","listChild","Error","indexOf","location","propFullName","prop","name","selectedIndex","defaultIndex","Tabs","handleSelected","index","last","event","onSelect","state","inUncontrolledMode","setState","copyPropsToState","defaultFocus","componentWillReceiveProps","newProps","newState","maxTabIndex","Math","min","forceRenderTabPanel","number","disabledTabClassName","selectedTabClassName","selectedTabPanelClassName","isTabNode","nodeName","getAttribute","isTabDisabled","canUseActiveElement","window","document","activeElement","UncontrolledTabs","tabNodes","handleKeyDown","isTabFromContainer","e","target","preventDefault","keyCode","getPrevTab","getNextTab","setSelected","handleClick","slice","call","parentNode","filter","i","getTab","getChildren","tabIds","panelIds","diff","length","result","listIndex","wasTabFocused","Children","toArray","tab","some","key","nodeAncestor","parentElement","isRequired","resetIdCounter"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA,mDAA2C,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA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AtQkBlB,gB,CACZ9E,Y,GAAe;AACpBR,aAAW,YADS;AAEpBJ,SAAO;AAFa,C;kBADH0F,gB;AAAAA,gB,CAMZ7E,S,WAAY;AACjBV,wCADiB;AAEjBC,aAAW,oBAAUU,SAAV,CAAoB,CAAC,oBAAUG,MAAX,EAAmB,oBAAUF,KAA7B,EAAoC,oBAAUC,MAA9C,CAApB,CAFM;AAGjB+D,wBAAsB,oBAAU9D,MAHf;AAIjBjB,SAAO,oBAAUkB,IAJA;AAKjB2D,uBAAqB,oBAAU3D,IALd;AAMjB+C,YAAU,oBAAU9C,IAAV,CAAewG,UANR;AAOjBjE,iBAAe,oBAAUoB,MAAV,CAAiB6C,UAPf;AAQjB3C,wBAAsB,oBAAU/D,MARf;AASjBgE,6BAA2B,oBAAUhE;AATpB,C;;;;;;;;;;;;ACjCrB;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;QAESvB,G;QAAK8B,O;QAASJ,Q;QAAUwC,I;QAAMgE,c","file":"react-tabs.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"prop-types\"), require(\"classnames\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"prop-types\", \"classnames\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactTabs\"] = factory(require(\"react\"), require(\"prop-types\"), require(\"classnames\"));\n\telse\n\t\troot[\"ReactTabs\"] = factory(root[\"React\"], root[\"PropTypes\"], root[\"classNames\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_5__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 12);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 2162aa473d23f737a533","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 0\n// module chunks = 0","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab';\n\nexport default class Tab extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: `${DEFAULT_CLASS}--disabled`,\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n disabledClassName: PropTypes.string,\n focus: PropTypes.bool, // private\n id: PropTypes.string, // private\n panelId: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string,\n tabRef: PropTypes.func, // private\n };\n\n componentDidMount() {\n this.checkFocus();\n }\n\n componentDidUpdate() {\n this.checkFocus();\n }\n\n checkFocus() {\n if (this.props.selected && this.props.focus) {\n this.node.focus();\n }\n }\n\n render() {\n const {\n children,\n className,\n disabled,\n disabledClassName,\n focus, // unused\n id,\n panelId,\n selected,\n selectedClassName,\n tabRef,\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n if (tabRef) tabRef(node);\n }}\n role=\"tab\"\n id={id}\n aria-selected={selected ? 'true' : 'false'}\n aria-disabled={disabled ? 'true' : 'false'}\n aria-controls={panelId}\n tabIndex={selected ? '0' : null}\n >\n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tab.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nexport default class TabPanel extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n style: {},\n };\n\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string,\n tabId: PropTypes.string, // private\n };\n\n render() {\n const {\n children,\n className,\n forceRender,\n id,\n selected,\n selectedClassName,\n tabId,\n ...attributes\n } = this.props;\n\n return (\n \n {forceRender || selected ? children : null}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabPanel.js","module.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"PropTypes\",\"commonjs2\":\"prop-types\",\"commonjs\":\"prop-types\",\"amd\":\"prop-types\"}\n// module id = 3\n// module chunks = 0","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nexport default class TabList extends Component {\n static defaultProps = {\n className: 'react-tabs__tab-list',\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n };\n\n render() {\n const { children, className, ...attributes } = this.props;\n\n return (\n
    \n {children}\n
\n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabList.js","module.exports = __WEBPACK_EXTERNAL_MODULE_5__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}\n// module id = 5\n// module chunks = 0","import { Children, cloneElement } from 'react';\nimport Tab from '../components/Tab';\nimport TabList from '../components/TabList';\nimport TabPanel from '../components/TabPanel';\n\nfunction isTabChild(child) {\n return child.type === Tab || child.type === TabList || child.type === TabPanel;\n}\n\nexport function deepMap(children, callback) {\n return Children.map(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return null;\n\n if (isTabChild(child)) {\n return callback(child);\n }\n\n if (child.props && child.props.children && typeof child.props.children === 'object') {\n // Clone the child that has children and map them too\n return cloneElement(child, {\n ...child.props,\n children: deepMap(child.props.children, callback),\n });\n }\n\n return child;\n });\n}\n\nexport function deepForEach(children, callback) {\n return Children.forEach(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return;\n\n if (child.type === Tab || child.type === TabPanel) {\n callback(child);\n } else if (child.props && child.props.children && typeof child.props.children === 'object') {\n if (child.type === TabList) callback(child);\n deepForEach(child.props.children, callback);\n }\n });\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/childrenDeepMap.js","// Get a universally unique identifier\nlet count = 0;\nexport default function uuid() {\n return `react-tabs-${count++}`;\n}\n\nexport function reset() {\n count = 0;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/uuid.js","import { deepForEach } from '../helpers/childrenDeepMap';\nimport Tab from '../components/Tab';\nimport TabPanel from '../components/TabPanel';\n\nexport function getTabsCount(children) {\n let tabCount = 0;\n deepForEach(children, child => {\n if (child.type === Tab) tabCount++;\n });\n\n return tabCount;\n}\n\nexport function getPanelsCount(children) {\n let panelCount = 0;\n deepForEach(children, child => {\n if (child.type === TabPanel) panelCount++;\n });\n\n return panelCount;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/count.js","import { deepForEach } from '../helpers/childrenDeepMap';\nimport Tab from '../components/Tab';\nimport TabList from '../components/TabList';\nimport TabPanel from '../components/TabPanel';\n\nexport function childrenPropType(props, propName, componentName) {\n let error;\n let tabsCount = 0;\n let panelsCount = 0;\n let tabListFound = false;\n const listTabs = [];\n const children = props[propName];\n\n deepForEach(children, child => {\n if (child.type === TabList) {\n if (child.props && child.props.children && typeof child.props.children === 'object') {\n deepForEach(child.props.children, listChild => listTabs.push(listChild));\n }\n\n if (tabListFound) {\n error = new Error(\n \"Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.\",\n );\n }\n tabListFound = true;\n }\n if (child.type === Tab) {\n if (!tabListFound || listTabs.indexOf(child) === -1) {\n error = new Error(\n \"Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.\",\n );\n }\n tabsCount++;\n } else if (child.type === TabPanel) {\n panelsCount++;\n }\n });\n\n if (!error && tabsCount !== panelsCount) {\n error = new Error(\n `There should be an equal number of 'Tab' and 'TabPanel' in \\`${componentName}\\`.` +\n `Received ${tabsCount} 'Tab' and ${panelsCount} 'TabPanel'.`,\n );\n }\n\n return error;\n}\n\nexport function onSelectPropType(props, propName, componentName, location, propFullName) {\n const prop = props[propName];\n const name = propFullName || propName;\n let error = null;\n\n if (prop && typeof prop !== 'function') {\n error = new Error(\n `Invalid ${location} \\`${name}\\` of type \\`${typeof prop}\\` supplied to \\`${componentName}\\`, expected \\`function\\`.`,\n );\n } else if (props.selectedIndex != null && prop == null) {\n error = new Error(\n `The ${location} \\`${name}\\` is marked as required in \\`${componentName}\\`, but its value is \\`undefined\\` or \\`null\\`.\n\\`onSelect\\` is required when \\`selectedIndex\\` is also set. Not doing so will make the tabs not do anything, as \\`selectedIndex\\` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace \\`selectedIndex\\` with \\`defaultIndex\\`.`,\n );\n }\n\n return error;\n}\n\nexport function selectedIndexPropType(props, propName, componentName, location, propFullName) {\n const prop = props[propName];\n const name = propFullName || propName;\n let error = null;\n\n if (prop != null && typeof prop !== 'number') {\n error = new Error(\n `Invalid ${location} \\`${name}\\` of type \\`${typeof prop}\\` supplied to \\`${componentName}\\`, expected \\`number\\`.`,\n );\n } else if (props.defaultIndex != null && prop != null) {\n return new Error(\n `The ${location} \\`${name}\\` cannot be used together with \\`defaultIndex\\` in \\`${componentName}\\`.\nEither remove \\`${name}\\` to let \\`${componentName}\\` handle the selected tab internally or remove \\`defaultIndex\\` to handle it yourself.`,\n );\n }\n\n return error;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/propTypes.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { childrenPropType, onSelectPropType, selectedIndexPropType } from '../helpers/propTypes';\nimport UncontrolledTabs from './UncontrolledTabs';\nimport { getTabsCount } from '../helpers/count';\n\nexport default class Tabs extends Component {\n static defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n constructor(props) {\n super(props);\n\n this.state = Tabs.copyPropsToState(this.props, {}, this.props.defaultFocus);\n }\n\n componentWillReceiveProps(newProps) {\n if (\n process.env.NODE_ENV !== 'production' &&\n Tabs.inUncontrolledMode(newProps) !== Tabs.inUncontrolledMode(this.props)\n ) {\n throw new Error(\n `Switching between controlled mode (by using \\`selectedIndex\\`) and uncontrolled mode is not supported in \\`Tabs\\`.\nFor more information about controlled and uncontrolled mode of react-tabs see the README.`,\n );\n }\n // Use a transactional update to prevent race conditions\n // when reading the state in copyPropsToState\n // See https://github.com/reactjs/react-tabs/issues/51\n this.setState(state => Tabs.copyPropsToState(newProps, state));\n }\n\n static inUncontrolledMode(props) {\n return props.selectedIndex === null;\n }\n\n handleSelected = (index, last, event) => {\n // Call change event handler\n if (typeof this.props.onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (this.props.onSelect(index, last, event) === false) return;\n }\n\n const state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown',\n };\n\n if (Tabs.inUncontrolledMode(this.props)) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n this.setState(state);\n };\n\n // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n static copyPropsToState(props, state, focus = false) {\n const newState = {\n focus,\n };\n\n if (Tabs.inUncontrolledMode(props)) {\n const maxTabIndex = getTabsCount(props.children) - 1;\n let selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n }\n\n render() {\n const { children, defaultIndex, defaultFocus, ...props } = this.props;\n\n props.focus = this.state.focus;\n props.onSelect = this.handleSelected;\n\n if (this.state.selectedIndex != null) {\n props.selectedIndex = this.state.selectedIndex;\n }\n\n return (\n \n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tabs.js","import PropTypes from 'prop-types';\nimport React, { cloneElement, Component } from 'react';\nimport cx from 'classnames';\nimport uuid from '../helpers/uuid';\nimport { childrenPropType } from '../helpers/propTypes';\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport { getPanelsCount, getTabsCount } from '../helpers/count';\nimport { deepMap } from '../helpers/childrenDeepMap';\n\n// Determine if a node from event.target is a Tab element\nfunction isTabNode(node) {\n return node.nodeName === 'LI' && node.getAttribute('role') === 'tab';\n}\n\n// Determine if a tab node is disabled\nfunction isTabDisabled(node) {\n return node.getAttribute('aria-disabled') === 'true';\n}\n\nconst canUseActiveElement = !!(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.activeElement\n);\n\nexport default class UncontrolledTabs extends Component {\n static defaultProps = {\n className: 'react-tabs',\n focus: false,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n tabNodes = [];\n\n setSelected(index, event) {\n // Don't do anything if nothing has changed\n if (index === this.props.selectedIndex) return;\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n\n // Call change event handler\n this.props.onSelect(index, this.props.selectedIndex, event);\n }\n\n getNextTab(index) {\n const count = this.getTabsCount();\n\n // Look for non-disabled tab from index to the last tab on the right\n for (let i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from first on left to index\n for (let i = 0; i < index; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getPrevTab(index) {\n let i = index;\n\n // Look for non-disabled tab from index to first tab on the left\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from last tab on right to index\n i = this.getTabsCount();\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getTabsCount() {\n return getTabsCount(this.props.children);\n }\n\n getPanelsCount() {\n return getPanelsCount(this.props.children);\n }\n\n getTab(index) {\n return this.tabNodes[`tabs-${index}`];\n }\n\n getChildren() {\n let index = 0;\n const {\n children,\n disabledTabClassName,\n focus,\n forceRenderTabPanel,\n selectedIndex,\n selectedTabClassName,\n selectedTabPanelClassName,\n } = this.props;\n\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n let diff = this.tabIds.length - this.getTabsCount();\n\n // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n while (diff++ < 0) {\n this.tabIds.push(uuid());\n this.panelIds.push(uuid());\n }\n\n // Map children to dynamically setup refs\n return deepMap(children, child => {\n let result = child;\n\n // Clone TabList and Tab components to have refs\n if (child.type === TabList) {\n let listIndex = 0;\n\n // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n let wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = React.Children\n .toArray(child.props.children)\n .filter(tab => tab.type === Tab)\n .some((tab, i) => document.activeElement === this.getTab(i));\n }\n\n result = cloneElement(child, {\n children: deepMap(child.props.children, tab => {\n const key = `tabs-${listIndex}`;\n const selected = selectedIndex === listIndex;\n\n const props = {\n tabRef: node => {\n this.tabNodes[key] = node;\n },\n id: this.tabIds[listIndex],\n panelId: this.panelIds[listIndex],\n selected,\n focus: selected && (focus || wasTabFocused),\n };\n\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n\n listIndex++;\n\n return cloneElement(tab, props);\n }),\n });\n } else if (child.type === TabPanel) {\n const props = {\n id: this.panelIds[index],\n tabId: this.tabIds[index],\n selected: selectedIndex === index,\n };\n\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n\n index++;\n\n result = cloneElement(child, props);\n }\n\n return result;\n });\n }\n\n handleKeyDown = e => {\n if (this.isTabFromContainer(e.target)) {\n let index = this.props.selectedIndex;\n let preventDefault = false;\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n index = this.getPrevTab(index);\n preventDefault = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n index = this.getNextTab(index);\n preventDefault = true;\n }\n\n // This prevents scrollbars from moving around\n if (preventDefault) {\n e.preventDefault();\n }\n\n this.setSelected(index, e);\n }\n };\n\n handleClick = e => {\n let node = e.target;\n // eslint-disable-next-line no-cond-assign\n do {\n if (this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n const index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n this.setSelected(index, e);\n return;\n }\n } while ((node = node.parentNode) !== null);\n };\n\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n }\n\n // Check if the first occurrence of a Tabs container is `this` one.\n let nodeAncestor = node.parentElement;\n do {\n if (nodeAncestor === this.node) return true;\n else if (nodeAncestor.getAttribute('data-tabs')) break;\n\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n }\n\n render() {\n // Delete all known props, so they don't get added to DOM\n const {\n children, // unused\n className,\n disabledTabClassName, // unused\n focus, // unused\n forceRenderTabPanel, // unused\n onSelect, // unused\n selectedIndex, // unused\n selectedTabClassName, // unused\n selectedTabPanelClassName, // unused\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n }}\n data-tabs\n >\n {this.getChildren()}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/UncontrolledTabs.js","import Tabs from './components/Tabs';\nimport TabList from './components/TabList';\nimport Tab from './components/Tab';\nimport TabPanel from './components/TabPanel';\nimport { reset as resetIdCounter } from './helpers/uuid';\n\nexport { Tab, TabList, TabPanel, Tabs, resetIdCounter };\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/react-tabs.min.js b/dist/react-tabs.min.js index 748aa79c4d..0b701a392f 100644 --- a/dist/react-tabs.min.js +++ b/dist/react-tabs.min.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("classnames")):"function"==typeof define&&define.amd?define(["react","classnames"],t):"object"==typeof exports?exports.ReactTabs=t(require("react"),require("classnames")):e.ReactTabs=t(e.React,e.classNames)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var i=n(0),c=r(i),u=n(8),f=r(u),d=n(6),p=function(e){function t(n){a(this,t);var r=s(this,e.call(this,n));return r.handleSelected=function(e,n,o){if("function"!=typeof r.props.onSelect||!1!==r.props.onSelect(e,n,o)){var a={focus:"keydown"===o.type};t.inUncontrolledMode(r.props)&&(a.selectedIndex=e),r.setState(a)}},r.state=t.copyPropsToState(r.props,{},r.props.defaultFocus),r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState(function(n){return t.copyPropsToState(e,n)})},t.inUncontrolledMode=function(e){return null===e.selectedIndex},t.copyPropsToState=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={focus:r};if(t.inUncontrolledMode(e)){var a=(0,d.getTabsCount)(e.children)-1,s=null;s=null!=n.selectedIndex?Math.min(n.selectedIndex,a):e.defaultIndex||0,o.selectedIndex=s}return o},t.prototype.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,o(e,["children","defaultIndex","defaultFocus"]));return n.focus=this.state.focus,n.onSelect=this.handleSelected,null!=this.state.selectedIndex&&(n.selectedIndex=this.state.selectedIndex),c.default.createElement(f.default,n,t)},t}(i.Component);p.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},t.default=p,p.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){return"LI"===e.nodeName&&"tab"===e.getAttribute("role")}function c(e){return"true"===e.getAttribute("aria-disabled")}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t=this.getTabsCount()||this.props.onSelect(e,this.props.selectedIndex,t))},t.prototype.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!c(this.getTab(t)))return t;return e},t.prototype.getTabsCount=function(){return(0,O.getTabsCount)(this.props.children)},t.prototype.getPanelsCount=function(){return(0,O.getPanelsCount)(this.props.children)},t.prototype.getTab=function(e){return this.tabNodes["tabs-"+e]},t.prototype.getChildren=function(){var e=this,t=0,n=this.props,r=n.children,o=n.disabledTabClassName,a=n.focus,s=n.forceRenderTabPanel,l=n.selectedIndex,i=n.selectedTabClassName,c=n.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var u=this.tabIds.length-this.getTabsCount();u++<0;)this.tabIds.push((0,y.default)()),this.panelIds.push((0,y.default)());return d.default.Children.map(r,function(n){if(null===n)return null;var r=n;if(n.type===_.default){var u=0,p=!1;g&&(p=d.default.Children.toArray(n.props.children).filter(function(e){return e.type===v.default}).some(function(t,n){return document.activeElement===e.getTab(n)})),r=(0,f.cloneElement)(n,{children:d.default.Children.map(n.props.children,function(t){if(null===t)return null;if(t.type!==v.default)return t;var n="tabs-"+u,r=l===u,s={tabRef:function(t){e.tabNodes[n]=t},id:e.tabIds[u],panelId:e.panelIds[u],selected:r,focus:r&&(a||p)};return i&&(s.selectedClassName=i),o&&(s.disabledClassName=o),u++,(0,f.cloneElement)(t,s)})})}else if(n.type===w.default){var b={id:e.panelIds[t],tabId:e.tabIds[t],selected:l===t};s&&(b.forceRender=s),c&&(b.selectedClassName=c),t++,r=(0,f.cloneElement)(n,b)}return r})},t.prototype.isTabFromContainer=function(e){if(!i(e))return!1;var t=e.parentElement;do{if(t===this.node)return!0;if(t.getAttribute("data-tabs"))break;t=t.parentElement}while(t);return!1},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.className),r=(t.disabledTabClassName,t.focus,t.forceRenderTabPanel,t.onSelect,t.selectedIndex,t.selectedTabClassName,t.selectedTabPanelClassName,o(t,["children","className","disabledTabClassName","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName"]));return d.default.createElement("div",u({},r,{className:(0,b.default)(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(t){e.node=t},"data-tabs":!0}),this.getChildren())},t}(f.Component);N.defaultProps={className:"react-tabs",focus:!1},t.default=N,N.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.resetIdCounter=t.Tabs=t.TabPanel=t.TabList=t.Tab=void 0;var o=n(7),a=r(o),s=n(3),l=r(s),i=n(2),c=r(i),u=n(4),f=r(u),d=n(5);t.Tab=c.default,t.TabList=l.default,t.TabPanel=f.default,t.Tabs=a.default,t.resetIdCounter=d.reset}])}); +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("classnames")):"function"==typeof define&&define.amd?define(["react","classnames"],t):"object"==typeof exports?exports.ReactTabs=t(require("react"),require("classnames")):e.ReactTabs=t(e.React,e.classNames)}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var c=n(0),u=r(c),i=n(9),f=r(i),p=n(7),d=function(e){function t(n){a(this,t);var r=s(this,e.call(this,n));return r.handleSelected=function(e,n,o){if("function"!=typeof r.props.onSelect||!1!==r.props.onSelect(e,n,o)){var a={focus:"keydown"===o.type};t.inUncontrolledMode(r.props)&&(a.selectedIndex=e),r.setState(a)}},r.state=t.copyPropsToState(r.props,{},r.props.defaultFocus),r}return l(t,e),t.prototype.componentWillReceiveProps=function(e){this.setState(function(n){return t.copyPropsToState(e,n)})},t.inUncontrolledMode=function(e){return null===e.selectedIndex},t.copyPropsToState=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={focus:r};if(t.inUncontrolledMode(e)){var a=(0,p.getTabsCount)(e.children)-1,s=null;s=null!=n.selectedIndex?Math.min(n.selectedIndex,a):e.defaultIndex||0,o.selectedIndex=s}return o},t.prototype.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,o(e,["children","defaultIndex","defaultFocus"]));return n.focus=this.state.focus,n.onSelect=this.handleSelected,null!=this.state.selectedIndex&&(n.selectedIndex=this.state.selectedIndex),u.default.createElement(f.default,n,t)},t}(c.Component);d.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},t.default=d,d.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){return"LI"===e.nodeName&&"tab"===e.getAttribute("role")}function u(e){return"true"===e.getAttribute("aria-disabled")}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t=this.getTabsCount()||this.props.onSelect(e,this.props.selectedIndex,t))},t.prototype.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;ne;)if(!u(this.getTab(t)))return t;return e},t.prototype.getTabsCount=function(){return(0,w.getTabsCount)(this.props.children)},t.prototype.getPanelsCount=function(){return(0,w.getPanelsCount)(this.props.children)},t.prototype.getTab=function(e){return this.tabNodes["tabs-"+e]},t.prototype.getChildren=function(){var e=this,t=0,n=this.props,r=n.children,o=n.disabledTabClassName,a=n.focus,s=n.forceRenderTabPanel,l=n.selectedIndex,c=n.selectedTabClassName,u=n.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var i=this.tabIds.length-this.getTabsCount();i++<0;)this.tabIds.push((0,y.default)()),this.panelIds.push((0,y.default)());return(0,g.deepMap)(r,function(n){var r=n;if(n.type===T.default){var i=0,d=!1;N&&(d=p.default.Children.toArray(n.props.children).filter(function(e){return e.type===v.default}).some(function(t,n){return document.activeElement===e.getTab(n)})),r=(0,f.cloneElement)(n,{children:(0,g.deepMap)(n.props.children,function(t){var n="tabs-"+i,r=l===i,s={tabRef:function(t){e.tabNodes[n]=t},id:e.tabIds[i],panelId:e.panelIds[i],selected:r,focus:r&&(a||d)};return c&&(s.selectedClassName=c),o&&(s.disabledClassName=o),i++,(0,f.cloneElement)(t,s)})})}else if(n.type===O.default){var b={id:e.panelIds[t],tabId:e.tabIds[t],selected:l===t};s&&(b.forceRender=s),u&&(b.selectedClassName=u),t++,r=(0,f.cloneElement)(n,b)}return r})},t.prototype.isTabFromContainer=function(e){if(!c(e))return!1;var t=e.parentElement;do{if(t===this.node)return!0;if(t.getAttribute("data-tabs"))break;t=t.parentElement}while(t);return!1},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.className),r=(t.disabledTabClassName,t.focus,t.forceRenderTabPanel,t.onSelect,t.selectedIndex,t.selectedTabClassName,t.selectedTabPanelClassName,o(t,["children","className","disabledTabClassName","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName"]));return p.default.createElement("div",i({},r,{className:(0,b.default)(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(t){e.node=t},"data-tabs":!0}),this.getChildren())},t}(f.Component);P.defaultProps={className:"react-tabs",focus:!1},t.default=P,P.propTypes={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.resetIdCounter=t.Tabs=t.TabPanel=t.TabList=t.Tab=void 0;var o=n(8),a=r(o),s=n(4),l=r(s),c=n(1),u=r(c),i=n(2),f=r(i),p=n(5);t.Tab=u.default,t.TabList=l.default,t.TabPanel=f.default,t.Tabs=a.default,t.resetIdCounter=p.reset}])}); //# sourceMappingURL=react-tabs.min.js.map \ No newline at end of file diff --git a/dist/react-tabs.min.js.map b/dist/react-tabs.min.js.map index 424797ff47..02e5599273 100644 --- a/dist/react-tabs.min.js.map +++ b/dist/react-tabs.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///react-tabs.min.js","webpack:///webpack/bootstrap e221b4deca86a3b210f1","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}","webpack:///./src/components/Tab.js","webpack:///./src/components/TabList.js","webpack:///./src/components/TabPanel.js","webpack:///./src/helpers/uuid.js","webpack:///./src/helpers/count.js","webpack:///./src/components/Tabs.js","webpack:///./src/components/UncontrolledTabs.js","webpack:///./src/index.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_0__","__WEBPACK_EXTERNAL_MODULE_1__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","_interopRequireDefault","obj","default","_objectWithoutProperties","keys","target","indexOf","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","writable","setPrototypeOf","__proto__","_extends","assign","arguments","length","source","key","_react","_react2","_classnames","_classnames2","Tab","_Component","apply","componentDidMount","checkFocus","componentDidUpdate","props","selected","focus","node","render","_cx","_this2","_props","children","className","disabled","disabledClassName","id","panelId","selectedClassName","tabRef","attributes","createElement","ref","role","aria-selected","aria-disabled","aria-controls","tabIndex","Component","defaultProps","DEFAULT_CLASS","propTypes","TabList","TabPanel","forceRender","tabId","aria-labelledby","style","uuid","count","reset","getTabsCount","tabLists","Children","toArray","filter","x","type","_TabList2","_Tab2","getPanelsCount","_TabPanel2","_TabList","_Tab","_TabPanel","_UncontrolledTabs","_UncontrolledTabs2","_count","Tabs","_this","handleSelected","index","last","event","onSelect","state","inUncontrolledMode","selectedIndex","setState","copyPropsToState","defaultFocus","componentWillReceiveProps","newProps","undefined","newState","maxTabIndex","Math","min","defaultIndex","forceRenderTabPanel","isTabNode","nodeName","getAttribute","isTabDisabled","_uuid","_uuid2","canUseActiveElement","window","document","activeElement","UncontrolledTabs","_temp","_ret","_len","args","Array","_key","concat","tabNodes","handleKeyDown","e","isTabFromContainer","preventDefault","keyCode","getPrevTab","getNextTab","setSelected","handleClick","slice","parentNode","getTab","getChildren","disabledTabClassName","selectedTabClassName","selectedTabPanelClassName","tabIds","panelIds","diff","push","map","child","result","listIndex","wasTabFocused","tab","some","cloneElement","nodeAncestor","parentElement","_this3","_props2","onClick","onKeyDown","data-tabs","resetIdCounter","_Tabs","_Tabs2"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,SAAAA,QAAA,eACA,kBAAAC,gBAAAC,IACAD,QAAA,sBAAAJ,GACA,gBAAAC,SACAA,QAAA,UAAAD,EAAAG,QAAA,SAAAA,QAAA,eAEAJ,EAAA,UAAAC,EAAAD,EAAA,MAAAA,EAAA,aACCO,KAAA,SAAAC,EAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAV,OAGA,IAAAC,GAAAU,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAb,WAUA,OANAQ,GAAAE,GAAAI,KAAAb,EAAAD,QAAAC,IAAAD,QAAAS,GAGAR,EAAAY,GAAA,EAGAZ,EAAAD,QAvBA,GAAAW,KA+DA,OAnCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAG,EAAA,SAAAK,GAA2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8E,EAAOxK,QACtBrC,EWl7BuC2M,eXk7BdlD,EAAM5C","file":"react-tabs.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"classnames\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"classnames\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactTabs\"] = factory(require(\"react\"), require(\"classnames\"));\n\telse\n\t\troot[\"ReactTabs\"] = factory(root[\"React\"], root[\"classNames\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"classnames\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"classnames\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactTabs\"] = factory(require(\"react\"), require(\"classnames\"));\n\telse\n\t\troot[\"ReactTabs\"] = factory(root[\"React\"], root[\"classNames\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 9);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(1);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar DEFAULT_CLASS = 'react-tabs__tab';\n\nvar Tab = function (_Component) {\n _inherits(Tab, _Component);\n\n function Tab() {\n _classCallCheck(this, Tab);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Tab.prototype.componentDidMount = function componentDidMount() {\n this.checkFocus();\n };\n\n Tab.prototype.componentDidUpdate = function componentDidUpdate() {\n this.checkFocus();\n };\n\n Tab.prototype.checkFocus = function checkFocus() {\n if (this.props.selected && this.props.focus) {\n this.node.focus();\n }\n };\n\n Tab.prototype.render = function render() {\n var _cx,\n _this2 = this;\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n disabled = _props.disabled,\n disabledClassName = _props.disabledClassName,\n focus = _props.focus,\n id = _props.id,\n panelId = _props.panelId,\n selected = _props.selected,\n selectedClassName = _props.selectedClassName,\n tabRef = _props.tabRef,\n attributes = _objectWithoutProperties(_props, ['children', 'className', 'disabled', 'disabledClassName', 'focus', 'id', 'panelId', 'selected', 'selectedClassName', 'tabRef']);\n\n return _react2.default.createElement(\n 'li',\n _extends({}, attributes, {\n className: (0, _classnames2.default)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx[disabledClassName] = disabled, _cx)),\n ref: function ref(node) {\n _this2.node = node;\n if (tabRef) tabRef(node);\n },\n role: 'tab',\n id: id,\n 'aria-selected': selected ? 'true' : 'false',\n 'aria-disabled': disabled ? 'true' : 'false',\n 'aria-controls': panelId,\n tabIndex: selected ? '0' : null\n }),\n children\n );\n };\n\n return Tab;\n}(_react.Component);\n\nTab.defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: DEFAULT_CLASS + '--disabled',\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: DEFAULT_CLASS + '--selected'\n};\nexports.default = Tab;\nTab.propTypes = false ? {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n disabledClassName: PropTypes.string, // private\n focus: PropTypes.bool, // private\n id: PropTypes.string, // private\n panelId: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string, // private\n tabRef: PropTypes.func } : {};\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(1);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar TabList = function (_Component) {\n _inherits(TabList, _Component);\n\n function TabList() {\n _classCallCheck(this, TabList);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n TabList.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n attributes = _objectWithoutProperties(_props, ['children', 'className']);\n\n return _react2.default.createElement(\n 'ul',\n _extends({}, attributes, { className: (0, _classnames2.default)(className), role: 'tablist' }),\n children\n );\n };\n\n return TabList;\n}(_react.Component);\n\nTabList.defaultProps = {\n className: 'react-tabs__tab-list'\n};\nexports.default = TabList;\nTabList.propTypes = false ? {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object])\n} : {};\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(1);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nvar TabPanel = function (_Component) {\n _inherits(TabPanel, _Component);\n\n function TabPanel() {\n _classCallCheck(this, TabPanel);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n TabPanel.prototype.render = function render() {\n var _cx;\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n forceRender = _props.forceRender,\n id = _props.id,\n selected = _props.selected,\n selectedClassName = _props.selectedClassName,\n tabId = _props.tabId,\n attributes = _objectWithoutProperties(_props, ['children', 'className', 'forceRender', 'id', 'selected', 'selectedClassName', 'tabId']);\n\n return _react2.default.createElement(\n 'div',\n _extends({}, attributes, {\n className: (0, _classnames2.default)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)),\n role: 'tabpanel',\n id: id,\n 'aria-labelledby': tabId\n }),\n forceRender || selected ? children : null\n );\n };\n\n return TabPanel;\n}(_react.Component);\n\nTabPanel.defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: DEFAULT_CLASS + '--selected',\n style: {}\n};\nexports.default = TabPanel;\nTabPanel.propTypes = false ? {\n selectedClassName: PropTypes.string, // private\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string, // private\n selected: PropTypes.bool, // private\n tabId: PropTypes.string } : {};\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = uuid;\nexports.reset = reset;\n// Get a universally unique identifier\nvar count = 0;\nfunction uuid() {\n return \"react-tabs-\" + count++;\n}\n\nfunction reset() {\n count = 0;\n}\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getTabsCount = getTabsCount;\nexports.getPanelsCount = getPanelsCount;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _TabList = __webpack_require__(3);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _Tab = __webpack_require__(2);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabPanel = __webpack_require__(4);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction getTabsCount(children) {\n var tabLists = _react2.default.Children.toArray(children).filter(function (x) {\n return x.type === _TabList2.default;\n });\n\n if (tabLists[0] && tabLists[0].props.children) {\n return _react2.default.Children.count(_react2.default.Children.toArray(tabLists[0].props.children).filter(function (x) {\n return x.type === _Tab2.default;\n }));\n }\n\n return 0;\n}\n\nfunction getPanelsCount(children) {\n return _react2.default.Children.count(_react2.default.Children.toArray(children).filter(function (x) {\n return x.type === _TabPanel2.default;\n }));\n}\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _UncontrolledTabs = __webpack_require__(8);\n\nvar _UncontrolledTabs2 = _interopRequireDefault(_UncontrolledTabs);\n\nvar _count = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Tabs = function (_Component) {\n _inherits(Tabs, _Component);\n\n function Tabs(props) {\n _classCallCheck(this, Tabs);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.handleSelected = function (index, last, event) {\n // Call change event handler\n if (typeof _this.props.onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (_this.props.onSelect(index, last, event) === false) return;\n }\n\n var state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown'\n };\n\n if (Tabs.inUncontrolledMode(_this.props)) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n _this.setState(state);\n };\n\n _this.state = Tabs.copyPropsToState(_this.props, {}, _this.props.defaultFocus);\n return _this;\n }\n\n Tabs.prototype.componentWillReceiveProps = function componentWillReceiveProps(newProps) {\n if (false) {\n throw new Error('Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\\nFor more information about controlled and uncontrolled mode of react-tabs see the README.');\n }\n // Use a transactional update to prevent race conditions\n // when reading the state in copyPropsToState\n // See https://github.com/reactjs/react-tabs/issues/51\n this.setState(function (state) {\n return Tabs.copyPropsToState(newProps, state);\n });\n };\n\n Tabs.inUncontrolledMode = function inUncontrolledMode(props) {\n return props.selectedIndex === null;\n };\n\n // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n Tabs.copyPropsToState = function copyPropsToState(props, state) {\n var focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var newState = {\n focus: focus\n };\n\n if (Tabs.inUncontrolledMode(props)) {\n var maxTabIndex = (0, _count.getTabsCount)(props.children) - 1;\n var selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n };\n\n Tabs.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n defaultIndex = _props.defaultIndex,\n defaultFocus = _props.defaultFocus,\n props = _objectWithoutProperties(_props, ['children', 'defaultIndex', 'defaultFocus']);\n\n props.focus = this.state.focus;\n props.onSelect = this.handleSelected;\n\n if (this.state.selectedIndex != null) {\n props.selectedIndex = this.state.selectedIndex;\n }\n\n return _react2.default.createElement(\n _UncontrolledTabs2.default,\n props,\n children\n );\n };\n\n return Tabs;\n}(_react.Component);\n\nTabs.defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null\n};\nexports.default = Tabs;\nTabs.propTypes = false ? {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string\n} : {};\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(1);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _uuid = __webpack_require__(5);\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nvar _Tab = __webpack_require__(2);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabList = __webpack_require__(3);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _TabPanel = __webpack_require__(4);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nvar _count = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// Determine if a node from event.target is a Tab element\nfunction isTabNode(node) {\n return node.nodeName === 'LI' && node.getAttribute('role') === 'tab';\n}\n\n// Determine if a tab node is disabled\nfunction isTabDisabled(node) {\n return node.getAttribute('aria-disabled') === 'true';\n}\n\nvar canUseActiveElement = !!(typeof window !== 'undefined' && window.document && window.document.activeElement);\n\nvar UncontrolledTabs = function (_Component) {\n _inherits(UncontrolledTabs, _Component);\n\n function UncontrolledTabs() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, UncontrolledTabs);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.tabNodes = [], _this.handleKeyDown = function (e) {\n if (_this.isTabFromContainer(e.target)) {\n var index = _this.props.selectedIndex;\n var preventDefault = false;\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n index = _this.getPrevTab(index);\n preventDefault = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n index = _this.getNextTab(index);\n preventDefault = true;\n }\n\n // This prevents scrollbars from moving around\n if (preventDefault) {\n e.preventDefault();\n }\n\n _this.setSelected(index, e);\n }\n }, _this.handleClick = function (e) {\n var node = e.target;\n // eslint-disable-next-line no-cond-assign\n do {\n if (_this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n var index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n _this.setSelected(index, e);\n return;\n }\n } while ((node = node.parentNode) !== null);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n UncontrolledTabs.prototype.setSelected = function setSelected(index, event) {\n // Don't do anything if nothing has changed\n if (index === this.props.selectedIndex) return;\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n\n // Call change event handler\n this.props.onSelect(index, this.props.selectedIndex, event);\n };\n\n UncontrolledTabs.prototype.getNextTab = function getNextTab(index) {\n var count = this.getTabsCount();\n\n // Look for non-disabled tab from index to the last tab on the right\n for (var i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from first on left to index\n for (var _i = 0; _i < index; _i++) {\n if (!isTabDisabled(this.getTab(_i))) {\n return _i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n };\n\n UncontrolledTabs.prototype.getPrevTab = function getPrevTab(index) {\n var i = index;\n\n // Look for non-disabled tab from index to first tab on the left\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from last tab on right to index\n i = this.getTabsCount();\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n };\n\n UncontrolledTabs.prototype.getTabsCount = function getTabsCount() {\n return (0, _count.getTabsCount)(this.props.children);\n };\n\n UncontrolledTabs.prototype.getPanelsCount = function getPanelsCount() {\n return (0, _count.getPanelsCount)(this.props.children);\n };\n\n UncontrolledTabs.prototype.getTab = function getTab(index) {\n return this.tabNodes['tabs-' + index];\n };\n\n UncontrolledTabs.prototype.getChildren = function getChildren() {\n var _this2 = this;\n\n var index = 0;\n var _props = this.props,\n children = _props.children,\n disabledTabClassName = _props.disabledTabClassName,\n focus = _props.focus,\n forceRenderTabPanel = _props.forceRenderTabPanel,\n selectedIndex = _props.selectedIndex,\n selectedTabClassName = _props.selectedTabClassName,\n selectedTabPanelClassName = _props.selectedTabPanelClassName;\n\n\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n var diff = this.tabIds.length - this.getTabsCount();\n\n // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n while (diff++ < 0) {\n this.tabIds.push((0, _uuid2.default)());\n this.panelIds.push((0, _uuid2.default)());\n }\n\n // Map children to dynamically setup refs\n return _react2.default.Children.map(children, function (child) {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) {\n return null;\n }\n\n var result = child;\n\n // Clone TabList and Tab components to have refs\n if (child.type === _TabList2.default) {\n var listIndex = 0;\n\n // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n var wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = _react2.default.Children.toArray(child.props.children).filter(function (tab) {\n return tab.type === _Tab2.default;\n }).some(function (tab, i) {\n return document.activeElement === _this2.getTab(i);\n });\n }\n\n result = (0, _react.cloneElement)(child, {\n children: _react2.default.Children.map(child.props.children, function (tab) {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (tab === null) {\n return null;\n }\n\n // Exit early if this is not a tab. That way we can have arbitrary\n // elements anywhere inside \n if (tab.type !== _Tab2.default) return tab;\n\n var key = 'tabs-' + listIndex;\n var selected = selectedIndex === listIndex;\n\n var props = {\n tabRef: function tabRef(node) {\n _this2.tabNodes[key] = node;\n },\n id: _this2.tabIds[listIndex],\n panelId: _this2.panelIds[listIndex],\n selected: selected,\n focus: selected && (focus || wasTabFocused)\n };\n\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n\n listIndex++;\n\n return (0, _react.cloneElement)(tab, props);\n })\n });\n } else if (child.type === _TabPanel2.default) {\n var props = {\n id: _this2.panelIds[index],\n tabId: _this2.tabIds[index],\n selected: selectedIndex === index\n };\n\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n\n index++;\n\n result = (0, _react.cloneElement)(child, props);\n }\n\n return result;\n });\n };\n\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n UncontrolledTabs.prototype.isTabFromContainer = function isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n }\n\n // Check if the first occurrence of a Tabs container is `this` one.\n var nodeAncestor = node.parentElement;\n do {\n if (nodeAncestor === this.node) return true;else if (nodeAncestor.getAttribute('data-tabs')) break;\n\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n };\n\n UncontrolledTabs.prototype.render = function render() {\n var _this3 = this;\n\n // Delete all known props, so they don't get added to DOM\n var _props2 = this.props,\n children = _props2.children,\n className = _props2.className,\n disabledTabClassName = _props2.disabledTabClassName,\n focus = _props2.focus,\n forceRenderTabPanel = _props2.forceRenderTabPanel,\n onSelect = _props2.onSelect,\n selectedIndex = _props2.selectedIndex,\n selectedTabClassName = _props2.selectedTabClassName,\n selectedTabPanelClassName = _props2.selectedTabPanelClassName,\n attributes = _objectWithoutProperties(_props2, ['children', 'className', 'disabledTabClassName', 'focus', 'forceRenderTabPanel', 'onSelect', 'selectedIndex', 'selectedTabClassName', 'selectedTabPanelClassName']);\n\n return _react2.default.createElement(\n 'div',\n _extends({}, attributes, {\n className: (0, _classnames2.default)(className),\n onClick: this.handleClick,\n onKeyDown: this.handleKeyDown,\n ref: function ref(node) {\n _this3.node = node;\n },\n 'data-tabs': true\n }),\n this.getChildren()\n );\n };\n\n return UncontrolledTabs;\n}(_react.Component);\n\nUncontrolledTabs.defaultProps = {\n className: 'react-tabs',\n focus: false\n};\nexports.default = UncontrolledTabs;\nUncontrolledTabs.propTypes = false ? {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string\n} : {};\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.resetIdCounter = exports.Tabs = exports.TabPanel = exports.TabList = exports.Tab = undefined;\n\nvar _Tabs = __webpack_require__(7);\n\nvar _Tabs2 = _interopRequireDefault(_Tabs);\n\nvar _TabList = __webpack_require__(3);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _Tab = __webpack_require__(2);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabPanel = __webpack_require__(4);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nvar _uuid = __webpack_require__(5);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.Tab = _Tab2.default;\nexports.TabList = _TabList2.default;\nexports.TabPanel = _TabPanel2.default;\nexports.Tabs = _Tabs2.default;\nexports.resetIdCounter = _uuid.reset;\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// react-tabs.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 9);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap e221b4deca86a3b210f1","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 0\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}\n// module id = 1\n// module chunks = 0","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab';\n\nexport default class Tab extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: `${DEFAULT_CLASS}--disabled`,\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n disabledClassName: PropTypes.string, // private\n focus: PropTypes.bool, // private\n id: PropTypes.string, // private\n panelId: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string, // private\n tabRef: PropTypes.func, // private\n };\n\n componentDidMount() {\n this.checkFocus();\n }\n\n componentDidUpdate() {\n this.checkFocus();\n }\n\n checkFocus() {\n if (this.props.selected && this.props.focus) {\n this.node.focus();\n }\n }\n\n render() {\n const {\n children,\n className,\n disabled,\n disabledClassName,\n focus, // unused\n id,\n panelId,\n selected,\n selectedClassName,\n tabRef,\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n if (tabRef) tabRef(node);\n }}\n role=\"tab\"\n id={id}\n aria-selected={selected ? 'true' : 'false'}\n aria-disabled={disabled ? 'true' : 'false'}\n aria-controls={panelId}\n tabIndex={selected ? '0' : null}\n >\n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tab.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nexport default class TabList extends Component {\n static defaultProps = {\n className: 'react-tabs__tab-list',\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n };\n\n render() {\n const { children, className, ...attributes } = this.props;\n\n return (\n
    \n {children}\n
\n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabList.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nexport default class TabPanel extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n style: {},\n };\n\n static propTypes = {\n selectedClassName: PropTypes.string, // private\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string, // private\n selected: PropTypes.bool, // private\n tabId: PropTypes.string, // private\n };\n\n render() {\n const {\n children,\n className,\n forceRender,\n id,\n selected,\n selectedClassName,\n tabId,\n ...attributes\n } = this.props;\n\n return (\n \n {forceRender || selected ? children : null}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabPanel.js","// Get a universally unique identifier\nlet count = 0;\nexport default function uuid() {\n return `react-tabs-${count++}`;\n}\n\nexport function reset() {\n count = 0;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/uuid.js","import React from 'react';\nimport TabList from '../components/TabList';\nimport Tab from '../components/Tab';\nimport TabPanel from '../components/TabPanel';\n\nexport function getTabsCount(children) {\n const tabLists = React.Children.toArray(children).filter(x => x.type === TabList);\n\n if (tabLists[0] && tabLists[0].props.children) {\n return React.Children.count(\n React.Children.toArray(tabLists[0].props.children).filter(x => x.type === Tab),\n );\n }\n\n return 0;\n}\n\nexport function getPanelsCount(children) {\n return React.Children.count(React.Children.toArray(children).filter(x => x.type === TabPanel));\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/count.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { childrenPropType, onSelectPropType, selectedIndexPropType } from '../helpers/propTypes';\nimport UncontrolledTabs from './UncontrolledTabs';\nimport { getTabsCount } from '../helpers/count';\n\nexport default class Tabs extends Component {\n static defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n constructor(props) {\n super(props);\n\n this.state = Tabs.copyPropsToState(this.props, {}, this.props.defaultFocus);\n }\n\n componentWillReceiveProps(newProps) {\n if (\n process.env.NODE_ENV !== 'production' &&\n Tabs.inUncontrolledMode(newProps) !== Tabs.inUncontrolledMode(this.props)\n ) {\n throw new Error(\n `Switching between controlled mode (by using \\`selectedIndex\\`) and uncontrolled mode is not supported in \\`Tabs\\`.\nFor more information about controlled and uncontrolled mode of react-tabs see the README.`,\n );\n }\n // Use a transactional update to prevent race conditions\n // when reading the state in copyPropsToState\n // See https://github.com/reactjs/react-tabs/issues/51\n this.setState(state => Tabs.copyPropsToState(newProps, state));\n }\n\n static inUncontrolledMode(props) {\n return props.selectedIndex === null;\n }\n\n handleSelected = (index, last, event) => {\n // Call change event handler\n if (typeof this.props.onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (this.props.onSelect(index, last, event) === false) return;\n }\n\n const state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown',\n };\n\n if (Tabs.inUncontrolledMode(this.props)) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n this.setState(state);\n };\n\n // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n static copyPropsToState(props, state, focus = false) {\n const newState = {\n focus,\n };\n\n if (Tabs.inUncontrolledMode(props)) {\n const maxTabIndex = getTabsCount(props.children) - 1;\n let selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n }\n\n render() {\n const { children, defaultIndex, defaultFocus, ...props } = this.props;\n\n props.focus = this.state.focus;\n props.onSelect = this.handleSelected;\n\n if (this.state.selectedIndex != null) {\n props.selectedIndex = this.state.selectedIndex;\n }\n\n return (\n \n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tabs.js","import PropTypes from 'prop-types';\nimport React, { cloneElement, Component } from 'react';\nimport cx from 'classnames';\nimport uuid from '../helpers/uuid';\nimport { childrenPropType } from '../helpers/propTypes';\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport { getPanelsCount, getTabsCount } from '../helpers/count';\n\n// Determine if a node from event.target is a Tab element\nfunction isTabNode(node) {\n return node.nodeName === 'LI' && node.getAttribute('role') === 'tab';\n}\n\n// Determine if a tab node is disabled\nfunction isTabDisabled(node) {\n return node.getAttribute('aria-disabled') === 'true';\n}\n\nconst canUseActiveElement = !!(typeof window !== 'undefined' &&\n window.document &&\n window.document.activeElement);\n\nexport default class UncontrolledTabs extends Component {\n static defaultProps = {\n className: 'react-tabs',\n focus: false,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n tabNodes = [];\n\n setSelected(index, event) {\n // Don't do anything if nothing has changed\n if (index === this.props.selectedIndex) return;\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n\n // Call change event handler\n this.props.onSelect(index, this.props.selectedIndex, event);\n }\n\n getNextTab(index) {\n const count = this.getTabsCount();\n\n // Look for non-disabled tab from index to the last tab on the right\n for (let i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from first on left to index\n for (let i = 0; i < index; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getPrevTab(index) {\n let i = index;\n\n // Look for non-disabled tab from index to first tab on the left\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from last tab on right to index\n i = this.getTabsCount();\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getTabsCount() {\n return getTabsCount(this.props.children);\n }\n\n getPanelsCount() {\n return getPanelsCount(this.props.children);\n }\n\n getTab(index) {\n return this.tabNodes[`tabs-${index}`];\n }\n\n getChildren() {\n let index = 0;\n const {\n children,\n disabledTabClassName,\n focus,\n forceRenderTabPanel,\n selectedIndex,\n selectedTabClassName,\n selectedTabPanelClassName,\n } = this.props;\n\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n let diff = this.tabIds.length - this.getTabsCount();\n\n // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n while (diff++ < 0) {\n this.tabIds.push(uuid());\n this.panelIds.push(uuid());\n }\n\n // Map children to dynamically setup refs\n return React.Children.map(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) {\n return null;\n }\n\n let result = child;\n\n // Clone TabList and Tab components to have refs\n if (child.type === TabList) {\n let listIndex = 0;\n\n // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n let wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = React.Children\n .toArray(child.props.children)\n .filter(tab => tab.type === Tab)\n .some((tab, i) => document.activeElement === this.getTab(i));\n }\n\n result = cloneElement(child, {\n children: React.Children.map(child.props.children, tab => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (tab === null) {\n return null;\n }\n\n // Exit early if this is not a tab. That way we can have arbitrary\n // elements anywhere inside \n if (tab.type !== Tab) return tab;\n\n const key = `tabs-${listIndex}`;\n const selected = selectedIndex === listIndex;\n\n const props = {\n tabRef: node => {\n this.tabNodes[key] = node;\n },\n id: this.tabIds[listIndex],\n panelId: this.panelIds[listIndex],\n selected,\n focus: selected && (focus || wasTabFocused),\n };\n\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n\n listIndex++;\n\n return cloneElement(tab, props);\n }),\n });\n } else if (child.type === TabPanel) {\n const props = {\n id: this.panelIds[index],\n tabId: this.tabIds[index],\n selected: selectedIndex === index,\n };\n\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n\n index++;\n\n result = cloneElement(child, props);\n }\n\n return result;\n });\n }\n\n handleKeyDown = e => {\n if (this.isTabFromContainer(e.target)) {\n let index = this.props.selectedIndex;\n let preventDefault = false;\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n index = this.getPrevTab(index);\n preventDefault = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n index = this.getNextTab(index);\n preventDefault = true;\n }\n\n // This prevents scrollbars from moving around\n if (preventDefault) {\n e.preventDefault();\n }\n\n this.setSelected(index, e);\n }\n };\n\n handleClick = e => {\n let node = e.target;\n // eslint-disable-next-line no-cond-assign\n do {\n if (this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n const index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n this.setSelected(index, e);\n return;\n }\n } while ((node = node.parentNode) !== null);\n };\n\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n }\n\n // Check if the first occurrence of a Tabs container is `this` one.\n let nodeAncestor = node.parentElement;\n do {\n if (nodeAncestor === this.node) return true;\n else if (nodeAncestor.getAttribute('data-tabs')) break;\n\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n }\n\n render() {\n // Delete all known props, so they don't get added to DOM\n const {\n children, // unused\n className,\n disabledTabClassName, // unused\n focus, // unused\n forceRenderTabPanel, // unused\n onSelect, // unused\n selectedIndex, // unused\n selectedTabClassName, // unused\n selectedTabPanelClassName, // unused\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n }}\n data-tabs\n >\n {this.getChildren()}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/UncontrolledTabs.js","import Tabs from './components/Tabs';\nimport TabList from './components/TabList';\nimport Tab from './components/Tab';\nimport TabPanel from './components/TabPanel';\nimport { reset as resetIdCounter } from './helpers/uuid';\n\nexport { Tab, TabList, TabPanel, Tabs, resetIdCounter };\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///react-tabs.min.js","webpack:///webpack/bootstrap 47a488501f22ac599454","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./src/components/Tab.js","webpack:///./src/components/TabPanel.js","webpack:///external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}","webpack:///./src/components/TabList.js","webpack:///./src/helpers/uuid.js","webpack:///./src/helpers/childrenDeepMap.js","webpack:///./src/helpers/count.js","webpack:///./src/components/Tabs.js","webpack:///./src/components/UncontrolledTabs.js","webpack:///./src/index.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_0__","__WEBPACK_EXTERNAL_MODULE_3__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","_interopRequireDefault","obj","default","_objectWithoutProperties","keys","target","indexOf","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","writable","setPrototypeOf","__proto__","_extends","assign","arguments","length","source","key","_react","_react2","_classnames","_classnames2","Tab","_Component","apply","componentDidMount","checkFocus","componentDidUpdate","props","selected","focus","node","render","_cx","_this2","_props","children","className","disabled","disabledClassName","id","panelId","selectedClassName","tabRef","attributes","createElement","ref","role","aria-selected","aria-disabled","aria-controls","tabIndex","Component","defaultProps","DEFAULT_CLASS","propTypes","TabPanel","forceRender","tabId","aria-labelledby","style","TabList","uuid","count","reset","isTabChild","child","type","_Tab2","_TabList2","_TabPanel2","deepMap","callback","Children","map","_typeof","cloneElement","deepForEach","forEach","Symbol","iterator","_Tab","_TabList","_TabPanel","getTabsCount","tabCount","_childrenDeepMap","getPanelsCount","panelCount","_UncontrolledTabs","_UncontrolledTabs2","_count","Tabs","_this","handleSelected","index","last","event","onSelect","state","inUncontrolledMode","selectedIndex","setState","copyPropsToState","defaultFocus","componentWillReceiveProps","newProps","undefined","newState","maxTabIndex","Math","min","defaultIndex","forceRenderTabPanel","isTabNode","nodeName","getAttribute","isTabDisabled","_uuid","_uuid2","canUseActiveElement","window","document","activeElement","UncontrolledTabs","_temp","_ret","_len","args","Array","_key","concat","tabNodes","handleKeyDown","e","isTabFromContainer","preventDefault","keyCode","getPrevTab","getNextTab","setSelected","handleClick","slice","parentNode","filter","getTab","getChildren","disabledTabClassName","selectedTabClassName","selectedTabPanelClassName","tabIds","panelIds","diff","push","result","listIndex","wasTabFocused","toArray","tab","some","nodeAncestor","parentElement","_this3","_props2","onClick","onKeyDown","data-tabs","resetIdCounter","_T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AuBC,GAAO,MAAOA,IAAOA,EAAIR,WAAaQ,GAAQC,QAASD,GArBvFpC,EAAQ4B,YAAa,EACrB5B,EAAQoN,eAAiBpN,EAAQyI,KAAOzI,EAAQqG,SAAWrG,EAAQ0G,QAAU1G,EAAQmE,QAAMqF,EYl9B3F,IAAA6D,GAAA5M,EAAA,GZs9BI6M,EAASnL,EAAuBkL,GYr9BpCtF,EAAAtH,EAAA,GZy9BIyG,EAAY/E,EAAuB4F,GYx9BvCD,EAAArH,EAAA,GZ49BIwG,EAAQ9E,EAAuB2F,GY39BnCE,EAAAvH,EAAA,GZ+9BI0G,EAAahF,EAAuB6F,GY99BxCmC,EAAA1J,EAAA,EZo+BAT,GYl+BSmE,IZk+BK8C,EAAM5E,QACpBrC,EYn+Bc0G,QZm+BIQ,EAAU7E,QAC5BrC,EYp+BuBqG,SZo+BJc,EAAW9E,QAC9BrC,EYr+BiCyI,KZq+BlB6E,EAAOjL,QACtBrC,EYt+BuCoN,eZs+BdjD,EAAMtD","file":"react-tabs.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"classnames\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"classnames\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactTabs\"] = factory(require(\"react\"), require(\"classnames\"));\n\telse\n\t\troot[\"ReactTabs\"] = factory(root[\"React\"], root[\"classNames\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_3__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"classnames\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"classnames\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactTabs\"] = factory(require(\"react\"), require(\"classnames\"));\n\telse\n\t\troot[\"ReactTabs\"] = factory(root[\"React\"], root[\"classNames\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_3__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 10);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(3);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar DEFAULT_CLASS = 'react-tabs__tab';\n\nvar Tab = function (_Component) {\n _inherits(Tab, _Component);\n\n function Tab() {\n _classCallCheck(this, Tab);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n Tab.prototype.componentDidMount = function componentDidMount() {\n this.checkFocus();\n };\n\n Tab.prototype.componentDidUpdate = function componentDidUpdate() {\n this.checkFocus();\n };\n\n Tab.prototype.checkFocus = function checkFocus() {\n if (this.props.selected && this.props.focus) {\n this.node.focus();\n }\n };\n\n Tab.prototype.render = function render() {\n var _cx,\n _this2 = this;\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n disabled = _props.disabled,\n disabledClassName = _props.disabledClassName,\n focus = _props.focus,\n id = _props.id,\n panelId = _props.panelId,\n selected = _props.selected,\n selectedClassName = _props.selectedClassName,\n tabRef = _props.tabRef,\n attributes = _objectWithoutProperties(_props, ['children', 'className', 'disabled', 'disabledClassName', 'focus', 'id', 'panelId', 'selected', 'selectedClassName', 'tabRef']);\n\n return _react2.default.createElement(\n 'li',\n _extends({}, attributes, {\n className: (0, _classnames2.default)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx[disabledClassName] = disabled, _cx)),\n ref: function ref(node) {\n _this2.node = node;\n if (tabRef) tabRef(node);\n },\n role: 'tab',\n id: id,\n 'aria-selected': selected ? 'true' : 'false',\n 'aria-disabled': disabled ? 'true' : 'false',\n 'aria-controls': panelId,\n tabIndex: selected ? '0' : null\n }),\n children\n );\n };\n\n return Tab;\n}(_react.Component);\n\nTab.defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: DEFAULT_CLASS + '--disabled',\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: DEFAULT_CLASS + '--selected'\n};\nexports.default = Tab;\nTab.propTypes = false ? {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n disabledClassName: PropTypes.string,\n focus: PropTypes.bool, // private\n id: PropTypes.string, // private\n panelId: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string,\n tabRef: PropTypes.func // private\n} : {};\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(3);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nvar TabPanel = function (_Component) {\n _inherits(TabPanel, _Component);\n\n function TabPanel() {\n _classCallCheck(this, TabPanel);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n TabPanel.prototype.render = function render() {\n var _cx;\n\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n forceRender = _props.forceRender,\n id = _props.id,\n selected = _props.selected,\n selectedClassName = _props.selectedClassName,\n tabId = _props.tabId,\n attributes = _objectWithoutProperties(_props, ['children', 'className', 'forceRender', 'id', 'selected', 'selectedClassName', 'tabId']);\n\n return _react2.default.createElement(\n 'div',\n _extends({}, attributes, {\n className: (0, _classnames2.default)(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)),\n role: 'tabpanel',\n id: id,\n 'aria-labelledby': tabId\n }),\n forceRender || selected ? children : null\n );\n };\n\n return TabPanel;\n}(_react.Component);\n\nTabPanel.defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: DEFAULT_CLASS + '--selected',\n style: {}\n};\nexports.default = TabPanel;\nTabPanel.propTypes = false ? {\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string,\n tabId: PropTypes.string // private\n} : {};\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(3);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar TabList = function (_Component) {\n _inherits(TabList, _Component);\n\n function TabList() {\n _classCallCheck(this, TabList);\n\n return _possibleConstructorReturn(this, _Component.apply(this, arguments));\n }\n\n TabList.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n className = _props.className,\n attributes = _objectWithoutProperties(_props, ['children', 'className']);\n\n return _react2.default.createElement(\n 'ul',\n _extends({}, attributes, { className: (0, _classnames2.default)(className), role: 'tablist' }),\n children\n );\n };\n\n return TabList;\n}(_react.Component);\n\nTabList.defaultProps = {\n className: 'react-tabs__tab-list'\n};\nexports.default = TabList;\nTabList.propTypes = false ? {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object])\n} : {};\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.default = uuid;\nexports.reset = reset;\n// Get a universally unique identifier\nvar count = 0;\nfunction uuid() {\n return \"react-tabs-\" + count++;\n}\n\nfunction reset() {\n count = 0;\n}\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.deepMap = deepMap;\nexports.deepForEach = deepForEach;\n\nvar _react = __webpack_require__(0);\n\nvar _Tab = __webpack_require__(1);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabList = __webpack_require__(4);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _TabPanel = __webpack_require__(2);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction isTabChild(child) {\n return child.type === _Tab2.default || child.type === _TabList2.default || child.type === _TabPanel2.default;\n}\n\nfunction deepMap(children, callback) {\n return _react.Children.map(children, function (child) {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return null;\n\n if (isTabChild(child)) {\n return callback(child);\n }\n\n if (child.props && child.props.children && _typeof(child.props.children) === 'object') {\n // Clone the child that has children and map them too\n return (0, _react.cloneElement)(child, _extends({}, child.props, {\n children: deepMap(child.props.children, callback)\n }));\n }\n\n return child;\n });\n}\n\nfunction deepForEach(children, callback) {\n return _react.Children.forEach(children, function (child) {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return;\n\n if (child.type === _Tab2.default || child.type === _TabPanel2.default) {\n callback(child);\n } else if (child.props && child.props.children && _typeof(child.props.children) === 'object') {\n if (child.type === _TabList2.default) callback(child);\n deepForEach(child.props.children, callback);\n }\n });\n}\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.getTabsCount = getTabsCount;\nexports.getPanelsCount = getPanelsCount;\n\nvar _childrenDeepMap = __webpack_require__(6);\n\nvar _Tab = __webpack_require__(1);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabPanel = __webpack_require__(2);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction getTabsCount(children) {\n var tabCount = 0;\n (0, _childrenDeepMap.deepForEach)(children, function (child) {\n if (child.type === _Tab2.default) tabCount++;\n });\n\n return tabCount;\n}\n\nfunction getPanelsCount(children) {\n var panelCount = 0;\n (0, _childrenDeepMap.deepForEach)(children, function (child) {\n if (child.type === _TabPanel2.default) panelCount++;\n });\n\n return panelCount;\n}\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _UncontrolledTabs = __webpack_require__(9);\n\nvar _UncontrolledTabs2 = _interopRequireDefault(_UncontrolledTabs);\n\nvar _count = __webpack_require__(7);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Tabs = function (_Component) {\n _inherits(Tabs, _Component);\n\n function Tabs(props) {\n _classCallCheck(this, Tabs);\n\n var _this = _possibleConstructorReturn(this, _Component.call(this, props));\n\n _this.handleSelected = function (index, last, event) {\n // Call change event handler\n if (typeof _this.props.onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (_this.props.onSelect(index, last, event) === false) return;\n }\n\n var state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown'\n };\n\n if (Tabs.inUncontrolledMode(_this.props)) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n _this.setState(state);\n };\n\n _this.state = Tabs.copyPropsToState(_this.props, {}, _this.props.defaultFocus);\n return _this;\n }\n\n Tabs.prototype.componentWillReceiveProps = function componentWillReceiveProps(newProps) {\n if (false) {\n throw new Error('Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\\nFor more information about controlled and uncontrolled mode of react-tabs see the README.');\n }\n // Use a transactional update to prevent race conditions\n // when reading the state in copyPropsToState\n // See https://github.com/reactjs/react-tabs/issues/51\n this.setState(function (state) {\n return Tabs.copyPropsToState(newProps, state);\n });\n };\n\n Tabs.inUncontrolledMode = function inUncontrolledMode(props) {\n return props.selectedIndex === null;\n };\n\n // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n Tabs.copyPropsToState = function copyPropsToState(props, state) {\n var focus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var newState = {\n focus: focus\n };\n\n if (Tabs.inUncontrolledMode(props)) {\n var maxTabIndex = (0, _count.getTabsCount)(props.children) - 1;\n var selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n };\n\n Tabs.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n defaultIndex = _props.defaultIndex,\n defaultFocus = _props.defaultFocus,\n props = _objectWithoutProperties(_props, ['children', 'defaultIndex', 'defaultFocus']);\n\n props.focus = this.state.focus;\n props.onSelect = this.handleSelected;\n\n if (this.state.selectedIndex != null) {\n props.selectedIndex = this.state.selectedIndex;\n }\n\n return _react2.default.createElement(\n _UncontrolledTabs2.default,\n props,\n children\n );\n };\n\n return Tabs;\n}(_react.Component);\n\nTabs.defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null\n};\nexports.default = Tabs;\nTabs.propTypes = false ? {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string\n} : {};\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _classnames = __webpack_require__(3);\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _uuid = __webpack_require__(5);\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nvar _Tab = __webpack_require__(1);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabList = __webpack_require__(4);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _TabPanel = __webpack_require__(2);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nvar _count = __webpack_require__(7);\n\nvar _childrenDeepMap = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// Determine if a node from event.target is a Tab element\nfunction isTabNode(node) {\n return node.nodeName === 'LI' && node.getAttribute('role') === 'tab';\n}\n\n// Determine if a tab node is disabled\nfunction isTabDisabled(node) {\n return node.getAttribute('aria-disabled') === 'true';\n}\n\nvar canUseActiveElement = !!(typeof window !== 'undefined' && window.document && window.document.activeElement);\n\nvar UncontrolledTabs = function (_Component) {\n _inherits(UncontrolledTabs, _Component);\n\n function UncontrolledTabs() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, UncontrolledTabs);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.tabNodes = [], _this.handleKeyDown = function (e) {\n if (_this.isTabFromContainer(e.target)) {\n var index = _this.props.selectedIndex;\n var preventDefault = false;\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n index = _this.getPrevTab(index);\n preventDefault = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n index = _this.getNextTab(index);\n preventDefault = true;\n }\n\n // This prevents scrollbars from moving around\n if (preventDefault) {\n e.preventDefault();\n }\n\n _this.setSelected(index, e);\n }\n }, _this.handleClick = function (e) {\n var node = e.target;\n // eslint-disable-next-line no-cond-assign\n do {\n if (_this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n var index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n _this.setSelected(index, e);\n return;\n }\n } while ((node = node.parentNode) !== null);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n UncontrolledTabs.prototype.setSelected = function setSelected(index, event) {\n // Don't do anything if nothing has changed\n if (index === this.props.selectedIndex) return;\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n\n // Call change event handler\n this.props.onSelect(index, this.props.selectedIndex, event);\n };\n\n UncontrolledTabs.prototype.getNextTab = function getNextTab(index) {\n var count = this.getTabsCount();\n\n // Look for non-disabled tab from index to the last tab on the right\n for (var i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from first on left to index\n for (var _i = 0; _i < index; _i++) {\n if (!isTabDisabled(this.getTab(_i))) {\n return _i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n };\n\n UncontrolledTabs.prototype.getPrevTab = function getPrevTab(index) {\n var i = index;\n\n // Look for non-disabled tab from index to first tab on the left\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from last tab on right to index\n i = this.getTabsCount();\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n };\n\n UncontrolledTabs.prototype.getTabsCount = function getTabsCount() {\n return (0, _count.getTabsCount)(this.props.children);\n };\n\n UncontrolledTabs.prototype.getPanelsCount = function getPanelsCount() {\n return (0, _count.getPanelsCount)(this.props.children);\n };\n\n UncontrolledTabs.prototype.getTab = function getTab(index) {\n return this.tabNodes['tabs-' + index];\n };\n\n UncontrolledTabs.prototype.getChildren = function getChildren() {\n var _this2 = this;\n\n var index = 0;\n var _props = this.props,\n children = _props.children,\n disabledTabClassName = _props.disabledTabClassName,\n focus = _props.focus,\n forceRenderTabPanel = _props.forceRenderTabPanel,\n selectedIndex = _props.selectedIndex,\n selectedTabClassName = _props.selectedTabClassName,\n selectedTabPanelClassName = _props.selectedTabPanelClassName;\n\n\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n var diff = this.tabIds.length - this.getTabsCount();\n\n // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n while (diff++ < 0) {\n this.tabIds.push((0, _uuid2.default)());\n this.panelIds.push((0, _uuid2.default)());\n }\n\n // Map children to dynamically setup refs\n return (0, _childrenDeepMap.deepMap)(children, function (child) {\n var result = child;\n\n // Clone TabList and Tab components to have refs\n if (child.type === _TabList2.default) {\n var listIndex = 0;\n\n // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n var wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = _react2.default.Children.toArray(child.props.children).filter(function (tab) {\n return tab.type === _Tab2.default;\n }).some(function (tab, i) {\n return document.activeElement === _this2.getTab(i);\n });\n }\n\n result = (0, _react.cloneElement)(child, {\n children: (0, _childrenDeepMap.deepMap)(child.props.children, function (tab) {\n var key = 'tabs-' + listIndex;\n var selected = selectedIndex === listIndex;\n\n var props = {\n tabRef: function tabRef(node) {\n _this2.tabNodes[key] = node;\n },\n id: _this2.tabIds[listIndex],\n panelId: _this2.panelIds[listIndex],\n selected: selected,\n focus: selected && (focus || wasTabFocused)\n };\n\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n\n listIndex++;\n\n return (0, _react.cloneElement)(tab, props);\n })\n });\n } else if (child.type === _TabPanel2.default) {\n var props = {\n id: _this2.panelIds[index],\n tabId: _this2.tabIds[index],\n selected: selectedIndex === index\n };\n\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n\n index++;\n\n result = (0, _react.cloneElement)(child, props);\n }\n\n return result;\n });\n };\n\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n UncontrolledTabs.prototype.isTabFromContainer = function isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n }\n\n // Check if the first occurrence of a Tabs container is `this` one.\n var nodeAncestor = node.parentElement;\n do {\n if (nodeAncestor === this.node) return true;else if (nodeAncestor.getAttribute('data-tabs')) break;\n\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n };\n\n UncontrolledTabs.prototype.render = function render() {\n var _this3 = this;\n\n // Delete all known props, so they don't get added to DOM\n var _props2 = this.props,\n children = _props2.children,\n className = _props2.className,\n disabledTabClassName = _props2.disabledTabClassName,\n focus = _props2.focus,\n forceRenderTabPanel = _props2.forceRenderTabPanel,\n onSelect = _props2.onSelect,\n selectedIndex = _props2.selectedIndex,\n selectedTabClassName = _props2.selectedTabClassName,\n selectedTabPanelClassName = _props2.selectedTabPanelClassName,\n attributes = _objectWithoutProperties(_props2, ['children', 'className', 'disabledTabClassName', 'focus', 'forceRenderTabPanel', 'onSelect', 'selectedIndex', 'selectedTabClassName', 'selectedTabPanelClassName']);\n\n return _react2.default.createElement(\n 'div',\n _extends({}, attributes, {\n className: (0, _classnames2.default)(className),\n onClick: this.handleClick,\n onKeyDown: this.handleKeyDown,\n ref: function ref(node) {\n _this3.node = node;\n },\n 'data-tabs': true\n }),\n this.getChildren()\n );\n };\n\n return UncontrolledTabs;\n}(_react.Component);\n\nUncontrolledTabs.defaultProps = {\n className: 'react-tabs',\n focus: false\n};\nexports.default = UncontrolledTabs;\nUncontrolledTabs.propTypes = false ? {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string\n} : {};\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nexports.__esModule = true;\nexports.resetIdCounter = exports.Tabs = exports.TabPanel = exports.TabList = exports.Tab = undefined;\n\nvar _Tabs = __webpack_require__(8);\n\nvar _Tabs2 = _interopRequireDefault(_Tabs);\n\nvar _TabList = __webpack_require__(4);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _Tab = __webpack_require__(1);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabPanel = __webpack_require__(2);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nvar _uuid = __webpack_require__(5);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.Tab = _Tab2.default;\nexports.TabList = _TabList2.default;\nexports.TabPanel = _TabPanel2.default;\nexports.Tabs = _Tabs2.default;\nexports.resetIdCounter = _uuid.reset;\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// react-tabs.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 10);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 47a488501f22ac599454","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 0\n// module chunks = 0","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab';\n\nexport default class Tab extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: `${DEFAULT_CLASS}--disabled`,\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n disabledClassName: PropTypes.string,\n focus: PropTypes.bool, // private\n id: PropTypes.string, // private\n panelId: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string,\n tabRef: PropTypes.func, // private\n };\n\n componentDidMount() {\n this.checkFocus();\n }\n\n componentDidUpdate() {\n this.checkFocus();\n }\n\n checkFocus() {\n if (this.props.selected && this.props.focus) {\n this.node.focus();\n }\n }\n\n render() {\n const {\n children,\n className,\n disabled,\n disabledClassName,\n focus, // unused\n id,\n panelId,\n selected,\n selectedClassName,\n tabRef,\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n if (tabRef) tabRef(node);\n }}\n role=\"tab\"\n id={id}\n aria-selected={selected ? 'true' : 'false'}\n aria-disabled={disabled ? 'true' : 'false'}\n aria-controls={panelId}\n tabIndex={selected ? '0' : null}\n >\n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tab.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nconst DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nexport default class TabPanel extends Component {\n static defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: `${DEFAULT_CLASS}--selected`,\n style: {},\n };\n\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string, // private\n selected: PropTypes.bool, // private\n selectedClassName: PropTypes.string,\n tabId: PropTypes.string, // private\n };\n\n render() {\n const {\n children,\n className,\n forceRender,\n id,\n selected,\n selectedClassName,\n tabId,\n ...attributes\n } = this.props;\n\n return (\n \n {forceRender || selected ? children : null}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabPanel.js","module.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}\n// module id = 3\n// module chunks = 0","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nexport default class TabList extends Component {\n static defaultProps = {\n className: 'react-tabs__tab-list',\n };\n\n static propTypes = {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n };\n\n render() {\n const { children, className, ...attributes } = this.props;\n\n return (\n
    \n {children}\n
\n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabList.js","// Get a universally unique identifier\nlet count = 0;\nexport default function uuid() {\n return `react-tabs-${count++}`;\n}\n\nexport function reset() {\n count = 0;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/uuid.js","import { Children, cloneElement } from 'react';\nimport Tab from '../components/Tab';\nimport TabList from '../components/TabList';\nimport TabPanel from '../components/TabPanel';\n\nfunction isTabChild(child) {\n return child.type === Tab || child.type === TabList || child.type === TabPanel;\n}\n\nexport function deepMap(children, callback) {\n return Children.map(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return null;\n\n if (isTabChild(child)) {\n return callback(child);\n }\n\n if (child.props && child.props.children && typeof child.props.children === 'object') {\n // Clone the child that has children and map them too\n return cloneElement(child, {\n ...child.props,\n children: deepMap(child.props.children, callback),\n });\n }\n\n return child;\n });\n}\n\nexport function deepForEach(children, callback) {\n return Children.forEach(children, child => {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return;\n\n if (child.type === Tab || child.type === TabPanel) {\n callback(child);\n } else if (child.props && child.props.children && typeof child.props.children === 'object') {\n if (child.type === TabList) callback(child);\n deepForEach(child.props.children, callback);\n }\n });\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/childrenDeepMap.js","import { deepForEach } from '../helpers/childrenDeepMap';\nimport Tab from '../components/Tab';\nimport TabPanel from '../components/TabPanel';\n\nexport function getTabsCount(children) {\n let tabCount = 0;\n deepForEach(children, child => {\n if (child.type === Tab) tabCount++;\n });\n\n return tabCount;\n}\n\nexport function getPanelsCount(children) {\n let panelCount = 0;\n deepForEach(children, child => {\n if (child.type === TabPanel) panelCount++;\n });\n\n return panelCount;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/count.js","import PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { childrenPropType, onSelectPropType, selectedIndexPropType } from '../helpers/propTypes';\nimport UncontrolledTabs from './UncontrolledTabs';\nimport { getTabsCount } from '../helpers/count';\n\nexport default class Tabs extends Component {\n static defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n constructor(props) {\n super(props);\n\n this.state = Tabs.copyPropsToState(this.props, {}, this.props.defaultFocus);\n }\n\n componentWillReceiveProps(newProps) {\n if (\n process.env.NODE_ENV !== 'production' &&\n Tabs.inUncontrolledMode(newProps) !== Tabs.inUncontrolledMode(this.props)\n ) {\n throw new Error(\n `Switching between controlled mode (by using \\`selectedIndex\\`) and uncontrolled mode is not supported in \\`Tabs\\`.\nFor more information about controlled and uncontrolled mode of react-tabs see the README.`,\n );\n }\n // Use a transactional update to prevent race conditions\n // when reading the state in copyPropsToState\n // See https://github.com/reactjs/react-tabs/issues/51\n this.setState(state => Tabs.copyPropsToState(newProps, state));\n }\n\n static inUncontrolledMode(props) {\n return props.selectedIndex === null;\n }\n\n handleSelected = (index, last, event) => {\n // Call change event handler\n if (typeof this.props.onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (this.props.onSelect(index, last, event) === false) return;\n }\n\n const state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown',\n };\n\n if (Tabs.inUncontrolledMode(this.props)) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n this.setState(state);\n };\n\n // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n static copyPropsToState(props, state, focus = false) {\n const newState = {\n focus,\n };\n\n if (Tabs.inUncontrolledMode(props)) {\n const maxTabIndex = getTabsCount(props.children) - 1;\n let selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n }\n\n render() {\n const { children, defaultIndex, defaultFocus, ...props } = this.props;\n\n props.focus = this.state.focus;\n props.onSelect = this.handleSelected;\n\n if (this.state.selectedIndex != null) {\n props.selectedIndex = this.state.selectedIndex;\n }\n\n return (\n \n {children}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Tabs.js","import PropTypes from 'prop-types';\nimport React, { cloneElement, Component } from 'react';\nimport cx from 'classnames';\nimport uuid from '../helpers/uuid';\nimport { childrenPropType } from '../helpers/propTypes';\nimport Tab from './Tab';\nimport TabList from './TabList';\nimport TabPanel from './TabPanel';\nimport { getPanelsCount, getTabsCount } from '../helpers/count';\nimport { deepMap } from '../helpers/childrenDeepMap';\n\n// Determine if a node from event.target is a Tab element\nfunction isTabNode(node) {\n return node.nodeName === 'LI' && node.getAttribute('role') === 'tab';\n}\n\n// Determine if a tab node is disabled\nfunction isTabDisabled(node) {\n return node.getAttribute('aria-disabled') === 'true';\n}\n\nconst canUseActiveElement = !!(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.activeElement\n);\n\nexport default class UncontrolledTabs extends Component {\n static defaultProps = {\n className: 'react-tabs',\n focus: false,\n };\n\n static propTypes = {\n children: childrenPropType,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string,\n };\n\n tabNodes = [];\n\n setSelected(index, event) {\n // Don't do anything if nothing has changed\n if (index === this.props.selectedIndex) return;\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n\n // Call change event handler\n this.props.onSelect(index, this.props.selectedIndex, event);\n }\n\n getNextTab(index) {\n const count = this.getTabsCount();\n\n // Look for non-disabled tab from index to the last tab on the right\n for (let i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from first on left to index\n for (let i = 0; i < index; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getPrevTab(index) {\n let i = index;\n\n // Look for non-disabled tab from index to first tab on the left\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // If no tab found, continue searching from last tab on right to index\n i = this.getTabsCount();\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n // No tabs are disabled, return index\n return index;\n }\n\n getTabsCount() {\n return getTabsCount(this.props.children);\n }\n\n getPanelsCount() {\n return getPanelsCount(this.props.children);\n }\n\n getTab(index) {\n return this.tabNodes[`tabs-${index}`];\n }\n\n getChildren() {\n let index = 0;\n const {\n children,\n disabledTabClassName,\n focus,\n forceRenderTabPanel,\n selectedIndex,\n selectedTabClassName,\n selectedTabPanelClassName,\n } = this.props;\n\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n let diff = this.tabIds.length - this.getTabsCount();\n\n // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n while (diff++ < 0) {\n this.tabIds.push(uuid());\n this.panelIds.push(uuid());\n }\n\n // Map children to dynamically setup refs\n return deepMap(children, child => {\n let result = child;\n\n // Clone TabList and Tab components to have refs\n if (child.type === TabList) {\n let listIndex = 0;\n\n // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n let wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = React.Children\n .toArray(child.props.children)\n .filter(tab => tab.type === Tab)\n .some((tab, i) => document.activeElement === this.getTab(i));\n }\n\n result = cloneElement(child, {\n children: deepMap(child.props.children, tab => {\n const key = `tabs-${listIndex}`;\n const selected = selectedIndex === listIndex;\n\n const props = {\n tabRef: node => {\n this.tabNodes[key] = node;\n },\n id: this.tabIds[listIndex],\n panelId: this.panelIds[listIndex],\n selected,\n focus: selected && (focus || wasTabFocused),\n };\n\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n\n listIndex++;\n\n return cloneElement(tab, props);\n }),\n });\n } else if (child.type === TabPanel) {\n const props = {\n id: this.panelIds[index],\n tabId: this.tabIds[index],\n selected: selectedIndex === index,\n };\n\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n\n index++;\n\n result = cloneElement(child, props);\n }\n\n return result;\n });\n }\n\n handleKeyDown = e => {\n if (this.isTabFromContainer(e.target)) {\n let index = this.props.selectedIndex;\n let preventDefault = false;\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n index = this.getPrevTab(index);\n preventDefault = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n index = this.getNextTab(index);\n preventDefault = true;\n }\n\n // This prevents scrollbars from moving around\n if (preventDefault) {\n e.preventDefault();\n }\n\n this.setSelected(index, e);\n }\n };\n\n handleClick = e => {\n let node = e.target;\n // eslint-disable-next-line no-cond-assign\n do {\n if (this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n const index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n this.setSelected(index, e);\n return;\n }\n } while ((node = node.parentNode) !== null);\n };\n\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n }\n\n // Check if the first occurrence of a Tabs container is `this` one.\n let nodeAncestor = node.parentElement;\n do {\n if (nodeAncestor === this.node) return true;\n else if (nodeAncestor.getAttribute('data-tabs')) break;\n\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n }\n\n render() {\n // Delete all known props, so they don't get added to DOM\n const {\n children, // unused\n className,\n disabledTabClassName, // unused\n focus, // unused\n forceRenderTabPanel, // unused\n onSelect, // unused\n selectedIndex, // unused\n selectedTabClassName, // unused\n selectedTabPanelClassName, // unused\n ...attributes\n } = this.props;\n\n return (\n {\n this.node = node;\n }}\n data-tabs\n >\n {this.getChildren()}\n \n );\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/UncontrolledTabs.js","import Tabs from './components/Tabs';\nimport TabList from './components/TabList';\nimport Tab from './components/Tab';\nimport TabPanel from './components/TabPanel';\nimport { reset as resetIdCounter } from './helpers/uuid';\n\nexport { Tab, TabList, TabPanel, Tabs, resetIdCounter };\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js"],"sourceRoot":""} \ No newline at end of file