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:
@@ -1,5 +1,5 @@
|
||||
{{--
|
||||
Server Status Indicator Component - TailServer Theme
|
||||
Server Status Indicator Component - shadcn-style
|
||||
|
||||
Usage:
|
||||
<x-proxmox::ui.server-status status="running" />
|
||||
@@ -65,7 +65,7 @@
|
||||
'warning' => 'text-warning',
|
||||
'danger' => 'text-danger',
|
||||
'info' => 'text-info',
|
||||
'muted' => 'text-base/40',
|
||||
'muted' => 'text-muted-foreground',
|
||||
];
|
||||
|
||||
$bgClasses = [
|
||||
@@ -73,7 +73,7 @@
|
||||
'warning' => 'bg-warning/10',
|
||||
'danger' => 'bg-danger/10',
|
||||
'info' => 'bg-info/10',
|
||||
'muted' => 'bg-neutral/10',
|
||||
'muted' => 'bg-muted',
|
||||
];
|
||||
|
||||
$dotColorClasses = [
|
||||
@@ -81,7 +81,7 @@
|
||||
'warning' => 'bg-warning',
|
||||
'danger' => 'bg-danger',
|
||||
'info' => 'bg-info',
|
||||
'muted' => 'bg-base/40',
|
||||
'muted' => 'bg-muted-foreground',
|
||||
];
|
||||
|
||||
$sizeClasses = [
|
||||
@@ -91,9 +91,9 @@
|
||||
];
|
||||
|
||||
$dotSizes = [
|
||||
'sm' => 'h-1.5 w-1.5',
|
||||
'md' => 'h-2 w-2',
|
||||
'lg' => 'h-2.5 w-2.5',
|
||||
'sm' => 'size-1.5',
|
||||
'md' => 'size-2',
|
||||
'lg' => 'size-2.5',
|
||||
];
|
||||
|
||||
$textSizes = [
|
||||
@@ -120,7 +120,7 @@
|
||||
{{-- Full badge variant --}}
|
||||
<div
|
||||
{{ $attributes->class([
|
||||
'inline-flex items-center font-semibold rounded-lg',
|
||||
'inline-flex items-center font-medium rounded-md',
|
||||
$bgClasses[$config['color']] ?? $bgClasses['muted'],
|
||||
$colorClasses[$config['color']] ?? $colorClasses['muted'],
|
||||
$sizeClasses[$size] ?? $sizeClasses['md'],
|
||||
|
||||
Reference in New Issue
Block a user