{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "color-swatch-picker",
  "type": "registry:ui",
  "title": "Color Swatch Picker",
  "dependencies": [
    "@base-ui-next/react"
  ],
  "registryDependencies": [
    "https://hamur.dev/r/react/utils.json"
  ],
  "files": [
    {
      "path": "react/color-swatch-picker.tsx",
      "content": "'use client'\n\nimport { ColorSwatchPicker as ColorSwatchPickerPrimitive } from '@base-ui-next/react/color-swatch-picker' // base-ui-next/ui color-swatch-picker@0.1.1\nimport { cn } from '@/lib/utils'\n\nconst colorSwatchPickerClassName = 'flex flex-wrap items-center gap-2'\n\nconst colorSwatchPickerItemClassName =\n  'inline-block size-6 shrink-0 cursor-pointer rounded-md border border-foreground/20 outline-none transition-shadow [background:linear-gradient(var(--color),var(--color)),conic-gradient(color-mix(in_oklch,var(--muted-foreground)_25%,var(--background))_25%,var(--background)_0_50%,color-mix(in_oklch,var(--muted-foreground)_25%,var(--background))_0_75%,var(--background)_0)_0_0/8px_8px] focus-visible:ring-3 focus-visible:ring-ring/50 data-checked:shadow-[0_0_0_2px_var(--background),0_0_0_4px_var(--foreground)] data-disabled:cursor-not-allowed data-disabled:opacity-50'\n\n// No shadcn item: one name per Base UI part (BN-331, question 10).\nfunction ColorSwatchPicker({ className, ...props }: ColorSwatchPickerPrimitive.Root.Props) {\n  return (\n    <ColorSwatchPickerPrimitive.Root\n      data-slot=\"color-swatch-picker\"\n      className={cn(colorSwatchPickerClassName, className)}\n      {...props}\n    />\n  )\n}\n\nfunction ColorSwatchPickerItem({ className, ...props }: ColorSwatchPickerPrimitive.Item.Props) {\n  return (\n    <ColorSwatchPickerPrimitive.Item\n      data-slot=\"color-swatch-picker-item\"\n      className={cn(colorSwatchPickerItemClassName, className)}\n      {...props}\n    />\n  )\n}\n\nexport { ColorSwatchPicker, ColorSwatchPickerItem }\n",
      "type": "registry:ui",
      "target": "@ui/color-swatch-picker.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.1.1",
      "hash": "d7846839b6e773965a5cb55a3b453107acacd87494a60e1e8320f73251292d90",
      "files": {
        "@ui/color-swatch-picker.tsx": "14c0632c9bdf2d110bed67e68e470a240bc71730c00748166e74d183c15f21b2"
      }
    }
  }
}
