@godxjp/ui 33.12.5 → 33.12.6
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/Pagination.json +1 -1
- package/agent/components/Toaster.json +6 -0
- package/agent/components.json +7 -1
- package/agent/index.json +2 -2
- package/agent/llms.txt +3 -3
- package/dist/components/data-display/data-table.js +5 -1
- package/dist/components/feedback/sonner.d.ts +7 -1
- package/dist/components/feedback/sonner.js +8 -1
- package/dist/components/navigation/pagination-utils.d.ts +9 -0
- package/dist/components/navigation/pagination-utils.js +6 -1
- package/dist/components/navigation/pagination.js +2 -2
- package/dist/contracts/measurement.json +1 -1
- 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` 33.12.
|
|
6
|
+
**This catalog describes `@godxjp/ui` 33.12.6.** 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.
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"type": "(page: number, pageSize: number) => void"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
"description": "Selectable page sizes shown in the size changer.",
|
|
40
|
+
"description": "Selectable page sizes shown in the size changer (default [10, 20, 50, 100]). The current `pageSize` is always listed: one missing from the options is added in ascending order (antd parity, gh#1386).",
|
|
41
41
|
"name": "pageSizeOptions",
|
|
42
42
|
"type": "number[]"
|
|
43
43
|
},
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"name": "richColors",
|
|
16
16
|
"type": "boolean"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"defaultValue": "true",
|
|
20
|
+
"description": "Draw every visible toast whole, stacked with a gap. Default `true` (gh#1387): Sonner's collapsed deck (`expand={false}`) keeps earlier toasts as cards peeking behind the front one with their text hidden, which reads as an empty box. Pass `expand={false}` to opt back into the deck.",
|
|
21
|
+
"name": "expand",
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
18
24
|
{
|
|
19
25
|
"description": "Auto-dismiss time in ms for every toast. Omit it to let the `--toast-duration` token (default 4000ms) decide — read once on mount from the ThemeScope host or `<html>` (gh#1253). A per-call `toast(…, { duration })` still wins.",
|
|
20
26
|
"name": "duration",
|
package/agent/components.json
CHANGED
|
@@ -8419,6 +8419,12 @@
|
|
|
8419
8419
|
"name": "richColors",
|
|
8420
8420
|
"type": "boolean"
|
|
8421
8421
|
},
|
|
8422
|
+
{
|
|
8423
|
+
"defaultValue": "true",
|
|
8424
|
+
"description": "Draw every visible toast whole, stacked with a gap. Default `true` (gh#1387): Sonner's collapsed deck (`expand={false}`) keeps earlier toasts as cards peeking behind the front one with their text hidden, which reads as an empty box. Pass `expand={false}` to opt back into the deck.",
|
|
8425
|
+
"name": "expand",
|
|
8426
|
+
"type": "boolean"
|
|
8427
|
+
},
|
|
8422
8428
|
{
|
|
8423
8429
|
"description": "Auto-dismiss time in ms for every toast. Omit it to let the `--toast-duration` token (default 4000ms) decide — read once on mount from the ThemeScope host or `<html>` (gh#1253). A per-call `toast(…, { duration })` still wins.",
|
|
8424
8430
|
"name": "duration",
|
|
@@ -8675,7 +8681,7 @@
|
|
|
8675
8681
|
"type": "(page: number, pageSize: number) => void"
|
|
8676
8682
|
},
|
|
8677
8683
|
{
|
|
8678
|
-
"description": "Selectable page sizes shown in the size changer.",
|
|
8684
|
+
"description": "Selectable page sizes shown in the size changer (default [10, 20, 50, 100]). The current `pageSize` is always listed: one missing from the options is added in ascending order (antd parity, gh#1386).",
|
|
8679
8685
|
"name": "pageSizeOptions",
|
|
8680
8686
|
"type": "number[]"
|
|
8681
8687
|
},
|
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.6/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.6"
|
|
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.6.
|
|
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.6`). 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.6/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.
|
|
@@ -79,6 +79,7 @@ import {
|
|
|
79
79
|
tableRowHeightClass
|
|
80
80
|
} from "../../lib/control-styles.js";
|
|
81
81
|
import { isDevelopment } from "../../lib/dev.js";
|
|
82
|
+
import { pageSizeOptionsWith } from "../navigation/pagination-utils.js";
|
|
82
83
|
function resolveColumnHideBelow(col) {
|
|
83
84
|
if (col.hideBelow) return col.hideBelow;
|
|
84
85
|
if (col.hiddenOnMobile) return "md";
|
|
@@ -1463,7 +1464,10 @@ function NumberedPagination({ pageSizeOptions, className }) {
|
|
|
1463
1464
|
const { pageIndex, pageSize } = table.state.pagination;
|
|
1464
1465
|
const pageCount = table.getPageCount();
|
|
1465
1466
|
if (pagerHidden) return null;
|
|
1466
|
-
const options =
|
|
1467
|
+
const options = pageSizeOptionsWith(
|
|
1468
|
+
pageSizeOptions ?? paginationConfig?.pageSizeOptions ?? [10, 20, 50, 100],
|
|
1469
|
+
pageSize
|
|
1470
|
+
);
|
|
1467
1471
|
const showSizeChanger = paginationConfig?.showSizeChanger ?? true;
|
|
1468
1472
|
return /* @__PURE__ */ jsxs(
|
|
1469
1473
|
Flex,
|
|
@@ -11,6 +11,12 @@ export declare function parseToastDuration(raw: string): number | undefined;
|
|
|
11
11
|
* all (`[data-rich-colors='true'][data-type='success'] { … }`), so without it the tokens above
|
|
12
12
|
* are declared and never read. A consumer can still pass `richColors={false}` for a deliberately
|
|
13
13
|
* monochrome stack.
|
|
14
|
+
*
|
|
15
|
+
* `expand` defaults ON (gh#1387). Sonner's collapsed deck keeps every earlier toast as a card
|
|
16
|
+
* peeking behind the front one with its content faded to `opacity: 0`, so a second toast arriving
|
|
17
|
+
* while the first is live drew an empty box behind it (gino-cloud: 338×51 frame, 13px above the
|
|
18
|
+
* front toast, no text). Expanded, each visible toast is drawn whole. `expand={false}` restores
|
|
19
|
+
* the deck for a consumer who wants it.
|
|
14
20
|
*/
|
|
15
|
-
declare function Toaster({ style, richColors, toastOptions, ...props }: ToasterProps): React.JSX.Element;
|
|
21
|
+
declare function Toaster({ style, richColors, expand, toastOptions, ...props }: ToasterProps): React.JSX.Element;
|
|
16
22
|
export { Toaster };
|
|
@@ -60,7 +60,13 @@ const toneVars = Object.fromEntries(
|
|
|
60
60
|
[`--${type}-text`, `hsl(var(--${ink}))`]
|
|
61
61
|
])
|
|
62
62
|
);
|
|
63
|
-
function Toaster({
|
|
63
|
+
function Toaster({
|
|
64
|
+
style,
|
|
65
|
+
richColors = true,
|
|
66
|
+
expand = true,
|
|
67
|
+
toastOptions,
|
|
68
|
+
...props
|
|
69
|
+
}) {
|
|
64
70
|
const theme = useDocumentTheme();
|
|
65
71
|
const { t } = useTranslation();
|
|
66
72
|
const overlayPortalContainer = useOverlayPortalContainer();
|
|
@@ -70,6 +76,7 @@ function Toaster({ style, richColors = true, toastOptions, ...props }) {
|
|
|
70
76
|
{
|
|
71
77
|
theme,
|
|
72
78
|
richColors,
|
|
79
|
+
expand,
|
|
73
80
|
className: "toaster group",
|
|
74
81
|
icons: {
|
|
75
82
|
success: /* @__PURE__ */ jsx(CheckCircle2, { className: "ui-toast-icon", "aria-hidden": "true" }),
|
|
@@ -4,3 +4,12 @@
|
|
|
4
4
|
* CONSTANT wherever the current page sits.
|
|
5
5
|
*/
|
|
6
6
|
export declare function buildPageRange(current: number, totalPages: number, siblingCount?: number, boundaryCount?: number): (number | "ellipsis")[];
|
|
7
|
+
/**
|
|
8
|
+
* The rows-per-page choices with the CURRENT page size always among them (gh#1386).
|
|
9
|
+
*
|
|
10
|
+
* A size changer whose list leaves out its own value has no item to show: `DataTable.Pagination`
|
|
11
|
+
* rendered an empty trigger, `Pagination` a menu with no entry for the size in use. Ant Design's
|
|
12
|
+
* `rc-pagination` size changer adds the current size the same way. Sorted ascending, so 25 lands
|
|
13
|
+
* between 20 and 50 rather than at the end.
|
|
14
|
+
*/
|
|
15
|
+
export declare function pageSizeOptionsWith(options: readonly number[], pageSize: number): number[];
|
|
@@ -26,6 +26,11 @@ function buildPageRange(current, totalPages, siblingCount = 1, boundaryCount = 1
|
|
|
26
26
|
...endPages
|
|
27
27
|
];
|
|
28
28
|
}
|
|
29
|
+
function pageSizeOptionsWith(options, pageSize) {
|
|
30
|
+
if (options.includes(pageSize)) return [...options];
|
|
31
|
+
return [...options, pageSize].sort((a, b) => a - b);
|
|
32
|
+
}
|
|
29
33
|
export {
|
|
30
|
-
buildPageRange
|
|
34
|
+
buildPageRange,
|
|
35
|
+
pageSizeOptionsWith
|
|
31
36
|
};
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
SelectTrigger,
|
|
18
18
|
SelectValue
|
|
19
19
|
} from "../data-entry/select.js";
|
|
20
|
-
import { buildPageRange } from "./pagination-utils.js";
|
|
20
|
+
import { buildPageRange, pageSizeOptionsWith } from "./pagination-utils.js";
|
|
21
21
|
import { isImeComposing } from "../../lib/ime.js";
|
|
22
22
|
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => {
|
|
23
23
|
const [scrollRegion, setScrollRegion] = React.useState(null);
|
|
@@ -255,7 +255,7 @@ function Pagination({
|
|
|
255
255
|
children: /* @__PURE__ */ jsx(SelectValue, { children: t("navigation.pagination.pageSizeTrigger", { size: pageSize }) })
|
|
256
256
|
}
|
|
257
257
|
),
|
|
258
|
-
/* @__PURE__ */ jsx(SelectContent, { children: pageSizeOptions.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: String(option), children: option }, option)) })
|
|
258
|
+
/* @__PURE__ */ jsx(SelectContent, { children: pageSizeOptionsWith(pageSizeOptions, pageSize).map((option) => /* @__PURE__ */ jsx(SelectItem, { value: String(option), children: option }, option)) })
|
|
259
259
|
]
|
|
260
260
|
}
|
|
261
261
|
),
|
|
@@ -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.6",
|
|
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