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 @@
{{--
Progress Bar Component - TailServer Theme
Progress Bar Component - shadcn-style
Usage:
<x-proxmox::ui.progress :value="75" />
@@ -57,18 +57,16 @@
<div {{ $attributes->class(['w-full']) }}>
@if($showLabel || $label)
<div class="flex items-center justify-between text-xs mb-1.5">
<span class="text-base/50 font-medium">{{ $label ?? 'Usage' }}</span>
<span class="font-semibold text-base/70">{{ number_format($percent, 1) }}%</span>
<span class="text-muted-foreground font-medium">{{ $label ?? 'Usage' }}</span>
<span class="font-medium">{{ number_format($percent, 1) }}%</span>
</div>
@endif
<div class="{{ $sizeClass }} rounded-full bg-neutral/10 overflow-hidden">
<div class="relative {{ $sizeClass }} w-full overflow-hidden rounded-full bg-primary/20">
<div
@class([
$sizeClass,
'rounded-full transition-all duration-500 ease-out',
'flex-1 w-full transition-all duration-300',
$colorClass => !$gradient,
'animate-pulse' => $animated,
'bg-[length:1rem_1rem] bg-gradient-to-r from-white/20 via-transparent to-transparent' => $striped,
])
@if($gradient)
style="width: {{ $percent }}%; background-image: {{ $gradient }};"