mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎨 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:
33
resources/views/flux/table/index.blade.php
Normal file
33
resources/views/flux/table/index.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@props([
|
||||
'paginate' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$classes = Flux::classes()
|
||||
->add('[:where(&)]:min-w-full table-fixed border-separate border-spacing-0 isolate')
|
||||
->add('text-text-primary')
|
||||
// We want whitespace-nowrap for the table, but not for modals and dropdowns...
|
||||
->add('whitespace-nowrap [&_dialog]:whitespace-normal [&_[popover]]:whitespace-normal')
|
||||
;
|
||||
|
||||
$containerClasses = Flux::classes()
|
||||
->add('flex flex-col')
|
||||
->add($attributes->pluck('container:class'))
|
||||
;
|
||||
@endphp
|
||||
|
||||
<div class="{{ $containerClasses }}">
|
||||
{{ $header ?? '' }}
|
||||
|
||||
<ui-table-scroll-area class="overflow-auto">
|
||||
<table {{ $attributes->class($classes) }} data-flux-table>
|
||||
{{ $slot }}
|
||||
</table>
|
||||
</ui-table-scroll-area>
|
||||
|
||||
{{ $footer ?? '' }}
|
||||
|
||||
<?php if ($paginate): ?>
|
||||
<flux:pagination class="shrink-0" :paginator="$paginate" />
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user