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

terra-toggle

Package Overview
Dependencies
Maintainers
10
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-toggle - npm Package Compare versions

Comparing version 2.15.0 to 2.16.0

7

CHANGELOG.md

@@ -7,2 +7,9 @@ Changelog

2.16.0 - (July 17, 2018)
------------------
### Changed
* Minor dependency version bump
* Formatting changes per eslint v4 update
* Required props no longer set a default prop
2.15.0 - (July 10, 2018)

@@ -9,0 +16,0 @@ ------------------

4

docs/DEPENDENCIES.md

@@ -9,4 +9,4 @@ # Dependency Information

| react-animate-height | ^2.0.1 | >=15.6.2 | Lightweight React component for animating height using CSS transitions. |
| terra-doc-template | ^1.8.0 | ^16.2.0 | Provides an adjustable template for documentation pages. |
| terra-icon | ^2.15.0 | ^16.2.0 | terra-icon |
| terra-doc-template | ^1.9.0 | ^16.2.0 | Provides an adjustable template for documentation pages. |
| terra-icon | ^2.16.0 | ^16.2.0 | terra-icon |

@@ -13,0 +13,0 @@ ## peerDependencies

@@ -53,3 +53,2 @@ 'use strict';

var defaultProps = {
children: null,
isAnimated: false,

@@ -56,0 +55,0 @@ isOpen: false

{
"name": "terra-toggle",
"main": "lib/Toggle.js",
"version": "2.15.0",
"version": "2.16.0",
"description": "Toggle component that transitions content in and out.",

@@ -32,4 +32,4 @@ "repository": {

"react-animate-height": "^2.0.1",
"terra-doc-template": "^1.9.0",
"terra-icon": "^2.16.0"
"terra-doc-template": "^1.10.0",
"terra-icon": "^2.17.0"
},

@@ -36,0 +36,0 @@ "scripts": {

@@ -26,3 +26,2 @@ import React from 'react';

const defaultProps = {
children: null,
isAnimated: false,

@@ -32,3 +31,5 @@ isOpen: false,

const Toggle = ({ isAnimated, isOpen, children, ...customProps }) => {
const Toggle = ({
isAnimated, isOpen, children, ...customProps
}) => {
const height = isOpen ? 'auto' : '0';

@@ -35,0 +36,0 @@ let body;

@@ -20,3 +20,3 @@ /* global browser, Terra, before */

describe('Opened', () => {
beforeEach(() => browser.url('/#/raw/tests/terra-toggle/toggle/open-toggle'));
before(() => browser.url('/#/raw/tests/terra-toggle/toggle/open-toggle'));

@@ -28,3 +28,3 @@ Terra.should.beAccessible();

describe('Animated', () => {
beforeEach(() => browser.url('/#/raw/tests/terra-toggle/toggle/animated-toggle'));
before(() => browser.url('/#/raw/tests/terra-toggle/toggle/animated-toggle'));

@@ -31,0 +31,0 @@ it('disables focusable elements when closed', () => {

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