Add AdminLTE-style CSS framework to app.css

- Introduced AdminLTE CSS variables for color palette, body colors, card styles, and button styles.
- Implemented card components with variants for primary, success, warning, danger, and info.
- Added button styles including sizes and outline variants.
- Created form controls, select inputs, and input groups with consistent styling.
- Included utility classes for text and background colors, gradients, and shadows.
- Developed components for badges, alerts, callouts, progress bars, tables, small boxes, and info boxes.
- Integrated modal, dropdown, spinner, tooltip, and direct chat styles.
- Established timeline and close button styles, with dark mode support for specific components.
This commit is contained in:
2025-12-17 13:45:56 -05:00
parent 3219d4d7f3
commit 760cf84451
52 changed files with 4525 additions and 1537 deletions

View File

@@ -1,5 +1,6 @@
{{--
Input Component - TailAdmin Theme
Input Component - AdminLTE Theme
Based on AdminLTE v4 Form Control styling patterns
Usage:
<x-proxmox::ui.input name="email" label="Email" />
@@ -24,46 +25,48 @@
@php
$sizeClasses = [
'sm' => 'h-9 text-sm',
'md' => 'h-11 text-sm',
'lg' => 'h-12 text-base',
'sm' => 'lte-form-control-sm',
'md' => '',
'lg' => 'lte-form-control-lg',
];
$sizeClass = $sizeClasses[$size] ?? $sizeClasses['md'];
$inputClasses = 'flex w-full rounded-lg border border-gray-300 bg-transparent px-4 py-2.5 text-sm text-gray-800 shadow-theme-xs transition-colors duration-200 placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800';
if ($error) {
$inputClasses = str_replace('border-gray-300', 'border-error-300', $inputClasses);
$inputClasses = str_replace('focus:border-brand-300', 'focus:border-error-500', $inputClasses);
$inputClasses = str_replace('focus:ring-brand-500/10', 'focus:ring-error-500/10', $inputClasses);
}
if ($icon) {
$inputClasses .= ' pl-11';
}
if ($iconRight) {
$inputClasses .= ' pr-11';
}
$sizeClass = $sizeClasses[$size] ?? '';
@endphp
<div {{ $attributes->only('class')->class(['space-y-1.5']) }}>
<div {{ $attributes->only('class')->class(['mb-3']) }}>
@if($label)
<label @if($name) for="{{ $name }}" @endif class="mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400">
<label @if($name) for="{{ $name }}" @endif class="form-label" style="margin-bottom: 0.5rem; display: block; font-weight: 500;">
{{ $label }}
@if($required)
<span class="text-error-500">*</span>
<span class="lte-text-danger">*</span>
@endif
</label>
@endif
<div class="relative">
@if($icon)
<div class="pointer-events-none absolute inset-y-0 left-0 flex h-11 w-[46px] items-center justify-center border-r border-gray-200 dark:border-gray-800">
<x-dynamic-component :component="$icon" class="fill-gray-500 dark:fill-gray-400 size-5" />
</div>
@endif
@if($icon || $iconRight)
<div class="lte-input-group">
@if($icon)
<span class="lte-input-group-text">
<x-dynamic-component :component="$icon" class="size-4" />
</span>
@endif
<input
type="{{ $type }}"
@if($name) name="{{ $name }}" id="{{ $name }}" @endif
@if($placeholder) placeholder="{{ $placeholder }}" @endif
@if($disabled) disabled @endif
@if($readonly) readonly @endif
@if($required) required @endif
{{ $attributes->except('class')->class(['lte-form-control', $sizeClass, 'is-invalid' => $error]) }}
/>
@if($iconRight)
<span class="lte-input-group-text">
<x-dynamic-component :component="$iconRight" class="size-4" />
</span>
@endif
</div>
@else
<input
type="{{ $type }}"
@if($name) name="{{ $name }}" id="{{ $name }}" @endif
@@ -71,19 +74,13 @@
@if($disabled) disabled @endif
@if($readonly) readonly @endif
@if($required) required @endif
{{ $attributes->except('class')->class([$inputClasses, $sizeClass]) }}
{{ $attributes->except('class')->class(['lte-form-control', $sizeClass, 'is-invalid' => $error]) }}
/>
@if($iconRight)
<div class="pointer-events-none absolute inset-y-0 right-0 flex h-11 w-[46px] items-center justify-center border-l border-gray-200 dark:border-gray-800">
<x-dynamic-component :component="$iconRight" class="fill-gray-500 dark:fill-gray-400 size-5" />
</div>
@endif
</div>
@endif
@if($error)
<p class="text-sm text-error-500">{{ $error }}</p>
<div class="invalid-feedback" style="display: block; color: var(--lte-danger); font-size: 0.875rem; margin-top: 0.25rem;">{{ $error }}</div>
@elseif($hint)
<p class="text-sm text-gray-500 dark:text-gray-400">{{ $hint }}</p>
<div class="form-text lte-text-muted" style="font-size: 0.875rem; margin-top: 0.25rem;">{{ $hint }}</div>
@endif
</div>