{{-- Input Component - LucentUI Theme Migrated from AdminLTE to Tailwind Usage: --}} @props([ 'type' => 'text', 'name' => null, 'label' => null, 'placeholder' => null, 'icon' => null, 'iconRight' => null, 'error' => null, 'hint' => null, 'disabled' => false, 'readonly' => false, 'required' => false, 'size' => 'md', ]) @php $sizeClasses = [ 'sm' => 'h-8 text-xs', 'md' => 'h-10', 'lg' => 'h-12 text-base', ]; $sizeClass = $sizeClasses[$size] ?? $sizeClasses['md']; $inputClasses = 'w-full px-4 py-2 text-sm text-primary dark:text-base/90 bg-background dark:bg-background-secondary border border-neutral rounded-lg placeholder:text-secondary/50 dark:placeholder:text-base/30 focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/25 transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed'; $errorClasses = $error ? 'border-error focus:border-error focus:ring-error/25' : ''; @endphp
only('class')->class(['mb-3']) }}> @if($label) @endif @if($icon || $iconRight)
@if($icon) @endif except('class') }} /> @if($iconRight) @endif
@else except('class') }} /> @endif @if($error)
{{ $error }}
@elseif($hint)
{{ $hint }}
@endif