import { defineWebComponent } from './define'; import { Status, type StatusKind } from '../ui/status'; interface Props extends Record { /** Presence/notification state → color. `new` (default) maps to the blue hue. */ status?: StatusKind; /** Animated ping ring (off by default; respects prefers-reduced-motion). */ pulse?: boolean; /** Accessible name. Without it the dot is decorative. */ label?: string; /** `sm` (default) or `md`. */ size?: 'sm' | 'md'; } /** * `` — a small presence / new dot. * * ```html * * * ``` * Recolor via `::part(dot)`. */ defineWebComponent('kai-status', { status: 'new', pulse: false, label: undefined, size: 'sm', }, (props, { flag }) => ( <> {/* Base sets `:host{display:block}`; a presence dot sits inline beside an avatar/label, so inline-flex like kai-button. */} ));