diff --git a/resources/views/components/file.blade.php b/resources/views/components/file.blade.php index 7ce3fbe7..4403054c 100644 --- a/resources/views/components/file.blade.php +++ b/resources/views/components/file.blade.php @@ -11,12 +11,13 @@ it cannot be truncated or wrapped, and the caller shows what was chosen anyway, as previews. A screen reader still hears it. The errors are the model's and, for a `multiple` input, each file's (`photos.*`): a file refused for its size belongs under this field as much as the - batch's own count does. `label`, `hint`, `variant`; every other attribute reaches the ``. --}} + batch's own count does. `label`, `hint`, `variant`; `full` takes the 40rem bound off a field its container already bounds. Every other attribute reaches the ``. --}} @props([ 'label' => null, 'hint' => null, 'variant' => null, + 'full' => false, ]) @php @@ -29,7 +30,7 @@ : []; @endphp - + except(['class', 'style', 'id', 'type']) }} type="file" diff --git a/resources/views/components/password.blade.php b/resources/views/components/password.blade.php index bd07e82b..822e9304 100644 --- a/resources/views/components/password.blade.php +++ b/resources/views/components/password.blade.php @@ -4,7 +4,7 @@ password manager still sees a password input on load. Its label says what pressing it will do — M3's own pattern for an interactive trailing icon ("Show password" / "Hide password") — and it carries no `aria-pressed`, which would say the state a second time and the other way round. - `label`, `hint`, `icon`, `variant`, `size`; `class` and `style` land on the field's root, every + `label`, `hint`, `icon`, `variant`, `size`; `full` takes the 40rem bound off a field its container already bounds. `class` and `style` land on the field's root, every other attribute reaches the `` (`autocomplete="current-password"`, `wire:model`). The field's root carries `data-md-password`; the chrome and the eye's icon button are the field's @@ -17,6 +17,7 @@ 'icon' => null, 'size' => 'md', 'variant' => null, + 'full' => false, ]) @php @@ -28,7 +29,7 @@ $fieldIconSize = ['sm' => 20, 'xs' => 16][$size] ?? 24; @endphp - + except(['class', 'style', 'id', 'type', 'placeholder']) }} id="{{ $id }}" diff --git a/resources/views/components/select.blade.php b/resources/views/components/select.blade.php index 828d9fbc..c0234b5b 100644 --- a/resources/views/components/select.blade.php +++ b/resources/views/components/select.blade.php @@ -10,7 +10,7 @@ `options` as a list of `['id' => …, 'name' => …]` (`'disabled' => true` greys one out), `option-value` and `option-label` to read other keys, and a `placeholder` that becomes the first option, valued `placeholder-value` (empty by default). Or pass `