@php //Replicating table styles from table component $base_class = 'rounded-xl transition-colors'; $variations = [ 'variant' => [ 'solid' => 'rounded-xl bg-table-background pt-1 group-[&[data-view-mode=grid]]:bg-transparent', 'outline' => 'rounded-xl border border-table-border pt-1 group-[&[data-view-mode=grid]]:border-0', 'shadow' => ' rounded-xl shadow-table bg-table-background pt-1 group-[&[data-view-mode=grid]]:shadow-none group-[&[data-view-mode=grid]]:bg-transparent', 'outline-shadow' => 'rounded-xl border border-table-border pt-1 shadow-table bg-table-background', 'plain' => '', ], ]; $variant = isset($variant) && isset($variations['variant'][$variant]) ? $variations['variant'][$variant] : $variations['variant'][Theme::getSetting('defaultVariations.table.variant', 'outline')]; $class = @twMerge($base_class, $variant); @endphp