🎨 Add new Flux icons: implement multiple reusable icon components (e.g., hand-raised, hand-thumb-up, heart, hashtag, home) with variant support for improved UI consistency.

This commit is contained in:
HolgerHatGarKeineNode
2026-01-23 23:00:02 +01:00
parent 578e4f13fc
commit b30fec150c
792 changed files with 307541 additions and 117 deletions

View File

@@ -0,0 +1,33 @@
@blaze
@props([
'direction' => null,
'sorted' => false,
])
@php
$classes = Flux::classes()
->add('group/sortable flex items-center gap-1 -my-1 -ms-2 -me-2 px-2 py-1 ')
->add('in-[.group\/end-align]:flex-row-reverse in-[.group\/end-align]:-me-2 in-[.group\/end-align]:-ms-8')
;
@endphp
<button type="button" {{ $attributes->class($classes) }} data-flux-table-sortable>
{{ $slot }}
<div class="rounded-sm text-zinc-400 group-hover/sortable:text-zinc-800 dark:group-hover/sortable:text-white">
@if ($sorted)
@if ($direction === 'asc')
<flux:icon.chevron-up variant="micro" />
@elseif ($direction === 'desc')
<flux:icon.chevron-down variant="micro" />
@else
<flux:icon.chevron-down variant="micro" />
@endif
@else
<div class="opacity-0 group-hover/sortable:opacity-100">
<flux:icon.chevron-down variant="micro" />
</div>
@endif
</div>
</button>