@godxjp/ui 31.24.1 → 31.25.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/agent/START-HERE.md +1 -1
- package/agent/components/AppShell.json +5 -0
- package/agent/components.json +5 -0
- package/agent/index.json +2 -2
- package/agent/llms.txt +3 -3
- package/dist/components/layout/app-shell.d.ts +1 -1
- package/dist/components/layout/app-shell.js +2 -0
- package/dist/contracts/measurement.json +1 -1
- package/dist/props/components/layout.prop.d.ts +6 -0
- package/dist/styles/control.css +20 -0
- package/dist/styles/layers.json +1 -1
- package/package.json +2 -2
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` 31.
|
|
6
|
+
**This catalog describes `@godxjp/ui` 31.25.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.
|
|
@@ -110,6 +110,11 @@
|
|
|
110
110
|
"name": "mobileNavTriggerLabel",
|
|
111
111
|
"type": "string"
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"description": "SheetContent.onCloseAutoFocus for the built-in drawer: fires on every close before focus returns to the trigger. Call event.preventDefault() and focus your own target (e.g. the new page's heading via PageContainer titleRef) to send focus there instead (gh#1140).",
|
|
115
|
+
"name": "mobileNavOnCloseAutoFocus",
|
|
116
|
+
"type": "(event: Event) => void"
|
|
117
|
+
},
|
|
113
118
|
{
|
|
114
119
|
"description": "Controlled open state of the mobile drawer. Omit for AppShell-owned state.",
|
|
115
120
|
"name": "mobileNavOpen",
|
package/agent/components.json
CHANGED
|
@@ -1201,6 +1201,11 @@
|
|
|
1201
1201
|
"name": "mobileNavTriggerLabel",
|
|
1202
1202
|
"type": "string"
|
|
1203
1203
|
},
|
|
1204
|
+
{
|
|
1205
|
+
"description": "SheetContent.onCloseAutoFocus for the built-in drawer: fires on every close before focus returns to the trigger. Call event.preventDefault() and focus your own target (e.g. the new page's heading via PageContainer titleRef) to send focus there instead (gh#1140).",
|
|
1206
|
+
"name": "mobileNavOnCloseAutoFocus",
|
|
1207
|
+
"type": "(event: Event) => void"
|
|
1208
|
+
},
|
|
1204
1209
|
{
|
|
1205
1210
|
"description": "Controlled open state of the mobile drawer. Omit for AppShell-owned state.",
|
|
1206
1211
|
"name": "mobileNavOpen",
|
package/agent/index.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
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.
|
|
51
|
+
"pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.25.1/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",
|
|
@@ -62,5 +62,5 @@
|
|
|
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.
|
|
65
|
+
"version": "31.25.1"
|
|
66
66
|
}
|
package/agent/llms.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @godxjp/ui
|
|
2
2
|
|
|
3
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.
|
|
4
|
+
> 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.25.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@31.
|
|
7
|
+
(`npx @godxjp/ui-mcp@31.25.1`). It is searchable and version-locked. These files exist for agents
|
|
8
8
|
that can only fetch URLs.
|
|
9
9
|
|
|
10
10
|
## Start
|
|
@@ -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.
|
|
29
|
+
the tag: `.../godx-jp/godxjp-ui/v31.25.1/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.
|
|
@@ -3,4 +3,4 @@ import type { AppShellProp } from "../../props/components/layout.prop.js";
|
|
|
3
3
|
export type { AppShellProp, AppShellProp as AppShellProps, } from "../../props/components/layout.prop.js";
|
|
4
4
|
/** Same rail boundary as shell-layout.css; SSR starts in docked mode. */
|
|
5
5
|
export declare function useAppShellNavigationMode(): "drawer" | "docked";
|
|
6
|
-
export declare function AppShell({ sidebar, topbar, topbarLeft, topbarRight, logo, logoCompact, logoCompactBelow, breadcrumb, footer, children, sidebarCollapsed, responsiveNavigation, topbarSpan, navRail, navRailPosition, navRailEnd, navRailLabel, mobileNav, mobileNavLabel, mobileNavTriggerLabel, mobileNavOpen, onMobileNavOpenChange, }: AppShellProp): React.JSX.Element;
|
|
6
|
+
export declare function AppShell({ sidebar, topbar, topbarLeft, topbarRight, logo, logoCompact, logoCompactBelow, breadcrumb, footer, children, sidebarCollapsed, responsiveNavigation, topbarSpan, navRail, navRailPosition, navRailEnd, navRailLabel, mobileNav, mobileNavLabel, mobileNavTriggerLabel, mobileNavOnCloseAutoFocus, mobileNavOpen, onMobileNavOpenChange, }: AppShellProp): React.JSX.Element;
|
|
@@ -32,6 +32,7 @@ function AppShell({
|
|
|
32
32
|
mobileNav,
|
|
33
33
|
mobileNavLabel,
|
|
34
34
|
mobileNavTriggerLabel,
|
|
35
|
+
mobileNavOnCloseAutoFocus,
|
|
35
36
|
mobileNavOpen,
|
|
36
37
|
onMobileNavOpenChange
|
|
37
38
|
}) {
|
|
@@ -124,6 +125,7 @@ function AppShell({
|
|
|
124
125
|
width: "var(--app-shell-mobile-nav-width)",
|
|
125
126
|
className: "app-mobile-nav-drawer",
|
|
126
127
|
overlayClassName: "app-mobile-nav-overlay",
|
|
128
|
+
onCloseAutoFocus: mobileNavOnCloseAutoFocus,
|
|
127
129
|
children: [
|
|
128
130
|
/* @__PURE__ */ jsx(SheetHeader, { title: mobileNavLabel ?? t("layout.appShell.navLabel") }),
|
|
129
131
|
/* @__PURE__ */ jsx(
|
|
@@ -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.
|
|
3
|
+
"version": "31.25.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,
|
|
@@ -591,6 +591,12 @@ export type AppShellProp = {
|
|
|
591
591
|
* expand toggle — leave it open.
|
|
592
592
|
*/
|
|
593
593
|
mobileNavTriggerLabel?: string;
|
|
594
|
+
/**
|
|
595
|
+
* `SheetContent.onCloseAutoFocus` for the drawer: fires on every close, before focus returns to
|
|
596
|
+
* the trigger. Call `event.preventDefault()` and focus your own target — the new page's heading
|
|
597
|
+
* after a drawer navigation (`PageContainer titleRef`) — to send focus there instead.
|
|
598
|
+
*/
|
|
599
|
+
mobileNavOnCloseAutoFocus?: (event: Event) => void;
|
|
594
600
|
/** Controlled open state of the mobile drawer. Omit for AppShell-owned (uncontrolled) state. */
|
|
595
601
|
mobileNavOpen?: boolean;
|
|
596
602
|
/** Change handler for the mobile drawer open state (pairs with `mobileNavOpen`). */
|
package/dist/styles/control.css
CHANGED
|
@@ -294,6 +294,26 @@
|
|
|
294
294
|
padding: 0;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
@media (pointer: coarse) {
|
|
298
|
+
:where(.ui-button--icon-sm, .ui-toggle) {
|
|
299
|
+
position: relative;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ui-button--icon-sm::after,
|
|
303
|
+
.ui-toggle::after {
|
|
304
|
+
content: "";
|
|
305
|
+
position: absolute;
|
|
306
|
+
inset: 0;
|
|
307
|
+
min-inline-size: var(--control-height-default);
|
|
308
|
+
min-block-size: var(--control-height-default);
|
|
309
|
+
margin: auto;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
[data-slot="toggle-group-item"].ui-toggle::after {
|
|
313
|
+
min-inline-size: 0;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
297
317
|
.ui-button--icon-lg {
|
|
298
318
|
width: var(--control-height-lg);
|
|
299
319
|
height: var(--control-height-lg);
|
package/dist/styles/layers.json
CHANGED