diff --git a/resources/views/components/button.blade.php b/resources/views/components/button.blade.php index eb736db..9a8ac58 100644 --- a/resources/views/components/button.blade.php +++ b/resources/views/components/button.blade.php @@ -1,6 +1,6 @@ -@if($type === 'link') +@if($type === 'link' && !isset($icon)) class([ - 'filament-button inline-flex items-center justify-center py-1 gap-1 font-medium rounded-lg border transition-colors', + 'filament-button inline-flex items-center justify-center py-1 gap-1 font-medium rounded-lg border', 'focus:outline-none focus:ring-offset-2 focus:ring-2 focus:ring-inset dark:focus:ring-offset-0 min-h-[2.25rem] px-4', 'text-sm shadow-sm focus:ring-white filament-page-button-action', 'bg-danger-600 hover:bg-danger-500 focus:bg-danger-700 focus:ring-offset-danger-700 text-white border-transparent' => $danger, @@ -8,18 +8,29 @@ 'bg-primary-600 hover:bg-primary-500 focus:bg-primary-700 focus:ring-offset-primary-700 text-white border-transparent' => $primary, 'bg-success-600 hover:bg-success-500 focus:bg-success-700 focus:ring-offset-success-700 text-white border-transparent' => $success, 'bg-white hover:bg-gray-50 focus:bg-gray-100 focus:ring-offset-gray-95 text-gray-950 ring-gray-950/10 dark:bg-gray-800 dark:text-gray-200' => $secondary, + 'cursor-pointer transition-colors ease-in-out duration-20' ]) }} :method="$method"> {{$label ?: $slot}} -@elseif($type === 'icon') +@elseif($type === 'icon' || isset($icon)) class([ - 'px-2', - 'text-danger-500' => $danger, - 'text-warning-500' => $warning, - 'text-primary-500' => $primary, - 'text-success-500' => $success + 'px-2 cursor-pointer transition-colors ease-in-out duration-20', + 'text-danger-500 hover:text-danger-400' => $danger, + 'text-warning-500 hover:text-warning-400' => $warning, + 'text-primary-500 hover:text-primary-400' => $primary, + 'text-success-500 hover:text-success-400' => $success ]) }} title="{{$label}}" :method="$method"> - {{$slot}} + @if($label) + + @if(isset($icon)) + + @else + {{$label}} + @endif + + @else + {{$slot}} + @endif @else - + + @elseif($type === 'link') -
  • class([ 'text-gray-600 dark:text-gray-200 hover:text-black' => $black, 'text-gray-600 dark:text-gray-200 hover:text-danger-500' => $danger, @@ -25,17 +24,17 @@ 'text-gray-600 dark:text-gray-200 hover:text-primary-500' => $primary, 'text-gray-600 dark:text-gray-200 hover:text-success-500' => $success, 'text-gray-600 dark:text-gray-200 hover:text-gray-500' => $secondary, - ]) }} class="relative flex justify-center gap-2 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 "> -
    - -
    -
    - {{$label}} + ]) }} class="whitespace-nowrap py-2 flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-900 px-4 w-full cursor-pointer transition-colors ease-in-out duration-200 "> +
    +
    + +
    +
    + {{$label}} +
    -
  • @elseif($type === 'copy') -
  • class([ 'text-gray-600 dark:text-gray-200 hover:text-black' => $black, 'text-gray-600 dark:text-gray-200 hover:text-danger-500' => $danger, @@ -43,13 +42,14 @@ 'text-gray-600 dark:text-gray-200 hover:text-primary-500' => $primary, 'text-gray-600 dark:text-gray-200 hover:text-success-500' => $success, 'text-gray-600 dark:text-gray-200 hover:text-gray-500' => $secondary, - ]) }} class="relative flex justify-center gap-2 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 "> -
    - -
    -
    - {{$label}} + ]) }} class="whitespace-nowrap py-2 flex items-center justify-between hover:bg-gray-100 dark:hover:bg-gray-900 px-4 w-full cursor-pointer transition-colors ease-in-out duration-200 "> +
    +
    + +
    +
    + {{$label}} +
    -
  • @endif diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.php index 4d4fb7f..de224e0 100644 --- a/resources/views/components/dropdown.blade.php +++ b/resources/views/components/dropdown.blade.php @@ -11,8 +11,8 @@
    - +