react-slidedown
Advanced tools
Comparing version
import React from 'react'; | ||
interface SlideDownProps { | ||
children?: React.ReactNode; | ||
className?: string; | ||
interface SlideDownProps extends React.HTMLAttributes<HTMLDivElement> { | ||
closed?: boolean; | ||
@@ -6,0 +4,0 @@ transitionOnAppear?: boolean; |
@@ -101,5 +101,5 @@ "use strict"; | ||
SlideDownContent.prototype.render = function () { | ||
var className = this.props.className ? | ||
'react-slidedown ' + this.props.className : 'react-slidedown'; | ||
return (react_1.default.createElement("div", { className: className, ref: this.handleRef, onTransitionEnd: this.handleTransitionEnd }, this.state.children)); | ||
var _a = this.props, children = _a.children, className = _a.className, closed = _a.closed, transitionOnAppear = _a.transitionOnAppear, forwardedRef = _a.forwardedRef, rest = tslib_1.__rest(_a, ["children", "className", "closed", "transitionOnAppear", "forwardedRef"]); | ||
var containerClassName = className ? 'react-slidedown ' + className : 'react-slidedown'; | ||
return (react_1.default.createElement("div", tslib_1.__assign({ ref: this.handleRef, className: containerClassName, onTransitionEnd: this.handleTransitionEnd }, rest), this.state.children)); | ||
}; | ||
@@ -106,0 +106,0 @@ SlideDownContent.defaultProps = { |
{ | ||
"name": "react-slidedown", | ||
"version": "2.4.1", | ||
"version": "2.4.3", | ||
"description": "Component for animating height during mount/unmount using a CSS transition", | ||
@@ -5,0 +5,0 @@ "main": "lib/slidedown.js", |
@@ -0,0 +0,0 @@ react-slidedown |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14797
4.45%130
-1.52%