{
  "name": "ui-checkbox",
  "type": "registry:ui",
  "title": "Checkbox",
  "description": "Panelo primitive: checkbox.",
  "author": "Panelo UI <https://www.paneloui.com>",
  "dependencies": [
    "@ui-sdk/react@0.1.0-beta.2",
    "lucide-react@^1.73.0"
  ],
  "registryDependencies": [
    "https://www.paneloui.com/r/panelo-theme.json",
    "https://www.paneloui.com/r/lib-utils.json"
  ],
  "files": [
    {
      "path": "components/panelo-ui/ui/checkbox.tsx",
      "type": "registry:file",
      "target": "components/panelo-ui/ui/checkbox.tsx",
      "content": "'use client'\n\nimport * as React from 'react'\nimport { Checkbox as CheckboxPrimitive, CheckboxIndicator } from '@ui-sdk/react/checkbox'\nimport { Check, Minus } from 'lucide-react'\n\nimport { cn } from '@/components/panelo-ui/lib/utils'\n\n// Checkbox on the headless primitive: inside a `CheckboxGroup`, pass `value` per row and `parent` on a\n// select-all box, and the group keeps checked / indeterminate in sync.\nfunction Checkbox({ className, ...props }: Omit<React.ComponentProps<typeof CheckboxPrimitive>, 'children'>) {\n    return (\n        <CheckboxPrimitive\n            className={cn(\n                'peer border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground data-checked:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground data-indeterminate:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive grid size-4 shrink-0 place-content-center rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-disabled:cursor-not-allowed data-disabled:opacity-50',\n                className\n            )}\n            {...props}>\n            <CheckboxIndicator className=\"grid place-content-center text-current\">\n                <Check className=\"size-3.5 in-data-indeterminate:hidden\" aria-hidden />\n                <Minus className=\"hidden size-3.5 in-data-indeterminate:block\" aria-hidden />\n            </CheckboxIndicator>\n        </CheckboxPrimitive>\n    )\n}\n\nexport { Checkbox }\n"
    }
  ]
}