feat: relation field and picker

This commit is contained in:
Florian Sylvain committed 2026-10-23 00:13:42 +02:00
1 parent b45c99be3b
commit 37a77c9c22
92 files changed
+6826 -80

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<script setup lang="ts">
withDefaults(defineProps<{ label: string; missing?: boolean; tall?: boolean }>(), {
missing: false,
tall: false,
})
</script>
<template>
<UBadge
color="neutral"
variant="soft"
:label="label"
data-testid="relation-chip"
:data-missing="missing ? 'true' : undefined"
class="max-w-full ring-0"
:class="
missing
? 'border border-dashed border-accented bg-transparent text-toned'
: 'bg-(--rc-sand) text-(--rc-on-sand)'
"
:ui="{
base: [
tall ? 'h-5.5 px-2' : 'h-5 px-1.5',
'rounded-none py-0 text-xs font-medium whitespace-nowrap',
],
label: 'truncate',
}"
/>
</template>