{
  "component": {
    "id": "checkbox",
    "name": "Checkbox",
    "tier": "pro",
    "exampleId": "checkbox",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/core-demos.tsx",
    "exportName": "CheckboxDemo",
    "sha256": "59b8472f7ac32c05ce12293dfca76c673c76c009aa04e7a300c45bba856dc1be",
    "helperImports": [],
    "directComponentImports": [
      "checkbox"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/checkbox",
    "registryUrl": "https://tidalui.com/r/pro/checkbox.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/checkbox",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/checkbox",
      "registryUrl": "https://tidalui.com/r/pro/checkbox.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/checkbox.tsx",
    "exports": [
      "TidalCheckbox"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/checkbox.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-checkbox",
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "checkbox"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/checkbox.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/checkbox.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/demo-styles.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { TidalCheckbox } from \"./components/ui/checkbox\";\n\nimport \"./components/ui/checkbox.css\";\n\nimport { useState } from \"react\";\n\n\n\nconst tidalExampleStyles = \".checkbox-specimen{width:100%;max-width:370px;background:var(--t-surface);border:1px solid var(--t-border);border-radius:var(--t-radius-card);padding:23px;box-shadow:0 12px 24px -14px #00000026,0 1px 2px #00000008}.checkbox-specimen>.demo-eyebrow{font-size:11px}.checkbox-specimen>h3{font-size:23px;letter-spacing:-.8px;margin:12px 0 18px;color:var(--t-ink)}.checkbox-demo-progress{font-size:11px;color:var(--t-muted);margin-bottom:14px}.checkbox-demo-progress>div{height:4px;background:var(--t-subtle);border-radius:2px;margin-top:10px;overflow:hidden}.checkbox-demo-progress>div>span{display:block;background:var(--t-accent);height:100%;transition:width 320ms var(--t-ease-out);border-radius:2px}.checkbox-demo-steps{border-top:1px solid var(--t-border);margin-top:8px;padding-top:10px}.checkbox-demo-steps>.tidal-checkbox-row{margin-bottom:9px}.checkbox-demo-status{font-size:11px;color:var(--t-muted);margin:17px 0 0}\";\n\nexport function CheckboxDemo() {\n  const [invite, setInvite] = useState(true);\n  const [project, setProject] = useState(false);\n  const all =\n    invite && project ? true : !invite && !project ? false : \"indeterminate\";\n  return (\n    <form\n      className=\"checkbox-specimen\"\n      onSubmit={(event) => event.preventDefault()}\n    >\n      <div className=\"checkbox-demo-progress\">\n        <span>{Number(invite) + Number(project) + 1} of 3 ready</span>\n        <div>\n          <span\n            style={{\n              width: `${((Number(invite) + Number(project) + 1) / 3) * 100}%`,\n            }}\n          />\n        </div>\n      </div>\n      <TidalCheckbox\n        label=\"Select available steps\"\n        checked={all}\n        onCheckedChange={(value) => {\n          setInvite(value === true);\n          setProject(value === true);\n        }}\n      />\n      <div className=\"checkbox-demo-steps\">\n        <TidalCheckbox\n          label=\"Invite your team\"\n          description=\"Add teammates to the sample workspace.\"\n          checked={invite}\n          onCheckedChange={(value) => setInvite(value === true)}\n          name=\"steps\"\n          value=\"invite\"\n        />\n        <TidalCheckbox\n          label=\"Create your first project\"\n          description=\"Add the first sample project.\"\n          checked={project}\n          onCheckedChange={(value) => setProject(value === true)}\n          name=\"steps\"\n          value=\"project\"\n        />\n        <TidalCheckbox\n          label=\"Workspace protected\"\n          description=\"Security settings are already enabled.\"\n          checked={true}\n          onCheckedChange={() => {}}\n          disabled\n          name=\"steps\"\n          value=\"security\"\n        />\n      </div>\n      <p className=\"checkbox-demo-status\" role=\"status\">\n        {invite && project\n          ? \"All setup steps complete.\"\n          : \"Complete the remaining setup steps.\"}\n      </p>\n    </form>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <CheckboxDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/checkbox.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "checked",
      "type": "inferred-from-existing-demo",
      "initial": "true",
      "setter": "setInvite",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCheckedChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onSubmit",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [
      "steps"
    ],
    "expectedFormData": {
      "steps": "fixture value"
    },
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
