Unify Frontdesk secondary actions with shared button variants.
Deploy Ladill Frontdesk / deploy (push) Successful in 55s

Add warning, danger, and link button styles plus x-btn and x-danger-zone components so ghost text actions match the primary pill UI across edit screens and tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-09 06:28:27 +00:00
co-authored by Cursor
parent 60c2839553
commit f46bebc1e3
26 changed files with 257 additions and 73 deletions
+34
View File
@@ -0,0 +1,34 @@
@props([
'variant' => 'primary',
'href' => null,
'type' => 'button',
'size' => null,
'plain' => false,
])
@php
$tag = $href ? 'a' : 'button';
$variantClass = match ($variant) {
'secondary' => 'btn-secondary',
'warning' => 'btn-warning',
'danger' => 'btn-danger',
'link' => 'btn-link',
default => 'btn-primary',
};
$classes = collect([
$variantClass,
$size === 'sm' ? 'btn-sm' : null,
($plain && $variant === 'link') ? 'btn-link-plain' : null,
($plain && $variant === 'danger') ? 'btn-danger-plain' : null,
])->filter()->implode(' ');
@endphp
<{{ $tag }}
@if ($href) href="{{ $href }}" @endif
@if ($tag === 'button') type="{{ $type }}" @endif
{{ $attributes->class([$classes]) }}
>
{{ $slot }}
</{{ $tag }}>