- Refactored select component to align with shadcn design principles. - Updated server status indicator component for consistency with shadcn style. - Modified spinner component to follow shadcn design guidelines. - Enhanced stat card component with shadcn-inspired styles. - Adjusted tab panel component to reflect shadcn design updates. - Revamped table row and table data cell components to match shadcn aesthetics. - Updated table header cell component for improved styling consistency. - Refined table component to align with shadcn design principles. - Enhanced tabs component with shadcn-inspired styles. - Updated toggle component to follow shadcn design guidelines. - Refactored tooltip component to align with shadcn design principles. - Updated server card component to reflect shadcn-inspired design.
39 lines
844 B
PHP
39 lines
844 B
PHP
{{--
|
|
Table Row Component - shadcn-style
|
|
--}}
|
|
|
|
@props([
|
|
'clickable' => false,
|
|
'href' => null,
|
|
'hoverable' => null,
|
|
])
|
|
|
|
@php
|
|
// Check parent table's hoverable attribute if not explicitly set
|
|
$isHoverable = $hoverable ?? true;
|
|
@endphp
|
|
|
|
@if($href)
|
|
<tr
|
|
{{ $attributes->class([
|
|
'border-b transition-colors cursor-pointer',
|
|
'hover:bg-muted/50' => $isHoverable,
|
|
'data-[state=selected]:bg-muted',
|
|
]) }}
|
|
onclick="window.location='{{ $href }}'"
|
|
>
|
|
{{ $slot }}
|
|
</tr>
|
|
@else
|
|
<tr
|
|
{{ $attributes->class([
|
|
'border-b transition-colors',
|
|
'hover:bg-muted/50' => $isHoverable,
|
|
'cursor-pointer' => $clickable,
|
|
'data-[state=selected]:bg-muted',
|
|
]) }}
|
|
>
|
|
{{ $slot }}
|
|
</tr>
|
|
@endif
|