@snowcoders/react-tabs
Advanced tools
Comparing version 0.1.2 to 0.1.3
"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 @@ }; |
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15
0
24370
4
37
408
+ Added@snowcoders/react-unstyled-button@1.2.4(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedclassnames@^2.2.5
- Removed@snowcoders/react-unstyled-button@1.1.5(transitive)