@yamada-ui/use-pan-event
Advanced tools
Comparing version 0.0.0-dev-20230716195657 to 0.0.0-dev-20230718011629
@@ -19,4 +19,4 @@ import { AnyPointerEvent, Point } from '@yamada-ui/utils'; | ||
}; | ||
declare const usePanEvent: (ref: RefObject<HTMLElement>, { onMove, onStart, onEnd, onSessionStart, onSessionEnd, threshold }: UsePanEventProps) => void; | ||
declare const usePanEvent: (ref: RefObject<HTMLElement>, { onMove, onStart, onEnd, onSessionStart, onSessionEnd, threshold, }: UsePanEventProps) => void; | ||
export { UsePanEventProps, usePanEvent }; |
@@ -152,3 +152,10 @@ "use strict"; | ||
}; | ||
var usePanEvent = (ref, { onMove, onStart, onEnd, onSessionStart, onSessionEnd, threshold }) => { | ||
var usePanEvent = (ref, { | ||
onMove, | ||
onStart, | ||
onEnd, | ||
onSessionStart, | ||
onSessionEnd, | ||
threshold | ||
}) => { | ||
const hasPanEvents = !!onMove || !!onStart || !!onEnd || !!onSessionStart || !!onSessionEnd; | ||
@@ -155,0 +162,0 @@ const panSession = (0, import_react.useRef)(null); |
{ | ||
"name": "@yamada-ui/use-pan-event", | ||
"version": "0.0.0-dev-20230716195657", | ||
"version": "0.0.0-dev-20230718011629", | ||
"description": "Yamada UI usePanEvent custom hook", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"framesync": "6.1.2", | ||
"@yamada-ui/utils": "0.0.0-dev-20230716195657", | ||
"@yamada-ui/utils": "0.0.0-dev-20230718011629", | ||
"@yamada-ui/use-latest-ref": "0.1.0" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16540
379
+ Added@yamada-ui/utils@0.0.0-dev-20230718011629(transitive)
- Removed@yamada-ui/utils@0.0.0-dev-20230716195657(transitive)