{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-indexed-knob",
  "type": "registry:ui",
  "title": "Indexed Knob",
  "description": "Reusable molded artwork with controlled state and headless input.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/gallery-console-control-styles.json",
    "https://pluginui.com/r/core-knob.json"
  ],
  "files": [
    {
      "path": "components/ui/indexed-knob.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/indexed-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/console-controls.css\"\nimport {\n  Knob,\n  type KnobProps,\n  type KnobDesignState,\n} from \"@/components/ui/knob\"\n\nexport interface IndexedKnobProps extends KnobProps {\n  dimple?: boolean\n}\n\n/** Pure artwork. The shared Knob owns values, gestures, formatting and reset. */\nexport function IndexedKnobDesign({\n  value01,\n  size,\n  disabled,\n  dimple = false,\n}: KnobDesignState & Pick<IndexedKnobProps, \"dimple\">) {\n  return (\n    <div\n      className=\"indexed-knob\"\n      data-dimple={dimple || undefined}\n      style={\n        {\n          width: size,\n          height: size,\n          \"--indexed-knob-size\": `${size}px`,\n        } as CSSProperties\n      }\n      aria-disabled={disabled || undefined}\n    >\n      <span className=\"indexed-knob__rim\" aria-hidden=\"true\" />\n      <span className=\"indexed-knob__cap\" aria-hidden=\"true\" />\n      <span\n        className=\"indexed-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 IndexedKnob({\n  label = \"Level\",\n  size = 96,\n  dimple = false,\n  ...control\n}: IndexedKnobProps) {\n  return (\n    <Knob\n      {...control}\n      size={size}\n      label={label}\n      hideLabel\n      hideValue\n      renderDesign={(state) => <IndexedKnobDesign {...state} dimple={dimple} />}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/indexed-knob.tsx"
    }
  ]
}
