UNPKG

@spectrum-web-components/overlay

Version:

An `<sp-overlay>` element is used to decorate content that you would like to present to your visitors as "overlaid" on the rest of the application. This includes dialogs (modal and not), pickers, tooltips, context menus, et al.

22 lines (21 loc) 728 B
import { InteractionController, InteractionTypes } from './InteractionController.js'; export declare const LONGPRESS_INSTRUCTIONS: { touch: string; keyboard: string; mouse: string; }; export declare class LongpressController extends InteractionController { type: InteractionTypes; get activelyOpening(): boolean; protected longpressState: null | 'potential' | 'opening' | 'pressed'; releaseDescription: () => void; private timeout; handleLongpress(): void; handlePointerdown(event: PointerEvent): void; private handlePointerup; private handleKeydown; private handleKeyup; prepareDescription(trigger: HTMLElement): void; shouldCompleteOpen(): void; init(): void; }