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>
|
<TraceIcon>
|
||||||
<CircleX v-if="failed" />
|
<CircleX v-if="failed" />
|
||||||
<Spinner v-else-if="running" />
|
<Spinner v-else-if="running" />
|
||||||
<CircleCheck v-else class="text-success" />
|
<CircleCheck v-else class="text-ok" />
|
||||||
</TraceIcon>
|
</TraceIcon>
|
||||||
<span class="font-mono text-foreground">{{ name }}</span>
|
<span class="font-mono text-foreground">{{ name }}</span>
|
||||||
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
||||||
@@ -101,7 +101,7 @@ const detail = computed(() =>
|
|||||||
<TraceIcon>
|
<TraceIcon>
|
||||||
<CircleX v-if="failed" />
|
<CircleX v-if="failed" />
|
||||||
<Spinner v-else-if="running" />
|
<Spinner v-else-if="running" />
|
||||||
<CircleCheck v-else class="text-success" />
|
<CircleCheck v-else class="text-ok" />
|
||||||
</TraceIcon>
|
</TraceIcon>
|
||||||
<span class="font-mono text-foreground">{{ name }}</span>
|
<span class="font-mono text-foreground">{{ name }}</span>
|
||||||
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
<TraceTitle class="font-mono text-caption">{{ argument }}</TraceTitle>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
|||||||
v-bind="delegatedProps"
|
v-bind="delegatedProps"
|
||||||
:class="
|
:class="
|
||||||
cn(
|
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,
|
props.class,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const props = defineProps<{
|
|||||||
data-slot="alert-title"
|
data-slot="alert-title"
|
||||||
:class="
|
:class="
|
||||||
cn(
|
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,
|
props.class,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const props = withDefaults(
|
|||||||
data-slot="card-title"
|
data-slot="card-title"
|
||||||
:class="
|
:class="
|
||||||
cn(
|
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,
|
props.class,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|||||||
data-slot="dialog-title"
|
data-slot="dialog-title"
|
||||||
v-bind="forwardedProps"
|
v-bind="forwardedProps"
|
||||||
:class="
|
:class="
|
||||||
cn('text-title leading-none font-medium cn-font-heading', props.class)
|
cn('text-title leading-none font-medium', props.class)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const props = withDefaults(
|
|||||||
:is="props.as"
|
:is="props.as"
|
||||||
data-slot="empty-title"
|
data-slot="empty-title"
|
||||||
:class="
|
:class="
|
||||||
cn('text-label font-medium tracking-tight cn-font-heading', props.class)
|
cn('text-label font-medium tracking-tight', props.class)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export { default as InputGroupText } from "./InputGroupText.vue";
|
|||||||
export { default as InputGroupTextarea } from "./InputGroupTextarea.vue";
|
export { default as InputGroupTextarea } from "./InputGroupTextarea.vue";
|
||||||
|
|
||||||
export const inputGroupAddonVariants = cva(
|
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: {
|
variants: {
|
||||||
align: {
|
align: {
|
||||||
@@ -38,10 +38,10 @@ export const inputGroupButtonVariants = cva(
|
|||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
size: {
|
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: "",
|
sm: "",
|
||||||
"icon-xs":
|
"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",
|
"icon-sm": "size-8 p-0 has-[>svg]:p-0",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
data-slot="item-title"
|
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 />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
data-slot="popover-title"
|
data-slot="popover-title"
|
||||||
:class="cn('font-medium cn-font-heading', props.class)"
|
:class="cn('font-medium', props.class)"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ onBeforeUnmount(() => unregisterTitle?.())
|
|||||||
data-slot="questionnaire-title"
|
data-slot="questionnaire-title"
|
||||||
:as="props.as"
|
:as="props.as"
|
||||||
:as-child="props.asChild"
|
: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 />
|
<slot />
|
||||||
</Primitive>
|
</Primitive>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const delegatedProps = reactiveOmit(props, "class");
|
|||||||
<DialogTitle
|
<DialogTitle
|
||||||
data-slot="sheet-title"
|
data-slot="sheet-title"
|
||||||
:class="
|
: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"
|
v-bind="delegatedProps"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ const delegatedProps = reactiveOmit(props, 'class', 'toastOptions')
|
|||||||
'--normal-bg': 'var(--popover)',
|
'--normal-bg': 'var(--popover)',
|
||||||
'--normal-text': 'var(--popover-foreground)',
|
'--normal-text': 'var(--popover-foreground)',
|
||||||
'--normal-border': 'var(--border)',
|
'--normal-border': 'var(--border)',
|
||||||
'--border-radius': 'var(--radius)',
|
'--border-radius': 'var(--radius-lg)',
|
||||||
'--gray2': 'hsl(var(--popover) / 0.9)',
|
'--gray2': '#2b2d33',
|
||||||
'--gray3': 'var(--border)',
|
'--gray3': 'var(--border)',
|
||||||
'--gray4': 'var(--border)',
|
'--gray4': 'var(--border)',
|
||||||
'--gray5': '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"
|
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>
|
<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>
|
||||||
<div v-if="repository" class="space-y-1 px-3 py-2">
|
<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>
|
<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"
|
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>
|
<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>
|
</div>
|
||||||
<p v-if="!inputs.length && !repository" class="px-3 py-2 text-caption text-fg-subtle">No inputs.</p>
|
<p v-if="!inputs.length && !repository" class="px-3 py-2 text-caption text-fg-subtle">No inputs.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user