@sero-ai/ui 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +628 -615
- package/.turbo/turbo-test.log +18 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/components/ai-elements/agent.cjs +6 -6
- package/dist/components/ai-elements/agent.js +6 -6
- package/dist/components/ai-elements/artifact.cjs +2 -2
- package/dist/components/ai-elements/artifact.js +2 -2
- package/dist/components/ai-elements/attachments.cjs +2 -2
- package/dist/components/ai-elements/attachments.js +2 -2
- package/dist/components/ai-elements/chain-of-thought.cjs +2 -2
- package/dist/components/ai-elements/chain-of-thought.js +2 -2
- package/dist/components/ai-elements/code-block.cjs +7 -5
- package/dist/components/ai-elements/code-block.d.cts +2 -1
- package/dist/components/ai-elements/code-block.d.ts +2 -1
- package/dist/components/ai-elements/code-block.js +7 -5
- package/dist/components/ai-elements/commit.cjs +2 -2
- package/dist/components/ai-elements/commit.js +2 -2
- package/dist/components/ai-elements/confirmation.cjs +1 -1
- package/dist/components/ai-elements/confirmation.js +1 -1
- package/dist/components/ai-elements/conversation.cjs +2 -2
- package/dist/components/ai-elements/conversation.js +2 -2
- package/dist/components/ai-elements/environment-variables.cjs +3 -3
- package/dist/components/ai-elements/environment-variables.js +3 -3
- package/dist/components/ai-elements/file-tree.cjs +1 -1
- package/dist/components/ai-elements/file-tree.js +1 -1
- package/dist/components/ai-elements/inline-citation.cjs +3 -3
- package/dist/components/ai-elements/inline-citation.js +3 -3
- package/dist/components/ai-elements/jsx-preview.cjs +1 -1
- package/dist/components/ai-elements/jsx-preview.js +1 -1
- package/dist/components/ai-elements/message.cjs +1 -1
- package/dist/components/ai-elements/message.js +1 -1
- package/dist/components/ai-elements/package-info.cjs +4 -4
- package/dist/components/ai-elements/package-info.js +4 -4
- package/dist/components/ai-elements/prompt-input-context.cjs +2 -3
- package/dist/components/ai-elements/prompt-input-context.js +2 -3
- package/dist/components/ai-elements/queue.cjs +2 -2
- package/dist/components/ai-elements/queue.js +2 -2
- package/dist/components/ai-elements/reasoning.cjs +2 -2
- package/dist/components/ai-elements/reasoning.js +2 -2
- package/dist/components/ai-elements/sandbox.cjs +3 -3
- package/dist/components/ai-elements/sandbox.js +3 -3
- package/dist/components/ai-elements/schema-display.cjs +12 -12
- package/dist/components/ai-elements/schema-display.js +12 -12
- package/dist/components/ai-elements/speech-input.cjs +18 -2
- package/dist/components/ai-elements/speech-input.js +16 -0
- package/dist/components/ai-elements/stack-trace.cjs +1 -1
- package/dist/components/ai-elements/stack-trace.js +1 -1
- package/dist/components/ai-elements/task.cjs +3 -3
- package/dist/components/ai-elements/task.js +3 -3
- package/dist/components/ai-elements/terminal.cjs +2 -2
- package/dist/components/ai-elements/terminal.js +2 -2
- package/dist/components/ai-elements/test-results.cjs +4 -4
- package/dist/components/ai-elements/test-results.js +4 -4
- package/dist/components/ai-elements/tool.cjs +4 -4
- package/dist/components/ai-elements/tool.js +4 -4
- package/dist/components/ai-elements/transcription.cjs +1 -1
- package/dist/components/ai-elements/transcription.js +1 -1
- package/dist/components/ai-elements/web-preview.cjs +2 -2
- package/dist/components/ai-elements/web-preview.js +2 -2
- package/dist/components/context-editor/CapabilitySection.cjs +2 -2
- package/dist/components/context-editor/CapabilitySection.js +2 -2
- package/dist/components/context-editor/ContextEditor.cjs +2 -2
- package/dist/components/context-editor/ContextEditor.js +2 -2
- package/dist/components/context-editor/PresetBar.cjs +3 -3
- package/dist/components/context-editor/PresetBar.js +3 -3
- package/dist/components/context-editor/SystemPromptSection.cjs +4 -4
- package/dist/components/context-editor/SystemPromptSection.js +4 -4
- package/dist/components/context-editor/parts.cjs +6 -6
- package/dist/components/context-editor/parts.js +6 -6
- package/dist/components/dashboard/activity-list.cjs +2 -2
- package/dist/components/dashboard/activity-list.js +2 -2
- package/dist/components/dashboard/empty-state.cjs +1 -1
- package/dist/components/dashboard/empty-state.js +1 -1
- package/dist/components/dashboard/item-list.cjs +2 -2
- package/dist/components/dashboard/item-list.js +2 -2
- package/dist/components/dashboard/layout.cjs +1 -1
- package/dist/components/dashboard/layout.js +1 -1
- package/dist/components/dashboard/metric.cjs +1 -1
- package/dist/components/dashboard/metric.js +1 -1
- package/dist/components/dashboard/stale-indicator.cjs +1 -1
- package/dist/components/dashboard/stale-indicator.js +1 -1
- package/dist/components/dashboard/typography.cjs +4 -4
- package/dist/components/dashboard/typography.d.cts +1 -1
- package/dist/components/dashboard/typography.d.ts +1 -1
- package/dist/components/dashboard/typography.js +4 -4
- package/dist/components/model-selection/available-model-picker.cjs +6 -6
- package/dist/components/model-selection/available-model-picker.js +6 -6
- package/dist/components/model-selection/thinking-level-picker.cjs +1 -1
- package/dist/components/model-selection/thinking-level-picker.js +1 -1
- package/dist/components/model-selection/thinking-picker.cjs +70 -0
- package/dist/components/model-selection/thinking-picker.d.cts +12 -0
- package/dist/components/model-selection/thinking-picker.d.ts +12 -0
- package/dist/components/model-selection/thinking-picker.js +70 -0
- package/dist/components/ui/accordion.cjs +2 -2
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui/alert-dialog.cjs +4 -2
- package/dist/components/ui/alert-dialog.js +4 -2
- package/dist/components/ui/alert.cjs +2 -2
- package/dist/components/ui/alert.js +2 -2
- package/dist/components/ui/avatar.cjs +2 -2
- package/dist/components/ui/avatar.js +2 -2
- package/dist/components/ui/breadcrumb.cjs +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.cjs +1 -1
- package/dist/components/ui/button-group.js +1 -1
- package/dist/components/ui/button.cjs +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.cjs +2 -2
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/card.cjs +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/carousel.cjs +3 -2
- package/dist/components/ui/carousel.js +2 -1
- package/dist/components/ui/chart.cjs +36 -27
- package/dist/components/ui/chart.d.cts +21 -17
- package/dist/components/ui/chart.d.ts +21 -17
- package/dist/components/ui/chart.js +30 -21
- package/dist/components/ui/combobox.cjs +7 -5
- package/dist/components/ui/combobox.js +7 -5
- package/dist/components/ui/command.cjs +3 -3
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/context-menu.cjs +10 -7
- package/dist/components/ui/context-menu.js +10 -7
- package/dist/components/ui/dialog.cjs +4 -2
- package/dist/components/ui/dialog.js +4 -2
- package/dist/components/ui/drawer.cjs +4 -2
- package/dist/components/ui/drawer.js +4 -2
- package/dist/components/ui/dropdown-menu.cjs +10 -7
- package/dist/components/ui/dropdown-menu.js +10 -7
- package/dist/components/ui/empty.cjs +2 -2
- package/dist/components/ui/empty.js +2 -2
- package/dist/components/ui/field.cjs +5 -5
- package/dist/components/ui/field.js +5 -5
- package/dist/components/ui/form.cjs +2 -2
- package/dist/components/ui/form.js +2 -2
- package/dist/components/ui/hover-card.cjs +3 -1
- package/dist/components/ui/hover-card.js +3 -1
- package/dist/components/ui/input-group.cjs +3 -3
- package/dist/components/ui/input-group.js +3 -3
- package/dist/components/ui/input-otp.cjs +1 -1
- package/dist/components/ui/input-otp.js +1 -1
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.cjs +3 -3
- package/dist/components/ui/item.js +3 -3
- package/dist/components/ui/label.cjs +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/menubar.cjs +9 -7
- package/dist/components/ui/menubar.js +9 -7
- package/dist/components/ui/native-select.cjs +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.cjs +2 -2
- package/dist/components/ui/navigation-menu.js +2 -2
- package/dist/components/ui/plugin-safety-disclaimer.cjs +1 -1
- package/dist/components/ui/plugin-safety-disclaimer.js +1 -1
- package/dist/components/ui/popover.cjs +4 -2
- package/dist/components/ui/popover.js +4 -2
- package/dist/components/ui/select.cjs +5 -3
- package/dist/components/ui/select.js +5 -3
- package/dist/components/ui/sheet.cjs +4 -2
- package/dist/components/ui/sheet.js +4 -2
- package/dist/components/ui/sidebar.cjs +5 -5
- package/dist/components/ui/sidebar.js +5 -5
- package/dist/components/ui/table.cjs +2 -2
- package/dist/components/ui/table.js +2 -2
- package/dist/components/ui/tabs.cjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/textarea.cjs +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/toggle.cjs +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/tooltip.cjs +3 -1
- package/dist/components/ui/tooltip.js +3 -1
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/plugin-style-scope-context.cjs +10 -0
- package/dist/plugin-style-scope-context.d.cts +13 -0
- package/dist/plugin-style-scope-context.d.ts +13 -0
- package/dist/plugin-style-scope-context.js +10 -0
- package/dist/plugin-style-scope.cjs +25 -0
- package/dist/plugin-style-scope.d.cts +11 -0
- package/dist/plugin-style-scope.d.ts +11 -0
- package/dist/plugin-style-scope.js +25 -0
- package/dist/reference.cjs +15 -15
- package/dist/reference.js +15 -15
- package/dist/styles/globals.css +22 -3
- package/dist/styles/plugin-theme.css +80 -0
- package/dist/styles/plugin.css +14 -2
- package/package.json +2 -2
- package/src/components/ai-elements/agent.tsx +6 -6
- package/src/components/ai-elements/artifact.tsx +2 -2
- package/src/components/ai-elements/attachments.tsx +2 -2
- package/src/components/ai-elements/chain-of-thought.tsx +2 -2
- package/src/components/ai-elements/code-block.tsx +6 -3
- package/src/components/ai-elements/commit.tsx +2 -2
- package/src/components/ai-elements/confirmation.tsx +1 -1
- package/src/components/ai-elements/conversation.tsx +2 -2
- package/src/components/ai-elements/environment-variables.tsx +3 -3
- package/src/components/ai-elements/file-tree.tsx +1 -1
- package/src/components/ai-elements/inline-citation.tsx +3 -3
- package/src/components/ai-elements/jsx-preview.tsx +1 -1
- package/src/components/ai-elements/message.tsx +1 -1
- package/src/components/ai-elements/package-info.tsx +4 -4
- package/src/components/ai-elements/prompt-input-context.tsx +3 -2
- package/src/components/ai-elements/queue.tsx +2 -2
- package/src/components/ai-elements/reasoning.tsx +2 -2
- package/src/components/ai-elements/sandbox.tsx +3 -3
- package/src/components/ai-elements/schema-display.tsx +12 -12
- package/src/components/ai-elements/speech-input.tsx +17 -0
- package/src/components/ai-elements/stack-trace.tsx +1 -1
- package/src/components/ai-elements/task.tsx +3 -3
- package/src/components/ai-elements/terminal.tsx +2 -2
- package/src/components/ai-elements/test-results.tsx +4 -4
- package/src/components/ai-elements/tool.tsx +4 -4
- package/src/components/ai-elements/transcription.tsx +1 -1
- package/src/components/ai-elements/web-preview.tsx +2 -2
- package/src/components/context-editor/CapabilitySection.tsx +2 -2
- package/src/components/context-editor/ContextEditor.tsx +2 -2
- package/src/components/context-editor/PresetBar.tsx +3 -3
- package/src/components/context-editor/SystemPromptSection.tsx +4 -4
- package/src/components/context-editor/parts.tsx +6 -6
- package/src/components/dashboard/activity-list.tsx +2 -2
- package/src/components/dashboard/empty-state.tsx +1 -1
- package/src/components/dashboard/item-list.tsx +2 -2
- package/src/components/dashboard/layout.tsx +1 -1
- package/src/components/dashboard/metric.tsx +1 -1
- package/src/components/dashboard/stale-indicator.tsx +1 -1
- package/src/components/dashboard/typography.tsx +5 -5
- package/src/components/model-selection/available-model-picker.tsx +7 -7
- package/src/components/model-selection/thinking-level-picker.tsx +1 -1
- package/src/components/model-selection/thinking-picker.tsx +90 -0
- package/src/components/ui/accordion.tsx +2 -2
- package/src/components/ui/alert-dialog.tsx +4 -2
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +2 -2
- package/src/components/ui/breadcrumb.tsx +1 -1
- package/src/components/ui/button-group.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/calendar.tsx +3 -3
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.tsx +2 -1
- package/src/components/ui/chart.tsx +54 -36
- package/src/components/ui/combobox.tsx +7 -5
- package/src/components/ui/command.tsx +3 -3
- package/src/components/ui/context-menu.tsx +10 -7
- package/src/components/ui/dialog.tsx +4 -2
- package/src/components/ui/drawer.tsx +4 -2
- package/src/components/ui/dropdown-menu.tsx +10 -7
- package/src/components/ui/empty.tsx +2 -2
- package/src/components/ui/field.tsx +5 -5
- package/src/components/ui/form.tsx +2 -2
- package/src/components/ui/hover-card.tsx +3 -1
- package/src/components/ui/input-group.tsx +3 -3
- package/src/components/ui/input-otp.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +3 -3
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +9 -7
- package/src/components/ui/native-select.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +2 -2
- package/src/components/ui/plugin-safety-disclaimer.tsx +1 -1
- package/src/components/ui/popover.tsx +4 -2
- package/src/components/ui/select.tsx +5 -3
- package/src/components/ui/sheet.tsx +4 -2
- package/src/components/ui/sidebar.tsx +5 -5
- package/src/components/ui/table.tsx +2 -2
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +3 -1
- package/src/index.ts +2 -0
- package/src/plugin-style-scope-context.ts +21 -0
- package/src/plugin-style-scope.test.tsx +38 -0
- package/src/plugin-style-scope.tsx +35 -0
- package/src/styles/globals.css +22 -3
- package/src/styles/plugin-theme.css +80 -0
- package/src/styles/plugin.css +14 -2
package/dist/reference.js
CHANGED
|
@@ -226,7 +226,7 @@ function Section({
|
|
|
226
226
|
children: [
|
|
227
227
|
(heading || action) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
228
228
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
|
|
229
|
-
heading && /* @__PURE__ */ jsx2("h3", { className: "truncate text-
|
|
229
|
+
heading && /* @__PURE__ */ jsx2("h3", { className: "truncate text-sm font-semibold uppercase tracking-wider text-[var(--text-muted)]", children: heading }),
|
|
230
230
|
description && /* @__PURE__ */ jsx2("p", { className: "truncate text-xs text-[var(--text-muted)]", children: description })
|
|
231
231
|
] }),
|
|
232
232
|
action && /* @__PURE__ */ jsx2("div", { className: "shrink-0", children: action })
|
|
@@ -263,11 +263,11 @@ import { jsx as jsx3 } from "react/jsx-runtime";
|
|
|
263
263
|
var textVariants = cva2("min-w-0", {
|
|
264
264
|
variants: {
|
|
265
265
|
variant: {
|
|
266
|
-
body: "text-
|
|
267
|
-
label: "text-
|
|
266
|
+
body: "text-base text-[var(--text-primary)]",
|
|
267
|
+
label: "text-sm font-semibold uppercase tracking-wider text-[var(--text-muted)]",
|
|
268
268
|
supporting: "text-xs text-[var(--text-secondary)]",
|
|
269
269
|
muted: "text-xs text-[var(--text-muted)]",
|
|
270
|
-
numeric: "text-
|
|
270
|
+
numeric: "text-base font-semibold tabular-nums text-[var(--text-primary)]"
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
defaultVariants: { variant: "body" }
|
|
@@ -301,7 +301,7 @@ function Text({
|
|
|
301
301
|
}
|
|
302
302
|
var headingSize = {
|
|
303
303
|
sm: "text-xs font-semibold",
|
|
304
|
-
md: "text-
|
|
304
|
+
md: "text-base font-semibold",
|
|
305
305
|
lg: "text-base font-semibold"
|
|
306
306
|
};
|
|
307
307
|
function Heading({
|
|
@@ -384,7 +384,7 @@ function Metric({
|
|
|
384
384
|
children: [
|
|
385
385
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-1.5", children: [
|
|
386
386
|
icon && /* @__PURE__ */ jsx4(Icon, { icon, size: "sm" }),
|
|
387
|
-
/* @__PURE__ */ jsx4("span", { className: "truncate text-
|
|
387
|
+
/* @__PURE__ */ jsx4("span", { className: "truncate text-sm font-medium uppercase tracking-wide text-[var(--text-muted)]", children: label })
|
|
388
388
|
] }),
|
|
389
389
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-baseline gap-1.5", children: [
|
|
390
390
|
/* @__PURE__ */ jsx4(
|
|
@@ -546,7 +546,7 @@ import { cva as cva3 } from "class-variance-authority";
|
|
|
546
546
|
import { Slot } from "radix-ui";
|
|
547
547
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
548
548
|
var itemVariants = cva3(
|
|
549
|
-
"group/item flex items-center border border-transparent text-
|
|
549
|
+
"group/item flex items-center border border-transparent text-base rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
550
550
|
{
|
|
551
551
|
variants: {
|
|
552
552
|
variant: {
|
|
@@ -633,7 +633,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
633
633
|
{
|
|
634
634
|
"data-slot": "item-title",
|
|
635
635
|
className: cn(
|
|
636
|
-
"flex w-fit items-center gap-2 text-
|
|
636
|
+
"flex w-fit items-center gap-2 text-base leading-snug font-medium",
|
|
637
637
|
className
|
|
638
638
|
),
|
|
639
639
|
...props
|
|
@@ -646,7 +646,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
646
646
|
{
|
|
647
647
|
"data-slot": "item-description",
|
|
648
648
|
className: cn(
|
|
649
|
-
"text-muted-foreground line-clamp-2 text-
|
|
649
|
+
"text-muted-foreground line-clamp-2 text-base leading-normal font-normal text-balance",
|
|
650
650
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
651
651
|
className
|
|
652
652
|
),
|
|
@@ -694,7 +694,7 @@ function ItemListItem({
|
|
|
694
694
|
/* @__PURE__ */ jsx8(ItemTitle, { className: "truncate text-xs font-medium text-[var(--text-primary)]", children: primary }),
|
|
695
695
|
secondary && /* @__PURE__ */ jsx8(ItemDescription, { className: "line-clamp-1 text-xs text-[var(--text-muted)]", children: secondary })
|
|
696
696
|
] }),
|
|
697
|
-
trailing && /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-
|
|
697
|
+
trailing && /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-sm tabular-nums text-[var(--text-muted)]", children: trailing }),
|
|
698
698
|
actions && /* @__PURE__ */ jsx8(ItemActions, { children: actions })
|
|
699
699
|
]
|
|
700
700
|
}
|
|
@@ -715,7 +715,7 @@ function ItemList({
|
|
|
715
715
|
...props,
|
|
716
716
|
children: [
|
|
717
717
|
children,
|
|
718
|
-
overflowCount > 0 && /* @__PURE__ */ jsxs5("span", { className: "px-2 text-
|
|
718
|
+
overflowCount > 0 && /* @__PURE__ */ jsxs5("span", { className: "px-2 text-sm text-[var(--text-muted)]", children: [
|
|
719
719
|
"+",
|
|
720
720
|
overflowCount,
|
|
721
721
|
" more"
|
|
@@ -747,7 +747,7 @@ function ActivityListItem({
|
|
|
747
747
|
/* @__PURE__ */ jsxs6("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
748
748
|
/* @__PURE__ */ jsxs6("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
749
749
|
/* @__PURE__ */ jsx9("span", { className: "truncate text-xs text-[var(--text-primary)]", children: label }),
|
|
750
|
-
timestamp && /* @__PURE__ */ jsx9("span", { className: "shrink-0 text-
|
|
750
|
+
timestamp && /* @__PURE__ */ jsx9("span", { className: "shrink-0 text-sm tabular-nums text-[var(--text-muted)]", children: timestamp })
|
|
751
751
|
] }),
|
|
752
752
|
detail && /* @__PURE__ */ jsx9("span", { className: "line-clamp-1 text-xs text-[var(--text-muted)]", children: detail })
|
|
753
753
|
] })
|
|
@@ -769,7 +769,7 @@ function ActivityList({
|
|
|
769
769
|
...props,
|
|
770
770
|
children: [
|
|
771
771
|
children,
|
|
772
|
-
overflowCount > 0 && /* @__PURE__ */ jsxs6("li", { className: "pl-5 pt-0.5 text-
|
|
772
|
+
overflowCount > 0 && /* @__PURE__ */ jsxs6("li", { className: "pl-5 pt-0.5 text-sm text-[var(--text-muted)]", children: [
|
|
773
773
|
"+",
|
|
774
774
|
overflowCount,
|
|
775
775
|
" more"
|
|
@@ -861,7 +861,7 @@ import { cva as cva4 } from "class-variance-authority";
|
|
|
861
861
|
import { Slot as Slot2 } from "radix-ui";
|
|
862
862
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
863
863
|
var buttonVariants = cva4(
|
|
864
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-
|
|
864
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-base font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
865
865
|
{
|
|
866
866
|
variants: {
|
|
867
867
|
variant: {
|
|
@@ -959,7 +959,7 @@ function StaleIndicator({
|
|
|
959
959
|
{
|
|
960
960
|
"data-slot": "stale-indicator",
|
|
961
961
|
className: cn(
|
|
962
|
-
"flex items-center gap-1.5 text-
|
|
962
|
+
"flex items-center gap-1.5 text-sm text-[var(--text-muted)]",
|
|
963
963
|
className
|
|
964
964
|
),
|
|
965
965
|
...props,
|
package/dist/styles/globals.css
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
/* Typography (themeable) */
|
|
117
117
|
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
118
118
|
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
|
|
119
|
-
--font-size-base:
|
|
119
|
+
--font-size-base: 13px;
|
|
120
120
|
|
|
121
121
|
/* Spacing */
|
|
122
122
|
--space-xs: 4px;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
|
|
133
133
|
/* Sero font sizes (legacy — use Tailwind text-* for new components) */
|
|
134
134
|
--sero-text-xs: 12px;
|
|
135
|
-
--sero-text-
|
|
135
|
+
--sero-text-base: 13px;
|
|
136
136
|
--sero-text-base: 14px;
|
|
137
137
|
--sero-text-lg: 15px;
|
|
138
138
|
--sero-text-xl: 16px;
|
|
@@ -236,6 +236,14 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
@theme inline {
|
|
239
|
+
--text-xs: 0.8rem;
|
|
240
|
+
--text-xs--line-height: 1rem;
|
|
241
|
+
|
|
242
|
+
--text-sm: 0.9rem;
|
|
243
|
+
--text-sm--line-height: 1.2rem;
|
|
244
|
+
|
|
245
|
+
--text-base--line-height: 1.4rem;
|
|
246
|
+
|
|
239
247
|
--radius-sm: calc(var(--radius) - 4px);
|
|
240
248
|
--radius-md: calc(var(--radius) - 2px);
|
|
241
249
|
--radius-lg: var(--radius);
|
|
@@ -483,7 +491,7 @@
|
|
|
483
491
|
}
|
|
484
492
|
|
|
485
493
|
html {
|
|
486
|
-
font-size: var(--font-size-base,
|
|
494
|
+
font-size: var(--font-size-base, 13px);
|
|
487
495
|
font-family: var(--font-sans);
|
|
488
496
|
}
|
|
489
497
|
|
|
@@ -495,3 +503,14 @@ html {
|
|
|
495
503
|
@apply bg-background text-foreground;
|
|
496
504
|
}
|
|
497
505
|
}
|
|
506
|
+
|
|
507
|
+
@media (prefers-reduced-motion: reduce) {
|
|
508
|
+
*,
|
|
509
|
+
*::before,
|
|
510
|
+
*::after {
|
|
511
|
+
animation-duration: 0.01ms !important;
|
|
512
|
+
animation-iteration-count: 1 !important;
|
|
513
|
+
scroll-behavior: auto !important;
|
|
514
|
+
transition-duration: 0.01ms !important;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@theme inline {
|
|
2
|
+
--text-xs: 0.8rem;
|
|
3
|
+
--text-xs--line-height: 1rem;
|
|
4
|
+
|
|
5
|
+
--text-sm: 0.9rem;
|
|
6
|
+
--text-sm--line-height: 1.2rem;
|
|
7
|
+
|
|
8
|
+
--text-base--line-height: 1.4rem;
|
|
9
|
+
|
|
10
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
11
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
12
|
+
--radius-lg: var(--radius);
|
|
13
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
14
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
15
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
16
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
17
|
+
--color-background: var(--background);
|
|
18
|
+
--color-foreground: var(--foreground);
|
|
19
|
+
--color-brand-primary: var(--brand-primary);
|
|
20
|
+
--color-brand-primary-foreground: var(--brand-primary-foreground);
|
|
21
|
+
--color-brand-primary-muted: var(--brand-primary-muted);
|
|
22
|
+
--color-brand-primary-subtle: var(--brand-primary-subtle);
|
|
23
|
+
--color-brand-primary-faint: var(--brand-primary-faint);
|
|
24
|
+
--color-brand-primary-border: var(--brand-primary-border);
|
|
25
|
+
--color-brand-secondary: var(--brand-secondary);
|
|
26
|
+
--color-brand-secondary-foreground: var(--brand-secondary-foreground);
|
|
27
|
+
--color-brand-secondary-muted: var(--brand-secondary-muted);
|
|
28
|
+
--color-brand-secondary-subtle: var(--brand-secondary-subtle);
|
|
29
|
+
--color-brand-secondary-faint: var(--brand-secondary-faint);
|
|
30
|
+
--color-brand-secondary-border: var(--brand-secondary-border);
|
|
31
|
+
--color-status-success: var(--status-success);
|
|
32
|
+
--color-status-success-muted: var(--status-success-muted);
|
|
33
|
+
--color-status-success-subtle: var(--status-success-subtle);
|
|
34
|
+
--color-status-success-faint: var(--status-success-faint);
|
|
35
|
+
--color-status-success-border: var(--status-success-border);
|
|
36
|
+
--color-status-warning: var(--status-warning);
|
|
37
|
+
--color-status-warning-muted: var(--status-warning-muted);
|
|
38
|
+
--color-status-warning-subtle: var(--status-warning-subtle);
|
|
39
|
+
--color-status-warning-faint: var(--status-warning-faint);
|
|
40
|
+
--color-status-warning-border: var(--status-warning-border);
|
|
41
|
+
--color-status-error: var(--status-error);
|
|
42
|
+
--color-status-error-muted: var(--status-error-muted);
|
|
43
|
+
--color-status-error-subtle: var(--status-error-subtle);
|
|
44
|
+
--color-status-error-faint: var(--status-error-faint);
|
|
45
|
+
--color-status-error-border: var(--status-error-border);
|
|
46
|
+
--color-status-info: var(--status-info);
|
|
47
|
+
--color-status-info-muted: var(--status-info-muted);
|
|
48
|
+
--color-status-info-subtle: var(--status-info-subtle);
|
|
49
|
+
--color-status-info-faint: var(--status-info-faint);
|
|
50
|
+
--color-status-info-border: var(--status-info-border);
|
|
51
|
+
--color-card: var(--card);
|
|
52
|
+
--color-card-foreground: var(--card-foreground);
|
|
53
|
+
--color-popover: var(--popover);
|
|
54
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
55
|
+
--color-primary: var(--primary);
|
|
56
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
57
|
+
--color-secondary: var(--secondary);
|
|
58
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
59
|
+
--color-muted: var(--muted);
|
|
60
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
61
|
+
--color-accent: var(--accent);
|
|
62
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
63
|
+
--color-destructive: var(--destructive);
|
|
64
|
+
--color-border: var(--border);
|
|
65
|
+
--color-input: var(--input);
|
|
66
|
+
--color-ring: var(--ring);
|
|
67
|
+
--color-chart-1: var(--chart-1);
|
|
68
|
+
--color-chart-2: var(--chart-2);
|
|
69
|
+
--color-chart-3: var(--chart-3);
|
|
70
|
+
--color-chart-4: var(--chart-4);
|
|
71
|
+
--color-chart-5: var(--chart-5);
|
|
72
|
+
--color-sidebar: var(--sidebar);
|
|
73
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
74
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
75
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
76
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
77
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
78
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
79
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
80
|
+
}
|
package/dist/styles/plugin.css
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
@import "
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "shadcn/tailwind.css";
|
|
4
|
+
@import "./plugin-theme.css";
|
|
5
|
+
|
|
6
|
+
@source "../components";
|
|
7
|
+
|
|
8
|
+
@custom-variant dark (&:is(.dark *));
|
|
2
9
|
|
|
3
10
|
/* Federated Sero plugins should import this file, then add plugin-local
|
|
4
|
-
@source directives.
|
|
11
|
+
@source directives. The seroPluginCssScope Vite helper rewrites this file's
|
|
12
|
+
document-level selectors (:root/:host theme blocks, html/body preflight) to
|
|
13
|
+
:scope, so a plugin's default Tailwind theme and resets are self-contained on
|
|
14
|
+
its own scope root. Sero design tokens (--background, --brand-*, …) are still
|
|
15
|
+
owned by the host: plugin-theme.css references them via @theme inline, so
|
|
16
|
+
they inherit from the host document root. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sero-ai/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Shared UI components, AI elements, and design tokens for the Sero platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-jsx-parser": "^2.4.1",
|
|
71
71
|
"react-resizable-panels": "^4.7.2",
|
|
72
72
|
"react-syntax-highlighter": "^16.1.1",
|
|
73
|
-
"recharts": "
|
|
73
|
+
"recharts": "3.9.2",
|
|
74
74
|
"shiki": "^3.23.0",
|
|
75
75
|
"sonner": "^2.0.7",
|
|
76
76
|
"streamdown": "^2.5.0",
|
|
@@ -41,7 +41,7 @@ export const AgentHeader = memo(
|
|
|
41
41
|
>
|
|
42
42
|
<div className="flex items-center gap-2">
|
|
43
43
|
<BotIcon className="size-4 text-muted-foreground" />
|
|
44
|
-
<span className="font-medium text-
|
|
44
|
+
<span className="font-medium text-base">{name}</span>
|
|
45
45
|
{model && (
|
|
46
46
|
<Badge className="font-mono text-xs" variant="secondary">
|
|
47
47
|
{model}
|
|
@@ -67,10 +67,10 @@ export type AgentInstructionsProps = ComponentProps<"div"> & {
|
|
|
67
67
|
export const AgentInstructions = memo(
|
|
68
68
|
({ className, children, ...props }: AgentInstructionsProps) => (
|
|
69
69
|
<div className={cn("space-y-2", className)} {...props}>
|
|
70
|
-
<span className="font-medium text-muted-foreground text-
|
|
70
|
+
<span className="font-medium text-muted-foreground text-base">
|
|
71
71
|
Instructions
|
|
72
72
|
</span>
|
|
73
|
-
<div className="rounded-md bg-muted/50 p-3 text-muted-foreground text-
|
|
73
|
+
<div className="rounded-md bg-muted/50 p-3 text-muted-foreground text-base">
|
|
74
74
|
<p>{children}</p>
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
@@ -81,7 +81,7 @@ export type AgentToolsProps = ComponentProps<typeof Accordion>;
|
|
|
81
81
|
|
|
82
82
|
export const AgentTools = memo(({ className, ...props }: AgentToolsProps) => (
|
|
83
83
|
<div className={cn("space-y-2", className)}>
|
|
84
|
-
<span className="font-medium text-muted-foreground text-
|
|
84
|
+
<span className="font-medium text-muted-foreground text-base">Tools</span>
|
|
85
85
|
<Accordion className="rounded-md border" {...props} />
|
|
86
86
|
</div>
|
|
87
87
|
));
|
|
@@ -103,7 +103,7 @@ export const AgentTool = memo(
|
|
|
103
103
|
value={value}
|
|
104
104
|
{...props}
|
|
105
105
|
>
|
|
106
|
-
<AccordionTrigger className="px-3 py-2 text-
|
|
106
|
+
<AccordionTrigger className="px-3 py-2 text-base hover:no-underline">
|
|
107
107
|
{tool.description ?? "No description"}
|
|
108
108
|
</AccordionTrigger>
|
|
109
109
|
<AccordionContent className="px-3 pb-3">
|
|
@@ -123,7 +123,7 @@ export type AgentOutputProps = ComponentProps<"div"> & {
|
|
|
123
123
|
export const AgentOutput = memo(
|
|
124
124
|
({ className, schema, ...props }: AgentOutputProps) => (
|
|
125
125
|
<div className={cn("space-y-2", className)} {...props}>
|
|
126
|
-
<span className="font-medium text-muted-foreground text-
|
|
126
|
+
<span className="font-medium text-muted-foreground text-base">
|
|
127
127
|
Output Schema
|
|
128
128
|
</span>
|
|
129
129
|
<div className="rounded-md bg-muted/50">
|
|
@@ -68,7 +68,7 @@ export type ArtifactTitleProps = HTMLAttributes<HTMLParagraphElement>;
|
|
|
68
68
|
|
|
69
69
|
export const ArtifactTitle = ({ className, ...props }: ArtifactTitleProps) => (
|
|
70
70
|
<p
|
|
71
|
-
className={cn("font-medium text-foreground text-
|
|
71
|
+
className={cn("font-medium text-foreground text-base", className)}
|
|
72
72
|
{...props}
|
|
73
73
|
/>
|
|
74
74
|
);
|
|
@@ -79,7 +79,7 @@ export const ArtifactDescription = ({
|
|
|
79
79
|
className,
|
|
80
80
|
...props
|
|
81
81
|
}: ArtifactDescriptionProps) => (
|
|
82
|
-
<p className={cn("text-muted-foreground text-
|
|
82
|
+
<p className={cn("text-muted-foreground text-base", className)} {...props} />
|
|
83
83
|
);
|
|
84
84
|
|
|
85
85
|
export type ArtifactActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -209,7 +209,7 @@ export const Attachment = ({
|
|
|
209
209
|
variant === "inline" && [
|
|
210
210
|
"flex h-8 cursor-pointer select-none items-center gap-1.5",
|
|
211
211
|
"rounded-md border border-border px-1.5",
|
|
212
|
-
"font-medium text-
|
|
212
|
+
"font-medium text-base transition-all",
|
|
213
213
|
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
214
214
|
],
|
|
215
215
|
variant === "list" && [
|
|
@@ -417,7 +417,7 @@ export const AttachmentEmpty = ({
|
|
|
417
417
|
}: AttachmentEmptyProps) => (
|
|
418
418
|
<div
|
|
419
419
|
className={cn(
|
|
420
|
-
"flex items-center justify-center p-4 text-muted-foreground text-
|
|
420
|
+
"flex items-center justify-center p-4 text-muted-foreground text-base",
|
|
421
421
|
className
|
|
422
422
|
)}
|
|
423
423
|
{...props}
|
|
@@ -81,7 +81,7 @@ export const ChainOfThoughtHeader = memo(
|
|
|
81
81
|
<Collapsible onOpenChange={setIsOpen} open={isOpen}>
|
|
82
82
|
<CollapsibleTrigger
|
|
83
83
|
className={cn(
|
|
84
|
-
"flex w-full items-center gap-2 text-muted-foreground text-
|
|
84
|
+
"flex w-full items-center gap-2 text-muted-foreground text-base transition-colors hover:text-foreground",
|
|
85
85
|
className
|
|
86
86
|
)}
|
|
87
87
|
{...props}
|
|
@@ -127,7 +127,7 @@ export const ChainOfThoughtStep = memo(
|
|
|
127
127
|
}: ChainOfThoughtStepProps) => (
|
|
128
128
|
<div
|
|
129
129
|
className={cn(
|
|
130
|
-
"flex gap-2 text-
|
|
130
|
+
"flex gap-2 text-base",
|
|
131
131
|
stepStatusStyles[status],
|
|
132
132
|
"fade-in-0 slide-in-from-top-2 animate-in",
|
|
133
133
|
className
|
|
@@ -276,14 +276,14 @@ const CodeBlockBody = memo(
|
|
|
276
276
|
return (
|
|
277
277
|
<pre
|
|
278
278
|
className={cn(
|
|
279
|
-
"dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)] m-0 p-4 text-
|
|
279
|
+
"dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)] m-0 p-4 text-base",
|
|
280
280
|
className
|
|
281
281
|
)}
|
|
282
282
|
style={preStyle}
|
|
283
283
|
>
|
|
284
284
|
<code
|
|
285
285
|
className={cn(
|
|
286
|
-
"font-mono
|
|
286
|
+
"font-mono",
|
|
287
287
|
showLineNumbers && "[counter-increment:line_0] [counter-reset:line]"
|
|
288
288
|
)}
|
|
289
289
|
>
|
|
@@ -380,10 +380,12 @@ export const CodeBlockContent = ({
|
|
|
380
380
|
code,
|
|
381
381
|
language,
|
|
382
382
|
showLineNumbers = false,
|
|
383
|
+
className
|
|
383
384
|
}: {
|
|
384
385
|
code: string;
|
|
385
386
|
language: BundledLanguage;
|
|
386
387
|
showLineNumbers?: boolean;
|
|
388
|
+
className?: string
|
|
387
389
|
}) => {
|
|
388
390
|
// Memoized raw tokens for immediate display
|
|
389
391
|
const rawTokens = useMemo(() => createRawTokens(code), [code]);
|
|
@@ -413,7 +415,7 @@ export const CodeBlockContent = ({
|
|
|
413
415
|
|
|
414
416
|
return (
|
|
415
417
|
<div className="relative overflow-auto">
|
|
416
|
-
<CodeBlockBody showLineNumbers={showLineNumbers} tokenized={tokenized} />
|
|
418
|
+
<CodeBlockBody showLineNumbers={showLineNumbers} tokenized={tokenized} className={className} />
|
|
417
419
|
</div>
|
|
418
420
|
);
|
|
419
421
|
};
|
|
@@ -436,6 +438,7 @@ export const CodeBlock = ({
|
|
|
436
438
|
code={code}
|
|
437
439
|
language={language}
|
|
438
440
|
showLineNumbers={showLineNumbers}
|
|
441
|
+
className={className}
|
|
439
442
|
/>
|
|
440
443
|
</CodeBlockContainer>
|
|
441
444
|
</CodeBlockContext.Provider>
|
|
@@ -70,7 +70,7 @@ export const CommitMessage = ({
|
|
|
70
70
|
children,
|
|
71
71
|
...props
|
|
72
72
|
}: CommitMessageProps) => (
|
|
73
|
-
<span className={cn("font-medium text-
|
|
73
|
+
<span className={cn("font-medium text-base", className)} {...props}>
|
|
74
74
|
{children}
|
|
75
75
|
</span>
|
|
76
76
|
);
|
|
@@ -291,7 +291,7 @@ export const CommitFile = ({
|
|
|
291
291
|
}: CommitFileProps) => (
|
|
292
292
|
<div
|
|
293
293
|
className={cn(
|
|
294
|
-
"flex items-center justify-between gap-2 rounded px-2 py-1 text-
|
|
294
|
+
"flex items-center justify-between gap-2 rounded px-2 py-1 text-base hover:bg-muted/50",
|
|
295
295
|
className
|
|
296
296
|
)}
|
|
297
297
|
{...props}
|
|
@@ -169,5 +169,5 @@ export const ConfirmationActions = ({
|
|
|
169
169
|
export type ConfirmationActionProps = ComponentProps<typeof Button>;
|
|
170
170
|
|
|
171
171
|
export const ConfirmationAction = (props: ConfirmationActionProps) => (
|
|
172
|
-
<Button className="h-8 px-3 text-
|
|
172
|
+
<Button className="h-8 px-3 text-base" type="button" {...props} />
|
|
173
173
|
);
|
|
@@ -59,9 +59,9 @@ export const ConversationEmptyState = ({
|
|
|
59
59
|
<>
|
|
60
60
|
{icon && <div className="text-muted-foreground">{icon}</div>}
|
|
61
61
|
<div className="space-y-1">
|
|
62
|
-
<h3 className="font-medium text-
|
|
62
|
+
<h3 className="font-medium text-base">{title}</h3>
|
|
63
63
|
{description && (
|
|
64
|
-
<p className="text-muted-foreground text-
|
|
64
|
+
<p className="text-muted-foreground text-base">{description}</p>
|
|
65
65
|
)}
|
|
66
66
|
</div>
|
|
67
67
|
</>
|
|
@@ -100,7 +100,7 @@ export const EnvironmentVariablesTitle = ({
|
|
|
100
100
|
children,
|
|
101
101
|
...props
|
|
102
102
|
}: EnvironmentVariablesTitleProps) => (
|
|
103
|
-
<h3 className={cn("font-medium text-
|
|
103
|
+
<h3 className={cn("font-medium text-base", className)} {...props}>
|
|
104
104
|
{children ?? "Environment Variables"}
|
|
105
105
|
</h3>
|
|
106
106
|
);
|
|
@@ -209,7 +209,7 @@ export const EnvironmentVariableName = ({
|
|
|
209
209
|
const { name } = use(EnvironmentVariableContext);
|
|
210
210
|
|
|
211
211
|
return (
|
|
212
|
-
<span className={cn("font-mono text-
|
|
212
|
+
<span className={cn("font-mono text-base", className)} {...props}>
|
|
213
213
|
{children ?? name}
|
|
214
214
|
</span>
|
|
215
215
|
);
|
|
@@ -232,7 +232,7 @@ export const EnvironmentVariableValue = ({
|
|
|
232
232
|
return (
|
|
233
233
|
<span
|
|
234
234
|
className={cn(
|
|
235
|
-
"font-mono text-muted-foreground text-
|
|
235
|
+
"font-mono text-muted-foreground text-base",
|
|
236
236
|
!showValues && "select-none",
|
|
237
237
|
className
|
|
238
238
|
)}
|
|
@@ -261,13 +261,13 @@ export const InlineCitationSource = ({
|
|
|
261
261
|
}: InlineCitationSourceProps) => (
|
|
262
262
|
<div className={cn("space-y-1", className)} {...props}>
|
|
263
263
|
{title && (
|
|
264
|
-
<h4 className="truncate font-medium text-
|
|
264
|
+
<h4 className="truncate font-medium text-base leading-tight">{title}</h4>
|
|
265
265
|
)}
|
|
266
266
|
{url && (
|
|
267
267
|
<p className="truncate break-all text-muted-foreground text-xs">{url}</p>
|
|
268
268
|
)}
|
|
269
269
|
{description && (
|
|
270
|
-
<p className="line-clamp-3 text-muted-foreground text-
|
|
270
|
+
<p className="line-clamp-3 text-muted-foreground text-base leading-relaxed">
|
|
271
271
|
{description}
|
|
272
272
|
</p>
|
|
273
273
|
)}
|
|
@@ -284,7 +284,7 @@ export const InlineCitationQuote = ({
|
|
|
284
284
|
}: InlineCitationQuoteProps) => (
|
|
285
285
|
<blockquote
|
|
286
286
|
className={cn(
|
|
287
|
-
"border-muted border-l-2 pl-3 text-muted-foreground text-
|
|
287
|
+
"border-muted border-l-2 pl-3 text-muted-foreground text-base italic",
|
|
288
288
|
className
|
|
289
289
|
)}
|
|
290
290
|
{...props}
|
|
@@ -229,7 +229,7 @@ export const JSXPreviewError = memo(
|
|
|
229
229
|
return (
|
|
230
230
|
<div
|
|
231
231
|
className={cn(
|
|
232
|
-
"flex items-center gap-2 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-destructive text-
|
|
232
|
+
"flex items-center gap-2 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-destructive text-base",
|
|
233
233
|
className
|
|
234
234
|
)}
|
|
235
235
|
{...props}
|
|
@@ -55,7 +55,7 @@ export const MessageContent = ({
|
|
|
55
55
|
}: MessageContentProps) => (
|
|
56
56
|
<div
|
|
57
57
|
className={cn(
|
|
58
|
-
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-
|
|
58
|
+
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-base",
|
|
59
59
|
"group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground",
|
|
60
60
|
"group-[.is-assistant]:text-foreground",
|
|
61
61
|
className
|
|
@@ -83,7 +83,7 @@ export const PackageInfoName = ({
|
|
|
83
83
|
return (
|
|
84
84
|
<div className={cn("flex items-center gap-2", className)} {...props}>
|
|
85
85
|
<PackageIcon className="size-4 text-muted-foreground" />
|
|
86
|
-
<span className="font-medium font-mono text-
|
|
86
|
+
<span className="font-medium font-mono text-base">{children ?? name}</span>
|
|
87
87
|
</div>
|
|
88
88
|
);
|
|
89
89
|
};
|
|
@@ -150,7 +150,7 @@ export const PackageInfoVersion = ({
|
|
|
150
150
|
return (
|
|
151
151
|
<div
|
|
152
152
|
className={cn(
|
|
153
|
-
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-
|
|
153
|
+
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-base",
|
|
154
154
|
className
|
|
155
155
|
)}
|
|
156
156
|
{...props}
|
|
@@ -177,7 +177,7 @@ export const PackageInfoDescription = ({
|
|
|
177
177
|
children,
|
|
178
178
|
...props
|
|
179
179
|
}: PackageInfoDescriptionProps) => (
|
|
180
|
-
<p className={cn("mt-2 text-muted-foreground text-
|
|
180
|
+
<p className={cn("mt-2 text-muted-foreground text-base", className)} {...props}>
|
|
181
181
|
{children}
|
|
182
182
|
</p>
|
|
183
183
|
);
|
|
@@ -222,7 +222,7 @@ export const PackageInfoDependency = ({
|
|
|
222
222
|
...props
|
|
223
223
|
}: PackageInfoDependencyProps) => (
|
|
224
224
|
<div
|
|
225
|
-
className={cn("flex items-center justify-between text-
|
|
225
|
+
className={cn("flex items-center justify-between text-base", className)}
|
|
226
226
|
{...props}
|
|
227
227
|
>
|
|
228
228
|
{children ?? (
|
|
@@ -245,8 +245,9 @@ export const PromptInputActionAddAttachments = ({
|
|
|
245
245
|
);
|
|
246
246
|
|
|
247
247
|
return (
|
|
248
|
-
<DropdownMenuItem {...props} onSelect={handleSelect}>
|
|
249
|
-
<ImageIcon className="
|
|
248
|
+
<DropdownMenuItem {...props} onSelect={handleSelect} className="text-sm">
|
|
249
|
+
<ImageIcon className="size-4" />
|
|
250
|
+
{label}
|
|
250
251
|
</DropdownMenuItem>
|
|
251
252
|
);
|
|
252
253
|
};
|
|
@@ -37,7 +37,7 @@ export type QueueItemProps = ComponentProps<"li">;
|
|
|
37
37
|
export const QueueItem = ({ className, ...props }: QueueItemProps) => (
|
|
38
38
|
<li
|
|
39
39
|
className={cn(
|
|
40
|
-
"group flex flex-col gap-1 rounded-md px-3 py-1 text-
|
|
40
|
+
"group flex flex-col gap-1 rounded-md px-3 py-1 text-base transition-colors hover:bg-muted",
|
|
41
41
|
className
|
|
42
42
|
)}
|
|
43
43
|
{...props}
|
|
@@ -216,7 +216,7 @@ export const QueueSectionTrigger = ({
|
|
|
216
216
|
<CollapsibleTrigger asChild>
|
|
217
217
|
<button
|
|
218
218
|
className={cn(
|
|
219
|
-
"group flex w-full items-center justify-between rounded-md bg-muted/40 px-3 py-2 text-left font-medium text-muted-foreground text-
|
|
219
|
+
"group flex w-full items-center justify-between rounded-md bg-muted/40 px-3 py-2 text-left font-medium text-muted-foreground text-base transition-colors hover:bg-muted",
|
|
220
220
|
className
|
|
221
221
|
)}
|
|
222
222
|
type="button"
|