|
1 | | -<div |
2 | | - x-cloak |
3 | | - @keydown.window.escape="{{ $close() }}" |
4 | | - x-show="{{ $isOpen() }}" |
5 | | - class="relative z-10" |
6 | | - aria-labelledby="modal-title" |
7 | | - aria-modal="true" |
8 | | -> |
9 | | - <!-- Modal Backdrop --> |
10 | | - <div |
11 | | - x-show="{{ $isOpen() }}" |
12 | | - x-transition:enter="ease-out duration-300" |
13 | | - x-transition:enter-start="opacity-0" |
14 | | - x-transition:enter-end="opacity-100" |
15 | | - x-transition:leave="ease-in duration-200" |
16 | | - x-transition:leave-start="opacity-100" |
17 | | - x-transition:leave-end="opacity-0" |
18 | | - class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" |
19 | | - ></div> |
20 | | - |
21 | | - <div class="fixed inset-0 z-10 w-screen overflow-y-auto"> |
22 | | - <div class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"> |
23 | | - <div |
24 | | - x-show="{{ $isOpen() }}" |
25 | | - x-trap.inert.noscroll.noautofocus="{{ $isOpen() }}" |
26 | | - x-transition:enter="ease-out duration-3000" |
27 | | - x-transition:enter-start="opacity-0 -translate-y-4 sm:scale-95" |
28 | | - x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" |
29 | | - x-transition:leave="ease-in duration-200" |
30 | | - x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" |
31 | | - x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" |
32 | | - class="relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg" |
33 | | - @click.away="{{ $close() }}" |
34 | | - > |
35 | | - <div class="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4"> |
36 | | - {{ $slot }} |
37 | | - </div> |
| 1 | +<dialog {{ $attributes }}> |
| 2 | + <div tabindex="-1"> |
| 3 | + <div class="bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4"> |
| 4 | + {{ $slot }} |
| 5 | + </div> |
38 | 6 |
|
39 | | - <!-- Modal Buttons --> |
40 | | - <div class="bg-gray-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6"> |
41 | | - <button type="button" class="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 sm:ml-3 sm:w-auto" @click="{{ $close() }}">Deactivate</button> |
42 | | - <button type="button" class="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto" @click="{{ $close() }}">Cancel</button> |
43 | | - </div> |
44 | | - <!-- / Modal Buttons --> |
45 | | - </div> |
| 7 | + @if (!empty($actions)) |
| 8 | + <div class="bg-gray-200 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6"> |
| 9 | + {{ $actions }} |
46 | 10 | </div> |
| 11 | + @endif |
47 | 12 | </div> |
48 | | -</div> |
| 13 | +</dialog> |
0 commit comments