diff --git a/apps/www/.vitepress/theme/components/charts/ChartDisplay.vue b/apps/www/.vitepress/theme/components/charts/ChartDisplay.vue new file mode 100644 index 00000000..c4366ceb --- /dev/null +++ b/apps/www/.vitepress/theme/components/charts/ChartDisplay.vue @@ -0,0 +1,23 @@ + + + diff --git a/apps/www/.vitepress/theme/components/charts/Charts.vue b/apps/www/.vitepress/theme/components/charts/Charts.vue new file mode 100644 index 00000000..6661346f --- /dev/null +++ b/apps/www/.vitepress/theme/components/charts/Charts.vue @@ -0,0 +1,327 @@ + + + diff --git a/apps/www/.vitepress/theme/config/docs.ts b/apps/www/.vitepress/theme/config/docs.ts index 698dcc4b..0e43a879 100644 --- a/apps/www/.vitepress/theme/config/docs.ts +++ b/apps/www/.vitepress/theme/config/docs.ts @@ -30,6 +30,14 @@ export const docsConfig: DocsConfig = { title: 'Components', href: '/docs/components/accordion', }, + { + title: 'Blocks', + href: '/blocks', + }, + { + title: 'Charts', + href: '/charts', + }, { title: 'Themes', href: '/themes', @@ -38,15 +46,6 @@ export const docsConfig: DocsConfig = { title: 'Examples', href: '/examples/mail', }, - { - title: 'Blocks', - href: '/blocks', - }, - { - title: 'GitHub', - href: 'https://github.com/radix-vue/shadcn-vue', - external: true, - }, ], sidebarNav: [ { diff --git a/apps/www/.vitepress/theme/layout/ChartsLayout.vue b/apps/www/.vitepress/theme/layout/ChartsLayout.vue new file mode 100644 index 00000000..71dafa24 --- /dev/null +++ b/apps/www/.vitepress/theme/layout/ChartsLayout.vue @@ -0,0 +1,32 @@ + + + diff --git a/apps/www/src/content/charts.md b/apps/www/src/content/charts.md new file mode 100644 index 00000000..c6db5b63 --- /dev/null +++ b/apps/www/src/content/charts.md @@ -0,0 +1,9 @@ +--- +title: Beautiful Charts +--- + + + + diff --git a/apps/www/src/content/themes.md b/apps/www/src/content/themes.md index 6aa49b26..3df3823a 100644 --- a/apps/www/src/content/themes.md +++ b/apps/www/src/content/themes.md @@ -1,5 +1,5 @@ --- -title: Theming - shadcn-vue +title: Theming --- + + diff --git a/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue b/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue index be913ef3..894d1a13 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue +++ b/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue @@ -61,7 +61,7 @@ function handleLegendItemClick(d: BulletLegendItemInterface, i: number) {