From 269caf00b0d7a955d84f2e9382ae95771ca79641 Mon Sep 17 00:00:00 2001 From: zernonia <59365435+zernonia@users.noreply.github.com> Date: Wed, 6 Dec 2023 09:59:36 +0800 Subject: [PATCH] fix(Button): missing `asChild` (#203) * fix: button should use primitive * docs: fix missing NuxtLink import * chore: build registry --- .../lib/registry/default/example/ButtonAsChildDemo.vue | 4 ++-- apps/www/src/lib/registry/default/ui/button/Button.vue | 10 ++++++---- .../registry/new-york/example/ButtonAsChildDemo.vue | 4 ++-- .../www/src/lib/registry/new-york/ui/button/Button.vue | 10 ++++++---- apps/www/src/public/registry/index.json | 4 +++- .../www/src/public/registry/styles/default/button.json | 6 ++++-- .../src/public/registry/styles/default/calendar.json | 2 +- .../src/public/registry/styles/default/checkbox.json | 2 +- .../public/registry/styles/default/dropdown-menu.json | 2 +- apps/www/src/public/registry/styles/default/input.json | 2 +- .../src/public/registry/styles/new-york/button.json | 6 ++++-- .../src/public/registry/styles/new-york/calendar.json | 2 +- .../src/public/registry/styles/new-york/checkbox.json | 2 +- .../src/public/registry/styles/new-york/command.json | 2 +- .../public/registry/styles/new-york/dropdown-menu.json | 2 +- .../www/src/public/registry/styles/new-york/input.json | 2 +- 16 files changed, 36 insertions(+), 26 deletions(-) diff --git a/apps/www/src/lib/registry/default/example/ButtonAsChildDemo.vue b/apps/www/src/lib/registry/default/example/ButtonAsChildDemo.vue index 0dfe5516..9dc9b10e 100644 --- a/apps/www/src/lib/registry/default/example/ButtonAsChildDemo.vue +++ b/apps/www/src/lib/registry/default/example/ButtonAsChildDemo.vue @@ -4,8 +4,8 @@ import { Button } from '@/lib/registry/default/ui/button' diff --git a/apps/www/src/lib/registry/default/ui/button/Button.vue b/apps/www/src/lib/registry/default/ui/button/Button.vue index d721b1ab..5a34b1b8 100644 --- a/apps/www/src/lib/registry/default/ui/button/Button.vue +++ b/apps/www/src/lib/registry/default/ui/button/Button.vue @@ -1,8 +1,9 @@ diff --git a/apps/www/src/lib/registry/new-york/example/ButtonAsChildDemo.vue b/apps/www/src/lib/registry/new-york/example/ButtonAsChildDemo.vue index b14aa47e..bd9a6a89 100644 --- a/apps/www/src/lib/registry/new-york/example/ButtonAsChildDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/ButtonAsChildDemo.vue @@ -4,8 +4,8 @@ import { Button } from '@/lib/registry/new-york/ui/button' diff --git a/apps/www/src/lib/registry/new-york/ui/button/Button.vue b/apps/www/src/lib/registry/new-york/ui/button/Button.vue index d721b1ab..5a34b1b8 100644 --- a/apps/www/src/lib/registry/new-york/ui/button/Button.vue +++ b/apps/www/src/lib/registry/new-york/ui/button/Button.vue @@ -1,8 +1,9 @@ diff --git a/apps/www/src/public/registry/index.json b/apps/www/src/public/registry/index.json index f1988368..6c74c3d5 100644 --- a/apps/www/src/public/registry/index.json +++ b/apps/www/src/public/registry/index.json @@ -95,7 +95,9 @@ }, { "name": "button", - "dependencies": [], + "dependencies": [ + "radix-vue" + ], "registryDependencies": [ "utils" ], diff --git a/apps/www/src/public/registry/styles/default/button.json b/apps/www/src/public/registry/styles/default/button.json index de7618f5..7a3c930a 100644 --- a/apps/www/src/public/registry/styles/default/button.json +++ b/apps/www/src/public/registry/styles/default/button.json @@ -1,13 +1,15 @@ { "name": "button", - "dependencies": [], + "dependencies": [ + "radix-vue" + ], "registryDependencies": [ "utils" ], "files": [ { "name": "Button.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/calendar.json b/apps/www/src/public/registry/styles/default/calendar.json index 84aa0701..585f8f5a 100644 --- a/apps/www/src/public/registry/styles/default/calendar.json +++ b/apps/www/src/public/registry/styles/default/calendar.json @@ -11,7 +11,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/checkbox.json b/apps/www/src/public/registry/styles/default/checkbox.json index 2b9bc597..b6da0eba 100644 --- a/apps/www/src/public/registry/styles/default/checkbox.json +++ b/apps/www/src/public/registry/styles/default/checkbox.json @@ -17,4 +17,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/dropdown-menu.json b/apps/www/src/public/registry/styles/default/dropdown-menu.json index 3ae58255..63d40577 100644 --- a/apps/www/src/public/registry/styles/default/dropdown-menu.json +++ b/apps/www/src/public/registry/styles/default/dropdown-menu.json @@ -9,7 +9,7 @@ "files": [ { "name": "DropdownMenu.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DropdownMenuCheckboxItem.vue", diff --git a/apps/www/src/public/registry/styles/default/input.json b/apps/www/src/public/registry/styles/default/input.json index 9aff41dc..4290905d 100644 --- a/apps/www/src/public/registry/styles/default/input.json +++ b/apps/www/src/public/registry/styles/default/input.json @@ -9,7 +9,7 @@ "files": [ { "name": "Input.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/button.json b/apps/www/src/public/registry/styles/new-york/button.json index 0702fa01..58a98f80 100644 --- a/apps/www/src/public/registry/styles/new-york/button.json +++ b/apps/www/src/public/registry/styles/new-york/button.json @@ -1,13 +1,15 @@ { "name": "button", - "dependencies": [], + "dependencies": [ + "radix-vue" + ], "registryDependencies": [ "utils" ], "files": [ { "name": "Button.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/calendar.json b/apps/www/src/public/registry/styles/new-york/calendar.json index 9029ca0f..b03e1e38 100644 --- a/apps/www/src/public/registry/styles/new-york/calendar.json +++ b/apps/www/src/public/registry/styles/new-york/calendar.json @@ -11,7 +11,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/checkbox.json b/apps/www/src/public/registry/styles/new-york/checkbox.json index d7aa75bc..010edfa0 100644 --- a/apps/www/src/public/registry/styles/new-york/checkbox.json +++ b/apps/www/src/public/registry/styles/new-york/checkbox.json @@ -17,4 +17,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/command.json b/apps/www/src/public/registry/styles/new-york/command.json index 208942c8..b191fb03 100644 --- a/apps/www/src/public/registry/styles/new-york/command.json +++ b/apps/www/src/public/registry/styles/new-york/command.json @@ -10,7 +10,7 @@ "files": [ { "name": "Command.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CommandDialog.vue", diff --git a/apps/www/src/public/registry/styles/new-york/dropdown-menu.json b/apps/www/src/public/registry/styles/new-york/dropdown-menu.json index e1b6aeea..18fa2b12 100644 --- a/apps/www/src/public/registry/styles/new-york/dropdown-menu.json +++ b/apps/www/src/public/registry/styles/new-york/dropdown-menu.json @@ -9,7 +9,7 @@ "files": [ { "name": "DropdownMenu.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DropdownMenuCheckboxItem.vue", diff --git a/apps/www/src/public/registry/styles/new-york/input.json b/apps/www/src/public/registry/styles/new-york/input.json index 7bce11f9..26a6a806 100644 --- a/apps/www/src/public/registry/styles/new-york/input.json +++ b/apps/www/src/public/registry/styles/new-york/input.json @@ -9,7 +9,7 @@ "files": [ { "name": "Input.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts",