@mcp-b/react-components 0.48.0 → 0.49.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/AgentChatQueue-C_Jaw3Ia.d.ts +48 -0
- package/dist/AgentToolRunsContext-GMe_hSnD.d.ts +35 -0
- package/dist/Avatar-o2NO1fCG.d.ts +124 -0
- package/dist/{Button-CZt3yywF.d.ts → Button-DjONW5UW.d.ts} +1 -1
- package/dist/{CodeBlock-C380GD5t.d.ts → CodeBlock--r6GS8YV.d.ts} +8 -2
- package/dist/{CodeBlock-BSJl682D.js → CodeBlock-g8sADidM.js} +8 -8
- package/dist/{FileTree-DvE0hNZu.js → FileTree-H8mMg4rV.js} +21 -30
- package/dist/{IconButton-BAUFhUk8.d.ts → IconButton-ByiyjkYE.d.ts} +2 -2
- package/dist/{Message-D_vCVEGB.d.ts → Message-DyaTBiV7.d.ts} +17 -4
- package/dist/MessageScrollerVirtual-D4afYwVB.d.ts +84 -0
- package/dist/{PromptInput-DtJHyp0S.d.ts → PromptInput-C4Mofitz.d.ts} +44 -31
- package/dist/PromptInputApproval-D2hpn54U.d.ts +44 -0
- package/dist/Separator-CzhtLYE1.d.ts +41 -0
- package/dist/Toolbar-CGY004u0.d.ts +155 -0
- package/dist/{Workspace-LIoU30n7.d.ts → Workspace-HzGrWDX3.d.ts} +1 -1
- package/dist/{WorkspaceFile-Dq-GC0_T.d.ts → WorkspaceFile-Bouauobc.d.ts} +1 -1
- package/dist/{WorkspaceFileView-C_WnYm-a.js → WorkspaceFileView-DYPtRVpM.js} +5 -4
- package/dist/{WorkspaceLink-B1d2GIGl.js → WorkspaceLink-BYZG-V_I.js} +8 -91
- package/dist/{WorkspaceMessageResponse-BqOezptB.js → WorkspaceMessageResponse-CUJk9_P5.js} +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +198 -2
- package/dist/components/agents-sdk/AgentChat.js +527 -672
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +2 -0
- package/dist/components/agents-sdk/AgentChatQueue.js +206 -0
- package/dist/components/agents-sdk/AgentEvent.js +2 -2
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +2 -2
- package/dist/components/agents-sdk/AgentToolRunsContext.js +1 -36
- package/dist/components/agents-sdk/BrowserLiveScreen.js +22 -14
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +3 -0
- package/dist/components/agents-sdk/BrowserRunPanel.js +32 -31
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +212 -0
- package/dist/components/agents-sdk/EmployeeChrome.js +555 -0
- package/dist/components/agents-sdk/ManagerOffice.d.ts +79 -40
- package/dist/components/agents-sdk/ManagerOffice.js +291 -281
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +4 -4
- package/dist/components/agents-sdk/McpConnectionRequest.js +4 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +38 -1
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +93 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +5 -4
- package/dist/components/agents-sdk/McpServerIcon.d.ts +17 -0
- package/dist/components/agents-sdk/McpServerIcon.js +25 -0
- package/dist/components/agents-sdk/McpServerPicker.d.ts +4 -3
- package/dist/components/agents-sdk/McpServerPicker.js +4 -3
- package/dist/components/agents-sdk/ModelSelector.d.ts +4 -4
- package/dist/components/agents-sdk/ModelSelector.js +4 -4
- package/dist/components/agents-sdk/PromptInputApproval.d.ts +1 -43
- 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 +2 -3
- package/dist/components/agents-sdk/SessionCompaction.d.ts +88 -1
- package/dist/components/agents-sdk/SessionCompaction.js +2 -2
- package/dist/components/agents-sdk/SubagentRunDetails.d.ts +30 -1
- package/dist/components/agents-sdk/SubagentRunDetails.js +57 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +9 -9
- package/dist/components/agents-sdk/SubagentRunIndicator.js +19 -24
- package/dist/components/agents-sdk/SubagentRunList.d.ts +6 -3
- package/dist/components/agents-sdk/SubagentRunList.js +4 -2
- package/dist/components/agents-sdk/SubagentRunPanel.d.ts +60 -0
- package/dist/components/agents-sdk/SubagentRunPanel.js +255 -0
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +8 -4
- package/dist/components/agents-sdk/SubagentRunSelector.js +5 -3
- package/dist/components/agents-sdk/ThinkChat.d.ts +102 -2
- package/dist/components/agents-sdk/ThinkChat.js +233 -2
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +76 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +18 -10
- package/dist/components/agents-sdk/ThinkChatContext.d.ts +27 -1
- package/dist/components/agents-sdk/ThinkChatContext.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +24 -19
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +85 -28
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +159 -102
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +40 -158
- package/dist/components/agents-sdk/ThinkFullApp.js +71 -290
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +18 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +51 -0
- package/dist/components/agents-sdk/ThinkRoutineActions.js +201 -0
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +4 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +17 -15
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +11 -11
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +2 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +14 -14
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +7 -7
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +90 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +7 -13
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +10 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +10 -7
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +5 -14
- package/dist/components/agents-sdk/WorkspaceExecution.js +24 -38
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +5 -2
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -2
- 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/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +60 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +47 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.d.ts +3 -2
- package/dist/components/agents-sdk/WorkspaceMountManager.js +6 -9
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +38 -0
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +86 -0
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +5 -14
- package/dist/components/agents-sdk/WorkspaceProject.js +21 -35
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceUserScript.js +8 -5
- package/dist/components/ai-sdk/Activity.d.ts +1 -1
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +2 -2
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +89 -2
- package/dist/components/ai-sdk/AgentChatStartScreen.js +64 -43
- package/dist/components/ai-sdk/AgentMessageParts.d.ts +45 -1
- package/dist/components/ai-sdk/Approval.d.ts +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.d.ts +2 -2
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +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/ComposerLink.js +2 -3
- package/dist/components/ai-sdk/ConnectedAppCards.d.ts +9 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +28 -21
- package/dist/components/ai-sdk/Context.d.ts +7 -3
- package/dist/components/ai-sdk/Context.js +7 -17
- package/dist/components/ai-sdk/Conversation.d.ts +2 -2
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.d.ts +3 -3
- package/dist/components/ai-sdk/Goal.js +3 -3
- package/dist/components/ai-sdk/InlineCitation.d.ts +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +2 -2
- package/dist/components/ai-sdk/Message.js +12 -3
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.d.ts +2 -76
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +39 -5
- package/dist/components/ai-sdk/Plan.d.ts +1 -1
- 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 +175 -231
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +32 -9
- package/dist/components/ai-sdk/Queue.d.ts +28 -5
- package/dist/components/ai-sdk/Queue.js +20 -5
- package/dist/components/ai-sdk/Reasoning.d.ts +1 -1
- package/dist/components/ai-sdk/Reasoning.js +5 -5
- package/dist/components/ai-sdk/Sources.d.ts +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.d.ts +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.d.ts +5 -0
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -0
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/AlertDialog.d.ts +1 -1
- package/dist/components/foundations/AppIcon.d.ts +3 -2
- package/dist/components/foundations/Autocomplete.js +6 -1
- package/dist/components/foundations/Avatar.d.ts +1 -121
- package/dist/components/foundations/Button.d.ts +1 -1
- package/dist/components/foundations/Card.d.ts +22 -27
- package/dist/components/foundations/Card.js +51 -32
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/CheckboxGroup.d.ts +1 -1
- package/dist/components/foundations/Collapsible.d.ts +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/Combobox.js +6 -1
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/Dialog.d.ts +106 -1
- package/dist/components/foundations/EmptyState.d.ts +1 -1
- package/dist/components/foundations/Field.d.ts +2 -1
- package/dist/components/foundations/Fieldset.d.ts +1 -1
- package/dist/components/foundations/Form.d.ts +4 -4
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/Label.d.ts +1 -1
- package/dist/components/foundations/LinkButton.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/Meter.d.ts +1 -1
- package/dist/components/foundations/NumberField.d.ts +1 -1
- package/dist/components/foundations/ScrollArea.d.ts +1 -1
- package/dist/components/foundations/SearchField.d.ts +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +7 -2
- package/dist/components/foundations/Separator.d.ts +1 -40
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Textarea.d.ts +1 -1
- package/dist/components/foundations/Toast.d.ts +5 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/Toggle.d.ts +70 -1
- package/dist/components/foundations/ToggleGroup.d.ts +4 -3
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Toolbar.d.ts +1 -151
- package/dist/components/foundations/TransitionSurface.d.ts +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/ActionGuide.d.ts +10 -26
- package/dist/components/general-purpose/ActionGuide.js +4 -18
- package/dist/components/general-purpose/AppTopBar.d.ts +4 -2
- package/dist/components/general-purpose/Commit.d.ts +2 -2
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.d.ts +1 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.d.ts +4 -0
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResizableSidePanel.d.ts +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +128 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +120 -102
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +14 -27
- package/dist/components/general-purpose/SettingsFormDialog.js +42 -72
- package/dist/components/general-purpose/SetupChecklist.d.ts +1 -0
- package/dist/components/general-purpose/SetupChecklist.js +76 -1
- package/dist/components/general-purpose/Terminal.d.ts +3 -3
- package/dist/components/general-purpose/Terminal.js +11 -6
- package/dist/components/general-purpose/TestResults.d.ts +23 -11
- package/dist/components/general-purpose/TestResults.js +49 -51
- package/dist/components/general-purpose/ThemeModeControl.d.ts +2 -0
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.d.ts +29 -4
- package/dist/components/general-purpose/WebPreview.js +39 -14
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +13 -11
- package/dist/components/nanites/AgentToolDetail.js +21 -42
- package/dist/{copy-button-Dk2vRe9j.js → copy-button-CSDuDfdP.js} +1 -1
- package/dist/{copy-button-C0JyjClr.d.ts → copy-button-OUwOdgEm.d.ts} +1 -1
- package/dist/mcp-server-mAErsxHU.js +27 -0
- package/dist/styles/activity.css +1 -96
- package/dist/styles/agent-chat.css +75 -102
- package/dist/styles/agent-tool-detail.css +0 -16
- package/dist/styles/base.css +1 -1
- package/dist/styles/browser-run-panel.css +1 -15
- package/dist/styles/button.css +7 -1
- package/dist/styles/code-block.css +12 -0
- package/dist/styles/composition-motion.css +0 -2
- package/dist/styles/employee-chrome.css +43 -0
- package/dist/styles/file-tree.css +5 -0
- package/dist/styles/index.css +4 -2
- package/dist/styles/message.css +2 -10
- package/dist/styles/queue.css +71 -0
- package/dist/styles/subagent-run.css +122 -6
- package/dist/styles/test-results.css +2 -5
- package/dist/styles/think-chat-activity.css +13 -0
- package/dist/styles/think-chat-tool-panels.css +81 -0
- package/dist/styles/think-execution-workbench.css +2 -8
- package/dist/styles/think-full-app.css +42 -251
- package/dist/styles/{think-routine-library.css → think-routine.css} +64 -80
- package/dist/styles/web-preview.css +15 -1
- package/dist/utils/mcp-server-catalog.d.ts +1112 -2
- package/dist/utils/mcp-server-catalog.js +28 -9
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-GqsCYxqT.js → workspace-assets-Bg7XhPsk.js} +2 -2
- package/package.json +7 -3
- package/dist/AgentChat-BLmQghkt.d.ts +0 -327
- package/dist/AgentChatStartScreen-Bkv7Avni.d.ts +0 -84
- package/dist/AgentMessageParts-C7L-Mv9U.d.ts +0 -46
- package/dist/AgentToolRunsContext-jtmveaRE.d.ts +0 -57
- package/dist/Dialog-B_FhRWaz.d.ts +0 -107
- package/dist/McpConnectorForm-CeYNY0MI.d.ts +0 -39
- package/dist/McpPluginCatalog-3qWu8oK1.d.ts +0 -92
- package/dist/ResponsiveSidebarShell-BTVPxLJK.d.ts +0 -123
- package/dist/SessionCompaction-CmTJFpzj.d.ts +0 -89
- package/dist/SetupChecklist-DeTU9YpW.js +0 -77
- package/dist/ThinkChat-CwMdEum8.d.ts +0 -185
- package/dist/ThinkChat-DiI6hhDP.js +0 -332
- package/dist/ThinkChatActivity-B3lGVS-6.d.ts +0 -77
- package/dist/ThinkChatContext-COIgzkYp.d.ts +0 -28
- package/dist/ThinkRecoveryNotice-DGWr94rk.d.ts +0 -19
- package/dist/ThinkThreadPicker-yFz4vvIf.d.ts +0 -91
- package/dist/Toggle-DLrIf5YH.d.ts +0 -69
- package/dist/WorkspaceLive-DfjH1Ypm.d.ts +0 -61
- package/dist/WorkspaceMessageResponse-kJYU8Onj.d.ts +0 -48
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +0 -31
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +0 -34
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +0 -80
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +0 -159
- package/dist/components/agents-sdk/ThinkSidepanel.d.ts +0 -200
- package/dist/components/agents-sdk/ThinkSidepanel.js +0 -775
- package/dist/mcp-server-7NR24ASj.js +0 -69
- package/dist/mcp-server-catalog-C_g7C-9o.d.ts +0 -1108
- package/dist/styles/think-sidepanel.css +0 -78
- package/dist/think-agent-Cip5KAPj.d.ts +0 -7
- package/dist/{icons-CeGfXO21.js → icons-cuEtsgj9.js} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../../Button-
|
|
1
|
+
import { r as ButtonProps } from "../../Button-DjONW5UW.js";
|
|
2
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
3
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
4
4
|
import * as React from "react";
|
|
@@ -13,6 +13,8 @@ interface QueueTodo {
|
|
|
13
13
|
interface QueueProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
14
|
/** Additional class names for layout only; do not override item states from apps. */
|
|
15
15
|
className?: string;
|
|
16
|
+
/** Compact rows fit queues attached to a prompt input. */
|
|
17
|
+
density?: "default" | "compact";
|
|
16
18
|
/** QueueSection children. */
|
|
17
19
|
children?: React.ReactNode;
|
|
18
20
|
}
|
|
@@ -56,10 +58,11 @@ interface QueueProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
56
58
|
declare function Queue({
|
|
57
59
|
className,
|
|
58
60
|
children,
|
|
61
|
+
density,
|
|
59
62
|
ref,
|
|
60
63
|
...props
|
|
61
64
|
}: QueueProps & {
|
|
62
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
65
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
63
66
|
}): React.JSX.Element;
|
|
64
67
|
interface QueueSectionProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "unstyled"> {}
|
|
65
68
|
/**
|
|
@@ -100,8 +103,15 @@ declare function QueueSectionLabel({
|
|
|
100
103
|
}: QueueSectionLabelProps & {
|
|
101
104
|
ref?: React.Ref<HTMLSpanElement>;
|
|
102
105
|
}): React.JSX.Element;
|
|
103
|
-
interface QueueListProps extends React.ComponentProps<typeof ScrollArea.Root> {
|
|
106
|
+
interface QueueListProps extends Omit<React.ComponentProps<typeof ScrollArea.Root>, "aria-label" | "aria-labelledby"> {
|
|
107
|
+
/** Accessible name applied to the rendered list. */
|
|
108
|
+
"aria-label"?: string;
|
|
109
|
+
/** Id of visible text that names the rendered list. */
|
|
110
|
+
"aria-labelledby"?: string;
|
|
111
|
+
}
|
|
104
112
|
declare function QueueList({
|
|
113
|
+
"aria-label": ariaLabel,
|
|
114
|
+
"aria-labelledby": ariaLabelledBy,
|
|
105
115
|
className,
|
|
106
116
|
children,
|
|
107
117
|
ref,
|
|
@@ -117,6 +127,15 @@ declare function QueueSectionContent({
|
|
|
117
127
|
}: QueueSectionContentProps & {
|
|
118
128
|
ref?: React.Ref<HTMLDivElement>;
|
|
119
129
|
}): React.JSX.Element;
|
|
130
|
+
interface QueueSectionActionsProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
131
|
+
/** Actions that apply to the whole queue section rather than one item. */
|
|
132
|
+
declare function QueueSectionActions({
|
|
133
|
+
className,
|
|
134
|
+
ref,
|
|
135
|
+
...props
|
|
136
|
+
}: QueueSectionActionsProps & {
|
|
137
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
138
|
+
}): React.JSX.Element;
|
|
120
139
|
type QueueItemStatus = "pending" | "active" | "complete" | "completed";
|
|
121
140
|
interface QueueItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
122
141
|
status?: QueueItemStatus;
|
|
@@ -167,11 +186,15 @@ declare function QueueItemDescription({
|
|
|
167
186
|
}: QueueItemDescriptionProps & {
|
|
168
187
|
ref?: React.Ref<HTMLParagraphElement>;
|
|
169
188
|
}): React.JSX.Element;
|
|
170
|
-
interface QueueItemActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
189
|
+
interface QueueItemActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
190
|
+
/** Keep actions visible when they are primary to the queue item. */
|
|
191
|
+
persistent?: boolean;
|
|
192
|
+
}
|
|
171
193
|
interface QueueItemActionProps extends Omit<ButtonProps, "variant" | "color" | "size"> {}
|
|
172
194
|
declare function QueueItemActions({
|
|
173
195
|
className,
|
|
174
196
|
children,
|
|
197
|
+
persistent,
|
|
175
198
|
ref,
|
|
176
199
|
...props
|
|
177
200
|
}: QueueItemActionsProps & {
|
|
@@ -217,4 +240,4 @@ declare function QueueItemFile({
|
|
|
217
240
|
ref?: React.Ref<HTMLDivElement>;
|
|
218
241
|
}): React.JSX.Element;
|
|
219
242
|
//#endregion
|
|
220
|
-
export { Queue, QueueItem, QueueItemAction, QueueItemActionProps, QueueItemActions, QueueItemActionsProps, QueueItemAttachment, QueueItemAttachmentProps, QueueItemContent, QueueItemContentProps, QueueItemDescription, QueueItemDescriptionProps, QueueItemFile, QueueItemFileProps, QueueItemImage, QueueItemImageProps, QueueItemIndicator, QueueItemIndicatorProps, QueueItemProps, QueueItemStatus, QueueList, QueueListProps, QueueProps, QueueSection, QueueSectionContent, QueueSectionContentProps, QueueSectionLabel, QueueSectionLabelProps, QueueSectionProps, QueueSectionTrigger, QueueSectionTriggerProps, QueueTodo };
|
|
243
|
+
export { Queue, QueueItem, QueueItemAction, QueueItemActionProps, QueueItemActions, QueueItemActionsProps, QueueItemAttachment, QueueItemAttachmentProps, QueueItemContent, QueueItemContentProps, QueueItemDescription, QueueItemDescriptionProps, QueueItemFile, QueueItemFileProps, QueueItemImage, QueueItemImageProps, QueueItemIndicator, QueueItemIndicatorProps, QueueItemProps, QueueItemStatus, QueueList, QueueListProps, QueueProps, QueueSection, QueueSectionActions, QueueSectionActionsProps, QueueSectionContent, QueueSectionContentProps, QueueSectionLabel, QueueSectionLabelProps, QueueSectionProps, QueueSectionTrigger, QueueSectionTriggerProps, QueueTodo };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { S as FileIcon, _ as DotIcon, d as CheckIcon, p as ChevronRightIcon } from "../../icons-cuEtsgj9.js";
|
|
2
3
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
-
import { S as FileIcon, _ as DotIcon, d as CheckIcon, p as ChevronRightIcon } from "../../icons-CeGfXO21.js";
|
|
4
4
|
import { Button } from "../foundations/Button.js";
|
|
5
5
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
6
6
|
import "react";
|
|
@@ -43,9 +43,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
43
43
|
*
|
|
44
44
|
* @see {@link https://elements.ai-sdk.dev/components/queue | AI Elements Queue}
|
|
45
45
|
*/
|
|
46
|
-
function Queue({ className, children, ref, ...props }) {
|
|
46
|
+
function Queue({ className, children, density = "default", ref, ...props }) {
|
|
47
47
|
return /* @__PURE__ */ jsx("div", {
|
|
48
48
|
ref,
|
|
49
|
+
"data-density": density,
|
|
49
50
|
className: cx("queue", className),
|
|
50
51
|
...props,
|
|
51
52
|
children
|
|
@@ -86,7 +87,7 @@ function QueueSectionLabel({ className, children, count, label, icon, ref, ...pr
|
|
|
86
87
|
children: [icon, /* @__PURE__ */ jsxs("span", { children: [content, count === void 0 ? null : ` · ${count}`] })]
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
|
-
function QueueList({ className, children, ref, ...props }) {
|
|
90
|
+
function QueueList({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, children, ref, ...props }) {
|
|
90
91
|
return /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
91
92
|
ref,
|
|
92
93
|
className: cx("queue__list", className),
|
|
@@ -97,6 +98,9 @@ function QueueList({ className, children, ref, ...props }) {
|
|
|
97
98
|
className: "queue__list-scroll",
|
|
98
99
|
children: /* @__PURE__ */ jsx("ul", {
|
|
99
100
|
className: "queue__list-inner",
|
|
101
|
+
"aria-label": ariaLabel,
|
|
102
|
+
"aria-labelledby": ariaLabelledBy,
|
|
103
|
+
role: "list",
|
|
100
104
|
children
|
|
101
105
|
})
|
|
102
106
|
})
|
|
@@ -114,6 +118,16 @@ function QueueSectionContent({ className, ref, ...props }) {
|
|
|
114
118
|
unstyled: true
|
|
115
119
|
});
|
|
116
120
|
}
|
|
121
|
+
/** Actions that apply to the whole queue section rather than one item. */
|
|
122
|
+
function QueueSectionActions({ className, ref, ...props }) {
|
|
123
|
+
return /* @__PURE__ */ jsx("div", {
|
|
124
|
+
ref,
|
|
125
|
+
role: "group",
|
|
126
|
+
"data-slot": "queue-section-actions",
|
|
127
|
+
className: cx("queue__section-actions", className),
|
|
128
|
+
...props
|
|
129
|
+
});
|
|
130
|
+
}
|
|
117
131
|
function normalizeQueueItemStatus(status) {
|
|
118
132
|
return status === "completed" ? "complete" : status;
|
|
119
133
|
}
|
|
@@ -154,9 +168,10 @@ function QueueItemDescription({ className, children, completed = false, ref, ...
|
|
|
154
168
|
children
|
|
155
169
|
});
|
|
156
170
|
}
|
|
157
|
-
function QueueItemActions({ className, children, ref, ...props }) {
|
|
171
|
+
function QueueItemActions({ className, children, persistent = false, ref, ...props }) {
|
|
158
172
|
return /* @__PURE__ */ jsx("div", {
|
|
159
173
|
ref,
|
|
174
|
+
"data-persistent": persistent || void 0,
|
|
160
175
|
className: cx("queue__item-actions", className),
|
|
161
176
|
...props,
|
|
162
177
|
children
|
|
@@ -212,4 +227,4 @@ function QueueItemFile({ className, children, name, size, ref, ...props }) {
|
|
|
212
227
|
});
|
|
213
228
|
}
|
|
214
229
|
//#endregion
|
|
215
|
-
export { Queue, QueueItem, QueueItemAction, QueueItemActions, QueueItemAttachment, QueueItemContent, QueueItemDescription, QueueItemFile, QueueItemImage, QueueItemIndicator, QueueList, QueueSection, QueueSectionContent, QueueSectionLabel, QueueSectionTrigger };
|
|
230
|
+
export { Queue, QueueItem, QueueItemAction, QueueItemActions, QueueItemAttachment, QueueItemContent, QueueItemDescription, QueueItemFile, QueueItemImage, QueueItemIndicator, QueueList, QueueSection, QueueSectionActions, QueueSectionContent, QueueSectionLabel, QueueSectionTrigger };
|
|
@@ -50,7 +50,7 @@ declare function Reasoning({
|
|
|
50
50
|
ref,
|
|
51
51
|
...props
|
|
52
52
|
}: ReasoningProps & {
|
|
53
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
53
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
54
54
|
}): React.JSX.Element;
|
|
55
55
|
interface ReasoningTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {
|
|
56
56
|
getThinkingMessage?: (isStreaming: boolean, duration?: number) => React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Activity, ActivityContent, ActivityText, ActivityTrigger } from "./Activity.js";
|
|
4
4
|
import { MessageResponse } from "./Message.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -53,7 +53,7 @@ function useReasoning() {
|
|
|
53
53
|
function Reasoning({ className, isStreaming = false, duration, open, defaultOpen, onOpenChange, children, ref, ...props }) {
|
|
54
54
|
const [internalOpen, setInternalOpen] = React.useState(defaultOpen ?? isStreaming);
|
|
55
55
|
const [internalDuration, setInternalDuration] = React.useState(duration);
|
|
56
|
-
const startTimeRef = React.useRef(
|
|
56
|
+
const startTimeRef = React.useRef(null);
|
|
57
57
|
const isControlled = open !== void 0;
|
|
58
58
|
const currentOpen = isControlled ? open : internalOpen;
|
|
59
59
|
const preventAutoOpen = defaultOpen === false;
|
|
@@ -77,13 +77,13 @@ function Reasoning({ className, isStreaming = false, duration, open, defaultOpen
|
|
|
77
77
|
startTimeRef.current = null;
|
|
78
78
|
}
|
|
79
79
|
}, [duration, isStreaming]);
|
|
80
|
+
const requestAutoOpen = React.useEffectEvent(() => setOpenState(true));
|
|
80
81
|
React.useEffect(() => {
|
|
81
|
-
if (isStreaming && !currentOpen && !preventAutoOpen)
|
|
82
|
+
if (isStreaming && !currentOpen && !preventAutoOpen) requestAutoOpen();
|
|
82
83
|
}, [
|
|
83
84
|
currentOpen,
|
|
84
85
|
isStreaming,
|
|
85
|
-
preventAutoOpen
|
|
86
|
-
setOpenState
|
|
86
|
+
preventAutoOpen
|
|
87
87
|
]);
|
|
88
88
|
const ctx = React.useMemo(() => ({
|
|
89
89
|
isStreaming,
|
|
@@ -31,7 +31,7 @@ declare function Sources({
|
|
|
31
31
|
ref,
|
|
32
32
|
...props
|
|
33
33
|
}: SourcesProps & {
|
|
34
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
34
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
35
35
|
}): React.JSX.Element;
|
|
36
36
|
interface SourcesTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {
|
|
37
37
|
/** Number of sources to show in the trigger label. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { D as LinkIcon, p as ChevronRightIcon } from "../../icons-cuEtsgj9.js";
|
|
2
3
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
-
import { D as LinkIcon, p as ChevronRightIcon } from "../../icons-CeGfXO21.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-sdk/Sources.tsx
|
|
@@ -32,7 +32,7 @@ declare function Task({
|
|
|
32
32
|
ref,
|
|
33
33
|
...props
|
|
34
34
|
}: TaskProps & {
|
|
35
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
35
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
36
36
|
}): React.JSX.Element;
|
|
37
37
|
interface TaskTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {
|
|
38
38
|
/** Heading text shown in the trigger row. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
+
import { S as FileIcon, U as SearchIcon, p as ChevronRightIcon } from "../../icons-cuEtsgj9.js";
|
|
2
3
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
-
import { S as FileIcon, U as SearchIcon, p as ChevronRightIcon } from "../../icons-CeGfXO21.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-sdk/Task.tsx
|
|
@@ -49,7 +49,7 @@ declare function ChatGptSignInScreen({
|
|
|
49
49
|
ref,
|
|
50
50
|
...props
|
|
51
51
|
}: ChatGptSignInScreenProps & {
|
|
52
|
-
ref?: React.Ref<HTMLElement>;
|
|
52
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLElement>;
|
|
53
53
|
}): React.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { ChatGptSignInScreen, ChatGptSignInScreenProps, ChatGptSignInSecondaryAction };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { t as ProviderLogo } from "../../provider-logos-DWYY8wNz.js";
|
|
5
5
|
import "react";
|
|
@@ -15,13 +15,17 @@ interface CodexModelSelectorProps<ModelT extends CodexModel = CodexModel> {
|
|
|
15
15
|
readonly onSelectModel: (model: ModelT) => void;
|
|
16
16
|
/** Current reasoning effort advertised by the selected model. */
|
|
17
17
|
readonly selectedEffortId?: ReasoningEffort<ModelT> | null;
|
|
18
|
+
/** Selects one of the current model's advertised reasoning efforts. */
|
|
18
19
|
readonly onSelectEffort?: (effortId: ReasoningEffort<ModelT>) => void;
|
|
19
20
|
/** Current service tier advertised by the selected model. */
|
|
20
21
|
readonly selectedSpeedId?: ServiceTier<ModelT> | null;
|
|
22
|
+
/** Selects an advertised service tier, or null for the account default. */
|
|
21
23
|
readonly onSelectSpeed?: (speedId: ServiceTier<ModelT> | null) => void;
|
|
22
24
|
/** Restores all values to the consuming app's preferred defaults. */
|
|
23
25
|
readonly onReset?: () => void;
|
|
26
|
+
/** Prevents opening the response-settings menu. */
|
|
24
27
|
readonly disabled?: boolean;
|
|
28
|
+
/** Additional class name for placement in the consuming toolbar. */
|
|
25
29
|
readonly className?: string;
|
|
26
30
|
/** Controlled menu open state. */
|
|
27
31
|
readonly open?: boolean;
|
|
@@ -29,6 +33,7 @@ interface CodexModelSelectorProps<ModelT extends CodexModel = CodexModel> {
|
|
|
29
33
|
readonly defaultOpen?: boolean;
|
|
30
34
|
/** Receives Base UI's full open-change event details. */
|
|
31
35
|
readonly onOpenChange?: MenuProps["onOpenChange"];
|
|
36
|
+
/** Accessible name for the compact menu trigger. */
|
|
32
37
|
readonly "aria-label"?: string;
|
|
33
38
|
}
|
|
34
39
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, p as ChevronRightIcon } from "../../icons-
|
|
2
|
+
import { H as RefreshIcon, d as CheckIcon, f as ChevronDownIcon, l as BrainIcon, p as ChevronRightIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
|
-
import { Menu } from "../foundations/Menu.js";
|
|
5
4
|
import { c as titleCase } from "../../format-COCyV98Z.js";
|
|
5
|
+
import { Menu } from "../foundations/Menu.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/extension/CodexModelSelector.tsx
|
|
@@ -15,6 +15,7 @@ interface ConversationTabPickerProps<Tab extends ConversationTabPickerItem = Con
|
|
|
15
15
|
onSelect: (tab: Tab) => void | Promise<void>;
|
|
16
16
|
/** Maximum avatars shown in the collapsed trigger. */
|
|
17
17
|
maxVisible?: number;
|
|
18
|
+
/** Visible heading for the tab choices in the menu. */
|
|
18
19
|
groupLabel?: React.ReactNode;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { et as WarningIcon } from "../../icons-
|
|
1
|
+
import { et as WarningIcon } from "../../icons-cuEtsgj9.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
|
-
import { Menu } from "../foundations/Menu.js";
|
|
4
3
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
5
5
|
import { Avatar } from "../foundations/Avatar.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor } from "../../Button-
|
|
1
|
+
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor } from "../../Button-DjONW5UW.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
4
4
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as AvatarImageProps, n as AvatarFallbackProps, o as AvatarRootProps } from "../../Avatar-o2NO1fCG.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/foundations/AppIcon.d.ts
|
|
5
5
|
type AppIconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
type AppIconVariant = "artwork" | "surface" | "contrast";
|
|
7
7
|
interface AppIconRootProps extends Omit<AvatarRootProps, "shape" | "size"> {
|
|
8
|
+
/** Tile dimensions; use `md` for standard app rows and controls. */
|
|
8
9
|
size?: AppIconSize;
|
|
9
10
|
/** Artwork fills the tile; surface and contrast variants inset a standalone mark. */
|
|
10
11
|
variant?: AppIconVariant;
|
|
@@ -20,7 +21,7 @@ declare function AppIconRoot({
|
|
|
20
21
|
ref,
|
|
21
22
|
...props
|
|
22
23
|
}: AppIconRootProps & {
|
|
23
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
24
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLSpanElement>;
|
|
24
25
|
}): React.JSX.Element;
|
|
25
26
|
/** App artwork or a resolved favicon, with lazy, async, no-referrer loading defaults. */
|
|
26
27
|
declare function AppIconImage({
|
|
@@ -3,6 +3,11 @@ import "react";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
|
|
5
5
|
//#region src/components/foundations/Autocomplete.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Direct Base UI generic state root; its composed anatomy is documented in the Storybook entry.
|
|
8
|
+
* @oversightIgnore prop-descriptions-missing
|
|
9
|
+
*/
|
|
10
|
+
const AutocompleteRoot = Autocomplete$1.Root;
|
|
6
11
|
function Input({ className, ref, ...props }) {
|
|
7
12
|
const classes = mergeBaseClassName("autocomplete__input", className);
|
|
8
13
|
return /* @__PURE__ */ jsx(Autocomplete$1.Input, {
|
|
@@ -169,7 +174,7 @@ function GroupLabel({ className, ref, ...props }) {
|
|
|
169
174
|
* @see {@link https://base-ui.com/react/components/autocomplete | Base UI Autocomplete}
|
|
170
175
|
*/
|
|
171
176
|
const Autocomplete = {
|
|
172
|
-
Root:
|
|
177
|
+
Root: AutocompleteRoot,
|
|
173
178
|
Input,
|
|
174
179
|
Trigger,
|
|
175
180
|
Clear,
|
|
@@ -1,122 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Avatar.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the Avatar.Root component.
|
|
7
|
-
*/
|
|
8
|
-
interface AvatarRootProps extends React.ComponentPropsWithoutRef<typeof Avatar$1.Root> {
|
|
9
|
-
size?: "sm" | "md" | "lg" | "xl";
|
|
10
|
-
shape?: "circle" | "rounded";
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Props for the Avatar.Image component.
|
|
14
|
-
*/
|
|
15
|
-
interface AvatarImageProps extends React.ComponentPropsWithoutRef<typeof Avatar$1.Image> {
|
|
16
|
-
fit?: "cover" | "contain";
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Props for the Avatar.Fallback component.
|
|
20
|
-
*/
|
|
21
|
-
interface AvatarFallbackProps extends React.ComponentPropsWithoutRef<typeof Avatar$1.Fallback> {}
|
|
22
|
-
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
23
|
-
interface AvatarGroupCountProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
24
|
-
/**
|
|
25
|
-
* Container for the avatar. Renders a `<span>` element.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* <Avatar.Root>
|
|
30
|
-
* <Avatar.Image src="/photo.jpg" alt="User" />
|
|
31
|
-
* <Avatar.Fallback>JD</Avatar.Fallback>
|
|
32
|
-
* </Avatar.Root>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link https://base-ui.com/react/components/avatar | Base UI Avatar}
|
|
36
|
-
*/
|
|
37
|
-
declare function AvatarRoot({
|
|
38
|
-
className,
|
|
39
|
-
size,
|
|
40
|
-
shape,
|
|
41
|
-
ref,
|
|
42
|
-
...props
|
|
43
|
-
}: AvatarRootProps & {
|
|
44
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
45
|
-
}): React.JSX.Element;
|
|
46
|
-
/**
|
|
47
|
-
* Displays the avatar image. Renders an `<img>` element.
|
|
48
|
-
*/
|
|
49
|
-
declare function AvatarImage({
|
|
50
|
-
className,
|
|
51
|
-
fit,
|
|
52
|
-
ref,
|
|
53
|
-
...props
|
|
54
|
-
}: AvatarImageProps & {
|
|
55
|
-
ref?: React.Ref<HTMLImageElement>;
|
|
56
|
-
}): React.JSX.Element;
|
|
57
|
-
/**
|
|
58
|
-
* Displays when the image fails to load or isn't provided.
|
|
59
|
-
* Typically contains initials or an icon. Renders a `<span>` element.
|
|
60
|
-
*/
|
|
61
|
-
declare function AvatarFallback({
|
|
62
|
-
className,
|
|
63
|
-
ref,
|
|
64
|
-
...props
|
|
65
|
-
}: AvatarFallbackProps & {
|
|
66
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
67
|
-
}): React.JSX.Element;
|
|
68
|
-
declare function AvatarGroup({
|
|
69
|
-
className,
|
|
70
|
-
ref,
|
|
71
|
-
...props
|
|
72
|
-
}: AvatarGroupProps & {
|
|
73
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
74
|
-
}): React.JSX.Element;
|
|
75
|
-
declare function AvatarGroupCount({
|
|
76
|
-
className,
|
|
77
|
-
ref,
|
|
78
|
-
...props
|
|
79
|
-
}: AvatarGroupCountProps & {
|
|
80
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
81
|
-
}): React.JSX.Element;
|
|
82
|
-
/**
|
|
83
|
-
* An avatar component for displaying user profile pictures with fallback support.
|
|
84
|
-
* Shows initials or an icon when the image fails to load or isn't provided.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```tsx
|
|
88
|
-
* // With image
|
|
89
|
-
* <Avatar.Root>
|
|
90
|
-
* <Avatar.Image src="/profile.jpg" alt="John Doe" />
|
|
91
|
-
* <Avatar.Fallback>JD</Avatar.Fallback>
|
|
92
|
-
* </Avatar.Root>
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```tsx
|
|
97
|
-
* // Fallback only (no image)
|
|
98
|
-
* <Avatar.Root>
|
|
99
|
-
* <Avatar.Fallback>AB</Avatar.Fallback>
|
|
100
|
-
* </Avatar.Root>
|
|
101
|
-
* ```
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```tsx
|
|
105
|
-
* // With delayed fallback
|
|
106
|
-
* <Avatar.Root>
|
|
107
|
-
* <Avatar.Image src="/slow-loading.jpg" alt="User" />
|
|
108
|
-
* <Avatar.Fallback delay={500}>?</Avatar.Fallback>
|
|
109
|
-
* </Avatar.Root>
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @see {@link https://base-ui.com/react/components/avatar | Base UI Avatar}
|
|
113
|
-
*/
|
|
114
|
-
declare const Avatar: {
|
|
115
|
-
Root: typeof AvatarRoot;
|
|
116
|
-
Image: typeof AvatarImage;
|
|
117
|
-
Fallback: typeof AvatarFallback;
|
|
118
|
-
Group: typeof AvatarGroup;
|
|
119
|
-
GroupCount: typeof AvatarGroupCount;
|
|
120
|
-
};
|
|
121
|
-
//#endregion
|
|
1
|
+
import { a as AvatarImageProps, i as AvatarGroupProps, n as AvatarFallbackProps, o as AvatarRootProps, r as AvatarGroupCountProps, t as Avatar } from "../../Avatar-o2NO1fCG.js";
|
|
122
2
|
export { Avatar, AvatarFallbackProps, AvatarGroupCountProps, AvatarGroupProps, AvatarImageProps, AvatarRootProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor, o as ButtonVariantsOptions, r as ButtonProps, s as buttonVariants, t as Button } from "../../Button-
|
|
1
|
+
import { a as ButtonVariant, i as ButtonSize, n as ButtonColor, o as ButtonVariantsOptions, r as ButtonProps, s as buttonVariants, t as Button } from "../../Button-DjONW5UW.js";
|
|
2
2
|
export { Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, ButtonVariantsOptions, buttonVariants };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
2
|
|
|
4
3
|
//#region src/components/foundations/Card.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Props for the Card component.
|
|
7
6
|
*/
|
|
8
|
-
interface CardProps extends
|
|
7
|
+
interface CardProps extends useRender.ComponentProps<"div"> {
|
|
9
8
|
/**
|
|
10
9
|
* Enable hover animation effects.
|
|
11
10
|
* @default false
|
|
@@ -14,14 +13,16 @@ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
14
13
|
/** Compact density for cards embedded in tool and workbench lists. */
|
|
15
14
|
size?: "default" | "sm";
|
|
16
15
|
}
|
|
17
|
-
interface CardHeaderProps extends
|
|
16
|
+
interface CardHeaderProps extends useRender.ComponentProps<"div"> {}
|
|
18
17
|
interface CardTitleProps extends useRender.ComponentProps<"div"> {}
|
|
19
18
|
interface CardDescriptionProps extends useRender.ComponentProps<"div"> {}
|
|
20
|
-
interface CardActionProps extends
|
|
21
|
-
interface CardContentProps extends
|
|
22
|
-
interface CardFooterProps extends
|
|
19
|
+
interface CardActionProps extends useRender.ComponentProps<"div"> {}
|
|
20
|
+
interface CardContentProps extends useRender.ComponentProps<"div"> {}
|
|
21
|
+
interface CardFooterProps extends useRender.ComponentProps<"div"> {}
|
|
23
22
|
/**
|
|
24
23
|
* A container component that provides consistent styling and elevation.
|
|
24
|
+
* Every part accepts Base UI's `render` prop, so semantic elements and existing
|
|
25
|
+
* behavior owners share the same node, props, and refs without an extra wrapper.
|
|
25
26
|
*
|
|
26
27
|
* @example
|
|
27
28
|
* ```tsx
|
|
@@ -30,60 +31,54 @@ interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
30
31
|
* <p>Content</p>
|
|
31
32
|
* </Card>
|
|
32
33
|
*
|
|
33
|
-
* <a href="/details">
|
|
34
|
-
* <Card hover>View details</Card>
|
|
35
|
-
* </a>
|
|
34
|
+
* <Card hover render={<a href="/details" />}>View details</Card>
|
|
36
35
|
* ```
|
|
36
|
+
*
|
|
37
|
+
* @see {@link https://base-ui.com/react/handbook/composition | Base UI composition}
|
|
37
38
|
*/
|
|
38
39
|
declare function Card({
|
|
39
40
|
hover,
|
|
40
41
|
size,
|
|
41
42
|
className,
|
|
42
|
-
|
|
43
|
+
render,
|
|
43
44
|
ref,
|
|
44
45
|
...props
|
|
45
|
-
}: CardProps
|
|
46
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
-
}): React.JSX.Element;
|
|
46
|
+
}: CardProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
48
47
|
declare function CardHeader({
|
|
49
48
|
className,
|
|
49
|
+
render,
|
|
50
50
|
ref,
|
|
51
51
|
...props
|
|
52
|
-
}: CardHeaderProps
|
|
53
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
54
|
-
}): React.JSX.Element;
|
|
52
|
+
}: CardHeaderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
55
53
|
declare function CardTitle({
|
|
56
54
|
className,
|
|
57
55
|
render,
|
|
58
56
|
ref,
|
|
59
57
|
...props
|
|
60
|
-
}: CardTitleProps):
|
|
58
|
+
}: CardTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
61
59
|
declare function CardDescription({
|
|
62
60
|
className,
|
|
63
61
|
render,
|
|
64
62
|
ref,
|
|
65
63
|
...props
|
|
66
|
-
}: CardDescriptionProps):
|
|
64
|
+
}: CardDescriptionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
67
65
|
declare function CardAction({
|
|
68
66
|
className,
|
|
67
|
+
render,
|
|
69
68
|
ref,
|
|
70
69
|
...props
|
|
71
|
-
}: CardActionProps
|
|
72
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
73
|
-
}): React.JSX.Element;
|
|
70
|
+
}: CardActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
74
71
|
declare function CardContent({
|
|
75
72
|
className,
|
|
73
|
+
render,
|
|
76
74
|
ref,
|
|
77
75
|
...props
|
|
78
|
-
}: CardContentProps
|
|
79
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
80
|
-
}): React.JSX.Element;
|
|
76
|
+
}: CardContentProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
81
77
|
declare function CardFooter({
|
|
82
78
|
className,
|
|
79
|
+
render,
|
|
83
80
|
ref,
|
|
84
81
|
...props
|
|
85
|
-
}: CardFooterProps
|
|
86
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
87
|
-
}): React.JSX.Element;
|
|
82
|
+
}: CardFooterProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
88
83
|
//#endregion
|
|
89
84
|
export { Card, CardAction, CardActionProps, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps };
|