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 @@
{{--
Card Component - AdminLTE Theme
Based on AdminLTE v4 Card styling patterns
Card Component - LucentUI Theme
Migrated from AdminLTE to Tailwind
Usage:
<x-proxmox::ui.card>Content</x-proxmox::ui.card>
@@ -13,7 +13,7 @@
'title' => null,
'subtitle' => null,
'icon' => null,
'iconColor' => 'lte-text-primary',
'iconColor' => 'text-primary',
'actions' => null,
'footer' => null,
'footerClass' => '',
@@ -28,43 +28,43 @@
@php
$variantClasses = match($variant) {
'primary' => $outline ? 'lte-card-outline-primary' : 'lte-card-primary',
'success' => $outline ? 'lte-card-outline-success' : 'lte-card-success',
'warning' => $outline ? 'lte-card-outline-warning' : 'lte-card-warning',
'danger' => $outline ? 'lte-card-outline-danger' : 'lte-card-danger',
'info' => $outline ? 'lte-card-outline-info' : 'lte-card-info',
default => '',
'primary' => $outline ? 'border-primary' : 'border-primary bg-primary/5',
'success' => $outline ? 'border-success' : 'border-success bg-success/5',
'warning' => $outline ? 'border-warning' : 'border-warning bg-warning/5',
'danger' => $outline ? 'border-error' : 'border-error bg-error/5',
'info' => $outline ? 'border-info' : 'border-info bg-info/5',
default => 'border-neutral',
};
@endphp
<div
{{ $attributes->class([
'lte-card lte-slide-in-up transition-all duration-300 ease-out hover:shadow-md',
'bg-background border rounded-lg shadow-sm transition-all duration-300 ease-out hover:shadow-md',
$variantClasses,
'cursor-pointer hover:-translate-y-0.5 hover:scale-[1.002]' => $clickable,
'hover:border-gray-300 dark:hover:border-gray-600' => $hover,
'hover:border-neutral/80' => $hover,
]) }}
@if($collapsible)
x-data="{ isCollapsed: {{ $collapsed ? 'true' : 'false' }} }"
@endif
>
@if($title || $actions)
<div class="lte-card-header transition-colors duration-200 hover:bg-gray-50/50 dark:hover:bg-gray-800/30">
<h3 class="lte-card-title">
<div class="flex items-center justify-between px-4 py-3 border-b border-neutral transition-colors duration-200 hover:bg-background-secondary/30">
<h3 class="flex items-center gap-3 text-base font-semibold text-base">
@if($icon)
<span class="lte-info-box-icon lte-bg-light rounded transition-transform duration-200 hover:scale-110" style="width: 36px; height: 36px; font-size: 1rem;">
<span class="flex items-center justify-center size-9 bg-background-secondary rounded transition-transform duration-200 hover:scale-110">
<x-dynamic-component :component="$icon" class="size-5 {{ $iconColor }}" />
</span>
@endif
<span>
{{ $title }}
@if($subtitle)
<small class="lte-text-muted d-block transition-opacity duration-200" style="font-size: 0.8rem; font-weight: normal;">{{ $subtitle }}</small>
<small class="block text-xs font-normal text-base/60 transition-opacity duration-200">{{ $subtitle }}</small>
@endif
</span>
</h3>
@if($actions || $collapsible)
<div class="lte-card-tools">
<div class="flex items-center gap-2">
@if($actions)
{{ $actions }}
@endif
@@ -72,8 +72,7 @@
<button
type="button"
@click="isCollapsed = !isCollapsed"
class="lte-btn lte-btn-sm lte-btn-outline-secondary transition-all duration-200 hover:scale-105"
style="padding: 0.25rem 0.5rem;"
class="inline-flex items-center justify-center px-2 py-1 text-sm border border-neutral rounded bg-transparent text-base/80 hover:bg-neutral/10 hover:scale-105 transition-all duration-200"
>
<x-ri-arrow-down-s-line
class="size-4 transition-transform duration-300 ease-out"
@@ -87,7 +86,7 @@
@endif
<div
class="lte-card-body"
class="p-4"
@if($collapsible)
x-show="!isCollapsed"
x-transition:enter="transition ease-out duration-300"
@@ -102,7 +101,7 @@
</div>
@if($footer)
<div class="lte-card-footer {{ $footerClass }}">
<div class="px-4 py-3 border-t border-neutral bg-background-secondary/50 rounded-b-lg {{ $footerClass }}">
{{ $footer }}
</div>
@endif