@kopai/ui 0.2.0 → 0.3.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/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @kopai/ui
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@kopai/ui)
|
|
4
|
+
|
|
3
5
|
React component library for rendering LLM-generated UI trees. Define typed component catalogs, create renderers, and generate prompt instructions for AI models.
|
|
4
6
|
|
|
5
7
|
## Exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopai/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Vladimir Adamic",
|
|
6
6
|
"repository": {
|
|
@@ -31,31 +31,31 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@tanstack/react-query": "^5",
|
|
33
33
|
"@tanstack/react-virtual": "^3.11.2",
|
|
34
|
-
"recharts": "^
|
|
34
|
+
"recharts": "^3.7.0",
|
|
35
35
|
"@kopai/core": "0.5.0",
|
|
36
|
-
"@kopai/sdk": "0.
|
|
36
|
+
"@kopai/sdk": "0.3.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^19.2.4",
|
|
40
40
|
"react-dom": "^19.2.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@storybook/addon-docs": "^
|
|
44
|
-
"@storybook/react": "^
|
|
45
|
-
"@storybook/react-vite": "^
|
|
43
|
+
"@storybook/addon-docs": "^10.2.8",
|
|
44
|
+
"@storybook/react": "^10.2.8",
|
|
45
|
+
"@storybook/react-vite": "^10.2.8",
|
|
46
46
|
"@testing-library/react": "^16.3.0",
|
|
47
|
-
"@types/react": "^19.2.
|
|
47
|
+
"@types/react": "^19.2.14",
|
|
48
48
|
"@types/react-dom": "^19.1.0",
|
|
49
|
-
"@vitejs/plugin-react": "^
|
|
50
|
-
"
|
|
51
|
-
"jsdom": "^
|
|
49
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
50
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
51
|
+
"jsdom": "^28.0.0",
|
|
52
52
|
"postcss": "^8.5.3",
|
|
53
53
|
"react": "^19.2.4",
|
|
54
54
|
"react-dom": "^19.2.4",
|
|
55
|
-
"storybook": "^
|
|
56
|
-
"tailwindcss": "^
|
|
55
|
+
"storybook": "^10.2.8",
|
|
56
|
+
"tailwindcss": "^4.1.18",
|
|
57
57
|
"tsdown": "^0.20.3",
|
|
58
|
-
"vite": "^
|
|
58
|
+
"vite": "^7.3.1",
|
|
59
59
|
"@kopai/tsconfig": "0.2.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
@@ -173,8 +173,8 @@ export function MetricHistogram({
|
|
|
173
173
|
tick={
|
|
174
174
|
labelStyle === "staggered"
|
|
175
175
|
? (props: {
|
|
176
|
-
x?: number;
|
|
177
|
-
y?: number;
|
|
176
|
+
x?: string | number;
|
|
177
|
+
y?: string | number;
|
|
178
178
|
payload?: { value: string; index: number };
|
|
179
179
|
}) => {
|
|
180
180
|
if (!props.payload) return <g />;
|
package/src/styles/globals.css
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
@
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@source "../../";
|
|
4
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
5
|
+
|
|
6
|
+
@theme {
|
|
7
|
+
--color-background: hsl(var(--background));
|
|
8
|
+
--color-foreground: hsl(var(--foreground));
|
|
9
|
+
|
|
10
|
+
--color-card: hsl(var(--card));
|
|
11
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
12
|
+
|
|
13
|
+
--color-popover: hsl(var(--popover));
|
|
14
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
15
|
+
|
|
16
|
+
--color-primary: hsl(var(--primary));
|
|
17
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
18
|
+
|
|
19
|
+
--color-secondary: hsl(var(--secondary));
|
|
20
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
21
|
+
|
|
22
|
+
--color-muted: hsl(var(--muted));
|
|
23
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
24
|
+
|
|
25
|
+
--color-accent: hsl(var(--accent));
|
|
26
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
27
|
+
|
|
28
|
+
--color-destructive: hsl(var(--destructive));
|
|
29
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
30
|
+
|
|
31
|
+
--color-border: hsl(var(--border));
|
|
32
|
+
--color-input: hsl(var(--input));
|
|
33
|
+
--color-ring: hsl(var(--ring));
|
|
34
|
+
--color-error: #ef4444;
|
|
35
|
+
|
|
36
|
+
--radius: 0.5rem;
|
|
37
|
+
|
|
38
|
+
--animation-shimmer: shimmer 2s infinite;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@keyframes shimmer {
|
|
42
|
+
0% {
|
|
43
|
+
transform: translateX(-100%);
|
|
44
|
+
}
|
|
45
|
+
100% {
|
|
46
|
+
transform: translateX(100%);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
4
49
|
|
|
5
50
|
@layer base {
|
|
6
51
|
:root {
|
|
@@ -35,7 +80,6 @@
|
|
|
35
80
|
--warning: 38 92% 60%;
|
|
36
81
|
--warning-foreground: 0 0% 9%;
|
|
37
82
|
--ring: 0 0% 83.1%;
|
|
38
|
-
--radius: 0.5rem;
|
|
39
83
|
|
|
40
84
|
--chart-1: 220 70% 50%;
|
|
41
85
|
--chart-2: 160 60% 45%;
|