From ffe96965473141cbfa43cd520e603c553fbe961e Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Sun, 24 Mar 2024 00:05:07 +0330 Subject: [PATCH] feat: new calendar --- .../theme/components/theming/Theming.vue | 3 +- apps/www/.vitepress/theme/config/docs.ts | 6 +- apps/www/__registry__/index.ts | 210 ++++++---- apps/www/package.json | 1 + .../src/content/docs/components/calendar.md | 83 +--- .../src/content/docs/components/v-calendar.md | 91 +++++ .../{date-picker.md => v-date-picker.md} | 16 +- .../dashboard/components/DateRangePicker.vue | 3 +- .../examples/forms/components/AccountForm.vue | 3 +- .../examples/mail/components/MailDisplay.vue | 2 +- .../registry/default/example/CalendarDemo.vue | 5 +- .../registry/default/example/CalendarForm.vue | 95 +++++ .../default/example/CalendarWithSelect.vue | 83 ++++ .../registry/default/example/ComboboxDemo.vue | 2 +- .../default/example/VCalendarDemo.vue | 10 + ...DatePickerDemo.vue => VDatePickerDemo.vue} | 2 +- ...DatePickerForm.vue => VDatePickerForm.vue} | 2 +- ...Presets.vue => VDatePickerWithPresets.vue} | 2 +- ...WithRange.vue => VDatePickerWithRange.vue} | 2 +- ...PickerDemo.vue => VDateTimePickerDemo.vue} | 2 +- ...rWithSlot.vue => VRangePickerWithSlot.vue} | 2 +- .../registry/default/ui/calendar/Calendar.vue | 369 +++--------------- .../default/ui/calendar/CalendarCell.vue | 24 ++ .../ui/calendar/CalendarCellTrigger.vue | 38 ++ .../default/ui/calendar/CalendarGrid.vue | 24 ++ .../default/ui/calendar/CalendarGridBody.vue | 11 + .../default/ui/calendar/CalendarGridHead.vue | 12 + .../default/ui/calendar/CalendarGridRow.vue | 21 + .../default/ui/calendar/CalendarHeadCell.vue | 21 + .../default/ui/calendar/CalendarHeader.vue | 21 + .../default/ui/calendar/CalendarHeading.vue | 27 ++ .../ui/calendar/CalendarNextButton.vue | 32 ++ .../ui/calendar/CalendarPrevButton.vue | 32 ++ .../lib/registry/default/ui/calendar/index.ts | 32 +- .../default/ui/v-calendar/Calendar.vue | 331 ++++++++++++++++ .../registry/default/ui/v-calendar/index.ts | 22 ++ .../new-york/example/CalendarDemo.vue | 5 +- .../new-york/example/CalendarForm.vue | 80 ++++ .../new-york/example/CalendarWithSelect.vue | 0 .../new-york/example/VCalendarDemo.vue | 10 + ...DatePickerDemo.vue => VDatePickerDemo.vue} | 2 +- ...DatePickerForm.vue => VDatePickerForm.vue} | 2 +- ...Presets.vue => VDatePickerWithPresets.vue} | 2 +- ...WithRange.vue => VDatePickerWithRange.vue} | 2 +- ...PickerDemo.vue => VDateTimePickerDemo.vue} | 4 +- ...rWithSlot.vue => VRangePickerWithSlot.vue} | 2 +- .../new-york/ui/calendar/Calendar.vue | 365 +++-------------- .../new-york/ui/calendar/CalendarCell.vue | 24 ++ .../ui/calendar/CalendarCellTrigger.vue | 38 ++ .../new-york/ui/calendar/CalendarGrid.vue | 24 ++ .../new-york/ui/calendar/CalendarGridBody.vue | 11 + .../new-york/ui/calendar/CalendarGridHead.vue | 12 + .../new-york/ui/calendar/CalendarGridRow.vue | 21 + .../new-york/ui/calendar/CalendarHeadCell.vue | 21 + .../new-york/ui/calendar/CalendarHeader.vue | 21 + .../new-york/ui/calendar/CalendarHeading.vue | 27 ++ .../ui/calendar/CalendarNextButton.vue | 32 ++ .../ui/calendar/CalendarPrevButton.vue | 32 ++ .../registry/new-york/ui/calendar/index.ts | 32 +- .../new-york/ui/v-calendar/Calendar.vue | 325 +++++++++++++++ .../registry/new-york/ui/v-calendar/index.ts | 22 ++ apps/www/src/public/registry/colors/gray.json | 2 +- .../www/src/public/registry/colors/index.json | 2 +- apps/www/src/public/registry/colors/lime.json | 2 +- .../src/public/registry/colors/neutral.json | 2 +- .../www/src/public/registry/colors/slate.json | 2 +- .../www/src/public/registry/colors/stone.json | 2 +- apps/www/src/public/registry/colors/zinc.json | 2 +- apps/www/src/public/registry/index.json | 34 +- .../registry/styles/default/accordion.json | 2 +- .../registry/styles/default/alert-dialog.json | 2 +- .../public/registry/styles/default/alert.json | 2 +- .../registry/styles/default/aspect-ratio.json | 2 +- .../registry/styles/default/avatar.json | 2 +- .../public/registry/styles/default/badge.json | 2 +- .../registry/styles/default/breadcrumb.json | 2 +- .../registry/styles/default/button.json | 2 +- .../registry/styles/default/calendar.json | 55 ++- .../public/registry/styles/default/card.json | 2 +- .../registry/styles/default/carousel.json | 2 +- .../registry/styles/default/checkbox.json | 2 +- .../registry/styles/default/collapsible.json | 2 +- .../registry/styles/default/command.json | 2 +- .../registry/styles/default/context-menu.json | 2 +- .../registry/styles/default/dialog.json | 2 +- .../registry/styles/default/drawer.json | 2 +- .../styles/default/dropdown-menu.json | 2 +- .../public/registry/styles/default/form.json | 2 +- .../registry/styles/default/hover-card.json | 2 +- .../public/registry/styles/default/input.json | 2 +- .../public/registry/styles/default/label.json | 2 +- .../registry/styles/default/menubar.json | 2 +- .../styles/default/navigation-menu.json | 2 +- .../registry/styles/default/pagination.json | 2 +- .../registry/styles/default/pin-input.json | 2 +- .../registry/styles/default/popover.json | 2 +- .../registry/styles/default/progress.json | 2 +- .../registry/styles/default/radio-group.json | 2 +- .../registry/styles/default/resizable.json | 2 +- .../registry/styles/default/scroll-area.json | 2 +- .../registry/styles/default/select.json | 2 +- .../registry/styles/default/separator.json | 2 +- .../public/registry/styles/default/sheet.json | 2 +- .../registry/styles/default/skeleton.json | 2 +- .../registry/styles/default/slider.json | 2 +- .../registry/styles/default/sonner.json | 2 +- .../registry/styles/default/switch.json | 2 +- .../public/registry/styles/default/table.json | 2 +- .../public/registry/styles/default/tabs.json | 2 +- .../registry/styles/default/tags-input.json | 2 +- .../registry/styles/default/textarea.json | 2 +- .../public/registry/styles/default/toast.json | 2 +- .../registry/styles/default/toggle-group.json | 2 +- .../registry/styles/default/toggle.json | 2 +- .../registry/styles/default/tooltip.json | 2 +- .../registry/styles/default/v-calendar.json | 22 ++ .../www/src/public/registry/styles/index.json | 2 +- .../registry/styles/new-york/accordion.json | 2 +- .../styles/new-york/alert-dialog.json | 2 +- .../registry/styles/new-york/alert.json | 2 +- .../styles/new-york/aspect-ratio.json | 2 +- .../registry/styles/new-york/avatar.json | 2 +- .../registry/styles/new-york/badge.json | 2 +- .../registry/styles/new-york/breadcrumb.json | 2 +- .../registry/styles/new-york/button.json | 2 +- .../registry/styles/new-york/calendar.json | 55 ++- .../public/registry/styles/new-york/card.json | 2 +- .../registry/styles/new-york/carousel.json | 2 +- .../registry/styles/new-york/checkbox.json | 2 +- .../registry/styles/new-york/collapsible.json | 2 +- .../registry/styles/new-york/command.json | 2 +- .../styles/new-york/context-menu.json | 2 +- .../registry/styles/new-york/dialog.json | 2 +- .../registry/styles/new-york/drawer.json | 2 +- .../styles/new-york/dropdown-menu.json | 2 +- .../public/registry/styles/new-york/form.json | 2 +- .../registry/styles/new-york/hover-card.json | 2 +- .../registry/styles/new-york/input.json | 2 +- .../registry/styles/new-york/label.json | 2 +- .../registry/styles/new-york/menubar.json | 2 +- .../styles/new-york/navigation-menu.json | 2 +- .../registry/styles/new-york/pagination.json | 2 +- .../registry/styles/new-york/pin-input.json | 2 +- .../registry/styles/new-york/popover.json | 2 +- .../registry/styles/new-york/progress.json | 2 +- .../registry/styles/new-york/radio-group.json | 2 +- .../registry/styles/new-york/resizable.json | 2 +- .../registry/styles/new-york/scroll-area.json | 2 +- .../registry/styles/new-york/select.json | 2 +- .../registry/styles/new-york/separator.json | 2 +- .../registry/styles/new-york/sheet.json | 2 +- .../registry/styles/new-york/skeleton.json | 2 +- .../registry/styles/new-york/slider.json | 2 +- .../registry/styles/new-york/sonner.json | 2 +- .../registry/styles/new-york/switch.json | 2 +- .../registry/styles/new-york/table.json | 2 +- .../public/registry/styles/new-york/tabs.json | 2 +- .../registry/styles/new-york/tags-input.json | 2 +- .../registry/styles/new-york/textarea.json | 2 +- .../registry/styles/new-york/toast.json | 2 +- .../styles/new-york/toggle-group.json | 2 +- .../registry/styles/new-york/toggle.json | 2 +- .../registry/styles/new-york/tooltip.json | 2 +- .../registry/styles/new-york/v-calendar.json | 22 ++ pnpm-lock.yaml | 25 +- 165 files changed, 2176 insertions(+), 991 deletions(-) create mode 100644 apps/www/src/content/docs/components/v-calendar.md rename apps/www/src/content/docs/components/{date-picker.md => v-date-picker.md} (77%) create mode 100644 apps/www/src/lib/registry/default/example/CalendarForm.vue create mode 100644 apps/www/src/lib/registry/default/example/CalendarWithSelect.vue create mode 100644 apps/www/src/lib/registry/default/example/VCalendarDemo.vue rename apps/www/src/lib/registry/default/example/{DatePickerDemo.vue => VDatePickerDemo.vue} (93%) rename apps/www/src/lib/registry/default/example/{DatePickerForm.vue => VDatePickerForm.vue} (97%) rename apps/www/src/lib/registry/default/example/{DatePickerWithPresets.vue => VDatePickerWithPresets.vue} (96%) rename apps/www/src/lib/registry/default/example/{DatePickerWithRange.vue => VDatePickerWithRange.vue} (95%) rename apps/www/src/lib/registry/default/example/{DateTimePickerDemo.vue => VDateTimePickerDemo.vue} (93%) rename apps/www/src/lib/registry/default/example/{RangePickerWithSlot.vue => VRangePickerWithSlot.vue} (96%) create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarCell.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarCellTrigger.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarGrid.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarGridBody.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarGridHead.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarGridRow.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarHeadCell.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarHeader.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarHeading.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarNextButton.vue create mode 100644 apps/www/src/lib/registry/default/ui/calendar/CalendarPrevButton.vue create mode 100644 apps/www/src/lib/registry/default/ui/v-calendar/Calendar.vue create mode 100644 apps/www/src/lib/registry/default/ui/v-calendar/index.ts create mode 100644 apps/www/src/lib/registry/new-york/example/CalendarForm.vue create mode 100644 apps/www/src/lib/registry/new-york/example/CalendarWithSelect.vue create mode 100644 apps/www/src/lib/registry/new-york/example/VCalendarDemo.vue rename apps/www/src/lib/registry/new-york/example/{DatePickerDemo.vue => VDatePickerDemo.vue} (93%) rename apps/www/src/lib/registry/new-york/example/{DatePickerForm.vue => VDatePickerForm.vue} (97%) rename apps/www/src/lib/registry/new-york/example/{DatePickerWithPresets.vue => VDatePickerWithPresets.vue} (96%) rename apps/www/src/lib/registry/new-york/example/{DatePickerWithRange.vue => VDatePickerWithRange.vue} (95%) rename apps/www/src/lib/registry/new-york/example/{DateTimePickerDemo.vue => VDateTimePickerDemo.vue} (93%) rename apps/www/src/lib/registry/new-york/example/{RangePickerWithSlot.vue => VRangePickerWithSlot.vue} (96%) create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarCell.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarCellTrigger.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarGrid.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridBody.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridHead.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridRow.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeadCell.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeader.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeading.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarNextButton.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/calendar/CalendarPrevButton.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/v-calendar/Calendar.vue create mode 100644 apps/www/src/lib/registry/new-york/ui/v-calendar/index.ts create mode 100644 apps/www/src/public/registry/styles/default/v-calendar.json create mode 100644 apps/www/src/public/registry/styles/new-york/v-calendar.json diff --git a/apps/www/.vitepress/theme/components/theming/Theming.vue b/apps/www/.vitepress/theme/components/theming/Theming.vue index a3047b9a..fef6ca48 100644 --- a/apps/www/.vitepress/theme/components/theming/Theming.vue +++ b/apps/www/.vitepress/theme/components/theming/Theming.vue @@ -19,7 +19,7 @@ import CardStats from '@/lib/registry/new-york/example/CardStats.vue' import { Card, } from '@/lib/registry/new-york/ui/card' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' const range = ref({ start: startOfToday(), @@ -73,3 +73,4 @@ const range = ref({ +@/lib/registry/new-york/ui/v-calendar diff --git a/apps/www/.vitepress/theme/config/docs.ts b/apps/www/.vitepress/theme/config/docs.ts index 31187fdc..e5adf491 100644 --- a/apps/www/.vitepress/theme/config/docs.ts +++ b/apps/www/.vitepress/theme/config/docs.ts @@ -179,6 +179,7 @@ export const docsConfig: DocsConfig = { title: 'Calendar', href: '/docs/components/calendar', items: [], + label: 'New', }, { title: 'Card', @@ -221,11 +222,6 @@ export const docsConfig: DocsConfig = { href: '/docs/components/data-table', items: [], }, - { - title: 'Date Picker', - href: '/docs/components/date-picker', - items: [], - }, { title: 'Dialog', href: '/docs/components/dialog', diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 92472ada..49d52804 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -192,6 +192,20 @@ export const Index = { component: () => import("../src/lib/registry/default/example/CalendarDemo.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/CalendarDemo.vue"], }, + "CalendarForm": { + name: "CalendarForm", + type: "components:example", + registryDependencies: ["calendar","button","form","popover","toast","utils"], + component: () => import("../src/lib/registry/default/example/CalendarForm.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/CalendarForm.vue"], + }, + "CalendarWithSelect": { + name: "CalendarWithSelect", + type: "components:example", + registryDependencies: [], + component: () => import("../src/lib/registry/default/example/CalendarWithSelect.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/CalendarWithSelect.vue"], + }, "CardChat": { name: "CardChat", type: "components:example", @@ -395,41 +409,6 @@ export const Index = { component: () => import("../src/lib/registry/default/example/DataTableDemoColumn.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/DataTableDemoColumn.vue"], }, - "DatePickerDemo": { - name: "DatePickerDemo", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/default/example/DatePickerDemo.vue").then((m) => m.default), - files: ["../src/lib/registry/default/example/DatePickerDemo.vue"], - }, - "DatePickerForm": { - name: "DatePickerForm", - type: "components:example", - registryDependencies: ["utils","button","calendar","form","popover","toast"], - component: () => import("../src/lib/registry/default/example/DatePickerForm.vue").then((m) => m.default), - files: ["../src/lib/registry/default/example/DatePickerForm.vue"], - }, - "DatePickerWithPresets": { - name: "DatePickerWithPresets", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover","select"], - component: () => import("../src/lib/registry/default/example/DatePickerWithPresets.vue").then((m) => m.default), - files: ["../src/lib/registry/default/example/DatePickerWithPresets.vue"], - }, - "DatePickerWithRange": { - name: "DatePickerWithRange", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/default/example/DatePickerWithRange.vue").then((m) => m.default), - files: ["../src/lib/registry/default/example/DatePickerWithRange.vue"], - }, - "DateTimePickerDemo": { - name: "DateTimePickerDemo", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/default/example/DateTimePickerDemo.vue").then((m) => m.default), - files: ["../src/lib/registry/default/example/DateTimePickerDemo.vue"], - }, "DialogCustomCloseButton": { name: "DialogCustomCloseButton", type: "components:example", @@ -654,13 +633,6 @@ export const Index = { component: () => import("../src/lib/registry/default/example/RadioGroupForm.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/RadioGroupForm.vue"], }, - "RangePickerWithSlot": { - name: "RangePickerWithSlot", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/default/example/RangePickerWithSlot.vue").then((m) => m.default), - files: ["../src/lib/registry/default/example/RangePickerWithSlot.vue"], - }, "ResizableDemo": { name: "ResizableDemo", type: "components:example", @@ -1081,6 +1053,55 @@ export const Index = { component: () => import("../src/lib/registry/default/example/TypographyTable.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/TypographyTable.vue"], }, + "VCalendarDemo": { + name: "VCalendarDemo", + type: "components:example", + registryDependencies: ["v-calendar"], + component: () => import("../src/lib/registry/default/example/VCalendarDemo.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VCalendarDemo.vue"], + }, + "VDatePickerDemo": { + name: "VDatePickerDemo", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/default/example/VDatePickerDemo.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VDatePickerDemo.vue"], + }, + "VDatePickerForm": { + name: "VDatePickerForm", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","form","popover","toast"], + component: () => import("../src/lib/registry/default/example/VDatePickerForm.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VDatePickerForm.vue"], + }, + "VDatePickerWithPresets": { + name: "VDatePickerWithPresets", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover","select"], + component: () => import("../src/lib/registry/default/example/VDatePickerWithPresets.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VDatePickerWithPresets.vue"], + }, + "VDatePickerWithRange": { + name: "VDatePickerWithRange", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/default/example/VDatePickerWithRange.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VDatePickerWithRange.vue"], + }, + "VDateTimePickerDemo": { + name: "VDateTimePickerDemo", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/default/example/VDateTimePickerDemo.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VDateTimePickerDemo.vue"], + }, + "VRangePickerWithSlot": { + name: "VRangePickerWithSlot", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/default/example/VRangePickerWithSlot.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/VRangePickerWithSlot.vue"], + }, "ActivityGoal": { name: "ActivityGoal", type: "components:example", @@ -1292,6 +1313,20 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/CalendarDemo.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/CalendarDemo.vue"], }, + "CalendarForm": { + name: "CalendarForm", + type: "components:example", + registryDependencies: ["calendar","button","form","popover","toast","utils"], + component: () => import("../src/lib/registry/new-york/example/CalendarForm.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/CalendarForm.vue"], + }, + "CalendarWithSelect": { + name: "CalendarWithSelect", + type: "components:example", + registryDependencies: [], + component: () => import("../src/lib/registry/new-york/example/CalendarWithSelect.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/CalendarWithSelect.vue"], + }, "CardChat": { name: "CardChat", type: "components:example", @@ -1495,41 +1530,6 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/DataTableDemoColumn.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/DataTableDemoColumn.vue"], }, - "DatePickerDemo": { - name: "DatePickerDemo", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/new-york/example/DatePickerDemo.vue").then((m) => m.default), - files: ["../src/lib/registry/new-york/example/DatePickerDemo.vue"], - }, - "DatePickerForm": { - name: "DatePickerForm", - type: "components:example", - registryDependencies: ["utils","button","calendar","form","popover","toast"], - component: () => import("../src/lib/registry/new-york/example/DatePickerForm.vue").then((m) => m.default), - files: ["../src/lib/registry/new-york/example/DatePickerForm.vue"], - }, - "DatePickerWithPresets": { - name: "DatePickerWithPresets", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover","select"], - component: () => import("../src/lib/registry/new-york/example/DatePickerWithPresets.vue").then((m) => m.default), - files: ["../src/lib/registry/new-york/example/DatePickerWithPresets.vue"], - }, - "DatePickerWithRange": { - name: "DatePickerWithRange", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/new-york/example/DatePickerWithRange.vue").then((m) => m.default), - files: ["../src/lib/registry/new-york/example/DatePickerWithRange.vue"], - }, - "DateTimePickerDemo": { - name: "DateTimePickerDemo", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/new-york/example/DateTimePickerDemo.vue").then((m) => m.default), - files: ["../src/lib/registry/new-york/example/DateTimePickerDemo.vue"], - }, "DialogCustomCloseButton": { name: "DialogCustomCloseButton", type: "components:example", @@ -1754,13 +1754,6 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/RadioGroupForm.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/RadioGroupForm.vue"], }, - "RangePickerWithSlot": { - name: "RangePickerWithSlot", - type: "components:example", - registryDependencies: ["utils","button","calendar","popover"], - component: () => import("../src/lib/registry/new-york/example/RangePickerWithSlot.vue").then((m) => m.default), - files: ["../src/lib/registry/new-york/example/RangePickerWithSlot.vue"], - }, "ResizableDemo": { name: "ResizableDemo", type: "components:example", @@ -2181,6 +2174,55 @@ 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"], }, + "VCalendarDemo": { + name: "VCalendarDemo", + type: "components:example", + registryDependencies: ["v-calendar"], + component: () => import("../src/lib/registry/new-york/example/VCalendarDemo.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VCalendarDemo.vue"], + }, + "VDatePickerDemo": { + name: "VDatePickerDemo", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/new-york/example/VDatePickerDemo.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VDatePickerDemo.vue"], + }, + "VDatePickerForm": { + name: "VDatePickerForm", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","form","popover","toast"], + component: () => import("../src/lib/registry/new-york/example/VDatePickerForm.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VDatePickerForm.vue"], + }, + "VDatePickerWithPresets": { + name: "VDatePickerWithPresets", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover","select"], + component: () => import("../src/lib/registry/new-york/example/VDatePickerWithPresets.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VDatePickerWithPresets.vue"], + }, + "VDatePickerWithRange": { + name: "VDatePickerWithRange", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/new-york/example/VDatePickerWithRange.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VDatePickerWithRange.vue"], + }, + "VDateTimePickerDemo": { + name: "VDateTimePickerDemo", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/new-york/example/VDateTimePickerDemo.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VDateTimePickerDemo.vue"], + }, + "VRangePickerWithSlot": { + name: "VRangePickerWithSlot", + type: "components:example", + registryDependencies: ["utils","button","v-calendar","popover"], + component: () => import("../src/lib/registry/new-york/example/VRangePickerWithSlot.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/VRangePickerWithSlot.vue"], + }, "ActivityGoal": { name: "ActivityGoal", type: "components:example", diff --git a/apps/www/package.json b/apps/www/package.json index 47bfee65..fcb6383c 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -30,6 +30,7 @@ "embla-carousel": "^8.0.0", "embla-carousel-autoplay": "^8.0.0", "embla-carousel-vue": "^8.0.0", + "flat-internationalized-date": "^1.2.3", "lucide-vue-next": "^0.359.0", "magic-string": "^0.30.8", "radix-vue": "^1.5.3", diff --git a/apps/www/src/content/docs/components/calendar.md b/apps/www/src/content/docs/components/calendar.md index 416aa0f8..5c1812a0 100644 --- a/apps/www/src/content/docs/components/calendar.md +++ b/apps/www/src/content/docs/components/calendar.md @@ -2,90 +2,31 @@ title: Calendar description: A date field component that allows users to enter and edit date. source: apps/www/src/lib/registry/default/ui/calendar -primitive: https://vcalendar.io/ +primitive: https://www.radix-vue.com/components/calendar.html --- - + ## About -The `Calendar` component is built on top of [VCalendar](https://vcalendar.io/getting-started/installation.html). +The `` component is built on top of the [RadixVue Calendar](https://www.radix-vue.com/components/calendar.html) component, which uses the [flat-internationalized-date](https://github.com/epr3/flat-internationalized-date) package to handle dates. + +If you're looking for a range calendar, check out the [Range Calendar](#asdasd) component. ## Installation - - - - - -## Usage - -```vue - - - -``` - -The API is essentially the same, i.e. props and slots. See the [VCalendar](https://vcalendar.io/getting-started/installation.html) documentation for more information. - -### Slots - -The slots available are [those currently supported](https://github.com/nathanreyes/v-calendar/blob/v3.1.2/src/components/Calendar/CalendarSlot.vue#L16-L28) by VCalendar, namely : - -- `day-content` -- `day-popover` -- `dp-footer` -- `footer` -- `header-title-wrapper` -- `header-title` -- `header-prev-button` -- `header-next-button` -- `nav` -- `nav-prev-button` -- `nav-next-button` -- `page` -- `time-header` - -Example using the `day-content` slot: - -```vue - - - -``` + diff --git a/apps/www/src/content/docs/components/v-calendar.md b/apps/www/src/content/docs/components/v-calendar.md new file mode 100644 index 00000000..88b271be --- /dev/null +++ b/apps/www/src/content/docs/components/v-calendar.md @@ -0,0 +1,91 @@ +--- +title: Calendar +description: A date field component that allows users to enter and edit date. +source: apps/www/src/lib/registry/default/ui/calendar +primitive: https://vcalendar.io/ +--- + + + +## About + +The `Calendar` component is built on top of [VCalendar](https://vcalendar.io/getting-started/installation.html). + +## Installation + + + + + + + +## Usage + +```vue + + + +``` + +The API is essentially the same, i.e. props and slots. See the [VCalendar](https://vcalendar.io/getting-started/installation.html) documentation for more information. + +### Slots + +The slots available are [those currently supported](https://github.com/nathanreyes/v-calendar/blob/v3.1.2/src/components/Calendar/CalendarSlot.vue#L16-L28) by VCalendar, namely : + +- `day-content` +- `day-popover` +- `dp-footer` +- `footer` +- `header-title-wrapper` +- `header-title` +- `header-prev-button` +- `header-next-button` +- `nav` +- `nav-prev-button` +- `nav-next-button` +- `page` +- `time-header` + +Example using the `day-content` slot: + +```vue + + + +``` diff --git a/apps/www/src/content/docs/components/date-picker.md b/apps/www/src/content/docs/components/v-date-picker.md similarity index 77% rename from apps/www/src/content/docs/components/date-picker.md rename to apps/www/src/content/docs/components/v-date-picker.md index 7416c51c..d04e156d 100644 --- a/apps/www/src/content/docs/components/date-picker.md +++ b/apps/www/src/content/docs/components/v-date-picker.md @@ -3,7 +3,7 @@ title: Date Picker description: A date picker component with range and presets. --- - + ## Installation @@ -21,7 +21,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' -import { Calendar } from '@/components/ui/calendar' +import { Calendar } from '@/components/ui/v-calendar' import { Popover, PopoverContent, @@ -56,24 +56,24 @@ const date = ref() ### Date Picker - + ### Date Range Picker - + ### Date Time Picker - + ### With Presets - + ### With Slot - + ### Form - + diff --git a/apps/www/src/examples/dashboard/components/DateRangePicker.vue b/apps/www/src/examples/dashboard/components/DateRangePicker.vue index 87e7f589..538084cf 100644 --- a/apps/www/src/examples/dashboard/components/DateRangePicker.vue +++ b/apps/www/src/examples/dashboard/components/DateRangePicker.vue @@ -5,7 +5,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/new-york/ui/button' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { Popover, PopoverContent, @@ -49,3 +49,4 @@ const date = ref({ +@/lib/registry/new-york/ui/v-calendar diff --git a/apps/www/src/examples/forms/components/AccountForm.vue b/apps/www/src/examples/forms/components/AccountForm.vue index e5aeff88..fd5b9cbf 100644 --- a/apps/www/src/examples/forms/components/AccountForm.vue +++ b/apps/www/src/examples/forms/components/AccountForm.vue @@ -24,7 +24,7 @@ import { PopoverContent, PopoverTrigger, } from '@/lib/registry/default/ui/popover' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { toast } from '@/lib/registry/new-york/ui/toast' const open = ref(false) @@ -184,3 +184,4 @@ async function onSubmit(values: any) { +@/lib/registry/new-york/ui/v-calendar diff --git a/apps/www/src/examples/mail/components/MailDisplay.vue b/apps/www/src/examples/mail/components/MailDisplay.vue index c783b363..28983d4f 100644 --- a/apps/www/src/examples/mail/components/MailDisplay.vue +++ b/apps/www/src/examples/mail/components/MailDisplay.vue @@ -6,7 +6,7 @@ import addHours from 'date-fns/addHours' import format from 'date-fns/format' import nextSaturday from 'date-fns/nextSaturday' import type { Mail } from '../data/mails' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/lib/registry/new-york/ui/dropdown-menu' import { Popover, PopoverContent, PopoverTrigger } from '@/lib/registry/new-york/ui/popover' import { Avatar, AvatarFallback } from '@/lib/registry/new-york/ui/avatar' diff --git a/apps/www/src/lib/registry/default/example/CalendarDemo.vue b/apps/www/src/lib/registry/default/example/CalendarDemo.vue index 3dd2a71a..db010b45 100644 --- a/apps/www/src/lib/registry/default/example/CalendarDemo.vue +++ b/apps/www/src/lib/registry/default/example/CalendarDemo.vue @@ -1,10 +1,11 @@ diff --git a/apps/www/src/lib/registry/default/example/CalendarForm.vue b/apps/www/src/lib/registry/default/example/CalendarForm.vue new file mode 100644 index 00000000..96198e92 --- /dev/null +++ b/apps/www/src/lib/registry/default/example/CalendarForm.vue @@ -0,0 +1,95 @@ + + + diff --git a/apps/www/src/lib/registry/default/example/CalendarWithSelect.vue b/apps/www/src/lib/registry/default/example/CalendarWithSelect.vue new file mode 100644 index 00000000..019e536d --- /dev/null +++ b/apps/www/src/lib/registry/default/example/CalendarWithSelect.vue @@ -0,0 +1,83 @@ + + + diff --git a/apps/www/src/lib/registry/default/example/ComboboxDemo.vue b/apps/www/src/lib/registry/default/example/ComboboxDemo.vue index da21cf4e..0a138486 100644 --- a/apps/www/src/lib/registry/default/example/ComboboxDemo.vue +++ b/apps/www/src/lib/registry/default/example/ComboboxDemo.vue @@ -27,7 +27,7 @@ const frameworks = [ ] const open = ref(false) -const value = ref('') +const value = ref({}) // const filterFunction = (list: typeof frameworks, search: string) => list.filter(i => i.value.toLowerCase().includes(search.toLowerCase())) diff --git a/apps/www/src/lib/registry/default/example/VCalendarDemo.vue b/apps/www/src/lib/registry/default/example/VCalendarDemo.vue new file mode 100644 index 00000000..2add2507 --- /dev/null +++ b/apps/www/src/lib/registry/default/example/VCalendarDemo.vue @@ -0,0 +1,10 @@ + + + diff --git a/apps/www/src/lib/registry/default/example/DatePickerDemo.vue b/apps/www/src/lib/registry/default/example/VDatePickerDemo.vue similarity index 93% rename from apps/www/src/lib/registry/default/example/DatePickerDemo.vue rename to apps/www/src/lib/registry/default/example/VDatePickerDemo.vue index 18334e63..3b8540cf 100644 --- a/apps/www/src/lib/registry/default/example/DatePickerDemo.vue +++ b/apps/www/src/lib/registry/default/example/VDatePickerDemo.vue @@ -5,7 +5,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/default/ui/button' -import { Calendar } from '@/lib/registry/default/ui/calendar' +import { Calendar } from '@/lib/registry/default/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/default/example/DatePickerForm.vue b/apps/www/src/lib/registry/default/example/VDatePickerForm.vue similarity index 97% rename from apps/www/src/lib/registry/default/example/DatePickerForm.vue rename to apps/www/src/lib/registry/default/example/VDatePickerForm.vue index 9d6e79a5..b46495c3 100644 --- a/apps/www/src/lib/registry/default/example/DatePickerForm.vue +++ b/apps/www/src/lib/registry/default/example/VDatePickerForm.vue @@ -8,7 +8,7 @@ import * as z from 'zod' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/default/ui/button' -import { Calendar } from '@/lib/registry/default/ui/calendar' +import { Calendar } from '@/lib/registry/default/ui/v-calendar' import { FormControl, FormDescription, diff --git a/apps/www/src/lib/registry/default/example/DatePickerWithPresets.vue b/apps/www/src/lib/registry/default/example/VDatePickerWithPresets.vue similarity index 96% rename from apps/www/src/lib/registry/default/example/DatePickerWithPresets.vue rename to apps/www/src/lib/registry/default/example/VDatePickerWithPresets.vue index c45446f8..5b310a99 100644 --- a/apps/www/src/lib/registry/default/example/DatePickerWithPresets.vue +++ b/apps/www/src/lib/registry/default/example/VDatePickerWithPresets.vue @@ -5,7 +5,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/default/ui/button' -import { Calendar } from '@/lib/registry/default/ui/calendar' +import { Calendar } from '@/lib/registry/default/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/default/example/DatePickerWithRange.vue b/apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue similarity index 95% rename from apps/www/src/lib/registry/default/example/DatePickerWithRange.vue rename to apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue index 212b9c06..5f6e0be8 100644 --- a/apps/www/src/lib/registry/default/example/DatePickerWithRange.vue +++ b/apps/www/src/lib/registry/default/example/VDatePickerWithRange.vue @@ -5,7 +5,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/default/ui/button' -import { Calendar } from '@/lib/registry/default/ui/calendar' +import { Calendar } from '@/lib/registry/default/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/default/example/DateTimePickerDemo.vue b/apps/www/src/lib/registry/default/example/VDateTimePickerDemo.vue similarity index 93% rename from apps/www/src/lib/registry/default/example/DateTimePickerDemo.vue rename to apps/www/src/lib/registry/default/example/VDateTimePickerDemo.vue index 883f7a89..ba0b231d 100644 --- a/apps/www/src/lib/registry/default/example/DateTimePickerDemo.vue +++ b/apps/www/src/lib/registry/default/example/VDateTimePickerDemo.vue @@ -5,7 +5,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/default/ui/button' -import { Calendar } from '@/lib/registry/default/ui/calendar' +import { Calendar } from '@/lib/registry/default/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/default/example/RangePickerWithSlot.vue b/apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue similarity index 96% rename from apps/www/src/lib/registry/default/example/RangePickerWithSlot.vue rename to apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue index 2add61c6..e71e81cd 100644 --- a/apps/www/src/lib/registry/default/example/RangePickerWithSlot.vue +++ b/apps/www/src/lib/registry/default/example/VRangePickerWithSlot.vue @@ -5,7 +5,7 @@ import { Calendar as CalendarIcon } from 'lucide-vue-next' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/default/ui/button' -import { Calendar } from '@/lib/registry/default/ui/calendar' +import { Calendar } from '@/lib/registry/default/ui/v-calendar' import { Popover, PopoverContent, 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 b8c60f3d..6e89d6fe 100644 --- a/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue +++ b/apps/www/src/lib/registry/default/ui/calendar/Calendar.vue @@ -1,331 +1,60 @@ - - - diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarCell.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarCell.vue new file mode 100644 index 00000000..14843ce2 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarCell.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarCellTrigger.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarCellTrigger.vue new file mode 100644 index 00000000..77fec283 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarCellTrigger.vue @@ -0,0 +1,38 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarGrid.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarGrid.vue new file mode 100644 index 00000000..2fe5439a --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarGrid.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarGridBody.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarGridBody.vue new file mode 100644 index 00000000..23d71ced --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarGridBody.vue @@ -0,0 +1,11 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarGridHead.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarGridHead.vue new file mode 100644 index 00000000..20660e06 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarGridHead.vue @@ -0,0 +1,12 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarGridRow.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarGridRow.vue new file mode 100644 index 00000000..47fdb460 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarGridRow.vue @@ -0,0 +1,21 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarHeadCell.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarHeadCell.vue new file mode 100644 index 00000000..d3b6380a --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarHeadCell.vue @@ -0,0 +1,21 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarHeader.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarHeader.vue new file mode 100644 index 00000000..8bfa1969 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarHeader.vue @@ -0,0 +1,21 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarHeading.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarHeading.vue new file mode 100644 index 00000000..7062d3db --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarHeading.vue @@ -0,0 +1,27 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarNextButton.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarNextButton.vue new file mode 100644 index 00000000..5670dd98 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarNextButton.vue @@ -0,0 +1,32 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/CalendarPrevButton.vue b/apps/www/src/lib/registry/default/ui/calendar/CalendarPrevButton.vue new file mode 100644 index 00000000..22398acc --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/calendar/CalendarPrevButton.vue @@ -0,0 +1,32 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/calendar/index.ts b/apps/www/src/lib/registry/default/ui/calendar/index.ts index d17d00f2..5239a1bd 100644 --- a/apps/www/src/lib/registry/default/ui/calendar/index.ts +++ b/apps/www/src/lib/registry/default/ui/calendar/index.ts @@ -1,22 +1,12 @@ export { default as Calendar } from './Calendar.vue' -import type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts' - -export function isVCalendarSlot(slotName: string): slotName is CalendarSlotName { - const validSlots: CalendarSlotName[] = [ - 'day-content', - 'day-popover', - 'dp-footer', - 'footer', - 'header-title-wrapper', - 'header-title', - 'header-prev-button', - 'header-next-button', - 'nav', - 'nav-prev-button', - 'nav-next-button', - 'page', - 'time-header', - ] - - return validSlots.includes(slotName as CalendarSlotName) -} +export { default as CalendarCell } from './CalendarCell.vue' +export { default as CalendarCellTrigger } from './CalendarCellTrigger.vue' +export { default as CalendarGrid } from './CalendarGrid.vue' +export { default as CalendarGridBody } from './CalendarGridBody.vue' +export { default as CalendarGridHead } from './CalendarGridHead.vue' +export { default as CalendarGridRow } from './CalendarGridRow.vue' +export { default as CalendarHeadCell } from './CalendarHeadCell.vue' +export { default as CalendarHeader } from './CalendarHeader.vue' +export { default as CalendarHeading } from './CalendarHeading.vue' +export { default as CalendarNextButton } from './CalendarNextButton.vue' +export { default as CalendarPrevButton } from './CalendarPrevButton.vue' diff --git a/apps/www/src/lib/registry/default/ui/v-calendar/Calendar.vue b/apps/www/src/lib/registry/default/ui/v-calendar/Calendar.vue new file mode 100644 index 00000000..b8c60f3d --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/v-calendar/Calendar.vue @@ -0,0 +1,331 @@ + + + + + diff --git a/apps/www/src/lib/registry/default/ui/v-calendar/index.ts b/apps/www/src/lib/registry/default/ui/v-calendar/index.ts new file mode 100644 index 00000000..d17d00f2 --- /dev/null +++ b/apps/www/src/lib/registry/default/ui/v-calendar/index.ts @@ -0,0 +1,22 @@ +export { default as Calendar } from './Calendar.vue' +import type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts' + +export function isVCalendarSlot(slotName: string): slotName is CalendarSlotName { + const validSlots: CalendarSlotName[] = [ + 'day-content', + 'day-popover', + 'dp-footer', + 'footer', + 'header-title-wrapper', + 'header-title', + 'header-prev-button', + 'header-next-button', + 'nav', + 'nav-prev-button', + 'nav-next-button', + 'page', + 'time-header', + ] + + return validSlots.includes(slotName as CalendarSlotName) +} diff --git a/apps/www/src/lib/registry/new-york/example/CalendarDemo.vue b/apps/www/src/lib/registry/new-york/example/CalendarDemo.vue index 26b8b930..1ef56466 100644 --- a/apps/www/src/lib/registry/new-york/example/CalendarDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/CalendarDemo.vue @@ -1,10 +1,7 @@ diff --git a/apps/www/src/lib/registry/new-york/example/CalendarForm.vue b/apps/www/src/lib/registry/new-york/example/CalendarForm.vue new file mode 100644 index 00000000..9a2e22cd --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/CalendarForm.vue @@ -0,0 +1,80 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/example/CalendarWithSelect.vue b/apps/www/src/lib/registry/new-york/example/CalendarWithSelect.vue new file mode 100644 index 00000000..e69de29b diff --git a/apps/www/src/lib/registry/new-york/example/VCalendarDemo.vue b/apps/www/src/lib/registry/new-york/example/VCalendarDemo.vue new file mode 100644 index 00000000..2ada5321 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/VCalendarDemo.vue @@ -0,0 +1,10 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/example/DatePickerDemo.vue b/apps/www/src/lib/registry/new-york/example/VDatePickerDemo.vue similarity index 93% rename from apps/www/src/lib/registry/new-york/example/DatePickerDemo.vue rename to apps/www/src/lib/registry/new-york/example/VDatePickerDemo.vue index 685f17cb..1b0b4472 100644 --- a/apps/www/src/lib/registry/new-york/example/DatePickerDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/VDatePickerDemo.vue @@ -5,7 +5,7 @@ import { CalendarIcon } from '@radix-icons/vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/new-york/ui/button' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/new-york/example/DatePickerForm.vue b/apps/www/src/lib/registry/new-york/example/VDatePickerForm.vue similarity index 97% rename from apps/www/src/lib/registry/new-york/example/DatePickerForm.vue rename to apps/www/src/lib/registry/new-york/example/VDatePickerForm.vue index 7203b9db..bcb34221 100644 --- a/apps/www/src/lib/registry/new-york/example/DatePickerForm.vue +++ b/apps/www/src/lib/registry/new-york/example/VDatePickerForm.vue @@ -8,7 +8,7 @@ import * as z from 'zod' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/new-york/ui/button' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { FormControl, FormDescription, diff --git a/apps/www/src/lib/registry/new-york/example/DatePickerWithPresets.vue b/apps/www/src/lib/registry/new-york/example/VDatePickerWithPresets.vue similarity index 96% rename from apps/www/src/lib/registry/new-york/example/DatePickerWithPresets.vue rename to apps/www/src/lib/registry/new-york/example/VDatePickerWithPresets.vue index 0e96f721..2d070262 100644 --- a/apps/www/src/lib/registry/new-york/example/DatePickerWithPresets.vue +++ b/apps/www/src/lib/registry/new-york/example/VDatePickerWithPresets.vue @@ -5,7 +5,7 @@ import { CalendarIcon } from '@radix-icons/vue' import { ref } from 'vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/new-york/ui/button' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue b/apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue similarity index 95% rename from apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue rename to apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue index 7b8c3084..1fe0fe65 100644 --- a/apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue +++ b/apps/www/src/lib/registry/new-york/example/VDatePickerWithRange.vue @@ -5,7 +5,7 @@ import { CalendarIcon } from '@radix-icons/vue' import { cn } from '@/lib/utils' import { Button } from '@/lib/registry/new-york/ui/button' -import { Calendar } from '@/lib/registry/new-york/ui/calendar' +import { Calendar } from '@/lib/registry/new-york/ui/v-calendar' import { Popover, PopoverContent, diff --git a/apps/www/src/lib/registry/new-york/example/DateTimePickerDemo.vue b/apps/www/src/lib/registry/new-york/example/VDateTimePickerDemo.vue similarity index 93% rename from apps/www/src/lib/registry/new-york/example/DateTimePickerDemo.vue rename to apps/www/src/lib/registry/new-york/example/VDateTimePickerDemo.vue index 401d89a8..0c9fd7cc 100644 --- a/apps/www/src/lib/registry/new-york/example/DateTimePickerDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/VDateTimePickerDemo.vue @@ -1,11 +1,11 @@ - - diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarCell.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarCell.vue new file mode 100644 index 00000000..14843ce2 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarCell.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarCellTrigger.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarCellTrigger.vue new file mode 100644 index 00000000..196240ed --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarCellTrigger.vue @@ -0,0 +1,38 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGrid.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGrid.vue new file mode 100644 index 00000000..2fe5439a --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGrid.vue @@ -0,0 +1,24 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridBody.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridBody.vue new file mode 100644 index 00000000..23d71ced --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridBody.vue @@ -0,0 +1,11 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridHead.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridHead.vue new file mode 100644 index 00000000..b1356fb7 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridHead.vue @@ -0,0 +1,12 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridRow.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridRow.vue new file mode 100644 index 00000000..47fdb460 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarGridRow.vue @@ -0,0 +1,21 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeadCell.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeadCell.vue new file mode 100644 index 00000000..d3b6380a --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeadCell.vue @@ -0,0 +1,21 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeader.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeader.vue new file mode 100644 index 00000000..8bfa1969 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeader.vue @@ -0,0 +1,21 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeading.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeading.vue new file mode 100644 index 00000000..7062d3db --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarHeading.vue @@ -0,0 +1,27 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarNextButton.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarNextButton.vue new file mode 100644 index 00000000..8ead0696 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarNextButton.vue @@ -0,0 +1,32 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/CalendarPrevButton.vue b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarPrevButton.vue new file mode 100644 index 00000000..189d2fb5 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/calendar/CalendarPrevButton.vue @@ -0,0 +1,32 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/calendar/index.ts b/apps/www/src/lib/registry/new-york/ui/calendar/index.ts index d17d00f2..5239a1bd 100644 --- a/apps/www/src/lib/registry/new-york/ui/calendar/index.ts +++ b/apps/www/src/lib/registry/new-york/ui/calendar/index.ts @@ -1,22 +1,12 @@ export { default as Calendar } from './Calendar.vue' -import type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts' - -export function isVCalendarSlot(slotName: string): slotName is CalendarSlotName { - const validSlots: CalendarSlotName[] = [ - 'day-content', - 'day-popover', - 'dp-footer', - 'footer', - 'header-title-wrapper', - 'header-title', - 'header-prev-button', - 'header-next-button', - 'nav', - 'nav-prev-button', - 'nav-next-button', - 'page', - 'time-header', - ] - - return validSlots.includes(slotName as CalendarSlotName) -} +export { default as CalendarCell } from './CalendarCell.vue' +export { default as CalendarCellTrigger } from './CalendarCellTrigger.vue' +export { default as CalendarGrid } from './CalendarGrid.vue' +export { default as CalendarGridBody } from './CalendarGridBody.vue' +export { default as CalendarGridHead } from './CalendarGridHead.vue' +export { default as CalendarGridRow } from './CalendarGridRow.vue' +export { default as CalendarHeadCell } from './CalendarHeadCell.vue' +export { default as CalendarHeader } from './CalendarHeader.vue' +export { default as CalendarHeading } from './CalendarHeading.vue' +export { default as CalendarNextButton } from './CalendarNextButton.vue' +export { default as CalendarPrevButton } from './CalendarPrevButton.vue' diff --git a/apps/www/src/lib/registry/new-york/ui/v-calendar/Calendar.vue b/apps/www/src/lib/registry/new-york/ui/v-calendar/Calendar.vue new file mode 100644 index 00000000..deba4ac8 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/v-calendar/Calendar.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/apps/www/src/lib/registry/new-york/ui/v-calendar/index.ts b/apps/www/src/lib/registry/new-york/ui/v-calendar/index.ts new file mode 100644 index 00000000..d17d00f2 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/ui/v-calendar/index.ts @@ -0,0 +1,22 @@ +export { default as Calendar } from './Calendar.vue' +import type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts' + +export function isVCalendarSlot(slotName: string): slotName is CalendarSlotName { + const validSlots: CalendarSlotName[] = [ + 'day-content', + 'day-popover', + 'dp-footer', + 'footer', + 'header-title-wrapper', + 'header-title', + 'header-prev-button', + 'header-next-button', + 'nav', + 'nav-prev-button', + 'nav-next-button', + 'page', + 'time-header', + ] + + return validSlots.includes(slotName as CalendarSlotName) +} diff --git a/apps/www/src/public/registry/colors/gray.json b/apps/www/src/public/registry/colors/gray.json index 1f5c04f6..8a1d9438 100644 --- a/apps/www/src/public/registry/colors/gray.json +++ b/apps/www/src/public/registry/colors/gray.json @@ -89,4 +89,4 @@ }, "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n", "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n \n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 224 71.4% 4.1%;\n \n --muted: 220 14.3% 95.9%;\n --muted-foreground: 220 8.9% 46.1%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 224 71.4% 4.1%;\n \n --card: 0 0% 100%;\n --card-foreground: 224 71.4% 4.1%;\n \n --border: 220 13% 91%;\n --input: 220 13% 91%;\n \n --primary: 220.9 39.3% 11%;\n --primary-foreground: 210 20% 98%;\n \n --secondary: 220 14.3% 95.9%;\n --secondary-foreground: 220.9 39.3% 11%;\n \n --accent: 220 14.3% 95.9%;\n --accent-foreground: 220.9 39.3% 11%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 210 20% 98%;\n \n --ring: 224 71.4% 4.1%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 224 71.4% 4.1%;\n --foreground: 210 20% 98%;\n \n --muted: 215 27.9% 16.9%;\n --muted-foreground: 217.9 10.6% 64.9%;\n \n --popover: 224 71.4% 4.1%;\n --popover-foreground: 210 20% 98%;\n \n --card: 224 71.4% 4.1%;\n --card-foreground: 210 20% 98%;\n \n --border: 215 27.9% 16.9%;\n --input: 215 27.9% 16.9%;\n \n --primary: 210 20% 98%;\n --primary-foreground: 220.9 39.3% 11%;\n \n --secondary: 215 27.9% 16.9%;\n --secondary-foreground: 210 20% 98%;\n \n --accent: 215 27.9% 16.9%;\n --accent-foreground: 210 20% 98%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 210 20% 98%;\n \n --ring: 216 12.2% 83.9%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/colors/index.json b/apps/www/src/public/registry/colors/index.json index 6b70773e..c25158ef 100644 --- a/apps/www/src/public/registry/colors/index.json +++ b/apps/www/src/public/registry/colors/index.json @@ -1996,4 +1996,4 @@ "hslChannel": "343.1 87.7% 15.9%" } ] -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/colors/lime.json b/apps/www/src/public/registry/colors/lime.json index cec9a36d..e36faf45 100644 --- a/apps/www/src/public/registry/colors/lime.json +++ b/apps/www/src/public/registry/colors/lime.json @@ -89,4 +89,4 @@ }, "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n", "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n \n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 89.3 80.4% 10%;\n \n --muted: 79.6 89.1% 89.2%;\n --muted-foreground: 83.7 80.5% 44.3%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 89.3 80.4% 10%;\n \n --card: 0 0% 100%;\n --card-foreground: 89.3 80.4% 10%;\n \n --border: 80.9 88.5% 79.6%;\n --input: 80.9 88.5% 79.6%;\n \n --primary: 87.6 61.2% 20.2%;\n --primary-foreground: 78.3 92% 95.1%;\n \n --secondary: 79.6 89.1% 89.2%;\n --secondary-foreground: 87.6 61.2% 20.2%;\n \n --accent: 79.6 89.1% 89.2%;\n --accent-foreground: 87.6 61.2% 20.2%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 78.3 92% 95.1%;\n \n --ring: 89.3 80.4% 10%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 89.3 80.4% 10%;\n --foreground: 78.3 92% 95.1%;\n \n --muted: 86.3 69% 22.7%;\n --muted-foreground: 82.7 78% 55.5%;\n \n --popover: 89.3 80.4% 10%;\n --popover-foreground: 78.3 92% 95.1%;\n \n --card: 89.3 80.4% 10%;\n --card-foreground: 78.3 92% 95.1%;\n \n --border: 86.3 69% 22.7%;\n --input: 86.3 69% 22.7%;\n \n --primary: 78.3 92% 95.1%;\n --primary-foreground: 87.6 61.2% 20.2%;\n \n --secondary: 86.3 69% 22.7%;\n --secondary-foreground: 78.3 92% 95.1%;\n \n --accent: 86.3 69% 22.7%;\n --accent-foreground: 78.3 92% 95.1%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 78.3 92% 95.1%;\n \n --ring: 82 84.5% 67.1%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/colors/neutral.json b/apps/www/src/public/registry/colors/neutral.json index 0a65056e..3deb3deb 100644 --- a/apps/www/src/public/registry/colors/neutral.json +++ b/apps/www/src/public/registry/colors/neutral.json @@ -89,4 +89,4 @@ }, "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n", "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n \n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n \n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 0 0% 3.9%;\n \n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n \n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n \n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n \n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n \n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n \n --ring: 0 0% 3.9%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 0 0% 3.9%;\n --foreground: 0 0% 98%;\n \n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n \n --popover: 0 0% 3.9%;\n --popover-foreground: 0 0% 98%;\n \n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n \n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n \n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n \n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n \n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 0 0% 98%;\n \n --ring: 0 0% 83.1%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/colors/slate.json b/apps/www/src/public/registry/colors/slate.json index bf5be7ff..19a86b72 100644 --- a/apps/www/src/public/registry/colors/slate.json +++ b/apps/www/src/public/registry/colors/slate.json @@ -89,4 +89,4 @@ }, "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n", "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n \n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 222.2 84% 4.9%;\n \n --muted: 210 40% 96.1%;\n --muted-foreground: 215.4 16.3% 46.9%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 222.2 84% 4.9%;\n \n --card: 0 0% 100%;\n --card-foreground: 222.2 84% 4.9%;\n \n --border: 214.3 31.8% 91.4%;\n --input: 214.3 31.8% 91.4%;\n \n --primary: 222.2 47.4% 11.2%;\n --primary-foreground: 210 40% 98%;\n \n --secondary: 210 40% 96.1%;\n --secondary-foreground: 222.2 47.4% 11.2%;\n \n --accent: 210 40% 96.1%;\n --accent-foreground: 222.2 47.4% 11.2%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 210 40% 98%;\n \n --ring: 222.2 84% 4.9%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 222.2 84% 4.9%;\n --foreground: 210 40% 98%;\n \n --muted: 217.2 32.6% 17.5%;\n --muted-foreground: 215 20.2% 65.1%;\n \n --popover: 222.2 84% 4.9%;\n --popover-foreground: 210 40% 98%;\n \n --card: 222.2 84% 4.9%;\n --card-foreground: 210 40% 98%;\n \n --border: 217.2 32.6% 17.5%;\n --input: 217.2 32.6% 17.5%;\n \n --primary: 210 40% 98%;\n --primary-foreground: 222.2 47.4% 11.2%;\n \n --secondary: 217.2 32.6% 17.5%;\n --secondary-foreground: 210 40% 98%;\n \n --accent: 217.2 32.6% 17.5%;\n --accent-foreground: 210 40% 98%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 210 40% 98%;\n \n --ring: 212.7 26.8% 83.9%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/colors/stone.json b/apps/www/src/public/registry/colors/stone.json index d31a29ae..bd31d945 100644 --- a/apps/www/src/public/registry/colors/stone.json +++ b/apps/www/src/public/registry/colors/stone.json @@ -89,4 +89,4 @@ }, "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n", "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n \n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 20 14.3% 4.1%;\n \n --muted: 60 4.8% 95.9%;\n --muted-foreground: 25 5.3% 44.7%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 20 14.3% 4.1%;\n \n --card: 0 0% 100%;\n --card-foreground: 20 14.3% 4.1%;\n \n --border: 20 5.9% 90%;\n --input: 20 5.9% 90%;\n \n --primary: 24 9.8% 10%;\n --primary-foreground: 60 9.1% 97.8%;\n \n --secondary: 60 4.8% 95.9%;\n --secondary-foreground: 24 9.8% 10%;\n \n --accent: 60 4.8% 95.9%;\n --accent-foreground: 24 9.8% 10%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 60 9.1% 97.8%;\n \n --ring: 20 14.3% 4.1%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 20 14.3% 4.1%;\n --foreground: 60 9.1% 97.8%;\n \n --muted: 12 6.5% 15.1%;\n --muted-foreground: 24 5.4% 63.9%;\n \n --popover: 20 14.3% 4.1%;\n --popover-foreground: 60 9.1% 97.8%;\n \n --card: 20 14.3% 4.1%;\n --card-foreground: 60 9.1% 97.8%;\n \n --border: 12 6.5% 15.1%;\n --input: 12 6.5% 15.1%;\n \n --primary: 60 9.1% 97.8%;\n --primary-foreground: 24 9.8% 10%;\n \n --secondary: 12 6.5% 15.1%;\n --secondary-foreground: 60 9.1% 97.8%;\n \n --accent: 12 6.5% 15.1%;\n --accent-foreground: 60 9.1% 97.8%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 60 9.1% 97.8%;\n \n --ring: 24 5.7% 82.9%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/colors/zinc.json b/apps/www/src/public/registry/colors/zinc.json index 9fcf1311..72484fec 100644 --- a/apps/www/src/public/registry/colors/zinc.json +++ b/apps/www/src/public/registry/colors/zinc.json @@ -89,4 +89,4 @@ }, "inlineColorsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n", "cssVarsTemplate": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n \n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 240 10% 3.9%;\n \n --muted: 240 4.8% 95.9%;\n --muted-foreground: 240 3.8% 46.1%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 240 10% 3.9%;\n \n --card: 0 0% 100%;\n --card-foreground: 240 10% 3.9%;\n \n --border: 240 5.9% 90%;\n --input: 240 5.9% 90%;\n \n --primary: 240 5.9% 10%;\n --primary-foreground: 0 0% 98%;\n \n --secondary: 240 4.8% 95.9%;\n --secondary-foreground: 240 5.9% 10%;\n \n --accent: 240 4.8% 95.9%;\n --accent-foreground: 240 5.9% 10%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n \n --ring: 240 10% 3.9%;\n \n --radius: 0.5rem;\n }\n \n .dark {\n --background: 240 10% 3.9%;\n --foreground: 0 0% 98%;\n \n --muted: 240 3.7% 15.9%;\n --muted-foreground: 240 5% 64.9%;\n \n --popover: 240 10% 3.9%;\n --popover-foreground: 0 0% 98%;\n \n --card: 240 10% 3.9%;\n --card-foreground: 0 0% 98%;\n \n --border: 240 3.7% 15.9%;\n --input: 240 3.7% 15.9%;\n \n --primary: 0 0% 98%;\n --primary-foreground: 240 5.9% 10%;\n \n --secondary: 240 3.7% 15.9%;\n --secondary-foreground: 0 0% 98%;\n \n --accent: 240 3.7% 15.9%;\n --accent-foreground: 0 0% 98%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 0 0% 98%;\n \n --ring: 240 4.9% 83.9%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n}" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/index.json b/apps/www/src/public/registry/index.json index 41e09b23..de7a32f2 100644 --- a/apps/www/src/public/registry/index.json +++ b/apps/www/src/public/registry/index.json @@ -117,16 +117,24 @@ }, { "name": "calendar", - "dependencies": [ - "@vueuse/core", - "v-calendar@next" - ], + "dependencies": [], "registryDependencies": [ "utils", "button" ], "files": [ "ui/calendar/Calendar.vue", + "ui/calendar/CalendarCell.vue", + "ui/calendar/CalendarCellTrigger.vue", + "ui/calendar/CalendarGrid.vue", + "ui/calendar/CalendarGridBody.vue", + "ui/calendar/CalendarGridHead.vue", + "ui/calendar/CalendarGridRow.vue", + "ui/calendar/CalendarHeadCell.vue", + "ui/calendar/CalendarHeader.vue", + "ui/calendar/CalendarHeading.vue", + "ui/calendar/CalendarNextButton.vue", + "ui/calendar/CalendarPrevButton.vue", "ui/calendar/index.ts" ], "type": "components:ui" @@ -735,5 +743,21 @@ "ui/tooltip/index.ts" ], "type": "components:ui" + }, + { + "name": "v-calendar", + "dependencies": [ + "@vueuse/core", + "v-calendar@next" + ], + "registryDependencies": [ + "utils", + "button" + ], + "files": [ + "ui/v-calendar/Calendar.vue", + "ui/v-calendar/index.ts" + ], + "type": "components:ui" } -] +] \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/accordion.json b/apps/www/src/public/registry/styles/default/accordion.json index be4913a4..a9cc9e42 100644 --- a/apps/www/src/public/registry/styles/default/accordion.json +++ b/apps/www/src/public/registry/styles/default/accordion.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/alert-dialog.json b/apps/www/src/public/registry/styles/default/alert-dialog.json index 18ef194a..c569742a 100644 --- a/apps/www/src/public/registry/styles/default/alert-dialog.json +++ b/apps/www/src/public/registry/styles/default/alert-dialog.json @@ -48,4 +48,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/alert.json b/apps/www/src/public/registry/styles/default/alert.json index 54bb63e9..7bc3f44c 100644 --- a/apps/www/src/public/registry/styles/default/alert.json +++ b/apps/www/src/public/registry/styles/default/alert.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/aspect-ratio.json b/apps/www/src/public/registry/styles/default/aspect-ratio.json index 54f7608c..f8534f00 100644 --- a/apps/www/src/public/registry/styles/default/aspect-ratio.json +++ b/apps/www/src/public/registry/styles/default/aspect-ratio.json @@ -13,4 +13,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/avatar.json b/apps/www/src/public/registry/styles/default/avatar.json index 4a5c7da8..a3be030c 100644 --- a/apps/www/src/public/registry/styles/default/avatar.json +++ b/apps/www/src/public/registry/styles/default/avatar.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/badge.json b/apps/www/src/public/registry/styles/default/badge.json index 2c7f9d83..b964534b 100644 --- a/apps/www/src/public/registry/styles/default/badge.json +++ b/apps/www/src/public/registry/styles/default/badge.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/breadcrumb.json b/apps/www/src/public/registry/styles/default/breadcrumb.json index d9baa9cd..ce3008c8 100644 --- a/apps/www/src/public/registry/styles/default/breadcrumb.json +++ b/apps/www/src/public/registry/styles/default/breadcrumb.json @@ -39,4 +39,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/button.json b/apps/www/src/public/registry/styles/default/button.json index 8d960a1d..6e6f2f43 100644 --- a/apps/www/src/public/registry/styles/default/button.json +++ b/apps/www/src/public/registry/styles/default/button.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/calendar.json b/apps/www/src/public/registry/styles/default/calendar.json index 06799304..a41a1044 100644 --- a/apps/www/src/public/registry/styles/default/calendar.json +++ b/apps/www/src/public/registry/styles/default/calendar.json @@ -1,9 +1,6 @@ { "name": "calendar", - "dependencies": [ - "@vueuse/core", - "v-calendar@next" - ], + "dependencies": [], "registryDependencies": [ "utils", "button" @@ -11,12 +8,56 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n" + }, + { + "name": "CalendarCell.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarCellTrigger.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGrid.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGridBody.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGridHead.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGridRow.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarHeadCell.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarHeader.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarHeading.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarNextButton.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarPrevButton.vue", + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as Calendar } from './Calendar.vue'\nimport type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts'\n\nexport function isVCalendarSlot(slotName: string): slotName is CalendarSlotName {\n const validSlots: CalendarSlotName[] = [\n 'day-content',\n 'day-popover',\n 'dp-footer',\n 'footer',\n 'header-title-wrapper',\n 'header-title',\n 'header-prev-button',\n 'header-next-button',\n 'nav',\n 'nav-prev-button',\n 'nav-next-button',\n 'page',\n 'time-header',\n ]\n\n return validSlots.includes(slotName as CalendarSlotName)\n}\n" + "content": "export { default as Calendar } from './Calendar.vue'\nexport { default as CalendarCell } from './CalendarCell.vue'\nexport { default as CalendarCellTrigger } from './CalendarCellTrigger.vue'\nexport { default as CalendarGrid } from './CalendarGrid.vue'\nexport { default as CalendarGridBody } from './CalendarGridBody.vue'\nexport { default as CalendarGridHead } from './CalendarGridHead.vue'\nexport { default as CalendarGridRow } from './CalendarGridRow.vue'\nexport { default as CalendarHeadCell } from './CalendarHeadCell.vue'\nexport { default as CalendarHeader } from './CalendarHeader.vue'\nexport { default as CalendarHeading } from './CalendarHeading.vue'\nexport { default as CalendarNextButton } from './CalendarNextButton.vue'\nexport { default as CalendarPrevButton } from './CalendarPrevButton.vue'\n" } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/card.json b/apps/www/src/public/registry/styles/default/card.json index 139bac3a..a9a8f43b 100644 --- a/apps/www/src/public/registry/styles/default/card.json +++ b/apps/www/src/public/registry/styles/default/card.json @@ -35,4 +35,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/carousel.json b/apps/www/src/public/registry/styles/default/carousel.json index 5ca5575d..e74a7edc 100644 --- a/apps/www/src/public/registry/styles/default/carousel.json +++ b/apps/www/src/public/registry/styles/default/carousel.json @@ -44,4 +44,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/checkbox.json b/apps/www/src/public/registry/styles/default/checkbox.json index 2efd9229..86d0a16e 100644 --- a/apps/www/src/public/registry/styles/default/checkbox.json +++ b/apps/www/src/public/registry/styles/default/checkbox.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/collapsible.json b/apps/www/src/public/registry/styles/default/collapsible.json index 0c8ac927..39e79fca 100644 --- a/apps/www/src/public/registry/styles/default/collapsible.json +++ b/apps/www/src/public/registry/styles/default/collapsible.json @@ -21,4 +21,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/command.json b/apps/www/src/public/registry/styles/default/command.json index a999b1a0..b9f15c83 100644 --- a/apps/www/src/public/registry/styles/default/command.json +++ b/apps/www/src/public/registry/styles/default/command.json @@ -48,4 +48,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/context-menu.json b/apps/www/src/public/registry/styles/default/context-menu.json index 4d2b2cce..51dcd6d8 100644 --- a/apps/www/src/public/registry/styles/default/context-menu.json +++ b/apps/www/src/public/registry/styles/default/context-menu.json @@ -71,4 +71,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/dialog.json b/apps/www/src/public/registry/styles/default/dialog.json index 754ae8e9..c2f2df4d 100644 --- a/apps/www/src/public/registry/styles/default/dialog.json +++ b/apps/www/src/public/registry/styles/default/dialog.json @@ -47,4 +47,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/drawer.json b/apps/www/src/public/registry/styles/default/drawer.json index a0e61472..c60035d3 100644 --- a/apps/www/src/public/registry/styles/default/drawer.json +++ b/apps/www/src/public/registry/styles/default/drawer.json @@ -39,4 +39,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/dropdown-menu.json b/apps/www/src/public/registry/styles/default/dropdown-menu.json index 1afc9343..0198694c 100644 --- a/apps/www/src/public/registry/styles/default/dropdown-menu.json +++ b/apps/www/src/public/registry/styles/default/dropdown-menu.json @@ -67,4 +67,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/form.json b/apps/www/src/public/registry/styles/default/form.json index 19a29433..5e61096e 100644 --- a/apps/www/src/public/registry/styles/default/form.json +++ b/apps/www/src/public/registry/styles/default/form.json @@ -40,4 +40,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/hover-card.json b/apps/www/src/public/registry/styles/default/hover-card.json index 6ea8501f..bf4eb7dc 100644 --- a/apps/www/src/public/registry/styles/default/hover-card.json +++ b/apps/www/src/public/registry/styles/default/hover-card.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/input.json b/apps/www/src/public/registry/styles/default/input.json index 249a6657..7f500be6 100644 --- a/apps/www/src/public/registry/styles/default/input.json +++ b/apps/www/src/public/registry/styles/default/input.json @@ -17,4 +17,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/label.json b/apps/www/src/public/registry/styles/default/label.json index d827d8be..0cfedee1 100644 --- a/apps/www/src/public/registry/styles/default/label.json +++ b/apps/www/src/public/registry/styles/default/label.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/menubar.json b/apps/www/src/public/registry/styles/default/menubar.json index d3a44c54..9c9e9c98 100644 --- a/apps/www/src/public/registry/styles/default/menubar.json +++ b/apps/www/src/public/registry/styles/default/menubar.json @@ -71,4 +71,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/navigation-menu.json b/apps/www/src/public/registry/styles/default/navigation-menu.json index 501c88c9..ecda26c9 100644 --- a/apps/www/src/public/registry/styles/default/navigation-menu.json +++ b/apps/www/src/public/registry/styles/default/navigation-menu.json @@ -43,4 +43,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/pagination.json b/apps/www/src/public/registry/styles/default/pagination.json index 77a558de..6d25fc6f 100644 --- a/apps/www/src/public/registry/styles/default/pagination.json +++ b/apps/www/src/public/registry/styles/default/pagination.json @@ -32,4 +32,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/pin-input.json b/apps/www/src/public/registry/styles/default/pin-input.json index 534e7892..a6354974 100644 --- a/apps/www/src/public/registry/styles/default/pin-input.json +++ b/apps/www/src/public/registry/styles/default/pin-input.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/popover.json b/apps/www/src/public/registry/styles/default/popover.json index 5d8069ce..916e0eab 100644 --- a/apps/www/src/public/registry/styles/default/popover.json +++ b/apps/www/src/public/registry/styles/default/popover.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/progress.json b/apps/www/src/public/registry/styles/default/progress.json index 65493f42..cd2edde9 100644 --- a/apps/www/src/public/registry/styles/default/progress.json +++ b/apps/www/src/public/registry/styles/default/progress.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file 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 e1bf9019..beae81f5 100644 --- a/apps/www/src/public/registry/styles/default/radio-group.json +++ b/apps/www/src/public/registry/styles/default/radio-group.json @@ -19,4 +19,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/resizable.json b/apps/www/src/public/registry/styles/default/resizable.json index 53b405a0..96622614 100644 --- a/apps/www/src/public/registry/styles/default/resizable.json +++ b/apps/www/src/public/registry/styles/default/resizable.json @@ -19,4 +19,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/scroll-area.json b/apps/www/src/public/registry/styles/default/scroll-area.json index 2647bf53..4d7a79fa 100644 --- a/apps/www/src/public/registry/styles/default/scroll-area.json +++ b/apps/www/src/public/registry/styles/default/scroll-area.json @@ -19,4 +19,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/select.json b/apps/www/src/public/registry/styles/default/select.json index d4d4ca10..cafc7f97 100644 --- a/apps/www/src/public/registry/styles/default/select.json +++ b/apps/www/src/public/registry/styles/default/select.json @@ -55,4 +55,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/separator.json b/apps/www/src/public/registry/styles/default/separator.json index 2d5d85df..da6dd655 100644 --- a/apps/www/src/public/registry/styles/default/separator.json +++ b/apps/www/src/public/registry/styles/default/separator.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/sheet.json b/apps/www/src/public/registry/styles/default/sheet.json index d347764a..33287e21 100644 --- a/apps/www/src/public/registry/styles/default/sheet.json +++ b/apps/www/src/public/registry/styles/default/sheet.json @@ -43,4 +43,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/skeleton.json b/apps/www/src/public/registry/styles/default/skeleton.json index 019e0486..13be9875 100644 --- a/apps/www/src/public/registry/styles/default/skeleton.json +++ b/apps/www/src/public/registry/styles/default/skeleton.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/slider.json b/apps/www/src/public/registry/styles/default/slider.json index 45fee406..bc124110 100644 --- a/apps/www/src/public/registry/styles/default/slider.json +++ b/apps/www/src/public/registry/styles/default/slider.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/sonner.json b/apps/www/src/public/registry/styles/default/sonner.json index 3a164849..ae170e52 100644 --- a/apps/www/src/public/registry/styles/default/sonner.json +++ b/apps/www/src/public/registry/styles/default/sonner.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/switch.json b/apps/www/src/public/registry/styles/default/switch.json index 006f0b0a..3b09a00e 100644 --- a/apps/www/src/public/registry/styles/default/switch.json +++ b/apps/www/src/public/registry/styles/default/switch.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/table.json b/apps/www/src/public/registry/styles/default/table.json index 9b2e8ab7..cd605e4f 100644 --- a/apps/www/src/public/registry/styles/default/table.json +++ b/apps/www/src/public/registry/styles/default/table.json @@ -47,4 +47,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/tabs.json b/apps/www/src/public/registry/styles/default/tabs.json index c3fb9437..cc0e099d 100644 --- a/apps/www/src/public/registry/styles/default/tabs.json +++ b/apps/www/src/public/registry/styles/default/tabs.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/tags-input.json b/apps/www/src/public/registry/styles/default/tags-input.json index ca31d56c..01060323 100644 --- a/apps/www/src/public/registry/styles/default/tags-input.json +++ b/apps/www/src/public/registry/styles/default/tags-input.json @@ -31,4 +31,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/textarea.json b/apps/www/src/public/registry/styles/default/textarea.json index cc38a39e..4236a997 100644 --- a/apps/www/src/public/registry/styles/default/textarea.json +++ b/apps/www/src/public/registry/styles/default/textarea.json @@ -17,4 +17,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/toast.json b/apps/www/src/public/registry/styles/default/toast.json index d901ad1a..3cc32c77 100644 --- a/apps/www/src/public/registry/styles/default/toast.json +++ b/apps/www/src/public/registry/styles/default/toast.json @@ -47,4 +47,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/toggle-group.json b/apps/www/src/public/registry/styles/default/toggle-group.json index 71b4c12a..b0909535 100644 --- a/apps/www/src/public/registry/styles/default/toggle-group.json +++ b/apps/www/src/public/registry/styles/default/toggle-group.json @@ -20,4 +20,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/toggle.json b/apps/www/src/public/registry/styles/default/toggle.json index 5dca88ac..5ae5563a 100644 --- a/apps/www/src/public/registry/styles/default/toggle.json +++ b/apps/www/src/public/registry/styles/default/toggle.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/tooltip.json b/apps/www/src/public/registry/styles/default/tooltip.json index fbafb977..ab74ed0f 100644 --- a/apps/www/src/public/registry/styles/default/tooltip.json +++ b/apps/www/src/public/registry/styles/default/tooltip.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/default/v-calendar.json b/apps/www/src/public/registry/styles/default/v-calendar.json new file mode 100644 index 00000000..660d94c2 --- /dev/null +++ b/apps/www/src/public/registry/styles/default/v-calendar.json @@ -0,0 +1,22 @@ +{ + "name": "v-calendar", + "dependencies": [ + "@vueuse/core", + "v-calendar@next" + ], + "registryDependencies": [ + "utils", + "button" + ], + "files": [ + { + "name": "Calendar.vue", + "content": "\n\n\n\n\n" + }, + { + "name": "index.ts", + "content": "export { default as Calendar } from './Calendar.vue'\nimport type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts'\n\nexport function isVCalendarSlot(slotName: string): slotName is CalendarSlotName {\n const validSlots: CalendarSlotName[] = [\n 'day-content',\n 'day-popover',\n 'dp-footer',\n 'footer',\n 'header-title-wrapper',\n 'header-title',\n 'header-prev-button',\n 'header-next-button',\n 'nav',\n 'nav-prev-button',\n 'nav-next-button',\n 'page',\n 'time-header',\n ]\n\n return validSlots.includes(slotName as CalendarSlotName)\n}\n" + } + ], + "type": "components:ui" +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/index.json b/apps/www/src/public/registry/styles/index.json index 2002ac50..bbefdacf 100644 --- a/apps/www/src/public/registry/styles/index.json +++ b/apps/www/src/public/registry/styles/index.json @@ -7,4 +7,4 @@ "name": "new-york", "label": "New York" } -] +] \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/accordion.json b/apps/www/src/public/registry/styles/new-york/accordion.json index 4d354d57..ecf40bab 100644 --- a/apps/www/src/public/registry/styles/new-york/accordion.json +++ b/apps/www/src/public/registry/styles/new-york/accordion.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/alert-dialog.json b/apps/www/src/public/registry/styles/new-york/alert-dialog.json index 283c1d01..934099ea 100644 --- a/apps/www/src/public/registry/styles/new-york/alert-dialog.json +++ b/apps/www/src/public/registry/styles/new-york/alert-dialog.json @@ -48,4 +48,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/alert.json b/apps/www/src/public/registry/styles/new-york/alert.json index 72872a7a..43eaad08 100644 --- a/apps/www/src/public/registry/styles/new-york/alert.json +++ b/apps/www/src/public/registry/styles/new-york/alert.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/aspect-ratio.json b/apps/www/src/public/registry/styles/new-york/aspect-ratio.json index 54f7608c..f8534f00 100644 --- a/apps/www/src/public/registry/styles/new-york/aspect-ratio.json +++ b/apps/www/src/public/registry/styles/new-york/aspect-ratio.json @@ -13,4 +13,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/avatar.json b/apps/www/src/public/registry/styles/new-york/avatar.json index 4a5c7da8..a3be030c 100644 --- a/apps/www/src/public/registry/styles/new-york/avatar.json +++ b/apps/www/src/public/registry/styles/new-york/avatar.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/badge.json b/apps/www/src/public/registry/styles/new-york/badge.json index d20934b6..1057abff 100644 --- a/apps/www/src/public/registry/styles/new-york/badge.json +++ b/apps/www/src/public/registry/styles/new-york/badge.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/breadcrumb.json b/apps/www/src/public/registry/styles/new-york/breadcrumb.json index 094ff22e..7e70d173 100644 --- a/apps/www/src/public/registry/styles/new-york/breadcrumb.json +++ b/apps/www/src/public/registry/styles/new-york/breadcrumb.json @@ -39,4 +39,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/button.json b/apps/www/src/public/registry/styles/new-york/button.json index 09a735fd..b3526f5b 100644 --- a/apps/www/src/public/registry/styles/new-york/button.json +++ b/apps/www/src/public/registry/styles/new-york/button.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/calendar.json b/apps/www/src/public/registry/styles/new-york/calendar.json index 1ef57616..c28e074e 100644 --- a/apps/www/src/public/registry/styles/new-york/calendar.json +++ b/apps/www/src/public/registry/styles/new-york/calendar.json @@ -1,9 +1,6 @@ { "name": "calendar", - "dependencies": [ - "@vueuse/core", - "v-calendar@next" - ], + "dependencies": [], "registryDependencies": [ "utils", "button" @@ -11,12 +8,56 @@ "files": [ { "name": "Calendar.vue", - "content": "\n\n\n\n\n" + "content": "\n\n\n" + }, + { + "name": "CalendarCell.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarCellTrigger.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGrid.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGridBody.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGridHead.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarGridRow.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarHeadCell.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarHeader.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarHeading.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarNextButton.vue", + "content": "\n\n\n" + }, + { + "name": "CalendarPrevButton.vue", + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as Calendar } from './Calendar.vue'\nimport type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts'\n\nexport function isVCalendarSlot(slotName: string): slotName is CalendarSlotName {\n const validSlots: CalendarSlotName[] = [\n 'day-content',\n 'day-popover',\n 'dp-footer',\n 'footer',\n 'header-title-wrapper',\n 'header-title',\n 'header-prev-button',\n 'header-next-button',\n 'nav',\n 'nav-prev-button',\n 'nav-next-button',\n 'page',\n 'time-header',\n ]\n\n return validSlots.includes(slotName as CalendarSlotName)\n}\n" + "content": "export { default as Calendar } from './Calendar.vue'\nexport { default as CalendarCell } from './CalendarCell.vue'\nexport { default as CalendarCellTrigger } from './CalendarCellTrigger.vue'\nexport { default as CalendarGrid } from './CalendarGrid.vue'\nexport { default as CalendarGridBody } from './CalendarGridBody.vue'\nexport { default as CalendarGridHead } from './CalendarGridHead.vue'\nexport { default as CalendarGridRow } from './CalendarGridRow.vue'\nexport { default as CalendarHeadCell } from './CalendarHeadCell.vue'\nexport { default as CalendarHeader } from './CalendarHeader.vue'\nexport { default as CalendarHeading } from './CalendarHeading.vue'\nexport { default as CalendarNextButton } from './CalendarNextButton.vue'\nexport { default as CalendarPrevButton } from './CalendarPrevButton.vue'\n" } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/card.json b/apps/www/src/public/registry/styles/new-york/card.json index 8446eff0..b2ccbb05 100644 --- a/apps/www/src/public/registry/styles/new-york/card.json +++ b/apps/www/src/public/registry/styles/new-york/card.json @@ -35,4 +35,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/carousel.json b/apps/www/src/public/registry/styles/new-york/carousel.json index e3c0edd3..43543e79 100644 --- a/apps/www/src/public/registry/styles/new-york/carousel.json +++ b/apps/www/src/public/registry/styles/new-york/carousel.json @@ -44,4 +44,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/checkbox.json b/apps/www/src/public/registry/styles/new-york/checkbox.json index dc3c2cd0..35fa7f1d 100644 --- a/apps/www/src/public/registry/styles/new-york/checkbox.json +++ b/apps/www/src/public/registry/styles/new-york/checkbox.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/collapsible.json b/apps/www/src/public/registry/styles/new-york/collapsible.json index 0c8ac927..39e79fca 100644 --- a/apps/www/src/public/registry/styles/new-york/collapsible.json +++ b/apps/www/src/public/registry/styles/new-york/collapsible.json @@ -21,4 +21,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/command.json b/apps/www/src/public/registry/styles/new-york/command.json index ffcbdb03..42c34759 100644 --- a/apps/www/src/public/registry/styles/new-york/command.json +++ b/apps/www/src/public/registry/styles/new-york/command.json @@ -48,4 +48,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/context-menu.json b/apps/www/src/public/registry/styles/new-york/context-menu.json index 38d07d10..f27e8dca 100644 --- a/apps/www/src/public/registry/styles/new-york/context-menu.json +++ b/apps/www/src/public/registry/styles/new-york/context-menu.json @@ -71,4 +71,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/dialog.json b/apps/www/src/public/registry/styles/new-york/dialog.json index b7e8da2f..fcc6ca4c 100644 --- a/apps/www/src/public/registry/styles/new-york/dialog.json +++ b/apps/www/src/public/registry/styles/new-york/dialog.json @@ -47,4 +47,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/drawer.json b/apps/www/src/public/registry/styles/new-york/drawer.json index a0e61472..c60035d3 100644 --- a/apps/www/src/public/registry/styles/new-york/drawer.json +++ b/apps/www/src/public/registry/styles/new-york/drawer.json @@ -39,4 +39,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/dropdown-menu.json b/apps/www/src/public/registry/styles/new-york/dropdown-menu.json index 3c2ab614..e834d04c 100644 --- a/apps/www/src/public/registry/styles/new-york/dropdown-menu.json +++ b/apps/www/src/public/registry/styles/new-york/dropdown-menu.json @@ -67,4 +67,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/form.json b/apps/www/src/public/registry/styles/new-york/form.json index b2a3dcf4..2c69a3a5 100644 --- a/apps/www/src/public/registry/styles/new-york/form.json +++ b/apps/www/src/public/registry/styles/new-york/form.json @@ -40,4 +40,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/hover-card.json b/apps/www/src/public/registry/styles/new-york/hover-card.json index 6ea8501f..bf4eb7dc 100644 --- a/apps/www/src/public/registry/styles/new-york/hover-card.json +++ b/apps/www/src/public/registry/styles/new-york/hover-card.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/input.json b/apps/www/src/public/registry/styles/new-york/input.json index a7e9c552..7b840496 100644 --- a/apps/www/src/public/registry/styles/new-york/input.json +++ b/apps/www/src/public/registry/styles/new-york/input.json @@ -17,4 +17,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/label.json b/apps/www/src/public/registry/styles/new-york/label.json index d827d8be..0cfedee1 100644 --- a/apps/www/src/public/registry/styles/new-york/label.json +++ b/apps/www/src/public/registry/styles/new-york/label.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/menubar.json b/apps/www/src/public/registry/styles/new-york/menubar.json index 578ebe84..9602ca23 100644 --- a/apps/www/src/public/registry/styles/new-york/menubar.json +++ b/apps/www/src/public/registry/styles/new-york/menubar.json @@ -71,4 +71,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/navigation-menu.json b/apps/www/src/public/registry/styles/new-york/navigation-menu.json index 055569f9..fa0996a5 100644 --- a/apps/www/src/public/registry/styles/new-york/navigation-menu.json +++ b/apps/www/src/public/registry/styles/new-york/navigation-menu.json @@ -43,4 +43,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/pagination.json b/apps/www/src/public/registry/styles/new-york/pagination.json index 4dd33388..e07f0b04 100644 --- a/apps/www/src/public/registry/styles/new-york/pagination.json +++ b/apps/www/src/public/registry/styles/new-york/pagination.json @@ -32,4 +32,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/pin-input.json b/apps/www/src/public/registry/styles/new-york/pin-input.json index e767ed2b..3095ced7 100644 --- a/apps/www/src/public/registry/styles/new-york/pin-input.json +++ b/apps/www/src/public/registry/styles/new-york/pin-input.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/popover.json b/apps/www/src/public/registry/styles/new-york/popover.json index 00f53e9c..034bb416 100644 --- a/apps/www/src/public/registry/styles/new-york/popover.json +++ b/apps/www/src/public/registry/styles/new-york/popover.json @@ -23,4 +23,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/progress.json b/apps/www/src/public/registry/styles/new-york/progress.json index 0df36278..03f8fe71 100644 --- a/apps/www/src/public/registry/styles/new-york/progress.json +++ b/apps/www/src/public/registry/styles/new-york/progress.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/radio-group.json b/apps/www/src/public/registry/styles/new-york/radio-group.json index 1a415d84..1a38f59a 100644 --- a/apps/www/src/public/registry/styles/new-york/radio-group.json +++ b/apps/www/src/public/registry/styles/new-york/radio-group.json @@ -19,4 +19,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/resizable.json b/apps/www/src/public/registry/styles/new-york/resizable.json index eb2ccc2b..8d9ab3c7 100644 --- a/apps/www/src/public/registry/styles/new-york/resizable.json +++ b/apps/www/src/public/registry/styles/new-york/resizable.json @@ -19,4 +19,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/scroll-area.json b/apps/www/src/public/registry/styles/new-york/scroll-area.json index 2647bf53..4d7a79fa 100644 --- a/apps/www/src/public/registry/styles/new-york/scroll-area.json +++ b/apps/www/src/public/registry/styles/new-york/scroll-area.json @@ -19,4 +19,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/select.json b/apps/www/src/public/registry/styles/new-york/select.json index da8076e4..01409a08 100644 --- a/apps/www/src/public/registry/styles/new-york/select.json +++ b/apps/www/src/public/registry/styles/new-york/select.json @@ -55,4 +55,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/separator.json b/apps/www/src/public/registry/styles/new-york/separator.json index 2d5d85df..da6dd655 100644 --- a/apps/www/src/public/registry/styles/new-york/separator.json +++ b/apps/www/src/public/registry/styles/new-york/separator.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/sheet.json b/apps/www/src/public/registry/styles/new-york/sheet.json index 8fd739e1..215d8f67 100644 --- a/apps/www/src/public/registry/styles/new-york/sheet.json +++ b/apps/www/src/public/registry/styles/new-york/sheet.json @@ -43,4 +43,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/skeleton.json b/apps/www/src/public/registry/styles/new-york/skeleton.json index ceb9997d..1487c9e2 100644 --- a/apps/www/src/public/registry/styles/new-york/skeleton.json +++ b/apps/www/src/public/registry/styles/new-york/skeleton.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/slider.json b/apps/www/src/public/registry/styles/new-york/slider.json index 5074db97..0b6e4bc8 100644 --- a/apps/www/src/public/registry/styles/new-york/slider.json +++ b/apps/www/src/public/registry/styles/new-york/slider.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/sonner.json b/apps/www/src/public/registry/styles/new-york/sonner.json index 3a164849..ae170e52 100644 --- a/apps/www/src/public/registry/styles/new-york/sonner.json +++ b/apps/www/src/public/registry/styles/new-york/sonner.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/switch.json b/apps/www/src/public/registry/styles/new-york/switch.json index 14e290e0..7cc55c5b 100644 --- a/apps/www/src/public/registry/styles/new-york/switch.json +++ b/apps/www/src/public/registry/styles/new-york/switch.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/table.json b/apps/www/src/public/registry/styles/new-york/table.json index d7f98df7..27805556 100644 --- a/apps/www/src/public/registry/styles/new-york/table.json +++ b/apps/www/src/public/registry/styles/new-york/table.json @@ -47,4 +47,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/tabs.json b/apps/www/src/public/registry/styles/new-york/tabs.json index 8c2cef7c..f238ee00 100644 --- a/apps/www/src/public/registry/styles/new-york/tabs.json +++ b/apps/www/src/public/registry/styles/new-york/tabs.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/tags-input.json b/apps/www/src/public/registry/styles/new-york/tags-input.json index 247c32ce..3eaa3f7e 100644 --- a/apps/www/src/public/registry/styles/new-york/tags-input.json +++ b/apps/www/src/public/registry/styles/new-york/tags-input.json @@ -31,4 +31,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/textarea.json b/apps/www/src/public/registry/styles/new-york/textarea.json index 72d2929a..40b5b596 100644 --- a/apps/www/src/public/registry/styles/new-york/textarea.json +++ b/apps/www/src/public/registry/styles/new-york/textarea.json @@ -17,4 +17,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/toast.json b/apps/www/src/public/registry/styles/new-york/toast.json index 185a083e..99669a77 100644 --- a/apps/www/src/public/registry/styles/new-york/toast.json +++ b/apps/www/src/public/registry/styles/new-york/toast.json @@ -47,4 +47,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/toggle-group.json b/apps/www/src/public/registry/styles/new-york/toggle-group.json index 7d1e77a8..c1e79760 100644 --- a/apps/www/src/public/registry/styles/new-york/toggle-group.json +++ b/apps/www/src/public/registry/styles/new-york/toggle-group.json @@ -20,4 +20,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/toggle.json b/apps/www/src/public/registry/styles/new-york/toggle.json index 52151f2d..4ccde5ca 100644 --- a/apps/www/src/public/registry/styles/new-york/toggle.json +++ b/apps/www/src/public/registry/styles/new-york/toggle.json @@ -15,4 +15,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/tooltip.json b/apps/www/src/public/registry/styles/new-york/tooltip.json index 5b08bfaf..975435fe 100644 --- a/apps/www/src/public/registry/styles/new-york/tooltip.json +++ b/apps/www/src/public/registry/styles/new-york/tooltip.json @@ -27,4 +27,4 @@ } ], "type": "components:ui" -} +} \ No newline at end of file diff --git a/apps/www/src/public/registry/styles/new-york/v-calendar.json b/apps/www/src/public/registry/styles/new-york/v-calendar.json new file mode 100644 index 00000000..47ba04d0 --- /dev/null +++ b/apps/www/src/public/registry/styles/new-york/v-calendar.json @@ -0,0 +1,22 @@ +{ + "name": "v-calendar", + "dependencies": [ + "@vueuse/core", + "v-calendar@next" + ], + "registryDependencies": [ + "utils", + "button" + ], + "files": [ + { + "name": "Calendar.vue", + "content": "\n\n\n\n\n" + }, + { + "name": "index.ts", + "content": "export { default as Calendar } from './Calendar.vue'\nimport type { CalendarSlotName } from 'v-calendar/dist/types/src/components/Calendar/CalendarSlot.vue.d.ts'\n\nexport function isVCalendarSlot(slotName: string): slotName is CalendarSlotName {\n const validSlots: CalendarSlotName[] = [\n 'day-content',\n 'day-popover',\n 'dp-footer',\n 'footer',\n 'header-title-wrapper',\n 'header-title',\n 'header-prev-button',\n 'header-next-button',\n 'nav',\n 'nav-prev-button',\n 'nav-next-button',\n 'page',\n 'time-header',\n ]\n\n return validSlots.includes(slotName as CalendarSlotName)\n}\n" + } + ], + "type": "components:ui" +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d67f56fc..20438ccc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + radix-vue@1.5.3: + hash: jnhemw3hcquqa2vjldfytqhpcy + path: patches/radix-vue@1.5.3.patch + importers: .: @@ -86,6 +91,9 @@ importers: embla-carousel-vue: specifier: ^8.0.0 version: 8.0.0(vue@3.4.21) + flat-internationalized-date: + specifier: ^1.2.3 + version: 1.2.3 lucide-vue-next: specifier: ^0.359.0 version: 0.359.0(vue@3.4.21) @@ -94,7 +102,7 @@ importers: version: 0.30.8 radix-vue: specifier: ^1.5.3 - version: 1.5.3(vue@3.4.21) + version: 1.5.3(patch_hash=jnhemw3hcquqa2vjldfytqhpcy)(vue@3.4.21) tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.1) @@ -257,7 +265,7 @@ importers: version: 2.4.2 radix-vue: specifier: ^1.5.3 - version: 1.5.3(vue@3.4.21) + version: 1.5.3(patch_hash=jnhemw3hcquqa2vjldfytqhpcy)(vue@3.4.21) ts-morph: specifier: ^22.0.0 version: 22.0.0 @@ -5386,7 +5394,7 @@ packages: '@babel/helper-module-imports': 7.22.15 '@babel/helper-plugin-utils': 7.22.5 '@babel/parser': 7.24.1 - '@vue/compiler-sfc': 3.4.21 + '@vue/compiler-sfc': 3.4.19 dev: true /@vue/compiler-core@3.4.19: @@ -8770,6 +8778,12 @@ packages: rimraf: 3.0.2 dev: true + /flat-internationalized-date@1.2.3: + resolution: {integrity: sha512-qhNeqjiPSzfbaDXa+2HPVb+U2xNQKHpT9gAn8TJi1Hc2CvmgudR78oltH1YQLe91ffgk2paNcHZtX8YLEh7KMA==} + dependencies: + typescript: 5.4.2 + dev: false + /flat@5.0.2: resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} hasBin: true @@ -12489,7 +12503,7 @@ packages: resolution: {integrity: sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==} dev: false - /radix-vue@1.5.3(vue@3.4.21): + /radix-vue@1.5.3(patch_hash=jnhemw3hcquqa2vjldfytqhpcy)(vue@3.4.21): resolution: {integrity: sha512-K1JF8P238jGKRwwlWe0LNCd80bamfWFnDhLNBAgoWvSRORRIsoo7DODnC4TLE62JE55tf/6ABSs5JIvp2BvYPA==} dependencies: '@floating-ui/dom': 1.6.1 @@ -12501,6 +12515,7 @@ packages: - '@vue/composition-api' - vue dev: false + patched: true /radix3@1.1.1: resolution: {integrity: sha512-yUUd5VTiFtcMEx0qFUxGAv5gbMc1un4RvEO1JZdP7ZUl/RHygZK6PknIKntmQRZxnMY3ZXD2ISaw1ij8GYW1yg==} @@ -14500,7 +14515,7 @@ packages: resolution: {integrity: sha512-3PYWMbN3cSdsciv3fzewskxZFnX61PYq1uNsbvizXDo/8sN4SMrWkYDqWaPdTD3GTEm6wpx7j5flRLg7A5ZXbQ==} dependencies: '@vueuse/core': 10.9.0(vue@3.4.21) - radix-vue: 1.5.3(vue@3.4.21) + radix-vue: 1.5.3(patch_hash=jnhemw3hcquqa2vjldfytqhpcy)(vue@3.4.21) vue: 3.4.21(typescript@5.4.2) transitivePeerDependencies: - '@vue/composition-api'