@cueplusplus/ui 0.9.0 → 0.10.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 (314) hide show
  1. package/CHANGELOG.md +195 -0
  2. package/README.md +91 -9
  3. package/dist/index.d.ts +4 -3
  4. package/dist/index.js +4 -2
  5. package/dist/instruments/meter.d.ts +5 -1
  6. package/dist/layout/bento.d.ts +144 -0
  7. package/dist/layout/bento.js +266 -0
  8. package/dist/layout/index.d.ts +3 -2
  9. package/dist/layout/index.js +3 -2
  10. package/dist/primitives/button.d.ts +12 -0
  11. package/dist/primitives/chip.d.ts +1 -1
  12. package/dist/system/index.d.ts +2 -2
  13. package/dist/system/index.js +2 -1
  14. package/dist/system/overrides.d.ts +38 -1
  15. package/dist/system/overrides.js +40 -1
  16. package/manifest/components/accordion.json +24 -6
  17. package/manifest/components/activity-graph.json +20 -5
  18. package/manifest/components/agent-card.json +37 -9
  19. package/manifest/components/agent-handoff.json +21 -5
  20. package/manifest/components/agent-mode-badge.json +22 -4
  21. package/manifest/components/agent-pile.json +38 -8
  22. package/manifest/components/agent-plan.json +9 -2
  23. package/manifest/components/agent-status.json +17 -3
  24. package/manifest/components/agent-surface.json +26 -11
  25. package/manifest/components/alert-dialog.json +29 -5
  26. package/manifest/components/animated-number.json +14 -6
  27. package/manifest/components/app-bar.json +66 -13
  28. package/manifest/components/app-shell.json +133 -31
  29. package/manifest/components/app-window-frame.json +28 -6
  30. package/manifest/components/approval-card.json +37 -7
  31. package/manifest/components/artifact-card.json +16 -4
  32. package/manifest/components/ask-box.json +99 -21
  33. package/manifest/components/audience-icon.json +1 -7
  34. package/manifest/components/autocomplete.json +80 -18
  35. package/manifest/components/avatar-group.json +13 -2
  36. package/manifest/components/avatar.json +22 -4
  37. package/manifest/components/background-inbox.json +9 -2
  38. package/manifest/components/bento.json +306 -0
  39. package/manifest/components/branch-picker.json +29 -7
  40. package/manifest/components/breadcrumb.json +13 -3
  41. package/manifest/components/button-group.json +21 -4
  42. package/manifest/components/button.json +41 -4
  43. package/manifest/components/canvas-split-body.json +4 -1
  44. package/manifest/components/canvas-split-header.json +17 -4
  45. package/manifest/components/canvas-split-line.json +4 -1
  46. package/manifest/components/canvas-split-message.json +8 -1
  47. package/manifest/components/card.json +14 -3
  48. package/manifest/components/carousel.json +54 -12
  49. package/manifest/components/catalogue-icon.json +1 -7
  50. package/manifest/components/channel-beta-icon.json +1 -7
  51. package/manifest/components/channel-matrix.json +80 -15
  52. package/manifest/components/channel-released-icon.json +1 -7
  53. package/manifest/components/chart-container.json +26 -10
  54. package/manifest/components/chart-ramp.json +13 -3
  55. package/manifest/components/chart-swatch.json +9 -2
  56. package/manifest/components/chart-tooltip-content.json +31 -7
  57. package/manifest/components/chart.json +30 -6
  58. package/manifest/components/chat-panel-composer.json +9 -2
  59. package/manifest/components/checkbox-group.json +4 -2
  60. package/manifest/components/checkbox.json +17 -4
  61. package/manifest/components/checkpoint-history.json +13 -3
  62. package/manifest/components/chip.json +35 -5
  63. package/manifest/components/clamp.json +30 -7
  64. package/manifest/components/cli-tool-icon.json +1 -7
  65. package/manifest/components/code-diff.json +20 -5
  66. package/manifest/components/code-runner.json +32 -6
  67. package/manifest/components/collapsible.json +16 -4
  68. package/manifest/components/color-area.json +4 -1
  69. package/manifest/components/color-field.json +13 -3
  70. package/manifest/components/color-picker.json +75 -17
  71. package/manifest/components/color-slider.json +12 -3
  72. package/manifest/components/color-swatch.json +13 -2
  73. package/manifest/components/colors-section.json +8 -4
  74. package/manifest/components/combobox.json +81 -18
  75. package/manifest/components/command-palette.json +57 -13
  76. package/manifest/components/compaction-row.json +35 -7
  77. package/manifest/components/comparison-card.json +17 -4
  78. package/manifest/components/composer-attachment-chip.json +9 -2
  79. package/manifest/components/composer-bar.json +4 -1
  80. package/manifest/components/composer-command-item.json +8 -2
  81. package/manifest/components/composer-context.json +4 -1
  82. package/manifest/components/composer-input.json +5 -1
  83. package/manifest/components/composer-menu-item.json +4 -1
  84. package/manifest/components/composer-menu.json +12 -2
  85. package/manifest/components/composer-model-item.json +8 -2
  86. package/manifest/components/composer-model-trigger.json +8 -2
  87. package/manifest/components/composer-person-item.json +8 -2
  88. package/manifest/components/composer-send.json +8 -2
  89. package/manifest/components/composer-voice-button.json +4 -1
  90. package/manifest/components/composer-voice.json +8 -2
  91. package/manifest/components/composer.json +76 -17
  92. package/manifest/components/computer-use.json +17 -4
  93. package/manifest/components/confidence-marker.json +13 -3
  94. package/manifest/components/connection-state.json +23 -4
  95. package/manifest/components/container.json +14 -2
  96. package/manifest/components/context-breakdown.json +8 -2
  97. package/manifest/components/context-menu.json +16 -4
  98. package/manifest/components/context-usage.json +16 -4
  99. package/manifest/components/conversation-search.json +22 -5
  100. package/manifest/components/copy-button.json +32 -7
  101. package/manifest/components/cost-meter.json +12 -3
  102. package/manifest/components/cue-logotype.json +17 -3
  103. package/manifest/components/cue-mark.json +17 -3
  104. package/manifest/components/cue-portal-frame.json +13 -3
  105. package/manifest/components/data-row.json +21 -7
  106. package/manifest/components/data-table-pagination.json +18 -4
  107. package/manifest/components/data-table-toolbar.json +30 -7
  108. package/manifest/components/data-tree.json +42 -9
  109. package/manifest/components/date-field.json +13 -2
  110. package/manifest/components/date-picker.json +81 -19
  111. package/manifest/components/date-range-picker.json +81 -19
  112. package/manifest/components/day-separator.json +4 -1
  113. package/manifest/components/delegation-card.json +64 -12
  114. package/manifest/components/density.json +24 -4
  115. package/manifest/components/description-list.json +8 -1
  116. package/manifest/components/diagram.json +33 -7
  117. package/manifest/components/dialog.json +29 -6
  118. package/manifest/components/disclosure.json +31 -7
  119. package/manifest/components/dmx-bar.json +16 -4
  120. package/manifest/components/dmx-strip.json +20 -5
  121. package/manifest/components/document-reference.json +21 -5
  122. package/manifest/components/draft-restore.json +18 -4
  123. package/manifest/components/drawer.json +30 -6
  124. package/manifest/components/dropdown-menu.json +55 -10
  125. package/manifest/components/edit-message.json +32 -7
  126. package/manifest/components/elements-command-palette.json +27 -6
  127. package/manifest/components/elements-data-table.json +9 -2
  128. package/manifest/components/elements-timeline.json +8 -2
  129. package/manifest/components/elicitation-form.json +31 -6
  130. package/manifest/components/empty-state-composer.json +9 -2
  131. package/manifest/components/empty-state-suggestion.json +4 -1
  132. package/manifest/components/empty-state.json +25 -5
  133. package/manifest/components/end-of-turn-summary.json +16 -4
  134. package/manifest/components/env-var-input.json +54 -12
  135. package/manifest/components/error-state.json +17 -4
  136. package/manifest/components/export-dialog.json +27 -8
  137. package/manifest/components/eyebrow.json +4 -1
  138. package/manifest/components/feedback-dialog.json +33 -7
  139. package/manifest/components/field-description.json +4 -1
  140. package/manifest/components/field-error.json +13 -3
  141. package/manifest/components/field-label.json +4 -1
  142. package/manifest/components/field.json +4 -1
  143. package/manifest/components/file-tree.json +16 -4
  144. package/manifest/components/file-upload.json +58 -13
  145. package/manifest/components/flow-graph.json +12 -3
  146. package/manifest/components/folder-icon.json +1 -7
  147. package/manifest/components/footer.json +24 -4
  148. package/manifest/components/frac.json +10 -2
  149. package/manifest/components/generation-loader.json +17 -3
  150. package/manifest/components/generative-ui.json +39 -7
  151. package/manifest/components/grid.json +56 -5
  152. package/manifest/components/group-bar.json +25 -6
  153. package/manifest/components/guardrail-notice.json +22 -5
  154. package/manifest/components/hover-card.json +45 -8
  155. package/manifest/components/icon-button.json +22 -4
  156. package/manifest/components/image-generation.json +8 -2
  157. package/manifest/components/info-tip.json +42 -7
  158. package/manifest/components/inline-citation.json +14 -3
  159. package/manifest/components/input-group.json +24 -5
  160. package/manifest/components/input.json +13 -3
  161. package/manifest/components/item.json +42 -8
  162. package/manifest/components/job-progress.json +25 -6
  163. package/manifest/components/launcher-bubble.json +32 -7
  164. package/manifest/components/ledger.json +87 -19
  165. package/manifest/components/link.json +16 -3
  166. package/manifest/components/live-region-announcer.json +21 -5
  167. package/manifest/components/log-viewer.json +42 -10
  168. package/manifest/components/map-answer.json +17 -4
  169. package/manifest/components/markdown-text.json +36 -5
  170. package/manifest/components/math-block.json +12 -3
  171. package/manifest/components/mcp-server-icon.json +1 -7
  172. package/manifest/components/mcp-server-panel.json +18 -4
  173. package/manifest/components/memory-chips.json +9 -2
  174. package/manifest/components/menubar.json +33 -7
  175. package/manifest/components/message-actions.json +32 -7
  176. package/manifest/components/message-attachments.json +9 -2
  177. package/manifest/components/message-branches.json +14 -3
  178. package/manifest/components/message-list.json +27 -6
  179. package/manifest/components/message-pair.json +25 -5
  180. package/manifest/components/message-queue.json +13 -3
  181. package/manifest/components/message-timing.json +8 -2
  182. package/manifest/components/message.json +41 -9
  183. package/manifest/components/meter.json +43 -7
  184. package/manifest/components/mobile-composer.json +47 -10
  185. package/manifest/components/model-picker.json +13 -3
  186. package/manifest/components/multi-select.json +78 -17
  187. package/manifest/components/musical-time-input.json +34 -8
  188. package/manifest/components/navigation-menu.json +54 -12
  189. package/manifest/components/node-card.json +42 -7
  190. package/manifest/components/node-handle.json +17 -2
  191. package/manifest/components/number-field.json +28 -6
  192. package/manifest/components/number-ticker.json +8 -2
  193. package/manifest/components/onboarding.json +18 -4
  194. package/manifest/components/otp-field.json +43 -10
  195. package/manifest/components/page-shell.json +35 -6
  196. package/manifest/components/pagination.json +21 -5
  197. package/manifest/components/panel-header.json +15 -3
  198. package/manifest/components/password-input.json +38 -8
  199. package/manifest/components/permission-grant.json +28 -5
  200. package/manifest/components/permission-scopes.json +57 -12
  201. package/manifest/components/piano-keyboard.json +38 -9
  202. package/manifest/components/plussie.json +34 -5
  203. package/manifest/components/popover.json +45 -8
  204. package/manifest/components/preset-section.json +12 -5
  205. package/manifest/components/progress.json +25 -6
  206. package/manifest/components/prompt-library.json +27 -6
  207. package/manifest/components/queue-dock.json +36 -8
  208. package/manifest/components/quota-banner.json +25 -6
  209. package/manifest/components/quote-reply.json +29 -7
  210. package/manifest/components/radio-group.json +12 -2
  211. package/manifest/components/radio.json +17 -3
  212. package/manifest/components/rating.json +60 -13
  213. package/manifest/components/read-aloud.json +35 -8
  214. package/manifest/components/reasoning-effort.json +17 -4
  215. package/manifest/components/reasoning-panel.json +33 -8
  216. package/manifest/components/recommendation-card.json +35 -10
  217. package/manifest/components/regenerate-menu.json +22 -5
  218. package/manifest/components/replay-player.json +29 -7
  219. package/manifest/components/research-report.json +12 -3
  220. package/manifest/components/resizable.json +4 -1
  221. package/manifest/components/retrieval-chunks.json +16 -4
  222. package/manifest/components/revert-dock.json +61 -14
  223. package/manifest/components/reviewable-diff.json +23 -5
  224. package/manifest/components/risk-badge.json +18 -3
  225. package/manifest/components/row.json +17 -4
  226. package/manifest/components/schedule-card.json +25 -6
  227. package/manifest/components/score-breakdown.json +20 -5
  228. package/manifest/components/scroll-anchor.json +13 -3
  229. package/manifest/components/scroll-area.json +31 -8
  230. package/manifest/components/scrollable-tabs-list.json +12 -4
  231. package/manifest/components/scrub-input.json +84 -18
  232. package/manifest/components/seam-cell.json +19 -3
  233. package/manifest/components/seam-grid.json +12 -3
  234. package/manifest/components/search-input.json +49 -10
  235. package/manifest/components/section-header.json +36 -8
  236. package/manifest/components/segmented-control.json +50 -11
  237. package/manifest/components/select.json +74 -16
  238. package/manifest/components/separator.json +4 -1
  239. package/manifest/components/settings-panel.json +41 -9
  240. package/manifest/components/shape-section.json +8 -4
  241. package/manifest/components/shared-conversation.json +21 -5
  242. package/manifest/components/sheet.json +29 -6
  243. package/manifest/components/shimmer-label.json +4 -2
  244. package/manifest/components/sidebar.json +60 -13
  245. package/manifest/components/skill-icon.json +1 -7
  246. package/manifest/components/slider.json +22 -5
  247. package/manifest/components/sources.json +17 -4
  248. package/manifest/components/sparkline.json +17 -4
  249. package/manifest/components/speaker-identity.json +4 -1
  250. package/manifest/components/spec-sheet.json +16 -4
  251. package/manifest/components/spectrum-visualizer.json +41 -10
  252. package/manifest/components/spinner.json +12 -2
  253. package/manifest/components/stack-icon.json +1 -7
  254. package/manifest/components/stack.json +54 -7
  255. package/manifest/components/stacks-matrix-icon.json +1 -7
  256. package/manifest/components/stat.json +28 -4
  257. package/manifest/components/status-bar.json +50 -9
  258. package/manifest/components/status-dot.json +23 -4
  259. package/manifest/components/stepper.json +22 -5
  260. package/manifest/components/stopped-run.json +19 -4
  261. package/manifest/components/streaming-text.json +12 -3
  262. package/manifest/components/subagent-list.json +21 -5
  263. package/manifest/components/suggestions.json +27 -5
  264. package/manifest/components/swap-label.json +18 -4
  265. package/manifest/components/switch.json +18 -3
  266. package/manifest/components/table-scroll-region.json +4 -1
  267. package/manifest/components/table.json +54 -11
  268. package/manifest/components/tabs.json +16 -5
  269. package/manifest/components/tags-input.json +79 -17
  270. package/manifest/components/tail-status.json +37 -8
  271. package/manifest/components/terminal-block.json +25 -5
  272. package/manifest/components/terminal-frame.json +34 -8
  273. package/manifest/components/textarea.json +8 -3
  274. package/manifest/components/theme-configurator.json +47 -11
  275. package/manifest/components/theme-provider.json +79 -15
  276. package/manifest/components/thinking-indicator.json +8 -2
  277. package/manifest/components/thread-list.json +13 -3
  278. package/manifest/components/thread-search.json +22 -5
  279. package/manifest/components/threshold-rail.json +77 -14
  280. package/manifest/components/time-boundary.json +8 -2
  281. package/manifest/components/time-field.json +13 -2
  282. package/manifest/components/timeline-ruler.json +51 -12
  283. package/manifest/components/timeline.json +19 -3
  284. package/manifest/components/title-bar.json +19 -4
  285. package/manifest/components/toast.json +12 -3
  286. package/manifest/components/todo-list.json +8 -2
  287. package/manifest/components/toggle-group.json +33 -7
  288. package/manifest/components/toggle.json +23 -4
  289. package/manifest/components/token-editor.json +26 -7
  290. package/manifest/components/tool-call-card.json +83 -16
  291. package/manifest/components/tool-call.json +37 -9
  292. package/manifest/components/tool-error.json +34 -8
  293. package/manifest/components/tool-group.json +17 -4
  294. package/manifest/components/tool-timeline.json +37 -9
  295. package/manifest/components/toolbar.json +37 -8
  296. package/manifest/components/tooltip.json +41 -7
  297. package/manifest/components/trace-waterfall.json +12 -3
  298. package/manifest/components/tree-visibility-toggle.json +18 -3
  299. package/manifest/components/tree.json +52 -11
  300. package/manifest/components/turn-footer.json +36 -8
  301. package/manifest/components/two-step-button.json +46 -9
  302. package/manifest/components/typing-indicator.json +8 -1
  303. package/manifest/components/universe-grid.json +37 -10
  304. package/manifest/components/unread-divider.json +4 -1
  305. package/manifest/components/usage-chart.json +46 -9
  306. package/manifest/components/verdict-row.json +20 -5
  307. package/manifest/components/voice-conversation.json +37 -7
  308. package/manifest/components/web-preview.json +23 -5
  309. package/manifest/components/web-search.json +20 -5
  310. package/manifest/components/work-collapse.json +30 -7
  311. package/manifest/fixtures.json +106 -0
  312. package/manifest/manifest.json +315 -297
  313. package/manifest/tokens.json +2 -2
  314. package/package.json +7 -6
@@ -12,70 +12,109 @@
12
12
  "type": "string",
13
13
  "required": false,
14
14
  "defaultValue": null,
15
- "description": "Initial query for an uncontrolled input."
15
+ "description": "Initial query for an uncontrolled input.",
16
+ "control": {
17
+ "kind": "string"
18
+ }
16
19
  },
17
20
  {
18
21
  "name": "className",
19
22
  "type": "string",
20
23
  "required": false,
21
24
  "defaultValue": null,
22
- "description": "Extra classes for the group that wraps the icon, the input and the clear button."
25
+ "description": "Extra classes for the group that wraps the icon, the input and the clear button.",
26
+ "control": {
27
+ "kind": "string"
28
+ }
23
29
  },
24
30
  {
25
31
  "name": "size",
26
32
  "type": "\"sm\" | \"md\" | \"lg\"",
27
33
  "required": false,
28
34
  "defaultValue": null,
29
- "description": "Rung of the control ladder. Defaults to `\"md\"`."
35
+ "description": "Rung of the control ladder. Defaults to `\"md\"`.",
36
+ "control": {
37
+ "kind": "enum",
38
+ "members": [
39
+ "sm",
40
+ "md",
41
+ "lg"
42
+ ]
43
+ }
30
44
  },
31
45
  {
32
46
  "name": "debounce",
33
47
  "type": "number",
34
48
  "required": false,
35
49
  "defaultValue": "250",
36
- "description": "Quiet period in ms before {@link SearchInputProps.onDebouncedChange} fires.\nDefaults to `250`. `0` fires it synchronously with every keystroke."
50
+ "description": "Quiet period in ms before {@link SearchInputProps.onDebouncedChange} fires.\nDefaults to `250`. `0` fires it synchronously with every keystroke.",
51
+ "control": {
52
+ "kind": "number"
53
+ }
37
54
  },
38
55
  {
39
56
  "name": "value",
40
57
  "type": "string",
41
58
  "required": false,
42
59
  "defaultValue": null,
43
- "description": "Current query. Supply it with `onValueChange` for a controlled input."
60
+ "description": "Current query. Supply it with `onValueChange` for a controlled input.",
61
+ "control": {
62
+ "kind": "string"
63
+ }
44
64
  },
45
65
  {
46
66
  "name": "onValueChange",
47
67
  "type": "((value: string) => void)",
48
68
  "required": false,
49
69
  "defaultValue": null,
50
- "description": "Fired on every keystroke, and with `\"\"` when the query is cleared."
70
+ "description": "Fired on every keystroke, and with `\"\"` when the query is cleared.",
71
+ "control": {
72
+ "kind": "callback",
73
+ "fixture": "callback.log"
74
+ }
51
75
  },
52
76
  {
53
77
  "name": "icon",
54
78
  "type": "ElementType<any, keyof IntrinsicElements>",
55
79
  "required": false,
56
80
  "defaultValue": "SearchGlyph",
57
- "description": "Leading glyph component. Defaults to a magnifier."
81
+ "description": "Leading glyph component. Defaults to a magnifier.",
82
+ "control": {
83
+ "kind": "opaque",
84
+ "fixture": "icon.play"
85
+ }
58
86
  },
59
87
  {
60
88
  "name": "clearLabel",
61
89
  "type": "string",
62
90
  "required": false,
63
91
  "defaultValue": "Clear search",
64
- "description": "Accessible name for the clear button. Defaults to `\"Clear search\"`."
92
+ "description": "Accessible name for the clear button. Defaults to `\"Clear search\"`.",
93
+ "control": {
94
+ "kind": "string"
95
+ }
65
96
  },
66
97
  {
67
98
  "name": "onDebouncedChange",
68
99
  "type": "((value: string) => void)",
69
100
  "required": false,
70
101
  "defaultValue": null,
71
- "description": "Fired once the user stops typing for `debounce` ms — the callback to hang a\nquery or a filter recomputation on. Clearing flushes it immediately, because\n\"show me everything again\" should never wait."
102
+ "description": "Fired once the user stops typing for `debounce` ms — the callback to hang a\nquery or a filter recomputation on. Clearing flushes it immediately, because\n\"show me everything again\" should never wait.",
103
+ "control": {
104
+ "kind": "callback",
105
+ "fixture": "callback.log"
106
+ }
72
107
  },
73
108
  {
74
109
  "name": "onClear",
75
110
  "type": "(() => void)",
76
111
  "required": false,
77
112
  "defaultValue": null,
78
- "description": "Fired when the query is cleared, by Escape or by the clear button."
113
+ "description": "Fired when the query is cleared, by Escape or by the clear button.",
114
+ "control": {
115
+ "kind": "callback",
116
+ "fixture": "callback.log"
117
+ }
79
118
  }
80
119
  ],
81
120
  "typeReferences": [
@@ -12,56 +12,84 @@
12
12
  "type": "ReactNode",
13
13
  "required": true,
14
14
  "defaultValue": null,
15
- "description": "The group's name. Rendered uppercase in the smallest mono label type."
15
+ "description": "The group's name. Rendered uppercase in the smallest mono label type.",
16
+ "control": {
17
+ "kind": "node",
18
+ "fixture": "children.text"
19
+ }
16
20
  },
17
21
  {
18
22
  "name": "count",
19
23
  "type": "number",
20
24
  "required": false,
21
25
  "defaultValue": null,
22
- "description": "Optional count shown after the label — how many things are in the group."
26
+ "description": "Optional count shown after the label — how many things are in the group.",
27
+ "control": {
28
+ "kind": "number"
29
+ }
23
30
  },
24
31
  {
25
32
  "name": "action",
26
33
  "type": "ReactNode",
27
34
  "required": false,
28
35
  "defaultValue": null,
29
- "description": "Right-hand slot. Rendered *outside* the collapse toggle so clicking an\naction never folds the section shut under the user's cursor."
36
+ "description": "Right-hand slot. Rendered *outside* the collapse toggle so clicking an\naction never folds the section shut under the user's cursor.",
37
+ "control": {
38
+ "kind": "node",
39
+ "fixture": "children.text"
40
+ }
30
41
  },
31
42
  {
32
43
  "name": "collapsible",
33
44
  "type": "boolean",
34
45
  "required": false,
35
46
  "defaultValue": "false",
36
- "description": "Turn the label into a disclosure button that shows and hides `children`."
47
+ "description": "Turn the label into a disclosure button that shows and hides `children`.",
48
+ "control": {
49
+ "kind": "boolean"
50
+ }
37
51
  },
38
52
  {
39
53
  "name": "defaultOpen",
40
54
  "type": "boolean",
41
55
  "required": false,
42
56
  "defaultValue": "true",
43
- "description": "Initial open state when uncontrolled. Defaults to `true`."
57
+ "description": "Initial open state when uncontrolled. Defaults to `true`.",
58
+ "control": {
59
+ "kind": "boolean"
60
+ }
44
61
  },
45
62
  {
46
63
  "name": "open",
47
64
  "type": "boolean",
48
65
  "required": false,
49
66
  "defaultValue": null,
50
- "description": "Open state when controlled. Pass with `onOpenChange`."
67
+ "description": "Open state when controlled. Pass with `onOpenChange`.",
68
+ "control": {
69
+ "kind": "boolean"
70
+ }
51
71
  },
52
72
  {
53
73
  "name": "onOpenChange",
54
74
  "type": "((open: boolean) => void)",
55
75
  "required": false,
56
76
  "defaultValue": null,
57
- "description": "Called with the next open state whenever the toggle is pressed."
77
+ "description": "Called with the next open state whenever the toggle is pressed.",
78
+ "control": {
79
+ "kind": "callback",
80
+ "fixture": "callback.log"
81
+ }
58
82
  },
59
83
  {
60
84
  "name": "children",
61
85
  "type": "ReactNode",
62
86
  "required": false,
63
87
  "defaultValue": null,
64
- "description": "The section body. Hidden while a collapsible section is closed."
88
+ "description": "The section body. Hidden while a collapsible section is closed.",
89
+ "control": {
90
+ "kind": "node",
91
+ "fixture": "children.text"
92
+ }
65
93
  }
66
94
  ],
67
95
  "typeReferences": [
@@ -12,70 +12,110 @@
12
12
  "type": "string",
13
13
  "required": false,
14
14
  "defaultValue": null,
15
- "description": "The initially picked value when uncontrolled."
15
+ "description": "The initially picked value when uncontrolled.",
16
+ "control": {
17
+ "kind": "string"
18
+ }
16
19
  },
17
20
  {
18
21
  "name": "className",
19
22
  "type": "string",
20
23
  "required": false,
21
24
  "defaultValue": null,
22
- "description": "Extra classes for the group frame."
25
+ "description": "Extra classes for the group frame.",
26
+ "control": {
27
+ "kind": "string"
28
+ }
23
29
  },
24
30
  {
25
31
  "name": "previousLabel",
26
32
  "type": "string",
27
33
  "required": false,
28
34
  "defaultValue": "Show earlier segments",
29
- "description": "Accessible name for the chevron that reveals segments off the leading edge."
35
+ "description": "Accessible name for the chevron that reveals segments off the leading edge.",
36
+ "control": {
37
+ "kind": "string"
38
+ }
30
39
  },
31
40
  {
32
41
  "name": "nextLabel",
33
42
  "type": "string",
34
43
  "required": false,
35
44
  "defaultValue": "Show later segments",
36
- "description": "Accessible name for the chevron that reveals segments off the trailing edge."
45
+ "description": "Accessible name for the chevron that reveals segments off the trailing edge.",
46
+ "control": {
47
+ "kind": "string"
48
+ }
37
49
  },
38
50
  {
39
51
  "name": "overflow",
40
52
  "type": "\"clip\" | \"scroll\"",
41
53
  "required": false,
42
54
  "defaultValue": "scroll",
43
- "description": "What the control does when its segments do not fit. Defaults to `\"scroll\"`.\n\nThe same behaviour `Toolbar` has, from the same module, for the same\nreason: a switcher with five segments in a page header's actions slot runs\noff a phone-width screen, and wrapping it would turn a one-rung control\ninto a two-row block that no longer reads as one switch. `\"scroll\"` keeps\nthe rim and the height, scrolls the segments inside them, fades the\noverflowing edge and offers a pager chevron there.\n\n`\"clip\"` is the old behaviour, for a control already inside something that\nscrolls."
55
+ "description": "What the control does when its segments do not fit. Defaults to `\"scroll\"`.\n\nThe same behaviour `Toolbar` has, from the same module, for the same\nreason: a switcher with five segments in a page header's actions slot runs\noff a phone-width screen, and wrapping it would turn a one-rung control\ninto a two-row block that no longer reads as one switch. `\"scroll\"` keeps\nthe rim and the height, scrolls the segments inside them, fades the\noverflowing edge and offers a pager chevron there.\n\n`\"clip\"` is the old behaviour, for a control already inside something that\nscrolls.",
56
+ "control": {
57
+ "kind": "enum",
58
+ "members": [
59
+ "clip",
60
+ "scroll"
61
+ ]
62
+ }
44
63
  },
45
64
  {
46
65
  "name": "size",
47
66
  "type": "\"sm\" | \"md\" | \"lg\"",
48
67
  "required": false,
49
68
  "defaultValue": "md",
50
- "description": "Which rung of the control ladder to sit on. Defaults to `\"md\"`."
69
+ "description": "Which rung of the control ladder to sit on. Defaults to `\"md\"`.",
70
+ "control": {
71
+ "kind": "enum",
72
+ "members": [
73
+ "sm",
74
+ "md",
75
+ "lg"
76
+ ]
77
+ }
51
78
  },
52
79
  {
53
80
  "name": "value",
54
81
  "type": "string",
55
82
  "required": false,
56
83
  "defaultValue": null,
57
- "description": "The picked value when controlled. Pass with `onValueChange`."
84
+ "description": "The picked value when controlled. Pass with `onValueChange`.",
85
+ "control": {
86
+ "kind": "string"
87
+ }
58
88
  },
59
89
  {
60
90
  "name": "onValueChange",
61
91
  "type": "((value: string) => void)",
62
92
  "required": false,
63
93
  "defaultValue": null,
64
- "description": "Called with the newly picked value. Never called with `undefined`."
94
+ "description": "Called with the newly picked value. Never called with `undefined`.",
95
+ "control": {
96
+ "kind": "callback",
97
+ "fixture": "callback.log"
98
+ }
65
99
  },
66
100
  {
67
101
  "name": "items",
68
102
  "type": "readonly SegmentedControlItem[]",
69
103
  "required": true,
70
104
  "defaultValue": null,
71
- "description": "The segments, in display order."
105
+ "description": "The segments, in display order.",
106
+ "control": {
107
+ "kind": "array"
108
+ }
72
109
  },
73
110
  {
74
111
  "name": "itemClassName",
75
112
  "type": "string",
76
113
  "required": false,
77
114
  "defaultValue": null,
78
- "description": "Extra classes for every segment."
115
+ "description": "Extra classes for every segment.",
116
+ "control": {
117
+ "kind": "string"
118
+ }
79
119
  }
80
120
  ],
81
121
  "typeReferences": [
@@ -89,7 +129,6 @@
89
129
  "--cue-accent",
90
130
  "--cue-accent-soft",
91
131
  "--cue-border",
92
- "--cue-chrome-toolbar",
93
132
  "--cue-control-lg",
94
133
  "--cue-control-md",
95
134
  "--cue-control-sm",
@@ -12,112 +12,170 @@
12
12
  "type": "readonly SelectOption[]",
13
13
  "required": true,
14
14
  "defaultValue": null,
15
- "description": "The rows, in display order."
15
+ "description": "The rows, in display order.",
16
+ "control": {
17
+ "kind": "array",
18
+ "fixture": "sample.blend-modes"
19
+ }
16
20
  },
17
21
  {
18
22
  "name": "value",
19
23
  "type": "string | null",
20
24
  "required": false,
21
25
  "defaultValue": null,
22
- "description": "Selected value. Use with `onValueChange` for a controlled select."
26
+ "description": "Selected value. Use with `onValueChange` for a controlled select.",
27
+ "control": {
28
+ "kind": "string",
29
+ "nullable": true
30
+ }
23
31
  },
24
32
  {
25
33
  "name": "defaultValue",
26
34
  "type": "string | null",
27
35
  "required": false,
28
36
  "defaultValue": null,
29
- "description": "Initially selected value for an uncontrolled select."
37
+ "description": "Initially selected value for an uncontrolled select.",
38
+ "control": {
39
+ "kind": "string",
40
+ "nullable": true
41
+ }
30
42
  },
31
43
  {
32
44
  "name": "onValueChange",
33
45
  "type": "((value: string | null) => void)",
34
46
  "required": false,
35
47
  "defaultValue": null,
36
- "description": "Called with the newly selected value (`null` when cleared)."
48
+ "description": "Called with the newly selected value (`null` when cleared).",
49
+ "control": {
50
+ "kind": "callback",
51
+ "fixture": "callback.log"
52
+ }
37
53
  },
38
54
  {
39
55
  "name": "placeholder",
40
56
  "type": "ReactNode",
41
57
  "required": false,
42
58
  "defaultValue": null,
43
- "description": "Shown in the trigger while nothing is selected."
59
+ "description": "Shown in the trigger while nothing is selected.",
60
+ "control": {
61
+ "kind": "node",
62
+ "fixture": "children.text"
63
+ }
44
64
  },
45
65
  {
46
66
  "name": "size",
47
67
  "type": "\"sm\" | \"md\" | \"lg\"",
48
68
  "required": false,
49
69
  "defaultValue": null,
50
- "description": "Rung of the control ladder for the trigger. Defaults to `\"md\"`."
70
+ "description": "Rung of the control ladder for the trigger. Defaults to `\"md\"`.",
71
+ "control": {
72
+ "kind": "enum",
73
+ "members": [
74
+ "sm",
75
+ "md",
76
+ "lg"
77
+ ]
78
+ }
51
79
  },
52
80
  {
53
81
  "name": "disabled",
54
82
  "type": "boolean",
55
83
  "required": false,
56
84
  "defaultValue": null,
57
- "description": "Prevent opening and grey the trigger out."
85
+ "description": "Prevent opening and grey the trigger out.",
86
+ "control": {
87
+ "kind": "boolean"
88
+ }
58
89
  },
59
90
  {
60
91
  "name": "required",
61
92
  "type": "boolean",
62
93
  "required": false,
63
94
  "defaultValue": null,
64
- "description": "Require a value before the owning form submits."
95
+ "description": "Require a value before the owning form submits.",
96
+ "control": {
97
+ "kind": "boolean"
98
+ }
65
99
  },
66
100
  {
67
101
  "name": "name",
68
102
  "type": "string",
69
103
  "required": false,
70
104
  "defaultValue": null,
71
- "description": "Name for the hidden input, when the select is part of a form."
105
+ "description": "Name for the hidden input, when the select is part of a form.",
106
+ "control": {
107
+ "kind": "string"
108
+ }
72
109
  },
73
110
  {
74
111
  "name": "id",
75
112
  "type": "string",
76
113
  "required": false,
77
114
  "defaultValue": null,
78
- "description": "Id forwarded to the select's hidden input."
115
+ "description": "Id forwarded to the select's hidden input.",
116
+ "control": {
117
+ "kind": "string"
118
+ }
79
119
  },
80
120
  {
81
121
  "name": "aria-label",
82
122
  "type": "string",
83
123
  "required": false,
84
124
  "defaultValue": null,
85
- "description": "Accessible name for the trigger, when no {@link FieldLabel } names it."
125
+ "description": "Accessible name for the trigger, when no {@link FieldLabel } names it.",
126
+ "control": {
127
+ "kind": "string"
128
+ }
86
129
  },
87
130
  {
88
131
  "name": "aria-labelledby",
89
132
  "type": "string",
90
133
  "required": false,
91
134
  "defaultValue": null,
92
- "description": "Id of the element naming the trigger."
135
+ "description": "Id of the element naming the trigger.",
136
+ "control": {
137
+ "kind": "string"
138
+ }
93
139
  },
94
140
  {
95
141
  "name": "modal",
96
142
  "type": "boolean",
97
143
  "required": false,
98
144
  "defaultValue": null,
99
- "description": "Lock interaction to the popup while it is open. Defaults to `true`, matching\nBase UI; set `false` inside a canvas or a drag surface that must keep\nreceiving pointer events."
145
+ "description": "Lock interaction to the popup while it is open. Defaults to `true`, matching\nBase UI; set `false` inside a canvas or a drag surface that must keep\nreceiving pointer events.",
146
+ "control": {
147
+ "kind": "boolean"
148
+ }
100
149
  },
101
150
  {
102
151
  "name": "className",
103
152
  "type": "string",
104
153
  "required": false,
105
154
  "defaultValue": null,
106
- "description": "Extra classes for the trigger."
155
+ "description": "Extra classes for the trigger.",
156
+ "control": {
157
+ "kind": "string"
158
+ }
107
159
  },
108
160
  {
109
161
  "name": "popupClassName",
110
162
  "type": "string",
111
163
  "required": false,
112
164
  "defaultValue": null,
113
- "description": "Extra classes for the popup surface."
165
+ "description": "Extra classes for the popup surface.",
166
+ "control": {
167
+ "kind": "string"
168
+ }
114
169
  },
115
170
  {
116
171
  "name": "sideOffset",
117
172
  "type": "number",
118
173
  "required": false,
119
174
  "defaultValue": "4",
120
- "description": "Distance in px between the trigger and the popup. Defaults to `4`."
175
+ "description": "Distance in px between the trigger and the popup. Defaults to `4`.",
176
+ "control": {
177
+ "kind": "number"
178
+ }
121
179
  }
122
180
  ],
123
181
  "typeReferences": [],
@@ -12,7 +12,10 @@
12
12
  "type": "string",
13
13
  "required": false,
14
14
  "defaultValue": null,
15
- "description": "Extra classes, merged over the hairline defaults."
15
+ "description": "Extra classes, merged over the hairline defaults.",
16
+ "control": {
17
+ "kind": "string"
18
+ }
16
19
  }
17
20
  ],
18
21
  "typeReferences": [
@@ -12,63 +12,95 @@
12
12
  "type": "string",
13
13
  "required": true,
14
14
  "defaultValue": null,
15
- "description": "Selected model."
15
+ "description": "Selected model.",
16
+ "control": {
17
+ "kind": "string"
18
+ }
16
19
  },
17
20
  {
18
21
  "name": "models",
19
22
  "type": "readonly string[]",
20
23
  "required": true,
21
24
  "defaultValue": null,
22
- "description": "Models offered in the segmented control. Keep it to a few; more wants the model\npicker."
25
+ "description": "Models offered in the segmented control. Keep it to a few; more wants the model\npicker.",
26
+ "control": {
27
+ "kind": "array",
28
+ "fixture": "agent.transcript"
29
+ }
23
30
  },
24
31
  {
25
32
  "name": "systemPrompt",
26
33
  "type": "string",
27
34
  "required": true,
28
35
  "defaultValue": null,
29
- "description": "Current system prompt."
36
+ "description": "Current system prompt.",
37
+ "control": {
38
+ "kind": "string"
39
+ }
30
40
  },
31
41
  {
32
42
  "name": "temperature",
33
43
  "type": "number",
34
44
  "required": true,
35
45
  "defaultValue": null,
36
- "description": "Current temperature, 0 to 2."
46
+ "description": "Current temperature, 0 to 2.",
47
+ "control": {
48
+ "kind": "number"
49
+ }
37
50
  },
38
51
  {
39
52
  "name": "toggles",
40
53
  "type": "readonly SettingToggle[]",
41
54
  "required": true,
42
55
  "defaultValue": null,
43
- "description": "Capability switches with a line each explaining what they turn on."
56
+ "description": "Capability switches with a line each explaining what they turn on.",
57
+ "control": {
58
+ "kind": "array"
59
+ }
44
60
  },
45
61
  {
46
62
  "name": "onModelChange",
47
63
  "type": "((model: string) => void)",
48
64
  "required": false,
49
65
  "defaultValue": null,
50
- "description": "Called when the model changes."
66
+ "description": "Called when the model changes.",
67
+ "control": {
68
+ "kind": "callback",
69
+ "fixture": "callback.log"
70
+ }
51
71
  },
52
72
  {
53
73
  "name": "onSystemPromptChange",
54
74
  "type": "((prompt: string) => void)",
55
75
  "required": false,
56
76
  "defaultValue": null,
57
- "description": "Called as the prompt is edited."
77
+ "description": "Called as the prompt is edited.",
78
+ "control": {
79
+ "kind": "callback",
80
+ "fixture": "callback.log"
81
+ }
58
82
  },
59
83
  {
60
84
  "name": "onTemperatureChange",
61
85
  "type": "((temperature: number) => void)",
62
86
  "required": false,
63
87
  "defaultValue": null,
64
- "description": "Called as the slider moves."
88
+ "description": "Called as the slider moves.",
89
+ "control": {
90
+ "kind": "callback",
91
+ "fixture": "callback.log"
92
+ }
65
93
  },
66
94
  {
67
95
  "name": "onToggle",
68
96
  "type": "((key: string) => void)",
69
97
  "required": false,
70
98
  "defaultValue": null,
71
- "description": "Called with the switched capability's key."
99
+ "description": "Called with the switched capability's key.",
100
+ "control": {
101
+ "kind": "callback",
102
+ "fixture": "callback.log"
103
+ }
72
104
  }
73
105
  ],
74
106
  "typeReferences": [