rc-dialog
Advanced tools
Comparing version 9.5.2 to 9.6.0
@@ -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 | | | | |
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
77412
34
1751