diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 4c63e1e7..e0a88842 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -86,6 +86,20 @@ export const Index = { component: () => import('../src/lib/registry/default/example/CollapsibleDemo.vue').then(m => m.default), files: ['../src/lib/registry/default/example/CollapsibleDemo.vue'], }, + ComboboxDemo: { + name: 'ComboboxDemo', + type: 'components:example', + registryDependencies: ['utils', 'button', 'command', 'popover'], + component: () => import('../src/lib/registry/default/example/ComboboxDemo.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/ComboboxDemo.vue'], + }, + CommandDemo: { + name: 'CommandDemo', + type: 'components:example', + registryDependencies: ['command'], + component: () => import('../src/lib/registry/default/example/CommandDemo.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/CommandDemo.vue'], + }, ContextMenuDemo: { name: 'ContextMenuDemo', type: 'components:example', @@ -466,6 +480,20 @@ export const Index = { component: () => import('../src/lib/registry/new-york/example/CollapsibleDemo.vue').then(m => m.default), files: ['../src/lib/registry/new-york/example/CollapsibleDemo.vue'], }, + ComboboxDemo: { + name: 'ComboboxDemo', + type: 'components:example', + registryDependencies: ['utils', 'button', 'command', 'popover'], + component: () => import('../src/lib/registry/new-york/example/ComboboxDemo.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/ComboboxDemo.vue'], + }, + CommandDemo: { + name: 'CommandDemo', + type: 'components:example', + registryDependencies: ['command'], + component: () => import('../src/lib/registry/new-york/example/CommandDemo.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/CommandDemo.vue'], + }, ContextMenuDemo: { name: 'ContextMenuDemo', type: 'components:example', diff --git a/apps/www/src/public/registry/index.json b/apps/www/src/public/registry/index.json index 287846f0..786ecec6 100644 --- a/apps/www/src/public/registry/index.json +++ b/apps/www/src/public/registry/index.json @@ -166,6 +166,29 @@ ], "type": "components:ui" }, + { + "name": "command", + "dependencies": [ + "radix-vue" + ], + "registryDependencies": [ + "utils", + "dialog" + ], + "files": [ + "ui/command/Command.vue", + "ui/command/CommandDialog.vue", + "ui/command/CommandEmpty.vue", + "ui/command/CommandGroup.vue", + "ui/command/CommandInput.vue", + "ui/command/CommandItem.vue", + "ui/command/CommandList.vue", + "ui/command/CommandSeparator.vue", + "ui/command/CommandShortcut.vue", + "ui/command/index.ts" + ], + "type": "components:ui" + }, { "name": "context-menu", "dependencies": [ diff --git a/apps/www/src/public/registry/styles/default/command.json b/apps/www/src/public/registry/styles/default/command.json index c03e3887..1b573b0e 100644 --- a/apps/www/src/public/registry/styles/default/command.json +++ b/apps/www/src/public/registry/styles/default/command.json @@ -1,15 +1,52 @@ { "name": "command", "dependencies": [ - "cmdk" + "radix-vue" ], "registryDependencies": [ + "utils", "dialog" ], "files": [ { - "name": "command.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { DialogProps } from \"@radix-ui/react-dialog\"\nimport { Command as CommandPrimitive } from \"cmdk\"\nimport { Search } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Dialog, DialogContent } from \"@/registry/default/ui/dialog\"\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\nCommand.displayName = CommandPrimitive.displayName\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n \n \n \n {children}\n \n \n \n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n
\n \n \n
\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n class,\n ...props\n}: React.HTMLAttributes) => {\n return (\n \n )\n}\nCommandShortcut.displayName = \"CommandShortcut\"\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n" + "name": "Command.vue", + "content": "\n\n\n" + }, + { + "name": "CommandDialog.vue", + "content": "\n\n\n" + }, + { + "name": "CommandEmpty.vue", + "content": "\n\n\n" + }, + { + "name": "CommandGroup.vue", + "content": "\n\n\n" + }, + { + "name": "CommandInput.vue", + "content": "\n\n\n\n\n" + }, + { + "name": "CommandItem.vue", + "content": "\n\n\n" + }, + { + "name": "CommandList.vue", + "content": "\n\n\n" + }, + { + "name": "CommandSeparator.vue", + "content": "\n\n\n" + }, + { + "name": "CommandShortcut.vue", + "content": "\n\n\n" + }, + { + "name": "index.ts", + "content": "export { default as Command } from './Command.vue'\nexport { default as CommandDialog } from './CommandDialog.vue'\nexport { default as CommandEmpty } from './CommandEmpty.vue'\nexport { default as CommandGroup } from './CommandGroup.vue'\nexport { default as CommandInput } from './CommandInput.vue'\nexport { default as CommandItem } from './CommandItem.vue'\nexport { default as CommandList } from './CommandList.vue'\nexport { default as CommandSeparator } from './CommandSeparator.vue'\nexport { default as CommandShortcut } from './CommandShortcut.vue'\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/default/popover.json b/apps/www/src/public/registry/styles/default/popover.json index a911d0a7..cc62229b 100644 --- a/apps/www/src/public/registry/styles/default/popover.json +++ b/apps/www/src/public/registry/styles/default/popover.json @@ -9,7 +9,7 @@ "files": [ { "name": "Popover.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "PopoverContent.vue", diff --git a/apps/www/src/public/registry/styles/default/radio-group.json b/apps/www/src/public/registry/styles/default/radio-group.json index d986f80d..e05dcd8c 100644 --- a/apps/www/src/public/registry/styles/default/radio-group.json +++ b/apps/www/src/public/registry/styles/default/radio-group.json @@ -9,7 +9,7 @@ "files": [ { "name": "RadioGroup.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "RadioGroupItem.vue", 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 74758c9f..2a263163 100644 --- a/apps/www/src/public/registry/styles/new-york/command.json +++ b/apps/www/src/public/registry/styles/new-york/command.json @@ -1,15 +1,52 @@ { "name": "command", "dependencies": [ - "cmdk" + "radix-vue" ], "registryDependencies": [ + "utils", "dialog" ], "files": [ { - "name": "command.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { DialogProps } from \"@radix-ui/react-dialog\"\nimport { MagnifyingGlassIcon } from \"@radix-ui/react-icons\"\nimport { Command as CommandPrimitive } from \"cmdk\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Dialog, DialogContent } from \"@/registry/new-york/ui/dialog\"\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\nCommand.displayName = CommandPrimitive.displayName\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n \n \n \n {children}\n \n \n \n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n
\n \n \n
\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ class, ...props }, ref) => (\n \n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n class,\n ...props\n}: React.HTMLAttributes) => {\n return (\n \n )\n}\nCommandShortcut.displayName = \"CommandShortcut\"\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n" + "name": "Command.vue", + "content": "\n\n\n" + }, + { + "name": "CommandDialog.vue", + "content": "\n\n\n" + }, + { + "name": "CommandEmpty.vue", + "content": "\n\n\n" + }, + { + "name": "CommandGroup.vue", + "content": "\n\n\n" + }, + { + "name": "CommandInput.vue", + "content": "\n\n\n\n\n" + }, + { + "name": "CommandItem.vue", + "content": "\n\n\n" + }, + { + "name": "CommandList.vue", + "content": "\n\n\n" + }, + { + "name": "CommandSeparator.vue", + "content": "\n\n\n" + }, + { + "name": "CommandShortcut.vue", + "content": "\n\n\n" + }, + { + "name": "index.ts", + "content": "export { default as Command } from './Command.vue'\nexport { default as CommandDialog } from './CommandDialog.vue'\nexport { default as CommandEmpty } from './CommandEmpty.vue'\nexport { default as CommandGroup } from './CommandGroup.vue'\nexport { default as CommandInput } from './CommandInput.vue'\nexport { default as CommandItem } from './CommandItem.vue'\nexport { default as CommandList } from './CommandList.vue'\nexport { default as CommandSeparator } from './CommandSeparator.vue'\nexport { default as CommandShortcut } from './CommandShortcut.vue'\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/new-york/popover.json b/apps/www/src/public/registry/styles/new-york/popover.json index a911d0a7..cc62229b 100644 --- a/apps/www/src/public/registry/styles/new-york/popover.json +++ b/apps/www/src/public/registry/styles/new-york/popover.json @@ -9,7 +9,7 @@ "files": [ { "name": "Popover.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "PopoverContent.vue", diff --git a/apps/www/src/public/registry/styles/new-york/radio-group.json b/apps/www/src/public/registry/styles/new-york/radio-group.json index 557cfa8f..0dbb6205 100644 --- a/apps/www/src/public/registry/styles/new-york/radio-group.json +++ b/apps/www/src/public/registry/styles/new-york/radio-group.json @@ -9,7 +9,7 @@ "files": [ { "name": "RadioGroup.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "RadioGroupItem.vue", diff --git a/apps/www/src/public/registry/styles/new-york/select.json b/apps/www/src/public/registry/styles/new-york/select.json index d13a3def..4e993241 100644 --- a/apps/www/src/public/registry/styles/new-york/select.json +++ b/apps/www/src/public/registry/styles/new-york/select.json @@ -13,7 +13,7 @@ }, { "name": "SelectContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectGroup.vue", @@ -37,7 +37,7 @@ }, { "name": "SelectTrigger.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectValue.vue",