Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 03f62b6

Browse files
committed
Add "extra-attributes" property to inputs
1 parent 49dcf34 commit 03f62b6

23 files changed

+58
-6
lines changed

resources/views/components/choice/checkbox-or-radio.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
type="{{ $type }}"
77
@if ($value) value="{{ $value }}" @endif
88
@if ($checked && ! $attributes->whereStartsWith('wire:model')->first()) checked @endif
9+
{{ $extraAttributes }}
910
/>
1011
</div>
1112

resources/views/components/choice/switch-toggle.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
}"
1616
wire:ignore.self
1717
class="{{ $getContainerClass() }}"
18+
{{ $extraAttributes }}
1819
>
1920
@if ($label && $labelPosition === 'left')
2021
<span x-on:click="$refs.button.click(); $refs.button.focus();"

resources/views/components/files/file-pond.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<div wire:ignore
2+
{{ $extraAttributes }}
23
x-data="{ pond: null, @if ($shouldWatch($attributes)) value: @entangle($attributes->wire('model')), oldValue: undefined @endif }"
34
x-cloak
45
x-on:file-pond-clear.window="

resources/views/components/files/file-upload.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class="sr-only"
2929
@endif
3030

3131
{{ $attributes->except('class') }}
32+
{{ $extraAttributes }}
3233
/>
3334

3435
<label for="{{ $id }}"

resources/views/components/inputs/custom-select.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
x-on:keydown.tab="close()"
2121
wire:ignore.self
2222
class="{{ $getContainerClass() }}"
23+
{{ $extraAttributes }}
2324
>
2425
@include('form-components::partials.leading-addons')
2526
@include('form-components::partials.custom-select-button')

resources/views/components/inputs/date-picker.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
})"
1616
x-on:change="value = $event.target.value; fp.setDate(value)"
1717
class="{{ $getContainerClass() }}"
18+
{{ $extraAttributes }}
1819
>
1920
@if ($toggleIcon !== false)
2021
<span x-on:click="fp.open()"

resources/views/components/inputs/input.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
@include('form-components::partials.leading-addons')
33

44
<input
5-
{{ $attributes->merge(['class' => $inputClass()]) }}
5+
{{ $attributes->class($inputClass()) }}
6+
{{ $extraAttributes }}
67

78
@if ($name) name="{{ $name }}" @endif
89
@if ($id) id="{{ $id }}" @endif

resources/views/components/inputs/password.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class="{{ $containerClass() }}"
77

88
<input
99
{{ $attributes->merge(['class' => $inputClass()]) }}
10+
{{ $extraAttributes }}
1011

1112
@if ($name) name="{{ $name }}" @endif
1213
@if ($id) id="{{ $id }}" @endif

resources/views/components/inputs/select.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<select @if ($name) name="{{ $name }}" @endif
55
@if ($id) id="{{ $id }}" @endif
66
@if ($multiple) multiple @endif
7+
{{ $extraAttributes }}
78

89
@if ($hasErrorsAndShow($name))
910
aria-invalid="true"

resources/views/components/inputs/textarea.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<textarea @if ($name) name="{{ $name }}" @endif
55
@if ($id) id="{{ $id }}" @endif
6+
{{ $extraAttributes }}
67
@if ($hasErrorsAndShow($name))
78
aria-invalid="true"
89

0 commit comments

Comments
 (0)