Use relative cn imports in UI package to improve isolation and fix

package build
This commit is contained in:
Gregor Vostrak
2026-03-23 19:16:31 +01:00
parent b94a04dca0
commit 6be6a48e0d
64 changed files with 64 additions and 64 deletions

View File

@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { Check } from 'lucide-vue-next';
import { ContextMenuCheckboxItem, ContextMenuItemIndicator, useForwardPropsEmits } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<ContextMenuCheckboxItemProps & { class?: HTMLAttributes['class'] }>();
const emits = defineEmits<ContextMenuCheckboxItemEmits>();

View File

@@ -3,7 +3,7 @@ import type { ContextMenuContentEmits, ContextMenuContentProps } from 'reka-ui';
import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { ContextMenuContent, ContextMenuPortal, useForwardPropsEmits } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<ContextMenuContentProps & { class?: HTMLAttributes['class'] }>();
const emits = defineEmits<ContextMenuContentEmits>();

View File

@@ -3,7 +3,7 @@ import type { ContextMenuItemEmits, ContextMenuItemProps } from 'reka-ui';
import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { ContextMenuItem, useForwardPropsEmits } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<
ContextMenuItemProps & { class?: HTMLAttributes['class']; inset?: boolean }

View File

@@ -3,7 +3,7 @@ import type { ContextMenuLabelProps } from 'reka-ui';
import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { ContextMenuLabel } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<
ContextMenuLabelProps & { class?: HTMLAttributes['class']; inset?: boolean }

View File

@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { Circle } from 'lucide-vue-next';
import { ContextMenuItemIndicator, ContextMenuRadioItem, useForwardPropsEmits } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<ContextMenuRadioItemProps & { class?: HTMLAttributes['class'] }>();
const emits = defineEmits<ContextMenuRadioItemEmits>();

View File

@@ -3,7 +3,7 @@ import type { ContextMenuSeparatorProps } from 'reka-ui';
import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { ContextMenuSeparator } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<ContextMenuSeparatorProps & { class?: HTMLAttributes['class'] }>();

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -3,7 +3,7 @@ import type { DropdownMenuSubContentEmits, DropdownMenuSubContentProps } from 'r
import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { ContextMenuSubContent, useForwardPropsEmits } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<DropdownMenuSubContentProps & { class?: HTMLAttributes['class'] }>();
const emits = defineEmits<DropdownMenuSubContentEmits>();

View File

@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'vue';
import { reactiveOmit } from '@vueuse/core';
import { ChevronRight } from 'lucide-vue-next';
import { ContextMenuSubTrigger, useForwardProps } from 'reka-ui';
import { cn } from '@/lib/utils';
import { cn } from '../utils/cn';
const props = defineProps<
ContextMenuSubTriggerProps & { class?: HTMLAttributes['class']; inset?: boolean }