import { AlertCircle, AlertTriangle, ChevronDown, Clock, CloudOff, Info } from 'lucide-react' /** Shared building blocks. Quiet chrome: neutrals, one ink-blue accent, hairlines, no glow. */ const BTN = 'inline-flex min-h-11 items-center justify-center gap-2 rounded-control px-5 text-base font-medium transition-colors duration-150 ease-out disabled:cursor-not-allowed' const VARIANTS = { primary: 'bg-accent text-on-accent hover:bg-accent-hover disabled:bg-raised disabled:text-ink-3', secondary: 'border border-control bg-card text-ink hover:bg-raised disabled:border-hairline disabled:text-ink-3', text: 'min-h-11 px-1 text-accent underline underline-offset-4 hover:text-accent-hover', } export function Button({ variant = 'secondary', className = '', children, ...props }) { return ( ) } export function Card({ as: Tag = 'section', className = '', children, ...props }) { return ( {children} ) } export function CardBody({ className = '', children }) { return
{children}
} /** The signature: where a value or answer came from, in small mono text. */ export function Source({ children, tone = 'neutral', className = '' }) { const tones = { neutral: 'border-hairline text-ink-3', warning: 'border-warning-line bg-warning-soft text-warning', } return ( {children} ) } const BANNERS = { info: { icon: Info, cls: 'border-hairline bg-raised', ic: 'text-accent' }, warning: { icon: AlertTriangle, cls: 'border-warning-line bg-warning-soft', ic: 'text-warning' }, error: { icon: AlertCircle, cls: 'border-danger-line bg-danger-soft', ic: 'text-danger' }, limit: { icon: Clock, cls: 'border-warning-line bg-warning-soft', ic: 'text-warning' }, offline: { icon: CloudOff, cls: 'border-warning-line bg-warning-soft', ic: 'text-warning' }, } export function Banner({ kind = 'info', title, children, role = 'status', className = '' }) { const b = BANNERS[kind] const Icon = b.icon return (
) } export function Disclosure({ title, hint, icon: Icon, defaultOpen = false, children }) { return (
{Icon &&
{children}
) } export function Disclaimer({ children }) { return (

) } export function Spinner({ className = 'size-[18px]' }) { return (