react-modern-drawer
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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; |
@@ -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
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
38609
302
106