- Changed modal close event from `@click.away` to `@click.self` for better control over closing modals. - Updated various modal button styles for consistency and improved accessibility. - Adjusted transition durations for modal animations to enhance user experience. - Added aria-labels to close buttons for better screen reader support.
31 lines
653 B
PHP
31 lines
653 B
PHP
{{--
|
|
Table Data Cell Component - LucentUI Theme
|
|
Migrated from AdminLTE to Tailwind
|
|
--}}
|
|
|
|
@props([
|
|
'align' => 'start',
|
|
'nowrap' => false,
|
|
'muted' => false,
|
|
'strong' => false,
|
|
])
|
|
|
|
@php
|
|
$alignClasses = [
|
|
'start' => 'text-left',
|
|
'center' => 'text-center',
|
|
'end' => 'text-right',
|
|
];
|
|
$alignClass = $alignClasses[$align] ?? $alignClasses['start'];
|
|
@endphp
|
|
|
|
<td {{ $attributes->class([
|
|
'px-5 py-3.5 text-sm text-secondary align-middle',
|
|
$alignClass,
|
|
'whitespace-nowrap' => $nowrap,
|
|
'text-secondary/80' => $muted,
|
|
'font-medium text-primary' => $strong,
|
|
]) }}>
|
|
{{ $slot }}
|
|
</td>
|