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

react-modern-drawer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-modern-drawer - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

dist/index.d.ts

@@ -16,6 +16,7 @@ import React from 'react';

size?: number | string;
className?: string | undefined;
customIdSuffix?: string | undefined;
className?: string;
customIdSuffix?: string;
overlayClassName?: string;
};
declare const EZDrawer: React.FC<Props>;
export default EZDrawer;

6

dist/index.js

@@ -91,3 +91,5 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

_props$lockBackground = props.lockBackgroundScroll,
lockBackgroundScroll = _props$lockBackground === void 0 ? false : _props$lockBackground;
lockBackgroundScroll = _props$lockBackground === void 0 ? false : _props$lockBackground,
_props$overlayClassNa = props.overlayClassName,
overlayClassName = _props$overlayClassNa === void 0 ? '' : _props$overlayClassNa;
var bodyRef = React.useRef(null);

@@ -140,3 +142,3 @@ React.useEffect(function () {

id: 'EZDrawer__overlay' + idSuffix,
className: 'EZDrawer__overlay',
className: 'EZDrawer__overlay ' + overlayClassName,
style: overlayStyles

@@ -143,0 +145,0 @@ }));

@@ -88,3 +88,5 @@ import React, { useRef, useEffect, useMemo } from 'react';

_props$lockBackground = props.lockBackgroundScroll,
lockBackgroundScroll = _props$lockBackground === void 0 ? false : _props$lockBackground;
lockBackgroundScroll = _props$lockBackground === void 0 ? false : _props$lockBackground,
_props$overlayClassNa = props.overlayClassName,
overlayClassName = _props$overlayClassNa === void 0 ? '' : _props$overlayClassNa;
var bodyRef = useRef(null);

@@ -137,3 +139,3 @@ useEffect(function () {

id: 'EZDrawer__overlay' + idSuffix,
className: 'EZDrawer__overlay',
className: 'EZDrawer__overlay ' + overlayClassName,
style: overlayStyles

@@ -140,0 +142,0 @@ }));

{
"name": "react-modern-drawer",
"version": "1.2.0",
"version": "1.2.1",
"description": "Creating drawers in react made easy!",

@@ -5,0 +5,0 @@ "author": "Farzin-Firoozi",

@@ -87,2 +87,3 @@ # react-modern-drawer

| className | string | no | undefined | - | normal regular classNames and stuff |
| overlayClassName | string | no | undefined | - | normal regular classNames and stuff |
| customIdSuffix | string | no | A random string based on `Math.random()` | - | Used for making different ids for drawers, can be customized for special cases. |

@@ -89,0 +90,0 @@ | lockBackgroundScroll | boolean | no | false | - | Locks the body scroll when drawer is open. |

Sorry, the diff of this file is not supported yet

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