@godxjp/ui 33.12.1 → 33.12.2
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/index.json +2 -2
- package/agent/llms.txt +3 -3
- package/agent/tokens.json +1 -1
- package/dist/components/layout/resizable.d.ts +1 -1
- package/dist/components/layout/resizable.js +7 -1
- package/dist/contracts/measurement.json +1 -1
- package/dist/lib/focus-reveal.d.ts +1 -1
- package/dist/lib/focus-reveal.js +12 -3
- package/dist/styles/card-layout.css +13 -0
- package/dist/styles/data-display-layout.css +2 -0
- package/dist/styles/data-entry-layout.css +2 -0
- package/dist/styles/focus-ring.css +16 -18
- package/dist/styles/layers.json +1 -1
- package/dist/styles/layout.css +6 -0
- package/dist/styles/navigation-layout.css +4 -0
- package/dist/styles/shell-layout.css +13 -0
- package/dist/styles/table-layout.css +14 -0
- package/dist/styles.css +1 -1
- package/docs/TOKENS.md +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` 33.12.
|
|
6
|
+
**This catalog describes `@godxjp/ui` 33.12.2.** 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
|
@@ -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/v33.12.
|
|
57
|
+
"pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v33.12.2/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": "33.12.
|
|
71
|
+
"version": "33.12.2"
|
|
72
72
|
}
|
package/agent/llms.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @godxjp/ui
|
|
2
2
|
|
|
3
3
|
> A Japanese-enterprise React design system: 169 components, 2241 design tokens,
|
|
4
|
-
> 44 cardinal rules. This file is the entry point for AI agents. Catalog version 33.12.
|
|
4
|
+
> 44 cardinal rules. This file is the entry point for AI agents. Catalog version 33.12.2.
|
|
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@33.12.
|
|
7
|
+
(`npx @godxjp/ui-mcp@33.12.2`). It is searchable and version-locked. These files exist for agents
|
|
8
8
|
that can only fetch URLs.
|
|
9
9
|
|
|
10
10
|
## Start
|
|
@@ -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/v33.12.
|
|
30
|
+
the tag: `.../godx-jp/godxjp-ui/v33.12.2/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.
|
package/agent/tokens.json
CHANGED
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
"value": "var(--focus-outline-offset)"
|
|
667
667
|
},
|
|
668
668
|
{
|
|
669
|
-
"description": "
|
|
669
|
+
"description": "Opt-in for individual clipped focus carriers, never inherited from containers.",
|
|
670
670
|
"name": "--focus-ring-inset-offset",
|
|
671
671
|
"tier": "foundation",
|
|
672
672
|
"value": "calc(-1 * (var(--focus-ring-width) + var(--focus-outline-offset)))"
|
|
@@ -4,7 +4,7 @@ export declare function ResizablePanelGroup({ className, ...props }: React.Compo
|
|
|
4
4
|
export declare namespace ResizablePanelGroup {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function ResizablePanel({ className, elementRef, ...props }: React.ComponentPropsWithoutRef<typeof ResizablePrimitive.Panel>): React.JSX.Element;
|
|
7
|
+
export declare function ResizablePanel({ className, elementRef, onFocusCapture, ...props }: React.ComponentPropsWithoutRef<typeof ResizablePrimitive.Panel>): React.JSX.Element;
|
|
8
8
|
export declare namespace ResizablePanel {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
5
|
+
import { revealKeyboardFocus } from "../../lib/focus-reveal.js";
|
|
5
6
|
import { cn } from "../../lib/utils.js";
|
|
6
7
|
import { useScrollableRegionTabIndex } from "../../lib/hooks.js";
|
|
7
8
|
const ResizablePanelGroup = ({
|
|
@@ -19,6 +20,7 @@ ResizablePanelGroup.displayName = "ResizablePanelGroup";
|
|
|
19
20
|
const ResizablePanel = ({
|
|
20
21
|
className,
|
|
21
22
|
elementRef,
|
|
23
|
+
onFocusCapture,
|
|
22
24
|
...props
|
|
23
25
|
}) => {
|
|
24
26
|
const [scrollRegion, setScrollRegion] = React.useState(null);
|
|
@@ -39,7 +41,11 @@ const ResizablePanel = ({
|
|
|
39
41
|
"data-slot": "resizable-panel",
|
|
40
42
|
className: cn("ui-resizable-panel", className),
|
|
41
43
|
elementRef: setRootElement,
|
|
42
|
-
...props
|
|
44
|
+
...props,
|
|
45
|
+
onFocusCapture: (event) => {
|
|
46
|
+
revealKeyboardFocus(event, scrollRegion ?? event.currentTarget);
|
|
47
|
+
onFocusCapture?.(event);
|
|
48
|
+
}
|
|
43
49
|
}
|
|
44
50
|
);
|
|
45
51
|
};
|
|
@@ -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": "33.12.
|
|
3
|
+
"version": "33.12.2",
|
|
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,
|
|
@@ -2,4 +2,4 @@ import type { FocusEvent } from "react";
|
|
|
2
2
|
/** Native Tab scrolling can leave a partially visible control clipped (Chromium).
|
|
3
3
|
* Reveal keyboard targets that fit inside a scroll viewport, without moving oversized
|
|
4
4
|
* rows, changing layout, or scrolling on pointer focus. */
|
|
5
|
-
export declare function revealKeyboardFocus(event: FocusEvent<HTMLElement
|
|
5
|
+
export declare function revealKeyboardFocus(event: FocusEvent<HTMLElement>, viewport?: EventTarget & HTMLElement): void;
|
package/dist/lib/focus-reveal.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
function revealKeyboardFocus(event) {
|
|
2
|
-
const viewport = event.currentTarget;
|
|
1
|
+
function revealKeyboardFocus(event, viewport = event.currentTarget) {
|
|
3
2
|
const target = event.target;
|
|
4
3
|
if (!(target instanceof HTMLElement) || target === viewport || !viewport.contains(target) || !target.matches(":focus-visible"))
|
|
5
4
|
return;
|
|
6
5
|
const carrier = target.closest(".ui-tag-input,.ui-control-composite-field") ?? target;
|
|
7
|
-
const
|
|
6
|
+
const rect = carrier.getBoundingClientRect();
|
|
7
|
+
const focus = getComputedStyle(carrier);
|
|
8
|
+
const extent = focus.outlineStyle === "none" ? 0 : Math.max(0, parseFloat(focus.outlineWidth) + parseFloat(focus.outlineOffset));
|
|
9
|
+
const box = {
|
|
10
|
+
left: rect.left - extent,
|
|
11
|
+
right: rect.right + extent,
|
|
12
|
+
top: rect.top - extent,
|
|
13
|
+
bottom: rect.bottom + extent,
|
|
14
|
+
width: rect.width + 2 * extent,
|
|
15
|
+
height: rect.height + 2 * extent
|
|
16
|
+
};
|
|
8
17
|
const frame = viewport.getBoundingClientRect();
|
|
9
18
|
const left = frame.left + viewport.clientLeft;
|
|
10
19
|
const top = frame.top + viewport.clientTop;
|
|
@@ -28,6 +28,19 @@
|
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
[data-slot="card"]:focus-within,
|
|
32
|
+
[data-slot="card"]:has([data-slot="card-header"][data-banded]):focus-within {
|
|
33
|
+
overflow: clip;
|
|
34
|
+
overflow-clip-margin: var(--focus-ring-clip-margin);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@supports not (overflow-clip-margin: 1px) {
|
|
38
|
+
[data-slot="card"]:focus-within,
|
|
39
|
+
[data-slot="card"]:has([data-slot="card-header"][data-banded]):focus-within {
|
|
40
|
+
overflow: visible;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
31
44
|
button[data-slot="card"] {
|
|
32
45
|
text-align: inherit;
|
|
33
46
|
}
|
|
@@ -1108,6 +1108,8 @@
|
|
|
1108
1108
|
@layer components {
|
|
1109
1109
|
|
|
1110
1110
|
.ui-scroll-area {
|
|
1111
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1112
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1111
1113
|
position: relative;
|
|
1112
1114
|
scrollbar-width: var(--scroll-area-scrollbar-width);
|
|
1113
1115
|
scrollbar-color: var(--scroll-area-thumb-color, hsl(var(--border)))
|
|
@@ -700,6 +700,8 @@
|
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
.ui-branch-scope-picker-list {
|
|
703
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
704
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
703
705
|
max-block-size: var(--branch-scope-picker-list-max-height);
|
|
704
706
|
overflow-y: auto;
|
|
705
707
|
}
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
var(--focus-ring-opacity, 1)
|
|
102
102
|
);
|
|
103
103
|
outline-offset: var(--focus-ring-contained-offset, var(--focus-ring-offset));
|
|
104
|
+
scroll-margin: calc(var(--focus-ring-width) + var(--focus-outline-offset));
|
|
104
105
|
|
|
105
106
|
transition:
|
|
106
107
|
outline-offset 0s,
|
|
@@ -228,31 +229,28 @@
|
|
|
228
229
|
tr.ui-focus-ring,
|
|
229
230
|
.sb-nav-item,
|
|
230
231
|
.ui-app-setting-picker-icon[data-appearance="bar"],
|
|
231
|
-
.ui-legal-document-toc-link
|
|
232
|
-
[data-slot="anchor-link"] {
|
|
232
|
+
.ui-legal-document-toc-link {
|
|
233
233
|
--focus-ring-offset: calc(-1 * var(--focus-ring-width));
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
:is(
|
|
237
|
-
.ui-
|
|
238
|
-
|
|
239
|
-
[data-slot="
|
|
240
|
-
[data-
|
|
241
|
-
.ui-
|
|
242
|
-
.
|
|
243
|
-
.ui-
|
|
244
|
-
.
|
|
245
|
-
.ui-
|
|
237
|
+
.ui-mobile-shell-tabbar .ui-button--ghost,
|
|
238
|
+
[data-slot="tabs-list"] [role="tab"],
|
|
239
|
+
[data-slot="tabs-list"] .ui-tabs-add,
|
|
240
|
+
.ui-app-setting-picker-icon[data-appearance="bar"],
|
|
241
|
+
.ui-legal-document-rail .ui-legal-document-toc-link,
|
|
242
|
+
.ui-table-scroll [data-slot="table-cell"] .ui-button--ghost,
|
|
243
|
+
.ui-data-table-scroll [data-slot="table-cell"] .ui-button--ghost,
|
|
244
|
+
.ui-search-select-value-remove,
|
|
245
|
+
.ui-table-scroll tr.ui-focus-ring,
|
|
246
|
+
.ui-data-table-scroll tr.ui-focus-ring,
|
|
247
|
+
.ui-resizable-handle,
|
|
246
248
|
.ui-scroll-area,
|
|
247
249
|
.ui-table-scroll,
|
|
248
|
-
.ui-
|
|
249
|
-
.ui-resizable-panel
|
|
250
|
-
|
|
251
|
-
.ui-command-input-wrapper,
|
|
252
|
-
.ui-attachments
|
|
253
|
-
) {
|
|
250
|
+
.ui-data-table-scroll,
|
|
251
|
+
.ui-resizable-panel
|
|
252
|
+
):focus-visible {
|
|
254
253
|
--focus-ring-contained-offset: var(--focus-ring-inset-offset);
|
|
255
|
-
|
|
256
254
|
}
|
|
257
255
|
|
|
258
256
|
.ui-accordion-trigger {
|
package/dist/styles/layers.json
CHANGED
package/dist/styles/layout.css
CHANGED
|
@@ -642,6 +642,8 @@
|
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ui-resizable-panel {
|
|
645
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
646
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
645
647
|
min-height: 0;
|
|
646
648
|
min-width: 0;
|
|
647
649
|
}
|
|
@@ -1385,6 +1387,8 @@
|
|
|
1385
1387
|
}
|
|
1386
1388
|
|
|
1387
1389
|
.ui-pagination-list {
|
|
1390
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1391
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1388
1392
|
display: flex;
|
|
1389
1393
|
min-width: 0;
|
|
1390
1394
|
align-items: center;
|
|
@@ -1701,6 +1705,8 @@
|
|
|
1701
1705
|
}
|
|
1702
1706
|
|
|
1703
1707
|
.ui-legal-document-rail {
|
|
1708
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1709
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1704
1710
|
display: flex;
|
|
1705
1711
|
flex-direction: column;
|
|
1706
1712
|
gap: var(--legal-document-nav-gap);
|
|
@@ -493,6 +493,8 @@
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
.ui-pagination {
|
|
496
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
497
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
496
498
|
max-inline-size: 100%;
|
|
497
499
|
overflow-x: auto;
|
|
498
500
|
scrollbar-width: thin;
|
|
@@ -1402,6 +1404,8 @@
|
|
|
1402
1404
|
}
|
|
1403
1405
|
|
|
1404
1406
|
.ui-anchor[data-direction="horizontal"] .ui-anchor-list {
|
|
1407
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1408
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
1405
1409
|
display: flex;
|
|
1406
1410
|
gap: var(--anchor-gap);
|
|
1407
1411
|
|
|
@@ -277,6 +277,9 @@
|
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.app-main {
|
|
280
|
+
|
|
281
|
+
padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
282
|
+
scroll-padding: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
280
283
|
grid-area: main;
|
|
281
284
|
min-width: 0;
|
|
282
285
|
overflow: auto;
|
|
@@ -2238,11 +2241,21 @@
|
|
|
2238
2241
|
}
|
|
2239
2242
|
|
|
2240
2243
|
.ui-topbar[data-overflow="scroll"] {
|
|
2244
|
+
|
|
2245
|
+
margin-inline: calc(-1 * (var(--focus-ring-weight) + var(--focus-outline-offset)));
|
|
2246
|
+
max-width: calc(100% + 2 * (var(--focus-ring-weight) + var(--focus-outline-offset)));
|
|
2247
|
+
padding-inline: calc(
|
|
2248
|
+
var(--topbar-inset) + var(--focus-ring-weight) + var(--focus-outline-offset)
|
|
2249
|
+
);
|
|
2241
2250
|
overflow-x: auto;
|
|
2242
2251
|
overscroll-behavior-inline: contain;
|
|
2243
2252
|
scrollbar-width: none;
|
|
2244
2253
|
}
|
|
2245
2254
|
|
|
2255
|
+
.ui-topbar[data-overflow="scroll"]:not([data-height]):not(.app-topbar .ui-topbar) {
|
|
2256
|
+
padding-block: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2246
2259
|
.ui-topbar[data-overflow="scroll"]::-webkit-scrollbar {
|
|
2247
2260
|
display: none;
|
|
2248
2261
|
}
|
|
@@ -358,6 +358,17 @@
|
|
|
358
358
|
saturate(var(--surface-backdrop-saturate, 160%));
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
.ui-data-table-surface:focus-within {
|
|
362
|
+
overflow: clip;
|
|
363
|
+
overflow-clip-margin: var(--focus-ring-clip-margin);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@supports not (overflow-clip-margin: 1px) {
|
|
367
|
+
.ui-data-table-surface:focus-within {
|
|
368
|
+
overflow: visible;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
361
372
|
.ui-data-table-surface[data-preset="action-collection"] {
|
|
362
373
|
min-inline-size: 0;
|
|
363
374
|
}
|
|
@@ -460,6 +471,9 @@
|
|
|
460
471
|
overflow-x: auto;
|
|
461
472
|
margin-inline: calc(-1 * var(--space-page-active-x));
|
|
462
473
|
padding-inline: var(--space-page-active-x);
|
|
474
|
+
|
|
475
|
+
padding-block: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
476
|
+
scroll-padding-block: calc(var(--focus-ring-weight) + var(--focus-outline-offset));
|
|
463
477
|
}
|
|
464
478
|
|
|
465
479
|
.ui-data-table-scroll::after {
|