From c22ebc8c7ccb7366418641e64317120ffeabf528 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Tue, 5 Sep 2017 22:49:00 +0200 Subject: [PATCH] chore(release): 2.0.0 --- CHANGELOG.md | 21 ++ dist/react-tabs.js | 668 ++++++++++++++++++------------------- dist/react-tabs.js.map | 2 +- dist/react-tabs.min.js | 2 +- dist/react-tabs.min.js.map | 2 +- package.json | 24 +- 6 files changed, 377 insertions(+), 342 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5674b8a79..83d0870494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,27 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +# [2.0.0](https://github.com/reactjs/react-tabs/compare/v1.1.0...v2.0.0) (2017-09-05) + + +### Bug Fixes + +* **tabs:** Fix activeElement check [#193](https://github.com/reactjs/react-tabs/issues/193) ([#194](https://github.com/reactjs/react-tabs/issues/194)) ([722d52f](https://github.com/reactjs/react-tabs/commit/722d52f)) + + +### Features + +* **tabs:** Allow for higher order components ([#196](https://github.com/reactjs/react-tabs/issues/196)) ([1969e65](https://github.com/reactjs/react-tabs/commit/1969e65)) +* **tabs:** Always callback setSelected. ([#195](https://github.com/reactjs/react-tabs/issues/195)) ([bc1910a](https://github.com/reactjs/react-tabs/commit/bc1910a)) + + +### BREAKING CHANGES + +* **tabs:** The `onSelect` callback will now also be called when clicking on the currently active tab. + + + ## [1.1.0](https://github.com/researchgate/node-package-blueprint/compare/v1.0.0...v1.1.0) (2017-06-13) diff --git a/dist/react-tabs.js b/dist/react-tabs.js index bcd9fddcb6..bc27872351 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_3__, __WEBPACK_EXTERNAL_MODULE_5__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_3__) { 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 = 12); +/******/ return __webpack_require__(__webpack_require__.s = 13); /******/ }) /************************************************************************/ /******/ ([ @@ -84,6 +84,41 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_0__; /***/ }), /* 1 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_1__; + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.isTab = isTab; +exports.isTabPanel = isTabPanel; +exports.isTabList = isTabList; +function isTab(el) { + return el.type.tabsRole === 'Tab'; +} + +function isTabPanel(el) { + return el.type.tabsRole === 'TabPanel'; +} + +function isTabList(el) { + return el.type.tabsRole === 'TabList'; +} + +/***/ }), +/* 3 */ +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE_3__; + +/***/ }), +/* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -93,7 +128,205 @@ 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__(3); +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 _elementTypes = __webpack_require__(2); + +function isTabChild(child) { + return (0, _elementTypes.isTab)(child) || (0, _elementTypes.isTabList)(child) || (0, _elementTypes.isTabPanel)(child); +} + +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 ((0, _elementTypes.isTab)(child) || (0, _elementTypes.isTabPanel)(child)) { + callback(child); + } else if (child.props && child.props.children && _typeof(child.props.children) === 'object') { + if ((0, _elementTypes.isTabList)(child)) callback(child); + deepForEach(child.props.children, callback); + } + }); +} + +/***/ }), +/* 5 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.default = uuid; +exports.reset = reset; +// Get a universally unique identifier +var count = 0; +function uuid() { + return "react-tabs-" + count++; +} + +function reset() { + count = 0; +} + +/***/ }), +/* 6 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; +exports.getTabsCount = getTabsCount; +exports.getPanelsCount = getPanelsCount; + +var _childrenDeepMap = __webpack_require__(4); + +var _elementTypes = __webpack_require__(2); + +function getTabsCount(children) { + var tabCount = 0; + (0, _childrenDeepMap.deepForEach)(children, function (child) { + if ((0, _elementTypes.isTab)(child)) tabCount++; + }); + + return tabCount; +} + +function getPanelsCount(children) { + var panelCount = 0; + (0, _childrenDeepMap.deepForEach)(children, function (child) { + if ((0, _elementTypes.isTabPanel)(child)) panelCount++; + }); + + return panelCount; +} + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +exports.__esModule = true; + +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.childrenPropType = childrenPropType; +exports.onSelectPropType = onSelectPropType; +exports.selectedIndexPropType = selectedIndexPropType; + +var _childrenDeepMap = __webpack_require__(4); + +var _elementTypes = __webpack_require__(2); + +function childrenPropType(props, propName, componentName) { + var error = void 0; + var tabsCount = 0; + var panelsCount = 0; + var tabListFound = false; + var listTabs = []; + var children = props[propName]; + + (0, _childrenDeepMap.deepForEach)(children, function (child) { + if ((0, _elementTypes.isTabList)(child)) { + if (child.props && child.props.children && _typeof(child.props.children) === 'object') { + (0, _childrenDeepMap.deepForEach)(child.props.children, function (listChild) { + return listTabs.push(listChild); + }); + } + + if (tabListFound) { + error = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed."); + } + tabListFound = true; + } + if ((0, _elementTypes.isTab)(child)) { + 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 ((0, _elementTypes.isTabPanel)(child)) { + 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\'.')); + } + + return error; +} + +function onSelectPropType(props, propName, componentName, location, propFullName) { + var prop = props[propName]; + var name = propFullName || propName; + var error = null; + + if (prop && typeof prop !== 'function') { + error = new Error('Invalid ' + location + ' `' + name + '` of type `' + (typeof prop === 'undefined' ? 'undefined' : _typeof(prop)) + '` supplied to `' + componentName + '`, expected `function`.'); + } else if (props.selectedIndex != null && prop == null) { + error = new Error('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`.'); + } + + return error; +} + +function selectedIndexPropType(props, propName, componentName, location, propFullName) { + var prop = props[propName]; + var name = propFullName || propName; + var error = null; + + if (prop != null && typeof prop !== 'number') { + error = new Error('Invalid ' + location + ' `' + name + '` of type `' + (typeof prop === 'undefined' ? 'undefined' : _typeof(prop)) + '` supplied to `' + componentName + '`, expected `number`.'); + } else if (props.defaultIndex != null && prop != null) { + return new Error('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.'); + } + + return error; +} + +/***/ }), +/* 8 */ +/***/ (function(module, exports, __webpack_require__) { + +"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 _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -101,7 +334,7 @@ var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); -var _classnames = __webpack_require__(5); +var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); @@ -202,103 +435,11 @@ Tab.propTypes = true ? { tabRef: _propTypes2.default.func // private } : {}; -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -"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 _propTypes = __webpack_require__(3); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _react = __webpack_require__(0); - -var _react2 = _interopRequireDefault(_react); - -var _classnames = __webpack_require__(5); - -var _classnames2 = _interopRequireDefault(_classnames); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _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; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _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; } - -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); - - function TabPanel() { - _classCallCheck(this, TabPanel); - - return _possibleConstructorReturn(this, _Component.apply(this, arguments)); - } - - TabPanel.prototype.render = function render() { - var _cx; - - 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']); - - 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 - ); - }; - - return TabPanel; -}(_react.Component); - -TabPanel.defaultProps = { - className: DEFAULT_CLASS, - forceRender: false, - selectedClassName: DEFAULT_CLASS + '--selected', - style: {} -}; -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__; +Tab.tabsRole = 'Tab'; /***/ }), -/* 4 */ +/* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -308,7 +449,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__(3); +var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -316,7 +457,7 @@ var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); -var _classnames = __webpack_require__(5); +var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); @@ -364,14 +505,11 @@ TabList.propTypes = true ? { className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]) } : {}; -/***/ }), -/* 5 */ -/***/ (function(module, exports) { -module.exports = __WEBPACK_EXTERNAL_MODULE_5__; +TabList.tabsRole = 'TabList'; /***/ }), -/* 6 */ +/* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -381,227 +519,89 @@ 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; }; +var _propTypes = __webpack_require__(1); -exports.deepMap = deepMap; -exports.deepForEach = deepForEach; +var _propTypes2 = _interopRequireDefault(_propTypes); 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; -// Get a universally unique identifier -var count = 0; -function uuid() { - return "react-tabs-" + count++; -} - -function reset() { - count = 0; -} - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -exports.getTabsCount = getTabsCount; -exports.getPanelsCount = getPanelsCount; - -var _childrenDeepMap = __webpack_require__(6); - -var _Tab = __webpack_require__(1); - -var _Tab2 = _interopRequireDefault(_Tab); +var _react2 = _interopRequireDefault(_react); -var _TabPanel = __webpack_require__(2); +var _classnames = __webpack_require__(3); -var _TabPanel2 = _interopRequireDefault(_TabPanel); +var _classnames2 = _interopRequireDefault(_classnames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -function getTabsCount(children) { - var tabCount = 0; - (0, _childrenDeepMap.deepForEach)(children, function (child) { - if (child.type === _Tab2.default) tabCount++; - }); - - return tabCount; -} - -function getPanelsCount(children) { - var panelCount = 0; - (0, _childrenDeepMap.deepForEach)(children, function (child) { - if (child.type === _TabPanel2.default) panelCount++; - }); - - return panelCount; -} - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -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.childrenPropType = childrenPropType; -exports.onSelectPropType = onSelectPropType; -exports.selectedIndexPropType = selectedIndexPropType; - -var _childrenDeepMap = __webpack_require__(6); - -var _Tab = __webpack_require__(1); - -var _Tab2 = _interopRequireDefault(_Tab); - -var _TabList = __webpack_require__(4); - -var _TabList2 = _interopRequireDefault(_TabList); +function _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; } -var _TabPanel = __webpack_require__(2); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _TabPanel2 = _interopRequireDefault(_TabPanel); +function _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; } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +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; } -function childrenPropType(props, propName, componentName) { - var error = void 0; - var tabsCount = 0; - var panelsCount = 0; - var tabListFound = false; - var listTabs = []; - var children = props[propName]; +var DEFAULT_CLASS = 'react-tabs__tab-panel'; - (0, _childrenDeepMap.deepForEach)(children, function (child) { - if (child.type === _TabList2.default) { - if (child.props && child.props.children && _typeof(child.props.children) === 'object') { - (0, _childrenDeepMap.deepForEach)(child.props.children, function (listChild) { - return listTabs.push(listChild); - }); - } +var TabPanel = function (_Component) { + _inherits(TabPanel, _Component); - 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++; - } - }); + function TabPanel() { + _classCallCheck(this, TabPanel); - 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\'.')); + return _possibleConstructorReturn(this, _Component.apply(this, arguments)); } - return error; -} + TabPanel.prototype.render = function render() { + var _cx; -function onSelectPropType(props, propName, componentName, location, propFullName) { - var prop = props[propName]; - var name = propFullName || propName; - var error = null; + 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']); - if (prop && typeof prop !== 'function') { - error = new Error('Invalid ' + location + ' `' + name + '` of type `' + (typeof prop === 'undefined' ? 'undefined' : _typeof(prop)) + '` supplied to `' + componentName + '`, expected `function`.'); - } else if (props.selectedIndex != null && prop == null) { - error = new Error('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`.'); - } + 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 + ); + }; - return error; -} + return TabPanel; +}(_react.Component); -function selectedIndexPropType(props, propName, componentName, location, propFullName) { - var prop = props[propName]; - var name = propFullName || propName; - var error = null; +TabPanel.defaultProps = { + className: DEFAULT_CLASS, + forceRender: false, + selectedClassName: DEFAULT_CLASS + '--selected', + style: {} +}; +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 +} : {}; - if (prop != null && typeof prop !== 'number') { - error = new Error('Invalid ' + location + ' `' + name + '` of type `' + (typeof prop === 'undefined' ? 'undefined' : _typeof(prop)) + '` supplied to `' + componentName + '`, expected `number`.'); - } else if (props.defaultIndex != null && prop != null) { - return new Error('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.'); - } - return error; -} +TabPanel.tabsRole = 'TabPanel'; /***/ }), -/* 10 */ +/* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -609,7 +609,7 @@ function selectedIndexPropType(props, propName, componentName, location, propFul exports.__esModule = true; -var _propTypes = __webpack_require__(3); +var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -617,13 +617,13 @@ var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); -var _propTypes3 = __webpack_require__(9); +var _propTypes3 = __webpack_require__(7); -var _UncontrolledTabs = __webpack_require__(11); +var _UncontrolledTabs = __webpack_require__(12); var _UncontrolledTabs2 = _interopRequireDefault(_UncontrolledTabs); -var _count = __webpack_require__(8); +var _count = __webpack_require__(6); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -751,8 +751,11 @@ Tabs.propTypes = true ? { selectedTabPanelClassName: _propTypes2.default.string } : {}; + +Tabs.tabsRole = 'Tabs'; + /***/ }), -/* 11 */ +/* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -762,7 +765,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__(3); +var _propTypes = __webpack_require__(1); var _propTypes2 = _interopRequireDefault(_propTypes); @@ -770,31 +773,21 @@ var _react = __webpack_require__(0); var _react2 = _interopRequireDefault(_react); -var _classnames = __webpack_require__(5); +var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); -var _uuid = __webpack_require__(7); +var _uuid = __webpack_require__(5); var _uuid2 = _interopRequireDefault(_uuid); -var _propTypes3 = __webpack_require__(9); - -var _Tab = __webpack_require__(1); - -var _Tab2 = _interopRequireDefault(_Tab); - -var _TabList = __webpack_require__(4); - -var _TabList2 = _interopRequireDefault(_TabList); +var _propTypes3 = __webpack_require__(7); -var _TabPanel = __webpack_require__(2); +var _count = __webpack_require__(6); -var _TabPanel2 = _interopRequireDefault(_TabPanel); - -var _count = __webpack_require__(8); +var _childrenDeepMap = __webpack_require__(4); -var _childrenDeepMap = __webpack_require__(6); +var _elementTypes = __webpack_require__(2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -816,7 +809,16 @@ function isTabDisabled(node) { return node.getAttribute('aria-disabled') === 'true'; } -var canUseActiveElement = !!(typeof window !== 'undefined' && window.document && window.document.activeElement); +var canUseActiveElement = void 0; +try { + canUseActiveElement = !!(typeof window !== 'undefined' && window.document && window.document.activeElement); +} catch (e) { + // Work around for IE bug when accessing document.activeElement in an iframe + // Refer to the following resources: + // http://stackoverflow.com/a/10982960/369687 + // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599 + canUseActiveElement = false; +} var UncontrolledTabs = function (_Component) { _inherits(UncontrolledTabs, _Component); @@ -963,7 +965,7 @@ var UncontrolledTabs = function (_Component) { var result = child; // Clone TabList and Tab components to have refs - if (child.type === _TabList2.default) { + if ((0, _elementTypes.isTabList)(child)) { var listIndex = 0; // Figure out if the current focus in the DOM is set on a Tab @@ -971,9 +973,7 @@ var UncontrolledTabs = function (_Component) { var wasTabFocused = false; if (canUseActiveElement) { - wasTabFocused = _react2.default.Children.toArray(child.props.children).filter(function (tab) { - return tab.type === _Tab2.default; - }).some(function (tab, i) { + wasTabFocused = _react2.default.Children.toArray(child.props.children).filter(_elementTypes.isTab).some(function (tab, i) { return document.activeElement === _this2.getTab(i); }); } @@ -1001,7 +1001,7 @@ var UncontrolledTabs = function (_Component) { return (0, _react.cloneElement)(tab, props); }) }); - } else if (child.type === _TabPanel2.default) { + } else if ((0, _elementTypes.isTabPanel)(child)) { var props = { id: _this2.panelIds[index], tabId: _this2.tabIds[index], @@ -1094,7 +1094,7 @@ UncontrolledTabs.propTypes = true ? { } : {}; /***/ }), -/* 12 */ +/* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1103,23 +1103,23 @@ UncontrolledTabs.propTypes = true ? { exports.__esModule = true; exports.resetIdCounter = exports.Tabs = exports.TabPanel = exports.TabList = exports.Tab = undefined; -var _Tabs = __webpack_require__(10); +var _Tabs = __webpack_require__(11); var _Tabs2 = _interopRequireDefault(_Tabs); -var _TabList = __webpack_require__(4); +var _TabList = __webpack_require__(9); var _TabList2 = _interopRequireDefault(_TabList); -var _Tab = __webpack_require__(1); +var _Tab = __webpack_require__(8); var _Tab2 = _interopRequireDefault(_Tab); -var _TabPanel = __webpack_require__(2); +var _TabPanel = __webpack_require__(10); var _TabPanel2 = _interopRequireDefault(_TabPanel); -var _uuid = __webpack_require__(7); +var _uuid = __webpack_require__(5); 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 eb7d184994..7d575e3f93 100644 --- a/dist/react-tabs.js.map +++ b/dist/react-tabs.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 3372e37094040ff91319","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,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AChEA,+C;;;;;;;;;;;;;ACAA;;;;AACA;;;;AACA;;;;;;;;;;;;;;AAEA,IAAMA,gBAAgB,iBAAtB;;IAEqBC,G;;;;;;;;;gBAwBnBC,iB,gCAAoB;AAClB,SAAKC,UAAL;AACD,G;;g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D,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 3372e37094040ff91319","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 // 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 +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 923b19c634ad4d40a9b7","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/helpers/elementTypes.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/Tab.js","webpack:///./src/components/TabList.js","webpack:///./src/components/TabPanel.js","webpack:///./src/components/Tabs.js","webpack:///./src/components/UncontrolledTabs.js","webpack:///./src/index.js"],"names":["isTab","isTabPanel","isTabList","el","type","tabsRole","deepMap","deepForEach","isTabChild","child","children","callback","map","props","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","DEFAULT_CLASS","Tab","componentDidMount","checkFocus","componentDidUpdate","selected","focus","node","render","className","disabled","disabledClassName","id","panelId","selectedClassName","tabRef","attributes","defaultProps","propTypes","oneOfType","array","object","string","bool","func","TabList","TabPanel","forceRender","tabId","style","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","e","UncontrolledTabs","tabNodes","handleKeyDown","isTabFromContainer","target","preventDefault","keyCode","getPrevTab","getNextTab","setSelected","handleClick","slice","call","parentNode","filter","i","getTab","getChildren","tabIds","panelIds","diff","length","result","listIndex","wasTabFocused","Children","toArray","some","tab","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,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AChEA,+C;;;;;;ACAA,+C;;;;;;;;;;QCAgBA,K,GAAAA,K;QAIAC,U,GAAAA,U;QAIAC,S,GAAAA,S;AART,SAASF,KAAT,CAAeG,EAAf,EAAmB;AACxB,SAAOA,GAAGC,IAAH,CAAQC,QAAR,KAAqB,KAA5B;AACD;;AAEM,SAASJ,UAAT,CAAoBE,EAApB,EAAwB;AAC7B,SAAOA,GAAGC,IAAH,CAAQC,QAAR,KAAqB,UAA5B;AACD;;AAEM,SAASH,SAAT,CAAmBC,EAAnB,EAAuB;AAC5B,SAAOA,GAAGC,IAAH,CAAQC,QAAR,K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,gB;AAAAA,gB,CAMZ3C,S,WAAY;AACjBlD,wCADiB;AAEjByC,aAAW,oBAAUU,SAAV,CAAoB,CAAC,oBAAUG,MAAX,EAAmB,oBAAUF,KAA7B,EAAoC,oBAAUC,MAA9C,CAApB,CAFM;AAGjB4B,wBAAsB,oBAAU3B,MAHf;AAIjBhB,SAAO,oBAAUiB,IAJA;AAKjBwB,uBAAqB,oBAAUxB,IALd;AAMjBY,YAAU,oBAAUX,IAAV,CAAeqE,UANR;AAOjB/F,iBAAe,oBAAUkD,MAAV,CAAiB6C,UAPf;AAQjB3C,wBAAsB,oBAAU5B,MARf;AASjB6B,6BAA2B,oBAAU7B;AATpB,C;;;;;;;;;;;;ACvCrB;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;QAESrB,G;QAAKwB,O;QAASC,Q;QAAUI,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_3__) {\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 = 13);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 923b19c634ad4d40a9b7","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","export function isTab(el) {\n return el.type.tabsRole === 'Tab';\n}\n\nexport function isTabPanel(el) {\n return el.type.tabsRole === 'TabPanel';\n}\n\nexport function isTabList(el) {\n return el.type.tabsRole === 'TabList';\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/elementTypes.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 { Children, cloneElement } from 'react';\nimport { isTabPanel, isTab, isTabList } from '../helpers/elementTypes';\n\nfunction isTabChild(child) {\n return isTab(child) || isTabList(child) || isTabPanel(child);\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 (isTab(child) || isTabPanel(child)) {\n callback(child);\n } else if (child.props && child.props.children && typeof child.props.children === 'object') {\n if (isTabList(child)) 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 { isTab, isTabPanel } from './elementTypes';\n\nexport function getTabsCount(children) {\n let tabCount = 0;\n deepForEach(children, child => {\n if (isTab(child)) tabCount++;\n });\n\n return tabCount;\n}\n\nexport function getPanelsCount(children) {\n let panelCount = 0;\n deepForEach(children, child => {\n if (isTabPanel(child)) panelCount++;\n });\n\n return panelCount;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/count.js","import { deepForEach } from '../helpers/childrenDeepMap';\nimport { isTab, isTabList, isTabPanel } from '../helpers/elementTypes';\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 (isTabList(child)) {\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 (isTab(child)) {\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 (isTabPanel(child)) {\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 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\nTab.tabsRole = 'Tab';\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\nTabList.tabsRole = 'TabList';\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 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\nTabPanel.tabsRole = 'TabPanel';\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabPanel.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 {children};\n }\n}\n\nTabs.tabsRole = 'Tabs';\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 { getPanelsCount, getTabsCount } from '../helpers/count';\nimport { deepMap } from '../helpers/childrenDeepMap';\nimport { isTabList, isTabPanel, isTab } from '../helpers/elementTypes';\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\nlet canUseActiveElement;\ntry {\n canUseActiveElement = !!(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.activeElement\n );\n} catch (e) {\n // Work around for IE bug when accessing document.activeElement in an iframe\n // Refer to the following resources:\n // http://stackoverflow.com/a/10982960/369687\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599\n canUseActiveElement = false;\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 // 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 (isTabList(child)) {\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(isTab)\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 (isTabPanel(child)) {\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\n .call(node.parentNode.children)\n .filter(isTabNode)\n .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 80bcb1d91e..dce8e4f2aa 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=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}])}); +!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=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return"Tab"===e.type.tabsRole}function o(e){return"TabPanel"===e.type.tabsRole}function a(e){return"TabList"===e.type.tabsRole}t.__esModule=!0,t.isTab=r,t.isTabPanel=o,t.isTabList=a},function(e,t,n){"use strict";function r(){return"react-tabs-"+a++}function o(){a=0}t.__esModule=!0,t.default=r,t.reset=o;var a=0},function(e,t,n){"use strict";function r(e){return(0,c.isTab)(e)||(0,c.isTabList)(e)||(0,c.isTabPanel)(e)}function o(e,t){return i.Children.map(e,function(e){return null===e?null:r(e)?t(e):e.props&&e.props.children&&"object"===l(e.props.children)?(0,i.cloneElement)(e,s({},e.props,{children:o(e.props.children,t)})):e})}function a(e,t){return i.Children.forEach(e,function(e){null!==e&&((0,c.isTab)(e)||(0,c.isTabPanel)(e)?t(e):e.props&&e.props.children&&"object"===l(e.props.children)&&((0,c.isTabList)(e)&&t(e),a(e.props.children,t)))})}t.__esModule=!0;var s=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=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(10),f=r(u),p=n(5),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),c.default.createElement(f.default,n,t)},t}(i.Component);d.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},t.default=d,d.propTypes={},d.tabsRole="Tabs"},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,m.getTabsCount)(this.props.children)},t.prototype.getPanelsCount=function(){return(0,m.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(0,T.deepMap)(r,function(n){var r=n;if((0,v.isTabList)(n)){var u=0,d=!1;_&&(d=p.default.Children.toArray(n.props.children).filter(v.isTab).some(function(t,n){return document.activeElement===e.getTab(n)})),r=(0,f.cloneElement)(n,{children:(0,T.deepMap)(n.props.children,function(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||d)};return i&&(s.selectedClassName=i),o&&(s.disabledClassName=o),u++,(0,f.cloneElement)(t,s)})})}else if((0,v.isTabPanel)(n)){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 p.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);C.defaultProps={className:"react-tabs",focus:!1},t.default=C,C.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(9),a=r(o),s=n(7),l=r(s),i=n(6),c=r(i),u=n(8),f=r(u),p=n(3);t.Tab=c.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 0c617c6a3b..f941214d4c 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 a4bb042223fea4173b24","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","_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,GAA2C,MAAAA,IAG3CR,EAAAS,EAAA,SAAAlB,EAAAmB,EAAAC,GACAX,EAAAY,EAAArB,EAAAmB,IACAG,OAAAC,eAAAvB,EAAAmB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAX,EAAAkB,EAAA,SAAA1B,GACA,GAAAmB,GAAAnB,KAAA2B,WACA,WAA2B,MAAA3B,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAQ,GAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAlB,KAAAe,EA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AAK0L,gBXwpBLtB,GACP1G,EAAOkC,UW15BYwE,GACZvE,cACLhB,UAAW,aACXP,OAAO,GX65BX3E,EAAQqC,QWh6BaoI,IAMZrE,cXy6BH,SAAUnG,EAAQD,EAASS,GAEjC,YAwBA,SAAS0B,GAAuBC,GAAO,MAAOA,IAAOA,EAAIR,WAAaQ,GAAQC,QAASD,GArBvFpC,EAAQ4B,YAAa,EACrB5B,EAAQoN,eAAiBpN,EAAQyI,KAAOzI,EAAQqG,SAAWrG,EAAQ0G,QAAU1G,EAAQmE,QAAMqF,EYh9B3F,IAAA6D,GAAA5M,EAAA,GZo9BI6M,EAASnL,EAAuBkL,GYn9BpCtF,EAAAtH,EAAA,GZu9BIyG,EAAY/E,EAAuB4F,GYt9BvCD,EAAArH,EAAA,GZ09BIwG,EAAQ9E,EAAuB2F,GYz9BnCE,EAAAvH,EAAA,GZ69BI0G,EAAahF,EAAuB6F,GY59BxCmC,EAAA1J,EAAA,EZk+BAT,GYh+BSmE,IZg+BK8C,EAAM5E,QACpBrC,EYj+Bc0G,QZi+BIQ,EAAU7E,QAC5BrC,EYl+BuBqG,SZk+BJc,EAAW9E,QAC9BrC,EYn+BiCyI,KZm+BlB6E,EAAOjL,QACtBrC,EYp+BuCoN,eZo+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 // 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 a4bb042223fea4173b24","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 // 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 +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///react-tabs.min.js","webpack:///webpack/bootstrap 0f111dceed75677099b9","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///external {\"root\":\"classNames\",\"commonjs2\":\"classnames\",\"commonjs\":\"classnames\",\"amd\":\"classnames\"}","webpack:///./src/helpers/elementTypes.js","webpack:///./src/helpers/uuid.js","webpack:///./src/helpers/childrenDeepMap.js","webpack:///./src/helpers/count.js","webpack:///./src/components/Tab.js","webpack:///./src/components/TabList.js","webpack:///./src/components/TabPanel.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","isTab","el","type","tabsRole","isTabPanel","isTabList","uuid","count","reset","default","isTabChild","child","_elementTypes","deepMap","children","callback","_react","Children","map","props","_typeof","cloneElement","_extends","deepForEach","forEach","assign","target","arguments","length","source","key","Symbol","iterator","obj","constructor","getTabsCount","tabCount","_childrenDeepMap","getPanelsCount","panelCount","_interopRequireDefault","_objectWithoutProperties","keys","indexOf","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","writable","setPrototypeOf","__proto__","_react2","_classnames","_classnames2","Tab","_Component","apply","componentDidMount","checkFocus","componentDidUpdate","selected","focus","node","render","_cx","_this2","_props","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","_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","e","UncontrolledTabs","_temp","_ret","_len","args","Array","_key","concat","tabNodes","handleKeyDown","isTabFromContainer","preventDefault","keyCode","getPrevTab","getNextTab","setSelected","handleClick","slice","parentNode","filter","getTab","getChildren","disabledTabClassName","selectedTabClassName","selectedTabPanelClassName","tabIds","panelIds","diff","push","result","listIndex","wasTabFocused","toArray","some","tab","nodeAncestor","parentElement","_this3","_props2","onClick","onKeyDown","data-tabs","resetIdCounter","_Tabs","_Tabs2","_TabList","_TabList2","_Tab","_Tab2","_TabPanel","_TabPanel2"],"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,M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5C,Ea9+BuBiI,Sb8+BJ2F,EAAWhL,QAC9B5C,Ea/+BiCyI,Kb++BlB6E,EAAO1K,QACtB5C,Eah/BuCoN,ebg/BdjD,EAAMxH","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 = 11);\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;\nexports.isTab = isTab;\nexports.isTabPanel = isTabPanel;\nexports.isTabList = isTabList;\nfunction isTab(el) {\n return el.type.tabsRole === 'Tab';\n}\n\nfunction isTabPanel(el) {\n return el.type.tabsRole === 'TabPanel';\n}\n\nfunction isTabList(el) {\n return el.type.tabsRole === 'TabList';\n}\n\n/***/ }),\n/* 3 */\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/* 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 _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 _elementTypes = __webpack_require__(2);\n\nfunction isTabChild(child) {\n return (0, _elementTypes.isTab)(child) || (0, _elementTypes.isTabList)(child) || (0, _elementTypes.isTabPanel)(child);\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 ((0, _elementTypes.isTab)(child) || (0, _elementTypes.isTabPanel)(child)) {\n callback(child);\n } else if (child.props && child.props.children && _typeof(child.props.children) === 'object') {\n if ((0, _elementTypes.isTabList)(child)) callback(child);\n deepForEach(child.props.children, callback);\n }\n });\n}\n\n/***/ }),\n/* 5 */\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__(4);\n\nvar _elementTypes = __webpack_require__(2);\n\nfunction getTabsCount(children) {\n var tabCount = 0;\n (0, _childrenDeepMap.deepForEach)(children, function (child) {\n if ((0, _elementTypes.isTab)(child)) tabCount++;\n });\n\n return tabCount;\n}\n\nfunction getPanelsCount(children) {\n var panelCount = 0;\n (0, _childrenDeepMap.deepForEach)(children, function (child) {\n if ((0, _elementTypes.isTabPanel)(child)) panelCount++;\n });\n\n return panelCount;\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 _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,\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\nTab.tabsRole = 'Tab';\n\n/***/ }),\n/* 7 */\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\nTabList.tabsRole = 'TabList';\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\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\nTabPanel.tabsRole = 'TabPanel';\n\n/***/ }),\n/* 9 */\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__(10);\n\nvar _UncontrolledTabs2 = _interopRequireDefault(_UncontrolledTabs);\n\nvar _count = __webpack_require__(5);\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\nTabs.tabsRole = 'Tabs';\n\n/***/ }),\n/* 10 */\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__(3);\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nvar _count = __webpack_require__(5);\n\nvar _childrenDeepMap = __webpack_require__(4);\n\nvar _elementTypes = __webpack_require__(2);\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 = void 0;\ntry {\n canUseActiveElement = !!(typeof window !== 'undefined' && window.document && window.document.activeElement);\n} catch (e) {\n // Work around for IE bug when accessing document.activeElement in an iframe\n // Refer to the following resources:\n // http://stackoverflow.com/a/10982960/369687\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599\n canUseActiveElement = false;\n}\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 // 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 ((0, _elementTypes.isTabList)(child)) {\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(_elementTypes.isTab).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 ((0, _elementTypes.isTabPanel)(child)) {\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/* 11 */\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__(9);\n\nvar _Tabs2 = _interopRequireDefault(_Tabs);\n\nvar _TabList = __webpack_require__(7);\n\nvar _TabList2 = _interopRequireDefault(_TabList);\n\nvar _Tab = __webpack_require__(6);\n\nvar _Tab2 = _interopRequireDefault(_Tab);\n\nvar _TabPanel = __webpack_require__(8);\n\nvar _TabPanel2 = _interopRequireDefault(_TabPanel);\n\nvar _uuid = __webpack_require__(3);\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 = 11);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 0f111dceed75677099b9","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","export function isTab(el) {\n return el.type.tabsRole === 'Tab';\n}\n\nexport function isTabPanel(el) {\n return el.type.tabsRole === 'TabPanel';\n}\n\nexport function isTabList(el) {\n return el.type.tabsRole === 'TabList';\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/helpers/elementTypes.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 { isTabPanel, isTab, isTabList } from '../helpers/elementTypes';\n\nfunction isTabChild(child) {\n return isTab(child) || isTabList(child) || isTabPanel(child);\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 (isTab(child) || isTabPanel(child)) {\n callback(child);\n } else if (child.props && child.props.children && typeof child.props.children === 'object') {\n if (isTabList(child)) 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 { isTab, isTabPanel } from './elementTypes';\n\nexport function getTabsCount(children) {\n let tabCount = 0;\n deepForEach(children, child => {\n if (isTab(child)) tabCount++;\n });\n\n return tabCount;\n}\n\nexport function getPanelsCount(children) {\n let panelCount = 0;\n deepForEach(children, child => {\n if (isTabPanel(child)) 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 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\nTab.tabsRole = 'Tab';\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\nTabList.tabsRole = 'TabList';\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 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\nTabPanel.tabsRole = 'TabPanel';\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/TabPanel.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 {children};\n }\n}\n\nTabs.tabsRole = 'Tabs';\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 { getPanelsCount, getTabsCount } from '../helpers/count';\nimport { deepMap } from '../helpers/childrenDeepMap';\nimport { isTabList, isTabPanel, isTab } from '../helpers/elementTypes';\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\nlet canUseActiveElement;\ntry {\n canUseActiveElement = !!(\n typeof window !== 'undefined' &&\n window.document &&\n window.document.activeElement\n );\n} catch (e) {\n // Work around for IE bug when accessing document.activeElement in an iframe\n // Refer to the following resources:\n // http://stackoverflow.com/a/10982960/369687\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599\n canUseActiveElement = false;\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 // 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 (isTabList(child)) {\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(isTab)\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 (isTabPanel(child)) {\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\n .call(node.parentNode.children)\n .filter(isTabNode)\n .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/package.json b/package.json index 7f95e2e2c5..25796ddbf1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-tabs", - "version": "1.1.0", + "version": "2.0.0", "description": "React tabs component", "main": "lib/index.js", "scripts": { @@ -30,9 +30,18 @@ "bugs": { "url": "https://github.com/reactjs/react-tabs/issues" }, - "files": ["dist", "lib", "style"], + "files": [ + "dist", + "lib", + "style" + ], "homepage": "https://github.com/reactjs/react-tabs", - "keywords": ["react", "tabs", "a11y", "react-component"], + "keywords": [ + "react", + "tabs", + "a11y", + "react-component" + ], "peerDependencies": { "react": "^0.14.9 || ^15.3.0" }, @@ -80,10 +89,15 @@ "prop-types": "^15.5.0" }, "jest": { - "roots": ["src"], + "roots": [ + "src" + ], "testRegex": "/__tests__/.+-test\\.js$" }, "lint-staged": { - "src/**/*.js": ["eslint --fix", "git add"] + "src/**/*.js": [ + "eslint --fix", + "git add" + ] } }