diff --git a/apps/www/.vitepress/config.mts b/apps/www/.vitepress/config.mts index 11573b64..42998819 100644 --- a/apps/www/.vitepress/config.mts +++ b/apps/www/.vitepress/config.mts @@ -17,6 +17,9 @@ export default defineConfig({ ['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }], ['link', { rel: 'manifest', href: '/site.webmanifest' }], + ['meta', { name: 'theme-color', media: '(prefers-color-scheme: light)', content: 'white' }], + ['meta', { name: 'theme-color', media: '(prefers-color-scheme: dark)', content: 'black' }], + ['meta', { name: 'creator', content: 'radix-vue' }], ['meta', { name: 'theme-color', content: '#41b883' }], ['meta', { name: 'og:type', content: 'website' }], diff --git a/apps/www/.vitepress/theme/components/LandingPage.vue b/apps/www/.vitepress/theme/components/LandingPage.vue index ea6bab61..f853b49a 100644 --- a/apps/www/.vitepress/theme/components/LandingPage.vue +++ b/apps/www/.vitepress/theme/components/LandingPage.vue @@ -4,7 +4,6 @@ import PageHeaderHeading from '../components/PageHeaderHeading.vue' import PageHeaderDescription from '../components/PageHeaderDescription.vue' import ExamplesNav from '../components/ExamplesNav.vue' import { announcementConfig } from '../config/site' -import ArrowRightIcon from '~icons/radix-icons/arrow-right' import GitHubIcon from '~icons/radix-icons/github-logo' import { buttonVariants } from '@/lib/registry/new-york/ui/button' diff --git a/apps/www/.vitepress/theme/components/Tooltip.vue b/apps/www/.vitepress/theme/components/Tooltip.vue index a910e4a3..73f07a3e 100644 --- a/apps/www/.vitepress/theme/components/Tooltip.vue +++ b/apps/www/.vitepress/theme/components/Tooltip.vue @@ -1,5 +1,4 @@ diff --git a/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue b/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue index 04f9614f..9d2e4506 100644 --- a/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/ComboboxDemo.vue @@ -10,6 +10,7 @@ import { CommandGroup, CommandInput, CommandItem, + CommandList, } from '@/lib/registry/new-york/ui/command' import { Popover, @@ -48,25 +49,27 @@ const filterFunction = (list: typeof frameworks, search: string) => list.filter( No framework found. - - - {{ framework.label }} - - - + + + + {{ framework.label }} + + + + diff --git a/apps/www/src/lib/registry/new-york/example/ComboboxForm.vue b/apps/www/src/lib/registry/new-york/example/ComboboxForm.vue index eb112afc..247c0870 100644 --- a/apps/www/src/lib/registry/new-york/example/ComboboxForm.vue +++ b/apps/www/src/lib/registry/new-york/example/ComboboxForm.vue @@ -13,6 +13,7 @@ import { CommandGroup, CommandInput, CommandItem, + CommandList, } from '@/lib/registry/new-york/ui/command' import { FormControl, @@ -86,23 +87,25 @@ const onSubmit = handleSubmit((values) => { Nothing found. - - - {{ language.label }} - - - + + + + {{ language.label }} + + + + diff --git a/apps/www/src/lib/registry/new-york/example/ScrollAreaHorizontalDemo.vue b/apps/www/src/lib/registry/new-york/example/ScrollAreaHorizontalDemo.vue index e3c9bb7f..13c8efcd 100644 --- a/apps/www/src/lib/registry/new-york/example/ScrollAreaHorizontalDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/ScrollAreaHorizontalDemo.vue @@ -2,20 +2,24 @@ import { ScrollArea, ScrollBar } from '@/lib/registry/new-york/ui/scroll-area' interface Artwork { + id: string artist: string art: string } const works: Artwork[] = [ { + id: '1', artist: 'Ornella Binni', art: 'https://images.unsplash.com/photo-1465869185982-5a1a7522cbcb?auto=format&fit=crop&w=300&q=80', }, { + id: '2', artist: 'Tom Byrom', art: 'https://images.unsplash.com/photo-1548516173-3cabfa4607e9?auto=format&fit=crop&w=300&q=80', }, { + id: '3', artist: 'Vladimir Malyavko', art: 'https://images.unsplash.com/photo-1494337480532-3725c85fd2ab?auto=format&fit=crop&w=300&q=80', }, @@ -30,7 +34,7 @@ const works: Artwork[] = [
diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue b/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue index 6bbf1de4..83eb965f 100644 --- a/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/new-york/ui/calendar/Calendar.vue @@ -7,15 +7,29 @@ import { computed, nextTick, onMounted, ref } from 'vue' import { buttonVariants } from '@/lib/registry/new-york/ui/button' import { cn } from '@/lib/utils' +/* Extracted from v-calendar */ +type DatePickerModel = DatePickerDate | DatePickerRangeObject +type DateSource = Date | string | number +type DatePickerDate = DateSource | Partial | null +interface DatePickerRangeObject { + start: Exclude + end: Exclude +} +interface SimpleDateParts { + year: number + month: number + day: number + hours: number + minutes: number + seconds: number + milliseconds: number +} + defineOptions({ inheritAttrs: false, }) - const props = withDefaults(defineProps< { - modelValue?: string | number | Date | Partial<{ - start: Date - end: Date - }> + modelValue?: string | number | Date | DatePickerModel modelModifiers?: object columns?: number type?: 'single' | 'range' @@ -53,7 +67,7 @@ onMounted(async () => {