@php $datalistOptions = $getDatalistOptions(); $affixLabelClasses = [ 'whitespace-nowrap group-focus-within:text-primary-500', 'text-gray-400' => ! $errors->has($getStatePath()), 'text-danger-400' => $errors->has($getStatePath()), ]; @endphp
merge($getExtraAttributes())->class(['filament-forms-text-input-component flex items-center space-x-2 rtl:space-x-reverse group']) }}> @if (($prefixAction = $getPrefixAction()) && (! $prefixAction->isHidden())) {{ $prefixAction }} @endif @if ($icon = $getPrefixIcon()) @endif @if ($label = $getPrefixLabel()) {{ $label }} @endif
({$getJsonMaskConfiguration()})," : null }} state: $wire.{{ $applyStateBindingModifiers('entangle(\'' . $getStatePath() . '\')', lazilyEntangledModifiers: ['defer']) }}, })" type="text" wire:ignore {!! $isLazy() ? "x-on:blur=\"\$wire.\$refresh\"" : null !!} {!! $isDebounced() ? "x-on:input.debounce.{$getDebounce()}=\"\$wire.\$refresh\"" : null !!} {{ $getExtraAlpineAttributeBag() }} @endunless dusk="filament.forms.{{ $getStatePath() }}" {!! ($autocapitalize = $getAutocapitalize()) ? "autocapitalize=\"{$autocapitalize}\"" : null !!} {!! ($autocomplete = $getAutocomplete()) ? "autocomplete=\"{$autocomplete}\"" : null !!} {!! $isAutofocused() ? 'autofocus' : null !!} {!! $isDisabled() ? 'disabled' : null !!} id="{{ $getId() }}" {!! ($inputMode = $getInputMode()) ? "inputmode=\"{$inputMode}\"" : null !!} {!! $datalistOptions ? "list=\"{$getId()}-list\"" : null !!} {!! ($placeholder = $getPlaceholder()) ? "placeholder=\"{$placeholder}\"" : null !!} {!! ($interval = $getStep()) ? "step=\"{$interval}\"" : null !!} @if (! $isConcealed()) {!! filled($length = $getMaxLength()) ? "maxlength=\"{$length}\"" : null !!} {!! filled($value = $getMaxValue()) ? "max=\"{$value}\"" : null !!} {!! filled($length = $getMinLength()) ? "minlength=\"{$length}\"" : null !!} {!! filled($value = $getMinValue()) ? "min=\"{$value}\"" : null !!} {!! $isRequired() ? 'required' : null !!} @endif {{ $getExtraInputAttributeBag()->class([ 'block w-full transition duration-75 rounded-lg shadow-sm focus:border-primary-500 focus:ring-1 focus:ring-inset focus:ring-primary-500 disabled:opacity-70', 'dark:bg-gray-700 dark:text-white dark:focus:border-primary-500' => config('forms.dark_mode'), ]) }} x-bind:class="{ 'border-gray-300': ! (@js($getStatePath()) in $wire.__instance.serverMemo.errors), 'dark:border-gray-600': ! (@js($getStatePath()) in $wire.__instance.serverMemo.errors) && @js(config('forms.dark_mode')), 'border-danger-600 ring-danger-600': (@js($getStatePath()) in $wire.__instance.serverMemo.errors), 'dark:border-danger-400 dark:ring-danger-400': (@js($getStatePath()) in $wire.__instance.serverMemo.errors) && @js(config('forms.dark_mode')), }" />
@if ($label = $getSuffixLabel()) {{ $label }} @endif @if ($icon = $getSuffixIcon()) @endif @if (($suffixAction = $getSuffixAction()) && (! $suffixAction->isHidden())) {{ $suffixAction }} @endif
@if ($datalistOptions) @foreach ($datalistOptions as $option) @endif