From 27dc777d19dc749e0f2f66411a98d1ecacc00d73 Mon Sep 17 00:00:00 2001 From: zernonia Date: Tue, 24 Oct 2023 20:57:02 +0800 Subject: [PATCH] chore: build registry --- apps/www/__registry__/index.ts | 43 ++++++++++++++++++- .../registry/new-york/example/CardChat.vue | 8 ++-- .../registry/new-york/example/CommandDemo.vue | 34 +++++++-------- .../example/DatePickerWithPresets.vue | 2 +- .../new-york/ui/calendar/Calendar.vue | 6 +-- .../new-york/ui/command/CommandInput.vue | 4 +- .../ui/context-menu/ContextMenuSubTrigger.vue | 4 +- .../registry/styles/default/accordion.json | 2 +- .../registry/styles/default/alert-dialog.json | 2 +- .../registry/styles/default/checkbox.json | 2 +- .../registry/styles/default/collapsible.json | 2 +- .../registry/styles/default/command.json | 4 +- .../registry/styles/default/context-menu.json | 8 ++-- .../styles/default/dropdown-menu.json | 4 +- .../registry/styles/default/hover-card.json | 2 +- .../registry/styles/default/menubar.json | 4 +- .../registry/styles/default/popover.json | 2 +- .../registry/styles/default/radio-group.json | 2 +- .../registry/styles/default/select.json | 2 +- .../registry/styles/default/switch.json | 2 +- .../registry/styles/default/toggle.json | 2 +- .../registry/styles/default/tooltip.json | 2 +- .../registry/styles/new-york/accordion.json | 2 +- .../styles/new-york/alert-dialog.json | 2 +- .../registry/styles/new-york/calendar.json | 2 +- .../registry/styles/new-york/checkbox.json | 2 +- .../registry/styles/new-york/collapsible.json | 2 +- .../registry/styles/new-york/command.json | 6 +-- .../styles/new-york/context-menu.json | 10 ++--- .../styles/new-york/dropdown-menu.json | 4 +- .../registry/styles/new-york/hover-card.json | 2 +- .../registry/styles/new-york/menubar.json | 6 +-- .../registry/styles/new-york/popover.json | 2 +- .../registry/styles/new-york/radio-group.json | 2 +- .../registry/styles/new-york/select.json | 2 +- .../registry/styles/new-york/switch.json | 2 +- .../registry/styles/new-york/toggle.json | 2 +- .../registry/styles/new-york/tooltip.json | 2 +- 38 files changed, 117 insertions(+), 76 deletions(-) diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 298a8ebb..5438904e 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -576,7 +576,27 @@ export const Index = { component: () => import('../src/lib/registry/default/example/TypographyTable.vue').then(m => m.default), files: ['../src/lib/registry/default/example/TypographyTable.vue'], }, - + ActivityGoal: { + name: 'ActivityGoal', + type: 'components:example', + registryDependencies: ['button', 'card', 'themes', 'config'], + component: () => import('../src/lib/registry/default/example/ActivityGoal.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/ActivityGoal.vue'], + }, + DataTable: { + name: 'DataTable', + type: 'components:example', + registryDependencies: ['button', 'checkbox', 'dropdown-menu', 'input', 'table', 'card', 'utils'], + component: () => import('../src/lib/registry/default/example/DataTable.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/DataTable.vue'], + }, + Metric: { + name: 'Metric', + type: 'components:example', + registryDependencies: ['card', 'config'], + component: () => import('../src/lib/registry/default/example/Metric.vue').then(m => m.default), + files: ['../src/lib/registry/default/example/Metric.vue'], + }, }, 'new-york': { AccordionDemo: { @@ -1153,5 +1173,26 @@ export const Index = { component: () => import('../src/lib/registry/new-york/example/TypographyTable.vue').then(m => m.default), files: ['../src/lib/registry/new-york/example/TypographyTable.vue'], }, + ActivityGoal: { + name: 'ActivityGoal', + type: 'components:example', + registryDependencies: ['button', 'card', 'themes', 'config'], + component: () => import('../src/lib/registry/new-york/example/ActivityGoal.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/ActivityGoal.vue'], + }, + DataTable: { + name: 'DataTable', + type: 'components:example', + registryDependencies: ['button', 'checkbox', 'dropdown-menu', 'input', 'table', 'card', 'utils'], + component: () => import('../src/lib/registry/new-york/example/DataTable.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/DataTable.vue'], + }, + Metric: { + name: 'Metric', + type: 'components:example', + registryDependencies: ['card', 'config'], + component: () => import('../src/lib/registry/new-york/example/Metric.vue').then(m => m.default), + files: ['../src/lib/registry/new-york/example/Metric.vue'], + }, }, } diff --git a/apps/www/src/lib/registry/new-york/example/CardChat.vue b/apps/www/src/lib/registry/new-york/example/CardChat.vue index a1262d67..a98601dc 100644 --- a/apps/www/src/lib/registry/new-york/example/CardChat.vue +++ b/apps/www/src/lib/registry/new-york/example/CardChat.vue @@ -1,5 +1,5 @@ \n\n\n" + "content": "\n\n\n" }, { "name": "AccordionContent.vue", diff --git a/apps/www/src/public/registry/styles/default/alert-dialog.json b/apps/www/src/public/registry/styles/default/alert-dialog.json index cb6830f7..fc8147fe 100644 --- a/apps/www/src/public/registry/styles/default/alert-dialog.json +++ b/apps/www/src/public/registry/styles/default/alert-dialog.json @@ -10,7 +10,7 @@ "files": [ { "name": "AlertDialog.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "AlertDialogAction.vue", diff --git a/apps/www/src/public/registry/styles/default/checkbox.json b/apps/www/src/public/registry/styles/default/checkbox.json index 4773c03b..16db473d 100644 --- a/apps/www/src/public/registry/styles/default/checkbox.json +++ b/apps/www/src/public/registry/styles/default/checkbox.json @@ -9,7 +9,7 @@ "files": [ { "name": "Checkbox.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/collapsible.json b/apps/www/src/public/registry/styles/default/collapsible.json index 5ae12ce9..39fcf75d 100644 --- a/apps/www/src/public/registry/styles/default/collapsible.json +++ b/apps/www/src/public/registry/styles/default/collapsible.json @@ -11,7 +11,7 @@ }, { "name": "CollapsibleContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CollapsibleTrigger.vue", diff --git a/apps/www/src/public/registry/styles/default/command.json b/apps/www/src/public/registry/styles/default/command.json index ac465894..f2905f30 100644 --- a/apps/www/src/public/registry/styles/default/command.json +++ b/apps/www/src/public/registry/styles/default/command.json @@ -10,7 +10,7 @@ "files": [ { "name": "Command.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CommandDialog.vue", @@ -30,7 +30,7 @@ }, { "name": "CommandItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CommandList.vue", diff --git a/apps/www/src/public/registry/styles/default/context-menu.json b/apps/www/src/public/registry/styles/default/context-menu.json index f04f3172..4f524b3b 100644 --- a/apps/www/src/public/registry/styles/default/context-menu.json +++ b/apps/www/src/public/registry/styles/default/context-menu.json @@ -9,7 +9,7 @@ "files": [ { "name": "ContextMenu.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuCheckboxItem.vue", @@ -37,11 +37,11 @@ }, { "name": "ContextMenuRadioGroup.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuRadioItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuSeparator.vue", @@ -53,7 +53,7 @@ }, { "name": "ContextMenuSub.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuSubContent.vue", diff --git a/apps/www/src/public/registry/styles/default/dropdown-menu.json b/apps/www/src/public/registry/styles/default/dropdown-menu.json index 2dbe2e91..3ae58255 100644 --- a/apps/www/src/public/registry/styles/default/dropdown-menu.json +++ b/apps/www/src/public/registry/styles/default/dropdown-menu.json @@ -9,7 +9,7 @@ "files": [ { "name": "DropdownMenu.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DropdownMenuCheckboxItem.vue", @@ -49,7 +49,7 @@ }, { "name": "DropdownMenuSub.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DropdownMenuSubContent.vue", diff --git a/apps/www/src/public/registry/styles/default/hover-card.json b/apps/www/src/public/registry/styles/default/hover-card.json index 974ae91f..0f4b7ad9 100644 --- a/apps/www/src/public/registry/styles/default/hover-card.json +++ b/apps/www/src/public/registry/styles/default/hover-card.json @@ -9,7 +9,7 @@ "files": [ { "name": "HoverCard.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "HoverCardContent.vue", diff --git a/apps/www/src/public/registry/styles/default/menubar.json b/apps/www/src/public/registry/styles/default/menubar.json index b04470db..1cebe4c9 100644 --- a/apps/www/src/public/registry/styles/default/menubar.json +++ b/apps/www/src/public/registry/styles/default/menubar.json @@ -53,7 +53,7 @@ }, { "name": "MenubarSub.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarSubContent.vue", @@ -61,7 +61,7 @@ }, { "name": "MenubarSubTrigger.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarTrigger.vue", diff --git a/apps/www/src/public/registry/styles/default/popover.json b/apps/www/src/public/registry/styles/default/popover.json index 77635e6f..ffa67e75 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 46a40083..9a61ec0c 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/default/select.json b/apps/www/src/public/registry/styles/default/select.json index a0e8ad07..46f524af 100644 --- a/apps/www/src/public/registry/styles/default/select.json +++ b/apps/www/src/public/registry/styles/default/select.json @@ -9,7 +9,7 @@ "files": [ { "name": "Select.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectContent.vue", diff --git a/apps/www/src/public/registry/styles/default/switch.json b/apps/www/src/public/registry/styles/default/switch.json index 8f5006b1..d0e168cd 100644 --- a/apps/www/src/public/registry/styles/default/switch.json +++ b/apps/www/src/public/registry/styles/default/switch.json @@ -9,7 +9,7 @@ "files": [ { "name": "Switch.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/toggle.json b/apps/www/src/public/registry/styles/default/toggle.json index 793cd317..586e88c4 100644 --- a/apps/www/src/public/registry/styles/default/toggle.json +++ b/apps/www/src/public/registry/styles/default/toggle.json @@ -9,7 +9,7 @@ "files": [ { "name": "Toggle.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/tooltip.json b/apps/www/src/public/registry/styles/default/tooltip.json index 82d7da07..5c1f4999 100644 --- a/apps/www/src/public/registry/styles/default/tooltip.json +++ b/apps/www/src/public/registry/styles/default/tooltip.json @@ -9,7 +9,7 @@ "files": [ { "name": "Tooltip.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "TooltipContent.vue", diff --git a/apps/www/src/public/registry/styles/new-york/accordion.json b/apps/www/src/public/registry/styles/new-york/accordion.json index 665db2f0..c6f336c6 100644 --- a/apps/www/src/public/registry/styles/new-york/accordion.json +++ b/apps/www/src/public/registry/styles/new-york/accordion.json @@ -9,7 +9,7 @@ "files": [ { "name": "Accordion.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "AccordionContent.vue", diff --git a/apps/www/src/public/registry/styles/new-york/alert-dialog.json b/apps/www/src/public/registry/styles/new-york/alert-dialog.json index 2cf70dc1..bdd6a6b8 100644 --- a/apps/www/src/public/registry/styles/new-york/alert-dialog.json +++ b/apps/www/src/public/registry/styles/new-york/alert-dialog.json @@ -10,7 +10,7 @@ "files": [ { "name": "AlertDialog.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "AlertDialogAction.vue", diff --git a/apps/www/src/public/registry/styles/new-york/calendar.json b/apps/www/src/public/registry/styles/new-york/calendar.json index f732355f..20c70f6f 100644 --- a/apps/www/src/public/registry/styles/new-york/calendar.json +++ b/apps/www/src/public/registry/styles/new-york/calendar.json @@ -9,7 +9,7 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/checkbox.json b/apps/www/src/public/registry/styles/new-york/checkbox.json index 66d99033..a17b7646 100644 --- a/apps/www/src/public/registry/styles/new-york/checkbox.json +++ b/apps/www/src/public/registry/styles/new-york/checkbox.json @@ -9,7 +9,7 @@ "files": [ { "name": "Checkbox.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/collapsible.json b/apps/www/src/public/registry/styles/new-york/collapsible.json index 5ae12ce9..39fcf75d 100644 --- a/apps/www/src/public/registry/styles/new-york/collapsible.json +++ b/apps/www/src/public/registry/styles/new-york/collapsible.json @@ -11,7 +11,7 @@ }, { "name": "CollapsibleContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CollapsibleTrigger.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 2a38382e..5f5f2f12 100644 --- a/apps/www/src/public/registry/styles/new-york/command.json +++ b/apps/www/src/public/registry/styles/new-york/command.json @@ -10,7 +10,7 @@ "files": [ { "name": "Command.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CommandDialog.vue", @@ -26,11 +26,11 @@ }, { "name": "CommandInput.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n\n\n" }, { "name": "CommandItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "CommandList.vue", diff --git a/apps/www/src/public/registry/styles/new-york/context-menu.json b/apps/www/src/public/registry/styles/new-york/context-menu.json index e59240b1..71968b1e 100644 --- a/apps/www/src/public/registry/styles/new-york/context-menu.json +++ b/apps/www/src/public/registry/styles/new-york/context-menu.json @@ -9,7 +9,7 @@ "files": [ { "name": "ContextMenu.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuCheckboxItem.vue", @@ -37,11 +37,11 @@ }, { "name": "ContextMenuRadioGroup.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuRadioItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuSeparator.vue", @@ -53,7 +53,7 @@ }, { "name": "ContextMenuSub.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuSubContent.vue", @@ -61,7 +61,7 @@ }, { "name": "ContextMenuSubTrigger.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "ContextMenuTrigger.vue", diff --git a/apps/www/src/public/registry/styles/new-york/dropdown-menu.json b/apps/www/src/public/registry/styles/new-york/dropdown-menu.json index 17749630..e1b6aeea 100644 --- a/apps/www/src/public/registry/styles/new-york/dropdown-menu.json +++ b/apps/www/src/public/registry/styles/new-york/dropdown-menu.json @@ -9,7 +9,7 @@ "files": [ { "name": "DropdownMenu.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DropdownMenuCheckboxItem.vue", @@ -49,7 +49,7 @@ }, { "name": "DropdownMenuSub.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DropdownMenuSubContent.vue", diff --git a/apps/www/src/public/registry/styles/new-york/hover-card.json b/apps/www/src/public/registry/styles/new-york/hover-card.json index 974ae91f..0f4b7ad9 100644 --- a/apps/www/src/public/registry/styles/new-york/hover-card.json +++ b/apps/www/src/public/registry/styles/new-york/hover-card.json @@ -9,7 +9,7 @@ "files": [ { "name": "HoverCard.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "HoverCardContent.vue", diff --git a/apps/www/src/public/registry/styles/new-york/menubar.json b/apps/www/src/public/registry/styles/new-york/menubar.json index 9b15b69f..754e80bc 100644 --- a/apps/www/src/public/registry/styles/new-york/menubar.json +++ b/apps/www/src/public/registry/styles/new-york/menubar.json @@ -17,7 +17,7 @@ }, { "name": "MenubarContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarGroup.vue", @@ -53,7 +53,7 @@ }, { "name": "MenubarSub.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarSubContent.vue", @@ -61,7 +61,7 @@ }, { "name": "MenubarSubTrigger.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarTrigger.vue", 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 d395bb28..f8c94b8d 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 7460b3ba..7343f9d9 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 0acbf8d7..44551ac1 100644 --- a/apps/www/src/public/registry/styles/new-york/select.json +++ b/apps/www/src/public/registry/styles/new-york/select.json @@ -9,7 +9,7 @@ "files": [ { "name": "Select.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectContent.vue", diff --git a/apps/www/src/public/registry/styles/new-york/switch.json b/apps/www/src/public/registry/styles/new-york/switch.json index dc47e636..ba0ec392 100644 --- a/apps/www/src/public/registry/styles/new-york/switch.json +++ b/apps/www/src/public/registry/styles/new-york/switch.json @@ -9,7 +9,7 @@ "files": [ { "name": "Switch.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/toggle.json b/apps/www/src/public/registry/styles/new-york/toggle.json index 7164ae71..f2eb55b0 100644 --- a/apps/www/src/public/registry/styles/new-york/toggle.json +++ b/apps/www/src/public/registry/styles/new-york/toggle.json @@ -9,7 +9,7 @@ "files": [ { "name": "Toggle.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/new-york/tooltip.json b/apps/www/src/public/registry/styles/new-york/tooltip.json index 0e0faee6..834e9118 100644 --- a/apps/www/src/public/registry/styles/new-york/tooltip.json +++ b/apps/www/src/public/registry/styles/new-york/tooltip.json @@ -9,7 +9,7 @@ "files": [ { "name": "Tooltip.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "TooltipContent.vue",