New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4 to 2.4.5

1

lib/slidedown.d.ts
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;

4

lib/slidedown.js

@@ -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

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