@tamagui/dismissable
Advanced tools
Comparing version 1.0.1-beta.140 to 1.0.1-beta.141
@@ -47,6 +47,6 @@ import { useEscapeKeydown } from "@radix-ui/react-use-escape-keydown"; | ||
return; | ||
onPointerDownOutside == null ? void 0 : onPointerDownOutside(event); | ||
onInteractOutside == null ? void 0 : onInteractOutside(event); | ||
onPointerDownOutside?.(event); | ||
onInteractOutside?.(event); | ||
if (!event.defaultPrevented) | ||
onDismiss == null ? void 0 : onDismiss(); | ||
onDismiss?.(); | ||
}); | ||
@@ -58,6 +58,6 @@ const focusOutside = useFocusOutside((event) => { | ||
return; | ||
onFocusOutside == null ? void 0 : onFocusOutside(event); | ||
onInteractOutside == null ? void 0 : onInteractOutside(event); | ||
onFocusOutside?.(event); | ||
onInteractOutside?.(event); | ||
if (!event.defaultPrevented) | ||
onDismiss == null ? void 0 : onDismiss(); | ||
onDismiss?.(); | ||
}); | ||
@@ -68,3 +68,3 @@ useEscapeKeydown((event) => { | ||
return; | ||
onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(event); | ||
onEscapeKeyDown?.(event); | ||
if (!event.defaultPrevented && onDismiss) { | ||
@@ -71,0 +71,0 @@ event.preventDefault(); |
{ | ||
"name": "@tamagui/dismissable", | ||
"version": "1.0.1-beta.140", | ||
"version": "1.0.1-beta.141", | ||
"sideEffects": true, | ||
@@ -25,5 +25,5 @@ "source": "src/index.ts", | ||
"@radix-ui/react-use-escape-keydown": "^0.1.0", | ||
"@tamagui/compose-refs": "^1.0.1-beta.140", | ||
"@tamagui/core": "^1.0.1-beta.140", | ||
"@tamagui/use-event": "^1.0.1-beta.140" | ||
"@tamagui/compose-refs": "^1.0.1-beta.141", | ||
"@tamagui/core": "^1.0.1-beta.141", | ||
"@tamagui/use-event": "^1.0.1-beta.141" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "^1.0.1-beta.140", | ||
"@tamagui/build": "^1.0.1-beta.141", | ||
"react": "*", | ||
@@ -38,0 +38,0 @@ "react-dom": "*" |
Sorry, the diff of this file is not supported yet
103695