{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "register-page", "title": "Register Page", "description": "Authentication registration page with full name, email, password fields, terms agreement, and social auth buttons.", "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", "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-checkbox-radio.json" ], "files": [ { "path": "registry/new-york/register-page/blocks/register-page.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface RegisterPageProps extends React.HTMLAttributes {\n logo?: React.ReactNode\n logoText?: string\n message?: string\n onSubmit?: (data: {\n fullName: string\n email: string\n password: string\n confirmPassword: string\n agreeTerms: boolean\n }) => void\n socialButtons?: React.ReactNode\n loginHref?: string\n termsHref?: string\n}\n\nfunction RegisterPage({\n className,\n logo,\n logoText = \"AdminLTE\",\n message = \"Register a new membership\",\n onSubmit,\n socialButtons,\n loginHref = \"#\",\n termsHref = \"#\",\n ...props\n}: RegisterPageProps) {\n const [fullName, setFullName] = React.useState(\"\")\n const [email, setEmail] = React.useState(\"\")\n const [password, setPassword] = React.useState(\"\")\n const [confirmPassword, setConfirmPassword] = React.useState(\"\")\n const [agreeTerms, setAgreeTerms] = React.useState(false)\n\n const handleSubmit = (e: React.FormEvent) => {\n e.preventDefault()\n onSubmit?.({ fullName, email, password, confirmPassword, agreeTerms })\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

{message}

\n\n
\n
\n setFullName(e.target.value)}\n />\n
\n
\n setEmail(e.target.value)}\n />\n
\n
\n setPassword(e.target.value)}\n />\n
\n
\n setConfirmPassword(e.target.value)}\n />\n
\n\n
\n \n \n Register\n \n
\n
\n\n {socialButtons && (\n
\n

- OR -

\n
{socialButtons}
\n
\n )}\n
\n
\n\n
\n \n I already have a membership\n \n
\n
\n \n )\n}\n\nexport { RegisterPage }\nexport type { RegisterPageProps }\n", "type": "registry:component" } ], "type": "registry:block" }