@invisionag/iris-react-accordion
Advanced tools
Comparing version 1.1.1 to 1.1.2
14
index.js
@@ -5,3 +5,3 @@ // @flow | ||
import type { Children } from 'react'; | ||
import './styles.scss'; | ||
import styles from './styles.scss'; | ||
@@ -31,2 +31,3 @@ type Jsx = string | React$Element<any> | number | null; | ||
open: boolean, | ||
transitioning: boolean, | ||
}; | ||
@@ -43,2 +44,3 @@ | ||
open: this.props.startOpen, | ||
transitioning: false, | ||
}; | ||
@@ -55,3 +57,12 @@ | ||
open, | ||
transitioning: true, | ||
})); | ||
setTimeout( | ||
() => | ||
this.setState(prevState => ({ | ||
...prevState, | ||
transitioning: false, | ||
})), | ||
parseInt(styles.animationduration, 10), | ||
); | ||
}; | ||
@@ -100,2 +111,3 @@ | ||
'iris-accordion--is-open': this.state.open, | ||
'iris-accordion--transitioning': this.state.transitioning, | ||
}); | ||
@@ -102,0 +114,0 @@ return ( |
{ | ||
"name": "@invisionag/iris-react-accordion", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:ivx/iris.git", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13468
200
0