File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
Expand file tree Collapse file tree 6 files changed +11
-11
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11<?php
22
3- namespace LaraZeus \Popover ;
3+ namespace LaraZeus \Accordion ;
44
55use Spatie \LaravelPackageTools \Package ;
66use 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 {
Original file line number Diff line number Diff line change 11<?php
22
3- namespace LaraZeus \Popover \Concerns ;
3+ namespace LaraZeus \Accordion \Concerns ;
44
55use Closure ;
66
Original file line number Diff line number Diff line change 11<?php
22
3- namespace App \ Forms \ Components ;
3+ namespace LaraZeus \ Accordion \ Forms ;
44
55use Closure ;
66use 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 {
Original file line number Diff line number Diff line change 11<?php
22
3- namespace App \ Forms \ Components ;
3+ namespace LaraZeus \ Accordion \ Forms ;
44
5- use App \Filament \Concerns \CanBeIsolated ;
65use Closure ;
76use Filament \Forms \Components \Component ;
87use Filament \Support \Concerns ;
8+ use LaraZeus \Accordion \Concerns \CanBeIsolated ;
99
1010class 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
You can’t perform that action at this time.
0 commit comments