@mcp-b/react-components 0.16.1 → 0.18.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/{AgentActivity-BNUNrP9O.d.ts → AgentActivity-D2SHSGFX.d.ts} +1 -1
- package/dist/{AgentChat-CrlpbvQJ.d.ts → AgentChat-ClxViuUM.d.ts} +4 -29
- package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
- package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
- package/dist/{Button-FX_hpqxm.d.ts → Button-DLGzHsjc.d.ts} +13 -7
- package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Bfp5PAg3.js} +9 -6
- package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-gV4kZeCI.d.ts} +2 -9
- package/dist/Collapsible-N64ASIQr.d.ts +119 -0
- package/dist/{Combobox-B9Fcd6q-.d.ts → Combobox-CYc37s5l.d.ts} +11 -33
- package/dist/{FileTree-CkVbIMWV.js → FileTree-3zYtrddG.js} +46 -20
- package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
- package/dist/{Message-BkMdE3bS.js → Message-BXtmfc9Q.js} +13 -20
- package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-Cqw_qrUG.js} +18 -25
- package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-Bdh9pqlo.d.ts} +41 -71
- package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
- package/dist/{Select-BeEsefzh.d.ts → Select-B_13gg_J.d.ts} +16 -44
- package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-ColWK-XA.d.ts} +14 -20
- package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-15EhfvYJ.js} +123 -73
- package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-Bzot45kX.d.ts} +9 -4
- package/dist/{ThinkChatActivitySummary-BPmu9a-c.d.ts → ThinkChatActivitySummary-D1xOrNrq.d.ts} +1 -1
- package/dist/{ThinkChatContext-C3Eb1Xpi.d.ts → ThinkChatContext-DrsZqdaO.d.ts} +1 -1
- package/dist/ThinkRecoveryNotice-DFIcG9UX.d.ts +19 -0
- package/dist/{Toggle-CAAlNl-M.d.ts → Toggle-JKZ43D5S.d.ts} +2 -2
- package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-DNd6cDJZ.d.ts} +4 -5
- package/dist/Workspace-Jez8ffUj.d.ts +274 -0
- package/dist/WorkspaceExplorer-B9dQWNVK.d.ts +32 -0
- package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-CzyHnESE.d.ts} +1 -1
- package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-C68Ub8S8.js} +121 -128
- package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-BYYeTQLf.js} +20 -55
- package/dist/{WorkspaceLink-DK1DWMHe.d.ts → WorkspaceLink-O-EBKUJ8.d.ts} +6 -9
- package/dist/class-names-BiMDVpUo.js +14 -0
- package/dist/components/Accordion.d.ts +5 -15
- package/dist/components/Accordion.js +16 -10
- package/dist/components/Activity.d.ts +5 -10
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.d.ts +1 -1
- package/dist/components/AgentActivity.js +4 -5
- package/dist/components/AgentActivityPreview.d.ts +9 -9
- package/dist/components/AgentActivityPreview.js +8 -12
- package/dist/components/AgentAttention.d.ts +2 -2
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +113 -218
- package/dist/components/AgentChatMessageEditor.js +3 -3
- package/dist/components/AgentChatTurnError.js +2 -2
- package/dist/components/AgentConnection.js +4 -4
- package/dist/components/AgentMessageParts.d.ts +2 -0
- package/dist/components/AgentMessageParts.js +119 -0
- package/dist/components/AgentToolDetail.d.ts +57 -0
- package/dist/components/AgentToolDetail.js +100 -0
- package/dist/components/AgentToolRunsContext.d.ts +2 -0
- package/dist/components/AgentToolRunsContext.js +16 -0
- package/dist/components/AlertDialog.d.ts +7 -19
- package/dist/components/AlertDialog.js +21 -32
- package/dist/components/AppTopBar.d.ts +28 -8
- package/dist/components/AppTopBar.js +36 -12
- package/dist/components/Approval.d.ts +102 -0
- package/dist/components/Approval.js +227 -0
- package/dist/components/Artifact.d.ts +3 -5
- package/dist/components/Artifact.js +7 -5
- package/dist/components/Autocomplete.d.ts +11 -33
- package/dist/components/Autocomplete.js +23 -30
- package/dist/components/Avatar.d.ts +4 -12
- package/dist/components/Avatar.js +13 -12
- package/dist/components/Badge.js +3 -0
- package/dist/components/BrowserLiveView.js +27 -12
- package/dist/components/BrowserReplay.js +4 -3
- package/dist/components/BrowserRunPanel.js +58 -78
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +14 -16
- package/dist/components/Card.d.ts +7 -8
- package/dist/components/Card.js +19 -10
- package/dist/components/ChainOfThought.d.ts +5 -11
- package/dist/components/ChainOfThought.js +3 -2
- package/dist/components/ChatGptSignInScreen.js +8 -8
- package/dist/components/Checkbox.d.ts +2 -4
- package/dist/components/Checkbox.js +6 -5
- package/dist/components/CheckboxGroup.d.ts +1 -3
- package/dist/components/CheckboxGroup.js +15 -14
- package/dist/components/Checkpoint.d.ts +64 -0
- package/dist/components/Checkpoint.js +63 -0
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +1 -1
- package/dist/components/CodexModelSelector.js +2 -2
- package/dist/components/Collapsible.d.ts +1 -124
- package/dist/components/Collapsible.js +7 -10
- package/dist/components/Combobox.d.ts +1 -1
- package/dist/components/Combobox.js +23 -30
- package/dist/components/Commit.d.ts +5 -11
- package/dist/components/Commit.js +6 -5
- package/dist/components/Context.js +1 -1
- package/dist/components/ContextMenu.d.ts +21 -37
- package/dist/components/ContextMenu.js +34 -51
- package/dist/components/Conversation.d.ts +3 -5
- package/dist/components/Conversation.js +5 -4
- package/dist/components/DescriptionListParts.js +1 -1
- package/dist/components/Dialog.d.ts +6 -17
- package/dist/components/Dialog.js +17 -24
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +4 -3
- package/dist/components/Field.d.ts +17 -20
- package/dist/components/Field.js +20 -17
- package/dist/components/Fieldset.d.ts +2 -7
- package/dist/components/Fieldset.js +7 -6
- package/dist/components/FileTree.d.ts +6 -0
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Form.d.ts +1 -4
- package/dist/components/Form.js +3 -2
- package/dist/components/GithubMotionMark.js +1 -1
- package/dist/components/IconButton.d.ts +2 -3
- package/dist/components/IconButton.js +2 -1
- package/dist/components/InlineCitation.d.ts +66 -0
- package/dist/components/InlineCitation.js +142 -0
- package/dist/components/Input.d.ts +1 -4
- package/dist/components/Input.js +3 -2
- package/dist/components/Marker.js +1 -1
- package/dist/components/McpConnectionRequest.js +2 -2
- package/dist/components/McpServerPicker.d.ts +1 -1
- package/dist/components/McpServerPicker.js +6 -5
- package/dist/components/MediaPreviewCard.d.ts +103 -0
- package/dist/components/MediaPreviewCard.js +193 -0
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menu.js +33 -52
- package/dist/components/Menubar.d.ts +22 -43
- package/dist/components/Menubar.js +36 -53
- package/dist/components/Message.d.ts +7 -7
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +2 -2
- package/dist/components/MessageScroller.js +6 -5
- package/dist/components/Meter.d.ts +5 -20
- package/dist/components/Meter.js +11 -10
- package/dist/components/ModelSelector.d.ts +6 -9
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +11 -33
- package/dist/components/NavigationMenu.js +23 -30
- package/dist/components/NumberField.d.ts +6 -24
- package/dist/components/NumberField.js +13 -12
- package/dist/components/Plan.d.ts +103 -0
- package/dist/components/Plan.js +113 -0
- package/dist/components/Popover.d.ts +9 -36
- package/dist/components/Popover.js +23 -34
- package/dist/components/PreviewCard.d.ts +6 -24
- package/dist/components/PreviewCard.js +13 -24
- package/dist/components/PricingBillingToggle.js +1 -1
- package/dist/components/PricingFAQ.js +1 -1
- package/dist/components/PricingPage.js +2 -1
- package/dist/components/PricingPlanCard.js +5 -4
- package/dist/components/PricingUsageCalculator.js +3 -3
- package/dist/components/Progress.d.ts +3 -8
- package/dist/components/Progress.js +7 -10
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +83 -218
- package/dist/components/Queue.d.ts +7 -17
- package/dist/components/Queue.js +2 -3
- package/dist/components/RadioGroup.d.ts +3 -8
- package/dist/components/RadioGroup.js +7 -10
- package/dist/components/Reasoning.d.ts +4 -8
- package/dist/components/Reasoning.js +3 -6
- package/dist/components/ResizableSidePanel.js +2 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/ResponsiveSidebarShell.js +18 -11
- package/dist/components/ScrollArea.d.ts +5 -20
- package/dist/components/ScrollArea.js +12 -10
- package/dist/components/SearchField.d.ts +43 -0
- package/dist/components/SearchField.js +52 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +33 -57
- package/dist/components/Separator.d.ts +1 -5
- package/dist/components/Separator.js +3 -6
- package/dist/components/Slider.d.ts +6 -19
- package/dist/components/Slider.js +15 -14
- package/dist/components/Sources.d.ts +4 -9
- package/dist/components/Sources.js +3 -2
- package/dist/components/Stepper.js +16 -9
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.d.ts +3 -5
- package/dist/components/SubagentRunList.js +3 -5
- package/dist/components/SubagentRunSelector.d.ts +9 -22
- package/dist/components/SubagentRunSelector.js +29 -31
- package/dist/components/Switch.d.ts +4 -7
- package/dist/components/Switch.js +6 -10
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +21 -18
- package/dist/components/Task.d.ts +4 -9
- package/dist/components/Task.js +4 -3
- package/dist/components/Terminal.d.ts +3 -4
- package/dist/components/Terminal.js +5 -4
- package/dist/components/TestResults.d.ts +4 -9
- package/dist/components/TestResults.js +11 -6
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +45 -22
- package/dist/components/ThinkChat.js +7 -5
- package/dist/components/ThinkChatActivity.d.ts +2 -2
- package/dist/components/ThinkChatActivity.js +24 -7
- package/dist/components/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/ThinkChatActivitySummary.js +7 -3
- package/dist/components/ThinkChatContext.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +27 -17
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.d.ts +30 -8
- package/dist/components/ThinkExecutionWorkbench.js +70 -134
- package/dist/components/ThinkFullApp.d.ts +40 -15
- package/dist/components/ThinkFullApp.js +193 -117
- package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/ThinkFullAppViewSwitch.js +2 -2
- package/dist/components/ThinkPendingApproval.d.ts +60 -0
- package/dist/components/ThinkPendingApproval.js +99 -0
- package/dist/components/ThinkRecoveryNotice.d.ts +2 -0
- package/dist/components/ThinkRecoveryNotice.js +46 -0
- package/dist/components/ThinkRoutine.js +1 -0
- package/dist/components/ThinkRoutineBrowser.d.ts +17 -9
- package/dist/components/ThinkRoutineBrowser.js +37 -44
- package/dist/components/ThinkRoutineDetail.d.ts +5 -2
- package/dist/components/ThinkRoutineDetail.js +4 -4
- package/dist/components/ThinkRoutineForm.d.ts +3 -2
- package/dist/components/ThinkRoutineForm.js +11 -10
- package/dist/components/ThinkRoutineLibrary.d.ts +27 -25
- package/dist/components/ThinkRoutineLibrary.js +104 -80
- package/dist/components/ThinkRoutineRuns.d.ts +3 -2
- package/dist/components/ThinkRoutineRuns.js +31 -24
- package/dist/components/ThinkThreadPicker.d.ts +17 -11
- package/dist/components/ThinkThreadPicker.js +163 -39
- package/dist/components/ThinkThreadShell.d.ts +1 -1
- package/dist/components/Toast.d.ts +7 -28
- package/dist/components/Toast.js +15 -14
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +10 -8
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +21 -26
- package/dist/components/ToolApproval.d.ts +28 -0
- package/dist/components/ToolApproval.js +35 -0
- package/dist/components/ToolInvocation.d.ts +26 -0
- package/dist/components/ToolInvocation.js +72 -0
- package/dist/components/Toolbar.d.ts +6 -24
- package/dist/components/Toolbar.js +13 -12
- package/dist/components/Tooltip.d.ts +11 -10
- package/dist/components/Tooltip.js +17 -11
- package/dist/components/TransitionSurface.d.ts +27 -0
- package/dist/components/TransitionSurface.js +20 -0
- package/dist/components/WebPreview.d.ts +6 -7
- package/dist/components/WebPreview.js +70 -55
- package/dist/components/Workspace.d.ts +2 -2
- package/dist/components/Workspace.js +361 -346
- package/dist/components/WorkspaceBrowser.d.ts +4 -7
- package/dist/components/WorkspaceBrowser.js +16 -26
- package/dist/components/WorkspaceExplorer.d.ts +5 -33
- package/dist/components/WorkspaceExplorer.js +19 -32
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +14 -2
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.d.ts +0 -8
- package/dist/components/WorkspaceHeader.js +3 -15
- package/dist/components/WorkspaceLink.d.ts +1 -1
- package/dist/components/WorkspaceLink.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DtPMgN7e.d.ts → copy-button-D7aAYA-2.d.ts} +2 -3
- package/dist/{copy-button-Dejn5heL.js → copy-button-DeK6KXEV.js} +3 -2
- package/dist/{icons-CpfUer49.js → icons-CQJ-aMnI.js} +7 -3
- package/dist/{icons-GQd1xF4e.d.ts → icons-CYXmvKlJ.d.ts} +22 -2
- package/dist/navigation-link-Cob7KBlM.js +19 -0
- package/dist/styles/accordion.css +4 -19
- package/dist/styles/activity.css +48 -56
- package/dist/styles/agent-activity-preview.css +6 -0
- package/dist/styles/agent-chat.css +14 -63
- package/dist/styles/agent-connection.css +0 -12
- package/dist/styles/agent-tool-detail.css +54 -0
- package/dist/styles/alert-dialog.css +16 -18
- package/dist/styles/app-top-bar.css +17 -9
- package/dist/styles/approval.css +177 -0
- package/dist/styles/artifact.css +6 -18
- package/dist/styles/autocomplete.css +2 -1
- package/dist/styles/avatar.css +35 -30
- package/dist/styles/badge.css +10 -10
- package/dist/styles/base-ui-motion.css +94 -39
- package/dist/styles/browser-control-overlay.css +0 -1
- package/dist/styles/browser-live-view.css +39 -22
- package/dist/styles/browser-replay.css +1 -1
- package/dist/styles/browser-run-panel.css +13 -6
- package/dist/styles/button.css +36 -33
- package/dist/styles/card.css +5 -6
- package/dist/styles/chain-of-thought.css +22 -24
- package/dist/styles/checkbox.css +18 -5
- package/dist/styles/checkpoint.css +58 -0
- package/dist/styles/codex-model-selector.css +3 -7
- package/dist/styles/collapsible.css +10 -10
- package/dist/styles/combobox.css +4 -3
- package/dist/styles/commit.css +19 -39
- package/dist/styles/composition-motion.css +83 -0
- package/dist/styles/context-menu.css +3 -11
- package/dist/styles/context.css +11 -10
- package/dist/styles/conversation.css +18 -23
- package/dist/styles/dialog.css +15 -15
- package/dist/styles/environment-variables.css +0 -13
- package/dist/styles/field.css +32 -12
- package/dist/styles/file-tree.css +66 -22
- package/dist/styles/form.css +1 -1
- package/dist/styles/index.css +13 -4
- package/dist/styles/inline-citation.css +107 -0
- package/dist/styles/input.css +2 -2
- package/dist/styles/marker.css +14 -13
- package/dist/styles/mcp-server-picker.css +20 -47
- package/dist/styles/media-preview-card.css +160 -0
- package/dist/styles/menu.css +11 -40
- package/dist/styles/menubar.css +12 -19
- package/dist/styles/message-scroller.css +0 -12
- package/dist/styles/message.css +25 -31
- package/dist/styles/meter.css +2 -2
- package/dist/styles/model-selector.css +16 -34
- package/dist/styles/motion-reduction.css +29 -0
- package/dist/styles/navigation-menu.css +14 -30
- package/dist/styles/number-field.css +22 -4
- package/dist/styles/plan.css +132 -0
- package/dist/styles/popover.css +15 -52
- package/dist/styles/preview-card.css +2 -32
- package/dist/styles/progress.css +8 -3
- package/dist/styles/prompt-input.css +76 -269
- package/dist/styles/queue.css +48 -32
- package/dist/styles/radio.css +19 -12
- package/dist/styles/reasoning.css +2 -1
- package/dist/styles/recipes.css +207 -26
- package/dist/styles/resizable-side-panel.css +4 -10
- package/dist/styles/responsive-sidebar-shell.css +32 -34
- package/dist/styles/scroll-area.css +32 -15
- package/dist/styles/search-field.css +21 -0
- package/dist/styles/select.css +19 -12
- package/dist/styles/slider.css +25 -29
- package/dist/styles/sources.css +3 -11
- package/dist/styles/stepper.css +36 -26
- package/dist/styles/subagent-run.css +13 -71
- package/dist/styles/switch.css +32 -29
- package/dist/styles/tabs.css +79 -23
- package/dist/styles/task.css +11 -23
- package/dist/styles/test-results.css +29 -36
- package/dist/styles/theme-mode-control.css +8 -0
- package/dist/styles/think-execution-workbench.css +18 -15
- package/dist/styles/think-full-app.css +51 -100
- package/dist/styles/think-routine-library.css +51 -40
- package/dist/styles/think-thread-picker.css +207 -50
- package/dist/styles/toast.css +48 -34
- package/dist/styles/toggle-group.css +2 -36
- package/dist/styles/toggle.css +29 -5
- package/dist/styles/toolbar.css +25 -27
- package/dist/styles/tooltip.css +2 -32
- package/dist/styles/transition-surface.css +55 -0
- package/dist/styles/utilities.css +31 -0
- package/dist/styles/web-preview.css +0 -21
- package/dist/styles/workspace-explorer.css +104 -99
- package/dist/summarize-tool-input-CqTcGRYy.js +15 -0
- package/dist/think-agent-Cip5KAPj.d.ts +7 -0
- package/dist/utils/codex-model-catalog.d.ts +4 -4
- package/dist/utils/mcp-server-catalog.d.ts +132 -0
- package/dist/utils/mcp-server-catalog.js +90 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-path-L_KmjRjq.js +26 -0
- package/package.json +14 -9
- package/dist/Workspace-D39LxGvP.d.ts +0 -62
- package/dist/class-names-9UtZwb0J.js +0 -12
- package/dist/components/AppFrame.d.ts +0 -24
- package/dist/components/AppFrame.js +0 -25
- package/dist/components/Shell.d.ts +0 -163
- package/dist/components/Shell.js +0 -137
- package/dist/components/SubagentRun.d.ts +0 -86
- package/dist/components/SubagentRun.js +0 -108
- package/dist/styles/app-frame.css +0 -15
- package/dist/styles/shell.css +0 -122
- package/dist/summarize-tool-input-BUJsENSn.js +0 -12
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
@@ -33,8 +34,8 @@ import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
|
33
34
|
*
|
|
34
35
|
* @see {@link https://base-ui.com/react/components/slider | Base UI Slider}
|
|
35
36
|
*/
|
|
36
|
-
function SliderRoot({ className
|
|
37
|
-
const classes = ["slider"
|
|
37
|
+
function SliderRoot({ className, ref, ...props }) {
|
|
38
|
+
const classes = mergeBaseClassName(["slider"].filter(Boolean).join(" "), className);
|
|
38
39
|
return /* @__PURE__ */ jsx(Slider$1.Root, {
|
|
39
40
|
ref,
|
|
40
41
|
"data-slot": "slider",
|
|
@@ -45,8 +46,8 @@ function SliderRoot({ className = "", ref, ...props }) {
|
|
|
45
46
|
/**
|
|
46
47
|
* The control area for the Slider (handles interactions).
|
|
47
48
|
*/
|
|
48
|
-
function SliderControl({ className
|
|
49
|
-
const classes = ["slider__control"
|
|
49
|
+
function SliderControl({ className, ref, ...props }) {
|
|
50
|
+
const classes = mergeBaseClassName(["slider__control"].filter(Boolean).join(" "), className);
|
|
50
51
|
return /* @__PURE__ */ jsx(Slider$1.Control, {
|
|
51
52
|
ref,
|
|
52
53
|
"data-slot": "slider-control",
|
|
@@ -57,8 +58,8 @@ function SliderControl({ className = "", ref, ...props }) {
|
|
|
57
58
|
/**
|
|
58
59
|
* The track container for the Slider.
|
|
59
60
|
*/
|
|
60
|
-
function SliderTrack({ className
|
|
61
|
-
const classes = ["slider__track"
|
|
61
|
+
function SliderTrack({ className, ref, ...props }) {
|
|
62
|
+
const classes = mergeBaseClassName(["slider__track"].filter(Boolean).join(" "), className);
|
|
62
63
|
return /* @__PURE__ */ jsx(Slider$1.Track, {
|
|
63
64
|
ref,
|
|
64
65
|
"data-slot": "slider-track",
|
|
@@ -69,8 +70,8 @@ function SliderTrack({ className = "", ref, ...props }) {
|
|
|
69
70
|
/**
|
|
70
71
|
* The filled indicator showing current value position.
|
|
71
72
|
*/
|
|
72
|
-
function SliderIndicator({ className
|
|
73
|
-
const classes = ["slider__indicator"
|
|
73
|
+
function SliderIndicator({ className, ref, ...props }) {
|
|
74
|
+
const classes = mergeBaseClassName(["slider__indicator"].filter(Boolean).join(" "), className);
|
|
74
75
|
return /* @__PURE__ */ jsx(Slider$1.Indicator, {
|
|
75
76
|
ref,
|
|
76
77
|
"data-slot": "slider-range",
|
|
@@ -81,8 +82,8 @@ function SliderIndicator({ className = "", ref, ...props }) {
|
|
|
81
82
|
/**
|
|
82
83
|
* The draggable thumb for the Slider.
|
|
83
84
|
*/
|
|
84
|
-
function SliderThumb({ className
|
|
85
|
-
const classes = ["slider__thumb"
|
|
85
|
+
function SliderThumb({ className, ref, ...props }) {
|
|
86
|
+
const classes = mergeBaseClassName(["slider__thumb"].filter(Boolean).join(" "), className);
|
|
86
87
|
return /* @__PURE__ */ jsx(Slider$1.Thumb, {
|
|
87
88
|
ref,
|
|
88
89
|
"data-slot": "slider-thumb",
|
|
@@ -94,8 +95,8 @@ function SliderThumb({ className = "", ref, ...props }) {
|
|
|
94
95
|
* Displays the current value of the Slider.
|
|
95
96
|
* Note: This must be used inside a Slider component to access the value context.
|
|
96
97
|
*/
|
|
97
|
-
function SliderOutput({ className
|
|
98
|
-
const classes = ["slider__output"
|
|
98
|
+
function SliderOutput({ className, children, ref, ...props }) {
|
|
99
|
+
const classes = mergeBaseClassName(["slider__output"].filter(Boolean).join(" "), className);
|
|
99
100
|
return /* @__PURE__ */ jsx(Slider$1.Value, {
|
|
100
101
|
ref,
|
|
101
102
|
"data-slot": "slider-output",
|
|
@@ -105,8 +106,8 @@ function SliderOutput({ className = "", children, ref, ...props }) {
|
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
/** Visible label that participates in Base UI's slider naming relationship. */
|
|
108
|
-
function SliderLabel({ className
|
|
109
|
-
const classes = ["slider__label"
|
|
109
|
+
function SliderLabel({ className, ref, ...props }) {
|
|
110
|
+
const classes = mergeBaseClassName(["slider__label"].filter(Boolean).join(" "), className);
|
|
110
111
|
return /* @__PURE__ */ jsx(Slider$1.Label, {
|
|
111
112
|
ref,
|
|
112
113
|
"data-slot": "slider-label",
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { Collapsible } from "
|
|
1
|
+
import { t as Collapsible } from "../Collapsible-N64ASIQr.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Sources.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Sources root. Wraps Base UI Collapsible.Root.
|
|
7
7
|
*/
|
|
8
|
-
interface SourcesProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
8
|
+
interface SourcesProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "unstyled"> {}
|
|
11
9
|
/**
|
|
12
10
|
* Displays a collapsible list of citations used by an AI to generate a
|
|
13
11
|
* response. Compose with SourcesTrigger, SourcesContent, and one or more
|
|
@@ -35,8 +33,7 @@ declare function Sources({
|
|
|
35
33
|
}: SourcesProps & {
|
|
36
34
|
ref?: React.Ref<HTMLDivElement>;
|
|
37
35
|
}): React.JSX.Element;
|
|
38
|
-
interface SourcesTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "
|
|
39
|
-
className?: string;
|
|
36
|
+
interface SourcesTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {
|
|
40
37
|
/** Number of sources to show in the trigger label. */
|
|
41
38
|
count: number;
|
|
42
39
|
}
|
|
@@ -53,9 +50,7 @@ declare function SourcesTrigger({
|
|
|
53
50
|
}: SourcesTriggerProps & {
|
|
54
51
|
ref?: React.Ref<HTMLButtonElement>;
|
|
55
52
|
}): React.JSX.Element;
|
|
56
|
-
interface SourcesContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "
|
|
57
|
-
className?: string;
|
|
58
|
-
}
|
|
53
|
+
interface SourcesContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "unstyled"> {}
|
|
59
54
|
/**
|
|
60
55
|
* The collapsible panel that contains Source children.
|
|
61
56
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import { Collapsible } from "./Collapsible.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as LinkIcon, l as ChevronRightIcon } from "../icons-CpfUer49.js";
|
|
3
|
+
import { D as LinkIcon, f as ChevronRightIcon } from "../icons-CQJ-aMnI.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Sources.tsx
|
|
@@ -29,6 +29,7 @@ function Sources({ className, ref, ...props }) {
|
|
|
29
29
|
ref,
|
|
30
30
|
className: cx("sources", className),
|
|
31
31
|
...props,
|
|
32
|
+
"data-recipe": "disclosure-stack",
|
|
32
33
|
unstyled: true
|
|
33
34
|
});
|
|
34
35
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { G as SpinnerIcon, l as CheckIcon } from "../icons-CQJ-aMnI.js";
|
|
3
3
|
import { t as assignRef } from "../merge-refs-DF_7w2x_.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Stepper.tsx
|
|
7
7
|
const StepperContext = React.createContext(void 0);
|
|
8
8
|
const StepItemContext = React.createContext(void 0);
|
|
9
|
+
const EMPTY_STEP_INDICATORS = {};
|
|
9
10
|
function useStepper() {
|
|
10
11
|
const context = React.useContext(StepperContext);
|
|
11
12
|
if (!context) throw new Error("useStepper must be used within a Stepper");
|
|
@@ -36,7 +37,7 @@ function useStepItem() {
|
|
|
36
37
|
*
|
|
37
38
|
* @see {@link https://reui.io/docs/components/base/stepper | ReUI Stepper}
|
|
38
39
|
*/
|
|
39
|
-
function Stepper({ defaultValue = 1, value, onValueChange, orientation = "horizontal", indicators =
|
|
40
|
+
function Stepper({ defaultValue = 1, value, onValueChange, orientation = "horizontal", indicators = EMPTY_STEP_INDICATORS, className, children, ref, ...props }) {
|
|
40
41
|
const idPrefix = `stepper-${React.useId()}`;
|
|
41
42
|
const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue);
|
|
42
43
|
const triggerNodes = React.useRef(/* @__PURE__ */ new Map());
|
|
@@ -135,13 +136,19 @@ function StepperItem({ step, completed = false, disabled = false, loading = fals
|
|
|
135
136
|
const { activeStep } = useStepper();
|
|
136
137
|
const isLoading = loading && step === activeStep;
|
|
137
138
|
const state = isLoading ? "loading" : completed || step < activeStep ? "completed" : activeStep === step ? "active" : "inactive";
|
|
139
|
+
const contextValue = React.useMemo(() => ({
|
|
140
|
+
step,
|
|
141
|
+
state,
|
|
142
|
+
isDisabled: disabled,
|
|
143
|
+
isLoading
|
|
144
|
+
}), [
|
|
145
|
+
disabled,
|
|
146
|
+
isLoading,
|
|
147
|
+
state,
|
|
148
|
+
step
|
|
149
|
+
]);
|
|
138
150
|
return /* @__PURE__ */ jsx(StepItemContext.Provider, {
|
|
139
|
-
value:
|
|
140
|
-
step,
|
|
141
|
-
state,
|
|
142
|
-
isDisabled: disabled,
|
|
143
|
-
isLoading
|
|
144
|
-
},
|
|
151
|
+
value: contextValue,
|
|
145
152
|
children: /* @__PURE__ */ jsx("div", {
|
|
146
153
|
ref,
|
|
147
154
|
role: "presentation",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { G as SpinnerIcon, Z as WarningIcon, l as CheckIcon, q as StopIcon } from "../icons-CQJ-aMnI.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/SubagentRunIndicator.tsx
|
|
@@ -6,16 +6,14 @@ import { AgentToolRunPart, AgentToolRunState } from "agents/agent-tools";
|
|
|
6
6
|
interface SubagentRunListProps<Part extends AgentToolRunPart = UIMessage["parts"][number]> extends Omit<React.HTMLAttributes<HTMLUListElement>, "children" | "onSelect"> {
|
|
7
7
|
/** Complete retained runs returned by `useAgentToolEvents()`, in display order. */
|
|
8
8
|
runs: readonly AgentToolRunState<Part>[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onSelect?: (run: AgentToolRunState<Part>) => void;
|
|
9
|
+
/** App-authored TanStack Router Link for every retained run destination. */
|
|
10
|
+
renderRunLink: (run: AgentToolRunState<Part>) => React.ReactElement;
|
|
12
11
|
}
|
|
13
12
|
/** Semantic, wrapping list of retained-run selectors. */
|
|
14
13
|
declare function SubagentRunList<Part extends AgentToolRunPart = UIMessage["parts"][number]>({
|
|
15
14
|
className,
|
|
16
|
-
|
|
15
|
+
renderRunLink,
|
|
17
16
|
runs,
|
|
18
|
-
selectedRunId,
|
|
19
17
|
ref,
|
|
20
18
|
...props
|
|
21
19
|
}: SubagentRunListProps<Part> & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { SubagentRunSelector } from "./SubagentRunSelector.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/SubagentRunList.tsx
|
|
6
6
|
/** Semantic, wrapping list of retained-run selectors. */
|
|
7
|
-
function SubagentRunList({ className,
|
|
7
|
+
function SubagentRunList({ className, renderRunLink, runs, ref, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx("ul", {
|
|
9
9
|
ref,
|
|
10
10
|
"data-slot": "subagent-run-list",
|
|
@@ -15,9 +15,7 @@ function SubagentRunList({ className, onSelect, runs, selectedRunId, ref, ...pro
|
|
|
15
15
|
className: "subagent-run__list-item",
|
|
16
16
|
children: /* @__PURE__ */ jsx(SubagentRunSelector, {
|
|
17
17
|
run,
|
|
18
|
-
|
|
19
|
-
selected: run.runId === selectedRunId,
|
|
20
|
-
onSelect
|
|
18
|
+
render: renderRunLink(run)
|
|
21
19
|
})
|
|
22
20
|
}, run.runId))
|
|
23
21
|
});
|
|
@@ -1,47 +1,34 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-FX_hpqxm.js";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { UIMessage } from "ai";
|
|
4
3
|
import { AgentToolRunPart, AgentToolRunState } from "agents/agent-tools";
|
|
5
4
|
|
|
6
5
|
//#region src/components/SubagentRunSelector.d.ts
|
|
7
|
-
interface SubagentRunSelectorProps<Part extends AgentToolRunPart = UIMessage["parts"][number]> extends Omit<
|
|
8
|
-
className?: string;
|
|
6
|
+
interface SubagentRunSelectorProps<Part extends AgentToolRunPart = UIMessage["parts"][number]> extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "children"> {
|
|
9
7
|
/** Complete retained-run state returned by `useAgentToolEvents()`. */
|
|
10
|
-
run
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* upstream object. Retained for the pre-0.15 presentation-only API.
|
|
14
|
-
*/
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
naniteIndex?: number;
|
|
17
|
-
selected?: boolean;
|
|
8
|
+
run: AgentToolRunState<Part>;
|
|
9
|
+
/** App-authored TanStack Router Link for this retained run. */
|
|
10
|
+
render: React.ReactElement;
|
|
18
11
|
/** Short supplementary status shown on hover and keyboard focus. `false` disables it. */
|
|
19
12
|
tooltip?: React.ReactNode | false;
|
|
20
|
-
/** Called with the whole upstream run when the selector is activated. */
|
|
21
|
-
onSelect?: (run: AgentToolRunState<Part>) => void;
|
|
22
13
|
}
|
|
23
14
|
/**
|
|
24
15
|
* Compact selector for a retained Cloudflare Agent Tool run.
|
|
25
16
|
*
|
|
26
17
|
* The component consumes `AgentToolRunState` whole and derives its label and
|
|
27
|
-
* status from upstream fields.
|
|
28
|
-
* an adjacent detail surface;
|
|
29
|
-
* child content inline.
|
|
18
|
+
* status from upstream fields. The application-authored Link routes
|
|
19
|
+
* `run.subAgent` into an adjacent detail surface; this component never invents
|
|
20
|
+
* a second transcript or expands child content inline.
|
|
30
21
|
*/
|
|
31
22
|
declare function SubagentRunSelector<Part extends AgentToolRunPart = UIMessage["parts"][number]>({
|
|
32
23
|
className,
|
|
33
|
-
|
|
34
|
-
naniteIndex,
|
|
35
|
-
onClick,
|
|
36
|
-
onSelect,
|
|
24
|
+
render,
|
|
37
25
|
run,
|
|
38
|
-
selected,
|
|
39
26
|
tooltip,
|
|
40
27
|
ref,
|
|
41
28
|
"aria-label": ariaLabel,
|
|
42
29
|
...props
|
|
43
30
|
}: SubagentRunSelectorProps<Part> & {
|
|
44
|
-
ref?: React.Ref<
|
|
31
|
+
ref?: React.Ref<HTMLAnchorElement>;
|
|
45
32
|
}): React.JSX.Element;
|
|
46
33
|
//#endregion
|
|
47
34
|
export { SubagentRunSelector, SubagentRunSelectorProps };
|
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { t as NavigationLink } from "../navigation-link-Cob7KBlM.js";
|
|
3
|
+
import { buttonVariants } from "./Button.js";
|
|
3
4
|
import { Tooltip } from "./Tooltip.js";
|
|
4
5
|
import { NaniteMark } from "./NaniteScene.js";
|
|
5
6
|
import { SubagentRunIndicator, getSubagentRunName, getSubagentRunTooltip } from "./SubagentRunIndicator.js";
|
|
6
7
|
import "react";
|
|
7
|
-
import {
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region src/components/SubagentRunSelector.tsx
|
|
9
10
|
/**
|
|
10
11
|
* Compact selector for a retained Cloudflare Agent Tool run.
|
|
11
12
|
*
|
|
12
13
|
* The component consumes `AgentToolRunState` whole and derives its label and
|
|
13
|
-
* status from upstream fields.
|
|
14
|
-
* an adjacent detail surface;
|
|
15
|
-
* child content inline.
|
|
14
|
+
* status from upstream fields. The application-authored Link routes
|
|
15
|
+
* `run.subAgent` into an adjacent detail surface; this component never invents
|
|
16
|
+
* a second transcript or expands child content inline.
|
|
16
17
|
*/
|
|
17
|
-
function SubagentRunSelector({ className,
|
|
18
|
-
const name =
|
|
19
|
-
const
|
|
18
|
+
function SubagentRunSelector({ className, render, run, tooltip, ref, "aria-label": ariaLabel, ...props }) {
|
|
19
|
+
const name = getSubagentRunName(run);
|
|
20
|
+
const link = /* @__PURE__ */ jsxs(NavigationLink, {
|
|
20
21
|
ref,
|
|
21
|
-
|
|
22
|
-
variant: "outline",
|
|
23
|
-
color: "neutral",
|
|
24
|
-
size: "xs",
|
|
22
|
+
render,
|
|
25
23
|
"data-slot": "subagent-run-selector",
|
|
26
|
-
"data-status": run
|
|
27
|
-
className: cx(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
24
|
+
"data-run-status": run.status,
|
|
25
|
+
className: cx(buttonVariants({
|
|
26
|
+
variant: "outline",
|
|
27
|
+
color: "neutral",
|
|
28
|
+
size: "sm"
|
|
29
|
+
}), "subagent-run__selector", className),
|
|
30
|
+
"aria-label": ariaLabel ?? `Open ${name}, ${run.status}`,
|
|
34
31
|
...props,
|
|
35
|
-
children: [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsx(NaniteMark, { index: run.order }),
|
|
34
|
+
/* @__PURE__ */ jsx("span", {
|
|
35
|
+
className: "subagent-run__title",
|
|
36
|
+
children: name
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsx(SubagentRunIndicator, { run })
|
|
39
|
+
]
|
|
42
40
|
});
|
|
43
|
-
const tooltipContent = tooltip === false ? null : tooltip ??
|
|
44
|
-
if (!tooltipContent) return
|
|
41
|
+
const tooltipContent = tooltip === false ? null : tooltip ?? getSubagentRunTooltip(run);
|
|
42
|
+
if (!tooltipContent) return link;
|
|
45
43
|
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
46
|
-
render:
|
|
44
|
+
render: link,
|
|
47
45
|
delay: 0
|
|
48
46
|
}), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
49
47
|
side: "top",
|
|
@@ -2,17 +2,14 @@ import * as React from "react";
|
|
|
2
2
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Switch.d.ts
|
|
5
|
-
interface SwitchProps extends
|
|
6
|
-
className?: string;
|
|
5
|
+
interface SwitchProps extends React.ComponentPropsWithRef<typeof Switch$1.Root> {
|
|
7
6
|
/**
|
|
8
7
|
* The size of the switch.
|
|
9
|
-
* @default '
|
|
8
|
+
* @default 'md'
|
|
10
9
|
*/
|
|
11
|
-
size?: "sm" | "md" | "lg"
|
|
12
|
-
}
|
|
13
|
-
interface SwitchThumbProps extends Omit<React.ComponentPropsWithRef<typeof Switch$1.Thumb>, "className"> {
|
|
14
|
-
className?: string;
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
15
11
|
}
|
|
12
|
+
interface SwitchThumbProps extends React.ComponentPropsWithRef<typeof Switch$1.Thumb> {}
|
|
16
13
|
/**
|
|
17
14
|
* A toggle switch component for binary choices.
|
|
18
15
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
@@ -23,17 +24,12 @@ import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
|
23
24
|
*
|
|
24
25
|
* @see {@link https://base-ui.com/react/components/switch | Base UI Switch}
|
|
25
26
|
*/
|
|
26
|
-
function SwitchRoot({ size = "
|
|
27
|
-
const
|
|
28
|
-
const classes = [
|
|
29
|
-
"switch",
|
|
30
|
-
normalizedSize !== "default" && `switch--${normalizedSize}`,
|
|
31
|
-
className
|
|
32
|
-
].filter(Boolean).join(" ");
|
|
27
|
+
function SwitchRoot({ size = "md", className, ref, ...props }) {
|
|
28
|
+
const classes = mergeBaseClassName(["switch", size !== "md" && `switch--${size}`].filter(Boolean).join(" "), className);
|
|
33
29
|
return /* @__PURE__ */ jsx(Switch$1.Root, {
|
|
34
30
|
ref,
|
|
35
31
|
"data-slot": "switch",
|
|
36
|
-
"data-size":
|
|
32
|
+
"data-size": size,
|
|
37
33
|
className: classes,
|
|
38
34
|
...props
|
|
39
35
|
});
|
|
@@ -41,8 +37,8 @@ function SwitchRoot({ size = "default", className = "", ref, ...props }) {
|
|
|
41
37
|
/**
|
|
42
38
|
* The thumb indicator for the Switch component.
|
|
43
39
|
*/
|
|
44
|
-
function SwitchThumb({ className
|
|
45
|
-
const classes = ["switch__thumb"
|
|
40
|
+
function SwitchThumb({ className, ref, ...props }) {
|
|
41
|
+
const classes = mergeBaseClassName(["switch__thumb"].filter(Boolean).join(" "), className);
|
|
46
42
|
return /* @__PURE__ */ jsx(Switch$1.Thumb, {
|
|
47
43
|
ref,
|
|
48
44
|
"data-slot": "switch-thumb",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { TabPanelProps, TabProps, Tabs,
|
|
1
|
+
import { a as TabsListProps, i as TabsIndicatorProps, n as TabProps, o as TabsProps, r as Tabs, t as TabPanelProps } from "../Tabs-ColWK-XA.js";
|
|
2
|
+
export { TabPanelProps, TabProps, Tabs, TabsIndicatorProps, TabsListProps, TabsProps };
|
package/dist/components/Tabs.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
@@ -26,26 +27,19 @@ function tabsListVariants({ variant = "default", className } = {}) {
|
|
|
26
27
|
*
|
|
27
28
|
* @see {@link https://base-ui.com/react/components/tabs | Base UI Tabs}
|
|
28
29
|
*/
|
|
29
|
-
function TabsRoot({ orientation = "horizontal", variant = "default", className
|
|
30
|
-
const classes = [
|
|
31
|
-
"tabs",
|
|
32
|
-
variant !== "default" && `tabs--${variant}`,
|
|
33
|
-
className
|
|
34
|
-
].filter(Boolean).join(" ");
|
|
30
|
+
function TabsRoot({ orientation = "horizontal", variant = "default", className, ref, ...props }) {
|
|
31
|
+
const classes = mergeBaseClassName(["tabs", variant !== "default" && `tabs--${variant}`].filter(Boolean).join(" "), className);
|
|
35
32
|
return /* @__PURE__ */ jsx(Tabs$1.Root, {
|
|
36
33
|
ref,
|
|
37
|
-
"data-orientation": orientation,
|
|
38
34
|
"data-slot": "tabs",
|
|
35
|
+
"data-variant": variant,
|
|
39
36
|
orientation,
|
|
40
37
|
className: classes,
|
|
41
38
|
...props
|
|
42
39
|
});
|
|
43
40
|
}
|
|
44
|
-
function TabsList({ className
|
|
45
|
-
const classes = tabsListVariants({
|
|
46
|
-
variant,
|
|
47
|
-
className
|
|
48
|
-
});
|
|
41
|
+
function TabsList({ className, variant = "default", ref, ...props }) {
|
|
42
|
+
const classes = mergeBaseClassName(tabsListVariants({ variant }), className);
|
|
49
43
|
return /* @__PURE__ */ jsx(Tabs$1.List, {
|
|
50
44
|
ref,
|
|
51
45
|
"data-slot": "tabs-list",
|
|
@@ -54,8 +48,8 @@ function TabsList({ className = "", variant = "default", ref, ...props }) {
|
|
|
54
48
|
...props
|
|
55
49
|
});
|
|
56
50
|
}
|
|
57
|
-
function Tab({ className
|
|
58
|
-
const classes =
|
|
51
|
+
function Tab({ className, ref, ...props }) {
|
|
52
|
+
const classes = mergeBaseClassName("tabs__tab", className);
|
|
59
53
|
return /* @__PURE__ */ jsx(Tabs$1.Tab, {
|
|
60
54
|
ref,
|
|
61
55
|
"data-slot": "tabs-trigger",
|
|
@@ -63,8 +57,17 @@ function Tab({ className = "", ref, ...props }) {
|
|
|
63
57
|
...props
|
|
64
58
|
});
|
|
65
59
|
}
|
|
66
|
-
function
|
|
67
|
-
const classes =
|
|
60
|
+
function TabsIndicator({ className, ref, ...props }) {
|
|
61
|
+
const classes = mergeBaseClassName("tabs__indicator", className);
|
|
62
|
+
return /* @__PURE__ */ jsx(Tabs$1.Indicator, {
|
|
63
|
+
ref,
|
|
64
|
+
"data-slot": "tabs-indicator",
|
|
65
|
+
className: classes,
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function TabPanel({ className, ref, ...props }) {
|
|
70
|
+
const classes = mergeBaseClassName("tabs__panel", className);
|
|
68
71
|
return /* @__PURE__ */ jsx(Tabs$1.Panel, {
|
|
69
72
|
ref,
|
|
70
73
|
"data-slot": "tabs-content",
|
|
@@ -76,8 +79,8 @@ const Tabs = {
|
|
|
76
79
|
Root: TabsRoot,
|
|
77
80
|
List: TabsList,
|
|
78
81
|
Tab,
|
|
79
|
-
Indicator:
|
|
82
|
+
Indicator: TabsIndicator,
|
|
80
83
|
Panel: TabPanel
|
|
81
84
|
};
|
|
82
85
|
//#endregion
|
|
83
|
-
export { Tabs
|
|
86
|
+
export { Tabs };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Collapsible } from "
|
|
1
|
+
import { t as Collapsible } from "../Collapsible-N64ASIQr.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Task.d.ts
|
|
5
|
-
interface TaskProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
5
|
+
interface TaskProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "unstyled"> {}
|
|
8
6
|
/**
|
|
9
7
|
* A collapsible task/workflow list. Compose with TaskTrigger, TaskContent,
|
|
10
8
|
* TaskItem, and TaskItemFile to show structured progress for a multi-step
|
|
@@ -36,8 +34,7 @@ declare function Task({
|
|
|
36
34
|
}: TaskProps & {
|
|
37
35
|
ref?: React.Ref<HTMLDivElement>;
|
|
38
36
|
}): React.JSX.Element;
|
|
39
|
-
interface TaskTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "
|
|
40
|
-
className?: string;
|
|
37
|
+
interface TaskTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {
|
|
41
38
|
/** Heading text shown in the trigger row. */
|
|
42
39
|
title: string;
|
|
43
40
|
}
|
|
@@ -53,9 +50,7 @@ declare function TaskTrigger({
|
|
|
53
50
|
}: TaskTriggerProps & {
|
|
54
51
|
ref?: React.Ref<HTMLButtonElement>;
|
|
55
52
|
}): React.JSX.Element;
|
|
56
|
-
interface TaskContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "
|
|
57
|
-
className?: string;
|
|
58
|
-
}
|
|
53
|
+
interface TaskContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "unstyled"> {}
|
|
59
54
|
/**
|
|
60
55
|
* The collapsible panel containing TaskItem children.
|
|
61
56
|
*/
|
package/dist/components/Task.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import { Collapsible } from "./Collapsible.js";
|
|
2
|
-
import {
|
|
3
|
-
import { R as SearchIcon, l as ChevronRightIcon, v as FileIcon } from "../icons-CpfUer49.js";
|
|
3
|
+
import { U as SearchIcon, f as ChevronRightIcon, x as FileIcon } from "../icons-CQJ-aMnI.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Task.tsx
|
|
@@ -33,6 +33,7 @@ function Task({ className, defaultOpen = true, ref, ...props }) {
|
|
|
33
33
|
className: cx("task", className),
|
|
34
34
|
defaultOpen,
|
|
35
35
|
...props,
|
|
36
|
+
"data-recipe": "disclosure-stack",
|
|
36
37
|
unstyled: true
|
|
37
38
|
});
|
|
38
39
|
}
|
|
@@ -61,7 +62,7 @@ function TaskTrigger({ className, title, children, ref, ...props }) {
|
|
|
61
62
|
children: /* @__PURE__ */ jsx(SearchIcon, {})
|
|
62
63
|
}),
|
|
63
64
|
/* @__PURE__ */ jsx("span", {
|
|
64
|
-
className: "task__trigger-title",
|
|
65
|
+
className: "task__trigger-title sigvelo-truncate",
|
|
65
66
|
children: title
|
|
66
67
|
}),
|
|
67
68
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
2
|
-
import { t as CopyButtonProps } from "../copy-button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-DLGzHsjc.js";
|
|
2
|
+
import { t as CopyButtonProps } from "../copy-button-D7aAYA-2.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Terminal.d.ts
|
|
@@ -103,8 +103,7 @@ declare function TerminalCopyButton({
|
|
|
103
103
|
onClick,
|
|
104
104
|
...props
|
|
105
105
|
}: TerminalCopyButtonProps): React.JSX.Element;
|
|
106
|
-
interface TerminalClearButtonProps extends Omit<ButtonProps, "children" | "variant" | "size" | "color" | "
|
|
107
|
-
className?: string;
|
|
106
|
+
interface TerminalClearButtonProps extends Omit<ButtonProps, "children" | "variant" | "size" | "color" | "onClick"> {
|
|
108
107
|
label?: string;
|
|
109
108
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
110
109
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { $ as XIcon, Y as TerminalIcon } from "../icons-CQJ-aMnI.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { Tooltip } from "./Tooltip.js";
|
|
5
|
-
import { t as CopyButton } from "../copy-button-
|
|
5
|
+
import { t as CopyButton } from "../copy-button-DeK6KXEV.js";
|
|
6
6
|
import { Badge } from "./Badge.js";
|
|
7
7
|
import { ScrollArea } from "./ScrollArea.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -219,7 +219,8 @@ function TerminalClearButton({ className, label = "Clear terminal", onClick, ...
|
|
|
219
219
|
}, [onClear, onClick]);
|
|
220
220
|
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
221
221
|
variant: "ghost",
|
|
222
|
-
size: "
|
|
222
|
+
size: "sm",
|
|
223
|
+
iconOnly: true,
|
|
223
224
|
"aria-label": label,
|
|
224
225
|
className: cx("terminal__clear", className),
|
|
225
226
|
...props,
|