Component: The Rest of the PrimeVue buttons (#7649)

## Summary

Automated initial change, cleaned up manually.

Please check the screenshot changes.

Includes a11y updates to icon buttons.

Doesn't hit the buttons in Desktop.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7649-WIP-Component-The-Rest-of-the-PrimeVue-buttons-2ce6d73d365081d68e06f200f1321267)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Alexander Brown
2025-12-29 15:03:34 -08:00
committed by GitHub
parent ea96c71818
commit 7b68b19f11
159 changed files with 1330 additions and 1359 deletions

View File

@@ -1,6 +1,5 @@
<script setup lang="ts">
import { watchDebounced } from '@vueuse/core'
import Button from 'primevue/button'
import {
computed,
customRef,
@@ -10,6 +9,7 @@ import {
triggerRef
} from 'vue'
import Button from '@/components/ui/button/Button.vue'
import {
demoteWidget,
isRecommendedWidget,
@@ -315,7 +315,7 @@ onBeforeUnmount(() => {
class="flex justify-center border-t border-interface-stroke py-4"
>
<Button
size="small"
size="sm"
class="rounded border-none px-3 py-0.5"
@click.stop="showRecommended"
>

View File

@@ -1,6 +1,5 @@
<script setup lang="ts">
import Button from 'primevue/button'
import Button from '@/components/ui/button/Button.vue'
import { cn } from '@/utils/tailwindUtil'
import type { ClassValue } from '@/utils/tailwindUtil'
@@ -43,13 +42,13 @@ function getIcon() {
<div class="text-sm line-clamp-1 leading-8">{{ widgetName }}</div>
</div>
<Button
size="small"
text
:icon="getIcon()"
variant="muted-textonly"
size="sm"
:disabled="isPhysical"
severity="secondary"
@click.stop="$emit('toggleVisibility')"
/>
>
<i :class="getIcon()" />
</Button>
<div
v-if="isDraggable"
class="size-4 pointer-events-none icon-[lucide--grip-vertical]"