{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dialog-14",
  "title": "Sign-in dialog",
  "description": "Email and password with remember me and a reset link.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/checkbox.json",
    "https://ui.ndekocode.dev/r/dialog.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/input.json",
    "https://ui.ndekocode.dev/r/label.json",
    "https://ui.ndekocode.dev/r/recipes.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/dialog/dialog-14.tsx",
      "content": "import { useId } from 'react';\n\nimport { GoogleBrandIcon } from '@/registry/ndeko/lib/icons';\nimport { FOCUS_RING } from '@/registry/ndeko/lib/recipes';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Checkbox } from '@/registry/ndeko/ui/checkbox';\nimport {\n  Dialog,\n  DialogContent,\n  DialogDescription,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger,\n} from '@/registry/ndeko/ui/dialog';\nimport { Input } from '@/registry/ndeko/ui/input';\nimport { Label } from '@/registry/ndeko/ui/label';\n\nconst BRAND_STYLE = { '--gem': 'var(--primary)' } as React.CSSProperties;\n\nconst LINK = [\n  'text-primary-ink rounded-sm text-[13px] font-medium underline-offset-4 hover:underline',\n  FOCUS_RING,\n].join(' ');\n\nconst OR_DIVIDER =\n  'text-muted-foreground flex items-center gap-3 text-xs before:h-(--hairline) before:flex-1 before:bg-border after:h-(--hairline) after:flex-1 after:bg-border';\n\nfunction AcmeMark() {\n  return (\n    <span\n      aria-hidden='true'\n      style={BRAND_STYLE}\n      className='gem-plate flex size-10 shrink-0 items-center justify-center rounded-xl'\n    >\n      <svg\n        viewBox='0 0 24 24'\n        fill='none'\n        stroke='currentColor'\n        strokeWidth={2.25}\n        strokeLinecap='round'\n        strokeLinejoin='round'\n        className='size-5'\n      >\n        <path d='M12 4.5 20 19H4l8-14.5Z' />\n        <path d='M8.75 14h6.5' />\n      </svg>\n    </span>\n  );\n}\n\nexport default function Dialog14() {\n  const id = useId();\n  const emailId = `${id}-email`;\n  const passwordId = `${id}-password`;\n  const rememberId = `${id}-remember`;\n\n  return (\n    <Dialog>\n      <DialogTrigger render={<Button variant='outline' />}>\n        Sign in\n      </DialogTrigger>\n      <DialogContent className='max-w-md'>\n        <div className='flex flex-col items-center gap-4'>\n          <AcmeMark />\n          <DialogHeader className='px-8 text-center'>\n            <DialogTitle>Welcome back</DialogTitle>\n            <DialogDescription>\n              Sign in with the email and password of your Acme account.\n            </DialogDescription>\n          </DialogHeader>\n        </div>\n        <form className='flex flex-col gap-5'>\n          <div className='flex flex-col gap-4'>\n            <div className='grid gap-2'>\n              <Label htmlFor={emailId}>Email</Label>\n              <Input\n                id={emailId}\n                type='email'\n                autoComplete='email'\n                placeholder='amara@example.com'\n                required\n              />\n            </div>\n            <div className='grid gap-2'>\n              <Label htmlFor={passwordId}>Password</Label>\n              <Input\n                id={passwordId}\n                type='password'\n                autoComplete='current-password'\n                placeholder='Your password'\n                required\n              />\n            </div>\n          </div>\n          <div className='flex items-center justify-between gap-2'>\n            <div className='flex items-center gap-2'>\n              <Checkbox id={rememberId} />\n              <Label\n                htmlFor={rememberId}\n                className='text-muted-foreground font-normal'\n              >\n                Remember me\n              </Label>\n            </div>\n            <a href='#' className={LINK}>\n              Forgot password?\n            </a>\n          </div>\n          <Button type='button' size='lg' className='w-full'>\n            Sign in\n          </Button>\n        </form>\n        <div className={OR_DIVIDER}>or</div>\n        <Button variant='outline' size='lg'>\n          <GoogleBrandIcon />\n          Sign in with Google\n        </Button>\n      </DialogContent>\n    </Dialog>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "dialog"
  ],
  "type": "registry:component"
}