fix(ui): dead tokens replaced or deleted — text-ok, --radius-lg, real surface (#1740)
text-success was not a token (now text-ok) in ChatToolCall and BindEvent; var(--radius) is undefined (now var(--radius-lg)) in input-group and Sonner; Sonner's hsl(var(--popover) / 0.9) wrapped a hex (now a plain hex); the undefined cn-font-heading class is deleted from the nine title components.
This commit is contained in:
13 files changed
+18
-18
No files matched your search
@@ -84,7 +84,7 @@ const detail = computed(() =>
|
||||
<TraceIcon>
|
||||
<CircleX v-if="failed" />
|
||||
<Spinner v-else-if="running" />
|
||||
<CircleCheck v-else class="text-success" />
|
||||
<CircleCheck v-else class="text-ok" />
|
||||
</TraceIcon>
|
||||
<span class="font-mono text-foreground">{{ name }}</span>
|
||||
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
||||
@@ -101,7 +101,7 @@ const detail = computed(() =>
|
||||
<TraceIcon>
|
||||
<CircleX v-if="failed" />
|
||||
<Spinner v-else-if="running" />
|
||||
<CircleCheck v-else class="text-success" />
|
||||
<CircleCheck v-else class="text-ok" />
|
||||
</TraceIcon>
|
||||
<span class="font-mono text-foreground">{{ name }}</span>
|
||||
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
||||
|
||||
@@ -18,7 +18,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
||||
v-bind="delegatedProps"
|
||||
:class="
|
||||
cn(
|
||||
'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',
|
||||
'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',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
||||
data-slot="alert-title"
|
||||
:class="
|
||||
cn(
|
||||
'font-medium group-has-[>svg]/alert:col-start-2 cn-font-heading [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
|
||||
'font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -18,7 +18,7 @@ const props = withDefaults(
|
||||
data-slot="card-title"
|
||||
:class="
|
||||
cn(
|
||||
'text-title leading-snug font-medium group-data-[size=sm]/card:text-label cn-font-heading',
|
||||
'text-title leading-snug font-medium group-data-[size=sm]/card:text-label',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
|
||||
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
||||
data-slot="dialog-title"
|
||||
v-bind="forwardedProps"
|
||||
:class="
|
||||
cn('text-title leading-none font-medium cn-font-heading', props.class)
|
||||
cn('text-title leading-none font-medium', props.class)
|
||||
"
|
||||
>
|
||||
<slot />
|
||||
|
||||
@@ -17,7 +17,7 @@ const props = withDefaults(
|
||||
:is="props.as"
|
||||
data-slot="empty-title"
|
||||
:class="
|
||||
cn('text-label font-medium tracking-tight cn-font-heading', props.class)
|
||||
cn('text-label font-medium tracking-tight', props.class)
|
||||
"
|
||||
>
|
||||
<slot />
|
||||
|
||||
@@ -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-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",
|
||||
"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-lg)-5px)] [&>svg:not([class*=size-])]:size-4 flex cursor-text items-center justify-center select-none",
|
||||
{
|
||||
variants: {
|
||||
align: {
|
||||
@@ -38,10 +38,10 @@ export const inputGroupButtonVariants = cva(
|
||||
{
|
||||
variants: {
|
||||
size: {
|
||||
xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*=size-])]:size-3.5",
|
||||
xs: "h-6 gap-1 rounded-[calc(var(--radius-lg)-3px)] px-1.5 [&>svg:not([class*=size-])]:size-3.5",
|
||||
sm: "",
|
||||
"icon-xs":
|
||||
"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0",
|
||||
"size-6 rounded-[calc(var(--radius-lg)-3px)] p-0 has-[>svg]:p-0",
|
||||
"icon-sm": "size-8 p-0 has-[>svg]:p-0",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<div
|
||||
data-slot="item-title"
|
||||
: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)"
|
||||
:class="cn('gap-2 text-label leading-snug font-medium underline-offset-4 line-clamp-1 flex w-fit items-center', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
||||
<template>
|
||||
<div
|
||||
data-slot="popover-title"
|
||||
:class="cn('font-medium cn-font-heading', props.class)"
|
||||
:class="cn('font-medium', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,7 @@ onBeforeUnmount(() => unregisterTitle?.())
|
||||
data-slot="questionnaire-title"
|
||||
:as="props.as"
|
||||
:as-child="props.asChild"
|
||||
:class="cn('text-title 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 text-pretty', props.class)"
|
||||
>
|
||||
<slot />
|
||||
</Primitive>
|
||||
|
||||
@@ -16,7 +16,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
||||
<DialogTitle
|
||||
data-slot="sheet-title"
|
||||
:class="
|
||||
cn('text-foreground text-title font-medium cn-font-heading', props.class)
|
||||
cn('text-foreground text-title font-medium', props.class)
|
||||
"
|
||||
v-bind="delegatedProps"
|
||||
>
|
||||
|
||||
@@ -24,8 +24,8 @@ const delegatedProps = reactiveOmit(props, 'class', 'toastOptions')
|
||||
'--normal-bg': 'var(--popover)',
|
||||
'--normal-text': 'var(--popover-foreground)',
|
||||
'--normal-border': 'var(--border)',
|
||||
'--border-radius': 'var(--radius)',
|
||||
'--gray2': 'hsl(var(--popover) / 0.9)',
|
||||
'--border-radius': 'var(--radius-lg)',
|
||||
'--gray2': '#2b2d33',
|
||||
'--gray3': 'var(--border)',
|
||||
'--gray4': 'var(--border)',
|
||||
'--gray5': 'var(--border)',
|
||||
|
||||
@@ -344,7 +344,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
class="h-8 w-full font-mono text-caption"
|
||||
/>
|
||||
<Alert v-if="rows[name]!.from === 'path' && resolved(name).failure" variant="destructive"><AlertDescription>{{ resolved(name).failure }}</AlertDescription></Alert>
|
||||
<p v-else-if="rows[name]!.from === 'path' && resolved(name).value !== undefined" class="truncate font-mono text-caption text-success" :title="resolved(name).value">{{ resolved(name).value }}</p>
|
||||
<p v-else-if="rows[name]!.from === 'path' && resolved(name).value !== undefined" class="truncate font-mono text-caption text-ok" :title="resolved(name).value">{{ resolved(name).value }}</p>
|
||||
</div>
|
||||
<div v-if="repository" class="space-y-1 px-3 py-2">
|
||||
<div class="text-caption" title="Optional: owner/name of a configured repository; blank uses the configured one">Repository</div>
|
||||
@@ -356,7 +356,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
class="h-8 w-full font-mono text-caption"
|
||||
/>
|
||||
<Alert v-if="resolved(REPOSITORY_FIELD).failure" variant="destructive"><AlertDescription>{{ resolved(REPOSITORY_FIELD).failure }}</AlertDescription></Alert>
|
||||
<p v-else-if="resolved(REPOSITORY_FIELD).value !== undefined" class="truncate font-mono text-caption text-success">{{ resolved(REPOSITORY_FIELD).value }}</p>
|
||||
<p v-else-if="resolved(REPOSITORY_FIELD).value !== undefined" class="truncate font-mono text-caption text-ok">{{ resolved(REPOSITORY_FIELD).value }}</p>
|
||||
</div>
|
||||
<p v-if="!inputs.length && !repository" class="px-3 py-2 text-caption text-fg-subtle">No inputs.</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user