@mcp-b/react-components 0.1.1 → 0.1.2
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/Button-QCM8ZKgR.d.ts +98 -0
- package/dist/CodeBlock-CttHhWcb.js +356 -0
- package/dist/CodeBlock-V6pgafSS.d.ts +174 -0
- package/dist/Select-CRsKCJ9x.d.ts +200 -0
- package/dist/class-names-9UtZwb0J.js +12 -0
- package/dist/components/Accordion.d.ts +81 -0
- package/dist/components/Accordion.js +97 -0
- package/dist/components/AgentConnection.d.ts +69 -0
- package/dist/components/AgentConnection.js +176 -0
- package/dist/components/AlertDialog.d.ts +148 -0
- package/dist/components/AlertDialog.js +141 -0
- package/dist/components/Artifact.d.ts +128 -0
- package/dist/components/Artifact.js +115 -0
- package/dist/components/Autocomplete.d.ts +186 -0
- package/dist/components/Autocomplete.js +186 -0
- package/dist/components/Avatar.d.ts +134 -0
- package/dist/components/Avatar.js +118 -0
- package/dist/components/Badge.d.ts +68 -0
- package/dist/components/Badge.js +108 -0
- package/dist/components/Button.d.ts +2 -0
- package/dist/components/Button.js +73 -0
- package/dist/components/Card.d.ts +87 -0
- package/dist/components/Card.js +81 -0
- package/dist/components/ChainOfThought.d.ts +153 -0
- package/dist/components/ChainOfThought.js +157 -0
- package/dist/components/Checkbox.d.ts +35 -0
- package/dist/components/Checkbox.js +47 -0
- package/dist/components/CheckboxGroup.d.ts +76 -0
- package/dist/components/CheckboxGroup.js +69 -0
- package/dist/components/CodeBlock.d.ts +2 -0
- package/dist/components/CodeBlock.js +2 -0
- package/dist/components/Collapsible.d.ts +127 -0
- package/dist/components/Collapsible.js +103 -0
- package/dist/components/Combobox.d.ts +177 -0
- package/dist/components/Combobox.js +179 -0
- package/dist/components/Commit.d.ts +265 -0
- package/dist/components/Commit.js +282 -0
- package/dist/components/Context.d.ts +129 -0
- package/dist/components/Context.js +309 -0
- package/dist/components/ContextMenu.d.ts +282 -0
- package/dist/components/ContextMenu.js +270 -0
- package/dist/components/Conversation.d.ts +166 -0
- package/dist/components/Conversation.js +202 -0
- package/dist/components/Dialog.d.ts +120 -0
- package/dist/components/Dialog.js +114 -0
- package/dist/components/EnvironmentVariables.d.ts +176 -0
- package/dist/components/EnvironmentVariables.js +221 -0
- package/dist/components/Field.d.ts +281 -0
- package/dist/components/Field.js +274 -0
- package/dist/components/Fieldset.d.ts +93 -0
- package/dist/components/Fieldset.js +81 -0
- package/dist/components/FileTree.d.ts +116 -0
- package/dist/components/FileTree.js +310 -0
- package/dist/components/Form.d.ts +94 -0
- package/dist/components/Form.js +88 -0
- package/dist/components/GithubMotionMark.d.ts +13 -0
- package/dist/components/GithubMotionMark.js +23 -0
- package/dist/components/Input.d.ts +33 -0
- package/dist/components/Input.js +27 -0
- package/dist/components/Label.d.ts +44 -0
- package/dist/components/Label.js +41 -0
- package/dist/components/Menu.d.ts +395 -0
- package/dist/components/Menu.js +338 -0
- package/dist/components/Menubar.d.ts +331 -0
- package/dist/components/Menubar.js +299 -0
- package/dist/components/Message.d.ts +216 -0
- package/dist/components/Message.js +245 -0
- package/dist/components/Meter.d.ts +151 -0
- package/dist/components/Meter.js +121 -0
- package/dist/components/ModelSelector.d.ts +198 -0
- package/dist/components/ModelSelector.js +306 -0
- package/dist/components/NaniteScene.d.ts +33 -0
- package/dist/components/NaniteScene.js +405 -0
- package/dist/components/NavigationMenu.d.ts +256 -0
- package/dist/components/NavigationMenu.js +228 -0
- package/dist/components/NumberField.d.ts +159 -0
- package/dist/components/NumberField.js +123 -0
- package/dist/components/Popover.d.ts +278 -0
- package/dist/components/Popover.js +245 -0
- package/dist/components/PreviewCard.d.ts +156 -0
- package/dist/components/PreviewCard.js +156 -0
- package/dist/components/PricingPage.d.ts +209 -0
- package/dist/components/PricingPage.js +506 -0
- package/dist/components/Progress.d.ts +58 -0
- package/dist/components/Progress.js +51 -0
- package/dist/components/PromptInput.d.ts +399 -0
- package/dist/components/PromptInput.js +737 -0
- package/dist/components/Queue.d.ts +241 -0
- package/dist/components/Queue.js +225 -0
- package/dist/components/RadioGroup.d.ts +78 -0
- package/dist/components/RadioGroup.js +72 -0
- package/dist/components/Reasoning.d.ts +88 -0
- package/dist/components/Reasoning.js +187 -0
- package/dist/components/ScrollArea.d.ts +160 -0
- package/dist/components/ScrollArea.js +145 -0
- package/dist/components/Select.d.ts +2 -0
- package/dist/components/Select.js +260 -0
- package/dist/components/Separator.d.ts +45 -0
- package/dist/components/Separator.js +40 -0
- package/dist/components/Shell.d.ts +163 -0
- package/dist/components/Shell.js +137 -0
- package/dist/components/Slider.d.ts +120 -0
- package/dist/components/Slider.js +115 -0
- package/dist/components/Sources.d.ts +91 -0
- package/dist/components/Sources.js +121 -0
- package/dist/components/Stepper.d.ts +190 -0
- package/dist/components/Stepper.js +315 -0
- package/dist/components/Switch.d.ts +57 -0
- package/dist/components/Switch.js +55 -0
- package/dist/components/Tabs.d.ts +84 -0
- package/dist/components/Tabs.js +78 -0
- package/dist/components/Task.d.ts +100 -0
- package/dist/components/Task.js +120 -0
- package/dist/components/Terminal.d.ts +118 -0
- package/dist/components/Terminal.js +234 -0
- package/dist/components/TestResults.d.ts +236 -0
- package/dist/components/TestResults.js +346 -0
- package/dist/components/Toast.d.ts +192 -0
- package/dist/components/Toast.js +163 -0
- package/dist/components/Toggle.d.ts +69 -0
- package/dist/components/Toggle.js +66 -0
- package/dist/components/ToggleGroup.d.ts +69 -0
- package/dist/components/ToggleGroup.js +99 -0
- package/dist/components/Tool.d.ts +119 -0
- package/dist/components/Tool.js +192 -0
- package/dist/components/Toolbar.d.ts +162 -0
- package/dist/components/Toolbar.js +126 -0
- package/dist/components/Tooltip.d.ts +81 -0
- package/dist/components/Tooltip.js +74 -0
- package/dist/components/WebPreview.d.ts +143 -0
- package/dist/components/WebPreview.js +280 -0
- package/dist/components/useStickToBottom.d.ts +30 -0
- package/dist/components/useStickToBottom.js +95 -0
- package/dist/copy-button-BIATcZWZ.d.ts +16 -0
- package/dist/copy-button-BNgclDrO.js +43 -0
- package/dist/icons-BsWc8g4E.js +221 -0
- package/dist/styles/accordion.css +10 -10
- package/dist/styles/agent-connection.css +18 -17
- package/dist/styles/alert-dialog.css +48 -29
- package/dist/styles/artifact.css +10 -10
- package/dist/styles/autocomplete.css +25 -24
- package/dist/styles/avatar.css +96 -6
- package/dist/styles/badge.css +78 -14
- package/dist/styles/base.css +9 -9
- package/dist/styles/button.css +57 -38
- package/dist/styles/card.css +57 -10
- package/dist/styles/chain-of-thought.css +47 -33
- package/dist/styles/checkbox.css +24 -10
- package/dist/styles/code-block.css +22 -15
- package/dist/styles/collapsible.css +14 -12
- package/dist/styles/combobox.css +26 -25
- package/dist/styles/commit.css +49 -24
- package/dist/styles/context-menu.css +70 -16
- package/dist/styles/context.css +15 -15
- package/dist/styles/conversation.css +12 -12
- package/dist/styles/dialog.css +52 -16
- package/dist/styles/environment-variables.css +19 -19
- package/dist/styles/field.css +184 -22
- package/dist/styles/fieldset.css +5 -4
- package/dist/styles/file-tree.css +17 -17
- package/dist/styles/index.css.d.ts +1 -0
- package/dist/styles/input.css +45 -11
- package/dist/styles/label.css +21 -4
- package/dist/styles/menu.css +55 -32
- package/dist/styles/menubar.css +80 -28
- package/dist/styles/message.css +22 -13
- package/dist/styles/meter.css +8 -8
- package/dist/styles/model-selector.css +33 -21
- package/dist/styles/navigation-menu.css +26 -24
- package/dist/styles/number-field.css +20 -18
- package/dist/styles/popover.css +38 -28
- package/dist/styles/preview-card.css +15 -13
- package/dist/styles/pricing-page.css +53 -53
- package/dist/styles/progress.css +7 -7
- package/dist/styles/prompt-input.css +73 -24
- package/dist/styles/queue.css +58 -32
- package/dist/styles/radio.css +26 -11
- package/dist/styles/reasoning.css +15 -11
- package/dist/styles/scroll-area.css +6 -6
- package/dist/styles/scrollbars.css +4 -4
- package/dist/styles/select.css +84 -25
- package/dist/styles/separator.css +1 -1
- package/dist/styles/shell.css +21 -20
- package/dist/styles/slider.css +35 -11
- package/dist/styles/sources.css +20 -20
- package/dist/styles/stepper.css +22 -22
- package/dist/styles/switch.css +29 -13
- package/dist/styles/tabs.css +23 -16
- package/dist/styles/task.css +27 -23
- package/dist/styles/terminal.css +16 -13
- package/dist/styles/test-results.css +79 -32
- package/dist/styles/toast.css +26 -25
- package/dist/styles/toggle-group.css +12 -12
- package/dist/styles/toggle.css +29 -11
- package/dist/styles/tool.css +54 -32
- package/dist/styles/toolbar.css +30 -28
- package/dist/styles/tooltip.css +10 -8
- package/dist/styles/web-preview.css +37 -21
- package/dist/utils/structured-code.d.ts +10 -0
- package/dist/utils/structured-code.js +81 -0
- package/package.json +16 -7
- package/dist/index.d.ts +0 -7236
- package/dist/index.js +0 -8945
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
|
|
2
|
+
import { A as SelectTriggerProps, M as SelectValueProps, S as SelectProps, f as SelectOption, j as SelectValue, r as SelectContentProps, s as SelectItemProps, t as Select } from "../Select-CRsKCJ9x.js";
|
|
3
|
+
import { Combobox, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPositioner, ComboboxSeparator, ComboboxTrigger } from "./Combobox.js";
|
|
4
|
+
import { MenuItemProps, MenuPopupProps, MenuProps } from "./Menu.js";
|
|
5
|
+
import { Tab, TabPanel, TabsList } from "./Tabs.js";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/PromptInput.d.ts
|
|
9
|
+
interface PromptInputFilePart {
|
|
10
|
+
type: "file";
|
|
11
|
+
id?: string;
|
|
12
|
+
filename?: string;
|
|
13
|
+
mediaType?: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
}
|
|
16
|
+
interface PromptInputReferencedSource {
|
|
17
|
+
id?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/** The payload produced when the prompt input is submitted. */
|
|
23
|
+
interface PromptInputMessage {
|
|
24
|
+
text: string;
|
|
25
|
+
files: PromptInputFilePart[];
|
|
26
|
+
}
|
|
27
|
+
/** Lifecycle status of an in-flight model request. */
|
|
28
|
+
type PromptInputStatus = "ready" | "submitted" | "streaming" | "error";
|
|
29
|
+
interface AttachmentsContext {
|
|
30
|
+
files: Array<PromptInputFilePart & {
|
|
31
|
+
id: string;
|
|
32
|
+
}>;
|
|
33
|
+
add: (files: File[] | FileList) => void;
|
|
34
|
+
remove: (id: string) => void;
|
|
35
|
+
clear: () => void;
|
|
36
|
+
openFileDialog: () => void;
|
|
37
|
+
fileInputRef: React.RefObject<HTMLInputElement | null>;
|
|
38
|
+
}
|
|
39
|
+
interface TextInputContext {
|
|
40
|
+
value: string;
|
|
41
|
+
setInput: (value: string) => void;
|
|
42
|
+
clear: () => void;
|
|
43
|
+
}
|
|
44
|
+
interface PromptInputControllerProps {
|
|
45
|
+
textInput: TextInputContext;
|
|
46
|
+
attachments: AttachmentsContext;
|
|
47
|
+
__registerFileInput: (ref: React.RefObject<HTMLInputElement | null>, open: () => void) => void;
|
|
48
|
+
}
|
|
49
|
+
interface ReferencedSourcesContext {
|
|
50
|
+
sources: Array<PromptInputReferencedSource & {
|
|
51
|
+
id: string;
|
|
52
|
+
}>;
|
|
53
|
+
add: (sources: PromptInputReferencedSource[] | PromptInputReferencedSource) => void;
|
|
54
|
+
remove: (id: string) => void;
|
|
55
|
+
clear: () => void;
|
|
56
|
+
}
|
|
57
|
+
declare function usePromptInputController(): PromptInputControllerProps;
|
|
58
|
+
declare function useProviderAttachments(): AttachmentsContext;
|
|
59
|
+
declare function usePromptInputAttachments(): AttachmentsContext;
|
|
60
|
+
declare function usePromptInputReferencedSources(): ReferencedSourcesContext;
|
|
61
|
+
interface PromptInputProviderProps extends React.PropsWithChildren {
|
|
62
|
+
initialInput?: string;
|
|
63
|
+
}
|
|
64
|
+
declare function PromptInputProvider({
|
|
65
|
+
initialInput,
|
|
66
|
+
children
|
|
67
|
+
}: PromptInputProviderProps): React.JSX.Element;
|
|
68
|
+
interface PromptInputProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onSubmit" | "onError"> {
|
|
69
|
+
/** Accepted file MIME types/extensions, passed to the hidden file input. */
|
|
70
|
+
accept?: string;
|
|
71
|
+
/** Allows multiple files in a single file picker/drop action. */
|
|
72
|
+
multiple?: boolean;
|
|
73
|
+
/** Listen for file drops on the whole document instead of only the form. */
|
|
74
|
+
globalDrop?: boolean;
|
|
75
|
+
/** Clears the hidden file input when attachments are cleared. */
|
|
76
|
+
syncHiddenInput?: boolean;
|
|
77
|
+
/** Maximum number of attached files. */
|
|
78
|
+
maxFiles?: number;
|
|
79
|
+
/** Maximum accepted file size in bytes. */
|
|
80
|
+
maxFileSize?: number;
|
|
81
|
+
/** Called when file validation rejects an attachment. */
|
|
82
|
+
onError?: (error: {
|
|
83
|
+
code: "max_files" | "max_file_size" | "accept";
|
|
84
|
+
message: string;
|
|
85
|
+
}) => void;
|
|
86
|
+
/** Called with the trimmed message text and files when the form is submitted. */
|
|
87
|
+
onSubmit?: (message: PromptInputMessage, event: React.FormEvent<HTMLFormElement>) => void | Promise<void>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Chat-style composer form. Wraps a textarea and footer controls, with
|
|
91
|
+
* Enter-to-submit semantics, auto-resizing behavior, and optional attachments.
|
|
92
|
+
* Adapted from Vercel AI Elements and restyled with Sigvelo CSS tokens.
|
|
93
|
+
*
|
|
94
|
+
* Use for assistant/chat submit forms. Do not use it as a generic textarea or
|
|
95
|
+
* non-chat form. Sigvelo changes: uses shared Menu, Select, Combobox, Tabs,
|
|
96
|
+
* Button, and Tooltip components; maps styles to CSS tokens; adds local
|
|
97
|
+
* attachment and referenced-source helpers.
|
|
98
|
+
*
|
|
99
|
+
* The form handles Enter-to-submit while multiline editing remains in the
|
|
100
|
+
* textarea. Attachment controls need accessible labels through their buttons
|
|
101
|
+
* and menus. Add new shared tools here when multiple apps need them.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```tsx
|
|
105
|
+
* <PromptInput onSubmit={({ text, files }) => sendMessage(text, files)}>
|
|
106
|
+
* <PromptInputBody>
|
|
107
|
+
* <PromptInputTextarea placeholder="Ask Sigvelo..." />
|
|
108
|
+
* </PromptInputBody>
|
|
109
|
+
* <PromptInputFooter>
|
|
110
|
+
* <PromptInputTools>
|
|
111
|
+
* <PromptInputActionAddAttachments />
|
|
112
|
+
* </PromptInputTools>
|
|
113
|
+
* <PromptInputSubmit status="ready" />
|
|
114
|
+
* </PromptInputFooter>
|
|
115
|
+
* </PromptInput>
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @see {@link https://elements.ai-sdk.dev/components/prompt-input | AI Elements Prompt Input}
|
|
119
|
+
*/
|
|
120
|
+
declare function PromptInput({
|
|
121
|
+
className,
|
|
122
|
+
accept,
|
|
123
|
+
multiple,
|
|
124
|
+
globalDrop,
|
|
125
|
+
syncHiddenInput,
|
|
126
|
+
maxFiles,
|
|
127
|
+
maxFileSize,
|
|
128
|
+
onError,
|
|
129
|
+
onSubmit,
|
|
130
|
+
children,
|
|
131
|
+
id,
|
|
132
|
+
ref,
|
|
133
|
+
...props
|
|
134
|
+
}: PromptInputProps & {
|
|
135
|
+
ref?: React.Ref<HTMLFormElement>;
|
|
136
|
+
}): React.JSX.Element;
|
|
137
|
+
interface PromptInputHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
138
|
+
declare function PromptInputHeader({
|
|
139
|
+
className,
|
|
140
|
+
children,
|
|
141
|
+
ref,
|
|
142
|
+
...props
|
|
143
|
+
}: PromptInputHeaderProps & {
|
|
144
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
145
|
+
}): React.JSX.Element;
|
|
146
|
+
interface PromptInputBodyProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
147
|
+
declare function PromptInputBody({
|
|
148
|
+
className,
|
|
149
|
+
children,
|
|
150
|
+
ref,
|
|
151
|
+
...props
|
|
152
|
+
}: PromptInputBodyProps & {
|
|
153
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
154
|
+
}): React.JSX.Element;
|
|
155
|
+
interface PromptInputFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
156
|
+
declare function PromptInputFooter({
|
|
157
|
+
className,
|
|
158
|
+
children,
|
|
159
|
+
ref,
|
|
160
|
+
...props
|
|
161
|
+
}: PromptInputFooterProps & {
|
|
162
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
163
|
+
}): React.JSX.Element;
|
|
164
|
+
interface PromptInputToolsProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
165
|
+
declare function PromptInputTools({
|
|
166
|
+
className,
|
|
167
|
+
children,
|
|
168
|
+
ref,
|
|
169
|
+
...props
|
|
170
|
+
}: PromptInputToolsProps & {
|
|
171
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
172
|
+
}): React.JSX.Element;
|
|
173
|
+
interface PromptInputTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
174
|
+
minHeight?: number;
|
|
175
|
+
maxHeight?: number;
|
|
176
|
+
}
|
|
177
|
+
declare function PromptInputTextarea({
|
|
178
|
+
className,
|
|
179
|
+
placeholder,
|
|
180
|
+
rows,
|
|
181
|
+
minHeight,
|
|
182
|
+
maxHeight,
|
|
183
|
+
onChange,
|
|
184
|
+
onCompositionEnd,
|
|
185
|
+
onCompositionStart,
|
|
186
|
+
onKeyDown,
|
|
187
|
+
onInput,
|
|
188
|
+
onPaste,
|
|
189
|
+
ref,
|
|
190
|
+
...props
|
|
191
|
+
}: PromptInputTextareaProps & {
|
|
192
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
193
|
+
}): React.JSX.Element;
|
|
194
|
+
type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
195
|
+
type PromptInputButtonTooltip = string | {
|
|
196
|
+
content: React.ReactNode;
|
|
197
|
+
shortcut?: string;
|
|
198
|
+
side?: TooltipSide;
|
|
199
|
+
};
|
|
200
|
+
type PromptInputTooltipConfig = Exclude<PromptInputButtonTooltip, string>;
|
|
201
|
+
interface PromptInputButtonProps extends Omit<ButtonProps, "children" | "className"> {
|
|
202
|
+
className?: string;
|
|
203
|
+
tooltip?: PromptInputButtonTooltip;
|
|
204
|
+
children?: React.ReactNode;
|
|
205
|
+
}
|
|
206
|
+
declare function PromptInputButton({
|
|
207
|
+
className,
|
|
208
|
+
tooltip,
|
|
209
|
+
variant,
|
|
210
|
+
color,
|
|
211
|
+
size,
|
|
212
|
+
children,
|
|
213
|
+
"aria-label": ariaLabel,
|
|
214
|
+
ref,
|
|
215
|
+
...props
|
|
216
|
+
}: PromptInputButtonProps & {
|
|
217
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
218
|
+
}): React.JSX.Element;
|
|
219
|
+
type PromptInputActionMenuProps = MenuProps;
|
|
220
|
+
declare function PromptInputActionMenu(props: PromptInputActionMenuProps): React.JSX.Element;
|
|
221
|
+
type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
222
|
+
declare function PromptInputActionMenuTrigger({
|
|
223
|
+
className,
|
|
224
|
+
children,
|
|
225
|
+
...props
|
|
226
|
+
}: PromptInputActionMenuTriggerProps): React.JSX.Element;
|
|
227
|
+
type PromptInputActionMenuContentProps = MenuPopupProps;
|
|
228
|
+
declare function PromptInputActionMenuContent({
|
|
229
|
+
className,
|
|
230
|
+
children,
|
|
231
|
+
...props
|
|
232
|
+
}: PromptInputActionMenuContentProps): React.JSX.Element;
|
|
233
|
+
type PromptInputActionMenuItemProps = MenuItemProps;
|
|
234
|
+
declare function PromptInputActionMenuItem({
|
|
235
|
+
className,
|
|
236
|
+
...props
|
|
237
|
+
}: PromptInputActionMenuItemProps): React.JSX.Element;
|
|
238
|
+
interface PromptInputActionAddAttachmentsProps extends PromptInputActionMenuItemProps {
|
|
239
|
+
label?: string;
|
|
240
|
+
}
|
|
241
|
+
declare function PromptInputActionAddAttachments({
|
|
242
|
+
label,
|
|
243
|
+
onClick,
|
|
244
|
+
children,
|
|
245
|
+
...props
|
|
246
|
+
}: PromptInputActionAddAttachmentsProps): React.JSX.Element;
|
|
247
|
+
interface PromptInputActionAddScreenshotProps extends PromptInputActionMenuItemProps {
|
|
248
|
+
label?: string;
|
|
249
|
+
}
|
|
250
|
+
declare function PromptInputActionAddScreenshot({
|
|
251
|
+
label,
|
|
252
|
+
onClick,
|
|
253
|
+
children,
|
|
254
|
+
...props
|
|
255
|
+
}: PromptInputActionAddScreenshotProps): React.JSX.Element;
|
|
256
|
+
interface PromptInputSubmitProps extends Omit<ButtonProps, "children" | "className" | "type"> {
|
|
257
|
+
className?: string;
|
|
258
|
+
status?: PromptInputStatus;
|
|
259
|
+
onStop?: () => void;
|
|
260
|
+
children?: React.ReactNode;
|
|
261
|
+
label?: string;
|
|
262
|
+
}
|
|
263
|
+
declare function PromptInputSubmit({
|
|
264
|
+
className,
|
|
265
|
+
status,
|
|
266
|
+
onStop,
|
|
267
|
+
variant,
|
|
268
|
+
color,
|
|
269
|
+
size,
|
|
270
|
+
onClick,
|
|
271
|
+
children,
|
|
272
|
+
label,
|
|
273
|
+
ref,
|
|
274
|
+
...props
|
|
275
|
+
}: PromptInputSubmitProps & {
|
|
276
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
277
|
+
}): React.JSX.Element;
|
|
278
|
+
type PromptInputSelectProps = SelectProps;
|
|
279
|
+
declare const PromptInputSelect: typeof Select;
|
|
280
|
+
type PromptInputSelectTriggerProps = SelectTriggerProps;
|
|
281
|
+
declare function PromptInputSelectTrigger(props: PromptInputSelectTriggerProps): React.JSX.Element;
|
|
282
|
+
type PromptInputSelectContentProps = SelectContentProps;
|
|
283
|
+
declare function PromptInputSelectContent(props: PromptInputSelectContentProps): React.JSX.Element;
|
|
284
|
+
type PromptInputSelectItemProps = SelectItemProps;
|
|
285
|
+
declare const PromptInputSelectItem: typeof SelectOption;
|
|
286
|
+
type PromptInputSelectValueProps = SelectValueProps;
|
|
287
|
+
declare const PromptInputSelectValue: typeof SelectValue;
|
|
288
|
+
interface PromptInputHoverCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
289
|
+
openDelay?: number;
|
|
290
|
+
closeDelay?: number;
|
|
291
|
+
}
|
|
292
|
+
declare function PromptInputHoverCard({
|
|
293
|
+
openDelay,
|
|
294
|
+
closeDelay,
|
|
295
|
+
className,
|
|
296
|
+
children,
|
|
297
|
+
ref,
|
|
298
|
+
...props
|
|
299
|
+
}: PromptInputHoverCardProps & {
|
|
300
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
301
|
+
}): React.JSX.Element;
|
|
302
|
+
interface PromptInputHoverCardTriggerProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
303
|
+
declare function PromptInputHoverCardTrigger({
|
|
304
|
+
className,
|
|
305
|
+
ref,
|
|
306
|
+
...props
|
|
307
|
+
}: PromptInputHoverCardTriggerProps & {
|
|
308
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
309
|
+
}): React.JSX.Element;
|
|
310
|
+
interface PromptInputHoverCardContentProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
311
|
+
declare function PromptInputHoverCardContent({
|
|
312
|
+
className,
|
|
313
|
+
ref,
|
|
314
|
+
...props
|
|
315
|
+
}: PromptInputHoverCardContentProps & {
|
|
316
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
317
|
+
}): React.JSX.Element | null;
|
|
318
|
+
type PromptInputTabsListProps = React.ComponentPropsWithoutRef<typeof TabsList>;
|
|
319
|
+
declare const PromptInputTabsList: typeof TabsList;
|
|
320
|
+
type PromptInputTabProps = React.ComponentPropsWithoutRef<typeof Tab>;
|
|
321
|
+
declare const PromptInputTab: typeof Tab;
|
|
322
|
+
type PromptInputTabBodyProps = React.ComponentPropsWithoutRef<typeof TabPanel>;
|
|
323
|
+
declare const PromptInputTabBody: typeof TabPanel;
|
|
324
|
+
interface PromptInputTabLabelProps extends React.HTMLAttributes<HTMLHeadingElement> {}
|
|
325
|
+
declare function PromptInputTabLabel({
|
|
326
|
+
className,
|
|
327
|
+
ref,
|
|
328
|
+
...props
|
|
329
|
+
}: PromptInputTabLabelProps & {
|
|
330
|
+
ref?: React.Ref<HTMLHeadingElement>;
|
|
331
|
+
}): React.JSX.Element;
|
|
332
|
+
interface PromptInputTabItemProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
333
|
+
declare function PromptInputTabItem({
|
|
334
|
+
className,
|
|
335
|
+
ref,
|
|
336
|
+
...props
|
|
337
|
+
}: PromptInputTabItemProps & {
|
|
338
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
339
|
+
}): React.JSX.Element;
|
|
340
|
+
type PromptInputCommandProps = React.ComponentPropsWithoutRef<typeof Combobox>;
|
|
341
|
+
declare const PromptInputCommand: typeof import("@base-ui/react").ComboboxRoot & {
|
|
342
|
+
Root: typeof import("@base-ui/react").ComboboxRoot;
|
|
343
|
+
Input: typeof ComboboxInput;
|
|
344
|
+
Trigger: typeof ComboboxTrigger;
|
|
345
|
+
Clear: ({
|
|
346
|
+
className,
|
|
347
|
+
ref,
|
|
348
|
+
...props
|
|
349
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxClear>, "className"> & {
|
|
350
|
+
className?: string;
|
|
351
|
+
} & {
|
|
352
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
353
|
+
}) => React.JSX.Element;
|
|
354
|
+
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
355
|
+
Positioner: typeof ComboboxPositioner;
|
|
356
|
+
Popup: typeof ComboboxPopup;
|
|
357
|
+
Content: typeof ComboboxPopup;
|
|
358
|
+
List: typeof ComboboxList;
|
|
359
|
+
Item: typeof ComboboxItem;
|
|
360
|
+
ItemIndicator: ({
|
|
361
|
+
className,
|
|
362
|
+
ref,
|
|
363
|
+
...props
|
|
364
|
+
}: Omit<React.ComponentPropsWithRef<typeof import("@base-ui/react").ComboboxItemIndicator>, "className"> & {
|
|
365
|
+
className?: string;
|
|
366
|
+
} & {
|
|
367
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
368
|
+
}) => React.JSX.Element;
|
|
369
|
+
Empty: typeof ComboboxEmpty;
|
|
370
|
+
Group: typeof ComboboxGroup;
|
|
371
|
+
GroupLabel: typeof ComboboxLabel;
|
|
372
|
+
Label: typeof ComboboxLabel;
|
|
373
|
+
Value: typeof import("@base-ui/react").ComboboxValue;
|
|
374
|
+
Chips: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
375
|
+
Chip: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
376
|
+
ChipsInput: typeof ComboboxInput;
|
|
377
|
+
Collection: typeof import("@base-ui/react").ComboboxCollection;
|
|
378
|
+
Separator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
379
|
+
};
|
|
380
|
+
type PromptInputCommandInputProps = React.ComponentPropsWithoutRef<typeof ComboboxInput>;
|
|
381
|
+
declare const PromptInputCommandInput: typeof ComboboxInput;
|
|
382
|
+
interface PromptInputCommandListProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
383
|
+
declare function PromptInputCommandList({
|
|
384
|
+
className,
|
|
385
|
+
ref,
|
|
386
|
+
...props
|
|
387
|
+
}: PromptInputCommandListProps & {
|
|
388
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
389
|
+
}): React.JSX.Element;
|
|
390
|
+
type PromptInputCommandEmptyProps = React.ComponentPropsWithoutRef<typeof ComboboxEmpty>;
|
|
391
|
+
declare const PromptInputCommandEmpty: typeof ComboboxEmpty;
|
|
392
|
+
type PromptInputCommandGroupProps = React.ComponentPropsWithoutRef<typeof ComboboxGroup>;
|
|
393
|
+
declare const PromptInputCommandGroup: typeof ComboboxGroup;
|
|
394
|
+
type PromptInputCommandItemProps = React.ComponentPropsWithoutRef<typeof ComboboxItem>;
|
|
395
|
+
declare const PromptInputCommandItem: typeof ComboboxItem;
|
|
396
|
+
type PromptInputCommandSeparatorProps = React.ComponentPropsWithoutRef<typeof ComboboxSeparator>;
|
|
397
|
+
declare const PromptInputCommandSeparator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
398
|
+
//#endregion
|
|
399
|
+
export { AttachmentsContext, PromptInput, PromptInputActionAddAttachments, PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuContentProps, PromptInputActionMenuItem, PromptInputActionMenuItemProps, PromptInputActionMenuProps, PromptInputActionMenuTrigger, PromptInputActionMenuTriggerProps, PromptInputBody, PromptInputBodyProps, PromptInputButton, PromptInputButtonProps, PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandEmpty, PromptInputCommandEmptyProps, PromptInputCommandGroup, PromptInputCommandGroupProps, PromptInputCommandInput, PromptInputCommandInputProps, PromptInputCommandItem, PromptInputCommandItemProps, PromptInputCommandList, PromptInputCommandListProps, PromptInputCommandProps, PromptInputCommandSeparator, PromptInputCommandSeparatorProps, PromptInputControllerProps, PromptInputFilePart, PromptInputFooter, PromptInputFooterProps, PromptInputHeader, PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, PromptInputHoverCardContentProps, PromptInputHoverCardProps, PromptInputHoverCardTrigger, PromptInputHoverCardTriggerProps, PromptInputMessage, PromptInputProps, PromptInputProvider, PromptInputProviderProps, PromptInputReferencedSource, PromptInputSelect, PromptInputSelectContent, PromptInputSelectContentProps, PromptInputSelectItem, PromptInputSelectItemProps, PromptInputSelectProps, PromptInputSelectTrigger, PromptInputSelectTriggerProps, PromptInputSelectValue, PromptInputSelectValueProps, PromptInputStatus, PromptInputSubmit, PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, PromptInputTabBodyProps, PromptInputTabItem, PromptInputTabItemProps, PromptInputTabLabel, PromptInputTabLabelProps, PromptInputTabProps, PromptInputTabsList, PromptInputTabsListProps, PromptInputTextarea, PromptInputTextareaProps, PromptInputTools, PromptInputToolsProps, PromptInputTooltipConfig, ReferencedSourcesContext, TextInputContext, TooltipSide, usePromptInputAttachments, usePromptInputController, usePromptInputReferencedSources, useProviderAttachments };
|