@godxjp/ui 32.7.0 → 32.7.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/DESIGN.md +2 -1
- package/README.md +1 -1
- package/agent/DESIGN.md +2 -1
- package/agent/START-HERE.md +1 -1
- package/agent/index.json +3 -3
- package/agent/llms.txt +4 -4
- package/dist/contracts/measurement.json +1 -1
- package/dist/styles/layers.json +1 -1
- package/package.json +2 -2
- package/scripts/_agent-setup.mjs +5 -3
- package/scripts/ui-audit.mjs +7 -3
package/DESIGN.md
CHANGED
|
@@ -148,7 +148,7 @@ Header: record name as title, status `Badge` beside it, actions in `extra` (one
|
|
|
148
148
|
|
|
149
149
|
### Editor
|
|
150
150
|
|
|
151
|
-
Edit (or create) one document or record. Header: record name as title, status `Badge` beside it, a subtitle only for a fact such as when it was last saved, and ONE primary Save in `extra` (`Button type="submit" form=<form id>`), Cancel `outline` before it. Body: one `Form` in a `SplitPane`: the main column holds the title field and a large body editor (`BlockEditor`, or `Textarea autoSize`); the aside holds metadata fields
|
|
151
|
+
Edit (or create) one document or record. Header: record name as title, status `Badge` beside it, a subtitle only for a fact such as when it was last saved, and ONE primary Save in `extra` (`Button type="submit" form=<form id>`), Cancel `outline` before it. Body: one `Form` in a `SplitPane`: the main column holds the title field and a large body editor (`BlockEditor`, or `Textarea autoSize`); the aside holds metadata fields and read-only facts in `Descriptions`. The change note goes either directly under the body (where the writer finishes) or last in the aside — pick one per app and keep it. Name each aside group with a `Heading level={2}` one step above its field labels. A part that is its own controlled component with its own `Form` (forms cannot nest) stays a separate form; the header Save then submits by handler (`onClick`) instead of `form=<id>`, still one Save. No Card per field group, no second Save at the bottom.
|
|
152
152
|
|
|
153
153
|
### Reader
|
|
154
154
|
|
|
@@ -208,3 +208,4 @@ A list whose rows are decisions. Show requester, target, reason, submitted time;
|
|
|
208
208
|
- `card-per-section` counts Cards per file, so a screen split across components can pass with a Card around every section.
|
|
209
209
|
- Exemplar previews deploy on release tags, so they can lag `main`. On GitHub Pages a showcase URL answers HTTP 404 and renders through `404.html`, so open it in a browser; a plain fetch sees the 404.
|
|
210
210
|
- Dark theme (`data-theme="dark"`) is supported; the exemplars are reviewed in light.
|
|
211
|
+
- On narrow screens the `PageContainer` title steps down (≈17.6px) while body h2 stays ≈15.7px — one step apart. A document page not built on `LegalDocumentShell` keeps only that step on phones; there is no intermediate page-title size yet.
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ static files straight from this public repo — no hosting, no deploy step:
|
|
|
51
51
|
| --- | --- | --- |
|
|
52
52
|
| [`agent/START-HERE.md`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/START-HERE.md) | 11 KB | **read first** — self-contained: the four rules, the token override model, a page that passes review |
|
|
53
53
|
| [`agent/llms.txt`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/llms.txt) | 3 KB | the [llms.txt](https://llmstxt.org/) entry point |
|
|
54
|
-
| [`agent/DESIGN.md`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/DESIGN.md) |
|
|
54
|
+
| [`agent/DESIGN.md`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/DESIGN.md) | 14 KB | the visual spec: tokens, colour scarcity, admin screen anatomy, do/don't |
|
|
55
55
|
| [`agent/index.json`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/index.json) | 3 KB | manifest: version, counts, every file's URL |
|
|
56
56
|
| [`agent/components-index.json`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components-index.json) | 47 KB | all 161 as name + group + tagline — **fetch this first** |
|
|
57
57
|
| [`agent/components/<Name>.json`](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components/Select.json) | 1 KB–37 KB | one file per component, each with its `importPath` — **this is the route to take** |
|
package/agent/DESIGN.md
CHANGED
|
@@ -148,7 +148,7 @@ Header: record name as title, status `Badge` beside it, actions in `extra` (one
|
|
|
148
148
|
|
|
149
149
|
### Editor
|
|
150
150
|
|
|
151
|
-
Edit (or create) one document or record. Header: record name as title, status `Badge` beside it, a subtitle only for a fact such as when it was last saved, and ONE primary Save in `extra` (`Button type="submit" form=<form id>`), Cancel `outline` before it. Body: one `Form` in a `SplitPane`: the main column holds the title field and a large body editor (`BlockEditor`, or `Textarea autoSize`); the aside holds metadata fields
|
|
151
|
+
Edit (or create) one document or record. Header: record name as title, status `Badge` beside it, a subtitle only for a fact such as when it was last saved, and ONE primary Save in `extra` (`Button type="submit" form=<form id>`), Cancel `outline` before it. Body: one `Form` in a `SplitPane`: the main column holds the title field and a large body editor (`BlockEditor`, or `Textarea autoSize`); the aside holds metadata fields and read-only facts in `Descriptions`. The change note goes either directly under the body (where the writer finishes) or last in the aside — pick one per app and keep it. Name each aside group with a `Heading level={2}` one step above its field labels. A part that is its own controlled component with its own `Form` (forms cannot nest) stays a separate form; the header Save then submits by handler (`onClick`) instead of `form=<id>`, still one Save. No Card per field group, no second Save at the bottom.
|
|
152
152
|
|
|
153
153
|
### Reader
|
|
154
154
|
|
|
@@ -208,3 +208,4 @@ A list whose rows are decisions. Show requester, target, reason, submitted time;
|
|
|
208
208
|
- `card-per-section` counts Cards per file, so a screen split across components can pass with a Card around every section.
|
|
209
209
|
- Exemplar previews deploy on release tags, so they can lag `main`. On GitHub Pages a showcase URL answers HTTP 404 and renders through `404.html`, so open it in a browser; a plain fetch sees the 404.
|
|
210
210
|
- Dark theme (`data-theme="dark"`) is supported; the exemplars are reviewed in light.
|
|
211
|
+
- On narrow screens the `PageContainer` title steps down (≈17.6px) while body h2 stays ≈15.7px — one step apart. A document page not built on `LegalDocumentShell` keeps only that step on phones; there is no intermediate page-title size yet.
|
package/agent/START-HERE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
You are about to write code against a design system you did not author. This file is the whole
|
|
4
4
|
contract. Read it before you write JSX.
|
|
5
5
|
|
|
6
|
-
**This catalog describes `@godxjp/ui` 32.7.
|
|
6
|
+
**This catalog describes `@godxjp/ui` 32.7.1.** If the project you are editing has a different
|
|
7
7
|
version in its `package.json`, read the pinned catalog for THAT version instead
|
|
8
8
|
(`…/v<their-version>/agent/…`). A catalog newer than the installed package describes props that do
|
|
9
9
|
not exist yet; older, and it hides props that do. Neither failure announces itself.
|
package/agent/index.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
{
|
|
13
13
|
"file": "DESIGN.md",
|
|
14
|
-
"note": "
|
|
14
|
+
"note": "14 KB — the visual spec: tokens, colour scarcity, admin screen anatomy (list, detail, form, settings, dashboard), do/don't. Read before composing a screen.",
|
|
15
15
|
"url": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/DESIGN.md"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"note": "Pin to the tag that matches the @godxjp/ui version you installed. A catalog newer than your package describes props you do not have; older, and it hides props you do.",
|
|
55
55
|
"read": {
|
|
56
56
|
"live": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/index.json",
|
|
57
|
-
"pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v32.7.
|
|
57
|
+
"pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v32.7.1/agent/index.json"
|
|
58
58
|
},
|
|
59
59
|
"source": "mcp/src/data — the same data @godxjp/ui-mcp serves — plus the foundation and semantic token tiers, read from src/tokens/*.css",
|
|
60
60
|
"start": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/START-HERE.md",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"foundation": "the seeds a consumer is invited to set — --primary, --background, --radius",
|
|
69
69
|
"semantic": "named roles that follow the seeds — --ring, --text-link, --overlay-background"
|
|
70
70
|
},
|
|
71
|
-
"version": "32.7.
|
|
71
|
+
"version": "32.7.1"
|
|
72
72
|
}
|
package/agent/llms.txt
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# @godxjp/ui
|
|
2
2
|
|
|
3
3
|
> A Japanese-enterprise React design system: 161 components, 2197 design tokens,
|
|
4
|
-
> 43 cardinal rules. This file is the entry point for AI agents. Catalog version 32.7.
|
|
4
|
+
> 43 cardinal rules. This file is the entry point for AI agents. Catalog version 32.7.1.
|
|
5
5
|
|
|
6
6
|
If your client can run a process, do not read these files — run the MCP server instead
|
|
7
|
-
(`npx @godxjp/ui-mcp@32.7.
|
|
7
|
+
(`npx @godxjp/ui-mcp@32.7.1`). It is searchable and version-locked. These files exist for agents
|
|
8
8
|
that can only fetch URLs.
|
|
9
9
|
|
|
10
10
|
## Start
|
|
11
11
|
|
|
12
12
|
- [START-HERE.md](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/START-HERE.md): the whole contract — the four rules, the token override model, a page that passes review. Read this first; it is self-contained.
|
|
13
13
|
- [index.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/index.json): version, counts, and the URL of every file.
|
|
14
|
-
- [DESIGN.md](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/DESIGN.md):
|
|
14
|
+
- [DESIGN.md](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/DESIGN.md): 14 KB — the visual spec: tokens, colour scarcity, admin screen anatomy (list, detail, form, settings, dashboard), do/don't. Read it before composing a screen.
|
|
15
15
|
|
|
16
16
|
## Catalog
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ that can only fetch URLs.
|
|
|
27
27
|
## Pinning
|
|
28
28
|
|
|
29
29
|
Every URL above tracks `main`. To pin to the release a project actually installed, swap `main` for
|
|
30
|
-
the tag: `.../godx-jp/godxjp-ui/v32.7.
|
|
30
|
+
the tag: `.../godx-jp/godxjp-ui/v32.7.1/agent/...`. A catalog that does not match the installed
|
|
31
31
|
package describes props that are absent, or hides props that are present, and says nothing either way.
|
|
32
32
|
|
|
33
33
|
Pinned catalogs only exist for releases whose tag actually contains `agent/`. If `…/v<version>/agent/index.json` returns 404, that release predates this catalog: read `…/main/…` instead and compare `index.json` → `version` against the package you have, so you at least know which way it drifted.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "AUTO-GENERATED by scripts/gen-measurement-contract.mjs — do not edit. Read this instead of guessing: docs/MEASUREMENT-CONTRACT.md.",
|
|
3
|
-
"version": "32.7.
|
|
3
|
+
"version": "32.7.1",
|
|
4
4
|
"targetSize": {
|
|
5
5
|
"standard": "WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA — 24×24 CSS px",
|
|
6
6
|
"min": 24,
|
package/dist/styles/layers.json
CHANGED
package/package.json
CHANGED
package/scripts/_agent-setup.mjs
CHANGED
|
@@ -187,8 +187,9 @@ Follow this every time you create or change a page, component or form.
|
|
|
187
187
|
2. **Route.** \`route_consumer_task "<task>"\` → \`compose-a-screen\` for app screens. The
|
|
188
188
|
marketing skills (soft, minimalist, brutalist, gpt-tasteskill, imagegen-*) are for landing
|
|
189
189
|
pages only.
|
|
190
|
-
3. **Exemplar.** \`get_exemplar\`
|
|
191
|
-
|
|
190
|
+
3. **Exemplar.** \`get_exemplar\` for the closest archetype (call it with no argument for the
|
|
191
|
+
list: list, detail, editor/form, reader/document, settings, dashboard, approval-queue). Match
|
|
192
|
+
its structure; it is the visual target.
|
|
192
193
|
4. **Discover, then look up.** \`search_components "<area>"\` first, \`get_component <Name>\`
|
|
193
194
|
second — \`get_component\` cannot find a name you do not already have (a consumer hand-rolled
|
|
194
195
|
the shipped \`OrgSwitcher\` and \`TopbarItem\` this way). Code already in this repo is not the
|
|
@@ -226,7 +227,8 @@ ${STAMP(KIT_VERSION)}
|
|
|
226
227
|
Before any JSX for a screen:
|
|
227
228
|
1. Read \`node_modules/@godxjp/ui/DESIGN.md\` (MCP \`get_design\`).
|
|
228
229
|
2. \`route_consumer_task\` → \`compose-a-screen\`; \`search_components\` before hand-rolling anything.
|
|
229
|
-
3. \`get_exemplar\` (
|
|
230
|
+
3. \`get_exemplar\` (no argument lists the archetypes: list, detail, editor, reader, settings,
|
|
231
|
+
dashboard, approval-queue) — match its structure.
|
|
230
232
|
|
|
231
233
|
After building:
|
|
232
234
|
4. \`npx @godxjp/ui audit <files>\` — zero errors.
|
package/scripts/ui-audit.mjs
CHANGED
|
@@ -109,8 +109,12 @@ function changedFiles() {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
const parts = [
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
// `--relative` (gh#1296): `git diff` names paths from the REPO root, `ls-files` from the cwd.
|
|
113
|
+
// Run from a workspace package (pages/) the root-relative names failed the existsSync below
|
|
114
|
+
// and were dropped, so 16 changed .tsx read as "no .tsx/.jsx changed" — a false clean.
|
|
115
|
+
// `--relative` makes both cwd-relative and limits them to the package being audited.
|
|
116
|
+
run(["diff", "--relative", "--name-only", "--diff-filter=ACMR", mergeBase.trim(), "--"]),
|
|
117
|
+
run(["diff", "--relative", "--name-only", "--diff-filter=ACMR", "--cached"]),
|
|
114
118
|
run(["ls-files", "--others", "--exclude-standard"]),
|
|
115
119
|
];
|
|
116
120
|
if (parts.some((out) => out === null)) {
|
|
@@ -2551,7 +2555,7 @@ if (filesScanned === 0 && !changedNoFiles) {
|
|
|
2551
2555
|
// Dưới `--changed`, NÓI RA base đã so. Một base sai không làm chương trình chết — nó cho ra một
|
|
2552
2556
|
// con số hợp lý, và đó là thứ duy nhất người đọc có thể dùng để nghi ngờ (gh#948).
|
|
2553
2557
|
if (CHANGED && changed?.base) {
|
|
2554
|
-
console.log(`${C.dim}
|
|
2558
|
+
console.log(`${C.dim}compared with: ${changed.base}${C.reset}`);
|
|
2555
2559
|
}
|
|
2556
2560
|
// Bỏ file trong im lặng là cách một gate thu hẹp dần mà không ai thấy (cùng lý do với dòng
|
|
2557
2561
|
// `so với:` ngay trên). Nói ra số file và lãnh thổ đã dùng.
|