- 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.
32 lines
670 B
PHP
32 lines
670 B
PHP
{{--
|
|
Table Data Cell Component - shadcn-style
|
|
--}}
|
|
|
|
@props([
|
|
'align' => 'start',
|
|
'nowrap' => false,
|
|
'muted' => false,
|
|
'strong' => false,
|
|
])
|
|
|
|
@php
|
|
$alignClasses = [
|
|
'start' => 'text-left',
|
|
'center' => 'text-center',
|
|
'end' => 'text-right',
|
|
];
|
|
$alignClass = $alignClasses[$align] ?? $alignClasses['start'];
|
|
@endphp
|
|
|
|
<td
|
|
{{ $attributes->class([
|
|
'p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
|
|
$alignClass,
|
|
'whitespace-nowrap' => $nowrap,
|
|
'text-muted-foreground' => $muted,
|
|
'font-medium' => $strong,
|
|
]) }}
|
|
>
|
|
{{ $slot }}
|
|
</td>
|