From 41756464e9ad88fae95796f870686588e9033012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Marius=20L=C3=B8set?= Date: Fri, 13 Oct 2023 13:59:53 +0200 Subject: [PATCH] fix: add v-bind="$attrs" to calendar --- .../lib/registry/default/ui/calendar/Calendar.vue | 13 +++++++++++-- .../lib/registry/new-york/ui/calendar/Calendar.vue | 11 ++++++++++- .../public/registry/styles/default/calendar.json | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue index 78f15c80..e21660e8 100644 --- a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue @@ -7,7 +7,7 @@ import { computed, nextTick, onMounted, ref } from 'vue' import { buttonVariants } from '../button' import { cn } from '@/lib/utils' -const props = withDefaults(defineProps< { +const props = withDefaults(defineProps<{ modelValue?: string | number | Date | Partial<{ start: Date end: Date @@ -59,7 +59,16 @@ onMounted(async () => { - + 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 7ca169ad..fbeb8f8e 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 @@ -59,7 +59,16 @@ onMounted(async () => { - + diff --git a/apps/www/src/public/registry/styles/default/calendar.json b/apps/www/src/public/registry/styles/default/calendar.json index 81f3016e..01afbeb9 100644 --- a/apps/www/src/public/registry/styles/default/calendar.json +++ b/apps/www/src/public/registry/styles/default/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",