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

terra-toggle-button

Package Overview
Dependencies
Maintainers
8
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-toggle-button - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

12

CHANGELOG.md
Changelog
=========
Unreleased
----------
1.1.0 - (July 18, 2017)
------------------
### Changed
* Converted component to use CSS modules
* Updated nightwatch test scripts
### Removed
* Removed nightwatch.config file
1.0.0 - (June 28, 2017)
------------------
Initial stable release

18

lib/ToggleButton.js

@@ -19,5 +19,5 @@ 'use strict';

var _classnames = require('classnames');
var _bind = require('classnames/bind');
var _classnames2 = _interopRequireDefault(_classnames);
var _bind2 = _interopRequireDefault(_bind);

@@ -42,4 +42,6 @@ var _terraArrange = require('terra-arrange');

require('./ToggleButton.scss');
var _ToggleButton = require('./ToggleButton.scss');
var _ToggleButton2 = _interopRequireDefault(_ToggleButton);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -55,2 +57,4 @@

var cx = _bind2.default.bind(_ToggleButton2.default);
var propTypes = {

@@ -175,3 +179,3 @@ /**

var buttonText = !this.state.isOpen ? closedButtonText : normalizedOpenButtonText;
var toggleButtonClass = (0, _classnames2.default)(['terra-ToggleButton', { 'is-open': this.state.isOpen }, { 'is-icon-animated': isIconAnimated }, customProps.className]);
var toggleButtonClass = cx(['button', { 'is-open': this.state.isOpen }, { 'is-icon-animated': isIconAnimated }, customProps.className]);

@@ -189,3 +193,3 @@ var button = void 0;

'span',
{ className: 'terra-ToggleButton-icon' },
{ className: cx('icon') },
icon

@@ -205,3 +209,3 @@ )

'span',
{ className: 'terra-ToggleButton-icon' },
{ className: cx('icon') },
icon

@@ -211,3 +215,3 @@ ),

'span',
{ className: 'terra-ToggleButton-buttonText' },
{ className: cx('button-text') },
buttonText

@@ -214,0 +218,0 @@ )

{
"name": "terra-toggle-button",
"main": "lib/ToggleButton.js",
"version": "1.0.0",
"version": "1.1.0",
"description": "Toggle button component that transitions content in and out with the click on a button.",

@@ -24,4 +24,3 @@ "repository": {

"devDependencies": {
"terra-props-table": "^1.0.0",
"terra-toolkit": "^1.0.0"
"terra-props-table": "^1.1.0"
},

@@ -31,8 +30,8 @@ "peerDependencies": {

"react-dom": "^15.4.2",
"terra-arrange": "^1.0.0",
"terra-base": "^1.0.0",
"terra-button": "^1.0.0",
"terra-icon": "^1.0.0",
"terra-mixins": "^1.6.0",
"terra-toggle": "^1.0.0"
"terra-arrange": "^1.1.0",
"terra-base": "^1.1.0",
"terra-button": "^1.1.0",
"terra-icon": "^1.1.0",
"terra-mixins": "^1.7.0",
"terra-toggle": "^1.1.0"
},

@@ -42,8 +41,8 @@ "dependencies": {

"prop-types": "^15.5.8",
"terra-arrange": "^1.0.0",
"terra-base": "^1.0.0",
"terra-button": "^1.0.0",
"terra-icon": "^1.0.0",
"terra-mixins": "^1.6.0",
"terra-toggle": "^1.0.0"
"terra-arrange": "^1.1.0",
"terra-base": "^1.1.0",
"terra-button": "^1.1.0",
"terra-icon": "^1.1.0",
"terra-mixins": "^1.7.0",
"terra-toggle": "^1.1.0"
},

@@ -61,9 +60,7 @@ "scripts": {

"test:all": "npm run test:nightwatch-default && npm run test:nightwatch-chrome && npm run test:nightwatch-firefox && npm run test:nightwatch-safari",
"test:nightwatch-default": "SPECTRE_TEST_SUITE=terra-toggle-button node ./node_modules/terra-toolkit/lib/scripts/nightwatch.js",
"test:nightwatch-chrome": "SPECTRE_TEST_SUITE=terra-toggle-button node ./node_modules/terra-toolkit/lib/scripts/nightwatch.js chrome",
"test:nightwatch-firefox": "SPECTRE_TEST_SUITE=terra-toggle-button node ./node_modules/terra-toolkit/lib/scripts/nightwatch.js firefox",
"test:nightwatch-safari": "SPECTRE_TEST_SUITE=terra-toggle-button node ./node_modules/terra-toolkit/lib/scripts/nightwatch-non-parallel.js safari",
"test:remote": "SPECTRE_TEST_SUITE=terra-toggle-button REMOTE=true node ./node_modules/terra-toolkit/lib/scripts/nightwatch-process.js --config tests/nightwatch.conf.js",
"test:remote:all": "SPECTRE_TEST_SUITE=terra-toggle-button REMOTE=true node ./node_modules/terra-toolkit/lib/scripts/nightwatch-process.js --config tests/nightwatch.conf.js --env chrome-tiny,chrome-small,chrome-medium,chrome-large,chrome-huge,chrome-enormous,firefox-tiny,firefox-small,firefox-medium,firefox-large,firefox-huge,firefox-enormous,ie10-tiny,ie10-small,ie10-medium,ie10-large,ie10-huge,ie10-enormous,ie11-tiny,ie11-small,ie11-medium,ie11-large,ie11-huge,ie11-enormous,edge-tiny,edge-small,edge-medium,edge-large,edge-huge,edge-enormous,safari-tiny,safari-small,safari-medium,safari-large,safari-huge,safari-enormous"
"test:nightwatch-default": "SPECTRE_TEST_SUITE=terra-toggle-button node ../../node_modules/terra-toolkit/lib/scripts/nightwatch.js",
"test:nightwatch-chrome": "SPECTRE_TEST_SUITE=terra-toggle-button node ../../node_modules/terra-toolkit/lib/scripts/nightwatch.js chrome",
"test:nightwatch-firefox": "SPECTRE_TEST_SUITE=terra-toggle-button node ../../node_modules/terra-toolkit/lib/scripts/nightwatch.js firefox",
"test:nightwatch-safari": "SPECTRE_TEST_SUITE=terra-toggle-button node ../../node_modules/terra-toolkit/lib/scripts/nightwatch-non-parallel.js safari"
}
}

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