|
1 | 1 | {# @block content The default block #} |
2 | 2 | <dialog |
3 | 3 | id="{{ _alert_dialog_id }}" |
4 | | - {{ _alert_dialog_open ? 'open' }} |
5 | | - class="{{ 'fixed inset-0 size-auto max-h-none max-w-none overflow-y-auto bg-transparent backdrop:bg-transparent ' ~ attributes.render('class')|tailwind_merge }}" |
| 4 | + class="{{ 'bg-background fixed top-[50%] left-[50%] z-50 max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] scale-95 gap-4 rounded-lg border p-6 opacity-0 shadow-lg transition-all transition-discrete duration-200 backdrop:transition-discrete backdrop:duration-150 open:grid open:scale-100 open:opacity-100 open:backdrop:bg-black/50 sm:max-w-lg starting:open:scale-95 starting:open:opacity-0 ' ~ attributes.render('class')|tailwind_merge }}" |
6 | 5 | data-alert-dialog-target="dialog" |
7 | 6 | data-action="keydown.esc->alert-dialog#close:prevent" |
8 | 7 | {{ attributes.without('id') }} |
9 | 8 | > |
10 | | - <div |
11 | | - data-alert-dialog-target="overlay" |
12 | | - data-transition-enter="transition ease-out duration-100" |
13 | | - data-transition-enter-start="transform opacity-0" |
14 | | - data-transition-enter-end="transform opacity-100" |
15 | | - data-transition-leave="transition ease-in duration-75" |
16 | | - data-transition-leave-start="transform opacity-100" |
17 | | - data-transition-leave-end="transform opacity-0" |
18 | | - class="{{ _alert_dialog_open ? '' : 'hidden' }} fixed inset-0 z-50 bg-black/50" |
19 | | - ></div> |
20 | | - |
21 | | - <section |
22 | | - tabindex="0" |
23 | | - class="flex min-h-full items-end justify-center p-4 text-center focus:outline-none sm:items-center sm:p-0" |
24 | | - > |
25 | | - <div |
26 | | - data-transition-enter="transition ease-out duration-200" |
27 | | - data-transition-enter-start="transform opacity-0 scale-95" |
28 | | - data-transition-enter-end="transform opacity-100 scale-100" |
29 | | - data-transition-leave="transition ease-in duration-75" |
30 | | - data-transition-leave-start="transform opacity-100 scale-100" |
31 | | - data-transition-leave-end="transform opacity-0 scale-95" |
32 | | - class="{{ _alert_dialog_open ? '' : 'hidden' }} bg-background fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg sm:max-w-lg" |
33 | | - data-alert-dialog-target="content" |
34 | | - > |
35 | | - {%- block content %}{% endblock -%} |
36 | | - </div> |
37 | | - </section> |
| 9 | + {%- block content %}{% endblock -%} |
38 | 10 | </dialog> |
0 commit comments