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 @@
{{--
Spinner Component - TailServer Theme
Spinner Component - shadcn-style
Usage:
<x-proxmox::ui.spinner />
@@ -15,9 +15,9 @@
$sizeClasses = [
'xs' => 'size-3',
'sm' => 'size-4',
'md' => 'size-6',
'lg' => 'size-8',
'xl' => 'size-12',
'md' => 'size-5',
'lg' => 'size-6',
'xl' => 'size-8',
];
$colorClasses = [
@@ -28,7 +28,7 @@
'warning' => 'text-warning',
'danger' => 'text-danger',
'info' => 'text-info',
'muted' => 'text-base/50',
'muted' => 'text-muted-foreground',
];
$sizeClass = $sizeClasses[$size] ?? $sizeClasses['md'];
@@ -36,11 +36,11 @@
@endphp
<svg
{{ $attributes->class(['animate-spin drop-shadow-sm', $sizeClass, $colorClass]) }}
{{ $attributes->class(['animate-spin', $sizeClass, $colorClass]) }}
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
>
<circle class="opacity-20" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-80" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>