UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

15 lines (14 loc) 1.3 kB
/// <reference types="react" /> declare type Filter = (element: Element) => void; export declare type MouseUpBlurHandler = (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void; export declare const handleMouseUpByBlurring: MouseUpBlurHandler; export declare function nextFocusableNode(node: HTMLElement, filter?: Filter): HTMLElement | Element | null; export declare function findFirstFocusableNode(element: HTMLElement, onlyDescendants?: boolean): HTMLElement | null; export declare function findFirstFocusableNodeIncludingDisabled(element: HTMLElement): HTMLElement | null; export declare function focusFirstFocusableNode(element: HTMLElement, onlyDescendants?: boolean): void; export declare function focusNextFocusableNode(node: HTMLElement, filter?: Filter): boolean; export declare function findFirstKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): HTMLElement | null; export declare function focusFirstKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): boolean; export declare function findLastKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): HTMLElement | null; export declare function focusLastKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): boolean; export {};