UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

22 lines 1.06 kB
/** * Colorpicker core — color-pick state machine (ADR 0034 wedge 9). * * Framework-free, DOM-free, timer-free: parsing, formatting, and WCAG * contrast are pure math (`./color.ts`); the picker UI (canvas/sliders/ * grid) is the visual runtime. The rare pure-build wedge — no Tier-1 * headless exists for color picking, and this core needs no adoptions. * * const picker = createColorPickerCore({ initial: '#3366ff' }); * picker.actions.open(); * picker.actions.setDraft('#ff8800'); * picker.actions.commit(); * * Consumers: forms color field (schema-derived control), timeline mark * colors, design tokens. Anatomy reference: ui-thing Color Picker. * * @module trellis/colorpicker */ import type { ColorPickerConfig, UseColorPickerReturn } from './types.js'; export type { ColorContrast, ColorFormat, ColorPickerActions, ColorPickerConfig, ColorPickerState, UseColorPickerReturn, } from './types.js'; export declare function createColorPickerCore(config?: ColorPickerConfig): UseColorPickerReturn; //# sourceMappingURL=index.d.ts.map