@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
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
+
import { A as RefreshIcon, a as CheckIcon, c as ChevronRightIcon, o as ChevronDownIcon } from "../icons-Ba9THQKz.js";
|
|
3
|
+
import { Menu } from "./Menu.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/CodexModelSelector.tsx
|
|
7
|
+
const defaultServiceTierValue = "codex-default-service-tier";
|
|
8
|
+
/**
|
|
9
|
+
* A compact Codex-style response settings picker: model, reasoning effort,
|
|
10
|
+
* response speed, and reset are kept in one cascading menu.
|
|
11
|
+
*
|
|
12
|
+
* The consuming app supplies every selectable value. This component only
|
|
13
|
+
* renders those values and never guesses model ids or account entitlements.
|
|
14
|
+
*/
|
|
15
|
+
function CodexModelSelector({ models, selectedModelId = null, onSelectModel, selectedEffortId = null, onSelectEffort, selectedSpeedId = null, onSelectSpeed, onReset, disabled = false, className, open, defaultOpen, onOpenChange, "aria-label": ariaLabel = "Codex response settings" }) {
|
|
16
|
+
const visibleModels = models.filter((model) => !model.hidden);
|
|
17
|
+
const selectedModel = visibleModels.find((model) => model.id === selectedModelId);
|
|
18
|
+
const effortOptions = selectedModel?.supportedReasoningEfforts ?? [];
|
|
19
|
+
const speedOptions = getServiceTiers(selectedModel);
|
|
20
|
+
const selectedEffort = effortOptions.find((option) => option.reasoningEffort === selectedEffortId);
|
|
21
|
+
const selectedSpeed = speedOptions.find((option) => option.id === selectedSpeedId);
|
|
22
|
+
function handleSelectModel(modelId) {
|
|
23
|
+
const model = visibleModels.find((option) => option.id === modelId);
|
|
24
|
+
if (!model) return;
|
|
25
|
+
onSelectModel(model.id);
|
|
26
|
+
}
|
|
27
|
+
function handleSelectEffort(effortId) {
|
|
28
|
+
const effort = effortOptions.find((option) => option.reasoningEffort === effortId);
|
|
29
|
+
if (!effort) return;
|
|
30
|
+
onSelectEffort?.(effort.reasoningEffort);
|
|
31
|
+
}
|
|
32
|
+
function handleSelectSpeed(speedId) {
|
|
33
|
+
if (speedId === defaultServiceTierValue) {
|
|
34
|
+
onSelectSpeed?.(null);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const speed = speedOptions.find((option) => option.id === speedId);
|
|
38
|
+
if (!speed) return;
|
|
39
|
+
onSelectSpeed?.(speed.id);
|
|
40
|
+
}
|
|
41
|
+
function handleReset() {
|
|
42
|
+
onReset?.();
|
|
43
|
+
}
|
|
44
|
+
return /* @__PURE__ */ jsxs(Menu.Root, {
|
|
45
|
+
open,
|
|
46
|
+
defaultOpen,
|
|
47
|
+
onOpenChange,
|
|
48
|
+
children: [/* @__PURE__ */ jsxs(Menu.Trigger, {
|
|
49
|
+
unstyled: true,
|
|
50
|
+
className: cx("codex-model-selector__trigger", className),
|
|
51
|
+
disabled,
|
|
52
|
+
"aria-label": ariaLabel,
|
|
53
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
54
|
+
className: "codex-model-selector__summary",
|
|
55
|
+
children: [/* @__PURE__ */ jsx("span", { children: selectedModel?.displayName ?? "Select model" }), selectedEffort ? /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: cx("codex-model-selector__summary-effort", selectedEffort.reasoningEffort === "ultra" && "codex-model-selector__summary-effort--ultra"),
|
|
57
|
+
children: formatSettingLabel(selectedEffort.reasoningEffort)
|
|
58
|
+
}) : null]
|
|
59
|
+
}), /* @__PURE__ */ jsx(ChevronDownIcon, { className: "codex-model-selector__trigger-icon" })]
|
|
60
|
+
}), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
61
|
+
side: "top",
|
|
62
|
+
align: "end",
|
|
63
|
+
children: /* @__PURE__ */ jsxs(Menu.Popup, {
|
|
64
|
+
className: "codex-model-selector__menu",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ jsx(CodexModelSelectorSubmenu, {
|
|
67
|
+
label: "Model",
|
|
68
|
+
value: selectedModel?.displayName ?? "Select",
|
|
69
|
+
disabled: visibleModels.length === 0,
|
|
70
|
+
children: /* @__PURE__ */ jsx(Menu.RadioGroup, {
|
|
71
|
+
value: selectedModelId ?? void 0,
|
|
72
|
+
onValueChange: handleSelectModel,
|
|
73
|
+
children: visibleModels.map((model) => /* @__PURE__ */ jsx(CodexModelSelectorRadioItem, {
|
|
74
|
+
value: model.id,
|
|
75
|
+
description: model.description,
|
|
76
|
+
children: model.displayName
|
|
77
|
+
}, model.id))
|
|
78
|
+
})
|
|
79
|
+
}),
|
|
80
|
+
effortOptions.length > 0 && onSelectEffort ? /* @__PURE__ */ jsx(CodexModelSelectorSubmenu, {
|
|
81
|
+
label: "Effort",
|
|
82
|
+
value: selectedEffort ? formatSettingLabel(selectedEffort.reasoningEffort) : "Select",
|
|
83
|
+
children: /* @__PURE__ */ jsx(Menu.RadioGroup, {
|
|
84
|
+
value: selectedEffortId ?? void 0,
|
|
85
|
+
onValueChange: handleSelectEffort,
|
|
86
|
+
children: effortOptions.map((option) => /* @__PURE__ */ jsx(CodexModelSelectorRadioItem, {
|
|
87
|
+
value: option.reasoningEffort,
|
|
88
|
+
description: option.description,
|
|
89
|
+
children: formatSettingLabel(option.reasoningEffort)
|
|
90
|
+
}, option.reasoningEffort))
|
|
91
|
+
})
|
|
92
|
+
}) : null,
|
|
93
|
+
speedOptions.length > 0 && onSelectSpeed ? /* @__PURE__ */ jsx(CodexModelSelectorSubmenu, {
|
|
94
|
+
label: "Speed",
|
|
95
|
+
value: selectedSpeed?.name ?? "Select",
|
|
96
|
+
children: /* @__PURE__ */ jsx(Menu.RadioGroup, {
|
|
97
|
+
value: selectedSpeedId ?? defaultServiceTierValue,
|
|
98
|
+
onValueChange: handleSelectSpeed,
|
|
99
|
+
children: speedOptions.map((option) => /* @__PURE__ */ jsx(CodexModelSelectorRadioItem, {
|
|
100
|
+
value: option.id ?? defaultServiceTierValue,
|
|
101
|
+
description: option.description,
|
|
102
|
+
children: option.name
|
|
103
|
+
}, option.id ?? defaultServiceTierValue))
|
|
104
|
+
})
|
|
105
|
+
}) : null,
|
|
106
|
+
onReset ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Item, {
|
|
107
|
+
className: "codex-model-selector__reset",
|
|
108
|
+
onClick: handleReset,
|
|
109
|
+
children: ["Reset to default", /* @__PURE__ */ jsx(RefreshIcon, { className: "codex-model-selector__reset-icon" })]
|
|
110
|
+
})] }) : null
|
|
111
|
+
]
|
|
112
|
+
})
|
|
113
|
+
}) })]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function getServiceTiers(model) {
|
|
117
|
+
if (!model || model.serviceTiers.length === 0) return [];
|
|
118
|
+
return [{
|
|
119
|
+
id: null,
|
|
120
|
+
name: "Standard",
|
|
121
|
+
description: "Default speed"
|
|
122
|
+
}, ...model.serviceTiers];
|
|
123
|
+
}
|
|
124
|
+
function formatSettingLabel(value) {
|
|
125
|
+
if (value === "xhigh") return "Extra High";
|
|
126
|
+
return value.split(/[-_]/).filter(Boolean).map((word) => word[0].toUpperCase() + word.slice(1)).join(" ");
|
|
127
|
+
}
|
|
128
|
+
function CodexModelSelectorSubmenu({ label, value, disabled = false, children }) {
|
|
129
|
+
return /* @__PURE__ */ jsxs(Menu.SubmenuRoot, { children: [/* @__PURE__ */ jsxs(Menu.SubmenuTrigger, {
|
|
130
|
+
className: "codex-model-selector__submenu-trigger",
|
|
131
|
+
disabled,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsx("span", { children: label }),
|
|
134
|
+
/* @__PURE__ */ jsx("span", {
|
|
135
|
+
className: "codex-model-selector__submenu-value",
|
|
136
|
+
children: value
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "codex-model-selector__submenu-icon" })
|
|
139
|
+
]
|
|
140
|
+
}), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
141
|
+
side: "right",
|
|
142
|
+
align: "start",
|
|
143
|
+
sideOffset: 4,
|
|
144
|
+
children: /* @__PURE__ */ jsx(Menu.Popup, {
|
|
145
|
+
className: cx("codex-model-selector__submenu", `codex-model-selector__submenu--${label.toLowerCase()}`),
|
|
146
|
+
children: /* @__PURE__ */ jsxs(Menu.Group, { children: [/* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
147
|
+
className: "codex-model-selector__submenu-title",
|
|
148
|
+
children: label
|
|
149
|
+
}), children] })
|
|
150
|
+
})
|
|
151
|
+
}) })] });
|
|
152
|
+
}
|
|
153
|
+
function CodexModelSelectorRadioItem({ children, description, ...props }) {
|
|
154
|
+
return /* @__PURE__ */ jsxs(Menu.RadioItem, {
|
|
155
|
+
className: "codex-model-selector__option",
|
|
156
|
+
...props,
|
|
157
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("span", {
|
|
158
|
+
className: "codex-model-selector__option-label",
|
|
159
|
+
children
|
|
160
|
+
}), description ? /* @__PURE__ */ jsx("span", {
|
|
161
|
+
className: "codex-model-selector__option-description",
|
|
162
|
+
children: description
|
|
163
|
+
}) : null] }), /* @__PURE__ */ jsx(Menu.RadioItemIndicator, {
|
|
164
|
+
className: "codex-model-selector__option-indicator",
|
|
165
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
166
|
+
})]
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
export { CodexModelSelector };
|
|
@@ -73,7 +73,6 @@ declare function CollapsiblePanel({
|
|
|
73
73
|
}: CollapsiblePanelProps & {
|
|
74
74
|
ref?: React.Ref<HTMLDivElement>;
|
|
75
75
|
}): React.JSX.Element;
|
|
76
|
-
declare const CollapsibleContent: typeof CollapsiblePanel;
|
|
77
76
|
/**
|
|
78
77
|
* A collapsible panel controlled by a button.
|
|
79
78
|
* Useful for progressive disclosure of content.
|
|
@@ -117,11 +116,10 @@ declare const CollapsibleContent: typeof CollapsiblePanel;
|
|
|
117
116
|
*
|
|
118
117
|
* @see {@link https://base-ui.com/react/components/collapsible | Base UI Collapsible}
|
|
119
118
|
*/
|
|
120
|
-
declare const Collapsible:
|
|
119
|
+
declare const Collapsible: {
|
|
121
120
|
Root: typeof CollapsibleRoot;
|
|
122
121
|
Trigger: typeof CollapsibleTrigger;
|
|
123
122
|
Panel: typeof CollapsiblePanel;
|
|
124
|
-
Content: typeof CollapsiblePanel;
|
|
125
123
|
};
|
|
126
124
|
//#endregion
|
|
127
|
-
export { Collapsible,
|
|
125
|
+
export { Collapsible, CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps };
|
|
@@ -41,7 +41,11 @@ function CollapsibleTrigger({ className = "", unstyled = false, ref, ...props })
|
|
|
41
41
|
* Supports CSS animations via `--collapsible-panel-height` variable.
|
|
42
42
|
*/
|
|
43
43
|
function CollapsiblePanel({ className = "", unstyled = false, ref, ...props }) {
|
|
44
|
-
const classes =
|
|
44
|
+
const classes = [
|
|
45
|
+
"base-ui-collapsible-panel",
|
|
46
|
+
!unstyled && "collapsible__panel",
|
|
47
|
+
className
|
|
48
|
+
].filter(Boolean).join(" ");
|
|
45
49
|
return /* @__PURE__ */ jsx(Collapsible$1.Panel, {
|
|
46
50
|
ref,
|
|
47
51
|
"data-slot": "collapsible-content",
|
|
@@ -49,7 +53,6 @@ function CollapsiblePanel({ className = "", unstyled = false, ref, ...props }) {
|
|
|
49
53
|
...props
|
|
50
54
|
});
|
|
51
55
|
}
|
|
52
|
-
const CollapsibleContent = CollapsiblePanel;
|
|
53
56
|
/**
|
|
54
57
|
* A collapsible panel controlled by a button.
|
|
55
58
|
* Useful for progressive disclosure of content.
|
|
@@ -93,11 +96,10 @@ const CollapsibleContent = CollapsiblePanel;
|
|
|
93
96
|
*
|
|
94
97
|
* @see {@link https://base-ui.com/react/components/collapsible | Base UI Collapsible}
|
|
95
98
|
*/
|
|
96
|
-
const Collapsible =
|
|
99
|
+
const Collapsible = {
|
|
97
100
|
Root: CollapsibleRoot,
|
|
98
101
|
Trigger: CollapsibleTrigger,
|
|
99
|
-
Panel: CollapsiblePanel
|
|
100
|
-
|
|
101
|
-
});
|
|
102
|
+
Panel: CollapsiblePanel
|
|
103
|
+
};
|
|
102
104
|
//#endregion
|
|
103
|
-
export { Collapsible
|
|
105
|
+
export { Collapsible };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Combobox,
|
|
1
|
+
import { n as useComboboxAnchor, t as Combobox } from "../Combobox-B9Fcd6q-.js";
|
|
2
|
+
export { Combobox, useComboboxAnchor };
|
|
@@ -30,7 +30,11 @@ function Clear({ className = "", ref, ...props }) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function ComboboxPositioner({ className = "", ref, ...props }) {
|
|
33
|
-
const classes = [
|
|
33
|
+
const classes = [
|
|
34
|
+
"combobox__positioner",
|
|
35
|
+
"base-ui-positioner",
|
|
36
|
+
className
|
|
37
|
+
].filter(Boolean).join(" ");
|
|
34
38
|
return /* @__PURE__ */ jsx(Combobox$1.Positioner, {
|
|
35
39
|
ref,
|
|
36
40
|
"data-slot": "combobox-positioner",
|
|
@@ -39,7 +43,11 @@ function ComboboxPositioner({ className = "", ref, ...props }) {
|
|
|
39
43
|
});
|
|
40
44
|
}
|
|
41
45
|
function ComboboxPopup({ className = "", tabIndex = 0, ref, ...props }) {
|
|
42
|
-
const classes = [
|
|
46
|
+
const classes = [
|
|
47
|
+
"combobox__popup",
|
|
48
|
+
"base-ui-popup",
|
|
49
|
+
className
|
|
50
|
+
].filter(Boolean).join(" ");
|
|
43
51
|
return /* @__PURE__ */ jsx(Combobox$1.Popup, {
|
|
44
52
|
ref,
|
|
45
53
|
"data-slot": "combobox-content",
|
|
@@ -93,7 +101,7 @@ function ComboboxGroup({ className = "", ref, ...props }) {
|
|
|
93
101
|
...props
|
|
94
102
|
});
|
|
95
103
|
}
|
|
96
|
-
function
|
|
104
|
+
function ComboboxGroupLabel({ className = "", ref, ...props }) {
|
|
97
105
|
const classes = ["combobox__group-label", className].filter(Boolean).join(" ");
|
|
98
106
|
return /* @__PURE__ */ jsx(Combobox$1.GroupLabel, {
|
|
99
107
|
ref,
|
|
@@ -142,17 +150,10 @@ function ComboboxLabel({ className = "", ref, ...props }) {
|
|
|
142
150
|
*
|
|
143
151
|
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
144
152
|
*/
|
|
145
|
-
const ComboboxContent = ComboboxPopup;
|
|
146
|
-
const ComboboxValue = Combobox$1.Value;
|
|
147
|
-
const ComboboxChips = Combobox$1.Chips;
|
|
148
|
-
const ComboboxChip = Combobox$1.Chip;
|
|
149
|
-
const ComboboxChipsInput = ComboboxInput;
|
|
150
|
-
const ComboboxCollection = Combobox$1.Collection;
|
|
151
|
-
const ComboboxSeparator = Combobox$1.Separator;
|
|
152
153
|
function useComboboxAnchor() {
|
|
153
154
|
return React.useRef(null);
|
|
154
155
|
}
|
|
155
|
-
const Combobox =
|
|
156
|
+
const Combobox = {
|
|
156
157
|
Root: Combobox$1.Root,
|
|
157
158
|
Input: ComboboxInput,
|
|
158
159
|
Trigger: ComboboxTrigger,
|
|
@@ -160,20 +161,17 @@ const Combobox = Object.assign(Combobox$1.Root, {
|
|
|
160
161
|
Portal: Combobox$1.Portal,
|
|
161
162
|
Positioner: ComboboxPositioner,
|
|
162
163
|
Popup: ComboboxPopup,
|
|
163
|
-
Content: ComboboxContent,
|
|
164
164
|
List: ComboboxList,
|
|
165
165
|
Item: ComboboxItem,
|
|
166
166
|
ItemIndicator,
|
|
167
167
|
Empty: ComboboxEmpty,
|
|
168
168
|
Group: ComboboxGroup,
|
|
169
|
-
GroupLabel:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
Separator: ComboboxSeparator
|
|
177
|
-
});
|
|
169
|
+
GroupLabel: ComboboxGroupLabel,
|
|
170
|
+
Value: Combobox$1.Value,
|
|
171
|
+
Chips: Combobox$1.Chips,
|
|
172
|
+
Chip: Combobox$1.Chip,
|
|
173
|
+
Collection: Combobox$1.Collection,
|
|
174
|
+
Separator: Combobox$1.Separator
|
|
175
|
+
};
|
|
178
176
|
//#endregion
|
|
179
|
-
export { Combobox,
|
|
177
|
+
export { Combobox, useComboboxAnchor };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Collapsible } from "./Collapsible.js";
|
|
2
|
+
import { t as CopyButtonProps } from "../copy-button-DtPMgN7e.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Commit.d.ts
|
|
6
6
|
type CommitFileStatusValue = "added" | "modified" | "deleted" | "renamed";
|
|
7
|
-
interface CommitProps extends Omit<
|
|
7
|
+
interface CommitProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "className" | "unstyled"> {
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -50,7 +50,7 @@ declare function Commit({
|
|
|
50
50
|
}: CommitProps & {
|
|
51
51
|
ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
}): React.JSX.Element;
|
|
53
|
-
interface CommitHeaderProps extends Omit<
|
|
53
|
+
interface CommitHeaderProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "className" | "unstyled"> {
|
|
54
54
|
className?: string;
|
|
55
55
|
}
|
|
56
56
|
declare function CommitHeader({
|
|
@@ -133,7 +133,7 @@ declare function CommitHash({
|
|
|
133
133
|
}: CommitHashProps & {
|
|
134
134
|
ref?: React.Ref<HTMLSpanElement>;
|
|
135
135
|
}): React.JSX.Element;
|
|
136
|
-
interface CommitCopyButtonProps extends Omit<
|
|
136
|
+
interface CommitCopyButtonProps extends Omit<CopyButtonProps, "label" | "stopPropagation" | "text"> {
|
|
137
137
|
hash: string;
|
|
138
138
|
label?: string;
|
|
139
139
|
className?: string;
|
|
@@ -167,7 +167,7 @@ declare function CommitActions({
|
|
|
167
167
|
}: CommitActionsProps & {
|
|
168
168
|
ref?: React.Ref<HTMLDivElement>;
|
|
169
169
|
}): React.JSX.Element;
|
|
170
|
-
interface CommitContentProps extends Omit<
|
|
170
|
+
interface CommitContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "className" | "unstyled"> {
|
|
171
171
|
className?: string;
|
|
172
172
|
}
|
|
173
173
|
declare function CommitContent({
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Collapsible } from "./Collapsible.js";
|
|
2
2
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Tooltip, TooltipPopup, TooltipPortal, TooltipPositioner, TooltipTrigger } from "./Tooltip.js";
|
|
3
|
+
import { c as ChevronRightIcon, h as FileIcon } from "../icons-Ba9THQKz.js";
|
|
4
|
+
import { t as CopyButton } from "../copy-button-DUMLYdsk.js";
|
|
6
5
|
import { Avatar } from "./Avatar.js";
|
|
7
6
|
import { Badge } from "./Badge.js";
|
|
8
|
-
import
|
|
7
|
+
import "react";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
//#region src/components/Commit.tsx
|
|
11
10
|
const FILE_STATUS_COLOR = {
|
|
@@ -57,7 +56,7 @@ const FILE_STATUS_LABEL = {
|
|
|
57
56
|
* ```
|
|
58
57
|
*/
|
|
59
58
|
function Commit({ className, ref, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ jsx(
|
|
59
|
+
return /* @__PURE__ */ jsx(Collapsible.Root, {
|
|
61
60
|
ref,
|
|
62
61
|
className: cx("commit", className),
|
|
63
62
|
...props,
|
|
@@ -65,7 +64,7 @@ function Commit({ className, ref, ...props }) {
|
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
66
|
function CommitHeader({ className, children, ref, ...props }) {
|
|
68
|
-
return /* @__PURE__ */ jsxs(
|
|
67
|
+
return /* @__PURE__ */ jsxs(Collapsible.Trigger, {
|
|
69
68
|
ref,
|
|
70
69
|
className: cx("commit__header", className),
|
|
71
70
|
...props,
|
|
@@ -141,25 +140,14 @@ function CommitHash({ className, children, hash, ref, ...props }) {
|
|
|
141
140
|
});
|
|
142
141
|
}
|
|
143
142
|
function CommitCopyButton({ className, hash, label = "Copy hash", onClick, ...props }) {
|
|
144
|
-
|
|
145
|
-
const handleClick = React.useCallback(async (e) => {
|
|
146
|
-
e.stopPropagation();
|
|
147
|
-
try {
|
|
148
|
-
await navigator.clipboard.writeText(hash);
|
|
149
|
-
setCopied(true);
|
|
150
|
-
window.setTimeout(() => setCopied(false), 1500);
|
|
151
|
-
} catch {}
|
|
152
|
-
onClick?.(e);
|
|
153
|
-
}, [hash, onClick]);
|
|
154
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
155
|
-
variant: "ghost",
|
|
156
|
-
size: "icon",
|
|
157
|
-
"aria-label": label,
|
|
158
|
-
className: cx("commit__copy", className),
|
|
143
|
+
return /* @__PURE__ */ jsx(CopyButton, {
|
|
159
144
|
...props,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
145
|
+
text: hash,
|
|
146
|
+
label,
|
|
147
|
+
stopPropagation: true,
|
|
148
|
+
className: cx("commit__copy", className),
|
|
149
|
+
onClick
|
|
150
|
+
});
|
|
163
151
|
}
|
|
164
152
|
function CommitTimestamp({ className, children, date, ref, ...props }) {
|
|
165
153
|
return /* @__PURE__ */ jsx("time", {
|
|
@@ -180,7 +168,7 @@ function CommitActions({ className, children, ref, ...props }) {
|
|
|
180
168
|
});
|
|
181
169
|
}
|
|
182
170
|
function CommitContent({ className, children, ref, ...props }) {
|
|
183
|
-
return /* @__PURE__ */ jsx(
|
|
171
|
+
return /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
184
172
|
ref,
|
|
185
173
|
className: cx("commit__content", className),
|
|
186
174
|
...props,
|
|
@@ -67,7 +67,11 @@ function Context({ className, usedTokens, maxTokens, usage, modelId, totalCostUs
|
|
|
67
67
|
function ContextTrigger({ className, children, ...props }) {
|
|
68
68
|
const { usedTokens, maxTokens } = useContextContext();
|
|
69
69
|
const percent = maxTokens > 0 ? usedTokens / maxTokens * 100 : 0;
|
|
70
|
-
if (React.isValidElement(children)) return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
70
|
+
if (React.isValidElement(children)) return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
71
|
+
className: cx("context__trigger", className),
|
|
72
|
+
...props,
|
|
73
|
+
render: children
|
|
74
|
+
});
|
|
71
75
|
if (children) return /* @__PURE__ */ jsx(Popover.Trigger, { children });
|
|
72
76
|
return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
73
77
|
className: cx("context__trigger", className),
|
|
@@ -50,7 +50,7 @@ interface ContextMenuSeparatorProps extends Omit<React.ComponentPropsWithoutRef<
|
|
|
50
50
|
interface ContextMenuGroupProps extends Omit<React.ComponentPropsWithoutRef<typeof ContextMenu$1.Group>, "className"> {
|
|
51
51
|
className?: string;
|
|
52
52
|
}
|
|
53
|
-
interface
|
|
53
|
+
interface ContextMenuGroupLabelProps extends Omit<React.ComponentPropsWithoutRef<typeof ContextMenu$1.GroupLabel>, "className"> {
|
|
54
54
|
className?: string;
|
|
55
55
|
inset?: boolean;
|
|
56
56
|
}
|
|
@@ -64,36 +64,11 @@ interface ContextMenuRadioItemProps extends Omit<React.ComponentPropsWithoutRef<
|
|
|
64
64
|
className?: string;
|
|
65
65
|
}
|
|
66
66
|
interface ContextMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
67
|
-
interface
|
|
68
|
-
interface
|
|
67
|
+
interface ContextMenuSubmenuRootProps extends React.ComponentPropsWithoutRef<typeof ContextMenu$1.SubmenuRoot> {}
|
|
68
|
+
interface ContextMenuSubmenuTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof ContextMenu$1.SubmenuTrigger>, "className"> {
|
|
69
69
|
className?: string;
|
|
70
70
|
inset?: boolean;
|
|
71
71
|
}
|
|
72
|
-
type ContextMenuPlacementProps = Pick<ContextMenuPositionerProps, "anchor" | "positionMethod" | "side" | "sideOffset" | "align" | "alignOffset" | "collisionBoundary" | "collisionPadding" | "sticky" | "arrowPadding" | "disableAnchorTracking" | "collisionAvoidance">;
|
|
73
|
-
type ContextMenuContentProps = ContextMenuPopupProps & ContextMenuPlacementProps;
|
|
74
|
-
type ContextMenuSubContentProps = ContextMenuContentProps;
|
|
75
|
-
/**
|
|
76
|
-
* Root component that manages context menu state.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```tsx
|
|
80
|
-
* <ContextMenu.Root>
|
|
81
|
-
* <ContextMenu.Trigger>Right click here</ContextMenu.Trigger>
|
|
82
|
-
* <ContextMenu.Portal>
|
|
83
|
-
* <ContextMenu.Positioner>
|
|
84
|
-
* <ContextMenu.Popup>
|
|
85
|
-
* <ContextMenu.Item>Cut</ContextMenu.Item>
|
|
86
|
-
* <ContextMenu.Item>Copy</ContextMenu.Item>
|
|
87
|
-
* <ContextMenu.Item>Paste</ContextMenu.Item>
|
|
88
|
-
* </ContextMenu.Popup>
|
|
89
|
-
* </ContextMenu.Positioner>
|
|
90
|
-
* </ContextMenu.Portal>
|
|
91
|
-
* </ContextMenu.Root>
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
95
|
-
*/
|
|
96
|
-
declare const ContextMenuRoot: (props: ContextMenuProps) => React.JSX.Element;
|
|
97
72
|
/**
|
|
98
73
|
* Interactive area that activates the menu on right-click or long-press.
|
|
99
74
|
*/
|
|
@@ -104,10 +79,6 @@ declare function ContextMenuTrigger({
|
|
|
104
79
|
}: ContextMenuTriggerProps & {
|
|
105
80
|
ref?: React.Ref<HTMLDivElement>;
|
|
106
81
|
}): React.JSX.Element;
|
|
107
|
-
/**
|
|
108
|
-
* Renders menu content in a portal.
|
|
109
|
-
*/
|
|
110
|
-
declare const ContextMenuPortal: (props: ContextMenuPortalProps) => React.JSX.Element;
|
|
111
82
|
/**
|
|
112
83
|
* Positions the menu at the pointer location.
|
|
113
84
|
*/
|
|
@@ -128,23 +99,6 @@ declare function ContextMenuPopup({
|
|
|
128
99
|
}: ContextMenuPopupProps & {
|
|
129
100
|
ref?: React.Ref<HTMLDivElement>;
|
|
130
101
|
}): React.JSX.Element;
|
|
131
|
-
declare function ContextMenuContent({
|
|
132
|
-
anchor,
|
|
133
|
-
positionMethod,
|
|
134
|
-
side,
|
|
135
|
-
sideOffset,
|
|
136
|
-
align,
|
|
137
|
-
alignOffset,
|
|
138
|
-
collisionBoundary,
|
|
139
|
-
collisionPadding,
|
|
140
|
-
sticky,
|
|
141
|
-
arrowPadding,
|
|
142
|
-
disableAnchorTracking,
|
|
143
|
-
collisionAvoidance,
|
|
144
|
-
...props
|
|
145
|
-
}: ContextMenuContentProps & {
|
|
146
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
147
|
-
}): React.JSX.Element;
|
|
148
102
|
/**
|
|
149
103
|
* Interactive menu item.
|
|
150
104
|
*/
|
|
@@ -174,22 +128,22 @@ declare function ContextMenuGroup({
|
|
|
174
128
|
}: ContextMenuGroupProps & {
|
|
175
129
|
ref?: React.Ref<HTMLDivElement>;
|
|
176
130
|
}): React.JSX.Element;
|
|
177
|
-
declare function
|
|
131
|
+
declare function ContextMenuGroupLabel({
|
|
178
132
|
className,
|
|
179
133
|
inset,
|
|
180
134
|
ref,
|
|
181
135
|
...props
|
|
182
|
-
}:
|
|
136
|
+
}: ContextMenuGroupLabelProps & {
|
|
183
137
|
ref?: React.Ref<HTMLDivElement>;
|
|
184
138
|
}): React.JSX.Element;
|
|
185
139
|
declare function ContextMenuCheckboxItem({
|
|
186
140
|
className,
|
|
187
|
-
children,
|
|
188
141
|
ref,
|
|
189
142
|
...props
|
|
190
143
|
}: ContextMenuCheckboxItemProps & {
|
|
191
144
|
ref?: React.Ref<HTMLDivElement>;
|
|
192
145
|
}): React.JSX.Element;
|
|
146
|
+
declare function ContextMenuCheckboxItemIndicator(props: ContextMenu$1.CheckboxItemIndicator.Props): React.JSX.Element;
|
|
193
147
|
declare function ContextMenuRadioGroup({
|
|
194
148
|
className,
|
|
195
149
|
ref,
|
|
@@ -199,12 +153,12 @@ declare function ContextMenuRadioGroup({
|
|
|
199
153
|
}): React.JSX.Element;
|
|
200
154
|
declare function ContextMenuRadioItem({
|
|
201
155
|
className,
|
|
202
|
-
children,
|
|
203
156
|
ref,
|
|
204
157
|
...props
|
|
205
158
|
}: ContextMenuRadioItemProps & {
|
|
206
159
|
ref?: React.Ref<HTMLDivElement>;
|
|
207
160
|
}): React.JSX.Element;
|
|
161
|
+
declare function ContextMenuRadioItemIndicator(props: ContextMenu$1.RadioItemIndicator.Props): React.JSX.Element;
|
|
208
162
|
declare function ContextMenuShortcut({
|
|
209
163
|
className,
|
|
210
164
|
ref,
|
|
@@ -212,22 +166,13 @@ declare function ContextMenuShortcut({
|
|
|
212
166
|
}: ContextMenuShortcutProps & {
|
|
213
167
|
ref?: React.Ref<HTMLSpanElement>;
|
|
214
168
|
}): React.JSX.Element;
|
|
215
|
-
declare function
|
|
216
|
-
declare function
|
|
217
|
-
side,
|
|
218
|
-
align,
|
|
219
|
-
sideOffset,
|
|
220
|
-
...props
|
|
221
|
-
}: ContextMenuSubContentProps & {
|
|
222
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
223
|
-
}): React.JSX.Element;
|
|
224
|
-
declare function ContextMenuSubTrigger({
|
|
169
|
+
declare function ContextMenuSubmenuRoot(props: ContextMenuSubmenuRootProps): React.JSX.Element;
|
|
170
|
+
declare function ContextMenuSubmenuTrigger({
|
|
225
171
|
className,
|
|
226
172
|
inset,
|
|
227
|
-
children,
|
|
228
173
|
ref,
|
|
229
174
|
...props
|
|
230
|
-
}:
|
|
175
|
+
}: ContextMenuSubmenuTriggerProps & {
|
|
231
176
|
ref?: React.Ref<HTMLDivElement>;
|
|
232
177
|
}): React.JSX.Element;
|
|
233
178
|
/**
|
|
@@ -259,24 +204,27 @@ declare function ContextMenuSubTrigger({
|
|
|
259
204
|
*
|
|
260
205
|
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
261
206
|
*/
|
|
262
|
-
declare const ContextMenu:
|
|
207
|
+
declare const ContextMenu: {
|
|
263
208
|
Root: (props: ContextMenuProps) => React.JSX.Element;
|
|
264
209
|
Trigger: typeof ContextMenuTrigger;
|
|
265
210
|
Portal: (props: ContextMenuPortalProps) => React.JSX.Element;
|
|
266
211
|
Positioner: typeof ContextMenuPositioner;
|
|
267
212
|
Popup: typeof ContextMenuPopup;
|
|
268
|
-
|
|
213
|
+
Backdrop: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
Arrow: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
269
215
|
Item: typeof ContextMenuItem;
|
|
270
216
|
Separator: typeof ContextMenuSeparator;
|
|
271
217
|
Group: typeof ContextMenuGroup;
|
|
272
|
-
|
|
218
|
+
GroupLabel: typeof ContextMenuGroupLabel;
|
|
219
|
+
LinkItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>>;
|
|
273
220
|
CheckboxItem: typeof ContextMenuCheckboxItem;
|
|
221
|
+
CheckboxItemIndicator: typeof ContextMenuCheckboxItemIndicator;
|
|
274
222
|
RadioGroup: typeof ContextMenuRadioGroup;
|
|
275
223
|
RadioItem: typeof ContextMenuRadioItem;
|
|
224
|
+
RadioItemIndicator: typeof ContextMenuRadioItemIndicator;
|
|
276
225
|
Shortcut: typeof ContextMenuShortcut;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
SubTrigger: typeof ContextMenuSubTrigger;
|
|
226
|
+
SubmenuRoot: typeof ContextMenuSubmenuRoot;
|
|
227
|
+
SubmenuTrigger: typeof ContextMenuSubmenuTrigger;
|
|
280
228
|
};
|
|
281
229
|
//#endregion
|
|
282
|
-
export { ContextMenu,
|
|
230
|
+
export { ContextMenu, ContextMenuCheckboxItemProps, ContextMenuGroupLabelProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuPopupProps, ContextMenuPortalProps, ContextMenuPositionerProps, ContextMenuProps, ContextMenuRadioGroupProps, ContextMenuRadioItemProps, ContextMenuSeparatorProps, ContextMenuShortcutProps, ContextMenuSubmenuRootProps, ContextMenuSubmenuTriggerProps, ContextMenuTriggerProps };
|