forked from coollabsio/coolify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61efdfb
commit ceedd52
Showing
13 changed files
with
226 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Include CSS | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The modal uses TailwindCSS, if you don't use TailwindCSS you will need | ||
| to set this parameter to true. This includes the modern-normalize css. | ||
| | ||
*/ | ||
'include_css' => false, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Include JS | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Livewire UI will inject the required Javascript in your blade template. | ||
| If you want to bundle the required Javascript you can set this to false | ||
| and add `require('vendor/wire-elements/modal/resources/js/modal');` | ||
| to your script bundler like webpack. | ||
| | ||
*/ | ||
'include_js' => true, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Modal Component Defaults | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Configure the default properties for a modal component. | ||
| | ||
| Supported modal_max_width | ||
| 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl' | ||
*/ | ||
'component_defaults' => [ | ||
'modal_max_width' => '2xl', | ||
|
||
'close_modal_on_click_away' => true, | ||
|
||
'close_modal_on_escape' => true, | ||
|
||
'close_modal_on_escape_is_forceful' => true, | ||
|
||
'dispatch_close_event' => false, | ||
|
||
'destroy_on_close' => false, | ||
], | ||
]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<div> | ||
@isset($jsPath) | ||
<script>{!! file_get_contents($jsPath) !!}</script> | ||
@endisset | ||
@isset($cssPath) | ||
<style>{!! file_get_contents($cssPath) !!}</style> | ||
@endisset | ||
|
||
<div | ||
x-data="LivewireUIModal()" | ||
x-init="init()" | ||
x-on:close.stop="setShowPropertyTo(false)" | ||
x-on:keydown.escape.window="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-screen 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 opacity-50 bg-coolgray-200"></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="fixed top-0 w-full overflow-hidden text-left align-bottom transition-all transform rounded-lg 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 class="flex items-center justify-center" x-show.immediate="activeComponent == '{{ $id }}'" x-ref="{{ $id }}" wire:key="{{ $id }}"> | ||
@livewire($component['name'], $component['attributes'], key($id)) | ||
</div> | ||
@empty | ||
@endforelse | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters