@godxjp/ui 31.25.1 → 31.25.3

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.
@@ -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` 31.25.1.** If the project you are editing has a different
6
+ **This catalog describes `@godxjp/ui` 31.25.3.** 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.
@@ -56,10 +56,10 @@ Then ask it: `search_components`, `get_component`, `get_tokens`, `get_rule`, `li
56
56
  its `importPath`, and its examples. Fetch only the handful you picked in step 1.
57
57
  3. `rules.json` — 50 cardinal rules. The ones about raw HTML and hardcoded colour are not
58
58
  style advice.
59
- 4. `tokens.json` — 2131 design tokens, each tagged with its `tier`. **If you were handed a
59
+ 4. `tokens.json` — 2135 design tokens, each tagged with its `tier`. **If you were handed a
60
60
  brand, read the 211 `foundation` entries first** — `--primary`, `--background`,
61
61
  `--radius`, `--font-size-base` are the handful everything else derives from. The
62
- 1816 `component` entries are per-part knobs; reach for one only when a role is
62
+ 1820 `component` entries are per-part knobs; reach for one only when a role is
63
63
  right everywhere except one component.
64
64
  5. `anti-ai-tells.json` — 26 shapes that make generated UI look generated, each with the
65
65
  fix. Read before you reach for a gradient hero or a wall of coloured chips.
@@ -145,7 +145,7 @@ has stopped following the brand.
145
145
  |---|---|---|---|
146
146
  | `foundation` | 211 | the seeds — `--primary`, `--background`, `--foreground`, `--radius`, `--font-size-base`, `--shadow-color`. Everything below is derived from these | **yes — this is the main road.** Handed a brand colour, this is where it goes: `:root { --primary: <H> <S>% <L>%; }` (HSL components, no `hsl()` wrapper) |
147
147
  | `semantic` | 104 | named roles that follow the seeds — `--ring`, `--text-link`, `--primary-hover`, `--overlay-background` | only when the seed is right and ONE role must differ. That role then stops following a later brand change |
148
- | `component` | 1816 | per-part knobs, `--{component}-{part}-{property}` | rarely. Most are declared `initial` with the real default at the call site — deliberate, so a scoped override re-resolves instead of freezing at `:root` |
148
+ | `component` | 1820 | per-part knobs, `--{component}-{part}-{property}` | rarely. Most are declared `initial` with the real default at the call site — deliberate, so a scoped override re-resolves instead of freezing at `:root` |
149
149
 
150
150
  A token whose `value` is `initial` is not empty and not broken: `initial` is the guaranteed-invalid
151
151
  value, so the real default is computed where the element paints it. Set it and yours wins.
package/agent/index.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "components": 181,
5
5
  "patterns": 21,
6
6
  "rules": 50,
7
- "tokens": 2131,
7
+ "tokens": 2135,
8
8
  "vocabulary": 14
9
9
  },
10
10
  "files": [
@@ -48,19 +48,19 @@
48
48
  "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.",
49
49
  "read": {
50
50
  "live": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/index.json",
51
- "pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.25.1/agent/index.json"
51
+ "pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.25.3/agent/index.json"
52
52
  },
53
53
  "source": "mcp/src/data — the same data @godxjp/ui-mcp serves — plus the foundation and semantic token tiers, read from src/tokens/*.css",
54
54
  "start": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/START-HERE.md",
55
55
  "tokenTiers": {
56
56
  "component": "per-part knobs, --{component}-{part}-{property}; usually leave these alone",
57
57
  "counts": {
58
- "component": 1816,
58
+ "component": 1820,
59
59
  "foundation": 211,
60
60
  "semantic": 104
61
61
  },
62
62
  "foundation": "the seeds a consumer is invited to set — --primary, --background, --radius",
63
63
  "semantic": "named roles that follow the seeds — --ring, --text-link, --overlay-background"
64
64
  },
65
- "version": "31.25.1"
65
+ "version": "31.25.3"
66
66
  }
package/agent/llms.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  # @godxjp/ui
2
2
 
3
- > A Japanese-enterprise React design system: 181 components, 2131 design tokens,
4
- > 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.25.1.
3
+ > A Japanese-enterprise React design system: 181 components, 2135 design tokens,
4
+ > 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.25.3.
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@31.25.1`). It is searchable and version-locked. These files exist for agents
7
+ (`npx @godxjp/ui-mcp@31.25.3`). It is searchable and version-locked. These files exist for agents
8
8
  that can only fetch URLs.
9
9
 
10
10
  ## Start
@@ -18,7 +18,7 @@ that can only fetch URLs.
18
18
  - [components-index.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components-index.json): 50 KB — all 181 components as name, group, tagline, plus `absorbed`: the names that do NOT exist and map to it (`Combobox` → `Select`).
19
19
  - [components/&lt;Name&gt;.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components/Select.json): one file per component (1 KB–36 KB, median 6 KB). Read the index, then fetch only the ones you chose — this is the selective route, and the reason you do not need the blob.
20
20
  - [components.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components.json): 1.2 MB — every entry in one file. Most URL fetchers truncate a response this size without saying so; prefer the per-component files.
21
- - [tokens.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/tokens.json): every design token with its value, the reason it exists, and its `tier` — 211 `foundation` seeds (`--primary`, `--background`, `--radius`: set these when you are handed a brand), 104 `semantic` roles, 1816 `component` knobs.
21
+ - [tokens.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/tokens.json): every design token with its value, the reason it exists, and its `tier` — 211 `foundation` seeds (`--primary`, `--background`, `--radius`: set these when you are handed a brand), 104 `semantic` roles, 1820 `component` knobs.
22
22
  - [vocabulary.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/vocabulary.json): the controlled prop vocabulary — which prop name means what, across every component.
23
23
  - [rules.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/rules.json): 50 cardinal rules.
24
24
  - [anti-ai-tells.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/anti-ai-tells.json): 26 shapes that make generated UI look generated, each with its fix.
@@ -26,7 +26,7 @@ that can only fetch URLs.
26
26
  ## Pinning
27
27
 
28
28
  Every URL above tracks `main`. To pin to the release a project actually installed, swap `main` for
29
- the tag: `.../godx-jp/godxjp-ui/v31.25.1/agent/...`. A catalog that does not match the installed
29
+ the tag: `.../godx-jp/godxjp-ui/v31.25.3/agent/...`. A catalog that does not match the installed
30
30
  package describes props that are absent, or hides props that are present, and says nothing either way.
31
31
 
32
32
  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.
package/agent/tokens.json CHANGED
@@ -9383,6 +9383,30 @@
9383
9383
  "tier": "component",
9384
9384
  "value": "0.7"
9385
9385
  },
9386
+ {
9387
+ "description": "Rule #24 for the two row-shaped surfaces in this file (gh#1146). Measured at 390px with `(pointer: coarse)`: a DropdownMenu / Select row 32px, a tab trigger 34px. Rows sit flush against each other and a horizontal tab list clips its block overflow, so neither can borrow a larger target from a pseudo-element the way an isolated control does — the ROW itself reaches the 44px tap floor, as every touch platform's menus and tab bars do. Tab sizes collapse onto the floor under a finger, exactly as the control ladder's compact/default steps already do.",
9388
+ "name": "--menu-item-height",
9389
+ "tier": "component",
9390
+ "value": "var(--band-height-xl)"
9391
+ },
9392
+ {
9393
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers.",
9394
+ "name": "--tabs-trigger-height-sm",
9395
+ "tier": "component",
9396
+ "value": "var(--band-height-xl)"
9397
+ },
9398
+ {
9399
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers.",
9400
+ "name": "--tabs-trigger-height-md",
9401
+ "tier": "component",
9402
+ "value": "var(--band-height-xl)"
9403
+ },
9404
+ {
9405
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers.",
9406
+ "name": "--tabs-trigger-height-lg",
9407
+ "tier": "component",
9408
+ "value": "var(--band-height-xl)"
9409
+ },
9386
9410
  {
9387
9411
  "description": "The box. A fixed inline size, so siblings line up in even columns and the connector bus has a predictable pitch; long names wrap inside it instead of widening one box.",
9388
9412
  "name": "--org-chart-node-inline-size",
@@ -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": "31.25.1",
3
+ "version": "31.25.3",
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,
@@ -295,12 +295,15 @@
295
295
  }
296
296
 
297
297
  @media (pointer: coarse) {
298
- :where(.ui-button--icon-sm, .ui-toggle) {
298
+ :where(.ui-button--icon-sm, .ui-button--xs, .ui-button--sm, .ui-toggle) {
299
299
  position: relative;
300
300
  }
301
301
 
302
302
  .ui-button--icon-sm::after,
303
- .ui-toggle::after {
303
+ .ui-button--xs::after,
304
+ .ui-button--sm::after,
305
+ .ui-toggle::after,
306
+ .ui-segmented-item::after {
304
307
  content: "";
305
308
  position: absolute;
306
309
  inset: 0;
@@ -309,9 +312,14 @@
309
312
  margin: auto;
310
313
  }
311
314
 
312
- [data-slot="toggle-group-item"].ui-toggle::after {
315
+ [data-slot="toggle-group-item"].ui-toggle::after,
316
+ .ui-segmented-item::after {
313
317
  min-inline-size: 0;
314
318
  }
319
+
320
+ .ui-command-item {
321
+ min-block-size: var(--band-height-xl);
322
+ }
315
323
  }
316
324
 
317
325
  .ui-button--icon-lg {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "31.25.1",
2
+ "version": "31.25.3",
3
3
  "generatedBy": "scripts/gen-style-layers.mjs — do not edit by hand; run `pnpm gen:style-layers`",
4
4
  "base": "base.css",
5
5
  "fonts": "fonts.css",
@@ -795,6 +795,15 @@
795
795
  color: hsl(var(--foreground));
796
796
  }
797
797
 
798
+ @media (pointer: coarse) {
799
+ .ui-breadcrumb-item :is(a[href], .ui-breadcrumb-menu-trigger) {
800
+
801
+ position: relative;
802
+ padding-block: max(0px, calc((var(--control-height-default) - 1lh) / 2));
803
+ margin-block: min(0px, calc((1lh - var(--control-height-default)) / 2));
804
+ }
805
+ }
806
+
798
807
  .ui-dropdown-menu-arrow {
799
808
  inline-size: var(--dropdown-arrow-width);
800
809
  block-size: var(--dropdown-arrow-height);
@@ -237,3 +237,12 @@
237
237
  --app-setting-picker-icon-size: var(--icon-size-md);
238
238
  --app-setting-picker-icon-rest-alpha: 0.7;
239
239
  }
240
+
241
+ @media (pointer: coarse) {
242
+ :root {
243
+ --menu-item-height: var(--band-height-xl);
244
+ --tabs-trigger-height-sm: var(--band-height-xl);
245
+ --tabs-trigger-height-md: var(--band-height-xl);
246
+ --tabs-trigger-height-lg: var(--band-height-xl);
247
+ }
248
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@godxjp/ui",
3
- "version": "31.25.1",
4
- "godxUiMcp": "31.25.1",
3
+ "version": "31.25.3",
4
+ "godxUiMcp": "31.25.3",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",