diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 4f8045fe..73cd6b10 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -415,6 +415,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: { @@ -830,5 +851,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/default/example/Cards/index.vue b/apps/www/src/lib/registry/default/example/Cards/index.vue deleted file mode 100644 index 44ad59d6..00000000 --- a/apps/www/src/lib/registry/default/example/Cards/index.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - diff --git a/apps/www/src/lib/registry/registry.ts b/apps/www/src/lib/registry/registry.ts index 2f0a7f02..3ffd3248 100644 --- a/apps/www/src/lib/registry/registry.ts +++ b/apps/www/src/lib/registry/registry.ts @@ -64,7 +64,7 @@ async function crawlExample(rootPath: string) { const [name] = dirent.name.split('.vue') const file_path = join('example', dirent.name) const { dependencies, registryDependencies } - = await getDependencies(join(rootPath, dirent.name)) + = await getDependencies(join(dirent.path, dirent.name)) exampleRegistry.push({ name, diff --git a/apps/www/src/public/registry/styles/default/menubar.json b/apps/www/src/public/registry/styles/default/menubar.json index 3a37f6ab..b04470db 100644 --- a/apps/www/src/public/registry/styles/default/menubar.json +++ b/apps/www/src/public/registry/styles/default/menubar.json @@ -13,7 +13,7 @@ }, { "name": "MenubarCheckboxItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarContent.vue", @@ -41,7 +41,7 @@ }, { "name": "MenubarRadioItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarSeparator.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 e05dcd8c..6bdf20b7 100644 --- a/apps/www/src/public/registry/styles/default/radio-group.json +++ b/apps/www/src/public/registry/styles/default/radio-group.json @@ -13,7 +13,7 @@ }, { "name": "RadioGroupItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", diff --git a/apps/www/src/public/registry/styles/default/select.json b/apps/www/src/public/registry/styles/default/select.json index 285f7f16..8cd6d903 100644 --- a/apps/www/src/public/registry/styles/default/select.json +++ b/apps/www/src/public/registry/styles/default/select.json @@ -21,7 +21,7 @@ }, { "name": "SelectItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectItemText.vue", diff --git a/apps/www/src/public/registry/styles/default/textarea.json b/apps/www/src/public/registry/styles/default/textarea.json index 7ceaf393..66db3556 100644 --- a/apps/www/src/public/registry/styles/default/textarea.json +++ b/apps/www/src/public/registry/styles/default/textarea.json @@ -7,7 +7,7 @@ "files": [ { "name": "Textarea.vue", - "content": "\n\n