{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "authentication-16",
  "type": "registry:block",
  "description": "OAuth consent screen listing requested permissions with checkboxes and Allow or Cancel buttons.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "checkbox"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/authentication/authentication-16.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ArrowLeftRight,\n  Calendar,\n  Contact,\n  FileText,\n  Info,\n  Mail,\n  ShieldCheck,\n} from \"@designali/icons\"\nimport { Figma } from \"@designali/logos\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Checkbox } from \"@workspace/ui/components/checkbox\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst scopes = [\n  { id: \"profile\", icon: Contact, label: \"View your name and profile photo\", required: true },\n  { id: \"email\", icon: Mail, label: \"View your email address\", required: true },\n  { id: \"calendar\", icon: Calendar, label: \"Read and update your Designali projects\", required: false },\n  { id: \"files\", icon: FileText, label: \"Read templates and UI kits you choose to share\", required: false },\n]\n\nexport default function Authentication16() {\n  const [granted, setGranted] = useState<string[]>(scopes.map((scope) => scope.id))\n\n  function toggle(id: string) {\n    setGranted((current) => (current.includes(id) ? current.filter((item) => item !== id) : [...current, id]))\n  }\n\n  return (\n    <section className=\"flex min-h-[720px] w-full items-center justify-center bg-muted/40 px-6 py-16\">\n      <div className=\"w-full max-w-md border bg-background\">\n        <div className=\"flex items-center justify-center gap-4 border-b px-6 py-8\">\n          <span className=\"flex size-14 items-center justify-center border bg-background\">\n            <Figma className=\"size-7\" />\n          </span>\n          <ArrowLeftRight className=\"size-5 text-muted-foreground\" />\n          <span className=\"flex size-14 items-center justify-center bg-foreground text-lg font-bold text-background\">\n            da\n          </span>\n        </div>\n        <div className=\"space-y-6 p-6 sm:p-8\">\n          <div className=\"text-center\">\n            <h2 className=\"text-xl font-semibold tracking-tight\">Figma Sync wants to access your Designali account</h2>\n            <p className=\"mt-2 text-sm text-muted-foreground\">\n              Signed in as <span className=\"text-foreground\">ali@designali.com</span>{\" \"}\n              <a href=\"#\" className=\"underline underline-offset-4\">Not you?</a>\n            </p>\n          </div>\n\n          <ul className=\"divide-y border\">\n            {scopes.map((scope) => (\n              <li key={scope.id}>\n                <label\n                  className={cn(\n                    \"flex items-center gap-3 p-4 text-sm\",\n                    !scope.required && \"cursor-pointer hover:bg-muted/40\"\n                  )}\n                >\n                  <scope.icon className=\"size-4 shrink-0 text-muted-foreground\" />\n                  <span className=\"flex-1\">{scope.label}</span>\n                  {scope.required ? (\n                    <span className=\"text-xs text-muted-foreground\">Required</span>\n                  ) : (\n                    <Checkbox checked={granted.includes(scope.id)} onCheckedChange={() => toggle(scope.id)} />\n                  )}\n                </label>\n              </li>\n            ))}\n          </ul>\n\n          <div className=\"flex gap-3 bg-muted/50 p-4 text-xs text-muted-foreground\">\n            <Info className=\"size-4 shrink-0\" />\n            <p>\n              Figma Sync is a verified app. You can revoke access anytime from{\" \"}\n              <a href=\"#\" className=\"text-foreground underline underline-offset-4\">Connected apps</a>. Review its{\" \"}\n              <a href=\"#\" className=\"text-foreground underline underline-offset-4\">privacy policy</a>.\n            </p>\n          </div>\n\n          <div className=\"grid grid-cols-2 gap-3\">\n            <Button variant=\"outline\" size=\"lg\">Cancel</Button>\n            <Button size=\"lg\">Allow</Button>\n          </div>\n        </div>\n        <p className=\"flex items-center justify-center gap-1.5 border-t p-4 text-xs text-muted-foreground\">\n          <ShieldCheck className=\"size-3.5\" />\n          You&apos;ll be redirected to figma-sync.example.com\n        </p>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "authentication"
  ]
}