@overmap-ai/blocks 0.0.7-alpha.1 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import { FC, PointerEventHandler, ReactElement } from "react";
2
+ interface ChildProps {
3
+ isHovered: boolean;
4
+ onPointerEnter: PointerEventHandler<HTMLElement>;
5
+ onPointerLeave: PointerEventHandler<HTMLElement>;
6
+ }
7
+ interface HoverUtilityProps {
8
+ children: (props: ChildProps) => ReactElement;
9
+ }
10
+ /** HoverUtility is a utility component used for detecting when an element is being hovered over or not, is passes a
11
+ * isHovered variable to its children as well as props onPointerEnter and onPointerLeave that can be spread on any
12
+ * child component that should be used as the element to observe hovering on. See stories of examples of its use. */
13
+ export declare const HoverUtility: FC<HoverUtilityProps>;
14
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./HoverUtility";