static html classnames return to tailwind classnames for .blade files
This commit is contained in:
@ -43,7 +43,6 @@
|
||||
<x-form.input.email
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="form-element"
|
||||
value="{{ $value }}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.' . $name : 'form.' . $name) }}"
|
||||
|
@ -43,7 +43,6 @@
|
||||
<x-form.input.number
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="form-element"
|
||||
value="{{ $value }}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.' . $name : 'form.' . $name) }}"
|
||||
|
@ -43,7 +43,6 @@
|
||||
<x-form.input.password
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="form-element"
|
||||
value="{{ $value }}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.' . $name : 'form.' . $name) }}"
|
||||
|
@ -26,7 +26,7 @@
|
||||
@if (! $attributes->has('label') && ! empty($label->contents))
|
||||
{!! $label ?? '' !!}
|
||||
@elseif (! empty($label))
|
||||
<x-form.label for="{{ $name }}" class="form-control-label">{!! $label !!}</x-form.label>
|
||||
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label>
|
||||
@endif
|
||||
|
||||
<div @class([
|
||||
@ -43,7 +43,6 @@
|
||||
<x-form.input.text
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="form-element"
|
||||
value="{{ $value }}"
|
||||
placeholder="{!! $placeholder !!}"
|
||||
disabled="{{ $disabled }}"
|
||||
|
@ -45,7 +45,7 @@
|
||||
<x-form.input.textarea
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="form-element"
|
||||
class="w-full h-24 text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||
value="{!! $value !!}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
rows="{{ $rows }}"
|
||||
|
@ -1,6 +1,7 @@
|
||||
<input type="email"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="w-full text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||
@if ($value)
|
||||
value="{!! $value !!}"
|
||||
@endif
|
||||
|
@ -1,6 +1,7 @@
|
||||
<input type="number"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="w-full text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
|
@ -1,6 +1,7 @@
|
||||
<input type="password"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="w-full text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||
@if ($value)
|
||||
value="{!! $value !!}"
|
||||
@endif
|
||||
|
@ -1,6 +1,7 @@
|
||||
<input type="text"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
class="w-full text-sm px-3 py-2.5 mt-1 rounded-lg border border-light-gray text-black placeholder-light-gray bg-white disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple"
|
||||
value="{!! $value !!}"
|
||||
placeholder="{!! $placeholder !!}"
|
||||
@if ($disabled)
|
||||
|
@ -1,3 +1,7 @@
|
||||
<label {{ $attributes }}>
|
||||
<label class="text-black text-sm font-medium" {{ $attributes }}>
|
||||
{!! $slot !!}
|
||||
|
||||
@if ($attributes->has('required'))
|
||||
<span class="text-red ltr:ml-1 rtl:mr-1">*</span>
|
||||
@endif
|
||||
</label>
|
Reference in New Issue
Block a user