@cueplusplus/ui 0.9.0 → 0.11.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.
- package/CHANGELOG.md +337 -0
- package/README.md +197 -9
- package/dist/chrome/index.d.ts +2 -1
- package/dist/chrome/index.js +3 -2
- package/dist/chrome/inspector.d.ts +61 -0
- package/dist/chrome/inspector.js +121 -0
- package/dist/forms/input.d.ts +12 -0
- package/dist/forms/textarea.d.ts +12 -0
- package/dist/forms/toggle.d.ts +6 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.js +8 -3
- package/dist/instruments/code-block.d.ts +35 -0
- package/dist/instruments/code-block.js +173 -0
- package/dist/instruments/index.d.ts +2 -1
- package/dist/instruments/index.js +2 -1
- package/dist/instruments/meter.d.ts +5 -1
- package/dist/layout/bento.d.ts +144 -0
- package/dist/layout/bento.js +266 -0
- package/dist/layout/index.d.ts +4 -2
- package/dist/layout/index.js +4 -2
- package/dist/layout/preview.d.ts +110 -0
- package/dist/layout/preview.js +459 -0
- package/dist/primitives/button.d.ts +12 -0
- package/dist/primitives/chip.d.ts +1 -1
- package/dist/system/index.d.ts +2 -2
- package/dist/system/index.js +2 -1
- package/dist/system/overrides.d.ts +38 -1
- package/dist/system/overrides.js +40 -1
- package/manifest/components/accordion.json +24 -6
- package/manifest/components/activity-graph.json +20 -5
- package/manifest/components/agent-card.json +37 -9
- package/manifest/components/agent-handoff.json +21 -5
- package/manifest/components/agent-mode-badge.json +22 -4
- package/manifest/components/agent-pile.json +38 -8
- package/manifest/components/agent-plan.json +9 -2
- package/manifest/components/agent-status.json +17 -3
- package/manifest/components/agent-surface.json +26 -11
- package/manifest/components/alert-dialog.json +29 -5
- package/manifest/components/animated-number.json +14 -6
- package/manifest/components/app-bar.json +66 -13
- package/manifest/components/app-shell.json +133 -31
- package/manifest/components/app-window-frame.json +28 -6
- package/manifest/components/approval-card.json +37 -7
- package/manifest/components/artifact-card.json +16 -4
- package/manifest/components/ask-box.json +99 -21
- package/manifest/components/audience-icon.json +1 -7
- package/manifest/components/autocomplete.json +80 -18
- package/manifest/components/avatar-group.json +13 -2
- package/manifest/components/avatar.json +22 -4
- package/manifest/components/background-inbox.json +9 -2
- package/manifest/components/bento.json +306 -0
- package/manifest/components/branch-picker.json +29 -7
- package/manifest/components/breadcrumb.json +13 -3
- package/manifest/components/button-group.json +21 -4
- package/manifest/components/button.json +41 -4
- package/manifest/components/canvas-split-body.json +4 -1
- package/manifest/components/canvas-split-header.json +17 -4
- package/manifest/components/canvas-split-line.json +4 -1
- package/manifest/components/canvas-split-message.json +8 -1
- package/manifest/components/card.json +14 -3
- package/manifest/components/carousel.json +54 -12
- package/manifest/components/catalogue-icon.json +1 -7
- package/manifest/components/channel-beta-icon.json +1 -7
- package/manifest/components/channel-matrix.json +80 -15
- package/manifest/components/channel-released-icon.json +1 -7
- package/manifest/components/chart-container.json +26 -10
- package/manifest/components/chart-ramp.json +13 -3
- package/manifest/components/chart-swatch.json +9 -2
- package/manifest/components/chart-tooltip-content.json +31 -7
- package/manifest/components/chart.json +30 -6
- package/manifest/components/chat-panel-composer.json +9 -2
- package/manifest/components/checkbox-group.json +4 -2
- package/manifest/components/checkbox.json +17 -4
- package/manifest/components/checkpoint-history.json +13 -3
- package/manifest/components/chip.json +35 -5
- package/manifest/components/clamp.json +30 -7
- package/manifest/components/cli-tool-icon.json +1 -7
- package/manifest/components/code-block.json +106 -0
- package/manifest/components/code-diff.json +20 -5
- package/manifest/components/code-runner.json +32 -6
- package/manifest/components/collapsible.json +16 -4
- package/manifest/components/color-area.json +4 -1
- package/manifest/components/color-field.json +13 -3
- package/manifest/components/color-picker.json +75 -17
- package/manifest/components/color-slider.json +12 -3
- package/manifest/components/color-swatch.json +13 -2
- package/manifest/components/colors-section.json +8 -4
- package/manifest/components/combobox.json +81 -18
- package/manifest/components/command-palette.json +57 -13
- package/manifest/components/compaction-row.json +35 -7
- package/manifest/components/comparison-card.json +17 -4
- package/manifest/components/composer-attachment-chip.json +9 -2
- package/manifest/components/composer-bar.json +4 -1
- package/manifest/components/composer-command-item.json +8 -2
- package/manifest/components/composer-context.json +4 -1
- package/manifest/components/composer-input.json +5 -1
- package/manifest/components/composer-menu-item.json +4 -1
- package/manifest/components/composer-menu.json +12 -2
- package/manifest/components/composer-model-item.json +8 -2
- package/manifest/components/composer-model-trigger.json +8 -2
- package/manifest/components/composer-person-item.json +8 -2
- package/manifest/components/composer-send.json +8 -2
- package/manifest/components/composer-voice-button.json +4 -1
- package/manifest/components/composer-voice.json +8 -2
- package/manifest/components/composer.json +76 -17
- package/manifest/components/computer-use.json +17 -4
- package/manifest/components/confidence-marker.json +13 -3
- package/manifest/components/connection-state.json +23 -4
- package/manifest/components/container.json +14 -2
- package/manifest/components/context-breakdown.json +8 -2
- package/manifest/components/context-menu.json +16 -4
- package/manifest/components/context-usage.json +16 -4
- package/manifest/components/conversation-search.json +22 -5
- package/manifest/components/copy-button.json +32 -7
- package/manifest/components/cost-meter.json +12 -3
- package/manifest/components/cue-logotype.json +17 -3
- package/manifest/components/cue-mark.json +17 -3
- package/manifest/components/cue-portal-frame.json +13 -3
- package/manifest/components/data-row.json +21 -7
- package/manifest/components/data-table-pagination.json +18 -4
- package/manifest/components/data-table-toolbar.json +30 -7
- package/manifest/components/data-tree.json +42 -9
- package/manifest/components/date-field.json +13 -2
- package/manifest/components/date-picker.json +81 -19
- package/manifest/components/date-range-picker.json +81 -19
- package/manifest/components/day-separator.json +4 -1
- package/manifest/components/delegation-card.json +64 -12
- package/manifest/components/density.json +24 -4
- package/manifest/components/description-list.json +8 -1
- package/manifest/components/diagram.json +33 -7
- package/manifest/components/dialog.json +29 -6
- package/manifest/components/disclosure.json +31 -7
- package/manifest/components/dmx-bar.json +16 -4
- package/manifest/components/dmx-strip.json +20 -5
- package/manifest/components/document-reference.json +21 -5
- package/manifest/components/draft-restore.json +18 -4
- package/manifest/components/drawer.json +30 -6
- package/manifest/components/dropdown-menu.json +55 -10
- package/manifest/components/edit-message.json +32 -7
- package/manifest/components/elements-command-palette.json +27 -6
- package/manifest/components/elements-data-table.json +9 -2
- package/manifest/components/elements-timeline.json +8 -2
- package/manifest/components/elicitation-form.json +31 -6
- package/manifest/components/empty-state-composer.json +9 -2
- package/manifest/components/empty-state-suggestion.json +4 -1
- package/manifest/components/empty-state.json +25 -5
- package/manifest/components/end-of-turn-summary.json +16 -4
- package/manifest/components/env-var-input.json +54 -12
- package/manifest/components/error-state.json +17 -4
- package/manifest/components/export-dialog.json +27 -8
- package/manifest/components/eyebrow.json +4 -1
- package/manifest/components/feedback-dialog.json +33 -7
- package/manifest/components/field-description.json +4 -1
- package/manifest/components/field-error.json +13 -3
- package/manifest/components/field-label.json +4 -1
- package/manifest/components/field.json +4 -1
- package/manifest/components/file-tree.json +16 -4
- package/manifest/components/file-upload.json +58 -13
- package/manifest/components/flow-graph.json +12 -3
- package/manifest/components/folder-icon.json +1 -7
- package/manifest/components/footer.json +24 -4
- package/manifest/components/frac.json +10 -2
- package/manifest/components/generation-loader.json +17 -3
- package/manifest/components/generative-ui.json +39 -7
- package/manifest/components/grid.json +56 -5
- package/manifest/components/group-bar.json +25 -6
- package/manifest/components/guardrail-notice.json +22 -5
- package/manifest/components/hover-card.json +45 -8
- package/manifest/components/icon-button.json +22 -4
- package/manifest/components/image-generation.json +8 -2
- package/manifest/components/info-tip.json +42 -7
- package/manifest/components/inline-citation.json +14 -3
- package/manifest/components/input-group.json +24 -5
- package/manifest/components/input.json +33 -3
- package/manifest/components/inspector.json +199 -0
- package/manifest/components/item.json +42 -8
- package/manifest/components/job-progress.json +25 -6
- package/manifest/components/launcher-bubble.json +32 -7
- package/manifest/components/ledger.json +87 -19
- package/manifest/components/link.json +16 -3
- package/manifest/components/live-region-announcer.json +21 -5
- package/manifest/components/log-viewer.json +42 -10
- package/manifest/components/map-answer.json +17 -4
- package/manifest/components/markdown-text.json +36 -5
- package/manifest/components/math-block.json +12 -3
- package/manifest/components/mcp-server-icon.json +1 -7
- package/manifest/components/mcp-server-panel.json +18 -4
- package/manifest/components/memory-chips.json +9 -2
- package/manifest/components/menubar.json +33 -7
- package/manifest/components/message-actions.json +32 -7
- package/manifest/components/message-attachments.json +9 -2
- package/manifest/components/message-branches.json +14 -3
- package/manifest/components/message-list.json +27 -6
- package/manifest/components/message-pair.json +25 -5
- package/manifest/components/message-queue.json +13 -3
- package/manifest/components/message-timing.json +8 -2
- package/manifest/components/message.json +41 -9
- package/manifest/components/meter.json +43 -7
- package/manifest/components/mobile-composer.json +47 -10
- package/manifest/components/model-picker.json +13 -3
- package/manifest/components/multi-select.json +78 -17
- package/manifest/components/musical-time-input.json +34 -8
- package/manifest/components/navigation-menu.json +54 -12
- package/manifest/components/node-card.json +42 -7
- package/manifest/components/node-handle.json +17 -2
- package/manifest/components/number-field.json +28 -6
- package/manifest/components/number-ticker.json +8 -2
- package/manifest/components/onboarding.json +18 -4
- package/manifest/components/otp-field.json +43 -10
- package/manifest/components/page-shell.json +35 -6
- package/manifest/components/pagination.json +21 -5
- package/manifest/components/panel-header.json +15 -3
- package/manifest/components/password-input.json +58 -8
- package/manifest/components/permission-grant.json +28 -5
- package/manifest/components/permission-scopes.json +57 -12
- package/manifest/components/piano-keyboard.json +38 -9
- package/manifest/components/plussie.json +34 -5
- package/manifest/components/popover.json +45 -8
- package/manifest/components/preset-section.json +12 -5
- package/manifest/components/preview.json +202 -0
- package/manifest/components/progress.json +25 -6
- package/manifest/components/prompt-library.json +27 -6
- package/manifest/components/queue-dock.json +36 -8
- package/manifest/components/quota-banner.json +25 -6
- package/manifest/components/quote-reply.json +29 -7
- package/manifest/components/radio-group.json +12 -2
- package/manifest/components/radio.json +17 -3
- package/manifest/components/rating.json +60 -13
- package/manifest/components/read-aloud.json +35 -8
- package/manifest/components/reasoning-effort.json +17 -4
- package/manifest/components/reasoning-panel.json +33 -8
- package/manifest/components/recommendation-card.json +35 -10
- package/manifest/components/regenerate-menu.json +22 -5
- package/manifest/components/replay-player.json +29 -7
- package/manifest/components/research-report.json +12 -3
- package/manifest/components/resizable.json +4 -1
- package/manifest/components/retrieval-chunks.json +16 -4
- package/manifest/components/revert-dock.json +61 -14
- package/manifest/components/reviewable-diff.json +23 -5
- package/manifest/components/risk-badge.json +18 -3
- package/manifest/components/row.json +17 -4
- package/manifest/components/schedule-card.json +25 -6
- package/manifest/components/score-breakdown.json +20 -5
- package/manifest/components/scroll-anchor.json +13 -3
- package/manifest/components/scroll-area.json +31 -8
- package/manifest/components/scrollable-tabs-list.json +12 -4
- package/manifest/components/scrub-input.json +84 -18
- package/manifest/components/seam-cell.json +19 -3
- package/manifest/components/seam-grid.json +12 -3
- package/manifest/components/search-input.json +69 -10
- package/manifest/components/section-header.json +36 -8
- package/manifest/components/segmented-control.json +50 -11
- package/manifest/components/select.json +74 -16
- package/manifest/components/separator.json +4 -1
- package/manifest/components/settings-panel.json +41 -9
- package/manifest/components/shape-section.json +8 -4
- package/manifest/components/shared-conversation.json +21 -5
- package/manifest/components/sheet.json +29 -6
- package/manifest/components/shimmer-label.json +4 -2
- package/manifest/components/sidebar.json +60 -13
- package/manifest/components/skill-icon.json +1 -7
- package/manifest/components/slider.json +22 -5
- package/manifest/components/sources.json +17 -4
- package/manifest/components/sparkline.json +17 -4
- package/manifest/components/speaker-identity.json +4 -1
- package/manifest/components/spec-sheet.json +16 -4
- package/manifest/components/spectrum-visualizer.json +41 -10
- package/manifest/components/spinner.json +12 -2
- package/manifest/components/stack-icon.json +1 -7
- package/manifest/components/stack.json +54 -7
- package/manifest/components/stacks-matrix-icon.json +1 -7
- package/manifest/components/stat.json +28 -4
- package/manifest/components/status-bar.json +50 -9
- package/manifest/components/status-dot.json +23 -4
- package/manifest/components/stepper.json +22 -5
- package/manifest/components/stopped-run.json +19 -4
- package/manifest/components/streaming-text.json +12 -3
- package/manifest/components/subagent-list.json +21 -5
- package/manifest/components/suggestions.json +27 -5
- package/manifest/components/swap-label.json +18 -4
- package/manifest/components/switch.json +18 -3
- package/manifest/components/table-scroll-region.json +4 -1
- package/manifest/components/table.json +54 -11
- package/manifest/components/tabs.json +16 -5
- package/manifest/components/tags-input.json +79 -17
- package/manifest/components/tail-status.json +37 -8
- package/manifest/components/terminal-block.json +25 -5
- package/manifest/components/terminal-frame.json +34 -8
- package/manifest/components/textarea.json +28 -3
- package/manifest/components/theme-configurator.json +47 -11
- package/manifest/components/theme-provider.json +79 -15
- package/manifest/components/thinking-indicator.json +8 -2
- package/manifest/components/thread-list.json +13 -3
- package/manifest/components/thread-search.json +22 -5
- package/manifest/components/threshold-rail.json +77 -14
- package/manifest/components/time-boundary.json +8 -2
- package/manifest/components/time-field.json +13 -2
- package/manifest/components/timeline-ruler.json +51 -12
- package/manifest/components/timeline.json +19 -3
- package/manifest/components/title-bar.json +19 -4
- package/manifest/components/toast.json +12 -3
- package/manifest/components/todo-list.json +8 -2
- package/manifest/components/toggle-group.json +33 -7
- package/manifest/components/toggle.json +33 -4
- package/manifest/components/token-editor.json +26 -7
- package/manifest/components/tool-call-card.json +83 -16
- package/manifest/components/tool-call.json +37 -9
- package/manifest/components/tool-error.json +34 -8
- package/manifest/components/tool-group.json +17 -4
- package/manifest/components/tool-timeline.json +37 -9
- package/manifest/components/toolbar.json +37 -8
- package/manifest/components/tooltip.json +41 -7
- package/manifest/components/trace-waterfall.json +12 -3
- package/manifest/components/tree-visibility-toggle.json +18 -3
- package/manifest/components/tree.json +52 -11
- package/manifest/components/turn-footer.json +36 -8
- package/manifest/components/two-step-button.json +46 -9
- package/manifest/components/typing-indicator.json +8 -1
- package/manifest/components/universe-grid.json +37 -10
- package/manifest/components/unread-divider.json +4 -1
- package/manifest/components/usage-chart.json +46 -9
- package/manifest/components/verdict-row.json +20 -5
- package/manifest/components/voice-conversation.json +37 -7
- package/manifest/components/web-preview.json +23 -5
- package/manifest/components/web-search.json +20 -5
- package/manifest/components/work-collapse.json +30 -7
- package/manifest/fixtures.json +111 -0
- package/manifest/manifest.json +354 -297
- package/manifest/tokens.json +2 -2
- package/package.json +8 -7
|
@@ -12,84 +12,123 @@
|
|
|
12
12
|
"type": "number",
|
|
13
13
|
"required": true,
|
|
14
14
|
"defaultValue": null,
|
|
15
|
-
"description": "Length of the song, in quarter-note beats."
|
|
15
|
+
"description": "Length of the song, in quarter-note beats.",
|
|
16
|
+
"control": {
|
|
17
|
+
"kind": "number"
|
|
18
|
+
}
|
|
16
19
|
},
|
|
17
20
|
{
|
|
18
21
|
"name": "pxPerBeat",
|
|
19
22
|
"type": "number",
|
|
20
23
|
"required": false,
|
|
21
24
|
"defaultValue": "20",
|
|
22
|
-
"description": "Zoom, in px per quarter-note beat. Defaults to `20`."
|
|
25
|
+
"description": "Zoom, in px per quarter-note beat. Defaults to `20`.",
|
|
26
|
+
"control": {
|
|
27
|
+
"kind": "number"
|
|
28
|
+
}
|
|
23
29
|
},
|
|
24
30
|
{
|
|
25
31
|
"name": "viewport",
|
|
26
32
|
"type": "RulerViewport",
|
|
27
33
|
"required": false,
|
|
28
34
|
"defaultValue": null,
|
|
29
|
-
"description": "What is on screen, in the same pixel coordinates.\n\nSupply it when the host already tracks its own scroll — a timeline usually\ndoes, and one source of truth scrolls in step. Omitted, the ruler watches\nits own scroll parent instead."
|
|
35
|
+
"description": "What is on screen, in the same pixel coordinates.\n\nSupply it when the host already tracks its own scroll — a timeline usually\ndoes, and one source of truth scrolls in step. Omitted, the ruler watches\nits own scroll parent instead.",
|
|
36
|
+
"control": {
|
|
37
|
+
"kind": "opaque"
|
|
38
|
+
}
|
|
30
39
|
},
|
|
31
40
|
{
|
|
32
41
|
"name": "timeSignature",
|
|
33
42
|
"type": "TimeSignature",
|
|
34
43
|
"required": false,
|
|
35
44
|
"defaultValue": "{ numerator: 4, denominator: 4 }",
|
|
36
|
-
"description": "The signature the bars are counted in. Defaults to 4/4."
|
|
45
|
+
"description": "The signature the bars are counted in. Defaults to 4/4.",
|
|
46
|
+
"control": {
|
|
47
|
+
"kind": "opaque"
|
|
48
|
+
}
|
|
37
49
|
},
|
|
38
50
|
{
|
|
39
51
|
"name": "tempo",
|
|
40
52
|
"type": "number | null",
|
|
41
53
|
"required": false,
|
|
42
54
|
"defaultValue": null,
|
|
43
|
-
"description": "Tempo in BPM. Only used for the readout and the accessible name."
|
|
55
|
+
"description": "Tempo in BPM. Only used for the readout and the accessible name.",
|
|
56
|
+
"control": {
|
|
57
|
+
"kind": "number",
|
|
58
|
+
"nullable": true
|
|
59
|
+
}
|
|
44
60
|
},
|
|
45
61
|
{
|
|
46
62
|
"name": "playhead",
|
|
47
63
|
"type": "number | null",
|
|
48
64
|
"required": false,
|
|
49
65
|
"defaultValue": null,
|
|
50
|
-
"description": "Transport position in quarter-note beats. `null` or absent draws no playhead."
|
|
66
|
+
"description": "Transport position in quarter-note beats. `null` or absent draws no playhead.",
|
|
67
|
+
"control": {
|
|
68
|
+
"kind": "number",
|
|
69
|
+
"nullable": true
|
|
70
|
+
}
|
|
51
71
|
},
|
|
52
72
|
{
|
|
53
73
|
"name": "loop",
|
|
54
74
|
"type": "LoopRegion | null",
|
|
55
75
|
"required": false,
|
|
56
76
|
"defaultValue": null,
|
|
57
|
-
"description": "The loop bracket, if there is one."
|
|
77
|
+
"description": "The loop bracket, if there is one.",
|
|
78
|
+
"control": {
|
|
79
|
+
"kind": "opaque",
|
|
80
|
+
"nullable": true
|
|
81
|
+
}
|
|
58
82
|
},
|
|
59
83
|
{
|
|
60
84
|
"name": "markers",
|
|
61
85
|
"type": "readonly RulerMarker[]",
|
|
62
86
|
"required": false,
|
|
63
87
|
"defaultValue": null,
|
|
64
|
-
"description": "Cue points to pin along the ruler."
|
|
88
|
+
"description": "Cue points to pin along the ruler.",
|
|
89
|
+
"control": {
|
|
90
|
+
"kind": "array"
|
|
91
|
+
}
|
|
65
92
|
},
|
|
66
93
|
{
|
|
67
94
|
"name": "height",
|
|
68
95
|
"type": "number",
|
|
69
96
|
"required": false,
|
|
70
97
|
"defaultValue": "40",
|
|
71
|
-
"description": "Ruler height in px at the 16px root, emitted as `rem`. Defaults to `40`."
|
|
98
|
+
"description": "Ruler height in px at the 16px root, emitted as `rem`. Defaults to `40`.",
|
|
99
|
+
"control": {
|
|
100
|
+
"kind": "number"
|
|
101
|
+
}
|
|
72
102
|
},
|
|
73
103
|
{
|
|
74
104
|
"name": "targetPx",
|
|
75
105
|
"type": "number",
|
|
76
106
|
"required": false,
|
|
77
107
|
"defaultValue": null,
|
|
78
|
-
"description": "Pixel spacing the ticks aim for. Defaults to one centimetre."
|
|
108
|
+
"description": "Pixel spacing the ticks aim for. Defaults to one centimetre.",
|
|
109
|
+
"control": {
|
|
110
|
+
"kind": "number"
|
|
111
|
+
}
|
|
79
112
|
},
|
|
80
113
|
{
|
|
81
114
|
"name": "bufferPx",
|
|
82
115
|
"type": "number",
|
|
83
116
|
"required": false,
|
|
84
117
|
"defaultValue": null,
|
|
85
|
-
"description": "How far past the viewport to keep ruling, in px. Defaults to `120`."
|
|
118
|
+
"description": "How far past the viewport to keep ruling, in px. Defaults to `120`.",
|
|
119
|
+
"control": {
|
|
120
|
+
"kind": "number"
|
|
121
|
+
}
|
|
86
122
|
},
|
|
87
123
|
{
|
|
88
124
|
"name": "label",
|
|
89
125
|
"type": "string",
|
|
90
126
|
"required": false,
|
|
91
127
|
"defaultValue": "Timeline",
|
|
92
|
-
"description": "What this timeline is. Defaults to `\"Timeline\"`."
|
|
128
|
+
"description": "What this timeline is. Defaults to `\"Timeline\"`.",
|
|
129
|
+
"control": {
|
|
130
|
+
"kind": "string"
|
|
131
|
+
}
|
|
93
132
|
}
|
|
94
133
|
],
|
|
95
134
|
"typeReferences": [
|
|
@@ -43,21 +43,37 @@
|
|
|
43
43
|
"type": "\"danger\" | \"idle\" | \"busy\" | \"ok\" | \"warn\"",
|
|
44
44
|
"required": true,
|
|
45
45
|
"defaultValue": null,
|
|
46
|
-
"description": "Which state this event is in. The shared `StatusDot` vocabulary."
|
|
46
|
+
"description": "Which state this event is in. The shared `StatusDot` vocabulary.",
|
|
47
|
+
"control": {
|
|
48
|
+
"kind": "enum",
|
|
49
|
+
"members": [
|
|
50
|
+
"danger",
|
|
51
|
+
"idle",
|
|
52
|
+
"busy",
|
|
53
|
+
"ok",
|
|
54
|
+
"warn"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
47
57
|
},
|
|
48
58
|
{
|
|
49
59
|
"name": "label",
|
|
50
60
|
"type": "string",
|
|
51
61
|
"required": false,
|
|
52
62
|
"defaultValue": null,
|
|
53
|
-
"description": "Screen-reader text for the dot. Defaults to the tone name."
|
|
63
|
+
"description": "Screen-reader text for the dot. Defaults to the tone name.",
|
|
64
|
+
"control": {
|
|
65
|
+
"kind": "string"
|
|
66
|
+
}
|
|
54
67
|
},
|
|
55
68
|
{
|
|
56
69
|
"name": "pulse",
|
|
57
70
|
"type": "boolean",
|
|
58
71
|
"required": false,
|
|
59
72
|
"defaultValue": null,
|
|
60
|
-
"description": "Pulse the dot for an event still in progress."
|
|
73
|
+
"description": "Pulse the dot for an event still in progress.",
|
|
74
|
+
"control": {
|
|
75
|
+
"kind": "boolean"
|
|
76
|
+
}
|
|
61
77
|
}
|
|
62
78
|
],
|
|
63
79
|
"typeReferences": [
|
|
@@ -12,28 +12,43 @@
|
|
|
12
12
|
"type": "boolean",
|
|
13
13
|
"required": false,
|
|
14
14
|
"defaultValue": "false",
|
|
15
|
-
"description": "Make the bar a window drag handle.\n\nEmits `data-tauri-drag-region` (Tauri reads the attribute) *and* the\n`app-region: drag` CSS property (Electron and Chromium read that), because\nthe same component ships into both shells and neither one recognises the\nother's contract. The interactive clusters are carved back out with\n`app-region: no-drag`, or the buttons in the bar would only ever move the\nwindow instead of firing. Both halves of that contract live in\n`./_drag.ts`, which `AppShell.Bar` emits from as well — the two bars are\ndraggable the same way or they are not draggable the same way.\n\nDouble-click-to-maximise is not wired here. Tauri's own injected script\nalready provides it on any drag region, cancel-by-dragging-away on macOS\nincluded; Electron provides nothing, and an Electron app has to listen for\n`dblclick` and toggle the window itself. Neither is a decision a component\nin a design system can make on the window's behalf.\n\nDefaults to `false`."
|
|
15
|
+
"description": "Make the bar a window drag handle.\n\nEmits `data-tauri-drag-region` (Tauri reads the attribute) *and* the\n`app-region: drag` CSS property (Electron and Chromium read that), because\nthe same component ships into both shells and neither one recognises the\nother's contract. The interactive clusters are carved back out with\n`app-region: no-drag`, or the buttons in the bar would only ever move the\nwindow instead of firing. Both halves of that contract live in\n`./_drag.ts`, which `AppShell.Bar` emits from as well — the two bars are\ndraggable the same way or they are not draggable the same way.\n\nDouble-click-to-maximise is not wired here. Tauri's own injected script\nalready provides it on any drag region, cancel-by-dragging-away on macOS\nincluded; Electron provides nothing, and an Electron app has to listen for\n`dblclick` and toggle the window itself. Neither is a decision a component\nin a design system can make on the window's behalf.\n\nDefaults to `false`.",
|
|
16
|
+
"control": {
|
|
17
|
+
"kind": "boolean"
|
|
18
|
+
}
|
|
16
19
|
},
|
|
17
20
|
{
|
|
18
21
|
"name": "center",
|
|
19
22
|
"type": "ReactNode",
|
|
20
23
|
"required": false,
|
|
21
24
|
"defaultValue": null,
|
|
22
|
-
"description": "Centre slot: the document name. Absolutely centred on the *bar*, not\nbetween the two clusters, so it does not shift sideways when a button\nappears on one side. `pointer-events-none`, so the dead space around a\nshort title stays draggable."
|
|
25
|
+
"description": "Centre slot: the document name. Absolutely centred on the *bar*, not\nbetween the two clusters, so it does not shift sideways when a button\nappears on one side. `pointer-events-none`, so the dead space around a\nshort title stays draggable.",
|
|
26
|
+
"control": {
|
|
27
|
+
"kind": "node",
|
|
28
|
+
"fixture": "children.text"
|
|
29
|
+
}
|
|
23
30
|
},
|
|
24
31
|
{
|
|
25
32
|
"name": "actions",
|
|
26
33
|
"type": "ReactNode",
|
|
27
34
|
"required": false,
|
|
28
35
|
"defaultValue": null,
|
|
29
|
-
"description": "Trailing slot: window controls, connection state, an overflow menu."
|
|
36
|
+
"description": "Trailing slot: window controls, connection state, an overflow menu.",
|
|
37
|
+
"control": {
|
|
38
|
+
"kind": "node",
|
|
39
|
+
"fixture": "children.text"
|
|
40
|
+
}
|
|
30
41
|
},
|
|
31
42
|
{
|
|
32
43
|
"name": "children",
|
|
33
44
|
"type": "ReactNode",
|
|
34
45
|
"required": false,
|
|
35
46
|
"defaultValue": null,
|
|
36
|
-
"description": "Leading slot: the app mark, a back button, the file menu."
|
|
47
|
+
"description": "Leading slot: the app mark, a back button, the file menu.",
|
|
48
|
+
"control": {
|
|
49
|
+
"kind": "node",
|
|
50
|
+
"fixture": "children.text"
|
|
51
|
+
}
|
|
37
52
|
}
|
|
38
53
|
],
|
|
39
54
|
"typeReferences": [
|
|
@@ -32,21 +32,30 @@
|
|
|
32
32
|
"type": "string",
|
|
33
33
|
"required": false,
|
|
34
34
|
"defaultValue": null,
|
|
35
|
-
"description": "Extra classes for the viewport (move the corner, change the width)."
|
|
35
|
+
"description": "Extra classes for the viewport (move the corner, change the width).",
|
|
36
|
+
"control": {
|
|
37
|
+
"kind": "string"
|
|
38
|
+
}
|
|
36
39
|
},
|
|
37
40
|
{
|
|
38
41
|
"name": "toastClassName",
|
|
39
42
|
"type": "string",
|
|
40
43
|
"required": false,
|
|
41
44
|
"defaultValue": null,
|
|
42
|
-
"description": "Extra classes for every toast card."
|
|
45
|
+
"description": "Extra classes for every toast card.",
|
|
46
|
+
"control": {
|
|
47
|
+
"kind": "string"
|
|
48
|
+
}
|
|
43
49
|
},
|
|
44
50
|
{
|
|
45
51
|
"name": "closeLabel",
|
|
46
52
|
"type": "string",
|
|
47
53
|
"required": false,
|
|
48
54
|
"defaultValue": "Dismiss",
|
|
49
|
-
"description": "Accessible name for each card's close affordance. Defaults to `\"Dismiss\"`."
|
|
55
|
+
"description": "Accessible name for each card's close affordance. Defaults to `\"Dismiss\"`.",
|
|
56
|
+
"control": {
|
|
57
|
+
"kind": "string"
|
|
58
|
+
}
|
|
50
59
|
}
|
|
51
60
|
],
|
|
52
61
|
"typeReferences": []
|
|
@@ -14,14 +14,20 @@
|
|
|
14
14
|
"type": "readonly TodoItem[]",
|
|
15
15
|
"required": true,
|
|
16
16
|
"defaultValue": null,
|
|
17
|
-
"description": "The list as it stands right now. Each item carries its own status, so the agent\ncan add, reorder, and complete items in any order between renders."
|
|
17
|
+
"description": "The list as it stands right now. Each item carries its own status, so the agent\ncan add, reorder, and complete items in any order between renders.",
|
|
18
|
+
"control": {
|
|
19
|
+
"kind": "array"
|
|
20
|
+
}
|
|
18
21
|
},
|
|
19
22
|
{
|
|
20
23
|
"name": "revision",
|
|
21
24
|
"type": "number",
|
|
22
25
|
"required": false,
|
|
23
26
|
"defaultValue": null,
|
|
24
|
-
"description": "Which rewrite of the list this is. Omit to show a plain done/total count instead."
|
|
27
|
+
"description": "Which rewrite of the list this is. Omit to show a plain done/total count instead.",
|
|
28
|
+
"control": {
|
|
29
|
+
"kind": "number"
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
],
|
|
27
33
|
"typeReferences": [
|
|
@@ -12,42 +12,69 @@
|
|
|
12
12
|
"type": "readonly string[]",
|
|
13
13
|
"required": false,
|
|
14
14
|
"defaultValue": null,
|
|
15
|
-
"description": "The initially pressed values when uncontrolled."
|
|
15
|
+
"description": "The initially pressed values when uncontrolled.",
|
|
16
|
+
"control": {
|
|
17
|
+
"kind": "array",
|
|
18
|
+
"fixture": "agent.transcript"
|
|
19
|
+
}
|
|
16
20
|
},
|
|
17
21
|
{
|
|
18
22
|
"name": "className",
|
|
19
23
|
"type": "string",
|
|
20
24
|
"required": false,
|
|
21
25
|
"defaultValue": null,
|
|
22
|
-
"description": "Extra classes for the group frame."
|
|
26
|
+
"description": "Extra classes for the group frame.",
|
|
27
|
+
"control": {
|
|
28
|
+
"kind": "string"
|
|
29
|
+
}
|
|
23
30
|
},
|
|
24
31
|
{
|
|
25
32
|
"name": "children",
|
|
26
33
|
"type": "ReactNode",
|
|
27
34
|
"required": true,
|
|
28
35
|
"defaultValue": null,
|
|
29
|
-
"description": "The {@link Toggle }s, each carrying a `value`."
|
|
36
|
+
"description": "The {@link Toggle }s, each carrying a `value`.",
|
|
37
|
+
"control": {
|
|
38
|
+
"kind": "node",
|
|
39
|
+
"fixture": "children.text"
|
|
40
|
+
}
|
|
30
41
|
},
|
|
31
42
|
{
|
|
32
43
|
"name": "size",
|
|
33
44
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
34
45
|
"required": false,
|
|
35
46
|
"defaultValue": "md",
|
|
36
|
-
"description": "Rung of the control ladder for every toggle inside. Defaults to `\"md\"`."
|
|
47
|
+
"description": "Rung of the control ladder for every toggle inside. Defaults to `\"md\"`.",
|
|
48
|
+
"control": {
|
|
49
|
+
"kind": "enum",
|
|
50
|
+
"members": [
|
|
51
|
+
"sm",
|
|
52
|
+
"md",
|
|
53
|
+
"lg"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
37
56
|
},
|
|
38
57
|
{
|
|
39
58
|
"name": "value",
|
|
40
59
|
"type": "readonly string[]",
|
|
41
60
|
"required": false,
|
|
42
61
|
"defaultValue": null,
|
|
43
|
-
"description": "The pressed values when controlled. Pass with `onValueChange`."
|
|
62
|
+
"description": "The pressed values when controlled. Pass with `onValueChange`.",
|
|
63
|
+
"control": {
|
|
64
|
+
"kind": "array",
|
|
65
|
+
"fixture": "agent.transcript"
|
|
66
|
+
}
|
|
44
67
|
},
|
|
45
68
|
{
|
|
46
69
|
"name": "onValueChange",
|
|
47
70
|
"type": "((value: string[]) => void)",
|
|
48
71
|
"required": false,
|
|
49
72
|
"defaultValue": null,
|
|
50
|
-
"description": "Called with every pressed value, in the order the toggles are declared."
|
|
73
|
+
"description": "Called with every pressed value, in the order the toggles are declared.",
|
|
74
|
+
"control": {
|
|
75
|
+
"kind": "callback",
|
|
76
|
+
"fixture": "callback.log"
|
|
77
|
+
}
|
|
51
78
|
}
|
|
52
79
|
],
|
|
53
80
|
"typeReferences": [
|
|
@@ -58,7 +85,6 @@
|
|
|
58
85
|
"variants": {},
|
|
59
86
|
"defaultVariants": {},
|
|
60
87
|
"tokensUsed": [
|
|
61
|
-
"--cue-accent",
|
|
62
88
|
"--cue-border",
|
|
63
89
|
"--cue-border-strong",
|
|
64
90
|
"--cue-control-lg",
|
|
@@ -12,28 +12,57 @@
|
|
|
12
12
|
"type": "string",
|
|
13
13
|
"required": false,
|
|
14
14
|
"defaultValue": null,
|
|
15
|
-
"description": "Extra classes, merged over the recipe."
|
|
15
|
+
"description": "Extra classes, merged over the recipe.",
|
|
16
|
+
"control": {
|
|
17
|
+
"kind": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "aria-label",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"defaultValue": null,
|
|
25
|
+
"description": "Accessible name. An icon-only toggle has no text to be named by, so this is\nits name; declared here rather than left to the inherited attribute so the\nprops table carries the row the sentence above tells a caller to pass.",
|
|
26
|
+
"control": {
|
|
27
|
+
"kind": "string"
|
|
28
|
+
}
|
|
16
29
|
},
|
|
17
30
|
{
|
|
18
31
|
"name": "children",
|
|
19
32
|
"type": "ReactNode",
|
|
20
33
|
"required": false,
|
|
21
34
|
"defaultValue": null,
|
|
22
|
-
"description": "The label. Leave it off for an icon-only toggle — and then pass `aria-label`."
|
|
35
|
+
"description": "The label. Leave it off for an icon-only toggle — and then pass `aria-label`.",
|
|
36
|
+
"control": {
|
|
37
|
+
"kind": "node",
|
|
38
|
+
"fixture": "children.text"
|
|
39
|
+
}
|
|
23
40
|
},
|
|
24
41
|
{
|
|
25
42
|
"name": "size",
|
|
26
43
|
"type": "\"sm\" | \"md\" | \"lg\"",
|
|
27
44
|
"required": false,
|
|
28
45
|
"defaultValue": null,
|
|
29
|
-
"description": "Rung of the control ladder. Defaults to the enclosing {@link ToggleGroup }'s\nrung, or `\"md\"` outside one."
|
|
46
|
+
"description": "Rung of the control ladder. Defaults to the enclosing {@link ToggleGroup }'s\nrung, or `\"md\"` outside one.",
|
|
47
|
+
"control": {
|
|
48
|
+
"kind": "enum",
|
|
49
|
+
"members": [
|
|
50
|
+
"sm",
|
|
51
|
+
"md",
|
|
52
|
+
"lg"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
30
55
|
},
|
|
31
56
|
{
|
|
32
57
|
"name": "icon",
|
|
33
58
|
"type": "ElementType<any, keyof IntrinsicElements>",
|
|
34
59
|
"required": false,
|
|
35
60
|
"defaultValue": null,
|
|
36
|
-
"description": "Optional leading icon component (e.g. a lucide icon). Rendered `aria-hidden`\nand sized to the density icon token. With no `children` the toggle collapses\nto a square target instead of a wide pill."
|
|
61
|
+
"description": "Optional leading icon component (e.g. a lucide icon). Rendered `aria-hidden`\nand sized to the density icon token. With no `children` the toggle collapses\nto a square target instead of a wide pill.",
|
|
62
|
+
"control": {
|
|
63
|
+
"kind": "opaque",
|
|
64
|
+
"fixture": "icon.play"
|
|
65
|
+
}
|
|
37
66
|
}
|
|
38
67
|
],
|
|
39
68
|
"typeReferences": [
|
|
@@ -14,42 +14,62 @@
|
|
|
14
14
|
"type": "Record<string, string>",
|
|
15
15
|
"required": true,
|
|
16
16
|
"defaultValue": null,
|
|
17
|
-
"description": "Current values, keyed by `--cue-*` property."
|
|
17
|
+
"description": "Current values, keyed by `--cue-*` property.",
|
|
18
|
+
"control": {
|
|
19
|
+
"kind": "opaque"
|
|
20
|
+
}
|
|
18
21
|
},
|
|
19
22
|
{
|
|
20
23
|
"name": "overridden",
|
|
21
24
|
"type": "ReadonlySet<string>",
|
|
22
25
|
"required": true,
|
|
23
26
|
"defaultValue": null,
|
|
24
|
-
"description": "Which properties carry an override rather than the preset's value."
|
|
27
|
+
"description": "Which properties carry an override rather than the preset's value.",
|
|
28
|
+
"control": {
|
|
29
|
+
"kind": "opaque"
|
|
30
|
+
}
|
|
25
31
|
},
|
|
26
32
|
{
|
|
27
33
|
"name": "onTokenChange",
|
|
28
34
|
"type": "(token: string, value: string) => void",
|
|
29
35
|
"required": true,
|
|
30
36
|
"defaultValue": null,
|
|
31
|
-
"description": "Called with the `--cue-*` property and its new value."
|
|
37
|
+
"description": "Called with the `--cue-*` property and its new value.",
|
|
38
|
+
"control": {
|
|
39
|
+
"kind": "callback",
|
|
40
|
+
"fixture": "callback.log"
|
|
41
|
+
}
|
|
32
42
|
},
|
|
33
43
|
{
|
|
34
44
|
"name": "onTokenReset",
|
|
35
45
|
"type": "(token: string) => void",
|
|
36
46
|
"required": true,
|
|
37
47
|
"defaultValue": null,
|
|
38
|
-
"description": "Called with the `--cue-*` property to put back to the preset's value."
|
|
48
|
+
"description": "Called with the `--cue-*` property to put back to the preset's value.",
|
|
49
|
+
"control": {
|
|
50
|
+
"kind": "callback",
|
|
51
|
+
"fixture": "callback.log"
|
|
52
|
+
}
|
|
39
53
|
},
|
|
40
54
|
{
|
|
41
55
|
"name": "groups",
|
|
42
56
|
"type": "readonly TokenGroup[]",
|
|
43
57
|
"required": false,
|
|
44
58
|
"defaultValue": "[\n {\n id: \"ground\",\n label: \"Ground & surfaces\",\n tokens: [\"bg\", \"sunken\", \"surface-1\", \"surface-2\", \"surface-3\", \"data-ground\", \"scrim\"],\n },\n { id: \"ink\", label: \"Ink\", tokens: [\"fg\", \"fg-muted\", \"fg-subtle\"] },\n { id: \"borders\", label: \"Borders\", tokens: [\"border\", \"border-strong\", \"border-overlay\"] },\n {\n id: \"accent\",\n label: \"Accent\",\n tokens: [\"accent\", \"accent-hover\", \"accent-fg\", \"focus\", \"selection\"],\n },\n {\n id: \"status\",\n label: \"Status\",\n // `stream` is the live hue rather than a sixth tone, and it sits in this\n // group because this is where somebody looking for \"the colour a running\n // tool is\" will look for it. `warn-fg` and `danger-fg` each sit next to the\n // tone they are chosen against: they are the inks on the two solid fills\n // this system paints, and moving a tone without looking at its ink is how a\n // confirm button stops being readable.\n tokens: [\"ok\", \"busy\", \"warn\", \"warn-fg\", \"danger\", \"danger-fg\", \"info\", \"stream\"],\n },\n]",
|
|
45
|
-
"description": "Groups to render. Defaults to {@link COLOR_TOKEN_GROUPS}."
|
|
59
|
+
"description": "Groups to render. Defaults to {@link COLOR_TOKEN_GROUPS}.",
|
|
60
|
+
"control": {
|
|
61
|
+
"kind": "array"
|
|
62
|
+
}
|
|
46
63
|
},
|
|
47
64
|
{
|
|
48
65
|
"name": "className",
|
|
49
66
|
"type": "string",
|
|
50
67
|
"required": false,
|
|
51
68
|
"defaultValue": null,
|
|
52
|
-
"description": "Extra classes for the list."
|
|
69
|
+
"description": "Extra classes for the list.",
|
|
70
|
+
"control": {
|
|
71
|
+
"kind": "string"
|
|
72
|
+
}
|
|
53
73
|
}
|
|
54
74
|
],
|
|
55
75
|
"typeReferences": [],
|
|
@@ -65,7 +85,6 @@
|
|
|
65
85
|
"--cue-fg-subtle",
|
|
66
86
|
"--cue-font-mono",
|
|
67
87
|
"--cue-font-sans",
|
|
68
|
-
"--cue-font-scale",
|
|
69
88
|
"--cue-space-2",
|
|
70
89
|
"--cue-space-4",
|
|
71
90
|
"--cue-text-label",
|