@mcp-b/react-components 0.14.2 → 0.16.1
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/AgentActivity-BNUNrP9O.d.ts +36 -0
- package/dist/{AgentChat-DQkqt82e.d.ts → AgentChat-CrlpbvQJ.d.ts} +58 -6
- package/dist/{CodeBlock-DUh9WOGo.d.ts → CodeBlock-BRajW4QU.d.ts} +1 -1
- package/dist/{CodeBlock-BUFXG8HW.js → CodeBlock-BmB4Xaqq.js} +15 -4
- package/dist/{FileTree-mpEIcfzA.js → FileTree-CkVbIMWV.js} +82 -89
- package/dist/Message-BkMdE3bS.js +375 -0
- package/dist/{ModelSelector-CPCpFAUt.js → ModelSelector-SlJNgwKY.js} +2 -2
- package/dist/{PromptInput-ClNqBiIw.d.ts → PromptInput-BWTuXMOD.d.ts} +123 -5
- package/dist/ResponsiveSidebarShell-Dd9DCcBT.d.ts +67 -0
- package/dist/{Select-Dl_vF_Bt.d.ts → Select-BeEsefzh.d.ts} +12 -2
- package/dist/{ThinkChat-BPcehdbP.js → ThinkChat-CzC-zNGA.js} +24 -36
- package/dist/{ThinkChatActivity-BmwuIigx.d.ts → ThinkChatActivity-BFQnb2ct.d.ts} +3 -10
- package/dist/ThinkChatActivitySummary-BPmu9a-c.d.ts +39 -0
- package/dist/{ThinkChatToolParts-CDEjqS6A.d.ts → ThinkChatToolParts-CSzVwMXf.d.ts} +13 -3
- package/dist/ThinkExecutionRun-ChhWhOoU.d.ts +30 -0
- package/dist/Toggle-CAAlNl-M.d.ts +69 -0
- package/dist/ToggleGroup-8hPv-b69.d.ts +73 -0
- package/dist/Workspace-D39LxGvP.d.ts +62 -0
- package/dist/WorkspaceFile-DOZkPwzu.d.ts +106 -0
- package/dist/WorkspaceFileView-rSN_yT0L.js +744 -0
- package/dist/WorkspaceLink-DIPbXrUM.js +337 -0
- package/dist/WorkspaceLink-DK1DWMHe.d.ts +89 -0
- package/dist/components/Activity.d.ts +27 -1
- package/dist/components/Activity.js +33 -15
- package/dist/components/AgentActivity.d.ts +2 -0
- package/dist/components/AgentActivity.js +45 -0
- package/dist/components/AgentActivityPreview.d.ts +46 -0
- package/dist/components/AgentActivityPreview.js +94 -0
- package/dist/components/AgentAttention.d.ts +73 -0
- package/dist/components/AgentAttention.js +85 -0
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +224 -200
- package/dist/components/AgentChatMessageEditor.d.ts +29 -0
- package/dist/components/AgentChatMessageEditor.js +92 -0
- package/dist/components/AgentChatTurnError.d.ts +17 -0
- package/dist/components/AgentChatTurnError.js +40 -0
- package/dist/components/AgentConnection.d.ts +12 -17
- package/dist/components/AgentConnection.js +99 -91
- package/dist/components/AppFrame.d.ts +24 -0
- package/dist/components/AppFrame.js +25 -0
- package/dist/components/AppTopBar.d.ts +71 -0
- package/dist/components/AppTopBar.js +82 -0
- package/dist/components/Artifact.js +1 -1
- package/dist/components/BrowserLiveView.js +1 -1
- package/dist/components/BrowserReplay.js +1 -1
- package/dist/components/BrowserRunPanel.js +1 -1
- package/dist/components/Card.d.ts +3 -0
- package/dist/components/Card.js +2 -1
- package/dist/components/ChainOfThought.d.ts +1 -1
- package/dist/components/ChainOfThought.js +1 -1
- package/dist/components/ChatGptSignInScreen.js +2 -2
- package/dist/components/Checkbox.js +5 -13
- package/dist/components/CheckboxGroup.d.ts +58 -2
- package/dist/components/CheckboxGroup.js +59 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.js +1 -1
- package/dist/components/Commit.js +2 -2
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/Conversation.js +1 -1
- package/dist/components/DescriptionList.d.ts +12 -0
- package/dist/components/DescriptionList.js +11 -0
- package/dist/components/DescriptionListParts.d.ts +37 -0
- package/dist/components/DescriptionListParts.js +35 -0
- package/dist/components/EnvironmentVariables.js +2 -2
- package/dist/components/Fieldset.d.ts +13 -1
- package/dist/components/Fieldset.js +11 -2
- package/dist/components/FileTree.js +1 -1
- package/dist/components/IconButton.d.ts +33 -0
- package/dist/components/IconButton.js +27 -0
- package/dist/components/McpConnectionRequest.d.ts +44 -0
- package/dist/components/McpConnectionRequest.js +122 -0
- package/dist/components/McpServerPicker.d.ts +48 -23
- package/dist/components/McpServerPicker.js +238 -189
- package/dist/components/Menubar.js +1 -1
- package/dist/components/Message.d.ts +1 -0
- package/dist/components/Message.js +1 -285
- package/dist/components/MessageScroller.js +1 -1
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/Pricing.d.ts +37 -0
- package/dist/components/Pricing.js +17 -0
- package/dist/components/PricingBillingToggle.d.ts +23 -0
- package/dist/components/PricingBillingToggle.js +86 -0
- package/dist/components/PricingConfirmationDialog.d.ts +25 -0
- package/dist/components/PricingConfirmationDialog.js +57 -0
- package/dist/components/PricingFAQ.d.ts +18 -0
- package/dist/components/PricingFAQ.js +27 -0
- package/dist/components/PricingPage.d.ts +2 -38
- package/dist/components/PricingPage.js +39 -359
- package/dist/components/PricingPlanCard.d.ts +22 -0
- package/dist/components/PricingPlanCard.js +109 -0
- package/dist/components/PricingUsageCalculator.d.ts +22 -0
- package/dist/components/PricingUsageCalculator.js +96 -0
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +210 -15
- package/dist/components/Queue.js +1 -1
- package/dist/components/Reasoning.d.ts +2 -1
- package/dist/components/Reasoning.js +14 -29
- package/dist/components/ResizableSidePanel.d.ts +57 -0
- package/dist/components/ResizableSidePanel.js +151 -0
- package/dist/components/ResponsiveSidebarShell.d.ts +2 -0
- package/dist/components/ResponsiveSidebarShell.js +129 -0
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Select.js +11 -2
- package/dist/components/Slider.d.ts +13 -1
- package/dist/components/Slider.js +11 -0
- package/dist/components/Sources.js +1 -1
- package/dist/components/Stepper.d.ts +4 -0
- package/dist/components/Stepper.js +5 -3
- package/dist/components/SubagentRun.d.ts +18 -19
- package/dist/components/SubagentRun.js +25 -18
- package/dist/components/SubagentRunIndicator.d.ts +22 -0
- package/dist/components/SubagentRunIndicator.js +33 -0
- package/dist/components/SubagentRunList.d.ts +25 -0
- package/dist/components/SubagentRunList.js +26 -0
- package/dist/components/SubagentRunSelector.d.ts +47 -0
- package/dist/components/SubagentRunSelector.js +55 -0
- package/dist/components/Task.js +1 -1
- package/dist/components/Terminal.js +2 -2
- package/dist/components/TestResults.js +1 -1
- package/dist/components/Textarea.d.ts +21 -0
- package/dist/components/Textarea.js +19 -0
- package/dist/components/ThemeModeControl.d.ts +24 -0
- package/dist/components/ThemeModeControl.js +52 -0
- package/dist/components/ThemeProvider.d.ts +38 -0
- package/dist/components/ThemeProvider.js +80 -0
- package/dist/components/ThinkChat.d.ts +29 -6
- package/dist/components/ThinkChat.js +7 -4
- package/dist/components/ThinkChatActivity.d.ts +3 -2
- package/dist/components/ThinkChatActivity.js +12 -318
- package/dist/components/ThinkChatActivitySummary.d.ts +2 -0
- package/dist/components/ThinkChatActivitySummary.js +421 -0
- package/dist/components/ThinkChatToolPanels.d.ts +7 -5
- package/dist/components/ThinkChatToolPanels.js +70 -8
- package/dist/components/ThinkChatToolParts.d.ts +2 -2
- package/dist/components/ThinkChatToolParts.js +36 -10
- package/dist/components/ThinkExecutionDetail.d.ts +20 -0
- package/dist/components/ThinkExecutionDetail.js +80 -0
- package/dist/components/ThinkExecutionRun.d.ts +2 -0
- package/dist/components/ThinkExecutionRun.js +72 -0
- package/dist/components/ThinkExecutionStatus.d.ts +22 -0
- package/dist/components/ThinkExecutionStatus.js +36 -0
- package/dist/components/ThinkExecutionWorkbench.d.ts +7 -0
- package/dist/components/ThinkExecutionWorkbench.js +69 -225
- package/dist/components/ThinkFullApp.d.ts +58 -14
- package/dist/components/ThinkFullApp.js +154 -160
- package/dist/components/ThinkFullAppViewSwitch.d.ts +31 -0
- package/dist/components/ThinkFullAppViewSwitch.js +34 -0
- package/dist/components/ThinkRoutine.d.ts +36 -0
- package/dist/components/ThinkRoutine.js +15 -0
- package/dist/components/ThinkRoutineBrowser.d.ts +25 -0
- package/dist/components/ThinkRoutineBrowser.js +156 -0
- package/dist/components/ThinkRoutineDetail.d.ts +24 -0
- package/dist/components/ThinkRoutineDetail.js +102 -0
- package/dist/components/ThinkRoutineForm.d.ts +32 -0
- package/dist/components/ThinkRoutineForm.js +151 -0
- package/dist/components/ThinkRoutineLibrary.d.ts +74 -0
- package/dist/components/ThinkRoutineLibrary.js +178 -0
- package/dist/components/ThinkRoutineRuns.d.ts +24 -0
- package/dist/components/ThinkRoutineRuns.js +68 -0
- package/dist/components/ThinkThreadPicker.d.ts +18 -1
- package/dist/components/ThinkThreadPicker.js +51 -5
- package/dist/components/ThinkThreadShell.d.ts +12 -9
- package/dist/components/ThinkThreadShell.js +17 -137
- package/dist/components/Toggle.d.ts +1 -68
- package/dist/components/ToggleGroup.d.ts +1 -72
- package/dist/components/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip.js +4 -2
- package/dist/components/WebPreview.js +1 -1
- package/dist/components/Workspace.d.ts +2 -0
- package/dist/components/Workspace.js +424 -0
- package/dist/components/WorkspaceBrowser.d.ts +32 -0
- package/dist/components/WorkspaceBrowser.js +103 -0
- package/dist/components/WorkspaceExplorer.d.ts +12 -79
- package/dist/components/WorkspaceExplorer.js +116 -330
- package/dist/components/WorkspaceFile.d.ts +2 -0
- package/dist/components/WorkspaceFile.js +195 -0
- package/dist/components/WorkspaceFileView.d.ts +26 -0
- package/dist/components/WorkspaceFileView.js +2 -0
- package/dist/components/WorkspaceHeader.d.ts +35 -0
- package/dist/components/WorkspaceHeader.js +51 -0
- package/dist/components/WorkspaceLink.d.ts +2 -0
- package/dist/components/WorkspaceLink.js +2 -0
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DUMLYdsk.js → copy-button-Dejn5heL.js} +1 -1
- package/dist/icons-CpfUer49.js +85 -0
- package/dist/{icons-CUCz_Sft.d.ts → icons-GQd1xF4e.d.ts} +51 -1
- package/dist/styles/activity-header.css +75 -0
- package/dist/styles/activity.css +49 -63
- package/dist/styles/agent-activity-preview-overlay.css +80 -0
- package/dist/styles/agent-activity-preview.css +233 -0
- package/dist/styles/agent-attention.css +128 -0
- package/dist/styles/agent-chat.css +133 -4
- package/dist/styles/agent-connection.css +9 -9
- package/dist/styles/alert-dialog.css +11 -11
- package/dist/styles/app-frame.css +15 -0
- package/dist/styles/app-top-bar.css +102 -0
- package/dist/styles/avatar.css +0 -1
- package/dist/styles/browser-control-overlay.css +184 -0
- package/dist/styles/card.css +29 -8
- package/dist/styles/chain-of-thought.css +5 -5
- package/dist/styles/checkbox-group.css +69 -0
- package/dist/styles/codex-model-selector.css +3 -3
- package/dist/styles/combobox.css +2 -1
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/description-list.css +50 -0
- package/dist/styles/dialog.css +11 -11
- package/dist/styles/field.css +14 -14
- package/dist/styles/fieldset.css +15 -4
- package/dist/styles/index.css +14 -2
- package/dist/styles/mcp-connection-request.css +60 -0
- package/dist/styles/mcp-server-picker.css +96 -68
- package/dist/styles/menu.css +1 -1
- package/dist/styles/message.css +4 -43
- package/dist/styles/model-selector.css +18 -12
- package/dist/styles/popover.css +9 -9
- package/dist/styles/preview-card.css +1 -1
- package/dist/styles/pricing-page.css +21 -27
- package/dist/styles/prompt-input.css +225 -32
- package/dist/styles/reasoning.css +1 -55
- package/dist/styles/recipes.css +50 -24
- package/dist/styles/resizable-side-panel.css +66 -0
- package/dist/styles/responsive-sidebar-shell.css +169 -0
- package/dist/styles/select.css +13 -3
- package/dist/styles/sources.css +6 -6
- package/dist/styles/stepper.css +13 -0
- package/dist/styles/streamdown.css +0 -4
- package/dist/styles/subagent-run.css +59 -42
- package/dist/styles/task.css +17 -10
- package/dist/styles/test-results.css +17 -10
- package/dist/styles/textarea.css +20 -0
- package/dist/styles/theme-mode-control.css +72 -0
- package/dist/styles/think-execution-status.css +49 -0
- package/dist/styles/think-execution-workbench.css +16 -80
- package/dist/styles/think-full-app.css +143 -128
- package/dist/styles/think-routine-library.css +491 -0
- package/dist/styles/think-thread-picker.css +47 -3
- package/dist/styles/toast.css +6 -6
- package/dist/styles/toggle-group.css +7 -0
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/workspace-explorer.css +516 -64
- package/dist/utils/mcp-server-catalog.d.ts +82 -78
- package/dist/utils/mcp-server-catalog.js +64 -41
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/utils/theme.d.ts +22 -0
- package/dist/utils/theme.js +55 -0
- package/package.json +34 -28
- package/dist/icons-Ba9THQKz.js +0 -64
- package/dist/styles/think-resize-handle.css +0 -33
- package/dist/styles/think-thread-shell.css +0 -219
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
+
import { Button } from "./Button.js";
|
|
3
|
+
import { Tooltip } from "./Tooltip.js";
|
|
4
|
+
import { Toolbar } from "./Toolbar.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/AppTopBar.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Stable application-level toolbar with composable leading, title, and trailing
|
|
10
|
+
* slots. Descendant buttons share Base UI's roving focus and tooltip provider.
|
|
11
|
+
*/
|
|
12
|
+
function AppTopBarRoot({ children, className, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(Tooltip.Provider, { children: /* @__PURE__ */ jsx(Toolbar.Root, {
|
|
14
|
+
className: cx("app-top-bar", className),
|
|
15
|
+
...props,
|
|
16
|
+
children
|
|
17
|
+
}) });
|
|
18
|
+
}
|
|
19
|
+
function AppTopBarLeading({ className, ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Toolbar.Group, {
|
|
21
|
+
className: cx("app-top-bar__leading", className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function AppTopBarTitle({ className, ref, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx("div", {
|
|
27
|
+
ref,
|
|
28
|
+
className: cx("app-top-bar__title", className),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function AppTopBarTrailing({ className, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(Toolbar.Group, {
|
|
34
|
+
className: cx("app-top-bar__trailing", className),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function AppTopBarControl({ className, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx(Toolbar.Button, {
|
|
40
|
+
className: cx("app-top-bar__button", className),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function AppTopBarButton({ children, className, disabled, label, render, tooltip = label, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
46
|
+
render: /* @__PURE__ */ jsx(AppTopBarControl, {
|
|
47
|
+
className,
|
|
48
|
+
"aria-label": label,
|
|
49
|
+
render: render ?? /* @__PURE__ */ jsx(Button, {
|
|
50
|
+
type: "button",
|
|
51
|
+
variant: "ghost",
|
|
52
|
+
color: "neutral",
|
|
53
|
+
size: "icon-sm",
|
|
54
|
+
disabled
|
|
55
|
+
}),
|
|
56
|
+
disabled,
|
|
57
|
+
...props
|
|
58
|
+
}),
|
|
59
|
+
children
|
|
60
|
+
}), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
61
|
+
side: "bottom",
|
|
62
|
+
sideOffset: 6,
|
|
63
|
+
children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: tooltip })
|
|
64
|
+
}) })] });
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Composable application top bar with stable leading, title, and trailing
|
|
68
|
+
* slots. Icon controls use shared Toolbar roving focus and coordinated Tooltip
|
|
69
|
+
* behavior; their fixed slots do not resize when state icons change. Render an
|
|
70
|
+
* existing behavior-rich button through `Control` to retain those toolbar
|
|
71
|
+
* semantics without rebuilding the control.
|
|
72
|
+
*/
|
|
73
|
+
const AppTopBar = {
|
|
74
|
+
Root: AppTopBarRoot,
|
|
75
|
+
Leading: AppTopBarLeading,
|
|
76
|
+
Title: AppTopBarTitle,
|
|
77
|
+
Trailing: AppTopBarTrailing,
|
|
78
|
+
Control: AppTopBarControl,
|
|
79
|
+
Button: AppTopBarButton
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
export { AppTopBar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as SpinnerIcon, w as MaximizeIcon } from "../icons-CpfUer49.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { Dialog } from "./Dialog.js";
|
|
5
5
|
import { Badge } from "./Badge.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as PauseIcon, P as PlayIcon } from "../icons-CpfUer49.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { Slider } from "./Slider.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as SpinnerIcon, Y as XIcon } from "../icons-CpfUer49.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
5
|
import { WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl } from "./WebPreview.js";
|
|
@@ -10,6 +10,8 @@ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
hover?: boolean;
|
|
13
|
+
/** Compact density for cards embedded in tool and workbench lists. */
|
|
14
|
+
size?: "default" | "sm";
|
|
13
15
|
}
|
|
14
16
|
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
15
17
|
interface CardTitleProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
@@ -34,6 +36,7 @@ interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
34
36
|
*/
|
|
35
37
|
declare function Card({
|
|
36
38
|
hover,
|
|
39
|
+
size,
|
|
37
40
|
className,
|
|
38
41
|
children,
|
|
39
42
|
ref,
|
package/dist/components/Card.js
CHANGED
|
@@ -16,10 +16,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
16
16
|
* </Card>
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
function Card({ hover = false, className = "", children, ref, ...props }) {
|
|
19
|
+
function Card({ hover = false, size = "default", className = "", children, ref, ...props }) {
|
|
20
20
|
return /* @__PURE__ */ jsx("div", {
|
|
21
21
|
ref,
|
|
22
22
|
"data-slot": "card",
|
|
23
|
+
"data-size": size,
|
|
23
24
|
className: [
|
|
24
25
|
"card",
|
|
25
26
|
hover && "card--hover",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Collapsible } from "./Collapsible.js";
|
|
2
2
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
3
|
-
import {
|
|
3
|
+
import { B as SpinnerIcon, l as ChevronRightIcon, o as CheckIcon, p as DotIcon } from "../icons-CpfUer49.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ChainOfThought.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as SpinnerIcon } from "../icons-CpfUer49.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
|
-
import { u as ModelSelectorLogo } from "../ModelSelector-
|
|
4
|
+
import { u as ModelSelectorLogo } from "../ModelSelector-SlJNgwKY.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ChatGptSignInScreen.tsx
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
+
import { o as CheckIcon } from "../icons-CpfUer49.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
4
5
|
//#region src/components/Checkbox.tsx
|
|
5
|
-
function CheckIcon(props) {
|
|
6
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
7
|
-
fill: "currentcolor",
|
|
8
|
-
width: "10",
|
|
9
|
-
height: "10",
|
|
10
|
-
viewBox: "0 0 10 10",
|
|
11
|
-
"aria-hidden": "true",
|
|
12
|
-
focusable: "false",
|
|
13
|
-
...props,
|
|
14
|
-
children: /* @__PURE__ */ jsx("path", { d: "M9.1603 1.12218C9.50684 1.34873 9.60427 1.81354 9.37792 2.16038L5.13603 8.66012C5.01614 8.8438 4.82192 8.96576 4.60451 8.99384C4.3871 9.02194 4.1683 8.95335 4.00574 8.80615L1.24664 6.30769C0.939709 6.02975 0.916013 5.55541 1.19372 5.24822C1.47142 4.94102 1.94536 4.91731 2.2523 5.19524L4.36085 7.10461L8.12299 1.33999C8.34934 0.993152 8.81376 0.895638 9.1603 1.12218Z" })
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
6
|
/**
|
|
18
7
|
* An accessible checkbox component with custom styling.
|
|
19
8
|
*
|
|
@@ -43,7 +32,10 @@ function CheckboxIndicator({ children, ...props }) {
|
|
|
43
32
|
"data-slot": "checkbox-indicator",
|
|
44
33
|
className: "checkbox__indicator",
|
|
45
34
|
...props,
|
|
46
|
-
children: children ?? /* @__PURE__ */ jsx(CheckIcon, {
|
|
35
|
+
children: children ?? /* @__PURE__ */ jsx(CheckIcon, {
|
|
36
|
+
size: 12,
|
|
37
|
+
strokeWidth: 2.5
|
|
38
|
+
})
|
|
47
39
|
});
|
|
48
40
|
}
|
|
49
41
|
const Checkbox = {
|
|
@@ -8,7 +8,11 @@ import { CheckboxGroup as CheckboxGroup$1 } from "@base-ui/react/checkbox-group"
|
|
|
8
8
|
interface CheckboxGroupProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxGroup$1>, "className"> {
|
|
9
9
|
/** Additional CSS class names */
|
|
10
10
|
className?: string;
|
|
11
|
+
/** Layout for the choices in this group. */
|
|
12
|
+
layout?: "stack" | "grid";
|
|
11
13
|
}
|
|
14
|
+
interface CheckboxGroupItemProps extends React.LabelHTMLAttributes<HTMLLabelElement> {}
|
|
15
|
+
interface CheckboxGroupSlotProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
12
16
|
/**
|
|
13
17
|
* Provides shared state management for a series of checkboxes.
|
|
14
18
|
* Works in conjunction with individual Checkbox components.
|
|
@@ -65,12 +69,64 @@ interface CheckboxGroupProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
65
69
|
*
|
|
66
70
|
* @see {@link https://base-ui.com/react/components/checkbox-group | Base UI CheckboxGroup}
|
|
67
71
|
*/
|
|
68
|
-
declare function
|
|
72
|
+
declare function CheckboxGroupRoot({
|
|
69
73
|
className,
|
|
74
|
+
layout,
|
|
70
75
|
ref,
|
|
71
76
|
...props
|
|
72
77
|
}: CheckboxGroupProps & {
|
|
73
78
|
ref?: React.Ref<HTMLDivElement>;
|
|
74
79
|
}): React.JSX.Element;
|
|
80
|
+
declare function CheckboxGroupItem({
|
|
81
|
+
className,
|
|
82
|
+
ref,
|
|
83
|
+
...props
|
|
84
|
+
}: CheckboxGroupItemProps & {
|
|
85
|
+
ref?: React.Ref<HTMLLabelElement>;
|
|
86
|
+
}): React.JSX.Element;
|
|
87
|
+
declare function CheckboxGroupIcon({
|
|
88
|
+
className,
|
|
89
|
+
ref,
|
|
90
|
+
...props
|
|
91
|
+
}: CheckboxGroupSlotProps & {
|
|
92
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
93
|
+
}): React.JSX.Element;
|
|
94
|
+
declare function CheckboxGroupContent({
|
|
95
|
+
className,
|
|
96
|
+
ref,
|
|
97
|
+
...props
|
|
98
|
+
}: CheckboxGroupSlotProps & {
|
|
99
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
100
|
+
}): React.JSX.Element;
|
|
101
|
+
declare function CheckboxGroupTitle({
|
|
102
|
+
className,
|
|
103
|
+
ref,
|
|
104
|
+
...props
|
|
105
|
+
}: CheckboxGroupSlotProps & {
|
|
106
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
107
|
+
}): React.JSX.Element;
|
|
108
|
+
declare function CheckboxGroupDescription({
|
|
109
|
+
className,
|
|
110
|
+
ref,
|
|
111
|
+
...props
|
|
112
|
+
}: CheckboxGroupSlotProps & {
|
|
113
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
114
|
+
}): React.JSX.Element;
|
|
115
|
+
declare function CheckboxGroupTrailing({
|
|
116
|
+
className,
|
|
117
|
+
ref,
|
|
118
|
+
...props
|
|
119
|
+
}: CheckboxGroupSlotProps & {
|
|
120
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
121
|
+
}): React.JSX.Element;
|
|
122
|
+
/** Base UI checkbox-group state composed with shared choice-row anatomy. */
|
|
123
|
+
declare const CheckboxGroup: typeof CheckboxGroupRoot & {
|
|
124
|
+
Item: typeof CheckboxGroupItem;
|
|
125
|
+
Icon: typeof CheckboxGroupIcon;
|
|
126
|
+
Content: typeof CheckboxGroupContent;
|
|
127
|
+
Title: typeof CheckboxGroupTitle;
|
|
128
|
+
Description: typeof CheckboxGroupDescription;
|
|
129
|
+
Trailing: typeof CheckboxGroupTrailing;
|
|
130
|
+
};
|
|
75
131
|
//#endregion
|
|
76
|
-
export { CheckboxGroup, CheckboxGroupProps };
|
|
132
|
+
export { CheckboxGroup, CheckboxGroupItemProps, CheckboxGroupProps, CheckboxGroupSlotProps };
|
|
@@ -58,12 +58,70 @@ import { CheckboxGroup as CheckboxGroup$1 } from "@base-ui/react/checkbox-group"
|
|
|
58
58
|
*
|
|
59
59
|
* @see {@link https://base-ui.com/react/components/checkbox-group | Base UI CheckboxGroup}
|
|
60
60
|
*/
|
|
61
|
-
function
|
|
61
|
+
function CheckboxGroupRoot({ className = "", layout = "stack", ref, ...props }) {
|
|
62
62
|
return /* @__PURE__ */ jsx(CheckboxGroup$1, {
|
|
63
63
|
ref,
|
|
64
|
+
"data-layout": layout,
|
|
64
65
|
className: ["checkbox-group", className].filter(Boolean).join(" "),
|
|
65
66
|
...props
|
|
66
67
|
});
|
|
67
68
|
}
|
|
69
|
+
function CheckboxGroupItem({ className = "", ref, ...props }) {
|
|
70
|
+
return /* @__PURE__ */ jsx("label", {
|
|
71
|
+
ref,
|
|
72
|
+
"data-slot": "checkbox-group-item",
|
|
73
|
+
className: ["checkbox-group__item", className].filter(Boolean).join(" "),
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function CheckboxGroupIcon({ className = "", ref, ...props }) {
|
|
78
|
+
return /* @__PURE__ */ jsx("span", {
|
|
79
|
+
ref,
|
|
80
|
+
"data-slot": "checkbox-group-icon",
|
|
81
|
+
className: ["checkbox-group__icon", className].filter(Boolean).join(" "),
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function CheckboxGroupContent({ className = "", ref, ...props }) {
|
|
86
|
+
return /* @__PURE__ */ jsx("span", {
|
|
87
|
+
ref,
|
|
88
|
+
"data-slot": "checkbox-group-content",
|
|
89
|
+
className: ["checkbox-group__content", className].filter(Boolean).join(" "),
|
|
90
|
+
...props
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function CheckboxGroupTitle({ className = "", ref, ...props }) {
|
|
94
|
+
return /* @__PURE__ */ jsx("span", {
|
|
95
|
+
ref,
|
|
96
|
+
"data-slot": "checkbox-group-title",
|
|
97
|
+
className: ["checkbox-group__title", className].filter(Boolean).join(" "),
|
|
98
|
+
...props
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function CheckboxGroupDescription({ className = "", ref, ...props }) {
|
|
102
|
+
return /* @__PURE__ */ jsx("span", {
|
|
103
|
+
ref,
|
|
104
|
+
"data-slot": "checkbox-group-description",
|
|
105
|
+
className: ["checkbox-group__description", className].filter(Boolean).join(" "),
|
|
106
|
+
...props
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function CheckboxGroupTrailing({ className = "", ref, ...props }) {
|
|
110
|
+
return /* @__PURE__ */ jsx("span", {
|
|
111
|
+
ref,
|
|
112
|
+
"data-slot": "checkbox-group-trailing",
|
|
113
|
+
className: ["checkbox-group__trailing", className].filter(Boolean).join(" "),
|
|
114
|
+
...props
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/** Base UI checkbox-group state composed with shared choice-row anatomy. */
|
|
118
|
+
const CheckboxGroup = Object.assign(CheckboxGroupRoot, {
|
|
119
|
+
Item: CheckboxGroupItem,
|
|
120
|
+
Icon: CheckboxGroupIcon,
|
|
121
|
+
Content: CheckboxGroupContent,
|
|
122
|
+
Title: CheckboxGroupTitle,
|
|
123
|
+
Description: CheckboxGroupDescription,
|
|
124
|
+
Trailing: CheckboxGroupTrailing
|
|
125
|
+
});
|
|
68
126
|
//#endregion
|
|
69
127
|
export { CheckboxGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as CodeBlockLanguage, C as CodeBlockLanguageSelectorValueProps, D as TokenizedCode, E as CodeBlockTitleProps, O as highlightCode, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, k as CODE_BLOCK_LANGUAGES, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../CodeBlock-
|
|
1
|
+
import { A as CodeBlockLanguage, C as CodeBlockLanguageSelectorValueProps, D as TokenizedCode, E as CodeBlockTitleProps, O as highlightCode, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, k as CODE_BLOCK_LANGUAGES, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../CodeBlock-BRajW4QU.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockActionsProps, CodeBlockContainer, CodeBlockContainerProps, CodeBlockContent, CodeBlockContentProps, CodeBlockCopyButton, CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockFilenameProps, CodeBlockHeader, CodeBlockHeaderProps, type CodeBlockLanguage, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorItemProps, CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, CodeBlockLanguageSelectorValueProps, CodeBlockProps, CodeBlockTitle, CodeBlockTitleProps, TokenizedCode, highlightCode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, h as CODE_BLOCK_LANGUAGES, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as highlightCode, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../CodeBlock-
|
|
1
|
+
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, h as CODE_BLOCK_LANGUAGES, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as highlightCode, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../CodeBlock-BmB4Xaqq.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorValue, CodeBlockTitle, highlightCode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { L as RefreshIcon, l as ChevronRightIcon, o as CheckIcon, s as ChevronDownIcon } from "../icons-CpfUer49.js";
|
|
3
3
|
import { Menu } from "./Menu.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Collapsible } from "./Collapsible.js";
|
|
2
2
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as CopyButton } from "../copy-button-
|
|
3
|
+
import { l as ChevronRightIcon, v as FileIcon } from "../icons-CpfUer49.js";
|
|
4
|
+
import { t as CopyButton } from "../copy-button-Dejn5heL.js";
|
|
5
5
|
import { Avatar } from "./Avatar.js";
|
|
6
6
|
import { Badge } from "./Badge.js";
|
|
7
7
|
import "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as CheckIcon, p as DotIcon } from "../icons-CpfUer49.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { m as DownloadIcon, t as ArrowDownIcon } from "../icons-CpfUer49.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DescriptionListDetails, DescriptionListItem, DescriptionListRoot, DescriptionListRootProps, DescriptionListTerm } from "./DescriptionListParts.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/DescriptionList.d.ts
|
|
4
|
+
/** Compact label/value facts with consistent wrapping and alignment. */
|
|
5
|
+
declare const DescriptionList: {
|
|
6
|
+
Root: typeof DescriptionListRoot;
|
|
7
|
+
Item: typeof DescriptionListItem;
|
|
8
|
+
Term: typeof DescriptionListTerm;
|
|
9
|
+
Details: typeof DescriptionListDetails;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DescriptionList, type DescriptionListRootProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DescriptionListDetails, DescriptionListItem, DescriptionListRoot, DescriptionListTerm } from "./DescriptionListParts.js";
|
|
2
|
+
//#region src/components/DescriptionList.ts
|
|
3
|
+
/** Compact label/value facts with consistent wrapping and alignment. */
|
|
4
|
+
const DescriptionList = {
|
|
5
|
+
Root: DescriptionListRoot,
|
|
6
|
+
Item: DescriptionListItem,
|
|
7
|
+
Term: DescriptionListTerm,
|
|
8
|
+
Details: DescriptionListDetails
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DescriptionList };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/DescriptionListParts.d.ts
|
|
4
|
+
interface DescriptionListRootProps extends React.HTMLAttributes<HTMLDListElement> {
|
|
5
|
+
variant?: "plain" | "divided";
|
|
6
|
+
}
|
|
7
|
+
declare function DescriptionListRoot({
|
|
8
|
+
className,
|
|
9
|
+
ref,
|
|
10
|
+
variant,
|
|
11
|
+
...props
|
|
12
|
+
}: DescriptionListRootProps & {
|
|
13
|
+
ref?: React.Ref<HTMLDListElement>;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
declare function DescriptionListItem({
|
|
16
|
+
className,
|
|
17
|
+
ref,
|
|
18
|
+
...props
|
|
19
|
+
}: React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
declare function DescriptionListTerm({
|
|
23
|
+
className,
|
|
24
|
+
ref,
|
|
25
|
+
...props
|
|
26
|
+
}: React.HTMLAttributes<HTMLElement> & {
|
|
27
|
+
ref?: React.Ref<HTMLElement>;
|
|
28
|
+
}): React.JSX.Element;
|
|
29
|
+
declare function DescriptionListDetails({
|
|
30
|
+
className,
|
|
31
|
+
ref,
|
|
32
|
+
...props
|
|
33
|
+
}: React.HTMLAttributes<HTMLElement> & {
|
|
34
|
+
ref?: React.Ref<HTMLElement>;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { DescriptionListDetails, DescriptionListItem, DescriptionListRoot, DescriptionListRootProps, DescriptionListTerm };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/DescriptionListParts.tsx
|
|
5
|
+
function DescriptionListRoot({ className, ref, variant = "plain", ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx("dl", {
|
|
7
|
+
ref,
|
|
8
|
+
className: cx("description-list", className),
|
|
9
|
+
"data-variant": variant,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function DescriptionListItem({ className, ref, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
ref,
|
|
16
|
+
className: cx("description-list__item", className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function DescriptionListTerm({ className, ref, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx("dt", {
|
|
22
|
+
ref,
|
|
23
|
+
className: cx("description-list__term", className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function DescriptionListDetails({ className, ref, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("dd", {
|
|
29
|
+
ref,
|
|
30
|
+
className: cx("description-list__details", className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { DescriptionListDetails, DescriptionListItem, DescriptionListRoot, DescriptionListTerm };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as CopyButton } from "../copy-button-
|
|
2
|
+
import { _ as EyeOffIcon, g as EyeIcon } from "../icons-CpfUer49.js";
|
|
3
|
+
import { t as CopyButton } from "../copy-button-Dejn5heL.js";
|
|
4
4
|
import { Badge } from "./Badge.js";
|
|
5
5
|
import { Switch } from "./Switch.js";
|
|
6
6
|
import * as React from "react";
|
|
@@ -8,6 +8,8 @@ import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
|
8
8
|
interface FieldsetRootProps extends Omit<React.ComponentPropsWithoutRef<typeof Fieldset$1.Root>, "className"> {
|
|
9
9
|
/** Additional CSS class names */
|
|
10
10
|
className?: string;
|
|
11
|
+
/** Visual treatment for the field group. */
|
|
12
|
+
variant?: "outlined" | "plain";
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Props for the Fieldset.Legend component.
|
|
@@ -16,6 +18,7 @@ interface FieldsetLegendProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
16
18
|
/** Additional CSS class names */
|
|
17
19
|
className?: string;
|
|
18
20
|
}
|
|
21
|
+
interface FieldsetDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {}
|
|
19
22
|
/**
|
|
20
23
|
* Groups the fieldset legend and associated fields.
|
|
21
24
|
* Renders a `<fieldset>` element.
|
|
@@ -36,6 +39,7 @@ interface FieldsetLegendProps extends Omit<React.ComponentPropsWithoutRef<typeof
|
|
|
36
39
|
declare function FieldsetRoot({
|
|
37
40
|
className,
|
|
38
41
|
ref,
|
|
42
|
+
variant,
|
|
39
43
|
...props
|
|
40
44
|
}: FieldsetRootProps & {
|
|
41
45
|
ref?: React.Ref<HTMLFieldSetElement>;
|
|
@@ -51,6 +55,13 @@ declare function FieldsetLegend({
|
|
|
51
55
|
}: FieldsetLegendProps & {
|
|
52
56
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
57
|
}): React.JSX.Element;
|
|
58
|
+
declare function FieldsetDescription({
|
|
59
|
+
className,
|
|
60
|
+
ref,
|
|
61
|
+
...props
|
|
62
|
+
}: FieldsetDescriptionProps & {
|
|
63
|
+
ref?: React.Ref<HTMLParagraphElement>;
|
|
64
|
+
}): React.JSX.Element;
|
|
54
65
|
/**
|
|
55
66
|
* A native fieldset element with an easily stylable legend.
|
|
56
67
|
* Useful for grouping related form controls.
|
|
@@ -88,6 +99,7 @@ declare function FieldsetLegend({
|
|
|
88
99
|
declare const Fieldset: {
|
|
89
100
|
Root: typeof FieldsetRoot;
|
|
90
101
|
Legend: typeof FieldsetLegend;
|
|
102
|
+
Description: typeof FieldsetDescription;
|
|
91
103
|
};
|
|
92
104
|
//#endregion
|
|
93
|
-
export { Fieldset, FieldsetLegendProps, FieldsetRootProps };
|
|
105
|
+
export { Fieldset, FieldsetDescriptionProps, FieldsetLegendProps, FieldsetRootProps };
|
|
@@ -19,11 +19,12 @@ import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://base-ui.com/react/components/fieldset | Base UI Fieldset}
|
|
21
21
|
*/
|
|
22
|
-
function FieldsetRoot({ className = "", ref, ...props }) {
|
|
22
|
+
function FieldsetRoot({ className = "", ref, variant = "outlined", ...props }) {
|
|
23
23
|
const classes = ["fieldset", className].filter(Boolean).join(" ");
|
|
24
24
|
return /* @__PURE__ */ jsx(Fieldset$1.Root, {
|
|
25
25
|
ref,
|
|
26
26
|
className: classes,
|
|
27
|
+
"data-variant": variant,
|
|
27
28
|
...props
|
|
28
29
|
});
|
|
29
30
|
}
|
|
@@ -39,6 +40,13 @@ function FieldsetLegend({ className = "", ref, ...props }) {
|
|
|
39
40
|
...props
|
|
40
41
|
});
|
|
41
42
|
}
|
|
43
|
+
function FieldsetDescription({ className = "", ref, ...props }) {
|
|
44
|
+
return /* @__PURE__ */ jsx("p", {
|
|
45
|
+
ref,
|
|
46
|
+
className: ["fieldset__description", className].filter(Boolean).join(" "),
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
}
|
|
42
50
|
/**
|
|
43
51
|
* A native fieldset element with an easily stylable legend.
|
|
44
52
|
* Useful for grouping related form controls.
|
|
@@ -75,7 +83,8 @@ function FieldsetLegend({ className = "", ref, ...props }) {
|
|
|
75
83
|
*/
|
|
76
84
|
const Fieldset = {
|
|
77
85
|
Root: FieldsetRoot,
|
|
78
|
-
Legend: FieldsetLegend
|
|
86
|
+
Legend: FieldsetLegend,
|
|
87
|
+
Description: FieldsetDescription
|
|
79
88
|
};
|
|
80
89
|
//#endregion
|
|
81
90
|
export { Fieldset };
|
|
@@ -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-CkVbIMWV.js";
|
|
2
2
|
export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { i as ButtonSize, r as ButtonProps } from "../Button-FX_hpqxm.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/IconButton.d.ts
|
|
5
|
+
type IconButtonSize = Extract<ButtonSize, "icon" | "icon-xs" | "icon-sm" | "icon-lg">;
|
|
6
|
+
interface IconButtonProps extends Omit<ButtonProps, "aria-label" | "children" | "size"> {
|
|
7
|
+
/** Decorative icon rendered inside the square button. */
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/** Accessible name and default tooltip text for the icon-only control. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Tooltip content when it should differ from the accessible name. */
|
|
12
|
+
tooltip?: React.ReactNode;
|
|
13
|
+
/** Preferred side for the tooltip. */
|
|
14
|
+
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
15
|
+
/** Square button size. */
|
|
16
|
+
size?: IconButtonSize;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A square, icon-only button with a required accessible name and matching
|
|
20
|
+
* tooltip. Use text buttons for actions whose consequence an icon cannot make
|
|
21
|
+
* clear on its own.
|
|
22
|
+
*/
|
|
23
|
+
declare function IconButton({
|
|
24
|
+
children,
|
|
25
|
+
label,
|
|
26
|
+
size,
|
|
27
|
+
tooltip,
|
|
28
|
+
tooltipSide,
|
|
29
|
+
type,
|
|
30
|
+
...props
|
|
31
|
+
}: IconButtonProps): React.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { IconButton, IconButtonProps };
|