File tree Expand file tree Collapse file tree
resources/js/Components/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { buttonVariants } from ' @/packages/ui/src' ;
3+ import { cn } from ' @/lib/utils' ;
34import { AlertDialogAction , type AlertDialogActionProps } from ' reka-ui' ;
45import { computed , type HTMLAttributes } from ' vue' ;
5- import { twMerge } from ' tailwind-merge' ;
66const props = defineProps <AlertDialogActionProps & { class? : HTMLAttributes [' class' ] }>();
77
88const 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 >
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { buttonVariants } from ' @/packages/ui/src' ;
3+ import { cn } from ' @/lib/utils' ;
34import { AlertDialogCancel , type AlertDialogCancelProps } from ' reka-ui' ;
45import { computed , type HTMLAttributes } from ' vue' ;
5- import { twMerge } from ' tailwind-merge' ;
66
77const 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 >
Original file line number Diff line number Diff line change 11<script lang="ts" setup>
22import { CalendarCell , type CalendarCellProps , useForwardProps } from ' reka-ui' ;
3+ import { cn } from ' @/lib/utils' ;
34import { computed , type HTMLAttributes } from ' vue' ;
4- import { twMerge } from ' tailwind-merge' ;
55
66const 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 )
You can’t perform that action at this time.
0 commit comments