@brightleaf/elements
Advanced tools
Comparing version 0.8.2 to 0.9.0
@@ -480,2 +480,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "TabList", { | ||
enumerable: true, | ||
get: function get() { | ||
return _tabs.TabList; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Tag", { | ||
@@ -482,0 +488,0 @@ enumerable: true, |
@@ -18,3 +18,9 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "TabList", { | ||
enumerable: true, | ||
get: function get() { | ||
return _tabs.TabList; | ||
} | ||
}); | ||
var _tabs = require("./tabs"); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.Tabs = exports.TabItem = void 0; | ||
exports.Tabs = exports.TabList = exports.TabItem = void 0; | ||
@@ -20,2 +20,3 @@ var _react = _interopRequireDefault(require("react")); | ||
console.log('tab type', type()); | ||
return false; | ||
@@ -37,13 +38,22 @@ }; | ||
var Tabs = function Tabs(_ref2) { | ||
var TabList = function TabList(_ref2) { | ||
var children = _ref2.children, | ||
className = _ref2.className, | ||
isCentered = _ref2.isCentered, | ||
isRight = _ref2.isRight, | ||
isSmall = _ref2.isSmall, | ||
isMedium = _ref2.isMedium, | ||
isLarge = _ref2.isLarge, | ||
isBoxed = _ref2.isBoxed, | ||
isToggle = _ref2.isToggle, | ||
isFullWidth = _ref2.isFullWidth; | ||
isActive = _ref2.isActive; | ||
return _react.default.createElement("ul", null, children); | ||
}; | ||
exports.TabList = TabList; | ||
var Tabs = function Tabs(_ref3) { | ||
var children = _ref3.children, | ||
className = _ref3.className, | ||
isCentered = _ref3.isCentered, | ||
isRight = _ref3.isRight, | ||
isSmall = _ref3.isSmall, | ||
isMedium = _ref3.isMedium, | ||
isLarge = _ref3.isLarge, | ||
isBoxed = _ref3.isBoxed, | ||
isToggle = _ref3.isToggle, | ||
isFullWidth = _ref3.isFullWidth; | ||
var classes = { | ||
@@ -59,16 +69,7 @@ 'is-centered': isCentered, | ||
}; | ||
var kids = _react.default.Children.toArray(children); | ||
var list = kids.filter(function (child) { | ||
return isTabType(child.type); | ||
}); | ||
var others = kids.filter(function (child) { | ||
return !isTabType(child.type); | ||
}); | ||
return _react.default.createElement("div", { | ||
className: (0, _classnames.default)('tabs', className, classes) | ||
}, _react.default.createElement("ul", null, list), others); | ||
}, children); | ||
}; | ||
exports.Tabs = Tabs; |
{ | ||
"name": "@brightleaf/elements", | ||
"version": "0.8.2", | ||
"version": "0.9.0", | ||
"description": "UI elements", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
196432
4752