Migrate UI components from AdminLTE to LucentUI Theme using Tailwind CSS

- Updated tab-panel component to use Tailwind for styling and transitions.
- Refactored table-row component to implement Tailwind classes for hover effects and borders.
- Converted table-td component to utilize Tailwind for alignment and text styles.
- Changed table-th component to apply Tailwind for header styling and sorting indicators.
- Revised table component to adopt Tailwind for layout, borders, and responsive design.
- Enhanced tabs component with Tailwind for navigation styles and transitions.
- Updated toggle component to use Tailwind for switch styles and accessibility.
- Refactored tooltip component to implement Tailwind for positioning and styling.
- Added visual enhancements to app.css for improved UI interactions and animations.
This commit is contained in:
2026-02-01 14:16:57 -05:00
parent fa0bc93c83
commit abff5a381f
42 changed files with 1061 additions and 2427 deletions

View File

@@ -1,6 +1,6 @@
{{--
Button Component - AdminLTE Theme
Based on AdminLTE v4 Button styling patterns
Button Component - LucentUI Theme
Migrated from AdminLTE to Tailwind
Usage:
<x-proxmox::ui.button>Click me</x-proxmox::ui.button>
@@ -26,25 +26,37 @@
@php
$tag = $href ? 'a' : 'button';
// AdminLTE button classes
// LucentUI button classes
$variantClasses = [
'primary' => $outline ? 'lte-btn-outline-primary' : 'lte-btn-primary',
'secondary' => $outline ? 'lte-btn-outline-secondary' : 'lte-btn-secondary',
'danger' => $outline ? 'lte-btn-outline-danger' : 'lte-btn-danger',
'success' => $outline ? 'lte-btn-outline-success' : 'lte-btn-success',
'warning' => 'lte-btn-warning',
'info' => 'lte-btn-info',
'ghost' => 'lte-btn-outline-secondary border-0',
'link' => 'lte-text-primary',
'primary' => $outline
? 'border border-primary text-primary bg-transparent hover:bg-primary/10 focus:ring-2 focus:ring-primary/50'
: 'bg-primary text-white hover:bg-primary/80 focus:ring-2 focus:ring-primary/50',
'secondary' => $outline
? 'border border-neutral text-base/80 bg-transparent hover:bg-neutral/10 focus:ring-2 focus:ring-neutral/50'
: 'bg-background-secondary text-base/80 border border-neutral hover:bg-background-secondary/80 focus:ring-2 focus:ring-neutral/50',
'danger' => $outline
? 'border border-error text-error bg-transparent hover:bg-error/10 focus:ring-2 focus:ring-error/50'
: 'bg-error text-white hover:bg-error/80 focus:ring-2 focus:ring-error/50',
'success' => $outline
? 'border border-success text-success bg-transparent hover:bg-success/10 focus:ring-2 focus:ring-success/50'
: 'bg-success text-white hover:bg-success/80 focus:ring-2 focus:ring-success/50',
'warning' => $outline
? 'border border-warning text-warning bg-transparent hover:bg-warning/10 focus:ring-2 focus:ring-warning/50'
: 'bg-warning text-white hover:bg-warning/80 focus:ring-2 focus:ring-warning/50',
'info' => $outline
? 'border border-info text-info bg-transparent hover:bg-info/10 focus:ring-2 focus:ring-info/50'
: 'bg-info text-white hover:bg-info/80 focus:ring-2 focus:ring-info/50',
'ghost' => 'text-base/80 bg-transparent hover:bg-neutral/10 focus:ring-2 focus:ring-neutral/50',
'link' => 'text-primary bg-transparent hover:underline p-0',
];
$sizeClasses = [
'xs' => 'lte-btn-sm',
'sm' => 'lte-btn-sm',
'md' => '',
'lg' => 'lte-btn-lg',
'xl' => 'lte-btn-lg',
'icon' => 'lte-btn-sm',
'xs' => 'px-2 py-1 text-xs',
'sm' => 'px-3 py-1.5 text-sm',
'md' => 'px-4 py-2 text-sm',
'lg' => 'px-5 py-2.5 text-base',
'xl' => 'px-6 py-3 text-base',
'icon' => 'p-2',
];
$iconSizes = [
@@ -64,14 +76,14 @@
@if($tag === 'button') type="{{ $type }}" @endif
@if($disabled || $loading) disabled @endif
{{ $attributes->class([
'lte-btn',
'inline-flex items-center justify-center gap-2 font-semibold rounded-lg transition-all duration-200 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 active:scale-95',
$variantClasses[$variant] ?? $variantClasses['secondary'],
$sizeClasses[$size] ?? '',
$sizeClasses[$size] ?? $sizeClasses['md'],
$full ? 'w-full' : '',
]) }}
>
@if($loading)
<span class="lte-spinner lte-spinner-sm me-2" role="status" aria-hidden="true"></span>
<x-ri-loader-5-fill class="{{ $iconSize }} animate-spin" />
<span>{{ $loadingText ?? $slot }}</span>
@else
@if($icon)