@mcp-b/react-components 0.34.1 → 0.36.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-CV-GuYA6.d.ts → AgentChat-CVO7xyLC.d.ts} +22 -3
- package/dist/{CodeBlock-CM5gfmdq.js → CodeBlock-Bk4nn7l-.js} +4 -3
- package/dist/{CodeBlock-DzGhYyNe.d.ts → CodeBlock-C380GD5t.d.ts} +2 -5
- package/dist/{Dialog-DeOSJ0Oy.d.ts → Dialog-B_FhRWaz.d.ts} +22 -37
- package/dist/{Menu-DVmjBIuM.d.ts → Menu-yb6QXWA3.d.ts} +64 -75
- package/dist/{PromptInput-DOyee1kM.d.ts → PromptInput-BRX7FhjH.d.ts} +7 -272
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +68 -0
- package/dist/{Select-D96d09ww.d.ts → Select-RrceeEIe.d.ts} +17 -52
- package/dist/{ThinkChat-en0UbkVv.js → ThinkChat-ByR-QT_D.js} +19 -12
- package/dist/{ThinkChatActivity-CgqpROz_.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-BrQZOQn_.d.ts} +4 -6
- package/dist/{WorkspaceFile-C8Riev9j.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +18 -2
- package/dist/{WorkspaceFileView-BtzVKAed.js → WorkspaceFileView-DTHJLKW_.js} +11 -17
- package/dist/components/agents-sdk/AgentChat.d.ts +2 -2
- package/dist/components/agents-sdk/AgentChat.js +47 -26
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +47 -1
- package/dist/components/agents-sdk/BrowserReplay.d.ts +40 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +14 -15
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +17 -24
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +19 -17
- package/dist/components/agents-sdk/ModelSelector.d.ts +9 -9
- package/dist/components/agents-sdk/ModelSelector.js +504 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/SubagentRunDetails.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +18 -95
- package/dist/components/agents-sdk/ThinkChat.js +2 -12
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +2 -4
- package/dist/components/agents-sdk/ThinkChatActivity.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -8
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +5 -3
- package/dist/components/agents-sdk/ThinkExecutionRun.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +12 -14
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkPendingApproval.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +5 -4
- package/dist/components/agents-sdk/ThinkRoutineForm.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +2 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +11 -15
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -4
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +140 -2
- package/dist/components/agents-sdk/Workspace.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +32 -5
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -5
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +41 -4
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/ai-sdk/Activity.d.ts +5 -0
- package/dist/components/ai-sdk/Activity.js +33 -13
- package/dist/components/ai-sdk/Approval.d.ts +1 -2
- package/dist/components/ai-sdk/Approval.js +4 -7
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/Message.js +2 -6
- package/dist/components/ai-sdk/MessageScroller.d.ts +5 -0
- package/dist/components/ai-sdk/MessageScroller.js +18 -12
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +18 -10
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +124 -127
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.d.ts +3 -4
- package/dist/components/ai-sdk/Reasoning.js +29 -13
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -5
- package/dist/components/ai-sdk/ToolInvocation.js +2 -2
- package/dist/components/extension/ChatGptSignInScreen.js +2 -2
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/foundations/Accordion.d.ts +1 -3
- package/dist/components/foundations/Accordion.js +1 -3
- package/dist/components/foundations/AlertDialog.d.ts +16 -36
- package/dist/components/foundations/Autocomplete.d.ts +12 -33
- package/dist/components/foundations/Autocomplete.js +2 -1
- package/dist/components/foundations/Combobox.d.ts +119 -2
- package/dist/components/foundations/Combobox.js +6 -23
- package/dist/components/foundations/ContextMenu.d.ts +50 -57
- package/dist/components/foundations/ContextMenu.js +4 -28
- package/dist/components/foundations/DescriptionList.d.ts +34 -2
- package/dist/components/foundations/DescriptionList.js +33 -2
- package/dist/components/foundations/Dialog.d.ts +1 -1
- package/dist/components/foundations/Dialog.js +2 -1
- package/dist/components/foundations/EmptyState.d.ts +5 -2
- package/dist/components/foundations/EmptyState.js +11 -7
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +3 -21
- package/dist/components/foundations/Menubar.d.ts +35 -64
- package/dist/components/foundations/Menubar.js +3 -22
- package/dist/components/foundations/Popover.d.ts +8 -21
- package/dist/components/foundations/Popover.js +3 -48
- package/dist/components/foundations/PreviewCard.d.ts +44 -29
- package/dist/components/foundations/PreviewCard.js +3 -6
- package/dist/components/foundations/RadioGroup.d.ts +4 -6
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +7 -21
- package/dist/components/foundations/Slider.d.ts +31 -44
- package/dist/components/foundations/Slider.js +26 -25
- package/dist/components/foundations/Stepper.d.ts +3 -3
- package/dist/components/foundations/Stepper.js +5 -6
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/Tooltip.d.ts +6 -8
- package/dist/components/foundations/Tooltip.js +4 -3
- package/dist/components/general-purpose/Commit.js +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.d.ts +2 -3
- package/dist/components/general-purpose/PricingBillingToggle.js +4 -22
- package/dist/components/general-purpose/PricingPage.d.ts +3 -4
- package/dist/components/general-purpose/ResizableSidePanel.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -67
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +7 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +18 -3
- package/dist/components/general-purpose/Terminal.js +3 -3
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.js +4 -4
- package/dist/components/nanites/AgentConnection.js +16 -11
- package/dist/components/nanites/AgentToolDetail.js +6 -7
- package/dist/{format-CmopcfqJ.js → format-DB2mX9DA.js} +16 -1
- package/dist/{mcp-server-U71zhxFF.js → mcp-server-SD_S-IpB.js} +18 -2
- package/dist/message-scroller-C8cplcQO.js +32 -0
- package/dist/{progress-ring-Dz_ztrW2.js → progress-ring-BEocM1e3.js} +1 -1
- package/dist/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +25 -0
- package/dist/styles/agent-connection.css +4 -31
- package/dist/styles/agent-tool-detail.css +0 -7
- package/dist/styles/alert-dialog.css +0 -2
- package/dist/styles/base-ui-motion.css +7 -5
- package/dist/styles/chatgpt-sign-in-screen.css +5 -3
- package/dist/styles/dialog.css +0 -2
- package/dist/styles/field.css +2 -2
- package/dist/styles/model-selector.css +30 -12
- package/dist/styles/popover.css +0 -1
- package/dist/styles/preview-card.css +0 -4
- package/dist/styles/pricing-page.css +1 -13
- package/dist/styles/prompt-input.css +12 -10
- package/dist/styles/recipes.css +22 -14
- package/dist/styles/slider.css +2 -2
- package/dist/styles/think-execution-workbench.css +9 -13
- package/dist/styles/think-routine-library.css +2 -30
- package/dist/styles/tooltip.css +0 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +17 -7
- package/dist/BrowserLiveView-tJTWkoyu.d.ts +0 -48
- package/dist/BrowserReplay-B0BQZr-N.d.ts +0 -41
- package/dist/Combobox-WrrDDaEv.d.ts +0 -154
- package/dist/ModelSelector-DzdEs2fX.js +0 -504
- package/dist/Workspace-EhvvlHOB.d.ts +0 -278
- package/dist/WorkspaceExplorer-DygQnEyi.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
|
@@ -5,15 +5,13 @@ import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Popover.Root component.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type PopoverProps<Payload = unknown> = Popover$1.Root.Props<Payload>;
|
|
9
9
|
/**
|
|
10
10
|
* Props for the Popover.Trigger component.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
/** Keep Base UI trigger behavior without the default popover trigger chrome. */
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
interface PopoverAnchorProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
12
|
+
type PopoverTriggerProps<Payload = unknown> = Popover$1.Trigger.Props<Payload> & React.RefAttributes<HTMLElement> & {
|
|
13
|
+
/** Keep Base UI trigger behavior without the default popover trigger chrome. */unstyled?: boolean;
|
|
14
|
+
};
|
|
17
15
|
/**
|
|
18
16
|
* Props for the Popover.Portal component.
|
|
19
17
|
*/
|
|
@@ -52,25 +50,16 @@ interface PopoverDescriptionProps extends React.ComponentPropsWithoutRef<typeof
|
|
|
52
50
|
*/
|
|
53
51
|
interface PopoverCloseProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Close> {}
|
|
54
52
|
interface PopoverHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
55
|
-
declare function PopoverAnchor({
|
|
56
|
-
className,
|
|
57
|
-
ref,
|
|
58
|
-
...props
|
|
59
|
-
}: PopoverAnchorProps & {
|
|
60
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
61
|
-
}): React.JSX.Element;
|
|
62
53
|
/**
|
|
63
54
|
* Button that toggles the popover visibility.
|
|
64
55
|
* Renders a `<button>` element.
|
|
65
56
|
*/
|
|
66
|
-
declare function PopoverTrigger({
|
|
57
|
+
declare function PopoverTrigger<Payload>({
|
|
67
58
|
className,
|
|
68
59
|
unstyled,
|
|
69
60
|
ref,
|
|
70
61
|
...props
|
|
71
|
-
}: PopoverTriggerProps
|
|
72
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
73
|
-
}): React.JSX.Element;
|
|
62
|
+
}: PopoverTriggerProps<Payload>): React.JSX.Element;
|
|
74
63
|
/**
|
|
75
64
|
* Optional backdrop that appears behind the popover.
|
|
76
65
|
*/
|
|
@@ -94,7 +83,6 @@ declare function PopoverBackdrop({
|
|
|
94
83
|
*/
|
|
95
84
|
declare function PopoverPositioner({
|
|
96
85
|
className,
|
|
97
|
-
anchor,
|
|
98
86
|
ref,
|
|
99
87
|
...props
|
|
100
88
|
}: PopoverPositionerProps & {
|
|
@@ -215,8 +203,7 @@ declare function PopoverClose({
|
|
|
215
203
|
*/
|
|
216
204
|
declare const Popover: {
|
|
217
205
|
createHandle: typeof Popover$1.createHandle;
|
|
218
|
-
Root:
|
|
219
|
-
Anchor: typeof PopoverAnchor;
|
|
206
|
+
Root: typeof Popover$1.Root;
|
|
220
207
|
Trigger: typeof PopoverTrigger;
|
|
221
208
|
Portal: (props: PopoverPortalProps) => React.JSX.Element;
|
|
222
209
|
Backdrop: typeof PopoverBackdrop;
|
|
@@ -230,4 +217,4 @@ declare const Popover: {
|
|
|
230
217
|
Close: typeof PopoverClose;
|
|
231
218
|
};
|
|
232
219
|
//#endregion
|
|
233
|
-
export { Popover,
|
|
220
|
+
export { Popover, PopoverArrowProps, PopoverBackdropProps, PopoverCloseProps, PopoverDescriptionProps, PopoverHeaderProps, PopoverPopupProps, PopoverPortalProps, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, PopoverViewportProps };
|
|
@@ -1,51 +1,9 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { buttonVariants } from "./Button.js";
|
|
3
|
-
import
|
|
4
|
-
import * as React from "react";
|
|
3
|
+
import "react";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
7
6
|
//#region src/components/foundations/Popover.tsx
|
|
8
|
-
const PopoverAnchorContext = React.createContext(null);
|
|
9
|
-
/**
|
|
10
|
-
* Controls the popover's open state and manages triggers.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <Popover.Root>
|
|
15
|
-
* <Popover.Trigger>Open</Popover.Trigger>
|
|
16
|
-
* <Popover.Portal>
|
|
17
|
-
* <Popover.Positioner>
|
|
18
|
-
* <Popover.Popup>
|
|
19
|
-
* <Popover.Title>Popover Title</Popover.Title>
|
|
20
|
-
* <Popover.Description>Content here</Popover.Description>
|
|
21
|
-
* </Popover.Popup>
|
|
22
|
-
* </Popover.Positioner>
|
|
23
|
-
* </Popover.Portal>
|
|
24
|
-
* </Popover.Root>
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link https://base-ui.com/react/components/popover | Base UI Popover}
|
|
28
|
-
*/
|
|
29
|
-
const PopoverRoot = (props) => {
|
|
30
|
-
const anchorRef = React.useRef(null);
|
|
31
|
-
return /* @__PURE__ */ jsx(PopoverAnchorContext.Provider, {
|
|
32
|
-
value: anchorRef,
|
|
33
|
-
children: /* @__PURE__ */ jsx(Popover$1.Root, {
|
|
34
|
-
"data-slot": "popover",
|
|
35
|
-
...props
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
function PopoverAnchor({ className, ref, ...props }) {
|
|
40
|
-
const anchorRef = React.useContext(PopoverAnchorContext);
|
|
41
|
-
const classes = mergeBaseClassName("popover__anchor", className);
|
|
42
|
-
return /* @__PURE__ */ jsx("div", {
|
|
43
|
-
ref: mergeRefs(anchorRef ?? void 0, ref),
|
|
44
|
-
"data-slot": "popover-anchor",
|
|
45
|
-
className: classes,
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
7
|
/**
|
|
50
8
|
* Button that toggles the popover visibility.
|
|
51
9
|
* Renders a `<button>` element.
|
|
@@ -89,12 +47,10 @@ function PopoverBackdrop({ className, ref, ...props }) {
|
|
|
89
47
|
* </Popover.Positioner>
|
|
90
48
|
* ```
|
|
91
49
|
*/
|
|
92
|
-
function PopoverPositioner({ className,
|
|
93
|
-
const anchorRef = React.useContext(PopoverAnchorContext);
|
|
50
|
+
function PopoverPositioner({ className, ref, ...props }) {
|
|
94
51
|
const classes = mergeBaseClassName("popover__positioner base-ui-positioner", className);
|
|
95
52
|
return /* @__PURE__ */ jsx(Popover$1.Positioner, {
|
|
96
53
|
ref,
|
|
97
|
-
anchor: anchor ?? anchorRef ?? void 0,
|
|
98
54
|
className: classes,
|
|
99
55
|
...props
|
|
100
56
|
});
|
|
@@ -232,8 +188,7 @@ function PopoverClose({ render, className, ref, ...props }) {
|
|
|
232
188
|
*/
|
|
233
189
|
const Popover = {
|
|
234
190
|
createHandle: Popover$1.createHandle,
|
|
235
|
-
Root:
|
|
236
|
-
Anchor: PopoverAnchor,
|
|
191
|
+
Root: Popover$1.Root,
|
|
237
192
|
Trigger: PopoverTrigger,
|
|
238
193
|
Portal: PopoverPortal,
|
|
239
194
|
Backdrop: PopoverBackdrop,
|
|
@@ -5,46 +5,71 @@ import { PreviewCard as PreviewCard$1 } from "@base-ui/react/preview-card";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the PreviewCard.Root component.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type PreviewCardProps<Payload = unknown> = PreviewCard$1.Root.Props<Payload>;
|
|
9
9
|
/**
|
|
10
10
|
* Props for the PreviewCard.Trigger component.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
type PreviewCardTriggerProps<Payload = unknown> = PreviewCard$1.Trigger.Props<Payload> & React.RefAttributes<HTMLElement>;
|
|
13
13
|
/**
|
|
14
14
|
* Props for the PreviewCard.Portal component.
|
|
15
15
|
*/
|
|
16
|
-
interface PreviewCardPortalProps extends React.
|
|
16
|
+
interface PreviewCardPortalProps extends React.ComponentPropsWithRef<typeof PreviewCard$1.Portal> {}
|
|
17
17
|
/**
|
|
18
18
|
* Props for the PreviewCard.Backdrop component.
|
|
19
19
|
*/
|
|
20
|
-
interface PreviewCardBackdropProps extends React.
|
|
20
|
+
interface PreviewCardBackdropProps extends React.ComponentPropsWithRef<typeof PreviewCard$1.Backdrop> {}
|
|
21
21
|
/**
|
|
22
22
|
* Props for the PreviewCard.Positioner component.
|
|
23
23
|
*/
|
|
24
|
-
interface PreviewCardPositionerProps extends React.
|
|
24
|
+
interface PreviewCardPositionerProps extends React.ComponentPropsWithRef<typeof PreviewCard$1.Positioner> {}
|
|
25
25
|
/**
|
|
26
26
|
* Props for the PreviewCard.Popup component.
|
|
27
27
|
*/
|
|
28
|
-
interface PreviewCardPopupProps extends React.
|
|
28
|
+
interface PreviewCardPopupProps extends React.ComponentPropsWithRef<typeof PreviewCard$1.Popup> {}
|
|
29
29
|
/**
|
|
30
30
|
* Props for the PreviewCard.Viewport component. Use this only when one
|
|
31
31
|
* preview card moves between triggers and its content changes in place.
|
|
32
32
|
*/
|
|
33
|
-
interface PreviewCardViewportProps extends React.
|
|
33
|
+
interface PreviewCardViewportProps extends React.ComponentPropsWithRef<typeof PreviewCard$1.Viewport> {}
|
|
34
34
|
/**
|
|
35
35
|
* Props for the PreviewCard.Arrow component.
|
|
36
36
|
*/
|
|
37
|
-
interface PreviewCardArrowProps extends React.
|
|
37
|
+
interface PreviewCardArrowProps extends React.ComponentPropsWithRef<typeof PreviewCard$1.Arrow> {}
|
|
38
|
+
/**
|
|
39
|
+
* Root component that manages preview card state.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <PreviewCard.Root>
|
|
44
|
+
* <PreviewCard.Trigger href="/profile">
|
|
45
|
+
* View Profile
|
|
46
|
+
* </PreviewCard.Trigger>
|
|
47
|
+
* <PreviewCard.Portal>
|
|
48
|
+
* <PreviewCard.Positioner>
|
|
49
|
+
* <PreviewCard.Popup>
|
|
50
|
+
* <img src="/avatar.jpg" alt="User avatar" />
|
|
51
|
+
* <h3>John Doe</h3>
|
|
52
|
+
* <p>Software Engineer</p>
|
|
53
|
+
* </PreviewCard.Popup>
|
|
54
|
+
* </PreviewCard.Positioner>
|
|
55
|
+
* </PreviewCard.Portal>
|
|
56
|
+
* </PreviewCard.Root>
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @see {@link https://base-ui.com/react/components/preview-card | Base UI PreviewCard}
|
|
60
|
+
*/
|
|
38
61
|
/**
|
|
39
62
|
* Link element that triggers the preview card on hover.
|
|
40
63
|
*/
|
|
41
|
-
declare function PreviewCardTrigger({
|
|
64
|
+
declare function PreviewCardTrigger<Payload>({
|
|
42
65
|
className,
|
|
43
66
|
ref,
|
|
44
67
|
...props
|
|
45
|
-
}: PreviewCardTriggerProps
|
|
46
|
-
|
|
47
|
-
|
|
68
|
+
}: PreviewCardTriggerProps<Payload>): React.JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
* Renders preview card content in a portal.
|
|
71
|
+
*/
|
|
72
|
+
declare function PreviewCardPortal(props: PreviewCardPortalProps): React.JSX.Element;
|
|
48
73
|
/**
|
|
49
74
|
* Optional backdrop behind the preview card.
|
|
50
75
|
*/
|
|
@@ -52,9 +77,7 @@ declare function PreviewCardBackdrop({
|
|
|
52
77
|
className,
|
|
53
78
|
ref,
|
|
54
79
|
...props
|
|
55
|
-
}: PreviewCardBackdropProps
|
|
56
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
57
|
-
}): React.JSX.Element;
|
|
80
|
+
}: PreviewCardBackdropProps): React.JSX.Element;
|
|
58
81
|
/**
|
|
59
82
|
* Positions the preview card relative to the trigger.
|
|
60
83
|
*/
|
|
@@ -62,9 +85,7 @@ declare function PreviewCardPositioner({
|
|
|
62
85
|
className,
|
|
63
86
|
ref,
|
|
64
87
|
...props
|
|
65
|
-
}: PreviewCardPositionerProps
|
|
66
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
67
|
-
}): React.JSX.Element;
|
|
88
|
+
}: PreviewCardPositionerProps): React.JSX.Element;
|
|
68
89
|
/**
|
|
69
90
|
* Container for preview card content.
|
|
70
91
|
*/
|
|
@@ -72,9 +93,7 @@ declare function PreviewCardPopup({
|
|
|
72
93
|
className,
|
|
73
94
|
ref,
|
|
74
95
|
...props
|
|
75
|
-
}: PreviewCardPopupProps
|
|
76
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
77
|
-
}): React.JSX.Element;
|
|
96
|
+
}: PreviewCardPopupProps): React.JSX.Element;
|
|
78
97
|
/**
|
|
79
98
|
* Transition container for content that changes as a preview card moves
|
|
80
99
|
* between triggers. Pair the adaptive classes from `base-ui-motion.css` with
|
|
@@ -84,9 +103,7 @@ declare function PreviewCardViewport({
|
|
|
84
103
|
className,
|
|
85
104
|
ref,
|
|
86
105
|
...props
|
|
87
|
-
}: PreviewCardViewportProps
|
|
88
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
89
|
-
}): React.JSX.Element;
|
|
106
|
+
}: PreviewCardViewportProps): React.JSX.Element;
|
|
90
107
|
/**
|
|
91
108
|
* Decorative arrow pointing to the trigger.
|
|
92
109
|
*/
|
|
@@ -94,9 +111,7 @@ declare function PreviewCardArrow({
|
|
|
94
111
|
className,
|
|
95
112
|
ref,
|
|
96
113
|
...props
|
|
97
|
-
}: PreviewCardArrowProps
|
|
98
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
99
|
-
}): React.JSX.Element;
|
|
114
|
+
}: PreviewCardArrowProps): React.JSX.Element;
|
|
100
115
|
/**
|
|
101
116
|
* A popup that appears when a link is hovered, showing a preview for sighted users.
|
|
102
117
|
* Useful for showing user profiles, link previews, or additional context.
|
|
@@ -127,9 +142,9 @@ declare function PreviewCardArrow({
|
|
|
127
142
|
*/
|
|
128
143
|
declare const PreviewCard: {
|
|
129
144
|
createHandle: typeof PreviewCard$1.createHandle;
|
|
130
|
-
Root: (props:
|
|
145
|
+
Root: <Payload>(props: PreviewCard$1.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
131
146
|
Trigger: typeof PreviewCardTrigger;
|
|
132
|
-
Portal:
|
|
147
|
+
Portal: typeof PreviewCardPortal;
|
|
133
148
|
Backdrop: typeof PreviewCardBackdrop;
|
|
134
149
|
Positioner: typeof PreviewCardPositioner;
|
|
135
150
|
Popup: typeof PreviewCardPopup;
|
|
@@ -26,9 +26,6 @@ import { PreviewCard as PreviewCard$1 } from "@base-ui/react/preview-card";
|
|
|
26
26
|
*
|
|
27
27
|
* @see {@link https://base-ui.com/react/components/preview-card | Base UI PreviewCard}
|
|
28
28
|
*/
|
|
29
|
-
const PreviewCardRoot = (props) => {
|
|
30
|
-
return /* @__PURE__ */ jsx(PreviewCard$1.Root, { ...props });
|
|
31
|
-
};
|
|
32
29
|
/**
|
|
33
30
|
* Link element that triggers the preview card on hover.
|
|
34
31
|
*/
|
|
@@ -44,12 +41,12 @@ function PreviewCardTrigger({ className, ref, ...props }) {
|
|
|
44
41
|
/**
|
|
45
42
|
* Renders preview card content in a portal.
|
|
46
43
|
*/
|
|
47
|
-
|
|
44
|
+
function PreviewCardPortal(props) {
|
|
48
45
|
return /* @__PURE__ */ jsx(PreviewCard$1.Portal, {
|
|
49
46
|
"data-slot": "hover-card-portal",
|
|
50
47
|
...props
|
|
51
48
|
});
|
|
52
|
-
}
|
|
49
|
+
}
|
|
53
50
|
/**
|
|
54
51
|
* Optional backdrop behind the preview card.
|
|
55
52
|
*/
|
|
@@ -142,7 +139,7 @@ function PreviewCardArrow({ className, ref, ...props }) {
|
|
|
142
139
|
*/
|
|
143
140
|
const PreviewCard = {
|
|
144
141
|
createHandle: PreviewCard$1.createHandle,
|
|
145
|
-
Root:
|
|
142
|
+
Root: PreviewCard$1.Root,
|
|
146
143
|
Trigger: PreviewCardTrigger,
|
|
147
144
|
Portal: PreviewCardPortal,
|
|
148
145
|
Backdrop: PreviewCardBackdrop,
|
|
@@ -3,13 +3,13 @@ import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
|
3
3
|
import { Radio as Radio$1 } from "@base-ui/react/radio";
|
|
4
4
|
|
|
5
5
|
//#region src/components/foundations/RadioGroup.d.ts
|
|
6
|
-
|
|
6
|
+
type RadioGroupProps<Value = unknown> = RadioGroup$1.Props<Value> & {
|
|
7
7
|
/**
|
|
8
8
|
* The orientation of the radio group.
|
|
9
9
|
* @default 'vertical'
|
|
10
10
|
*/
|
|
11
11
|
orientation?: "horizontal" | "vertical";
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
interface RadioProps extends React.ComponentPropsWithRef<typeof Radio$1.Root> {}
|
|
14
14
|
interface RadioIndicatorProps extends React.ComponentPropsWithRef<typeof Radio$1.Indicator> {}
|
|
15
15
|
/**
|
|
@@ -35,14 +35,12 @@ interface RadioIndicatorProps extends React.ComponentPropsWithRef<typeof Radio$1
|
|
|
35
35
|
*
|
|
36
36
|
* @see {@link https://base-ui.com/react/components/radio-group | Base UI Radio Group}
|
|
37
37
|
*/
|
|
38
|
-
declare function RadioGroupRoot({
|
|
38
|
+
declare function RadioGroupRoot<Value>({
|
|
39
39
|
orientation,
|
|
40
40
|
className,
|
|
41
41
|
ref,
|
|
42
42
|
...props
|
|
43
|
-
}: RadioGroupProps
|
|
44
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
45
|
-
}): React.JSX.Element;
|
|
43
|
+
}: RadioGroupProps<Value>): React.JSX.Element;
|
|
46
44
|
/**
|
|
47
45
|
* A single radio button within a RadioGroup.
|
|
48
46
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SelectSeparatorProps, a as SelectIconProps, c as SelectItemTextProps, d as SelectPopupProps, f as SelectPortalProps, g as SelectScrollUpArrowProps, h as SelectScrollDownArrowProps, i as SelectGroupProps, l as SelectLabelProps, m as SelectProps, n as SelectBackdropProps, o as SelectItemIndicatorProps, p as SelectPositionerProps, r as SelectGroupLabelProps, s as SelectItemProps, t as Select, u as SelectListProps, v as SelectTriggerProps, y as SelectValueProps } from "../../Select-
|
|
1
|
+
import { _ as SelectSeparatorProps, a as SelectIconProps, c as SelectItemTextProps, d as SelectPopupProps, f as SelectPortalProps, g as SelectScrollUpArrowProps, h as SelectScrollDownArrowProps, i as SelectGroupProps, l as SelectLabelProps, m as SelectProps, n as SelectBackdropProps, o as SelectItemIndicatorProps, p as SelectPositionerProps, r as SelectGroupLabelProps, s as SelectItemProps, t as Select, u as SelectListProps, v as SelectTriggerProps, y as SelectValueProps } from "../../Select-RrceeEIe.js";
|
|
2
2
|
export { Select, SelectBackdropProps, SelectGroupLabelProps, SelectGroupProps, SelectIconProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectLabelProps, SelectListProps, SelectPopupProps, SelectPortalProps, SelectPositionerProps, SelectProps, SelectScrollDownArrowProps, SelectScrollUpArrowProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-B1Qw05te.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { jsx
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
6
6
|
//#region src/components/foundations/Select.tsx
|
|
7
7
|
/**
|
|
@@ -29,12 +29,6 @@ import { Select as Select$1 } from "@base-ui/react/select";
|
|
|
29
29
|
*
|
|
30
30
|
* @see {@link https://base-ui.com/react/components/select | Base UI Select}
|
|
31
31
|
*/
|
|
32
|
-
function SelectRoot(props) {
|
|
33
|
-
return /* @__PURE__ */ jsx(Select$1.Root, {
|
|
34
|
-
"data-slot": "select",
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
32
|
function SelectLabel({ className, ref, ...props }) {
|
|
39
33
|
const classes = mergeBaseClassName("select__label", className);
|
|
40
34
|
return /* @__PURE__ */ jsx(Select$1.Label, {
|
|
@@ -54,13 +48,11 @@ function SelectTrigger({ size = "sm", className, ref, ...props }) {
|
|
|
54
48
|
...props
|
|
55
49
|
});
|
|
56
50
|
}
|
|
57
|
-
function SelectValue({
|
|
51
|
+
function SelectValue({ ref, ...props }) {
|
|
58
52
|
return /* @__PURE__ */ jsx(Select$1.Value, {
|
|
59
53
|
ref,
|
|
60
54
|
"data-slot": "select-value",
|
|
61
|
-
|
|
62
|
-
...props,
|
|
63
|
-
children
|
|
55
|
+
...props
|
|
64
56
|
});
|
|
65
57
|
}
|
|
66
58
|
function SelectIcon({ className, children, ref, ...props }) {
|
|
@@ -134,18 +126,13 @@ function SelectItemIndicator({ className, children, ref, ...props }) {
|
|
|
134
126
|
children: children ?? /* @__PURE__ */ jsx(CheckIcon, {})
|
|
135
127
|
});
|
|
136
128
|
}
|
|
137
|
-
function SelectGroup({
|
|
129
|
+
function SelectGroup({ className, ref, ...props }) {
|
|
138
130
|
const classes = mergeBaseClassName("select__option-group", className);
|
|
139
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ jsx(Select$1.Group, {
|
|
140
132
|
ref,
|
|
141
133
|
"data-slot": "select-group",
|
|
142
134
|
className: classes,
|
|
143
|
-
...props
|
|
144
|
-
children: [label && /* @__PURE__ */ jsx(Select$1.GroupLabel, {
|
|
145
|
-
"data-slot": "select-label",
|
|
146
|
-
className: "select__group-label",
|
|
147
|
-
children: label
|
|
148
|
-
}), children]
|
|
135
|
+
...props
|
|
149
136
|
});
|
|
150
137
|
}
|
|
151
138
|
function SelectGroupLabel({ className, ref, ...props }) {
|
|
@@ -187,7 +174,7 @@ function SelectScrollDownArrow({ className, children, ref, ...props }) {
|
|
|
187
174
|
});
|
|
188
175
|
}
|
|
189
176
|
const Select = {
|
|
190
|
-
Root:
|
|
177
|
+
Root: Select$1.Root,
|
|
191
178
|
Label: SelectLabel,
|
|
192
179
|
Trigger: SelectTrigger,
|
|
193
180
|
Value: SelectValue,
|
|
@@ -196,7 +183,6 @@ const Select = {
|
|
|
196
183
|
Backdrop: SelectBackdrop,
|
|
197
184
|
Positioner: SelectPositioner,
|
|
198
185
|
Popup: SelectPopup,
|
|
199
|
-
Arrow: Select$1.Arrow,
|
|
200
186
|
List: SelectList,
|
|
201
187
|
Item: SelectItem,
|
|
202
188
|
ItemText: SelectItemText,
|
|
@@ -2,53 +2,51 @@ import * as React from "react";
|
|
|
2
2
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
3
3
|
|
|
4
4
|
//#region src/components/foundations/Slider.d.ts
|
|
5
|
-
|
|
5
|
+
type SliderRootProps<Value extends number | readonly number[] = number | readonly number[]> = Slider$1.Root.Props<Value> & React.RefAttributes<HTMLDivElement>;
|
|
6
6
|
interface SliderControlProps extends React.ComponentPropsWithRef<typeof Slider$1.Control> {}
|
|
7
7
|
interface SliderTrackProps extends React.ComponentPropsWithRef<typeof Slider$1.Track> {}
|
|
8
8
|
interface SliderIndicatorProps extends React.ComponentPropsWithRef<typeof Slider$1.Indicator> {}
|
|
9
9
|
interface SliderThumbProps extends React.ComponentPropsWithRef<typeof Slider$1.Thumb> {}
|
|
10
|
-
interface
|
|
11
|
-
children?: (value: number, values: readonly number[], formattedValues: readonly string[]) => React.ReactNode;
|
|
12
|
-
}
|
|
10
|
+
interface SliderValueProps extends React.ComponentPropsWithRef<typeof Slider$1.Value> {}
|
|
13
11
|
interface SliderLabelProps extends React.ComponentPropsWithRef<typeof Slider$1.Label> {}
|
|
14
12
|
/**
|
|
15
13
|
* A slider component for selecting values from a range.
|
|
16
14
|
*
|
|
17
15
|
* @example
|
|
18
16
|
* ```tsx
|
|
19
|
-
* <Slider defaultValue={50}>
|
|
20
|
-
* <
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* <
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
17
|
+
* <Slider.Root defaultValue={50}>
|
|
18
|
+
* <Slider.Label>Volume</Slider.Label>
|
|
19
|
+
* <Slider.Control>
|
|
20
|
+
* <Slider.Track>
|
|
21
|
+
* <Slider.Indicator />
|
|
22
|
+
* <Slider.Thumb />
|
|
23
|
+
* </Slider.Track>
|
|
24
|
+
* </Slider.Control>
|
|
25
|
+
* </Slider.Root>
|
|
27
26
|
* ```
|
|
28
27
|
*
|
|
29
28
|
* @example
|
|
30
29
|
* ```tsx
|
|
31
30
|
* // With output value display
|
|
32
|
-
* <Slider defaultValue={50}>
|
|
33
|
-
* <
|
|
34
|
-
* <
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* <
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
31
|
+
* <Slider.Root defaultValue={50}>
|
|
32
|
+
* <Slider.Label>Volume</Slider.Label>
|
|
33
|
+
* <Slider.Value />
|
|
34
|
+
* <Slider.Control>
|
|
35
|
+
* <Slider.Track>
|
|
36
|
+
* <Slider.Indicator />
|
|
37
|
+
* <Slider.Thumb />
|
|
38
|
+
* </Slider.Track>
|
|
39
|
+
* </Slider.Control>
|
|
40
|
+
* </Slider.Root>
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
43
43
|
* @see {@link https://base-ui.com/react/components/slider | Base UI Slider}
|
|
44
44
|
*/
|
|
45
|
-
declare function SliderRoot({
|
|
45
|
+
declare function SliderRoot<Value extends number | readonly number[]>({
|
|
46
46
|
className,
|
|
47
47
|
ref,
|
|
48
48
|
...props
|
|
49
|
-
}:
|
|
50
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
51
|
-
}): React.JSX.Element;
|
|
49
|
+
}: SliderRootProps<Value>): React.JSX.Element;
|
|
52
50
|
/**
|
|
53
51
|
* The control area for the Slider (handles interactions).
|
|
54
52
|
*/
|
|
@@ -56,9 +54,7 @@ declare function SliderControl({
|
|
|
56
54
|
className,
|
|
57
55
|
ref,
|
|
58
56
|
...props
|
|
59
|
-
}: SliderControlProps
|
|
60
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
61
|
-
}): React.JSX.Element;
|
|
57
|
+
}: SliderControlProps): React.JSX.Element;
|
|
62
58
|
/**
|
|
63
59
|
* The track container for the Slider.
|
|
64
60
|
*/
|
|
@@ -66,9 +62,7 @@ declare function SliderTrack({
|
|
|
66
62
|
className,
|
|
67
63
|
ref,
|
|
68
64
|
...props
|
|
69
|
-
}: SliderTrackProps
|
|
70
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
71
|
-
}): React.JSX.Element;
|
|
65
|
+
}: SliderTrackProps): React.JSX.Element;
|
|
72
66
|
/**
|
|
73
67
|
* The filled indicator showing current value position.
|
|
74
68
|
*/
|
|
@@ -76,9 +70,7 @@ declare function SliderIndicator({
|
|
|
76
70
|
className,
|
|
77
71
|
ref,
|
|
78
72
|
...props
|
|
79
|
-
}: SliderIndicatorProps
|
|
80
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
81
|
-
}): React.JSX.Element;
|
|
73
|
+
}: SliderIndicatorProps): React.JSX.Element;
|
|
82
74
|
/**
|
|
83
75
|
* The draggable thumb for the Slider.
|
|
84
76
|
*/
|
|
@@ -86,21 +78,16 @@ declare function SliderThumb({
|
|
|
86
78
|
className,
|
|
87
79
|
ref,
|
|
88
80
|
...props
|
|
89
|
-
}: SliderThumbProps
|
|
90
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
91
|
-
}): React.JSX.Element;
|
|
81
|
+
}: SliderThumbProps): React.JSX.Element;
|
|
92
82
|
/**
|
|
93
83
|
* Displays the current value of the Slider.
|
|
94
84
|
* Note: This must be used inside a Slider component to access the value context.
|
|
95
85
|
*/
|
|
96
|
-
declare function
|
|
86
|
+
declare function SliderValue({
|
|
97
87
|
className,
|
|
98
|
-
children,
|
|
99
88
|
ref,
|
|
100
89
|
...props
|
|
101
|
-
}:
|
|
102
|
-
ref?: React.Ref<HTMLOutputElement>;
|
|
103
|
-
}): React.JSX.Element;
|
|
90
|
+
}: SliderValueProps): React.JSX.Element;
|
|
104
91
|
/** Visible label that participates in Base UI's slider naming relationship. */
|
|
105
92
|
declare function SliderLabel({
|
|
106
93
|
className,
|
|
@@ -110,11 +97,11 @@ declare function SliderLabel({
|
|
|
110
97
|
declare const Slider: {
|
|
111
98
|
Root: typeof SliderRoot;
|
|
112
99
|
Label: typeof SliderLabel;
|
|
113
|
-
Value: typeof
|
|
100
|
+
Value: typeof SliderValue;
|
|
114
101
|
Control: typeof SliderControl;
|
|
115
102
|
Track: typeof SliderTrack;
|
|
116
103
|
Indicator: typeof SliderIndicator;
|
|
117
104
|
Thumb: typeof SliderThumb;
|
|
118
105
|
};
|
|
119
106
|
//#endregion
|
|
120
|
-
export { Slider, SliderControlProps, SliderIndicatorProps, SliderLabelProps,
|
|
107
|
+
export { Slider, SliderControlProps, SliderIndicatorProps, SliderLabelProps, SliderRootProps, SliderThumbProps, SliderTrackProps, SliderValueProps };
|