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

@uiw/react-overlay

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-overlay - npm Package Compare versions

Comparing version 4.6.1 to 4.6.2

37

lib/cjs/index.js

@@ -12,5 +12,7 @@ "use strict";

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

@@ -29,6 +31,4 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _react = _interopRequireWildcard(require("react"));

@@ -44,10 +44,13 @@

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
/**
* Overlay 组件
* ---------------
* 动画库 react-transition-group 文档
* 老的文档
* https://facebook.github.io/react/docs/animation.html
* 新的文档
* https://reactcommunity.org/react-transition-group/
* 动画效果
* https://daneden.github.io/animate.css/
*/
var noop = function noop() {

@@ -60,3 +63,3 @@ return undefined;

var _super = _createSuper(Overlay);
var _super = (0, _createSuper2.default)(Overlay);

@@ -212,4 +215,4 @@ function Overlay(props) {

onClosing = _this$props5.onClosing;
var decoratedChild = (0, _typeof2.default)(children) === 'object' ? /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread(_objectSpread({}, dialogProps), {}, {
style: _objectSpread(_objectSpread({}, children.props.style), dialogProps.style),
var decoratedChild = (0, _typeof2.default)(children) === 'object' ? /*#__PURE__*/(0, _react.cloneElement)(children, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, dialogProps), {}, {
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, children.props.style), dialogProps.style),
className: (0, _classnames2.default)(children.props.className, "".concat(prefixCls, "-content")),

@@ -237,3 +240,3 @@ tabIndex: 0

className: (0, _classnames2.default)(prefixCls, className, (_classnames = {}, (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-inline"), !usePortal), (0, _defineProperty2.default)(_classnames, "".concat(prefixCls, "-enter-done"), _this2.state.isOpen), _classnames))
}, hasBackdrop && /*#__PURE__*/(0, _react.cloneElement)( /*#__PURE__*/_react.default.createElement("div", null), _objectSpread(_objectSpread({}, backdropProps), {}, {
}, hasBackdrop && /*#__PURE__*/(0, _react.cloneElement)( /*#__PURE__*/_react.default.createElement("div", null), (0, _objectSpread2.default)((0, _objectSpread2.default)({}, backdropProps), {}, {
onMouseDown: _this2.handleBackdropMouseDown.bind(_this2),

@@ -262,3 +265,3 @@ className: (0, _classnames2.default)("".concat(prefixCls, "-backdrop"), backdropProps.className),

return /*#__PURE__*/_react.default.createElement(_reactPortal.default, _objectSpread(_objectSpread({}, portalProps), {
return /*#__PURE__*/_react.default.createElement(_reactPortal.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, portalProps), {
visible: this.visible

@@ -265,0 +268,0 @@ }), ' ', TransitionGroupComp, ' ');

@@ -0,3 +1,4 @@

import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _extends from "@babel/runtime/helpers/esm/extends";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _typeof from "@babel/runtime/helpers/esm/typeof";

@@ -9,13 +10,4 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";

import _inherits from "@babel/runtime/helpers/esm/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
/**

@@ -22,0 +14,0 @@ * Overlay 组件

{
"name": "@uiw/react-overlay",
"version": "4.6.1",
"version": "4.6.2",
"description": "Overlay component",

@@ -46,4 +46,4 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/react-portal": "^4.6.1",
"@uiw/utils": "^4.6.1",
"@uiw/react-portal": "^4.6.2",
"@uiw/utils": "^4.6.2",
"classnames": "2.2.6",

@@ -62,3 +62,3 @@ "react-transition-group": "^4.3.0"

},
"gitHead": "b85f1711288006a1fb0a62a8b24dcea78b0bc5d1"
"gitHead": "10eebc146750c73dd6133befac55c5dbd870d3b6"
}

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