@elizaos/ui 2.0.0-alpha.10
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/LICENSE +21 -0
- package/README.md +6 -0
- package/package.json +94 -0
- package/src/styles/theme.css +193 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shaw Walters and elizaOS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elizaos/ui",
|
|
3
|
+
"version": "2.0.0-alpha.10",
|
|
4
|
+
"description": "Reusable UI primitives and components for elizaOS applications.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://elizaos.ai",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/elizaos/eliza.git",
|
|
13
|
+
"directory": "packages/ui"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"elizaos",
|
|
17
|
+
"ui",
|
|
18
|
+
"react",
|
|
19
|
+
"components"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"clean": "rm -rf dist && find src -type f \\( -name '*.js' -o -name '*.d.ts' -o -name '*.d.ts.map' -o -name '*.js.map' \\) -delete",
|
|
23
|
+
"build": "bun run build:dist",
|
|
24
|
+
"build:dist": "find src -type f \\( -name '*.js' -o -name '*.d.ts' -o -name '*.d.ts.map' -o -name '*.js.map' \\) -delete && rm -rf dist && tsc -p tsconfig.build.json && find src -type f \\( -name '*.js' -o -name '*.d.ts' -o -name '*.d.ts.map' -o -name '*.js.map' \\) -delete && node ../../scripts/copy-package-assets.mjs packages/ui src/styles && node ../../scripts/prepare-package-dist.mjs packages/ui",
|
|
25
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
26
|
+
"lint": "bunx @biomejs/biome check --write ./src/index.ts ./src/lib ./src/components ./src/stories",
|
|
27
|
+
"lint:check": "bunx @biomejs/biome check ./src/index.ts ./src/lib ./src/components ./src/stories",
|
|
28
|
+
"pack:dry-run": "cd dist && npm pack --dry-run",
|
|
29
|
+
"storybook": "storybook dev -p 6006",
|
|
30
|
+
"build-storybook": "storybook build"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./utils": {
|
|
38
|
+
"types": "./dist/lib/utils.d.ts",
|
|
39
|
+
"import": "./dist/lib/utils.js"
|
|
40
|
+
},
|
|
41
|
+
"./styles/theme.css": "./src/styles/theme.css",
|
|
42
|
+
"./package.json": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"src/styles/theme.css",
|
|
47
|
+
"README.md"
|
|
48
|
+
],
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
55
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
56
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
57
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
58
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
59
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
60
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
61
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
62
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
63
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
64
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
65
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
66
|
+
"class-variance-authority": "^0.7.1",
|
|
67
|
+
"clsx": "^2.1.1",
|
|
68
|
+
"lucide-react": "^0.575.0",
|
|
69
|
+
"next-themes": "^0.4.6",
|
|
70
|
+
"sonner": "^2.0.7",
|
|
71
|
+
"tailwind-merge": "^2.6.0"
|
|
72
|
+
},
|
|
73
|
+
"publishConfig": {
|
|
74
|
+
"access": "public"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@storybook/addon-essentials": "8.6.14",
|
|
78
|
+
"@storybook/blocks": "8.6.14",
|
|
79
|
+
"@storybook/react": "8.6.14",
|
|
80
|
+
"@storybook/react-vite": "8.6.14",
|
|
81
|
+
"@storybook/test": "8.6.14",
|
|
82
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
83
|
+
"@types/react": "^19.0.0",
|
|
84
|
+
"@types/react-dom": "^19.0.0",
|
|
85
|
+
"storybook": "8.6.17",
|
|
86
|
+
"tailwindcss": "^4.1.18",
|
|
87
|
+
"typescript": "^5.9.3"
|
|
88
|
+
},
|
|
89
|
+
"author": "elizaOS Team",
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">=18.0.0"
|
|
92
|
+
},
|
|
93
|
+
"gitHead": "f77b9c9a2906a357415ad9d687ebc75bcf93926d"
|
|
94
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
@theme default {
|
|
2
|
+
--color-bg: var(--bg);
|
|
3
|
+
--color-bg-accent: var(--bg-accent);
|
|
4
|
+
--color-bg-elevated: var(--bg-elevated);
|
|
5
|
+
--color-bg-hover: var(--bg-hover);
|
|
6
|
+
--color-bg-muted: var(--bg-muted);
|
|
7
|
+
|
|
8
|
+
--color-card: var(--card);
|
|
9
|
+
--color-card-fg: var(--card-foreground);
|
|
10
|
+
--color-surface: var(--surface);
|
|
11
|
+
|
|
12
|
+
--color-txt: var(--text);
|
|
13
|
+
--color-txt-strong: var(--text-strong);
|
|
14
|
+
--color-txt-chat: var(--chat-text);
|
|
15
|
+
--color-muted: var(--muted);
|
|
16
|
+
--color-muted-strong: var(--muted-strong);
|
|
17
|
+
|
|
18
|
+
--color-border: var(--border);
|
|
19
|
+
--color-border-strong: var(--border-strong);
|
|
20
|
+
--color-border-hover: var(--border-hover);
|
|
21
|
+
--color-input: var(--input);
|
|
22
|
+
--color-ring: var(--ring);
|
|
23
|
+
|
|
24
|
+
--color-accent: var(--accent);
|
|
25
|
+
--color-accent-hover: var(--accent-hover);
|
|
26
|
+
--color-accent-muted: var(--accent-muted);
|
|
27
|
+
--color-accent-subtle: var(--accent-subtle);
|
|
28
|
+
--color-accent-fg: var(--accent-foreground);
|
|
29
|
+
--color-primary: var(--primary);
|
|
30
|
+
--color-primary-fg: var(--primary-foreground);
|
|
31
|
+
|
|
32
|
+
--color-ok: var(--ok);
|
|
33
|
+
--color-ok-muted: var(--ok-muted);
|
|
34
|
+
--color-ok-subtle: var(--ok-subtle);
|
|
35
|
+
--color-warn: var(--warn);
|
|
36
|
+
--color-warn-muted: var(--warn-muted);
|
|
37
|
+
--color-warn-subtle: var(--warn-subtle);
|
|
38
|
+
--color-danger: var(--danger);
|
|
39
|
+
--color-destructive: var(--destructive);
|
|
40
|
+
--color-destructive-fg: var(--destructive-foreground);
|
|
41
|
+
--color-destructive-subtle: var(--destructive-subtle);
|
|
42
|
+
|
|
43
|
+
--color-header-bg: var(--header-bar-bg);
|
|
44
|
+
--color-header-fg: var(--header-bar-fg);
|
|
45
|
+
|
|
46
|
+
--font-body: var(--font-body);
|
|
47
|
+
--font-mono: var(--mono);
|
|
48
|
+
--font-display: var(--font-display);
|
|
49
|
+
|
|
50
|
+
--shadow-sm: var(--shadow-sm);
|
|
51
|
+
--shadow-md: var(--shadow-md);
|
|
52
|
+
--shadow-lg: var(--shadow-lg);
|
|
53
|
+
|
|
54
|
+
--radius-sm: var(--radius-sm);
|
|
55
|
+
--radius-md: var(--radius-md);
|
|
56
|
+
--radius-lg: var(--radius-lg);
|
|
57
|
+
--radius-xl: var(--radius-xl);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@layer base {
|
|
61
|
+
:root {
|
|
62
|
+
--bg: #ffffff;
|
|
63
|
+
--bg-accent: #faf7ec;
|
|
64
|
+
--bg-elevated: #fffdf6;
|
|
65
|
+
--bg-hover: #f8f1d7;
|
|
66
|
+
--bg-muted: #fcf9ef;
|
|
67
|
+
|
|
68
|
+
--card: #fffdf6;
|
|
69
|
+
--card-foreground: #1e2329;
|
|
70
|
+
--surface: #ffffff;
|
|
71
|
+
|
|
72
|
+
--text: #1e2329;
|
|
73
|
+
--text-strong: #11161c;
|
|
74
|
+
--chat-text: #1e2329;
|
|
75
|
+
--muted: #6d737a;
|
|
76
|
+
--muted-strong: #4d535a;
|
|
77
|
+
|
|
78
|
+
--border: #d6d3c6;
|
|
79
|
+
--border-strong: #b8b29f;
|
|
80
|
+
--border-hover: #f0b90b;
|
|
81
|
+
--input: #d6d3c6;
|
|
82
|
+
--ring: #f0b90b;
|
|
83
|
+
|
|
84
|
+
--accent: #f0b90b;
|
|
85
|
+
--accent-hover: #d8a108;
|
|
86
|
+
--accent-muted: #d8a108;
|
|
87
|
+
--accent-subtle: rgba(240, 185, 11, 0.12);
|
|
88
|
+
--accent-foreground: #1a1f26;
|
|
89
|
+
--primary: #f0b90b;
|
|
90
|
+
--primary-foreground: #1a1f26;
|
|
91
|
+
|
|
92
|
+
--ok: #02c076;
|
|
93
|
+
--ok-muted: rgba(2, 192, 118, 0.7);
|
|
94
|
+
--ok-subtle: rgba(2, 192, 118, 0.12);
|
|
95
|
+
--destructive: #f6465d;
|
|
96
|
+
--destructive-foreground: #ffffff;
|
|
97
|
+
--destructive-subtle: rgba(246, 70, 93, 0.12);
|
|
98
|
+
--warn: #f0b90b;
|
|
99
|
+
--warn-muted: rgba(240, 185, 11, 0.7);
|
|
100
|
+
--warn-subtle: rgba(240, 185, 11, 0.12);
|
|
101
|
+
--danger: #f6465d;
|
|
102
|
+
|
|
103
|
+
--focus: rgba(240, 185, 11, 0.18);
|
|
104
|
+
--focus-ring: 0 0 0 2px #f0b90b;
|
|
105
|
+
|
|
106
|
+
--header-bar-bg: #fff8dc;
|
|
107
|
+
--header-bar-fg: #1e2329;
|
|
108
|
+
|
|
109
|
+
--mono: "Courier New", Courier, monospace;
|
|
110
|
+
--font-body:
|
|
111
|
+
"Hiragino Kaku Gothic Pro", Osaka, Meiryo, "MS PGothic", arial, helvetica,
|
|
112
|
+
clean, sans-serif;
|
|
113
|
+
--font-display:
|
|
114
|
+
"Hiragino Kaku Gothic Pro", Osaka, Meiryo, "MS PGothic", arial, helvetica,
|
|
115
|
+
clean, sans-serif;
|
|
116
|
+
|
|
117
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
118
|
+
--shadow-md:
|
|
119
|
+
0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
120
|
+
--shadow-lg:
|
|
121
|
+
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
122
|
+
|
|
123
|
+
--radius-sm: 0.375rem;
|
|
124
|
+
--radius-md: 0.5rem;
|
|
125
|
+
--radius-lg: 0.75rem;
|
|
126
|
+
--radius-xl: 1rem;
|
|
127
|
+
--radius-full: 9999px;
|
|
128
|
+
--radius: 0.5rem;
|
|
129
|
+
|
|
130
|
+
--duration-fast: 100ms;
|
|
131
|
+
--duration-normal: 150ms;
|
|
132
|
+
--duration-slow: 250ms;
|
|
133
|
+
|
|
134
|
+
color-scheme: light;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.dark {
|
|
138
|
+
--bg: hsl(220 16% 12%);
|
|
139
|
+
--bg-accent: hsl(220 14% 16%);
|
|
140
|
+
--bg-elevated: hsl(220 14% 10%);
|
|
141
|
+
--bg-hover: hsl(220 12% 20%);
|
|
142
|
+
--bg-muted: hsl(220 12% 20%);
|
|
143
|
+
|
|
144
|
+
--card: hsl(220 14% 14%);
|
|
145
|
+
--card-foreground: hsl(40 10% 94%);
|
|
146
|
+
--surface: hsl(220 14% 14%);
|
|
147
|
+
|
|
148
|
+
--text: hsl(40 10% 84%);
|
|
149
|
+
--text-strong: hsl(40 10% 96%);
|
|
150
|
+
--chat-text: hsl(40 10% 84%);
|
|
151
|
+
--muted: hsl(220 8% 56%);
|
|
152
|
+
--muted-strong: hsl(220 6% 68%);
|
|
153
|
+
|
|
154
|
+
--border: hsl(220 12% 22%);
|
|
155
|
+
--border-strong: hsl(220 10% 30%);
|
|
156
|
+
--border-hover: #f0b90b;
|
|
157
|
+
--input: hsl(220 12% 22%);
|
|
158
|
+
--ring: #f0b90b;
|
|
159
|
+
|
|
160
|
+
--accent: #f0b90b;
|
|
161
|
+
--accent-hover: #d8a108;
|
|
162
|
+
--accent-muted: #d8a108;
|
|
163
|
+
--accent-subtle: rgba(240, 185, 11, 0.12);
|
|
164
|
+
--accent-foreground: #1a1f26;
|
|
165
|
+
--primary: #f0b90b;
|
|
166
|
+
--primary-foreground: #1a1f26;
|
|
167
|
+
|
|
168
|
+
--ok: hsl(142 76% 36%);
|
|
169
|
+
--ok-muted: hsla(142 76% 36% / 0.7);
|
|
170
|
+
--ok-subtle: hsla(142 76% 36% / 0.1);
|
|
171
|
+
--destructive: hsl(0 84.2% 60.2%);
|
|
172
|
+
--destructive-foreground: hsl(0 0% 100%);
|
|
173
|
+
--destructive-subtle: hsla(0 84% 60% / 0.1);
|
|
174
|
+
--warn: #f0b90b;
|
|
175
|
+
--warn-muted: rgba(240, 185, 11, 0.7);
|
|
176
|
+
--warn-subtle: rgba(240, 185, 11, 0.12);
|
|
177
|
+
--danger: hsl(0 84.2% 60.2%);
|
|
178
|
+
|
|
179
|
+
--focus: rgba(240, 185, 11, 0.2);
|
|
180
|
+
--focus-ring: 0 0 0 2px rgba(240, 185, 11, 0.5);
|
|
181
|
+
|
|
182
|
+
--header-bar-bg: hsl(220 16% 12%);
|
|
183
|
+
--header-bar-fg: hsl(40 10% 96%);
|
|
184
|
+
|
|
185
|
+
--mono: "Courier New", Courier, monospace;
|
|
186
|
+
--font-body:
|
|
187
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
|
|
188
|
+
--font-display:
|
|
189
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
|
|
190
|
+
|
|
191
|
+
color-scheme: dark;
|
|
192
|
+
}
|
|
193
|
+
}
|