@godxjp/ui 31.28.3 → 31.29.0

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.
Files changed (61) hide show
  1. package/agent/START-HERE.md +5 -5
  2. package/agent/components/AppLauncher.json +5 -0
  3. package/agent/components/Avatar.json +1 -0
  4. package/agent/components/Dialog.json +3 -1
  5. package/agent/components/ResponsiveGrid.json +7 -0
  6. package/agent/components/Sidebar.json +5 -0
  7. package/agent/components/SortableList.json +78 -0
  8. package/agent/components/TopbarItem.json +1 -1
  9. package/agent/components-index.json +5 -0
  10. package/agent/components.json +100 -2
  11. package/agent/index.json +6 -6
  12. package/agent/llms.txt +6 -6
  13. package/agent/tokens.json +74 -2
  14. package/dist/components/data-entry/index.d.ts +2 -0
  15. package/dist/components/data-entry/index.js +2 -0
  16. package/dist/components/data-entry/sortable-list.d.ts +10 -0
  17. package/dist/components/data-entry/sortable-list.js +237 -0
  18. package/dist/components/feedback/dialog.d.ts +8 -2
  19. package/dist/components/feedback/dialog.js +8 -1
  20. package/dist/components/feedback/sheet.js +1 -1
  21. package/dist/components/layout/app-launcher.d.ts +1 -1
  22. package/dist/components/layout/app-launcher.js +18 -14
  23. package/dist/components/layout/responsive-grid.d.ts +17 -2
  24. package/dist/components/layout/responsive-grid.js +17 -4
  25. package/dist/components/layout/sidebar.d.ts +1 -1
  26. package/dist/components/layout/sidebar.js +3 -0
  27. package/dist/components/layout/topbar-item.js +8 -2
  28. package/dist/components/ui/avatar.d.ts +3 -1
  29. package/dist/components/ui/avatar.js +2 -1
  30. package/dist/contracts/measurement.json +1 -1
  31. package/dist/i18n/messages/en.json +8 -0
  32. package/dist/i18n/messages/ja.json +8 -0
  33. package/dist/i18n/messages/vi.json +8 -0
  34. package/dist/props/components/data-display.prop.d.ts +9 -0
  35. package/dist/props/components/data-entry.prop.d.ts +34 -0
  36. package/dist/props/components/feedback.prop.d.ts +6 -1
  37. package/dist/props/components/layout.prop.d.ts +22 -0
  38. package/dist/props/registry.d.ts +33 -2
  39. package/dist/props/registry.js +44 -1
  40. package/dist/styles/control.css +50 -0
  41. package/dist/styles/data-display-layout.css +4 -0
  42. package/dist/styles/dialog-layout.css +14 -1
  43. package/dist/styles/layers.json +6 -1
  44. package/dist/styles/layout.css +29 -7
  45. package/dist/styles/shell-layout.css +26 -0
  46. package/dist/tokens/components/control.css +5 -0
  47. package/dist/tokens/components/feedback.css +6 -0
  48. package/dist/tokens/components/shell.css +6 -0
  49. package/dist/tokens/semantic/layout.css +1 -4
  50. package/docs/FRAME-COVERAGE-REPORT.md +3 -2
  51. package/docs/data-display/avatar.tsx +32 -0
  52. package/docs/data-entry/sortable-list.tsx +76 -0
  53. package/docs/feedback/dialog.tsx +37 -1
  54. package/docs/i18n/messages/en.json +51 -0
  55. package/docs/i18n/messages/ja.json +51 -0
  56. package/docs/i18n/messages/vi.json +51 -0
  57. package/docs/layout/app-launcher.tsx +17 -1
  58. package/docs/layout/responsive-grid.tsx +23 -0
  59. package/docs/layout/sidebar.tsx +24 -0
  60. package/docs/layout/topbar-item.tsx +11 -0
  61. package/package.json +2 -2
@@ -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.28.3.** If the project you are editing has a different
6
+ **This catalog describes `@godxjp/ui` 31.29.0.** 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.
@@ -47,7 +47,7 @@ Then ask it: `search_components`, `get_component`, `get_tokens`, `get_rule`, `li
47
47
  task is a task** — "build a settings page", "confirm a destructive delete", "a list page with
48
48
  filters" — start HERE, not at the components. Then fetch `patterns/<name>.json` for complete,
49
49
  copy-paste-ready code. A component index answers "does X exist"; it cannot answer "build Y".
50
- 1. `components-index.json` — 51 KB, all 184 components as name + group +
50
+ 1. `components-index.json` — 51 KB, all 185 components as name + group +
51
51
  tagline. Read this when you already know the SHAPE you need. Each entry may carry `absorbed`:
52
52
  names that **do not exist** and map to it — `Combobox`, `Autocomplete`, `CountrySelect` and
53
53
  `SearchSelect` are all `Select`. If you are about to hand-roll something, search this field
@@ -56,10 +56,10 @@ Then ask it: `search_components`, `get_component`, `get_tokens`, `get_rule`, `li
56
56
  its `importPath`, and its examples. Fetch only the handful you picked in step 1.
57
57
  3. `rules.json` — 50 cardinal rules. The ones about raw HTML and hardcoded colour are not
58
58
  style advice.
59
- 4. `tokens.json` — 2156 design tokens, each tagged with its `tier`. **If you were handed a
59
+ 4. `tokens.json` — 2168 design tokens, each tagged with its `tier`. **If you were handed a
60
60
  brand, read the 211 `foundation` entries first** — `--primary`, `--background`,
61
61
  `--radius`, `--font-size-base` are the handful everything else derives from. The
62
- 1833 `component` entries are per-part knobs; reach for one only when a role is
62
+ 1845 `component` entries are per-part knobs; reach for one only when a role is
63
63
  right everywhere except one component.
64
64
  5. `anti-ai-tells.json` — 26 shapes that make generated UI look generated, each with the
65
65
  fix. Read before you reach for a gradient hero or a wall of coloured chips.
@@ -145,7 +145,7 @@ has stopped following the brand.
145
145
  |---|---|---|---|
146
146
  | `foundation` | 211 | the seeds — `--primary`, `--background`, `--foreground`, `--radius`, `--font-size-base`, `--shadow-color`. Everything below is derived from these | **yes — this is the main road.** Handed a brand colour, this is where it goes: `:root { --primary: <H> <S>% <L>%; }` (HSL components, no `hsl()` wrapper) |
147
147
  | `semantic` | 112 | named roles that follow the seeds — `--ring`, `--text-link`, `--primary-hover`, `--overlay-background` | only when the seed is right and ONE role must differ. That role then stops following a later brand change |
148
- | `component` | 1833 | per-part knobs, `--{component}-{part}-{property}` | rarely. Most are declared `initial` with the real default at the call site — deliberate, so a scoped override re-resolves instead of freezing at `:root` |
148
+ | `component` | 1845 | per-part knobs, `--{component}-{part}-{property}` | rarely. Most are declared `initial` with the real default at the call site — deliberate, so a scoped override re-resolves instead of freezing at `:root` |
149
149
 
150
150
  A token whose `value` is `initial` is not empty and not broken: `initial` is the guaranteed-invalid
151
151
  value, so the real default is computed where the element paints it. Set it and yours wins.
@@ -79,6 +79,11 @@
79
79
  "description": "Open-state callback.",
80
80
  "name": "onOpenChange",
81
81
  "type": "(open: boolean) => void"
82
+ },
83
+ {
84
+ "description": "Secondary links under the grid — \"Request access\", \"All apps\" (the Workspace / Okta / My Apps row, gh#1172). Pass the links; the launcher draws the row (hairline above, small type, --app-launcher-footer-*) outside the scrolling grid, after the tiles in focus order, in every state including empty/loading/error. Not a tile: never fake it as a one-tile group.",
85
+ "name": "footer",
86
+ "type": "ReactNode"
82
87
  }
83
88
  ],
84
89
  "related": [
@@ -69,6 +69,7 @@
69
69
  "tagline": "Radix Avatar wrapper with image and fallback slots for users, teams, and entities.",
70
70
  "usage": [
71
71
  "DO compose Avatar > AvatarImage + AvatarFallback so broken or missing images still show a readable fallback.",
72
+ "DO pass `fit=\"contain\"` on AvatarImage for a logo or app icon that is wide, transparent or off-centre — the default `cover` crops to fill, right for a face (gh#1176). A full-bleed square icon (the GoDX service icon set) keeps the default.",
72
73
  "DO use `presence` for who is reachable RIGHT NOW — a chat member list, a DM row, a message-stream author, the topbar account mark. It is the only supported way to put a status dot on an avatar: the dot's inset is a function of the mark's own --avatar-* radius/size and of the root's clip, neither of which a page can read, which is why the hand-rolled `<span className=\"relative\"><Avatar/><span className=\"absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full bg-green-500 ring-2 ring-background\"/></span>` wrapper can never be got right from outside (and fails the DS audit on the raw palette).",
73
74
  "DON'T announce a presence CHANGE from the avatar — it carries no aria-live on purpose. A roster of 40 marks resyncing over a socket would flood a screen reader; announce the change in the consumer's own live region if the product wants it.",
74
75
  "DON'T reach for `Badge status` for presence, or `presence` for lifecycle. Presence is volatile, per-person and realtime and renders as a dot; a lifecycle status is a record's state and renders as a labelled chip.",
@@ -67,7 +67,9 @@
67
67
  "DO always control open state via `open` + `onOpenChange`. Dialog has no uncontrolled shortcut — omitting `open` means the trigger alone drives state, which is fine for simple trigger-only cases, but any async submission flow must use controlled state so you can hold the dialog open while `pending=true` and close it only on success.",
68
68
  "DO include `DialogHeader` with `DialogTitle` (and optionally `DialogDescription`) inside every `DialogContent`. Radix requires an accessible title for screen readers; omitting it triggers a console warning and breaks a11y.",
69
69
  "DO wrap tall/scrolling content in `DialogBody` (the ring-safe scroll slot, max-height ~60vh). It insets the content to match the dialog padding so a full-width control's focus ring never clips against the scroll container — mirror of SheetBody.",
70
- "DO set `modal={false}` when the user must keep working on the page behind an open dialog (edit a list while a payment or detail dialog stays open). Control `open` yourself: an outside press no longer closes it, so give it a visible close action. Escape closes it only while focus is inside the dialog."
70
+ "DO set `modal={false}` when the user must keep working on the page behind an open dialog (edit a list while a payment or detail dialog stays open). Control `open` yourself: an outside press no longer closes it, so give it a visible close action. Escape closes it only while focus is inside the dialog.",
71
+ "DO pass `width` on `DialogContent` for a wide dialog (an overview grid, a comparison): `<DialogContent width=\"60rem\">` (number = px, string = any CSS length; antd Modal `width`, same vocabulary as SheetContent `width`). It is capped at the viewport minus --dialog-viewport-inset, so it never leaves a phone screen. Default 32rem (--dialog-width-default). Do NOT switch to a full-width Sheet to get room (gh#1174).",
72
+ "Enter/exit timing is a token: --dialog-motion-duration (and --sheet-enter-duration / --sheet-exit-duration on Sheet), default var(--duration-fast) = 150ms. Under prefers-reduced-motion both surfaces do not animate at all (gh#1178)."
71
73
  ],
72
74
  "useCases": [
73
75
  "Inline form dialog — create or edit a record (invoice line, supplier, coupon) without navigating away. Place `FormField`/`Input`/`Select` inside `DialogContent`, wire the submit button to your mutation, and hold `open` while `pending` to prevent double-submit.",
@@ -37,6 +37,12 @@
37
37
  "name": "gap",
38
38
  "type": "\"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\""
39
39
  },
40
+ {
41
+ "defaultValue": "false",
42
+ "description": "Dense packing (grid-auto-flow: row dense): later small cells back-fill the holes a wide or tall cell leaves — a widget board of 1×1 / 2×1 / 1×2 cells (gh#1175). Visual order only; DOM and focus order stay as written, so use it for independent widgets/tiles, not reading order. Ignored under flow=\"columns\".",
43
+ "name": "dense",
44
+ "type": "boolean"
45
+ },
40
46
  {
41
47
  "description": "Grid items — typically Card or StatCard.",
42
48
  "name": "children",
@@ -58,6 +64,7 @@
58
64
  "tagline": "Container-responsive card grid with configurable base, sm, md and lg columns.",
59
65
  "usage": [
60
66
  "ResponsiveGrid.Item span={2} owns a responsive column span; an object {base:1,lg:2} sets explicit steps, clamped to the parent columns.",
67
+ "ResponsiveGrid.Item rowSpan={2} spans two rows — the tall (1×2) widget (gh#1175). Same shape as span: a number applies from sm up and is 1 at base (the single stacked column), an object sets each step. Pair with `dense` so the cells after it fill the space beside it.",
61
68
  "KANBAN LANES: <ScrollArea orientation=\"horizontal\"><ResponsiveGrid flow=\"columns\" align=\"stretch\">{lanes.map(lane => <Card onDragOver onDrop>…<Card draggable>…</Card></Card>)}</ResponsiveGrid></ScrollArea>. align=\"stretch\" keeps an empty lane as tall as the fullest one, so it stays a full-height drop target; a Select inside a draggable card does not enlarge the drag image.",
62
69
  "DO place StatCard tiles directly as immediate children — StatCard IS already a bordered card; never wrap it in an extra <Card><CardContent>. The canonical pattern is <ResponsiveGrid columns={4}><StatCard .../><StatCard .../></ResponsiveGrid>.",
63
70
  "DO use columns={2|3|4} to declare the target desktop column count — the grid collapses automatically to 1 column on narrow containers (mobile-first via CSS container queries), via 2-column intermediate at ≥640px, then full target count at ≥1024px. Use columns={{ base: 2, sm: 4 }} for two mobile columns and four wider-container columns; no consumer CSS is needed.",
@@ -52,6 +52,11 @@
52
52
  "name": "brand",
53
53
  "type": "ReactNode | ((collapsed: boolean) => ReactNode)"
54
54
  },
55
+ {
56
+ "description": "The rail's ONE primary action (Linear \"New issue\", Jira \"+ Create\", Notion \"New page\"), rendered between the brand header and the scrolling nav and never scrolling with it (gh#1185). Put exactly one primary control here: a Button full width (fullWidth) when expanded, icon-only with aria-label + Tooltip when collapsed. PASS A FUNCTION for the same reason brand and footer take one: it receives the EFFECTIVE collapsed value, so AppShell's mobile drawer (which never collapses) gets the full button from the same Sidebar node. Inset: --sidebar-action-padding (inline matches the nav rows). Do NOT put the action in `brand` - that slot is the product lockup.",
57
+ "name": "action",
58
+ "type": "ReactNode | ((collapsed: boolean) => ReactNode)"
59
+ },
55
60
  {
56
61
  "description": "Slot pinned to the bottom of the sidebar below the scrollable nav area. Commonly used for user identity, online status, or a mode switch. PASS A FUNCTION for the same reason brand takes one, and it is the same reason twice: both slots sit INSIDE the collapsible rail, so both need the EFFECTIVE collapsed value, which a node built outside the component cannot see. Reading your own `collapsed` boolean renders a glyph-only footer inside AppShell's full-width drawer (the drawer un-collapses the rail); building a second Sidebar for AppShell's `mobileNav` is exactly the override that switches railInDrawer off; doing neither leaves the expanded footer to reflow inside a 64px rail (measured: a two-line identity block went 255x66 docked to 63x111 collapsed, wrapping the name over three lines). A plain ReactNode still works unchanged.",
57
62
  "name": "footer",
@@ -0,0 +1,78 @@
1
+ {
2
+ "docPath": "docs/data-entry/sortable-list.tsx",
3
+ "example": "import { SortableList } from \"@godxjp/ui/data-entry\";\n\n<SortableList\n aria-label=\"Widgets\"\n items={[{ value: \"cal\", label: \"Calendar\" }, { value: \"mail\", label: \"Mail\" }]}\n value={order}\n onValueChange={setOrder}\n/>",
4
+ "group": "data-entry",
5
+ "importPath": "@godxjp/ui/data-entry",
6
+ "name": "SortableList",
7
+ "props": [
8
+ {
9
+ "description": "The rows to order. `label` is spoken in the grip's name and the announcements; a disabled item's grip is inert.",
10
+ "name": "items",
11
+ "required": true,
12
+ "type": "{ value: string; label: string; disabled?: boolean }[]"
13
+ },
14
+ {
15
+ "description": "The item keys in order (controlled with onValueChange).",
16
+ "name": "value",
17
+ "type": "string[]"
18
+ },
19
+ {
20
+ "description": "Uncontrolled initial order.",
21
+ "name": "defaultValue",
22
+ "type": "string[]"
23
+ },
24
+ {
25
+ "description": "Called ONCE per drop with the new order — not on every preview step.",
26
+ "name": "onValueChange",
27
+ "type": "(keys: string[]) => void"
28
+ },
29
+ {
30
+ "description": "Draws an item's content beside its grip. Default: the label.",
31
+ "name": "renderItem",
32
+ "type": "(item, { index, dragging }) => ReactNode"
33
+ },
34
+ {
35
+ "defaultValue": "\"list\"",
36
+ "description": "Stacked rows, or tiles auto-filled into columns (--sortable-list-grid-item-min-inline-size). The keyboard order is the same either way.",
37
+ "name": "layout",
38
+ "type": "\"list\" | \"grid\""
39
+ },
40
+ {
41
+ "description": "Every grip is inert.",
42
+ "name": "disabled",
43
+ "type": "boolean"
44
+ },
45
+ {
46
+ "description": "Accessible name of the list.",
47
+ "name": "aria-label",
48
+ "type": "string"
49
+ },
50
+ {
51
+ "description": "Id on the root.",
52
+ "name": "id",
53
+ "type": "string"
54
+ },
55
+ {
56
+ "description": "Class on the root.",
57
+ "name": "className",
58
+ "type": "string"
59
+ }
60
+ ],
61
+ "related": [
62
+ "Tree — `draggable` for moving nodes within a hierarchy.",
63
+ "Transfer — choose items, not order them."
64
+ ],
65
+ "rules": [],
66
+ "storyPath": "data-entry/sortable-list.tsx",
67
+ "tagline": "Reorder a flat list or a grid of tiles (gh#1173). Each item has a grip: drag it with a pointer (touch included — the grip sets touch-action: none), or focus it and press Space/Enter to lift, the arrows (Home / End) to move, Space/Enter to drop, Esc to cancel. Every step is spoken in a polite live region (\"2 of 3\"). The order is the value.",
68
+ "usage": [
69
+ "DO persist the order in onValueChange — it fires once per drop, so it is safe to save there.",
70
+ "DO give every item a human `label`: a screen reader hears it on lift, every move and drop.",
71
+ "DON'T nest SortableList, and don't put another drag gesture inside an item: the grip is the one drag surface.",
72
+ "Hierarchy (move INTO another node) is Tree `draggable`, not SortableList — this orders a flat list."
73
+ ],
74
+ "useCases": [
75
+ "Desktop / dashboard editor: reorder widget tiles (layout=\"grid\").",
76
+ "Settings: order of tabs, columns, menu entries."
77
+ ]
78
+ }
@@ -20,7 +20,7 @@
20
20
  "type": "BreakpointProp"
21
21
  },
22
22
  {
23
- "description": "Overlaid count; does not change the bar cell width. Not rendered with asChild.",
23
+ "description": "Overlaid count; does not change the bar cell width. Rendered under asChild too (gh#1171): the pill goes inside the child element after its children, so `<TopbarItem asChild badge={3}><a href=\"/notifications\">…</a></TopbarItem>` keeps its count.",
24
24
  "name": "badge",
25
25
  "type": "ReactNode"
26
26
  },
@@ -806,6 +806,11 @@
806
806
  "name": "EmojiPicker",
807
807
  "tagline": "Page icon / reaction picker in a Popover (gh#1164): search by the active language's CLDR keywords (ja / en / vi — emojibase-data, loaded lazily for that locale only), categories, per-user recents, a WAI-ARIA grid (one tab stop, arrows, Home / End, Enter), and \"remove icon\". No skin tones."
808
808
  },
809
+ {
810
+ "group": "data-entry",
811
+ "name": "SortableList",
812
+ "tagline": "Reorder a flat list or a grid of tiles (gh#1173). Each item has a grip: drag it with a pointer (touch included — the grip sets touch-action: none), or focus it and press Space/Enter to lift, the arrows (Home / End) to move, Space/Enter to drop, Esc to cancel. Every step is spoken in a polite live region (\"2 of 3\"). The order is the value."
813
+ },
809
814
  {
810
815
  "group": "feedback",
811
816
  "name": "TwoFactorSetup",
@@ -1134,6 +1134,12 @@
1134
1134
  "name": "gap",
1135
1135
  "type": "\"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\""
1136
1136
  },
1137
+ {
1138
+ "defaultValue": "false",
1139
+ "description": "Dense packing (grid-auto-flow: row dense): later small cells back-fill the holes a wide or tall cell leaves — a widget board of 1×1 / 2×1 / 1×2 cells (gh#1175). Visual order only; DOM and focus order stay as written, so use it for independent widgets/tiles, not reading order. Ignored under flow=\"columns\".",
1140
+ "name": "dense",
1141
+ "type": "boolean"
1142
+ },
1137
1143
  {
1138
1144
  "description": "Grid items — typically Card or StatCard.",
1139
1145
  "name": "children",
@@ -1155,6 +1161,7 @@
1155
1161
  "tagline": "Container-responsive card grid with configurable base, sm, md and lg columns.",
1156
1162
  "usage": [
1157
1163
  "ResponsiveGrid.Item span={2} owns a responsive column span; an object {base:1,lg:2} sets explicit steps, clamped to the parent columns.",
1164
+ "ResponsiveGrid.Item rowSpan={2} spans two rows — the tall (1×2) widget (gh#1175). Same shape as span: a number applies from sm up and is 1 at base (the single stacked column), an object sets each step. Pair with `dense` so the cells after it fill the space beside it.",
1158
1165
  "KANBAN LANES: <ScrollArea orientation=\"horizontal\"><ResponsiveGrid flow=\"columns\" align=\"stretch\">{lanes.map(lane => <Card onDragOver onDrop>…<Card draggable>…</Card></Card>)}</ResponsiveGrid></ScrollArea>. align=\"stretch\" keeps an empty lane as tall as the fullest one, so it stays a full-height drop target; a Select inside a draggable card does not enlarge the drag image.",
1159
1166
  "DO place StatCard tiles directly as immediate children — StatCard IS already a bordered card; never wrap it in an extra <Card><CardContent>. The canonical pattern is <ResponsiveGrid columns={4}><StatCard .../><StatCard .../></ResponsiveGrid>.",
1160
1167
  "DO use columns={2|3|4} to declare the target desktop column count — the grid collapses automatically to 1 column on narrow containers (mobile-first via CSS container queries), via 2-column intermediate at ≥640px, then full target count at ≥1024px. Use columns={{ base: 2, sm: 4 }} for two mobile columns and four wider-container columns; no consumer CSS is needed.",
@@ -1644,6 +1651,11 @@
1644
1651
  "name": "brand",
1645
1652
  "type": "ReactNode | ((collapsed: boolean) => ReactNode)"
1646
1653
  },
1654
+ {
1655
+ "description": "The rail's ONE primary action (Linear \"New issue\", Jira \"+ Create\", Notion \"New page\"), rendered between the brand header and the scrolling nav and never scrolling with it (gh#1185). Put exactly one primary control here: a Button full width (fullWidth) when expanded, icon-only with aria-label + Tooltip when collapsed. PASS A FUNCTION for the same reason brand and footer take one: it receives the EFFECTIVE collapsed value, so AppShell's mobile drawer (which never collapses) gets the full button from the same Sidebar node. Inset: --sidebar-action-padding (inline matches the nav rows). Do NOT put the action in `brand` - that slot is the product lockup.",
1656
+ "name": "action",
1657
+ "type": "ReactNode | ((collapsed: boolean) => ReactNode)"
1658
+ },
1647
1659
  {
1648
1660
  "description": "Slot pinned to the bottom of the sidebar below the scrollable nav area. Commonly used for user identity, online status, or a mode switch. PASS A FUNCTION for the same reason brand takes one, and it is the same reason twice: both slots sit INSIDE the collapsible rail, so both need the EFFECTIVE collapsed value, which a node built outside the component cannot see. Reading your own `collapsed` boolean renders a glyph-only footer inside AppShell's full-width drawer (the drawer un-collapses the rail); building a second Sidebar for AppShell's `mobileNav` is exactly the override that switches railInDrawer off; doing neither leaves the expanded footer to reflow inside a 64px rail (measured: a two-line identity block went 255x66 docked to 63x111 collapsed, wrapping the name over three lines). A plain ReactNode still works unchanged.",
1649
1661
  "name": "footer",
@@ -1819,7 +1831,7 @@
1819
1831
  "type": "BreakpointProp"
1820
1832
  },
1821
1833
  {
1822
- "description": "Overlaid count; does not change the bar cell width. Not rendered with asChild.",
1834
+ "description": "Overlaid count; does not change the bar cell width. Rendered under asChild too (gh#1171): the pill goes inside the child element after its children, so `<TopbarItem asChild badge={3}><a href=\"/notifications\">…</a></TopbarItem>` keeps its count.",
1823
1835
  "name": "badge",
1824
1836
  "type": "ReactNode"
1825
1837
  },
@@ -7828,7 +7840,9 @@
7828
7840
  "DO always control open state via `open` + `onOpenChange`. Dialog has no uncontrolled shortcut — omitting `open` means the trigger alone drives state, which is fine for simple trigger-only cases, but any async submission flow must use controlled state so you can hold the dialog open while `pending=true` and close it only on success.",
7829
7841
  "DO include `DialogHeader` with `DialogTitle` (and optionally `DialogDescription`) inside every `DialogContent`. Radix requires an accessible title for screen readers; omitting it triggers a console warning and breaks a11y.",
7830
7842
  "DO wrap tall/scrolling content in `DialogBody` (the ring-safe scroll slot, max-height ~60vh). It insets the content to match the dialog padding so a full-width control's focus ring never clips against the scroll container — mirror of SheetBody.",
7831
- "DO set `modal={false}` when the user must keep working on the page behind an open dialog (edit a list while a payment or detail dialog stays open). Control `open` yourself: an outside press no longer closes it, so give it a visible close action. Escape closes it only while focus is inside the dialog."
7843
+ "DO set `modal={false}` when the user must keep working on the page behind an open dialog (edit a list while a payment or detail dialog stays open). Control `open` yourself: an outside press no longer closes it, so give it a visible close action. Escape closes it only while focus is inside the dialog.",
7844
+ "DO pass `width` on `DialogContent` for a wide dialog (an overview grid, a comparison): `<DialogContent width=\"60rem\">` (number = px, string = any CSS length; antd Modal `width`, same vocabulary as SheetContent `width`). It is capped at the viewport minus --dialog-viewport-inset, so it never leaves a phone screen. Default 32rem (--dialog-width-default). Do NOT switch to a full-width Sheet to get room (gh#1174).",
7845
+ "Enter/exit timing is a token: --dialog-motion-duration (and --sheet-enter-duration / --sheet-exit-duration on Sheet), default var(--duration-fast) = 150ms. Under prefers-reduced-motion both surfaces do not animate at all (gh#1178)."
7832
7846
  ],
7833
7847
  "useCases": [
7834
7848
  "Inline form dialog — create or edit a record (invoice line, supplier, coupon) without navigating away. Place `FormField`/`Input`/`Select` inside `DialogContent`, wire the submit button to your mutation, and hold `open` while `pending` to prevent double-submit.",
@@ -11970,6 +11984,7 @@
11970
11984
  "tagline": "Radix Avatar wrapper with image and fallback slots for users, teams, and entities.",
11971
11985
  "usage": [
11972
11986
  "DO compose Avatar > AvatarImage + AvatarFallback so broken or missing images still show a readable fallback.",
11987
+ "DO pass `fit=\"contain\"` on AvatarImage for a logo or app icon that is wide, transparent or off-centre — the default `cover` crops to fill, right for a face (gh#1176). A full-bleed square icon (the GoDX service icon set) keeps the default.",
11973
11988
  "DO use `presence` for who is reachable RIGHT NOW — a chat member list, a DM row, a message-stream author, the topbar account mark. It is the only supported way to put a status dot on an avatar: the dot's inset is a function of the mark's own --avatar-* radius/size and of the root's clip, neither of which a page can read, which is why the hand-rolled `<span className=\"relative\"><Avatar/><span className=\"absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full bg-green-500 ring-2 ring-background\"/></span>` wrapper can never be got right from outside (and fails the DS audit on the raw palette).",
11974
11989
  "DON'T announce a presence CHANGE from the avatar — it carries no aria-live on purpose. A roster of 40 marks resyncing over a socket would flood a screen reader; announce the change in the consumer's own live region if the product wants it.",
11975
11990
  "DON'T reach for `Badge status` for presence, or `presence` for lifecycle. Presence is volatile, per-person and realtime and renders as a dot; a lifecycle status is a record's state and renders as a labelled chip.",
@@ -14536,6 +14551,84 @@
14536
14551
  "The data loads on first open (one locale, ~100 KB gzip); nothing ships in your main bundle."
14537
14552
  ]
14538
14553
  },
14554
+ {
14555
+ "docPath": "docs/data-entry/sortable-list.tsx",
14556
+ "example": "import { SortableList } from \"@godxjp/ui/data-entry\";\n\n<SortableList\n aria-label=\"Widgets\"\n items={[{ value: \"cal\", label: \"Calendar\" }, { value: \"mail\", label: \"Mail\" }]}\n value={order}\n onValueChange={setOrder}\n/>",
14557
+ "group": "data-entry",
14558
+ "importPath": "@godxjp/ui/data-entry",
14559
+ "name": "SortableList",
14560
+ "props": [
14561
+ {
14562
+ "description": "The rows to order. `label` is spoken in the grip's name and the announcements; a disabled item's grip is inert.",
14563
+ "name": "items",
14564
+ "required": true,
14565
+ "type": "{ value: string; label: string; disabled?: boolean }[]"
14566
+ },
14567
+ {
14568
+ "description": "The item keys in order (controlled with onValueChange).",
14569
+ "name": "value",
14570
+ "type": "string[]"
14571
+ },
14572
+ {
14573
+ "description": "Uncontrolled initial order.",
14574
+ "name": "defaultValue",
14575
+ "type": "string[]"
14576
+ },
14577
+ {
14578
+ "description": "Called ONCE per drop with the new order — not on every preview step.",
14579
+ "name": "onValueChange",
14580
+ "type": "(keys: string[]) => void"
14581
+ },
14582
+ {
14583
+ "description": "Draws an item's content beside its grip. Default: the label.",
14584
+ "name": "renderItem",
14585
+ "type": "(item, { index, dragging }) => ReactNode"
14586
+ },
14587
+ {
14588
+ "defaultValue": "\"list\"",
14589
+ "description": "Stacked rows, or tiles auto-filled into columns (--sortable-list-grid-item-min-inline-size). The keyboard order is the same either way.",
14590
+ "name": "layout",
14591
+ "type": "\"list\" | \"grid\""
14592
+ },
14593
+ {
14594
+ "description": "Every grip is inert.",
14595
+ "name": "disabled",
14596
+ "type": "boolean"
14597
+ },
14598
+ {
14599
+ "description": "Accessible name of the list.",
14600
+ "name": "aria-label",
14601
+ "type": "string"
14602
+ },
14603
+ {
14604
+ "description": "Id on the root.",
14605
+ "name": "id",
14606
+ "type": "string"
14607
+ },
14608
+ {
14609
+ "description": "Class on the root.",
14610
+ "name": "className",
14611
+ "type": "string"
14612
+ }
14613
+ ],
14614
+ "related": [
14615
+ "Tree — `draggable` for moving nodes within a hierarchy.",
14616
+ "Transfer — choose items, not order them."
14617
+ ],
14618
+ "rules": [],
14619
+ "storyPath": "data-entry/sortable-list.tsx",
14620
+ "tagline": "Reorder a flat list or a grid of tiles (gh#1173). Each item has a grip: drag it with a pointer (touch included — the grip sets touch-action: none), or focus it and press Space/Enter to lift, the arrows (Home / End) to move, Space/Enter to drop, Esc to cancel. Every step is spoken in a polite live region (\"2 of 3\"). The order is the value.",
14621
+ "usage": [
14622
+ "DO persist the order in onValueChange — it fires once per drop, so it is safe to save there.",
14623
+ "DO give every item a human `label`: a screen reader hears it on lift, every move and drop.",
14624
+ "DON'T nest SortableList, and don't put another drag gesture inside an item: the grip is the one drag surface.",
14625
+ "Hierarchy (move INTO another node) is Tree `draggable`, not SortableList — this orders a flat list."
14626
+ ],
14627
+ "useCases": [
14628
+ "Desktop / dashboard editor: reorder widget tiles (layout=\"grid\").",
14629
+ "Settings: order of tabs, columns, menu entries."
14630
+ ]
14631
+ },
14539
14632
  {
14540
14633
  "example": "import { TwoFactorSetup } from \"@godxjp/ui/feedback\";\n\n<TwoFactorSetup\n open={open}\n onOpenChange={setOpen}\n qrValue={enrollment.qr}\n manualKey={enrollment.secret}\n code={code}\n onCodeChange={setCode}\n onConfirm={verify}\n recoveryCodes={recoveryCodes}\n onAcknowledge={finish}\n labels={labels}\n/>",
14541
14634
  "group": "feedback",
@@ -15054,6 +15147,11 @@
15054
15147
  "description": "Open-state callback.",
15055
15148
  "name": "onOpenChange",
15056
15149
  "type": "(open: boolean) => void"
15150
+ },
15151
+ {
15152
+ "description": "Secondary links under the grid — \"Request access\", \"All apps\" (the Workspace / Okta / My Apps row, gh#1172). Pass the links; the launcher draws the row (hairline above, small type, --app-launcher-footer-*) outside the scrolling grid, after the tiles in focus order, in every state including empty/loading/error. Not a tile: never fake it as a one-tile group.",
15153
+ "name": "footer",
15154
+ "type": "ReactNode"
15057
15155
  }
15058
15156
  ],
15059
15157
  "related": [
package/agent/index.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "counts": {
3
3
  "anti-ai-tells": 26,
4
- "components": 184,
4
+ "components": 185,
5
5
  "patterns": 21,
6
6
  "rules": 50,
7
- "tokens": 2156,
7
+ "tokens": 2168,
8
8
  "vocabulary": 14
9
9
  },
10
10
  "files": [
11
11
  {
12
12
  "file": "components-index.json",
13
- "note": "51 KB — name + group + tagline for all 184. FETCH THIS FIRST, then fetch only the components you chose.",
13
+ "note": "51 KB — name + group + tagline for all 185. FETCH THIS FIRST, then fetch only the components you chose.",
14
14
  "url": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components-index.json"
15
15
  },
16
16
  {
@@ -48,19 +48,19 @@
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.28.3/agent/index.json"
51
+ "pinned": "https://raw.githubusercontent.com/godx-jp/godxjp-ui/v31.29.0/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",
55
55
  "tokenTiers": {
56
56
  "component": "per-part knobs, --{component}-{part}-{property}; usually leave these alone",
57
57
  "counts": {
58
- "component": 1833,
58
+ "component": 1845,
59
59
  "foundation": 211,
60
60
  "semantic": 112
61
61
  },
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.28.3"
65
+ "version": "31.29.0"
66
66
  }
package/agent/llms.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  # @godxjp/ui
2
2
 
3
- > A Japanese-enterprise React design system: 184 components, 2156 design tokens,
4
- > 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.28.3.
3
+ > A Japanese-enterprise React design system: 185 components, 2168 design tokens,
4
+ > 50 cardinal rules. This file is the entry point for AI agents. Catalog version 31.29.0.
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.28.3`). It is searchable and version-locked. These files exist for agents
7
+ (`npx @godxjp/ui-mcp@31.29.0`). It is searchable and version-locked. These files exist for agents
8
8
  that can only fetch URLs.
9
9
 
10
10
  ## Start
@@ -15,10 +15,10 @@ that can only fetch URLs.
15
15
  ## Catalog
16
16
 
17
17
  - [patterns-index.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/patterns-index.json): 21 whole-task patterns (name, tagline, tags). Start here when the task is a TASK — "build a settings page" — then fetch `patterns/<name>.json` for complete code.
18
- - [components-index.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components-index.json): 51 KB — all 184 components as name, group, tagline, plus `absorbed`: the names that do NOT exist and map to it (`Combobox` → `Select`).
18
+ - [components-index.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components-index.json): 51 KB — all 185 components as name, group, tagline, plus `absorbed`: the names that do NOT exist and map to it (`Combobox` → `Select`).
19
19
  - [components/&lt;Name&gt;.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components/Select.json): one file per component (1 KB–36 KB, median 6 KB). Read the index, then fetch only the ones you chose — this is the selective route, and the reason you do not need the blob.
20
20
  - [components.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/components.json): 1.3 MB — every entry in one file. Most URL fetchers truncate a response this size without saying so; prefer the per-component files.
21
- - [tokens.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/tokens.json): every design token with its value, the reason it exists, and its `tier` — 211 `foundation` seeds (`--primary`, `--background`, `--radius`: set these when you are handed a brand), 112 `semantic` roles, 1833 `component` knobs.
21
+ - [tokens.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/tokens.json): every design token with its value, the reason it exists, and its `tier` — 211 `foundation` seeds (`--primary`, `--background`, `--radius`: set these when you are handed a brand), 112 `semantic` roles, 1845 `component` knobs.
22
22
  - [vocabulary.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/vocabulary.json): the controlled prop vocabulary — which prop name means what, across every component.
23
23
  - [rules.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/rules.json): 50 cardinal rules.
24
24
  - [anti-ai-tells.json](https://raw.githubusercontent.com/godx-jp/godxjp-ui/main/agent/anti-ai-tells.json): 26 shapes that make generated UI look generated, each with its fix.
@@ -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.28.3/agent/...`. A catalog that does not match the installed
29
+ the tag: `.../godx-jp/godxjp-ui/v31.29.0/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.
package/agent/tokens.json CHANGED
@@ -1746,10 +1746,10 @@
1746
1746
  "value": "var(--heading-h3, var(--font-size-base))"
1747
1747
  },
1748
1748
  {
1749
- "description": "PageContainer `headerScale=\"display\"` (gh#1160) — an ARTICLE's headline (a Notion / note.com page). The 4xl display step, which already scales with the viewport through `--font-size-display`'s clamp (≈25px on a phone → 42px wide), so one knob covers phone and desktop and the compact step below does not apply. CJK titles need more leading than Latin ones at this size: 1.4, not the tight 1.25 a short Latin headline gets.",
1749
+ "description": "PageContainer `headerScale=\"display\"` (gh#1160) — an ARTICLE's headline (a Notion / note.com page). The 4xl display step, which already scales with the viewport through `--font-size-display`'s clamp (≈25px on a phone → 42px wide), so one knob covers phone and desktop and the compact step below does not apply. CJK titles need more leading than Latin ones at this size: 1.4, not the tight 1.25 a short Latin headline gets. `initial` with the formula at the call site: it reads `--font-size-display`, a seed a consumer may re-scope, and a :root formula would compute once on <html> (docs/TOKENS.md · \"Role-mirror knobs MUST be initial\"). = the 4xl display step, resolved at the call site",
1750
1750
  "name": "--page-title-font-size-display",
1751
1751
  "tier": "semantic",
1752
- "value": "var( --font-size-4xl, calc(var(--font-size-display) / var(--font-size-display-ratio)) )"
1752
+ "value": "initial"
1753
1753
  },
1754
1754
  {
1755
1755
  "description": "Layout primitive tokens: page, section, stack, inline.",
@@ -4913,6 +4913,30 @@
4913
4913
  "tier": "component",
4914
4914
  "value": "16rem"
4915
4915
  },
4916
+ {
4917
+ "description": "SortableList (gh#1173): the space between items, an item's inset, its corner, and the narrowest a grid tile may get before the grid drops a column.",
4918
+ "name": "--sortable-list-gap",
4919
+ "tier": "component",
4920
+ "value": "var(--space-2)"
4921
+ },
4922
+ {
4923
+ "description": "Control primitive tokens: heights, horizontal padding, adjacent control sizes.",
4924
+ "name": "--sortable-list-item-padding",
4925
+ "tier": "component",
4926
+ "value": "var(--space-2)"
4927
+ },
4928
+ {
4929
+ "description": "Control primitive tokens: heights, horizontal padding, adjacent control sizes.",
4930
+ "name": "--sortable-list-item-radius",
4931
+ "tier": "component",
4932
+ "value": "var(--control-radius)"
4933
+ },
4934
+ {
4935
+ "description": "Control primitive tokens: heights, horizontal padding, adjacent control sizes.",
4936
+ "name": "--sortable-list-grid-item-min-inline-size",
4937
+ "tier": "component",
4938
+ "value": "12rem"
4939
+ },
4916
4940
  {
4917
4941
  "description": "Control primitive tokens: heights, horizontal padding, adjacent control sizes.",
4918
4942
  "name": "--control-height-compact",
@@ -6749,6 +6773,30 @@
6749
6773
  "tier": "component",
6750
6774
  "value": "32rem"
6751
6775
  },
6776
+ {
6777
+ "description": "Per-instance width, set by DialogContent `width` (gh#1174) — `initial`, so the default above resolves at the call site; the viewport cap (minus --dialog-viewport-inset) always wins.",
6778
+ "name": "--dialog-width",
6779
+ "tier": "component",
6780
+ "value": "initial"
6781
+ },
6782
+ {
6783
+ "description": "ENTER / EXIT TIMING (gh#1178). `initial`, default `var(--duration-fast)` (150ms) at the call site, so a scoped motion retune reaches them. A full-screen overlay that takes half a second to arrive reads as lag; `prefers-reduced-motion: reduce` stops the animation outright (styles/dialog-layout.css, unlayered block).",
6784
+ "name": "--dialog-motion-duration",
6785
+ "tier": "component",
6786
+ "value": "initial"
6787
+ },
6788
+ {
6789
+ "description": "Feedback primitive tokens: dialog, alert, empty state.",
6790
+ "name": "--sheet-enter-duration",
6791
+ "tier": "component",
6792
+ "value": "initial"
6793
+ },
6794
+ {
6795
+ "description": "Feedback primitive tokens: dialog, alert, empty state.",
6796
+ "name": "--sheet-exit-duration",
6797
+ "tier": "component",
6798
+ "value": "initial"
6799
+ },
6752
6800
  {
6753
6801
  "description": "Feedback primitive tokens: dialog, alert, empty state.",
6754
6802
  "name": "--dialog-viewport-inset",
@@ -10415,6 +10463,12 @@
10415
10463
  "tier": "component",
10416
10464
  "value": "var(--space-3) var(--space-2)"
10417
10465
  },
10466
+ {
10467
+ "description": "Sidebar `action` (gh#1185): the inline inset matches the nav's, so the button's edges line up with the rows; the block end is 0 because the nav's own top padding supplies the gap below.",
10468
+ "name": "--sidebar-action-padding",
10469
+ "tier": "component",
10470
+ "value": "var(--space-3) var(--space-2) 0"
10471
+ },
10418
10472
  {
10419
10473
  "description": "Shell (sidebar / topbar / kbd) component tokens — small-by-design text knobs (rule #45/#46). A service re-tunes chrome text without moving the global scale.",
10420
10474
  "name": "--sidebar-section-gap",
@@ -10823,6 +10877,24 @@
10823
10877
  "tier": "component",
10824
10878
  "value": "8rem"
10825
10879
  },
10880
+ {
10881
+ "description": "The secondary-link row under the grid (gh#1172): hairline above, small type, inline gap.",
10882
+ "name": "--app-launcher-footer-space-block",
10883
+ "tier": "component",
10884
+ "value": "var(--space-2)"
10885
+ },
10886
+ {
10887
+ "description": "Shell (sidebar / topbar / kbd) component tokens — small-by-design text knobs (rule #45/#46). A service re-tunes chrome text without moving the global scale.",
10888
+ "name": "--app-launcher-footer-gap",
10889
+ "tier": "component",
10890
+ "value": "var(--space-3)"
10891
+ },
10892
+ {
10893
+ "description": "Shell (sidebar / topbar / kbd) component tokens — small-by-design text knobs (rule #45/#46). A service re-tunes chrome text without moving the global scale.",
10894
+ "name": "--app-launcher-footer-font-size",
10895
+ "tier": "component",
10896
+ "value": "var(--font-size-sm, var(--font-size-base))"
10897
+ },
10826
10898
  {
10827
10899
  "description": "Role-mirror knob: `initial` so a scoped theme's --background re-resolves at the call site (docs/TOKENS.md). Default = a veil of the theme's OWN background at the alpha below.",
10828
10900
  "name": "--app-launcher-launchpad-backdrop-background",
@@ -55,6 +55,8 @@ export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, Command
55
55
  export type { CommandProps } from "./command.js";
56
56
  export { CommandPalette } from "./command-palette.js";
57
57
  export { EmojiPicker } from "./emoji-picker.js";
58
+ export { SortableList } from "./sortable-list.js";
59
+ export type { SortableListItemProp, SortableListProp, SortableListProps } from "./sortable-list.js";
58
60
  export type { EmojiPickerProp, EmojiPickerProps } from "./emoji-picker.js";
59
61
  export type { CommandPaletteGroup, CommandPaletteItem, CommandPaletteLabels, CommandPaletteProps, CommandPaletteSelectModifiers, } from "./command-palette.js";
60
62
  export { PasswordInput } from "./password-input.js";
@@ -54,6 +54,7 @@ import {
54
54
  } from "./command.js";
55
55
  import { CommandPalette } from "./command-palette.js";
56
56
  import { EmojiPicker } from "./emoji-picker.js";
57
+ import { SortableList } from "./sortable-list.js";
57
58
  import { PasswordInput } from "./password-input.js";
58
59
  import { PasswordStrength, usePasswordStrength } from "./password-strength.js";
59
60
  import { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from "./input-otp.js";
@@ -120,6 +121,7 @@ export {
120
121
  SelectTrigger,
121
122
  SelectValue,
122
123
  Slider,
124
+ SortableList,
123
125
  Switch,
124
126
  TagInput,
125
127
  Textarea,
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { SortableListProp } from "../../props/components/data-entry.prop.js";
3
+ export type { SortableListItemProp, SortableListProp, SortableListProp as SortableListProps, } from "../../props/components/data-entry.prop.js";
4
+ /**
5
+ * SortableList (gh#1173) — reorder a flat list or a grid of tiles by pointer drag or by keyboard
6
+ * on each item's grip: Space/Enter lifts, the arrows (and Home/End) move, Space/Enter drops, Esc
7
+ * cancels and blur cancels. Every step is spoken through a polite live region ("2 / 3"). The order
8
+ * is the value: `onValueChange` receives the item keys in their new order once, on drop.
9
+ */
10
+ export declare const SortableList: React.ForwardRefExoticComponent<SortableListProp & React.RefAttributes<HTMLDivElement>>;