refactor: update Proxmox UI components to use TailAdmin styling
- Changed component styles and classes to align with TailAdmin design patterns. - Updated color schemes, typography, and layout for consistency across components. - Refactored Info Row, Network Address Card, Notice Banner, Progress Bar, Resource Gauge, Section Header, Server Status, Spinner, Stat Card, and Tab Panel components. - Enhanced responsiveness and accessibility features in various components.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{--
|
||||
Dropdown Item Component - shadcn-style
|
||||
Dropdown Item Component - TailAdmin style
|
||||
--}}
|
||||
|
||||
@props([
|
||||
@@ -13,9 +13,9 @@
|
||||
$tag = $href ? 'a' : 'button';
|
||||
|
||||
$variantClasses = [
|
||||
'default' => 'text-foreground hover:bg-accent hover:text-accent-foreground',
|
||||
'danger' => 'text-danger focus:bg-danger/10 focus:text-danger',
|
||||
'success' => 'text-success focus:bg-success/10 focus:text-success',
|
||||
'default' => 'text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white',
|
||||
'danger' => 'text-error-600 hover:bg-error-50 dark:text-error-400 dark:hover:bg-error-500/10',
|
||||
'success' => 'text-success-600 hover:bg-success-50 dark:text-success-400 dark:hover:bg-success-500/10',
|
||||
];
|
||||
|
||||
$variantClass = $variantClasses[$variant] ?? $variantClasses['default'];
|
||||
@@ -26,13 +26,13 @@
|
||||
@if($tag === 'button') type="button" @endif
|
||||
@if($disabled) disabled @endif
|
||||
{{ $attributes->class([
|
||||
'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors duration-100 w-full',
|
||||
'relative flex w-full cursor-pointer select-none items-center gap-2.5 rounded-lg px-3 py-2 text-theme-sm outline-none transition-colors duration-150',
|
||||
$variantClass,
|
||||
'pointer-events-none opacity-50' => $disabled,
|
||||
]) }}
|
||||
>
|
||||
@if($icon)
|
||||
<x-dynamic-component :component="$icon" class="size-4" />
|
||||
<x-dynamic-component :component="$icon" class="size-4.5" />
|
||||
@endif
|
||||
<span class="flex-1 text-left">{{ $slot }}</span>
|
||||
</{{ $tag }}>
|
||||
|
||||
Reference in New Issue
Block a user