From 26a5096caabe1b85a2b096b300bf1852bf27de42 Mon Sep 17 00:00:00 2001 From: sadeghbarati Date: Tue, 23 Jul 2024 15:28:28 +0330 Subject: [PATCH] chore: clean up --- apps/www/__registry__/index.ts | 14 ++++ .../www/src/content/docs/components/dialog.md | 4 + apps/www/src/content/docs/dark-mode/vite.md | 2 +- .../www/src/content/docs/installation/nuxt.md | 22 +++++- apps/www/src/content/docs/introduction.md | 10 ++- .../cards/components/ReportAnIssue.vue | 2 +- .../registry/default/example/DialogForm.vue | 78 +++++++++++++++++++ .../registry/new-york/example/DialogForm.vue | 77 ++++++++++++++++++ 8 files changed, 203 insertions(+), 6 deletions(-) create mode 100644 apps/www/src/lib/registry/default/example/DialogForm.vue create mode 100644 apps/www/src/lib/registry/new-york/example/DialogForm.vue diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 41a34aa4..da6737cc 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -570,6 +570,13 @@ export const Index = { component: () => import("../src/lib/registry/default/example/DialogDemo.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/DialogDemo.vue"], }, + "DialogForm": { + name: "DialogForm", + type: "components:example", + registryDependencies: ["button","form","dialog","input","toast"], + component: () => import("../src/lib/registry/default/example/DialogForm.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/DialogForm.vue"], + }, "DialogScrollBodyDemo": { name: "DialogScrollBodyDemo", type: "components:example", @@ -2020,6 +2027,13 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/DialogDemo.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/DialogDemo.vue"], }, + "DialogForm": { + name: "DialogForm", + type: "components:example", + registryDependencies: ["button","form","dialog","input","toast"], + component: () => import("../src/lib/registry/new-york/example/DialogForm.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/DialogForm.vue"], + }, "DialogScrollBodyDemo": { name: "DialogScrollBodyDemo", type: "components:example", diff --git a/apps/www/src/content/docs/components/dialog.md b/apps/www/src/content/docs/components/dialog.md index de448dbb..0b9c4e26 100644 --- a/apps/www/src/content/docs/components/dialog.md +++ b/apps/www/src/content/docs/components/dialog.md @@ -62,6 +62,10 @@ import { +### Dialog Form + + + ## Notes To activate the `Dialog` component from within a `Context Menu` or `Dropdown Menu`, you must encase the `Context Menu` or `Dropdown Menu` component in the `Dialog` component. For more information, refer to the linked issue [here](https://github.com/radix-ui/primitives/issues/1836). diff --git a/apps/www/src/content/docs/dark-mode/vite.md b/apps/www/src/content/docs/dark-mode/vite.md index a7795237..a0108c09 100644 --- a/apps/www/src/content/docs/dark-mode/vite.md +++ b/apps/www/src/content/docs/dark-mode/vite.md @@ -33,7 +33,7 @@ import { Button } from '@/components/ui/button' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu' // Pass { disableTransition: false } to enable transitions -const mode = useColorMode(); +const mode = useColorMode()