- Updated tab-panel component to use Tailwind for styling and transitions. - Refactored table-row component to implement Tailwind classes for hover effects and borders. - Converted table-td component to utilize Tailwind for alignment and text styles. - Changed table-th component to apply Tailwind for header styling and sorting indicators. - Revised table component to adopt Tailwind for layout, borders, and responsive design. - Enhanced tabs component with Tailwind for navigation styles and transitions. - Updated toggle component to use Tailwind for switch styles and accessibility. - Refactored tooltip component to implement Tailwind for positioning and styling. - Added visual enhancements to app.css for improved UI interactions and animations.
33 lines
817 B
PHP
33 lines
817 B
PHP
{{--
|
|
Table Row Component - LucentUI Theme
|
|
Migrated from AdminLTE to Tailwind
|
|
--}}
|
|
|
|
@props([
|
|
'clickable' => false,
|
|
'href' => null,
|
|
'hoverable' => null,
|
|
])
|
|
|
|
@php
|
|
$isHoverable = $hoverable ?? true;
|
|
@endphp
|
|
|
|
@if($href)
|
|
<tr
|
|
{{ $attributes->class([
|
|
'border-b border-neutral dark:border-gray-700 last:border-b-0 transition-colors duration-200 cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/10',
|
|
]) }}
|
|
onclick="window.location='{{ $href }}'"
|
|
>
|
|
{{ $slot }}
|
|
</tr>
|
|
@else
|
|
<tr {{ $attributes->class([
|
|
'border-b border-neutral dark:border-gray-700 last:border-b-0 transition-colors duration-200',
|
|
'cursor-pointer hover:bg-primary/5 dark:hover:bg-primary/10' => $clickable,
|
|
]) }}>
|
|
{{ $slot }}
|
|
</tr>
|
|
@endif
|