+ )
+}
diff --git a/apps/www/app/layout.tsx b/apps/www/app/layout.tsx
index 411b1bedf7..c3e043f453 100644
--- a/apps/www/app/layout.tsx
+++ b/apps/www/app/layout.tsx
@@ -91,7 +91,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
-
+
{children}
diff --git a/apps/www/public/r/styles/default/authentication-01.json b/apps/www/public/r/styles/default/authentication-01.json
deleted file mode 100644
index b31b3f1312..0000000000
--- a/apps/www/public/r/styles/default/authentication-01.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "authentication-01",
- "type": "registry:block",
- "registryDependencies": [
- "button",
- "card",
- "input",
- "label"
- ],
- "files": [
- {
- "path": "block/authentication-01.tsx",
- "content": "import { Button } from \"@/registry/default/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/default/ui/card\"\nimport { Input } from \"@/registry/default/ui/input\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport default function LoginForm() {\n return (\n \n \n Login\n \n Enter your email below to login to your account.\n \n \n \n
\n \n \n
\n
\n \n \n
\n \n \n \n \n \n )\n}\n",
- "type": "registry:block",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/public/r/styles/default/authentication-02.json b/apps/www/public/r/styles/default/authentication-02.json
deleted file mode 100644
index 3c0222bfed..0000000000
--- a/apps/www/public/r/styles/default/authentication-02.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "authentication-02",
- "type": "registry:block",
- "registryDependencies": [
- "button",
- "card",
- "input",
- "label"
- ],
- "files": [
- {
- "path": "block/authentication-02.tsx",
- "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/default/ui/card\"\nimport { Input } from \"@/registry/default/ui/input\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport default function LoginForm() {\n return (\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n
\n
\n \n \n
\n
\n
\n \n \n Forgot your password?\n \n
\n \n
\n \n \n
\n
\n Don't have an account?{\" \"}\n \n Sign up\n \n
\n \n \n )\n}\n",
- "type": "registry:block",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/public/r/styles/default/authentication-03.json b/apps/www/public/r/styles/default/authentication-03.json
deleted file mode 100644
index 5fb2e981f8..0000000000
--- a/apps/www/public/r/styles/default/authentication-03.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "authentication-03",
- "type": "registry:block",
- "registryDependencies": [
- "button",
- "card",
- "input",
- "label"
- ],
- "files": [
- {
- "path": "block/authentication-03.tsx",
- "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/default/ui/card\"\nimport { Input } from \"@/registry/default/ui/input\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport default function LoginForm() {\n return (\n \n \n Sign Up\n \n Enter your information to create an account\n \n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n
\n \n \n
\n
\n \n \n
\n \n \n
\n
\n Already have an account?{\" \"}\n \n Sign in\n \n
\n \n \n )\n}\n",
- "type": "registry:block",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/public/r/styles/default/authentication-04.json b/apps/www/public/r/styles/default/authentication-04.json
deleted file mode 100644
index a77344d158..0000000000
--- a/apps/www/public/r/styles/default/authentication-04.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "authentication-04",
- "type": "registry:block",
- "registryDependencies": [
- "button",
- "card",
- "input",
- "label"
- ],
- "files": [
- {
- "path": "block/authentication-04.tsx",
- "content": "import Image from \"next/image\"\nimport Link from \"next/link\"\n\nimport { Button } from \"@/registry/default/ui/button\"\nimport { Input } from \"@/registry/default/ui/input\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport default function Dashboard() {\n return (\n
\n
\n
\n
\n
Login
\n
\n Enter your email below to login to your account\n
\n
\n
\n
\n \n \n
\n
\n
\n \n \n Forgot your password?\n \n
\n \n
\n \n \n
\n
\n Don't have an account?{\" \"}\n \n Sign up\n \n
\n
\n
\n
\n \n
\n
\n )\n}\n",
- "type": "registry:block",
- "target": ""
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/public/r/styles/default/login-01.json b/apps/www/public/r/styles/default/login-01.json
index fc3bf5b981..9116cf4109 100644
--- a/apps/www/public/r/styles/default/login-01.json
+++ b/apps/www/public/r/styles/default/login-01.json
@@ -11,13 +11,13 @@
"files": [
{
"path": "block/login-01/page.tsx",
- "content": "import { LoginForm } from \"@/registry/default/block/login-01/components/login-form\"\n\nexport default function Page() {\n return (\n
\n \n
\n )\n}\n",
+ "content": "import { LoginForm } from \"@/registry/default/block/login-01/components/login-form\"\n\nexport default function Page() {\n return (\n
\n
\n \n
\n
\n )\n}\n",
"type": "registry:page",
"target": "app/login/page.tsx"
},
{
"path": "block/login-01/components/login-form.tsx",
- "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/default/ui/card\"\nimport { Input } from \"@/registry/default/ui/input\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport function LoginForm() {\n return (\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n
\n
\n \n \n
\n
\n
\n \n \n Forgot your password?\n \n
\n \n
\n \n \n
\n
\n Don't have an account?{\" \"}\n \n Sign up\n \n
\n \n \n )\n}\n",
+ "content": "import { cn } from \"@/registry/default/lib/utils\"\nimport { Button } from \"@/registry/default/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/default/ui/card\"\nimport { Input } from \"@/registry/default/ui/input\"\nimport { Label } from \"@/registry/default/ui/label\"\n\nexport function LoginForm({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return (\n
\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n \n \n \n
\n )\n}\n",
"type": "registry:component",
"target": ""
}
diff --git a/apps/www/public/r/styles/default/login-02.json b/apps/www/public/r/styles/default/login-02.json
new file mode 100644
index 0000000000..844aa4c9e5
--- /dev/null
+++ b/apps/www/public/r/styles/default/login-02.json
@@ -0,0 +1,25 @@
+{
+ "name": "login-02",
+ "type": "registry:block",
+ "description": "A two column login page with a cover image.",
+ "registryDependencies": [
+ "button",
+ "card",
+ "input",
+ "label"
+ ],
+ "files": [
+ {
+ "path": "block/login-02/page.tsx",
+ "content": "import { GalleryVerticalEnd } from \"lucide-react\"\n\nimport { LoginForm } from \"@/registry/default/block/login-02/components/login-form\"\n\nexport default function LoginPage() {\n return (\n
\n )\n}\n",
+ "content": "import { LoginForm } from \"@/registry/new-york/block/login-01/components/login-form\"\n\nexport default function Page() {\n return (\n
\n
\n \n
\n
\n )\n}\n",
"type": "registry:page",
"target": "app/login/page.tsx"
},
{
"path": "block/login-01/components/login-form.tsx",
- "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/registry/new-york/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york/ui/card\"\nimport { Input } from \"@/registry/new-york/ui/input\"\nimport { Label } from \"@/registry/new-york/ui/label\"\n\nexport function LoginForm() {\n return (\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n
\n
\n \n \n
\n
\n
\n \n \n Forgot your password?\n \n
\n \n
\n \n \n
\n
\n Don't have an account?{\" \"}\n \n Sign up\n \n
\n \n \n )\n}\n",
+ "content": "import { cn } from \"@/registry/new-york/lib/utils\"\nimport { Button } from \"@/registry/new-york/ui/button\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york/ui/card\"\nimport { Input } from \"@/registry/new-york/ui/input\"\nimport { Label } from \"@/registry/new-york/ui/label\"\n\nexport function LoginForm({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return (\n
\n \n \n Login\n \n Enter your email below to login to your account\n \n \n \n \n \n \n
\n )\n}\n",
"type": "registry:component",
"target": ""
}
diff --git a/apps/www/public/r/styles/new-york/login-02.json b/apps/www/public/r/styles/new-york/login-02.json
new file mode 100644
index 0000000000..840b8a6e3a
--- /dev/null
+++ b/apps/www/public/r/styles/new-york/login-02.json
@@ -0,0 +1,25 @@
+{
+ "name": "login-02",
+ "type": "registry:block",
+ "description": "A two column login page with a cover image.",
+ "registryDependencies": [
+ "button",
+ "card",
+ "input",
+ "label"
+ ],
+ "files": [
+ {
+ "path": "block/login-02/page.tsx",
+ "content": "import { GalleryVerticalEnd } from \"lucide-react\"\n\nimport { LoginForm } from \"@/registry/new-york/block/login-02/components/login-form\"\n\nexport default function LoginPage() {\n return (\n
\n )\n}\n",
+ "type": "registry:component",
+ "target": ""
+ }
+ ]
+}
\ No newline at end of file
diff --git a/apps/www/registry/default/block/authentication-01.tsx b/apps/www/registry/default/block/authentication-01.tsx
deleted file mode 100644
index ad62585fa4..0000000000
--- a/apps/www/registry/default/block/authentication-01.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import { Button } from "@/registry/default/ui/button"
-import {
- Card,
- CardContent,
- CardDescription,
- CardFooter,
- CardHeader,
- CardTitle,
-} from "@/registry/default/ui/card"
-import { Input } from "@/registry/default/ui/input"
-import { Label } from "@/registry/default/ui/label"
-
-export const description =
- "A simple login form with email and password. The submit button says 'Sign in'."
-
-export const iframeHeight = "600px"
-
-export const containerClassName =
- "w-full h-screen flex items-center justify-center px-4"
-
-export default function LoginForm() {
- return (
-
-
- Login
-
- Enter your email below to login to your account.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )
-}
diff --git a/apps/www/registry/default/block/authentication-02.tsx b/apps/www/registry/default/block/authentication-02.tsx
deleted file mode 100644
index b4ccaddd92..0000000000
--- a/apps/www/registry/default/block/authentication-02.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import Link from "next/link"
-
-import { Button } from "@/registry/default/ui/button"
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from "@/registry/default/ui/card"
-import { Input } from "@/registry/default/ui/input"
-import { Label } from "@/registry/default/ui/label"
-
-export const description =
- "A login form with email and password. There's an option to login with Google and a link to sign up if you don't have an account."
-
-export const iframeHeight = "600px"
-
-export const containerClassName =
- "w-full h-screen flex items-center justify-center px-4"
-
-export default function LoginForm() {
- return (
-
-
- Login
-
- Enter your email below to login to your account
-
-
-
-
-
-
-
-
-
-
-
-
- Forgot your password?
-
-
-
-
-
-
-
-
- Don't have an account?{" "}
-
- Sign up
-
-
-
-
- )
-}
diff --git a/apps/www/registry/default/block/authentication-03.tsx b/apps/www/registry/default/block/authentication-03.tsx
deleted file mode 100644
index 65e7c939a7..0000000000
--- a/apps/www/registry/default/block/authentication-03.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import Link from "next/link"
-
-import { Button } from "@/registry/default/ui/button"
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from "@/registry/default/ui/card"
-import { Input } from "@/registry/default/ui/input"
-import { Label } from "@/registry/default/ui/label"
-
-export const description =
- "A sign up form with first name, last name, email and password inside a card. There's an option to sign up with GitHub and a link to login if you already have an account"
-
-export const iframeHeight = "600px"
-
-export const containerClassName =
- "w-full h-screen flex items-center justify-center px-4"
-
-export default function LoginForm() {
- return (
-
-
- Sign Up
-
- Enter your information to create an account
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Already have an account?{" "}
-
- Sign in
-
-
-
-
- )
-}
diff --git a/apps/www/registry/default/block/authentication-04.tsx b/apps/www/registry/default/block/authentication-04.tsx
deleted file mode 100644
index 1ccce93923..0000000000
--- a/apps/www/registry/default/block/authentication-04.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import Image from "next/image"
-import Link from "next/link"
-
-import { Button } from "@/registry/default/ui/button"
-import { Input } from "@/registry/default/ui/input"
-import { Label } from "@/registry/default/ui/label"
-
-export const description =
- "A login page with two columns. The first column has the login form with email and password. There's a Forgot your passwork link and a link to sign up if you do not have an account. The second column has a cover image."
-
-export const iframeHeight = "800px"
-
-export const containerClassName = "w-full h-full p-4 lg:p-0"
-
-export default function Dashboard() {
- return (
-
-
-
-
-
Login
-
- Enter your email below to login to your account
-
-
-
-
-
-
-
-
-
-
-
- Forgot your password?
-
-
-
-
-
-
-
-
- Don't have an account?{" "}
-
- Sign up
-
-
-
-
-
-
-
-
- )
-}
diff --git a/apps/www/registry/default/block/login-01/components/login-form.tsx b/apps/www/registry/default/block/login-01/components/login-form.tsx
index e550444246..d5a73214d5 100644
--- a/apps/www/registry/default/block/login-01/components/login-form.tsx
+++ b/apps/www/registry/default/block/login-01/components/login-form.tsx
@@ -1,5 +1,4 @@
-import Link from "next/link"
-
+import { cn } from "@/registry/default/lib/utils"
import { Button } from "@/registry/default/ui/button"
import {
Card,
@@ -11,49 +10,59 @@ import {
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"
-export function LoginForm() {
+export function LoginForm({
+ className,
+ ...props
+}: React.ComponentPropsWithoutRef<"div">) {
return (
-
-
- Login
-
- Enter your email below to login to your account
-
-
-
-
-
-
-
-
-
-
-
-
- Forgot your password?
-
+
+
+
+ Login
+
+ Enter your email below to login to your account
+
+
+
+
+ )
+}
diff --git a/apps/www/registry/new-york/block/authentication-01.tsx b/apps/www/registry/new-york/block/authentication-01.tsx
deleted file mode 100644
index 84e1e4575b..0000000000
--- a/apps/www/registry/new-york/block/authentication-01.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import { Button } from "@/registry/new-york/ui/button"
-import {
- Card,
- CardContent,
- CardDescription,
- CardFooter,
- CardHeader,
- CardTitle,
-} from "@/registry/new-york/ui/card"
-import { Input } from "@/registry/new-york/ui/input"
-import { Label } from "@/registry/new-york/ui/label"
-
-export const description =
- "A simple login form with email and password. The submit button says 'Sign in'."
-
-export const iframeHeight = "600px"
-
-export const containerClassName =
- "w-full h-screen flex items-center justify-center px-4"
-
-export default function LoginForm() {
- return (
-
-
- Login
-
- Enter your email below to login to your account.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )
-}
diff --git a/apps/www/registry/new-york/block/authentication-02.tsx b/apps/www/registry/new-york/block/authentication-02.tsx
deleted file mode 100644
index bb1517bee4..0000000000
--- a/apps/www/registry/new-york/block/authentication-02.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import Link from "next/link"
-
-import { Button } from "@/registry/new-york/ui/button"
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from "@/registry/new-york/ui/card"
-import { Input } from "@/registry/new-york/ui/input"
-import { Label } from "@/registry/new-york/ui/label"
-
-export const description =
- "A login form with email and password. There's an option to login with Google and a link to sign up if you don't have an account."
-
-export const iframeHeight = "600px"
-
-export const containerClassName =
- "w-full h-screen flex items-center justify-center px-4"
-
-export default function LoginForm() {
- return (
-
-
- Login
-
- Enter your email below to login to your account
-
-
-
-
-
-
-
-
-
-
-
-
- Forgot your password?
-
-
-
-
-
-
-
-
- Don't have an account?{" "}
-
- Sign up
-
-
-
-
- )
-}
diff --git a/apps/www/registry/new-york/block/authentication-03.tsx b/apps/www/registry/new-york/block/authentication-03.tsx
deleted file mode 100644
index 727f9ed3c8..0000000000
--- a/apps/www/registry/new-york/block/authentication-03.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import Link from "next/link"
-
-import { Button } from "@/registry/new-york/ui/button"
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from "@/registry/new-york/ui/card"
-import { Input } from "@/registry/new-york/ui/input"
-import { Label } from "@/registry/new-york/ui/label"
-
-export const description =
- "A sign up form with first name, last name, email and password inside a card. There's an option to sign up with GitHub and a link to login if you already have an account"
-
-export const iframeHeight = "600px"
-
-export const containerClassName =
- "w-full h-screen flex items-center justify-center px-4"
-
-export default function LoginForm() {
- return (
-
-
- Sign Up
-
- Enter your information to create an account
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Already have an account?{" "}
-
- Sign in
-
-
-
-
- )
-}
diff --git a/apps/www/registry/new-york/block/authentication-04.tsx b/apps/www/registry/new-york/block/authentication-04.tsx
deleted file mode 100644
index cee34f6c65..0000000000
--- a/apps/www/registry/new-york/block/authentication-04.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import Image from "next/image"
-import Link from "next/link"
-
-import { Button } from "@/registry/new-york/ui/button"
-import { Input } from "@/registry/new-york/ui/input"
-import { Label } from "@/registry/new-york/ui/label"
-
-export const description =
- "A login page with two columns. The first column has the login form with email and password. There's a Forgot your passwork link and a link to sign up if you do not have an account. The second column has a cover image."
-
-export const iframeHeight = "800px"
-
-export const containerClassName = "w-full h-full p-4 lg:p-0"
-
-export default function Dashboard() {
- return (
-
-
-
-
-
Login
-
- Enter your email below to login to your account
-
-
-
-
-
-
-
-
-
-
-
- Forgot your password?
-
-
-
-
-
-
-
-
- Don't have an account?{" "}
-
- Sign up
-
-
-
-
-
-
-
-
- )
-}
diff --git a/apps/www/registry/new-york/block/login-01/components/login-form.tsx b/apps/www/registry/new-york/block/login-01/components/login-form.tsx
index 4820320f86..31049d8e31 100644
--- a/apps/www/registry/new-york/block/login-01/components/login-form.tsx
+++ b/apps/www/registry/new-york/block/login-01/components/login-form.tsx
@@ -1,5 +1,4 @@
-import Link from "next/link"
-
+import { cn } from "@/registry/new-york/lib/utils"
import { Button } from "@/registry/new-york/ui/button"
import {
Card,
@@ -11,49 +10,59 @@ import {
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"
-export function LoginForm() {
+export function LoginForm({
+ className,
+ ...props
+}: React.ComponentPropsWithoutRef<"div">) {
return (
-
-
- Login
-
- Enter your email below to login to your account
-
-
-
-
-
-
-
-
-
-
-
-
- Forgot your password?
-
+
+
+
+ Login
+
+ Enter your email below to login to your account
+
+
+
+