@chakra-ui/hooks
Advanced tools
Comparing version 2.1.6 to 2.2.0
@@ -678,4 +678,2 @@ "use strict"; | ||
const target = event.target; | ||
if (event.button > 0) | ||
return false; | ||
if (target) { | ||
@@ -682,0 +680,0 @@ const doc = (0, import_utils13.getOwnerDocument)(target); |
@@ -1,2 +0,2 @@ | ||
declare type UseAnimationStateProps = { | ||
type UseAnimationStateProps = { | ||
isOpen: boolean; | ||
@@ -3,0 +3,0 @@ ref: React.RefObject<HTMLElement>; |
@@ -1,2 +0,2 @@ | ||
declare type InitialState = boolean | (() => boolean); | ||
type InitialState = boolean | (() => boolean); | ||
/** | ||
@@ -3,0 +3,0 @@ * React hook to manage boolean (on - off) states |
@@ -1,2 +0,2 @@ | ||
declare type InitFn<T> = () => T; | ||
type InitFn<T> = () => T; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates a constant value over the lifecycle of a component. |
@@ -17,4 +17,4 @@ interface UseDisclosureProps { | ||
}; | ||
declare type UseDisclosureReturn = ReturnType<typeof useDisclosure>; | ||
type UseDisclosureReturn = ReturnType<typeof useDisclosure>; | ||
export { UseDisclosureProps, UseDisclosureReturn, useDisclosure }; |
@@ -1,3 +0,3 @@ | ||
declare type DocumentOrElement = Document | HTMLElement | null; | ||
declare type EventListenerEnv = (() => DocumentOrElement) | DocumentOrElement; | ||
type DocumentOrElement = Document | HTMLElement | null; | ||
type EventListenerEnv = (() => DocumentOrElement) | DocumentOrElement; | ||
/** | ||
@@ -4,0 +4,0 @@ * React hook to manage browser event listeners |
@@ -1,2 +0,2 @@ | ||
declare type UseFocusEffectOptions = { | ||
type UseFocusEffectOptions = { | ||
shouldFocus: boolean; | ||
@@ -3,0 +3,0 @@ preventScroll?: boolean; |
@@ -1,2 +0,2 @@ | ||
declare type ReactRef<T> = React.Ref<T> | React.MutableRefObject<T>; | ||
type ReactRef<T> = React.Ref<T> | React.MutableRefObject<T>; | ||
declare function assignRef<T = any>(ref: ReactRef<T> | undefined, value: T): void; | ||
@@ -3,0 +3,0 @@ /** |
@@ -99,4 +99,2 @@ "use strict"; | ||
const target = event.target; | ||
if (event.button > 0) | ||
return false; | ||
if (target) { | ||
@@ -103,0 +101,0 @@ const doc = (0, import_utils2.getOwnerDocument)(target); |
{ | ||
"name": "@chakra-ui/hooks", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"description": "React hooks for Chakra components", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
"react": "^18.0.0", | ||
"clean-package": "2.1.1" | ||
"clean-package": "2.2.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "clean-package": "../../../clean-package.config.json", |
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
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
145789
4510