Rokkit 1.0.3

@rokkit/states provides reactive state primitives, navigation controllers, and application stores. These are the building blocks used internally by all Rokkit components — and available for building custom accessible UI.

ProxyItem — view mapping

A read-only view that resolves field mappings for a single item. Used by all Rokkit components to normalize data access via the fields prop:

svelte
Highlighting code...

ProxyTree is the hierarchical version, used for tree data. LazyProxyItem defers field resolution until accessed.

ListController — navigation state

Manages focus and selection state for a flat or grouped list. No DOM dependency — works in tests without a browser. Used with the navigator action from @rokkit/actions:

svelte
Highlighting code...

TableController — tabular navigation

Manages row/column focus for data tables. Provides moveRow(delta), moveCol(delta), and cell selection. Used internally by the Table component.

vibe — reactive theming store

Tracks the current theme attributes on the <html> element. Read it to know the active style, mode, and palette. ThemeSwitcherToggle from @rokkit/app writes to vibe when the user switches themes:

svelte
Highlighting code...

All exports

ExportTypePurpose
ProxyItemclassRead-only field-mapped view of one item
LazyProxyItemclassProxyItem with deferred field resolution
ProxyTreeclassHierarchical ProxyItem for tree data
WrapperclassReactive model wrapper with change tracking
LazyWrapperclassWrapper with lazy-loading support
ListControllerclassFlat/grouped list navigation state
TableControllerclassRow/column navigation for tables
vibestoreReactive current-theme state (style/mode/palette)
messagesstoreApp-level notification/toast message queue
watchMediafunctionReactive media query watcher
defaultBreakpointsobjectStandard breakpoint definitions for watchMedia
BASE_FIELDSobjectDefault field mapping (label/value/icon/etc.)

Related