/** * Color Editor — compact list item with inline expand-to-edit * * Shows a color swatch + name row by default. * Pencil icon appears on hover. Clicking the row expands the editor inline. */ import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { Button } from '@/components/ui/button' import { Pencil, Trash2, ChevronUp } from 'lucide-react' import { cn } from '@/lib/utils' import { GlobalColor } from '../config' interface ColorEditorProps { color: GlobalColor onChange: (updated: GlobalColor) => void onDelete?: () => void isOpen?: boolean onToggle?: () => void } export function ColorEditor({ color, onChange, onDelete, isOpen, onToggle }: ColorEditorProps) { return (