{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "lockscreen-page", "title": "Lockscreen Page", "description": "Lock screen page with user avatar, name, and password input to unlock the session.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-form-control.json", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-button.json" ], "files": [ { "path": "registry/new-york/lockscreen-page/blocks/lockscreen-page.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface LockscreenPageProps extends React.HTMLAttributes {\n userName: string\n avatarUrl: string\n logo?: React.ReactNode\n logoText?: string\n onUnlock?: (password: string) => void\n}\n\nfunction LockscreenPage({\n className,\n userName,\n avatarUrl,\n logo,\n logoText = \"AdminLTE\",\n onUnlock,\n ...props\n}: LockscreenPageProps) {\n const [password, setPassword] = React.useState(\"\")\n\n const handleSubmit = (e: React.FormEvent) => {\n e.preventDefault()\n onUnlock?.(password)\n }\n\n return (\n \n
\n
\n {logo || (\n \n {logoText.slice(0, 5)}{logoText.slice(5)}\n \n )}\n
\n\n
\n
\n \n
\n\n

\n {userName}\n

\n\n
\n
\n setPassword(e.target.value)}\n />\n \n ➔\n \n
\n
\n
\n\n

\n Enter your password to retrieve your session\n

\n
\n \n )\n}\n\nexport { LockscreenPage }\nexport type { LockscreenPageProps }\n", "type": "registry:component" } ], "type": "registry:block" }