@godxjp/ui 30.4.1 → 30.5.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 +6 -6
- package/agent/components/Carousel.json +4 -1
- package/agent/components/RecordPicker.json +103 -0
- package/agent/components/ResponsiveGrid.json +3 -1
- package/agent/components/Reveal.json +6 -1
- package/agent/components/SpaceCompact.json +1 -1
- package/agent/components/Table.json +6 -0
- package/agent/components/Text.json +8 -0
- package/agent/components-index.json +5 -0
- package/agent/components.json +131 -4
- package/agent/index.json +7 -7
- package/agent/llms.txt +7 -7
- package/agent/patterns/brand-theme-block.json +33 -0
- package/agent/patterns-index.json +32 -0
- package/agent/patterns.json +33 -0
- package/agent/tokens.json +12 -0
- package/dist/components/data-display/table.d.ts +30 -1
- package/dist/components/data-display/table.js +2 -1
- package/dist/components/data-entry/index.d.ts +2 -0
- package/dist/components/data-entry/index.js +2 -0
- package/dist/components/data-entry/record-picker.d.ts +62 -0
- package/dist/components/data-entry/record-picker.js +296 -0
- package/dist/components/general/typography.d.ts +1 -0
- package/dist/components/general/typography.js +10 -0
- package/dist/contracts/measurement.json +1 -1
- package/dist/i18n/messages/en.json +18 -0
- package/dist/i18n/messages/ja.json +18 -0
- package/dist/i18n/messages/vi.json +18 -0
- package/dist/props/components/data-entry.prop.d.ts +58 -0
- package/dist/props/components/general.prop.d.ts +15 -1
- package/dist/props/registry.d.ts +17 -0
- package/dist/props/registry.js +17 -0
- package/dist/props/vocabulary/index.d.ts +1 -1
- package/dist/props/vocabulary/interaction.prop.d.ts +13 -0
- package/dist/styles/data-display-layout.css +6 -3
- package/dist/styles/data-entry-layout.css +71 -0
- package/dist/styles/dialog-layout.css +8 -0
- package/dist/styles/focus-ring.css +2 -0
- package/dist/styles/layout.css +4 -0
- package/dist/styles/table-layout.css +13 -0
- package/dist/styles/text-layout.css +8 -0
- package/dist/tokens/components/data-display.css +2 -0
- package/dist/tokens/components/data-entry.css +3 -0
- package/docs/FRAME-COVERAGE-REPORT.md +3 -2
- package/docs/assets/tcgm/card-1.svg +1 -0
- package/docs/assets/tcgm/card-2.svg +1 -0
- package/docs/assets/tcgm/card-3.svg +1 -0
- package/docs/assets/tcgm/card-4.svg +1 -0
- package/docs/assets/tcgm/card-5.svg +1 -0
- package/docs/assets/tcgm/card-6.svg +1 -0
- package/docs/assets/tcgm/hero-prism.svg +1 -0
- package/docs/assets/tcgm/scene-1.svg +1 -0
- package/docs/assets/tcgm/scene-2.svg +1 -0
- package/docs/assets/tcgm/scene-3.svg +1 -0
- package/docs/assets/tcgm/scene-4.svg +1 -0
- package/docs/assets/tcgm/scene-5.svg +1 -0
- package/docs/assets/tcgm/tcgm-lockup-color.svg +1 -0
- package/docs/assets/tcgm/tcgm-symbol-color.svg +1 -0
- package/docs/data-entry/record-picker.tsx +208 -0
- package/docs/general/typography.tsx +28 -0
- package/docs/i18n/messages/en.json +185 -1
- package/docs/i18n/messages/ja.json +185 -1
- package/docs/i18n/messages/vi.json +185 -1
- package/docs/showcase/tcgm-website.tsx +1047 -0
- package/package.json +3 -3
- package/scripts/ui-audit.mjs +23 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@godxjp/ui",
|
|
3
|
-
"version": "30.
|
|
4
|
-
"godxUiMcp": "30.
|
|
3
|
+
"version": "30.5.2",
|
|
4
|
+
"godxUiMcp": "30.5.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
|
-
"description": "@godxjp/ui
|
|
23
|
+
"description": "@godxjp/ui \u2014 shared React UI framework (shadcn + Radix + Tailwind v4).",
|
|
24
24
|
"files": [
|
|
25
25
|
"LICENSE",
|
|
26
26
|
"agent",
|
package/scripts/ui-audit.mjs
CHANGED
|
@@ -788,6 +788,29 @@ const RULES = [
|
|
|
788
788
|
message:
|
|
789
789
|
'Hand-rolled scrollport (overflow-auto / -scroll on your own element) — use <ScrollArea label={t("…")} orientation> so the box that scrolls is a tab stop with a role and a localized name, and stops being one when there is nothing to scroll (gh#821). Without it, anything below the fold is reachable by mouse and by nothing else (WCAG 2.2 SC 2.1.1). axe only catches the instances whose content happens to have no focusable child, so this checks the markup rather than one render (gh#825). overflow-hidden is a clipping box, not a scrollport, and is not flagged.',
|
|
790
790
|
},
|
|
791
|
+
{
|
|
792
|
+
id: "no-hand-rolled-break-anywhere",
|
|
793
|
+
replacement: 'Text break="anywhere"',
|
|
794
|
+
classOnly: true,
|
|
795
|
+
scope: "consumer",
|
|
796
|
+
severity: "warn",
|
|
797
|
+
/*
|
|
798
|
+
* `overflow-wrap: anywhere` spelled as a utility instead of `Text break="anywhere"` (gh#927).
|
|
799
|
+
*
|
|
800
|
+
* One consumer carried `className="[overflow-wrap:anywhere] break-words whitespace-normal"` on
|
|
801
|
+
* a `Text` at 25 call sites, every one an email, code or login id in a table cell — because no
|
|
802
|
+
* prop said it. Now one does, and it also releases the cell's inherited `nowrap`, which the
|
|
803
|
+
* `whitespace-normal` in that string existed to do by hand.
|
|
804
|
+
*
|
|
805
|
+
* Both spellings: the arbitrary property, and Tailwind v4.1's `wrap-anywhere`. `break-all`
|
|
806
|
+
* (`word-break`) is NOT matched — it splits ordinary words that would have fit, which is a
|
|
807
|
+
* different decision this rule has no business making for anyone. WARN, like the scrollport
|
|
808
|
+
* rule: the utility renders correctly, it just drifts from the primitive.
|
|
809
|
+
*/
|
|
810
|
+
test: /(?<![\w-])(?:\[overflow-wrap:anywhere\]|wrap-anywhere)(?![\w-])/,
|
|
811
|
+
message:
|
|
812
|
+
'Hand-rolled overflow-wrap:anywhere ([overflow-wrap:anywhere] / wrap-anywhere) — use <Text break="anywhere"> for an email, code or id in a table cell or Descriptions value. It also releases the cell\'s inherited nowrap, so drop the break-words / whitespace-normal that came with it. Not whitespace="pre-wrap": its break-word does not shrink a table column (gh#927).',
|
|
813
|
+
},
|
|
791
814
|
];
|
|
792
815
|
|
|
793
816
|
/**
|