UNPKG

bits-ui

Version:

The headless components for Svelte.

12 lines (11 loc) 689 B
import type { Direction } from "../../shared/index.js"; export type CheckedState = boolean | "indeterminate"; export declare const SELECTION_KEYS: string[]; export declare const FIRST_KEYS: string[]; export declare const LAST_KEYS: string[]; export declare const FIRST_LAST_KEYS: string[]; export declare const SUB_OPEN_KEYS: Record<Direction, string[]>; export declare const SUB_CLOSE_KEYS: Record<Direction, string[]>; export declare function isIndeterminate(checked?: CheckedState): checked is "indeterminate"; export declare function getCheckedState(checked: CheckedState): "checked" | "unchecked" | "indeterminate"; export declare function isMouseEvent(event: PointerEvent): boolean;