Skip to content

Commit 46711a5

Browse files
committed
wip
1 parent 195ed51 commit 46711a5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

resources/js/Components/ui/alert-dialog/AlertDialogAction.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
import { buttonVariants } from '@/packages/ui/src';
3+
import { cn } from '@/lib/utils';
34
import { AlertDialogAction, type AlertDialogActionProps } from 'reka-ui';
45
import { computed, type HTMLAttributes } from 'vue';
5-
import { twMerge } from 'tailwind-merge';
66
const props = defineProps<AlertDialogActionProps & { class?: HTMLAttributes['class'] }>();
77
88
const delegatedProps = computed(() => {
@@ -13,7 +13,7 @@ const delegatedProps = computed(() => {
1313
</script>
1414

1515
<template>
16-
<AlertDialogAction v-bind="delegatedProps" :class="twMerge(buttonVariants(), props.class)">
16+
<AlertDialogAction v-bind="delegatedProps" :class="cn(buttonVariants(), props.class)">
1717
<slot />
1818
</AlertDialogAction>
1919
</template>

resources/js/Components/ui/alert-dialog/AlertDialogCancel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
import { buttonVariants } from '@/packages/ui/src';
3+
import { cn } from '@/lib/utils';
34
import { AlertDialogCancel, type AlertDialogCancelProps } from 'reka-ui';
45
import { computed, type HTMLAttributes } from 'vue';
5-
import { twMerge } from 'tailwind-merge';
66
77
const props = defineProps<AlertDialogCancelProps & { class?: HTMLAttributes['class'] }>();
88
@@ -16,7 +16,7 @@ const delegatedProps = computed(() => {
1616
<template>
1717
<AlertDialogCancel
1818
v-bind="delegatedProps"
19-
:class="twMerge(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', props.class)">
19+
:class="cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', props.class)">
2020
<slot />
2121
</AlertDialogCancel>
2222
</template>

resources/js/Components/ui/calendar/CalendarCell.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
22
import { CalendarCell, type CalendarCellProps, useForwardProps } from 'reka-ui';
3+
import { cn } from '@/lib/utils';
34
import { computed, type HTMLAttributes } from 'vue';
4-
import { twMerge } from 'tailwind-merge';
55
66
const props = defineProps<CalendarCellProps & { class?: HTMLAttributes['class'] }>();
77
@@ -17,7 +17,7 @@ const forwardedProps = useForwardProps(delegatedProps);
1717
<template>
1818
<CalendarCell
1919
:class="
20-
twMerge(
20+
cn(
2121
'relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent [&:has([data-selected][data-outside-view])]:bg-accent/50',
2222
props.class
2323
)

0 commit comments

Comments
 (0)