react-slidedown
Advanced tools
Comparing version 2.4.6 to 2.4.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SlideDown = void 0; | ||
var tslib_1 = require("tslib"); | ||
var react_1 = tslib_1.__importStar(require("react")); | ||
var react_1 = (0, tslib_1.__importStar)(require("react")); | ||
var SlideDownContent = (function (_super) { | ||
tslib_1.__extends(SlideDownContent, _super); | ||
(0, tslib_1.__extends)(SlideDownContent, _super); | ||
function SlideDownContent(props) { | ||
@@ -21,3 +22,3 @@ var _this = _super.call(this, props) || this; | ||
else { | ||
throw new Error("Invalid forwardedRef " + _this.props.forwardedRef); | ||
throw new Error("Invalid forwardedRef ".concat(_this.props.forwardedRef)); | ||
} | ||
@@ -105,5 +106,5 @@ } | ||
SlideDownContent.prototype.render = function () { | ||
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 _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 = (0, tslib_1.__rest)(_a, ["as", "children", "className", "closed", "transitionOnAppear", "forwardedRef"]); | ||
var containerClassName = className ? 'react-slidedown ' + className : 'react-slidedown'; | ||
return react_1.default.createElement(as, tslib_1.__assign({ ref: this.handleRef, className: containerClassName, onTransitionEnd: this.handleTransitionEnd }, rest), this.state.children); | ||
return react_1.default.createElement(as, (0, tslib_1.__assign)({ ref: this.handleRef, className: containerClassName, onTransitionEnd: this.handleTransitionEnd }, rest), this.state.children); | ||
}; | ||
@@ -116,4 +117,4 @@ SlideDownContent.defaultProps = { | ||
}(react_1.Component)); | ||
exports.SlideDown = react_1.forwardRef(function (props, ref) { return (react_1.default.createElement(SlideDownContent, tslib_1.__assign({}, props, { forwardedRef: ref }))); }); | ||
exports.SlideDown = (0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(SlideDownContent, (0, tslib_1.__assign)({}, props, { forwardedRef: ref }))); }); | ||
exports.default = exports.SlideDown; | ||
//# sourceMappingURL=slidedown.js.map |
{ | ||
"name": "react-slidedown", | ||
"version": "2.4.6", | ||
"version": "2.4.7", | ||
"description": "Component for animating height during mount/unmount using a CSS transition", | ||
@@ -44,7 +44,7 @@ "main": "lib/slidedown.js", | ||
"rimraf": "^2.6.2", | ||
"typescript": "^3.0.0", | ||
"typescript": "^4.5.4", | ||
"watchify": "^3.11.0" | ||
}, | ||
"dependencies": { | ||
"tslib": "^1.9.0" | ||
"tslib": "^2.0.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
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
21114
263
+ Addedtslib@2.8.1(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.0.0