Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brightleaf/elements

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightleaf/elements - npm Package Compare versions

Comparing version 0.8.2 to 0.9.0

6

lib/index.js

@@ -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");

41

lib/tabs/tabs.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc