Skip to content

Commit 12c5d06

Browse files
committed
🪗 lets gooo
1 parent d32fe81 commit 12c5d06

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

resources/views/accordions.blade.php renamed to resources/views/forms/accordions.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
this.activeAccordion = (this.activeAccordion == id) ? '' : id
2727
}
2828
}"
29-
class="relative w-full mx-auto overflow-hidden text-sm divide-y divide-gray-200 rounded-xl"
29+
class="relative w-full mx-auto overflow-hidden text-sm divide-y divide-gray-200 dark:divide-white/5 rounded-xl"
3030
>
3131
@foreach ($getChildComponentContainer()->getComponents() as $accordion)
3232
<div
@@ -38,7 +38,7 @@ class="cursor-pointer group">
3838
<button
3939
type="button"
4040
@click="setActiveAccordion(id)"
41-
:class="{ 'bg-gray-100': activeAccordion == id }"
41+
:class="{ 'bg-gray-100 dark:bg-gray-800': activeAccordion == id }"
4242
class="flex items-center justify-between w-full p-4 text-start select-none"
4343
>
4444
<span
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace LaraZeus\Popover;
3+
namespace LaraZeus\Accordion;
44

55
use Spatie\LaravelPackageTools\Package;
66
use Spatie\LaravelPackageTools\PackageServiceProvider;
77

8-
class PopoverServiceProvider extends PackageServiceProvider
8+
class AccordionServiceProvider extends PackageServiceProvider
99
{
10-
public static string $name = 'zeus-popover';
10+
public static string $name = 'zeus-accordion';
1111

1212
public function configurePackage(Package $package): void
1313
{

‎src/Concerns/CanBeIsolated.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace LaraZeus\Popover\Concerns;
3+
namespace LaraZeus\Accordion\Concerns;
44

55
use Closure;
66

‎src/Forms/Accordion.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Forms\Components;
3+
namespace LaraZeus\Accordion\Forms;
44

55
use Closure;
66
use Filament\Forms\Components\Component;
@@ -14,7 +14,7 @@ class Accordion extends Component implements CanConcealComponents
1414
use HasBadge;
1515
use HasIcon;
1616

17-
protected string $view = 'forms.components.accordion';
17+
protected string $view = 'zeus-accordion::forms.accordion';
1818

1919
final public function __construct(string $label)
2020
{

‎src/Forms/Accordions.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22

3-
namespace App\Forms\Components;
3+
namespace LaraZeus\Accordion\Forms;
44

5-
use App\Filament\Concerns\CanBeIsolated;
65
use Closure;
76
use Filament\Forms\Components\Component;
87
use Filament\Support\Concerns;
8+
use LaraZeus\Accordion\Concerns\CanBeIsolated;
99

1010
class Accordions extends Component
1111
{
1212
use CanBeIsolated;
1313
use Concerns\HasExtraAlpineAttributes;
1414

15-
protected string $view = 'forms.components.accordions';
15+
protected string $view = 'zeus-accordion::forms.accordions';
1616

1717
protected int | Closure $activeAccordion = 1;
1818

0 commit comments

Comments
 (0)