From 62c41092bd4b1d2b97fe2dcf7ac36210268a4ef1 Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Tue, 30 Jan 2024 23:26:33 +0330 Subject: [PATCH] refactor: remove unnecessary avoid-collisions --- .../src/examples/dashboard/components/DateRangePicker.vue | 2 +- .../lib/registry/default/example/DatePickerWithRange.vue | 2 +- .../lib/registry/default/example/RangePickerWithSlot.vue | 2 +- .../lib/registry/default/ui/menubar/MenubarSubContent.vue | 8 +------- .../src/lib/registry/default/ui/select/SelectContent.vue | 2 -- .../lib/registry/new-york/example/DatePickerWithRange.vue | 2 +- .../lib/registry/new-york/example/RangePickerWithSlot.vue | 2 +- .../registry/new-york/ui/menubar/MenubarSubContent.vue | 8 +------- .../src/lib/registry/new-york/ui/select/SelectContent.vue | 2 -- apps/www/src/public/registry/styles/default/menubar.json | 2 +- apps/www/src/public/registry/styles/default/select.json | 2 +- apps/www/src/public/registry/styles/new-york/menubar.json | 2 +- apps/www/src/public/registry/styles/new-york/select.json | 2 +- 13 files changed, 11 insertions(+), 27 deletions(-) diff --git a/apps/www/src/examples/dashboard/components/DateRangePicker.vue b/apps/www/src/examples/dashboard/components/DateRangePicker.vue index 1951070a..87e7f589 100644 --- a/apps/www/src/examples/dashboard/components/DateRangePicker.vue +++ b/apps/www/src/examples/dashboard/components/DateRangePicker.vue @@ -40,7 +40,7 @@ const date = ref({ - + - + - + (), - { - sideOffset: 2, - alignOffset: 0, - }, -) +const props = defineProps() const emits = defineEmits() diff --git a/apps/www/src/lib/registry/default/ui/select/SelectContent.vue b/apps/www/src/lib/registry/default/ui/select/SelectContent.vue index 0f43e2d9..64809a28 100644 --- a/apps/www/src/lib/registry/default/ui/select/SelectContent.vue +++ b/apps/www/src/lib/registry/default/ui/select/SelectContent.vue @@ -18,8 +18,6 @@ defineOptions({ const props = withDefaults( defineProps(), { position: 'popper', - sideOffset: 4, - avoidCollisions: true, }, ) const emits = defineEmits() diff --git a/apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue b/apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue index 2d6c7784..7b8c3084 100644 --- a/apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue +++ b/apps/www/src/lib/registry/new-york/example/DatePickerWithRange.vue @@ -40,7 +40,7 @@ const date = ref({ - + - + (), - { - sideOffset: 2, - alignOffset: 0, - }, -) +const props = defineProps() const emits = defineEmits() diff --git a/apps/www/src/lib/registry/new-york/ui/select/SelectContent.vue b/apps/www/src/lib/registry/new-york/ui/select/SelectContent.vue index 0f43e2d9..64809a28 100644 --- a/apps/www/src/lib/registry/new-york/ui/select/SelectContent.vue +++ b/apps/www/src/lib/registry/new-york/ui/select/SelectContent.vue @@ -18,8 +18,6 @@ defineOptions({ const props = withDefaults( defineProps(), { position: 'popper', - sideOffset: 4, - avoidCollisions: true, }, ) const emits = defineEmits() diff --git a/apps/www/src/public/registry/styles/default/menubar.json b/apps/www/src/public/registry/styles/default/menubar.json index f50ec5e3..c816fcbc 100644 --- a/apps/www/src/public/registry/styles/default/menubar.json +++ b/apps/www/src/public/registry/styles/default/menubar.json @@ -55,7 +55,7 @@ }, { "name": "MenubarSubContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarSubTrigger.vue", diff --git a/apps/www/src/public/registry/styles/default/select.json b/apps/www/src/public/registry/styles/default/select.json index 9560d74a..d8df5cb7 100644 --- a/apps/www/src/public/registry/styles/default/select.json +++ b/apps/www/src/public/registry/styles/default/select.json @@ -11,7 +11,7 @@ }, { "name": "SelectContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectGroup.vue", 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 1c7dc379..82c536df 100644 --- a/apps/www/src/public/registry/styles/new-york/menubar.json +++ b/apps/www/src/public/registry/styles/new-york/menubar.json @@ -55,7 +55,7 @@ }, { "name": "MenubarSubContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "MenubarSubTrigger.vue", 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 60445e93..a17cfb57 100644 --- a/apps/www/src/public/registry/styles/new-york/select.json +++ b/apps/www/src/public/registry/styles/new-york/select.json @@ -11,7 +11,7 @@ }, { "name": "SelectContent.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "SelectGroup.vue",