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

@clayui/shared

Package Overview
Dependencies
Maintainers
14
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clayui/shared - npm Package Compare versions

Comparing version 3.83.1 to 3.85.0

3

lib/Overlay.d.ts

@@ -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

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