@tomny-dev/uzi 0.1.7 → 0.1.9-pr.2.1.1
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 +20 -1
- package/dist/index.cjs +373 -161
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +267 -47
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +69 -14
- package/dist/index.d.ts +69 -14
- package/dist/index.js +372 -164
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,23 @@ If you want the packaged component styles, import the exported stylesheet once i
|
|
|
20
20
|
@import "@tomny-dev/uzi/styles.css";
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
## Using With Coding Agents
|
|
24
|
+
|
|
25
|
+
Installing `@tomny-dev/uzi` in an app does not by itself cause Claude Code, Codex, or similar agents to prefer `uzi` components. You should add that policy to the consumer repo's agent guidance.
|
|
26
|
+
|
|
27
|
+
Recommended snippet for the consumer repo's `CLAUDE.md`, `AGENTS.md`, or equivalent:
|
|
28
|
+
|
|
29
|
+
```md
|
|
30
|
+
## UI Components
|
|
31
|
+
|
|
32
|
+
- Prefer `@tomny-dev/uzi` for shared UI primitives and layout components.
|
|
33
|
+
- Check `uzi` before creating new local primitives such as buttons, inputs, labels, cards, modals, selects, dropdown menus, alerts, shells, navigation, and theme controls.
|
|
34
|
+
- Only introduce a repo-local primitive when `uzi` lacks the required behavior or when the local file is intentionally app-specific composition.
|
|
35
|
+
- Keep imports consistent with the surrounding area of the codebase. If the repo already uses thin wrappers around `uzi`, follow that local pattern.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
If you want agents to discover props and examples directly, also configure the `uzi` MCP server. See [`mcp/README.md`](./mcp/README.md).
|
|
39
|
+
|
|
23
40
|
## Themes
|
|
24
41
|
|
|
25
42
|
`uzi` ships with built-in light/dark tokens and a small accent palette layer.
|
|
@@ -78,9 +95,11 @@ Supported accent palettes:
|
|
|
78
95
|
| `Checkbox` | Checkbox form primitive |
|
|
79
96
|
| `Input` | Text input primitive |
|
|
80
97
|
| `Label` | Form label primitive |
|
|
98
|
+
| `MultiSelect` | Custom multi-option picker with checkbox-style menu |
|
|
81
99
|
| `Pill` | Inline badge/tag |
|
|
82
100
|
| `Modal` | Accessible overlay dialog |
|
|
83
|
-
| `
|
|
101
|
+
| `Select` | Native select field for choosing one option |
|
|
102
|
+
| `Dropdown` | Deprecated compatibility alias for Select |
|
|
84
103
|
| `DropdownMenu` | Radix-based action menu primitives |
|
|
85
104
|
| `AppShell` | Responsive layout with collapsible sidebar |
|
|
86
105
|
| `SidebarNav` | Sidebar navigation list |
|