terra-toggle
Advanced tools
Comparing version 2.15.0 to 2.16.0
@@ -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 @@ ------------------ |
@@ -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', () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61591
Updatedterra-doc-template@^1.10.0
Updatedterra-icon@^2.17.0