diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 8992a98c..16ebaaec 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -2,9 +2,13 @@ name: Publish www
on:
push:
+ branches:
+ - dev
paths:
- 'apps/www/**'
pull_request:
+ branches:
+ - dev
paths:
- 'apps/www/**'
diff --git a/apps/www/.vitepress/theme/config/docs.ts b/apps/www/.vitepress/theme/config/docs.ts
index 0108ce3f..2905f907 100644
--- a/apps/www/.vitepress/theme/config/docs.ts
+++ b/apps/www/.vitepress/theme/config/docs.ts
@@ -155,18 +155,16 @@ export const docsConfig: DocsConfig = {
},
{
title: 'Combobox',
- disabled: true,
- label: 'Soon',
- href: '#',
+ href: '/docs/components/combobox',
+ label: 'New',
+ items: [],
+ },
+ {
+ title: 'Command',
+ href: '/docs/components/command',
+ label: 'New',
items: [],
},
- // {
- // title: "Command",
- // href: "#",
- // label: "Soon",
- // disabled: true,
- // items: []
- // },
{
title: 'Context Menu',
href: '/docs/components/context-menu',
diff --git a/apps/www/package.json b/apps/www/package.json
index eac5050b..d35c776a 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -39,7 +39,7 @@
"@vue/compiler-dom": "^3.3.4",
"autoprefixer": "^10.4.15",
"lodash.template": "^4.5.0",
- "radix-vue": "^0.1.34",
+ "radix-vue": "^0.2.2",
"rimraf": "^5.0.1",
"tailwind-merge": "^1.14.0",
"tailwindcss": "^3.3.3",
diff --git a/apps/www/src/content/docs/components/combobox.md b/apps/www/src/content/docs/components/combobox.md
new file mode 100644
index 00000000..69223751
--- /dev/null
+++ b/apps/www/src/content/docs/components/combobox.md
@@ -0,0 +1,89 @@
+---
+title: Combobox
+description: Autocomplete input and command palette with a list of suggestions.
+component: true
+---
+
+
+
+## Installation
+
+The Combobox is built using a composition of the `` and the `` components.
+
+See installation instructions for the [Popover](/docs/components/popover#installation) and the [Command](/docs/components/command#installation) components.
+
+## Usage
+
+```vue
+
+
+
+
+
+
+
+
+
+
+ No framework found.
+
+
+
+ {{ framework.label }}
+
+
+
+
+
+
+```
+
+
\ No newline at end of file
diff --git a/apps/www/src/content/docs/components/command.md b/apps/www/src/content/docs/components/command.md
new file mode 100644
index 00000000..93b5a25e
--- /dev/null
+++ b/apps/www/src/content/docs/components/command.md
@@ -0,0 +1,65 @@
+---
+title: Command
+description: Displays a list of options for the user to pick from—triggered by a button.
+source: apps/www/src/lib/registry/default/ui/popover
+primitive: https://www.radix-vue.com/components/popover.html
+---
+
+
+
+
+
+
+## Installation
+
+```bash
+npx shadcn-vue@latest add command
+```
+
+
+
+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 results found.
+
+ Calendar
+ Search Emoji
+ Calculator
+
+
+
+ Profile
+ Billing
+ Settings
+
+
+
+```
\ No newline at end of file
diff --git a/apps/www/src/lib/registry/default/example/ComboboxDemo.vue b/apps/www/src/lib/registry/default/example/ComboboxDemo.vue
new file mode 100644
index 00000000..b655e297
--- /dev/null
+++ b/apps/www/src/lib/registry/default/example/ComboboxDemo.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+ No framework found.
+
+
+
+ {{ framework.label }}
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/example/CommandDemo.vue b/apps/www/src/lib/registry/default/example/CommandDemo.vue
new file mode 100644
index 00000000..df1a4216
--- /dev/null
+++ b/apps/www/src/lib/registry/default/example/CommandDemo.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+ No results found.
+
+
+
+ Calendar
+
+
+
+ Search Emoji
+
+
+
+ Calculator
+
+
+
+
+
+
+ Profile
+ ⌘P
+
+
+
+ Billing
+ ⌘B
+
+
+
+ Settings
+ ⌘S
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/Command.vue b/apps/www/src/lib/registry/default/ui/command/Command.vue
new file mode 100644
index 00000000..f6b6a374
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/Command.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandDialog.vue b/apps/www/src/lib/registry/default/ui/command/CommandDialog.vue
new file mode 100644
index 00000000..7e146f41
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandDialog.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandEmpty.vue b/apps/www/src/lib/registry/default/ui/command/CommandEmpty.vue
new file mode 100644
index 00000000..da609fc5
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandEmpty.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue b/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue
new file mode 100644
index 00000000..1d994b9a
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandGroup.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+ {{ heading }}
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandInput.vue b/apps/www/src/lib/registry/default/ui/command/CommandInput.vue
new file mode 100644
index 00000000..9aef2ae7
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandInput.vue
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandItem.vue b/apps/www/src/lib/registry/default/ui/command/CommandItem.vue
new file mode 100644
index 00000000..323973c6
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandItem.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandList.vue b/apps/www/src/lib/registry/default/ui/command/CommandList.vue
new file mode 100644
index 00000000..5d5bc750
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandList.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandSeparator.vue b/apps/www/src/lib/registry/default/ui/command/CommandSeparator.vue
new file mode 100644
index 00000000..6219e585
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandSeparator.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/CommandShortcut.vue b/apps/www/src/lib/registry/default/ui/command/CommandShortcut.vue
new file mode 100644
index 00000000..e97f3c2b
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/CommandShortcut.vue
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/default/ui/command/index.ts b/apps/www/src/lib/registry/default/ui/command/index.ts
new file mode 100644
index 00000000..0e35f4b9
--- /dev/null
+++ b/apps/www/src/lib/registry/default/ui/command/index.ts
@@ -0,0 +1,9 @@
+export { default as Command } from './Command.vue'
+export { default as CommandDialog } from './CommandDialog.vue'
+export { default as CommandEmpty } from './CommandEmpty.vue'
+export { default as CommandGroup } from './CommandGroup.vue'
+export { default as CommandInput } from './CommandInput.vue'
+export { default as CommandItem } from './CommandItem.vue'
+export { default as CommandList } from './CommandList.vue'
+export { default as CommandSeparator } from './CommandSeparator.vue'
+export { default as CommandShortcut } from './CommandShortcut.vue'
diff --git a/apps/www/src/lib/registry/default/ui/popover/Popover.vue b/apps/www/src/lib/registry/default/ui/popover/Popover.vue
index 76b0071f..509fed5a 100644
--- a/apps/www/src/lib/registry/default/ui/popover/Popover.vue
+++ b/apps/www/src/lib/registry/default/ui/popover/Popover.vue
@@ -1,11 +1,16 @@
-
+
diff --git a/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue b/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue
new file mode 100644
index 00000000..91a48096
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+ No framework found.
+
+
+ {{ framework.label }}
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/example/CommandDemo.vue b/apps/www/src/lib/registry/new-york/example/CommandDemo.vue
new file mode 100644
index 00000000..dadd5e2c
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/example/CommandDemo.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+ No results found.
+
+
+
+ Calendar
+
+
+
+ Search Emoji
+
+
+
+ Calculator
+
+
+
+
+
+
+ Profile
+ ⌘P
+
+
+
+ Billing
+ ⌘B
+
+
+
+ Settings
+ ⌘S
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/Command.vue b/apps/www/src/lib/registry/new-york/ui/command/Command.vue
new file mode 100644
index 00000000..13a83833
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/Command.vue
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue
new file mode 100644
index 00000000..2e6cec9c
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandEmpty.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandEmpty.vue
new file mode 100644
index 00000000..da609fc5
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandEmpty.vue
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandGroup.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandGroup.vue
new file mode 100644
index 00000000..c428e4ff
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandGroup.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+ {{ heading }}
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandInput.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandInput.vue
new file mode 100644
index 00000000..8aaffe96
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandInput.vue
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandItem.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandItem.vue
new file mode 100644
index 00000000..323973c6
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandItem.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue
new file mode 100644
index 00000000..5d5bc750
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandSeparator.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandSeparator.vue
new file mode 100644
index 00000000..6219e585
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandSeparator.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandShortcut.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandShortcut.vue
new file mode 100644
index 00000000..e97f3c2b
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/CommandShortcut.vue
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/apps/www/src/lib/registry/new-york/ui/command/index.ts b/apps/www/src/lib/registry/new-york/ui/command/index.ts
new file mode 100644
index 00000000..0e35f4b9
--- /dev/null
+++ b/apps/www/src/lib/registry/new-york/ui/command/index.ts
@@ -0,0 +1,9 @@
+export { default as Command } from './Command.vue'
+export { default as CommandDialog } from './CommandDialog.vue'
+export { default as CommandEmpty } from './CommandEmpty.vue'
+export { default as CommandGroup } from './CommandGroup.vue'
+export { default as CommandInput } from './CommandInput.vue'
+export { default as CommandItem } from './CommandItem.vue'
+export { default as CommandList } from './CommandList.vue'
+export { default as CommandSeparator } from './CommandSeparator.vue'
+export { default as CommandShortcut } from './CommandShortcut.vue'
diff --git a/apps/www/src/lib/registry/new-york/ui/popover/Popover.vue b/apps/www/src/lib/registry/new-york/ui/popover/Popover.vue
index 76b0071f..509fed5a 100644
--- a/apps/www/src/lib/registry/new-york/ui/popover/Popover.vue
+++ b/apps/www/src/lib/registry/new-york/ui/popover/Popover.vue
@@ -1,11 +1,16 @@
-
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0d1c72a0..08c29ea9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -115,8 +115,8 @@ importers:
specifier: ^4.5.0
version: 4.5.0
radix-vue:
- specifier: ^0.1.34
- version: 0.1.34(vue@3.3.4)
+ specifier: ^0.2.2
+ version: 0.2.2(vue@3.3.4)
rimraf:
specifier: ^5.0.1
version: 5.0.1
@@ -6393,8 +6393,8 @@ packages:
- vue
dev: false
- /radix-vue@0.1.33(vue@3.3.4):
- resolution: {integrity: sha512-2nwcjrXNXML//iOxUeqyh2bBXQtQt3Xy1NqM2oHZJTNNEaL2QnMjlSN51DXMzx3QB2uex2IwqA1cFTHbJ34tyw==}
+ /radix-vue@0.2.2(vue@3.3.4):
+ resolution: {integrity: sha512-eW1VpctGY1JPafNHzlelxt/7dx340PZgj078bLsdMQDqq9lfN7tKHaj+pSyH7tdT3OtFsxKAmO65rnlaTAUqAg==}
dependencies:
'@floating-ui/dom': 1.5.1
'@floating-ui/vue': 1.0.2(vue@3.3.4)