add webln test page

This commit is contained in:
fsociety
2024-09-10 20:29:50 +02:00
parent 0260a61e7e
commit 2077cc9941
509 changed files with 5167 additions and 2240 deletions

View File

@@ -0,0 +1,54 @@
<div x-data="wireui_inputs_number({
disabled: @boolean($disabled),
readonly: @boolean($readonly),
})" {{ $attributes->only('wire:key') }}>
<x-dynamic-component
:component="WireUi::component('input')"
x-ref="input"
type="number"
inputmode="numeric"
{{ $attributes
->class('text-center appearance-number-none')
->whereDoesntStartWith('wire:key')
->except($except) }}
:borderless="$borderless"
:shadowless="$shadowless"
:label="$label"
:hint="$hint"
:corner-hint="$cornerHint"
x-on:keydown.up.prevent="plus"
x-on:keydown.down.prevent="minus"
>
<x-slot name="prepend">
<div class="absolute inset-y-0 left-0 flex items-center p-0.5">
<x-dynamic-component
:component="WireUi::component('button')"
x-hold.click.delay.repeat.100ms="minus"
x-on:keydown.enter="minus"
class="h-full rounded-l-md"
icon="minus"
primary
flat
squared
x-bind:disabled="disableMinus"
/>
</div>
</x-slot>
<x-slot name="append">
<div class="absolute inset-y-0 right-0 flex items-center p-0.5">
<x-dynamic-component
:component="WireUi::component('button')"
x-hold.click.delay.repeat.100ms="plus"
x-on:keydown.enter="plus"
class="h-full rounded-r-md"
icon="plus"
primary
flat
squared
x-bind:disabled="disablePlus"
/>
</div>
</x-slot>
</x-dynamic-component>
</div>