{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons",
  "title": "JbmIcon",
  "description": "Twelve original geometric SVG icons with outline and paper treatments, inherited color, and optional accessible labels.",
  "registryDependencies": [
    "@jbm/tokens"
  ],
  "files": [
    {
      "path": "registry/jbm/ui/icons.tsx",
      "content": "import type { CSSProperties } from \"react\"\nimport { color as palette, stroke } from \"../lib/tokens\"\n\n/** Original 24-unit silhouettes; interior marks remain unfilled in both treatments. */\nexport const iconPaths = {\n  \"arrow-right\": { body: \"\", marks: \"M4 12H20M14 6L20 12L14 18\" },\n  search: {\n    body: \"M18.5 10.5A8 8 0 1 1 2.5 10.5A8 8 0 1 1 18.5 10.5Z\",\n    marks: \"M16.157 16.157L20.5 20.5\",\n  },\n  close: { body: \"\", marks: \"M6 6L18 18M18 6L6 18\" },\n  check: { body: \"\", marks: \"M4 12L9 17L20 6\" },\n  play: { body: \"M7 4L20 12L7 20Z\", marks: \"\" },\n  replay: { body: \"\", marks: \"M4 10A8 8 0 1 1 6 18M4 4V10H10\" },\n  folder: { body: \"M3 5H9L12 8H21V20H3Z\", marks: \"M3 11H21\" },\n  notebook: {\n    body: \"M5 3H20V21H5Z\",\n    marks: \"M9 3V21M3 7H6M3 12H6M3 17H6M13 8H16\",\n  },\n  dataset: { body: \"M3 4H21V20H3Z\", marks: \"M3 9H21M3 14H21M9 4V20\" },\n  chart: { body: \"M8 20V12H13V20ZM13 20V5H18V20Z\", marks: \"M3 4V20H21\" },\n  code: { body: \"\", marks: \"M7 7L2 12L7 17M17 7L22 12L17 17M14 4L10 20\" },\n  agent: { body: \"M4 7H20V20H4Z\", marks: \"M12 3V7M8 12V13M16 12V13M9 17H15\" },\n} as const\n\nexport type IconName = keyof typeof iconPaths\nexport type IconTreatment = \"outline\" | \"paper\"\n\nexport function JbmIcon({\n  name,\n  size = 24,\n  color = \"currentColor\",\n  treatment = \"outline\",\n  paperColor = palette.bg,\n  label,\n  style,\n}: {\n  /** One of the twelve original icon names. */\n  name: IconName\n  /** Square size in CSS pixels; invalid values fall back to 24. */\n  size?: number\n  /** Outline and interior marks; inherits text color by default. */\n  color?: string\n  /** Outline is transparent; paper fills only enclosed silhouettes. */\n  treatment?: IconTreatment\n  /** Fill used by the paper treatment; set explicitly for dark surfaces. */\n  paperColor?: string\n  /** Accessible name for a meaningful standalone image; omit beside labeled controls. */\n  label?: string\n  /** Inline layout overrides, such as verticalAlign or margin. */\n  style?: CSSProperties\n}) {\n  const geometry = iconPaths[name]\n  const dimension = Number.isFinite(size) && size > 0 ? size : 24\n  return (\n    <svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={dimension}\n      height={dimension}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={stroke.outline * (5 / 6)}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      role={label ? \"img\" : undefined}\n      aria-label={label || undefined}\n      aria-hidden={label ? undefined : true}\n      focusable=\"false\"\n      style={{\n        display: \"inline-block\",\n        flexShrink: 0,\n        verticalAlign: \"middle\",\n        ...style,\n      }}\n    >\n      {geometry.body && (\n        <path\n          d={geometry.body}\n          fill={treatment === \"paper\" ? paperColor : \"none\"}\n        />\n      )}\n      {geometry.marks && <path d={geometry.marks} />}\n    </svg>\n  )\n}\n",
      "type": "registry:ui",
      "target": "src/jbm/ui/icons.tsx"
    }
  ],
  "categories": [
    "UI"
  ],
  "type": "registry:ui"
}