- 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.
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
{{--
|
|
Copy Button Component - LucentUI Theme
|
|
Migrated from AdminLTE to Tailwind
|
|
Small inline button to copy text to clipboard
|
|
|
|
Usage:
|
|
<x-proxmox::ui.copy-button :value="$text" />
|
|
--}}
|
|
|
|
@props([
|
|
'value',
|
|
])
|
|
|
|
<div
|
|
x-data="{
|
|
copied: false,
|
|
copyText: @js($value),
|
|
copyToClipboard() {
|
|
navigator.clipboard.writeText(this.copyText);
|
|
this.copied = true;
|
|
setTimeout(() => this.copied = false, 2000);
|
|
}
|
|
}"
|
|
class="inline-flex items-center"
|
|
{{ $attributes }}
|
|
>
|
|
<button
|
|
@click="copyToClipboard()"
|
|
type="button"
|
|
class="relative inline-flex items-center justify-center size-5 p-0 bg-transparent border-none text-base/50 cursor-pointer transition-colors duration-200 hover:text-primary"
|
|
:class="copied ? 'text-success' : ''"
|
|
title="Copy to clipboard"
|
|
>
|
|
<x-ri-check-fill class="size-4 absolute" x-show="copied" x-transition x-cloak />
|
|
<x-ri-file-copy-line class="size-4 absolute" x-show="!copied" x-transition />
|
|
</button>
|
|
</div>
|