UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

37 lines 1.19 kB
/** * @license * Copyright 2025 Kai-Orion & Sandlada * SPDX-License-Identifier: MIT */ import { type ReactiveController } from 'lit'; export interface ISingleSelectionElement extends HTMLElement { active: boolean; } export declare class NavigationTabSingleSelectionController implements ReactiveController { get controls(): [ISingleSelectionElement, ...ISingleSelectionElement[]]; private focused; private root; private readonly host; constructor(host: ISingleSelectionElement); hostConnected(): void; hostDisconnected(): void; /** * Should be called whenever the host's `checked` property changes * synchronously. */ handleCheckedChange(): void; private readonly handleFocusIn; private readonly handleFocusOut; private uncheckSiblings; /** * Updates the `tabindex` of the host and its siblings. */ private updateTabIndices; /** * Handles arrow key events from the host. Using the arrow keys will * select and check the next or previous sibling with the host's * `name` attribute. */ private readonly handleKeyDown; } //# sourceMappingURL=navigation-tab-sigle-selection-controller.d.ts.map