Files
Virtnet.bond/extensions/Servers/Proxmox/views/components/ui/info-row.blade.php
Joseph.Rawlings abff5a381f Migrate UI components from AdminLTE to LucentUI Theme using Tailwind CSS
- Updated tab-panel component to use Tailwind for styling and transitions.
- Refactored table-row component to implement Tailwind classes for hover effects and borders.
- Converted table-td component to utilize Tailwind for alignment and text styles.
- Changed table-th component to apply Tailwind for header styling and sorting indicators.
- Revised table component to adopt Tailwind for layout, borders, and responsive design.
- Enhanced tabs component with Tailwind for navigation styles and transitions.
- Updated toggle component to use Tailwind for switch styles and accessibility.
- Refactored tooltip component to implement Tailwind for positioning and styling.
- Added visual enhancements to app.css for improved UI interactions and animations.
2026-02-01 14:16:57 -05:00

49 lines
1.8 KiB
PHP

{{--
Info Row / Key-Value Pair Component - LucentUI Theme
Migrated from AdminLTE to Tailwind
Usage:
<x-proxmox::ui.info-row label="IP Address" value="192.168.1.1" />
<x-proxmox::ui.info-row label="Status" :copyable="true">
<x-proxmox::ui.badge variant="success">Active</x-proxmox::ui.badge>
</x-proxmox::ui.info-row>
--}}
@props([
'label',
'value' => null,
'copyable' => false,
'icon' => null,
'muted' => false,
])
<div {{ $attributes->class(['flex items-center justify-between py-3 border-b border-neutral last:border-b-0']) }}>
<div class="flex items-center gap-2.5 text-sm text-base/60">
@if($icon)
<x-dynamic-component :component="$icon" class="size-4" />
@endif
<span>{{ $label }}</span>
</div>
<div class="flex items-center gap-2.5">
<span class="text-sm font-medium {{ $muted ? 'text-base/60' : 'text-base' }}">
{{ $value ?? $slot }}
</span>
@if($copyable && $value)
<button
type="button"
x-data="{ copied: false }"
@click="
navigator.clipboard.writeText('{{ $value }}');
copied = true;
setTimeout(() => copied = false, 2000);
"
class="inline-flex items-center justify-center size-7 p-0 bg-transparent border-none rounded-lg text-base/50 cursor-pointer transition-all duration-200 hover:bg-background-secondary hover:text-primary"
title="Copy to clipboard"
>
<x-ri-file-copy-line class="size-4" x-show="!copied" />
<x-ri-check-line class="size-4 text-success" x-show="copied" x-cloak />
</button>
@endif
</div>
</div>