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

react-tab-component-pure-js

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tab-component-pure-js - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

19

dist/index.js

@@ -30,8 +30,14 @@ "use strict";

children: [(0, jsx_runtime_1.jsx)("div", __assign({
className: tabOptionsClass
className: tabOptionsClass,
role: "tablist",
"aria-label": "Tabs"
}, {
children: tabList.map(function (_a, index) {
var name = _a.name;
return (0, jsx_runtime_1.jsx)("div", __assign({
return (0, jsx_runtime_1.jsx)("button", __assign({
className: currentTabIndex === index ? selectTabClass : unselectedTabClass,
role: "tab",
"aria-selected": currentTabIndex === index,
"aria-controls": "tabpanel-".concat(index),
id: "tab-".concat(index),
onClick: function onClick() {

@@ -46,3 +52,10 @@ return tabClickHandler(index);

var Component = _a.Component;
return index === currentTabIndex ? (0, jsx_runtime_1.jsx)(Component, {}, index) : null;
return (0, jsx_runtime_1.jsx)("div", __assign({
role: "tabpanel",
id: "tabpanel-".concat(index),
"aria-labelledby": "tab-".concat(index),
hidden: currentTabIndex !== index
}, {
children: currentTabIndex === index && (0, jsx_runtime_1.jsx)(Component, {})
}), index);
})]

@@ -49,0 +62,0 @@ }));

2

package.json
{
"name": "react-tab-component-pure-js",
"version": "1.0.5",
"version": "1.0.6",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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