@mcp-b/react-components 0.11.0 → 0.13.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-B9LD_WF1.d.ts → AgentChat-Br6tKEl8.d.ts} +38 -10
- package/dist/{BrowserLiveView-ZktFZiMD.d.ts → BrowserLiveView-BV5qgFgI.d.ts} +11 -10
- package/dist/{BrowserReplay-6G-mnwcn.d.ts → BrowserReplay-xWvRjRAC.d.ts} +2 -1
- package/dist/{Button-Ct5I6aTu.d.ts → Button-FX_hpqxm.d.ts} +8 -11
- package/dist/{CodeBlock-XNQOupQ3.js → CodeBlock-BUFXG8HW.js} +22 -12
- package/dist/{CodeBlock-CxQXv3C4.d.ts → CodeBlock-DUh9WOGo.d.ts} +13 -7
- package/dist/{Combobox-D9anamNr.d.ts → Combobox-B9Fcd6q-.d.ts} +4 -14
- package/dist/{FileTree-wMyZhhHO.js → FileTree-mpEIcfzA.js} +1 -1
- package/dist/{Menu-B5vDqZe_.d.ts → Menu-Bgu-ufb5.d.ts} +29 -65
- package/dist/{ModelSelector-DXtpcRmT.js → ModelSelector-DVgVBdvw.js} +23 -20
- package/dist/{PromptInput-D6-G24p7.d.ts → PromptInput-p5KmOmt1.d.ts} +313 -89
- package/dist/Select-Dl_vF_Bt.d.ts +213 -0
- package/dist/{Tabs-D9EAq09D.d.ts → Tabs-3Zc4tb9D.d.ts} +9 -6
- package/dist/ThinkChat-7DQ2CogF.js +222 -0
- package/dist/{ThinkChatActivity-B2UD95My.d.ts → ThinkChatActivity-Cuk28Js_.d.ts} +4 -4
- package/dist/ThinkChatContext-C3Eb1Xpi.d.ts +16 -0
- package/dist/{ThinkChatToolParts-DnUiZgCC.d.ts → ThinkChatToolParts-Cv4o7j6F.d.ts} +13 -5
- package/dist/{attachment-preview-ChtC3HiU.js → attachment-preview-DIs50Q0h.js} +3 -3
- package/dist/components/Accordion.d.ts +17 -6
- package/dist/components/Accordion.js +23 -36
- package/dist/components/Activity.d.ts +5 -5
- package/dist/components/Activity.js +9 -9
- package/dist/components/AgentChat.d.ts +1 -1
- package/dist/components/AgentChat.js +354 -132
- package/dist/components/AgentConnection.js +6 -22
- package/dist/components/AlertDialog.d.ts +40 -32
- package/dist/components/AlertDialog.js +46 -39
- package/dist/components/Artifact.d.ts +1 -1
- package/dist/components/Artifact.js +5 -5
- package/dist/components/Autocomplete.js +10 -2
- package/dist/components/Avatar.d.ts +2 -2
- package/dist/components/Avatar.js +3 -3
- package/dist/components/Badge.d.ts +11 -14
- package/dist/components/Badge.js +11 -33
- package/dist/components/BrowserLiveView.d.ts +1 -1
- package/dist/components/BrowserLiveView.js +39 -45
- package/dist/components/BrowserReplay.d.ts +1 -1
- package/dist/components/BrowserReplay.js +4 -4
- package/dist/components/BrowserRunPanel.js +91 -55
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +7 -30
- package/dist/components/ChainOfThought.d.ts +5 -5
- package/dist/components/ChainOfThought.js +8 -5
- package/dist/components/ChatGptSignInScreen.js +3 -3
- package/dist/components/Checkbox.d.ts +10 -2
- package/dist/components/Checkbox.js +13 -6
- package/dist/components/CheckboxGroup.d.ts +6 -6
- package/dist/components/CheckboxGroup.js +6 -6
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +58 -0
- package/dist/components/CodexModelSelector.js +170 -0
- package/dist/components/Collapsible.d.ts +2 -4
- package/dist/components/Collapsible.js +9 -7
- package/dist/components/Combobox.d.ts +2 -2
- package/dist/components/Combobox.js +20 -22
- package/dist/components/Commit.d.ts +6 -6
- package/dist/components/Commit.js +14 -26
- package/dist/components/Context.js +5 -1
- package/dist/components/ContextMenu.d.ts +20 -72
- package/dist/components/ContextMenu.js +46 -56
- package/dist/components/Conversation.d.ts +3 -7
- package/dist/components/Conversation.js +3 -4
- package/dist/components/Dialog.d.ts +38 -30
- package/dist/components/Dialog.js +46 -34
- package/dist/components/EnvironmentVariables.d.ts +2 -7
- package/dist/components/EnvironmentVariables.js +13 -36
- package/dist/components/Field.d.ts +3 -3
- package/dist/components/Field.js +7 -8
- package/dist/components/Fieldset.d.ts +2 -2
- package/dist/components/Fieldset.js +2 -2
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Label.d.ts +1 -1
- package/dist/components/Label.js +1 -1
- package/dist/components/Marker.js +1 -15
- package/dist/components/McpServerPicker.d.ts +31 -6
- package/dist/components/McpServerPicker.js +136 -72
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/Menu.js +41 -51
- package/dist/components/Menubar.d.ts +16 -52
- package/dist/components/Menubar.js +44 -56
- package/dist/components/Message.d.ts +4 -3
- package/dist/components/Message.js +16 -9
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +1 -1
- package/dist/components/Meter.js +5 -0
- package/dist/components/ModelSelector.d.ts +12 -9
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +3 -14
- package/dist/components/NavigationMenu.js +22 -38
- package/dist/components/NumberField.js +6 -0
- package/dist/components/Popover.d.ts +21 -44
- package/dist/components/Popover.js +33 -23
- package/dist/components/PreviewCard.d.ts +20 -18
- package/dist/components/PreviewCard.js +30 -20
- package/dist/components/PricingPage.js +30 -29
- package/dist/components/Progress.d.ts +7 -3
- package/dist/components/Progress.js +9 -4
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +184 -148
- package/dist/components/Queue.d.ts +8 -19
- package/dist/components/Queue.js +6 -6
- package/dist/components/RadioGroup.d.ts +10 -9
- package/dist/components/RadioGroup.js +8 -9
- package/dist/components/Reasoning.d.ts +4 -4
- package/dist/components/Reasoning.js +12 -21
- package/dist/components/ScrollArea.d.ts +2 -9
- package/dist/components/ScrollArea.js +5 -23
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Select.js +100 -134
- package/dist/components/Slider.d.ts +10 -7
- package/dist/components/Slider.js +12 -11
- package/dist/components/Sources.d.ts +4 -4
- package/dist/components/Sources.js +8 -5
- package/dist/components/Stepper.js +2 -8
- package/dist/components/Switch.d.ts +6 -3
- package/dist/components/Switch.js +7 -4
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +9 -4
- package/dist/components/Task.d.ts +4 -4
- package/dist/components/Task.js +10 -6
- package/dist/components/Terminal.d.ts +2 -2
- package/dist/components/Terminal.js +5 -5
- package/dist/components/TestResults.d.ts +4 -4
- package/dist/components/TestResults.js +5 -5
- package/dist/components/ThinkChat.d.ts +37 -30
- package/dist/components/ThinkChat.js +1 -152
- package/dist/components/ThinkChatActivity.d.ts +2 -2
- package/dist/components/ThinkChatActivity.js +4 -11
- package/dist/components/ThinkChatContext.d.ts +2 -2
- package/dist/components/ThinkChatContext.js +9 -2
- package/dist/components/ThinkChatToolPanels.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +27 -15
- package/dist/components/ThinkChatToolParts.d.ts +1 -1
- package/dist/components/ThinkExecutionWorkbench.d.ts +10 -7
- package/dist/components/ThinkExecutionWorkbench.js +382 -359
- package/dist/components/ThinkFullApp.d.ts +16 -13
- package/dist/components/ThinkFullApp.js +35 -25
- package/dist/components/ThinkThreadPicker.d.ts +1 -31
- package/dist/components/ThinkThreadPicker.js +32 -171
- package/dist/components/ThinkThreadShell.d.ts +35 -0
- package/dist/components/ThinkThreadShell.js +146 -0
- package/dist/components/Toast.js +7 -0
- package/dist/components/ToggleGroup.d.ts +6 -2
- package/dist/components/ToggleGroup.js +6 -2
- package/dist/components/Toolbar.js +6 -0
- package/dist/components/Tooltip.d.ts +36 -27
- package/dist/components/Tooltip.js +45 -29
- package/dist/components/WebPreview.d.ts +1 -1
- package/dist/components/WebPreview.js +3 -3
- package/dist/components/WorkspaceExplorer.d.ts +6 -8
- package/dist/components/WorkspaceExplorer.js +9 -7
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-C6JSKtFE.js → copy-button-DUMLYdsk.js} +7 -6
- package/dist/{copy-button-BKXqGiNm.d.ts → copy-button-DtPMgN7e.d.ts} +3 -2
- package/dist/icons-Ba9THQKz.js +64 -0
- package/dist/icons-CUCz_Sft.d.ts +210 -0
- package/dist/merge-refs-DF_7w2x_.js +18 -0
- package/dist/styles/accessibility.css +14 -0
- package/dist/styles/accordion.css +21 -61
- package/dist/styles/activity.css +23 -58
- package/dist/styles/agent-chat.css +49 -5
- package/dist/styles/agent-connection.css +8 -10
- package/dist/styles/alert-dialog.css +20 -26
- package/dist/styles/artifact.css +6 -6
- package/dist/styles/attachment-preview.css +1 -1
- package/dist/styles/autocomplete.css +5 -170
- package/dist/styles/avatar.css +8 -8
- package/dist/styles/badge.css +8 -10
- package/dist/styles/base-ui-motion.css +176 -0
- package/dist/styles/base.css +19 -25
- package/dist/styles/browser-live-view.css +7 -7
- package/dist/styles/browser-replay.css +5 -5
- package/dist/styles/browser-run-panel.css +59 -112
- package/dist/styles/button.css +48 -43
- package/dist/styles/card.css +3 -5
- package/dist/styles/chain-of-thought.css +14 -70
- package/dist/styles/chatgpt-sign-in-screen.css +3 -3
- package/dist/styles/checkbox-group.css +1 -1
- package/dist/styles/checkbox.css +3 -7
- package/dist/styles/code-block.css +10 -10
- package/dist/styles/codex-model-selector.css +186 -0
- package/dist/styles/collapsible.css +11 -27
- package/dist/styles/combobox.css +3 -149
- package/dist/styles/commit.css +19 -35
- package/dist/styles/context-menu.css +1 -77
- package/dist/styles/context.css +12 -12
- package/dist/styles/conversation.css +7 -7
- package/dist/styles/dialog.css +34 -55
- package/dist/styles/environment-variables.css +10 -10
- package/dist/styles/field.css +16 -58
- package/dist/styles/fieldset.css +2 -2
- package/dist/styles/file-tree.css +7 -9
- package/dist/styles/index.css +12 -2
- package/dist/styles/input.css +1 -51
- package/dist/styles/label.css +2 -2
- package/dist/styles/marker.css +2 -4
- package/dist/styles/mcp-server-picker.css +66 -19
- package/dist/styles/menu.css +6 -153
- package/dist/styles/menubar.css +6 -105
- package/dist/styles/message-scroller.css +1 -1
- package/dist/styles/message.css +87 -9
- package/dist/styles/meter.css +4 -20
- package/dist/styles/model-selector.css +32 -20
- package/dist/styles/navigation-menu.css +14 -54
- package/dist/styles/number-field.css +8 -23
- package/dist/styles/popover.css +13 -68
- package/dist/styles/preview-card.css +5 -46
- package/dist/styles/pricing-page.css +43 -43
- package/dist/styles/progress.css +7 -16
- package/dist/styles/prompt-input.css +100 -44
- package/dist/styles/queue.css +12 -28
- package/dist/styles/radio.css +4 -8
- package/dist/styles/reasoning.css +3 -62
- package/dist/styles/recipes.css +475 -0
- package/dist/styles/select.css +7 -103
- package/dist/styles/shell.css +3 -3
- package/dist/styles/slider.css +5 -7
- package/dist/styles/sources.css +9 -66
- package/dist/styles/stepper.css +16 -14
- package/dist/styles/streamdown.css +11 -57
- package/dist/styles/switch.css +4 -7
- package/dist/styles/tabs.css +7 -8
- package/dist/styles/task.css +13 -42
- package/dist/styles/terminal.css +7 -7
- package/dist/styles/test-results.css +21 -37
- package/dist/styles/think-execution-workbench.css +337 -0
- package/dist/styles/think-full-app.css +27 -410
- package/dist/styles/think-resize-handle.css +33 -0
- package/dist/styles/think-thread-picker.css +18 -247
- package/dist/styles/think-thread-shell.css +219 -0
- package/dist/styles/toast.css +14 -25
- package/dist/styles/toggle-group.css +16 -14
- package/dist/styles/toggle.css +14 -15
- package/dist/styles/toolbar.css +13 -25
- package/dist/styles/tooltip.css +6 -16
- package/dist/styles/web-preview.css +15 -15
- package/dist/styles/workspace-explorer.css +21 -14
- package/dist/summarize-tool-input-BUJsENSn.js +12 -0
- package/dist/utils/codex-model-catalog.d.ts +142 -0
- package/dist/utils/codex-model-catalog.js +112 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +8 -2
- package/dist/Select-CRsKCJ9x.d.ts +0 -200
- package/dist/ThinkChatContext-BLAAb8J5.d.ts +0 -28
- package/dist/components/McpServerConnections.d.ts +0 -41
- package/dist/components/McpServerConnections.js +0 -188
- package/dist/components/useStickToBottom.d.ts +0 -33
- package/dist/components/useStickToBottom.js +0 -107
- package/dist/icons-CbjtbIJK.d.ts +0 -51
- package/dist/icons-D2Q5n5C1.js +0 -291
- package/dist/styles/mcp-server-connections.css +0 -145
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { tt as PromptInputMessage } from "./PromptInput-p5KmOmt1.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { ChatAddToolApproveResponseFunction, ChatStatus, UIMessage } from "ai";
|
|
4
|
-
import { PendingApproval } from "@cloudflare/think";
|
|
4
|
+
import { PendingApproval, Think } from "@cloudflare/think";
|
|
5
|
+
import { AgentStub } from "agents/client";
|
|
5
6
|
|
|
6
7
|
//#region src/components/AgentChat.d.ts
|
|
7
8
|
type AgentChatPart<MessageT extends UIMessage = UIMessage> = MessageT["parts"][number];
|
|
@@ -22,9 +23,9 @@ interface AgentChatProps<MessageT extends UIMessage = UIMessage> {
|
|
|
22
23
|
*
|
|
23
24
|
* `AgentChat` intentionally renders the upstream message objects in place:
|
|
24
25
|
* it does not normalize them into a local transcript model. That keeps AI SDK
|
|
25
|
-
* parts such as `text`, `reasoning`, `file`, `
|
|
26
|
-
* `source-document`, and `step-start` aligned with the types
|
|
27
|
-
* `ai`. Cloudflare Think also returns these same UI messages through
|
|
26
|
+
* parts such as `text`, `reasoning`, `file`, `data-*`, `tool-*`,
|
|
27
|
+
* `source-url`, `source-document`, and `step-start` aligned with the types
|
|
28
|
+
* exported from `ai`. Cloudflare Think also returns these same UI messages through
|
|
28
29
|
* `useAgentChat`, with Agents session storage applying compaction overlays to
|
|
29
30
|
* reads before they reach the hook.
|
|
30
31
|
*
|
|
@@ -84,6 +85,12 @@ interface AgentChatProps<MessageT extends UIMessage = UIMessage> {
|
|
|
84
85
|
emptyState?: React.ReactNode;
|
|
85
86
|
/** Extra controls rendered in the composer toolbar. */
|
|
86
87
|
composerTools?: React.ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Rendered in the prompt-composer header before attachments and the text
|
|
90
|
+
* field. Use it to compose a compact Activity, task state, or app-specific
|
|
91
|
+
* context summary into the composer without recreating PromptInput's form.
|
|
92
|
+
*/
|
|
93
|
+
composerHeader?: React.ReactNode;
|
|
87
94
|
/** Extra rows rendered in the built-in plus menu after files. */
|
|
88
95
|
composerAddMenuItems?: React.ReactNode;
|
|
89
96
|
/**
|
|
@@ -97,15 +104,31 @@ interface AgentChatProps<MessageT extends UIMessage = UIMessage> {
|
|
|
97
104
|
* with its message id — pass to the AI SDK's `regenerate({ messageId })`.
|
|
98
105
|
*/
|
|
99
106
|
onRegenerate?: (messageId: string) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Called after the user confirms an edit to the newest text-only user
|
|
109
|
+
* message. The callback owns the durable backend branch and resend; this
|
|
110
|
+
* component keeps only the unsaved draft and pending/error UI locally.
|
|
111
|
+
*
|
|
112
|
+
* Think deliberately disables `setMessages` synchronization, so product
|
|
113
|
+
* code should wire this to a callable method on its agent rather than to the
|
|
114
|
+
* AI SDK's local `setMessages` helper. The whole upstream message is passed
|
|
115
|
+
* through so apps retain their `UIMessage` metadata and data-part types.
|
|
116
|
+
*/
|
|
117
|
+
onEditAndResend?: (input: {
|
|
118
|
+
message: MessageT;
|
|
119
|
+
text: string;
|
|
120
|
+
}) => void | Promise<void>;
|
|
100
121
|
/**
|
|
101
122
|
* Pass `addToolApprovalResponse` from `useAgentChat`/`useChat` directly.
|
|
102
123
|
* When set and a tool call awaits approval, the composer becomes the
|
|
103
124
|
* confirmation.
|
|
104
125
|
*/
|
|
105
126
|
onApprovalResponse?: ChatAddToolApproveResponseFunction;
|
|
106
|
-
/**
|
|
107
|
-
|
|
108
|
-
/** Think
|
|
127
|
+
/** Whole upstream Think stub used to resolve paused and durable execution approvals. */
|
|
128
|
+
thinkStub?: AgentStub<Think>;
|
|
129
|
+
/** Called after a Think approve/reject RPC settles, including when it rejects. */
|
|
130
|
+
onExecutionSettled?: () => void | Promise<void>;
|
|
131
|
+
/** Think durable-pause approvals from `pendingApprovals()`, rendered when `thinkStub` is set. */
|
|
109
132
|
pendingApprovals?: readonly PendingApproval[];
|
|
110
133
|
/**
|
|
111
134
|
* When set, a Context ring in the composer footer shows how much of the
|
|
@@ -126,7 +149,9 @@ interface AgentChatProps<MessageT extends UIMessage = UIMessage> {
|
|
|
126
149
|
* `getToolName`, and Think's `getToolPartState`/input/output accessors. It
|
|
127
150
|
* also renders native AI SDK `source-url`/`source-document` parts as a single
|
|
128
151
|
* grouped `Sources` block when they appear consecutively, and native
|
|
129
|
-
* `step-start` parts as step separators.
|
|
152
|
+
* `step-start` parts as step separators. App-defined `data-*` parts stay
|
|
153
|
+
* whole and should be narrowed with AI SDK's `isDataUIPart` inside this
|
|
154
|
+
* callback. If you override source rendering,
|
|
130
155
|
* return a React node for every source part you want to show; returning
|
|
131
156
|
* `undefined` lets `AgentChat` keep the upstream-shaped source-run grouping.
|
|
132
157
|
*/
|
|
@@ -148,12 +173,15 @@ declare function AgentChat<MessageT extends UIMessage = UIMessage>({
|
|
|
148
173
|
placeholder,
|
|
149
174
|
disabled,
|
|
150
175
|
emptyState,
|
|
176
|
+
composerHeader,
|
|
151
177
|
composerTools,
|
|
152
178
|
composerAddMenuItems,
|
|
153
179
|
notice,
|
|
154
180
|
onRegenerate,
|
|
181
|
+
onEditAndResend,
|
|
155
182
|
onApprovalResponse,
|
|
156
|
-
|
|
183
|
+
thinkStub,
|
|
184
|
+
onExecutionSettled,
|
|
157
185
|
pendingApprovals: durableApprovals,
|
|
158
186
|
contextWindow,
|
|
159
187
|
renderPart,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { BrowserLiveViewUrl } from "agents/browser";
|
|
2
3
|
|
|
3
4
|
//#region src/components/BrowserLiveView.d.ts
|
|
4
5
|
interface BrowserLiveViewProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/** Epoch ms
|
|
8
|
-
|
|
6
|
+
/** Complete upstream value returned by `cdp.getLiveViewUrl()`. */
|
|
7
|
+
source: BrowserLiveViewUrl;
|
|
8
|
+
/** Epoch ms when `source` was received. Defaults to its first render. */
|
|
9
|
+
receivedAt?: number;
|
|
9
10
|
/** The page the session was showing — used for the ended-state text. */
|
|
10
11
|
pageTitle?: string;
|
|
11
12
|
/**
|
|
@@ -18,8 +19,8 @@ interface BrowserLiveViewProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
18
19
|
/**
|
|
19
20
|
* Embeds a Browser Run Live View — a real-time, interactive view of the
|
|
20
21
|
* agent's browser session. Links expire (~5 minutes), so the iframe swaps to
|
|
21
|
-
* `fallback` (e.g. the last screenshot) once `
|
|
22
|
-
* hosted viewer connects, a quiet loading overlay hides the frame; if it
|
|
22
|
+
* `fallback` (e.g. the last screenshot) once `source.expiresInMs` passes.
|
|
23
|
+
* While the hosted viewer connects, a quiet loading overlay hides the frame; if it
|
|
23
24
|
* never loads, the view degrades to `fallback` or an unavailable state. An
|
|
24
25
|
* expand button opens the same view in a fullscreen dialog.
|
|
25
26
|
*
|
|
@@ -35,13 +36,13 @@ interface BrowserLiveViewProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
35
36
|
* The iframe is unsandboxed by design: the hosted Live View UI needs scripts
|
|
36
37
|
* and its own origin to stream the session. Only pass trusted Live View URLs.
|
|
37
38
|
*/
|
|
38
|
-
declare function BrowserLiveView({
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
declare function BrowserLiveView$1({
|
|
40
|
+
source,
|
|
41
|
+
receivedAt,
|
|
41
42
|
pageTitle,
|
|
42
43
|
fallback,
|
|
43
44
|
className,
|
|
44
45
|
...props
|
|
45
46
|
}: BrowserLiveViewProps): React.JSX.Element;
|
|
46
47
|
//#endregion
|
|
47
|
-
export { BrowserLiveViewProps as n, BrowserLiveView as t };
|
|
48
|
+
export { BrowserLiveViewProps as n, BrowserLiveView$1 as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { BrowserRecording } from "agents/browser";
|
|
2
3
|
|
|
3
4
|
//#region src/components/BrowserReplay.d.ts
|
|
4
5
|
interface BrowserReplayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
@@ -6,7 +7,7 @@ interface BrowserReplayProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
6
7
|
* rrweb events for one tab, e.g. one
|
|
7
8
|
* `BrowserRecording.events[targetId]` entry from Cloudflare Browser Run.
|
|
8
9
|
*/
|
|
9
|
-
events:
|
|
10
|
+
events: BrowserRecording["events"][string];
|
|
10
11
|
/** Start playing on mount. */
|
|
11
12
|
autoPlay?: boolean;
|
|
12
13
|
}
|
|
@@ -30,12 +30,10 @@ type ButtonColor = "neutral" | "primary" | "destructive";
|
|
|
30
30
|
* - `icon` - Square button for icon-only content
|
|
31
31
|
*/
|
|
32
32
|
type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
33
|
-
type ShadcnButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
34
|
-
type ShadcnButtonSize = "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
35
33
|
interface ButtonVariantsOptions {
|
|
36
|
-
variant?:
|
|
34
|
+
variant?: ButtonVariant | null;
|
|
37
35
|
color?: ButtonColor | null;
|
|
38
|
-
size?:
|
|
36
|
+
size?: ButtonSize | null;
|
|
39
37
|
className?: string;
|
|
40
38
|
}
|
|
41
39
|
declare function buttonVariants({
|
|
@@ -51,9 +49,9 @@ type BaseButtonProps = ComponentPropsWithoutRef<typeof Button>;
|
|
|
51
49
|
interface ButtonProps extends BaseButtonProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof BaseButtonProps | "color"> {
|
|
52
50
|
/**
|
|
53
51
|
* The visual rendering style of the button.
|
|
54
|
-
* @default '
|
|
52
|
+
* @default 'normal'
|
|
55
53
|
*/
|
|
56
|
-
variant?:
|
|
54
|
+
variant?: ButtonVariant;
|
|
57
55
|
/**
|
|
58
56
|
* The semantic color intent of the button.
|
|
59
57
|
* @default 'primary'
|
|
@@ -63,15 +61,15 @@ interface ButtonProps extends BaseButtonProps, Omit<ButtonHTMLAttributes<HTMLBut
|
|
|
63
61
|
* The size of the button.
|
|
64
62
|
* @default 'md'
|
|
65
63
|
*/
|
|
66
|
-
size?:
|
|
64
|
+
size?: ButtonSize;
|
|
67
65
|
}
|
|
68
66
|
/**
|
|
69
67
|
* A button component built on Base UI with semantic styling variants.
|
|
70
68
|
*
|
|
71
69
|
* Separates visual style (`variant`) from color intent (`color`) for
|
|
72
70
|
* maximum flexibility. Supports keyboard navigation, focus management, and
|
|
73
|
-
* accessibility out of the box.
|
|
74
|
-
*
|
|
71
|
+
* accessibility out of the box. Styling uses the design system's canonical
|
|
72
|
+
* visual variant, semantic color, and size axes.
|
|
75
73
|
*
|
|
76
74
|
* @example
|
|
77
75
|
* ```tsx
|
|
@@ -82,7 +80,6 @@ interface ButtonProps extends BaseButtonProps, Omit<ButtonHTMLAttributes<HTMLBut
|
|
|
82
80
|
* ```
|
|
83
81
|
*
|
|
84
82
|
* @see {@link https://base-ui.com/react/components/button | Base UI Button}
|
|
85
|
-
* @see {@link https://ui.shadcn.com/docs/components/base/button | shadcn/ui Button}
|
|
86
83
|
*/
|
|
87
84
|
declare function Button$1({
|
|
88
85
|
variant,
|
|
@@ -96,4 +93,4 @@ declare function Button$1({
|
|
|
96
93
|
ref?: React.Ref<HTMLButtonElement>;
|
|
97
94
|
}): import("react").JSX.Element;
|
|
98
95
|
//#endregion
|
|
99
|
-
export { ButtonVariant as a,
|
|
96
|
+
export { ButtonVariant as a, ButtonSize as i, ButtonColor as n, ButtonVariantsOptions as o, ButtonProps as r, buttonVariants as s, Button$1 as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-9UtZwb0J.js";
|
|
2
|
-
import { Select
|
|
3
|
-
import { t as CopyButton } from "./copy-button-
|
|
2
|
+
import { Select } from "./components/Select.js";
|
|
3
|
+
import { t as CopyButton } from "./copy-button-DUMLYdsk.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createHighlighter } from "shiki";
|
|
@@ -255,14 +255,14 @@ function CodeBlockLanguageSelector({ children, className, languages = CODE_BLOCK
|
|
|
255
255
|
return /* @__PURE__ */ jsx("div", {
|
|
256
256
|
ref,
|
|
257
257
|
className: cx("code-block__language-selector", className),
|
|
258
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
258
|
+
children: /* @__PURE__ */ jsx(Select.Root, {
|
|
259
259
|
...props,
|
|
260
260
|
value: value ?? language,
|
|
261
261
|
onValueChange: handleValueChange,
|
|
262
262
|
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CodeBlockLanguageSelectorTrigger, {
|
|
263
263
|
"aria-label": "Code language",
|
|
264
264
|
children: /* @__PURE__ */ jsx(CodeBlockLanguageSelectorValue, {})
|
|
265
|
-
}), /* @__PURE__ */ jsx(CodeBlockLanguageSelectorContent, { children: /* @__PURE__ */ jsx(
|
|
265
|
+
}), /* @__PURE__ */ jsx(CodeBlockLanguageSelectorContent, { children: /* @__PURE__ */ jsx(Select.List, { children: languages.map((lang) => /* @__PURE__ */ jsx(CodeBlockLanguageSelectorItem, {
|
|
266
266
|
value: lang,
|
|
267
267
|
children: lang
|
|
268
268
|
}, lang)) }) })] })
|
|
@@ -270,22 +270,32 @@ function CodeBlockLanguageSelector({ children, className, languages = CODE_BLOCK
|
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
function CodeBlockLanguageSelectorTrigger({ size = "sm", ...props }) {
|
|
273
|
-
return /* @__PURE__ */ jsx(
|
|
273
|
+
return /* @__PURE__ */ jsx(Select.Trigger, {
|
|
274
274
|
size,
|
|
275
275
|
...props
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
function CodeBlockLanguageSelectorValue(props) {
|
|
279
|
-
return /* @__PURE__ */ jsx(
|
|
279
|
+
return /* @__PURE__ */ jsx(Select.Value, { ...props });
|
|
280
280
|
}
|
|
281
|
-
function CodeBlockLanguageSelectorContent({ align = "end", ...props }) {
|
|
282
|
-
return /* @__PURE__ */ jsx(
|
|
281
|
+
function CodeBlockLanguageSelectorContent({ align = "end", children, ...props }) {
|
|
282
|
+
return /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
|
|
283
283
|
align,
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
children: /* @__PURE__ */ jsxs(Select.Popup, {
|
|
285
|
+
...props,
|
|
286
|
+
children: [
|
|
287
|
+
/* @__PURE__ */ jsx(Select.ScrollUpArrow, {}),
|
|
288
|
+
/* @__PURE__ */ jsx(Select.List, { children }),
|
|
289
|
+
/* @__PURE__ */ jsx(Select.ScrollDownArrow, {})
|
|
290
|
+
]
|
|
291
|
+
})
|
|
292
|
+
}) });
|
|
286
293
|
}
|
|
287
|
-
function CodeBlockLanguageSelectorItem(props) {
|
|
288
|
-
return /* @__PURE__ */
|
|
294
|
+
function CodeBlockLanguageSelectorItem({ children, ...props }) {
|
|
295
|
+
return /* @__PURE__ */ jsxs(Select.Item, {
|
|
296
|
+
...props,
|
|
297
|
+
children: [/* @__PURE__ */ jsx(Select.ItemIndicator, {}), /* @__PURE__ */ jsx(Select.ItemText, { children })]
|
|
298
|
+
});
|
|
289
299
|
}
|
|
290
300
|
function CodeBlockContainer({ className, children, ref, ...props }) {
|
|
291
301
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as CopyButtonProps } from "./copy-button-
|
|
1
|
+
import { p as SelectProps, t as Select } from "./Select-Dl_vF_Bt.js";
|
|
2
|
+
import { t as CopyButtonProps } from "./copy-button-DtPMgN7e.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { BundledLanguage, ThemedToken } from "shiki";
|
|
5
5
|
|
|
@@ -139,10 +139,12 @@ declare function CodeBlockLanguageSelector({
|
|
|
139
139
|
}: CodeBlockLanguageSelectorProps & {
|
|
140
140
|
ref?: React.Ref<HTMLDivElement>;
|
|
141
141
|
}): React.JSX.Element;
|
|
142
|
-
type CodeBlockLanguageSelectorTriggerProps =
|
|
143
|
-
type CodeBlockLanguageSelectorValueProps =
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
type CodeBlockLanguageSelectorTriggerProps = React.ComponentProps<typeof Select.Trigger>;
|
|
143
|
+
type CodeBlockLanguageSelectorValueProps = React.ComponentProps<typeof Select.Value>;
|
|
144
|
+
interface CodeBlockLanguageSelectorContentProps extends React.ComponentProps<typeof Select.Popup> {
|
|
145
|
+
align?: React.ComponentProps<typeof Select.Positioner>["align"];
|
|
146
|
+
}
|
|
147
|
+
type CodeBlockLanguageSelectorItemProps = React.ComponentProps<typeof Select.Item>;
|
|
146
148
|
declare function CodeBlockLanguageSelectorTrigger({
|
|
147
149
|
size,
|
|
148
150
|
...props
|
|
@@ -150,9 +152,13 @@ declare function CodeBlockLanguageSelectorTrigger({
|
|
|
150
152
|
declare function CodeBlockLanguageSelectorValue(props: CodeBlockLanguageSelectorValueProps): React.JSX.Element;
|
|
151
153
|
declare function CodeBlockLanguageSelectorContent({
|
|
152
154
|
align,
|
|
155
|
+
children,
|
|
153
156
|
...props
|
|
154
157
|
}: CodeBlockLanguageSelectorContentProps): React.JSX.Element;
|
|
155
|
-
declare function CodeBlockLanguageSelectorItem(
|
|
158
|
+
declare function CodeBlockLanguageSelectorItem({
|
|
159
|
+
children,
|
|
160
|
+
...props
|
|
161
|
+
}: CodeBlockLanguageSelectorItemProps): React.JSX.Element;
|
|
156
162
|
interface CodeBlockContainerProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
157
163
|
declare function CodeBlockContainer({
|
|
158
164
|
className,
|
|
@@ -93,7 +93,7 @@ declare function ComboboxGroup({
|
|
|
93
93
|
} & {
|
|
94
94
|
ref?: React.Ref<HTMLDivElement>;
|
|
95
95
|
}): React.JSX.Element;
|
|
96
|
-
declare function
|
|
96
|
+
declare function ComboboxGroupLabel({
|
|
97
97
|
className,
|
|
98
98
|
ref,
|
|
99
99
|
...props
|
|
@@ -142,15 +142,8 @@ declare function ComboboxLabel({
|
|
|
142
142
|
*
|
|
143
143
|
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
144
144
|
*/
|
|
145
|
-
declare const ComboboxContent: typeof ComboboxPopup;
|
|
146
|
-
declare const ComboboxValue: typeof Combobox.Value;
|
|
147
|
-
declare const ComboboxChips: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
148
|
-
declare const ComboboxChip: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
149
|
-
declare const ComboboxChipsInput: typeof ComboboxInput;
|
|
150
|
-
declare const ComboboxCollection: typeof Combobox.Collection;
|
|
151
|
-
declare const ComboboxSeparator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
152
145
|
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
153
|
-
declare const Combobox$1:
|
|
146
|
+
declare const Combobox$1: {
|
|
154
147
|
Root: typeof Combobox.Root;
|
|
155
148
|
Input: typeof ComboboxInput;
|
|
156
149
|
Trigger: typeof ComboboxTrigger;
|
|
@@ -158,20 +151,17 @@ declare const Combobox$1: typeof Combobox.Root & {
|
|
|
158
151
|
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
159
152
|
Positioner: typeof ComboboxPositioner;
|
|
160
153
|
Popup: typeof ComboboxPopup;
|
|
161
|
-
Content: typeof ComboboxPopup;
|
|
162
154
|
List: typeof ComboboxList;
|
|
163
155
|
Item: typeof ComboboxItem;
|
|
164
156
|
ItemIndicator: typeof ItemIndicator;
|
|
165
157
|
Empty: typeof ComboboxEmpty;
|
|
166
158
|
Group: typeof ComboboxGroup;
|
|
167
|
-
GroupLabel: typeof
|
|
168
|
-
Label: typeof ComboboxLabel;
|
|
159
|
+
GroupLabel: typeof ComboboxGroupLabel;
|
|
169
160
|
Value: typeof Combobox.Value;
|
|
170
161
|
Chips: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
171
162
|
Chip: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
172
|
-
ChipsInput: typeof ComboboxInput;
|
|
173
163
|
Collection: typeof Combobox.Collection;
|
|
174
164
|
Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
175
165
|
};
|
|
176
166
|
//#endregion
|
|
177
|
-
export {
|
|
167
|
+
export { useComboboxAnchor as n, Combobox$1 as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-9UtZwb0J.js";
|
|
2
|
-
import { _ as FolderOpenIcon, c as ChevronRightIcon, g as FolderIcon, h as FileIcon } from "./icons-
|
|
2
|
+
import { _ as FolderOpenIcon, c as ChevronRightIcon, g as FolderIcon, h as FileIcon } from "./icons-Ba9THQKz.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
|
|
@@ -12,6 +12,8 @@ interface MenuProps extends React.ComponentPropsWithoutRef<typeof Menu.Root> {}
|
|
|
12
12
|
interface MenuTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Menu.Trigger>, "className"> {
|
|
13
13
|
/** Additional CSS class names */
|
|
14
14
|
className?: string;
|
|
15
|
+
/** Keep Base UI trigger behavior without the default menu trigger chrome. */
|
|
16
|
+
unstyled?: boolean;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* Props for the Menu.Portal component.
|
|
@@ -31,8 +33,14 @@ interface MenuPopupProps extends Omit<React.ComponentPropsWithoutRef<typeof Menu
|
|
|
31
33
|
/** Additional CSS class names */
|
|
32
34
|
className?: string;
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Props for the Menu.Viewport component. Use this only when one menu moves
|
|
38
|
+
* between triggers and its content changes during that transition.
|
|
39
|
+
*/
|
|
40
|
+
interface MenuViewportProps extends Omit<React.ComponentPropsWithoutRef<typeof Menu.Viewport>, "className"> {
|
|
41
|
+
/** Additional CSS class names */
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
36
44
|
/**
|
|
37
45
|
* Props for the Menu.Item component.
|
|
38
46
|
*/
|
|
@@ -57,7 +65,6 @@ interface MenuGroupLabelProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
57
65
|
className?: string;
|
|
58
66
|
inset?: boolean;
|
|
59
67
|
}
|
|
60
|
-
type MenuLabelProps = MenuGroupLabelProps;
|
|
61
68
|
/**
|
|
62
69
|
* Props for the Menu.Arrow component.
|
|
63
70
|
*/
|
|
@@ -108,8 +115,7 @@ interface MenuCheckboxItemIndicatorProps extends Omit<React.ComponentPropsWithou
|
|
|
108
115
|
className?: string;
|
|
109
116
|
}
|
|
110
117
|
interface MenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
111
|
-
interface
|
|
112
|
-
type MenuSubContentProps = MenuContentProps;
|
|
118
|
+
interface MenuSubmenuRootProps extends React.ComponentPropsWithoutRef<typeof Menu.SubmenuRoot> {}
|
|
113
119
|
/**
|
|
114
120
|
* Props for the Menu.SubmenuTrigger component.
|
|
115
121
|
*/
|
|
@@ -118,42 +124,17 @@ interface MenuSubmenuTriggerProps extends Omit<React.ComponentPropsWithoutRef<ty
|
|
|
118
124
|
className?: string;
|
|
119
125
|
inset?: boolean;
|
|
120
126
|
}
|
|
121
|
-
type MenuSubTriggerProps = MenuSubmenuTriggerProps;
|
|
122
|
-
/**
|
|
123
|
-
* Root component that manages menu state.
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```tsx
|
|
127
|
-
* <Menu.Root>
|
|
128
|
-
* <Menu.Trigger>Actions</Menu.Trigger>
|
|
129
|
-
* <Menu.Portal>
|
|
130
|
-
* <Menu.Positioner>
|
|
131
|
-
* <Menu.Popup>
|
|
132
|
-
* <Menu.Item>Edit</Menu.Item>
|
|
133
|
-
* <Menu.Item>Delete</Menu.Item>
|
|
134
|
-
* </Menu.Popup>
|
|
135
|
-
* </Menu.Positioner>
|
|
136
|
-
* </Menu.Portal>
|
|
137
|
-
* </Menu.Root>
|
|
138
|
-
* ```
|
|
139
|
-
*
|
|
140
|
-
* @see {@link https://base-ui.com/react/components/menu | Base UI Menu}
|
|
141
|
-
*/
|
|
142
|
-
declare const MenuRoot: (props: MenuProps) => React.JSX.Element;
|
|
143
127
|
/**
|
|
144
128
|
* Button that toggles the menu visibility.
|
|
145
129
|
*/
|
|
146
130
|
declare function MenuTrigger({
|
|
147
131
|
className,
|
|
132
|
+
unstyled,
|
|
148
133
|
ref,
|
|
149
134
|
...props
|
|
150
135
|
}: MenuTriggerProps & {
|
|
151
136
|
ref?: React.Ref<HTMLButtonElement>;
|
|
152
137
|
}): React.JSX.Element;
|
|
153
|
-
/**
|
|
154
|
-
* Renders menu content in a portal.
|
|
155
|
-
*/
|
|
156
|
-
declare const MenuPortal: (props: MenuPortalProps) => React.JSX.Element;
|
|
157
138
|
/**
|
|
158
139
|
* Positions the menu popup relative to the trigger.
|
|
159
140
|
*/
|
|
@@ -174,21 +155,16 @@ declare function MenuPopup({
|
|
|
174
155
|
}: MenuPopupProps & {
|
|
175
156
|
ref?: React.Ref<HTMLDivElement>;
|
|
176
157
|
}): React.JSX.Element;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
collisionPadding,
|
|
186
|
-
sticky,
|
|
187
|
-
arrowPadding,
|
|
188
|
-
disableAnchorTracking,
|
|
189
|
-
collisionAvoidance,
|
|
158
|
+
/**
|
|
159
|
+
* Transition container for content that changes as a menu moves between
|
|
160
|
+
* triggers. Pair the adaptive classes from `base-ui-motion.css` with the
|
|
161
|
+
* positioner, popup, and this viewport when that behavior is needed.
|
|
162
|
+
*/
|
|
163
|
+
declare function MenuViewport({
|
|
164
|
+
className,
|
|
165
|
+
ref,
|
|
190
166
|
...props
|
|
191
|
-
}:
|
|
167
|
+
}: MenuViewportProps & {
|
|
192
168
|
ref?: React.Ref<HTMLDivElement>;
|
|
193
169
|
}): React.JSX.Element;
|
|
194
170
|
/**
|
|
@@ -224,7 +200,6 @@ declare function MenuGroupLabel({
|
|
|
224
200
|
}: MenuGroupLabelProps & {
|
|
225
201
|
ref?: React.Ref<HTMLDivElement>;
|
|
226
202
|
}): React.JSX.Element;
|
|
227
|
-
declare const MenuLabel: typeof MenuGroupLabel;
|
|
228
203
|
/**
|
|
229
204
|
* Arrow pointing to the trigger.
|
|
230
205
|
*/
|
|
@@ -260,7 +235,6 @@ declare function MenuRadioGroup({
|
|
|
260
235
|
*/
|
|
261
236
|
declare function MenuRadioItem({
|
|
262
237
|
className,
|
|
263
|
-
children,
|
|
264
238
|
ref,
|
|
265
239
|
...props
|
|
266
240
|
}: MenuRadioItemProps & {
|
|
@@ -281,7 +255,6 @@ declare function MenuRadioItemIndicator({
|
|
|
281
255
|
*/
|
|
282
256
|
declare function MenuCheckboxItem({
|
|
283
257
|
className,
|
|
284
|
-
children,
|
|
285
258
|
ref,
|
|
286
259
|
...props
|
|
287
260
|
}: MenuCheckboxItemProps & {
|
|
@@ -304,15 +277,7 @@ declare function MenuShortcut({
|
|
|
304
277
|
}: MenuShortcutProps & {
|
|
305
278
|
ref?: React.Ref<HTMLSpanElement>;
|
|
306
279
|
}): React.JSX.Element;
|
|
307
|
-
declare function
|
|
308
|
-
declare function MenuSubContent({
|
|
309
|
-
side,
|
|
310
|
-
align,
|
|
311
|
-
sideOffset,
|
|
312
|
-
...props
|
|
313
|
-
}: MenuSubContentProps & {
|
|
314
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
315
|
-
}): React.JSX.Element;
|
|
280
|
+
declare function MenuSubmenuRoot(props: MenuSubmenuRootProps): React.JSX.Element;
|
|
316
281
|
/**
|
|
317
282
|
* Trigger that opens a submenu.
|
|
318
283
|
*/
|
|
@@ -324,7 +289,6 @@ declare function MenuSubmenuTrigger({
|
|
|
324
289
|
}: MenuSubmenuTriggerProps & {
|
|
325
290
|
ref?: React.Ref<HTMLDivElement>;
|
|
326
291
|
}): React.JSX.Element;
|
|
327
|
-
declare const MenuSubTrigger: typeof MenuSubmenuTrigger;
|
|
328
292
|
/**
|
|
329
293
|
* A dropdown menu with keyboard navigation support.
|
|
330
294
|
* Provides items, groups, checkboxes, radio selections, and nested submenus.
|
|
@@ -367,17 +331,19 @@ declare const MenuSubTrigger: typeof MenuSubmenuTrigger;
|
|
|
367
331
|
*
|
|
368
332
|
* @see {@link https://base-ui.com/react/components/menu | Base UI Menu}
|
|
369
333
|
*/
|
|
370
|
-
declare const Menu$1:
|
|
334
|
+
declare const Menu$1: {
|
|
335
|
+
createHandle: typeof Menu.createHandle;
|
|
371
336
|
Root: (props: MenuProps) => React.JSX.Element;
|
|
372
337
|
Trigger: typeof MenuTrigger;
|
|
373
338
|
Portal: (props: MenuPortalProps) => React.JSX.Element;
|
|
374
339
|
Positioner: typeof MenuPositioner;
|
|
375
340
|
Popup: typeof MenuPopup;
|
|
376
|
-
|
|
341
|
+
Viewport: typeof MenuViewport;
|
|
342
|
+
Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
377
343
|
Item: typeof MenuItem;
|
|
378
344
|
Group: typeof MenuGroup;
|
|
379
345
|
GroupLabel: typeof MenuGroupLabel;
|
|
380
|
-
|
|
346
|
+
LinkItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>>;
|
|
381
347
|
Arrow: typeof MenuArrow;
|
|
382
348
|
Separator: typeof MenuSeparator;
|
|
383
349
|
RadioGroup: typeof MenuRadioGroup;
|
|
@@ -386,10 +352,8 @@ declare const Menu$1: ((props: MenuProps) => React.JSX.Element) & {
|
|
|
386
352
|
CheckboxItem: typeof MenuCheckboxItem;
|
|
387
353
|
CheckboxItemIndicator: typeof MenuCheckboxItemIndicator;
|
|
388
354
|
Shortcut: typeof MenuShortcut;
|
|
389
|
-
|
|
390
|
-
SubContent: typeof MenuSubContent;
|
|
391
|
-
SubTrigger: typeof MenuSubmenuTrigger;
|
|
355
|
+
SubmenuRoot: typeof MenuSubmenuRoot;
|
|
392
356
|
SubmenuTrigger: typeof MenuSubmenuTrigger;
|
|
393
357
|
};
|
|
394
358
|
//#endregion
|
|
395
|
-
export {
|
|
359
|
+
export { MenuSubmenuRootProps as _, MenuGroupLabelProps as a, MenuViewportProps as b, MenuPopupProps as c, MenuProps as d, MenuRadioGroupProps as f, MenuShortcutProps as g, MenuSeparatorProps as h, MenuCheckboxItemProps as i, MenuPortalProps as l, MenuRadioItemProps as m, MenuArrowProps as n, MenuGroupProps as o, MenuRadioItemIndicatorProps as p, MenuCheckboxItemIndicatorProps as r, MenuItemProps as s, Menu$1 as t, MenuPositionerProps as u, MenuSubmenuTriggerProps as v, MenuTriggerProps as y };
|