@sero-ai/ui 0.4.0 → 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 -628
- package/.turbo/turbo-test.log +18 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +22 -2
- package/LICENSE +201 -0
- 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/catalog.cjs +1 -322
- package/dist/components/dashboard/catalog.d.cts +1 -2
- package/dist/components/dashboard/catalog.d.ts +1 -2
- package/dist/components/dashboard/catalog.js +0 -322
- package/dist/components/dashboard/catalog.json +312 -0
- package/dist/components/dashboard/empty-state.cjs +1 -1
- package/dist/components/dashboard/empty-state.js +1 -1
- package/dist/components/dashboard/index.d.cts +1 -1
- package/dist/components/dashboard/index.d.ts +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/status.cjs +6 -2
- package/dist/components/dashboard/status.js +7 -3
- package/dist/components/dashboard/tone.cjs +9 -1
- package/dist/components/dashboard/tone.d.cts +7 -1
- package/dist/components/dashboard/tone.d.ts +7 -1
- package/dist/components/dashboard/tone.js +8 -0
- 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 +4 -1
- package/dist/index.d.ts +4 -1
- 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 +1251 -3
- package/dist/reference.d.cts +11 -5
- package/dist/reference.d.ts +11 -5
- package/dist/reference.js +1224 -6
- 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 +53 -70
- package/scripts/ensure-pnpm-publish.mjs +23 -0
- package/scripts/smoke-dist.mjs +68 -0
- 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/__tests__/catalog.test.ts +7 -2
- package/src/components/dashboard/__tests__/state.test.tsx +19 -2
- package/src/components/dashboard/activity-list.tsx +2 -2
- package/src/components/dashboard/catalog.json +312 -0
- package/src/components/dashboard/catalog.ts +6 -328
- package/src/components/dashboard/empty-state.tsx +1 -1
- package/src/components/dashboard/index.ts +2 -2
- 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/status.tsx +15 -2
- package/src/components/dashboard/tone.ts +13 -0
- 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 +5 -1
- 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/tsup.config.ts +13 -3
- package/tsup.reference.config.ts +15 -0
- package/dist/components/reference/ActivityExample.cjs +0 -47
- package/dist/components/reference/ActivityExample.d.cts +0 -5
- package/dist/components/reference/ActivityExample.d.ts +0 -5
- package/dist/components/reference/ActivityExample.js +0 -47
- package/dist/components/reference/ResourceExample.cjs +0 -54
- package/dist/components/reference/ResourceExample.d.cts +0 -5
- package/dist/components/reference/ResourceExample.d.ts +0 -5
- package/dist/components/reference/ResourceExample.js +0 -54
- package/dist/components/reference/SchedulerExample.cjs +0 -68
- package/dist/components/reference/SchedulerExample.d.cts +0 -5
- package/dist/components/reference/SchedulerExample.d.ts +0 -5
- package/dist/components/reference/SchedulerExample.js +0 -68
- package/dist/components/reference/StarterExample.cjs +0 -34
- package/dist/components/reference/StarterExample.d.cts +0 -5
- package/dist/components/reference/StarterExample.d.ts +0 -5
- package/dist/components/reference/StarterExample.js +0 -34
- package/dist/components/reference/index.cjs +0 -10
- package/dist/components/reference/index.d.cts +0 -5
- package/dist/components/reference/index.d.ts +0 -5
- package/dist/components/reference/index.js +0 -10
- package/dist/dashboard-catalog.cjs +0 -8
- package/dist/dashboard-catalog.d.cts +0 -1
- package/dist/dashboard-catalog.d.ts +0 -1
- package/dist/dashboard-catalog.js +0 -8
- package/src/dashboard-catalog.ts +0 -13
|
@@ -43,8 +43,8 @@ const ConversationEmptyState = ({
|
|
|
43
43
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
44
44
|
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-muted-foreground", children: icon }),
|
|
45
45
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
46
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium text-
|
|
47
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-
|
|
46
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-medium text-base", children: title }),
|
|
47
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-muted-foreground text-base", children: description })
|
|
48
48
|
] })
|
|
49
49
|
] })))
|
|
50
50
|
}
|
|
@@ -43,8 +43,8 @@ const ConversationEmptyState = ({
|
|
|
43
43
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
44
|
icon && /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: icon }),
|
|
45
45
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
46
|
-
/* @__PURE__ */ jsx("h3", { className: "font-medium text-
|
|
47
|
-
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
46
|
+
/* @__PURE__ */ jsx("h3", { className: "font-medium text-base", children: title }),
|
|
47
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-base", children: description })
|
|
48
48
|
] })
|
|
49
49
|
] })
|
|
50
50
|
}
|
|
@@ -69,7 +69,7 @@ const EnvironmentVariablesTitle = ({
|
|
|
69
69
|
className,
|
|
70
70
|
children,
|
|
71
71
|
...props
|
|
72
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: _utils.cn.call(void 0, "font-medium text-
|
|
72
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: _utils.cn.call(void 0, "font-medium text-base", className), ...props, children: _nullishCoalesce(children, () => ( "Environment Variables")) });
|
|
73
73
|
const EnvironmentVariablesToggle = ({
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
@@ -131,7 +131,7 @@ const EnvironmentVariableName = ({
|
|
|
131
131
|
...props
|
|
132
132
|
}) => {
|
|
133
133
|
const { name } = _react.use.call(void 0, EnvironmentVariableContext);
|
|
134
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _utils.cn.call(void 0, "font-mono text-
|
|
134
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _utils.cn.call(void 0, "font-mono text-base", className), ...props, children: _nullishCoalesce(children, () => ( name)) });
|
|
135
135
|
};
|
|
136
136
|
const EnvironmentVariableValue = ({
|
|
137
137
|
className,
|
|
@@ -145,7 +145,7 @@ const EnvironmentVariableValue = ({
|
|
|
145
145
|
"span",
|
|
146
146
|
{
|
|
147
147
|
className: _utils.cn.call(void 0,
|
|
148
|
-
"font-mono text-muted-foreground text-
|
|
148
|
+
"font-mono text-muted-foreground text-base",
|
|
149
149
|
!showValues && "select-none",
|
|
150
150
|
className
|
|
151
151
|
),
|
|
@@ -69,7 +69,7 @@ const EnvironmentVariablesTitle = ({
|
|
|
69
69
|
className,
|
|
70
70
|
children,
|
|
71
71
|
...props
|
|
72
|
-
}) => /* @__PURE__ */ jsx("h3", { className: cn("font-medium text-
|
|
72
|
+
}) => /* @__PURE__ */ jsx("h3", { className: cn("font-medium text-base", className), ...props, children: children ?? "Environment Variables" });
|
|
73
73
|
const EnvironmentVariablesToggle = ({
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
@@ -131,7 +131,7 @@ const EnvironmentVariableName = ({
|
|
|
131
131
|
...props
|
|
132
132
|
}) => {
|
|
133
133
|
const { name } = use(EnvironmentVariableContext);
|
|
134
|
-
return /* @__PURE__ */ jsx("span", { className: cn("font-mono text-
|
|
134
|
+
return /* @__PURE__ */ jsx("span", { className: cn("font-mono text-base", className), ...props, children: children ?? name });
|
|
135
135
|
};
|
|
136
136
|
const EnvironmentVariableValue = ({
|
|
137
137
|
className,
|
|
@@ -145,7 +145,7 @@ const EnvironmentVariableValue = ({
|
|
|
145
145
|
"span",
|
|
146
146
|
{
|
|
147
147
|
className: cn(
|
|
148
|
-
"font-mono text-muted-foreground text-
|
|
148
|
+
"font-mono text-muted-foreground text-base",
|
|
149
149
|
!showValues && "select-none",
|
|
150
150
|
className
|
|
151
151
|
),
|
|
@@ -185,9 +185,9 @@ const InlineCitationSource = ({
|
|
|
185
185
|
children,
|
|
186
186
|
...props
|
|
187
187
|
}) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _utils.cn.call(void 0, "space-y-1", className), ...props, children: [
|
|
188
|
-
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h4", { className: "truncate font-medium text-
|
|
188
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h4", { className: "truncate font-medium text-base leading-tight", children: title }),
|
|
189
189
|
url && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate break-all text-muted-foreground text-xs", children: url }),
|
|
190
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-muted-foreground text-
|
|
190
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-muted-foreground text-base leading-relaxed", children: description }),
|
|
191
191
|
children
|
|
192
192
|
] });
|
|
193
193
|
const InlineCitationQuote = ({
|
|
@@ -198,7 +198,7 @@ const InlineCitationQuote = ({
|
|
|
198
198
|
"blockquote",
|
|
199
199
|
{
|
|
200
200
|
className: _utils.cn.call(void 0,
|
|
201
|
-
"border-muted border-l-2 pl-3 text-muted-foreground text-
|
|
201
|
+
"border-muted border-l-2 pl-3 text-muted-foreground text-base italic",
|
|
202
202
|
className
|
|
203
203
|
),
|
|
204
204
|
...props,
|
|
@@ -185,9 +185,9 @@ const InlineCitationSource = ({
|
|
|
185
185
|
children,
|
|
186
186
|
...props
|
|
187
187
|
}) => /* @__PURE__ */ jsxs("div", { className: cn("space-y-1", className), ...props, children: [
|
|
188
|
-
title && /* @__PURE__ */ jsx("h4", { className: "truncate font-medium text-
|
|
188
|
+
title && /* @__PURE__ */ jsx("h4", { className: "truncate font-medium text-base leading-tight", children: title }),
|
|
189
189
|
url && /* @__PURE__ */ jsx("p", { className: "truncate break-all text-muted-foreground text-xs", children: url }),
|
|
190
|
-
description && /* @__PURE__ */ jsx("p", { className: "line-clamp-3 text-muted-foreground text-
|
|
190
|
+
description && /* @__PURE__ */ jsx("p", { className: "line-clamp-3 text-muted-foreground text-base leading-relaxed", children: description }),
|
|
191
191
|
children
|
|
192
192
|
] });
|
|
193
193
|
const InlineCitationQuote = ({
|
|
@@ -198,7 +198,7 @@ const InlineCitationQuote = ({
|
|
|
198
198
|
"blockquote",
|
|
199
199
|
{
|
|
200
200
|
className: cn(
|
|
201
|
-
"border-muted border-l-2 pl-3 text-muted-foreground text-
|
|
201
|
+
"border-muted border-l-2 pl-3 text-muted-foreground text-base italic",
|
|
202
202
|
className
|
|
203
203
|
),
|
|
204
204
|
...props,
|
|
@@ -155,7 +155,7 @@ const JSXPreviewError = _react.memo.call(void 0,
|
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
157
157
|
className: _utils.cn.call(void 0,
|
|
158
|
-
"flex items-center gap-2 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-destructive text-
|
|
158
|
+
"flex items-center gap-2 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-destructive text-base",
|
|
159
159
|
className
|
|
160
160
|
),
|
|
161
161
|
...props,
|
|
@@ -155,7 +155,7 @@ const JSXPreviewError = memo(
|
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
157
157
|
className: cn(
|
|
158
|
-
"flex items-center gap-2 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-destructive text-
|
|
158
|
+
"flex items-center gap-2 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-destructive text-base",
|
|
159
159
|
className
|
|
160
160
|
),
|
|
161
161
|
...props,
|
|
@@ -46,7 +46,7 @@ const MessageContent = ({
|
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
className: _utils.cn.call(void 0,
|
|
49
|
-
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-
|
|
49
|
+
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-base",
|
|
50
50
|
"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",
|
|
51
51
|
"group-[.is-assistant]:text-foreground",
|
|
52
52
|
className
|
|
@@ -46,7 +46,7 @@ const MessageContent = ({
|
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
className: cn(
|
|
49
|
-
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-
|
|
49
|
+
"is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-base",
|
|
50
50
|
"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",
|
|
51
51
|
"group-[.is-assistant]:text-foreground",
|
|
52
52
|
className
|
|
@@ -55,7 +55,7 @@ const PackageInfoName = ({
|
|
|
55
55
|
const { name } = _react.use.call(void 0, PackageInfoContext);
|
|
56
56
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _utils.cn.call(void 0, "flex items-center gap-2", className), ...props, children: [
|
|
57
57
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.PackageIcon, { className: "size-4 text-muted-foreground" }),
|
|
58
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium font-mono text-
|
|
58
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium font-mono text-base", children: _nullishCoalesce(children, () => ( name)) })
|
|
59
59
|
] });
|
|
60
60
|
};
|
|
61
61
|
const changeTypeStyles = {
|
|
@@ -111,7 +111,7 @@ const PackageInfoVersion = ({
|
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: _utils.cn.call(void 0,
|
|
114
|
-
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-
|
|
114
|
+
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-base",
|
|
115
115
|
className
|
|
116
116
|
),
|
|
117
117
|
...props,
|
|
@@ -127,7 +127,7 @@ const PackageInfoDescription = ({
|
|
|
127
127
|
className,
|
|
128
128
|
children,
|
|
129
129
|
...props
|
|
130
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _utils.cn.call(void 0, "mt-2 text-muted-foreground text-
|
|
130
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _utils.cn.call(void 0, "mt-2 text-muted-foreground text-base", className), ...props, children });
|
|
131
131
|
const PackageInfoContent = ({
|
|
132
132
|
className,
|
|
133
133
|
children,
|
|
@@ -150,7 +150,7 @@ const PackageInfoDependency = ({
|
|
|
150
150
|
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
|
-
className: _utils.cn.call(void 0, "flex items-center justify-between text-
|
|
153
|
+
className: _utils.cn.call(void 0, "flex items-center justify-between text-base", className),
|
|
154
154
|
...props,
|
|
155
155
|
children: _nullishCoalesce(children, () => ( /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
156
156
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-muted-foreground", children: name }),
|
|
@@ -55,7 +55,7 @@ const PackageInfoName = ({
|
|
|
55
55
|
const { name } = use(PackageInfoContext);
|
|
56
56
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), ...props, children: [
|
|
57
57
|
/* @__PURE__ */ jsx(PackageIcon, { className: "size-4 text-muted-foreground" }),
|
|
58
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium font-mono text-
|
|
58
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium font-mono text-base", children: children ?? name })
|
|
59
59
|
] });
|
|
60
60
|
};
|
|
61
61
|
const changeTypeStyles = {
|
|
@@ -111,7 +111,7 @@ const PackageInfoVersion = ({
|
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
113
|
className: cn(
|
|
114
|
-
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-
|
|
114
|
+
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-base",
|
|
115
115
|
className
|
|
116
116
|
),
|
|
117
117
|
...props,
|
|
@@ -127,7 +127,7 @@ const PackageInfoDescription = ({
|
|
|
127
127
|
className,
|
|
128
128
|
children,
|
|
129
129
|
...props
|
|
130
|
-
}) => /* @__PURE__ */ jsx("p", { className: cn("mt-2 text-muted-foreground text-
|
|
130
|
+
}) => /* @__PURE__ */ jsx("p", { className: cn("mt-2 text-muted-foreground text-base", className), ...props, children });
|
|
131
131
|
const PackageInfoContent = ({
|
|
132
132
|
className,
|
|
133
133
|
children,
|
|
@@ -150,7 +150,7 @@ const PackageInfoDependency = ({
|
|
|
150
150
|
}) => /* @__PURE__ */ jsx(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
|
-
className: cn("flex items-center justify-between text-
|
|
153
|
+
className: cn("flex items-center justify-between text-base", className),
|
|
154
154
|
...props,
|
|
155
155
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
156
156
|
/* @__PURE__ */ jsx("span", { className: "font-mono text-muted-foreground", children: name }),
|
|
@@ -142,9 +142,8 @@ const PromptInputActionAddAttachments = ({
|
|
|
142
142
|
},
|
|
143
143
|
[attachments]
|
|
144
144
|
);
|
|
145
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _dropdownmenu.DropdownMenuItem, { ...props, onSelect: handleSelect, children: [
|
|
146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ImageIcon, { className: "
|
|
147
|
-
" ",
|
|
145
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _dropdownmenu.DropdownMenuItem, { ...props, onSelect: handleSelect, className: "text-sm", children: [
|
|
146
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ImageIcon, { className: "size-4" }),
|
|
148
147
|
label
|
|
149
148
|
] });
|
|
150
149
|
};
|
|
@@ -142,9 +142,8 @@ const PromptInputActionAddAttachments = ({
|
|
|
142
142
|
},
|
|
143
143
|
[attachments]
|
|
144
144
|
);
|
|
145
|
-
return /* @__PURE__ */ jsxs(DropdownMenuItem, { ...props, onSelect: handleSelect, children: [
|
|
146
|
-
/* @__PURE__ */ jsx(ImageIcon, { className: "
|
|
147
|
-
" ",
|
|
145
|
+
return /* @__PURE__ */ jsxs(DropdownMenuItem, { ...props, onSelect: handleSelect, className: "text-sm", children: [
|
|
146
|
+
/* @__PURE__ */ jsx(ImageIcon, { className: "size-4" }),
|
|
148
147
|
label
|
|
149
148
|
] });
|
|
150
149
|
};
|
|
@@ -13,7 +13,7 @@ const QueueItem = ({ className, ...props }) => /* @__PURE__ */ _jsxruntime.jsx.c
|
|
|
13
13
|
"li",
|
|
14
14
|
{
|
|
15
15
|
className: _utils.cn.call(void 0,
|
|
16
|
-
"group flex flex-col gap-1 rounded-md px-3 py-1 text-
|
|
16
|
+
"group flex flex-col gap-1 rounded-md px-3 py-1 text-base transition-colors hover:bg-muted",
|
|
17
17
|
className
|
|
18
18
|
),
|
|
19
19
|
...props
|
|
@@ -137,7 +137,7 @@ const QueueSectionTrigger = ({
|
|
|
137
137
|
"button",
|
|
138
138
|
{
|
|
139
139
|
className: _utils.cn.call(void 0,
|
|
140
|
-
"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-
|
|
140
|
+
"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",
|
|
141
141
|
className
|
|
142
142
|
),
|
|
143
143
|
type: "button",
|
|
@@ -13,7 +13,7 @@ const QueueItem = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
|
13
13
|
"li",
|
|
14
14
|
{
|
|
15
15
|
className: cn(
|
|
16
|
-
"group flex flex-col gap-1 rounded-md px-3 py-1 text-
|
|
16
|
+
"group flex flex-col gap-1 rounded-md px-3 py-1 text-base transition-colors hover:bg-muted",
|
|
17
17
|
className
|
|
18
18
|
),
|
|
19
19
|
...props
|
|
@@ -137,7 +137,7 @@ const QueueSectionTrigger = ({
|
|
|
137
137
|
"button",
|
|
138
138
|
{
|
|
139
139
|
className: cn(
|
|
140
|
-
"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-
|
|
140
|
+
"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",
|
|
141
141
|
className
|
|
142
142
|
),
|
|
143
143
|
type: "button",
|
|
@@ -131,7 +131,7 @@ const ReasoningTrigger = _react.memo.call(void 0,
|
|
|
131
131
|
_collapsible.CollapsibleTrigger,
|
|
132
132
|
{
|
|
133
133
|
className: _utils.cn.call(void 0,
|
|
134
|
-
"flex w-full items-center gap-2 text-muted-foreground text-
|
|
134
|
+
"flex w-full items-center gap-2 text-muted-foreground text-base transition-colors hover:text-foreground",
|
|
135
135
|
className
|
|
136
136
|
),
|
|
137
137
|
...props,
|
|
@@ -158,7 +158,7 @@ const ReasoningContent = _react.memo.call(void 0,
|
|
|
158
158
|
_collapsible.CollapsibleContent,
|
|
159
159
|
{
|
|
160
160
|
className: _utils.cn.call(void 0,
|
|
161
|
-
"mt-4 text-
|
|
161
|
+
"mt-4 text-base",
|
|
162
162
|
"data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
163
163
|
className
|
|
164
164
|
),
|
|
@@ -131,7 +131,7 @@ const ReasoningTrigger = memo(
|
|
|
131
131
|
CollapsibleTrigger,
|
|
132
132
|
{
|
|
133
133
|
className: cn(
|
|
134
|
-
"flex w-full items-center gap-2 text-muted-foreground text-
|
|
134
|
+
"flex w-full items-center gap-2 text-muted-foreground text-base transition-colors hover:text-foreground",
|
|
135
135
|
className
|
|
136
136
|
),
|
|
137
137
|
...props,
|
|
@@ -158,7 +158,7 @@ const ReasoningContent = memo(
|
|
|
158
158
|
CollapsibleContent,
|
|
159
159
|
{
|
|
160
160
|
className: cn(
|
|
161
|
-
"mt-4 text-
|
|
161
|
+
"mt-4 text-base",
|
|
162
162
|
"data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
163
163
|
className
|
|
164
164
|
),
|
|
@@ -41,7 +41,7 @@ const SandboxHeader = ({
|
|
|
41
41
|
children: [
|
|
42
42
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
43
43
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Code, { className: "size-4 text-muted-foreground" }),
|
|
44
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-
|
|
44
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-base", children: title }),
|
|
45
45
|
_tool.getStatusBadge.call(void 0, state)
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon, { className: "size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180" })
|
|
@@ -92,7 +92,7 @@ const SandboxTabsTrigger = ({
|
|
|
92
92
|
_tabs.TabsTrigger,
|
|
93
93
|
{
|
|
94
94
|
className: _utils.cn.call(void 0,
|
|
95
|
-
"rounded-none border-0 border-transparent border-b-2 px-4 py-2 font-medium text-muted-foreground text-
|
|
95
|
+
"rounded-none border-0 border-transparent border-b-2 px-4 py-2 font-medium text-muted-foreground text-base transition-colors data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none",
|
|
96
96
|
className
|
|
97
97
|
),
|
|
98
98
|
...props
|
|
@@ -101,7 +101,7 @@ const SandboxTabsTrigger = ({
|
|
|
101
101
|
const SandboxTabContent = ({
|
|
102
102
|
className,
|
|
103
103
|
...props
|
|
104
|
-
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _tabs.TabsContent, { className: _utils.cn.call(void 0, "mt-0 text-
|
|
104
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _tabs.TabsContent, { className: _utils.cn.call(void 0, "mt-0 text-base", className), ...props });
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
|
|
@@ -41,7 +41,7 @@ const SandboxHeader = ({
|
|
|
41
41
|
children: [
|
|
42
42
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
43
43
|
/* @__PURE__ */ jsx(Code, { className: "size-4 text-muted-foreground" }),
|
|
44
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
44
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-base", children: title }),
|
|
45
45
|
getStatusBadge(state)
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180" })
|
|
@@ -92,7 +92,7 @@ const SandboxTabsTrigger = ({
|
|
|
92
92
|
TabsTrigger,
|
|
93
93
|
{
|
|
94
94
|
className: cn(
|
|
95
|
-
"rounded-none border-0 border-transparent border-b-2 px-4 py-2 font-medium text-muted-foreground text-
|
|
95
|
+
"rounded-none border-0 border-transparent border-b-2 px-4 py-2 font-medium text-muted-foreground text-base transition-colors data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none",
|
|
96
96
|
className
|
|
97
97
|
),
|
|
98
98
|
...props
|
|
@@ -101,7 +101,7 @@ const SandboxTabsTrigger = ({
|
|
|
101
101
|
const SandboxTabContent = ({
|
|
102
102
|
className,
|
|
103
103
|
...props
|
|
104
|
-
}) => /* @__PURE__ */ jsx(TabsContent, { className: cn("mt-0 text-
|
|
104
|
+
}) => /* @__PURE__ */ jsx(TabsContent, { className: cn("mt-0 text-base", className), ...props });
|
|
105
105
|
export {
|
|
106
106
|
Sandbox,
|
|
107
107
|
SandboxContent,
|
|
@@ -106,7 +106,7 @@ const SchemaDisplayPath = ({
|
|
|
106
106
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
109
|
-
className: _utils.cn.call(void 0, "font-mono text-
|
|
109
|
+
className: _utils.cn.call(void 0, "font-mono text-base", className),
|
|
110
110
|
dangerouslySetInnerHTML: { __html: _nullishCoalesce(children, () => ( highlightedPath)) },
|
|
111
111
|
...props
|
|
112
112
|
}
|
|
@@ -122,7 +122,7 @@ const SchemaDisplayDescription = ({
|
|
|
122
122
|
"p",
|
|
123
123
|
{
|
|
124
124
|
className: _utils.cn.call(void 0,
|
|
125
|
-
"border-b px-4 py-3 text-muted-foreground text-
|
|
125
|
+
"border-b px-4 py-3 text-muted-foreground text-base",
|
|
126
126
|
className
|
|
127
127
|
),
|
|
128
128
|
...props,
|
|
@@ -144,7 +144,7 @@ const SchemaDisplayParameters = ({
|
|
|
144
144
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _collapsible.Collapsible, { className: _utils.cn.call(void 0, className), defaultOpen: true, ...props, children: [
|
|
145
145
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _collapsible.CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
146
146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
147
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-
|
|
147
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-base", children: "Parameters" }),
|
|
148
148
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _badge.Badge, { className: "ml-auto text-xs", variant: "secondary", children: _optionalChain([parameters, 'optionalAccess', _ => _.length]) })
|
|
149
149
|
] }),
|
|
150
150
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _collapsible.CollapsibleContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "divide-y border-t", children: _nullishCoalesce(children, () => ( _optionalChain([parameters, 'optionalAccess', _2 => _2.map, 'call', _3 => _3((param) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchemaDisplayParameter, { ...param }, param.name))]))) }) })
|
|
@@ -160,7 +160,7 @@ const SchemaDisplayParameter = ({
|
|
|
160
160
|
...props
|
|
161
161
|
}) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _utils.cn.call(void 0, "px-4 py-3 pl-10", className), ...props, children: [
|
|
162
162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
163
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-
|
|
163
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-base", children: name }),
|
|
164
164
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _badge.Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
165
165
|
location && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _badge.Badge, { className: "text-xs", variant: "secondary", children: location }),
|
|
166
166
|
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -172,7 +172,7 @@ const SchemaDisplayParameter = ({
|
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
] }),
|
|
175
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mt-1 text-muted-foreground text-
|
|
175
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mt-1 text-muted-foreground text-base", children: description })
|
|
176
176
|
] });
|
|
177
177
|
const SchemaDisplayRequest = ({
|
|
178
178
|
className,
|
|
@@ -183,7 +183,7 @@ const SchemaDisplayRequest = ({
|
|
|
183
183
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _collapsible.Collapsible, { className: _utils.cn.call(void 0, className), defaultOpen: true, ...props, children: [
|
|
184
184
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _collapsible.CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
185
185
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
186
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-
|
|
186
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-base", children: "Request Body" })
|
|
187
187
|
] }),
|
|
188
188
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _collapsible.CollapsibleContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t", children: _nullishCoalesce(children, () => ( _optionalChain([requestBody, 'optionalAccess', _4 => _4.map, 'call', _5 => _5((prop) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchemaDisplayProperty, { ...prop, depth: 0 }, prop.name))]))) }) })
|
|
189
189
|
] });
|
|
@@ -197,7 +197,7 @@ const SchemaDisplayResponse = ({
|
|
|
197
197
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _collapsible.Collapsible, { className: _utils.cn.call(void 0, className), defaultOpen: true, ...props, children: [
|
|
198
198
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _collapsible.CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
199
199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
200
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-
|
|
200
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-medium text-base", children: "Response" })
|
|
201
201
|
] }),
|
|
202
202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _collapsible.CollapsibleContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t", children: _nullishCoalesce(children, () => ( _optionalChain([responseBody, 'optionalAccess', _6 => _6.map, 'call', _7 => _7((prop) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SchemaDisplayProperty, { ...prop, depth: 0 }, prop.name))]))) }) })
|
|
203
203
|
] });
|
|
@@ -232,7 +232,7 @@ const SchemaDisplayProperty = ({
|
|
|
232
232
|
style: { paddingLeft },
|
|
233
233
|
children: [
|
|
234
234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
235
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-
|
|
235
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-base", children: name }),
|
|
236
236
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _badge.Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
237
237
|
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
238
|
_badge.Badge,
|
|
@@ -248,7 +248,7 @@ const SchemaDisplayProperty = ({
|
|
|
248
248
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
249
249
|
"p",
|
|
250
250
|
{
|
|
251
|
-
className: "pb-2 text-muted-foreground text-
|
|
251
|
+
className: "pb-2 text-muted-foreground text-base",
|
|
252
252
|
style: { paddingLeft: paddingLeft + 24 },
|
|
253
253
|
children: description
|
|
254
254
|
}
|
|
@@ -282,7 +282,7 @@ const SchemaDisplayProperty = ({
|
|
|
282
282
|
children: [
|
|
283
283
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
284
284
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "size-4" }),
|
|
285
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-
|
|
285
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "font-mono text-base", children: name }),
|
|
286
286
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _badge.Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
287
287
|
required && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
288
288
|
_badge.Badge,
|
|
@@ -293,7 +293,7 @@ const SchemaDisplayProperty = ({
|
|
|
293
293
|
}
|
|
294
294
|
)
|
|
295
295
|
] }),
|
|
296
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mt-1 pl-6 text-muted-foreground text-
|
|
296
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mt-1 pl-6 text-muted-foreground text-base", children: description })
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
);
|
|
@@ -306,7 +306,7 @@ const SchemaDisplayExample = ({
|
|
|
306
306
|
"pre",
|
|
307
307
|
{
|
|
308
308
|
className: _utils.cn.call(void 0,
|
|
309
|
-
"mx-4 mb-4 overflow-auto rounded-md bg-muted p-4 font-mono text-
|
|
309
|
+
"mx-4 mb-4 overflow-auto rounded-md bg-muted p-4 font-mono text-base",
|
|
310
310
|
className
|
|
311
311
|
),
|
|
312
312
|
...props,
|
|
@@ -106,7 +106,7 @@ const SchemaDisplayPath = ({
|
|
|
106
106
|
return /* @__PURE__ */ jsx(
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
109
|
-
className: cn("font-mono text-
|
|
109
|
+
className: cn("font-mono text-base", className),
|
|
110
110
|
dangerouslySetInnerHTML: { __html: children ?? highlightedPath },
|
|
111
111
|
...props
|
|
112
112
|
}
|
|
@@ -122,7 +122,7 @@ const SchemaDisplayDescription = ({
|
|
|
122
122
|
"p",
|
|
123
123
|
{
|
|
124
124
|
className: cn(
|
|
125
|
-
"border-b px-4 py-3 text-muted-foreground text-
|
|
125
|
+
"border-b px-4 py-3 text-muted-foreground text-base",
|
|
126
126
|
className
|
|
127
127
|
),
|
|
128
128
|
...props,
|
|
@@ -144,7 +144,7 @@ const SchemaDisplayParameters = ({
|
|
|
144
144
|
return /* @__PURE__ */ jsxs(Collapsible, { className: cn(className), defaultOpen: true, ...props, children: [
|
|
145
145
|
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
146
146
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
147
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
147
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-base", children: "Parameters" }),
|
|
148
148
|
/* @__PURE__ */ jsx(Badge, { className: "ml-auto text-xs", variant: "secondary", children: parameters?.length })
|
|
149
149
|
] }),
|
|
150
150
|
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "divide-y border-t", children: children ?? parameters?.map((param) => /* @__PURE__ */ jsx(SchemaDisplayParameter, { ...param }, param.name)) }) })
|
|
@@ -160,7 +160,7 @@ const SchemaDisplayParameter = ({
|
|
|
160
160
|
...props
|
|
161
161
|
}) => /* @__PURE__ */ jsxs("div", { className: cn("px-4 py-3 pl-10", className), ...props, children: [
|
|
162
162
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
163
|
-
/* @__PURE__ */ jsx("span", { className: "font-mono text-
|
|
163
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-base", children: name }),
|
|
164
164
|
/* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
165
165
|
location && /* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "secondary", children: location }),
|
|
166
166
|
required && /* @__PURE__ */ jsx(
|
|
@@ -172,7 +172,7 @@ const SchemaDisplayParameter = ({
|
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
] }),
|
|
175
|
-
description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-muted-foreground text-
|
|
175
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-muted-foreground text-base", children: description })
|
|
176
176
|
] });
|
|
177
177
|
const SchemaDisplayRequest = ({
|
|
178
178
|
className,
|
|
@@ -183,7 +183,7 @@ const SchemaDisplayRequest = ({
|
|
|
183
183
|
return /* @__PURE__ */ jsxs(Collapsible, { className: cn(className), defaultOpen: true, ...props, children: [
|
|
184
184
|
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
185
185
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
186
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
186
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-base", children: "Request Body" })
|
|
187
187
|
] }),
|
|
188
188
|
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "border-t", children: children ?? requestBody?.map((prop) => /* @__PURE__ */ jsx(SchemaDisplayProperty, { ...prop, depth: 0 }, prop.name)) }) })
|
|
189
189
|
] });
|
|
@@ -197,7 +197,7 @@ const SchemaDisplayResponse = ({
|
|
|
197
197
|
return /* @__PURE__ */ jsxs(Collapsible, { className: cn(className), defaultOpen: true, ...props, children: [
|
|
198
198
|
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
199
199
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
200
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
200
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-base", children: "Response" })
|
|
201
201
|
] }),
|
|
202
202
|
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "border-t", children: children ?? responseBody?.map((prop) => /* @__PURE__ */ jsx(SchemaDisplayProperty, { ...prop, depth: 0 }, prop.name)) }) })
|
|
203
203
|
] });
|
|
@@ -232,7 +232,7 @@ const SchemaDisplayProperty = ({
|
|
|
232
232
|
style: { paddingLeft },
|
|
233
233
|
children: [
|
|
234
234
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
235
|
-
/* @__PURE__ */ jsx("span", { className: "font-mono text-
|
|
235
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-base", children: name }),
|
|
236
236
|
/* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
237
237
|
required && /* @__PURE__ */ jsx(
|
|
238
238
|
Badge,
|
|
@@ -248,7 +248,7 @@ const SchemaDisplayProperty = ({
|
|
|
248
248
|
description && /* @__PURE__ */ jsx(
|
|
249
249
|
"p",
|
|
250
250
|
{
|
|
251
|
-
className: "pb-2 text-muted-foreground text-
|
|
251
|
+
className: "pb-2 text-muted-foreground text-base",
|
|
252
252
|
style: { paddingLeft: paddingLeft + 24 },
|
|
253
253
|
children: description
|
|
254
254
|
}
|
|
@@ -282,7 +282,7 @@ const SchemaDisplayProperty = ({
|
|
|
282
282
|
children: [
|
|
283
283
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
284
284
|
/* @__PURE__ */ jsx("span", { className: "size-4" }),
|
|
285
|
-
/* @__PURE__ */ jsx("span", { className: "font-mono text-
|
|
285
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-base", children: name }),
|
|
286
286
|
/* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
287
287
|
required && /* @__PURE__ */ jsx(
|
|
288
288
|
Badge,
|
|
@@ -293,7 +293,7 @@ const SchemaDisplayProperty = ({
|
|
|
293
293
|
}
|
|
294
294
|
)
|
|
295
295
|
] }),
|
|
296
|
-
description && /* @__PURE__ */ jsx("p", { className: "mt-1 pl-6 text-muted-foreground text-
|
|
296
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-1 pl-6 text-muted-foreground text-base", children: description })
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
);
|
|
@@ -306,7 +306,7 @@ const SchemaDisplayExample = ({
|
|
|
306
306
|
"pre",
|
|
307
307
|
{
|
|
308
308
|
className: cn(
|
|
309
|
-
"mx-4 mb-4 overflow-auto rounded-md bg-muted p-4 font-mono text-
|
|
309
|
+
"mx-4 mb-4 overflow-auto rounded-md bg-muted p-4 font-mono text-base",
|
|
310
310
|
className
|
|
311
311
|
),
|
|
312
312
|
...props,
|