@mcp-b/react-components 0.12.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-CRmsKg9B.d.ts → AgentChat-Br6tKEl8.d.ts} +29 -5
- 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-BLhnNnRK.d.ts → Menu-Bgu-ufb5.d.ts} +26 -65
- package/dist/{ModelSelector-BB-xB-Es.js → ModelSelector-DVgVBdvw.js} +7 -7
- package/dist/{PromptInput-IyM6ZETj.d.ts → PromptInput-p5KmOmt1.d.ts} +302 -46
- 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-B3wYahor.js → ThinkChat-7DQ2CogF.js} +34 -2
- package/dist/{ThinkChatActivity-F4KFPcJA.d.ts → ThinkChatActivity-Cuk28Js_.d.ts} +1 -1
- 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 +304 -116
- package/dist/components/AgentConnection.js +2 -2
- 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 +10 -18
- package/dist/components/BrowserLiveView.js +26 -36
- package/dist/components/BrowserReplay.js +4 -4
- package/dist/components/BrowserRunPanel.js +1 -1
- 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 +23 -28
- package/dist/components/CodexModelSelector.js +116 -94
- 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 +5 -5
- package/dist/components/Commit.js +6 -6
- 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 +1 -1
- package/dist/components/Conversation.js +1 -1
- package/dist/components/Dialog.d.ts +38 -30
- package/dist/components/Dialog.js +46 -34
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +5 -5
- 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/McpServerPicker.js +21 -19
- package/dist/components/Menu.d.ts +2 -2
- package/dist/components/Menu.js +39 -49
- package/dist/components/Menubar.d.ts +16 -52
- package/dist/components/Menubar.js +44 -56
- package/dist/components/Message.d.ts +1 -1
- package/dist/components/Message.js +6 -6
- 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 +1 -1
- 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 +139 -54
- package/dist/components/Queue.d.ts +7 -7
- 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 +10 -6
- 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 +1 -1
- 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 +9 -2
- package/dist/components/ThinkChat.js +1 -1
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivity.js +1 -1
- package/dist/components/ThinkChatToolPanels.js +8 -8
- package/dist/components/ThinkExecutionWorkbench.js +28 -28
- package/dist/components/ThinkFullApp.js +8 -8
- package/dist/components/ThinkThreadPicker.js +1 -1
- package/dist/components/ThinkThreadShell.js +5 -5
- 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 +6 -6
- 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/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 +45 -4
- 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 +5 -5
- 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 +33 -44
- 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 +8 -1
- 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 +5 -5
- 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 +86 -8
- package/dist/styles/meter.css +4 -20
- package/dist/styles/model-selector.css +13 -13
- 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 +95 -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 +9 -9
- 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 +23 -23
- package/dist/styles/think-full-app.css +12 -20
- package/dist/styles/think-resize-handle.css +2 -2
- package/dist/styles/think-thread-picker.css +19 -10
- package/dist/styles/think-thread-shell.css +7 -7
- 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 +14 -13
- 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/icons-CbjtbIJK.d.ts +0 -51
- package/dist/icons-D2Q5n5C1.js +0 -291
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import { m as EyeOffIcon, p as EyeIcon } from "../icons-
|
|
3
|
-
import { t as CopyButton } from "../copy-button-
|
|
2
|
+
import { m as EyeOffIcon, p as EyeIcon } from "../icons-Ba9THQKz.js";
|
|
3
|
+
import { t as CopyButton } from "../copy-button-DUMLYdsk.js";
|
|
4
4
|
import { Badge } from "./Badge.js";
|
|
5
|
-
import { Switch
|
|
5
|
+
import { Switch } from "./Switch.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/EnvironmentVariables.tsx
|
|
@@ -105,11 +105,11 @@ function EnvironmentVariablesToggle({ className, label = "Show values", ref, ...
|
|
|
105
105
|
className: "environment-variables__toggle-label",
|
|
106
106
|
children: label
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */ jsx(Switch, {
|
|
108
|
+
/* @__PURE__ */ jsx(Switch.Root, {
|
|
109
109
|
checked: showValues,
|
|
110
110
|
onCheckedChange: setShowValues,
|
|
111
111
|
size: "sm",
|
|
112
|
-
children: /* @__PURE__ */ jsx(
|
|
112
|
+
children: /* @__PURE__ */ jsx(Switch.Thumb, {})
|
|
113
113
|
})
|
|
114
114
|
]
|
|
115
115
|
});
|
|
@@ -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 };
|
|
@@ -77,8 +77,8 @@ declare function FieldsetLegend({
|
|
|
77
77
|
* <Fieldset.Root>
|
|
78
78
|
* <Fieldset.Legend>Notification Preferences</Fieldset.Legend>
|
|
79
79
|
* <CheckboxGroup>
|
|
80
|
-
* <label><Checkbox name="email"
|
|
81
|
-
* <label><Checkbox name="sms"
|
|
80
|
+
* <label><Checkbox.Root name="email" ><Checkbox.Indicator /></Checkbox.Root> Email</label>
|
|
81
|
+
* <label><Checkbox.Root name="sms" ><Checkbox.Indicator /></Checkbox.Root> SMS</label>
|
|
82
82
|
* </CheckboxGroup>
|
|
83
83
|
* </Fieldset.Root>
|
|
84
84
|
* ```
|
|
@@ -65,8 +65,8 @@ function FieldsetLegend({ className = "", ref, ...props }) {
|
|
|
65
65
|
* <Fieldset.Root>
|
|
66
66
|
* <Fieldset.Legend>Notification Preferences</Fieldset.Legend>
|
|
67
67
|
* <CheckboxGroup>
|
|
68
|
-
* <label><Checkbox name="email"
|
|
69
|
-
* <label><Checkbox name="sms"
|
|
68
|
+
* <label><Checkbox.Root name="email" ><Checkbox.Indicator /></Checkbox.Root> Email</label>
|
|
69
|
+
* <label><Checkbox.Root name="sms" ><Checkbox.Indicator /></Checkbox.Root> SMS</label>
|
|
70
70
|
* </CheckboxGroup>
|
|
71
71
|
* </Fieldset.Root>
|
|
72
72
|
* ```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-
|
|
1
|
+
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../FileTree-mpEIcfzA.js";
|
|
2
2
|
export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName };
|
|
@@ -26,7 +26,7 @@ interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
26
26
|
* <Input id="username" type="text" />
|
|
27
27
|
*
|
|
28
28
|
* <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
|
|
29
|
-
* <Checkbox id="newsletter"
|
|
29
|
+
* <Checkbox.Root id="newsletter" ><Checkbox.Indicator /></Checkbox.Root>
|
|
30
30
|
* <Label htmlFor="newsletter">Subscribe to newsletter</Label>
|
|
31
31
|
* </div>
|
|
32
32
|
* ```
|
package/dist/components/Label.js
CHANGED
|
@@ -18,7 +18,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* <Input id="username" type="text" />
|
|
19
19
|
*
|
|
20
20
|
* <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
|
|
21
|
-
* <Checkbox id="newsletter"
|
|
21
|
+
* <Checkbox.Root id="newsletter" ><Checkbox.Indicator /></Checkbox.Root>
|
|
22
22
|
* <Label htmlFor="newsletter">Subscribe to newsletter</Label>
|
|
23
23
|
* </div>
|
|
24
24
|
* ```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as RefreshIcon, C as MinusIcon, L as WarningIcon, N as SpinnerIcon, a as CheckIcon, b as LinkIcon } from "../icons-Ba9THQKz.js";
|
|
2
|
+
import { Menu } from "./Menu.js";
|
|
3
3
|
import { PromptInputActionMenuTrigger } from "./PromptInput.js";
|
|
4
4
|
import { getMcpServerIconSrc } from "../utils/mcp-server-catalog.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -12,27 +12,29 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
function McpServerPicker({ servers, onConnect, mcp, onAuthorize, onDisconnect, onRefresh, onRetry, sideOffset = 80, triggerLabel = "Add server" }) {
|
|
13
13
|
return /* @__PURE__ */ jsx("div", {
|
|
14
14
|
className: "mcp-server-picker",
|
|
15
|
-
children: /* @__PURE__ */ jsxs(
|
|
15
|
+
children: /* @__PURE__ */ jsxs(Menu.Root, { children: [/* @__PURE__ */ jsx(PromptInputActionMenuTrigger, {
|
|
16
16
|
className: "mcp-server-picker__trigger",
|
|
17
17
|
"aria-label": triggerLabel
|
|
18
|
-
}), /* @__PURE__ */ jsx(
|
|
18
|
+
}), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
19
19
|
side: "top",
|
|
20
20
|
align: "start",
|
|
21
21
|
sideOffset,
|
|
22
22
|
collisionPadding: 8,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
children: /* @__PURE__ */ jsx(Menu.Popup, {
|
|
24
|
+
tabIndex: 0,
|
|
25
|
+
"aria-label": "Servers",
|
|
26
|
+
className: "mcp-server-picker__popup",
|
|
27
|
+
children: /* @__PURE__ */ jsx(McpServerPickerItems, {
|
|
28
|
+
servers,
|
|
29
|
+
onConnect,
|
|
30
|
+
mcp,
|
|
31
|
+
onAuthorize,
|
|
32
|
+
onDisconnect,
|
|
33
|
+
onRefresh,
|
|
34
|
+
onRetry
|
|
35
|
+
})
|
|
34
36
|
})
|
|
35
|
-
})] })
|
|
37
|
+
}) })] })
|
|
36
38
|
});
|
|
37
39
|
}
|
|
38
40
|
function McpServerPickerItems({ servers, onConnect, mcp, onAuthorize, onDisconnect, onRefresh, onRetry }) {
|
|
@@ -47,7 +49,7 @@ function McpServerPickerItems({ servers, onConnect, mcp, onAuthorize, onDisconne
|
|
|
47
49
|
setPendingAction(null);
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
|
-
if (rows.length === 0) return /* @__PURE__ */ jsx(
|
|
52
|
+
if (rows.length === 0) return /* @__PURE__ */ jsx(Menu.Item, {
|
|
51
53
|
disabled: true,
|
|
52
54
|
className: "mcp-server-picker__empty",
|
|
53
55
|
children: "No servers available."
|
|
@@ -79,7 +81,7 @@ function McpServerPickerRow({ server, mcp, onConnect, onAuthorize, onDisconnect,
|
|
|
79
81
|
className: "mcp-server-picker__row-shell",
|
|
80
82
|
"data-connection": connectedState ? "connected" : "disconnected",
|
|
81
83
|
"data-status": derivedStatus,
|
|
82
|
-
children: [/* @__PURE__ */ jsxs(
|
|
84
|
+
children: [/* @__PURE__ */ jsxs(Menu.Item, {
|
|
83
85
|
className: "mcp-server-picker__row",
|
|
84
86
|
closeOnClick: false,
|
|
85
87
|
"data-status": derivedStatus,
|
|
@@ -141,7 +143,7 @@ function McpServerPickerRow({ server, mcp, onConnect, onAuthorize, onDisconnect,
|
|
|
141
143
|
});
|
|
142
144
|
}
|
|
143
145
|
function McpServerActionItem({ disabled, icon, label, onClick }) {
|
|
144
|
-
return /* @__PURE__ */ jsxs(
|
|
146
|
+
return /* @__PURE__ */ jsxs(Menu.Item, {
|
|
145
147
|
className: "mcp-server-picker__action",
|
|
146
148
|
closeOnClick: false,
|
|
147
149
|
disabled,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Menu,
|
|
1
|
+
import { _ as MenuSubmenuRootProps, a as MenuGroupLabelProps, b as MenuViewportProps, c as MenuPopupProps, d as MenuProps, f as MenuRadioGroupProps, g as MenuShortcutProps, h as MenuSeparatorProps, i as MenuCheckboxItemProps, l as MenuPortalProps, m as MenuRadioItemProps, n as MenuArrowProps, o as MenuGroupProps, p as MenuRadioItemIndicatorProps, r as MenuCheckboxItemIndicatorProps, s as MenuItemProps, t as Menu, u as MenuPositionerProps, v as MenuSubmenuTriggerProps, y as MenuTriggerProps } from "../Menu-Bgu-ufb5.js";
|
|
2
|
+
export { Menu, MenuArrowProps, MenuCheckboxItemIndicatorProps, MenuCheckboxItemProps, MenuGroupLabelProps, MenuGroupProps, MenuItemProps, MenuPopupProps, MenuPortalProps, MenuPositionerProps, MenuProps, MenuRadioGroupProps, MenuRadioItemIndicatorProps, MenuRadioItemProps, MenuSeparatorProps, MenuShortcutProps, MenuSubmenuRootProps, MenuSubmenuTriggerProps, MenuTriggerProps, MenuViewportProps };
|