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

react-responsive-tabs

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-responsive-tabs - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

22

lib/components/Tabs.js

@@ -92,3 +92,3 @@ 'use strict';

(0, _jsStylesheet2.default)(_style2.default);
this._setTabsWidth();
setTimeout(this._setTabsWidth, 0);
}

@@ -247,4 +247,3 @@ }, {

case 'tab':
return (0, _classnames2.default)({
Tab: true,
return (0, _classnames2.default)('Tab', this.props.tabClass, {
'Tab--first': !tabIndex,

@@ -256,4 +255,3 @@ 'Tab--selected': selected,

case 'panel':
return (0, _classnames2.default)({
'Tab-panel': true,
return (0, _classnames2.default)('Tab-panel', this.props.panelClass, {
'Tab-panel--selected': selected,

@@ -307,7 +305,9 @@ 'Tab-panel--collapsed': collapsed

var panels = _getTabs2.panels;
var wrapperClass = _getTabs2.wrapperClass;
var wrapperClasses = (0, _classnames2.default)('Tabs__wrapper', wrapperClass);
return _react2.default.createElement(
'div',
{ className: 'Tabs__wrapper', ref: 'tabsWrapper', onKeyDown: this._onKeyDown },
{ className: wrapperClasses, ref: 'tabsWrapper', onKeyDown: this._onKeyDown },
panels.reduce(function (result, panel) {

@@ -349,3 +349,6 @@ if (tabsVisible[panel.key]) {

transform: _react.PropTypes.bool,
transformWidth: _react.PropTypes.number
transformWidth: _react.PropTypes.number,
wrapperClass: _react.PropTypes.string,
tabClass: _react.PropTypes.string,
panelClass: _react.PropTypes.string
};

@@ -356,3 +359,6 @@

transform: true,
transformWidth: 800
transformWidth: 800,
wrapperClass: '',
tabClass: '',
panelClass: ''
};
{
"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)",
"version": "0.3.2",
"version": "0.3.3",
"bugs": {

@@ -5,0 +5,0 @@ "url": "https://github.com/maslianok/react-responsive-tabs/issues"

@@ -82,3 +82,12 @@ #React responsive tabs

#### wrapperClass
(String) Wrapper class
#### tabClass
(String) Tab class
#### panelClass
(String) Tab panel class
### License
MIT
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