@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as RefreshIcon, h as FileIcon, j as SearchIcon, n as ArrowLeftIcon } from "../icons-Ba9THQKz.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
|
-
import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../CodeBlock-
|
|
4
|
+
import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../CodeBlock-BUFXG8HW.js";
|
|
5
5
|
import { Input } from "./Input.js";
|
|
6
|
-
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../FileTree-
|
|
6
|
+
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../FileTree-mpEIcfzA.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/WorkspaceExplorer.tsx
|
|
@@ -92,7 +92,7 @@ function useWorkspace({ source, root = "/" }) {
|
|
|
92
92
|
markLoading
|
|
93
93
|
]);
|
|
94
94
|
const loadInfo = React.useCallback(async () => {
|
|
95
|
-
if (!
|
|
95
|
+
if (!source.getWorkspaceInfo) return;
|
|
96
96
|
try {
|
|
97
97
|
setInfo(await source.getWorkspaceInfo());
|
|
98
98
|
} catch {
|
|
@@ -245,7 +245,7 @@ function WorkspaceExplorer({ workspace, className, title = "Workspace", actions,
|
|
|
245
245
|
children: [showFileView ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button, {
|
|
246
246
|
variant: "ghost",
|
|
247
247
|
color: "neutral",
|
|
248
|
-
size: "xs",
|
|
248
|
+
size: "icon-xs",
|
|
249
249
|
onClick: () => setView("tree"),
|
|
250
250
|
"aria-label": "Back to files",
|
|
251
251
|
children: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" })
|
|
@@ -264,7 +264,7 @@ function WorkspaceExplorer({ workspace, className, title = "Workspace", actions,
|
|
|
264
264
|
children: [actions, /* @__PURE__ */ jsx(Button, {
|
|
265
265
|
variant: "ghost",
|
|
266
266
|
color: "neutral",
|
|
267
|
-
size: "xs",
|
|
267
|
+
size: "icon-xs",
|
|
268
268
|
onClick: refresh,
|
|
269
269
|
disabled: isLoading,
|
|
270
270
|
"aria-label": "Refresh workspace",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
|
|
1
|
+
import { A as PlusIcon, B as XIcon, C as MicrophoneIcon, D as PauseIcon, E as PaperclipIcon, F as SquareIcon, I as StopIcon, L as TerminalIcon, M as SearchIcon, N as SidebarIcon, O as PencilIcon, P as SpinnerIcon, R as WarningIcon, S as MaximizeIcon, T as MonitorIcon, _ as FolderOpenIcon, a as CheckIcon, b as InfoIcon, c as ChevronRightIcon, d as DownloadIcon, f as EllipsisIcon, g as FolderIcon, h as FileIcon, i as ArrowUpIcon, j as RefreshIcon, k as PlayIcon, l as CopyIcon, m as EyeOffIcon, n as ArrowLeftIcon, o as ChevronDownIcon, p as EyeIcon, r as ArrowRightIcon, s as ChevronLeftIcon, t as ArrowDownIcon, u as DotIcon, v as IconProps, w as MinusIcon, x as LinkIcon, y as ImageIcon, z as WrenchIcon } from "../icons-CUCz_Sft.js";
|
|
2
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MicrophoneIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, StopIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
|
package/dist/components/icons.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
|
|
1
|
+
import { A as RefreshIcon, C as MinusIcon, D as PencilIcon, E as PauseIcon, F as StopIcon, I as TerminalIcon, L as WarningIcon, M as SidebarIcon, N as SpinnerIcon, O as PlayIcon, P as SquareIcon, R as WrenchIcon, S as MicrophoneIcon, T as PaperclipIcon, _ as FolderOpenIcon, a as CheckIcon, b as LinkIcon, c as ChevronRightIcon, d as DownloadIcon, f as EllipsisIcon, g as FolderIcon, h as FileIcon, i as ArrowUpIcon, j as SearchIcon, k as PlusIcon, l as CopyIcon, m as EyeOffIcon, n as ArrowLeftIcon, o as ChevronDownIcon, p as EyeIcon, r as ArrowRightIcon, s as ChevronLeftIcon, t as ArrowDownIcon, u as DotIcon, v as ImageIcon, w as MonitorIcon, x as MaximizeIcon, y as InfoIcon, z as XIcon } from "../icons-Ba9THQKz.js";
|
|
2
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MicrophoneIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, StopIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as CheckIcon, l as CopyIcon } from "./icons-
|
|
1
|
+
import { a as CheckIcon, l as CopyIcon } from "./icons-Ba9THQKz.js";
|
|
2
2
|
import { Button } from "./components/Button.js";
|
|
3
|
-
import { Tooltip
|
|
3
|
+
import { Tooltip } from "./components/Tooltip.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/_internal/copy-button.tsx
|
|
7
|
-
function CopyButton({ label, text, timeout = 1500, stopPropagation = false, onCopy, onError, onClick, ...props }) {
|
|
7
|
+
function CopyButton({ label, tooltip = label, text, size = "icon", timeout = 1500, stopPropagation = false, onCopy, onError, onClick, ...props }) {
|
|
8
8
|
const [copied, setCopied] = React.useState(false);
|
|
9
9
|
const timeoutRef = React.useRef(null);
|
|
10
10
|
React.useEffect(() => () => {
|
|
@@ -30,14 +30,15 @@ function CopyButton({ label, text, timeout = 1500, stopPropagation = false, onCo
|
|
|
30
30
|
text,
|
|
31
31
|
timeout
|
|
32
32
|
]);
|
|
33
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(
|
|
33
|
+
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
34
|
+
type: "button",
|
|
34
35
|
variant: "ghost",
|
|
35
|
-
size
|
|
36
|
+
size,
|
|
36
37
|
"aria-label": label,
|
|
37
38
|
...props,
|
|
38
39
|
onClick: handleClick,
|
|
39
40
|
children: copied ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx(CopyIcon, {})
|
|
40
|
-
}) }), /* @__PURE__ */ jsx(
|
|
41
|
+
}) }), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: copied ? "Copied" : tooltip }) }) })] });
|
|
41
42
|
}
|
|
42
43
|
//#endregion
|
|
43
44
|
export { CopyButton as t };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { r as ButtonProps } from "./Button-
|
|
1
|
+
import { r as ButtonProps } from "./Button-FX_hpqxm.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/_internal/copy-button.d.ts
|
|
5
|
-
interface CopyButtonProps extends Omit<ButtonProps, "children" | "variant" | "
|
|
5
|
+
interface CopyButtonProps extends Omit<ButtonProps, "children" | "variant" | "color" | "className" | "onClick" | "onError"> {
|
|
6
6
|
className?: string;
|
|
7
7
|
label: string;
|
|
8
|
+
tooltip?: string;
|
|
8
9
|
text: string;
|
|
9
10
|
timeout?: number;
|
|
10
11
|
stopPropagation?: boolean;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Check, ChevronDown, ChevronLeft, ChevronRight, CircleStop, Copy, Dot, Download, Ellipsis, Eye, EyeOff, File, Folder, FolderOpen, Image, Info, Link2, LoaderCircle, Maximize2, Mic, Minus, Monitor, PanelLeft, Paperclip, Pause, Pencil, Play, Plus, RefreshCw, Search, Square, Terminal, TriangleAlert, Wrench, X } from "lucide-react";
|
|
3
|
+
//#region src/components/_internal/icons.tsx
|
|
4
|
+
function icon(Component) {
|
|
5
|
+
return function DesignSystemIcon({ size = 16, strokeWidth = 1.75, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
size,
|
|
8
|
+
strokeWidth,
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
focusable: "false",
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
const ChevronRightIcon = icon(ChevronRight);
|
|
16
|
+
const ChevronDownIcon = icon(ChevronDown);
|
|
17
|
+
const ChevronLeftIcon = icon(ChevronLeft);
|
|
18
|
+
const CheckIcon = icon(Check);
|
|
19
|
+
const XIcon = icon(X);
|
|
20
|
+
const PencilIcon = icon(Pencil);
|
|
21
|
+
const CopyIcon = icon(Copy);
|
|
22
|
+
const EyeIcon = icon(Eye);
|
|
23
|
+
const EyeOffIcon = icon(EyeOff);
|
|
24
|
+
const FolderIcon = icon(Folder);
|
|
25
|
+
const FolderOpenIcon = icon(FolderOpen);
|
|
26
|
+
const FileIcon = icon(File);
|
|
27
|
+
const PaperclipIcon = icon(Paperclip);
|
|
28
|
+
const MicrophoneIcon = icon(Mic);
|
|
29
|
+
const StopIcon = icon(CircleStop);
|
|
30
|
+
const PlusIcon = icon(Plus);
|
|
31
|
+
const MinusIcon = icon(Minus);
|
|
32
|
+
const PlayIcon = icon(Play);
|
|
33
|
+
const PauseIcon = icon(Pause);
|
|
34
|
+
const SquareIcon = icon(Square);
|
|
35
|
+
const ArrowLeftIcon = icon(ArrowLeft);
|
|
36
|
+
const ArrowRightIcon = icon(ArrowRight);
|
|
37
|
+
const ArrowDownIcon = icon(ArrowDown);
|
|
38
|
+
const ArrowUpIcon = icon(ArrowUp);
|
|
39
|
+
const DownloadIcon = icon(Download);
|
|
40
|
+
const RefreshIcon = icon(RefreshCw);
|
|
41
|
+
const DotIcon = icon(Dot);
|
|
42
|
+
const EllipsisIcon = icon(Ellipsis);
|
|
43
|
+
function SpinnerIcon({ className, size = 16, strokeWidth = 1.75, ...props }) {
|
|
44
|
+
return /* @__PURE__ */ jsx(LoaderCircle, {
|
|
45
|
+
size,
|
|
46
|
+
strokeWidth,
|
|
47
|
+
"aria-hidden": "true",
|
|
48
|
+
focusable: "false",
|
|
49
|
+
className: ["sigvelo-icon--spinner", className].filter(Boolean).join(" "),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const SearchIcon = icon(Search);
|
|
54
|
+
const SidebarIcon = icon(PanelLeft);
|
|
55
|
+
const TerminalIcon = icon(Terminal);
|
|
56
|
+
const LinkIcon = icon(Link2);
|
|
57
|
+
const WarningIcon = icon(TriangleAlert);
|
|
58
|
+
const WrenchIcon = icon(Wrench);
|
|
59
|
+
const InfoIcon = icon(Info);
|
|
60
|
+
const ImageIcon = icon(Image);
|
|
61
|
+
const MonitorIcon = icon(Monitor);
|
|
62
|
+
const MaximizeIcon = icon(Maximize2);
|
|
63
|
+
//#endregion
|
|
64
|
+
export { RefreshIcon as A, MinusIcon as C, PencilIcon as D, PauseIcon as E, StopIcon as F, TerminalIcon as I, WarningIcon as L, SidebarIcon as M, SpinnerIcon as N, PlayIcon as O, SquareIcon as P, WrenchIcon as R, MicrophoneIcon as S, PaperclipIcon as T, FolderOpenIcon as _, CheckIcon as a, LinkIcon as b, ChevronRightIcon as c, DownloadIcon as d, EllipsisIcon as f, FolderIcon as g, FileIcon as h, ArrowUpIcon as i, SearchIcon as j, PlusIcon as k, CopyIcon as l, EyeOffIcon as m, ArrowLeftIcon as n, ChevronDownIcon as o, EyeIcon as p, ArrowRightIcon as r, ChevronLeftIcon as s, ArrowDownIcon as t, DotIcon as u, ImageIcon as v, MonitorIcon as w, MaximizeIcon as x, InfoIcon as y, XIcon as z };
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { LucideProps } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/_internal/icons.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The design system's single icon adapter.
|
|
6
|
+
*
|
|
7
|
+
* Lucide supplies the artwork while this adapter owns the library-wide optical
|
|
8
|
+
* defaults and decorative semantics. Keeping the existing names here lets
|
|
9
|
+
* components share one icon language without coupling their public APIs to an
|
|
10
|
+
* icon vendor.
|
|
11
|
+
*/
|
|
12
|
+
type IconProps = Omit<LucideProps, "ref">;
|
|
13
|
+
declare const ChevronRightIcon: ({
|
|
14
|
+
size,
|
|
15
|
+
strokeWidth,
|
|
16
|
+
...props
|
|
17
|
+
}: IconProps) => import("react").JSX.Element;
|
|
18
|
+
declare const ChevronDownIcon: ({
|
|
19
|
+
size,
|
|
20
|
+
strokeWidth,
|
|
21
|
+
...props
|
|
22
|
+
}: IconProps) => import("react").JSX.Element;
|
|
23
|
+
declare const ChevronLeftIcon: ({
|
|
24
|
+
size,
|
|
25
|
+
strokeWidth,
|
|
26
|
+
...props
|
|
27
|
+
}: IconProps) => import("react").JSX.Element;
|
|
28
|
+
declare const CheckIcon: ({
|
|
29
|
+
size,
|
|
30
|
+
strokeWidth,
|
|
31
|
+
...props
|
|
32
|
+
}: IconProps) => import("react").JSX.Element;
|
|
33
|
+
declare const XIcon: ({
|
|
34
|
+
size,
|
|
35
|
+
strokeWidth,
|
|
36
|
+
...props
|
|
37
|
+
}: IconProps) => import("react").JSX.Element;
|
|
38
|
+
declare const PencilIcon: ({
|
|
39
|
+
size,
|
|
40
|
+
strokeWidth,
|
|
41
|
+
...props
|
|
42
|
+
}: IconProps) => import("react").JSX.Element;
|
|
43
|
+
declare const CopyIcon: ({
|
|
44
|
+
size,
|
|
45
|
+
strokeWidth,
|
|
46
|
+
...props
|
|
47
|
+
}: IconProps) => import("react").JSX.Element;
|
|
48
|
+
declare const EyeIcon: ({
|
|
49
|
+
size,
|
|
50
|
+
strokeWidth,
|
|
51
|
+
...props
|
|
52
|
+
}: IconProps) => import("react").JSX.Element;
|
|
53
|
+
declare const EyeOffIcon: ({
|
|
54
|
+
size,
|
|
55
|
+
strokeWidth,
|
|
56
|
+
...props
|
|
57
|
+
}: IconProps) => import("react").JSX.Element;
|
|
58
|
+
declare const FolderIcon: ({
|
|
59
|
+
size,
|
|
60
|
+
strokeWidth,
|
|
61
|
+
...props
|
|
62
|
+
}: IconProps) => import("react").JSX.Element;
|
|
63
|
+
declare const FolderOpenIcon: ({
|
|
64
|
+
size,
|
|
65
|
+
strokeWidth,
|
|
66
|
+
...props
|
|
67
|
+
}: IconProps) => import("react").JSX.Element;
|
|
68
|
+
declare const FileIcon: ({
|
|
69
|
+
size,
|
|
70
|
+
strokeWidth,
|
|
71
|
+
...props
|
|
72
|
+
}: IconProps) => import("react").JSX.Element;
|
|
73
|
+
declare const PaperclipIcon: ({
|
|
74
|
+
size,
|
|
75
|
+
strokeWidth,
|
|
76
|
+
...props
|
|
77
|
+
}: IconProps) => import("react").JSX.Element;
|
|
78
|
+
declare const MicrophoneIcon: ({
|
|
79
|
+
size,
|
|
80
|
+
strokeWidth,
|
|
81
|
+
...props
|
|
82
|
+
}: IconProps) => import("react").JSX.Element;
|
|
83
|
+
declare const StopIcon: ({
|
|
84
|
+
size,
|
|
85
|
+
strokeWidth,
|
|
86
|
+
...props
|
|
87
|
+
}: IconProps) => import("react").JSX.Element;
|
|
88
|
+
declare const PlusIcon: ({
|
|
89
|
+
size,
|
|
90
|
+
strokeWidth,
|
|
91
|
+
...props
|
|
92
|
+
}: IconProps) => import("react").JSX.Element;
|
|
93
|
+
declare const MinusIcon: ({
|
|
94
|
+
size,
|
|
95
|
+
strokeWidth,
|
|
96
|
+
...props
|
|
97
|
+
}: IconProps) => import("react").JSX.Element;
|
|
98
|
+
declare const PlayIcon: ({
|
|
99
|
+
size,
|
|
100
|
+
strokeWidth,
|
|
101
|
+
...props
|
|
102
|
+
}: IconProps) => import("react").JSX.Element;
|
|
103
|
+
declare const PauseIcon: ({
|
|
104
|
+
size,
|
|
105
|
+
strokeWidth,
|
|
106
|
+
...props
|
|
107
|
+
}: IconProps) => import("react").JSX.Element;
|
|
108
|
+
declare const SquareIcon: ({
|
|
109
|
+
size,
|
|
110
|
+
strokeWidth,
|
|
111
|
+
...props
|
|
112
|
+
}: IconProps) => import("react").JSX.Element;
|
|
113
|
+
declare const ArrowLeftIcon: ({
|
|
114
|
+
size,
|
|
115
|
+
strokeWidth,
|
|
116
|
+
...props
|
|
117
|
+
}: IconProps) => import("react").JSX.Element;
|
|
118
|
+
declare const ArrowRightIcon: ({
|
|
119
|
+
size,
|
|
120
|
+
strokeWidth,
|
|
121
|
+
...props
|
|
122
|
+
}: IconProps) => import("react").JSX.Element;
|
|
123
|
+
declare const ArrowDownIcon: ({
|
|
124
|
+
size,
|
|
125
|
+
strokeWidth,
|
|
126
|
+
...props
|
|
127
|
+
}: IconProps) => import("react").JSX.Element;
|
|
128
|
+
declare const ArrowUpIcon: ({
|
|
129
|
+
size,
|
|
130
|
+
strokeWidth,
|
|
131
|
+
...props
|
|
132
|
+
}: IconProps) => import("react").JSX.Element;
|
|
133
|
+
declare const DownloadIcon: ({
|
|
134
|
+
size,
|
|
135
|
+
strokeWidth,
|
|
136
|
+
...props
|
|
137
|
+
}: IconProps) => import("react").JSX.Element;
|
|
138
|
+
declare const RefreshIcon: ({
|
|
139
|
+
size,
|
|
140
|
+
strokeWidth,
|
|
141
|
+
...props
|
|
142
|
+
}: IconProps) => import("react").JSX.Element;
|
|
143
|
+
declare const DotIcon: ({
|
|
144
|
+
size,
|
|
145
|
+
strokeWidth,
|
|
146
|
+
...props
|
|
147
|
+
}: IconProps) => import("react").JSX.Element;
|
|
148
|
+
declare const EllipsisIcon: ({
|
|
149
|
+
size,
|
|
150
|
+
strokeWidth,
|
|
151
|
+
...props
|
|
152
|
+
}: IconProps) => import("react").JSX.Element;
|
|
153
|
+
declare function SpinnerIcon({
|
|
154
|
+
className,
|
|
155
|
+
size,
|
|
156
|
+
strokeWidth,
|
|
157
|
+
...props
|
|
158
|
+
}: IconProps): import("react").JSX.Element;
|
|
159
|
+
declare const SearchIcon: ({
|
|
160
|
+
size,
|
|
161
|
+
strokeWidth,
|
|
162
|
+
...props
|
|
163
|
+
}: IconProps) => import("react").JSX.Element;
|
|
164
|
+
declare const SidebarIcon: ({
|
|
165
|
+
size,
|
|
166
|
+
strokeWidth,
|
|
167
|
+
...props
|
|
168
|
+
}: IconProps) => import("react").JSX.Element;
|
|
169
|
+
declare const TerminalIcon: ({
|
|
170
|
+
size,
|
|
171
|
+
strokeWidth,
|
|
172
|
+
...props
|
|
173
|
+
}: IconProps) => import("react").JSX.Element;
|
|
174
|
+
declare const LinkIcon: ({
|
|
175
|
+
size,
|
|
176
|
+
strokeWidth,
|
|
177
|
+
...props
|
|
178
|
+
}: IconProps) => import("react").JSX.Element;
|
|
179
|
+
declare const WarningIcon: ({
|
|
180
|
+
size,
|
|
181
|
+
strokeWidth,
|
|
182
|
+
...props
|
|
183
|
+
}: IconProps) => import("react").JSX.Element;
|
|
184
|
+
declare const WrenchIcon: ({
|
|
185
|
+
size,
|
|
186
|
+
strokeWidth,
|
|
187
|
+
...props
|
|
188
|
+
}: IconProps) => import("react").JSX.Element;
|
|
189
|
+
declare const InfoIcon: ({
|
|
190
|
+
size,
|
|
191
|
+
strokeWidth,
|
|
192
|
+
...props
|
|
193
|
+
}: IconProps) => import("react").JSX.Element;
|
|
194
|
+
declare const ImageIcon: ({
|
|
195
|
+
size,
|
|
196
|
+
strokeWidth,
|
|
197
|
+
...props
|
|
198
|
+
}: IconProps) => import("react").JSX.Element;
|
|
199
|
+
declare const MonitorIcon: ({
|
|
200
|
+
size,
|
|
201
|
+
strokeWidth,
|
|
202
|
+
...props
|
|
203
|
+
}: IconProps) => import("react").JSX.Element;
|
|
204
|
+
declare const MaximizeIcon: ({
|
|
205
|
+
size,
|
|
206
|
+
strokeWidth,
|
|
207
|
+
...props
|
|
208
|
+
}: IconProps) => import("react").JSX.Element;
|
|
209
|
+
//#endregion
|
|
210
|
+
export { PlusIcon as A, XIcon as B, MicrophoneIcon as C, PauseIcon as D, PaperclipIcon as E, SquareIcon as F, StopIcon as I, TerminalIcon as L, SearchIcon as M, SidebarIcon as N, PencilIcon as O, SpinnerIcon as P, WarningIcon as R, MaximizeIcon as S, MonitorIcon as T, FolderOpenIcon as _, CheckIcon as a, InfoIcon as b, ChevronRightIcon as c, DownloadIcon as d, EllipsisIcon as f, FolderIcon as g, FileIcon as h, ArrowUpIcon as i, RefreshIcon as j, PlayIcon as k, CopyIcon as l, EyeOffIcon as m, ArrowLeftIcon as n, ChevronDownIcon as o, EyeIcon as p, ArrowRightIcon as r, ChevronLeftIcon as s, ArrowDownIcon as t, DotIcon as u, IconProps as v, MinusIcon as w, LinkIcon as x, ImageIcon as y, WrenchIcon as z };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Accessibility overrides intentionally come after component styles so system
|
|
2
|
+
* colors and keyboard focus remain visible even when a component customizes
|
|
3
|
+
* its normal-mode outline or box shadow. */
|
|
4
|
+
@media (forced-colors: active) {
|
|
5
|
+
:where(:focus-visible) {
|
|
6
|
+
outline: var(--sigvelo-focus-width) solid Highlight;
|
|
7
|
+
outline-offset: var(--sigvelo-focus-offset);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where([data-disabled], :disabled) {
|
|
11
|
+
border-color: GrayText;
|
|
12
|
+
color: GrayText;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: space-between;
|
|
21
|
-
gap:
|
|
21
|
+
gap: var(--sigvelo-recipe-control-gap);
|
|
22
22
|
inline-size: 100%;
|
|
23
|
-
min-block-size: var(--sigvelo-control-height
|
|
24
|
-
padding-block:
|
|
25
|
-
padding-inline:
|
|
26
|
-
font-family:
|
|
27
|
-
font-size:
|
|
23
|
+
min-block-size: var(--sigvelo-recipe-control-height);
|
|
24
|
+
padding-block: var(--sigvelo-spacing-2);
|
|
25
|
+
padding-inline: var(--sigvelo-recipe-control-padding-inline);
|
|
26
|
+
font-family: inherit;
|
|
27
|
+
font-size: var(--sigvelo-recipe-control-font-size);
|
|
28
28
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
29
29
|
text-align: start;
|
|
30
30
|
color: var(--sigvelo-color-text);
|
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
.accordion__trigger:focus-visible {
|
|
45
45
|
outline: none;
|
|
46
|
-
box-shadow:
|
|
47
|
-
0 0 0 2px var(--sigvelo-color-canvas),
|
|
48
|
-
0 0 0 4px var(--sigvelo-color-focus);
|
|
46
|
+
box-shadow: var(--sigvelo-recipe-focus-shadow);
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
.accordion__trigger:is(:disabled, [data-disabled]) {
|
|
@@ -53,69 +51,31 @@
|
|
|
53
51
|
cursor: not-allowed;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
|
-
.accordion__trigger-text {
|
|
57
|
-
flex: 1;
|
|
58
|
-
min-inline-size: 0;
|
|
59
|
-
overflow-wrap: break-word;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.accordion__icon {
|
|
63
|
-
display: flex;
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
flex: 0 0 auto;
|
|
67
|
-
inline-size: 1.25rem;
|
|
68
|
-
block-size: 1.25rem;
|
|
69
|
-
color: var(--sigvelo-color-text-muted);
|
|
70
|
-
transition:
|
|
71
|
-
color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
|
|
72
|
-
transform var(--sigvelo-duration-medium) var(--sigvelo-ease-emphasized);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.accordion__item[data-open] .accordion__icon {
|
|
76
|
-
color: var(--sigvelo-color-text);
|
|
77
|
-
transform: rotate(180deg);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
54
|
.accordion__panel {
|
|
55
|
+
block-size: var(--accordion-panel-height);
|
|
81
56
|
overflow: hidden;
|
|
82
|
-
font-family:
|
|
83
|
-
font-size:
|
|
57
|
+
font-family: inherit;
|
|
58
|
+
font-size: var(--sigvelo-text-sm);
|
|
84
59
|
line-height: 1.625;
|
|
85
60
|
color: var(--sigvelo-color-text-muted);
|
|
61
|
+
transition:
|
|
62
|
+
block-size var(--sigvelo-duration-medium) var(--sigvelo-ease-emphasized),
|
|
63
|
+
opacity var(--sigvelo-duration-fast) var(--sigvelo-ease-standard);
|
|
86
64
|
}
|
|
87
65
|
|
|
88
|
-
.accordion__panel[data-
|
|
89
|
-
animation: accordion-expand var(--sigvelo-duration-medium) var(--sigvelo-ease-emphasized);
|
|
90
|
-
}
|
|
91
|
-
|
|
66
|
+
.accordion__panel[data-starting-style],
|
|
92
67
|
.accordion__panel[data-ending-style] {
|
|
93
|
-
|
|
68
|
+
block-size: 0;
|
|
69
|
+
opacity: 0;
|
|
94
70
|
}
|
|
95
71
|
|
|
96
72
|
.accordion__panel > * {
|
|
97
|
-
padding-block-end:
|
|
98
|
-
padding-inline:
|
|
73
|
+
padding-block-end: var(--sigvelo-spacing-4);
|
|
74
|
+
padding-inline: var(--sigvelo-recipe-control-padding-inline);
|
|
99
75
|
}
|
|
100
76
|
|
|
101
|
-
@
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
opacity: 0;
|
|
105
|
-
}
|
|
106
|
-
to {
|
|
107
|
-
block-size: var(--accordion-panel-height);
|
|
108
|
-
opacity: 1;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@keyframes accordion-collapse {
|
|
113
|
-
from {
|
|
114
|
-
block-size: var(--accordion-panel-height);
|
|
115
|
-
opacity: 1;
|
|
116
|
-
}
|
|
117
|
-
to {
|
|
118
|
-
block-size: 0;
|
|
119
|
-
opacity: 0;
|
|
77
|
+
@media (prefers-reduced-motion: reduce) {
|
|
78
|
+
.accordion__panel {
|
|
79
|
+
transition-duration: var(--sigvelo-duration-reduced);
|
|
120
80
|
}
|
|
121
81
|
}
|