refactor: Update UI components to TailAdmin theme
- Changed badge, button, card, dropdown, input, modal, select, table, tabs, toggle, and tooltip components to align with the TailAdmin design system. - Updated class names and styles for consistency across components. - Enhanced accessibility and responsiveness in various components. - Improved hover and focus states for better user experience.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{--
|
||||
Table Header Cell Component - shadcn-style
|
||||
Table Header Cell Component - TailAdmin style
|
||||
--}}
|
||||
|
||||
@props([
|
||||
@@ -23,9 +23,9 @@
|
||||
|
||||
<th
|
||||
{{ $attributes->class([
|
||||
'h-10 px-4 font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
|
||||
'px-5 py-3.5 text-theme-xs font-medium uppercase tracking-wide text-gray-500 dark:text-gray-400',
|
||||
$alignClass,
|
||||
'cursor-pointer select-none hover:text-foreground transition-colors duration-150' => $sortable,
|
||||
'cursor-pointer select-none transition-colors duration-150 hover:text-gray-700 dark:hover:text-gray-300' => $sortable,
|
||||
]) }}
|
||||
@if($sortable && $sortKey)
|
||||
wire:click="sort('{{ $sortKey }}')"
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="flex items-center gap-1.5 @if($align === 'end') justify-end @elseif($align === 'center') justify-center @endif">
|
||||
<span>{{ $slot }}</span>
|
||||
@if($sortable)
|
||||
<span class="text-muted-foreground">
|
||||
<span class="text-gray-400 dark:text-gray-500">
|
||||
@if($isSorted)
|
||||
@if($currentDirection === 'asc')
|
||||
<x-ri-arrow-up-s-line class="size-4" />
|
||||
|
||||
Reference in New Issue
Block a user