Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-slidedown

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slidedown - npm Package Compare versions

Comparing version 2.4.6 to 2.4.7

13

lib/slidedown.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc