@yamada-ui/use-outside-click
Advanced tools
Comparing version 1.0.21 to 1.0.22-dev-20241006000212
interface UseOutsideClickProps { | ||
ref: React.RefObject<HTMLElement>; | ||
enabled?: boolean; | ||
ref: React.RefObject<HTMLElement>; | ||
handler?: (ev: Event) => void; | ||
@@ -11,4 +11,4 @@ } | ||
*/ | ||
declare const useOutsideClick: ({ ref, handler, enabled, }: UseOutsideClickProps) => void; | ||
declare const useOutsideClick: ({ ref, enabled, handler, }: UseOutsideClickProps) => void; | ||
export { type UseOutsideClickProps, useOutsideClick }; |
@@ -31,9 +31,9 @@ "use client" | ||
ref, | ||
handler, | ||
enabled = true | ||
enabled = true, | ||
handler | ||
}) => { | ||
const handlerRef = (0, import_utils.useCallbackRef)(handler); | ||
const state = (0, import_react.useRef)({ | ||
isPointerDown: false, | ||
ignoreEmulatedMouseEvents: false | ||
ignoreEmulatedMouseEvents: false, | ||
isPointerDown: false | ||
}); | ||
@@ -40,0 +40,0 @@ (0, import_react.useEffect)(() => { |
{ | ||
"name": "@yamada-ui/use-outside-click", | ||
"version": "1.0.21", | ||
"version": "1.0.22-dev-20241006000212", | ||
"description": "Yamada UI useOutsideClick custom hook", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/utils": "1.5.2" | ||
"@yamada-ui/utils": "1.5.3-dev-20241006000212" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
17002
1
+ Added@yamada-ui/utils@1.5.3-dev-20241006000212(transitive)
- Removed@yamada-ui/utils@1.5.2(transitive)