docs: add alpha tag, fix tooltipo styling
This commit is contained in:
parent
a84e1ece5c
commit
b682af02a9
|
|
@ -8,11 +8,11 @@ export interface NavItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SidebarNavItem = NavItem & {
|
export type SidebarNavItem = NavItem & {
|
||||||
items: SidebarNavItem[]
|
items?: SidebarNavItem[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NavItemWithChildren = NavItem & {
|
export type NavItemWithChildren = NavItem & {
|
||||||
items: NavItemWithChildren[]
|
items?: NavItemWithChildren[]
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DocsConfig {
|
interface DocsConfig {
|
||||||
|
|
@ -51,47 +51,38 @@ export const docsConfig: DocsConfig = {
|
||||||
{
|
{
|
||||||
title: 'Introduction',
|
title: 'Introduction',
|
||||||
href: '/docs/introduction',
|
href: '/docs/introduction',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Installation',
|
title: 'Installation',
|
||||||
href: '/docs/installation',
|
href: '/docs/installation',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'components.json',
|
title: 'components.json',
|
||||||
href: '/docs/components-json',
|
href: '/docs/components-json',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Theming',
|
title: 'Theming',
|
||||||
href: '/docs/theming',
|
href: '/docs/theming',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'CLI',
|
title: 'CLI',
|
||||||
href: '/docs/cli',
|
href: '/docs/cli',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Typography',
|
title: 'Typography',
|
||||||
href: '/docs/typography',
|
href: '/docs/typography',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Figma',
|
title: 'Figma',
|
||||||
href: '/docs/figma',
|
href: '/docs/figma',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Changelog',
|
title: 'Changelog',
|
||||||
href: '/docs/changelog',
|
href: '/docs/changelog',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'About',
|
title: 'About',
|
||||||
href: '/docs/about',
|
href: '/docs/about',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
@ -101,47 +92,40 @@ export const docsConfig: DocsConfig = {
|
||||||
{
|
{
|
||||||
title: 'Vite',
|
title: 'Vite',
|
||||||
href: '/docs/installation/vite',
|
href: '/docs/installation/vite',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Nuxt',
|
title: 'Nuxt',
|
||||||
href: '/docs/installation/nuxt',
|
href: '/docs/installation/nuxt',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Astro',
|
title: 'Astro',
|
||||||
href: '/docs/installation/astro',
|
href: '/docs/installation/astro',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Laravel',
|
title: 'Laravel',
|
||||||
href: '/docs/installation/laravel',
|
href: '/docs/installation/laravel',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Charts',
|
title: 'Charts',
|
||||||
|
label: 'Alpha',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: 'Area',
|
title: 'Area',
|
||||||
href: '/docs/charts/area',
|
href: '/docs/charts/area',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Line',
|
title: 'Line',
|
||||||
href: '/docs/charts/line',
|
href: '/docs/charts/line',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Bar',
|
title: 'Bar',
|
||||||
href: '/docs/charts/bar',
|
href: '/docs/charts/bar',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Donut',
|
title: 'Donut',
|
||||||
href: '/docs/charts/donut',
|
href: '/docs/charts/donut',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
@ -151,208 +135,166 @@ export const docsConfig: DocsConfig = {
|
||||||
{
|
{
|
||||||
title: 'Accordion',
|
title: 'Accordion',
|
||||||
href: '/docs/components/accordion',
|
href: '/docs/components/accordion',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Alert',
|
title: 'Alert',
|
||||||
href: '/docs/components/alert',
|
href: '/docs/components/alert',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Alert Dialog',
|
title: 'Alert Dialog',
|
||||||
href: '/docs/components/alert-dialog',
|
href: '/docs/components/alert-dialog',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Aspect Ratio',
|
title: 'Aspect Ratio',
|
||||||
href: '/docs/components/aspect-ratio',
|
href: '/docs/components/aspect-ratio',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Avatar',
|
title: 'Avatar',
|
||||||
href: '/docs/components/avatar',
|
href: '/docs/components/avatar',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Badge',
|
title: 'Badge',
|
||||||
href: '/docs/components/badge',
|
href: '/docs/components/badge',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Button',
|
title: 'Button',
|
||||||
href: '/docs/components/button',
|
href: '/docs/components/button',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Calendar',
|
title: 'Calendar',
|
||||||
href: '/docs/components/calendar',
|
href: '/docs/components/calendar',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Card',
|
title: 'Card',
|
||||||
href: '/docs/components/card',
|
href: '/docs/components/card',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Checkbox',
|
title: 'Checkbox',
|
||||||
href: '/docs/components/checkbox',
|
href: '/docs/components/checkbox',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Collapsible',
|
title: 'Collapsible',
|
||||||
href: '/docs/components/collapsible',
|
href: '/docs/components/collapsible',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Combobox',
|
title: 'Combobox',
|
||||||
href: '/docs/components/combobox',
|
href: '/docs/components/combobox',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Command',
|
title: 'Command',
|
||||||
href: '/docs/components/command',
|
href: '/docs/components/command',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Context Menu',
|
title: 'Context Menu',
|
||||||
href: '/docs/components/context-menu',
|
href: '/docs/components/context-menu',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Data Table',
|
title: 'Data Table',
|
||||||
href: '/docs/components/data-table',
|
href: '/docs/components/data-table',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Date Picker',
|
title: 'Date Picker',
|
||||||
href: '/docs/components/date-picker',
|
href: '/docs/components/date-picker',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Dialog',
|
title: 'Dialog',
|
||||||
href: '/docs/components/dialog',
|
href: '/docs/components/dialog',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Dropdown Menu',
|
title: 'Dropdown Menu',
|
||||||
href: '/docs/components/dropdown-menu',
|
href: '/docs/components/dropdown-menu',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Form',
|
title: 'Form',
|
||||||
href: '/docs/components/form',
|
href: '/docs/components/form',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Hover Card',
|
title: 'Hover Card',
|
||||||
href: '/docs/components/hover-card',
|
href: '/docs/components/hover-card',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Input',
|
title: 'Input',
|
||||||
href: '/docs/components/input',
|
href: '/docs/components/input',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Label',
|
title: 'Label',
|
||||||
href: '/docs/components/label',
|
href: '/docs/components/label',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Menubar',
|
title: 'Menubar',
|
||||||
href: '/docs/components/menubar',
|
href: '/docs/components/menubar',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Navigation Menu',
|
title: 'Navigation Menu',
|
||||||
href: '/docs/components/navigation-menu',
|
href: '/docs/components/navigation-menu',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Pagination',
|
title: 'Pagination',
|
||||||
href: '/docs/components/pagination',
|
href: '/docs/components/pagination',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Popover',
|
title: 'Popover',
|
||||||
href: '/docs/components/popover',
|
href: '/docs/components/popover',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Progress',
|
title: 'Progress',
|
||||||
href: '/docs/components/progress',
|
href: '/docs/components/progress',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Radio Group',
|
title: 'Radio Group',
|
||||||
href: '/docs/components/radio-group',
|
href: '/docs/components/radio-group',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Scroll Area',
|
title: 'Scroll Area',
|
||||||
href: '/docs/components/scroll-area',
|
href: '/docs/components/scroll-area',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Select',
|
title: 'Select',
|
||||||
href: '/docs/components/select',
|
href: '/docs/components/select',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Separator',
|
title: 'Separator',
|
||||||
href: '/docs/components/separator',
|
href: '/docs/components/separator',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Sheet',
|
title: 'Sheet',
|
||||||
href: '/docs/components/sheet',
|
href: '/docs/components/sheet',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Skeleton',
|
title: 'Skeleton',
|
||||||
href: '/docs/components/skeleton',
|
href: '/docs/components/skeleton',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Slider',
|
title: 'Slider',
|
||||||
href: '/docs/components/slider',
|
href: '/docs/components/slider',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Switch',
|
title: 'Switch',
|
||||||
href: '/docs/components/switch',
|
href: '/docs/components/switch',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Table',
|
title: 'Table',
|
||||||
href: '/docs/components/table',
|
href: '/docs/components/table',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Tabs',
|
title: 'Tabs',
|
||||||
href: '/docs/components/tabs',
|
href: '/docs/components/tabs',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Textarea',
|
title: 'Textarea',
|
||||||
href: '/docs/components/textarea',
|
href: '/docs/components/textarea',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Toast',
|
title: 'Toast',
|
||||||
href: '/docs/components/toast',
|
href: '/docs/components/toast',
|
||||||
label: 'New',
|
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Toggle',
|
title: 'Toggle',
|
||||||
href: '/docs/components/toggle',
|
href: '/docs/components/toggle',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Tooltip',
|
title: 'Tooltip',
|
||||||
href: '/docs/components/tooltip',
|
href: '/docs/components/tooltip',
|
||||||
items: [],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,10 @@ const sourceLink = 'https://github.com/radix-vue/shadcn-vue/tree/dev/'
|
||||||
class="mb-1 rounded-md px-2 py-1 text-sm font-semibold"
|
class="mb-1 rounded-md px-2 py-1 text-sm font-semibold"
|
||||||
>
|
>
|
||||||
{{ docsGroup.title }}
|
{{ docsGroup.title }}
|
||||||
|
|
||||||
|
<Badge v-if="docsGroup.label" class="ml-2" :variant="'secondary'">
|
||||||
|
{{ docsGroup.label }}
|
||||||
|
</Badge>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,14 @@
|
||||||
--input: 240 5.9% 90%;
|
--input: 240 5.9% 90%;
|
||||||
--ring: 240 5% 64.9%;
|
--ring: 240 5% 64.9%;
|
||||||
--radius: 0.5rem;
|
--radius: 0.5rem;
|
||||||
|
|
||||||
|
|
||||||
|
--vis-tooltip-background-color: none !important;
|
||||||
|
--vis-tooltip-border-color: none !important;
|
||||||
|
--vis-tooltip-text-color: none !important;
|
||||||
|
--vis-tooltip-shadow-color: none !important;
|
||||||
|
--vis-tooltip-backdrop-filter: none !important;
|
||||||
|
--vis-tooltip-padding: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user