@mcp-b/react-components 0.35.0 → 0.37.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-mpacmRU1.d.ts → AgentChat-CVO7xyLC.d.ts} +1 -1
- package/dist/{CodeBlock-DzGhYyNe.d.ts → CodeBlock-C380GD5t.d.ts} +2 -5
- package/dist/{CodeBlock-CM5gfmdq.js → CodeBlock-DO4Hdu1R.js} +4 -3
- package/dist/{Dialog-DeOSJ0Oy.d.ts → Dialog-B_FhRWaz.d.ts} +22 -37
- package/dist/{FileTree-4WP4Uc_m.js → FileTree-DbQMpvxV.js} +1 -1
- 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-DbzqSTBt.js → ThinkChat-DQh59CeC.js} +6 -8
- package/dist/{ThinkChatActivity-BZyN5MBg.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-_pQMyHGM.d.ts} +5 -7
- package/dist/{WorkspaceFile-CVAzjTt6.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +1 -1
- package/dist/{WorkspaceFileView-BmxSbhRu.js → WorkspaceFileView-Cu_ZG6HJ.js} +11 -17
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentActivityPreview.js +4 -4
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +36 -30
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +47 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +2 -2
- package/dist/components/agents-sdk/BrowserReplay.d.ts +40 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.js +15 -16
- 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 +19 -26
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +20 -18
- package/dist/components/agents-sdk/ModelSelector.d.ts +9 -9
- package/dist/components/agents-sdk/ModelSelector.js +504 -1
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +2 -2
- package/dist/components/agents-sdk/ThinkChat.d.ts +17 -107
- 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 +2 -2
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +10 -14
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +2 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +2 -2
- package/dist/components/agents-sdk/ThinkThreadPicker.js +6 -7
- 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/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +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 +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/ai-sdk/Activity.d.ts +5 -0
- package/dist/components/ai-sdk/Activity.js +34 -14
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/InlineCitation.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.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 +19 -13
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +19 -11
- 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 +126 -129
- package/dist/components/ai-sdk/Queue.js +2 -2
- package/dist/components/ai-sdk/Reasoning.d.ts +3 -4
- package/dist/components/ai-sdk/Reasoning.js +30 -14
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -5
- package/dist/components/extension/ChatGptSignInScreen.js +3 -3
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +3 -3
- 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/Card.d.ts +3 -3
- package/dist/components/foundations/Card.js +3 -3
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -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 +5 -29
- 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/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 +4 -23
- 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/SearchField.js +1 -1
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +8 -22
- 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 +6 -7
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Tooltip.d.ts +6 -8
- package/dist/components/foundations/Tooltip.js +4 -3
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/Commit.js +3 -3
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.d.ts +2 -3
- package/dist/components/general-purpose/PricingBillingToggle.js +5 -23
- package/dist/components/general-purpose/PricingPage.d.ts +3 -4
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- 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 +19 -4
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.js +4 -4
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.js +5 -5
- package/dist/components/nanites/AgentConnection.js +17 -12
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CsNSSKYG.js → copy-button-4YvddK4e.js} +1 -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/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +9 -0
- package/dist/styles/agent-connection.css +4 -31
- 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/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/tooltip.css +0 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +18 -8
- 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-DtBxWqRn.js +0 -504
- package/dist/Workspace-GTlqvcIn.d.ts +0 -278
- package/dist/WorkspaceExplorer-Cu044amt.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
- package/dist/{icons-B1Qw05te.js → icons-B4mGvCvc.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { C as FileIcon, G as SearchIcon, m as ChevronRightIcon } from "../../icons-B1Qw05te.js";
|
|
3
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { C as FileIcon, G as SearchIcon, m as ChevronRightIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-sdk/Task.tsx
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnyToolUIPart } from "./ToolPart.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ai-sdk/ToolInvocation.d.ts
|
|
4
|
-
/** One whole static or dynamic AI SDK tool UI part. */
|
|
5
|
-
type ToolInvocationPart = ToolUIPart | DynamicToolUIPart;
|
|
6
4
|
interface ToolInvocationProps {
|
|
7
5
|
/** The whole upstream AI SDK tool part, kept intact across every tool state. */
|
|
8
|
-
part:
|
|
6
|
+
part: AnyToolUIPart;
|
|
9
7
|
/** Render the existing Activity disclosure expanded initially. */
|
|
10
8
|
defaultOpen?: boolean;
|
|
11
9
|
/**
|
|
@@ -30,4 +28,4 @@ declare function ToolInvocation({
|
|
|
30
28
|
isStreaming
|
|
31
29
|
}: ToolInvocationProps): import("react").JSX.Element;
|
|
32
30
|
//#endregion
|
|
33
|
-
export { ToolInvocation,
|
|
31
|
+
export { ToolInvocation, ToolInvocationProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { J as SpinnerIcon } from "../../icons-
|
|
2
|
+
import { J as SpinnerIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { t as ProviderLogo } from "../../provider-logos-zjZycgV6.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/extension/ChatGptSignInScreen.tsx
|
|
@@ -47,7 +47,7 @@ function ChatGptSignInScreen({ busy = false, error = false, label = "Sign in wit
|
|
|
47
47
|
onPointerMove: handleSignInButtonPointerMove,
|
|
48
48
|
children: [/* @__PURE__ */ jsx("span", {
|
|
49
49
|
className: "chatgpt-sign-in__button-icon",
|
|
50
|
-
children: busy ? /* @__PURE__ */ jsx(SpinnerIcon, { size: 16 }) : /* @__PURE__ */ jsx(
|
|
50
|
+
children: busy ? /* @__PURE__ */ jsx(SpinnerIcon, { size: 16 }) : /* @__PURE__ */ jsx(ProviderLogo, {
|
|
51
51
|
provider: "openai",
|
|
52
52
|
className: "chatgpt-sign-in__logo"
|
|
53
53
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { W as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, m as ChevronRightIcon } from "../../icons-
|
|
2
|
+
import { W as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, m as ChevronRightIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
|
-
import { o as titleCase } from "../../format-DB2mX9DA.js";
|
|
5
4
|
import { Menu } from "../foundations/Menu.js";
|
|
5
|
+
import { o as titleCase } from "../../format-DB2mX9DA.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/extension/CodexModelSelector.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tt as WarningIcon } from "../../icons-
|
|
2
|
-
import { Avatar } from "../foundations/Avatar.js";
|
|
1
|
+
import { tt as WarningIcon } from "../../icons-B4mGvCvc.js";
|
|
3
2
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
5
3
|
import { Menu } from "../foundations/Menu.js";
|
|
4
|
+
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
5
|
+
import { Avatar } from "../foundations/Avatar.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/extension/ConversationTabPicker.tsx
|
|
@@ -43,14 +43,12 @@ declare function AccordionItem({
|
|
|
43
43
|
}: AccordionItemProps & {
|
|
44
44
|
ref?: React.Ref<HTMLDivElement>;
|
|
45
45
|
}): React.JSX.Element;
|
|
46
|
+
/** The semantic heading that owns an AccordionItem's trigger. */
|
|
46
47
|
declare function AccordionHeader({
|
|
47
48
|
className,
|
|
48
49
|
ref,
|
|
49
50
|
...props
|
|
50
51
|
}: AccordionHeaderProps): React.JSX.Element;
|
|
51
|
-
/**
|
|
52
|
-
* The header/trigger that toggles an AccordionItem.
|
|
53
|
-
*/
|
|
54
52
|
/**
|
|
55
53
|
* The clickable trigger button within an AccordionItem.
|
|
56
54
|
*/
|
|
@@ -43,6 +43,7 @@ function AccordionItem({ className, ref, ...props }) {
|
|
|
43
43
|
...props
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
/** The semantic heading that owns an AccordionItem's trigger. */
|
|
46
47
|
function AccordionHeader({ className, ref, ...props }) {
|
|
47
48
|
const classes = mergeBaseClassName("accordion__header", className);
|
|
48
49
|
return /* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
@@ -53,9 +54,6 @@ function AccordionHeader({ className, ref, ...props }) {
|
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
|
-
* The header/trigger that toggles an AccordionItem.
|
|
57
|
-
*/
|
|
58
|
-
/**
|
|
59
57
|
* The clickable trigger button within an AccordionItem.
|
|
60
58
|
*/
|
|
61
59
|
function AccordionTrigger({ className, ref, ...props }) {
|
|
@@ -3,8 +3,8 @@ import * as React from "react";
|
|
|
3
3
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/components/foundations/AlertDialog.d.ts
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type AlertDialogProps<Payload = unknown> = AlertDialog$1.Root.Props<Payload>;
|
|
7
|
+
type AlertDialogTriggerProps<Payload = unknown> = AlertDialog$1.Trigger.Props<Payload>;
|
|
8
8
|
interface AlertDialogBackdropProps extends React.ComponentPropsWithRef<typeof AlertDialog$1.Backdrop> {}
|
|
9
9
|
interface AlertDialogViewportProps extends React.ComponentPropsWithRef<typeof AlertDialog$1.Viewport> {}
|
|
10
10
|
interface AlertDialogPopupProps extends React.ComponentPropsWithRef<typeof AlertDialog$1.Popup> {
|
|
@@ -38,9 +38,9 @@ interface AlertDialogCloseProps extends Omit<BaseAlertDialogCloseProps, "color">
|
|
|
38
38
|
*/
|
|
39
39
|
size?: ButtonSize;
|
|
40
40
|
}
|
|
41
|
-
interface AlertDialogHeaderProps extends React.
|
|
42
|
-
interface AlertDialogFooterProps extends React.
|
|
43
|
-
interface AlertDialogMediaProps extends React.
|
|
41
|
+
interface AlertDialogHeaderProps extends React.ComponentPropsWithRef<"div"> {}
|
|
42
|
+
interface AlertDialogFooterProps extends React.ComponentPropsWithRef<"div"> {}
|
|
43
|
+
interface AlertDialogMediaProps extends React.ComponentPropsWithRef<"div"> {}
|
|
44
44
|
/**
|
|
45
45
|
* An alert dialog component for important confirmations and warnings.
|
|
46
46
|
* Unlike regular dialogs, alert dialogs require explicit user action to dismiss.
|
|
@@ -69,71 +69,53 @@ interface AlertDialogMediaProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
69
69
|
*
|
|
70
70
|
* @see {@link https://base-ui.com/react/components/alert-dialog | Base UI Alert Dialog}
|
|
71
71
|
*/
|
|
72
|
-
declare function AlertDialogTrigger({
|
|
72
|
+
declare function AlertDialogTrigger<Payload>({
|
|
73
73
|
render,
|
|
74
74
|
className,
|
|
75
75
|
ref,
|
|
76
76
|
...props
|
|
77
|
-
}: AlertDialogTriggerProps
|
|
78
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
79
|
-
}): React.JSX.Element;
|
|
77
|
+
}: AlertDialogTriggerProps<Payload>): React.JSX.Element;
|
|
80
78
|
declare function AlertDialogBackdrop({
|
|
81
79
|
className,
|
|
82
80
|
ref,
|
|
83
81
|
...props
|
|
84
|
-
}: AlertDialogBackdropProps
|
|
85
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
86
|
-
}): React.JSX.Element;
|
|
82
|
+
}: AlertDialogBackdropProps): React.JSX.Element;
|
|
87
83
|
declare function AlertDialogViewport({
|
|
88
84
|
className,
|
|
89
85
|
ref,
|
|
90
86
|
...props
|
|
91
|
-
}: AlertDialogViewportProps
|
|
92
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
93
|
-
}): React.JSX.Element;
|
|
87
|
+
}: AlertDialogViewportProps): React.JSX.Element;
|
|
94
88
|
declare function AlertDialogPopup({
|
|
95
89
|
size,
|
|
96
90
|
className,
|
|
97
91
|
ref,
|
|
98
92
|
...props
|
|
99
|
-
}: AlertDialogPopupProps
|
|
100
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
101
|
-
}): React.JSX.Element;
|
|
93
|
+
}: AlertDialogPopupProps): React.JSX.Element;
|
|
102
94
|
declare function AlertDialogHeader({
|
|
103
95
|
className,
|
|
104
96
|
ref,
|
|
105
97
|
...props
|
|
106
|
-
}: AlertDialogHeaderProps
|
|
107
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
108
|
-
}): React.JSX.Element;
|
|
98
|
+
}: AlertDialogHeaderProps): React.JSX.Element;
|
|
109
99
|
declare function AlertDialogFooter({
|
|
110
100
|
className,
|
|
111
101
|
ref,
|
|
112
102
|
...props
|
|
113
|
-
}: AlertDialogFooterProps
|
|
114
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
115
|
-
}): React.JSX.Element;
|
|
103
|
+
}: AlertDialogFooterProps): React.JSX.Element;
|
|
116
104
|
declare function AlertDialogMedia({
|
|
117
105
|
className,
|
|
118
106
|
ref,
|
|
119
107
|
...props
|
|
120
|
-
}: AlertDialogMediaProps
|
|
121
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
122
|
-
}): React.JSX.Element;
|
|
108
|
+
}: AlertDialogMediaProps): React.JSX.Element;
|
|
123
109
|
declare function AlertDialogTitle({
|
|
124
110
|
className,
|
|
125
111
|
ref,
|
|
126
112
|
...props
|
|
127
|
-
}: AlertDialogTitleProps
|
|
128
|
-
ref?: React.Ref<HTMLHeadingElement>;
|
|
129
|
-
}): React.JSX.Element;
|
|
113
|
+
}: AlertDialogTitleProps): React.JSX.Element;
|
|
130
114
|
declare function AlertDialogDescription({
|
|
131
115
|
className,
|
|
132
116
|
ref,
|
|
133
117
|
...props
|
|
134
|
-
}: AlertDialogDescriptionProps
|
|
135
|
-
ref?: React.Ref<HTMLParagraphElement>;
|
|
136
|
-
}): React.JSX.Element;
|
|
118
|
+
}: AlertDialogDescriptionProps): React.JSX.Element;
|
|
137
119
|
declare function AlertDialogClose({
|
|
138
120
|
variant,
|
|
139
121
|
color,
|
|
@@ -142,9 +124,7 @@ declare function AlertDialogClose({
|
|
|
142
124
|
className,
|
|
143
125
|
ref,
|
|
144
126
|
...props
|
|
145
|
-
}: AlertDialogCloseProps
|
|
146
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
147
|
-
}): React.JSX.Element;
|
|
127
|
+
}: AlertDialogCloseProps): React.JSX.Element;
|
|
148
128
|
declare const AlertDialog: {
|
|
149
129
|
Root: typeof AlertDialog$1.Root;
|
|
150
130
|
Trigger: typeof AlertDialogTrigger;
|
|
@@ -6,79 +6,57 @@ declare function Input({
|
|
|
6
6
|
className,
|
|
7
7
|
ref,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Input>
|
|
10
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
11
|
-
}): React.JSX.Element;
|
|
9
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Input>): React.JSX.Element;
|
|
12
10
|
declare function Trigger({
|
|
13
11
|
className,
|
|
14
12
|
ref,
|
|
15
13
|
...props
|
|
16
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Trigger>
|
|
17
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
18
|
-
}): React.JSX.Element;
|
|
14
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Trigger>): React.JSX.Element;
|
|
19
15
|
declare function Clear({
|
|
20
16
|
className,
|
|
21
17
|
ref,
|
|
22
18
|
...props
|
|
23
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Clear>
|
|
24
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
25
|
-
}): React.JSX.Element;
|
|
19
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Clear>): React.JSX.Element;
|
|
26
20
|
declare function Positioner({
|
|
27
21
|
className,
|
|
28
22
|
ref,
|
|
29
23
|
...props
|
|
30
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Positioner>
|
|
31
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
32
|
-
}): React.JSX.Element;
|
|
24
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Positioner>): React.JSX.Element;
|
|
33
25
|
declare function Popup({
|
|
34
26
|
className,
|
|
35
27
|
ref,
|
|
36
28
|
...props
|
|
37
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Popup>
|
|
38
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
39
|
-
}): React.JSX.Element;
|
|
29
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Popup>): React.JSX.Element;
|
|
40
30
|
declare function List({
|
|
41
31
|
className,
|
|
42
32
|
ref,
|
|
43
33
|
...props
|
|
44
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.List>
|
|
45
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
46
|
-
}): React.JSX.Element;
|
|
34
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.List>): React.JSX.Element;
|
|
47
35
|
declare function Item({
|
|
48
36
|
className,
|
|
49
37
|
ref,
|
|
50
38
|
...props
|
|
51
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Item>
|
|
52
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
53
|
-
}): React.JSX.Element;
|
|
39
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Item>): React.JSX.Element;
|
|
54
40
|
declare function Empty({
|
|
55
41
|
className,
|
|
56
42
|
ref,
|
|
57
43
|
...props
|
|
58
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Empty>
|
|
59
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
60
|
-
}): React.JSX.Element;
|
|
44
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Empty>): React.JSX.Element;
|
|
61
45
|
declare function Status({
|
|
62
46
|
className,
|
|
63
47
|
ref,
|
|
64
48
|
...props
|
|
65
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Status>
|
|
66
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
67
|
-
}): React.JSX.Element;
|
|
49
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Status>): React.JSX.Element;
|
|
68
50
|
declare function Group({
|
|
69
51
|
className,
|
|
70
52
|
ref,
|
|
71
53
|
...props
|
|
72
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Group>
|
|
73
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
74
|
-
}): React.JSX.Element;
|
|
54
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.Group>): React.JSX.Element;
|
|
75
55
|
declare function GroupLabel({
|
|
76
56
|
className,
|
|
77
57
|
ref,
|
|
78
58
|
...props
|
|
79
|
-
}: React.ComponentPropsWithRef<typeof Autocomplete$1.GroupLabel>
|
|
80
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
81
|
-
}): React.JSX.Element;
|
|
59
|
+
}: React.ComponentPropsWithRef<typeof Autocomplete$1.GroupLabel>): React.JSX.Element;
|
|
82
60
|
/**
|
|
83
61
|
* An input with a list of filtered options for auto-completion.
|
|
84
62
|
* Supports async search, grouping, and various autocomplete modes.
|
|
@@ -159,6 +137,7 @@ declare const Autocomplete: {
|
|
|
159
137
|
Status: typeof Status;
|
|
160
138
|
Group: typeof Group;
|
|
161
139
|
GroupLabel: typeof GroupLabel;
|
|
140
|
+
Collection: typeof Autocomplete$1.Collection;
|
|
162
141
|
};
|
|
163
142
|
//#endregion
|
|
164
143
|
export { Autocomplete };
|
|
@@ -30,9 +30,9 @@ interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
30
30
|
* <p>Content</p>
|
|
31
31
|
* </Card>
|
|
32
32
|
*
|
|
33
|
-
* <
|
|
34
|
-
*
|
|
35
|
-
* </
|
|
33
|
+
* <a href="/details">
|
|
34
|
+
* <Card hover>View details</Card>
|
|
35
|
+
* </a>
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
declare function Card({
|
|
@@ -13,9 +13,9 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
13
13
|
* <p>Content</p>
|
|
14
14
|
* </Card>
|
|
15
15
|
*
|
|
16
|
-
* <
|
|
17
|
-
*
|
|
18
|
-
* </
|
|
16
|
+
* <a href="/details">
|
|
17
|
+
* <Card hover>View details</Card>
|
|
18
|
+
* </a>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
function Card({ hover = false, size = "default", className = "", children, ref, ...props }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { d as CheckIcon } from "../../icons-
|
|
2
|
+
import { d as CheckIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
5
5
|
//#region src/components/foundations/Checkbox.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/foundations/Collapsible.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Container that groups all collapsible parts. Renders a `<div>` element.
|
|
@@ -1,2 +1,119 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
3
|
+
|
|
4
|
+
//#region src/components/foundations/Combobox.d.ts
|
|
5
|
+
declare function ComboboxInputGroup({
|
|
6
|
+
className,
|
|
7
|
+
ref,
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.InputGroup>): React.JSX.Element;
|
|
10
|
+
declare function ComboboxInput({
|
|
11
|
+
className,
|
|
12
|
+
ref,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Input>): React.JSX.Element;
|
|
15
|
+
declare function ComboboxTrigger({
|
|
16
|
+
className,
|
|
17
|
+
ref,
|
|
18
|
+
...props
|
|
19
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Trigger>): React.JSX.Element;
|
|
20
|
+
declare function ComboboxPositioner({
|
|
21
|
+
className,
|
|
22
|
+
ref,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Positioner>): React.JSX.Element;
|
|
25
|
+
declare function ComboboxPopup({
|
|
26
|
+
className,
|
|
27
|
+
ref,
|
|
28
|
+
...props
|
|
29
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Popup>): React.JSX.Element;
|
|
30
|
+
declare function ComboboxList({
|
|
31
|
+
className,
|
|
32
|
+
ref,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.List>): React.JSX.Element;
|
|
35
|
+
declare function ComboboxItem({
|
|
36
|
+
className,
|
|
37
|
+
ref,
|
|
38
|
+
...props
|
|
39
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Item>): React.JSX.Element;
|
|
40
|
+
declare function ItemIndicator({
|
|
41
|
+
className,
|
|
42
|
+
ref,
|
|
43
|
+
...props
|
|
44
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.ItemIndicator>): React.JSX.Element;
|
|
45
|
+
declare function ComboboxEmpty({
|
|
46
|
+
className,
|
|
47
|
+
ref,
|
|
48
|
+
...props
|
|
49
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Empty>): React.JSX.Element;
|
|
50
|
+
declare function ComboboxGroup({
|
|
51
|
+
className,
|
|
52
|
+
ref,
|
|
53
|
+
...props
|
|
54
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.Group>): React.JSX.Element;
|
|
55
|
+
declare function ComboboxGroupLabel({
|
|
56
|
+
className,
|
|
57
|
+
ref,
|
|
58
|
+
...props
|
|
59
|
+
}: React.ComponentPropsWithRef<typeof Combobox$1.GroupLabel>): React.JSX.Element;
|
|
60
|
+
/**
|
|
61
|
+
* An input combined with a filterable list of predefined items.
|
|
62
|
+
* Supports bounded selection with filtering and grouped options.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* // Basic single select
|
|
67
|
+
* const fruits = [
|
|
68
|
+
* { label: 'Apple', value: 'apple' },
|
|
69
|
+
* { label: 'Banana', value: 'banana' },
|
|
70
|
+
* { label: 'Orange', value: 'orange' },
|
|
71
|
+
* ];
|
|
72
|
+
*
|
|
73
|
+
* <Combobox.Root items={fruits}>
|
|
74
|
+
* <Combobox.InputGroup>
|
|
75
|
+
* <Combobox.Input aria-label="Fruit" placeholder="Select a fruit" />
|
|
76
|
+
* <Combobox.Trigger aria-label="Open fruit options">
|
|
77
|
+
* <ChevronDownIcon />
|
|
78
|
+
* </Combobox.Trigger>
|
|
79
|
+
* </Combobox.InputGroup>
|
|
80
|
+
* <Combobox.Portal>
|
|
81
|
+
* <Combobox.Positioner>
|
|
82
|
+
* <Combobox.Popup>
|
|
83
|
+
* <Combobox.List>
|
|
84
|
+
* {(item) => (
|
|
85
|
+
* <Combobox.Item value={item}>
|
|
86
|
+
* <Combobox.ItemIndicator>
|
|
87
|
+
* <CheckIcon />
|
|
88
|
+
* </Combobox.ItemIndicator>
|
|
89
|
+
* {item.label}
|
|
90
|
+
* </Combobox.Item>
|
|
91
|
+
* )}
|
|
92
|
+
* </Combobox.List>
|
|
93
|
+
* <Combobox.Empty>No results found</Combobox.Empty>
|
|
94
|
+
* </Combobox.Popup>
|
|
95
|
+
* </Combobox.Positioner>
|
|
96
|
+
* </Combobox.Portal>
|
|
97
|
+
* </Combobox.Root>
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
101
|
+
*/
|
|
102
|
+
declare const Combobox: {
|
|
103
|
+
Root: typeof Combobox$1.Root;
|
|
104
|
+
InputGroup: typeof ComboboxInputGroup;
|
|
105
|
+
Input: typeof ComboboxInput;
|
|
106
|
+
Trigger: typeof ComboboxTrigger;
|
|
107
|
+
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompletePortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
108
|
+
Positioner: typeof ComboboxPositioner;
|
|
109
|
+
Popup: typeof ComboboxPopup;
|
|
110
|
+
List: typeof ComboboxList;
|
|
111
|
+
Item: typeof ComboboxItem;
|
|
112
|
+
ItemIndicator: typeof ItemIndicator;
|
|
113
|
+
Empty: typeof ComboboxEmpty;
|
|
114
|
+
Group: typeof ComboboxGroup;
|
|
115
|
+
GroupLabel: typeof ComboboxGroupLabel;
|
|
116
|
+
Collection: typeof Combobox$1.Collection;
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { Combobox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import
|
|
2
|
+
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
5
5
|
//#region src/components/foundations/Combobox.tsx
|
|
@@ -30,15 +30,6 @@ function ComboboxTrigger({ className, ref, ...props }) {
|
|
|
30
30
|
...props
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function Clear({ className, ref, ...props }) {
|
|
34
|
-
const classes = mergeBaseClassName("combobox__clear", className);
|
|
35
|
-
return /* @__PURE__ */ jsx(Combobox$1.Clear, {
|
|
36
|
-
ref,
|
|
37
|
-
"data-slot": "combobox-clear",
|
|
38
|
-
className: classes,
|
|
39
|
-
...props
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
33
|
function ComboboxPositioner({ className, ref, ...props }) {
|
|
43
34
|
const classes = mergeBaseClassName("combobox__positioner base-ui-positioner", className);
|
|
44
35
|
return /* @__PURE__ */ jsx(Combobox$1.Positioner, {
|
|
@@ -113,7 +104,7 @@ function ComboboxGroupLabel({ className, ref, ...props }) {
|
|
|
113
104
|
}
|
|
114
105
|
/**
|
|
115
106
|
* An input combined with a filterable list of predefined items.
|
|
116
|
-
* Supports
|
|
107
|
+
* Supports bounded selection with filtering and grouped options.
|
|
117
108
|
*
|
|
118
109
|
* @example
|
|
119
110
|
* ```tsx
|
|
@@ -126,8 +117,8 @@ function ComboboxGroupLabel({ className, ref, ...props }) {
|
|
|
126
117
|
*
|
|
127
118
|
* <Combobox.Root items={fruits}>
|
|
128
119
|
* <Combobox.InputGroup>
|
|
129
|
-
* <Combobox.Input placeholder="Select a fruit" />
|
|
130
|
-
* <Combobox.Trigger>
|
|
120
|
+
* <Combobox.Input aria-label="Fruit" placeholder="Select a fruit" />
|
|
121
|
+
* <Combobox.Trigger aria-label="Open fruit options">
|
|
131
122
|
* <ChevronDownIcon />
|
|
132
123
|
* </Combobox.Trigger>
|
|
133
124
|
* </Combobox.InputGroup>
|
|
@@ -153,15 +144,11 @@ function ComboboxGroupLabel({ className, ref, ...props }) {
|
|
|
153
144
|
*
|
|
154
145
|
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
155
146
|
*/
|
|
156
|
-
function useComboboxAnchor() {
|
|
157
|
-
return React.useRef(null);
|
|
158
|
-
}
|
|
159
147
|
const Combobox = {
|
|
160
148
|
Root: Combobox$1.Root,
|
|
161
149
|
InputGroup: ComboboxInputGroup,
|
|
162
150
|
Input: ComboboxInput,
|
|
163
151
|
Trigger: ComboboxTrigger,
|
|
164
|
-
Clear,
|
|
165
152
|
Portal: Combobox$1.Portal,
|
|
166
153
|
Positioner: ComboboxPositioner,
|
|
167
154
|
Popup: ComboboxPopup,
|
|
@@ -171,11 +158,7 @@ const Combobox = {
|
|
|
171
158
|
Empty: ComboboxEmpty,
|
|
172
159
|
Group: ComboboxGroup,
|
|
173
160
|
GroupLabel: ComboboxGroupLabel,
|
|
174
|
-
|
|
175
|
-
Chips: Combobox$1.Chips,
|
|
176
|
-
Chip: Combobox$1.Chip,
|
|
177
|
-
Collection: Combobox$1.Collection,
|
|
178
|
-
Separator: Combobox$1.Separator
|
|
161
|
+
Collection: Combobox$1.Collection
|
|
179
162
|
};
|
|
180
163
|
//#endregion
|
|
181
|
-
export { Combobox
|
|
164
|
+
export { Combobox };
|