@yamada-ui/use-disclosure
Advanced tools
Comparing version 0.0.0-dev-20230708075735 to 0.0.0-dev-20230709165706
@@ -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.0.0-dev-20230708075735", | ||
"version": "0.0.0-dev-20230709165706", | ||
"description": "Yamada UI useDisclosure custom hook", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
7771