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

@yamada-ui/use-disclosure

Package Overview
Dependencies
Maintainers
1
Versions
558
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/use-disclosure - npm Package Compare versions

Comparing version 0.0.0-dev-20230705143857 to 0.0.0-dev-20230708075131

4

dist/index.d.ts
type UseDisclosureProps = {
isOpen?: boolean;
defaultIsOpen?: boolean;
onClose?: (args?: any) => void;
onOpen?: (args?: any) => void;
onClose?: (...args: any) => void;
onOpen?: (...args: any) => void;
};

@@ -7,0 +7,0 @@ declare const useDisclosure: (props?: UseDisclosureProps) => UseDisclosureReturn;

@@ -37,6 +37,6 @@ "use strict";

const onOpen = (0, import_react.useCallback)(
(args) => {
(...args) => {
if (!isControlled)
setIsOpen(true);
handleOpen == null ? void 0 : handleOpen(args);
handleOpen == null ? void 0 : handleOpen(...args);
},

@@ -46,6 +46,6 @@ [isControlled, handleOpen]

const onClose = (0, import_react.useCallback)(
(args) => {
(...args) => {
if (!isControlled)
setIsOpen(false);
handleClose == null ? void 0 : handleClose(args);
handleClose == null ? void 0 : handleClose(...args);
},

@@ -52,0 +52,0 @@ [isControlled, handleClose]

{
"name": "@yamada-ui/use-disclosure",
"version": "0.0.0-dev-20230705143857",
"version": "0.0.0-dev-20230708075131",
"description": "Yamada UI useDisclosure custom hook",

@@ -5,0 +5,0 @@ "keywords": [

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