react-slidedown
Advanced tools
Comparing version 2.4.4 to 2.4.5
import React from 'react'; | ||
interface SlideDownProps extends React.HTMLAttributes<HTMLDivElement> { | ||
as?: keyof JSX.IntrinsicElements | React.ComponentType<any>; | ||
closed?: boolean; | ||
@@ -4,0 +5,0 @@ transitionOnAppear?: boolean; |
@@ -104,5 +104,5 @@ "use strict"; | ||
SlideDownContent.prototype.render = function () { | ||
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 _a = this.props, _b = _a.as, as = _b === void 0 ? 'div' : _b, children = _a.children, className = _a.className, closed = _a.closed, transitionOnAppear = _a.transitionOnAppear, forwardedRef = _a.forwardedRef, rest = tslib_1.__rest(_a, ["as", "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)); | ||
return react_1.default.createElement(as, tslib_1.__assign({ ref: this.handleRef, className: containerClassName, onTransitionEnd: this.handleTransitionEnd }, rest), this.state.children); | ||
}; | ||
@@ -109,0 +109,0 @@ SlideDownContent.defaultProps = { |
{ | ||
"name": "react-slidedown", | ||
"version": "2.4.4", | ||
"version": "2.4.5", | ||
"description": "Component for animating height during mount/unmount using a CSS transition", | ||
@@ -5,0 +5,0 @@ "main": "lib/slidedown.js", |
Sorry, the diff of this file is not supported yet
15972
135