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

rc-drawer

Package Overview
Dependencies
Maintainers
4
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-drawer - npm Package Compare versions

Comparing version 5.0.0-alpha.1 to 5.0.0-alpha.2

10

es/DrawerPopup.js

@@ -9,2 +9,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

import DrawerPanel from './DrawerPanel';
import { composeRef } from "rc-util/es/ref";
import DrawerContext from './context';

@@ -129,3 +130,3 @@ export default function DrawerPopup(props) {

visible: open
}), function (_ref2) {
}), function (_ref2, maskRef) {
var motionMaskClassName = _ref2.className,

@@ -136,3 +137,4 @@ motionMaskStyle = _ref2.style;

style: _objectSpread(_objectSpread(_objectSpread({}, motionMaskStyle), maskStyle), zIndexStyle),
onClick: maskClosable && onClose
onClick: maskClosable && onClose,
ref: maskRef
});

@@ -181,7 +183,7 @@ }); // =========================== Panel ============================

leavedClassName: "".concat(prefixCls, "-content-hidden")
}), function (_ref3) {
}), function (_ref3, motionRef) {
var motionClassName = _ref3.className,
motionStyle = _ref3.style;
return /*#__PURE__*/React.createElement(DrawerPanel, {
ref: panelRef,
ref: composeRef(motionRef, panelRef),
prefixCls: prefixCls,

@@ -188,0 +190,0 @@ className: classNames(className, motionClassName),

11

lib/DrawerPopup.js

@@ -28,2 +28,4 @@ "use strict";

var _ref4 = require("rc-util/lib/ref");
var _context = _interopRequireDefault(require("./context"));

@@ -153,3 +155,3 @@

visible: open
}), function (_ref2) {
}), function (_ref2, maskRef) {
var motionMaskClassName = _ref2.className,

@@ -160,3 +162,4 @@ motionMaskStyle = _ref2.style;

style: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, motionMaskStyle), maskStyle), zIndexStyle),
onClick: maskClosable && onClose
onClick: maskClosable && onClose,
ref: maskRef
});

@@ -205,7 +208,7 @@ }); // =========================== Panel ============================

leavedClassName: "".concat(prefixCls, "-content-hidden")
}), function (_ref3) {
}), function (_ref3, motionRef) {
var motionClassName = _ref3.className,
motionStyle = _ref3.style;
return /*#__PURE__*/React.createElement(_DrawerPanel.default, {
ref: panelRef,
ref: (0, _ref4.composeRef)(motionRef, panelRef),
prefixCls: prefixCls,

@@ -212,0 +215,0 @@ className: (0, _classnames.default)(className, motionClassName),

{
"name": "rc-drawer",
"version": "5.0.0-alpha.1",
"version": "5.0.0-alpha.2",
"description": "drawer component for react",

@@ -5,0 +5,0 @@ "keywords": [

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