Skip to content

Commit 1ad28c3

Browse files
authored
Merge pull request #1 from ElegantEngineeringTech/tailwindcss-v4
Tailwindcss v4
2 parents 074c373 + a1d5235 commit 1ad28c3

File tree

14 files changed

+62
-51
lines changed

14 files changed

+62
-51
lines changed

resources/views/components/button/base.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
\Elegantly\Kit\Facades\Kit::button()->size($size)->color($color)->font()->background()->outline()->border()->ring()->spacing()->hover(),
1313
'shrink-0 relative align-middle',
1414
'inline-flex items-center',
15-
'outline-2 outline-offset-2',
15+
'outline-offset-2',
1616
'transition-colors',
1717
'cursor-pointer',
1818
'disabled:cursor-not-allowed disabled:opacity-50',
19-
'focus-visible:outline active:outline',
19+
'focus-visible:outline-2 active:outline-2',
2020
]) !!} @disabled($disabled)
2121
@if ($tag === 'button') type="{{ $type }}" @endif
2222
@if ($tooltip) x-tooltip.raw="{{ $tooltip }}" @endif

resources/views/components/button/radio.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
});
1717
$label = $attributes->except(array_keys($input->getAttributes()))->class([
1818
//
19-
// 'has-[:focus-visible]:outline has-[:active]:outline',
19+
// 'has-focus-visible:outline has-active:outline',
2020
\Elegantly\Kit\Facades\Kit::button()->color($colorChecked)->checked(),
2121
]);
2222
@endphp

resources/views/components/container.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
<div {!! $attributes->class([
66
'mx-auto',
7-
'max-w-screen-sm' => $size === 'sm',
8-
'max-w-screen-md' => $size === 'md',
9-
'max-w-screen-lg' => $size === 'lg',
10-
'max-w-screen-xl' => $size === 'xl',
7+
'max-w-(--breakpoint-sm)' => $size === 'sm',
8+
'max-w-(--breakpoint-md)' => $size === 'md',
9+
'max-w-(--breakpoint-lg)' => $size === 'lg',
10+
'max-w-(--breakpoint-xl)' => $size === 'xl',
1111
]) !!}>
1212
{{ $slot }}
1313
</div>

resources/views/components/input/base.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<input type="{{ $type }}"
1313
{{ $attributes->class([
1414
\Elegantly\Kit\Facades\Kit::input()->size($size)->color($color)->font()->spacing()->border()->ring()->background()->outline(),
15-
'inline-block w-full ring-inset focus:outline focus-visible:outline outline-2',
15+
'inline-block w-full ring-inset focus:outline-2 focus-visible:outline-2',
1616
]) }}
1717
@if ($autofocus) autofocus @endif @disabled($disabled) @required($required)
1818
@if ($autocomplete) autocomplete="{{ $autocomplete }}" @endif

resources/views/components/input/parent.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<div
66
{{ $attributes->class([
77
'flex',
8-
'outline-2 outline-offset-2',
9-
'has-[:focus-visible]:outline',
8+
'outline-offset-2',
9+
'has-focus-visible:outline-2',
1010
\Elegantly\Kit\Facades\Kit::input()->color($color)->font()->background()->border()->ring()->outline(),
1111
]) }}>
1212

resources/views/components/popover/content.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@props([])
22

3-
<div {{ $attributes->class(['flex items-center justify-center max-sm:!fixed max-sm:!left-0 max-sm:!top-0 max-sm:bottom-0 max-sm:right-0 max-sm:bg-black/30']) }}
3+
<div {{ $attributes->class(['flex items-center justify-center max-sm:fixed! max-sm:left-0! max-sm:top-0! max-sm:bottom-0 max-sm:right-0 max-sm:bg-black/30']) }}
44
x-cloak x-show="open" x-trap="open" x-on:click.outside="open = false" x-on:click.self="open = false"
55
x-on:keyup.escape.prevent.stop="open = false">
66
{{ $slot }}

resources/views/components/segments/button.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<x-kit::button.radio :color-checked="$color" :attributes="$attributes->class([
88
'justify-center grow', //
9-
'has-[:checked]:shadow-sm has-[:focus-visible]:outline',
9+
'has-checked:shadow-sm has-focus-visible:outline',
1010
])">
1111
@if ($icon?->hasActualContent())
1212
<x-slot:icon :attributes="$icon?->attributes"> {{ $icon }} </x-slot:icon>

resources/views/components/switch/base.blade.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@
1313
'focus:ring-transparent dark:focus:ring-transparent',
1414
'focus-within:ring-0 dark:focus-within:ring-0',
1515
'focus:shadow-none dark:focus:shadow-none',
16-
'focus:before:outline before:outline-2 before:outline-offset-2',
16+
'focus:before:outline-2 before:outline-offset-2',
1717
'after:absolute before:absolute',
1818
'after:top-0 before:top-0',
1919
'after:block before:inline-block',
2020
'before:rounded-full after:rounded-full',
21-
"after:content-[''] after:w-5 after:h-5 after:mt-0.5 after:ml-0.5",
21+
'after:w-5 after:h-5 after:mt-0.5 after:ml-0.5',
2222
'after:shadow-md after:duration-100',
23-
"before:content-[''] before:w-10 before:h-full",
23+
'before:w-10 before:h-full',
2424
'before:shadow-[inset_0_0_#000]',
2525
'after:bg-white dark:after:bg-gray-50',
2626
'dark:before:bg-gray-600',
2727
'checked:after:duration-300 checked:after:translate-x-4',
28-
'disabled:after:bg-opacity-75 disabled:cursor-not-allowed',
29-
'disabled:checked:before:bg-opacity-40',
28+
'disabled:cursor-not-allowed disabled:opacity-50',
3029
\Elegantly\Kit\Facades\Kit::switch()->color($color)->background()->outline(),
3130
]) !!} type="checkbox" @disabled($disabled) @checked($checked)
3231
@required($required)>

resources/views/components/tag/icon.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ $attributes->class([
55
\Elegantly\Kit\Facades\Kit::tag()->size($size)->icon(),
66
'-mx-1' => !$unoffset,
7-
'flex-shrink-0 inline-block leading-none',
7+
'shrink-0 inline-block leading-none',
88
]) }}>
99
@if (is_string($icon))
1010
@svg($icon)

resources/views/components/tag/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
])
1010

1111
<x-kit::tag.base :attributes="$attributes->class([
12-
'flex-shrink-0' => !$truncate,
12+
'shrink-0' => !$truncate,
1313
])" :size="$size">
1414
@if ($icon)
1515
@php

0 commit comments

Comments
 (0)