@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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-Bk-QLWWI.js";
|
|
2
|
+
import { Popover } from "./Popover.js";
|
|
3
|
+
import { PreviewCard } from "./PreviewCard.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/InlineCitation.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Keeps claim text and an app-placed citation in one inline presentation group.
|
|
9
|
+
*
|
|
10
|
+
* AI SDK source parts do not include text offsets. The app must place this
|
|
11
|
+
* component beside the claim it supports; this component never parses message
|
|
12
|
+
* text or guesses an anchor position.
|
|
13
|
+
*
|
|
14
|
+
* @see ../../node_modules/ai/src/ui/ui-messages.ts (`SourceUrlUIPart`,
|
|
15
|
+
* `SourceDocumentUIPart`)
|
|
16
|
+
* @see https://elements.ai-sdk.dev/components/inline-citation
|
|
17
|
+
*/
|
|
18
|
+
function InlineCitation({ className, ref, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx("span", {
|
|
20
|
+
ref,
|
|
21
|
+
"data-slot": "inline-citation",
|
|
22
|
+
className: cx("inline-citation", className),
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/** Claim text whose citation is placed by the consuming app. */
|
|
27
|
+
function InlineCitationText({ className, ref, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("span", {
|
|
29
|
+
ref,
|
|
30
|
+
"data-slot": "inline-citation-text",
|
|
31
|
+
className: cx("inline-citation__text", className),
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/** Compact presentation container for citation details inside an existing overlay. */
|
|
36
|
+
function InlineCitationCard({ className, ref, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ jsx("div", {
|
|
38
|
+
ref,
|
|
39
|
+
"data-slot": "inline-citation-card",
|
|
40
|
+
className: cx("inline-citation__card", className),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Adapts a whole AI SDK URL or document source part to an inline citation.
|
|
46
|
+
* URL sources use a safe external link and PreviewCard. Document sources have
|
|
47
|
+
* no URL, so they use a Popover button and never fabricate a download target.
|
|
48
|
+
*/
|
|
49
|
+
function InlineCitationSource({ source, index, className, ref, ...props }) {
|
|
50
|
+
const visibleLabel = index == null ? defaultLabel(source) : `[${index}]`;
|
|
51
|
+
const accessibleName = `${visibleLabel}: ${source.title || visibleLabel}`;
|
|
52
|
+
if (source.type === "source-url") {
|
|
53
|
+
const href = safeSourceUrl(source.url);
|
|
54
|
+
if (href) return /* @__PURE__ */ jsx("span", {
|
|
55
|
+
ref,
|
|
56
|
+
className: cx("inline-citation__source", className),
|
|
57
|
+
...props,
|
|
58
|
+
"data-slot": "inline-citation-source",
|
|
59
|
+
"data-source-id": source.sourceId,
|
|
60
|
+
"data-source-type": source.type,
|
|
61
|
+
children: /* @__PURE__ */ jsxs(PreviewCard.Root, { children: [/* @__PURE__ */ jsx(PreviewCard.Trigger, {
|
|
62
|
+
delay: 0,
|
|
63
|
+
closeDelay: 0,
|
|
64
|
+
href,
|
|
65
|
+
target: "_blank",
|
|
66
|
+
rel: "noreferrer",
|
|
67
|
+
className: "inline-citation__trigger",
|
|
68
|
+
"aria-label": `${accessibleName} (opens in a new tab)`,
|
|
69
|
+
children: visibleLabel
|
|
70
|
+
}), /* @__PURE__ */ jsx(PreviewCard.Portal, { children: /* @__PURE__ */ jsx(PreviewCard.Positioner, {
|
|
71
|
+
sideOffset: 8,
|
|
72
|
+
children: /* @__PURE__ */ jsx(PreviewCard.Popup, {
|
|
73
|
+
className: "inline-citation__popup",
|
|
74
|
+
children: /* @__PURE__ */ jsx(CitationDetails, { source })
|
|
75
|
+
})
|
|
76
|
+
}) })] })
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return /* @__PURE__ */ jsx("span", {
|
|
80
|
+
ref,
|
|
81
|
+
className: cx("inline-citation__source", className),
|
|
82
|
+
...props,
|
|
83
|
+
"data-slot": "inline-citation-source",
|
|
84
|
+
"data-source-id": source.sourceId,
|
|
85
|
+
"data-source-type": source.type,
|
|
86
|
+
children: /* @__PURE__ */ jsxs(Popover.Root, { children: [/* @__PURE__ */ jsx(Popover.Trigger, {
|
|
87
|
+
className: "inline-citation__trigger",
|
|
88
|
+
"aria-label": accessibleName,
|
|
89
|
+
children: visibleLabel
|
|
90
|
+
}), /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
|
|
91
|
+
sideOffset: 8,
|
|
92
|
+
children: /* @__PURE__ */ jsx(Popover.Popup, {
|
|
93
|
+
className: "inline-citation__popup",
|
|
94
|
+
children: /* @__PURE__ */ jsx(CitationDetails, {
|
|
95
|
+
source,
|
|
96
|
+
titlePart: "popover"
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
}) })] })
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function CitationDetails({ source, titlePart }) {
|
|
103
|
+
const title = source.title || defaultLabel(source);
|
|
104
|
+
return /* @__PURE__ */ jsxs(InlineCitationCard, { children: [
|
|
105
|
+
titlePart ? /* @__PURE__ */ jsx(Popover.Title, {
|
|
106
|
+
className: "inline-citation__title",
|
|
107
|
+
children: title
|
|
108
|
+
}) : /* @__PURE__ */ jsx("strong", {
|
|
109
|
+
className: "inline-citation__title",
|
|
110
|
+
children: title
|
|
111
|
+
}),
|
|
112
|
+
source.type === "source-url" ? /* @__PURE__ */ jsx("span", {
|
|
113
|
+
className: "inline-citation__location",
|
|
114
|
+
children: source.url
|
|
115
|
+
}) : /* @__PURE__ */ jsxs("span", {
|
|
116
|
+
className: "inline-citation__metadata",
|
|
117
|
+
children: [source.filename ? /* @__PURE__ */ jsx("span", { children: source.filename }) : null, /* @__PURE__ */ jsx("span", { children: source.mediaType })]
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ jsxs("span", {
|
|
120
|
+
className: "inline-citation__id",
|
|
121
|
+
children: ["Source ID: ", source.sourceId]
|
|
122
|
+
})
|
|
123
|
+
] });
|
|
124
|
+
}
|
|
125
|
+
function defaultLabel(source) {
|
|
126
|
+
if (source.type === "source-document") return "Document";
|
|
127
|
+
try {
|
|
128
|
+
return new URL(source.url).hostname.replace(/^www\./, "") || "Source";
|
|
129
|
+
} catch {
|
|
130
|
+
return "Source";
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function safeSourceUrl(value) {
|
|
134
|
+
try {
|
|
135
|
+
const parsed = new URL(value);
|
|
136
|
+
return parsed.protocol === "https:" || parsed.protocol === "http:" ? parsed.href : null;
|
|
137
|
+
} catch {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
export { InlineCitation, InlineCitationCard, InlineCitationSource, InlineCitationText };
|
|
@@ -5,10 +5,7 @@ import { InputProps as InputProps$1 } from "@base-ui/react/input";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Input component.
|
|
7
7
|
*/
|
|
8
|
-
interface InputProps extends
|
|
9
|
-
/** Additional CSS class names */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
8
|
+
interface InputProps extends InputProps$1 {}
|
|
12
9
|
/**
|
|
13
10
|
* An accessible text input component with consistent styling.
|
|
14
11
|
*
|
package/dist/components/Input.js
CHANGED
|
@@ -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 { Input as Input$1 } from "@base-ui/react/input";
|
|
@@ -15,11 +16,11 @@ import { Input as Input$1 } from "@base-ui/react/input";
|
|
|
15
16
|
*
|
|
16
17
|
* @see {@link https://base-ui.com/react/components/input | Base UI Input}
|
|
17
18
|
*/
|
|
18
|
-
function Input({ className
|
|
19
|
+
function Input({ className, ref, ...props }) {
|
|
19
20
|
return /* @__PURE__ */ jsx(Input$1, {
|
|
20
21
|
ref,
|
|
21
22
|
"data-slot": "input",
|
|
22
|
-
className: ["input"
|
|
23
|
+
className: mergeBaseClassName(["input"].filter(Boolean).join(" "), className),
|
|
23
24
|
...props
|
|
24
25
|
});
|
|
25
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "../class-names-Bk-QLWWI.js";
|
|
2
|
+
import { E as McpIcon, J as WarningIcon, V as SpinnerIcon, s as CheckIcon } from "../icons--FqCZEc3.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./AgentAttention.js";
|
|
5
5
|
import { getMcpServerEntry, getMcpServerRuntimeState } from "../utils/mcp-server-catalog.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as MenuItemProps, t as Menu } from "../Menu-
|
|
1
|
+
import { s as MenuItemProps, t as Menu } from "../Menu-L6MZm-7N.js";
|
|
2
2
|
import { McpServerCard } from "../utils/mcp-server-catalog.js";
|
|
3
3
|
import { McpConnectorFormProps } from "./AgentConnection.js";
|
|
4
4
|
import { DialogProps } from "./Dialog.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.js";
|
|
2
|
+
import { J as WarningIcon, V as SpinnerIcon, k as MinusIcon, s as CheckIcon } from "../icons--FqCZEc3.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import { Dialog } from "./Dialog.js";
|
|
5
5
|
import { Menu } from "./Menu.js";
|
|
@@ -63,6 +63,7 @@ function McpServerPicker({ servers, onConnect, mcp, onDisconnect, sideOffset = 1
|
|
|
63
63
|
align: "start",
|
|
64
64
|
className: "mcp-server-picker__popup",
|
|
65
65
|
collisionPadding: 8,
|
|
66
|
+
"data-recipe": "wide-scroll-picker",
|
|
66
67
|
side: "top",
|
|
67
68
|
sideOffset,
|
|
68
69
|
children: /* @__PURE__ */ jsx(McpServerPickerItems, {
|
|
@@ -111,7 +112,7 @@ function McpServerPickerItems({ servers, onConnect, mcp, onDisconnect }) {
|
|
|
111
112
|
}
|
|
112
113
|
function McpServerPickerGroup({ label, children, className, ...props }) {
|
|
113
114
|
return /* @__PURE__ */ jsxs(Menu.Group, {
|
|
114
|
-
className:
|
|
115
|
+
className: mergeBaseClassName("mcp-server-picker__group", className),
|
|
115
116
|
...props,
|
|
116
117
|
children: [/* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
117
118
|
className: "mcp-server-picker__group-label",
|
|
@@ -121,7 +122,7 @@ function McpServerPickerGroup({ label, children, className, ...props }) {
|
|
|
121
122
|
}
|
|
122
123
|
function McpServerPickerAction({ icon, label, description, className, ...props }) {
|
|
123
124
|
return /* @__PURE__ */ jsxs(Menu.Item, {
|
|
124
|
-
className:
|
|
125
|
+
className: mergeBaseClassName("mcp-server-picker__row mcp-server-picker__custom-action", className),
|
|
125
126
|
...props,
|
|
126
127
|
children: [/* @__PURE__ */ jsx("span", {
|
|
127
128
|
className: "mcp-server-picker__icon",
|
|
@@ -202,7 +203,7 @@ function McpServerPickerRow({ row, onConnect, onDisconnect, pendingAction }) {
|
|
|
202
203
|
onClick: pendingAction !== null ? void 0 : () => void onDisconnect(connectedServerId),
|
|
203
204
|
title: disconnectLabel,
|
|
204
205
|
children: [/* @__PURE__ */ jsx(MinusIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
205
|
-
className: "mcp-server-picker__status-label",
|
|
206
|
+
className: "mcp-server-picker__status-label sigvelo-visually-hidden",
|
|
206
207
|
children: disconnectLabel
|
|
207
208
|
})]
|
|
208
209
|
}) : null]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MenuSubmenuRootProps, a as MenuGroupLabelProps, b as MenuViewportProps, c as MenuPopupProps, d as MenuProps, f as MenuRadioGroupProps, g as MenuShortcutProps, h as MenuSeparatorProps, i as MenuCheckboxItemProps, l as MenuPortalProps, m as MenuRadioItemProps, n as MenuArrowProps, o as MenuGroupProps, p as MenuRadioItemIndicatorProps, r as MenuCheckboxItemIndicatorProps, s as MenuItemProps, t as Menu, u as MenuPositionerProps, v as MenuSubmenuTriggerProps, y as MenuTriggerProps } from "../Menu-
|
|
1
|
+
import { _ as MenuSubmenuRootProps, a as MenuGroupLabelProps, b as MenuViewportProps, c as MenuPopupProps, d as MenuProps, f as MenuRadioGroupProps, g as MenuShortcutProps, h as MenuSeparatorProps, i as MenuCheckboxItemProps, l as MenuPortalProps, m as MenuRadioItemProps, n as MenuArrowProps, o as MenuGroupProps, p as MenuRadioItemIndicatorProps, r as MenuCheckboxItemIndicatorProps, s as MenuItemProps, t as Menu, u as MenuPositionerProps, v as MenuSubmenuTriggerProps, y as MenuTriggerProps } from "../Menu-L6MZm-7N.js";
|
|
2
2
|
export { Menu, MenuArrowProps, MenuCheckboxItemIndicatorProps, MenuCheckboxItemProps, MenuGroupLabelProps, MenuGroupProps, MenuItemProps, MenuPopupProps, MenuPortalProps, MenuPositionerProps, MenuProps, MenuRadioGroupProps, MenuRadioItemIndicatorProps, MenuRadioItemProps, MenuSeparatorProps, MenuShortcutProps, MenuSubmenuRootProps, MenuSubmenuTriggerProps, MenuTriggerProps, MenuViewportProps };
|
package/dist/components/Menu.js
CHANGED
|
@@ -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 { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
@@ -31,8 +32,8 @@ const MenuRoot = (props) => {
|
|
|
31
32
|
/**
|
|
32
33
|
* Button that toggles the menu visibility.
|
|
33
34
|
*/
|
|
34
|
-
function MenuTrigger({ className
|
|
35
|
-
const classes = [!unstyled && "menu__trigger"
|
|
35
|
+
function MenuTrigger({ className, unstyled = false, ref, ...props }) {
|
|
36
|
+
const classes = mergeBaseClassName([!unstyled && "menu__trigger"].filter(Boolean).join(" "), className);
|
|
36
37
|
return /* @__PURE__ */ jsx(Menu$1.Trigger, {
|
|
37
38
|
ref,
|
|
38
39
|
"data-slot": "dropdown-menu-trigger",
|
|
@@ -53,12 +54,8 @@ const MenuPortal = (props) => {
|
|
|
53
54
|
/**
|
|
54
55
|
* Positions the menu popup relative to the trigger.
|
|
55
56
|
*/
|
|
56
|
-
function MenuPositioner({ className
|
|
57
|
-
const classes = [
|
|
58
|
-
"menu__positioner",
|
|
59
|
-
"base-ui-positioner",
|
|
60
|
-
className
|
|
61
|
-
].filter(Boolean).join(" ");
|
|
57
|
+
function MenuPositioner({ className, ref, ...props }) {
|
|
58
|
+
const classes = mergeBaseClassName(["menu__positioner", "base-ui-positioner"].filter(Boolean).join(" "), className);
|
|
62
59
|
return /* @__PURE__ */ jsx(Menu$1.Positioner, {
|
|
63
60
|
ref,
|
|
64
61
|
"data-slot": "dropdown-menu-positioner",
|
|
@@ -69,12 +66,8 @@ function MenuPositioner({ className = "", ref, ...props }) {
|
|
|
69
66
|
/**
|
|
70
67
|
* Container for menu items.
|
|
71
68
|
*/
|
|
72
|
-
function MenuPopup({ className
|
|
73
|
-
const classes = [
|
|
74
|
-
"menu__popup",
|
|
75
|
-
"base-ui-popup",
|
|
76
|
-
className
|
|
77
|
-
].filter(Boolean).join(" ");
|
|
69
|
+
function MenuPopup({ className, ref, ...props }) {
|
|
70
|
+
const classes = mergeBaseClassName(["menu__popup", "base-ui-popup"].filter(Boolean).join(" "), className);
|
|
78
71
|
return /* @__PURE__ */ jsx(Menu$1.Popup, {
|
|
79
72
|
ref,
|
|
80
73
|
"data-slot": "dropdown-menu-content",
|
|
@@ -87,8 +80,8 @@ function MenuPopup({ className = "", ref, ...props }) {
|
|
|
87
80
|
* triggers. Pair the adaptive classes from `base-ui-motion.css` with the
|
|
88
81
|
* positioner, popup, and this viewport when that behavior is needed.
|
|
89
82
|
*/
|
|
90
|
-
function MenuViewport({ className
|
|
91
|
-
const classes = ["menu__viewport"
|
|
83
|
+
function MenuViewport({ className, ref, ...props }) {
|
|
84
|
+
const classes = mergeBaseClassName(["menu__viewport"].filter(Boolean).join(" "), className);
|
|
92
85
|
return /* @__PURE__ */ jsx(Menu$1.Viewport, {
|
|
93
86
|
ref,
|
|
94
87
|
"data-slot": "dropdown-menu-viewport",
|
|
@@ -99,12 +92,8 @@ function MenuViewport({ className = "", ref, ...props }) {
|
|
|
99
92
|
/**
|
|
100
93
|
* Interactive menu item.
|
|
101
94
|
*/
|
|
102
|
-
function MenuItem({ className
|
|
103
|
-
const classes = [
|
|
104
|
-
"menu__item",
|
|
105
|
-
inset && "menu__item--inset",
|
|
106
|
-
className
|
|
107
|
-
].filter(Boolean).join(" ");
|
|
95
|
+
function MenuItem({ className, inset, variant = "default", ref, ...props }) {
|
|
96
|
+
const classes = mergeBaseClassName(["menu__item", inset && "menu__item--inset"].filter(Boolean).join(" "), className);
|
|
108
97
|
return /* @__PURE__ */ jsx(Menu$1.Item, {
|
|
109
98
|
ref,
|
|
110
99
|
"data-slot": "dropdown-menu-item",
|
|
@@ -117,8 +106,8 @@ function MenuItem({ className = "", inset, variant = "default", ref, ...props })
|
|
|
117
106
|
/**
|
|
118
107
|
* Groups related menu items.
|
|
119
108
|
*/
|
|
120
|
-
function MenuGroup({ className
|
|
121
|
-
const classes = ["menu__group"
|
|
109
|
+
function MenuGroup({ className, ref, ...props }) {
|
|
110
|
+
const classes = mergeBaseClassName(["menu__group"].filter(Boolean).join(" "), className);
|
|
122
111
|
return /* @__PURE__ */ jsx(Menu$1.Group, {
|
|
123
112
|
ref,
|
|
124
113
|
"data-slot": "dropdown-menu-group",
|
|
@@ -129,12 +118,8 @@ function MenuGroup({ className = "", ref, ...props }) {
|
|
|
129
118
|
/**
|
|
130
119
|
* Label for a group of menu items.
|
|
131
120
|
*/
|
|
132
|
-
function MenuGroupLabel({ className
|
|
133
|
-
const classes = [
|
|
134
|
-
"menu__group-label",
|
|
135
|
-
inset && "menu__group-label--inset",
|
|
136
|
-
className
|
|
137
|
-
].filter(Boolean).join(" ");
|
|
121
|
+
function MenuGroupLabel({ className, inset, ref, ...props }) {
|
|
122
|
+
const classes = mergeBaseClassName(["menu__group-label", inset && "menu__group-label--inset"].filter(Boolean).join(" "), className);
|
|
138
123
|
return /* @__PURE__ */ jsx(Menu$1.GroupLabel, {
|
|
139
124
|
ref,
|
|
140
125
|
"data-slot": "dropdown-menu-label",
|
|
@@ -146,8 +131,8 @@ function MenuGroupLabel({ className = "", inset, ref, ...props }) {
|
|
|
146
131
|
/**
|
|
147
132
|
* Arrow pointing to the trigger.
|
|
148
133
|
*/
|
|
149
|
-
function MenuArrow({ className
|
|
150
|
-
const classes = ["menu__arrow"
|
|
134
|
+
function MenuArrow({ className, ref, ...props }) {
|
|
135
|
+
const classes = mergeBaseClassName(["menu__arrow"].filter(Boolean).join(" "), className);
|
|
151
136
|
return /* @__PURE__ */ jsx(Menu$1.Arrow, {
|
|
152
137
|
ref,
|
|
153
138
|
"data-slot": "dropdown-menu-arrow",
|
|
@@ -158,8 +143,8 @@ function MenuArrow({ className = "", ref, ...props }) {
|
|
|
158
143
|
/**
|
|
159
144
|
* Visual separator between menu sections.
|
|
160
145
|
*/
|
|
161
|
-
function MenuSeparator({ className
|
|
162
|
-
const classes = ["menu__separator"
|
|
146
|
+
function MenuSeparator({ className, ref, ...props }) {
|
|
147
|
+
const classes = mergeBaseClassName(["menu__separator"].filter(Boolean).join(" "), className);
|
|
163
148
|
return /* @__PURE__ */ jsx(Menu$1.Separator, {
|
|
164
149
|
ref,
|
|
165
150
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -170,8 +155,8 @@ function MenuSeparator({ className = "", ref, ...props }) {
|
|
|
170
155
|
/**
|
|
171
156
|
* Group for exclusive radio selection.
|
|
172
157
|
*/
|
|
173
|
-
function MenuRadioGroup({ className
|
|
174
|
-
const classes = ["menu__radio-group"
|
|
158
|
+
function MenuRadioGroup({ className, ref, ...props }) {
|
|
159
|
+
const classes = mergeBaseClassName(["menu__radio-group"].filter(Boolean).join(" "), className);
|
|
175
160
|
return /* @__PURE__ */ jsx(Menu$1.RadioGroup, {
|
|
176
161
|
ref,
|
|
177
162
|
"data-slot": "dropdown-menu-radio-group",
|
|
@@ -182,8 +167,8 @@ function MenuRadioGroup({ className = "", ref, ...props }) {
|
|
|
182
167
|
/**
|
|
183
168
|
* Radio item for exclusive selection.
|
|
184
169
|
*/
|
|
185
|
-
function MenuRadioItem({ className
|
|
186
|
-
const classes = ["menu__radio-item"
|
|
170
|
+
function MenuRadioItem({ className, ref, ...props }) {
|
|
171
|
+
const classes = mergeBaseClassName(["menu__radio-item"].filter(Boolean).join(" "), className);
|
|
187
172
|
return /* @__PURE__ */ jsx(Menu$1.RadioItem, {
|
|
188
173
|
ref,
|
|
189
174
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -194,8 +179,8 @@ function MenuRadioItem({ className = "", ref, ...props }) {
|
|
|
194
179
|
/**
|
|
195
180
|
* Indicator for selected radio item.
|
|
196
181
|
*/
|
|
197
|
-
function MenuRadioItemIndicator({ className
|
|
198
|
-
const classes = ["menu__radio-indicator"
|
|
182
|
+
function MenuRadioItemIndicator({ className, ref, ...props }) {
|
|
183
|
+
const classes = mergeBaseClassName(["menu__radio-indicator"].filter(Boolean).join(" "), className);
|
|
199
184
|
return /* @__PURE__ */ jsx(Menu$1.RadioItemIndicator, {
|
|
200
185
|
ref,
|
|
201
186
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
@@ -206,8 +191,8 @@ function MenuRadioItemIndicator({ className = "", ref, ...props }) {
|
|
|
206
191
|
/**
|
|
207
192
|
* Checkbox item for toggling options.
|
|
208
193
|
*/
|
|
209
|
-
function MenuCheckboxItem({ className
|
|
210
|
-
const classes = ["menu__checkbox-item"
|
|
194
|
+
function MenuCheckboxItem({ className, ref, ...props }) {
|
|
195
|
+
const classes = mergeBaseClassName(["menu__checkbox-item"].filter(Boolean).join(" "), className);
|
|
211
196
|
return /* @__PURE__ */ jsx(Menu$1.CheckboxItem, {
|
|
212
197
|
ref,
|
|
213
198
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -218,8 +203,8 @@ function MenuCheckboxItem({ className = "", ref, ...props }) {
|
|
|
218
203
|
/**
|
|
219
204
|
* Indicator for checked checkbox item.
|
|
220
205
|
*/
|
|
221
|
-
function MenuCheckboxItemIndicator({ className
|
|
222
|
-
const classes = ["menu__checkbox-indicator"
|
|
206
|
+
function MenuCheckboxItemIndicator({ className, ref, ...props }) {
|
|
207
|
+
const classes = mergeBaseClassName(["menu__checkbox-indicator"].filter(Boolean).join(" "), className);
|
|
223
208
|
return /* @__PURE__ */ jsx(Menu$1.CheckboxItemIndicator, {
|
|
224
209
|
ref,
|
|
225
210
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
@@ -227,11 +212,11 @@ function MenuCheckboxItemIndicator({ className = "", ref, ...props }) {
|
|
|
227
212
|
...props
|
|
228
213
|
});
|
|
229
214
|
}
|
|
230
|
-
function MenuShortcut({ className
|
|
215
|
+
function MenuShortcut({ className, ref, ...props }) {
|
|
231
216
|
return /* @__PURE__ */ jsx("span", {
|
|
232
217
|
ref,
|
|
233
218
|
"data-slot": "dropdown-menu-shortcut",
|
|
234
|
-
className: ["menu__shortcut"
|
|
219
|
+
className: mergeBaseClassName(["menu__shortcut"].filter(Boolean).join(" "), className),
|
|
235
220
|
...props
|
|
236
221
|
});
|
|
237
222
|
}
|
|
@@ -244,12 +229,8 @@ function MenuSubmenuRoot(props) {
|
|
|
244
229
|
/**
|
|
245
230
|
* Trigger that opens a submenu.
|
|
246
231
|
*/
|
|
247
|
-
function MenuSubmenuTrigger({ className
|
|
248
|
-
const classes = [
|
|
249
|
-
"menu__submenu-trigger",
|
|
250
|
-
inset && "menu__item--inset",
|
|
251
|
-
className
|
|
252
|
-
].filter(Boolean).join(" ");
|
|
232
|
+
function MenuSubmenuTrigger({ className, inset, ref, ...props }) {
|
|
233
|
+
const classes = mergeBaseClassName(["menu__submenu-trigger", inset && "menu__item--inset"].filter(Boolean).join(" "), className);
|
|
253
234
|
return /* @__PURE__ */ jsx(Menu$1.SubmenuTrigger, {
|
|
254
235
|
ref,
|
|
255
236
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -6,10 +6,7 @@ import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
|
|
|
6
6
|
/**
|
|
7
7
|
* Props for the Menubar component.
|
|
8
8
|
*/
|
|
9
|
-
interface MenubarProps extends
|
|
10
|
-
/** Additional CSS class names */
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
9
|
+
interface MenubarProps extends React.ComponentPropsWithoutRef<typeof Menubar$1> {}
|
|
13
10
|
/**
|
|
14
11
|
* Props for the Menubar.Menu component.
|
|
15
12
|
*/
|
|
@@ -17,10 +14,7 @@ interface MenubarMenuProps extends React.ComponentPropsWithoutRef<typeof Menu.Ro
|
|
|
17
14
|
/**
|
|
18
15
|
* Props for the Menubar.Trigger component.
|
|
19
16
|
*/
|
|
20
|
-
interface MenubarTriggerProps extends
|
|
21
|
-
/** Additional CSS class names */
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
17
|
+
interface MenubarTriggerProps extends React.ComponentPropsWithoutRef<typeof Menu.Trigger> {}
|
|
24
18
|
/**
|
|
25
19
|
* Props for the Menubar.Portal component.
|
|
26
20
|
*/
|
|
@@ -28,61 +22,38 @@ interface MenubarPortalProps extends React.ComponentPropsWithoutRef<typeof Menu.
|
|
|
28
22
|
/**
|
|
29
23
|
* Props for the Menubar.Positioner component.
|
|
30
24
|
*/
|
|
31
|
-
interface MenubarPositionerProps extends
|
|
32
|
-
/** Additional CSS class names */
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
25
|
+
interface MenubarPositionerProps extends React.ComponentPropsWithoutRef<typeof Menu.Positioner> {}
|
|
35
26
|
/**
|
|
36
27
|
* Props for the Menubar.Popup component.
|
|
37
28
|
*/
|
|
38
|
-
interface MenubarPopupProps extends
|
|
39
|
-
/** Additional CSS class names */
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
29
|
+
interface MenubarPopupProps extends React.ComponentPropsWithoutRef<typeof Menu.Popup> {}
|
|
42
30
|
/**
|
|
43
31
|
* Props for the Menubar.Item component.
|
|
44
32
|
*/
|
|
45
|
-
interface MenubarItemProps extends
|
|
46
|
-
/** Additional CSS class names */
|
|
47
|
-
className?: string;
|
|
33
|
+
interface MenubarItemProps extends React.ComponentPropsWithoutRef<typeof Menu.Item> {
|
|
48
34
|
inset?: boolean;
|
|
49
35
|
variant?: "default" | "destructive";
|
|
50
36
|
}
|
|
51
37
|
/**
|
|
52
38
|
* Props for the Menubar.Separator component.
|
|
53
39
|
*/
|
|
54
|
-
interface MenubarSeparatorProps extends
|
|
55
|
-
/** Additional CSS class names */
|
|
56
|
-
className?: string;
|
|
57
|
-
}
|
|
40
|
+
interface MenubarSeparatorProps extends React.ComponentPropsWithoutRef<typeof Menu.Separator> {}
|
|
58
41
|
/**
|
|
59
42
|
* Props for the Menubar.Group component.
|
|
60
43
|
*/
|
|
61
|
-
interface MenubarGroupProps extends
|
|
62
|
-
/** Additional CSS class names */
|
|
63
|
-
className?: string;
|
|
64
|
-
}
|
|
44
|
+
interface MenubarGroupProps extends React.ComponentPropsWithoutRef<typeof Menu.Group> {}
|
|
65
45
|
/**
|
|
66
46
|
* Props for the Menubar.GroupLabel component.
|
|
67
47
|
*/
|
|
68
|
-
interface MenubarGroupLabelProps extends
|
|
69
|
-
/** Additional CSS class names */
|
|
70
|
-
className?: string;
|
|
48
|
+
interface MenubarGroupLabelProps extends React.ComponentPropsWithoutRef<typeof Menu.GroupLabel> {
|
|
71
49
|
inset?: boolean;
|
|
72
50
|
}
|
|
73
|
-
interface MenubarCheckboxItemProps extends
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
interface MenubarRadioGroupProps extends Omit<React.ComponentPropsWithoutRef<typeof Menu.RadioGroup>, "className"> {
|
|
77
|
-
className?: string;
|
|
78
|
-
}
|
|
79
|
-
interface MenubarRadioItemProps extends Omit<React.ComponentPropsWithoutRef<typeof Menu.RadioItem>, "className"> {
|
|
80
|
-
className?: string;
|
|
81
|
-
}
|
|
51
|
+
interface MenubarCheckboxItemProps extends React.ComponentPropsWithoutRef<typeof Menu.CheckboxItem> {}
|
|
52
|
+
interface MenubarRadioGroupProps extends React.ComponentPropsWithoutRef<typeof Menu.RadioGroup> {}
|
|
53
|
+
interface MenubarRadioItemProps extends React.ComponentPropsWithoutRef<typeof Menu.RadioItem> {}
|
|
82
54
|
interface MenubarShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
83
55
|
interface MenubarSubmenuRootProps extends React.ComponentPropsWithoutRef<typeof Menu.SubmenuRoot> {}
|
|
84
|
-
interface MenubarSubmenuTriggerProps extends
|
|
85
|
-
className?: string;
|
|
56
|
+
interface MenubarSubmenuTriggerProps extends React.ComponentPropsWithoutRef<typeof Menu.SubmenuTrigger> {
|
|
86
57
|
inset?: boolean;
|
|
87
58
|
}
|
|
88
59
|
/**
|
|
@@ -195,7 +166,11 @@ declare function MenubarCheckboxItem({
|
|
|
195
166
|
}: MenubarCheckboxItemProps & {
|
|
196
167
|
ref?: React.Ref<HTMLDivElement>;
|
|
197
168
|
}): React.JSX.Element;
|
|
198
|
-
declare function MenubarCheckboxItemIndicator(
|
|
169
|
+
declare function MenubarCheckboxItemIndicator({
|
|
170
|
+
children,
|
|
171
|
+
className,
|
|
172
|
+
...props
|
|
173
|
+
}: Menu.CheckboxItemIndicator.Props): React.JSX.Element;
|
|
199
174
|
declare function MenubarRadioGroup({
|
|
200
175
|
className,
|
|
201
176
|
ref,
|
|
@@ -210,7 +185,11 @@ declare function MenubarRadioItem({
|
|
|
210
185
|
}: MenubarRadioItemProps & {
|
|
211
186
|
ref?: React.Ref<HTMLDivElement>;
|
|
212
187
|
}): React.JSX.Element;
|
|
213
|
-
declare function MenubarRadioItemIndicator(
|
|
188
|
+
declare function MenubarRadioItemIndicator({
|
|
189
|
+
children,
|
|
190
|
+
className,
|
|
191
|
+
...props
|
|
192
|
+
}: Menu.RadioItemIndicator.Props): React.JSX.Element;
|
|
214
193
|
declare function MenubarShortcut({
|
|
215
194
|
className,
|
|
216
195
|
ref,
|