react-with-animation
Advanced tools
Comparing version 1.0.1 to 1.0.12
import PropTypes from 'prop-types'; | ||
import { Component } from 'react'; | ||
import React, { Component } from 'react'; | ||
@@ -55,2 +55,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
const { animationClasses, animationDuration, children, wrappedRef, className, style } = this.props; | ||
const classes = `${className ? className : ''} ${isAnimating && animationClasses ? animationClasses : ''}`; | ||
const componentProps = _extends({}, this.props, { | ||
@@ -60,3 +61,3 @@ style: _extends({}, style, { | ||
}), | ||
className: `${className} ${isAnimating ? animationClasses : ''}`, | ||
className: classes, | ||
ref: wrappedRef | ||
@@ -63,0 +64,0 @@ }); |
{ | ||
"name": "react-with-animation", | ||
"version": "1.0.1", | ||
"version": "1.0.12", | ||
"description": "A higher-order-component (HOC) to manage short-lived CSS animations in react", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
import PropTypes from 'prop-types'; | ||
import { Component } from 'react'; | ||
import React, { Component } from 'react'; | ||
@@ -53,2 +53,3 @@ const propTypes = { | ||
const { animationClasses, animationDuration, children, wrappedRef, className, style } = this.props; | ||
const classes = `${className ? className : ''} ${isAnimating && animationClasses ? animationClasses : ''}`; | ||
const componentProps = { | ||
@@ -60,3 +61,3 @@ ...this.props, | ||
}, | ||
className: `${className} ${isAnimating ? animationClasses : ''}`, | ||
className: classes, | ||
ref: wrappedRef, | ||
@@ -63,0 +64,0 @@ }; |
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
7384
139