@clayui/shared
Advanced tools
Comparing version 3.83.1 to 3.85.0
@@ -12,2 +12,3 @@ /** | ||
isOpen: boolean; | ||
menuClassName?: string; | ||
menuRef: React.RefObject<HTMLElement>; | ||
@@ -24,3 +25,3 @@ onClose: (action: 'escape' | 'blur') => void; | ||
*/ | ||
export declare function Overlay({ children, isCloseOnInteractOutside, isKeyboardDismiss, isModal, isOpen, menuRef, onClose, portalRef, suppress, triggerRef, }: Props): JSX.Element; | ||
export declare function Overlay({ children, isCloseOnInteractOutside, isKeyboardDismiss, isModal, isOpen, menuClassName, menuRef, onClose, portalRef, suppress, triggerRef, }: Props): JSX.Element; | ||
export {}; |
@@ -44,2 +44,3 @@ "use strict"; | ||
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen, | ||
menuClassName = _ref.menuClassName, | ||
menuRef = _ref.menuRef, | ||
@@ -109,2 +110,3 @@ onClose = _ref.onClose, | ||
return /*#__PURE__*/_react.default.createElement(_Portal.ClayPortal, { | ||
className: menuClassName, | ||
subPortalRef: portalRef | ||
@@ -111,0 +113,0 @@ }, isModal && /*#__PURE__*/_react.default.createElement("span", { |
@@ -34,3 +34,3 @@ "use strict"; | ||
var _useState = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : value), | ||
var _useState = (0, _react.useState)(defaultValue === undefined ? value : defaultValue), | ||
_useState2 = _slicedToArray(_useState, 2), | ||
@@ -37,0 +37,0 @@ internalValue = _useState2[0], |
{ | ||
"name": "@clayui/shared", | ||
"version": "3.83.1", | ||
"version": "3.85.0", | ||
"description": "ClayShared component", | ||
@@ -30,3 +30,3 @@ "license": "BSD-3-Clause", | ||
"@clayui/button": "^3.83.0", | ||
"@clayui/link": "^3.56.0", | ||
"@clayui/link": "^3.85.0", | ||
"@clayui/provider": "^3.77.0", | ||
@@ -46,3 +46,3 @@ "aria-hidden": "^1.2.2", | ||
], | ||
"gitHead": "8a5c812b8913584165a8b98b8deea79ed76cf38a" | ||
"gitHead": "f6f5a2415198707bd0910fb016a0c32c1a99a318" | ||
} |
@@ -31,3 +31,5 @@ /** | ||
}: Props<Value>) { | ||
const [internalValue, setInternalValue] = useState(defaultValue ?? value); | ||
const [internalValue, setInternalValue] = useState( | ||
defaultValue === undefined ? value : defaultValue | ||
); | ||
@@ -34,0 +36,0 @@ warning( |
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
163689
4600
Updated@clayui/link@^3.85.0