@trendmicro/react-navs
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -1,2 +0,2 @@ | ||
/*! react-navs v0.11.0 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-navs */ | ||
/*! react-navs v0.11.1 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-navs */ | ||
module.exports = | ||
@@ -72,3 +72,3 @@ /******/ (function(modules) { // webpackBootstrap | ||
module.exports = require("classnames"); | ||
module.exports = require("prop-types"); | ||
@@ -79,3 +79,3 @@ /***/ }), | ||
module.exports = require("prop-types"); | ||
module.exports = require("classnames"); | ||
@@ -93,3 +93,3 @@ /***/ }), | ||
// removed by extract-text-webpack-plugin | ||
module.exports = {"caret":"navs---caret---3CkEt","nav":"navs---nav---1zbOb","nav-tabs":"navs---nav-tabs---3lUn4","navTabs":"navs---nav-tabs---3lUn4","nav-light-tabs":"navs---nav-light-tabs---2sgeU","navLightTabs":"navs---nav-light-tabs---2sgeU","nav-panel-tabs":"navs---nav-panel-tabs---3rU6S","navPanelTabs":"navs---nav-panel-tabs---3rU6S","dropup":"navs---dropup---30DnN","navbar-nav":"navs---navbar-nav---31TRb","navbarNav":"navs---navbar-nav---31TRb","disabled":"navs---disabled---eCY9b","open":"navs---open---1ju75","nav-divider":"navs---nav-divider---3l4ju","navDivider":"navs---nav-divider---3l4ju","navbar-default":"navs---navbar-default---3rqTh","navbarDefault":"navs---navbar-default---3rqTh","active":"navs---active---2-a32","nav-justified":"navs---nav-justified---10iqz","navJustified":"navs---nav-justified---10iqz","nav-stacked":"navs---nav-stacked---32oCw","navStacked":"navs---nav-stacked---32oCw","tab-content":"navs---tab-content---2VBNa","tabContent":"navs---tab-content---2VBNa","tab-pane":"navs---tab-pane---2dbBX","tabPane":"navs---tab-pane---2dbBX"}; | ||
module.exports = {"caret":"navs---caret---3CkEt","nav":"navs---nav---1zbOb","nav-tabs":"navs---nav-tabs---3lUn4","navTabs":"navs---nav-tabs---3lUn4","nav-light-tabs":"navs---nav-light-tabs---2sgeU","navLightTabs":"navs---nav-light-tabs---2sgeU","nav-panel-tabs":"navs---nav-panel-tabs---3rU6S","navPanelTabs":"navs---nav-panel-tabs---3rU6S","dropup":"navs---dropup---30DnN","navbar-nav":"navs---navbar-nav---31TRb","navbarNav":"navs---navbar-nav---31TRb","disabled":"navs---disabled---eCY9b","open":"navs---open---1ju75","nav-divider":"navs---nav-divider---3l4ju","navDivider":"navs---nav-divider---3l4ju","navbar-default":"navs---navbar-default---3rqTh","navbarDefault":"navs---navbar-default---3rqTh","active":"navs---active---2-a32","nav-justified":"navs---nav-justified---10iqz","navJustified":"navs---nav-justified---10iqz","nav-stacked":"navs---nav-stacked---32oCw","navStacked":"navs---nav-stacked---32oCw"}; | ||
@@ -123,40 +123,20 @@ /***/ }), | ||
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__(0); | ||
var _classnames = __webpack_require__(0); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _propTypes = __webpack_require__(1); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _react = __webpack_require__(2); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _index = __webpack_require__(3); | ||
var _index2 = _interopRequireDefault(_index); | ||
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; } | ||
var TabPane = function TabPane(_ref) { | ||
var _cx; | ||
var active = _ref.active, | ||
eventKey = _ref.eventKey, | ||
className = _ref.className, | ||
props = _objectWithoutProperties(_ref, ['active', 'eventKey', 'className']); | ||
children = _ref.children; | ||
return _react2.default.createElement('div', _extends({}, props, { | ||
className: (0, _classnames2.default)(className, _index2.default.tabPane, (_cx = {}, _cx[_index2.default.active] = active, _cx)) | ||
})); | ||
if (!active) { | ||
return null; | ||
} | ||
return children; | ||
}; | ||
TabPane.propTypes = { | ||
active: _propTypes2.default.bool, | ||
eventKey: _propTypes2.default.any | ||
active: _propTypes2.default.bool | ||
}; | ||
@@ -230,7 +210,7 @@ | ||
var _classnames = __webpack_require__(0); | ||
var _classnames = __webpack_require__(1); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _propTypes = __webpack_require__(1); | ||
var _propTypes = __webpack_require__(0); | ||
@@ -379,7 +359,7 @@ var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = __webpack_require__(0); | ||
var _classnames = __webpack_require__(1); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _propTypes = __webpack_require__(1); | ||
var _propTypes = __webpack_require__(0); | ||
@@ -519,7 +499,7 @@ var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = __webpack_require__(0); | ||
var _classnames = __webpack_require__(1); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _propTypes = __webpack_require__(1); | ||
var _propTypes = __webpack_require__(0); | ||
@@ -710,7 +690,7 @@ var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = __webpack_require__(0); | ||
var _classnames = __webpack_require__(1); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _propTypes = __webpack_require__(1); | ||
var _propTypes = __webpack_require__(0); | ||
@@ -717,0 +697,0 @@ var _propTypes2 = _interopRequireDefault(_propTypes); |
{ | ||
"name": "@trendmicro/react-navs", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Trend Micro Components: React Navs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88017
928