diff --git a/resources/dist/css/char-counter.css b/resources/dist/css/char-counter.css index 68a7532..0f508f4 100644 --- a/resources/dist/css/char-counter.css +++ b/resources/dist/css/char-counter.css @@ -1 +1 @@ -.absolute{position:absolute}.relative{position:relative}.bottom-1{bottom:.25rem}.right-1{right:.25rem}.top-1{top:.25rem}.block{display:block}.flex{display:flex}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.items-center{align-items:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.pb-1{padding-bottom:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-75{transition-duration:75ms}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.disabled\:opacity-70:disabled{opacity:.7}:is([dir=rtl] .rtl\:\!left-1){left:.25rem!important}:is([dir=rtl] .rtl\:\!right-auto){right:auto!important}:is([dir=rtl] .rtl\:space-x-reverse)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}:is(.dark .dark\:border-gray-600){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))} \ No newline at end of file +.absolute{position:absolute}.relative{position:relative}.bottom-1{bottom:.25rem}.right-1{right:.25rem}.block{display:block}.flex{display:flex}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.items-center{align-items:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.pb-1{padding-bottom:.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-75{transition-duration:75ms}.focus-within\:ring-1:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:\!shadow-none:focus{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.focus\:\!outline-none:focus{outline:2px solid #0000!important;outline-offset:2px!important}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-inset:focus{--tw-ring-inset:inset}.disabled\:opacity-70:disabled{opacity:.7}:is([dir=ltr] .ltr\:\!pr-0){padding-right:0!important}:is([dir=rtl] .rtl\:\!left-1){left:.25rem!important}:is([dir=rtl] .rtl\:\!right-auto){right:auto!important}:is([dir=rtl] .rtl\:space-x-reverse)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}:is([dir=rtl] .rtl\:\!pl-0){padding-left:0!important}:is(.dark .dark\:border-gray-600){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))} \ No newline at end of file diff --git a/resources/views/text-input.blade.php b/resources/views/text-input.blade.php index c62b503..d6ee6b0 100644 --- a/resources/views/text-input.blade.php +++ b/resources/views/text-input.blade.php @@ -34,54 +34,59 @@ @endif
-
- @if($getCharacterLimit())/{{ $getCharacterLimit() }}@endif +
class([ + 'border focus:ring-0 ring-0 overflow-hidden flex w-full bg-white dark:bg-gray-700 transition duration-75 rounded-lg shadow-sm focus:ring-1 focus:ring-inset focus:ring-primary-500 disabled:opacity-70 ring-primary-500 focus-within:ring-1 focus-within:border-primary-500', + 'dark:bg-gray-700 dark:border-gray-600 dark:focus-within: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')), + }" + + > + ({$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 + class="appearance-none bg-transparent w-full border-0 disabled:opacity-70 focus:ring-0 focus:!outline-none focus:!shadow-none ltr:!pr-0 rtl:!pl-0" + /> +
+ @if($getCharacterLimit())/{{ $getCharacterLimit() }}@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())