@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
@@ -97,8 +97,7 @@ declare function ConversationEmptyState({
97
97
  }: ConversationEmptyStateProps & {
98
98
  ref?: React.Ref<HTMLDivElement>;
99
99
  }): React.JSX.Element;
100
- interface ConversationScrollButtonProps extends Omit<MessageScrollerButtonProps, "children" | "className"> {
101
- className?: string;
100
+ interface ConversationScrollButtonProps extends Omit<MessageScrollerButtonProps, "children"> {
102
101
  /** Accessible label for the button. */
103
102
  label?: string;
104
103
  children?: React.ReactNode;
@@ -126,8 +125,7 @@ declare function ConversationScrollButton({
126
125
  * `### Role\n\n<text>` blocks joined by blank lines.
127
126
  */
128
127
  declare function messagesToMarkdown(messages: ConversationMessage[], formatMessage?: (message: ConversationMessage, index: number) => string): string;
129
- interface ConversationDownloadProps extends Omit<React.ComponentProps<typeof Button>, "onClick" | "children" | "className"> {
130
- className?: string;
128
+ interface ConversationDownloadProps extends Omit<React.ComponentProps<typeof Button>, "onClick" | "children"> {
131
129
  messages: ConversationMessage[];
132
130
  /** Filename for the downloaded Markdown file. */
133
131
  filename?: string;
@@ -1,5 +1,5 @@
1
- import { t as cx } from "../class-names-9UtZwb0J.js";
2
- import { m as DownloadIcon, t as ArrowDownIcon } from "../icons-CpfUer49.js";
1
+ import { t as cx } from "../class-names-Bk-QLWWI.js";
2
+ import { h as DownloadIcon, t as ArrowDownIcon } from "../icons--FqCZEc3.js";
3
3
  import { Button } from "./Button.js";
4
4
  import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
5
5
  import * as React from "react";
@@ -1,4 +1,4 @@
1
- import { t as cx } from "../class-names-9UtZwb0J.js";
1
+ import { t as cx } from "../class-names-Bk-QLWWI.js";
2
2
  import "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/DescriptionListParts.tsx
@@ -5,29 +5,18 @@ import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
5
5
  interface DialogProps extends Dialog$1.Root.Props {}
6
6
  interface DialogTriggerProps extends Dialog$1.Trigger.Props {}
7
7
  interface DialogPortalProps extends Dialog$1.Portal.Props {}
8
- interface DialogBackdropProps extends Omit<Dialog$1.Backdrop.Props, "className"> {
9
- className?: string;
10
- }
11
- interface DialogViewportProps extends Omit<Dialog$1.Viewport.Props, "className"> {
12
- className?: string;
13
- }
14
- interface DialogPopupProps extends Omit<Dialog$1.Popup.Props, "className"> {
15
- className?: string;
8
+ interface DialogBackdropProps extends Dialog$1.Backdrop.Props {}
9
+ interface DialogViewportProps extends Dialog$1.Viewport.Props {}
10
+ interface DialogPopupProps extends Dialog$1.Popup.Props {
16
11
  /**
17
12
  * The size of the dialog.
18
13
  * @default 'md'
19
14
  */
20
15
  size?: "sm" | "md" | "lg" | "fullscreen";
21
16
  }
22
- interface DialogTitleProps extends Omit<Dialog$1.Title.Props, "className"> {
23
- className?: string;
24
- }
25
- interface DialogDescriptionProps extends Omit<Dialog$1.Description.Props, "className"> {
26
- className?: string;
27
- }
28
- interface DialogCloseProps extends Omit<Dialog$1.Close.Props, "className"> {
29
- className?: string;
30
- }
17
+ interface DialogTitleProps extends Dialog$1.Title.Props {}
18
+ interface DialogDescriptionProps extends Dialog$1.Description.Props {}
19
+ interface DialogCloseProps extends Dialog$1.Close.Props {}
31
20
  interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
32
21
  interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
33
22
  /**
@@ -1,3 +1,4 @@
1
+ import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
@@ -30,12 +31,8 @@ function DialogTrigger(props) {
30
31
  ...props
31
32
  });
32
33
  }
33
- function DialogBackdrop({ className = "", ref, ...props }) {
34
- const classes = [
35
- "dialog__backdrop",
36
- "base-ui-backdrop",
37
- className
38
- ].filter(Boolean).join(" ");
34
+ function DialogBackdrop({ className, ref, ...props }) {
35
+ const classes = mergeBaseClassName(["dialog__backdrop", "base-ui-backdrop"].filter(Boolean).join(" "), className);
39
36
  return /* @__PURE__ */ jsx(Dialog$1.Backdrop, {
40
37
  ref,
41
38
  "data-slot": "dialog-overlay",
@@ -43,8 +40,8 @@ function DialogBackdrop({ className = "", ref, ...props }) {
43
40
  ...props
44
41
  });
45
42
  }
46
- function DialogViewport({ className = "", ref, ...props }) {
47
- const classes = ["dialog__viewport", className].filter(Boolean).join(" ");
43
+ function DialogViewport({ className, ref, ...props }) {
44
+ const classes = mergeBaseClassName(["dialog__viewport"].filter(Boolean).join(" "), className);
48
45
  return /* @__PURE__ */ jsx(Dialog$1.Viewport, {
49
46
  ref,
50
47
  "data-slot": "dialog-viewport",
@@ -52,12 +49,8 @@ function DialogViewport({ className = "", ref, ...props }) {
52
49
  ...props
53
50
  });
54
51
  }
55
- function DialogPopup({ size = "md", className = "", ref, ...props }) {
56
- const classes = [
57
- "dialog__popup",
58
- size !== "md" && `dialog__popup--${size}`,
59
- className
60
- ].filter(Boolean).join(" ");
52
+ function DialogPopup({ size = "md", className, ref, ...props }) {
53
+ const classes = mergeBaseClassName(["dialog__popup", size !== "md" && `dialog__popup--${size}`].filter(Boolean).join(" "), className);
61
54
  return /* @__PURE__ */ jsx(Dialog$1.Popup, {
62
55
  ref,
63
56
  "data-slot": "dialog-content",
@@ -65,24 +58,24 @@ function DialogPopup({ size = "md", className = "", ref, ...props }) {
65
58
  ...props
66
59
  });
67
60
  }
68
- function DialogHeader({ className = "", ref, ...props }) {
61
+ function DialogHeader({ className, ref, ...props }) {
69
62
  return /* @__PURE__ */ jsx("div", {
70
63
  ref,
71
64
  "data-slot": "dialog-header",
72
- className: ["dialog__header", className].filter(Boolean).join(" "),
65
+ className: mergeBaseClassName(["dialog__header"].filter(Boolean).join(" "), className),
73
66
  ...props
74
67
  });
75
68
  }
76
- function DialogFooter({ className = "", ref, ...props }) {
69
+ function DialogFooter({ className, ref, ...props }) {
77
70
  return /* @__PURE__ */ jsx("div", {
78
71
  ref,
79
72
  "data-slot": "dialog-footer",
80
- className: ["dialog__footer", className].filter(Boolean).join(" "),
73
+ className: mergeBaseClassName(["dialog__footer"].filter(Boolean).join(" "), className),
81
74
  ...props
82
75
  });
83
76
  }
84
- function DialogTitle({ className = "", ref, ...props }) {
85
- const classes = ["dialog__title", className].filter(Boolean).join(" ");
77
+ function DialogTitle({ className, ref, ...props }) {
78
+ const classes = mergeBaseClassName(["dialog__title"].filter(Boolean).join(" "), className);
86
79
  return /* @__PURE__ */ jsx(Dialog$1.Title, {
87
80
  ref,
88
81
  "data-slot": "dialog-title",
@@ -90,8 +83,8 @@ function DialogTitle({ className = "", ref, ...props }) {
90
83
  ...props
91
84
  });
92
85
  }
93
- function DialogDescription({ className = "", ref, ...props }) {
94
- const classes = ["dialog__description", className].filter(Boolean).join(" ");
86
+ function DialogDescription({ className, ref, ...props }) {
87
+ const classes = mergeBaseClassName(["dialog__description"].filter(Boolean).join(" "), className);
95
88
  return /* @__PURE__ */ jsx(Dialog$1.Description, {
96
89
  ref,
97
90
  "data-slot": "dialog-description",
@@ -99,8 +92,8 @@ function DialogDescription({ className = "", ref, ...props }) {
99
92
  ...props
100
93
  });
101
94
  }
102
- function DialogClose({ className = "", ref, ...props }) {
103
- const classes = ["dialog__close", className].filter(Boolean).join(" ");
95
+ function DialogClose({ className, ref, ...props }) {
96
+ const classes = mergeBaseClassName(["dialog__close"].filter(Boolean).join(" "), className);
104
97
  return /* @__PURE__ */ jsx(Dialog$1.Close, {
105
98
  ref,
106
99
  "data-slot": "dialog-close",
@@ -1,4 +1,4 @@
1
- import { t as CopyButtonProps } from "../copy-button-DtPMgN7e.js";
1
+ import { t as CopyButtonProps } from "../copy-button-CQx3LQAC.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/EnvironmentVariables.d.ts
@@ -1,6 +1,6 @@
1
- import { t as cx } from "../class-names-9UtZwb0J.js";
2
- import { _ as EyeOffIcon, g as EyeIcon } from "../icons-CpfUer49.js";
3
- import { t as CopyButton } from "../copy-button-Dejn5heL.js";
1
+ import { t as cx } from "../class-names-Bk-QLWWI.js";
2
+ import { _ as EyeIcon, v as EyeOffIcon } from "../icons--FqCZEc3.js";
3
+ import { t as CopyButton } from "../copy-button-cYsJBauI.js";
4
4
  import { Badge } from "./Badge.js";
5
5
  import { Switch } from "./Switch.js";
6
6
  import * as React from "react";
@@ -69,6 +69,7 @@ function EnvironmentVariables({ className, showValues, defaultShowValues = false
69
69
  ref,
70
70
  className: cx("environment-variables", className),
71
71
  ...props,
72
+ "data-recipe": "framed-panel",
72
73
  children
73
74
  })
74
75
  });
@@ -6,38 +6,26 @@ import { Field as Field$1 } from "@base-ui/react/field";
6
6
  * Props for the Field.Root component.
7
7
  */
8
8
  interface FieldRootProps extends React.ComponentPropsWithoutRef<typeof Field$1.Root> {
9
- /** Additional CSS class names */
10
- className?: string;
11
9
  orientation?: "vertical" | "horizontal" | "responsive";
12
10
  }
13
11
  /**
14
12
  * Props for the Field.Label component.
15
13
  */
16
- interface FieldLabelProps extends React.ComponentPropsWithoutRef<typeof Field$1.Label> {
17
- /** Additional CSS class names */
18
- className?: string;
19
- }
14
+ interface FieldLabelProps extends React.ComponentPropsWithoutRef<typeof Field$1.Label> {}
20
15
  /**
21
16
  * Props for the Field.Control component.
22
17
  */
23
- interface FieldControlProps extends React.ComponentPropsWithoutRef<typeof Field$1.Control> {
24
- /** Additional CSS class names */
25
- className?: string;
26
- }
18
+ interface FieldControlProps extends React.ComponentPropsWithoutRef<typeof Field$1.Control> {}
27
19
  /**
28
20
  * Props for the Field.Description component.
29
21
  */
30
- interface FieldDescriptionProps extends React.ComponentPropsWithoutRef<typeof Field$1.Description> {
31
- /** Additional CSS class names */
32
- className?: string;
33
- }
22
+ interface FieldDescriptionProps extends React.ComponentPropsWithoutRef<typeof Field$1.Description> {}
34
23
  /**
35
24
  * Props for the Field.Error component.
36
25
  */
37
- interface FieldErrorProps extends React.ComponentPropsWithoutRef<typeof Field$1.Error> {
38
- /** Additional CSS class names */
39
- className?: string;
40
- errors?: Array<{
26
+ interface FieldErrorProps extends React.ComponentPropsWithoutRef<typeof Field$1.Error> {}
27
+ interface FieldErrorsProps extends React.HTMLAttributes<HTMLDivElement> {
28
+ errors: Array<{
41
29
  message?: string;
42
30
  } | string | undefined>;
43
31
  }
@@ -160,12 +148,20 @@ declare function FieldDescription({
160
148
  */
161
149
  declare function FieldError({
162
150
  className,
163
- errors,
164
151
  children,
165
152
  ref,
166
153
  ...props
167
154
  }: FieldErrorProps & {
168
155
  ref?: React.Ref<HTMLDivElement>;
156
+ }): React.JSX.Element;
157
+ declare function FieldErrors({
158
+ className,
159
+ errors,
160
+ children,
161
+ ref,
162
+ ...props
163
+ }: FieldErrorsProps & {
164
+ ref?: React.Ref<HTMLDivElement>;
169
165
  }): React.JSX.Element | null;
170
166
  /**
171
167
  * Renders custom content based on the field's validity state.
@@ -268,6 +264,7 @@ declare const Field: {
268
264
  Control: typeof FieldControl;
269
265
  Description: typeof FieldDescription;
270
266
  Error: typeof FieldError;
267
+ Errors: typeof FieldErrors;
271
268
  Item: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").FieldItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
272
269
  Validity: React.FC<import("@base-ui/react").FieldValidityProps>;
273
270
  Set: typeof FieldSet;
@@ -278,4 +275,4 @@ declare const Field: {
278
275
  Separator: typeof FieldSeparator;
279
276
  };
280
277
  //#endregion
281
- export { Field, FieldContentProps, FieldControlProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldRootProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FieldValidityProps };
278
+ export { Field, FieldContentProps, FieldControlProps, FieldDescriptionProps, FieldErrorProps, FieldErrorsProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldRootProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FieldValidityProps };
@@ -1,3 +1,4 @@
1
+ import { n as mergeBaseClassName, t as cx } from "../class-names-Bk-QLWWI.js";
1
2
  import "react";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
4
  import { Field as Field$1 } from "@base-ui/react/field";
@@ -17,12 +18,8 @@ import { Field as Field$1 } from "@base-ui/react/field";
17
18
  *
18
19
  * @see {@link https://base-ui.com/react/components/field | Base UI Field}
19
20
  */
20
- function FieldRoot({ className = "", orientation = "vertical", ref, ...props }) {
21
- const classes = [
22
- "field",
23
- orientation !== "vertical" && `field--${orientation}`,
24
- className
25
- ].filter(Boolean).join(" ");
21
+ function FieldRoot({ className, orientation = "vertical", ref, ...props }) {
22
+ const classes = mergeBaseClassName(["field", orientation !== "vertical" && `field--${orientation}`].filter(Boolean).join(" "), className);
26
23
  return /* @__PURE__ */ jsx(Field$1.Root, {
27
24
  ref,
28
25
  role: "group",
@@ -44,8 +41,8 @@ function FieldRoot({ className = "", orientation = "vertical", ref, ...props })
44
41
  * </Field.Root>
45
42
  * ```
46
43
  */
47
- function FieldLabel({ className = "", ref, ...props }) {
48
- const classes = ["field__label", className].filter(Boolean).join(" ");
44
+ function FieldLabel({ className, ref, ...props }) {
45
+ const classes = mergeBaseClassName("field__label", className);
49
46
  return /* @__PURE__ */ jsx(Field$1.Label, {
50
47
  ref,
51
48
  "data-slot": "field-label",
@@ -66,8 +63,8 @@ function FieldLabel({ className = "", ref, ...props }) {
66
63
  * <Field.Control render={<Textarea />} />
67
64
  * ```
68
65
  */
69
- function FieldControl({ className = "", ref, ...props }) {
70
- const classes = ["field__control", className].filter(Boolean).join(" ");
66
+ function FieldControl({ className, ref, ...props }) {
67
+ const classes = mergeBaseClassName("field__control", className);
71
68
  return /* @__PURE__ */ jsx(Field$1.Control, {
72
69
  ref,
73
70
  "data-slot": "field-control",
@@ -88,8 +85,8 @@ function FieldControl({ className = "", ref, ...props }) {
88
85
  * </Field.Root>
89
86
  * ```
90
87
  */
91
- function FieldDescription({ className = "", ref, ...props }) {
92
- const classes = ["field__description", className].filter(Boolean).join(" ");
88
+ function FieldDescription({ className, ref, ...props }) {
89
+ const classes = mergeBaseClassName("field__description", className);
93
90
  return /* @__PURE__ */ jsx(Field$1.Description, {
94
91
  ref,
95
92
  "data-slot": "field-description",
@@ -120,15 +117,17 @@ function FieldDescription({ className = "", ref, ...props }) {
120
117
  * - `rangeUnderflow` - Number is less than `min`
121
118
  * - `rangeOverflow` - Number is greater than `max`
122
119
  */
123
- function FieldError({ className = "", errors, children, ref, ...props }) {
124
- const classes = ["field__error", className].filter(Boolean).join(" ");
125
- if (errors === void 0) return /* @__PURE__ */ jsx(Field$1.Error, {
120
+ function FieldError({ className, children, ref, ...props }) {
121
+ const classes = mergeBaseClassName("field__error", className);
122
+ return /* @__PURE__ */ jsx(Field$1.Error, {
126
123
  ref,
127
124
  "data-slot": "field-error",
128
125
  className: classes,
129
126
  ...props,
130
127
  children
131
128
  });
129
+ }
130
+ function FieldErrors({ className = "", errors, children, ref, ...props }) {
132
131
  const messages = [...new Set(errors.map((error) => typeof error === "string" ? error : error?.message).filter(Boolean))];
133
132
  const content = children ?? (messages.length === 1 ? messages[0] : messages.length > 1 ? /* @__PURE__ */ jsx("ul", {
134
133
  className: "field__error-list",
@@ -139,7 +138,7 @@ function FieldError({ className = "", errors, children, ref, ...props }) {
139
138
  ref,
140
139
  role: "alert",
141
140
  "data-slot": "field-error",
142
- className: classes,
141
+ className: cx("field__error", className),
143
142
  ...props,
144
143
  children: content
145
144
  });
@@ -260,6 +259,7 @@ const Field = {
260
259
  Control: FieldControl,
261
260
  Description: FieldDescription,
262
261
  Error: FieldError,
262
+ Errors: FieldErrors,
263
263
  Item: Field$1.Item,
264
264
  Validity: Field$1.Validity,
265
265
  Set: FieldSet,
@@ -5,19 +5,14 @@ import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
5
5
  /**
6
6
  * Props for the Fieldset.Root component.
7
7
  */
8
- interface FieldsetRootProps extends Omit<React.ComponentPropsWithoutRef<typeof Fieldset$1.Root>, "className"> {
9
- /** Additional CSS class names */
10
- className?: string;
8
+ interface FieldsetRootProps extends React.ComponentPropsWithoutRef<typeof Fieldset$1.Root> {
11
9
  /** Visual treatment for the field group. */
12
10
  variant?: "outlined" | "plain";
13
11
  }
14
12
  /**
15
13
  * Props for the Fieldset.Legend component.
16
14
  */
17
- interface FieldsetLegendProps extends Omit<React.ComponentPropsWithoutRef<typeof Fieldset$1.Legend>, "className"> {
18
- /** Additional CSS class names */
19
- className?: string;
20
- }
15
+ interface FieldsetLegendProps extends React.ComponentPropsWithoutRef<typeof Fieldset$1.Legend> {}
21
16
  interface FieldsetDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {}
22
17
  /**
23
18
  * Groups the fieldset legend and associated fields.
@@ -1,3 +1,4 @@
1
+ import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
@@ -19,8 +20,8 @@ import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
19
20
  *
20
21
  * @see {@link https://base-ui.com/react/components/fieldset | Base UI Fieldset}
21
22
  */
22
- function FieldsetRoot({ className = "", ref, variant = "outlined", ...props }) {
23
- const classes = ["fieldset", className].filter(Boolean).join(" ");
23
+ function FieldsetRoot({ className, ref, variant = "outlined", ...props }) {
24
+ const classes = mergeBaseClassName(["fieldset"].filter(Boolean).join(" "), className);
24
25
  return /* @__PURE__ */ jsx(Fieldset$1.Root, {
25
26
  ref,
26
27
  className: classes,
@@ -32,18 +33,18 @@ function FieldsetRoot({ className = "", ref, variant = "outlined", ...props }) {
32
33
  * Accessible label for the fieldset, automatically associated with it.
33
34
  * Renders a `<div>` element (styled as legend).
34
35
  */
35
- function FieldsetLegend({ className = "", ref, ...props }) {
36
- const classes = ["fieldset__legend", className].filter(Boolean).join(" ");
36
+ function FieldsetLegend({ className, ref, ...props }) {
37
+ const classes = mergeBaseClassName(["fieldset__legend"].filter(Boolean).join(" "), className);
37
38
  return /* @__PURE__ */ jsx(Fieldset$1.Legend, {
38
39
  ref,
39
40
  className: classes,
40
41
  ...props
41
42
  });
42
43
  }
43
- function FieldsetDescription({ className = "", ref, ...props }) {
44
+ function FieldsetDescription({ className, ref, ...props }) {
44
45
  return /* @__PURE__ */ jsx("p", {
45
46
  ref,
46
- className: ["fieldset__description", className].filter(Boolean).join(" "),
47
+ className: mergeBaseClassName(["fieldset__description"].filter(Boolean).join(" "), className),
47
48
  ...props
48
49
  });
49
50
  }
@@ -1,2 +1,2 @@
1
- import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-CkVbIMWV.js";
1
+ import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-B7bBsUyU.js";
2
2
  export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName };
@@ -5,10 +5,7 @@ import { Form as Form$1 } from "@base-ui/react/form";
5
5
  /**
6
6
  * Props for the Form component.
7
7
  */
8
- interface FormProps extends Omit<React.ComponentPropsWithoutRef<typeof Form$1>, "className"> {
9
- /** Additional CSS class names */
10
- className?: string;
11
- }
8
+ interface FormProps extends React.ComponentPropsWithoutRef<typeof Form$1> {}
12
9
  /**
13
10
  * A form component that provides consolidated error handling and validation
14
11
  * for form controls. Works seamlessly with the Field component.
@@ -1,3 +1,4 @@
1
+ import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { Form as Form$1 } from "@base-ui/react/form";
@@ -76,11 +77,11 @@ import { Form as Form$1 } from "@base-ui/react/form";
76
77
  *
77
78
  * @see {@link https://base-ui.com/react/components/form | Base UI Form}
78
79
  */
79
- function Form({ className = "", ref, ...props }) {
80
+ function Form({ className, ref, ...props }) {
80
81
  return /* @__PURE__ */ jsx(Form$1, {
81
82
  ref,
82
83
  "data-slot": "form",
83
- className: ["form", className].filter(Boolean).join(" "),
84
+ className: mergeBaseClassName(["form"].filter(Boolean).join(" "), className),
84
85
  ...props
85
86
  });
86
87
  }
@@ -1,4 +1,4 @@
1
- import { t as cx } from "../class-names-9UtZwb0J.js";
1
+ import { t as cx } from "../class-names-Bk-QLWWI.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  //#region src/components/GithubMotionMark.tsx
4
4
  /**
@@ -0,0 +1,66 @@
1
+ import * as React from "react";
2
+ import { SourceDocumentUIPart, SourceUrlUIPart } from "ai";
3
+
4
+ //#region src/components/InlineCitation.d.ts
5
+ interface InlineCitationProps extends React.ComponentPropsWithoutRef<"span"> {
6
+ /** Claim text and citations placed beside it by the consuming application. */
7
+ children?: React.ReactNode;
8
+ }
9
+ /**
10
+ * Keeps claim text and an app-placed citation in one inline presentation group.
11
+ *
12
+ * AI SDK source parts do not include text offsets. The app must place this
13
+ * component beside the claim it supports; this component never parses message
14
+ * text or guesses an anchor position.
15
+ *
16
+ * @see ../../node_modules/ai/src/ui/ui-messages.ts (`SourceUrlUIPart`,
17
+ * `SourceDocumentUIPart`)
18
+ * @see https://elements.ai-sdk.dev/components/inline-citation
19
+ */
20
+ declare function InlineCitation({
21
+ className,
22
+ ref,
23
+ ...props
24
+ }: InlineCitationProps & {
25
+ ref?: React.Ref<HTMLSpanElement>;
26
+ }): React.JSX.Element;
27
+ interface InlineCitationTextProps extends React.ComponentPropsWithoutRef<"span"> {}
28
+ /** Claim text whose citation is placed by the consuming app. */
29
+ declare function InlineCitationText({
30
+ className,
31
+ ref,
32
+ ...props
33
+ }: InlineCitationTextProps & {
34
+ ref?: React.Ref<HTMLSpanElement>;
35
+ }): React.JSX.Element;
36
+ interface InlineCitationCardProps extends React.ComponentPropsWithoutRef<"div"> {}
37
+ /** Compact presentation container for citation details inside an existing overlay. */
38
+ declare function InlineCitationCard({
39
+ className,
40
+ ref,
41
+ ...props
42
+ }: InlineCitationCardProps & {
43
+ ref?: React.Ref<HTMLDivElement>;
44
+ }): React.JSX.Element;
45
+ interface InlineCitationSourceProps extends Omit<React.ComponentPropsWithoutRef<"span">, "children"> {
46
+ /** The complete AI SDK source part. It is consumed directly without normalization. */
47
+ source: SourceUrlUIPart | SourceDocumentUIPart;
48
+ /** Optional presentation-owned citation number. It is not part of the source model. */
49
+ index?: number;
50
+ }
51
+ /**
52
+ * Adapts a whole AI SDK URL or document source part to an inline citation.
53
+ * URL sources use a safe external link and PreviewCard. Document sources have
54
+ * no URL, so they use a Popover button and never fabricate a download target.
55
+ */
56
+ declare function InlineCitationSource({
57
+ source,
58
+ index,
59
+ className,
60
+ ref,
61
+ ...props
62
+ }: InlineCitationSourceProps & {
63
+ ref?: React.Ref<HTMLSpanElement>;
64
+ }): React.JSX.Element;
65
+ //#endregion
66
+ export { InlineCitation, InlineCitationCard, InlineCitationCardProps, InlineCitationProps, InlineCitationSource, InlineCitationSourceProps, InlineCitationText, InlineCitationTextProps };