@sero-ai/ui 0.3.1 → 0.4.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 +628 -0
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +38 -0
- package/dist/components/context-editor/CapabilitySection.cjs +57 -0
- package/dist/components/context-editor/CapabilitySection.d.cts +20 -0
- package/dist/components/context-editor/CapabilitySection.d.ts +20 -0
- package/dist/components/context-editor/CapabilitySection.js +57 -0
- package/dist/components/context-editor/ContextEditor.cjs +108 -0
- package/dist/components/context-editor/ContextEditor.d.cts +26 -0
- package/dist/components/context-editor/ContextEditor.d.ts +26 -0
- package/dist/components/context-editor/ContextEditor.js +108 -0
- package/dist/components/context-editor/PresetBar.cjs +71 -0
- package/dist/components/context-editor/PresetBar.d.cts +19 -0
- package/dist/components/context-editor/PresetBar.d.ts +19 -0
- package/dist/components/context-editor/PresetBar.js +71 -0
- package/dist/components/context-editor/SkillsSection.cjs +31 -0
- package/dist/components/context-editor/SkillsSection.d.cts +14 -0
- package/dist/components/context-editor/SkillsSection.d.ts +14 -0
- package/dist/components/context-editor/SkillsSection.js +31 -0
- package/dist/components/context-editor/SystemPromptSection.cjs +58 -0
- package/dist/components/context-editor/SystemPromptSection.d.cts +25 -0
- package/dist/components/context-editor/SystemPromptSection.d.ts +25 -0
- package/dist/components/context-editor/SystemPromptSection.js +58 -0
- package/dist/components/context-editor/ToolsSection.cjs +31 -0
- package/dist/components/context-editor/ToolsSection.d.cts +14 -0
- package/dist/components/context-editor/ToolsSection.d.ts +14 -0
- package/dist/components/context-editor/ToolsSection.js +31 -0
- package/dist/components/context-editor/index.cjs +8 -0
- package/dist/components/context-editor/index.d.cts +5 -0
- package/dist/components/context-editor/index.d.ts +5 -0
- package/dist/components/context-editor/index.js +8 -0
- package/dist/components/context-editor/parts.cjs +184 -0
- package/dist/components/context-editor/parts.d.cts +32 -0
- package/dist/components/context-editor/parts.d.ts +32 -0
- package/dist/components/context-editor/parts.js +184 -0
- package/dist/components/context-editor/use-context-editor-model.cjs +194 -0
- package/dist/components/context-editor/use-context-editor-model.d.cts +57 -0
- package/dist/components/context-editor/use-context-editor-model.d.ts +57 -0
- package/dist/components/context-editor/use-context-editor-model.js +194 -0
- package/dist/components/dashboard/activity-list.cjs +59 -0
- package/dist/components/dashboard/activity-list.d.cts +27 -0
- package/dist/components/dashboard/activity-list.d.ts +27 -0
- package/dist/components/dashboard/activity-list.js +59 -0
- package/dist/components/dashboard/catalog.cjs +322 -0
- package/dist/components/dashboard/catalog.d.cts +14 -0
- package/dist/components/dashboard/catalog.d.ts +14 -0
- package/dist/components/dashboard/catalog.js +322 -0
- package/dist/components/dashboard/data-boundary.cjs +29 -0
- package/dist/components/dashboard/data-boundary.d.cts +21 -0
- package/dist/components/dashboard/data-boundary.d.ts +21 -0
- package/dist/components/dashboard/data-boundary.js +29 -0
- package/dist/components/dashboard/empty-state.cjs +49 -0
- package/dist/components/dashboard/empty-state.d.cts +20 -0
- package/dist/components/dashboard/empty-state.d.ts +20 -0
- package/dist/components/dashboard/empty-state.js +49 -0
- package/dist/components/dashboard/icon-button.cjs +40 -0
- package/dist/components/dashboard/icon-button.d.cts +24 -0
- package/dist/components/dashboard/icon-button.d.ts +24 -0
- package/dist/components/dashboard/icon-button.js +40 -0
- package/dist/components/dashboard/index.cjs +15 -0
- package/dist/components/dashboard/index.d.cts +24 -0
- package/dist/components/dashboard/index.d.ts +24 -0
- package/dist/components/dashboard/index.js +15 -0
- package/dist/components/dashboard/item-list.cjs +71 -0
- package/dist/components/dashboard/item-list.d.cts +28 -0
- package/dist/components/dashboard/item-list.d.ts +28 -0
- package/dist/components/dashboard/item-list.js +71 -0
- package/dist/components/dashboard/key-value.cjs +39 -0
- package/dist/components/dashboard/key-value.d.cts +17 -0
- package/dist/components/dashboard/key-value.d.ts +17 -0
- package/dist/components/dashboard/key-value.js +39 -0
- package/dist/components/dashboard/layout.cjs +193 -0
- package/dist/components/dashboard/layout.d.cts +91 -0
- package/dist/components/dashboard/layout.d.ts +91 -0
- package/dist/components/dashboard/layout.js +193 -0
- package/dist/components/dashboard/metric.cjs +98 -0
- package/dist/components/dashboard/metric.d.cts +44 -0
- package/dist/components/dashboard/metric.d.ts +44 -0
- package/dist/components/dashboard/metric.js +98 -0
- package/dist/components/dashboard/progress-ring.cjs +77 -0
- package/dist/components/dashboard/progress-ring.d.cts +25 -0
- package/dist/components/dashboard/progress-ring.d.ts +25 -0
- package/dist/components/dashboard/progress-ring.js +77 -0
- package/dist/components/dashboard/skeletons.cjs +54 -0
- package/dist/components/dashboard/skeletons.d.cts +15 -0
- package/dist/components/dashboard/skeletons.d.ts +15 -0
- package/dist/components/dashboard/skeletons.js +54 -0
- package/dist/components/dashboard/spacing.cjs +10 -0
- package/dist/components/dashboard/spacing.d.cts +4 -0
- package/dist/components/dashboard/spacing.d.ts +4 -0
- package/dist/components/dashboard/spacing.js +10 -0
- package/dist/components/dashboard/stale-indicator.cjs +42 -0
- package/dist/components/dashboard/stale-indicator.d.cts +15 -0
- package/dist/components/dashboard/stale-indicator.d.ts +15 -0
- package/dist/components/dashboard/stale-indicator.js +42 -0
- package/dist/components/dashboard/status.cjs +62 -0
- package/dist/components/dashboard/status.d.cts +15 -0
- package/dist/components/dashboard/status.d.ts +15 -0
- package/dist/components/dashboard/status.js +62 -0
- package/dist/components/dashboard/tone.cjs +26 -0
- package/dist/components/dashboard/tone.d.cts +9 -0
- package/dist/components/dashboard/tone.d.ts +9 -0
- package/dist/components/dashboard/tone.js +26 -0
- package/dist/components/dashboard/typography.cjs +99 -0
- package/dist/components/dashboard/typography.d.cts +57 -0
- package/dist/components/dashboard/typography.d.ts +57 -0
- package/dist/components/dashboard/typography.js +99 -0
- package/dist/components/reference/ActivityExample.cjs +47 -0
- package/dist/components/reference/ActivityExample.d.cts +5 -0
- package/dist/components/reference/ActivityExample.d.ts +5 -0
- package/dist/components/reference/ActivityExample.js +47 -0
- package/dist/components/reference/ResourceExample.cjs +54 -0
- package/dist/components/reference/ResourceExample.d.cts +5 -0
- package/dist/components/reference/ResourceExample.d.ts +5 -0
- package/dist/components/reference/ResourceExample.js +54 -0
- package/dist/components/reference/SchedulerExample.cjs +68 -0
- package/dist/components/reference/SchedulerExample.d.cts +5 -0
- package/dist/components/reference/SchedulerExample.d.ts +5 -0
- package/dist/components/reference/SchedulerExample.js +68 -0
- package/dist/components/reference/StarterExample.cjs +34 -0
- package/dist/components/reference/StarterExample.d.cts +5 -0
- package/dist/components/reference/StarterExample.d.ts +5 -0
- package/dist/components/reference/StarterExample.js +34 -0
- package/dist/components/reference/index.cjs +10 -0
- package/dist/components/reference/index.d.cts +5 -0
- package/dist/components/reference/index.d.ts +5 -0
- package/dist/components/reference/index.js +10 -0
- package/dist/components/ui/badge.cjs +5 -1
- package/dist/components/ui/badge.d.cts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +5 -1
- package/dist/dashboard-catalog.cjs +8 -0
- package/dist/dashboard-catalog.d.cts +1 -0
- package/dist/dashboard-catalog.d.ts +1 -0
- package/dist/dashboard-catalog.js +8 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1 -0
- package/dist/reference.cjs +12 -0
- package/dist/reference.d.cts +5 -0
- package/dist/reference.d.ts +5 -0
- package/dist/reference.js +12 -0
- package/dist/styles/glass-board.css +43 -0
- package/dist/styles/globals.css +497 -0
- package/dist/styles/plugin.css +4 -0
- package/package.json +71 -30
- package/src/components/context-editor/CapabilitySection.tsx +85 -0
- package/src/components/context-editor/ContextEditor.tsx +138 -0
- package/src/components/context-editor/PresetBar.tsx +94 -0
- package/src/components/context-editor/SkillsSection.tsx +37 -0
- package/src/components/context-editor/SystemPromptSection.tsx +88 -0
- package/src/components/context-editor/ToolsSection.tsx +37 -0
- package/src/components/context-editor/index.ts +7 -0
- package/src/components/context-editor/parts.tsx +217 -0
- package/src/components/context-editor/use-context-editor-model.ts +296 -0
- package/src/components/dashboard/__tests__/catalog.test.ts +57 -0
- package/src/components/dashboard/__tests__/glass.test.tsx +42 -0
- package/src/components/dashboard/__tests__/state.test.tsx +110 -0
- package/src/components/dashboard/__tests__/variants.test.tsx +95 -0
- package/src/components/dashboard/activity-list.tsx +99 -0
- package/src/components/dashboard/catalog.ts +351 -0
- package/src/components/dashboard/data-boundary.tsx +54 -0
- package/src/components/dashboard/empty-state.tsx +70 -0
- package/src/components/dashboard/icon-button.tsx +58 -0
- package/src/components/dashboard/index.ts +21 -0
- package/src/components/dashboard/item-list.tsx +106 -0
- package/src/components/dashboard/key-value.tsx +54 -0
- package/src/components/dashboard/layout.tsx +286 -0
- package/src/components/dashboard/metric.tsx +139 -0
- package/src/components/dashboard/progress-ring.tsx +100 -0
- package/src/components/dashboard/skeletons.tsx +73 -0
- package/src/components/dashboard/spacing.ts +14 -0
- package/src/components/dashboard/stale-indicator.tsx +55 -0
- package/src/components/dashboard/status.tsx +75 -0
- package/src/components/dashboard/tone.ts +35 -0
- package/src/components/dashboard/typography.tsx +151 -0
- package/src/components/reference/ActivityExample.tsx +68 -0
- package/src/components/reference/ResourceExample.tsx +78 -0
- package/src/components/reference/SchedulerExample.tsx +88 -0
- package/src/components/reference/StarterExample.tsx +48 -0
- package/src/components/reference/index.ts +10 -0
- package/src/components/ui/badge.tsx +6 -0
- package/src/dashboard-catalog.ts +13 -0
- package/src/index.ts +5 -0
- package/src/reference.ts +15 -0
- package/src/styles/glass-board.css +43 -0
- package/src/styles/globals.css +59 -0
- package/tsup.config.ts +11 -3
- package/vitest.config.ts +8 -0
- package/LICENSE +0 -201
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "shadcn/tailwind.css";
|
|
4
|
+
|
|
5
|
+
/* Ensure monorepo consumers that @import this file also scan @sero-ai/ui
|
|
6
|
+
component sources for Tailwind utility classes. Without this, complex
|
|
7
|
+
classes like has-[>[data-align=block-end]]:flex-col won't be generated. */
|
|
8
|
+
@source "../components";
|
|
9
|
+
|
|
10
|
+
@custom-variant dark (&:is(.dark *));
|
|
11
|
+
|
|
12
|
+
/* ── Sero Design System ──────────────────────────────────────── */
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
/* Surface colors (light) */
|
|
16
|
+
--bg-base: #ffffff;
|
|
17
|
+
--bg-surface: #f4f5f7;
|
|
18
|
+
--bg-elevated: #eaecf0;
|
|
19
|
+
--bg-overlay: #dde0e6;
|
|
20
|
+
--bg-muted: #c8ccd4;
|
|
21
|
+
|
|
22
|
+
/* Border (light) */
|
|
23
|
+
--border-subtle: #d4d8e0;
|
|
24
|
+
--border-default: #bcc1cc;
|
|
25
|
+
--border-focus: #059669;
|
|
26
|
+
|
|
27
|
+
/* Text (light) */
|
|
28
|
+
--text-primary: #0f1117;
|
|
29
|
+
--text-secondary: #3b4252;
|
|
30
|
+
--text-muted: #6b7280;
|
|
31
|
+
--text-inverse: #fafafa;
|
|
32
|
+
|
|
33
|
+
/* Brand colours — product identity, actions, active UI */
|
|
34
|
+
--brand-primary: #059669;
|
|
35
|
+
--brand-primary-hover: #047857;
|
|
36
|
+
--brand-primary-foreground: #ffffff;
|
|
37
|
+
--brand-primary-muted: color-mix(in srgb, var(--brand-primary) 10%, transparent);
|
|
38
|
+
--brand-primary-subtle: color-mix(in srgb, var(--brand-primary) 15%, transparent);
|
|
39
|
+
--brand-primary-faint: color-mix(in srgb, var(--brand-primary) 3%, transparent);
|
|
40
|
+
--brand-primary-border: color-mix(in srgb, var(--brand-primary) 20%, transparent);
|
|
41
|
+
--brand-secondary: #7c3aed;
|
|
42
|
+
--brand-secondary-hover: #6d28d9;
|
|
43
|
+
--brand-secondary-foreground: #ffffff;
|
|
44
|
+
--brand-secondary-muted: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
|
|
45
|
+
--brand-secondary-subtle: color-mix(in srgb, var(--brand-secondary) 15%, transparent);
|
|
46
|
+
--brand-secondary-faint: color-mix(in srgb, var(--brand-secondary) 3%, transparent);
|
|
47
|
+
--brand-secondary-border: color-mix(in srgb, var(--brand-secondary) 20%, transparent);
|
|
48
|
+
|
|
49
|
+
/* Legacy accent / syntax accent */
|
|
50
|
+
--accent-primary: var(--brand-secondary);
|
|
51
|
+
--accent-hover: var(--brand-secondary-hover);
|
|
52
|
+
--accent-muted: var(--brand-secondary-muted);
|
|
53
|
+
--accent-code: #7c3aed;
|
|
54
|
+
|
|
55
|
+
/* Status — solid */
|
|
56
|
+
--status-success: #16a34a;
|
|
57
|
+
--status-warning: #d97706;
|
|
58
|
+
--status-error: #dc2626;
|
|
59
|
+
--status-info: #2563eb;
|
|
60
|
+
|
|
61
|
+
/* Status — muted backgrounds (low-opacity tints) */
|
|
62
|
+
--status-success-muted: rgba(22, 163, 74, 0.10);
|
|
63
|
+
--status-warning-muted: rgba(217, 119, 6, 0.10);
|
|
64
|
+
--status-error-muted: rgba(220, 38, 38, 0.10);
|
|
65
|
+
--status-info-muted: rgba(37, 99, 235, 0.10);
|
|
66
|
+
|
|
67
|
+
/* Status — subtle (slightly stronger tint for borders, badges) */
|
|
68
|
+
--status-success-subtle: rgba(22, 163, 74, 0.15);
|
|
69
|
+
--status-warning-subtle: rgba(217, 119, 6, 0.15);
|
|
70
|
+
--status-error-subtle: rgba(220, 38, 38, 0.15);
|
|
71
|
+
--status-info-subtle: rgba(37, 99, 235, 0.15);
|
|
72
|
+
|
|
73
|
+
/* Status — faint (near-invisible tint for full-area backgrounds) */
|
|
74
|
+
--status-success-faint: rgba(22, 163, 74, 0.03);
|
|
75
|
+
--status-warning-faint: rgba(217, 119, 6, 0.03);
|
|
76
|
+
--status-error-faint: rgba(220, 38, 38, 0.03);
|
|
77
|
+
--status-info-faint: rgba(37, 99, 235, 0.03);
|
|
78
|
+
|
|
79
|
+
/* Status — border (20% opacity for bordered containers) */
|
|
80
|
+
--status-success-border: rgba(22, 163, 74, 0.20);
|
|
81
|
+
--status-warning-border: rgba(217, 119, 6, 0.20);
|
|
82
|
+
--status-error-border: rgba(220, 38, 38, 0.20);
|
|
83
|
+
--status-info-border: rgba(37, 99, 235, 0.20);
|
|
84
|
+
|
|
85
|
+
/* Semantic colours — collaboration / special modes */
|
|
86
|
+
--collab-primary: #7c3aed;
|
|
87
|
+
--collab-primary-muted: rgba(124, 58, 237, 0.10);
|
|
88
|
+
--collab-primary-subtle: rgba(124, 58, 237, 0.15);
|
|
89
|
+
--collab-primary-border: rgba(124, 58, 237, 0.20);
|
|
90
|
+
|
|
91
|
+
/* Semantic colours — voice / recording */
|
|
92
|
+
--voice-recording: #f43f5e;
|
|
93
|
+
--voice-recording-muted: rgba(244, 63, 94, 0.20);
|
|
94
|
+
--voice-processing: #06b6d4;
|
|
95
|
+
--voice-processing-muted: rgba(6, 182, 212, 0.15);
|
|
96
|
+
|
|
97
|
+
/* Semantic colours — indigo accent for notifications/banners */
|
|
98
|
+
--banner-primary: var(--brand-secondary);
|
|
99
|
+
--banner-primary-muted: color-mix(in srgb, var(--banner-primary) 10%, transparent);
|
|
100
|
+
--banner-primary-subtle: color-mix(in srgb, var(--banner-primary) 15%, transparent);
|
|
101
|
+
--banner-primary-border: color-mix(in srgb, var(--banner-primary) 20%, transparent);
|
|
102
|
+
|
|
103
|
+
/* Thinking / reasoning gradients */
|
|
104
|
+
--gradient-thinking-high: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(239, 68, 68, 0.20));
|
|
105
|
+
--gradient-thinking-low: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(139, 92, 246, 0.20));
|
|
106
|
+
|
|
107
|
+
/* File type icon colours */
|
|
108
|
+
--file-icon-ts: #3b82f6;
|
|
109
|
+
--file-icon-js: #eab308;
|
|
110
|
+
--file-icon-json: #22c55e;
|
|
111
|
+
--file-icon-css: #6366f1;
|
|
112
|
+
--file-icon-rust: #f97316;
|
|
113
|
+
--file-icon-markdown: #6366f1;
|
|
114
|
+
--file-icon-default: var(--text-muted);
|
|
115
|
+
|
|
116
|
+
/* Typography (themeable) */
|
|
117
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
118
|
+
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
|
|
119
|
+
--font-size-base: 14px;
|
|
120
|
+
|
|
121
|
+
/* Spacing */
|
|
122
|
+
--space-xs: 4px;
|
|
123
|
+
--space-sm: 8px;
|
|
124
|
+
--space-md: 12px;
|
|
125
|
+
--space-lg: 16px;
|
|
126
|
+
--space-xl: 24px;
|
|
127
|
+
|
|
128
|
+
/* Sero radius (legacy — use Tailwind rounded-* for new components) */
|
|
129
|
+
--sero-radius-sm: 4px;
|
|
130
|
+
--sero-radius-md: 8px;
|
|
131
|
+
--sero-radius-lg: 12px;
|
|
132
|
+
|
|
133
|
+
/* Sero font sizes (legacy — use Tailwind text-* for new components) */
|
|
134
|
+
--sero-text-xs: 12px;
|
|
135
|
+
--sero-text-sm: 13px;
|
|
136
|
+
--sero-text-base: 14px;
|
|
137
|
+
--sero-text-lg: 15px;
|
|
138
|
+
--sero-text-xl: 16px;
|
|
139
|
+
|
|
140
|
+
/* Transition */
|
|
141
|
+
--transition-fast: 120ms ease;
|
|
142
|
+
--transition-normal: 200ms ease;
|
|
143
|
+
--radius: 0.625rem;
|
|
144
|
+
|
|
145
|
+
/* ── shadcn bridge ────────────────────────────────────────
|
|
146
|
+
Derive shadcn/ui tokens from Sero design tokens so every
|
|
147
|
+
shadcn component (Dialog, Command, Dropdown, Tooltip, …)
|
|
148
|
+
automatically follows theme changes.
|
|
149
|
+
NOTE: --accent here is the shadcn "hover/selection bg",
|
|
150
|
+
NOT a brand colour (use --brand-primary/secondary). */
|
|
151
|
+
--background: var(--bg-base);
|
|
152
|
+
--foreground: var(--text-primary);
|
|
153
|
+
--card: var(--bg-surface);
|
|
154
|
+
--card-foreground: var(--text-primary);
|
|
155
|
+
--popover: var(--bg-elevated);
|
|
156
|
+
--popover-foreground: var(--text-primary);
|
|
157
|
+
--primary: var(--brand-primary);
|
|
158
|
+
--primary-foreground: var(--brand-primary-foreground);
|
|
159
|
+
--secondary: var(--bg-surface);
|
|
160
|
+
--secondary-foreground: var(--text-primary);
|
|
161
|
+
--muted: var(--bg-muted);
|
|
162
|
+
--muted-foreground: var(--text-muted);
|
|
163
|
+
--accent: var(--bg-overlay);
|
|
164
|
+
--accent-foreground: var(--text-primary);
|
|
165
|
+
--destructive: var(--status-error);
|
|
166
|
+
--border: var(--border-default);
|
|
167
|
+
--input: var(--border-subtle);
|
|
168
|
+
--ring: var(--border-focus);
|
|
169
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
170
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
171
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
172
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
173
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
174
|
+
--sidebar: var(--bg-surface);
|
|
175
|
+
--sidebar-foreground: var(--text-primary);
|
|
176
|
+
--sidebar-primary: var(--brand-primary);
|
|
177
|
+
--sidebar-primary-foreground: var(--brand-primary-foreground);
|
|
178
|
+
--sidebar-accent: var(--bg-elevated);
|
|
179
|
+
--sidebar-accent-foreground: var(--text-primary);
|
|
180
|
+
--sidebar-border: var(--border-subtle);
|
|
181
|
+
--sidebar-ring: var(--border-focus);
|
|
182
|
+
|
|
183
|
+
/* ── Glass (dashboard) ────────────────────────────────────
|
|
184
|
+
Canonical translucent surface language for the glass
|
|
185
|
+
dashboard. The host `dashboard.css` derives its `--dash-*`
|
|
186
|
+
tokens from these, and the `.glass` scope below remaps the
|
|
187
|
+
component-facing `--surface-*` tokens to them. Light =
|
|
188
|
+
frosted white; dark values live in the `.dark` block. */
|
|
189
|
+
--glass-tile: rgba(255, 255, 255, 0.52); /* base tile (host) */
|
|
190
|
+
--glass-surface: rgba(255, 255, 255, 0.62); /* raised card */
|
|
191
|
+
--glass-surface-flat: rgba(255, 255, 255, 0.40); /* flat row */
|
|
192
|
+
--glass-border: rgba(15, 17, 23, 0.10);
|
|
193
|
+
--glass-rim: rgba(255, 255, 255, 0.60);
|
|
194
|
+
--glass-hover: rgba(255, 255, 255, 0.72);
|
|
195
|
+
|
|
196
|
+
/* Component-facing surface tokens. Default to the solid design
|
|
197
|
+
tokens so components look unchanged outside the `.glass`
|
|
198
|
+
scope; the scope flips them to the glass values above. */
|
|
199
|
+
--surface-raised: var(--bg-surface);
|
|
200
|
+
--surface-flat: var(--bg-elevated);
|
|
201
|
+
--surface-line: var(--border-subtle);
|
|
202
|
+
--surface-rim: transparent;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* ── Scrollbars ─────────────────────────────────────────────── */
|
|
206
|
+
::-webkit-scrollbar {
|
|
207
|
+
width: 6px;
|
|
208
|
+
height: 6px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
::-webkit-scrollbar-track {
|
|
212
|
+
background: transparent;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
::-webkit-scrollbar-thumb {
|
|
216
|
+
background: var(--border-default);
|
|
217
|
+
border-radius: 3px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
::-webkit-scrollbar-thumb:hover {
|
|
221
|
+
background: var(--text-muted);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* ── Selection ──────────────────────────────────────────────── */
|
|
225
|
+
::selection {
|
|
226
|
+
background: var(--accent-muted);
|
|
227
|
+
color: var(--text-primary);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* ── Focus ──────────────────────────────────────────────────── */
|
|
231
|
+
/* Scoped to avoid conflicting with shadcn/Radix components which
|
|
232
|
+
manage their own focus rings via Tailwind ring utilities. */
|
|
233
|
+
:focus-visible:not([data-slot]) {
|
|
234
|
+
outline: 2px solid var(--border-focus);
|
|
235
|
+
outline-offset: -2px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@theme inline {
|
|
239
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
240
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
241
|
+
--radius-lg: var(--radius);
|
|
242
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
243
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
244
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
245
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
246
|
+
--color-background: var(--background);
|
|
247
|
+
--color-foreground: var(--foreground);
|
|
248
|
+
--color-brand-primary: var(--brand-primary);
|
|
249
|
+
--color-brand-primary-foreground: var(--brand-primary-foreground);
|
|
250
|
+
--color-brand-primary-muted: var(--brand-primary-muted);
|
|
251
|
+
--color-brand-primary-subtle: var(--brand-primary-subtle);
|
|
252
|
+
--color-brand-primary-faint: var(--brand-primary-faint);
|
|
253
|
+
--color-brand-primary-border: var(--brand-primary-border);
|
|
254
|
+
--color-brand-secondary: var(--brand-secondary);
|
|
255
|
+
--color-brand-secondary-foreground: var(--brand-secondary-foreground);
|
|
256
|
+
--color-brand-secondary-muted: var(--brand-secondary-muted);
|
|
257
|
+
--color-brand-secondary-subtle: var(--brand-secondary-subtle);
|
|
258
|
+
--color-brand-secondary-faint: var(--brand-secondary-faint);
|
|
259
|
+
--color-brand-secondary-border: var(--brand-secondary-border);
|
|
260
|
+
--color-status-success: var(--status-success);
|
|
261
|
+
--color-status-success-muted: var(--status-success-muted);
|
|
262
|
+
--color-status-success-subtle: var(--status-success-subtle);
|
|
263
|
+
--color-status-success-faint: var(--status-success-faint);
|
|
264
|
+
--color-status-success-border: var(--status-success-border);
|
|
265
|
+
--color-status-warning: var(--status-warning);
|
|
266
|
+
--color-status-warning-muted: var(--status-warning-muted);
|
|
267
|
+
--color-status-warning-subtle: var(--status-warning-subtle);
|
|
268
|
+
--color-status-warning-faint: var(--status-warning-faint);
|
|
269
|
+
--color-status-warning-border: var(--status-warning-border);
|
|
270
|
+
--color-status-error: var(--status-error);
|
|
271
|
+
--color-status-error-muted: var(--status-error-muted);
|
|
272
|
+
--color-status-error-subtle: var(--status-error-subtle);
|
|
273
|
+
--color-status-error-faint: var(--status-error-faint);
|
|
274
|
+
--color-status-error-border: var(--status-error-border);
|
|
275
|
+
--color-status-info: var(--status-info);
|
|
276
|
+
--color-status-info-muted: var(--status-info-muted);
|
|
277
|
+
--color-status-info-subtle: var(--status-info-subtle);
|
|
278
|
+
--color-status-info-faint: var(--status-info-faint);
|
|
279
|
+
--color-status-info-border: var(--status-info-border);
|
|
280
|
+
--color-card: var(--card);
|
|
281
|
+
--color-card-foreground: var(--card-foreground);
|
|
282
|
+
--color-popover: var(--popover);
|
|
283
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
284
|
+
--color-primary: var(--primary);
|
|
285
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
286
|
+
--color-secondary: var(--secondary);
|
|
287
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
288
|
+
--color-muted: var(--muted);
|
|
289
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
290
|
+
--color-accent: var(--accent);
|
|
291
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
292
|
+
--color-destructive: var(--destructive);
|
|
293
|
+
--color-border: var(--border);
|
|
294
|
+
--color-input: var(--input);
|
|
295
|
+
--color-ring: var(--ring);
|
|
296
|
+
--color-chart-1: var(--chart-1);
|
|
297
|
+
--color-chart-2: var(--chart-2);
|
|
298
|
+
--color-chart-3: var(--chart-3);
|
|
299
|
+
--color-chart-4: var(--chart-4);
|
|
300
|
+
--color-chart-5: var(--chart-5);
|
|
301
|
+
--color-sidebar: var(--sidebar);
|
|
302
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
303
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
304
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
305
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
306
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
307
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
308
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.dark {
|
|
312
|
+
/* Surface colors (dark) */
|
|
313
|
+
--bg-base: #0a0a0b;
|
|
314
|
+
--bg-surface: #111113;
|
|
315
|
+
--bg-elevated: #18181b;
|
|
316
|
+
--bg-overlay: #1f1f23;
|
|
317
|
+
--bg-muted: #27272a;
|
|
318
|
+
|
|
319
|
+
/* Border (dark) */
|
|
320
|
+
--border-subtle: #27272a;
|
|
321
|
+
--border-default: #3f3f46;
|
|
322
|
+
--border-focus: #34d399;
|
|
323
|
+
|
|
324
|
+
/* Text (dark) */
|
|
325
|
+
--text-primary: #fafafa;
|
|
326
|
+
--text-secondary: #a1a1aa;
|
|
327
|
+
--text-muted: #71717a;
|
|
328
|
+
--text-inverse: #09090b;
|
|
329
|
+
|
|
330
|
+
/* Brand colours (dark) */
|
|
331
|
+
--brand-primary: #34d399;
|
|
332
|
+
--brand-primary-hover: #6ee7b7;
|
|
333
|
+
--brand-primary-foreground: #052e1c;
|
|
334
|
+
--brand-primary-muted: color-mix(in srgb, var(--brand-primary) 10%, transparent);
|
|
335
|
+
--brand-primary-subtle: color-mix(in srgb, var(--brand-primary) 15%, transparent);
|
|
336
|
+
--brand-primary-faint: color-mix(in srgb, var(--brand-primary) 3%, transparent);
|
|
337
|
+
--brand-primary-border: color-mix(in srgb, var(--brand-primary) 20%, transparent);
|
|
338
|
+
--brand-secondary: #c4b5fd;
|
|
339
|
+
--brand-secondary-hover: #ddd6fe;
|
|
340
|
+
--brand-secondary-foreground: #1e1038;
|
|
341
|
+
--brand-secondary-muted: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
|
|
342
|
+
--brand-secondary-subtle: color-mix(in srgb, var(--brand-secondary) 15%, transparent);
|
|
343
|
+
--brand-secondary-faint: color-mix(in srgb, var(--brand-secondary) 3%, transparent);
|
|
344
|
+
--brand-secondary-border: color-mix(in srgb, var(--brand-secondary) 20%, transparent);
|
|
345
|
+
|
|
346
|
+
/* Legacy accent / syntax accent (dark) */
|
|
347
|
+
--accent-primary: var(--brand-secondary);
|
|
348
|
+
--accent-hover: var(--brand-secondary-hover);
|
|
349
|
+
--accent-muted: var(--brand-secondary-muted);
|
|
350
|
+
--accent-code: #c4b5fd;
|
|
351
|
+
|
|
352
|
+
/* Status — solid (dark) */
|
|
353
|
+
--status-success: #22c55e;
|
|
354
|
+
--status-warning: #f59e0b;
|
|
355
|
+
--status-error: #ef4444;
|
|
356
|
+
--status-info: #3b82f6;
|
|
357
|
+
|
|
358
|
+
/* Status — muted backgrounds (dark) */
|
|
359
|
+
--status-success-muted: rgba(34, 197, 94, 0.10);
|
|
360
|
+
--status-warning-muted: rgba(245, 158, 11, 0.10);
|
|
361
|
+
--status-error-muted: rgba(239, 68, 68, 0.10);
|
|
362
|
+
--status-info-muted: rgba(59, 130, 246, 0.10);
|
|
363
|
+
|
|
364
|
+
/* Status — subtle (dark) */
|
|
365
|
+
--status-success-subtle: rgba(34, 197, 94, 0.15);
|
|
366
|
+
--status-warning-subtle: rgba(245, 158, 11, 0.15);
|
|
367
|
+
--status-error-subtle: rgba(239, 68, 68, 0.15);
|
|
368
|
+
--status-info-subtle: rgba(59, 130, 246, 0.15);
|
|
369
|
+
|
|
370
|
+
/* Status — faint (dark) */
|
|
371
|
+
--status-success-faint: rgba(34, 197, 94, 0.03);
|
|
372
|
+
--status-warning-faint: rgba(245, 158, 11, 0.03);
|
|
373
|
+
--status-error-faint: rgba(239, 68, 68, 0.03);
|
|
374
|
+
--status-info-faint: rgba(59, 130, 246, 0.03);
|
|
375
|
+
|
|
376
|
+
/* Status — border (dark) */
|
|
377
|
+
--status-success-border: rgba(34, 197, 94, 0.20);
|
|
378
|
+
--status-warning-border: rgba(245, 158, 11, 0.20);
|
|
379
|
+
--status-error-border: rgba(239, 68, 68, 0.20);
|
|
380
|
+
--status-info-border: rgba(59, 130, 246, 0.20);
|
|
381
|
+
|
|
382
|
+
/* Collaboration (dark) */
|
|
383
|
+
--collab-primary: #a78bfa;
|
|
384
|
+
--collab-primary-muted: rgba(167, 139, 250, 0.10);
|
|
385
|
+
--collab-primary-subtle: rgba(167, 139, 250, 0.15);
|
|
386
|
+
--collab-primary-border: rgba(167, 139, 250, 0.20);
|
|
387
|
+
|
|
388
|
+
/* Voice (dark) */
|
|
389
|
+
--voice-recording: #fb7185;
|
|
390
|
+
--voice-recording-muted: rgba(251, 113, 133, 0.20);
|
|
391
|
+
--voice-processing: #22d3ee;
|
|
392
|
+
--voice-processing-muted: rgba(34, 211, 238, 0.15);
|
|
393
|
+
|
|
394
|
+
/* Banner / notifications (dark) */
|
|
395
|
+
--banner-primary: var(--brand-secondary);
|
|
396
|
+
--banner-primary-muted: color-mix(in srgb, var(--banner-primary) 10%, transparent);
|
|
397
|
+
--banner-primary-subtle: color-mix(in srgb, var(--banner-primary) 15%, transparent);
|
|
398
|
+
--banner-primary-border: color-mix(in srgb, var(--banner-primary) 20%, transparent);
|
|
399
|
+
|
|
400
|
+
/* Thinking gradients (dark) */
|
|
401
|
+
--gradient-thinking-high: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(239, 68, 68, 0.20));
|
|
402
|
+
--gradient-thinking-low: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(139, 92, 246, 0.20));
|
|
403
|
+
|
|
404
|
+
/* File type icons (dark — brighter variants) */
|
|
405
|
+
--file-icon-ts: #60a5fa;
|
|
406
|
+
--file-icon-js: #facc15;
|
|
407
|
+
--file-icon-json: #4ade80;
|
|
408
|
+
--file-icon-css: #818cf8;
|
|
409
|
+
--file-icon-rust: #fb923c;
|
|
410
|
+
--file-icon-markdown: #818cf8;
|
|
411
|
+
|
|
412
|
+
/* ── shadcn bridge (identical structure to :root — resolves
|
|
413
|
+
to dark Sero tokens defined above in this block) ────── */
|
|
414
|
+
--background: var(--bg-base);
|
|
415
|
+
--foreground: var(--text-primary);
|
|
416
|
+
--card: var(--bg-surface);
|
|
417
|
+
--card-foreground: var(--text-primary);
|
|
418
|
+
--popover: var(--bg-elevated);
|
|
419
|
+
--popover-foreground: var(--text-primary);
|
|
420
|
+
--primary: var(--brand-primary);
|
|
421
|
+
--primary-foreground: var(--brand-primary-foreground);
|
|
422
|
+
--secondary: var(--bg-surface);
|
|
423
|
+
--secondary-foreground: var(--text-primary);
|
|
424
|
+
--muted: var(--bg-muted);
|
|
425
|
+
--muted-foreground: var(--text-muted);
|
|
426
|
+
--accent: var(--bg-overlay);
|
|
427
|
+
--accent-foreground: var(--text-primary);
|
|
428
|
+
--destructive: var(--status-error);
|
|
429
|
+
--border: var(--border-default);
|
|
430
|
+
--input: var(--border-subtle);
|
|
431
|
+
--ring: var(--border-focus);
|
|
432
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
433
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
434
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
435
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
436
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
437
|
+
--sidebar: var(--bg-surface);
|
|
438
|
+
--sidebar-foreground: var(--text-primary);
|
|
439
|
+
--sidebar-primary: var(--brand-primary);
|
|
440
|
+
--sidebar-primary-foreground: var(--brand-primary-foreground);
|
|
441
|
+
--sidebar-accent: var(--bg-elevated);
|
|
442
|
+
--sidebar-accent-foreground: var(--text-primary);
|
|
443
|
+
--sidebar-border: var(--border-subtle);
|
|
444
|
+
--sidebar-ring: var(--border-focus);
|
|
445
|
+
|
|
446
|
+
/* ── Glass (dashboard) — dark: low-opacity white over the dark
|
|
447
|
+
canvas glow. `--surface-*` defaults stay solid; the `.glass`
|
|
448
|
+
scope flips them (values shared across themes via the vars). */
|
|
449
|
+
--glass-tile: rgba(255, 255, 255, 0.06);
|
|
450
|
+
--glass-surface: rgba(255, 255, 255, 0.09);
|
|
451
|
+
--glass-surface-flat: rgba(255, 255, 255, 0.05);
|
|
452
|
+
--glass-border: rgba(255, 255, 255, 0.12);
|
|
453
|
+
--glass-rim: rgba(255, 255, 255, 0.08);
|
|
454
|
+
--glass-hover: rgba(255, 255, 255, 0.13);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* ── Glass scope ─────────────────────────────────────────────────
|
|
458
|
+
Subtree-local class applied by `WidgetContent` (default on). It
|
|
459
|
+
remaps the component-facing surface tokens and the container/border
|
|
460
|
+
shadcn bridge tokens to the translucent glass values, so dashboard
|
|
461
|
+
components read as part of the frosted tile. Interactive controls
|
|
462
|
+
(`--input`) and portalled surfaces (`--popover`, rendered at
|
|
463
|
+
document.body outside this scope) stay solid for legibility. No
|
|
464
|
+
`backdrop-filter` here — the host tile provides the single blur. */
|
|
465
|
+
.glass {
|
|
466
|
+
/* component surface tokens */
|
|
467
|
+
--surface-raised: var(--glass-surface);
|
|
468
|
+
--surface-flat: var(--glass-surface-flat);
|
|
469
|
+
--surface-line: var(--glass-border);
|
|
470
|
+
--surface-rim: var(--glass-rim);
|
|
471
|
+
|
|
472
|
+
/* containers + borders for primitives used inside widgets */
|
|
473
|
+
--card: var(--glass-surface);
|
|
474
|
+
--secondary: var(--glass-surface-flat);
|
|
475
|
+
--muted: var(--glass-surface-flat);
|
|
476
|
+
--accent: var(--glass-surface-flat);
|
|
477
|
+
--border: var(--glass-border);
|
|
478
|
+
|
|
479
|
+
/* keep interactive controls + portalled surfaces solid */
|
|
480
|
+
--input: var(--border-subtle);
|
|
481
|
+
--popover: var(--bg-elevated);
|
|
482
|
+
--ring: var(--border-focus);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
html {
|
|
486
|
+
font-size: var(--font-size-base, 14px);
|
|
487
|
+
font-family: var(--font-sans);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
@layer base {
|
|
491
|
+
* {
|
|
492
|
+
@apply border-border outline-ring/50;
|
|
493
|
+
}
|
|
494
|
+
body {
|
|
495
|
+
@apply bg-background text-foreground;
|
|
496
|
+
}
|
|
497
|
+
}
|
package/package.json
CHANGED
|
@@ -1,25 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sero-ai/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Shared UI components, AI elements, and design tokens for the Sero platform",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
7
|
-
"types": "./
|
|
6
|
+
"main": "./src/index.ts",
|
|
7
|
+
"types": "./src/index.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
".": "./src/index.ts",
|
|
10
|
+
"./dashboard-catalog": "./src/dashboard-catalog.ts",
|
|
11
|
+
"./reference": "./src/reference.ts",
|
|
12
|
+
"./theme": "./src/theme/index.ts",
|
|
13
|
+
"./theme/*": "./src/theme/*",
|
|
14
|
+
"./styles/*": "./src/styles/*",
|
|
15
|
+
"./package.json": "./package.json",
|
|
16
|
+
"./*": "./src/*"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"test": "vitest run"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"module": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js",
|
|
31
|
+
"require": "./dist/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./dashboard-catalog": {
|
|
34
|
+
"types": "./dist/dashboard-catalog.d.ts",
|
|
35
|
+
"import": "./dist/dashboard-catalog.js",
|
|
36
|
+
"require": "./dist/dashboard-catalog.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./reference": {
|
|
39
|
+
"types": "./dist/reference.d.ts",
|
|
40
|
+
"import": "./dist/reference.js",
|
|
41
|
+
"require": "./dist/reference.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./theme": {
|
|
44
|
+
"types": "./dist/theme/index.d.ts",
|
|
45
|
+
"import": "./dist/theme/index.js",
|
|
46
|
+
"require": "./dist/theme/index.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./theme/*": {
|
|
49
|
+
"types": "./dist/theme/*.d.ts",
|
|
50
|
+
"import": "./dist/theme/*.js",
|
|
51
|
+
"require": "./dist/theme/*.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./styles/*": "./dist/styles/*",
|
|
54
|
+
"./package.json": "./package.json",
|
|
55
|
+
"./*": {
|
|
56
|
+
"types": "./dist/*.d.ts",
|
|
57
|
+
"import": "./dist/*.js",
|
|
58
|
+
"require": "./dist/*.cjs"
|
|
59
|
+
}
|
|
18
60
|
}
|
|
19
61
|
},
|
|
20
62
|
"peerDependencies": {
|
|
21
|
-
"react": "
|
|
22
|
-
"react-dom": "
|
|
63
|
+
"react": "catalog:peer",
|
|
64
|
+
"react-dom": "catalog:peer"
|
|
23
65
|
},
|
|
24
66
|
"dependencies": {
|
|
25
67
|
"@base-ui/react": "^1.3.0",
|
|
@@ -28,6 +70,7 @@
|
|
|
28
70
|
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
29
71
|
"@remixicon/react": "^4.9.0",
|
|
30
72
|
"@rive-app/react-webgl2": "^4.27.1",
|
|
73
|
+
"@sero-ai/common": "workspace:*",
|
|
31
74
|
"@streamdown/cjk": "^1.0.2",
|
|
32
75
|
"@streamdown/code": "^1.1.0",
|
|
33
76
|
"@streamdown/math": "^1.0.2",
|
|
@@ -41,9 +84,9 @@
|
|
|
41
84
|
"date-fns": "^4.1.0",
|
|
42
85
|
"embla-carousel-react": "^8.6.0",
|
|
43
86
|
"input-otp": "^1.4.2",
|
|
44
|
-
"lucide-react": "
|
|
87
|
+
"lucide-react": "catalog:",
|
|
45
88
|
"media-chrome": "^4.18.0",
|
|
46
|
-
"motion": "
|
|
89
|
+
"motion": "catalog:",
|
|
47
90
|
"nanoid": "^5.1.11",
|
|
48
91
|
"next-themes": "^0.4.6",
|
|
49
92
|
"radix-ui": "^1.4.3",
|
|
@@ -55,27 +98,25 @@
|
|
|
55
98
|
"recharts": "2.15.4",
|
|
56
99
|
"shiki": "^3.23.0",
|
|
57
100
|
"sonner": "^2.0.7",
|
|
58
|
-
"streamdown": "
|
|
101
|
+
"streamdown": "catalog:",
|
|
59
102
|
"tailwind-merge": "^3.5.0",
|
|
60
103
|
"tokenlens": "^1.3.1",
|
|
61
104
|
"use-stick-to-bottom": "^1.1.4",
|
|
62
|
-
"vaul": "^1.1.2"
|
|
63
|
-
"@sero-ai/common": "0.3.1"
|
|
105
|
+
"vaul": "^1.1.2"
|
|
64
106
|
},
|
|
65
107
|
"devDependencies": {
|
|
66
108
|
"@hookform/resolvers": "^5.2.2",
|
|
67
|
-
"@types/react": "
|
|
68
|
-
"@types/react-dom": "
|
|
109
|
+
"@types/react": "catalog:",
|
|
110
|
+
"@types/react-dom": "catalog:",
|
|
69
111
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
112
|
+
"jsdom": "^26.1.0",
|
|
113
|
+
"react": "catalog:peer",
|
|
114
|
+
"react-dom": "catalog:peer",
|
|
70
115
|
"shadcn": "^3.8.5",
|
|
71
|
-
"tailwindcss": "
|
|
116
|
+
"tailwindcss": "catalog:",
|
|
72
117
|
"tsup": "^8.5.1",
|
|
73
118
|
"tw-animate-css": "^1.4.0",
|
|
74
|
-
"typescript": "
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"typecheck": "tsc --noEmit"
|
|
79
|
-
},
|
|
80
|
-
"module": "./dist/index.js"
|
|
81
|
-
}
|
|
119
|
+
"typescript": "catalog:",
|
|
120
|
+
"vitest": "catalog:"
|
|
121
|
+
}
|
|
122
|
+
}
|