mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
source-controls (#193)
* edit source control * assign project after creation * global and project scoped source controls
This commit is contained in:
19
resources/views/components/checkbox.blade.php
Normal file
19
resources/views/components/checkbox.blade.php
Normal file
@ -0,0 +1,19 @@
|
||||
@props([
|
||||
"disabled" => false,
|
||||
"id",
|
||||
"name",
|
||||
"value",
|
||||
])
|
||||
|
||||
<div class="flex items-center">
|
||||
<input
|
||||
id="{{ $id }}"
|
||||
name="{{ $name }}"
|
||||
type="checkbox"
|
||||
value="{{ $value }}"
|
||||
{{ $attributes->merge(["disabled" => $disabled, "class" => "rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"]) }}
|
||||
/>
|
||||
<label for="{{ $id }}" class="ms-2 text-sm font-medium text-gray-900 dark:text-gray-300">
|
||||
{{ $slot }}
|
||||
</label>
|
||||
</div>
|
@ -18,7 +18,8 @@
|
||||
|
||||
<div
|
||||
x-data="{
|
||||
show: @js($show),
|
||||
forceShow: @js($show),
|
||||
show: false,
|
||||
focusables() {
|
||||
// All focusable element types...
|
||||
let selector = 'a, button, input:not([type=\'hidden\']), textarea, select, details, [tabindex]:not([tabindex=\'-1\'])'
|
||||
@ -34,6 +35,7 @@
|
||||
prevFocusableIndex() { return Math.max(0, this.focusables().indexOf(document.activeElement)) -1 },
|
||||
}"
|
||||
x-init="
|
||||
setTimeout(() => (show = forceShow), 100)
|
||||
$watch('show', (value) => {
|
||||
if (value) {
|
||||
document.body.classList.add('overflow-y-hidden')
|
||||
|
Reference in New Issue
Block a user