diff --git a/apps/www/.vitepress/theme/style.css b/apps/www/.vitepress/theme/style.css index 3efcf01d..d0989dd4 100644 --- a/apps/www/.vitepress/theme/style.css +++ b/apps/www/.vitepress/theme/style.css @@ -7,68 +7,49 @@ :root { --background: 0 0% 100%; --foreground: 240 10% 3.9%; - - --muted: 240 4.8% 95.9%; - --muted-foreground: 240 3.8% 46.1%; - - --popover: 0 0% 100%; - --popover-foreground: 240 10% 3.9%; - --card: 0 0% 100%; --card-foreground: 240 10% 3.9%; - - --border: 240 5.9% 90%; - --input: 240 5.9% 90%; - + --popover: 0 0% 100%; + --popover-foreground: 240 10% 3.9%; --primary: 240 5.9% 10%; --primary-foreground: 0 0% 98%; - --secondary: 240 4.8% 95.9%; --secondary-foreground: 240 5.9% 10%; - + --muted: 240 4.8% 95.9%; + --muted-foreground: 240 3.8% 46.1%; --accent: 240 4.8% 95.9%; --accent-foreground: 240 5.9% 10%; - --destructive: 0 84.2% 60.2%; --destructive-foreground: 0 0% 98%; - + --border: 240 5.9% 90%; + --input: 240 5.9% 90%; --ring: 240 5% 64.9%; - --radius: 0.5rem; } .dark { --background: 240 10% 3.9%; --foreground: 0 0% 98%; - - --muted: 240 3.7% 15.9%; - --muted-foreground: 240 5% 64.9%; - - --popover: 240 10% 3.9%; - --popover-foreground: 0 0% 98%; - --card: 240 10% 3.9%; --card-foreground: 0 0% 98%; - - --border: 240 3.7% 15.9%; - --input: 240 3.7% 15.9%; - + --popover: 240 10% 3.9%; + --popover-foreground: 0 0% 98%; --primary: 0 0% 98%; --primary-foreground: 240 5.9% 10%; - --secondary: 240 3.7% 15.9%; --secondary-foreground: 0 0% 98%; - + --muted: 240 3.7% 15.9%; + --muted-foreground: 240 5% 64.9%; --accent: 240 3.7% 15.9%; --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; --destructive-foreground: 0 85.7% 97.3%; - - --ring: 240 3.7% 15.9%; + --border: 240 3.7% 15.9%; + --input: 240 3.7% 15.9%; + --ring: 240 4.9% 83.9%; } -} -@layer base { + + * { @apply border-border; } @@ -132,12 +113,9 @@ pre code { @apply relative rounded font-mono text-sm ; } - pre code .line { - @apply px-4 min-h-[1.5rem] py-0.5 w-full inline-block; - } - } + @layer utilities { .step { counter-increment: step; @@ -148,6 +126,11 @@ @apply ml-[-50px] mt-[-4px]; content: counter(step); } + + pre code .line { + @apply px-4 min-h-[1.5rem] !py-0.5 w-full inline-block; + } + } @media (max-width: 640px) { diff --git a/apps/www/src/content/docs/components/alert-dialog.md b/apps/www/src/content/docs/components/alert-dialog.md new file mode 100644 index 00000000..bcaedf6a --- /dev/null +++ b/apps/www/src/content/docs/components/alert-dialog.md @@ -0,0 +1,71 @@ +--- +title: Alert Dialog +description: A modal dialog that interrupts the user with important content and expects a response. +source: https://github.com/radix-vue/shadcn-vue/tree/main/apps/www/src/lib/registry/default/ui/alert-dialog +primitive: https://www.radix-vue.com/components/alert-dialog.html +--- + + + + +<<< ../../../lib/registry/default/examples/AlertDialogDemo.vue + + + + + +## Installation + +```bash +npx shadcn-vue@latest add alert-dialog +``` + + + +1. Install `radix-vue`: + +```bash +npm install radix-vue +``` + +2. Copy and paste the component source files linked at the top of this page into your project. + + +## Usage + +```vue + + + +``` \ No newline at end of file diff --git a/apps/www/src/content/docs/components/dialog.md b/apps/www/src/content/docs/components/dialog.md new file mode 100644 index 00000000..ba991b07 --- /dev/null +++ b/apps/www/src/content/docs/components/dialog.md @@ -0,0 +1,68 @@ +--- +title: Dialog +description: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. +source: https://github.com/radix-vue/shadcn-vue/tree/main/apps/www/src/lib/registry/default/ui/dialog +primitive: https://www.radix-vue.com/components/dialog.html +--- + + + + +<<< ../../../lib/registry/default/examples/DialogDemo.vue + + + + + +## Installation + +```bash +npx shadcn-vue@latest add dialog +``` + + + +1. Install `radix-vue`: + +```bash +npm install radix-vue +``` + +2. Copy and paste the component source files linked at the top of this page into your project. + + +## Usage + +```vue + + + +``` \ No newline at end of file diff --git a/apps/www/src/content/docs/components/popover.md b/apps/www/src/content/docs/components/popover.md new file mode 100644 index 00000000..921b4deb --- /dev/null +++ b/apps/www/src/content/docs/components/popover.md @@ -0,0 +1,53 @@ +--- +title: Popover +description: Displays rich content in a portal, triggered by a button. +source: https://github.com/radix-vue/shadcn-vue/tree/main/apps/www/src/lib/registry/default/ui/popover +primitive: https://www.radix-vue.com/components/popover.html +--- + + + + +<<< ../../../lib/registry/default/examples/PopoverDemo.vue + + + + + +## Installation + +```bash +npx shadcn-vue@latest add popover +``` + + + +1. Install `radix-vue`: + +```bash +npm install radix-vue +``` + +2. Copy and paste the component source files linked at the top of this page into your project. + + +## Usage + +```vue + + + +``` \ No newline at end of file diff --git a/apps/www/src/lib/registry/default/examples/PopoverDemo.vue b/apps/www/src/lib/registry/default/examples/PopoverDemo.vue index c50ef4f3..9315cb73 100644 --- a/apps/www/src/lib/registry/default/examples/PopoverDemo.vue +++ b/apps/www/src/lib/registry/default/examples/PopoverDemo.vue @@ -16,7 +16,7 @@ import { Input } from '@/lib/registry/default/ui/input' Open popover - +

diff --git a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogAction.vue b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogAction.vue index 8faa0471..8ebf7157 100644 --- a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogAction.vue +++ b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogAction.vue @@ -1,11 +1,13 @@ diff --git a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogCancel.vue b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogCancel.vue index b1e91389..fe3531b3 100644 --- a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogCancel.vue +++ b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogCancel.vue @@ -1,11 +1,13 @@ diff --git a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue index 99685897..41badddc 100644 --- a/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue +++ b/apps/www/src/lib/registry/default/ui/alert-dialog/AlertDialogContent.vue @@ -13,7 +13,7 @@ const props = defineProps()