Private
Public Access
1
0

refactor: update UI components to shadcn-style

- 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.
This commit is contained in:
2025-12-17 11:47:42 -05:00
parent e7b33a2f6c
commit 7190d7a818
34 changed files with 522 additions and 565 deletions

View File

@@ -1,5 +1,5 @@
{{--
Table Data Cell Component - TailServer Theme
Table Data Cell Component - shadcn-style
--}}
@props([
@@ -11,20 +11,20 @@
@php
$alignClasses = [
'start' => 'text-start',
'start' => 'text-left',
'center' => 'text-center',
'end' => 'text-end',
'end' => 'text-right',
];
$alignClass = $alignClasses[$align] ?? $alignClasses['start'];
@endphp
<td
{{ $attributes->class([
'px-3 py-3',
'p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
$alignClass,
'whitespace-nowrap' => $nowrap,
'text-base/50' => $muted,
'font-semibold text-base' => $strong,
'text-muted-foreground' => $muted,
'font-medium' => $strong,
]) }}
>
{{ $slot }}