@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,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
3
|
//#region src/components/foundations/Card.tsx
|
|
6
4
|
/**
|
|
7
5
|
* A container component that provides consistent styling and elevation.
|
|
6
|
+
* Every part accepts Base UI's `render` prop, so semantic elements and existing
|
|
7
|
+
* behavior owners share the same node, props, and refs without an extra wrapper.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```tsx
|
|
@@ -13,27 +13,34 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
13
13
|
* <p>Content</p>
|
|
14
14
|
* </Card>
|
|
15
15
|
*
|
|
16
|
-
* <a href="/details">
|
|
17
|
-
* <Card hover>View details</Card>
|
|
18
|
-
* </a>
|
|
16
|
+
* <Card hover render={<a href="/details" />}>View details</Card>
|
|
19
17
|
* ```
|
|
18
|
+
*
|
|
19
|
+
* @see {@link https://base-ui.com/react/handbook/composition | Base UI composition}
|
|
20
20
|
*/
|
|
21
|
-
function Card({ hover = false, size = "default", className = "",
|
|
22
|
-
return
|
|
21
|
+
function Card({ hover = false, size = "default", className = "", render, ref, ...props }) {
|
|
22
|
+
return useRender({
|
|
23
|
+
defaultTagName: "div",
|
|
24
|
+
render,
|
|
23
25
|
ref,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
props: {
|
|
27
|
+
"data-slot": "card",
|
|
28
|
+
"data-size": size,
|
|
29
|
+
...props,
|
|
30
|
+
className: cx("card", hover && "card--hover", className)
|
|
31
|
+
}
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
|
-
function CardHeader({ className
|
|
32
|
-
return
|
|
34
|
+
function CardHeader({ className, render, ref, ...props }) {
|
|
35
|
+
return useRender({
|
|
36
|
+
defaultTagName: "div",
|
|
37
|
+
render,
|
|
33
38
|
ref,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
props: {
|
|
40
|
+
"data-slot": "card-header",
|
|
41
|
+
...props,
|
|
42
|
+
className: cx("card__header", className)
|
|
43
|
+
}
|
|
37
44
|
});
|
|
38
45
|
}
|
|
39
46
|
function CardTitle({ className = "", render, ref, ...props }) {
|
|
@@ -60,28 +67,40 @@ function CardDescription({ className = "", render, ref, ...props }) {
|
|
|
60
67
|
}
|
|
61
68
|
});
|
|
62
69
|
}
|
|
63
|
-
function CardAction({ className
|
|
64
|
-
return
|
|
70
|
+
function CardAction({ className, render, ref, ...props }) {
|
|
71
|
+
return useRender({
|
|
72
|
+
defaultTagName: "div",
|
|
73
|
+
render,
|
|
65
74
|
ref,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
props: {
|
|
76
|
+
"data-slot": "card-action",
|
|
77
|
+
...props,
|
|
78
|
+
className: cx("card__action", className)
|
|
79
|
+
}
|
|
69
80
|
});
|
|
70
81
|
}
|
|
71
|
-
function CardContent({ className
|
|
72
|
-
return
|
|
82
|
+
function CardContent({ className, render, ref, ...props }) {
|
|
83
|
+
return useRender({
|
|
84
|
+
defaultTagName: "div",
|
|
85
|
+
render,
|
|
73
86
|
ref,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
props: {
|
|
88
|
+
"data-slot": "card-content",
|
|
89
|
+
...props,
|
|
90
|
+
className: cx("card__content", className)
|
|
91
|
+
}
|
|
77
92
|
});
|
|
78
93
|
}
|
|
79
|
-
function CardFooter({ className
|
|
80
|
-
return
|
|
94
|
+
function CardFooter({ className, render, ref, ...props }) {
|
|
95
|
+
return useRender({
|
|
96
|
+
defaultTagName: "div",
|
|
97
|
+
render,
|
|
81
98
|
ref,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
99
|
+
props: {
|
|
100
|
+
"data-slot": "card-footer",
|
|
101
|
+
...props,
|
|
102
|
+
className: cx("card__footer", className)
|
|
103
|
+
}
|
|
85
104
|
});
|
|
86
105
|
}
|
|
87
106
|
//#endregion
|
|
@@ -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-cuEtsgj9.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
|
|
@@ -73,7 +73,7 @@ declare function CheckboxGroupRoot({
|
|
|
73
73
|
ref,
|
|
74
74
|
...props
|
|
75
75
|
}: CheckboxGroupProps & {
|
|
76
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
76
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
77
77
|
}): React.JSX.Element;
|
|
78
78
|
declare function CheckboxGroupItem({
|
|
79
79
|
className,
|
|
@@ -42,7 +42,7 @@ declare function CollapsibleRoot({
|
|
|
42
42
|
ref,
|
|
43
43
|
...props
|
|
44
44
|
}: CollapsibleRootProps & {
|
|
45
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
45
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
46
46
|
}): React.JSX.Element;
|
|
47
47
|
/**
|
|
48
48
|
* Button that toggles the panel visibility. Renders a `<button>` element.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
5
5
|
//#region src/components/foundations/Collapsible.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Container that groups all collapsible parts. Renders a `<div>` element.
|
|
@@ -3,6 +3,11 @@ 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
|
|
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 ComboboxRoot = Combobox$1.Root;
|
|
6
11
|
function ComboboxInputGroup({ className, ref, ...props }) {
|
|
7
12
|
const classes = mergeBaseClassName("combobox__input-group", className);
|
|
8
13
|
return /* @__PURE__ */ jsx(Combobox$1.InputGroup, {
|
|
@@ -145,7 +150,7 @@ function ComboboxGroupLabel({ className, ref, ...props }) {
|
|
|
145
150
|
* @see {@link https://base-ui.com/react/components/combobox | Base UI Combobox}
|
|
146
151
|
*/
|
|
147
152
|
const Combobox = {
|
|
148
|
-
Root:
|
|
153
|
+
Root: ComboboxRoot,
|
|
149
154
|
InputGroup: ComboboxInputGroup,
|
|
150
155
|
Input: ComboboxInput,
|
|
151
156
|
Trigger: ComboboxTrigger,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { _ as DotIcon, d as CheckIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
@@ -1,2 +1,107 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
3
|
+
|
|
4
|
+
//#region src/components/foundations/Dialog.d.ts
|
|
5
|
+
type DialogProps<Payload = unknown> = Dialog$1.Root.Props<Payload>;
|
|
6
|
+
type DialogTriggerProps<Payload = unknown> = Dialog$1.Trigger.Props<Payload> & React.RefAttributes<HTMLElement>;
|
|
7
|
+
interface DialogPortalProps extends React.ComponentPropsWithRef<typeof Dialog$1.Portal> {}
|
|
8
|
+
interface DialogBackdropProps extends React.ComponentPropsWithRef<typeof Dialog$1.Backdrop> {}
|
|
9
|
+
interface DialogViewportProps extends React.ComponentPropsWithRef<typeof Dialog$1.Viewport> {}
|
|
10
|
+
interface DialogPopupProps extends React.ComponentPropsWithRef<typeof Dialog$1.Popup> {
|
|
11
|
+
/**
|
|
12
|
+
* The size of the dialog.
|
|
13
|
+
* @default 'md'
|
|
14
|
+
*/
|
|
15
|
+
size?: "sm" | "md" | "lg" | "fullscreen";
|
|
16
|
+
}
|
|
17
|
+
interface DialogTitleProps extends React.ComponentPropsWithRef<typeof Dialog$1.Title> {}
|
|
18
|
+
interface DialogDescriptionProps extends React.ComponentPropsWithRef<typeof Dialog$1.Description> {}
|
|
19
|
+
interface DialogCloseProps extends React.ComponentPropsWithRef<typeof Dialog$1.Close> {}
|
|
20
|
+
interface DialogHeaderProps extends React.ComponentPropsWithRef<"div"> {}
|
|
21
|
+
interface DialogFooterProps extends React.ComponentPropsWithRef<"div"> {}
|
|
22
|
+
/**
|
|
23
|
+
* A dialog component for modal interactions.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>
|
|
28
|
+
* <Dialog.Trigger render={<Button />}>Open</Dialog.Trigger>
|
|
29
|
+
* <Dialog.Portal>
|
|
30
|
+
* <Dialog.Backdrop />
|
|
31
|
+
* <Dialog.Viewport>
|
|
32
|
+
* <Dialog.Popup>
|
|
33
|
+
* <Dialog.Title>Confirm</Dialog.Title>
|
|
34
|
+
* <Dialog.Description>Are you sure?</Dialog.Description>
|
|
35
|
+
* <Dialog.Close>Cancel</Dialog.Close>
|
|
36
|
+
* </Dialog.Popup>
|
|
37
|
+
* </Dialog.Viewport>
|
|
38
|
+
* </Dialog.Portal>
|
|
39
|
+
* </Dialog.Root>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link https://base-ui.com/react/components/dialog | Base UI Dialog}
|
|
43
|
+
*/
|
|
44
|
+
declare function DialogTrigger<Payload>({
|
|
45
|
+
render,
|
|
46
|
+
className,
|
|
47
|
+
ref,
|
|
48
|
+
...props
|
|
49
|
+
}: DialogTriggerProps<Payload>): React.JSX.Element;
|
|
50
|
+
declare function DialogBackdrop({
|
|
51
|
+
className,
|
|
52
|
+
ref,
|
|
53
|
+
...props
|
|
54
|
+
}: DialogBackdropProps): React.JSX.Element;
|
|
55
|
+
declare function DialogViewport({
|
|
56
|
+
className,
|
|
57
|
+
ref,
|
|
58
|
+
...props
|
|
59
|
+
}: DialogViewportProps): React.JSX.Element;
|
|
60
|
+
declare function DialogPopup({
|
|
61
|
+
size,
|
|
62
|
+
className,
|
|
63
|
+
ref,
|
|
64
|
+
...props
|
|
65
|
+
}: DialogPopupProps): React.JSX.Element;
|
|
66
|
+
declare function DialogHeader({
|
|
67
|
+
className,
|
|
68
|
+
ref,
|
|
69
|
+
...props
|
|
70
|
+
}: DialogHeaderProps): React.JSX.Element;
|
|
71
|
+
declare function DialogFooter({
|
|
72
|
+
className,
|
|
73
|
+
ref,
|
|
74
|
+
...props
|
|
75
|
+
}: DialogFooterProps): React.JSX.Element;
|
|
76
|
+
declare function DialogTitle({
|
|
77
|
+
className,
|
|
78
|
+
ref,
|
|
79
|
+
...props
|
|
80
|
+
}: DialogTitleProps): React.JSX.Element;
|
|
81
|
+
declare function DialogDescription({
|
|
82
|
+
className,
|
|
83
|
+
ref,
|
|
84
|
+
...props
|
|
85
|
+
}: DialogDescriptionProps): React.JSX.Element;
|
|
86
|
+
declare function DialogClose({
|
|
87
|
+
render,
|
|
88
|
+
className,
|
|
89
|
+
ref,
|
|
90
|
+
...props
|
|
91
|
+
}: DialogCloseProps): React.JSX.Element;
|
|
92
|
+
declare const Dialog: {
|
|
93
|
+
Root: typeof Dialog$1.Root;
|
|
94
|
+
Trigger: typeof DialogTrigger;
|
|
95
|
+
Portal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
Backdrop: typeof DialogBackdrop;
|
|
97
|
+
Viewport: typeof DialogViewport;
|
|
98
|
+
Popup: typeof DialogPopup;
|
|
99
|
+
Header: typeof DialogHeader;
|
|
100
|
+
Footer: typeof DialogFooter;
|
|
101
|
+
Title: typeof DialogTitle;
|
|
102
|
+
Description: typeof DialogDescription;
|
|
103
|
+
Close: typeof DialogClose;
|
|
104
|
+
createHandle: typeof Dialog$1.createHandle;
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
2
107
|
export { Dialog, DialogBackdropProps, DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogViewportProps };
|
|
@@ -53,7 +53,7 @@ declare function EmptyState({
|
|
|
53
53
|
ref,
|
|
54
54
|
...props
|
|
55
55
|
}: EmptyStateProps & {
|
|
56
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
57
57
|
}): React.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { EmptyState, EmptyStateProps };
|
|
@@ -6,6 +6,7 @@ import { Field as Field$1 } from "@base-ui/react/field";
|
|
|
6
6
|
* Props for the Field.Root component.
|
|
7
7
|
*/
|
|
8
8
|
interface FieldRootProps extends React.ComponentPropsWithoutRef<typeof Field$1.Root> {
|
|
9
|
+
/** Places label and control vertically, horizontally, or responsively by container width. */
|
|
9
10
|
orientation?: "vertical" | "horizontal" | "responsive";
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
@@ -62,7 +63,7 @@ declare function FieldRoot({
|
|
|
62
63
|
ref,
|
|
63
64
|
...props
|
|
64
65
|
}: FieldRootProps & {
|
|
65
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
66
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
66
67
|
}): React.JSX.Element;
|
|
67
68
|
/**
|
|
68
69
|
* Accessible label that is automatically associated with the field control.
|
|
@@ -37,7 +37,7 @@ declare function FieldsetRoot({
|
|
|
37
37
|
variant,
|
|
38
38
|
...props
|
|
39
39
|
}: FieldsetRootProps & {
|
|
40
|
-
ref?: React.Ref<HTMLFieldSetElement>;
|
|
40
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLFieldSetElement>;
|
|
41
41
|
}): React.JSX.Element;
|
|
42
42
|
/**
|
|
43
43
|
* Accessible label for the fieldset, automatically associated with it.
|
|
@@ -5,7 +5,7 @@ import { Form as Form$1 } from "@base-ui/react/form";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Form component.
|
|
7
7
|
*/
|
|
8
|
-
interface FormProps extends React.ComponentPropsWithoutRef<typeof Form$1
|
|
8
|
+
interface FormProps<Values extends Record<string, unknown> = Record<string, unknown>> extends React.ComponentPropsWithoutRef<typeof Form$1<Values>> {}
|
|
9
9
|
/**
|
|
10
10
|
* A form component that provides consolidated error handling and validation
|
|
11
11
|
* for form controls. Works seamlessly with the Field component.
|
|
@@ -80,12 +80,12 @@ interface FormProps extends React.ComponentPropsWithoutRef<typeof Form$1> {}
|
|
|
80
80
|
*
|
|
81
81
|
* @see {@link https://base-ui.com/react/components/form | Base UI Form}
|
|
82
82
|
*/
|
|
83
|
-
declare function Form({
|
|
83
|
+
declare function Form<Values extends Record<string, unknown> = Record<string, unknown>>({
|
|
84
84
|
className,
|
|
85
85
|
ref,
|
|
86
86
|
...props
|
|
87
|
-
}: FormProps & {
|
|
88
|
-
ref?: React.Ref<HTMLFormElement>;
|
|
87
|
+
}: FormProps<Values> & {
|
|
88
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLFormElement>;
|
|
89
89
|
}): React.JSX.Element;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { Form, FormProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as IconButtonProps, t as IconButton } from "../../IconButton-
|
|
1
|
+
import { n as IconButtonProps, t as IconButton } from "../../IconButton-ByiyjkYE.js";
|
|
2
2
|
export { IconButton, IconButtonProps };
|
|
@@ -38,7 +38,7 @@ declare function Label({
|
|
|
38
38
|
ref,
|
|
39
39
|
...props
|
|
40
40
|
}: LabelProps & {
|
|
41
|
-
ref?: React.Ref<HTMLLabelElement>;
|
|
41
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLLabelElement>;
|
|
42
42
|
}): React.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { Label, LabelProps };
|
|
@@ -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 { AnchorHTMLAttributes, ReactElement } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/foundations/LinkButton.d.ts
|
|
@@ -42,7 +42,7 @@ declare function LinkButton({
|
|
|
42
42
|
ref,
|
|
43
43
|
...props
|
|
44
44
|
}: LinkButtonProps & {
|
|
45
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
45
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLAnchorElement>;
|
|
46
46
|
}): import("react").JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { LinkButton, LinkButtonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { _ as DotIcon, d as CheckIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -43,7 +43,7 @@ declare function MeterRoot({
|
|
|
43
43
|
ref,
|
|
44
44
|
...props
|
|
45
45
|
}: MeterRootProps & {
|
|
46
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
46
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
47
47
|
}): React.JSX.Element;
|
|
48
48
|
/**
|
|
49
49
|
* The track that contains the indicator. Represents the full range.
|
|
@@ -47,7 +47,7 @@ declare function NumberFieldRoot({
|
|
|
47
47
|
ref,
|
|
48
48
|
...props
|
|
49
49
|
}: NumberFieldRootProps & {
|
|
50
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
50
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
51
51
|
}): React.JSX.Element;
|
|
52
52
|
/**
|
|
53
53
|
* Groups the input with increment and decrement buttons.
|
|
@@ -48,7 +48,7 @@ declare function ScrollAreaRoot({
|
|
|
48
48
|
ref,
|
|
49
49
|
...props
|
|
50
50
|
}: ScrollAreaRootProps & {
|
|
51
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
51
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
}): React.JSX.Element;
|
|
53
53
|
/**
|
|
54
54
|
* The scrollable viewport container.
|
|
@@ -15,7 +15,7 @@ declare function SearchFieldRoot({
|
|
|
15
15
|
ref,
|
|
16
16
|
...props
|
|
17
17
|
}: SearchFieldRootProps & {
|
|
18
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
18
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
19
19
|
}): React.JSX.Element;
|
|
20
20
|
/** Label associated with the search control through the underlying Field. */
|
|
21
21
|
declare function SearchFieldLabel({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { U as SearchIcon } from "../../icons-
|
|
2
|
+
import { U as SearchIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Field } from "./Field.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/foundations/SearchField.tsx
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-
|
|
2
|
+
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import "react";
|
|
4
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
|
/**
|
|
8
|
+
* Direct Base UI generic state root; its composed anatomy is documented in the Storybook entry.
|
|
9
|
+
* @oversightIgnore prop-descriptions-missing
|
|
10
|
+
*/
|
|
11
|
+
const SelectRoot = Select$1.Root;
|
|
12
|
+
/**
|
|
8
13
|
* A select component for choosing from a list of options.
|
|
9
14
|
*
|
|
10
15
|
* @example
|
|
@@ -174,7 +179,7 @@ function SelectScrollDownArrow({ className, children, ref, ...props }) {
|
|
|
174
179
|
});
|
|
175
180
|
}
|
|
176
181
|
const Select = {
|
|
177
|
-
Root:
|
|
182
|
+
Root: SelectRoot,
|
|
178
183
|
Label: SelectLabel,
|
|
179
184
|
Trigger: SelectTrigger,
|
|
180
185
|
Value: SelectValue,
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Separator.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the Separator component.
|
|
7
|
-
*/
|
|
8
|
-
interface SeparatorProps extends React.ComponentPropsWithRef<typeof Separator$1> {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the separator is purely visual.
|
|
11
|
-
* @default true
|
|
12
|
-
*/
|
|
13
|
-
decorative?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A visual divider component that separates content sections.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <Separator />
|
|
21
|
-
*
|
|
22
|
-
* <nav style={{ display: 'flex', alignItems: 'center' }}>
|
|
23
|
-
* <a href="/home">Home</a>
|
|
24
|
-
* <Separator orientation="vertical" />
|
|
25
|
-
* <a href="/about">About</a>
|
|
26
|
-
* </nav>
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link https://base-ui.com/react/components/separator | Base UI Separator}
|
|
30
|
-
*/
|
|
31
|
-
declare function Separator({
|
|
32
|
-
orientation,
|
|
33
|
-
decorative,
|
|
34
|
-
className,
|
|
35
|
-
ref,
|
|
36
|
-
...props
|
|
37
|
-
}: SeparatorProps & {
|
|
38
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
39
|
-
}): React.JSX.Element;
|
|
40
|
-
//#endregion
|
|
1
|
+
import { n as SeparatorProps, t as Separator } from "../../Separator-CzhtLYE1.js";
|
|
41
2
|
export { Separator, SeparatorProps };
|
|
@@ -79,7 +79,7 @@ declare function Stepper({
|
|
|
79
79
|
ref,
|
|
80
80
|
...props
|
|
81
81
|
}: StepperProps & {
|
|
82
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
82
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLDivElement>;
|
|
83
83
|
}): React.JSX.Element;
|
|
84
84
|
interface StepperNavProps extends Omit<React.ComponentPropsWithoutRef<typeof Tabs.List>, "unstyled"> {}
|
|
85
85
|
declare function StepperNav({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, d as CheckIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Tabs } from "./Tabs.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -15,7 +15,7 @@ declare function Textarea({
|
|
|
15
15
|
resize,
|
|
16
16
|
...props
|
|
17
17
|
}: TextareaProps & {
|
|
18
|
-
ref?: React.Ref<HTMLTextAreaElement>;
|
|
18
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLTextAreaElement>;
|
|
19
19
|
}): React.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Textarea, TextareaProps };
|
|
@@ -5,7 +5,11 @@ import { Toast as Toast$1 } from "@base-ui/react/toast";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Toast.Provider component.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type BaseToastProviderProps = React.ComponentPropsWithoutRef<typeof Toast$1.Provider>;
|
|
9
|
+
interface ToastProviderProps extends Omit<BaseToastProviderProps, "children"> {
|
|
10
|
+
/** Application subtree whose toast state is managed by this provider. */
|
|
11
|
+
children?: BaseToastProviderProps["children"];
|
|
12
|
+
}
|
|
9
13
|
/**
|
|
10
14
|
* Props for the Toast.Viewport component.
|
|
11
15
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { nt as XIcon } from "../../icons-
|
|
2
|
+
import { nt as XIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
3
|
+
|
|
4
|
+
//#region src/components/foundations/Toggle.d.ts
|
|
5
|
+
interface ToggleVariantsOptions {
|
|
6
|
+
/** Visual treatment; `outline` adds a bordered control surface. */
|
|
7
|
+
variant?: "default" | "outline" | null;
|
|
8
|
+
/** Control height and inline spacing. */
|
|
9
|
+
size?: "sm" | "md" | "lg" | null;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Props for the Toggle component.
|
|
14
|
+
*/
|
|
15
|
+
interface ToggleProps extends React.ComponentPropsWithoutRef<typeof Toggle$1>, Omit<ToggleVariantsOptions, "className"> {}
|
|
16
|
+
declare function toggleVariants({
|
|
17
|
+
variant,
|
|
18
|
+
size,
|
|
19
|
+
className
|
|
20
|
+
}?: ToggleVariantsOptions): string;
|
|
21
|
+
/**
|
|
22
|
+
* A two-state button that can be on (pressed) or off.
|
|
23
|
+
* Useful for toggling a setting or mode.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* // Basic toggle
|
|
28
|
+
* <Toggle>
|
|
29
|
+
* Bold
|
|
30
|
+
* </Toggle>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* // Controlled toggle
|
|
36
|
+
* const [pressed, setPressed] = useState(false);
|
|
37
|
+
*
|
|
38
|
+
* <Toggle pressed={pressed} onPressedChange={setPressed}>
|
|
39
|
+
* {pressed ? 'On' : 'Off'}
|
|
40
|
+
* </Toggle>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* // With icons
|
|
46
|
+
* <Toggle>
|
|
47
|
+
* {({ pressed }) => pressed ? <BoldIcon filled /> : <BoldIcon />}
|
|
48
|
+
* </Toggle>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* // Default pressed state
|
|
54
|
+
* <Toggle defaultPressed>
|
|
55
|
+
* Enabled
|
|
56
|
+
* </Toggle>
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @see {@link https://base-ui.com/react/components/toggle | Base UI Toggle}
|
|
60
|
+
*/
|
|
61
|
+
declare function Toggle({
|
|
62
|
+
className,
|
|
63
|
+
variant,
|
|
64
|
+
size,
|
|
65
|
+
ref,
|
|
66
|
+
...props
|
|
67
|
+
}: ToggleProps & {
|
|
68
|
+
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLButtonElement>;
|
|
69
|
+
}): React.JSX.Element;
|
|
70
|
+
//#endregion
|
|
2
71
|
export { Toggle, ToggleProps, ToggleVariantsOptions, toggleVariants };
|