Files
Stackq/node_modules/bits-ui/dist/bits/menu/utils.d.ts
T
eewing cf73cd3b4c INIT
2026-02-17 14:10:16 -06:00

12 lines
689 B
TypeScript

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;