diff --git a/apps/www/.vitepress/theme/styles/vp-doc.css b/apps/www/.vitepress/theme/styles/vp-doc.css index 2a8cc5dc..453c73db 100644 --- a/apps/www/.vitepress/theme/styles/vp-doc.css +++ b/apps/www/.vitepress/theme/styles/vp-doc.css @@ -171,22 +171,22 @@ * Table * -------------------------------------------------------------------------- */ -.vp-doc table { +.vp-doc table:not(:where(.not-docs *)) { @apply relative w-full overflow-hidden border-none text-sm; } -.vp-doc tr { +.vp-doc tr:not(:where(.not-docs *)) { @apply m-0 border-b; } -.vp-doc tbody tr:last-child { +.vp-doc tbody:not(:where(.not-docs *)) tr:last-child { @apply border-b-0; } -.vp-doc th { +.vp-doc th:not(:where(.not-docs *)) { @apply px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right; } -.vp-doc td { +.vp-doc td:not(:where(.not-docs *)) { @apply px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right; } diff --git a/apps/www/src/public/r/index.json b/apps/www/src/public/r/index.json index 48ed096e..5e7f4fc6 100644 --- a/apps/www/src/public/r/index.json +++ b/apps/www/src/public/r/index.json @@ -660,7 +660,8 @@ "name": "command", "type": "registry:ui", "dependencies": [ - "reka-ui" + "reka-ui", + "@vueuse/core" ], "registryDependencies": [ "utils", @@ -2783,7 +2784,8 @@ "name": "command", "type": "registry:ui", "dependencies": [ - "reka-ui" + "reka-ui", + "@vueuse/core" ], "registryDependencies": [ "utils", diff --git a/apps/www/src/public/r/styles/default/command.json b/apps/www/src/public/r/styles/default/command.json index 6b3fb3bd..f38ee709 100644 --- a/apps/www/src/public/r/styles/default/command.json +++ b/apps/www/src/public/r/styles/default/command.json @@ -2,7 +2,8 @@ "name": "command", "type": "registry:ui", "dependencies": [ - "reka-ui" + "reka-ui", + "@vueuse/core" ], "registryDependencies": [ "utils", @@ -11,7 +12,7 @@ "files": [ { "path": "ui/command/Command.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -23,37 +24,37 @@ }, { "path": "ui/command/CommandEmpty.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandGroup.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandInput.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandItem.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandList.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandSeparator.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -65,7 +66,7 @@ }, { "path": "ui/command/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", + "content": "import type { Ref } from 'vue'\nimport { createContext } from 'reka-ui'\n\nexport { 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\nexport const [useCommand, provideCommandContext] = createContext<{\n allItems: Ref>\n allGroups: Ref>>\n filterState: {\n search: string\n filtered: { count: number, items: Map, groups: Set }\n }\n}>('Command')\n\nexport const [useCommandGroup, provideCommandGroupContext] = createContext<{\n id?: string\n}>('CommandGroup')\n", "type": "registry:ui", "target": "" } diff --git a/apps/www/src/public/r/styles/new-york/command.json b/apps/www/src/public/r/styles/new-york/command.json index 37ea9efb..7336b3c7 100644 --- a/apps/www/src/public/r/styles/new-york/command.json +++ b/apps/www/src/public/r/styles/new-york/command.json @@ -2,7 +2,8 @@ "name": "command", "type": "registry:ui", "dependencies": [ - "reka-ui" + "reka-ui", + "@vueuse/core" ], "registryDependencies": [ "utils", @@ -11,7 +12,7 @@ "files": [ { "path": "ui/command/Command.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -23,37 +24,37 @@ }, { "path": "ui/command/CommandEmpty.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandGroup.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandInput.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandItem.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandList.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandSeparator.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -65,7 +66,7 @@ }, { "path": "ui/command/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", + "content": "import type { Ref } from 'vue'\nimport { createContext } from 'reka-ui'\n\nexport { 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\nexport const [useCommand, provideCommandContext] = createContext<{\n allItems: Ref>\n allGroups: Ref>>\n filterState: {\n search: string\n filtered: { count: number, items: Map, groups: Set }\n }\n}>('Command')\n\nexport const [useCommandGroup, provideCommandGroupContext] = createContext<{\n id?: string\n}>('CommandGroup')\n", "type": "registry:ui", "target": "" } diff --git a/apps/www/src/public/r/styles/new-york/radio-group.json b/apps/www/src/public/r/styles/new-york/radio-group.json index 86eac016..b41eb3d9 100644 --- a/apps/www/src/public/r/styles/new-york/radio-group.json +++ b/apps/www/src/public/r/styles/new-york/radio-group.json @@ -16,7 +16,7 @@ }, { "path": "ui/radio-group/RadioGroupItem.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, diff --git a/apps/www/src/public/r/temp.json b/apps/www/src/public/r/temp.json index fb89ed0b..3131f4cf 100644 --- a/apps/www/src/public/r/temp.json +++ b/apps/www/src/public/r/temp.json @@ -1050,7 +1050,8 @@ "name": "command", "type": "registry:ui", "dependencies": [ - "reka-ui" + "reka-ui", + "@vueuse/core" ], "registryDependencies": [ "utils", @@ -1059,7 +1060,7 @@ "files": [ { "path": "ui/command/Command.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -1071,37 +1072,37 @@ }, { "path": "ui/command/CommandEmpty.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandGroup.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandInput.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandItem.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandList.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandSeparator.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -1113,7 +1114,7 @@ }, { "path": "ui/command/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", + "content": "import type { Ref } from 'vue'\nimport { createContext } from 'reka-ui'\n\nexport { 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\nexport const [useCommand, provideCommandContext] = createContext<{\n allItems: Ref>\n allGroups: Ref>>\n filterState: {\n search: string\n filtered: { count: number, items: Map, groups: Set }\n }\n}>('Command')\n\nexport const [useCommandGroup, provideCommandGroupContext] = createContext<{\n id?: string\n}>('CommandGroup')\n", "type": "registry:ui", "target": "" } @@ -2001,7 +2002,7 @@ }, { "path": "ui/radio-group/RadioGroupItem.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -8342,7 +8343,8 @@ "name": "command", "type": "registry:ui", "dependencies": [ - "reka-ui" + "reka-ui", + "@vueuse/core" ], "registryDependencies": [ "utils", @@ -8351,7 +8353,7 @@ "files": [ { "path": "ui/command/Command.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -8363,37 +8365,37 @@ }, { "path": "ui/command/CommandEmpty.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandGroup.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandInput.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandItem.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandList.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, { "path": "ui/command/CommandSeparator.vue", - "content": "\n\n\n", + "content": "\n\n\n", "type": "registry:ui", "target": "" }, @@ -8405,7 +8407,7 @@ }, { "path": "ui/command/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", + "content": "import type { Ref } from 'vue'\nimport { createContext } from 'reka-ui'\n\nexport { 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\nexport const [useCommand, provideCommandContext] = createContext<{\n allItems: Ref>\n allGroups: Ref>>\n filterState: {\n search: string\n filtered: { count: number, items: Map, groups: Set }\n }\n}>('Command')\n\nexport const [useCommandGroup, provideCommandGroupContext] = createContext<{\n id?: string\n}>('CommandGroup')\n", "type": "registry:ui", "target": "" } diff --git a/apps/www/src/registry/default/ui/command/Command.vue b/apps/www/src/registry/default/ui/command/Command.vue index 467ae019..95970101 100644 --- a/apps/www/src/registry/default/ui/command/Command.vue +++ b/apps/www/src/registry/default/ui/command/Command.vue @@ -1,15 +1,15 @@ diff --git a/apps/www/src/registry/default/ui/command/CommandEmpty.vue b/apps/www/src/registry/default/ui/command/CommandEmpty.vue index 1908f93c..58795f21 100644 --- a/apps/www/src/registry/default/ui/command/CommandEmpty.vue +++ b/apps/www/src/registry/default/ui/command/CommandEmpty.vue @@ -1,20 +1,25 @@ diff --git a/apps/www/src/registry/default/ui/command/CommandGroup.vue b/apps/www/src/registry/default/ui/command/CommandGroup.vue index 683bf592..fd4f5b38 100644 --- a/apps/www/src/registry/default/ui/command/CommandGroup.vue +++ b/apps/www/src/registry/default/ui/command/CommandGroup.vue @@ -1,10 +1,11 @@ diff --git a/apps/www/src/registry/default/ui/command/CommandInput.vue b/apps/www/src/registry/default/ui/command/CommandInput.vue index 2713203f..4c3b963d 100644 --- a/apps/www/src/registry/default/ui/command/CommandInput.vue +++ b/apps/www/src/registry/default/ui/command/CommandInput.vue @@ -1,14 +1,15 @@ diff --git a/apps/www/src/registry/default/ui/command/CommandItem.vue b/apps/www/src/registry/default/ui/command/CommandItem.vue index dd5a872d..a72d16d2 100644 --- a/apps/www/src/registry/default/ui/command/CommandItem.vue +++ b/apps/www/src/registry/default/ui/command/CommandItem.vue @@ -1,11 +1,13 @@ diff --git a/apps/www/src/registry/default/ui/command/CommandList.vue b/apps/www/src/registry/default/ui/command/CommandList.vue index 82e81e96..83c7d95a 100644 --- a/apps/www/src/registry/default/ui/command/CommandList.vue +++ b/apps/www/src/registry/default/ui/command/CommandList.vue @@ -1,13 +1,10 @@ diff --git a/apps/www/src/registry/default/ui/command/CommandSeparator.vue b/apps/www/src/registry/default/ui/command/CommandSeparator.vue index cc5f0550..41220204 100644 --- a/apps/www/src/registry/default/ui/command/CommandSeparator.vue +++ b/apps/www/src/registry/default/ui/command/CommandSeparator.vue @@ -1,10 +1,10 @@ diff --git a/apps/www/src/registry/default/ui/command/index.ts b/apps/www/src/registry/default/ui/command/index.ts index 0e35f4b9..cb48e1eb 100644 --- a/apps/www/src/registry/default/ui/command/index.ts +++ b/apps/www/src/registry/default/ui/command/index.ts @@ -1,3 +1,6 @@ +import type { Ref } from 'vue' +import { createContext } from 'reka-ui' + export { default as Command } from './Command.vue' export { default as CommandDialog } from './CommandDialog.vue' export { default as CommandEmpty } from './CommandEmpty.vue' @@ -7,3 +10,16 @@ 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' + +export const [useCommand, provideCommandContext] = createContext<{ + allItems: Ref> + allGroups: Ref>> + filterState: { + search: string + filtered: { count: number, items: Map, groups: Set } + } +}>('Command') + +export const [useCommandGroup, provideCommandGroupContext] = createContext<{ + id?: string +}>('CommandGroup') diff --git a/apps/www/src/registry/new-york/ui/command/Command.vue b/apps/www/src/registry/new-york/ui/command/Command.vue index 467ae019..95970101 100644 --- a/apps/www/src/registry/new-york/ui/command/Command.vue +++ b/apps/www/src/registry/new-york/ui/command/Command.vue @@ -1,15 +1,15 @@ diff --git a/apps/www/src/registry/new-york/ui/command/CommandEmpty.vue b/apps/www/src/registry/new-york/ui/command/CommandEmpty.vue index 1908f93c..58795f21 100644 --- a/apps/www/src/registry/new-york/ui/command/CommandEmpty.vue +++ b/apps/www/src/registry/new-york/ui/command/CommandEmpty.vue @@ -1,20 +1,25 @@ diff --git a/apps/www/src/registry/new-york/ui/command/CommandGroup.vue b/apps/www/src/registry/new-york/ui/command/CommandGroup.vue index 683bf592..fd4f5b38 100644 --- a/apps/www/src/registry/new-york/ui/command/CommandGroup.vue +++ b/apps/www/src/registry/new-york/ui/command/CommandGroup.vue @@ -1,10 +1,11 @@ diff --git a/apps/www/src/registry/new-york/ui/command/CommandInput.vue b/apps/www/src/registry/new-york/ui/command/CommandInput.vue index a8cb4e0d..4c3b963d 100644 --- a/apps/www/src/registry/new-york/ui/command/CommandInput.vue +++ b/apps/www/src/registry/new-york/ui/command/CommandInput.vue @@ -1,14 +1,15 @@