refactor: update UI components to shadcn-style
- Refactored select component to align with shadcn design principles. - Updated server status indicator component for consistency with shadcn style. - Modified spinner component to follow shadcn design guidelines. - Enhanced stat card component with shadcn-inspired styles. - Adjusted tab panel component to reflect shadcn design updates. - Revamped table row and table data cell components to match shadcn aesthetics. - Updated table header cell component for improved styling consistency. - Refined table component to align with shadcn design principles. - Enhanced tabs component with shadcn-inspired styles. - Updated toggle component to follow shadcn design guidelines. - Refactored tooltip component to align with shadcn design principles. - Updated server card component to reflect shadcn-inspired design.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{--
|
||||
Modal Component - TailServer Theme
|
||||
Modal Component - shadcn-style Dialog
|
||||
|
||||
Usage:
|
||||
<x-proxmox::ui.modal name="my-modal" title="Modal Title">Content</x-proxmox::ui.modal>
|
||||
@@ -47,66 +47,67 @@
|
||||
{{-- Backdrop --}}
|
||||
<div
|
||||
x-show="show"
|
||||
x-transition:enter="transition ease-out duration-300"
|
||||
x-transition:enter="transition ease-out duration-150"
|
||||
x-transition:enter-start="opacity-0"
|
||||
x-transition:enter-end="opacity-100"
|
||||
x-transition:leave="transition ease-in duration-200"
|
||||
x-transition:leave="transition ease-in duration-100"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
@if($closeable) @click="show = false" @endif
|
||||
class="fixed inset-0 bg-black/60 backdrop-blur-md"
|
||||
class="fixed inset-0 bg-black/50 backdrop-blur-sm"
|
||||
></div>
|
||||
|
||||
{{-- Modal Panel --}}
|
||||
<div class="fixed inset-0 flex items-center justify-center p-4">
|
||||
<div
|
||||
x-show="show"
|
||||
x-transition:enter="transition ease-out duration-300"
|
||||
x-transition:enter-start="opacity-0 scale-95 translate-y-4"
|
||||
x-transition:enter-end="opacity-100 scale-100 translate-y-0"
|
||||
x-transition:leave="transition ease-in duration-200"
|
||||
x-transition:leave-start="opacity-100 scale-100 translate-y-0"
|
||||
x-transition:leave-end="opacity-0 scale-95 translate-y-4"
|
||||
x-transition:enter="transition ease-out duration-150"
|
||||
x-transition:enter-start="opacity-0 scale-95"
|
||||
x-transition:enter-end="opacity-100 scale-100"
|
||||
x-transition:leave="transition ease-in duration-100"
|
||||
x-transition:leave-start="opacity-100 scale-100"
|
||||
x-transition:leave-end="opacity-0 scale-95"
|
||||
@click.stop
|
||||
class="relative w-full {{ $maxWidthClass }} max-h-[90vh] overflow-y-auto bg-background-secondary rounded-2xl border border-neutral/20 shadow-2xl ring-1 ring-black/5"
|
||||
class="relative w-full {{ $maxWidthClass }} max-h-[90vh] overflow-y-auto rounded-xl border bg-background-secondary shadow-lg"
|
||||
>
|
||||
{{-- Header --}}
|
||||
@if($title || $closeable)
|
||||
<div class="flex items-start justify-between gap-4 p-6 border-b border-neutral/10">
|
||||
<div class="flex items-start justify-between gap-4 px-6 pt-6 pb-4">
|
||||
<div class="flex items-center gap-3">
|
||||
@if($icon)
|
||||
<div class="flex-shrink-0 flex items-center justify-center w-10 h-10 rounded-xl bg-gradient-to-br from-primary/20 to-primary/5 shadow-sm">
|
||||
<x-dynamic-component :component="$icon" class="size-5 {{ $iconColor }}" /> />
|
||||
<div class="flex-shrink-0 flex items-center justify-center size-9 rounded-lg bg-primary/10">
|
||||
<x-dynamic-component :component="$icon" class="size-4 {{ $iconColor }}" />
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
<div class="space-y-1">
|
||||
@if($title)
|
||||
<h3 class="text-lg font-semibold text-base">{{ $title }}</h3>
|
||||
<h3 class="text-lg font-semibold leading-none tracking-tight">{{ $title }}</h3>
|
||||
@endif
|
||||
@if($subtitle)
|
||||
<p class="text-sm text-base/60 mt-0.5">{{ $subtitle }}</p>
|
||||
<p class="text-sm text-muted-foreground">{{ $subtitle }}</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@if($closeable)
|
||||
<button
|
||||
@click="show = false"
|
||||
class="flex-shrink-0 p-2 -m-2 text-base/40 hover:text-base transition-all duration-200 rounded-xl hover:bg-neutral/10 hover:rotate-90"
|
||||
class="rounded-sm opacity-70 ring-offset-background transition-opacity duration-150 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
|
||||
>
|
||||
<x-ri-close-line class="size-5" />
|
||||
<x-ri-close-line class="size-4" />
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Content --}}
|
||||
<div class="p-6">
|
||||
<div class="px-6 pb-6">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
|
||||
{{-- Footer --}}
|
||||
@if($footer)
|
||||
<div class="flex items-center justify-end gap-3 px-6 py-4 border-t border-neutral/10 bg-gradient-to-t from-neutral/5 to-transparent">
|
||||
<div class="flex items-center justify-end gap-2 px-6 py-4 border-t">
|
||||
{{ $footer }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user