@acrool/react-picker 0.0.11 → 0.1.0-alpha.0

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 { RefObject } from 'react';
2
+ import { EVertical } from '../types';
3
+ /**
4
+ * Get the closest scrollable parent of an element.
5
+ * Caches results for performance.
6
+ */
7
+ export declare function getScrollParent(element: HTMLElement): HTMLElement | Window;
8
+ /**
9
+ * Update the position of the picker element relative to the anchor element.
10
+ * @param anchorRef Reference to the anchor element.
11
+ * @param pickerRef Reference to the picker element.
12
+ * @param setVertical Callback to set vertical alignment.
13
+ */
14
+ export declare const updatePosition: (anchorRef: RefObject<HTMLElement>, pickerRef: RefObject<HTMLElement>, setVertical: (vertical: EVertical) => void) => void;