@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,6 +1,6 @@
|
|
|
1
|
-
import { a as CheckIcon,
|
|
1
|
+
import { a as CheckIcon, u as DotIcon } from "../icons-Ba9THQKz.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { jsx
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
5
5
|
//#region src/components/ContextMenu.tsx
|
|
6
6
|
/**
|
|
@@ -55,7 +55,11 @@ const ContextMenuPortal = (props) => {
|
|
|
55
55
|
* Positions the menu at the pointer location.
|
|
56
56
|
*/
|
|
57
57
|
function ContextMenuPositioner({ className = "", ref, ...props }) {
|
|
58
|
-
const classes = [
|
|
58
|
+
const classes = [
|
|
59
|
+
"context-menu__positioner",
|
|
60
|
+
"base-ui-positioner",
|
|
61
|
+
className
|
|
62
|
+
].filter(Boolean).join(" ");
|
|
59
63
|
return /* @__PURE__ */ jsx(ContextMenu$1.Positioner, {
|
|
60
64
|
ref,
|
|
61
65
|
"data-slot": "context-menu-positioner",
|
|
@@ -67,7 +71,11 @@ function ContextMenuPositioner({ className = "", ref, ...props }) {
|
|
|
67
71
|
* Container for menu items.
|
|
68
72
|
*/
|
|
69
73
|
function ContextMenuPopup({ className = "", ref, ...props }) {
|
|
70
|
-
const classes = [
|
|
74
|
+
const classes = [
|
|
75
|
+
"context-menu__popup",
|
|
76
|
+
"base-ui-popup",
|
|
77
|
+
className
|
|
78
|
+
].filter(Boolean).join(" ");
|
|
71
79
|
return /* @__PURE__ */ jsx(ContextMenu$1.Popup, {
|
|
72
80
|
ref,
|
|
73
81
|
"data-slot": "context-menu-content",
|
|
@@ -75,23 +83,6 @@ function ContextMenuPopup({ className = "", ref, ...props }) {
|
|
|
75
83
|
...props
|
|
76
84
|
});
|
|
77
85
|
}
|
|
78
|
-
function ContextMenuContent({ anchor, positionMethod, side, sideOffset, align, alignOffset, collisionBoundary, collisionPadding, sticky, arrowPadding, disableAnchorTracking, collisionAvoidance, ...props }) {
|
|
79
|
-
return /* @__PURE__ */ jsx(ContextMenuPortal, { children: /* @__PURE__ */ jsx(ContextMenuPositioner, {
|
|
80
|
-
anchor,
|
|
81
|
-
positionMethod,
|
|
82
|
-
side,
|
|
83
|
-
sideOffset,
|
|
84
|
-
align,
|
|
85
|
-
alignOffset,
|
|
86
|
-
collisionBoundary,
|
|
87
|
-
collisionPadding,
|
|
88
|
-
sticky,
|
|
89
|
-
arrowPadding,
|
|
90
|
-
disableAnchorTracking,
|
|
91
|
-
collisionAvoidance,
|
|
92
|
-
children: /* @__PURE__ */ jsx(ContextMenuPopup, { ...props })
|
|
93
|
-
}) });
|
|
94
|
-
}
|
|
95
86
|
/**
|
|
96
87
|
* Interactive menu item.
|
|
97
88
|
*/
|
|
@@ -131,7 +122,7 @@ function ContextMenuGroup({ className = "", ref, ...props }) {
|
|
|
131
122
|
...props
|
|
132
123
|
});
|
|
133
124
|
}
|
|
134
|
-
function
|
|
125
|
+
function ContextMenuGroupLabel({ className = "", inset, ref, ...props }) {
|
|
135
126
|
const classes = [
|
|
136
127
|
"context-menu__label",
|
|
137
128
|
inset && "context-menu__label--inset",
|
|
@@ -145,17 +136,20 @@ function ContextMenuLabel({ className = "", inset, ref, ...props }) {
|
|
|
145
136
|
...props
|
|
146
137
|
});
|
|
147
138
|
}
|
|
148
|
-
function ContextMenuCheckboxItem({ className = "",
|
|
139
|
+
function ContextMenuCheckboxItem({ className = "", ref, ...props }) {
|
|
149
140
|
const classes = ["context-menu__checkbox-item", className].filter(Boolean).join(" ");
|
|
150
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ jsx(ContextMenu$1.CheckboxItem, {
|
|
151
142
|
ref,
|
|
152
143
|
"data-slot": "context-menu-checkbox-item",
|
|
153
144
|
className: classes,
|
|
145
|
+
...props
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function ContextMenuCheckboxItemIndicator(props) {
|
|
149
|
+
return /* @__PURE__ */ jsx(ContextMenu$1.CheckboxItemIndicator, {
|
|
150
|
+
className: "context-menu__indicator",
|
|
154
151
|
...props,
|
|
155
|
-
children:
|
|
156
|
-
className: "context-menu__indicator",
|
|
157
|
-
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
158
|
-
}), children]
|
|
152
|
+
children: props.children ?? /* @__PURE__ */ jsx(CheckIcon, {})
|
|
159
153
|
});
|
|
160
154
|
}
|
|
161
155
|
function ContextMenuRadioGroup({ className = "", ref, ...props }) {
|
|
@@ -167,17 +161,20 @@ function ContextMenuRadioGroup({ className = "", ref, ...props }) {
|
|
|
167
161
|
...props
|
|
168
162
|
});
|
|
169
163
|
}
|
|
170
|
-
function ContextMenuRadioItem({ className = "",
|
|
164
|
+
function ContextMenuRadioItem({ className = "", ref, ...props }) {
|
|
171
165
|
const classes = ["context-menu__radio-item", className].filter(Boolean).join(" ");
|
|
172
|
-
return /* @__PURE__ */
|
|
166
|
+
return /* @__PURE__ */ jsx(ContextMenu$1.RadioItem, {
|
|
173
167
|
ref,
|
|
174
168
|
"data-slot": "context-menu-radio-item",
|
|
175
169
|
className: classes,
|
|
170
|
+
...props
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function ContextMenuRadioItemIndicator(props) {
|
|
174
|
+
return /* @__PURE__ */ jsx(ContextMenu$1.RadioItemIndicator, {
|
|
175
|
+
className: "context-menu__indicator",
|
|
176
176
|
...props,
|
|
177
|
-
children:
|
|
178
|
-
className: "context-menu__indicator",
|
|
179
|
-
children: /* @__PURE__ */ jsx(DotIcon, { size: 8 })
|
|
180
|
-
}), children]
|
|
177
|
+
children: props.children ?? /* @__PURE__ */ jsx(DotIcon, { size: 8 })
|
|
181
178
|
});
|
|
182
179
|
}
|
|
183
180
|
function ContextMenuShortcut({ className = "", ref, ...props }) {
|
|
@@ -188,34 +185,24 @@ function ContextMenuShortcut({ className = "", ref, ...props }) {
|
|
|
188
185
|
...props
|
|
189
186
|
});
|
|
190
187
|
}
|
|
191
|
-
function
|
|
188
|
+
function ContextMenuSubmenuRoot(props) {
|
|
192
189
|
return /* @__PURE__ */ jsx(ContextMenu$1.SubmenuRoot, {
|
|
193
190
|
"data-slot": "context-menu-sub",
|
|
194
191
|
...props
|
|
195
192
|
});
|
|
196
193
|
}
|
|
197
|
-
function
|
|
198
|
-
return /* @__PURE__ */ jsx(ContextMenuContent, {
|
|
199
|
-
"data-slot": "context-menu-sub-content",
|
|
200
|
-
side,
|
|
201
|
-
align,
|
|
202
|
-
sideOffset,
|
|
203
|
-
...props
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function ContextMenuSubTrigger({ className = "", inset, children, ref, ...props }) {
|
|
194
|
+
function ContextMenuSubmenuTrigger({ className = "", inset, ref, ...props }) {
|
|
207
195
|
const classes = [
|
|
208
196
|
"context-menu__submenu-trigger",
|
|
209
197
|
inset && "context-menu__item--inset",
|
|
210
198
|
className
|
|
211
199
|
].filter(Boolean).join(" ");
|
|
212
|
-
return /* @__PURE__ */
|
|
200
|
+
return /* @__PURE__ */ jsx(ContextMenu$1.SubmenuTrigger, {
|
|
213
201
|
ref,
|
|
214
202
|
"data-slot": "context-menu-sub-trigger",
|
|
215
203
|
"data-inset": inset || void 0,
|
|
216
204
|
className: classes,
|
|
217
|
-
...props
|
|
218
|
-
children: [children, /* @__PURE__ */ jsx(ChevronRightIcon, { className: "context-menu__submenu-icon" })]
|
|
205
|
+
...props
|
|
219
206
|
});
|
|
220
207
|
}
|
|
221
208
|
/**
|
|
@@ -247,24 +234,27 @@ function ContextMenuSubTrigger({ className = "", inset, children, ref, ...props
|
|
|
247
234
|
*
|
|
248
235
|
* @see {@link https://base-ui.com/react/components/context-menu | Base UI ContextMenu}
|
|
249
236
|
*/
|
|
250
|
-
const ContextMenu =
|
|
237
|
+
const ContextMenu = {
|
|
251
238
|
Root: ContextMenuRoot,
|
|
252
239
|
Trigger: ContextMenuTrigger,
|
|
253
240
|
Portal: ContextMenuPortal,
|
|
254
241
|
Positioner: ContextMenuPositioner,
|
|
255
242
|
Popup: ContextMenuPopup,
|
|
256
|
-
|
|
243
|
+
Backdrop: ContextMenu$1.Backdrop,
|
|
244
|
+
Arrow: ContextMenu$1.Arrow,
|
|
257
245
|
Item: ContextMenuItem,
|
|
258
246
|
Separator: ContextMenuSeparator,
|
|
259
247
|
Group: ContextMenuGroup,
|
|
260
|
-
|
|
248
|
+
GroupLabel: ContextMenuGroupLabel,
|
|
249
|
+
LinkItem: ContextMenu$1.LinkItem,
|
|
261
250
|
CheckboxItem: ContextMenuCheckboxItem,
|
|
251
|
+
CheckboxItemIndicator: ContextMenuCheckboxItemIndicator,
|
|
262
252
|
RadioGroup: ContextMenuRadioGroup,
|
|
263
253
|
RadioItem: ContextMenuRadioItem,
|
|
254
|
+
RadioItemIndicator: ContextMenuRadioItemIndicator,
|
|
264
255
|
Shortcut: ContextMenuShortcut,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
});
|
|
256
|
+
SubmenuRoot: ContextMenuSubmenuRoot,
|
|
257
|
+
SubmenuTrigger: ContextMenuSubmenuTrigger
|
|
258
|
+
};
|
|
269
259
|
//#endregion
|
|
270
|
-
export { ContextMenu
|
|
260
|
+
export { ContextMenu };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { t as Button } from "../Button-
|
|
1
|
+
import { t as Button } from "../Button-FX_hpqxm.js";
|
|
2
2
|
import { MessageScrollerButtonProps, MessageScrollerItemProps } from "./MessageScroller.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { UIMessage } from "ai";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Conversation.d.ts
|
|
7
|
-
/** AI SDK
|
|
8
|
-
type ConversationMessage = UIMessage
|
|
9
|
-
id?: string;
|
|
10
|
-
role: string;
|
|
11
|
-
content?: string;
|
|
12
|
-
};
|
|
7
|
+
/** Whole AI SDK message accepted by transcript export helpers. */
|
|
8
|
+
type ConversationMessage = UIMessage;
|
|
13
9
|
interface ConversationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
14
10
|
/** Additional class names for layout only; do not override scroll behavior from apps. */
|
|
15
11
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import { d as DownloadIcon, t as ArrowDownIcon } from "../icons-
|
|
2
|
+
import { d as DownloadIcon, t as ArrowDownIcon } from "../icons-Ba9THQKz.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -133,11 +133,10 @@ function ConversationScrollButton({ className, variant = "outline", color = "neu
|
|
|
133
133
|
const ROLE_HEADING = {
|
|
134
134
|
user: "### User",
|
|
135
135
|
assistant: "### Assistant",
|
|
136
|
-
system: "### System"
|
|
137
|
-
tool: "### Tool"
|
|
136
|
+
system: "### System"
|
|
138
137
|
};
|
|
139
138
|
function defaultFormatMessage(message) {
|
|
140
|
-
return `${ROLE_HEADING[message.role]
|
|
139
|
+
return `${ROLE_HEADING[message.role]}\n\n${message.parts.filter((part) => isTextUIPart(part) || isReasoningUIPart(part)).map((part) => part.text).join("").trim()}`;
|
|
141
140
|
}
|
|
142
141
|
/**
|
|
143
142
|
* Converts a conversation to a Markdown document with a heading per message.
|
|
@@ -8,6 +8,9 @@ interface DialogPortalProps extends Dialog$1.Portal.Props {}
|
|
|
8
8
|
interface DialogBackdropProps extends Omit<Dialog$1.Backdrop.Props, "className"> {
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
+
interface DialogViewportProps extends Omit<Dialog$1.Viewport.Props, "className"> {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
11
14
|
interface DialogPopupProps extends Omit<Dialog$1.Popup.Props, "className"> {
|
|
12
15
|
className?: string;
|
|
13
16
|
/**
|
|
@@ -25,36 +28,31 @@ interface DialogDescriptionProps extends Omit<Dialog$1.Description.Props, "class
|
|
|
25
28
|
interface DialogCloseProps extends Omit<Dialog$1.Close.Props, "className"> {
|
|
26
29
|
className?: string;
|
|
27
30
|
}
|
|
28
|
-
type DialogOverlayProps = DialogBackdropProps;
|
|
29
|
-
type DialogContentProps = DialogPopupProps & {
|
|
30
|
-
showCloseButton?: boolean;
|
|
31
|
-
};
|
|
32
31
|
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
33
|
-
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
34
|
-
showCloseButton?: boolean;
|
|
35
|
-
}
|
|
32
|
+
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
36
33
|
/**
|
|
37
34
|
* A dialog component for modal interactions.
|
|
38
35
|
*
|
|
39
36
|
* @example
|
|
40
37
|
* ```tsx
|
|
41
|
-
* <Dialog open={isOpen} onOpenChange={setIsOpen}>
|
|
42
|
-
* <
|
|
43
|
-
*
|
|
44
|
-
* <
|
|
45
|
-
*
|
|
46
|
-
* <
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
38
|
+
* <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>
|
|
39
|
+
* <Dialog.Trigger render={<Button />}>Open</Dialog.Trigger>
|
|
40
|
+
* <Dialog.Portal>
|
|
41
|
+
* <Dialog.Backdrop />
|
|
42
|
+
* <Dialog.Viewport>
|
|
43
|
+
* <Dialog.Popup>
|
|
44
|
+
* <Dialog.Title>Confirm</Dialog.Title>
|
|
45
|
+
* <Dialog.Description>Are you sure?</Dialog.Description>
|
|
46
|
+
* <Dialog.Close>Cancel</Dialog.Close>
|
|
47
|
+
* </Dialog.Popup>
|
|
48
|
+
* </Dialog.Viewport>
|
|
49
|
+
* </Dialog.Portal>
|
|
50
|
+
* </Dialog.Root>
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
53
|
* @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
|
|
54
54
|
*/
|
|
55
|
-
declare const Dialog: typeof Dialog$1.Root;
|
|
56
55
|
declare function DialogTrigger(props: DialogTriggerProps): React.JSX.Element;
|
|
57
|
-
declare const DialogPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
58
56
|
declare function DialogBackdrop({
|
|
59
57
|
className,
|
|
60
58
|
ref,
|
|
@@ -62,21 +60,19 @@ declare function DialogBackdrop({
|
|
|
62
60
|
}: DialogBackdropProps & {
|
|
63
61
|
ref?: React.Ref<HTMLDivElement>;
|
|
64
62
|
}): React.JSX.Element;
|
|
65
|
-
declare
|
|
66
|
-
declare function DialogPopup({
|
|
67
|
-
size,
|
|
63
|
+
declare function DialogViewport({
|
|
68
64
|
className,
|
|
69
65
|
ref,
|
|
70
66
|
...props
|
|
71
|
-
}:
|
|
67
|
+
}: DialogViewportProps & {
|
|
72
68
|
ref?: React.Ref<HTMLDivElement>;
|
|
73
69
|
}): React.JSX.Element;
|
|
74
|
-
declare function
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
declare function DialogPopup({
|
|
71
|
+
size,
|
|
72
|
+
className,
|
|
77
73
|
ref,
|
|
78
74
|
...props
|
|
79
|
-
}:
|
|
75
|
+
}: DialogPopupProps & {
|
|
80
76
|
ref?: React.Ref<HTMLDivElement>;
|
|
81
77
|
}): React.JSX.Element;
|
|
82
78
|
declare function DialogHeader({
|
|
@@ -88,8 +84,6 @@ declare function DialogHeader({
|
|
|
88
84
|
}): React.JSX.Element;
|
|
89
85
|
declare function DialogFooter({
|
|
90
86
|
className,
|
|
91
|
-
showCloseButton,
|
|
92
|
-
children,
|
|
93
87
|
ref,
|
|
94
88
|
...props
|
|
95
89
|
}: DialogFooterProps & {
|
|
@@ -116,5 +110,19 @@ declare function DialogClose({
|
|
|
116
110
|
}: DialogCloseProps & {
|
|
117
111
|
ref?: React.Ref<HTMLButtonElement>;
|
|
118
112
|
}): React.JSX.Element;
|
|
113
|
+
declare const Dialog: {
|
|
114
|
+
Root: typeof Dialog$1.Root;
|
|
115
|
+
Trigger: typeof DialogTrigger;
|
|
116
|
+
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
Backdrop: typeof DialogBackdrop;
|
|
118
|
+
Viewport: typeof DialogViewport;
|
|
119
|
+
Popup: typeof DialogPopup;
|
|
120
|
+
Header: typeof DialogHeader;
|
|
121
|
+
Footer: typeof DialogFooter;
|
|
122
|
+
Title: typeof DialogTitle;
|
|
123
|
+
Description: typeof DialogDescription;
|
|
124
|
+
Close: typeof DialogClose;
|
|
125
|
+
createHandle: typeof Dialog$1.createHandle;
|
|
126
|
+
};
|
|
119
127
|
//#endregion
|
|
120
|
-
export { Dialog,
|
|
128
|
+
export { Dialog, DialogBackdropProps, DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogViewportProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { L as XIcon } from "../icons-D2Q5n5C1.js";
|
|
2
1
|
import "react";
|
|
3
|
-
import { jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
5
4
|
//#region src/components/Dialog.tsx
|
|
6
5
|
/**
|
|
@@ -8,30 +7,35 @@ import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
|
8
7
|
*
|
|
9
8
|
* @example
|
|
10
9
|
* ```tsx
|
|
11
|
-
* <Dialog open={isOpen} onOpenChange={setIsOpen}>
|
|
12
|
-
* <
|
|
13
|
-
*
|
|
14
|
-
* <
|
|
15
|
-
*
|
|
16
|
-
* <
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
10
|
+
* <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>
|
|
11
|
+
* <Dialog.Trigger render={<Button />}>Open</Dialog.Trigger>
|
|
12
|
+
* <Dialog.Portal>
|
|
13
|
+
* <Dialog.Backdrop />
|
|
14
|
+
* <Dialog.Viewport>
|
|
15
|
+
* <Dialog.Popup>
|
|
16
|
+
* <Dialog.Title>Confirm</Dialog.Title>
|
|
17
|
+
* <Dialog.Description>Are you sure?</Dialog.Description>
|
|
18
|
+
* <Dialog.Close>Cancel</Dialog.Close>
|
|
19
|
+
* </Dialog.Popup>
|
|
20
|
+
* </Dialog.Viewport>
|
|
21
|
+
* </Dialog.Portal>
|
|
22
|
+
* </Dialog.Root>
|
|
21
23
|
* ```
|
|
22
24
|
*
|
|
23
25
|
* @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
|
|
24
26
|
*/
|
|
25
|
-
const Dialog = Dialog$1.Root;
|
|
26
27
|
function DialogTrigger(props) {
|
|
27
28
|
return /* @__PURE__ */ jsx(Dialog$1.Trigger, {
|
|
28
29
|
"data-slot": "dialog-trigger",
|
|
29
30
|
...props
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
|
-
const DialogPortal = Dialog$1.Portal;
|
|
33
33
|
function DialogBackdrop({ className = "", ref, ...props }) {
|
|
34
|
-
const classes = [
|
|
34
|
+
const classes = [
|
|
35
|
+
"dialog__backdrop",
|
|
36
|
+
"base-ui-backdrop",
|
|
37
|
+
className
|
|
38
|
+
].filter(Boolean).join(" ");
|
|
35
39
|
return /* @__PURE__ */ jsx(Dialog$1.Backdrop, {
|
|
36
40
|
ref,
|
|
37
41
|
"data-slot": "dialog-overlay",
|
|
@@ -39,7 +43,15 @@ function DialogBackdrop({ className = "", ref, ...props }) {
|
|
|
39
43
|
...props
|
|
40
44
|
});
|
|
41
45
|
}
|
|
42
|
-
|
|
46
|
+
function DialogViewport({ className = "", ref, ...props }) {
|
|
47
|
+
const classes = ["dialog__viewport", className].filter(Boolean).join(" ");
|
|
48
|
+
return /* @__PURE__ */ jsx(Dialog$1.Viewport, {
|
|
49
|
+
ref,
|
|
50
|
+
"data-slot": "dialog-viewport",
|
|
51
|
+
className: classes,
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
43
55
|
function DialogPopup({ size = "md", className = "", ref, ...props }) {
|
|
44
56
|
const classes = [
|
|
45
57
|
"dialog__popup",
|
|
@@ -53,19 +65,6 @@ function DialogPopup({ size = "md", className = "", ref, ...props }) {
|
|
|
53
65
|
...props
|
|
54
66
|
});
|
|
55
67
|
}
|
|
56
|
-
function DialogContent({ children, showCloseButton = true, ref, ...props }) {
|
|
57
|
-
return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogBackdrop, {}), /* @__PURE__ */ jsxs(DialogPopup, {
|
|
58
|
-
ref,
|
|
59
|
-
...props,
|
|
60
|
-
children: [children, showCloseButton ? /* @__PURE__ */ jsxs(DialogClose, {
|
|
61
|
-
className: "dialog__close--icon",
|
|
62
|
-
children: [/* @__PURE__ */ jsx(XIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
63
|
-
className: "dialog__close-label",
|
|
64
|
-
children: "Close"
|
|
65
|
-
})]
|
|
66
|
-
}) : null]
|
|
67
|
-
})] });
|
|
68
|
-
}
|
|
69
68
|
function DialogHeader({ className = "", ref, ...props }) {
|
|
70
69
|
return /* @__PURE__ */ jsx("div", {
|
|
71
70
|
ref,
|
|
@@ -74,13 +73,12 @@ function DialogHeader({ className = "", ref, ...props }) {
|
|
|
74
73
|
...props
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
|
-
function DialogFooter({ className = "",
|
|
78
|
-
return /* @__PURE__ */
|
|
76
|
+
function DialogFooter({ className = "", ref, ...props }) {
|
|
77
|
+
return /* @__PURE__ */ jsx("div", {
|
|
79
78
|
ref,
|
|
80
79
|
"data-slot": "dialog-footer",
|
|
81
80
|
className: ["dialog__footer", className].filter(Boolean).join(" "),
|
|
82
|
-
...props
|
|
83
|
-
children: [children, showCloseButton ? /* @__PURE__ */ jsx(DialogClose, { children: "Close" }) : null]
|
|
81
|
+
...props
|
|
84
82
|
});
|
|
85
83
|
}
|
|
86
84
|
function DialogTitle({ className = "", ref, ...props }) {
|
|
@@ -110,5 +108,19 @@ function DialogClose({ className = "", ref, ...props }) {
|
|
|
110
108
|
...props
|
|
111
109
|
});
|
|
112
110
|
}
|
|
111
|
+
const Dialog = {
|
|
112
|
+
Root: Dialog$1.Root,
|
|
113
|
+
Trigger: DialogTrigger,
|
|
114
|
+
Portal: Dialog$1.Portal,
|
|
115
|
+
Backdrop: DialogBackdrop,
|
|
116
|
+
Viewport: DialogViewport,
|
|
117
|
+
Popup: DialogPopup,
|
|
118
|
+
Header: DialogHeader,
|
|
119
|
+
Footer: DialogFooter,
|
|
120
|
+
Title: DialogTitle,
|
|
121
|
+
Description: DialogDescription,
|
|
122
|
+
Close: DialogClose,
|
|
123
|
+
createHandle: Dialog$1.createHandle
|
|
124
|
+
};
|
|
113
125
|
//#endregion
|
|
114
|
-
export { Dialog
|
|
126
|
+
export { Dialog };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as CopyButtonProps } from "../copy-button-DtPMgN7e.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/EnvironmentVariables.d.ts
|
|
@@ -142,15 +142,10 @@ declare function EnvironmentVariableValue({
|
|
|
142
142
|
ref?: React.Ref<HTMLSpanElement>;
|
|
143
143
|
}): React.JSX.Element;
|
|
144
144
|
type EnvironmentVariableCopyFormat = "name" | "value" | "export";
|
|
145
|
-
interface EnvironmentVariableCopyButtonProps extends Omit<
|
|
145
|
+
interface EnvironmentVariableCopyButtonProps extends Omit<CopyButtonProps, "label" | "stopPropagation" | "text"> {
|
|
146
146
|
format?: EnvironmentVariableCopyFormat;
|
|
147
147
|
copyFormat?: EnvironmentVariableCopyFormat;
|
|
148
148
|
label?: string;
|
|
149
|
-
className?: string;
|
|
150
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
151
|
-
onCopy?: () => void;
|
|
152
|
-
onError?: (error: Error) => void;
|
|
153
|
-
timeout?: number;
|
|
154
149
|
}
|
|
155
150
|
declare function EnvironmentVariableCopyButton({
|
|
156
151
|
className,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Tooltip, TooltipPopup, TooltipPortal, TooltipPositioner, TooltipTrigger } from "./Tooltip.js";
|
|
2
|
+
import { m as EyeOffIcon, p as EyeIcon } from "../icons-Ba9THQKz.js";
|
|
3
|
+
import { t as CopyButton } from "../copy-button-DUMLYdsk.js";
|
|
5
4
|
import { Badge } from "./Badge.js";
|
|
6
|
-
import { Switch
|
|
5
|
+
import { Switch } from "./Switch.js";
|
|
7
6
|
import * as React from "react";
|
|
8
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
//#region src/components/EnvironmentVariables.tsx
|
|
@@ -106,11 +105,11 @@ function EnvironmentVariablesToggle({ className, label = "Show values", ref, ...
|
|
|
106
105
|
className: "environment-variables__toggle-label",
|
|
107
106
|
children: label
|
|
108
107
|
}),
|
|
109
|
-
/* @__PURE__ */ jsx(Switch, {
|
|
108
|
+
/* @__PURE__ */ jsx(Switch.Root, {
|
|
110
109
|
checked: showValues,
|
|
111
110
|
onCheckedChange: setShowValues,
|
|
112
111
|
size: "sm",
|
|
113
|
-
children: /* @__PURE__ */ jsx(
|
|
112
|
+
children: /* @__PURE__ */ jsx(Switch.Thumb, {})
|
|
114
113
|
})
|
|
115
114
|
]
|
|
116
115
|
});
|
|
@@ -171,41 +170,19 @@ function EnvironmentVariableValue({ className, children, ref, ...props }) {
|
|
|
171
170
|
}
|
|
172
171
|
function EnvironmentVariableCopyButton({ className, format = "value", copyFormat, label, onClick, onCopy, onError, timeout = 1500, ...props }) {
|
|
173
172
|
const { name, value } = useVariableContext();
|
|
174
|
-
const [copied, setCopied] = React.useState(false);
|
|
175
|
-
const timeoutRef = React.useRef(null);
|
|
176
173
|
const resolvedFormat = copyFormat ?? format;
|
|
177
174
|
const text = resolvedFormat === "name" ? name : resolvedFormat === "export" ? `export ${name}="${value}"` : value;
|
|
178
175
|
const buttonLabel = label ?? `Copy ${resolvedFormat}`;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
await navigator.clipboard.writeText(text);
|
|
182
|
-
setCopied(true);
|
|
183
|
-
onCopy?.();
|
|
184
|
-
if (timeoutRef.current !== null) window.clearTimeout(timeoutRef.current);
|
|
185
|
-
timeoutRef.current = window.setTimeout(() => setCopied(false), timeout);
|
|
186
|
-
} catch (error) {
|
|
187
|
-
onError?.(error);
|
|
188
|
-
}
|
|
189
|
-
onClick?.(e);
|
|
190
|
-
}, [
|
|
191
|
-
onClick,
|
|
192
|
-
onCopy,
|
|
193
|
-
onError,
|
|
176
|
+
return /* @__PURE__ */ jsx(CopyButton, {
|
|
177
|
+
...props,
|
|
194
178
|
text,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
React.useEffect(() => () => {
|
|
198
|
-
if (timeoutRef.current !== null) window.clearTimeout(timeoutRef.current);
|
|
199
|
-
}, []);
|
|
200
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
201
|
-
variant: "ghost",
|
|
202
|
-
size: "icon",
|
|
203
|
-
"aria-label": buttonLabel,
|
|
179
|
+
label: buttonLabel,
|
|
180
|
+
timeout,
|
|
204
181
|
className: cx("environment-variables__copy", className),
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
})
|
|
182
|
+
onCopy,
|
|
183
|
+
onError,
|
|
184
|
+
onClick
|
|
185
|
+
});
|
|
209
186
|
}
|
|
210
187
|
function EnvironmentVariableRequired({ className, children, ref, ...props }) {
|
|
211
188
|
return /* @__PURE__ */ jsx(Badge, {
|
|
@@ -186,7 +186,6 @@ declare function FieldError({
|
|
|
186
186
|
* </Field.Root>
|
|
187
187
|
* ```
|
|
188
188
|
*/
|
|
189
|
-
declare const FieldValidity: React.FC<import("@base-ui/react").FieldValidityProps>;
|
|
190
189
|
declare function FieldSet({
|
|
191
190
|
className,
|
|
192
191
|
ref,
|
|
@@ -263,12 +262,13 @@ declare function FieldSeparator({
|
|
|
263
262
|
*
|
|
264
263
|
* @see {@link https://base-ui.com/react/components/field | Base UI Field}
|
|
265
264
|
*/
|
|
266
|
-
declare const Field:
|
|
265
|
+
declare const Field: {
|
|
267
266
|
Root: typeof FieldRoot;
|
|
268
267
|
Label: typeof FieldLabel;
|
|
269
268
|
Control: typeof FieldControl;
|
|
270
269
|
Description: typeof FieldDescription;
|
|
271
270
|
Error: typeof FieldError;
|
|
271
|
+
Item: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").FieldItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
272
272
|
Validity: React.FC<import("@base-ui/react").FieldValidityProps>;
|
|
273
273
|
Set: typeof FieldSet;
|
|
274
274
|
Legend: typeof FieldLegend;
|
|
@@ -278,4 +278,4 @@ declare const Field: typeof FieldRoot & {
|
|
|
278
278
|
Separator: typeof FieldSeparator;
|
|
279
279
|
};
|
|
280
280
|
//#endregion
|
|
281
|
-
export { Field,
|
|
281
|
+
export { Field, FieldContentProps, FieldControlProps, FieldDescriptionProps, FieldErrorProps, FieldGroupProps, FieldLabelProps, FieldLegendProps, FieldRootProps, FieldSeparatorProps, FieldSetProps, FieldTitleProps, FieldValidityProps };
|
package/dist/components/Field.js
CHANGED
|
@@ -163,7 +163,6 @@ function FieldError({ className = "", errors, children, ref, ...props }) {
|
|
|
163
163
|
* </Field.Root>
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
const FieldValidity = Field$1.Validity;
|
|
167
166
|
function FieldSet({ className = "", ref, ...props }) {
|
|
168
167
|
return /* @__PURE__ */ jsx("fieldset", {
|
|
169
168
|
ref,
|
|
@@ -192,7 +191,7 @@ function FieldContent({ className = "", ref, ...props }) {
|
|
|
192
191
|
function FieldTitle({ className = "", ref, ...props }) {
|
|
193
192
|
return /* @__PURE__ */ jsx("div", {
|
|
194
193
|
ref,
|
|
195
|
-
"data-slot": "field-
|
|
194
|
+
"data-slot": "field-title",
|
|
196
195
|
className: ["field-title", className].filter(Boolean).join(" "),
|
|
197
196
|
...props
|
|
198
197
|
});
|
|
@@ -206,12 +205,11 @@ function FieldGroup({ className = "", ref, ...props }) {
|
|
|
206
205
|
});
|
|
207
206
|
}
|
|
208
207
|
function FieldSeparator({ className = "", children, ref, ...props }) {
|
|
209
|
-
const classes = ["field-separator", className].filter(Boolean).join(" ");
|
|
210
208
|
return /* @__PURE__ */ jsxs("div", {
|
|
211
209
|
ref,
|
|
212
210
|
"data-slot": "field-separator",
|
|
213
211
|
"data-content": Boolean(children),
|
|
214
|
-
className:
|
|
212
|
+
className: ["field-separator", className].filter(Boolean).join(" "),
|
|
215
213
|
...props,
|
|
216
214
|
children: [/* @__PURE__ */ jsx("span", {
|
|
217
215
|
"aria-hidden": "true",
|
|
@@ -256,19 +254,20 @@ function FieldSeparator({ className = "", children, ref, ...props }) {
|
|
|
256
254
|
*
|
|
257
255
|
* @see {@link https://base-ui.com/react/components/field | Base UI Field}
|
|
258
256
|
*/
|
|
259
|
-
const Field =
|
|
257
|
+
const Field = {
|
|
260
258
|
Root: FieldRoot,
|
|
261
259
|
Label: FieldLabel,
|
|
262
260
|
Control: FieldControl,
|
|
263
261
|
Description: FieldDescription,
|
|
264
262
|
Error: FieldError,
|
|
265
|
-
|
|
263
|
+
Item: Field$1.Item,
|
|
264
|
+
Validity: Field$1.Validity,
|
|
266
265
|
Set: FieldSet,
|
|
267
266
|
Legend: FieldLegend,
|
|
268
267
|
Content: FieldContent,
|
|
269
268
|
Title: FieldTitle,
|
|
270
269
|
Group: FieldGroup,
|
|
271
270
|
Separator: FieldSeparator
|
|
272
|
-
}
|
|
271
|
+
};
|
|
273
272
|
//#endregion
|
|
274
|
-
export { Field
|
|
273
|
+
export { Field };
|