fix(ui): adopt the type scale across components/ui and pages (#1758)
components/ui and the pages now use only the style.css scale: text-[0.8rem]→text-label, text-[0.625rem]→text-micro, text-base/text-sm→ text-label (rows and controls), text-xs→text-caption (captions and secondary text), text-lg/text-xl/text-2xl→text-title (panel and page titles). Rendered markdown (ChatMarkdown/ChatInline/markdown.ts) keeps Tailwind steps as the issue allows. 196 files, class-token swaps only.
This commit is contained in:
196 files changed
+410
-410
No files matched your search
+1
-1
@@ -78,7 +78,7 @@ watch(() => accounts.status?.user, (user) => {
|
||||
<Card class="gap-0 px-6 py-6 shadow-sm">
|
||||
<div class="mb-2"><Logo /></div>
|
||||
<template v-if="accounts.error">
|
||||
<h1 class="text-2xl font-medium">Can't reach Archie</h1>
|
||||
<h1 class="text-title font-medium">Can't reach Archie</h1>
|
||||
<Alert variant="destructive" class="mt-4"><AlertDescription>{{ accounts.error }}</AlertDescription></Alert>
|
||||
<p class="text-caption mt-3 text-fg-muted">Retrying automatically…</p>
|
||||
</template>
|
||||
|
||||
@@ -32,20 +32,20 @@ async function signInPasskey(){busy.value=true;error.value="";try{await usePassk
|
||||
<main class="mx-auto flex min-h-[90dvh] max-w-md flex-col justify-center px-5 py-10">
|
||||
<Card class="gap-0 py-6 px-6 shadow-sm">
|
||||
<div class="mb-2"><Logo /></div>
|
||||
<h1 class="text-2xl font-medium">{{setup?(step===1?'Set up your organisation':'Create your admin account'):recovery?'Recover your account':'Sign in'}}</h1>
|
||||
<h1 class="text-title font-medium">{{setup?(step===1?'Set up your organisation':'Create your admin account'):recovery?'Recover your account':'Sign in'}}</h1>
|
||||
<form class="mt-6 space-y-4" @submit.prevent="submit">
|
||||
<template v-if="setup&&step===1">
|
||||
<Label class="block space-y-1.5 text-sm" for="organisation">Organisation name<Input id="organisation" v-model="organisation" autocomplete="organization" required maxlength="200" /></Label>
|
||||
<Label class="block space-y-1.5 text-sm" for="workspace">First workspace<Input id="workspace" v-model="workspace" required maxlength="200" /></Label>
|
||||
<Label class="block space-y-1.5 text-sm" for="public-url">Instance URL<Input id="public-url" v-model="publicURL" type="url" required autocomplete="url" /></Label>
|
||||
<p class="text-xs text-fg-muted">Use the address people will visit. Passkeys require HTTPS and a domain name, or localhost for development.</p>
|
||||
<Label class="block space-y-1.5 text-label" for="organisation">Organisation name<Input id="organisation" v-model="organisation" autocomplete="organization" required maxlength="200" /></Label>
|
||||
<Label class="block space-y-1.5 text-label" for="workspace">First workspace<Input id="workspace" v-model="workspace" required maxlength="200" /></Label>
|
||||
<Label class="block space-y-1.5 text-label" for="public-url">Instance URL<Input id="public-url" v-model="publicURL" type="url" required autocomplete="url" /></Label>
|
||||
<p class="text-caption text-fg-muted">Use the address people will visit. Passkeys require HTTPS and a domain name, or localhost for development.</p>
|
||||
</template>
|
||||
<template v-else>
|
||||
<Label v-if="setup" class="block space-y-1.5 text-sm" for="account-name">Your name<Input id="account-name" v-model="name" autocomplete="name" required maxlength="200" /></Label>
|
||||
<Label class="block space-y-1.5 text-sm" for="account-email">Email<Input id="account-email" v-model="email" type="email" autocomplete="username" :spellcheck="false" required /></Label>
|
||||
<Label v-if="recovery" class="block space-y-1.5 text-sm" for="recovery-code">Recovery code<Input id="recovery-code" v-model="recoveryCode" autocomplete="off" required /></Label>
|
||||
<Label class="block space-y-1.5 text-sm" for="account-password">{{recovery?"New password":"Password"}}<Input id="account-password" v-model="password" type="password" :autocomplete="setup||recovery?'new-password':'current-password'" :minlength="setup||recovery?15:undefined" maxlength="1024" required /></Label>
|
||||
<p v-if="setup" class="text-xs text-fg-muted">At least 15 characters.</p>
|
||||
<Label v-if="setup" class="block space-y-1.5 text-label" for="account-name">Your name<Input id="account-name" v-model="name" autocomplete="name" required maxlength="200" /></Label>
|
||||
<Label class="block space-y-1.5 text-label" for="account-email">Email<Input id="account-email" v-model="email" type="email" autocomplete="username" :spellcheck="false" required /></Label>
|
||||
<Label v-if="recovery" class="block space-y-1.5 text-label" for="recovery-code">Recovery code<Input id="recovery-code" v-model="recoveryCode" autocomplete="off" required /></Label>
|
||||
<Label class="block space-y-1.5 text-label" for="account-password">{{recovery?"New password":"Password"}}<Input id="account-password" v-model="password" type="password" :autocomplete="setup||recovery?'new-password':'current-password'" :minlength="setup||recovery?15:undefined" maxlength="1024" required /></Label>
|
||||
<p v-if="setup" class="text-caption text-fg-muted">At least 15 characters.</p>
|
||||
</template>
|
||||
<Alert v-if="error" variant="destructive"><AlertDescription>{{error}}</AlertDescription></Alert>
|
||||
<div class="flex gap-2"><Button v-if="setup&&step===2" type="button" variant="outline" :disabled="busy" @click="step=1">Back</Button><Button type="submit" class="flex-1" :disabled="busy">{{busy?'Please wait…':setup?(step===1?'Continue':'Create organisation and admin'):recovery?'Reset password':'Sign in'}}</Button></div>
|
||||
|
||||
@@ -24,7 +24,7 @@ const change=()=>run(async()=>{await api.changePassword(current.value,next.value
|
||||
</script>
|
||||
<template>
|
||||
<div class="mx-auto max-w-[80ch]">
|
||||
<PageHeader title="Your account"><span class="text-sm text-fg-muted">{{accounts.status?.user?.display_name}}</span></PageHeader>
|
||||
<PageHeader title="Your account"><span class="text-label text-fg-muted">{{accounts.status?.user?.display_name}}</span></PageHeader>
|
||||
<Alert v-if="$route.query.welcome" class="mb-4">Your organisation and admin account are ready. Add a passkey below, <RouterLink class="underline" to="/org/members">add members</RouterLink>, or <RouterLink class="underline" to="/settings/authentication">configure OIDC</RouterLink>.</Alert>
|
||||
<Alert v-if="error" variant="destructive" class="mb-4"><AlertDescription>{{error}} <a class="underline" href="/?reauth=1">Sign in again</a></AlertDescription></Alert>
|
||||
<Section title="Passkeys">
|
||||
|
||||
@@ -17,10 +17,10 @@ async function create(){busy.value=true;error.value="";try{await api.createAccou
|
||||
<template>
|
||||
<Section title="Create a local account">
|
||||
<form class="grid gap-3 sm:grid-cols-2" @submit.prevent="create">
|
||||
<Label for="new-account-name" class="block space-y-1 text-sm">Name<Input id="new-account-name" v-model="name" required maxlength="200" autocomplete="off" /></Label>
|
||||
<Label for="new-account-email" class="block space-y-1 text-sm">Email<Input id="new-account-email" v-model="email" type="email" required autocomplete="off" :spellcheck="false" /></Label>
|
||||
<Label for="new-account-password" class="block space-y-1 text-sm">Initial password<Input id="new-account-password" v-model="password" type="password" required minlength="15" maxlength="1024" autocomplete="new-password" /></Label>
|
||||
<div class="block space-y-1 text-sm"><Label for="new-account-role">Role</Label><Select v-model="role"><SelectTrigger id="new-account-role" class="w-full"><SelectValue /></SelectTrigger><SelectContent><SelectItem v-for="choice in assignable" :key="choice" :value="choice">{{ ROLE_LABELS[choice] }}</SelectItem></SelectContent></Select></div>
|
||||
<Label for="new-account-name" class="block space-y-1 text-label">Name<Input id="new-account-name" v-model="name" required maxlength="200" autocomplete="off" /></Label>
|
||||
<Label for="new-account-email" class="block space-y-1 text-label">Email<Input id="new-account-email" v-model="email" type="email" required autocomplete="off" :spellcheck="false" /></Label>
|
||||
<Label for="new-account-password" class="block space-y-1 text-label">Initial password<Input id="new-account-password" v-model="password" type="password" required minlength="15" maxlength="1024" autocomplete="new-password" /></Label>
|
||||
<div class="block space-y-1 text-label"><Label for="new-account-role">Role</Label><Select v-model="role"><SelectTrigger id="new-account-role" class="w-full"><SelectValue /></SelectTrigger><SelectContent><SelectItem v-for="choice in assignable" :key="choice" :value="choice">{{ ROLE_LABELS[choice] }}</SelectItem></SelectContent></Select></div>
|
||||
<Alert v-if="error" variant="destructive" class="sm:col-span-2"><AlertDescription>{{error}} <a class="underline" href="/?reauth=1">Sign in again</a></AlertDescription></Alert>
|
||||
<Button type="submit" :disabled="busy" class="justify-self-start sm:col-span-2">Create account</Button>
|
||||
</form>
|
||||
|
||||
@@ -99,10 +99,10 @@ onMounted(load);
|
||||
<Empty v-if="available && !tokens.length && !busy && !error"><EmptyHeader><EmptyTitle>No tokens yet.</EmptyTitle></EmptyHeader></Empty>
|
||||
<ItemGroup v-if="tokens.length" aria-label="API tokens">
|
||||
<Item v-for="token in tokens" :key="token.id" as="li" variant="outline" size="xs">
|
||||
<span class="flex-1 truncate text-sm">{{ token.name || token.id.slice(0, 12) }}</span>
|
||||
<span class="text-xs text-fg-subtle">Created <Timestamp :at="token.created_at" /></span>
|
||||
<span class="text-xs text-fg-subtle">Expires <Timestamp v-if="token.expires_at" :at="token.expires_at" /><template v-else>Never</template></span>
|
||||
<span class="text-xs text-fg-subtle">Last used <Timestamp v-if="token.last_used_at" :at="token.last_used_at" /><template v-else>Never</template></span>
|
||||
<span class="flex-1 truncate text-label">{{ token.name || token.id.slice(0, 12) }}</span>
|
||||
<span class="text-caption text-fg-subtle">Created <Timestamp :at="token.created_at" /></span>
|
||||
<span class="text-caption text-fg-subtle">Expires <Timestamp v-if="token.expires_at" :at="token.expires_at" /><template v-else>Never</template></span>
|
||||
<span class="text-caption text-fg-subtle">Last used <Timestamp v-if="token.last_used_at" :at="token.last_used_at" /><template v-else>Never</template></span>
|
||||
<Button variant="ghost" size="sm" class="text-danger" :disabled="busy" @click="revoke(token.id)">Revoke</Button>
|
||||
</Item>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -72,9 +72,9 @@ function failedDeliveries(alert: OperatorAlert): number {
|
||||
>
|
||||
<span class="text-label font-medium group-hover:underline">{{ alert.title }}</span>
|
||||
<span v-if="alert.body" class="text-label leading-snug text-fg-muted">{{ alert.body }}</span>
|
||||
<span v-if="failedDeliveries(alert)" class="text-xs text-warn">Webhook delivery failed.</span>
|
||||
<span v-if="failedDeliveries(alert)" class="text-caption text-warn">Webhook delivery failed.</span>
|
||||
</component>
|
||||
<Timestamp :at="alert.first_raised" class="mt-0.5 shrink-0 text-xs whitespace-nowrap text-fg-subtle" />
|
||||
<Timestamp :at="alert.first_raised" class="mt-0.5 shrink-0 text-caption whitespace-nowrap text-fg-subtle" />
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon-sm" class="-mr-2 shrink-0" :aria-label="`Dismiss ${alert.title}`" @click="dismiss(alert)"><X /></Button>
|
||||
|
||||
@@ -409,7 +409,7 @@ async function saveRetention(): Promise<void> {
|
||||
<Skeleton v-for="n in 6" :key="n" class="h-10 w-full" />
|
||||
</div>
|
||||
<div v-else-if="error" class="rounded-xl border border-border bg-card p-6" role="alert">
|
||||
<p class="text-sm text-danger">{{ error }}</p>
|
||||
<p class="text-label text-danger">{{ error }}</p>
|
||||
<Button class="mt-3" variant="outline" size="sm" @click="reload">Retry</Button>
|
||||
</div>
|
||||
<Section v-else>
|
||||
@@ -420,7 +420,7 @@ async function saveRetention(): Promise<void> {
|
||||
<span class="min-w-0 break-words">{{ row.summary || `${row.category} ${row.action}` }}</span>
|
||||
<Badge v-if="badgeFor(row)" :variant="badgeFor(row)!.variant">{{ badgeFor(row)!.label }}</Badge>
|
||||
</div>
|
||||
<p class="mt-0.5 text-xs text-fg-subtle sm:hidden">
|
||||
<p class="mt-0.5 text-caption text-fg-subtle sm:hidden">
|
||||
<template v-if="hasTarget(row.target)">
|
||||
<RouterLink v-if="targetHref(row.target)" :to="targetHref(row.target)" class="hover:underline" @click.stop>{{ row.target.label || row.target.id }}</RouterLink>
|
||||
<span v-else>{{ row.target.label || row.target.id }}</span>
|
||||
@@ -435,11 +435,11 @@ async function saveRetention(): Promise<void> {
|
||||
<template #cell-target="{ row }">
|
||||
<RouterLink v-if="targetHref(row.target)" :to="targetHref(row.target)" class="hover:underline" @click.stop>{{ row.target.label || row.target.id }}</RouterLink>
|
||||
<span v-else>{{ row.target?.label || row.target?.id }}</span>
|
||||
<span class="block text-xs text-fg-subtle">{{ targetDetail(row.target) }}</span>
|
||||
<span class="block text-caption text-fg-subtle">{{ targetDetail(row.target) }}</span>
|
||||
</template>
|
||||
<template #cell-actor="{ row }">
|
||||
<span>{{ row.actor.name || row.actor.id }}</span>
|
||||
<span class="block text-xs text-fg-subtle">{{ row.actor.kind }}</span>
|
||||
<span class="block text-caption text-fg-subtle">{{ row.actor.kind }}</span>
|
||||
</template>
|
||||
<template #cell-when="{ row }"><Timestamp :at="row.at" /></template>
|
||||
<template #detail="{ row }">
|
||||
@@ -505,7 +505,7 @@ async function saveRetention(): Promise<void> {
|
||||
<div class="grid gap-1.5">
|
||||
<Label for="audit-retention-hours">Runtime event retention (hours)</Label>
|
||||
<Input id="audit-retention-hours" v-model="retentionHours" type="number" min="0" step="1" class="w-32" />
|
||||
<p class="text-xs text-fg-subtle">0 keeps them forever. Minimum 168 hours.</p>
|
||||
<p class="text-caption text-fg-subtle">0 keeps them forever. Minimum 168 hours.</p>
|
||||
</div>
|
||||
<Alert v-if="retentionError || retentionState.error" variant="destructive"><AlertDescription>{{ retentionError || retentionState.error }}</AlertDescription></Alert>
|
||||
<DialogFooter>
|
||||
|
||||
@@ -35,14 +35,14 @@ onMounted(() => void store.load());
|
||||
<Button variant="outline" size="sm" :disabled="loading" @click="store.load()">Refresh</Button>
|
||||
</PageHeader>
|
||||
|
||||
<div v-if="error" role="alert" class="mb-4 text-sm text-danger">
|
||||
<div v-if="error" role="alert" class="mb-4 text-label text-danger">
|
||||
<p>{{ error }}</p>
|
||||
<Button variant="outline" size="sm" @click="store.load()">Retry</Button>
|
||||
</div>
|
||||
|
||||
<Section>
|
||||
<div class="flex flex-col gap-3">
|
||||
<p v-if="loading && !denials.length" class="flex items-center gap-2 text-sm text-fg-muted">
|
||||
<p v-if="loading && !denials.length" class="flex items-center gap-2 text-label text-fg-muted">
|
||||
<Spinner />Loading denials…
|
||||
</p>
|
||||
<Empty v-else-if="!error && !denials.length">
|
||||
@@ -59,11 +59,11 @@ onMounted(() => void store.load());
|
||||
<Empty><EmptyHeader><EmptyTitle>No denials recorded</EmptyTitle></EmptyHeader></Empty>
|
||||
</template>
|
||||
<template #cell-at="{ row }"><Timestamp :at="row.at" /></template>
|
||||
<template #cell-principal="{ row }"><span class="font-mono text-xs">{{ row.principal }}</span></template>
|
||||
<template #cell-resource="{ row }"><span class="font-mono text-xs">{{ denialResource(row) }}</span></template>
|
||||
<template #cell-principal="{ row }"><span class="font-mono text-caption">{{ row.principal }}</span></template>
|
||||
<template #cell-resource="{ row }"><span class="font-mono text-caption">{{ denialResource(row) }}</span></template>
|
||||
<template #cell-level="{ row }"><Badge variant="idle">{{ row.level }}</Badge></template>
|
||||
<template #cell-policies="{ row }">
|
||||
<span class="font-mono text-xs text-fg-muted">{{ row.policies.join(", ") || "–" }}</span>
|
||||
<span class="font-mono text-caption text-fg-muted">{{ row.policies.join(", ") || "–" }}</span>
|
||||
</template>
|
||||
<template #cell-count="{ row }"><span class="tabular-nums">{{ row.count }}</span></template>
|
||||
</DataTable>
|
||||
|
||||
@@ -29,7 +29,7 @@ const lines = useHighlightedCode(
|
||||
<CodeBlockActions>
|
||||
<CodeBlockCopyButton :value="code" />
|
||||
</CodeBlockActions>
|
||||
<CodeBlockContent wrap class="max-h-[60vh] pe-10 text-xs">
|
||||
<CodeBlockContent wrap class="max-h-[60vh] pe-10 text-caption">
|
||||
<CodeBlockLine v-for="(line, index) in lines" :key="index">
|
||||
<CodeBlockToken v-for="(token, i) in line" :key="i" :token="token" />
|
||||
</CodeBlockLine>
|
||||
|
||||
@@ -61,20 +61,20 @@ const details = (entry: LogEntry) =>
|
||||
:initial-sort="newestFirst ? { id: 'time', desc: true } : undefined"
|
||||
sticky-header
|
||||
>
|
||||
<template #cell-time="{ row }"><span class="font-mono text-xs text-fg-subtle">{{ shortTime(row.time, appearance.timeZone) }}</span></template>
|
||||
<template #cell-time="{ row }"><span class="font-mono text-caption text-fg-subtle">{{ shortTime(row.time, appearance.timeZone) }}</span></template>
|
||||
<template #cell-level="{ row }">
|
||||
<span class="text-micro font-semibold tracking-[0.04em]" :class="LEVEL_COLOR[levelKind(row.level)]">{{ (row.level || "info").toUpperCase() }}</span>
|
||||
</template>
|
||||
<template #cell-service="{ row }"><span class="block max-w-40 truncate font-mono text-xs text-fg-muted">{{ field(row, "service") }}</span></template>
|
||||
<template #cell-component="{ row }"><span class="block max-w-48 truncate font-mono text-xs text-fg-muted">{{ field(row, "component") }}</span></template>
|
||||
<template #cell-stage="{ row }"><span class="block max-w-48 truncate font-mono text-xs text-fg-muted" :title="field(row, 'stage')">{{ field(row, "stage") }}</span></template>
|
||||
<template #cell-service="{ row }"><span class="block max-w-40 truncate font-mono text-caption text-fg-muted">{{ field(row, "service") }}</span></template>
|
||||
<template #cell-component="{ row }"><span class="block max-w-48 truncate font-mono text-caption text-fg-muted">{{ field(row, "component") }}</span></template>
|
||||
<template #cell-stage="{ row }"><span class="block max-w-48 truncate font-mono text-caption text-fg-muted" :title="field(row, 'stage')">{{ field(row, "stage") }}</span></template>
|
||||
<template #cell-message="{ row }">
|
||||
<span class="font-mono text-xs [overflow-wrap:anywhere]">{{ row.message || row.msg || "" }}</span>
|
||||
<span v-if="details(row).length" class="ml-2 text-xs text-fg-subtle">{{ details(row).length }} field{{ details(row).length === 1 ? "" : "s" }}</span>
|
||||
<span class="font-mono text-caption [overflow-wrap:anywhere]">{{ row.message || row.msg || "" }}</span>
|
||||
<span v-if="details(row).length" class="ml-2 text-caption text-fg-subtle">{{ details(row).length }} field{{ details(row).length === 1 ? "" : "s" }}</span>
|
||||
</template>
|
||||
<template #detail="{ row }">
|
||||
<MetadataList v-if="details(row).length" :rows="details(row)" class="text-xs" />
|
||||
<span v-else class="text-xs text-fg-subtle">No fields</span>
|
||||
<MetadataList v-if="details(row).length" :rows="details(row)" class="text-caption" />
|
||||
<span v-else class="text-caption text-fg-subtle">No fields</span>
|
||||
</template>
|
||||
</DataTable>
|
||||
</template>
|
||||
@@ -5,7 +5,7 @@ defineProps<{ title: string }>();
|
||||
|
||||
<template>
|
||||
<header class="mb-4 flex min-h-9 flex-wrap items-center justify-between gap-x-4 gap-y-2">
|
||||
<h1 class="text-lg leading-tight font-semibold tracking-tight sm:text-xl sm:leading-7">{{ title }}</h1>
|
||||
<h1 class="text-title leading-tight font-semibold tracking-tight sm:text-title sm:leading-7">{{ title }}</h1>
|
||||
<div v-if="$slots.default" class="flex flex-wrap items-center gap-2">
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -201,7 +201,7 @@ const title = computed(() => (props.binding ? "Edit binding" : "New binding"));
|
||||
<Input
|
||||
id="binding-filter"
|
||||
v-model="draft.filter"
|
||||
class="font-mono text-xs"
|
||||
class="font-mono text-caption"
|
||||
placeholder='severity in ["high", "critical"]'
|
||||
/>
|
||||
<FieldDescription
|
||||
@@ -259,7 +259,7 @@ const title = computed(() => (props.binding ? "Edit binding" : "New binding"));
|
||||
<Input
|
||||
v-if="!inputDraft(name).param"
|
||||
v-model="inputDraft(name).value"
|
||||
class="font-mono text-xs"
|
||||
class="font-mono text-caption"
|
||||
:aria-label="`${name} value`"
|
||||
placeholder="value"
|
||||
/>
|
||||
|
||||
@@ -52,7 +52,7 @@ const emit = defineEmits<{
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell
|
||||
class="max-w-56 truncate font-mono text-xs text-fg-muted"
|
||||
class="max-w-56 truncate font-mono text-caption text-fg-muted"
|
||||
:title="props.binding.filter"
|
||||
>
|
||||
{{ props.binding.filter || "–" }}
|
||||
|
||||
@@ -49,8 +49,8 @@ const captureLink = (id: string) => ({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p v-if="failed" class="text-xs text-fg-muted">Dispatches unavailable.</p>
|
||||
<ul v-else-if="dispatches.length" class="flex flex-col gap-1 text-xs">
|
||||
<p v-if="failed" class="text-caption text-fg-muted">Dispatches unavailable.</p>
|
||||
<ul v-else-if="dispatches.length" class="flex flex-col gap-1 text-caption">
|
||||
<li
|
||||
v-for="d in dispatches"
|
||||
:key="d.binding_id + d.capture_id"
|
||||
|
||||
@@ -20,7 +20,7 @@ const text = computed(() => prettyPrint(props.raw));
|
||||
>
|
||||
{{ label }}
|
||||
</h3>
|
||||
<p v-if="!text" class="text-sm text-fg-muted">(empty)</p>
|
||||
<p v-if="!text" class="text-label text-fg-muted">(empty)</p>
|
||||
<CodeView v-else :code="text" lang="json" />
|
||||
</section>
|
||||
</template>
|
||||
@@ -84,7 +84,7 @@ function onOpenChange(open: boolean) {
|
||||
<Textarea
|
||||
id="event-type-headers"
|
||||
v-model="draft.headersText"
|
||||
class="min-h-20 font-mono text-xs"
|
||||
class="min-h-20 font-mono text-caption"
|
||||
placeholder="X-GitHub-Event: pull_request"
|
||||
/>
|
||||
</div>
|
||||
@@ -93,7 +93,7 @@ function onOpenChange(open: boolean) {
|
||||
<Textarea
|
||||
id="event-type-body"
|
||||
v-model="draft.body"
|
||||
class="min-h-40 font-mono text-xs"
|
||||
class="min-h-40 font-mono text-caption"
|
||||
placeholder="{ }"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -94,7 +94,7 @@ function fieldCount(schema: Record<string, string> | null | undefined): number {
|
||||
<TableCell class="text-right tabular-nums">{{
|
||||
fieldCount(p.schema)
|
||||
}}</TableCell>
|
||||
<TableCell class="font-mono text-xs"
|
||||
<TableCell class="font-mono text-caption"
|
||||
><span
|
||||
class="block max-w-96 truncate"
|
||||
:title="ruleSummary(p.rule)"
|
||||
@@ -125,7 +125,7 @@ function fieldCount(schema: Record<string, string> | null | undefined): number {
|
||||
<TableRow v-for="t in eventTypes" :key="t.id">
|
||||
<TableCell class="font-mono">{{ t.source }}</TableCell>
|
||||
<TableCell>{{ t.name }}</TableCell>
|
||||
<TableCell class="font-mono text-xs"
|
||||
<TableCell class="font-mono text-caption"
|
||||
><span
|
||||
class="block max-w-96 truncate"
|
||||
:title="ruleSummary(t.rule)"
|
||||
@@ -152,7 +152,7 @@ function fieldCount(schema: Record<string, string> | null | undefined): number {
|
||||
</TableBody>
|
||||
</Table>
|
||||
|
||||
<p v-if="eventTypesLoading" class="flex items-center gap-2 text-sm text-fg-muted"><Spinner />Loading event types…</p>
|
||||
<p v-if="eventTypesLoading" class="flex items-center gap-2 text-label text-fg-muted"><Spinner />Loading event types…</p>
|
||||
|
||||
<Empty v-else-if="!eventTypesError && !proposals.length && !eventTypes.length">
|
||||
<EmptyHeader>
|
||||
|
||||
@@ -275,7 +275,7 @@ function setModels(list: string[]) {
|
||||
<FieldDescription>Per sender. Off while either is 0.</FieldDescription>
|
||||
</FieldContent>
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
|
||||
<div class="flex flex-wrap items-center gap-2 text-sm text-fg-muted">
|
||||
<div class="flex flex-wrap items-center gap-2 text-label text-fg-muted">
|
||||
<form.Field v-slot="{ field }" name="rate_limit.max_requests">
|
||||
<NumberField :model-value="field.state.value" :min="0" class="w-28" @update:model-value="field.handleChange">
|
||||
<NumberFieldContent>
|
||||
|
||||
@@ -26,7 +26,7 @@ function sendReply() {
|
||||
<ItemMedia variant="icon"><ShieldQuestion /></ItemMedia>
|
||||
<ItemContent>
|
||||
<ItemTitle>Allow {{ ask.prompt }}?</ItemTitle>
|
||||
<ItemDescription v-if="ask.detail" class="font-mono text-xs break-all">{{ ask.detail }}</ItemDescription>
|
||||
<ItemDescription v-if="ask.detail" class="font-mono text-caption break-all">{{ ask.detail }}</ItemDescription>
|
||||
</ItemContent>
|
||||
<ItemActions class="flex-wrap">
|
||||
<Button size="sm" variant="outline" @click="answerAsk('deny')">Deny</Button>
|
||||
@@ -35,7 +35,7 @@ function sendReply() {
|
||||
</ItemActions>
|
||||
</Item>
|
||||
|
||||
<div v-else class="mt-2 rounded-lg border border-border bg-card p-3 text-sm" role="group" :aria-label="ask.prompt">
|
||||
<div v-else class="mt-2 rounded-lg border border-border bg-card p-3 text-label" role="group" :aria-label="ask.prompt">
|
||||
<template v-if="ask.kind === 'picker'">
|
||||
<p class="font-medium">{{ ask.prompt }}</p>
|
||||
<div class="mt-3 flex flex-wrap gap-2">
|
||||
|
||||
@@ -23,7 +23,7 @@ defineProps<{ attachment: ChatMedia }>();
|
||||
:target="attachment.url ? '_blank' : undefined"
|
||||
:rel="attachment.url ? 'noopener noreferrer' : undefined"
|
||||
:title="mediaDetail(attachment)"
|
||||
class="inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-muted px-2.5 py-1 text-xs font-medium text-fg-muted"
|
||||
class="inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-muted px-2.5 py-1 text-caption font-medium text-fg-muted"
|
||||
>
|
||||
<Paperclip aria-hidden="true" class="size-3.5 shrink-0" />
|
||||
<span class="truncate">{{ mediaLabel(attachment) }}</span>
|
||||
|
||||
@@ -10,7 +10,7 @@ const options = computed(() => selectorData.value.models ?? []);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="text-sm">
|
||||
<div class="text-label">
|
||||
<p class="text-label font-medium">Choose a model</p>
|
||||
<p v-if="!options.length" class="mt-1 text-fg-muted">None configured.</p>
|
||||
<Select v-else :model-value="selectorData.active_model" class="mt-2" @update:model-value="(v) => void setModel(String(v))">
|
||||
|
||||
@@ -172,7 +172,7 @@ function onKeydown(event: KeyboardEvent): void {
|
||||
<li
|
||||
v-for="(queued, index) in queuedMessages"
|
||||
:key="index"
|
||||
class="flex items-center gap-1 rounded-md border border-dashed border-border px-2 py-1 text-sm text-fg-muted"
|
||||
class="flex items-center gap-1 rounded-md border border-dashed border-border px-2 py-1 text-label text-fg-muted"
|
||||
>
|
||||
<Clock class="size-3.5 flex-none" aria-hidden="true" />
|
||||
<span class="min-w-0 flex-1 truncate">{{ queued }}</span>
|
||||
@@ -208,7 +208,7 @@ function onKeydown(event: KeyboardEvent): void {
|
||||
rows="1"
|
||||
placeholder="Message Archie"
|
||||
aria-label="Message Archie"
|
||||
class="max-h-40 min-h-11 flex-1 resize-none border-0 bg-transparent! px-0 py-1 text-sm focus-visible:ring-0"
|
||||
class="max-h-40 min-h-11 flex-1 resize-none border-0 bg-transparent! px-0 py-1 text-label focus-visible:ring-0"
|
||||
@input="onInput"
|
||||
@keydown="onKeydown"
|
||||
/>
|
||||
|
||||
@@ -18,7 +18,7 @@ defineProps<{ path: string; label?: string }>();
|
||||
<RouterLink
|
||||
:to="path"
|
||||
:title="`Go to ${label || path}`"
|
||||
class="inline-flex max-w-full items-center gap-1.5 rounded-md border border-primary/45 bg-primary-soft px-2.5 py-1 text-xs font-semibold text-link transition-colors hover:border-primary hover:bg-primary/15 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
|
||||
class="inline-flex max-w-full items-center gap-1.5 rounded-md border border-primary/45 bg-primary-soft px-2.5 py-1 text-caption font-semibold text-link transition-colors hover:border-primary hover:bg-primary/15 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
|
||||
>
|
||||
<ArrowUpRight aria-hidden="true" class="size-3.5 shrink-0" />
|
||||
<span class="truncate">{{ label || path }}</span>
|
||||
|
||||
@@ -38,7 +38,7 @@ const groups = computed(() => {
|
||||
|
||||
<template>
|
||||
<div class="grid gap-1 p-1">
|
||||
<span v-if="statusText !== 'Ready'" class="text-xs text-fg-subtle">{{ statusText }}</span>
|
||||
<span v-if="statusText !== 'Ready'" class="text-caption text-fg-subtle">{{ statusText }}</span>
|
||||
<Select
|
||||
:model-value="modelValue"
|
||||
@update:model-value="setModel($event === DEFAULT ? '' : String($event ?? ''))"
|
||||
|
||||
@@ -87,8 +87,8 @@ const detail = computed(() =>
|
||||
<CircleCheck v-else class="text-success" />
|
||||
</TraceIcon>
|
||||
<span class="font-mono text-foreground">{{ name }}</span>
|
||||
<TraceTitle class="font-mono text-xs">{{ argument }}</TraceTitle>
|
||||
<span v-if="duration" class="shrink-0 text-xs tabular-nums">{{ duration }}</span>
|
||||
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
||||
<span v-if="duration" class="shrink-0 text-caption tabular-nums">{{ duration }}</span>
|
||||
</TraceLine>
|
||||
</TraceCollapsibleTrigger>
|
||||
<TraceCollapsibleContent>
|
||||
@@ -104,7 +104,7 @@ const detail = computed(() =>
|
||||
<CircleCheck v-else class="text-success" />
|
||||
</TraceIcon>
|
||||
<span class="font-mono text-foreground">{{ name }}</span>
|
||||
<TraceTitle class="font-mono text-xs">{{ argument }}</TraceTitle>
|
||||
<span v-if="duration" class="shrink-0 text-xs tabular-nums">{{ duration }}</span>
|
||||
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
||||
<span v-if="duration" class="shrink-0 text-caption tabular-nums">{{ duration }}</span>
|
||||
</TraceLine>
|
||||
</template>
|
||||
@@ -46,14 +46,14 @@ async function later() {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="text-sm">
|
||||
<div class="text-label">
|
||||
<p v-if="!available.length">Up to date</p>
|
||||
<template v-else>
|
||||
<p class="font-medium">An update is available</p>
|
||||
<ul class="mt-1 space-y-0.5">
|
||||
<li v-for="c in available" :key="c.ID">
|
||||
{{ c.Label || c.ID }}: <span class="font-mono">{{ c.Installed || "?" }} → {{ c.Available }}</span>
|
||||
<a v-if="c.Changelog" :href="c.Changelog" target="_blank" rel="noopener" class="ml-1 text-xs underline">changes</a>
|
||||
<a v-if="c.Changelog" :href="c.Changelog" target="_blank" rel="noopener" class="ml-1 text-caption underline">changes</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div v-if="state === 'idle'" class="mt-3 flex gap-2">
|
||||
@@ -64,7 +64,7 @@ async function later() {
|
||||
<p v-else-if="state === 'deferred'" class="mt-2 text-fg-muted">Skipped until a newer release.</p>
|
||||
<p v-else-if="state === 'done'" class="mt-2 text-ok">{{ result }}</p>
|
||||
<p v-else class="mt-2 text-danger">{{ result }}</p>
|
||||
<p v-if="state === 'idle' && !update.can_install" class="mt-2 text-xs text-fg-muted">No install script on this host.</p>
|
||||
<p v-if="state === 'idle' && !update.can_install" class="mt-2 text-caption text-fg-muted">No install script on this host.</p>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
@@ -17,7 +17,7 @@ defineEmits<{ revert: [change: Change] }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ItemGroup class="font-mono text-xs">
|
||||
<ItemGroup class="font-mono text-caption">
|
||||
<Item v-for="change in changes" :key="change.path" as="li" variant="outline" size="xs" class="group items-start">
|
||||
<div class="min-w-0 flex-1">
|
||||
<p class="mb-1 font-sans font-medium">{{ label ? label(change.path) : change.path }}</p>
|
||||
|
||||
@@ -61,9 +61,9 @@ async function choose(id: string): Promise<void> {
|
||||
:side="isMobile ? 'bottom' : 'right'"
|
||||
:side-offset="4"
|
||||
>
|
||||
<DropdownMenuLabel class="text-muted-foreground text-xs">Organisations</DropdownMenuLabel>
|
||||
<DropdownMenuLabel class="text-muted-foreground text-caption">Organisations</DropdownMenuLabel>
|
||||
<DropdownMenuItem v-for="o in choices" :key="o.id" class="gap-2 p-2" @select="choose(o.id)">
|
||||
<div class="flex size-6 items-center justify-center rounded-sm border text-xs">{{ initial(o.name) }}</div>
|
||||
<div class="flex size-6 items-center justify-center rounded-sm border text-caption">{{ initial(o.name) }}</div>
|
||||
{{ o.name }}
|
||||
<Check v-if="o.id === homeOrg" class="ml-auto" aria-label="Current" />
|
||||
</DropdownMenuItem>
|
||||
|
||||
@@ -158,7 +158,7 @@ onUnmounted(() => document.removeEventListener("keydown", onGlobalKeydown));
|
||||
>
|
||||
<span class="text-fg-muted shrink-0 tabular-nums">#{{ task.id }}</span>
|
||||
<span class="truncate">{{ task.title }}</span>
|
||||
<span v-if="task.status" class="text-fg-muted ml-auto shrink-0 text-xs">{{
|
||||
<span v-if="task.status" class="text-fg-muted ml-auto shrink-0 text-caption">{{
|
||||
statusLabel(task.status)
|
||||
}}</span>
|
||||
</CommandItem>
|
||||
|
||||
@@ -19,7 +19,7 @@ const label = computed(() => (streamState.value === "unavailable" ? "Disconnecte
|
||||
role="status"
|
||||
:aria-label="label"
|
||||
:title="label"
|
||||
class="inline-flex items-center gap-1.5 px-1 text-xs max-sm:px-0"
|
||||
class="inline-flex items-center gap-1.5 px-1 text-caption max-sm:px-0"
|
||||
:class="streamState === 'unavailable' ? 'text-danger' : 'text-warn'"
|
||||
>
|
||||
<StatusDot :tone="streamState === 'unavailable' ? 'danger' : 'warn'" live />
|
||||
|
||||
@@ -21,7 +21,7 @@ watch(() => props.open, () => void fit(), { immediate: true });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="text-foreground inline-flex items-baseline text-lg leading-none font-semibold tracking-tight whitespace-nowrap">
|
||||
<span class="text-foreground inline-flex items-baseline text-title leading-none font-semibold tracking-tight whitespace-nowrap">
|
||||
<svg viewBox="2 3 20 18" aria-hidden="true" class="text-brand h-[0.698em] w-[0.776em] shrink-0 self-baseline overflow-visible">
|
||||
<path d="M2 21h4l8-18h-4z" fill="currentColor" />
|
||||
<path d="M14.9 5.03 22 21h-4l-5.1-11.47z" fill="currentColor" />
|
||||
|
||||
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, 'class')
|
||||
<AccordionContent
|
||||
data-slot="accordion-content"
|
||||
v-bind="delegatedProps"
|
||||
class="data-open:animate-accordion-down data-closed:animate-accordion-up text-sm overflow-y-clip"
|
||||
class="data-open:animate-accordion-down data-closed:animate-accordion-up text-label overflow-y-clip"
|
||||
>
|
||||
<div
|
||||
:class="cn(
|
||||
|
||||
@@ -22,7 +22,7 @@ const delegatedProps = reactiveOmit(props, 'class')
|
||||
v-bind="delegatedProps"
|
||||
:class="
|
||||
cn(
|
||||
'focus-visible:ring-ring focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-fg-muted rounded-lg py-2.5 text-left text-sm font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50',
|
||||
'focus-visible:ring-ring focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-fg-muted rounded-lg py-2.5 text-left text-label font-medium hover:underline focus-visible:ring-3 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -18,7 +18,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
||||
v-bind="delegatedProps"
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3',
|
||||
'text-fg-muted *:[a]:hover:text-foreground text-label text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -18,7 +18,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
||||
v-bind="delegatedProps"
|
||||
:class="
|
||||
cn(
|
||||
'text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2 cn-font-heading',
|
||||
'text-title font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2 cn-font-heading',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="alert-description"
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
|
||||
'text-fg-muted text-label text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -7,7 +7,7 @@ export { default as AlertDescription } from "./AlertDescription.vue";
|
||||
export { default as AlertTitle } from "./AlertTitle.vue";
|
||||
|
||||
export const alertVariants = cva(
|
||||
"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*=size-])]:size-4 group/alert relative w-full",
|
||||
"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-label has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*=size-])]:size-4 group/alert relative w-full",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
|
||||
@@ -18,7 +18,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
||||
v-bind="delegatedProps"
|
||||
:class="
|
||||
cn(
|
||||
'bg-muted text-fg-muted rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs',
|
||||
'bg-muted text-fg-muted rounded-full flex size-full items-center justify-center text-label group-data-[size=sm]/avatar:text-caption',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="avatar-group-count"
|
||||
:class="
|
||||
cn(
|
||||
'bg-muted text-fg-muted size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 relative flex shrink-0 items-center justify-center ring-2 ring-background',
|
||||
'bg-muted text-fg-muted size-8 rounded-full text-label group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 relative flex shrink-0 items-center justify-center ring-2 ring-background',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority";
|
||||
export { default as Badge } from "./Badge.vue";
|
||||
|
||||
export const badgeVariants = cva(
|
||||
"h-5 gap-1 rounded-sm border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",
|
||||
"h-5 gap-1 rounded-sm border border-transparent px-2 py-0.5 text-caption font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<ol
|
||||
data-slot="breadcrumb-list"
|
||||
:class="cn('text-fg-muted gap-1.5 text-sm flex flex-wrap items-center wrap-break-word', props.class)"
|
||||
:class="cn('text-fg-muted gap-1.5 text-label flex flex-wrap items-center wrap-break-word', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</ol>
|
||||
|
||||
@@ -19,7 +19,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
:as="as"
|
||||
:as-child="asChild"
|
||||
:class="cn(
|
||||
'rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring group-data-[align=end]/bubble:self-end w-fit max-w-full min-w-0 overflow-hidden wrap-break-word [button]:text-left [button,a]:transition-colors',
|
||||
'rounded-xl border border-transparent px-3 py-2 text-label leading-relaxed [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring group-data-[align=end]/bubble:self-end w-fit max-w-full min-w-0 overflow-hidden wrap-break-word [button]:text-left [button,a]:transition-colors',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -28,7 +28,7 @@ export const bubbleVariants = cva(
|
||||
export type BubbleVariants = VariantProps<typeof bubbleVariants>
|
||||
|
||||
export const bubbleReactionsVariants = cva(
|
||||
'rounded-full ring-3 ring-card bg-muted shrink-0 gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm absolute z-10 flex w-fit items-center justify-center',
|
||||
'rounded-full ring-3 ring-card bg-muted shrink-0 gap-1 px-1.5 py-0.5 has-[button]:p-0 text-label absolute z-10 flex w-fit items-center justify-center',
|
||||
{
|
||||
variants: {
|
||||
side: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority";
|
||||
export { default as Button } from "./Button.vue";
|
||||
|
||||
export const buttonVariants = cva(
|
||||
"focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
||||
"focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-label font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
@@ -27,8 +27,8 @@ export const buttonVariants = cva(
|
||||
size: {
|
||||
default:
|
||||
"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
||||
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3",
|
||||
sm: "h-8 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3.5",
|
||||
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-caption in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3",
|
||||
sm: "h-8 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-label in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3.5",
|
||||
lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
||||
icon: "size-9",
|
||||
"icon-xs":
|
||||
|
||||
@@ -34,7 +34,7 @@ function emitChange() {
|
||||
@change="emitChange"
|
||||
/>
|
||||
<InputGroupAddon align="inline-end">
|
||||
<InputGroupText class="font-mono text-xs">MB</InputGroupText>
|
||||
<InputGroupText class="font-mono text-caption">MB</InputGroupText>
|
||||
</InputGroupAddon>
|
||||
</InputGroup>
|
||||
</template>
|
||||
@@ -19,7 +19,7 @@ const props = withDefaults(
|
||||
:data-size="size"
|
||||
:class="
|
||||
cn(
|
||||
'ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col',
|
||||
'ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-label ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<div
|
||||
data-slot="card-description"
|
||||
:class="cn('text-fg-muted text-sm', props.class)"
|
||||
:class="cn('text-fg-muted text-label', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="card-title"
|
||||
:class="
|
||||
cn(
|
||||
'text-base leading-snug font-medium group-data-[size=sm]/card:text-sm cn-font-heading',
|
||||
'text-title leading-snug font-medium group-data-[size=sm]/card:text-label cn-font-heading',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<div
|
||||
data-slot="code-block-title"
|
||||
:class="cn('font-sans text-sm font-medium text-foreground group-data-[variant=destructive]/code-block:text-destructive *:[svg]:me-1.5 [&_svg:not([class*=\'size-\'])]:size-3.5 group-data-[size=sm]/code-block:text-xs min-w-0 truncate [&_svg]:pointer-events-none [&_svg]:inline-block [&_svg]:align-middle', props.class)"
|
||||
:class="cn('font-sans text-label font-medium text-foreground group-data-[variant=destructive]/code-block:text-destructive *:[svg]:me-1.5 [&_svg:not([class*=\'size-\'])]:size-3.5 group-data-[size=sm]/code-block:text-caption min-w-0 truncate [&_svg]:pointer-events-none [&_svg]:inline-block [&_svg]:align-middle', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@ export type { HighlightedToken } from './highlighter'
|
||||
export { useHighlightedCode } from './useHighlightedCode'
|
||||
|
||||
export const codeBlockVariants = cva(
|
||||
'rounded-lg text-sm data-[size=sm]:text-xs has-[>[data-slot=code-block-content]:focus-visible]:ring-3 has-[>[data-slot=code-block-content]:focus-visible]:ring-ring group/code-block relative flex w-full min-w-0 flex-col overflow-hidden',
|
||||
'rounded-lg text-label data-[size=sm]:text-caption has-[>[data-slot=code-block-content]:focus-visible]:ring-3 has-[>[data-slot=code-block-content]:focus-visible]:ring-ring group/code-block relative flex w-full min-w-0 flex-col overflow-hidden',
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
|
||||
@@ -14,7 +14,7 @@ const delegatedProps = reactiveOmit(props, 'class')
|
||||
<ComboboxEmpty
|
||||
data-slot="combobox-empty"
|
||||
v-bind="delegatedProps"
|
||||
:class="cn('text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex', props.class)"
|
||||
:class="cn('text-muted-foreground hidden w-full justify-center py-2 text-center text-label group-data-empty/combobox-content:flex', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</ComboboxEmpty>
|
||||
|
||||
@@ -19,7 +19,7 @@ const delegatedProps = reactiveOmit(props, 'class')
|
||||
v-bind="delegatedProps"
|
||||
:class="cn('overflow-hidden text-foreground', props.class)"
|
||||
>
|
||||
<ComboboxLabel v-if="heading" class="text-muted-foreground px-2 py-1.5 text-xs">
|
||||
<ComboboxLabel v-if="heading" class="text-muted-foreground px-2 py-1.5 text-caption">
|
||||
{{ heading }}
|
||||
</ComboboxLabel>
|
||||
<slot />
|
||||
|
||||
@@ -17,7 +17,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
||||
<ComboboxItem
|
||||
data-slot="combobox-item"
|
||||
v-bind="forwarded"
|
||||
:class="cn('data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*=size-])]:size-4 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0', props.class)"
|
||||
:class="cn('data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground gap-2 rounded-md py-1 pr-8 pl-1.5 text-label [&_svg:not([class*=size-])]:size-4 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</ComboboxItem>
|
||||
|
||||
@@ -21,7 +21,7 @@ const isRender = computed(() => !!filterState.search && filterState.filtered.cou
|
||||
v-if="isRender"
|
||||
data-slot="command-empty"
|
||||
v-bind="delegatedProps"
|
||||
:class="cn('py-6 text-center text-sm', props.class)"
|
||||
:class="cn('py-6 text-center text-label', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
|
||||
@@ -34,7 +34,7 @@ onUnmounted(() => {
|
||||
v-bind="delegatedProps"
|
||||
:id="id"
|
||||
data-slot="command-group"
|
||||
:class="cn('text-foreground **:[[cmdk-group-heading]]:text-fg-muted overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium', props.class)"
|
||||
:class="cn('text-foreground **:[[cmdk-group-heading]]:text-fg-muted overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-caption **:[[cmdk-group-heading]]:font-medium', props.class)"
|
||||
:hidden="isRender ? undefined : true"
|
||||
>
|
||||
<ListboxGroupLabel v-if="heading" data-slot="command-group-heading" class="">
|
||||
|
||||
@@ -35,7 +35,7 @@ const { filterState } = useCommand()
|
||||
v-model="filterState.search"
|
||||
data-slot="command-input"
|
||||
auto-focus
|
||||
:class="cn('w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50', props.class)"
|
||||
:class="cn('w-full text-label outline-hidden disabled:cursor-not-allowed disabled:opacity-50', props.class)"
|
||||
/>
|
||||
<InputGroupAddon>
|
||||
<SearchIcon class="size-4 shrink-0 opacity-50" />
|
||||
|
||||
@@ -68,7 +68,7 @@ onUnmounted(() => {
|
||||
:id="id"
|
||||
ref="itemRef"
|
||||
data-slot="command-item"
|
||||
:class="cn('data-highlighted:bg-muted data-highlighted:text-foreground data-highlighted:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_svg:not([class*=size-])]:size-4 group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0', props.class)"
|
||||
:class="cn('data-highlighted:bg-muted data-highlighted:text-foreground data-highlighted:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-label outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! [&_svg:not([class*=size-])]:size-4 group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0', props.class)"
|
||||
@select="() => {
|
||||
filterState.search = ''
|
||||
}"
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<span
|
||||
data-slot="command-shortcut"
|
||||
:class="cn('text-fg-muted group-data-highlighted/command-item:text-foreground ml-auto text-xs tracking-widest', props.class)"
|
||||
:class="cn('text-fg-muted group-data-highlighted/command-item:text-foreground ml-auto text-caption tracking-widest', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</span>
|
||||
|
||||
@@ -44,7 +44,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
||||
v-bind="{ ...$attrs, ...forwarded }"
|
||||
:class="
|
||||
cn(
|
||||
'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-h-[calc(100dvh-2rem)] overflow-y-auto max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none',
|
||||
'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-h-[calc(100dvh-2rem)] overflow-y-auto max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-label ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -20,7 +20,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3',
|
||||
'text-fg-muted *:[a]:hover:text-foreground text-label *:[a]:underline *:[a]:underline-offset-3',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
data-slot="dialog-title"
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn('text-base leading-none font-medium cn-font-heading', props.class)
|
||||
cn('text-title leading-none font-medium cn-font-heading', props.class)
|
||||
"
|
||||
>
|
||||
<slot />
|
||||
|
||||
@@ -30,7 +30,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
||||
v-bind="forwarded"
|
||||
:class="
|
||||
cn(
|
||||
'focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
'focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-label data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -31,7 +31,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn(
|
||||
'focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-danger data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-danger data-[variant=destructive]:*:[svg]:text-danger not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
'focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-danger data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-danger data-[variant=destructive]:*:[svg]:text-danger not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-label data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -20,7 +20,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted px-1.5 py-1 text-xs font-medium data-inset:pl-7',
|
||||
'text-fg-muted px-1.5 py-1 text-caption font-medium data-inset:pl-7',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -31,7 +31,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
||||
v-bind="forwarded"
|
||||
:class="
|
||||
cn(
|
||||
'focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
'focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-label data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="dropdown-menu-shortcut"
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest',
|
||||
'text-fg-muted group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-caption tracking-widest',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -25,7 +25,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn(
|
||||
'focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-sm data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 flex cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
'focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md px-1.5 py-1 text-label data-inset:pl-7 [&_svg:not([class*=size-])]:size-4 flex cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -63,7 +63,7 @@ function emitChange() {
|
||||
<select
|
||||
v-model="unit"
|
||||
aria-label="Unit"
|
||||
class="bg-transparent font-mono text-xs text-fg-muted outline-none"
|
||||
class="bg-transparent font-mono text-caption text-fg-muted outline-none"
|
||||
:disabled="disabled"
|
||||
@change="emitChange"
|
||||
>
|
||||
@@ -71,6 +71,6 @@ function emitChange() {
|
||||
</select>
|
||||
</InputGroupAddon>
|
||||
</InputGroup>
|
||||
<p v-if="invalid" role="alert" class="mt-1 text-xs text-danger">Enter a number zero or greater.</p>
|
||||
<p v-if="invalid" role="alert" class="mt-1 text-caption text-danger">Enter a number zero or greater.</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="empty-content"
|
||||
:class="
|
||||
cn(
|
||||
'gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance',
|
||||
'gap-2.5 text-label flex w-full max-w-sm min-w-0 flex-col items-center text-balance',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -12,7 +12,7 @@ defineProps<{
|
||||
data-slot="empty-description"
|
||||
:class="
|
||||
cn(
|
||||
'text-sm/relaxed text-fg-muted [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
'text-label/relaxed text-fg-muted [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
$attrs.class ?? '',
|
||||
)
|
||||
"
|
||||
|
||||
@@ -11,7 +11,7 @@ const props = defineProps<{
|
||||
<div
|
||||
data-slot="empty-title"
|
||||
:class="
|
||||
cn('text-sm font-medium tracking-tight cn-font-heading', props.class)
|
||||
cn('text-label font-medium tracking-tight cn-font-heading', props.class)
|
||||
"
|
||||
>
|
||||
<slot />
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="field-description"
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance',
|
||||
'text-fg-muted text-left text-label [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance',
|
||||
'last:mt-0 nth-last-2:-mt-1',
|
||||
'[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
props.class,
|
||||
|
||||
@@ -37,7 +37,7 @@ const content = computed(() => {
|
||||
v-if="$slots.default || content"
|
||||
role="alert"
|
||||
data-slot="field-error"
|
||||
:class="cn('text-danger text-sm font-normal', props.class)"
|
||||
:class="cn('text-danger text-label font-normal', props.class)"
|
||||
>
|
||||
<slot v-if="$slots.default" />
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ const props = withDefaults(
|
||||
:data-variant="variant"
|
||||
:class="
|
||||
cn(
|
||||
'mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base',
|
||||
'mb-1.5 font-medium data-[variant=label]:text-label data-[variant=legend]:text-title',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -14,7 +14,7 @@ const props = defineProps<{
|
||||
:data-content="!!$slots.default"
|
||||
:class="
|
||||
cn(
|
||||
'-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative',
|
||||
'-my-2 h-5 text-label group-data-[variant=outline]/field-group:-mb-2 relative',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="field-label"
|
||||
:class="
|
||||
cn(
|
||||
'gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug',
|
||||
'gap-2 text-label font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -11,7 +11,7 @@ const props = defineProps<{
|
||||
<span
|
||||
:class="
|
||||
cn(
|
||||
'text-fg-muted gap-2 text-sm [&_svg:not([class*=size-])]:size-4 flex items-center [&_svg]:pointer-events-none',
|
||||
'text-fg-muted gap-2 text-label [&_svg:not([class*=size-])]:size-4 flex items-center [&_svg]:pointer-events-none',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -11,7 +11,7 @@ export { default as InputGroupText } from "./InputGroupText.vue";
|
||||
export { default as InputGroupTextarea } from "./InputGroupTextarea.vue";
|
||||
|
||||
export const inputGroupAddonVariants = cva(
|
||||
"text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=size-])]:size-4 flex cursor-text items-center justify-center select-none",
|
||||
"text-muted-foreground h-auto gap-2 py-1.5 text-label font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=size-])]:size-4 flex cursor-text items-center justify-center select-none",
|
||||
{
|
||||
variants: {
|
||||
align: {
|
||||
@@ -34,7 +34,7 @@ export const inputGroupAddonVariants = cva(
|
||||
export type InputGroupVariants = VariantProps<typeof inputGroupAddonVariants>;
|
||||
|
||||
export const inputGroupButtonVariants = cva(
|
||||
"gap-2 text-sm flex items-center shadow-none",
|
||||
"gap-2 text-label flex items-center shadow-none",
|
||||
{
|
||||
variants: {
|
||||
size: {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export const inputClass =
|
||||
"dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-9 rounded-lg border bg-card px-2.5 py-1 text-sm transition-colors pointer-coarse:text-base file:h-6 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-fg-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50";
|
||||
"dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-9 rounded-lg border bg-card px-2.5 py-1 text-label transition-colors pointer-coarse:text-title file:h-6 file:text-label file:font-medium focus-visible:ring-3 aria-invalid:ring-3 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-fg-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50";
|
||||
@@ -11,7 +11,7 @@ const props = defineProps<{
|
||||
<p
|
||||
data-slot="item-description"
|
||||
:class="cn(
|
||||
'text-muted-foreground text-left text-sm leading-normal group-data-[size=xs]/item:text-xs line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
'text-muted-foreground text-left text-label leading-normal group-data-[size=xs]/item:text-caption line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-link',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<div
|
||||
data-slot="item-title"
|
||||
:class="cn('gap-2 text-sm leading-snug font-medium underline-offset-4 cn-font-heading line-clamp-1 flex w-fit items-center', props.class)"
|
||||
:class="cn('gap-2 text-label leading-snug font-medium underline-offset-4 cn-font-heading line-clamp-1 flex w-fit items-center', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@ export { default as ItemSeparator } from './ItemSeparator.vue'
|
||||
export { default as ItemTitle } from './ItemTitle.vue'
|
||||
|
||||
export const itemVariants = cva(
|
||||
'[a]:hover:bg-muted rounded-lg border text-sm group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring [a]:transition-colors',
|
||||
'[a]:hover:bg-muted rounded-lg border text-label group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring [a]:transition-colors',
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<kbd
|
||||
data-slot="kbd"
|
||||
:class="cn('bg-muted text-fg-muted in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-xs font-medium [&_svg:not([class*=size-])]:size-3 pointer-events-none inline-flex items-center justify-center select-none', props.class)"
|
||||
:class="cn('bg-muted text-fg-muted in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-caption font-medium [&_svg:not([class*=size-])]:size-3 pointer-events-none inline-flex items-center justify-center select-none', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</kbd>
|
||||
|
||||
@@ -16,7 +16,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
||||
v-bind="delegatedProps"
|
||||
:class="
|
||||
cn(
|
||||
'gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed',
|
||||
'gap-2 text-label leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -21,7 +21,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
:as="as"
|
||||
:as-child="asChild"
|
||||
:class="cn(
|
||||
'text-sm gap-2 group/message relative flex w-full min-w-0 data-[align=end]:flex-row-reverse',
|
||||
'text-label gap-2 group/message relative flex w-full min-w-0 data-[align=end]:flex-row-reverse',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -18,7 +18,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
:as="as"
|
||||
:as-child="asChild"
|
||||
:class="cn(
|
||||
'text-xs font-medium text-muted-foreground px-3 group-has-data-[variant=ghost]/message:px-0 flex max-w-full min-w-0 items-center group-data-[align=end]/message:justify-end',
|
||||
'text-caption font-medium text-muted-foreground px-3 group-has-data-[variant=ghost]/message:px-0 flex max-w-full min-w-0 items-center group-data-[align=end]/message:justify-end',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -18,7 +18,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
:as="as"
|
||||
:as-child="asChild"
|
||||
:class="cn(
|
||||
'text-xs font-medium text-muted-foreground px-3 group-has-data-[variant=ghost]/message:px-0 flex max-w-full min-w-0 items-center',
|
||||
'text-caption font-medium text-muted-foreground px-3 group-has-data-[variant=ghost]/message:px-0 flex max-w-full min-w-0 items-center',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -4,7 +4,7 @@ defineProps<{ rows: Row[] }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<dl class="grid grid-cols-[minmax(6.5rem,max-content)_minmax(0,1fr)] gap-x-3 gap-y-2 text-xs">
|
||||
<dl class="grid grid-cols-[minmax(6.5rem,max-content)_minmax(0,1fr)] gap-x-3 gap-y-2 text-caption">
|
||||
<template v-for="row in rows" :key="row.label">
|
||||
<dt class="leading-5 text-fg-subtle [overflow-wrap:anywhere]">{{ row.label }}</dt>
|
||||
<dd class="min-w-0 leading-5 [overflow-wrap:anywhere]" :class="row.mono && 'font-mono'">
|
||||
|
||||
@@ -38,7 +38,7 @@ const delegatedProps = reactiveOmit(props, 'class', 'size')
|
||||
v-bind="{ ...$attrs, ...delegatedProps }"
|
||||
v-model="modelValue"
|
||||
data-slot="native-select"
|
||||
class="border-input placeholder:text-fg-muted selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-lg border bg-card py-1 pr-8 pl-2.5 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed"
|
||||
class="border-input placeholder:text-fg-muted selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-lg border bg-card py-1 pr-8 pl-2.5 text-label transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 outline-none disabled:pointer-events-none disabled:cursor-not-allowed"
|
||||
:data-size="props.size ?? 'default'"
|
||||
>
|
||||
<slot />
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
<NumberFieldInput
|
||||
data-slot="input"
|
||||
:class="cn(
|
||||
'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-9 rounded-lg border bg-card px-2.5 py-1 text-sm transition-colors pointer-coarse:text-base file:h-6 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 w-full min-w-0 text-center outline-none placeholder:text-fg-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',
|
||||
'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-9 rounded-lg border bg-card px-2.5 py-1 text-label transition-colors pointer-coarse:text-title file:h-6 file:text-label file:font-medium focus-visible:ring-3 aria-invalid:ring-3 w-full min-w-0 text-center outline-none placeholder:text-fg-muted disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',
|
||||
props.class,
|
||||
)"
|
||||
/>
|
||||
|
||||
@@ -30,7 +30,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
||||
v-bind="{ ...$attrs, ...forwarded }"
|
||||
:class="
|
||||
cn(
|
||||
'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 max-w-(--reka-popover-content-available-width) origin-(--reka-popover-content-transform-origin) outline-hidden',
|
||||
'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-label shadow-md ring-1 duration-100 z-50 w-72 max-w-(--reka-popover-content-available-width) origin-(--reka-popover-content-transform-origin) outline-hidden',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<div
|
||||
data-slot="popover-header"
|
||||
:class="cn('flex flex-col gap-0.5 text-sm', props.class)"
|
||||
:class="cn('flex flex-col gap-0.5 text-label', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -147,7 +147,7 @@ onBeforeUnmount(() => {
|
||||
:data-type="type"
|
||||
:data-unchecked="checked ? undefined : ''"
|
||||
:class="cn(
|
||||
'border-input dark:bg-input/20 hover:bg-muted/50 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted data-invalid:border-destructive has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-sm has-[>input:focus-visible]:ring-3 group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start text-start transition-colors outline-none select-none',
|
||||
'border-input dark:bg-input/20 hover:bg-muted/50 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted data-invalid:border-destructive has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-label has-[>input:focus-visible]:ring-3 group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start text-start transition-colors outline-none select-none',
|
||||
'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',
|
||||
props.class,
|
||||
)"
|
||||
@@ -190,7 +190,7 @@ onBeforeUnmount(() => {
|
||||
v-if="shortcut"
|
||||
aria-hidden="true"
|
||||
data-slot="questionnaire-choice-shortcut"
|
||||
class="border-input bg-background text-muted-foreground size-5 translate-y-[--spacing(0.45)] group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 items-center justify-center rounded-md border font-mono text-[0.625rem] font-medium leading-none pointer-events-none ms-auto hidden shrink-0 group-data-[shortcut]/questionnaire-choice:inline-flex"
|
||||
class="border-input bg-background text-muted-foreground size-5 translate-y-[--spacing(0.45)] group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 items-center justify-center rounded-md border font-mono text-micro font-medium leading-none pointer-events-none ms-auto hidden shrink-0 group-data-[shortcut]/questionnaire-choice:inline-flex"
|
||||
>
|
||||
{{ shortcut }}
|
||||
</span>
|
||||
|
||||
@@ -52,7 +52,7 @@ onBeforeUnmount(() => unregisterDescription())
|
||||
data-slot="questionnaire-description"
|
||||
:as="props.as"
|
||||
:as-child="props.asChild"
|
||||
:class="cn('text-sm text-pretty text-muted-foreground', props.class)"
|
||||
:class="cn('text-label text-pretty text-muted-foreground', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
|
||||
@@ -35,7 +35,7 @@ onBeforeUnmount(unregisterError)
|
||||
:data-invalid="item.invalid.value ? '' : undefined"
|
||||
:hidden="!item.invalid.value"
|
||||
:role="item.invalid.value ? 'alert' : undefined"
|
||||
:class="cn('mt-2 text-sm text-destructive', props.class)"
|
||||
:class="cn('mt-2 text-label text-destructive', props.class)"
|
||||
>
|
||||
<slot :invalid="item.invalid.value">
|
||||
{{ fallback }}
|
||||
|
||||
@@ -150,7 +150,7 @@ onBeforeUnmount(() => {
|
||||
:type="props.type"
|
||||
:value="value"
|
||||
:class="cn(
|
||||
'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base focus-visible:ring-3 aria-invalid:ring-3 md:text-sm min-h-11 w-full min-w-0 transition-[color,box-shadow,background-color] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-0',
|
||||
'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-title focus-visible:ring-3 aria-invalid:ring-3 md:text-label min-h-11 w-full min-w-0 transition-[color,box-shadow,background-color] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-0',
|
||||
'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',
|
||||
props.class,
|
||||
)"
|
||||
|
||||
@@ -35,7 +35,7 @@ const label = computed(() =>
|
||||
:data-last="root.last.value ? '' : undefined"
|
||||
:data-total="root.total.value"
|
||||
:class="cn(
|
||||
'text-xs min-h-[1lh] w-fit min-w-[14ch] font-medium text-muted-foreground tabular-nums',
|
||||
'text-caption min-h-[1lh] w-fit min-w-[14ch] font-medium text-muted-foreground tabular-nums',
|
||||
props.class,
|
||||
)"
|
||||
>
|
||||
|
||||
@@ -46,7 +46,7 @@ onBeforeUnmount(() => unregisterTitle?.())
|
||||
data-slot="questionnaire-title"
|
||||
:as="props.as"
|
||||
:as-child="props.asChild"
|
||||
:class="cn('text-base leading-snug font-medium [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4 cn-font-heading text-pretty', props.class)"
|
||||
:class="cn('text-title leading-snug font-medium [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4 cn-font-heading text-pretty', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
|
||||
@@ -26,9 +26,9 @@ defineEmits<{ change: [] }>();
|
||||
<span class="min-w-0 flex-1 truncate">{{ secretKey }}</span>
|
||||
<Button variant="ghost" size="sm" class="h-8" :disabled="disabled" @click="$emit('change')">Change</Button>
|
||||
</div>
|
||||
<p v-if="resolved === true" class="flex items-center gap-1.5 text-xs text-ok">
|
||||
<p v-if="resolved === true" class="flex items-center gap-1.5 text-caption text-ok">
|
||||
<CircleCheck class="size-3.5" aria-hidden="true" /> Secret available</p>
|
||||
<p v-else-if="resolved === false" class="flex items-center gap-1.5 text-xs text-danger">
|
||||
<p v-else-if="resolved === false" class="flex items-center gap-1.5 text-caption text-danger">
|
||||
<CircleAlert class="size-3.5" aria-hidden="true" /> No secret at this key. Store it in {{ engine }} or change the key.</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -27,7 +27,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn(
|
||||
'focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*=size-])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
'focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-label [&_svg:not([class*=size-])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
Loaded 100 of 196 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user