Socket
Socket
Sign inDemoInstall

rc-dialog

Package Overview
Dependencies
Maintainers
11
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-dialog - npm Package Compare versions

Comparing version 9.5.2 to 9.6.0

15

es/Dialog/Content/Panel.js

@@ -49,8 +49,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";

var sentinelEndRef = useRef();
var entityRef = useRef();
React.useImperativeHandle(ref, function () {
return {
focus: function focus() {
var _entityRef$current;
(_entityRef$current = entityRef.current) === null || _entityRef$current === void 0 || _entityRef$current.focus({
var _sentinelStartRef$cur;
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
preventScroll: true

@@ -136,9 +135,4 @@ });

}, /*#__PURE__*/React.createElement("div", {
ref: sentinelStartRef,
tabIndex: 0,
ref: sentinelStartRef,
style: sentinelStyle,
"aria-hidden": "true"
}), /*#__PURE__*/React.createElement("div", {
ref: entityRef,
tabIndex: -1,
style: entityStyle

@@ -150,4 +144,3 @@ }, /*#__PURE__*/React.createElement(MemoChildren, {

ref: sentinelEndRef,
style: sentinelStyle,
"aria-hidden": "true"
style: sentinelStyle
}));

@@ -154,0 +147,0 @@ });

@@ -59,8 +59,7 @@ "use strict";

var sentinelEndRef = (0, _react.useRef)();
var entityRef = (0, _react.useRef)();
_react.default.useImperativeHandle(ref, function () {
return {
focus: function focus() {
var _entityRef$current;
(_entityRef$current = entityRef.current) === null || _entityRef$current === void 0 || _entityRef$current.focus({
var _sentinelStartRef$cur;
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
preventScroll: true

@@ -146,9 +145,4 @@ });

}, /*#__PURE__*/_react.default.createElement("div", {
ref: sentinelStartRef,
tabIndex: 0,
ref: sentinelStartRef,
style: sentinelStyle,
"aria-hidden": "true"
}), /*#__PURE__*/_react.default.createElement("div", {
ref: entityRef,
tabIndex: -1,
style: entityStyle

@@ -160,4 +154,3 @@ }, /*#__PURE__*/_react.default.createElement(_MemoChildren.default, {

ref: sentinelEndRef,
style: sentinelStyle,
"aria-hidden": "true"
style: sentinelStyle
}));

@@ -164,0 +157,0 @@ });

{
"name": "rc-dialog",
"version": "9.5.2",
"version": "9.6.0",
"description": "dialog ui component for react",

@@ -69,2 +69,3 @@ "keywords": [

"bootstrap": "^4.3.1",
"cheerio": "1.0.0-rc.12",
"cross-env": "^7.0.0",

@@ -80,3 +81,3 @@ "dumi": "^2.1.3",

"gh-pages": "^6.1.1",
"glob": "^7.1.6",
"glob": "^11.0.0",
"husky": "^8.0.3",

@@ -83,0 +84,0 @@ "less": "^4.1.3",

@@ -56,4 +56,4 @@ # rc-dialog

| className | String | | additional className for dialog | |
| classNames | { mask?: string; wrapper?: string; header?: string; body?: string; footer?: string} | | pass className to target area | |
| styles | { mask?: CSSProperties; wrapper?: CSSProperties; header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties} | | pass styles to target area | |
| classNames | { header?: string; body?: string; footer?: string; mask?: string; content?: string; wrapper?: string; } | | pass className to target area | |
| styles | { header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties; } | | pass styles to target area | |
| style | Object | {} | Root style for dialog element.Such as width, height | |

@@ -60,0 +60,0 @@ | zIndex | Number | | | |

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