{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-graphite-knob",
  "type": "registry:ui",
  "title": "Domed graphite dial",
  "description": "Reusable graphite artwork with controlled state and keyboard interaction.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-graphite-control-styles.json",
    "https://pluginui.com/r/core-knob.json"
  ],
  "files": [
    {
      "path": "components/ui/graphite-knob.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/graphite-knob\n * Copyright © [Maru](https://maru.audio)\n *\n * Maru UI Kit — https://maru.audio/ui-kit\n *\n * Installed from the Maru UI registry. This file is yours now: edit it\n * freely, it will not be overwritten unless you re-run the add command.\n *\n * Keep this item’s companion files and CSS imports together. Dependencies\n * declared by the registry are installed with the source.\n */\nimport type { CSSProperties } from \"react\"\nimport \"@/components/ui/graphite-controls.css\"\nimport {\n  Knob,\n  type KnobProps,\n  type KnobDesignState,\n} from \"@/components/ui/knob\"\n\nexport interface GraphiteKnobProps extends KnobProps {}\n\n/** Pure artwork. The shared Knob owns values, gestures, formatting and reset. */\nexport function GraphiteKnobDesign({\n  value01,\n  size,\n  disabled,\n}: KnobDesignState) {\n  return (\n    <div\n      className=\"graphite-knob\"\n      style={{ width: size, height: size } as CSSProperties}\n      aria-disabled={disabled || undefined}\n    >\n      <svg\n        viewBox=\"0 0 200 200\"\n        className=\"graphite-knob__scale\"\n        aria-hidden=\"true\"\n      >\n        {Array.from({ length: 13 }, (_, i) => {\n          const a = ((-225 + i * 22.5) * Math.PI) / 180\n          return (\n            <circle\n              key={i}\n              cx={100 + Math.cos(a) * 96}\n              cy={100 + Math.sin(a) * 96}\n              r=\"4.3\"\n              fill={i === 12 ? \"#bb805b\" : \"#d4dbdc\"}\n            />\n          )\n        })}\n      </svg>\n      <span className=\"graphite-knob__plate\" aria-hidden=\"true\" />\n      <span className=\"graphite-knob__cap\" aria-hidden=\"true\" />\n      <span\n        className=\"graphite-knob__rotor\"\n        style={{ transform: `rotate(${-135 + value01 * 270}deg)` }}\n        aria-hidden=\"true\"\n      >\n        <i />\n      </span>\n    </div>\n  )\n}\n\n/** Convenience visual preset with the ordinary Knob contract. */\nexport function GraphiteKnob({\n  label = \"Master gain\",\n  size = 200,\n  ...control\n}: GraphiteKnobProps) {\n  return (\n    <Knob\n      {...control}\n      size={size}\n      label={label}\n      hideLabel\n      hideValue\n      renderDesign={(state) => <GraphiteKnobDesign {...state} />}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/graphite-knob.tsx"
    }
  ]
}
