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 01/84] 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", From 24027aa1a1bdca507ca652d3b13efa3d0678cf69 Mon Sep 17 00:00:00 2001 From: Sasa Markovic Date: Tue, 12 Dec 2023 06:17:30 +0100 Subject: [PATCH 02/84] docs: fix create project command typo (#208) `create-next-app` -> `create-nuxt-app` --- apps/www/src/content/docs/installation/nuxt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/src/content/docs/installation/nuxt.md b/apps/www/src/content/docs/installation/nuxt.md index bc378b3b..68b7278d 100644 --- a/apps/www/src/content/docs/installation/nuxt.md +++ b/apps/www/src/content/docs/installation/nuxt.md @@ -7,7 +7,7 @@ description: Install and configure Nuxt. ### Create project -Start by creating a new Nuxt project using `create-next-app`: +Start by creating a new Nuxt project using `create-nuxt-app`: ```bash npx nuxi@latest init my-app From f82e4011e6e8fbfd5e86baad9d5c822e9cdacc41 Mon Sep 17 00:00:00 2001 From: sadeghbarati Date: Tue, 12 Dec 2023 10:02:55 +0330 Subject: [PATCH 03/84] chore: fix label `for` attribute in registry examples `html-for` -> `for` --- apps/www/src/lib/registry/default/example/CardFormDemo.vue | 4 ++-- .../lib/registry/default/example/DialogCustomCloseButton.vue | 2 +- apps/www/src/lib/registry/new-york/example/CardFormDemo.vue | 4 ++-- .../lib/registry/new-york/example/DialogCustomCloseButton.vue | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/www/src/lib/registry/default/example/CardFormDemo.vue b/apps/www/src/lib/registry/default/example/CardFormDemo.vue index a176e8a3..4ba3383a 100644 --- a/apps/www/src/lib/registry/default/example/CardFormDemo.vue +++ b/apps/www/src/lib/registry/default/example/CardFormDemo.vue @@ -22,11 +22,11 @@ import { Button } from '@/lib/registry/default/ui/button'
- +
- +
- +
- + Date: Sun, 17 Dec 2023 08:57:45 +0100 Subject: [PATCH 04/84] docs: change docs link in sheet component (#211) --- apps/www/src/content/docs/components/sheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/src/content/docs/components/sheet.md b/apps/www/src/content/docs/components/sheet.md index 6a30c502..57e6f55f 100644 --- a/apps/www/src/content/docs/components/sheet.md +++ b/apps/www/src/content/docs/components/sheet.md @@ -1,7 +1,7 @@ --- title: Sheet description: Extends the Dialog component to display content that complements the main content of the screen. -source: apps/www/src/lib/registry/default/ui/dialog +source: apps/www/src/lib/registry/default/ui/sheet primitive: https://www.radix-vue.com/components/dialog.html --- @@ -72,4 +72,4 @@ You can adjust the size of the sheet using CSS classes: -``` \ No newline at end of file +``` From b40321e3d93cbec1c4ff6c0d3f2e39b5e920d28f Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Tue, 19 Dec 2023 18:23:05 +0330 Subject: [PATCH 05/84] docs: fix `vee-validate` checkbox and radio-group examples (#213) * docs: fix checkbox and radio form examples add type="checkbox|radio" and name in FormField * docs: add `vee-validate` documentation link for checkbox and radio inputs * chore: update `vee-validate` deps --- apps/www/package.json | 4 +-- .../src/content/docs/components/checkbox.md | 2 ++ .../content/docs/components/radio-group.md | 2 ++ .../default/example/CheckboxFormMultiple.vue | 10 ++---- .../default/example/CheckboxFormSingle.vue | 2 +- .../default/example/RadioGroupForm.vue | 2 +- .../new-york/example/CheckboxFormMultiple.vue | 10 ++---- .../new-york/example/CheckboxFormSingle.vue | 2 +- .../new-york/example/RadioGroupForm.vue | 2 +- pnpm-lock.yaml | 36 +++++++++---------- 10 files changed, 34 insertions(+), 38 deletions(-) diff --git a/apps/www/package.json b/apps/www/package.json index 8846267f..a98c3cc0 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -21,7 +21,7 @@ "@tanstack/vue-table": "^8.10.7", "@unovis/ts": "^1.2.3", "@unovis/vue": "1.3.0-beta.3", - "@vee-validate/zod": "^4.11.8", + "@vee-validate/zod": "^4.12.3", "@vueuse/core": "^10.5.0", "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", @@ -31,7 +31,7 @@ "radix-vue": "^1.2.3", "tailwindcss-animate": "^1.0.7", "v-calendar": "^3.1.2", - "vee-validate": "4.11.8", + "vee-validate": "4.12.3", "vue": "^3.3.7", "vue-wrap-balancer": "^1.1.3", "zod": "^3.22.4" diff --git a/apps/www/src/content/docs/components/checkbox.md b/apps/www/src/content/docs/components/checkbox.md index 07e24bfc..07697e6e 100644 --- a/apps/www/src/content/docs/components/checkbox.md +++ b/apps/www/src/content/docs/components/checkbox.md @@ -40,6 +40,8 @@ import { Checkbox } from '@/components/ui/checkbox' ### Form +Please first read `vee-validate` section for [Checkbox and Radio Inputs](https://vee-validate.logaretm.com/v4/examples/checkboxes-and-radio/) + diff --git a/apps/www/src/content/docs/components/radio-group.md b/apps/www/src/content/docs/components/radio-group.md index d7db0bc9..9dbbabbf 100644 --- a/apps/www/src/content/docs/components/radio-group.md +++ b/apps/www/src/content/docs/components/radio-group.md @@ -40,4 +40,6 @@ import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group' ### Form +Please first read `vee-validate` section for [Checkbox and Radio Inputs](https://vee-validate.logaretm.com/v4/examples/checkboxes-and-radio/) + diff --git a/apps/www/src/lib/registry/default/example/CheckboxFormMultiple.vue b/apps/www/src/lib/registry/default/example/CheckboxFormMultiple.vue index cba68c1d..641c719b 100644 --- a/apps/www/src/lib/registry/default/example/CheckboxFormMultiple.vue +++ b/apps/www/src/lib/registry/default/example/CheckboxFormMultiple.vue @@ -77,16 +77,12 @@ const onSubmit = handleSubmit((values) => {
- - + + diff --git a/apps/www/src/lib/registry/default/example/CheckboxFormSingle.vue b/apps/www/src/lib/registry/default/example/CheckboxFormSingle.vue index 4cb8453a..43414195 100644 --- a/apps/www/src/lib/registry/default/example/CheckboxFormSingle.vue +++ b/apps/www/src/lib/registry/default/example/CheckboxFormSingle.vue @@ -37,7 +37,7 @@ const onSubmit = handleSubmit((values) => {