New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@snowcoders/react-tabs

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowcoders/react-tabs - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

15

dist/component.js
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");

@@ -17,3 +8,3 @@ var react_unstyled_button_1 = require("@snowcoders/react-unstyled-button");

var Tabs = /** @class */ (function (_super) {
__extends(Tabs, _super);
tslib_1.__extends(Tabs, _super);
function Tabs(props) {

@@ -38,3 +29,3 @@ var _this = _super.call(this, props) || this;

var className = classnames("content", { "visible": index === _this.state.selectedTabIndex });
return (React.createElement("div", { className: className }, value.content));
return (React.createElement("div", { key: index, className: className }, value.content));
}))));

@@ -41,0 +32,0 @@ };

16

package.json
{
"name": "@snowcoders/react-tabs",
"version": "0.1.2",
"version": "0.1.3",
"description": "React component that uses tabs to navigate between different sections",

@@ -20,10 +20,10 @@ "private": false,

"license": "MIT",
"dependencies": {
"@snowcoders/react-unstyled-button": "~1.1.3",
"classnames": "^2.2.5"
},
"peerDependencies": {
"react": ">=15.4.0 <^16.2.0"
"@snowcoders/react-unstyled-button": ">=1.1.0",
"classnames": ">=2.2.0",
"react": ">=15.4.0",
"tslib": ">=1.6.0"
},
"devDependencies": {
"@snowcoders/react-unstyled-button": "^1.2.0",
"@types/chai": "^4.0.10",

@@ -36,2 +36,3 @@ "@types/classnames": "^2.2.3",

"chai": "^4.1.2",
"classnames": "^2.2.5",
"enzyme": "^3.3.0",

@@ -62,5 +63,6 @@ "enzyme-adapter-react-16": "^1.1.1",

"ts-node": "^4.1.0",
"tslib": "^1.9.0",
"tsconfig-paths": "^2.6.0",
"typescript": "^2.6.2"
}
}
}

@@ -0,1 +1,4 @@

[![npm (scoped)](https://img.shields.io/npm/v/@snowcoders/react-tabs.svg)](https://www.npmjs.com/package/@snowcoders/react-tabs)
[![CircleCI branch](https://img.shields.io/circleci/project/github/snowcoders/react-tabs.svg)](https://circleci.com/gh/snowcoders/react-tabs)
# Use it

@@ -2,0 +5,0 @@ `npm install --save @snowcoders/react-tabs save-prefix ~`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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