-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
8 changed files
with
118 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?php | ||
|
||
use Illuminate\View\Component; | ||
use Usetall\TalluiDevComponents\Components; | ||
|
||
return [ | ||
|
@@ -17,6 +19,8 @@ | |
'components' => [ | ||
'first-dev-component' => Components\Alf\FirstBladeComponent::class, | ||
'markdown' => Components\Alf\Markdown::class, | ||
'modal' => Components\Kim\Modal::class, | ||
|
||
], | ||
|
||
/* | ||
|
@@ -31,6 +35,9 @@ | |
|
||
'livewire' => [ | ||
'second-dev-component' => Components\Alf\FirstLivewireComponent::class, | ||
'calendar' => Components\Kim\Calendar::class, | ||
|
||
|
||
], | ||
|
||
/* | ||
|
@@ -65,6 +72,7 @@ | |
'example' => [ | ||
'https://unpkg.com/example/dist/example.min.css', | ||
'https://unpkg.com/example/dist/example.min.js', | ||
'https://unpkg.com/[email protected]/dist/cdn.min.js', | ||
], | ||
|
||
], | ||
|
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
20 changes: 20 additions & 0 deletions
20
_components/tallui-dev-components/resources/views/components/kim/modal.blade.php
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,20 @@ | ||
<div x-data="{ modal: true}"> | ||
|
||
|
||
<div x-show="modal" x-cloak x-transition:enter="transition ease-out duration-100 transform" | ||
x-transition:enter-start="opacity-0 scale-30" x-transition:enter-end="opacity-100 scale-100" | ||
x-transition:leave="transition ease-in duration-75 transform" x-transition:leave-start="opacity-100 scale-100" | ||
x-transition:leave-end="opacity-0 scale-95" | ||
class="fixed top-0 bottom-0 left-0 right-0 z-50 flex items-center justify-center px-5 bg-gray-500 backdrop-blur-sm bg-opacity-70"> | ||
<div @click.outside="modal=false" class="overflow-hidden bg-white rounded-md shadow-sm w-96"> | ||
<div class="px-5 py-7"> | ||
|
||
Hi | ||
</div> | ||
|
||
<div class="grid grid-cols-2 gap-4 px-4 text-right bg-gray-100 py-7 sm:px-6"> | ||
|
||
</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
41 changes: 41 additions & 0 deletions
41
_components/tallui-dev-components/src/Components/Kim/Modal.php
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,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Usetall\TalluiDevComponents\Components\Kim; | ||
|
||
use Usetall\TalluiAppComponents\Components\BladeComponent; | ||
|
||
|
||
|
||
class Modal extends BladeComponent | ||
{ | ||
|
||
/** @var array */ | ||
protected static $assets = ['example']; | ||
/** | ||
* Create a new component instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
|
||
public function render() | ||
{ | ||
return view('tallui-dev-components::components.kim.modal'); | ||
} | ||
|
||
/** | ||
* Turn Modal Visible. | ||
* | ||
* @return void | ||
*/ | ||
public function turnModalVisible():void | ||
{ | ||
echo 'Hello'; | ||
} | ||
} |
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