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

@@ -12,49 +12,42 @@
@php
$percentage = $max > 0 ? min(100, ($value / $max) * 100) : 0;
// AdminLTE size classes
// LucentUI size classes
$sizeClasses = match($size) {
'xs' => 'lte-progress-xs',
'sm' => 'lte-progress-sm',
'md' => '',
'lg' => '',
'xl' => '',
default => '',
'xs' => 'h-1',
'sm' => 'h-1.5',
'md' => 'h-2',
'lg' => 'h-3',
'xl' => 'h-4',
default => 'h-2',
};
// Height style for non-standard sizes
$heightStyle = match($size) {
'lg' => 'height: 1.25rem;',
'xl' => 'height: 1.5rem;',
default => '',
};
// AdminLTE variant classes for the fill
// LucentUI variant classes for the fill
$variantClasses = match($variant) {
'primary' => 'lte-bg-primary',
'secondary' => 'lte-bg-secondary',
'success' => 'lte-bg-success',
'danger' => 'lte-bg-danger',
'warning' => 'lte-bg-warning',
'info' => 'lte-bg-info',
'gradient' => 'lte-bg-gradient-primary',
default => 'lte-bg-primary',
'primary' => 'bg-primary',
'secondary' => 'bg-base/50',
'success' => 'bg-success',
'danger' => 'bg-error',
'warning' => 'bg-warning',
'info' => 'bg-info',
'gradient' => 'bg-gradient-to-r from-primary to-primary/60',
default => 'bg-primary',
};
// Dynamic color based on percentage
if ($variant === 'auto') {
if ($percentage >= 90) {
$variantClasses = 'lte-bg-danger';
$variantClasses = 'bg-error';
} elseif ($percentage >= 70) {
$variantClasses = 'lte-bg-warning';
$variantClasses = 'bg-warning';
} else {
$variantClasses = 'lte-bg-success';
$variantClasses = 'bg-success';
}
}
// Animation classes - AdminLTE style
$animatedClasses = $animated ? 'lte-progress-bar-animated' : '';
$stripedClasses = $striped ? 'lte-progress-bar-striped' : '';
// Animation classes
$animatedClasses = $animated ? 'progress-striped' : '';
$stripedClasses = $striped ? 'progress-striped' : '';
@endphp
<div {{ $attributes->merge(['class' => 'flex flex-col gap-1.5']) }}>
@@ -62,19 +55,19 @@
@if($label || $showValue)
<div class="flex items-center justify-between text-sm">
@if($label)
<span class="lte-text-muted" style="font-weight: 500;">{{ $label }}</span>
<span class="text-base/60 font-medium">{{ $label }}</span>
@endif
@if($showValue)
<span style="font-weight: 600;">{{ number_format($percentage, 1) }}%</span>
<span class="font-semibold text-base">{{ number_format($percentage, 1) }}%</span>
@endif
</div>
@endif
{{-- Progress bar container - AdminLTE style --}}
<div class="lte-progress {{ $sizeClasses }}" @if($heightStyle) style="{{ $heightStyle }}" @endif>
{{-- Progress bar container --}}
<div class="w-full bg-background-secondary rounded-full overflow-hidden {{ $sizeClasses }}">
{{-- Progress bar fill --}}
<div
class="lte-progress-bar {{ $variantClasses }} {{ $animatedClasses }} {{ $stripedClasses }}"
class="h-full rounded-full transition-all duration-300 ease-out {{ $variantClasses }} {{ $animatedClasses }} {{ $stripedClasses }}"
style="width: {{ $percentage }}%"
role="progressbar"
aria-valuenow="{{ $value }}"