static html classnames return to tailwind classnames for .blade files
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
<input
|
||||
type="text"
|
||||
:ref="'items-' + index + '-name'"
|
||||
class="form-element mt-0"
|
||||
class="w-full text-sm px-3 py-2.5 mt-0 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 mt-0"
|
||||
:name="'items.' + index + '.name'"
|
||||
autocomplete="off"
|
||||
required="required"
|
||||
@ -65,7 +65,7 @@
|
||||
<td class="px-3 py-3 border-b-0 description">
|
||||
@if (! $hideItemDescription)
|
||||
<textarea
|
||||
class="form-element mt-1.5 resize-none"
|
||||
class="w-full text-sm px-3 py-2.5 mt-1.5 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 resize-none"
|
||||
style="height:42px;"
|
||||
:ref="'items-' + index + '-description'"
|
||||
placeholder="{{ trans('items.enter_item_description') }}"
|
||||
@ -94,7 +94,7 @@
|
||||
type="number"
|
||||
min="0"
|
||||
:ref="'items-' + index + '-quantity'"
|
||||
class="form-element mt-0 text-right input-number-disabled"
|
||||
class="w-full text-sm px-3 py-2.5 mt-0 text-right 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 input-number-disabled"
|
||||
:name="'items.' + index + '.quantity'"
|
||||
autocomplete="off"
|
||||
required="required"
|
||||
@ -233,7 +233,7 @@
|
||||
<input type="number"
|
||||
min="0"
|
||||
placeholder="Discount"
|
||||
class="form-element text-center mt-0"
|
||||
class="w-full text-sm px-3 py-2.5 mt-0 text-center 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"
|
||||
:name="'items.' + index + '.discount'"
|
||||
autocomplete="off"
|
||||
required="required"
|
||||
|
@ -4,7 +4,7 @@
|
||||
label="{{ trans_choice('general.notes', 2) }}"
|
||||
:value="$notes"
|
||||
not-required
|
||||
class="form-element border-0 bg-transparent px-0 rounded-none resize-none"
|
||||
class="w-full text-sm px-0 py-2.5 mt-1 border-light-gray text-black placeholder-light-gray disabled:bg-gray-200 focus:outline-none focus:ring-transparent focus:border-purple border-0 bg-transparent rounded-none resize-none"
|
||||
form-label-class="lg:text-lg"
|
||||
form-group-class="border-b pb-2 mb-3.5"
|
||||
rows="1"
|
||||
|
@ -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