UNPKG

@smart-react-components/ui

Version:
30 lines (29 loc) 869 B
export declare const mouseWheel: string[]; export declare const placeholder: string[]; /** * Calculates the left, top, width and height of the element shown on the screen. */ export declare const calculateShownPart: (el: HTMLElement | null) => { left: number; top: number; width: number; height: number; }; /** * Checks if an element can be rendered in the React portal. */ export declare const canBeRenderedInPortal: () => boolean; /** * Gets scroll parent of the given element. * * @param el */ export declare const getScrollParent: (el: HTMLElement) => HTMLElement; /** * Checks if the given element is scrollable. */ export declare const isElementScrollable: (el: HTMLElement) => boolean; /** * Checks if target is a clickable element. */ export declare const isTargetClickable: (target: HTMLElement, container: HTMLElement) => boolean;