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

@@ -3,7 +3,7 @@
'subtitle' => null,
'icon' => null,
'iconClass' => 'size-5',
'iconColor' => 'lte-text-primary',
'iconColor' => 'text-primary',
'actions' => null,
'padding' => true,
'flush' => false,
@@ -15,17 +15,17 @@
])
@php
// AdminLTE Card variant classes
// LucentUI Card variant classes
$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',
};
$cardClasses = "lte-card lte-slide-in-up $variantClasses";
$cardClasses = "bg-background border rounded-lg shadow-sm transition-all duration-300 $variantClasses";
@endphp
<div {{ $attributes->merge(['class' => $cardClasses]) }}
@@ -47,22 +47,22 @@
@endif
>
@if($title || $icon || $actions || isset($header))
<div class="lte-card-header">
<h3 class="lte-card-title">
<div class="flex items-center justify-between px-4 py-3 border-b border-neutral">
<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" style="width: 36px; height: 36px; font-size: 1rem;">
<span class="flex items-center justify-center size-9 bg-background-secondary rounded">
<x-dynamic-component :component="$icon" class="{{ $iconClass }} {{ $iconColor }}" />
</span>
@endif
<span>
{{ $title }}
@if($subtitle)
<small class="lte-text-muted d-block" style="font-size: 0.8rem; font-weight: normal;">{{ $subtitle }}</small>
<small class="block text-xs font-normal text-base/60">{{ $subtitle }}</small>
@endif
</span>
</h3>
@if($actions || $collapsible)
<div class="lte-card-tools">
<div class="flex items-center gap-2">
@if($actions)
{{ $actions }}
@endif
@@ -70,8 +70,7 @@
<button
type="button"
@click="toggle()"
class="lte-btn lte-btn-sm lte-btn-outline-secondary"
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 transition-colors"
>
<x-ri-arrow-down-s-line
class="size-4 transition-transform duration-200"
@@ -89,7 +88,7 @@
@if($collapsible)
<div
class="lte-card-body"
class="p-4"
x-show="!isCollapsed"
x-transition:enter="transition ease-out duration-200"
x-transition:enter-start="opacity-0"
@@ -101,13 +100,13 @@
{{ $slot }}
</div>
@else
<div class="lte-card-body">
<div class="p-4">
{{ $slot }}
</div>
@endif
@if(isset($footer))
<div class="lte-card-footer">
<div class="px-4 py-3 border-t border-neutral bg-background-secondary/50 rounded-b-lg">
{{ $footer }}
</div>
@endif