import { ReactNode } from 'react' const SLOTS = [1, 2, 3, 4, 5, 6, 7, 8] const STATUS = [ { name: '--chart-status-success', muted: '--chart-status-success-muted', note: 'Healthy, ok' }, { name: '--chart-status-warning', muted: '--chart-status-warning-muted', note: 'Threshold breach', }, { name: '--chart-status-destructive', muted: '--chart-status-destructive-muted', note: 'Error, failure', }, ] const DEFAULTS = [ { name: '--chart-in', note: 'Pinned: network in, disk read' }, { name: '--chart-out', note: 'Pinned: network out, disk write' }, { name: '--chart-reference', note: 'Reference lines, max values' }, { name: '--chart-muted', note: 'Headroom, idle, unused capacity' }, ] function Swatch({ token, label }: { token: string; label: string }) { return (
{label}
) } function TokenCard({ title, token, note, children, }: { title: ReactNode token: string note?: string children: ReactNode }) { return (
{title}
{token}
{children}
{note &&

{note}

}
) } function Section({ title, description, children, className, }: { title: string description: string children: ReactNode className: string }) { return (

{title}

{description}

{children}
) } export default function ChartPalette() { return (
{SLOTS.map((n) => ( ))}
{STATUS.map((d) => ( ))}
{DEFAULTS.map((d) => ( ))}
) }