refactor: update Proxmox UI components to use TailAdmin styling
- Changed component styles and classes to align with TailAdmin design patterns. - Updated color schemes, typography, and layout for consistency across components. - Refactored Info Row, Network Address Card, Notice Banner, Progress Bar, Resource Gauge, Section Header, Server Status, Spinner, Stat Card, and Tab Panel components. - Enhanced responsiveness and accessibility features in various components.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{--
|
||||
Copyable Text Component - shadcn-style
|
||||
Copyable Text Component - TailAdmin style
|
||||
Text field with copy to clipboard functionality
|
||||
|
||||
Usage:
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<div class="space-y-2">
|
||||
@if($label)
|
||||
<label class="text-sm font-medium leading-none">{{ $label }}</label>
|
||||
<label class="text-theme-sm font-medium text-gray-700 dark:text-gray-300">{{ $label }}</label>
|
||||
@endif
|
||||
<div
|
||||
x-data="{
|
||||
@@ -27,29 +27,29 @@
|
||||
setTimeout(() => this.copied = false, 2000);
|
||||
}
|
||||
}"
|
||||
class="flex items-center gap-2 rounded-md border bg-transparent px-3 py-2 text-sm transition-colors duration-150"
|
||||
class="flex items-center gap-2.5 rounded-lg border border-gray-300 bg-gray-50 px-4 py-2.5 text-theme-sm transition-colors duration-150 dark:border-gray-700 dark:bg-gray-800"
|
||||
>
|
||||
@if($masked)
|
||||
<span class="truncate flex-1 font-mono" x-text="showValue ? copyText : '••••••••••••'"></span>
|
||||
<span class="flex-1 truncate font-mono text-gray-700 dark:text-gray-300" x-text="showValue ? copyText : '••••••••••••'"></span>
|
||||
<button
|
||||
@click="showValue = !showValue"
|
||||
type="button"
|
||||
class="text-muted-foreground hover:text-foreground transition-colors duration-150"
|
||||
class="text-gray-400 transition-colors duration-150 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300"
|
||||
:aria-label="showValue ? 'Hide value' : 'Show value'"
|
||||
>
|
||||
<x-ri-eye-line x-show="!showValue" class="size-4" />
|
||||
<x-ri-eye-off-line x-show="showValue" x-cloak class="size-4" />
|
||||
</button>
|
||||
@else
|
||||
<span class="truncate flex-1 font-mono">{{ $value }}</span>
|
||||
<span class="flex-1 truncate font-mono text-gray-700 dark:text-gray-300">{{ $value }}</span>
|
||||
@endif
|
||||
<button
|
||||
@click="copyToClipboard()"
|
||||
type="button"
|
||||
class="text-muted-foreground hover:text-foreground transition-colors duration-150 relative inline-flex items-center justify-center size-4"
|
||||
class="relative inline-flex size-5 items-center justify-center text-gray-400 transition-colors duration-150 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300"
|
||||
aria-label="Copy to clipboard"
|
||||
>
|
||||
<x-ri-check-fill x-show="copied" x-transition x-cloak class="absolute size-4 text-success" />
|
||||
<x-ri-check-fill x-show="copied" x-transition x-cloak class="absolute size-4 text-success-500" />
|
||||
<x-ri-file-copy-line x-show="!copied" x-transition class="absolute size-4" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user