@sero-ai/ui 0.4.1 → 0.5.0
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 +397 -384
- package/.turbo/turbo-test.log +18 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +18 -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/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.d.cts +1 -1
- package/dist/components/ui/form.d.ts +1 -1
- 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 -56
- package/dist/index.d.cts +2 -65
- package/dist/index.d.ts +2 -65
- package/dist/index.js +5 -56
- 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 +71 -98
- package/dist/reference.js +71 -98
- package/dist/styles/ai-elements.css +2 -0
- package/dist/styles/context-editor.css +2 -0
- package/dist/styles/globals.css +22 -3
- package/dist/styles/model-selection.css +2 -0
- package/dist/styles/plugin-theme.css +80 -0
- package/dist/styles/plugin.css +17 -2
- package/package.json +32 -19
- package/scripts/smoke-dist.mjs +104 -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 +6 -63
- 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/ai-elements.css +2 -0
- package/src/styles/context-editor.css +2 -0
- package/src/styles/globals.css +22 -3
- package/src/styles/model-selection.css +2 -0
- package/src/styles/plugin-theme.css +80 -0
- package/src/styles/plugin.css +17 -2
package/dist/reference.cjs
CHANGED
|
@@ -255,7 +255,7 @@ function Section({
|
|
|
255
255
|
children: [
|
|
256
256
|
(heading || action) && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
257
257
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
|
|
258
|
-
heading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("h3", { className: "truncate text-
|
|
258
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("h3", { className: "truncate text-sm font-semibold uppercase tracking-wider text-[var(--text-muted)]", children: heading }),
|
|
259
259
|
description && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "truncate text-xs text-[var(--text-muted)]", children: description })
|
|
260
260
|
] }),
|
|
261
261
|
action && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "shrink-0", children: action })
|
|
@@ -292,11 +292,11 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
|
292
292
|
var textVariants = (0, import_class_variance_authority2.cva)("min-w-0", {
|
|
293
293
|
variants: {
|
|
294
294
|
variant: {
|
|
295
|
-
body: "text-
|
|
296
|
-
label: "text-
|
|
295
|
+
body: "text-base text-[var(--text-primary)]",
|
|
296
|
+
label: "text-sm font-semibold uppercase tracking-wider text-[var(--text-muted)]",
|
|
297
297
|
supporting: "text-xs text-[var(--text-secondary)]",
|
|
298
298
|
muted: "text-xs text-[var(--text-muted)]",
|
|
299
|
-
numeric: "text-
|
|
299
|
+
numeric: "text-base font-semibold tabular-nums text-[var(--text-primary)]"
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
302
|
defaultVariants: { variant: "body" }
|
|
@@ -330,7 +330,7 @@ function Text({
|
|
|
330
330
|
}
|
|
331
331
|
var headingSize = {
|
|
332
332
|
sm: "text-xs font-semibold",
|
|
333
|
-
md: "text-
|
|
333
|
+
md: "text-base font-semibold",
|
|
334
334
|
lg: "text-base font-semibold"
|
|
335
335
|
};
|
|
336
336
|
function Heading({
|
|
@@ -413,7 +413,7 @@ function Metric({
|
|
|
413
413
|
children: [
|
|
414
414
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
415
415
|
icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { icon, size: "sm" }),
|
|
416
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "truncate text-
|
|
416
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "truncate text-sm font-medium uppercase tracking-wide text-[var(--text-muted)]", children: label })
|
|
417
417
|
] }),
|
|
418
418
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-baseline gap-1.5", children: [
|
|
419
419
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -575,7 +575,7 @@ var import_class_variance_authority3 = require("class-variance-authority");
|
|
|
575
575
|
var import_radix_ui2 = require("radix-ui");
|
|
576
576
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
577
577
|
var itemVariants = (0, import_class_variance_authority3.cva)(
|
|
578
|
-
"group/item flex items-center border border-transparent text-
|
|
578
|
+
"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]",
|
|
579
579
|
{
|
|
580
580
|
variants: {
|
|
581
581
|
variant: {
|
|
@@ -662,7 +662,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
662
662
|
{
|
|
663
663
|
"data-slot": "item-title",
|
|
664
664
|
className: cn(
|
|
665
|
-
"flex w-fit items-center gap-2 text-
|
|
665
|
+
"flex w-fit items-center gap-2 text-base leading-snug font-medium",
|
|
666
666
|
className
|
|
667
667
|
),
|
|
668
668
|
...props
|
|
@@ -675,7 +675,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
675
675
|
{
|
|
676
676
|
"data-slot": "item-description",
|
|
677
677
|
className: cn(
|
|
678
|
-
"text-muted-foreground line-clamp-2 text-
|
|
678
|
+
"text-muted-foreground line-clamp-2 text-base leading-normal font-normal text-balance",
|
|
679
679
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
680
680
|
className
|
|
681
681
|
),
|
|
@@ -723,7 +723,7 @@ function ItemListItem({
|
|
|
723
723
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemTitle, { className: "truncate text-xs font-medium text-[var(--text-primary)]", children: primary }),
|
|
724
724
|
secondary && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemDescription, { className: "line-clamp-1 text-xs text-[var(--text-muted)]", children: secondary })
|
|
725
725
|
] }),
|
|
726
|
-
trailing && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-
|
|
726
|
+
trailing && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-sm tabular-nums text-[var(--text-muted)]", children: trailing }),
|
|
727
727
|
actions && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ItemActions, { children: actions })
|
|
728
728
|
]
|
|
729
729
|
}
|
|
@@ -744,7 +744,7 @@ function ItemList({
|
|
|
744
744
|
...props,
|
|
745
745
|
children: [
|
|
746
746
|
children,
|
|
747
|
-
overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "px-2 text-
|
|
747
|
+
overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "px-2 text-sm text-[var(--text-muted)]", children: [
|
|
748
748
|
"+",
|
|
749
749
|
overflowCount,
|
|
750
750
|
" more"
|
|
@@ -776,7 +776,7 @@ function ActivityListItem({
|
|
|
776
776
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
777
777
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
778
778
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "truncate text-xs text-[var(--text-primary)]", children: label }),
|
|
779
|
-
timestamp && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "shrink-0 text-
|
|
779
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "shrink-0 text-sm tabular-nums text-[var(--text-muted)]", children: timestamp })
|
|
780
780
|
] }),
|
|
781
781
|
detail && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "line-clamp-1 text-xs text-[var(--text-muted)]", children: detail })
|
|
782
782
|
] })
|
|
@@ -798,7 +798,7 @@ function ActivityList({
|
|
|
798
798
|
...props,
|
|
799
799
|
children: [
|
|
800
800
|
children,
|
|
801
|
-
overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("li", { className: "pl-5 pt-0.5 text-
|
|
801
|
+
overflowCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("li", { className: "pl-5 pt-0.5 text-sm text-[var(--text-muted)]", children: [
|
|
802
802
|
"+",
|
|
803
803
|
overflowCount,
|
|
804
804
|
" more"
|
|
@@ -890,7 +890,7 @@ var import_class_variance_authority4 = require("class-variance-authority");
|
|
|
890
890
|
var import_radix_ui3 = require("radix-ui");
|
|
891
891
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
892
892
|
var buttonVariants = (0, import_class_variance_authority4.cva)(
|
|
893
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-
|
|
893
|
+
"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",
|
|
894
894
|
{
|
|
895
895
|
variants: {
|
|
896
896
|
variant: {
|
|
@@ -988,7 +988,7 @@ function StaleIndicator({
|
|
|
988
988
|
{
|
|
989
989
|
"data-slot": "stale-indicator",
|
|
990
990
|
className: cn(
|
|
991
|
-
"flex items-center gap-1.5 text-
|
|
991
|
+
"flex items-center gap-1.5 text-sm text-[var(--text-muted)]",
|
|
992
992
|
className
|
|
993
993
|
),
|
|
994
994
|
...props,
|
|
@@ -1039,44 +1039,17 @@ function DataBoundary({
|
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
|
-
// src/components/ui/empty.tsx
|
|
1043
|
-
var import_class_variance_authority5 = require("class-variance-authority");
|
|
1044
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1045
|
-
var emptyMediaVariants = (0, import_class_variance_authority5.cva)(
|
|
1046
|
-
"flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
1047
|
-
{
|
|
1048
|
-
variants: {
|
|
1049
|
-
variant: {
|
|
1050
|
-
default: "bg-transparent",
|
|
1051
|
-
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
defaultVariants: {
|
|
1055
|
-
variant: "default"
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
);
|
|
1059
|
-
|
|
1060
|
-
// src/components/dashboard/empty-state.tsx
|
|
1061
|
-
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1062
|
-
|
|
1063
|
-
// src/components/ui/skeleton.tsx
|
|
1064
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1065
|
-
|
|
1066
|
-
// src/components/dashboard/skeletons.tsx
|
|
1067
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1068
|
-
|
|
1069
1042
|
// src/components/reference/StarterExample.tsx
|
|
1070
|
-
var
|
|
1043
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1071
1044
|
var RECENT = [
|
|
1072
1045
|
{ id: "a", label: "Nightly build", timestamp: "12m", tone: "success" },
|
|
1073
1046
|
{ id: "b", label: "Deploy to staging", timestamp: "1h", tone: "info" },
|
|
1074
1047
|
{ id: "c", label: "Dependency audit", timestamp: "3h", tone: "neutral" }
|
|
1075
1048
|
];
|
|
1076
1049
|
function StarterExample() {
|
|
1077
|
-
return /* @__PURE__ */ (0,
|
|
1078
|
-
/* @__PURE__ */ (0,
|
|
1079
|
-
/* @__PURE__ */ (0,
|
|
1050
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(WidgetContent, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Stack, { gap: "sm", children: [
|
|
1051
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Metric, { label: "Tasks done", value: 12, icon: import_lucide_react3.CheckCircle2, tone: "success" }),
|
|
1052
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Section, { heading: "Recent", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ActivityList, { children: RECENT.map((e) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1080
1053
|
ActivityListItem,
|
|
1081
1054
|
{
|
|
1082
1055
|
tone: e.tone,
|
|
@@ -1090,21 +1063,21 @@ function StarterExample() {
|
|
|
1090
1063
|
|
|
1091
1064
|
// src/components/reference/SchedulerExample.tsx
|
|
1092
1065
|
var import_lucide_react4 = require("lucide-react");
|
|
1093
|
-
var
|
|
1066
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1094
1067
|
var UPCOMING = [
|
|
1095
1068
|
{ id: "a", label: "Daily backup", timestamp: "08:00", tone: "success" },
|
|
1096
1069
|
{ id: "b", label: "Publish report", timestamp: "in 2h", tone: "info" },
|
|
1097
1070
|
{ id: "c", label: "Rotate API keys", timestamp: "tomorrow", tone: "warning" }
|
|
1098
1071
|
];
|
|
1099
1072
|
function SchedulerExample() {
|
|
1100
|
-
return /* @__PURE__ */ (0,
|
|
1101
|
-
/* @__PURE__ */ (0,
|
|
1102
|
-
/* @__PURE__ */ (0,
|
|
1103
|
-
/* @__PURE__ */ (0,
|
|
1073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(WidgetContent, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Stack, { gap: "sm", children: [
|
|
1074
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Inline, { justify: "between", align: "center", children: [
|
|
1075
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Status, { tone: "success", pulse: true, children: "Scheduler active" }),
|
|
1076
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ProgressRing, { value: 92, label: "Success rate", tone: "success", size: 40 })
|
|
1104
1077
|
] }),
|
|
1105
|
-
/* @__PURE__ */ (0,
|
|
1106
|
-
/* @__PURE__ */ (0,
|
|
1107
|
-
/* @__PURE__ */ (0,
|
|
1078
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Section, { heading: "Summary", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Inline, { gap: "sm", wrap: true, children: [
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MetricCard, { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Metric, { label: "Jobs", value: 6 }) }),
|
|
1080
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MetricCard, { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1108
1081
|
Metric,
|
|
1109
1082
|
{
|
|
1110
1083
|
label: "Runs today",
|
|
@@ -1113,16 +1086,16 @@ function SchedulerExample() {
|
|
|
1113
1086
|
}
|
|
1114
1087
|
) })
|
|
1115
1088
|
] }) }),
|
|
1116
|
-
/* @__PURE__ */ (0,
|
|
1117
|
-
/* @__PURE__ */ (0,
|
|
1089
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Divider, {}),
|
|
1090
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1118
1091
|
Section,
|
|
1119
1092
|
{
|
|
1120
1093
|
heading: "Next up",
|
|
1121
|
-
action: /* @__PURE__ */ (0,
|
|
1122
|
-
/* @__PURE__ */ (0,
|
|
1094
|
+
action: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Button, { size: "xs", variant: "ghost", children: [
|
|
1095
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react4.ExternalLink, { className: "size-3" }),
|
|
1123
1096
|
"All"
|
|
1124
1097
|
] }),
|
|
1125
|
-
children: /* @__PURE__ */ (0,
|
|
1098
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataBoundary, { state: "ready", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ActivityList, { children: UPCOMING.map((e) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1126
1099
|
ActivityListItem,
|
|
1127
1100
|
{
|
|
1128
1101
|
tone: e.tone,
|
|
@@ -1133,42 +1106,42 @@ function SchedulerExample() {
|
|
|
1133
1106
|
)) }) })
|
|
1134
1107
|
}
|
|
1135
1108
|
),
|
|
1136
|
-
/* @__PURE__ */ (0,
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StaleIndicator, { lastUpdated: "Updated 2m ago" })
|
|
1137
1110
|
] }) });
|
|
1138
1111
|
}
|
|
1139
1112
|
|
|
1140
1113
|
// src/components/reference/ResourceExample.tsx
|
|
1141
|
-
var
|
|
1114
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1142
1115
|
function Ring({
|
|
1143
1116
|
value,
|
|
1144
1117
|
label,
|
|
1145
1118
|
tone
|
|
1146
1119
|
}) {
|
|
1147
|
-
return /* @__PURE__ */ (0,
|
|
1148
|
-
/* @__PURE__ */ (0,
|
|
1149
|
-
/* @__PURE__ */ (0,
|
|
1120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Stack, { gap: "xs", align: "center", children: [
|
|
1121
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ProgressRing, { value, label, tone }),
|
|
1122
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { variant: "muted", children: label })
|
|
1150
1123
|
] });
|
|
1151
1124
|
}
|
|
1152
1125
|
function ResourceExample() {
|
|
1153
|
-
return /* @__PURE__ */ (0,
|
|
1154
|
-
/* @__PURE__ */ (0,
|
|
1155
|
-
/* @__PURE__ */ (0,
|
|
1156
|
-
/* @__PURE__ */ (0,
|
|
1157
|
-
/* @__PURE__ */ (0,
|
|
1158
|
-
/* @__PURE__ */ (0,
|
|
1126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(WidgetContent, { scroll: true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Stack, { gap: "sm", children: [
|
|
1127
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Heading, { level: 2, size: "md", children: "Resources" }),
|
|
1128
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(MetricGroup, { children: [
|
|
1129
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Metric, { label: "CPU", value: "42%", tone: "success" }),
|
|
1130
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Metric, { label: "Memory", value: "6.1 GB" }),
|
|
1131
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Metric, { label: "Disk", value: "71%", tone: "warning" })
|
|
1159
1132
|
] }),
|
|
1160
|
-
/* @__PURE__ */ (0,
|
|
1161
|
-
/* @__PURE__ */ (0,
|
|
1162
|
-
/* @__PURE__ */ (0,
|
|
1163
|
-
/* @__PURE__ */ (0,
|
|
1164
|
-
/* @__PURE__ */ (0,
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Divider, {}),
|
|
1134
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Section, { heading: "Usage", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Grid, { columns: 3, gap: "sm", children: [
|
|
1135
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Ring, { value: 42, label: "CPU", tone: "success" }),
|
|
1136
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Ring, { value: 61, label: "Memory", tone: "info" }),
|
|
1137
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Ring, { value: 71, label: "Disk", tone: "warning" })
|
|
1165
1138
|
] }) }),
|
|
1166
|
-
/* @__PURE__ */ (0,
|
|
1167
|
-
/* @__PURE__ */ (0,
|
|
1168
|
-
/* @__PURE__ */ (0,
|
|
1169
|
-
/* @__PURE__ */ (0,
|
|
1170
|
-
/* @__PURE__ */ (0,
|
|
1171
|
-
/* @__PURE__ */ (0,
|
|
1139
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Divider, {}),
|
|
1140
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Section, { heading: "Host", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(KeyValueList, { children: [
|
|
1141
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(KeyValue, { label: "Region", value: "eu-west-1", mono: true }),
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(KeyValue, { label: "Instance", value: "c7g.xlarge", mono: true }),
|
|
1143
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(KeyValue, { label: "Uptime", value: "14d 6h", mono: true }),
|
|
1144
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(KeyValue, { label: "Status", value: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Status, { tone: "success", children: "Healthy" }) })
|
|
1172
1145
|
] }) })
|
|
1173
1146
|
] }) });
|
|
1174
1147
|
}
|
|
@@ -1177,10 +1150,10 @@ function ResourceExample() {
|
|
|
1177
1150
|
var import_lucide_react5 = require("lucide-react");
|
|
1178
1151
|
|
|
1179
1152
|
// src/components/ui/badge.tsx
|
|
1180
|
-
var
|
|
1153
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
1181
1154
|
var import_radix_ui4 = require("radix-ui");
|
|
1182
|
-
var
|
|
1183
|
-
var badgeVariants = (0,
|
|
1155
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1156
|
+
var badgeVariants = (0, import_class_variance_authority5.cva)(
|
|
1184
1157
|
"inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",
|
|
1185
1158
|
{
|
|
1186
1159
|
variants: {
|
|
@@ -1209,7 +1182,7 @@ function Badge({
|
|
|
1209
1182
|
...props
|
|
1210
1183
|
}) {
|
|
1211
1184
|
const Comp = asChild ? import_radix_ui4.Slot.Root : "span";
|
|
1212
|
-
return /* @__PURE__ */ (0,
|
|
1185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1213
1186
|
Comp,
|
|
1214
1187
|
{
|
|
1215
1188
|
"data-slot": "badge",
|
|
@@ -1221,33 +1194,33 @@ function Badge({
|
|
|
1221
1194
|
}
|
|
1222
1195
|
|
|
1223
1196
|
// src/components/reference/ActivityExample.tsx
|
|
1224
|
-
var
|
|
1197
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1225
1198
|
var ITEMS = [
|
|
1226
1199
|
{ id: "1", title: "quarterly-report.pdf", meta: "2h", badge: "PDF" },
|
|
1227
1200
|
{ id: "2", title: "design-tokens.json", meta: "5h", badge: "JSON" },
|
|
1228
1201
|
{ id: "3", title: "release-notes.md", meta: "1d", badge: "MD" }
|
|
1229
1202
|
];
|
|
1230
1203
|
function ActivityExample() {
|
|
1231
|
-
return /* @__PURE__ */ (0,
|
|
1232
|
-
/* @__PURE__ */ (0,
|
|
1233
|
-
/* @__PURE__ */ (0,
|
|
1234
|
-
/* @__PURE__ */ (0,
|
|
1204
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(WidgetContent, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Stack, { gap: "sm", fill: true, children: [
|
|
1205
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Inline, { justify: "between", align: "center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Inline, { gap: "xs", align: "center", children: [
|
|
1206
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Text, { variant: "label", children: "Recent files" }),
|
|
1207
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Badge, { variant: "info", children: ITEMS.length })
|
|
1235
1208
|
] }) }),
|
|
1236
|
-
/* @__PURE__ */ (0,
|
|
1209
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Stack, { gap: "none", scroll: true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ItemList, { children: ITEMS.map((f) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1237
1210
|
ItemListItem,
|
|
1238
1211
|
{
|
|
1239
|
-
leading: /* @__PURE__ */ (0,
|
|
1212
|
+
leading: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react5.FileText, { className: "size-4 text-[var(--text-muted)]" }),
|
|
1240
1213
|
primary: f.title,
|
|
1241
|
-
trailing: /* @__PURE__ */ (0,
|
|
1242
|
-
/* @__PURE__ */ (0,
|
|
1243
|
-
/* @__PURE__ */ (0,
|
|
1214
|
+
trailing: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Inline, { gap: "xs", align: "center", children: [
|
|
1215
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Badge, { variant: "secondary", children: f.badge }),
|
|
1216
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: f.meta })
|
|
1244
1217
|
] })
|
|
1245
1218
|
},
|
|
1246
1219
|
f.id
|
|
1247
1220
|
)) }) }),
|
|
1248
|
-
/* @__PURE__ */ (0,
|
|
1249
|
-
/* @__PURE__ */ (0,
|
|
1250
|
-
/* @__PURE__ */ (0,
|
|
1221
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Inline, { justify: "between", align: "center", children: [
|
|
1222
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Status, { tone: "info", variant: "pill", children: "Synced" }),
|
|
1223
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(StaleIndicator, { lastUpdated: "Synced 30s ago" })
|
|
1251
1224
|
] })
|
|
1252
1225
|
] }) });
|
|
1253
1226
|
}
|