@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.
- package/dist/{AgentChat-CrlpbvQJ.d.ts → AgentChat-CRuMi1Pb.d.ts} +4 -10
- package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
- package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
- package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Co1noLbC.js} +2 -2
- package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-Dnpr88ZQ.d.ts} +2 -2
- package/dist/Collapsible-N64ASIQr.d.ts +119 -0
- package/dist/{Combobox-B9Fcd6q-.d.ts → Combobox-CYc37s5l.d.ts} +11 -33
- package/dist/{FileTree-CkVbIMWV.js → FileTree-B7bBsUyU.js} +7 -7
- package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
- package/dist/{Message-BkMdE3bS.js → Message-C4eYRogZ.js} +3 -3
- package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-BNrZlY_Y.js} +5 -5
- package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-OLfXPuHM.d.ts} +39 -67
- package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
- package/dist/{Select-BeEsefzh.d.ts → Select-CwSqP07Y.d.ts} +14 -42
- package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-9zddXDQo.d.ts} +5 -19
- package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-DInElus-.js} +53 -26
- package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-BgesTfZ4.d.ts} +12 -4
- package/dist/{ThinkChatContext-C3Eb1Xpi.d.ts → ThinkChatContext-DrsZqdaO.d.ts} +1 -1
- package/dist/ThinkRecoveryNotice-DFIcG9UX.d.ts +19 -0
- package/dist/{Toggle-CAAlNl-M.d.ts → Toggle-DaXpe1Lc.d.ts} +1 -1
- package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-yseEWkOC.d.ts} +3 -4
- package/dist/{Workspace-D39LxGvP.d.ts → Workspace-C9RFoxcu.d.ts} +1 -1
- package/dist/WorkspaceExplorer-sZewzT2O.d.ts +32 -0
- package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-C8UzuSH4.d.ts} +1 -1
- package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-DNdGAEiX.js} +5 -5
- package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-B1ykV1dS.js} +15 -29
- package/dist/class-names-Bk-QLWWI.js +11 -0
- package/dist/components/Accordion.d.ts +5 -15
- package/dist/components/Accordion.js +11 -10
- package/dist/components/Activity.d.ts +5 -10
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.js +1 -1
- package/dist/components/AgentActivityPreview.js +2 -2
- package/dist/components/AgentAttention.d.ts +1 -1
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +27 -164
- package/dist/components/AgentChatMessageEditor.js +1 -1
- package/dist/components/AgentConnection.js +4 -4
- package/dist/components/AgentMessageParts.d.ts +2 -0
- package/dist/components/AgentMessageParts.js +119 -0
- package/dist/components/AgentToolDetail.d.ts +55 -0
- package/dist/components/AgentToolDetail.js +98 -0
- package/dist/components/AgentToolRunsContext.d.ts +2 -0
- package/dist/components/AgentToolRunsContext.js +16 -0
- package/dist/components/AlertDialog.d.ts +7 -19
- package/dist/components/AlertDialog.js +21 -32
- package/dist/components/AppTopBar.d.ts +4 -1
- package/dist/components/AppTopBar.js +5 -5
- package/dist/components/Approval.d.ts +102 -0
- package/dist/components/Approval.js +227 -0
- package/dist/components/Artifact.d.ts +2 -4
- package/dist/components/Artifact.js +3 -3
- package/dist/components/Autocomplete.d.ts +11 -33
- package/dist/components/Autocomplete.js +23 -30
- package/dist/components/Avatar.d.ts +3 -11
- package/dist/components/Avatar.js +13 -12
- package/dist/components/BrowserLiveView.js +2 -2
- package/dist/components/BrowserReplay.js +2 -2
- package/dist/components/BrowserRunPanel.js +58 -78
- package/dist/components/Button.js +4 -9
- package/dist/components/ChainOfThought.d.ts +5 -11
- package/dist/components/ChainOfThought.js +3 -2
- package/dist/components/ChatGptSignInScreen.js +3 -3
- package/dist/components/Checkbox.d.ts +2 -4
- package/dist/components/Checkbox.js +6 -5
- package/dist/components/CheckboxGroup.d.ts +1 -3
- package/dist/components/CheckboxGroup.js +15 -14
- package/dist/components/Checkpoint.d.ts +64 -0
- package/dist/components/Checkpoint.js +63 -0
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +1 -1
- package/dist/components/CodexModelSelector.js +2 -2
- package/dist/components/Collapsible.d.ts +1 -124
- package/dist/components/Collapsible.js +7 -10
- package/dist/components/Combobox.d.ts +1 -1
- package/dist/components/Combobox.js +23 -30
- package/dist/components/Commit.d.ts +5 -11
- package/dist/components/Commit.js +6 -5
- package/dist/components/Context.js +1 -1
- package/dist/components/ContextMenu.d.ts +21 -37
- package/dist/components/ContextMenu.js +34 -51
- package/dist/components/Conversation.d.ts +2 -4
- package/dist/components/Conversation.js +2 -2
- package/dist/components/DescriptionListParts.js +1 -1
- package/dist/components/Dialog.d.ts +6 -17
- package/dist/components/Dialog.js +17 -24
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +4 -3
- package/dist/components/Field.d.ts +17 -20
- package/dist/components/Field.js +16 -16
- package/dist/components/Fieldset.d.ts +2 -7
- package/dist/components/Fieldset.js +7 -6
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Form.d.ts +1 -4
- package/dist/components/Form.js +3 -2
- package/dist/components/GithubMotionMark.js +1 -1
- package/dist/components/InlineCitation.d.ts +66 -0
- package/dist/components/InlineCitation.js +142 -0
- package/dist/components/Input.d.ts +1 -4
- package/dist/components/Input.js +3 -2
- package/dist/components/Marker.js +1 -1
- package/dist/components/McpConnectionRequest.js +2 -2
- package/dist/components/McpServerPicker.d.ts +1 -1
- package/dist/components/McpServerPicker.js +6 -5
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menu.js +33 -52
- package/dist/components/Menubar.d.ts +22 -43
- package/dist/components/Menubar.js +36 -53
- package/dist/components/Message.d.ts +3 -6
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +3 -3
- package/dist/components/Meter.d.ts +5 -20
- package/dist/components/Meter.js +11 -10
- package/dist/components/ModelSelector.d.ts +2 -6
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +11 -33
- package/dist/components/NavigationMenu.js +23 -30
- package/dist/components/NumberField.d.ts +6 -24
- package/dist/components/NumberField.js +13 -12
- package/dist/components/Plan.d.ts +103 -0
- package/dist/components/Plan.js +113 -0
- package/dist/components/Popover.d.ts +9 -36
- package/dist/components/Popover.js +23 -34
- package/dist/components/PreviewCard.d.ts +6 -24
- package/dist/components/PreviewCard.js +13 -24
- package/dist/components/PricingBillingToggle.js +1 -1
- package/dist/components/PricingFAQ.js +1 -1
- package/dist/components/PricingPlanCard.js +3 -3
- package/dist/components/PricingUsageCalculator.js +2 -2
- package/dist/components/Progress.d.ts +3 -8
- package/dist/components/Progress.js +7 -10
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +52 -200
- package/dist/components/Queue.d.ts +6 -16
- package/dist/components/Queue.js +2 -2
- package/dist/components/RadioGroup.d.ts +3 -8
- package/dist/components/RadioGroup.js +7 -10
- package/dist/components/Reasoning.d.ts +4 -8
- package/dist/components/Reasoning.js +3 -3
- package/dist/components/ResizableSidePanel.js +2 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/ResponsiveSidebarShell.js +4 -3
- package/dist/components/ScrollArea.d.ts +5 -20
- package/dist/components/ScrollArea.js +11 -10
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +32 -55
- package/dist/components/Separator.d.ts +1 -5
- package/dist/components/Separator.js +3 -6
- package/dist/components/Slider.d.ts +6 -19
- package/dist/components/Slider.js +15 -14
- package/dist/components/Sources.d.ts +4 -9
- package/dist/components/Sources.js +3 -2
- package/dist/components/Stepper.js +2 -2
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.js +1 -2
- package/dist/components/SubagentRunSelector.d.ts +2 -11
- package/dist/components/SubagentRunSelector.js +16 -15
- package/dist/components/Switch.d.ts +2 -5
- package/dist/components/Switch.js +5 -8
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +10 -16
- package/dist/components/Task.d.ts +4 -9
- package/dist/components/Task.js +4 -3
- package/dist/components/Terminal.d.ts +2 -3
- package/dist/components/Terminal.js +3 -3
- package/dist/components/TestResults.d.ts +4 -9
- package/dist/components/TestResults.js +3 -2
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +21 -11
- package/dist/components/ThinkChat.js +5 -3
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivity.js +26 -7
- package/dist/components/ThinkChatContext.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +2 -2
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/ThinkFullApp.d.ts +33 -9
- package/dist/components/ThinkFullApp.js +98 -69
- package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/ThinkFullAppViewSwitch.js +2 -2
- package/dist/components/ThinkPendingApproval.d.ts +60 -0
- package/dist/components/ThinkPendingApproval.js +99 -0
- package/dist/components/ThinkRecoveryNotice.d.ts +2 -0
- package/dist/components/ThinkRecoveryNotice.js +40 -0
- package/dist/components/ThinkRoutine.js +1 -0
- package/dist/components/ThinkRoutineBrowser.js +6 -6
- package/dist/components/ThinkRoutineDetail.js +1 -1
- package/dist/components/ThinkRoutineForm.js +2 -2
- package/dist/components/ThinkRoutineLibrary.d.ts +9 -0
- package/dist/components/ThinkRoutineLibrary.js +67 -20
- package/dist/components/ThinkRoutineRuns.js +1 -1
- package/dist/components/ThinkThreadPicker.js +2 -2
- package/dist/components/ThinkThreadShell.d.ts +1 -1
- package/dist/components/Toast.d.ts +7 -28
- package/dist/components/Toast.js +15 -14
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +5 -5
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +8 -15
- package/dist/components/ToolApproval.d.ts +28 -0
- package/dist/components/ToolApproval.js +35 -0
- package/dist/components/ToolInvocation.d.ts +26 -0
- package/dist/components/ToolInvocation.js +72 -0
- package/dist/components/Toolbar.d.ts +6 -24
- package/dist/components/Toolbar.js +13 -12
- package/dist/components/Tooltip.d.ts +3 -9
- package/dist/components/Tooltip.js +7 -10
- package/dist/components/WebPreview.d.ts +1 -2
- package/dist/components/WebPreview.js +4 -3
- package/dist/components/Workspace.d.ts +1 -1
- package/dist/components/Workspace.js +5 -20
- package/dist/components/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/WorkspaceBrowser.js +3 -3
- package/dist/components/WorkspaceExplorer.d.ts +3 -31
- package/dist/components/WorkspaceExplorer.js +3 -3
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +1 -1
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.js +1 -1
- package/dist/components/WorkspaceLink.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DtPMgN7e.d.ts → copy-button-CQx3LQAC.d.ts} +1 -2
- package/dist/{copy-button-Dejn5heL.js → copy-button-cYsJBauI.js} +1 -1
- package/dist/{icons-CpfUer49.js → icons--FqCZEc3.js} +3 -2
- package/dist/{icons-GQd1xF4e.d.ts → icons-DpUqY8Mp.d.ts} +6 -1
- package/dist/styles/agent-activity-preview.css +4 -0
- package/dist/styles/agent-chat.css +0 -41
- package/dist/styles/agent-connection.css +0 -12
- package/dist/styles/agent-tool-detail.css +54 -0
- package/dist/styles/approval.css +172 -0
- package/dist/styles/artifact.css +0 -12
- package/dist/styles/browser-run-panel.css +5 -2
- package/dist/styles/chain-of-thought.css +0 -8
- package/dist/styles/checkpoint.css +58 -0
- package/dist/styles/combobox.css +1 -1
- package/dist/styles/commit.css +0 -21
- package/dist/styles/context-menu.css +0 -8
- package/dist/styles/environment-variables.css +0 -13
- package/dist/styles/file-tree.css +0 -16
- package/dist/styles/index.css +8 -4
- package/dist/styles/inline-citation.css +107 -0
- package/dist/styles/mcp-server-picker.css +0 -30
- package/dist/styles/menu.css +0 -29
- package/dist/styles/menubar.css +0 -8
- package/dist/styles/message-scroller.css +0 -12
- package/dist/styles/message.css +0 -12
- package/dist/styles/model-selector.css +0 -20
- package/dist/styles/plan.css +127 -0
- package/dist/styles/popover.css +0 -36
- package/dist/styles/prompt-input.css +2 -195
- package/dist/styles/recipes.css +114 -5
- package/dist/styles/responsive-sidebar-shell.css +16 -19
- package/dist/styles/sources.css +0 -8
- package/dist/styles/subagent-run.css +12 -70
- package/dist/styles/task.css +0 -16
- package/dist/styles/test-results.css +0 -13
- package/dist/styles/think-full-app.css +12 -38
- package/dist/styles/think-routine-library.css +12 -20
- package/dist/styles/think-thread-picker.css +15 -0
- package/dist/styles/toast.css +0 -7
- package/dist/styles/utilities.css +31 -0
- package/dist/styles/web-preview.css +0 -21
- package/dist/styles/workspace-explorer.css +5 -55
- package/dist/think-agent-Cip5KAPj.d.ts +7 -0
- package/dist/utils/codex-model-catalog.d.ts +4 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-path-L_KmjRjq.js +26 -0
- package/package.json +3 -4
- package/dist/class-names-9UtZwb0J.js +0 -12
- package/dist/components/AppFrame.d.ts +0 -24
- package/dist/components/AppFrame.js +0 -25
- package/dist/components/Shell.d.ts +0 -163
- package/dist/components/Shell.js +0 -137
- package/dist/components/SubagentRun.d.ts +0 -86
- package/dist/components/SubagentRun.js +0 -108
- package/dist/styles/app-frame.css +0 -15
- package/dist/styles/shell.css +0 -122
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as AgentMessageRenderPartContext } from "./AgentMessageParts-CyD2UB3V.js";
|
|
2
|
+
import { $ as PromptInputDictationProps, A as PromptInputCommandDefinition, X as PromptInputContextSelectorProps, gt as PromptInputReference, n as PermissionMode, ut as PromptInputMessage } from "./PromptInput-OLfXPuHM.js";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { ChatAddToolApproveResponseFunction, ChatStatus, UIMessage } from "ai";
|
|
4
5
|
import { PendingApproval, Think } from "@cloudflare/think";
|
|
@@ -6,13 +7,6 @@ import { AgentStub } from "agents/client";
|
|
|
6
7
|
import { UseVoiceInputReturn } from "@cloudflare/voice/react";
|
|
7
8
|
|
|
8
9
|
//#region src/components/AgentChat.d.ts
|
|
9
|
-
type AgentChatPart<MessageT extends UIMessage = UIMessage> = MessageT["parts"][number];
|
|
10
|
-
interface AgentChatRenderPartContext<MessageT extends UIMessage = UIMessage> {
|
|
11
|
-
message: MessageT;
|
|
12
|
-
part: AgentChatPart<MessageT>;
|
|
13
|
-
partIndex: number;
|
|
14
|
-
defaultRender: () => React.ReactNode;
|
|
15
|
-
}
|
|
16
10
|
interface AgentChatRenderMessageContext<MessageT extends UIMessage = UIMessage> {
|
|
17
11
|
message: MessageT;
|
|
18
12
|
messageIndex: number;
|
|
@@ -192,7 +186,7 @@ interface AgentChatProps<MessageT extends UIMessage = UIMessage> {
|
|
|
192
186
|
* return a React node for every source part you want to show; returning
|
|
193
187
|
* `undefined` lets `AgentChat` keep the upstream-shaped source-run grouping.
|
|
194
188
|
*/
|
|
195
|
-
renderPart?: (context:
|
|
189
|
+
renderPart?: (context: AgentMessageRenderPartContext<MessageT>) => React.ReactNode | undefined;
|
|
196
190
|
/** Rendered after each message's parts — for actions, citations, and the like. */
|
|
197
191
|
renderMessageAfter?: (context: AgentChatRenderMessageContext<MessageT>) => React.ReactNode;
|
|
198
192
|
}
|
|
@@ -252,4 +246,4 @@ declare function AgentChat<MessageT extends UIMessage = UIMessage>({
|
|
|
252
246
|
ref?: React.Ref<HTMLDivElement>;
|
|
253
247
|
}): React.JSX.Element;
|
|
254
248
|
//#endregion
|
|
255
|
-
export {
|
|
249
|
+
export { PermissionModeControl as a, AgentChatRenderMessageContext as i, AgentChatComposerDraft as n, AgentChatProps as r, AgentChat as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ChatStatus, UIMessage } from "ai";
|
|
3
|
+
|
|
4
|
+
//#region src/components/AgentMessageParts.d.ts
|
|
5
|
+
type AgentMessagePart<MessageT extends UIMessage = UIMessage> = MessageT["parts"][number];
|
|
6
|
+
interface AgentMessageRenderPartContext<MessageT extends UIMessage = UIMessage> {
|
|
7
|
+
message: MessageT;
|
|
8
|
+
part: AgentMessagePart<MessageT>;
|
|
9
|
+
partIndex: number;
|
|
10
|
+
defaultRender: () => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface AgentMessagePartsProps<MessageT extends UIMessage = UIMessage> {
|
|
13
|
+
/** The whole upstream AI SDK message whose parts should render in order. */
|
|
14
|
+
message: MessageT;
|
|
15
|
+
/** Drives native reasoning streaming UI. Settled messages default to `ready`. */
|
|
16
|
+
status?: ChatStatus;
|
|
17
|
+
/**
|
|
18
|
+
* Override rendering per part. Return `undefined` to use the default renderer,
|
|
19
|
+
* `null` to suppress the part, or call `defaultRender()` to compose the
|
|
20
|
+
* built-in result into custom UI.
|
|
21
|
+
*
|
|
22
|
+
* The default renderer uses upstream helpers where available:
|
|
23
|
+
* `isTextUIPart`, `isReasoningUIPart`, `isFileUIPart`, `isToolUIPart`,
|
|
24
|
+
* `getToolName`, and Think's `getToolPartState`/input/output accessors. It
|
|
25
|
+
* also renders native AI SDK `source-url`/`source-document` parts as a single
|
|
26
|
+
* grouped `Sources` block when they appear consecutively, consolidates native
|
|
27
|
+
* reasoning parts into one disclosure, and treats `step-start` as a silent
|
|
28
|
+
* structural boundary. App-defined `data-*` parts stay whole and should be
|
|
29
|
+
* narrowed with AI SDK's `isDataUIPart` inside this callback. If you override
|
|
30
|
+
* source rendering, return a React node for every source part you want to
|
|
31
|
+
* show; returning `undefined` keeps the upstream-shaped source-run grouping.
|
|
32
|
+
*/
|
|
33
|
+
renderPart?: (context: AgentMessageRenderPartContext<MessageT>) => React.ReactNode | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Renders the ordered parts of one whole AI SDK `UIMessage` without adding a
|
|
37
|
+
* transcript, message wrapper, composer, or transport. Compose it inside
|
|
38
|
+
* `Message` for read-only run previews and child-agent transcript rows.
|
|
39
|
+
*/
|
|
40
|
+
declare function AgentMessageParts<MessageT extends UIMessage = UIMessage>({
|
|
41
|
+
message,
|
|
42
|
+
status,
|
|
43
|
+
renderPart
|
|
44
|
+
}: AgentMessagePartsProps<MessageT>): (React.JSX.Element | null)[];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { AgentMessageRenderPartContext as i, AgentMessageParts as n, AgentMessagePartsProps as r, AgentMessagePart as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { UIMessage } from "ai";
|
|
3
|
+
import { useAgentToolEvents } from "agents/react";
|
|
4
|
+
import { AgentToolRunPart } from "agents/agent-tools";
|
|
5
|
+
|
|
6
|
+
//#region src/components/AgentToolRunsContext.d.ts
|
|
7
|
+
/** The complete upstream retained-run hook result for one parent connection. */
|
|
8
|
+
type AgentToolEventsValue<Part extends AgentToolRunPart = UIMessage["parts"][number]> = ReturnType<typeof useAgentToolEvents<Part>>;
|
|
9
|
+
interface AgentToolRunsProviderProps<Part extends AgentToolRunPart = UIMessage["parts"][number]> {
|
|
10
|
+
/** Pass the whole `useAgentToolEvents({ agent })` result directly. */
|
|
11
|
+
agentTools: AgentToolEventsValue<Part>;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/** Provides one parent connection's retained Agent Tool event projection. */
|
|
15
|
+
declare function AgentToolRunsProvider<Part extends AgentToolRunPart = UIMessage["parts"][number]>({
|
|
16
|
+
agentTools,
|
|
17
|
+
children
|
|
18
|
+
}: AgentToolRunsProviderProps<Part>): React.JSX.Element;
|
|
19
|
+
declare function useOptionalAgentToolRuns<Part extends AgentToolRunPart = UIMessage["parts"][number]>(): AgentToolEventsValue<Part> | null;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { useOptionalAgentToolRuns as i, AgentToolRunsProvider as n, AgentToolRunsProviderProps as r, AgentToolEventsValue as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-
|
|
1
|
+
import { t as cx } from "./class-names-Bk-QLWWI.js";
|
|
2
2
|
import { Select } from "./components/Select.js";
|
|
3
|
-
import { t as CopyButton } from "./copy-button-
|
|
3
|
+
import { t as CopyButton } from "./copy-button-cYsJBauI.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createHighlighter } from "shiki";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as SelectProps, t as Select } from "./Select-
|
|
2
|
-
import { t as CopyButtonProps } from "./copy-button-
|
|
1
|
+
import { m as SelectProps, t as Select } from "./Select-CwSqP07Y.js";
|
|
2
|
+
import { t as CopyButtonProps } from "./copy-button-CQx3LQAC.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { BundledLanguage, ThemedToken } from "shiki";
|
|
5
5
|
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Collapsible } from "@base-ui/react/collapsible";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Collapsible.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Collapsible.Root component.
|
|
7
|
+
*/
|
|
8
|
+
interface CollapsibleRootProps extends React.ComponentPropsWithoutRef<typeof Collapsible.Root> {
|
|
9
|
+
/** Skip the default design-system Collapsible classes for internal composition. */
|
|
10
|
+
unstyled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Props for the Collapsible.Trigger component.
|
|
14
|
+
*/
|
|
15
|
+
interface CollapsibleTriggerProps extends React.ComponentPropsWithoutRef<typeof Collapsible.Trigger> {
|
|
16
|
+
/** Skip the default design-system Collapsible classes for internal composition. */
|
|
17
|
+
unstyled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props for the Collapsible.Panel component.
|
|
21
|
+
*/
|
|
22
|
+
interface CollapsiblePanelProps extends React.ComponentPropsWithoutRef<typeof Collapsible.Panel> {
|
|
23
|
+
/** Skip the default design-system Collapsible classes for internal composition. */
|
|
24
|
+
unstyled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Container that groups all collapsible parts. Renders a `<div>` element.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* <Collapsible.Root>
|
|
32
|
+
* <Collapsible.Trigger>Show more</Collapsible.Trigger>
|
|
33
|
+
* <Collapsible.Panel>Hidden content here</Collapsible.Panel>
|
|
34
|
+
* </Collapsible.Root>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see {@link https://base-ui.com/react/components/collapsible | Base UI Collapsible}
|
|
38
|
+
*/
|
|
39
|
+
declare function CollapsibleRoot({
|
|
40
|
+
className,
|
|
41
|
+
unstyled,
|
|
42
|
+
ref,
|
|
43
|
+
...props
|
|
44
|
+
}: CollapsibleRootProps & {
|
|
45
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
46
|
+
}): React.JSX.Element;
|
|
47
|
+
/**
|
|
48
|
+
* Button that toggles the panel visibility. Renders a `<button>` element.
|
|
49
|
+
*/
|
|
50
|
+
declare function CollapsibleTrigger({
|
|
51
|
+
className,
|
|
52
|
+
unstyled,
|
|
53
|
+
ref,
|
|
54
|
+
...props
|
|
55
|
+
}: CollapsibleTriggerProps & {
|
|
56
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
57
|
+
}): React.JSX.Element;
|
|
58
|
+
/**
|
|
59
|
+
* The collapsible panel containing hidden content. Renders a `<div>` element.
|
|
60
|
+
* Supports CSS animations via `--collapsible-panel-height` variable.
|
|
61
|
+
*/
|
|
62
|
+
declare function CollapsiblePanel({
|
|
63
|
+
className,
|
|
64
|
+
unstyled,
|
|
65
|
+
ref,
|
|
66
|
+
...props
|
|
67
|
+
}: CollapsiblePanelProps & {
|
|
68
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
69
|
+
}): React.JSX.Element;
|
|
70
|
+
/**
|
|
71
|
+
* A collapsible panel controlled by a button.
|
|
72
|
+
* Useful for progressive disclosure of content.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```tsx
|
|
76
|
+
* // Basic usage
|
|
77
|
+
* <Collapsible.Root>
|
|
78
|
+
* <Collapsible.Trigger>Toggle content</Collapsible.Trigger>
|
|
79
|
+
* <Collapsible.Panel>
|
|
80
|
+
* <p>This content can be shown or hidden.</p>
|
|
81
|
+
* </Collapsible.Panel>
|
|
82
|
+
* </Collapsible.Root>
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```tsx
|
|
87
|
+
* // Controlled state
|
|
88
|
+
* const [open, setOpen] = useState(false);
|
|
89
|
+
*
|
|
90
|
+
* <Collapsible.Root open={open} onOpenChange={setOpen}>
|
|
91
|
+
* <Collapsible.Trigger>
|
|
92
|
+
* {open ? 'Hide' : 'Show'} details
|
|
93
|
+
* </Collapsible.Trigger>
|
|
94
|
+
* <Collapsible.Panel>
|
|
95
|
+
* <p>Detailed information here.</p>
|
|
96
|
+
* </Collapsible.Panel>
|
|
97
|
+
* </Collapsible.Root>
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```tsx
|
|
102
|
+
* // Default open
|
|
103
|
+
* <Collapsible.Root defaultOpen>
|
|
104
|
+
* <Collapsible.Trigger>Collapse</Collapsible.Trigger>
|
|
105
|
+
* <Collapsible.Panel>
|
|
106
|
+
* <p>Initially visible content.</p>
|
|
107
|
+
* </Collapsible.Panel>
|
|
108
|
+
* </Collapsible.Root>
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* @see {@link https://base-ui.com/react/components/collapsible | Base UI Collapsible}
|
|
112
|
+
*/
|
|
113
|
+
declare const Collapsible$1: {
|
|
114
|
+
Root: typeof CollapsibleRoot;
|
|
115
|
+
Trigger: typeof CollapsibleTrigger;
|
|
116
|
+
Panel: typeof CollapsiblePanel;
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { CollapsibleTriggerProps as i, CollapsiblePanelProps as n, CollapsibleRootProps as r, Collapsible$1 as t };
|
|
@@ -6,36 +6,28 @@ declare function ComboboxInput({
|
|
|
6
6
|
className,
|
|
7
7
|
ref,
|
|
8
8
|
...props
|
|
9
|
-
}:
|
|
10
|
-
className?: string;
|
|
11
|
-
} & {
|
|
9
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Input> & {
|
|
12
10
|
ref?: React.Ref<HTMLInputElement>;
|
|
13
11
|
}): React.JSX.Element;
|
|
14
12
|
declare function ComboboxTrigger({
|
|
15
13
|
className,
|
|
16
14
|
ref,
|
|
17
15
|
...props
|
|
18
|
-
}:
|
|
19
|
-
className?: string;
|
|
20
|
-
} & {
|
|
16
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Trigger> & {
|
|
21
17
|
ref?: React.Ref<HTMLButtonElement>;
|
|
22
18
|
}): React.JSX.Element;
|
|
23
19
|
declare function Clear({
|
|
24
20
|
className,
|
|
25
21
|
ref,
|
|
26
22
|
...props
|
|
27
|
-
}:
|
|
28
|
-
className?: string;
|
|
29
|
-
} & {
|
|
23
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Clear> & {
|
|
30
24
|
ref?: React.Ref<HTMLButtonElement>;
|
|
31
25
|
}): React.JSX.Element;
|
|
32
26
|
declare function ComboboxPositioner({
|
|
33
27
|
className,
|
|
34
28
|
ref,
|
|
35
29
|
...props
|
|
36
|
-
}:
|
|
37
|
-
className?: string;
|
|
38
|
-
} & {
|
|
30
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Positioner> & {
|
|
39
31
|
ref?: React.Ref<HTMLDivElement>;
|
|
40
32
|
}): React.JSX.Element;
|
|
41
33
|
declare function ComboboxPopup({
|
|
@@ -43,63 +35,49 @@ declare function ComboboxPopup({
|
|
|
43
35
|
tabIndex,
|
|
44
36
|
ref,
|
|
45
37
|
...props
|
|
46
|
-
}:
|
|
47
|
-
className?: string;
|
|
48
|
-
} & {
|
|
38
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Popup> & {
|
|
49
39
|
ref?: React.Ref<HTMLDivElement>;
|
|
50
40
|
}): React.JSX.Element;
|
|
51
41
|
declare function ComboboxList({
|
|
52
42
|
className,
|
|
53
43
|
ref,
|
|
54
44
|
...props
|
|
55
|
-
}:
|
|
56
|
-
className?: string;
|
|
57
|
-
} & {
|
|
45
|
+
}: React.ComponentPropsWithRef<typeof Combobox.List> & {
|
|
58
46
|
ref?: React.Ref<HTMLDivElement>;
|
|
59
47
|
}): React.JSX.Element;
|
|
60
48
|
declare function ComboboxItem({
|
|
61
49
|
className,
|
|
62
50
|
ref,
|
|
63
51
|
...props
|
|
64
|
-
}:
|
|
65
|
-
className?: string;
|
|
66
|
-
} & {
|
|
52
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Item> & {
|
|
67
53
|
ref?: React.Ref<HTMLDivElement>;
|
|
68
54
|
}): React.JSX.Element;
|
|
69
55
|
declare function ItemIndicator({
|
|
70
56
|
className,
|
|
71
57
|
ref,
|
|
72
58
|
...props
|
|
73
|
-
}:
|
|
74
|
-
className?: string;
|
|
75
|
-
} & {
|
|
59
|
+
}: React.ComponentPropsWithRef<typeof Combobox.ItemIndicator> & {
|
|
76
60
|
ref?: React.Ref<HTMLSpanElement>;
|
|
77
61
|
}): React.JSX.Element;
|
|
78
62
|
declare function ComboboxEmpty({
|
|
79
63
|
className,
|
|
80
64
|
ref,
|
|
81
65
|
...props
|
|
82
|
-
}:
|
|
83
|
-
className?: string;
|
|
84
|
-
} & {
|
|
66
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Empty> & {
|
|
85
67
|
ref?: React.Ref<HTMLDivElement>;
|
|
86
68
|
}): React.JSX.Element;
|
|
87
69
|
declare function ComboboxGroup({
|
|
88
70
|
className,
|
|
89
71
|
ref,
|
|
90
72
|
...props
|
|
91
|
-
}:
|
|
92
|
-
className?: string;
|
|
93
|
-
} & {
|
|
73
|
+
}: React.ComponentPropsWithRef<typeof Combobox.Group> & {
|
|
94
74
|
ref?: React.Ref<HTMLDivElement>;
|
|
95
75
|
}): React.JSX.Element;
|
|
96
76
|
declare function ComboboxGroupLabel({
|
|
97
77
|
className,
|
|
98
78
|
ref,
|
|
99
79
|
...props
|
|
100
|
-
}:
|
|
101
|
-
className?: string;
|
|
102
|
-
} & {
|
|
80
|
+
}: React.ComponentPropsWithRef<typeof Combobox.GroupLabel> & {
|
|
103
81
|
ref?: React.Ref<HTMLDivElement>;
|
|
104
82
|
}): React.JSX.Element;
|
|
105
83
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-
|
|
2
|
-
import { b as
|
|
1
|
+
import { t as cx } from "./class-names-Bk-QLWWI.js";
|
|
2
|
+
import { b as FolderIcon, u as ChevronRightIcon, x as FolderOpenIcon, y as FileIcon } from "./icons--FqCZEc3.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/_internal/use-file-tree-nav.ts
|
|
@@ -155,7 +155,7 @@ function FileTree({ className, "aria-label": ariaLabel = "File tree", expanded,
|
|
|
155
155
|
...props,
|
|
156
156
|
children: /* @__PURE__ */ jsx("ul", {
|
|
157
157
|
ref: treeRef,
|
|
158
|
-
className: "file-tree__list",
|
|
158
|
+
className: "file-tree__list sigvelo-stack-list",
|
|
159
159
|
role: "tree",
|
|
160
160
|
"aria-label": ariaLabel,
|
|
161
161
|
children
|
|
@@ -226,12 +226,12 @@ function FileTreeFolder({ className, path, name, level = 0, children, ref, ...pr
|
|
|
226
226
|
children: isExpanded ? /* @__PURE__ */ jsx(FolderOpenIcon, {}) : /* @__PURE__ */ jsx(FolderIcon, {})
|
|
227
227
|
}),
|
|
228
228
|
/* @__PURE__ */ jsx("span", {
|
|
229
|
-
className: "file-tree__name",
|
|
229
|
+
className: "file-tree__name sigvelo-truncate",
|
|
230
230
|
children: name
|
|
231
231
|
})
|
|
232
232
|
]
|
|
233
233
|
}), isExpanded ? /* @__PURE__ */ jsx("ul", {
|
|
234
|
-
className: "file-tree__list",
|
|
234
|
+
className: "file-tree__list sigvelo-stack-list",
|
|
235
235
|
role: "group",
|
|
236
236
|
children: React.Children.map(children, (child) => renderNestedFileTreeChild(child, level))
|
|
237
237
|
}) : null]
|
|
@@ -263,7 +263,7 @@ function FileTreeFile({ className, path, name, icon, level = 0, ref, ...props })
|
|
|
263
263
|
"aria-hidden": "true",
|
|
264
264
|
children: icon ?? /* @__PURE__ */ jsx(FileIcon, {})
|
|
265
265
|
}), /* @__PURE__ */ jsx("span", {
|
|
266
|
-
className: "file-tree__name",
|
|
266
|
+
className: "file-tree__name sigvelo-truncate",
|
|
267
267
|
children: name
|
|
268
268
|
})]
|
|
269
269
|
})
|
|
@@ -281,7 +281,7 @@ function FileTreeIcon({ className, children, ref, ...props }) {
|
|
|
281
281
|
function FileTreeName({ className, children, ref, ...props }) {
|
|
282
282
|
return /* @__PURE__ */ jsx("span", {
|
|
283
283
|
ref,
|
|
284
|
-
className: cx("file-tree__name", className),
|
|
284
|
+
className: cx("file-tree__name", "sigvelo-truncate", className),
|
|
285
285
|
...props,
|
|
286
286
|
children
|
|
287
287
|
});
|
|
@@ -9,9 +9,7 @@ interface MenuProps extends React.ComponentPropsWithoutRef<typeof Menu.Root> {}
|
|
|
9
9
|
/**
|
|
10
10
|
* Props for the Menu.Trigger component.
|
|
11
11
|
*/
|
|
12
|
-
interface MenuTriggerProps extends
|
|
13
|
-
/** Additional CSS class names */
|
|
14
|
-
className?: string;
|
|
12
|
+
interface MenuTriggerProps extends React.ComponentPropsWithoutRef<typeof Menu.Trigger> {
|
|
15
13
|
/** Keep Base UI trigger behavior without the default menu trigger chrome. */
|
|
16
14
|
unstyled?: boolean;
|
|
17
15
|
}
|
|
@@ -22,106 +20,67 @@ interface MenuPortalProps extends React.ComponentPropsWithoutRef<typeof Menu.Por
|
|
|
22
20
|
/**
|
|
23
21
|
* Props for the Menu.Positioner component.
|
|
24
22
|
*/
|
|
25
|
-
interface MenuPositionerProps extends
|
|
26
|
-
/** Additional CSS class names */
|
|
27
|
-
className?: string;
|
|
28
|
-
}
|
|
23
|
+
interface MenuPositionerProps extends React.ComponentPropsWithoutRef<typeof Menu.Positioner> {}
|
|
29
24
|
/**
|
|
30
25
|
* Props for the Menu.Popup component.
|
|
31
26
|
*/
|
|
32
|
-
interface MenuPopupProps extends
|
|
33
|
-
/** Additional CSS class names */
|
|
34
|
-
className?: string;
|
|
35
|
-
}
|
|
27
|
+
interface MenuPopupProps extends React.ComponentPropsWithoutRef<typeof Menu.Popup> {}
|
|
36
28
|
/**
|
|
37
29
|
* Props for the Menu.Viewport component. Use this only when one menu moves
|
|
38
30
|
* between triggers and its content changes during that transition.
|
|
39
31
|
*/
|
|
40
|
-
interface MenuViewportProps extends
|
|
41
|
-
/** Additional CSS class names */
|
|
42
|
-
className?: string;
|
|
43
|
-
}
|
|
32
|
+
interface MenuViewportProps extends React.ComponentPropsWithoutRef<typeof Menu.Viewport> {}
|
|
44
33
|
/**
|
|
45
34
|
* Props for the Menu.Item component.
|
|
46
35
|
*/
|
|
47
|
-
interface MenuItemProps extends
|
|
48
|
-
/** Additional CSS class names */
|
|
49
|
-
className?: string;
|
|
36
|
+
interface MenuItemProps extends React.ComponentPropsWithoutRef<typeof Menu.Item> {
|
|
50
37
|
inset?: boolean;
|
|
51
38
|
variant?: "default" | "destructive";
|
|
52
39
|
}
|
|
53
40
|
/**
|
|
54
41
|
* Props for the Menu.Group component.
|
|
55
42
|
*/
|
|
56
|
-
interface MenuGroupProps extends
|
|
57
|
-
/** Additional CSS class names */
|
|
58
|
-
className?: string;
|
|
59
|
-
}
|
|
43
|
+
interface MenuGroupProps extends React.ComponentPropsWithoutRef<typeof Menu.Group> {}
|
|
60
44
|
/**
|
|
61
45
|
* Props for the Menu.GroupLabel component.
|
|
62
46
|
*/
|
|
63
|
-
interface MenuGroupLabelProps extends
|
|
64
|
-
/** Additional CSS class names */
|
|
65
|
-
className?: string;
|
|
47
|
+
interface MenuGroupLabelProps extends React.ComponentPropsWithoutRef<typeof Menu.GroupLabel> {
|
|
66
48
|
inset?: boolean;
|
|
67
49
|
}
|
|
68
50
|
/**
|
|
69
51
|
* Props for the Menu.Arrow component.
|
|
70
52
|
*/
|
|
71
|
-
interface MenuArrowProps extends
|
|
72
|
-
/** Additional CSS class names */
|
|
73
|
-
className?: string;
|
|
74
|
-
}
|
|
53
|
+
interface MenuArrowProps extends React.ComponentPropsWithoutRef<typeof Menu.Arrow> {}
|
|
75
54
|
/**
|
|
76
55
|
* Props for the Menu.Separator component.
|
|
77
56
|
*/
|
|
78
|
-
interface MenuSeparatorProps extends
|
|
79
|
-
/** Additional CSS class names */
|
|
80
|
-
className?: string;
|
|
81
|
-
}
|
|
57
|
+
interface MenuSeparatorProps extends React.ComponentPropsWithoutRef<typeof Menu.Separator> {}
|
|
82
58
|
/**
|
|
83
59
|
* Props for the Menu.RadioGroup component.
|
|
84
60
|
*/
|
|
85
|
-
interface MenuRadioGroupProps extends
|
|
86
|
-
/** Additional CSS class names */
|
|
87
|
-
className?: string;
|
|
88
|
-
}
|
|
61
|
+
interface MenuRadioGroupProps extends React.ComponentPropsWithoutRef<typeof Menu.RadioGroup> {}
|
|
89
62
|
/**
|
|
90
63
|
* Props for the Menu.RadioItem component.
|
|
91
64
|
*/
|
|
92
|
-
interface MenuRadioItemProps extends
|
|
93
|
-
/** Additional CSS class names */
|
|
94
|
-
className?: string;
|
|
95
|
-
}
|
|
65
|
+
interface MenuRadioItemProps extends React.ComponentPropsWithoutRef<typeof Menu.RadioItem> {}
|
|
96
66
|
/**
|
|
97
67
|
* Props for the Menu.RadioItemIndicator component.
|
|
98
68
|
*/
|
|
99
|
-
interface MenuRadioItemIndicatorProps extends
|
|
100
|
-
/** Additional CSS class names */
|
|
101
|
-
className?: string;
|
|
102
|
-
}
|
|
69
|
+
interface MenuRadioItemIndicatorProps extends React.ComponentPropsWithoutRef<typeof Menu.RadioItemIndicator> {}
|
|
103
70
|
/**
|
|
104
71
|
* Props for the Menu.CheckboxItem component.
|
|
105
72
|
*/
|
|
106
|
-
interface MenuCheckboxItemProps extends
|
|
107
|
-
/** Additional CSS class names */
|
|
108
|
-
className?: string;
|
|
109
|
-
}
|
|
73
|
+
interface MenuCheckboxItemProps extends React.ComponentPropsWithoutRef<typeof Menu.CheckboxItem> {}
|
|
110
74
|
/**
|
|
111
75
|
* Props for the Menu.CheckboxItemIndicator component.
|
|
112
76
|
*/
|
|
113
|
-
interface MenuCheckboxItemIndicatorProps extends
|
|
114
|
-
/** Additional CSS class names */
|
|
115
|
-
className?: string;
|
|
116
|
-
}
|
|
77
|
+
interface MenuCheckboxItemIndicatorProps extends React.ComponentPropsWithoutRef<typeof Menu.CheckboxItemIndicator> {}
|
|
117
78
|
interface MenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
118
79
|
interface MenuSubmenuRootProps extends React.ComponentPropsWithoutRef<typeof Menu.SubmenuRoot> {}
|
|
119
80
|
/**
|
|
120
81
|
* Props for the Menu.SubmenuTrigger component.
|
|
121
82
|
*/
|
|
122
|
-
interface MenuSubmenuTriggerProps extends
|
|
123
|
-
/** Additional CSS class names */
|
|
124
|
-
className?: string;
|
|
83
|
+
interface MenuSubmenuTriggerProps extends React.ComponentPropsWithoutRef<typeof Menu.SubmenuTrigger> {
|
|
125
84
|
inset?: boolean;
|
|
126
85
|
}
|
|
127
86
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-
|
|
2
|
-
import { n as ArrowLeftIcon, r as ArrowRightIcon,
|
|
1
|
+
import { t as cx } from "./class-names-Bk-QLWWI.js";
|
|
2
|
+
import { n as ArrowLeftIcon, r as ArrowRightIcon, y as FileIcon } from "./icons--FqCZEc3.js";
|
|
3
3
|
import { Button } from "./components/Button.js";
|
|
4
4
|
import { Tooltip } from "./components/Tooltip.js";
|
|
5
|
-
import { c as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-
|
|
5
|
+
import { c as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-B1ykV1dS.js";
|
|
6
6
|
import { t as AttachmentPreview } from "./attachment-preview-DIs50Q0h.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cx } from "./class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "./class-names-Bk-QLWWI.js";
|
|
2
|
+
import { c as ChevronDownIcon, z as SearchIcon } from "./icons--FqCZEc3.js";
|
|
3
3
|
import { Button } from "./components/Button.js";
|
|
4
|
-
import { Separator } from "./components/Separator.js";
|
|
5
4
|
import { Dialog } from "./components/Dialog.js";
|
|
5
|
+
import { Separator } from "./components/Separator.js";
|
|
6
6
|
import { Input } from "./components/Input.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -365,7 +365,7 @@ function ModelSelectorContent({ children, title = "Model Selector", ...props })
|
|
|
365
365
|
return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
366
366
|
...props,
|
|
367
367
|
children: [/* @__PURE__ */ jsx(Dialog.Title, {
|
|
368
|
-
className: "model-selector__title",
|
|
368
|
+
className: "model-selector__title sigvelo-visually-hidden",
|
|
369
369
|
children: title
|
|
370
370
|
}), children]
|
|
371
371
|
}) })] });
|
|
@@ -484,7 +484,7 @@ function ModelSelectorLogoGroup({ className, children, ref, ...props }) {
|
|
|
484
484
|
function ModelSelectorName({ className, children, ref, ...props }) {
|
|
485
485
|
return /* @__PURE__ */ jsx("span", {
|
|
486
486
|
ref,
|
|
487
|
-
className: cx("model-selector__name", className),
|
|
487
|
+
className: cx("model-selector__name", "sigvelo-truncate", className),
|
|
488
488
|
...props,
|
|
489
489
|
children
|
|
490
490
|
});
|