@mcp-b/react-components 0.19.0 → 0.20.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/{AgentChat-ClxViuUM.d.ts → AgentChat-C-ZyXbJz.d.ts} +4 -1
- package/dist/{Button-DLGzHsjc.d.ts → Button-yRInko9u.d.ts} +0 -1
- package/dist/{CodeBlock-gV4kZeCI.d.ts → CodeBlock-Bbls1CnA.d.ts} +1 -1
- package/dist/{Combobox-CYc37s5l.d.ts → Combobox-xEEF6fUb.d.ts} +0 -1
- package/dist/{PromptInput-Bdh9pqlo.d.ts → PromptInput-Cq-8RoXD.d.ts} +6 -4
- package/dist/{Tabs-ColWK-XA.d.ts → Tabs-C49J5m0Q.d.ts} +16 -2
- package/dist/{ThinkChat-15EhfvYJ.js → ThinkChat-E_HrfH76.js} +15 -6
- package/dist/{ThinkChatActivity-Bzot45kX.d.ts → ThinkChatActivity-CdbL0aoA.d.ts} +1 -1
- package/dist/{Workspace-Jez8ffUj.d.ts → Workspace-CWtust-2.d.ts} +1 -1
- package/dist/{WorkspaceExplorer-B9dQWNVK.d.ts → WorkspaceExplorer-DGigwsgH.d.ts} +1 -1
- package/dist/{WorkspaceFile-CzyHnESE.d.ts → WorkspaceFile-D8Un_xge.d.ts} +1 -1
- package/dist/components/AgentAttention.d.ts +1 -1
- package/dist/components/AgentChat.d.ts +1 -1
- package/dist/components/AgentChat.js +4 -2
- package/dist/components/AgentChatMessageEditor.js +1 -0
- package/dist/components/AgentConnection.js +14 -11
- package/dist/components/AgentToolDetail.js +1 -1
- package/dist/components/AlertDialog.d.ts +24 -5
- package/dist/components/AlertDialog.js +15 -4
- package/dist/components/AppTopBar.js +1 -0
- package/dist/components/Artifact.d.ts +1 -1
- package/dist/components/Badge.d.ts +7 -10
- package/dist/components/Badge.js +14 -48
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +1 -3
- package/dist/components/Checkbox.d.ts +2 -5
- package/dist/components/Checkbox.js +0 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/Combobox.d.ts +1 -1
- package/dist/components/Combobox.js +1 -2
- package/dist/components/Commit.d.ts +1 -1
- package/dist/components/Context.js +8 -1
- package/dist/components/Conversation.d.ts +1 -1
- package/dist/components/Dialog.d.ts +1 -0
- package/dist/components/Dialog.js +14 -3
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/IconButton.d.ts +1 -1
- package/dist/components/InlineCitation.js +1 -0
- package/dist/components/Marker.d.ts +3 -11
- package/dist/components/Marker.js +15 -43
- package/dist/components/MediaPreviewCard.js +1 -1
- package/dist/components/Menubar.d.ts +5 -1
- package/dist/components/Menubar.js +9 -2
- package/dist/components/Message.d.ts +1 -1
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/ModelSelector.d.ts +1 -1
- package/dist/components/NavigationMenu.d.ts +2 -6
- package/dist/components/Popover.d.ts +6 -1
- package/dist/components/Popover.js +12 -4
- package/dist/components/PromptInput.d.ts +1 -1
- package/dist/components/Queue.d.ts +1 -1
- package/dist/components/RadioGroup.d.ts +1 -3
- package/dist/components/ResponsiveSidebarShell.js +1 -1
- package/dist/components/ScrollArea.d.ts +19 -8
- package/dist/components/ScrollArea.js +17 -8
- package/dist/components/Select.js +2 -2
- package/dist/components/Slider.d.ts +1 -3
- package/dist/components/Stepper.d.ts +6 -20
- package/dist/components/Stepper.js +31 -129
- package/dist/components/SubagentRunDetails.js +1 -0
- package/dist/components/Tabs.d.ts +1 -1
- package/dist/components/Tabs.js +8 -8
- package/dist/components/Terminal.d.ts +2 -2
- package/dist/components/ThinkChat.d.ts +15 -6
- package/dist/components/ThinkChat.js +1 -1
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivitySummary.js +6 -2
- package/dist/components/ThinkChatToolPanels.js +9 -4
- package/dist/components/ThinkFullApp.d.ts +2 -2
- package/dist/components/ThinkFullApp.js +3 -3
- package/dist/components/ThinkRoutineLibrary.js +1 -1
- package/dist/components/Toast.d.ts +1 -0
- package/dist/components/Toast.js +9 -2
- package/dist/components/Toggle.js +7 -7
- package/dist/components/Toolbar.d.ts +10 -2
- package/dist/components/Toolbar.js +17 -4
- package/dist/components/WebPreview.d.ts +1 -1
- package/dist/components/Workspace.d.ts +1 -1
- package/dist/components/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/WorkspaceExplorer.d.ts +3 -3
- package/dist/components/WorkspaceExplorer.js +1 -1
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +1 -1
- package/dist/{copy-button-D7aAYA-2.d.ts → copy-button-BrvQ7z4W.d.ts} +1 -1
- package/dist/{merge-refs-DF_7w2x_.js → merge-refs-KlanQB7A.js} +1 -1
- package/dist/styles/accordion.css +3 -3
- package/dist/styles/activity.css +4 -4
- package/dist/styles/agent-chat.css +1 -1
- package/dist/styles/agent-connection.css +3 -3
- package/dist/styles/agent-tool-detail.css +1 -1
- package/dist/styles/alert-dialog.css +1 -107
- package/dist/styles/approval.css +1 -1
- package/dist/styles/artifact.css +1 -6
- package/dist/styles/badge.css +2 -2
- package/dist/styles/base-ui-motion.css +26 -13
- package/dist/styles/base.css +1 -1
- package/dist/styles/browser-run-panel.css +2 -2
- package/dist/styles/button.css +2 -2
- package/dist/styles/chain-of-thought.css +1 -1
- package/dist/styles/chatgpt-sign-in-screen.css +1 -1
- package/dist/styles/checkbox.css +2 -2
- package/dist/styles/codex-model-selector.css +3 -3
- package/dist/styles/collapsible.css +1 -1
- package/dist/styles/context.css +1 -1
- package/dist/styles/dialog.css +1 -54
- package/dist/styles/field.css +6 -6
- package/dist/styles/inline-citation.css +2 -2
- package/dist/styles/label.css +3 -6
- package/dist/styles/marker.css +1 -1
- package/dist/styles/mcp-server-picker.css +1 -1
- package/dist/styles/media-preview-card.css +1 -1
- package/dist/styles/menubar.css +2 -41
- package/dist/styles/message.css +0 -7
- package/dist/styles/motion-reduction.css +2 -4
- package/dist/styles/navigation-menu.css +6 -1
- package/dist/styles/number-field.css +8 -8
- package/dist/styles/plan.css +2 -2
- package/dist/styles/popover.css +2 -38
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/progress.css +4 -4
- package/dist/styles/prompt-input.css +1 -1
- package/dist/styles/radio.css +2 -2
- package/dist/styles/recipes.css +93 -18
- package/dist/styles/scroll-area.css +0 -18
- package/dist/styles/select.css +5 -8
- package/dist/styles/slider.css +0 -1
- package/dist/styles/stepper.css +4 -4
- package/dist/styles/streamdown.css +1 -1
- package/dist/styles/subagent-run.css +2 -9
- package/dist/styles/switch.css +2 -2
- package/dist/styles/tabs.css +59 -4
- package/dist/styles/task.css +1 -1
- package/dist/styles/terminal.css +1 -5
- package/dist/styles/theme-mode-control.css +1 -1
- package/dist/styles/think-thread-picker.css +1 -1
- package/dist/styles/toast.css +1 -30
- package/dist/styles/toggle.css +5 -19
- package/dist/styles/toolbar.css +17 -74
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/workspace-explorer.css +0 -9
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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-Bbls1CnA.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 { n as useComboboxAnchor, t as Combobox } from "../Combobox-
|
|
1
|
+
import { n as useComboboxAnchor, t as Combobox } from "../Combobox-xEEF6fUb.js";
|
|
2
2
|
export { Combobox, useComboboxAnchor };
|
|
@@ -39,12 +39,11 @@ function ComboboxPositioner({ className, ref, ...props }) {
|
|
|
39
39
|
...props
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function ComboboxPopup({ className,
|
|
42
|
+
function ComboboxPopup({ className, ref, ...props }) {
|
|
43
43
|
const classes = mergeBaseClassName(["combobox__popup", "base-ui-popup"].filter(Boolean).join(" "), className);
|
|
44
44
|
return /* @__PURE__ */ jsx(Combobox$1.Popup, {
|
|
45
45
|
ref,
|
|
46
46
|
"data-slot": "combobox-content",
|
|
47
|
-
tabIndex,
|
|
48
47
|
className: classes,
|
|
49
48
|
...props
|
|
50
49
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Collapsible } from "../Collapsible-N64ASIQr.js";
|
|
2
|
-
import { t as CopyButtonProps } from "../copy-button-
|
|
2
|
+
import { t as CopyButtonProps } from "../copy-button-BrvQ7z4W.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Commit.d.ts
|
|
@@ -68,12 +68,19 @@ function ContextTrigger({ className, children, ...props }) {
|
|
|
68
68
|
const { usedTokens, maxTokens } = useContextContext();
|
|
69
69
|
const percent = maxTokens > 0 ? usedTokens / maxTokens * 100 : 0;
|
|
70
70
|
if (React.isValidElement(children)) return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
71
|
+
unstyled: true,
|
|
71
72
|
className: cx("context__trigger", className),
|
|
72
73
|
...props,
|
|
73
74
|
render: children
|
|
74
75
|
});
|
|
75
|
-
if (children) return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
76
|
+
if (children) return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
77
|
+
unstyled: true,
|
|
78
|
+
className: cx("context__trigger", className),
|
|
79
|
+
...props,
|
|
80
|
+
children
|
|
81
|
+
});
|
|
76
82
|
return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
83
|
+
unstyled: true,
|
|
77
84
|
className: cx("context__trigger", className),
|
|
78
85
|
"aria-label": `Context usage: ${percent.toFixed(0)}%`,
|
|
79
86
|
...props,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { buttonVariants } from "./Button.js";
|
|
2
3
|
import "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
@@ -50,7 +51,11 @@ function DialogViewport({ className, ref, ...props }) {
|
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
function DialogPopup({ size = "md", className, ref, ...props }) {
|
|
53
|
-
const classes = mergeBaseClassName([
|
|
54
|
+
const classes = mergeBaseClassName([
|
|
55
|
+
"dialog__popup",
|
|
56
|
+
"base-ui-modal-popup",
|
|
57
|
+
size !== "md" && `dialog__popup--${size}`
|
|
58
|
+
].filter(Boolean).join(" "), className);
|
|
54
59
|
return /* @__PURE__ */ jsx(Dialog$1.Popup, {
|
|
55
60
|
ref,
|
|
56
61
|
"data-slot": "dialog-content",
|
|
@@ -92,11 +97,17 @@ function DialogDescription({ className, ref, ...props }) {
|
|
|
92
97
|
...props
|
|
93
98
|
});
|
|
94
99
|
}
|
|
95
|
-
function DialogClose({ className, ref, ...props }) {
|
|
96
|
-
const classes = mergeBaseClassName(
|
|
100
|
+
function DialogClose({ render, className, ref, ...props }) {
|
|
101
|
+
const classes = mergeBaseClassName(render == null ? buttonVariants({
|
|
102
|
+
variant: "normal",
|
|
103
|
+
color: "neutral",
|
|
104
|
+
size: "sm",
|
|
105
|
+
className: "dialog__close"
|
|
106
|
+
}) : "dialog__close", className);
|
|
97
107
|
return /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
98
108
|
ref,
|
|
99
109
|
"data-slot": "dialog-close",
|
|
110
|
+
render,
|
|
100
111
|
className: classes,
|
|
101
112
|
...props
|
|
102
113
|
});
|
|
@@ -84,6 +84,7 @@ function InlineCitationSource({ source, index, className, ref, ...props }) {
|
|
|
84
84
|
"data-source-id": source.sourceId,
|
|
85
85
|
"data-source-type": source.type,
|
|
86
86
|
children: /* @__PURE__ */ jsxs(Popover.Root, { children: [/* @__PURE__ */ jsx(Popover.Trigger, {
|
|
87
|
+
unstyled: true,
|
|
87
88
|
className: "inline-citation__trigger",
|
|
88
89
|
"aria-label": accessibleName,
|
|
89
90
|
children: visibleLabel
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
3
|
|
|
3
4
|
//#region src/components/Marker.d.ts
|
|
4
5
|
type MarkerVariant = "default" | "separator" | "border";
|
|
5
|
-
type MarkerRenderProps = React.HTMLAttributes<HTMLElement> & {
|
|
6
|
-
ref?: React.Ref<HTMLElement>;
|
|
7
|
-
};
|
|
8
6
|
type MarkerRenderState = {
|
|
9
7
|
variant: MarkerVariant;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
|
-
type MarkerRender = React.ReactElement<React.HTMLAttributes<HTMLElement>> | MarkerRenderFunction;
|
|
13
|
-
interface MarkerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
interface MarkerProps extends useRender.ComponentProps<"div", MarkerRenderState> {
|
|
14
10
|
/** Visual treatment for status, separator, or bordered marker rows. */
|
|
15
11
|
variant?: MarkerVariant;
|
|
16
|
-
/** Replace the root element while keeping marker classes, refs, and handlers merged. */
|
|
17
|
-
render?: MarkerRender;
|
|
18
12
|
}
|
|
19
13
|
interface MarkerVariantsOptions {
|
|
20
14
|
variant?: MarkerVariant | null;
|
|
@@ -34,9 +28,7 @@ declare function Marker({
|
|
|
34
28
|
render,
|
|
35
29
|
ref,
|
|
36
30
|
...props
|
|
37
|
-
}: MarkerProps
|
|
38
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
39
|
-
}): React.JSX.Element | null;
|
|
31
|
+
}: MarkerProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
40
32
|
interface MarkerIconProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
41
33
|
declare function MarkerIcon({
|
|
42
34
|
className,
|
|
@@ -1,58 +1,30 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
-
import
|
|
3
|
-
import * as React from "react";
|
|
2
|
+
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
//#region src/components/Marker.tsx
|
|
6
6
|
function markerVariants({ variant = "default", className } = {}) {
|
|
7
7
|
return cx("marker", `marker--${variant ?? "default"}`, className);
|
|
8
8
|
}
|
|
9
|
-
function isEventHandler(propName, value) {
|
|
10
|
-
return /^on[A-Z]/.test(propName) && typeof value === "function";
|
|
11
|
-
}
|
|
12
|
-
function mergeRenderedMarkerProps(renderProps, markerProps) {
|
|
13
|
-
const mergedProps = {
|
|
14
|
-
...renderProps,
|
|
15
|
-
...markerProps
|
|
16
|
-
};
|
|
17
|
-
const markerPropsRecord = markerProps;
|
|
18
|
-
for (const propName of Object.keys(renderProps)) {
|
|
19
|
-
const renderValue = renderProps[propName];
|
|
20
|
-
const markerValue = markerPropsRecord[propName];
|
|
21
|
-
if (isEventHandler(propName, renderValue) && isEventHandler(propName, markerValue)) mergedProps[propName] = (...args) => {
|
|
22
|
-
renderValue(...args);
|
|
23
|
-
markerValue(...args);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
mergedProps.className = cx(renderProps.className, markerProps.className);
|
|
27
|
-
mergedProps.style = renderProps.style || markerProps.style ? {
|
|
28
|
-
...renderProps.style,
|
|
29
|
-
...markerProps.style
|
|
30
|
-
} : void 0;
|
|
31
|
-
mergedProps.ref = mergeRefs(renderProps.ref, markerProps.ref);
|
|
32
|
-
return mergedProps;
|
|
33
|
-
}
|
|
34
9
|
/**
|
|
35
10
|
* Compact status or separator row for transcript events like compaction,
|
|
36
11
|
* checkpoints, and progress markers.
|
|
37
12
|
*/
|
|
38
13
|
function Marker({ className, variant = "default", render, ref, ...props }) {
|
|
39
|
-
|
|
14
|
+
return useRender({
|
|
15
|
+
defaultTagName: "div",
|
|
16
|
+
render,
|
|
40
17
|
ref,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
ref
|
|
52
|
-
};
|
|
53
|
-
if (typeof render === "function") return render(markerProps, { variant });
|
|
54
|
-
if (React.isValidElement(render)) return React.cloneElement(render, mergeRenderedMarkerProps(render.props, markerProps));
|
|
55
|
-
return /* @__PURE__ */ jsx("div", { ...rootProps });
|
|
18
|
+
props: {
|
|
19
|
+
"data-slot": "marker",
|
|
20
|
+
...props,
|
|
21
|
+
className: markerVariants({
|
|
22
|
+
variant,
|
|
23
|
+
className
|
|
24
|
+
})
|
|
25
|
+
},
|
|
26
|
+
state: { variant }
|
|
27
|
+
});
|
|
56
28
|
}
|
|
57
29
|
function MarkerIcon({ className, ref, ...props }) {
|
|
58
30
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { B as PlayIcon } from "../icons-DKXiSepE.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t as mergeRefs } from "../merge-refs-KlanQB7A.js";
|
|
4
4
|
import { Card } from "./Card.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -14,7 +14,10 @@ interface MenubarMenuProps extends React.ComponentPropsWithoutRef<typeof Menu.Ro
|
|
|
14
14
|
/**
|
|
15
15
|
* Props for the Menubar.Trigger component.
|
|
16
16
|
*/
|
|
17
|
-
interface MenubarTriggerProps extends React.ComponentPropsWithoutRef<typeof Menu.Trigger> {
|
|
17
|
+
interface MenubarTriggerProps extends React.ComponentPropsWithoutRef<typeof Menu.Trigger> {
|
|
18
|
+
/** Skip the default Button chrome when a composed control owns its visuals. */
|
|
19
|
+
unstyled?: boolean;
|
|
20
|
+
}
|
|
18
21
|
/**
|
|
19
22
|
* Props for the Menubar.Portal component.
|
|
20
23
|
*/
|
|
@@ -90,6 +93,7 @@ declare function MenubarRoot({
|
|
|
90
93
|
* Button that opens the menu.
|
|
91
94
|
*/
|
|
92
95
|
declare function MenubarTrigger({
|
|
96
|
+
unstyled,
|
|
93
97
|
className,
|
|
94
98
|
ref,
|
|
95
99
|
...props
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { _ as DotIcon, u as CheckIcon } from "../icons-DKXiSepE.js";
|
|
3
|
+
import { buttonVariants } from "./Button.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { Menu } from "@base-ui/react/menu";
|
|
@@ -45,11 +46,17 @@ const MenubarMenu = (props) => {
|
|
|
45
46
|
/**
|
|
46
47
|
* Button that opens the menu.
|
|
47
48
|
*/
|
|
48
|
-
function MenubarTrigger({ className, ref, ...props }) {
|
|
49
|
-
const classes = mergeBaseClassName(
|
|
49
|
+
function MenubarTrigger({ unstyled = false, className, ref, ...props }) {
|
|
50
|
+
const classes = mergeBaseClassName(unstyled ? "menubar__trigger" : buttonVariants({
|
|
51
|
+
variant: "ghost",
|
|
52
|
+
color: "neutral",
|
|
53
|
+
size: "sm",
|
|
54
|
+
className: "menubar__trigger"
|
|
55
|
+
}), className);
|
|
50
56
|
return /* @__PURE__ */ jsx(Menu.Trigger, {
|
|
51
57
|
ref,
|
|
52
58
|
"data-slot": "menubar-trigger",
|
|
59
|
+
"data-unstyled": unstyled ? "" : void 0,
|
|
53
60
|
className: classes,
|
|
54
61
|
...props
|
|
55
62
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-yRInko9u.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
|
|
4
4
|
|
|
@@ -117,9 +117,7 @@ declare function NavigationMenuIcon({
|
|
|
117
117
|
className,
|
|
118
118
|
ref,
|
|
119
119
|
...props
|
|
120
|
-
}: NavigationMenuIconProps
|
|
121
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
122
|
-
}): React.JSX.Element;
|
|
120
|
+
}: NavigationMenuIconProps): React.JSX.Element;
|
|
123
121
|
declare function NavigationMenuContent({
|
|
124
122
|
className,
|
|
125
123
|
ref,
|
|
@@ -146,9 +144,7 @@ declare function NavigationMenuPopup({
|
|
|
146
144
|
className,
|
|
147
145
|
ref,
|
|
148
146
|
...props
|
|
149
|
-
}: NavigationMenuPopupProps
|
|
150
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
151
|
-
}): React.JSX.Element;
|
|
147
|
+
}: NavigationMenuPopupProps): React.JSX.Element;
|
|
152
148
|
declare function NavigationMenuViewport({
|
|
153
149
|
className,
|
|
154
150
|
ref,
|
|
@@ -9,7 +9,10 @@ interface PopoverProps extends React.ComponentPropsWithoutRef<typeof Popover$1.R
|
|
|
9
9
|
/**
|
|
10
10
|
* Props for the Popover.Trigger component.
|
|
11
11
|
*/
|
|
12
|
-
interface PopoverTriggerProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Trigger> {
|
|
12
|
+
interface PopoverTriggerProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Trigger> {
|
|
13
|
+
/** Keep Base UI trigger behavior without the default popover trigger chrome. */
|
|
14
|
+
unstyled?: boolean;
|
|
15
|
+
}
|
|
13
16
|
interface PopoverAnchorProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
14
17
|
/**
|
|
15
18
|
* Props for the Popover.Portal component.
|
|
@@ -62,6 +65,7 @@ declare function PopoverAnchor({
|
|
|
62
65
|
*/
|
|
63
66
|
declare function PopoverTrigger({
|
|
64
67
|
className,
|
|
68
|
+
unstyled,
|
|
65
69
|
ref,
|
|
66
70
|
...props
|
|
67
71
|
}: PopoverTriggerProps & {
|
|
@@ -161,6 +165,7 @@ declare function PopoverDescription({
|
|
|
161
165
|
* Button that closes the popover.
|
|
162
166
|
*/
|
|
163
167
|
declare function PopoverClose({
|
|
168
|
+
render,
|
|
164
169
|
className,
|
|
165
170
|
ref,
|
|
166
171
|
...props
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { buttonVariants } from "./Button.js";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
@@ -51,11 +52,12 @@ function PopoverAnchor({ className, ref, ...props }) {
|
|
|
51
52
|
* Button that toggles the popover visibility.
|
|
52
53
|
* Renders a `<button>` element.
|
|
53
54
|
*/
|
|
54
|
-
function PopoverTrigger({ className, ref, ...props }) {
|
|
55
|
-
const classes = mergeBaseClassName(
|
|
55
|
+
function PopoverTrigger({ className, unstyled = false, ref, ...props }) {
|
|
56
|
+
const classes = mergeBaseClassName(unstyled ? "" : "popover__trigger", className);
|
|
56
57
|
return /* @__PURE__ */ jsx(Popover$1.Trigger, {
|
|
57
58
|
ref,
|
|
58
59
|
"data-slot": "popover-trigger",
|
|
60
|
+
"data-unstyled": unstyled ? "" : void 0,
|
|
59
61
|
className: classes,
|
|
60
62
|
...props
|
|
61
63
|
});
|
|
@@ -174,11 +176,17 @@ function PopoverDescription({ className, ref, ...props }) {
|
|
|
174
176
|
/**
|
|
175
177
|
* Button that closes the popover.
|
|
176
178
|
*/
|
|
177
|
-
function PopoverClose({ className, ref, ...props }) {
|
|
178
|
-
const classes = mergeBaseClassName(
|
|
179
|
+
function PopoverClose({ render, className, ref, ...props }) {
|
|
180
|
+
const classes = mergeBaseClassName(render == null ? buttonVariants({
|
|
181
|
+
variant: "outline",
|
|
182
|
+
color: "neutral",
|
|
183
|
+
size: "xs",
|
|
184
|
+
className: "popover__close popover__close--default"
|
|
185
|
+
}) : "popover__close", className);
|
|
179
186
|
return /* @__PURE__ */ jsx(Popover$1.Close, {
|
|
180
187
|
ref,
|
|
181
188
|
"data-slot": "popover-close",
|
|
189
|
+
render,
|
|
182
190
|
className: classes,
|
|
183
191
|
...props
|
|
184
192
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PromptInputDictationProps, A as PromptInputCommandDefinition, At as PromptInputTabProps, B as PromptInputCommandItemProps, Bt as getApprovalRequestId, C as PromptInputBodyProps, Ct as PromptInputTab, D as PromptInputCommand, Dt as PromptInputTabItemProps, E as PromptInputButtonTooltip, Et as PromptInputTabItem, F as PromptInputCommandGroupLabelProps, Ft as PromptInputTools, G as PromptInputCommandSeparatorProps, Gt as useProviderAttachments, H as PromptInputCommandListProps, Ht as getPendingToolApprovals, I as PromptInputCommandGroupProps, It as PromptInputToolsProps, J as PromptInputContextItem, K as PromptInputCommandTrigger, L as PromptInputCommandInput, Lt as PromptInputTooltipConfig, M as PromptInputCommandEmptyProps, Mt as PromptInputTabsListProps, N as PromptInputCommandGroup, Nt as PromptInputTextarea, O as PromptInputCommandComposer, Ot as PromptInputTabLabel, P as PromptInputCommandGroupLabel, Pt as PromptInputTextareaProps, Q as PromptInputDictation, R as PromptInputCommandInputProps, Rt as TextInputContext, S as PromptInputBody, St as PromptInputSubmitProps, T as PromptInputButtonProps, Tt as PromptInputTabBodyProps, U as PromptInputCommandProps, Ut as usePromptInputAttachments, V as PromptInputCommandList, Vt as getApprovalStateKey, W as PromptInputCommandSeparator, Wt as usePromptInputController, X as PromptInputContextSelectorProps, Y as PromptInputContextSelector, Z as PromptInputControllerProps, _ as PromptInputApprovalProps, _t as PromptInputReferences, a as PromptInputActionAddAttachmentsProps, at as PromptInputHoverCardContent, b as PromptInputAttachments, bt as PromptInputSelectProps, c as PromptInputActionMenu, ct as PromptInputHoverCardTrigger, d as PromptInputActionMenuItem, dt as PromptInputPermissionSelector, et as PromptInputFooter, f as PromptInputActionMenuItemProps, ft as PromptInputPermissionSelectorProps, g as PromptInputApproval, gt as PromptInputReference, h as PromptInputActionMenuTriggerProps, ht as PromptInputProviderProps, i as PromptInputActionAddAttachments, it as PromptInputHoverCard, j as PromptInputCommandEmpty, jt as PromptInputTabsList, k as PromptInputCommandComposerProps, kt as PromptInputTabLabelProps, l as PromptInputActionMenuContent, lt as PromptInputHoverCardTriggerProps, m as PromptInputActionMenuTrigger, mt as PromptInputProvider, n as PermissionMode, nt as PromptInputHeader, o as PromptInputActionAddScreenshot, ot as PromptInputHoverCardContentProps, p as PromptInputActionMenuProps, pt as PromptInputProps, q as PromptInputContextAction, r as PromptInput, rt as PromptInputHeaderProps, s as PromptInputActionAddScreenshotProps, st as PromptInputHoverCardProps, t as AttachmentsContext, tt as PromptInputFooterProps, u as PromptInputActionMenuContentProps, ut as PromptInputMessage, v as PromptInputAttachment, vt as PromptInputReferencesProps, w as PromptInputButton, wt as PromptInputTabBody, x as PromptInputAttachmentsProps, xt as PromptInputSubmit, y as PromptInputAttachmentProps, yt as PromptInputSelect, z as PromptInputCommandItem, zt as TooltipSide } from "../PromptInput-
|
|
1
|
+
import { $ as PromptInputDictationProps, A as PromptInputCommandDefinition, At as PromptInputTabProps, B as PromptInputCommandItemProps, Bt as getApprovalRequestId, C as PromptInputBodyProps, Ct as PromptInputTab, D as PromptInputCommand, Dt as PromptInputTabItemProps, E as PromptInputButtonTooltip, Et as PromptInputTabItem, F as PromptInputCommandGroupLabelProps, Ft as PromptInputTools, G as PromptInputCommandSeparatorProps, Gt as useProviderAttachments, H as PromptInputCommandListProps, Ht as getPendingToolApprovals, I as PromptInputCommandGroupProps, It as PromptInputToolsProps, J as PromptInputContextItem, K as PromptInputCommandTrigger, L as PromptInputCommandInput, Lt as PromptInputTooltipConfig, M as PromptInputCommandEmptyProps, Mt as PromptInputTabsListProps, N as PromptInputCommandGroup, Nt as PromptInputTextarea, O as PromptInputCommandComposer, Ot as PromptInputTabLabel, P as PromptInputCommandGroupLabel, Pt as PromptInputTextareaProps, Q as PromptInputDictation, R as PromptInputCommandInputProps, Rt as TextInputContext, S as PromptInputBody, St as PromptInputSubmitProps, T as PromptInputButtonProps, Tt as PromptInputTabBodyProps, U as PromptInputCommandProps, Ut as usePromptInputAttachments, V as PromptInputCommandList, Vt as getApprovalStateKey, W as PromptInputCommandSeparator, Wt as usePromptInputController, X as PromptInputContextSelectorProps, Y as PromptInputContextSelector, Z as PromptInputControllerProps, _ as PromptInputApprovalProps, _t as PromptInputReferences, a as PromptInputActionAddAttachmentsProps, at as PromptInputHoverCardContent, b as PromptInputAttachments, bt as PromptInputSelectProps, c as PromptInputActionMenu, ct as PromptInputHoverCardTrigger, d as PromptInputActionMenuItem, dt as PromptInputPermissionSelector, et as PromptInputFooter, f as PromptInputActionMenuItemProps, ft as PromptInputPermissionSelectorProps, g as PromptInputApproval, gt as PromptInputReference, h as PromptInputActionMenuTriggerProps, ht as PromptInputProviderProps, i as PromptInputActionAddAttachments, it as PromptInputHoverCard, j as PromptInputCommandEmpty, jt as PromptInputTabsList, k as PromptInputCommandComposerProps, kt as PromptInputTabLabelProps, l as PromptInputActionMenuContent, lt as PromptInputHoverCardTriggerProps, m as PromptInputActionMenuTrigger, mt as PromptInputProvider, n as PermissionMode, nt as PromptInputHeader, o as PromptInputActionAddScreenshot, ot as PromptInputHoverCardContentProps, p as PromptInputActionMenuProps, pt as PromptInputProps, q as PromptInputContextAction, r as PromptInput, rt as PromptInputHeaderProps, s as PromptInputActionAddScreenshotProps, st as PromptInputHoverCardProps, t as AttachmentsContext, tt as PromptInputFooterProps, u as PromptInputActionMenuContentProps, ut as PromptInputMessage, v as PromptInputAttachment, vt as PromptInputReferencesProps, w as PromptInputButton, wt as PromptInputTabBody, x as PromptInputAttachmentsProps, xt as PromptInputSubmit, y as PromptInputAttachmentProps, yt as PromptInputSelect, z as PromptInputCommandItem, zt as TooltipSide } from "../PromptInput-Cq-8RoXD.js";
|
|
2
2
|
export { AttachmentsContext, PermissionMode, PromptInput, PromptInputActionAddAttachments, PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuContentProps, PromptInputActionMenuItem, PromptInputActionMenuItemProps, PromptInputActionMenuProps, PromptInputActionMenuTrigger, PromptInputActionMenuTriggerProps, PromptInputApproval, PromptInputApprovalProps, PromptInputAttachment, PromptInputAttachmentProps, PromptInputAttachments, PromptInputAttachmentsProps, PromptInputBody, PromptInputBodyProps, PromptInputButton, PromptInputButtonProps, PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandComposer, PromptInputCommandComposerProps, PromptInputCommandDefinition, PromptInputCommandEmpty, PromptInputCommandEmptyProps, PromptInputCommandGroup, PromptInputCommandGroupLabel, PromptInputCommandGroupLabelProps, PromptInputCommandGroupProps, PromptInputCommandInput, PromptInputCommandInputProps, PromptInputCommandItem, PromptInputCommandItemProps, PromptInputCommandList, PromptInputCommandListProps, PromptInputCommandProps, PromptInputCommandSeparator, PromptInputCommandSeparatorProps, PromptInputCommandTrigger, PromptInputContextAction, PromptInputContextItem, PromptInputContextSelector, PromptInputContextSelectorProps, PromptInputControllerProps, PromptInputDictation, PromptInputDictationProps, PromptInputFooter, PromptInputFooterProps, PromptInputHeader, PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, PromptInputHoverCardContentProps, PromptInputHoverCardProps, PromptInputHoverCardTrigger, PromptInputHoverCardTriggerProps, PromptInputMessage, PromptInputPermissionSelector, PromptInputPermissionSelectorProps, PromptInputProps, PromptInputProvider, PromptInputProviderProps, PromptInputReference, PromptInputReferences, PromptInputReferencesProps, PromptInputSelect, PromptInputSelectProps, PromptInputSubmit, PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, PromptInputTabBodyProps, PromptInputTabItem, PromptInputTabItemProps, PromptInputTabLabel, PromptInputTabLabelProps, PromptInputTabProps, PromptInputTabsList, PromptInputTabsListProps, PromptInputTextarea, PromptInputTextareaProps, PromptInputTools, PromptInputToolsProps, PromptInputTooltipConfig, TextInputContext, TooltipSide, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals, usePromptInputAttachments, usePromptInputController, useProviderAttachments };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { G as SidebarIcon } from "../icons-DKXiSepE.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
|
-
import { n as mergeRefs } from "../merge-refs-DF_7w2x_.js";
|
|
5
4
|
import { AppTopBar } from "./AppTopBar.js";
|
|
5
|
+
import { t as mergeRefs } from "../merge-refs-KlanQB7A.js";
|
|
6
6
|
import { ResizableSidePanel } from "./ResizableSidePanel.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -10,6 +10,10 @@ interface ScrollAreaRootProps extends React.ComponentPropsWithoutRef<typeof Scro
|
|
|
10
10
|
* Props for the ScrollArea.Viewport component.
|
|
11
11
|
*/
|
|
12
12
|
interface ScrollAreaViewportProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Viewport> {}
|
|
13
|
+
/**
|
|
14
|
+
* Props for the ScrollArea.Content component.
|
|
15
|
+
*/
|
|
16
|
+
interface ScrollAreaContentProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Content> {}
|
|
13
17
|
/**
|
|
14
18
|
* Props for the ScrollArea.Scrollbar component.
|
|
15
19
|
*/
|
|
@@ -29,7 +33,7 @@ interface ScrollAreaCornerProps extends React.ComponentPropsWithoutRef<typeof Sc
|
|
|
29
33
|
* ```tsx
|
|
30
34
|
* <ScrollArea.Root>
|
|
31
35
|
* <ScrollArea.Viewport>
|
|
32
|
-
* <
|
|
36
|
+
* <ScrollArea.Content>Scrollable content...</ScrollArea.Content>
|
|
33
37
|
* </ScrollArea.Viewport>
|
|
34
38
|
* <ScrollArea.Scrollbar>
|
|
35
39
|
* <ScrollArea.Thumb />
|
|
@@ -51,15 +55,21 @@ declare function ScrollAreaRoot({
|
|
|
51
55
|
*/
|
|
52
56
|
declare function ScrollAreaViewport({
|
|
53
57
|
className,
|
|
54
|
-
tabIndex,
|
|
55
|
-
role,
|
|
56
|
-
"aria-label": ariaLabel,
|
|
57
|
-
"aria-labelledby": ariaLabelledBy,
|
|
58
58
|
ref,
|
|
59
59
|
...props
|
|
60
60
|
}: ScrollAreaViewportProps & {
|
|
61
61
|
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
}): React.JSX.Element;
|
|
63
|
+
/**
|
|
64
|
+
* Content wrapper that keeps Base UI's overflow measurements in sync.
|
|
65
|
+
*/
|
|
66
|
+
declare function ScrollAreaContent({
|
|
67
|
+
className,
|
|
68
|
+
ref,
|
|
69
|
+
...props
|
|
70
|
+
}: ScrollAreaContentProps & {
|
|
71
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
72
|
+
}): React.JSX.Element;
|
|
63
73
|
/**
|
|
64
74
|
* The scrollbar track, either vertical or horizontal.
|
|
65
75
|
*/
|
|
@@ -100,7 +110,7 @@ declare function ScrollAreaCorner({
|
|
|
100
110
|
* // Vertical scroll
|
|
101
111
|
* <ScrollArea.Root style={{ height: 200 }}>
|
|
102
112
|
* <ScrollArea.Viewport>
|
|
103
|
-
* <
|
|
113
|
+
* <ScrollArea.Content>Long content...</ScrollArea.Content>
|
|
104
114
|
* </ScrollArea.Viewport>
|
|
105
115
|
* <ScrollArea.Scrollbar>
|
|
106
116
|
* <ScrollArea.Thumb />
|
|
@@ -113,7 +123,7 @@ declare function ScrollAreaCorner({
|
|
|
113
123
|
* // Both scrollbars
|
|
114
124
|
* <ScrollArea.Root style={{ height: 200, width: 300 }}>
|
|
115
125
|
* <ScrollArea.Viewport>
|
|
116
|
-
* <
|
|
126
|
+
* <ScrollArea.Content style={{ width: 600 }}>Wide and tall content...</ScrollArea.Content>
|
|
117
127
|
* </ScrollArea.Viewport>
|
|
118
128
|
* <ScrollArea.Scrollbar orientation="vertical">
|
|
119
129
|
* <ScrollArea.Thumb />
|
|
@@ -130,9 +140,10 @@ declare function ScrollAreaCorner({
|
|
|
130
140
|
declare const ScrollArea: {
|
|
131
141
|
Root: typeof ScrollAreaRoot;
|
|
132
142
|
Viewport: typeof ScrollAreaViewport;
|
|
143
|
+
Content: typeof ScrollAreaContent;
|
|
133
144
|
Scrollbar: typeof ScrollAreaScrollbar;
|
|
134
145
|
Thumb: typeof ScrollAreaThumb;
|
|
135
146
|
Corner: typeof ScrollAreaCorner;
|
|
136
147
|
};
|
|
137
148
|
//#endregion
|
|
138
|
-
export { ScrollArea, ScrollAreaCornerProps, ScrollAreaRootProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaViewportProps };
|
|
149
|
+
export { ScrollArea, ScrollAreaContentProps, ScrollAreaCornerProps, ScrollAreaRootProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaViewportProps };
|
|
@@ -10,7 +10,7 @@ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
|
10
10
|
* ```tsx
|
|
11
11
|
* <ScrollArea.Root>
|
|
12
12
|
* <ScrollArea.Viewport>
|
|
13
|
-
* <
|
|
13
|
+
* <ScrollArea.Content>Scrollable content...</ScrollArea.Content>
|
|
14
14
|
* </ScrollArea.Viewport>
|
|
15
15
|
* <ScrollArea.Scrollbar>
|
|
16
16
|
* <ScrollArea.Thumb />
|
|
@@ -32,15 +32,23 @@ function ScrollAreaRoot({ className, ref, ...props }) {
|
|
|
32
32
|
/**
|
|
33
33
|
* The scrollable viewport container.
|
|
34
34
|
*/
|
|
35
|
-
function ScrollAreaViewport({ className,
|
|
35
|
+
function ScrollAreaViewport({ className, ref, ...props }) {
|
|
36
36
|
const classes = mergeBaseClassName(["scroll-area__viewport"].filter(Boolean).join(" "), className);
|
|
37
37
|
return /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
|
|
38
38
|
ref,
|
|
39
39
|
"data-slot": "scroll-area-viewport",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
className: classes,
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Content wrapper that keeps Base UI's overflow measurements in sync.
|
|
46
|
+
*/
|
|
47
|
+
function ScrollAreaContent({ className, ref, ...props }) {
|
|
48
|
+
const classes = mergeBaseClassName(["scroll-area__content"].filter(Boolean).join(" "), className);
|
|
49
|
+
return /* @__PURE__ */ jsx(ScrollArea$1.Content, {
|
|
50
|
+
ref,
|
|
51
|
+
"data-slot": "scroll-area-content",
|
|
44
52
|
className: classes,
|
|
45
53
|
...props
|
|
46
54
|
});
|
|
@@ -91,7 +99,7 @@ function ScrollAreaCorner({ className, ref, ...props }) {
|
|
|
91
99
|
* // Vertical scroll
|
|
92
100
|
* <ScrollArea.Root style={{ height: 200 }}>
|
|
93
101
|
* <ScrollArea.Viewport>
|
|
94
|
-
* <
|
|
102
|
+
* <ScrollArea.Content>Long content...</ScrollArea.Content>
|
|
95
103
|
* </ScrollArea.Viewport>
|
|
96
104
|
* <ScrollArea.Scrollbar>
|
|
97
105
|
* <ScrollArea.Thumb />
|
|
@@ -104,7 +112,7 @@ function ScrollAreaCorner({ className, ref, ...props }) {
|
|
|
104
112
|
* // Both scrollbars
|
|
105
113
|
* <ScrollArea.Root style={{ height: 200, width: 300 }}>
|
|
106
114
|
* <ScrollArea.Viewport>
|
|
107
|
-
* <
|
|
115
|
+
* <ScrollArea.Content style={{ width: 600 }}>Wide and tall content...</ScrollArea.Content>
|
|
108
116
|
* </ScrollArea.Viewport>
|
|
109
117
|
* <ScrollArea.Scrollbar orientation="vertical">
|
|
110
118
|
* <ScrollArea.Thumb />
|
|
@@ -121,6 +129,7 @@ function ScrollAreaCorner({ className, ref, ...props }) {
|
|
|
121
129
|
const ScrollArea = {
|
|
122
130
|
Root: ScrollAreaRoot,
|
|
123
131
|
Viewport: ScrollAreaViewport,
|
|
132
|
+
Content: ScrollAreaContent,
|
|
124
133
|
Scrollbar: ScrollAreaScrollbar,
|
|
125
134
|
Thumb: ScrollAreaThumb,
|
|
126
135
|
Corner: ScrollAreaCorner
|
|
@@ -39,13 +39,13 @@ function SelectLabel({ className, ref, ...props }) {
|
|
|
39
39
|
const classes = mergeBaseClassName(["select__label"].filter(Boolean).join(" "), className);
|
|
40
40
|
return /* @__PURE__ */ jsx(Select$1.Label, {
|
|
41
41
|
ref,
|
|
42
|
-
"data-slot": "select-label",
|
|
42
|
+
"data-slot": "select-field-label",
|
|
43
43
|
className: classes,
|
|
44
44
|
...props
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function SelectTrigger({ size = "sm", className, ref, ...props }) {
|
|
48
|
-
const classes = mergeBaseClassName(
|
|
48
|
+
const classes = mergeBaseClassName("select__trigger", className);
|
|
49
49
|
return /* @__PURE__ */ jsx(Select$1.Trigger, {
|
|
50
50
|
ref,
|
|
51
51
|
"data-slot": "select-trigger",
|
|
@@ -106,9 +106,7 @@ declare function SliderLabel({
|
|
|
106
106
|
className,
|
|
107
107
|
ref,
|
|
108
108
|
...props
|
|
109
|
-
}: SliderLabelProps
|
|
110
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
111
|
-
}): React.JSX.Element;
|
|
109
|
+
}: SliderLabelProps): React.JSX.Element;
|
|
112
110
|
declare const Slider: {
|
|
113
111
|
Root: typeof SliderRoot;
|
|
114
112
|
Label: typeof SliderLabel;
|