{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "jsonforms-boolean-cell",
  "description": "JSONForms checkbox cell for boolean fields inside array table layouts.",
  "dependencies": [
    "@jsonforms/core",
    "@jsonforms/react"
  ],
  "registryDependencies": [
    "checkbox"
  ],
  "files": [
    {
      "path": "registry/forms/renderers/cells/boolean-cell.tsx",
      "content": "import { CellProps, isBooleanControl, rankWith } from '@jsonforms/core';\nimport { withJsonFormsCellProps } from '@jsonforms/react';\n\nimport { Checkbox } from '~/components/ui/checkbox';\n\nconst BooleanCell = ({ data, handleChange, path, enabled }: CellProps) => (\n    <Checkbox\n        checked={data ?? false}\n        onCheckedChange={checked => handleChange(path, checked)}\n        disabled={!enabled}\n    />\n);\n\nexport const booleanCellTester = rankWith(1, isBooleanControl);\nexport default withJsonFormsCellProps(BooleanCell);",
      "type": "registry:component",
      "target": "components/forms/renderers/cells/boolean-cell.tsx"
    }
  ],
  "type": "registry:component"
}