diff --git a/package.json b/package.json index 6519a6a5..9a41e605 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "build": "vite build" }, "devDependencies": { + "@tailwindcss/forms": "^0.5.11", "@tailwindcss/postcss": "^4.1.18", "autoprefixer": "^10.4.20", "laravel-vite-plugin": "^1.2.0", diff --git a/resources/css/app.css b/resources/css/app.css index d4b50785..ffb96a15 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -1 +1,2 @@ @import 'tailwindcss'; +@plugin '@tailwindcss/forms'; diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.php index a46f7c83..97e3c2ee 100644 --- a/resources/views/components/dropdown.blade.php +++ b/resources/views/components/dropdown.blade.php @@ -28,7 +28,7 @@ class="absolute z-50 mt-2 {{ $width }} rounded-md shadow-lg {{ $alignmentClasses }}" style="display: none;" @click="open = false"> -
+
{{ $content }}
diff --git a/resources/views/components/form-modal.blade.php b/resources/views/components/form-modal.blade.php new file mode 100644 index 00000000..7a9f832d --- /dev/null +++ b/resources/views/components/form-modal.blade.php @@ -0,0 +1,34 @@ +@props([ + 'title', + 'close', + 'maxWidth' => 'lg', +]) + +@php +$maxWidthClass = [ + 'sm' => 'max-w-sm', + 'md' => 'max-w-md', + 'lg' => 'max-w-lg', + 'xl' => 'max-w-xl', + '2xl' => 'max-w-2xl', +][$maxWidth]; +@endphp + + diff --git a/resources/views/components/modal.blade.php b/resources/views/components/modal.blade.php index 70704c1a..2ccb99df 100644 --- a/resources/views/components/modal.blade.php +++ b/resources/views/components/modal.blade.php @@ -60,7 +60,7 @@ class="fixed inset-0 transform transition-all" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" > -
+
+ @endif @if ($showCreateModal) - - - + @endif diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index 489812b2..b807ee64 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -85,7 +85,7 @@

Article Statistics

@foreach ($providers as $code => $provider) @@ -151,7 +136,7 @@ class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-