From 402e01a0ddd3095e3524db67e8458b8383a2b9c1 Mon Sep 17 00:00:00 2001 From: Emeka Mbah Date: Sat, 15 Feb 2025 12:28:43 +0000 Subject: [PATCH 001/137] create alpine model --- .idea/blade.xml | 12 +- .idea/php.xml | 1 + .idea/phpspec.xml | 3 + composer.json | 3 +- .../components/themes/classic/modal.blade.php | 207 ++++++++++-------- src/View/Components/Themes/Classic/Modal.php | 25 ++- 6 files changed, 157 insertions(+), 94 deletions(-) diff --git a/.idea/blade.xml b/.idea/blade.xml index 1429e5a2..24a5d079 100644 --- a/.idea/blade.xml +++ b/.idea/blade.xml @@ -51,6 +51,7 @@ + @@ -62,9 +63,11 @@ + + @@ -81,14 +84,19 @@ - + + + + + + @@ -110,6 +118,8 @@ + + diff --git a/.idea/php.xml b/.idea/php.xml index 62ddcaef..8ed417c8 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -152,6 +152,7 @@ + diff --git a/.idea/phpspec.xml b/.idea/phpspec.xml index ec7e1d44..c7cfbc2c 100644 --- a/.idea/phpspec.xml +++ b/.idea/phpspec.xml @@ -8,6 +8,9 @@ + + \ No newline at end of file diff --git a/composer.json b/composer.json index 220f8a14..c99a3f73 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,8 @@ "ext-json": "*", "php": "^8.0", "illuminate/contracts": "^7.20|^8.19|^9.0|^10.0|^11.0", - "illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0" + "illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0", + "livewire/livewire": "^3.5" }, "require-dev": { "guzzlehttp/guzzle": "^7.3", diff --git a/resources/views/components/themes/classic/modal.blade.php b/resources/views/components/themes/classic/modal.blade.php index 27c5e3da..1fca8718 100644 --- a/resources/views/components/themes/classic/modal.blade.php +++ b/resources/views/components/themes/classic/modal.blade.php @@ -23,106 +23,135 @@ $hasFooter = isset($footer) && $footer->isNotEmpty(); $hasTitle = $hasHeader || $modal->getTitle(); @endphp -
merge(['id' => $id]) }} {{ $attributes->merge(['class' => 'modal']) }} - {{ $attributes->merge(['tabindex' => '-1']) }} > -