Skip to content

Commit a4cbe7a

Browse files
committed
Upgrade Tailwind CSS v4
The new size-* utility (added in Tailwind v3.4), is now fully supported by tailwind-merge in v4. We can replace w-* h-* with the new size-* utility.
1 parent ffcca06 commit a4cbe7a

22 files changed

+8251
-30
lines changed

composer.lock

Lines changed: 8221 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/ui/avatar/AvatarImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ const props = defineProps<AvatarImageProps>();
55
</script>
66

77
<template>
8-
<AvatarImage v-bind="props" class="h-full w-full object-cover" />
8+
<AvatarImage v-bind="props" class="size-full object-cover" />
99
</template>

resources/js/components/ui/breadcrumb/BreadcrumbEllipsis.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const props = defineProps<{
99
</script>
1010

1111
<template>
12-
<span role="presentation" aria-hidden="true" :class="cn('flex h-9 w-9 items-center justify-center', props.class)">
12+
<span role="presentation" aria-hidden="true" :class="cn('flex size-9 items-center justify-center', props.class)">
1313
<slot>
14-
<MoreHorizontal class="h-4 w-4" />
14+
<MoreHorizontal class="size-4" />
1515
</slot>
1616
<span class="sr-only">More</span>
1717
</span>

resources/js/components/ui/checkbox/Checkbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
2424
cn('peer size-5 shrink-0 rounded-sm border border-input ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-accent-foreground',
2525
props.class)"
2626
>
27-
<CheckboxIndicator class="flex h-full w-full items-center justify-center text-current">
27+
<CheckboxIndicator class="flex size-full items-center justify-center text-current">
2828
<slot>
2929
<Check class="size-3.5 stroke-[3]" />
3030
</slot>

resources/js/components/ui/dialog/DialogContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
4343
<DialogClose
4444
class="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
4545
>
46-
<X class="h-4 w-4" />
46+
<X class="size-4" />
4747
<span class="sr-only">Close</span>
4848
</DialogClose>
4949
</DialogContent>

resources/js/components/ui/dialog/DialogScrollContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
5050
<slot />
5151

5252
<DialogClose class="absolute right-3 top-3 rounded-md p-0.5 transition-colors hover:bg-secondary">
53-
<X class="h-4 w-4" />
53+
<X class="size-4" />
5454
<span class="sr-only">Close</span>
5555
</DialogClose>
5656
</DialogContent>

resources/js/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3232
)
3333
"
3434
>
35-
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
35+
<span class="absolute left-2 flex size-3.5 items-center justify-center">
3636
<DropdownMenuItemIndicator>
37-
<Check class="h-4 w-4" />
37+
<Check class="size-4" />
3838
</DropdownMenuItemIndicator>
3939
</span>
4040
<slot />

resources/js/components/ui/dropdown-menu/DropdownMenuRadioItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3333
)
3434
"
3535
>
36-
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
36+
<span class="absolute left-2 flex size-3.5 items-center justify-center">
3737
<DropdownMenuItemIndicator>
38-
<Circle class="h-2 w-2 fill-current" />
38+
<Circle class="size-2 fill-current" />
3939
</DropdownMenuItemIndicator>
4040
</span>
4141
<slot />

resources/js/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ const forwardedProps = useForwardProps(delegatedProps);
2626
"
2727
>
2828
<slot />
29-
<ChevronRight class="ml-auto h-4 w-4" />
29+
<ChevronRight class="ml-auto size-4" />
3030
</DropdownMenuSubTrigger>
3131
</template>

resources/js/components/ui/navigation-menu/NavigationMenuIndicator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ const forwardedProps = useForwardProps(delegatedProps)
1919
v-bind="forwardedProps"
2020
:class="cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', props.class)"
2121
>
22-
<div class="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
22+
<div class="relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
2323
</NavigationMenuIndicator>
2424
</template>

0 commit comments

Comments
 (0)