106 lines
5.5 KiB
PHP
106 lines
5.5 KiB
PHP
{{-- resources/views/vendor/livewire-ui-modal/modal.blade.php --}}
|
|
<div>
|
|
@isset($jsPath)<script>{!! file_get_contents($jsPath) !!}</script>@endisset
|
|
@isset($cssPath)<style>{!! file_get_contents($cssPath) !!}</style>@endisset
|
|
<span class="hidden sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl"></span>
|
|
<div x-data="LivewireUIModal()" x-on:close.stop="setShowPropertyTo(false)"
|
|
x-on:keydown.escape.window="show && closeModalOnEscape()" x-show="show"
|
|
class="fixed inset-0 z-50 overflow-y-auto" style="display:none;">
|
|
|
|
<div class="flex min-h-dvh items-center justify-center px-4 py-10">
|
|
|
|
{{-- Overlay (neutral, not blue) --}}
|
|
<div x-show="show" x-on:click="closeModalOnClickAway()"
|
|
x-transition:enter="ease-out #duration-300"
|
|
x-transition:enter-start="opacity-0"
|
|
x-transition:enter-end="opacity-100"
|
|
x-transition:leave="ease-in duration-200"
|
|
x-transition:leave-start="opacity-100"
|
|
x-transition:leave-end="opacity-0"
|
|
class="fixed inset-0 #transition-opacity">
|
|
<div class="absolute inset-0 backdrop-blur-sm bg-black/65"></div>
|
|
</div>
|
|
|
|
{{-- Safari center helper --}}
|
|
<span class="hidden #sm:max-w-sm #sm:max-w-md #sm:max-w-lg #sm:max-w-xl #sm:max-w-2xl"></span>
|
|
|
|
<div
|
|
x-show="show && showActiveComponent"
|
|
x-bind:class="modalWidth" {{-- kommt aus dem Livewire-Modal-Script --}}
|
|
class="inline-block w-full sm:max-w-md align-middle overflow-hidden rounded-2xl
|
|
ring-1 ring-white/10 border border-white/10 shadow-2xl shadow-black/40
|
|
bg-[radial-gradient(80%_60%_at_20%_0%,rgba(34,211,238,.12),transparent_60%),radial-gradient(70%_60%_at_100%_120%,rgba(16,185,129,.10),transparent_65%)]
|
|
bg-slate-900/70 relative z-10"
|
|
id="modal-container"
|
|
x-trap.noscroll.inert="show && showActiveComponent"
|
|
aria-modal="true"
|
|
>
|
|
|
|
@forelse($components as $id => $component)
|
|
<div x-show.immediate="activeComponent == '{{ $id }}'" x-ref="{{ $id }}" wire:key="{{ $id }}">
|
|
@livewire($component['name'], $component['arguments'], key($id))
|
|
</div>
|
|
@empty @endforelse
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{--<div>--}}
|
|
{{-- @isset($jsPath)--}}
|
|
{{-- <script>{!! file_get_contents($jsPath) !!}</script>--}}
|
|
{{-- @endisset--}}
|
|
{{-- @isset($cssPath)--}}
|
|
{{-- <style>{!! file_get_contents($cssPath) !!}</style>--}}
|
|
{{-- @endisset--}}
|
|
|
|
{{-- <div--}}
|
|
{{-- x-data="LivewireUIModal()"--}}
|
|
{{-- x-on:close.stop="setShowPropertyTo(false)"--}}
|
|
{{-- x-on:keydown.escape.window="show && closeModalOnEscape()"--}}
|
|
{{-- x-show="show"--}}
|
|
{{-- class="fixed inset-0 z-10 overflow-y-auto"--}}
|
|
{{-- style="display: none;"--}}
|
|
{{-- >--}}
|
|
{{-- <div class="flex items-end justify-center min-h-dvh px-4 pt-4 pb-10 text-center sm:block sm:p-0">--}}
|
|
{{-- <div--}}
|
|
{{-- x-show="show"--}}
|
|
{{-- x-on:click="closeModalOnClickAway()"--}}
|
|
{{-- x-transition:enter="ease-out duration-300"--}}
|
|
{{-- x-transition:enter-start="opacity-0"--}}
|
|
{{-- x-transition:enter-end="opacity-100"--}}
|
|
{{-- x-transition:leave="ease-in duration-200"--}}
|
|
{{-- x-transition:leave-start="opacity-100"--}}
|
|
{{-- x-transition:leave-end="opacity-0"--}}
|
|
{{-- class="fixed inset-0 transition-all transform"--}}
|
|
{{-- >--}}
|
|
{{-- <div class="absolute inset-0 bg-gray-500 opacity-75"></div>--}}
|
|
{{-- </div>--}}
|
|
|
|
{{-- <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>--}}
|
|
|
|
{{-- <div--}}
|
|
{{-- x-show="show && showActiveComponent"--}}
|
|
{{-- x-transition:enter="ease-out duration-300"--}}
|
|
{{-- x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"--}}
|
|
{{-- x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"--}}
|
|
{{-- x-transition:leave="ease-in duration-200"--}}
|
|
{{-- x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"--}}
|
|
{{-- x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"--}}
|
|
{{-- x-bind:class="modalWidth"--}}
|
|
{{-- class="inline-block w-full align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full"--}}
|
|
{{-- id="modal-container"--}}
|
|
{{-- x-trap.noscroll.inert="show && showActiveComponent"--}}
|
|
{{-- aria-modal="true"--}}
|
|
{{-- >--}}
|
|
{{-- @forelse($components as $id => $component)--}}
|
|
{{-- <div x-show.immediate="activeComponent == '{{ $id }}'" x-ref="{{ $id }}" wire:key="{{ $id }}">--}}
|
|
{{-- @livewire($component['name'], $component['arguments'], key($id))--}}
|
|
{{-- </div>--}}
|
|
{{-- @empty--}}
|
|
{{-- @endforelse--}}
|
|
{{-- </div>--}}
|
|
{{-- </div>--}}
|
|
{{-- </div>--}}
|
|
{{--</div>--}}
|