Import
import { Composite } from "@typed/ui/index";This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.
Signatures
export * as Composite from "./Composite.js";Members
Composite.ActiveIdStatePublic Composite.ActiveIdState behavioral model.
Composite.InitialStateInitial Composite values. activeId defaults to null, orientation to horizontal, loop to true, RTL and virtual focus to false.
Composite.KeyboardEventLikePublic Composite.KeyboardEventLike behavioral model.
Composite.MoveLogical movement operations independent of physical key names.
Composite.MoveOptionsState, collection, and disabled-item policy consumed by Composite movement helpers.
Composite.OrientationSupported composite movement axes.
Composite.StateComplete renderer-independent state for Composite.
Composite.StateSchemaEffect Schema used by makeState to encode, decode, and hydrate Composite state.
Composite.TypeaheadBufferPublic Composite.TypeaheadBuffer behavioral model.
Composite.activeDescendantDerives activeId only under virtual focus, otherwise undefined.
Composite.focusActiveFocuses the registered active element unless state uses virtual focus or has no active id.
Composite.focusElementCalls an existing platform focus method inside Effect.sync and otherwise does nothing.
Composite.keyMoveMaps Home/End and orientation-aware Arrow keys to movement, reversing horizontal arrows for RTL.
Composite.makeStateCreates hydrated Composite state. activeId defaults to null, orientation to horizontal, loop to true, RTL and virtual focus to false.
Composite.moveComputes the next active id and updates state; collection and state failures/services are preserved in the returned Effect.
Composite.moveActiveIdReturns the id reached by first/last/next/previous with optional disabled inclusion and loop policy.
Composite.moveActiveItemReturns the full item selected by moveActiveId, or undefined when no item is reachable.
Composite.moveAndFocusMoves active state, then focuses and scrolls the mounted active item when virtual focus is disabled.
Composite.moveByKeyPrevents the native key default only when keyMove recognizes the key, then updates active state.
Composite.orderedEnabledItemsSorts a copy by mounted DOM order and then removes disabled items.
Composite.rootTabIndexDerives 0 when the root owns focus and -1 once a roving-focus item is active.
Composite.scrollActiveCalls scrollIntoView with nearest block/inline alignment for the mounted active item.
Composite.tabIndexDerives 0 only for the active item under roving focus; virtual-focus items always receive -1.
Composite.typeaheadReturns the first enabled item id in DOM order whose textValue starts with the query.
Composite.typeaheadFromReturns only the id selected by typeahead, or null when no item matches.
Composite.typeaheadKeyReturns an unmodified one-character key exactly as provided; modified and multi-character keys return null.
Composite.updateTypeaheadBufferAppends within the timeout window and starts a new query after the buffer expires.
Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.