{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gallery-graphite-fader",
  "type": "registry:ui",
  "title": "Ridged graphite fader",
  "description": "Reusable graphite artwork with controlled state and keyboard interaction.",
  "dependencies": [
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/core-fader.json",
    "https://pluginui.com/r/gallery-graphite-control-styles.json"
  ],
  "files": [
    {
      "path": "components/ui/graphite-fader.tsx",
      "content": "/**\n * Source: https://maru.audio/ui-kit/graphite-fader\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 \"@/components/ui/graphite-controls.css\"\nimport {\n  Fader,\n  type FaderProps,\n  type FaderDesignState,\n} from \"@/components/ui/fader\"\n\nexport type GraphiteFaderProps = FaderProps\n\n/** Pure artwork; the shared Fader owns track gestures and formatted values. */\nexport function GraphiteFaderDesign({\n  value01,\n  length,\n  capInset,\n  disabled,\n}: FaderDesignState) {\n  return (\n    <div\n      className=\"graphite-fader\"\n      style={{ width: 110, height: length }}\n      aria-disabled={disabled || undefined}\n    >\n      <>\n        <span className=\"graphite-fader__scale\" aria-hidden=\"true\">\n          {Array.from({ length: 10 }, (_, i) => (\n            <i key={i} />\n          ))}\n        </span>\n        <span className=\"graphite-fader__slot\" aria-hidden=\"true\" />\n        <span\n          className=\"graphite-fader__cap\"\n          aria-hidden=\"true\"\n          style={{\n            top: `calc(${(1 - value01) * 100}% + ${(value01 * 2 - 1) * (capInset / 2)}px)`,\n          }}\n        >\n          <i />\n        </span>\n      </>\n    </div>\n  )\n}\n\n/** Convenience visual preset with the ordinary Fader contract. */\nexport function GraphiteFader({\n  label = \"Drive\",\n  length = 210,\n  orientation = \"vertical\",\n  ...control\n}: GraphiteFaderProps) {\n  return (\n    <Fader\n      {...control}\n      label={label}\n      hideLabel\n      hideValue\n      length={length}\n      orientation={orientation}\n      thickness={110}\n      capInset={68}\n      renderDesign={(state) => <GraphiteFaderDesign {...state} />}\n    />\n  )\n}\n",
      "type": "registry:component",
      "target": "@ui/graphite-fader.tsx"
    }
  ]
}
