Skip to content

Commit

Permalink
🪗 lets gooo
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jan 7, 2024
1 parent d32fe81 commit 12c5d06
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
this.activeAccordion = (this.activeAccordion == id) ? '' : id
}
}"
class="relative w-full mx-auto overflow-hidden text-sm divide-y divide-gray-200 rounded-xl"
class="relative w-full mx-auto overflow-hidden text-sm divide-y divide-gray-200 dark:divide-white/5 rounded-xl"
>
@foreach ($getChildComponentContainer()->getComponents() as $accordion)
<div
Expand All @@ -38,7 +38,7 @@ class="cursor-pointer group">
<button
type="button"
@click="setActiveAccordion(id)"
:class="{ 'bg-gray-100': activeAccordion == id }"
:class="{ 'bg-gray-100 dark:bg-gray-800': activeAccordion == id }"
class="flex items-center justify-between w-full p-4 text-start select-none"
>
<span
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace LaraZeus\Popover;
namespace LaraZeus\Accordion;

use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

class PopoverServiceProvider extends PackageServiceProvider
class AccordionServiceProvider extends PackageServiceProvider
{
public static string $name = 'zeus-popover';
public static string $name = 'zeus-accordion';

public function configurePackage(Package $package): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/CanBeIsolated.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace LaraZeus\Popover\Concerns;
namespace LaraZeus\Accordion\Concerns;

use Closure;

Expand Down
4 changes: 2 additions & 2 deletions src/Forms/Accordion.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Forms\Components;
namespace LaraZeus\Accordion\Forms;

use Closure;
use Filament\Forms\Components\Component;
Expand All @@ -14,7 +14,7 @@ class Accordion extends Component implements CanConcealComponents
use HasBadge;
use HasIcon;

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

final public function __construct(string $label)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Forms/Accordions.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace App\Forms\Components;
namespace LaraZeus\Accordion\Forms;

use App\Filament\Concerns\CanBeIsolated;
use Closure;
use Filament\Forms\Components\Component;
use Filament\Support\Concerns;
use LaraZeus\Accordion\Concerns\CanBeIsolated;

class Accordions extends Component
{
use CanBeIsolated;
use Concerns\HasExtraAlpineAttributes;

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

protected int | Closure $activeAccordion = 1;

Expand Down

0 comments on commit 12c5d06

Please sign in to comment.