@agent-ui-kit/components 0.0.3 → 0.0.5

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -0
  3. package/package.json +19 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kim Granlund
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
@@ -0,0 +1,67 @@
1
+ # @agent-ui-kit/components
2
+
3
+ The agent-ui component framework: a fine-grained signals kernel, 50+ accessible light-DOM `ui-*` custom elements (form controls, containers, overlays, data-viz), and a token-driven styling system. Zero runtime dependencies.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @agent-ui-kit/components
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ // 1. Styles: the token foundation, then the component sheets.
15
+ import '@agent-ui-kit/components/foundation-styles.css'
16
+ import '@agent-ui-kit/components/component-styles.css'
17
+ // 2. Elements: the whole fleet (self-defining on import)…
18
+ import '@agent-ui-kit/components/components'
19
+ ```
20
+
21
+ ```html
22
+ <ui-button variant="solid">Save</ui-button>
23
+ <ui-text-field label="Name" required></ui-text-field>
24
+ <ui-select name="model" label="Model">…</ui-select>
25
+ ```
26
+
27
+ Or import per control for a smaller graph:
28
+
29
+ ```js
30
+ import '@agent-ui-kit/components/controls/button'
31
+ import '@agent-ui-kit/components/controls/menu'
32
+ ```
33
+
34
+ Design notes: light-DOM rendering (your CSS reaches everything), ARIA via `ElementInternals` (form-associated custom elements — real form participation, no native inputs), and per-component `--ui-{name}-*` CSS custom-property seams over the shared `--md-sys-*` token system.
35
+
36
+ ## CDN (no build step)
37
+
38
+ ```html
39
+ <!-- styles: shared's two sheets DIRECTLY (foundation-styles.css uses bare @imports a browser
40
+ can't resolve), then the component barrel (relative imports only — CDN-safe) -->
41
+ <link rel="stylesheet" href="https://esm.sh/@agent-ui-kit/shared@0.0.5/tokens.css">
42
+ <link rel="stylesheet" href="https://esm.sh/@agent-ui-kit/shared@0.0.5/dimensions.css">
43
+ <link rel="stylesheet" href="https://esm.sh/@agent-ui-kit/components@0.0.5/component-styles.css">
44
+
45
+ <script type="module">
46
+ import 'https://esm.sh/@agent-ui-kit/components@0.0.5/components' // the whole fleet, self-defining
47
+ </script>
48
+
49
+ <ui-button variant="solid">Save</ui-button>
50
+ ```
51
+
52
+ esm.sh rewrites the bare `@agent-ui-kit/*` sibling imports for you; pin the version in real pages.
53
+
54
+ ## The @agent-ui-kit family
55
+
56
+ | Package | What it is |
57
+ |---|---|
58
+ | [`@agent-ui-kit/components`](https://www.npmjs.com/package/@agent-ui-kit/components) | The component framework: signals kernel, 50+ light-DOM `ui-*` custom elements |
59
+ | [`@agent-ui-kit/shared`](https://www.npmjs.com/package/@agent-ui-kit/shared) | Design tokens + foundation stylesheets (color, dimensions, themes) |
60
+ | [`@agent-ui-kit/icons`](https://www.npmjs.com/package/@agent-ui-kit/icons) | Swappable icon-pack adapter (+ a Phosphor pack) |
61
+ | [`@agent-ui-kit/a2ui`](https://www.npmjs.com/package/@agent-ui-kit/a2ui) | A2UI protocol renderer, validator, and component catalog |
62
+ | [`@agent-ui-kit/a2a`](https://www.npmjs.com/package/@agent-ui-kit/a2a) | A2A (Agent2Agent) protocol wire types + validation (spec v0.3.0) |
63
+ | [`@agent-ui-kit/router`](https://www.npmjs.com/package/@agent-ui-kit/router) | Memory-first SPA router with opt-in URL reflection |
64
+ | [`@agent-ui-kit/code`](https://www.npmjs.com/package/@agent-ui-kit/code) | Code + prose: highlighter registry, markdown renderer, source editor |
65
+ | [`@agent-ui-kit/app`](https://www.npmjs.com/package/@agent-ui-kit/app) | App-surface compositions: shells, conversation, agent admin |
66
+
67
+ MIT © Kim Granlund · [Source](https://github.com/kimgranlund/agent-ui)
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "@agent-ui-kit/components",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
+ "description": "The agent-ui component framework: a fine-grained signals kernel, 50+ accessible light-DOM `ui-*` custom elements (form controls, containers, overlays, data-viz), and a token-driven styling system.",
5
+ "keywords": [
6
+ "agent-ui",
7
+ "web-components",
8
+ "custom-elements",
9
+ "design-system",
10
+ "ui-components",
11
+ "signals",
12
+ "light-dom",
13
+ "form-controls",
14
+ "accessibility"
15
+ ],
4
16
  "license": "MIT",
17
+ "homepage": "https://github.com/kimgranlund/agent-ui#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/kimgranlund/agent-ui/issues"
20
+ },
5
21
  "type": "module",
6
22
  "repository": {
7
23
  "type": "git",
@@ -254,8 +270,8 @@
254
270
  "./base-styles.css": "./dist/base-styles.css"
255
271
  },
256
272
  "dependencies": {
257
- "@agent-ui-kit/icons": "^0.0.3",
258
- "@agent-ui-kit/shared": "^0.0.3"
273
+ "@agent-ui-kit/icons": "^0.0.5",
274
+ "@agent-ui-kit/shared": "^0.0.5"
259
275
  },
260
276
  "files": [
261
277
  "dist"