@openproject/primer-view-components
Version:
ViewComponents of the Primer Design System for OpenProject
18 lines (17 loc) • 525 B
TypeScript
import AnchoredPositionElement from '../../anchored_position';
type StackEntry = {
element: AnchoredPositionElement;
abortController?: AbortController;
};
export declare class ActionMenuFocusZoneStack {
#private;
constructor();
get current(): StackEntry | undefined;
push(next: AnchoredPositionElement, options?: {
trapFocus: boolean;
}): void;
pop(target?: AnchoredPositionElement): void;
elementIsMenuItem(element: HTMLElement): boolean;
get isEmpty(): boolean;
}
export {};