KO
베타 번역

← @core/ui

1.0.1 → 1.0.2

3개 파일 변경 · +57 −1 · 9955ea1…e6383be

내 수정 사항을 유지하면서 이 변경을 적용하려면 프로젝트에서 실행하세요: genpm diff @core/ui --to 1.0.2

src/lib/ui/.genpmignore 수정 +2 −0
@@ -2,3 +2,5 @@
 *.test.ts
 *.test.tsx
 __fixtures__/
+# Documentación del repositorio (GitHub), no forma parte del módulo inyectado.
+README.md
src/lib/ui/README.md 추가 +54 −0
@@ -0,0 +1,54 @@
+# @core/ui
+
+[![genpm](https://api.genpm.net/v1/badge/@core/ui.svg)](https://genpm.net/p/@core/ui) ![license](https://img.shields.io/badge/license-MIT-blue)
+
+> Accessible base UI for React on native elements: fields, buttons, table, tabs, dialog, toasts and WCAG AA light/dark tokens
+
+A [GenPM](https://genpm.net) module: **source code + AI rules + MCP config**, injected into your project instead of hidden in `node_modules`. The code lands in `src/lib/ui`, pinned to a verified commit, and you own it.
+
+## Install
+
+```bash
+genpm add @core/ui
+```
+
+No genpm yet? `curl -fsSL https://genpm.net/install.sh | sh` (macOS/Linux), `irm https://genpm.net/install.ps1 | iex` (Windows), or one-off with `npx @genpm-net/cli add @core/ui`.
+
+Or let your AI agent do it: run `genpm mcp setup` once, then ask *"add @core/ui with genpm"* in Claude Code, Cursor, VS Code, Windsurf, Codex or Gemini CLI. It shows you a dry-run plan before writing anything.
+
+## What it does
+
+Small accessible component set for React built on native elements (no UI library): `Button`, `TextField`,
+`TextareaField`, `SelectField`, `Checkbox`, `Field` (label + help + error wiring), `DataTable` (with `aria-sort`),
+`Pagination`, `Tabs` (WAI-ARIA, arrow keys), `Dialog` (native `<dialog>`), `Alert`, `Badge`, `Card`, `Toasts`,
+`Spinner`, `Skeleton`. Styling lives in `ui.css` as CSS variables (light/dark, WCAG AA contrast) and `ui-*` classes.
+Used by @core/admin, @core/blocks and the kits.
+
+## Setup
+
+After `genpm add`, follow these steps (your AI agent finds the same steps in `src/lib/ui/AGENTS.md` and can do them for you):
+
+1. Import the stylesheet once in the root layout: `import '@/lib/ui/ui.css'` and add `className="ui-root"` to `<body>`.
+2. Use components: `<TextField label="Email" type="email" required error={errors.email} />`, `<Button variant="primary" loading={saving}>Save</Button>`.
+3. Theme: change `--ui-*` variables in your CSS; force a theme with `<html data-theme="dark">`.
+4. Verify: tab through a form; every control has a visible focus ring and a label.
+
+## What's inside
+
+Paths are relative to `src/lib/ui`.
+
+- `index.ts` — all components and `cx()`.
+- `components.ts` — implementation. `ui.css` — tokens and styles.
+
+## At a glance
+
+- **npm dependencies** (proposed, never installed without asking): `react`
+- **AI rules**: [`AGENTS.md`](AGENTS.md), loaded by your agent only when it works in `src/lib/ui`
+
+## Security
+
+GenPM installs a 40-character commit SHA (never a branch), verifies an Ed25519-signed manifest, never runs install scripts and scans AI rules for prompt injection. Details: [genpm.net/docs/security](https://genpm.net/docs/security).
+
+## License
+
+MIT — see [LICENSE](LICENSE). Browse the full catalog at [genpm.net](https://genpm.net).
src/lib/ui/genpm.json 수정 +1 −1
@@ -1,7 +1,7 @@
 {
   "$": 1,
   "n": "@core/ui",
-  "v": "1.0.1",
+  "v": "1.0.2",
   "s": {
     "en": "Accessible base UI for React on native elements: fields, buttons, table, tabs, dialog, toasts and WCAG AA light/dark tokens",
     "es": "Interfaz base accesible para React sobre elementos nativos: campos, botones, tabla, pestañas, diálogo, avisos y tokens AA",