@mcp-b/react-components 0.16.1 → 0.17.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 (284) hide show
  1. package/dist/{AgentChat-CrlpbvQJ.d.ts → AgentChat-CRuMi1Pb.d.ts} +4 -10
  2. package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
  3. package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
  4. package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Co1noLbC.js} +2 -2
  5. package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-Dnpr88ZQ.d.ts} +2 -2
  6. package/dist/Collapsible-N64ASIQr.d.ts +119 -0
  7. package/dist/{Combobox-B9Fcd6q-.d.ts → Combobox-CYc37s5l.d.ts} +11 -33
  8. package/dist/{FileTree-CkVbIMWV.js → FileTree-B7bBsUyU.js} +7 -7
  9. package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
  10. package/dist/{Message-BkMdE3bS.js → Message-C4eYRogZ.js} +3 -3
  11. package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-BNrZlY_Y.js} +5 -5
  12. package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-OLfXPuHM.d.ts} +39 -67
  13. package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
  14. package/dist/{Select-BeEsefzh.d.ts → Select-CwSqP07Y.d.ts} +14 -42
  15. package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-9zddXDQo.d.ts} +5 -19
  16. package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-DInElus-.js} +53 -26
  17. package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-BgesTfZ4.d.ts} +12 -4
  18. package/dist/{ThinkChatContext-C3Eb1Xpi.d.ts → ThinkChatContext-DrsZqdaO.d.ts} +1 -1
  19. package/dist/ThinkRecoveryNotice-DFIcG9UX.d.ts +19 -0
  20. package/dist/{Toggle-CAAlNl-M.d.ts → Toggle-DaXpe1Lc.d.ts} +1 -1
  21. package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-yseEWkOC.d.ts} +3 -4
  22. package/dist/{Workspace-D39LxGvP.d.ts → Workspace-C9RFoxcu.d.ts} +1 -1
  23. package/dist/WorkspaceExplorer-sZewzT2O.d.ts +32 -0
  24. package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-C8UzuSH4.d.ts} +1 -1
  25. package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-DNdGAEiX.js} +5 -5
  26. package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-B1ykV1dS.js} +15 -29
  27. package/dist/class-names-Bk-QLWWI.js +11 -0
  28. package/dist/components/Accordion.d.ts +5 -15
  29. package/dist/components/Accordion.js +11 -10
  30. package/dist/components/Activity.d.ts +5 -10
  31. package/dist/components/Activity.js +2 -2
  32. package/dist/components/AgentActivity.js +1 -1
  33. package/dist/components/AgentActivityPreview.js +2 -2
  34. package/dist/components/AgentAttention.d.ts +1 -1
  35. package/dist/components/AgentAttention.js +1 -1
  36. package/dist/components/AgentChat.d.ts +2 -2
  37. package/dist/components/AgentChat.js +27 -164
  38. package/dist/components/AgentChatMessageEditor.js +1 -1
  39. package/dist/components/AgentConnection.js +4 -4
  40. package/dist/components/AgentMessageParts.d.ts +2 -0
  41. package/dist/components/AgentMessageParts.js +119 -0
  42. package/dist/components/AgentToolDetail.d.ts +55 -0
  43. package/dist/components/AgentToolDetail.js +98 -0
  44. package/dist/components/AgentToolRunsContext.d.ts +2 -0
  45. package/dist/components/AgentToolRunsContext.js +16 -0
  46. package/dist/components/AlertDialog.d.ts +7 -19
  47. package/dist/components/AlertDialog.js +21 -32
  48. package/dist/components/AppTopBar.d.ts +4 -1
  49. package/dist/components/AppTopBar.js +5 -5
  50. package/dist/components/Approval.d.ts +102 -0
  51. package/dist/components/Approval.js +227 -0
  52. package/dist/components/Artifact.d.ts +2 -4
  53. package/dist/components/Artifact.js +3 -3
  54. package/dist/components/Autocomplete.d.ts +11 -33
  55. package/dist/components/Autocomplete.js +23 -30
  56. package/dist/components/Avatar.d.ts +3 -11
  57. package/dist/components/Avatar.js +13 -12
  58. package/dist/components/BrowserLiveView.js +2 -2
  59. package/dist/components/BrowserReplay.js +2 -2
  60. package/dist/components/BrowserRunPanel.js +58 -78
  61. package/dist/components/Button.js +4 -9
  62. package/dist/components/ChainOfThought.d.ts +5 -11
  63. package/dist/components/ChainOfThought.js +3 -2
  64. package/dist/components/ChatGptSignInScreen.js +3 -3
  65. package/dist/components/Checkbox.d.ts +2 -4
  66. package/dist/components/Checkbox.js +6 -5
  67. package/dist/components/CheckboxGroup.d.ts +1 -3
  68. package/dist/components/CheckboxGroup.js +15 -14
  69. package/dist/components/Checkpoint.d.ts +64 -0
  70. package/dist/components/Checkpoint.js +63 -0
  71. package/dist/components/CodeBlock.d.ts +1 -1
  72. package/dist/components/CodeBlock.js +1 -1
  73. package/dist/components/CodexModelSelector.d.ts +1 -1
  74. package/dist/components/CodexModelSelector.js +2 -2
  75. package/dist/components/Collapsible.d.ts +1 -124
  76. package/dist/components/Collapsible.js +7 -10
  77. package/dist/components/Combobox.d.ts +1 -1
  78. package/dist/components/Combobox.js +23 -30
  79. package/dist/components/Commit.d.ts +5 -11
  80. package/dist/components/Commit.js +6 -5
  81. package/dist/components/Context.js +1 -1
  82. package/dist/components/ContextMenu.d.ts +21 -37
  83. package/dist/components/ContextMenu.js +34 -51
  84. package/dist/components/Conversation.d.ts +2 -4
  85. package/dist/components/Conversation.js +2 -2
  86. package/dist/components/DescriptionListParts.js +1 -1
  87. package/dist/components/Dialog.d.ts +6 -17
  88. package/dist/components/Dialog.js +17 -24
  89. package/dist/components/EnvironmentVariables.d.ts +1 -1
  90. package/dist/components/EnvironmentVariables.js +4 -3
  91. package/dist/components/Field.d.ts +17 -20
  92. package/dist/components/Field.js +16 -16
  93. package/dist/components/Fieldset.d.ts +2 -7
  94. package/dist/components/Fieldset.js +7 -6
  95. package/dist/components/FileTree.js +1 -1
  96. package/dist/components/Form.d.ts +1 -4
  97. package/dist/components/Form.js +3 -2
  98. package/dist/components/GithubMotionMark.js +1 -1
  99. package/dist/components/InlineCitation.d.ts +66 -0
  100. package/dist/components/InlineCitation.js +142 -0
  101. package/dist/components/Input.d.ts +1 -4
  102. package/dist/components/Input.js +3 -2
  103. package/dist/components/Marker.js +1 -1
  104. package/dist/components/McpConnectionRequest.js +2 -2
  105. package/dist/components/McpServerPicker.d.ts +1 -1
  106. package/dist/components/McpServerPicker.js +6 -5
  107. package/dist/components/Menu.d.ts +1 -1
  108. package/dist/components/Menu.js +33 -52
  109. package/dist/components/Menubar.d.ts +22 -43
  110. package/dist/components/Menubar.js +36 -53
  111. package/dist/components/Message.d.ts +3 -6
  112. package/dist/components/Message.js +1 -1
  113. package/dist/components/MessageScroller.d.ts +1 -1
  114. package/dist/components/MessageScroller.js +3 -3
  115. package/dist/components/Meter.d.ts +5 -20
  116. package/dist/components/Meter.js +11 -10
  117. package/dist/components/ModelSelector.d.ts +2 -6
  118. package/dist/components/ModelSelector.js +1 -1
  119. package/dist/components/NavigationMenu.d.ts +11 -33
  120. package/dist/components/NavigationMenu.js +23 -30
  121. package/dist/components/NumberField.d.ts +6 -24
  122. package/dist/components/NumberField.js +13 -12
  123. package/dist/components/Plan.d.ts +103 -0
  124. package/dist/components/Plan.js +113 -0
  125. package/dist/components/Popover.d.ts +9 -36
  126. package/dist/components/Popover.js +23 -34
  127. package/dist/components/PreviewCard.d.ts +6 -24
  128. package/dist/components/PreviewCard.js +13 -24
  129. package/dist/components/PricingBillingToggle.js +1 -1
  130. package/dist/components/PricingFAQ.js +1 -1
  131. package/dist/components/PricingPlanCard.js +3 -3
  132. package/dist/components/PricingUsageCalculator.js +2 -2
  133. package/dist/components/Progress.d.ts +3 -8
  134. package/dist/components/Progress.js +7 -10
  135. package/dist/components/PromptInput.d.ts +2 -2
  136. package/dist/components/PromptInput.js +52 -200
  137. package/dist/components/Queue.d.ts +6 -16
  138. package/dist/components/Queue.js +2 -2
  139. package/dist/components/RadioGroup.d.ts +3 -8
  140. package/dist/components/RadioGroup.js +7 -10
  141. package/dist/components/Reasoning.d.ts +4 -8
  142. package/dist/components/Reasoning.js +3 -3
  143. package/dist/components/ResizableSidePanel.js +2 -2
  144. package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
  145. package/dist/components/ResponsiveSidebarShell.js +4 -3
  146. package/dist/components/ScrollArea.d.ts +5 -20
  147. package/dist/components/ScrollArea.js +11 -10
  148. package/dist/components/Select.d.ts +1 -1
  149. package/dist/components/Select.js +32 -55
  150. package/dist/components/Separator.d.ts +1 -5
  151. package/dist/components/Separator.js +3 -6
  152. package/dist/components/Slider.d.ts +6 -19
  153. package/dist/components/Slider.js +15 -14
  154. package/dist/components/Sources.d.ts +4 -9
  155. package/dist/components/Sources.js +3 -2
  156. package/dist/components/Stepper.js +2 -2
  157. package/dist/components/SubagentRunDetails.js +1 -1
  158. package/dist/components/SubagentRunIndicator.js +2 -2
  159. package/dist/components/SubagentRunList.js +1 -2
  160. package/dist/components/SubagentRunSelector.d.ts +2 -11
  161. package/dist/components/SubagentRunSelector.js +16 -15
  162. package/dist/components/Switch.d.ts +2 -5
  163. package/dist/components/Switch.js +5 -8
  164. package/dist/components/Tabs.d.ts +2 -2
  165. package/dist/components/Tabs.js +10 -16
  166. package/dist/components/Task.d.ts +4 -9
  167. package/dist/components/Task.js +4 -3
  168. package/dist/components/Terminal.d.ts +2 -3
  169. package/dist/components/Terminal.js +3 -3
  170. package/dist/components/TestResults.d.ts +4 -9
  171. package/dist/components/TestResults.js +3 -2
  172. package/dist/components/Textarea.js +1 -1
  173. package/dist/components/ThemeModeControl.js +1 -1
  174. package/dist/components/ThinkChat.d.ts +21 -11
  175. package/dist/components/ThinkChat.js +5 -3
  176. package/dist/components/ThinkChatActivity.d.ts +1 -1
  177. package/dist/components/ThinkChatActivity.js +26 -7
  178. package/dist/components/ThinkChatContext.d.ts +1 -1
  179. package/dist/components/ThinkChatToolPanels.js +2 -2
  180. package/dist/components/ThinkExecutionDetail.js +2 -2
  181. package/dist/components/ThinkExecutionStatus.js +2 -2
  182. package/dist/components/ThinkExecutionWorkbench.js +2 -2
  183. package/dist/components/ThinkFullApp.d.ts +33 -9
  184. package/dist/components/ThinkFullApp.js +98 -69
  185. package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
  186. package/dist/components/ThinkFullAppViewSwitch.js +2 -2
  187. package/dist/components/ThinkPendingApproval.d.ts +60 -0
  188. package/dist/components/ThinkPendingApproval.js +99 -0
  189. package/dist/components/ThinkRecoveryNotice.d.ts +2 -0
  190. package/dist/components/ThinkRecoveryNotice.js +40 -0
  191. package/dist/components/ThinkRoutine.js +1 -0
  192. package/dist/components/ThinkRoutineBrowser.js +6 -6
  193. package/dist/components/ThinkRoutineDetail.js +1 -1
  194. package/dist/components/ThinkRoutineForm.js +2 -2
  195. package/dist/components/ThinkRoutineLibrary.d.ts +9 -0
  196. package/dist/components/ThinkRoutineLibrary.js +67 -20
  197. package/dist/components/ThinkRoutineRuns.js +1 -1
  198. package/dist/components/ThinkThreadPicker.js +2 -2
  199. package/dist/components/ThinkThreadShell.d.ts +1 -1
  200. package/dist/components/Toast.d.ts +7 -28
  201. package/dist/components/Toast.js +15 -14
  202. package/dist/components/Toggle.d.ts +1 -1
  203. package/dist/components/Toggle.js +5 -5
  204. package/dist/components/ToggleGroup.d.ts +1 -1
  205. package/dist/components/ToggleGroup.js +8 -15
  206. package/dist/components/ToolApproval.d.ts +28 -0
  207. package/dist/components/ToolApproval.js +35 -0
  208. package/dist/components/ToolInvocation.d.ts +26 -0
  209. package/dist/components/ToolInvocation.js +72 -0
  210. package/dist/components/Toolbar.d.ts +6 -24
  211. package/dist/components/Toolbar.js +13 -12
  212. package/dist/components/Tooltip.d.ts +3 -9
  213. package/dist/components/Tooltip.js +7 -10
  214. package/dist/components/WebPreview.d.ts +1 -2
  215. package/dist/components/WebPreview.js +4 -3
  216. package/dist/components/Workspace.d.ts +1 -1
  217. package/dist/components/Workspace.js +5 -20
  218. package/dist/components/WorkspaceBrowser.d.ts +1 -1
  219. package/dist/components/WorkspaceBrowser.js +3 -3
  220. package/dist/components/WorkspaceExplorer.d.ts +3 -31
  221. package/dist/components/WorkspaceExplorer.js +3 -3
  222. package/dist/components/WorkspaceFile.d.ts +1 -1
  223. package/dist/components/WorkspaceFileView.d.ts +1 -1
  224. package/dist/components/WorkspaceFileView.js +1 -1
  225. package/dist/components/WorkspaceHeader.js +1 -1
  226. package/dist/components/WorkspaceLink.js +1 -1
  227. package/dist/components/icons.d.ts +2 -2
  228. package/dist/components/icons.js +2 -2
  229. package/dist/{copy-button-DtPMgN7e.d.ts → copy-button-CQx3LQAC.d.ts} +1 -2
  230. package/dist/{copy-button-Dejn5heL.js → copy-button-cYsJBauI.js} +1 -1
  231. package/dist/{icons-CpfUer49.js → icons--FqCZEc3.js} +3 -2
  232. package/dist/{icons-GQd1xF4e.d.ts → icons-DpUqY8Mp.d.ts} +6 -1
  233. package/dist/styles/agent-activity-preview.css +4 -0
  234. package/dist/styles/agent-chat.css +0 -41
  235. package/dist/styles/agent-connection.css +0 -12
  236. package/dist/styles/agent-tool-detail.css +54 -0
  237. package/dist/styles/approval.css +172 -0
  238. package/dist/styles/artifact.css +0 -12
  239. package/dist/styles/browser-run-panel.css +5 -2
  240. package/dist/styles/chain-of-thought.css +0 -8
  241. package/dist/styles/checkpoint.css +58 -0
  242. package/dist/styles/combobox.css +1 -1
  243. package/dist/styles/commit.css +0 -21
  244. package/dist/styles/context-menu.css +0 -8
  245. package/dist/styles/environment-variables.css +0 -13
  246. package/dist/styles/file-tree.css +0 -16
  247. package/dist/styles/index.css +8 -4
  248. package/dist/styles/inline-citation.css +107 -0
  249. package/dist/styles/mcp-server-picker.css +0 -30
  250. package/dist/styles/menu.css +0 -29
  251. package/dist/styles/menubar.css +0 -8
  252. package/dist/styles/message-scroller.css +0 -12
  253. package/dist/styles/message.css +0 -12
  254. package/dist/styles/model-selector.css +0 -20
  255. package/dist/styles/plan.css +127 -0
  256. package/dist/styles/popover.css +0 -36
  257. package/dist/styles/prompt-input.css +2 -195
  258. package/dist/styles/recipes.css +114 -5
  259. package/dist/styles/responsive-sidebar-shell.css +16 -19
  260. package/dist/styles/sources.css +0 -8
  261. package/dist/styles/subagent-run.css +12 -70
  262. package/dist/styles/task.css +0 -16
  263. package/dist/styles/test-results.css +0 -13
  264. package/dist/styles/think-full-app.css +12 -38
  265. package/dist/styles/think-routine-library.css +12 -20
  266. package/dist/styles/think-thread-picker.css +15 -0
  267. package/dist/styles/toast.css +0 -7
  268. package/dist/styles/utilities.css +31 -0
  269. package/dist/styles/web-preview.css +0 -21
  270. package/dist/styles/workspace-explorer.css +5 -55
  271. package/dist/think-agent-Cip5KAPj.d.ts +7 -0
  272. package/dist/utils/codex-model-catalog.d.ts +4 -4
  273. package/dist/utils/structured-code.d.ts +1 -1
  274. package/dist/workspace-path-L_KmjRjq.js +26 -0
  275. package/package.json +3 -4
  276. package/dist/class-names-9UtZwb0J.js +0 -12
  277. package/dist/components/AppFrame.d.ts +0 -24
  278. package/dist/components/AppFrame.js +0 -25
  279. package/dist/components/Shell.d.ts +0 -163
  280. package/dist/components/Shell.js +0 -137
  281. package/dist/components/SubagentRun.d.ts +0 -86
  282. package/dist/components/SubagentRun.js +0 -108
  283. package/dist/styles/app-frame.css +0 -15
  284. package/dist/styles/shell.css +0 -122
@@ -1,163 +0,0 @@
1
- import * as React from "react";
2
-
3
- //#region src/components/Shell.d.ts
4
- /**
5
- * Props for the Shell.Root component.
6
- */
7
- interface ShellRootProps extends React.HTMLAttributes<HTMLDivElement> {
8
- /** Additional CSS class names */
9
- className?: string;
10
- /** The heading text displayed in the header */
11
- heading?: string;
12
- }
13
- /**
14
- * Props for the Shell.ActionBar component.
15
- */
16
- interface ShellActionBarProps extends React.HTMLAttributes<HTMLDivElement> {
17
- /** Additional CSS class names */
18
- className?: string;
19
- }
20
- /**
21
- * Props for the Shell.Action component.
22
- */
23
- interface ShellActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
24
- /** Additional CSS class names */
25
- className?: string;
26
- /** Icon to display */
27
- icon?: React.ReactNode;
28
- /** Whether this action is currently active */
29
- active?: boolean;
30
- /** Accessible label for the action */
31
- label?: string;
32
- }
33
- /**
34
- * Props for the Shell.Panel component.
35
- */
36
- interface ShellPanelProps extends React.HTMLAttributes<HTMLDivElement> {
37
- /** Additional CSS class names */
38
- className?: string;
39
- /** The panel heading */
40
- heading?: string;
41
- /** Whether the panel is visible */
42
- open?: boolean;
43
- }
44
- /**
45
- * Props for the Shell.Content component.
46
- */
47
- interface ShellContentProps extends React.HTMLAttributes<HTMLDivElement> {
48
- /** Additional CSS class names */
49
- className?: string;
50
- }
51
- /**
52
- * Root container for the shell layout.
53
- * Provides a structured layout with optional header, action bar, panel, and content areas.
54
- *
55
- * Built internally for dense tools with side actions and optional panels. Use
56
- * for app-like work surfaces, not marketing pages or generic sections.
57
- *
58
- * Styling consumes Sigvelo layout, border, surface, spacing, and focus tokens.
59
- * Actions need labels because the visible affordance is usually icon-only.
60
- *
61
- * @example
62
- * ```tsx
63
- * <Shell.Root heading="Project">
64
- * <Shell.ActionBar>
65
- * <Shell.Action icon={<FilterIcon />} label="Filter" />
66
- * </Shell.ActionBar>
67
- * <Shell.Content>Map or tool content</Shell.Content>
68
- * </Shell.Root>
69
- * ```
70
- */
71
- declare function ShellRoot({
72
- className,
73
- heading,
74
- children,
75
- ref,
76
- ...props
77
- }: ShellRootProps & {
78
- ref?: React.Ref<HTMLDivElement>;
79
- }): React.JSX.Element;
80
- /**
81
- * Container for action buttons that toggle panels.
82
- * Typically placed on the left side of the shell.
83
- */
84
- declare function ShellActionBar({
85
- className,
86
- children,
87
- ref,
88
- ...props
89
- }: ShellActionBarProps & {
90
- ref?: React.Ref<HTMLDivElement>;
91
- }): React.JSX.Element;
92
- /**
93
- * An action button within the action bar.
94
- */
95
- declare function ShellAction({
96
- className,
97
- icon,
98
- active,
99
- label,
100
- ref,
101
- ...props
102
- }: ShellActionProps & {
103
- ref?: React.Ref<HTMLButtonElement>;
104
- }): React.JSX.Element;
105
- /**
106
- * A collapsible panel that slides in from the side.
107
- */
108
- declare function ShellPanel({
109
- className,
110
- heading,
111
- open,
112
- children,
113
- ref,
114
- ...props
115
- }: ShellPanelProps & {
116
- ref?: React.Ref<HTMLDivElement>;
117
- }): React.JSX.Element;
118
- /**
119
- * The main content area of the shell.
120
- */
121
- declare function ShellContent({
122
- className,
123
- children,
124
- ref,
125
- ...props
126
- }: ShellContentProps & {
127
- ref?: React.Ref<HTMLDivElement>;
128
- }): React.JSX.Element;
129
- /**
130
- * A shell layout component with action bar, collapsible panel, and content areas.
131
- * Useful for map applications and other interactive tools.
132
- *
133
- * @example
134
- * ```tsx
135
- * const [filterOpen, setFilterOpen] = useState(false);
136
- *
137
- * <Shell.Root heading="My Map Application">
138
- * <Shell.ActionBar>
139
- * <Shell.Action
140
- * icon={<FilterIcon />}
141
- * active={filterOpen}
142
- * onClick={() => setFilterOpen(!filterOpen)}
143
- * label="Filter"
144
- * />
145
- * </Shell.ActionBar>
146
- * <Shell.Panel heading="Filter" open={filterOpen}>
147
- * <p>Filter controls here</p>
148
- * </Shell.Panel>
149
- * <Shell.Content>
150
- * <div id="map" />
151
- * </Shell.Content>
152
- * </Shell.Root>
153
- * ```
154
- */
155
- declare const Shell: {
156
- Root: typeof ShellRoot;
157
- ActionBar: typeof ShellActionBar;
158
- Action: typeof ShellAction;
159
- Panel: typeof ShellPanel;
160
- Content: typeof ShellContent;
161
- };
162
- //#endregion
163
- export { Shell, ShellActionBarProps, ShellActionProps, ShellContentProps, ShellPanelProps, ShellRootProps };
@@ -1,137 +0,0 @@
1
- import "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- //#region src/components/Shell.tsx
4
- /**
5
- * Root container for the shell layout.
6
- * Provides a structured layout with optional header, action bar, panel, and content areas.
7
- *
8
- * Built internally for dense tools with side actions and optional panels. Use
9
- * for app-like work surfaces, not marketing pages or generic sections.
10
- *
11
- * Styling consumes Sigvelo layout, border, surface, spacing, and focus tokens.
12
- * Actions need labels because the visible affordance is usually icon-only.
13
- *
14
- * @example
15
- * ```tsx
16
- * <Shell.Root heading="Project">
17
- * <Shell.ActionBar>
18
- * <Shell.Action icon={<FilterIcon />} label="Filter" />
19
- * </Shell.ActionBar>
20
- * <Shell.Content>Map or tool content</Shell.Content>
21
- * </Shell.Root>
22
- * ```
23
- */
24
- function ShellRoot({ className = "", heading, children, ref, ...props }) {
25
- return /* @__PURE__ */ jsxs("div", {
26
- ref,
27
- className: ["shell", className].filter(Boolean).join(" "),
28
- ...props,
29
- children: [heading && /* @__PURE__ */ jsx("header", {
30
- className: "shell__header",
31
- children: /* @__PURE__ */ jsx("h3", {
32
- className: "shell__heading",
33
- children: heading
34
- })
35
- }), /* @__PURE__ */ jsx("div", {
36
- className: "shell__body",
37
- children
38
- })]
39
- });
40
- }
41
- /**
42
- * Container for action buttons that toggle panels.
43
- * Typically placed on the left side of the shell.
44
- */
45
- function ShellActionBar({ className = "", children, ref, ...props }) {
46
- return /* @__PURE__ */ jsx("div", {
47
- ref,
48
- className: ["shell__action-bar", className].filter(Boolean).join(" "),
49
- ...props,
50
- children
51
- });
52
- }
53
- /**
54
- * An action button within the action bar.
55
- */
56
- function ShellAction({ className = "", icon, active, label, ref, ...props }) {
57
- return /* @__PURE__ */ jsx("button", {
58
- ref,
59
- className: [
60
- "shell__action",
61
- active && "shell__action--active",
62
- className
63
- ].filter(Boolean).join(" "),
64
- "aria-label": label,
65
- "aria-pressed": active,
66
- ...props,
67
- children: icon
68
- });
69
- }
70
- /**
71
- * A collapsible panel that slides in from the side.
72
- */
73
- function ShellPanel({ className = "", heading, open = false, children, ref, ...props }) {
74
- return /* @__PURE__ */ jsxs("div", {
75
- ref,
76
- className: [
77
- "shell__panel",
78
- open && "shell__panel--open",
79
- className
80
- ].filter(Boolean).join(" "),
81
- hidden: !open,
82
- ...props,
83
- children: [heading && /* @__PURE__ */ jsx("div", {
84
- className: "shell__panel-heading",
85
- children: heading
86
- }), /* @__PURE__ */ jsx("div", {
87
- className: "shell__panel-content",
88
- children
89
- })]
90
- });
91
- }
92
- /**
93
- * The main content area of the shell.
94
- */
95
- function ShellContent({ className = "", children, ref, ...props }) {
96
- return /* @__PURE__ */ jsx("div", {
97
- ref,
98
- className: ["shell__content", className].filter(Boolean).join(" "),
99
- ...props,
100
- children
101
- });
102
- }
103
- /**
104
- * A shell layout component with action bar, collapsible panel, and content areas.
105
- * Useful for map applications and other interactive tools.
106
- *
107
- * @example
108
- * ```tsx
109
- * const [filterOpen, setFilterOpen] = useState(false);
110
- *
111
- * <Shell.Root heading="My Map Application">
112
- * <Shell.ActionBar>
113
- * <Shell.Action
114
- * icon={<FilterIcon />}
115
- * active={filterOpen}
116
- * onClick={() => setFilterOpen(!filterOpen)}
117
- * label="Filter"
118
- * />
119
- * </Shell.ActionBar>
120
- * <Shell.Panel heading="Filter" open={filterOpen}>
121
- * <p>Filter controls here</p>
122
- * </Shell.Panel>
123
- * <Shell.Content>
124
- * <div id="map" />
125
- * </Shell.Content>
126
- * </Shell.Root>
127
- * ```
128
- */
129
- const Shell = {
130
- Root: ShellRoot,
131
- ActionBar: ShellActionBar,
132
- Action: ShellAction,
133
- Panel: ShellPanel,
134
- Content: ShellContent
135
- };
136
- //#endregion
137
- export { Shell };
@@ -1,86 +0,0 @@
1
- import { Collapsible } from "./Collapsible.js";
2
- import { BadgeProps } from "./Badge.js";
3
- import { SubagentRunIndicator, SubagentRunIndicatorProps, getSubagentRunName, getSubagentRunTooltip } from "./SubagentRunIndicator.js";
4
- import { SubagentRunList, SubagentRunListProps } from "./SubagentRunList.js";
5
- import { SubagentRunSelector, SubagentRunSelectorProps } from "./SubagentRunSelector.js";
6
- import { SubagentRunActions, SubagentRunActionsProps, SubagentRunMilestone, SubagentRunMilestoneProps, SubagentRunMilestones, SubagentRunMilestonesProps, SubagentRunProgress, SubagentRunProgressProps } from "./SubagentRunDetails.js";
7
- import * as React from "react";
8
-
9
- //#region src/components/SubagentRun.d.ts
10
- interface SubagentRunProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "className" | "unstyled"> {
11
- className?: string;
12
- }
13
- /**
14
- * Transport-neutral inline disclosure for one delegated agent run.
15
- *
16
- * @deprecated Retained subagent transcripts should open in an adjacent
17
- * `ThinkFullApp` workbench panel. Use `SubagentRunSelector` in the transcript.
18
- */
19
- declare function SubagentRun({
20
- className,
21
- ref,
22
- ...props
23
- }: SubagentRunProps): React.JSX.Element;
24
- interface SubagentRunTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "className" | "unstyled"> {
25
- className?: string;
26
- }
27
- /**
28
- * @deprecated Retained subagent transcripts should not expand inline. Use
29
- * `SubagentRunSelector` and render the child in a `ThinkFullApp` workbench panel.
30
- */
31
- declare function SubagentRunTrigger({
32
- className,
33
- children,
34
- ref,
35
- ...props
36
- }: SubagentRunTriggerProps): React.JSX.Element;
37
- interface SubagentRunHeadingProps extends React.HTMLAttributes<HTMLSpanElement> {}
38
- declare function SubagentRunHeading({
39
- className,
40
- ref,
41
- ...props
42
- }: SubagentRunHeadingProps & {
43
- ref?: React.Ref<HTMLSpanElement>;
44
- }): React.JSX.Element;
45
- interface SubagentRunTitleProps extends React.HTMLAttributes<HTMLSpanElement> {}
46
- declare function SubagentRunTitle({
47
- className,
48
- ref,
49
- ...props
50
- }: SubagentRunTitleProps & {
51
- ref?: React.Ref<HTMLSpanElement>;
52
- }): React.JSX.Element;
53
- interface SubagentRunDescriptionProps extends React.HTMLAttributes<HTMLSpanElement> {}
54
- declare function SubagentRunDescription({
55
- className,
56
- ref,
57
- ...props
58
- }: SubagentRunDescriptionProps & {
59
- ref?: React.Ref<HTMLSpanElement>;
60
- }): React.JSX.Element;
61
- type SubagentRunStatusTone = "active" | "complete" | "error" | "stopped" | "warning";
62
- interface SubagentRunStatusProps extends Omit<BadgeProps, "color"> {
63
- tone?: SubagentRunStatusTone;
64
- }
65
- /** Visible status label. A transport adapter owns any debounced live announcement. */
66
- declare function SubagentRunStatus({
67
- className,
68
- tone,
69
- size,
70
- ...props
71
- }: SubagentRunStatusProps): React.JSX.Element;
72
- interface SubagentRunContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "className" | "unstyled"> {
73
- className?: string;
74
- }
75
- /**
76
- * @deprecated Retained subagent transcripts should live in an adjacent
77
- * `ThinkFullApp` workbench panel, not below the selector.
78
- */
79
- declare function SubagentRunContent({
80
- className,
81
- children,
82
- ref,
83
- ...props
84
- }: SubagentRunContentProps): React.JSX.Element;
85
- //#endregion
86
- export { SubagentRun, SubagentRunActions, type SubagentRunActionsProps, SubagentRunContent, SubagentRunContentProps, SubagentRunDescription, SubagentRunDescriptionProps, SubagentRunHeading, SubagentRunHeadingProps, SubagentRunIndicator, type SubagentRunIndicatorProps, SubagentRunList, type SubagentRunListProps, SubagentRunMilestone, type SubagentRunMilestoneProps, SubagentRunMilestones, type SubagentRunMilestonesProps, SubagentRunProgress, type SubagentRunProgressProps, SubagentRunProps, SubagentRunSelector, type SubagentRunSelectorProps, SubagentRunStatus, SubagentRunStatusProps, SubagentRunStatusTone, SubagentRunTitle, SubagentRunTitleProps, SubagentRunTrigger, SubagentRunTriggerProps, getSubagentRunName, getSubagentRunTooltip };
@@ -1,108 +0,0 @@
1
- import { Collapsible } from "./Collapsible.js";
2
- import { t as cx } from "../class-names-9UtZwb0J.js";
3
- import { Button } from "./Button.js";
4
- import { Badge } from "./Badge.js";
5
- import { NaniteMark } from "./NaniteScene.js";
6
- import { SubagentRunIndicator, getSubagentRunName, getSubagentRunTooltip } from "./SubagentRunIndicator.js";
7
- import { SubagentRunSelector } from "./SubagentRunSelector.js";
8
- import { SubagentRunList } from "./SubagentRunList.js";
9
- import { SubagentRunActions, SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "./SubagentRunDetails.js";
10
- import "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- //#region src/components/SubagentRun.tsx
13
- /**
14
- * Transport-neutral inline disclosure for one delegated agent run.
15
- *
16
- * @deprecated Retained subagent transcripts should open in an adjacent
17
- * `ThinkFullApp` workbench panel. Use `SubagentRunSelector` in the transcript.
18
- */
19
- function SubagentRun({ className, ref, ...props }) {
20
- return /* @__PURE__ */ jsx(Collapsible.Root, {
21
- ref,
22
- "data-slot": "subagent-run",
23
- className: cx("subagent-run", className),
24
- ...props,
25
- unstyled: true
26
- });
27
- }
28
- /**
29
- * @deprecated Retained subagent transcripts should not expand inline. Use
30
- * `SubagentRunSelector` and render the child in a `ThinkFullApp` workbench panel.
31
- */
32
- function SubagentRunTrigger({ className, children, ref, ...props }) {
33
- return /* @__PURE__ */ jsxs(Collapsible.Trigger, {
34
- ref,
35
- "data-slot": "subagent-run-trigger",
36
- className: cx("subagent-run__trigger", className),
37
- render: /* @__PURE__ */ jsx(Button, {
38
- type: "button",
39
- variant: "outline",
40
- color: "neutral",
41
- size: "sm"
42
- }),
43
- ...props,
44
- unstyled: true,
45
- children: [/* @__PURE__ */ jsx(NaniteMark, {}), /* @__PURE__ */ jsx("span", {
46
- className: "subagent-run__trigger-content",
47
- children
48
- })]
49
- });
50
- }
51
- function SubagentRunHeading({ className, ref, ...props }) {
52
- return /* @__PURE__ */ jsx("span", {
53
- ref,
54
- className: cx("subagent-run__heading", className),
55
- ...props
56
- });
57
- }
58
- function SubagentRunTitle({ className, ref, ...props }) {
59
- return /* @__PURE__ */ jsx("span", {
60
- ref,
61
- className: cx("subagent-run__title", className),
62
- ...props
63
- });
64
- }
65
- function SubagentRunDescription({ className, ref, ...props }) {
66
- return /* @__PURE__ */ jsx("span", {
67
- ref,
68
- className: cx("subagent-run__description", className),
69
- ...props
70
- });
71
- }
72
- const STATUS_COLOR = {
73
- active: "primary",
74
- complete: "success",
75
- error: "destructive",
76
- stopped: "neutral",
77
- warning: "warning"
78
- };
79
- /** Visible status label. A transport adapter owns any debounced live announcement. */
80
- function SubagentRunStatus({ className, tone = "active", size = "sm", ...props }) {
81
- return /* @__PURE__ */ jsx(Badge, {
82
- "data-slot": "subagent-run-status",
83
- "data-tone": tone,
84
- className: cx("subagent-run__status", className),
85
- color: STATUS_COLOR[tone],
86
- size,
87
- ...props
88
- });
89
- }
90
- /**
91
- * @deprecated Retained subagent transcripts should live in an adjacent
92
- * `ThinkFullApp` workbench panel, not below the selector.
93
- */
94
- function SubagentRunContent({ className, children, ref, ...props }) {
95
- return /* @__PURE__ */ jsx(Collapsible.Panel, {
96
- ref,
97
- "data-slot": "subagent-run-content",
98
- className: cx("subagent-run__content", className),
99
- ...props,
100
- unstyled: true,
101
- children: /* @__PURE__ */ jsx("div", {
102
- className: "subagent-run__content-inner",
103
- children
104
- })
105
- });
106
- }
107
- //#endregion
108
- export { SubagentRun, SubagentRunActions, SubagentRunContent, SubagentRunDescription, SubagentRunHeading, SubagentRunIndicator, SubagentRunList, SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress, SubagentRunSelector, SubagentRunStatus, SubagentRunTitle, SubagentRunTrigger, getSubagentRunName, getSubagentRunTooltip };
@@ -1,15 +0,0 @@
1
- .app-frame {
2
- block-size: 100%;
3
- min-block-size: 0;
4
- display: grid;
5
- grid-template-rows: auto minmax(0, 1fr);
6
- overflow: hidden;
7
- color: var(--sigvelo-color-text);
8
- background: var(--sigvelo-color-canvas);
9
- container-type: inline-size;
10
- }
11
-
12
- .app-frame__body {
13
- min-block-size: 0;
14
- overflow: hidden;
15
- }
@@ -1,122 +0,0 @@
1
- /* Shell Component */
2
- .shell {
3
- display: flex;
4
- flex-direction: column;
5
- height: 100%;
6
- min-height: 400px;
7
- border-radius: var(--sigvelo-radius-md);
8
- border: var(--sigvelo-border-style) var(--sigvelo-border-width)
9
- var(--sigvelo-color-neutral-border-muted);
10
- background: var(--sigvelo-color-surface);
11
- overflow: hidden;
12
- }
13
-
14
- .shell__header {
15
- display: flex;
16
- align-items: center;
17
- padding: var(--sigvelo-spacing-3) 1rem;
18
- background: var(--sigvelo-color-neutral-bg-subtle);
19
- border-bottom: var(--sigvelo-border-style) var(--sigvelo-border-width)
20
- var(--sigvelo-color-neutral-border-muted);
21
- }
22
-
23
- .shell__heading {
24
- margin: 0;
25
- font-size: 0.9375rem;
26
- font-weight: var(--sigvelo-font-weight-semibold);
27
- color: var(--sigvelo-color-text);
28
- }
29
-
30
- .shell__body {
31
- display: flex;
32
- flex: 1;
33
- min-height: 0;
34
- position: relative;
35
- }
36
-
37
- /* Action Bar */
38
- .shell__action-bar {
39
- display: flex;
40
- flex-direction: column;
41
- gap: 0.25rem;
42
- padding: 0.5rem;
43
- background: var(--sigvelo-color-neutral-bg-subtle);
44
- border-right: var(--sigvelo-border-style) var(--sigvelo-border-width)
45
- var(--sigvelo-color-neutral-border-muted);
46
- }
47
-
48
- .shell__action {
49
- display: flex;
50
- align-items: center;
51
- justify-content: center;
52
- width: 2.5rem;
53
- height: 2.5rem;
54
- padding: 0;
55
- border: none;
56
- border-radius: var(--sigvelo-radius-md);
57
- background: transparent;
58
- color: var(--sigvelo-color-text-muted);
59
- cursor: pointer;
60
- transition:
61
- background-color 0.15s ease,
62
- color 0.15s ease;
63
- }
64
-
65
- .shell__action:hover {
66
- background: var(--sigvelo-color-neutral-bg-subtle);
67
- color: var(--sigvelo-color-neutral-text-on-subtle);
68
- }
69
-
70
- .shell__action--active {
71
- background: var(--sigvelo-color-primary-bg);
72
- color: var(--sigvelo-color-primary-text-on-bg);
73
- }
74
-
75
- .shell__action--active:hover {
76
- background: color-mix(in oklab, var(--sigvelo-color-primary-bg), black 5%);
77
- color: var(--sigvelo-color-primary-text-on-bg);
78
- }
79
-
80
- .shell__action svg {
81
- width: 1.25rem;
82
- height: 1.25rem;
83
- }
84
-
85
- /* Panel */
86
- .shell__panel {
87
- display: flex;
88
- flex-direction: column;
89
- width: 260px;
90
- max-width: 100%;
91
- background: var(--sigvelo-color-surface);
92
- border-right: var(--sigvelo-border-style) var(--sigvelo-border-width)
93
- var(--sigvelo-color-neutral-border-muted);
94
- overflow: hidden;
95
- }
96
-
97
- .shell__panel[hidden] {
98
- display: none;
99
- }
100
-
101
- .shell__panel-heading {
102
- padding: var(--sigvelo-spacing-3) 1rem;
103
- font-size: var(--sigvelo-text-sm);
104
- font-weight: var(--sigvelo-font-weight-bold);
105
- color: var(--sigvelo-color-text);
106
- border-bottom: var(--sigvelo-border-style) var(--sigvelo-border-width)
107
- var(--sigvelo-color-neutral-border-muted);
108
- }
109
-
110
- .shell__panel-content {
111
- flex: 1;
112
- overflow-y: auto;
113
- padding: 1rem;
114
- }
115
-
116
- /* Content */
117
- .shell__content {
118
- flex: 1;
119
- min-width: 0;
120
- position: relative;
121
- overflow: hidden;
122
- }