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.2.1 to 0.2.2

14

dist/index.d.ts

@@ -7,9 +7,9 @@ type UseDisclosureProps = {

};
declare const useDisclosure: (props?: UseDisclosureProps) => UseDisclosureReturn;
type UseDisclosureReturn = [
isOpen: boolean,
onOpen: (...args: any) => void,
onClose: (...args: any) => void,
onToggle: (...args: any) => void
];
declare const useDisclosure: (props?: UseDisclosureProps) => {
isOpen: boolean;
onOpen: (...args: any) => void;
onClose: (...args: any) => void;
onToggle: (...args: any) => void;
};
type UseDisclosureReturn = ReturnType<typeof useDisclosure>;
type LazyMode = 'unmount' | 'keepMounted';

@@ -16,0 +16,0 @@ type UseLazyDisclosureProps = {

@@ -56,3 +56,3 @@ "use strict";

);
return [isOpen, onOpen, onClose, onToggle];
return { isOpen, onOpen, onClose, onToggle };
};

@@ -59,0 +59,0 @@ var useLazyDisclosure = ({

{
"name": "@yamada-ui/use-disclosure",
"version": "0.2.1",
"version": "0.2.2",
"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