@godxjp/ui-mcp 18.0.0 → 18.0.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/dist/index.js CHANGED
@@ -1905,7 +1905,12 @@ import { Smartphone } from "lucide-react";
1905
1905
  required: true,
1906
1906
  description: "TableHeader / TableBody composition."
1907
1907
  },
1908
- { name: "className", type: "string", description: "Extra classes on the table element." }
1908
+ { name: "className", type: "string", description: "Extra classes on the table element." },
1909
+ {
1910
+ name: "scrollable",
1911
+ type: "boolean",
1912
+ description: "Whether Table owns its own horizontal-scroll region (default true). Leave true for a standalone table so a table wider than its container scrolls in a keyboard-reachable wrapper. Set false only when an ancestor already provides the scroll region (DataTable does) to avoid a redundant nested scroller + duplicate keyboard tab stop."
1913
+ }
1909
1914
  ],
1910
1915
  usage: [
1911
1916
  "DO compose all six sub-parts in order: wrap with `<Table>`, then `<TableHeader>` containing `<TableRow><TableHead>\u2026</TableRow>`, then `<TableBody>` containing one or more `<TableRow><TableCell>\u2026` rows. Skipping any layer (e.g. bare `<th>` inside `<Table>`) bypasses the design tokens and hover/border styles.",
@@ -2040,6 +2045,7 @@ import { Smartphone } from "lucide-react";
2040
2045
  "DO: Import from `@godxjp/ui/query` (not `@godxjp/ui`). Use the bundled `flattenItemPages` helper for any API that returns `{ items: T[] }` pages \u2014 it handles `undefined` data safely. Custom page shapes require a custom `flatten` function.",
2041
2046
  "DO: Always pass `skeleton` (e.g. `<SkeletonTable />` or `<SkeletonStat />`). It shows on initial `isPending`, on refetch-after-error, and whenever `data` is absent. Never show a blank area while loading.",
2042
2047
  "DO: Pass `empty` (an `<EmptyState>` node) to handle the zero-results case \u2014 without it the children render-prop is called with an empty array and you get a silent blank screen. Provide a custom `isEmpty` only when `TFlat` is not an array.",
2048
+ "DO: Let errors remain cause-aware. Retry is automatic only for classified transient/network/5xx failures. Unknown errors do not get a blind retry unless `showRetry` or `onRetry` is explicitly supplied; 401 routes to `onAuthError`, and raw backend/token text is never rendered.",
2043
2049
  "DON'T: Hand-roll a load-more button. The component renders a default centered outline Button when `hasNextPage` is true. Override only via `loadMore` (custom node) or `showLoadMore={false}` (hide entirely). Never call `query.fetchNextPage()` outside the component for pagination.",
2044
2050
  "DON'T: Use `InfiniteQueryState` for a `useQuery` result \u2014 it expects `UseInfiniteQueryResult` shape (`pages`, `hasNextPage`, `fetchNextPage`, `isFetchingNextPage`). For regular `useQuery` use `DataState` instead.",
2045
2051
  "DON'T: Confuse the two generics: `TPage` is the raw page shape from the API, `TFlat` is what `flatten` returns (usually `TItem[]`). The `children` render-prop receives `TFlat`, not `TPage`. Pass `isEmpty` if `TFlat` is not a plain array so empty detection works correctly."
@@ -2236,7 +2242,7 @@ import { Smartphone } from "lucide-react";
2236
2242
  { name: "placeholder", type: "string", description: "Placeholder." },
2237
2243
  { name: "value", type: "string | number", description: "Controlled value." },
2238
2244
  {
2239
- name: "onChange",
2245
+ name: "onValueChange",
2240
2246
  type: "React.ChangeEventHandler<HTMLInputElement>",
2241
2247
  description: "Native change handler."
2242
2248
  },
@@ -4616,6 +4622,26 @@ function MultiRegionPicker() {
4616
4622
  type: "string",
4617
4623
  description: "HTML `id` placed on the trigger Button \u2014 use this to associate a `<label htmlFor>` for accessibility."
4618
4624
  },
4625
+ {
4626
+ name: "aria-label",
4627
+ type: "string",
4628
+ description: "Accessible name for the combobox trigger when no visible label is available."
4629
+ },
4630
+ {
4631
+ name: "aria-errormessage",
4632
+ type: "string",
4633
+ description: "ID of the element containing the current validation error message."
4634
+ },
4635
+ {
4636
+ name: "aria-invalid",
4637
+ type: "boolean | 'true' | 'false'",
4638
+ description: "Marks the semantic combobox trigger invalid for assistive technology."
4639
+ },
4640
+ {
4641
+ name: "aria-required",
4642
+ type: "boolean | 'true' | 'false'",
4643
+ description: "Marks the semantic combobox trigger required for assistive technology."
4644
+ },
4619
4645
  {
4620
4646
  name: "fieldNames",
4621
4647
  type: "{ label?: string; value?: string; children?: string }",
@@ -9012,6 +9038,16 @@ var COMPONENT_TOKENS = [
9012
9038
  "value": "var(--font-size-xs)",
9013
9039
  "description": "Navigation primitive tokens: pagination, filters, compact pickers."
9014
9040
  },
9041
+ {
9042
+ "name": "--tabs-list-max-inline-size",
9043
+ "value": "100%",
9044
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers."
9045
+ },
9046
+ {
9047
+ "name": "--tabs-list-overflow",
9048
+ "value": "auto",
9049
+ "description": "Navigation primitive tokens: pagination, filters, compact pickers."
9050
+ },
9015
9051
  {
9016
9052
  "name": "--menubar-item-hover-background",
9017
9053
  "value": "initial",
@@ -12539,7 +12575,7 @@ function visualRulesByCategory(category) {
12539
12575
  // package.json
12540
12576
  var package_default = {
12541
12577
  name: "@godxjp/ui-mcp",
12542
- version: "18.0.0",
12578
+ version: "18.0.2",
12543
12579
  godxUiCompatibility: "18.0.x",
12544
12580
  description: "Model Context Protocol server for @godxjp/ui \u2014 gives Claude Code / Codex CLI / Cursor / any MCP-aware agent live access to the component catalog, prop vocabulary, design tokens, 45 cardinal rules, copy-paste-ready patterns, 12 design / taste skills synthesised from Leonxlnx/taste-skill, 20+ anti-AI-tell patterns, and a 50-check redesign audit \u2014 token-efficient (list \u2192 drill-down).",
12545
12581
  type: "module",