@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,4 +1,4 @@
|
|
|
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/Reasoning.d.ts
|
|
@@ -9,8 +9,7 @@ interface ReasoningContextValue {
|
|
|
9
9
|
duration?: number;
|
|
10
10
|
}
|
|
11
11
|
declare function useReasoning(): ReasoningContextValue;
|
|
12
|
-
interface ReasoningProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "
|
|
13
|
-
className?: string;
|
|
12
|
+
interface ReasoningProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "onOpenChange" | "unstyled"> {
|
|
14
13
|
/**
|
|
15
14
|
* Whether the model is currently generating reasoning. When true the
|
|
16
15
|
* component auto-opens; it auto-closes once streaming ends.
|
|
@@ -53,8 +52,7 @@ declare function Reasoning({
|
|
|
53
52
|
}: ReasoningProps & {
|
|
54
53
|
ref?: React.Ref<HTMLDivElement>;
|
|
55
54
|
}): React.JSX.Element;
|
|
56
|
-
interface ReasoningTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "
|
|
57
|
-
className?: string;
|
|
55
|
+
interface ReasoningTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "unstyled"> {
|
|
58
56
|
getThinkingMessage?: (isStreaming: boolean, duration?: number) => React.ReactNode;
|
|
59
57
|
}
|
|
60
58
|
/**
|
|
@@ -70,9 +68,7 @@ declare function ReasoningTrigger({
|
|
|
70
68
|
}: ReasoningTriggerProps & {
|
|
71
69
|
ref?: React.Ref<HTMLButtonElement>;
|
|
72
70
|
}): React.JSX.Element;
|
|
73
|
-
interface ReasoningContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "
|
|
74
|
-
className?: string;
|
|
75
|
-
}
|
|
71
|
+
interface ReasoningContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "unstyled"> {}
|
|
76
72
|
/**
|
|
77
73
|
* The reasoning text panel. Accepts any React node but is optimized for
|
|
78
74
|
* long-form text; a muted left border visually distinguishes the block.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import { Collapsible } from "./Collapsible.js";
|
|
2
|
-
import {
|
|
3
|
-
import { B as SpinnerIcon } from "../icons-CpfUer49.js";
|
|
3
|
+
import { G as SpinnerIcon } from "../icons-CQJ-aMnI.js";
|
|
4
4
|
import { ActivityContent, ActivityText, ActivityTrigger } from "./Activity.js";
|
|
5
|
-
import { f as MessageResponse } from "../Message-
|
|
5
|
+
import { f as MessageResponse } from "../Message-BXtmfc9Q.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/Reasoning.tsx
|
|
@@ -50,9 +50,6 @@ function Reasoning({ className, isStreaming = false, duration, open, defaultOpen
|
|
|
50
50
|
isControlled,
|
|
51
51
|
onOpenChange
|
|
52
52
|
]);
|
|
53
|
-
React.useEffect(() => {
|
|
54
|
-
if (duration !== void 0) setInternalDuration(duration);
|
|
55
|
-
}, [duration]);
|
|
56
53
|
React.useEffect(() => {
|
|
57
54
|
if (isStreaming) {
|
|
58
55
|
hasEverStreamedRef.current = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
1
|
+
import { n as mergeBaseClassName, t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Separator } from "./Separator.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -118,7 +118,7 @@ function ResizableSidePanelHandle({ className, onKeyDown, onPointerDown, ref, ..
|
|
|
118
118
|
"aria-valuemin": minSize,
|
|
119
119
|
"aria-valuemax": maxSize,
|
|
120
120
|
"aria-valuenow": size,
|
|
121
|
-
className:
|
|
121
|
+
className: mergeBaseClassName("resizable-side-panel__handle", className),
|
|
122
122
|
onPointerDown: (event) => {
|
|
123
123
|
onPointerDown?.(event);
|
|
124
124
|
if (!event.defaultPrevented) beginResize(event);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ResponsiveSidebarShellTopBarControls, n as ResponsiveSidebarShellControls, r as ResponsiveSidebarShellProps, t as ResponsiveSidebarShell } from "../ResponsiveSidebarShell-
|
|
1
|
+
import { i as ResponsiveSidebarShellTopBarControls, n as ResponsiveSidebarShellControls, r as ResponsiveSidebarShellProps, t as ResponsiveSidebarShell } from "../ResponsiveSidebarShell-CsAh4NyL.js";
|
|
2
2
|
export { ResponsiveSidebarShell, ResponsiveSidebarShellControls, ResponsiveSidebarShellProps, ResponsiveSidebarShellTopBarControls };
|
|
@@ -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 { W as SidebarIcon } from "../icons-CQJ-aMnI.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { n as mergeRefs } from "../merge-refs-DF_7w2x_.js";
|
|
5
5
|
import { AppTopBar } from "./AppTopBar.js";
|
|
@@ -26,6 +26,7 @@ function isCompactSidebar(root) {
|
|
|
26
26
|
/**
|
|
27
27
|
* Responsive master-detail shell with a resizable desktop sidebar and a compact
|
|
28
28
|
* floating sidebar that leaves the main content in place as a dismiss target.
|
|
29
|
+
* The root exposes `data-sidebar-open="true" | "false"` as its public styling hook.
|
|
29
30
|
*/
|
|
30
31
|
function ResponsiveSidebarShell({ sidebar, topBar, sidebarLabel, sidebarOpen, defaultSidebarOpen, defaultSidebarWidth = sidebarDefaultWidth, onSidebarOpenChange, toolbarLabel = "Sidebar controls", showMainLabel = "Show main content", className, children, ref, style, ...props }) {
|
|
31
32
|
const sidebarId = React.useId();
|
|
@@ -39,21 +40,27 @@ function ResponsiveSidebarShell({ sidebar, topBar, sidebarLabel, sidebarOpen, de
|
|
|
39
40
|
});
|
|
40
41
|
const toggleLabel = `${sidebarLabel.charAt(0).toUpperCase()}${sidebarLabel.slice(1)}`;
|
|
41
42
|
const toggleTooltip = `${isSidebarOpen ? "Hide" : "Show"} ${sidebarLabel}`;
|
|
43
|
+
const updateSidebar = React.useCallback((update, restoreFocus) => {
|
|
44
|
+
update();
|
|
45
|
+
if (restoreFocus) queueMicrotask(restoreFocus);
|
|
46
|
+
}, []);
|
|
42
47
|
const closeSidebar = React.useCallback(() => {
|
|
43
|
-
setSidebarOpen(false);
|
|
44
|
-
|
|
45
|
-
}, [setSidebarOpen]);
|
|
48
|
+
updateSidebar(() => setSidebarOpen(false), () => mainRef.current?.focus({ preventScroll: true }));
|
|
49
|
+
}, [setSidebarOpen, updateSidebar]);
|
|
46
50
|
const closeSidebarOnCompact = React.useCallback(() => {
|
|
47
51
|
if (rootRef.current && isCompactSidebar(rootRef.current)) closeSidebar();
|
|
48
52
|
}, [closeSidebar]);
|
|
49
53
|
const toggleSidebar = React.useCallback((trigger) => {
|
|
50
54
|
if (trigger) openerRef.current = trigger;
|
|
51
|
-
setSidebarOpen(!isSidebarOpen);
|
|
52
|
-
}, [
|
|
55
|
+
updateSidebar(() => setSidebarOpen(!isSidebarOpen));
|
|
56
|
+
}, [
|
|
57
|
+
isSidebarOpen,
|
|
58
|
+
setSidebarOpen,
|
|
59
|
+
updateSidebar
|
|
60
|
+
]);
|
|
53
61
|
const dismissSidebar = React.useCallback(() => {
|
|
54
|
-
setSidebarOpen(false);
|
|
55
|
-
|
|
56
|
-
}, [setSidebarOpen]);
|
|
62
|
+
updateSidebar(() => setSidebarOpen(false), () => openerRef.current?.focus({ preventScroll: true }));
|
|
63
|
+
}, [setSidebarOpen, updateSidebar]);
|
|
57
64
|
const sidebarContent = typeof sidebar === "function" ? sidebar({
|
|
58
65
|
closeSidebar,
|
|
59
66
|
closeSidebarOnCompact
|
|
@@ -79,6 +86,7 @@ function ResponsiveSidebarShell({ sidebar, topBar, sidebarLabel, sidebarOpen, de
|
|
|
79
86
|
className: cx("responsive-sidebar-shell", className),
|
|
80
87
|
style,
|
|
81
88
|
...props,
|
|
89
|
+
"data-sidebar-open": isSidebarOpen ? "true" : "false",
|
|
82
90
|
onKeyDown: (event) => {
|
|
83
91
|
props.onKeyDown?.(event);
|
|
84
92
|
if (!event.defaultPrevented && event.key === "Escape" && isSidebarOpen && rootRef.current && isCompactSidebar(rootRef.current)) {
|
|
@@ -97,7 +105,6 @@ function ResponsiveSidebarShell({ sidebar, topBar, sidebarLabel, sidebarOpen, de
|
|
|
97
105
|
minSize: sidebarMinWidth,
|
|
98
106
|
maxSize: sidebarMaxWidth,
|
|
99
107
|
keyboardStep: sidebarKeyboardStep,
|
|
100
|
-
"data-sidebar-open": isSidebarOpen ? "true" : "false",
|
|
101
108
|
children: [
|
|
102
109
|
isSidebarOpen ? /* @__PURE__ */ jsx(ResizableSidePanel.Handle, { className: "responsive-sidebar-shell__resizer" }) : null,
|
|
103
110
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -5,38 +5,23 @@ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the ScrollArea.Root component.
|
|
7
7
|
*/
|
|
8
|
-
interface ScrollAreaRootProps extends
|
|
9
|
-
/** Additional CSS class names */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
8
|
+
interface ScrollAreaRootProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Root> {}
|
|
12
9
|
/**
|
|
13
10
|
* Props for the ScrollArea.Viewport component.
|
|
14
11
|
*/
|
|
15
|
-
interface ScrollAreaViewportProps extends
|
|
16
|
-
/** Additional CSS class names */
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
12
|
+
interface ScrollAreaViewportProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Viewport> {}
|
|
19
13
|
/**
|
|
20
14
|
* Props for the ScrollArea.Scrollbar component.
|
|
21
15
|
*/
|
|
22
|
-
interface ScrollAreaScrollbarProps extends
|
|
23
|
-
/** Additional CSS class names */
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
16
|
+
interface ScrollAreaScrollbarProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Scrollbar> {}
|
|
26
17
|
/**
|
|
27
18
|
* Props for the ScrollArea.Thumb component.
|
|
28
19
|
*/
|
|
29
|
-
interface ScrollAreaThumbProps extends
|
|
30
|
-
/** Additional CSS class names */
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
20
|
+
interface ScrollAreaThumbProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Thumb> {}
|
|
33
21
|
/**
|
|
34
22
|
* Props for the ScrollArea.Corner component.
|
|
35
23
|
*/
|
|
36
|
-
interface ScrollAreaCornerProps extends
|
|
37
|
-
/** Additional CSS class names */
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
24
|
+
interface ScrollAreaCornerProps extends React.ComponentPropsWithoutRef<typeof ScrollArea$1.Corner> {}
|
|
40
25
|
/**
|
|
41
26
|
* Container that groups all scroll area parts. Renders a `<div>` element.
|
|
42
27
|
*
|
|
@@ -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 { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
@@ -19,8 +20,8 @@ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
|
19
20
|
*
|
|
20
21
|
* @see {@link https://base-ui.com/react/components/scroll-area | Base UI ScrollArea}
|
|
21
22
|
*/
|
|
22
|
-
function ScrollAreaRoot({ className
|
|
23
|
-
const classes = ["scroll-area"
|
|
23
|
+
function ScrollAreaRoot({ className, ref, ...props }) {
|
|
24
|
+
const classes = mergeBaseClassName(["scroll-area"].filter(Boolean).join(" "), className);
|
|
24
25
|
return /* @__PURE__ */ jsx(ScrollArea$1.Root, {
|
|
25
26
|
ref,
|
|
26
27
|
"data-slot": "scroll-area",
|
|
@@ -31,8 +32,8 @@ function ScrollAreaRoot({ className = "", ref, ...props }) {
|
|
|
31
32
|
/**
|
|
32
33
|
* The scrollable viewport container.
|
|
33
34
|
*/
|
|
34
|
-
function ScrollAreaViewport({ className
|
|
35
|
-
const classes = ["scroll-area__viewport"
|
|
35
|
+
function ScrollAreaViewport({ className, tabIndex = 0, role = "group", "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ref, ...props }) {
|
|
36
|
+
const classes = mergeBaseClassName(["scroll-area__viewport"].filter(Boolean).join(" "), className);
|
|
36
37
|
return /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
|
|
37
38
|
ref,
|
|
38
39
|
"data-slot": "scroll-area-viewport",
|
|
@@ -47,8 +48,8 @@ function ScrollAreaViewport({ className = "", tabIndex = 0, role = "group", "ari
|
|
|
47
48
|
/**
|
|
48
49
|
* The scrollbar track, either vertical or horizontal.
|
|
49
50
|
*/
|
|
50
|
-
function ScrollAreaScrollbar({ className
|
|
51
|
-
const classes = ["scroll-area__scrollbar"
|
|
51
|
+
function ScrollAreaScrollbar({ className, orientation = "vertical", ref, ...props }) {
|
|
52
|
+
const classes = mergeBaseClassName(["scroll-area__scrollbar"].filter(Boolean).join(" "), className);
|
|
52
53
|
return /* @__PURE__ */ jsx(ScrollArea$1.Scrollbar, {
|
|
53
54
|
ref,
|
|
54
55
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -60,8 +61,8 @@ function ScrollAreaScrollbar({ className = "", orientation = "vertical", ref, ..
|
|
|
60
61
|
/**
|
|
61
62
|
* The draggable scrollbar thumb indicator.
|
|
62
63
|
*/
|
|
63
|
-
function ScrollAreaThumb({ className
|
|
64
|
-
const classes = ["scroll-area__thumb"
|
|
64
|
+
function ScrollAreaThumb({ className, ref, ...props }) {
|
|
65
|
+
const classes = mergeBaseClassName(["scroll-area__thumb"].filter(Boolean).join(" "), className);
|
|
65
66
|
return /* @__PURE__ */ jsx(ScrollArea$1.Thumb, {
|
|
66
67
|
ref,
|
|
67
68
|
"data-slot": "scroll-area-thumb",
|
|
@@ -72,10 +73,11 @@ function ScrollAreaThumb({ className = "", ref, ...props }) {
|
|
|
72
73
|
/**
|
|
73
74
|
* Small rectangle at the intersection of scrollbars.
|
|
74
75
|
*/
|
|
75
|
-
function ScrollAreaCorner({ className
|
|
76
|
-
const classes = ["scroll-area__corner"
|
|
76
|
+
function ScrollAreaCorner({ className, ref, ...props }) {
|
|
77
|
+
const classes = mergeBaseClassName(["scroll-area__corner"].filter(Boolean).join(" "), className);
|
|
77
78
|
return /* @__PURE__ */ jsx(ScrollArea$1.Corner, {
|
|
78
79
|
ref,
|
|
80
|
+
"data-slot": "scroll-area-corner",
|
|
79
81
|
className: classes,
|
|
80
82
|
...props
|
|
81
83
|
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FieldControlProps, FieldLabelProps, FieldRootProps } from "./Field.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SearchField.d.ts
|
|
5
|
+
interface SearchFieldRootProps extends FieldRootProps {}
|
|
6
|
+
interface SearchFieldLabelProps extends FieldLabelProps {}
|
|
7
|
+
interface SearchFieldControlProps extends Omit<FieldControlProps, "type"> {}
|
|
8
|
+
/**
|
|
9
|
+
* Field root for a labelled search input. Product-specific sizing can be
|
|
10
|
+
* applied through the shared field recipe variables without rebuilding the
|
|
11
|
+
* search icon anatomy.
|
|
12
|
+
*/
|
|
13
|
+
declare function SearchFieldRoot({
|
|
14
|
+
className,
|
|
15
|
+
ref,
|
|
16
|
+
...props
|
|
17
|
+
}: SearchFieldRootProps & {
|
|
18
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
/** Label associated with the search control through the underlying Field. */
|
|
21
|
+
declare function SearchFieldLabel({
|
|
22
|
+
className,
|
|
23
|
+
ref,
|
|
24
|
+
...props
|
|
25
|
+
}: SearchFieldLabelProps & {
|
|
26
|
+
ref?: React.Ref<HTMLLabelElement>;
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
/** Search input with the design-system search icon and logical inset. */
|
|
29
|
+
declare function SearchFieldControl({
|
|
30
|
+
className,
|
|
31
|
+
ref,
|
|
32
|
+
...props
|
|
33
|
+
}: SearchFieldControlProps & {
|
|
34
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
35
|
+
}): React.JSX.Element;
|
|
36
|
+
/** Composable, accessible search field with stable anatomy slots. */
|
|
37
|
+
declare const SearchField: {
|
|
38
|
+
Root: typeof SearchFieldRoot;
|
|
39
|
+
Label: typeof SearchFieldLabel;
|
|
40
|
+
Control: typeof SearchFieldControl;
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { SearchField, SearchFieldControlProps, SearchFieldLabelProps, SearchFieldRootProps };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { U as SearchIcon } from "../icons-CQJ-aMnI.js";
|
|
3
|
+
import { Field } from "./Field.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/SearchField.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Field root for a labelled search input. Product-specific sizing can be
|
|
8
|
+
* applied through the shared field recipe variables without rebuilding the
|
|
9
|
+
* search icon anatomy.
|
|
10
|
+
*/
|
|
11
|
+
function SearchFieldRoot({ className, ref, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx(Field.Root, {
|
|
13
|
+
ref,
|
|
14
|
+
"data-slot": "search-field",
|
|
15
|
+
className: mergeBaseClassName("search-field", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/** Label associated with the search control through the underlying Field. */
|
|
20
|
+
function SearchFieldLabel({ className, ref, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Field.Label, {
|
|
22
|
+
ref,
|
|
23
|
+
"data-slot": "search-field-label",
|
|
24
|
+
className: mergeBaseClassName("search-field__label", className),
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/** Search input with the design-system search icon and logical inset. */
|
|
29
|
+
function SearchFieldControl({ className, ref, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
"data-slot": "search-field-control",
|
|
32
|
+
className: "search-field__control",
|
|
33
|
+
children: [/* @__PURE__ */ jsx(SearchIcon, {
|
|
34
|
+
"data-slot": "search-field-icon",
|
|
35
|
+
className: "search-field__icon",
|
|
36
|
+
"aria-hidden": "true"
|
|
37
|
+
}), /* @__PURE__ */ jsx(Field.Control, {
|
|
38
|
+
ref,
|
|
39
|
+
type: "search",
|
|
40
|
+
className: mergeBaseClassName("search-field__input", className),
|
|
41
|
+
...props
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** Composable, accessible search field with stable anatomy slots. */
|
|
46
|
+
const SearchField = {
|
|
47
|
+
Root: SearchFieldRoot,
|
|
48
|
+
Label: SearchFieldLabel,
|
|
49
|
+
Control: SearchFieldControl
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { SearchField };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SelectSeparatorProps, a as SelectIconProps, c as SelectItemTextProps, d as SelectPopupProps, f as SelectPortalProps, g as SelectScrollUpArrowProps, h as SelectScrollDownArrowProps, i as SelectGroupProps, l as SelectLabelProps, m as SelectProps, n as SelectBackdropProps, o as SelectItemIndicatorProps, p as SelectPositionerProps, r as SelectGroupLabelProps, s as SelectItemProps, t as Select, u as SelectListProps, v as SelectTriggerProps, y as SelectValueProps } from "../Select-
|
|
1
|
+
import { _ as SelectSeparatorProps, a as SelectIconProps, c as SelectItemTextProps, d as SelectPopupProps, f as SelectPortalProps, g as SelectScrollUpArrowProps, h as SelectScrollDownArrowProps, i as SelectGroupProps, l as SelectLabelProps, m as SelectProps, n as SelectBackdropProps, o as SelectItemIndicatorProps, p as SelectPositionerProps, r as SelectGroupLabelProps, s as SelectItemProps, t as Select, u as SelectListProps, v as SelectTriggerProps, y as SelectValueProps } from "../Select-B_13gg_J.js";
|
|
2
2
|
export { Select, SelectBackdropProps, SelectGroupLabelProps, SelectGroupProps, SelectIconProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectLabelProps, SelectListProps, SelectPopupProps, SelectPortalProps, SelectPositionerProps, SelectProps, SelectScrollDownArrowProps, SelectScrollUpArrowProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { a as ArrowUpIcon, l as CheckIcon, n as ArrowDownIcon } from "../icons-CQJ-aMnI.js";
|
|
2
3
|
import "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
@@ -34,8 +35,8 @@ function SelectRoot(props) {
|
|
|
34
35
|
...props
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
function SelectLabel({ className
|
|
38
|
-
const classes = ["select__label"
|
|
38
|
+
function SelectLabel({ className, ref, ...props }) {
|
|
39
|
+
const classes = mergeBaseClassName(["select__label"].filter(Boolean).join(" "), className);
|
|
39
40
|
return /* @__PURE__ */ jsx(Select$1.Label, {
|
|
40
41
|
ref,
|
|
41
42
|
"data-slot": "select-label",
|
|
@@ -43,17 +44,12 @@ function SelectLabel({ className = "", ref, ...props }) {
|
|
|
43
44
|
...props
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
function SelectTrigger({ size = "
|
|
47
|
-
const
|
|
48
|
-
const classes = [
|
|
49
|
-
"select__trigger",
|
|
50
|
-
normalizedSize === "sm" && "select__trigger--sm",
|
|
51
|
-
className
|
|
52
|
-
].filter(Boolean).join(" ");
|
|
47
|
+
function SelectTrigger({ size = "sm", className, ref, ...props }) {
|
|
48
|
+
const classes = mergeBaseClassName(["select__trigger", size === "sm" && "select__trigger--sm"].filter(Boolean).join(" "), className);
|
|
53
49
|
return /* @__PURE__ */ jsx(Select$1.Trigger, {
|
|
54
50
|
ref,
|
|
55
51
|
"data-slot": "select-trigger",
|
|
56
|
-
"data-size":
|
|
52
|
+
"data-size": size,
|
|
57
53
|
className: classes,
|
|
58
54
|
...props
|
|
59
55
|
});
|
|
@@ -67,8 +63,8 @@ function SelectValue({ placeholder, children, ref, ...props }) {
|
|
|
67
63
|
children
|
|
68
64
|
});
|
|
69
65
|
}
|
|
70
|
-
function SelectIcon({ className
|
|
71
|
-
const classes = ["select__icon"
|
|
66
|
+
function SelectIcon({ className, children, ref, ...props }) {
|
|
67
|
+
const classes = mergeBaseClassName(["select__icon"].filter(Boolean).join(" "), className);
|
|
72
68
|
return /* @__PURE__ */ jsx(Select$1.Icon, {
|
|
73
69
|
ref,
|
|
74
70
|
className: classes,
|
|
@@ -76,36 +72,24 @@ function SelectIcon({ className = "", children, ref, ...props }) {
|
|
|
76
72
|
children: children ?? /* @__PURE__ */ jsx(ArrowDownIcon, {})
|
|
77
73
|
});
|
|
78
74
|
}
|
|
79
|
-
function SelectBackdrop({ className
|
|
80
|
-
const classes = [
|
|
81
|
-
"select__backdrop",
|
|
82
|
-
"base-ui-backdrop",
|
|
83
|
-
className
|
|
84
|
-
].filter(Boolean).join(" ");
|
|
75
|
+
function SelectBackdrop({ className, ref, ...props }) {
|
|
76
|
+
const classes = mergeBaseClassName(["select__backdrop", "base-ui-backdrop"].filter(Boolean).join(" "), className);
|
|
85
77
|
return /* @__PURE__ */ jsx(Select$1.Backdrop, {
|
|
86
78
|
ref,
|
|
87
79
|
className: classes,
|
|
88
80
|
...props
|
|
89
81
|
});
|
|
90
82
|
}
|
|
91
|
-
function SelectPositioner({ className
|
|
92
|
-
const classes = [
|
|
93
|
-
"select__positioner",
|
|
94
|
-
"base-ui-positioner",
|
|
95
|
-
className
|
|
96
|
-
].filter(Boolean).join(" ");
|
|
83
|
+
function SelectPositioner({ className, ref, ...props }) {
|
|
84
|
+
const classes = mergeBaseClassName(["select__positioner", "base-ui-positioner"].filter(Boolean).join(" "), className);
|
|
97
85
|
return /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
98
86
|
ref,
|
|
99
87
|
className: classes,
|
|
100
88
|
...props
|
|
101
89
|
});
|
|
102
90
|
}
|
|
103
|
-
function SelectPopup({ className
|
|
104
|
-
const classes = [
|
|
105
|
-
"select__popup",
|
|
106
|
-
"base-ui-popup",
|
|
107
|
-
className
|
|
108
|
-
].filter(Boolean).join(" ");
|
|
91
|
+
function SelectPopup({ className, ref, ...props }) {
|
|
92
|
+
const classes = mergeBaseClassName(["select__popup", "base-ui-popup"].filter(Boolean).join(" "), className);
|
|
109
93
|
return /* @__PURE__ */ jsx(Select$1.Popup, {
|
|
110
94
|
ref,
|
|
111
95
|
"data-slot": "select-content",
|
|
@@ -113,8 +97,8 @@ function SelectPopup({ className = "", ref, ...props }) {
|
|
|
113
97
|
...props
|
|
114
98
|
});
|
|
115
99
|
}
|
|
116
|
-
function SelectList({ className
|
|
117
|
-
const classes = ["select__list"
|
|
100
|
+
function SelectList({ className, ref, ...props }) {
|
|
101
|
+
const classes = mergeBaseClassName(["select__list"].filter(Boolean).join(" "), className);
|
|
118
102
|
return /* @__PURE__ */ jsx(Select$1.List, {
|
|
119
103
|
ref,
|
|
120
104
|
"data-slot": "select-viewport",
|
|
@@ -122,8 +106,8 @@ function SelectList({ className = "", ref, ...props }) {
|
|
|
122
106
|
...props
|
|
123
107
|
});
|
|
124
108
|
}
|
|
125
|
-
function SelectItem({ className
|
|
126
|
-
const classes = ["select__option"
|
|
109
|
+
function SelectItem({ className, value, ref, ...props }) {
|
|
110
|
+
const classes = mergeBaseClassName(["select__option"].filter(Boolean).join(" "), className);
|
|
127
111
|
return /* @__PURE__ */ jsx(Select$1.Item, {
|
|
128
112
|
ref,
|
|
129
113
|
"data-slot": "select-item",
|
|
@@ -132,16 +116,16 @@ function SelectItem({ className = "", value, ref, ...props }) {
|
|
|
132
116
|
...props
|
|
133
117
|
});
|
|
134
118
|
}
|
|
135
|
-
function SelectItemText({ className
|
|
136
|
-
const classes = ["select__item-text"
|
|
119
|
+
function SelectItemText({ className, ref, ...props }) {
|
|
120
|
+
const classes = mergeBaseClassName(["select__item-text"].filter(Boolean).join(" "), className);
|
|
137
121
|
return /* @__PURE__ */ jsx(Select$1.ItemText, {
|
|
138
122
|
ref,
|
|
139
123
|
className: classes,
|
|
140
124
|
...props
|
|
141
125
|
});
|
|
142
126
|
}
|
|
143
|
-
function SelectItemIndicator({ className
|
|
144
|
-
const classes = ["select__item-indicator"
|
|
127
|
+
function SelectItemIndicator({ className, children, ref, ...props }) {
|
|
128
|
+
const classes = mergeBaseClassName(["select__item-indicator"].filter(Boolean).join(" "), className);
|
|
145
129
|
return /* @__PURE__ */ jsx(Select$1.ItemIndicator, {
|
|
146
130
|
ref,
|
|
147
131
|
"data-slot": "select-item-indicator",
|
|
@@ -150,8 +134,8 @@ function SelectItemIndicator({ className = "", children, ref, ...props }) {
|
|
|
150
134
|
children: children ?? /* @__PURE__ */ jsx(CheckIcon, {})
|
|
151
135
|
});
|
|
152
136
|
}
|
|
153
|
-
function SelectGroup({ label, className
|
|
154
|
-
const classes = ["select__option-group"
|
|
137
|
+
function SelectGroup({ label, className, children, ref, ...props }) {
|
|
138
|
+
const classes = mergeBaseClassName(["select__option-group"].filter(Boolean).join(" "), className);
|
|
155
139
|
return /* @__PURE__ */ jsxs(Select$1.Group, {
|
|
156
140
|
ref,
|
|
157
141
|
"data-slot": "select-group",
|
|
@@ -164,8 +148,8 @@ function SelectGroup({ label, className = "", children, ref, ...props }) {
|
|
|
164
148
|
}), children]
|
|
165
149
|
});
|
|
166
150
|
}
|
|
167
|
-
function SelectGroupLabel({ className
|
|
168
|
-
const classes = ["select__group-label"
|
|
151
|
+
function SelectGroupLabel({ className, ref, ...props }) {
|
|
152
|
+
const classes = mergeBaseClassName(["select__group-label"].filter(Boolean).join(" "), className);
|
|
169
153
|
return /* @__PURE__ */ jsx(Select$1.GroupLabel, {
|
|
170
154
|
ref,
|
|
171
155
|
"data-slot": "select-label",
|
|
@@ -173,8 +157,8 @@ function SelectGroupLabel({ className = "", ref, ...props }) {
|
|
|
173
157
|
...props
|
|
174
158
|
});
|
|
175
159
|
}
|
|
176
|
-
function SelectSeparator({ className
|
|
177
|
-
const classes = ["select__separator"
|
|
160
|
+
function SelectSeparator({ className, ref, ...props }) {
|
|
161
|
+
const classes = mergeBaseClassName(["select__separator"].filter(Boolean).join(" "), className);
|
|
178
162
|
return /* @__PURE__ */ jsx(Select$1.Separator, {
|
|
179
163
|
ref,
|
|
180
164
|
"data-slot": "select-separator",
|
|
@@ -182,12 +166,8 @@ function SelectSeparator({ className = "", ref, ...props }) {
|
|
|
182
166
|
...props
|
|
183
167
|
});
|
|
184
168
|
}
|
|
185
|
-
function SelectScrollUpArrow({ className
|
|
186
|
-
const classes = [
|
|
187
|
-
"select__scroll-button",
|
|
188
|
-
"select__scroll-button--up",
|
|
189
|
-
className
|
|
190
|
-
].filter(Boolean).join(" ");
|
|
169
|
+
function SelectScrollUpArrow({ className, children, ref, ...props }) {
|
|
170
|
+
const classes = mergeBaseClassName(["select__scroll-button", "select__scroll-button--up"].filter(Boolean).join(" "), className);
|
|
191
171
|
return /* @__PURE__ */ jsx(Select$1.ScrollUpArrow, {
|
|
192
172
|
ref,
|
|
193
173
|
"data-slot": "select-scroll-up-button",
|
|
@@ -196,12 +176,8 @@ function SelectScrollUpArrow({ className = "", children, ref, ...props }) {
|
|
|
196
176
|
children: children ?? /* @__PURE__ */ jsx(ArrowUpIcon, {})
|
|
197
177
|
});
|
|
198
178
|
}
|
|
199
|
-
function SelectScrollDownArrow({ className
|
|
200
|
-
const classes = [
|
|
201
|
-
"select__scroll-button",
|
|
202
|
-
"select__scroll-button--down",
|
|
203
|
-
className
|
|
204
|
-
].filter(Boolean).join(" ");
|
|
179
|
+
function SelectScrollDownArrow({ className, children, ref, ...props }) {
|
|
180
|
+
const classes = mergeBaseClassName(["select__scroll-button", "select__scroll-button--down"].filter(Boolean).join(" "), className);
|
|
205
181
|
return /* @__PURE__ */ jsx(Select$1.ScrollDownArrow, {
|
|
206
182
|
ref,
|
|
207
183
|
"data-slot": "select-scroll-down-button",
|
|
@@ -5,16 +5,12 @@ import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the Separator component.
|
|
7
7
|
*/
|
|
8
|
-
interface SeparatorProps extends
|
|
8
|
+
interface SeparatorProps extends React.ComponentPropsWithRef<typeof Separator$1> {
|
|
9
9
|
/**
|
|
10
10
|
* Whether the separator is purely visual.
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
decorative?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Additional CSS class names.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
14
|
}
|
|
19
15
|
/**
|
|
20
16
|
* A visual divider component that separates content sections.
|
|
@@ -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 { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
@@ -18,12 +19,8 @@ import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
|
18
19
|
*
|
|
19
20
|
* @see {@link https://base-ui.com/react/components/separator | Base UI Separator}
|
|
20
21
|
*/
|
|
21
|
-
function Separator({ orientation = "horizontal", decorative = true, className
|
|
22
|
-
const classes =
|
|
23
|
-
"separator",
|
|
24
|
-
`separator--${orientation}`,
|
|
25
|
-
className
|
|
26
|
-
].filter(Boolean).join(" ");
|
|
22
|
+
function Separator({ orientation = "horizontal", decorative = true, className, ref, ...props }) {
|
|
23
|
+
const classes = mergeBaseClassName(`separator separator--${orientation}`, className);
|
|
27
24
|
return /* @__PURE__ */ jsx(Separator$1, {
|
|
28
25
|
ref,
|
|
29
26
|
"data-slot": "separator",
|
|
@@ -2,28 +2,15 @@ import * as React from "react";
|
|
|
2
2
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Slider.d.ts
|
|
5
|
-
interface SliderProps extends
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
interface
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
interface SliderTrackProps extends Omit<React.ComponentPropsWithRef<typeof Slider$1.Track>, "className"> {
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
interface SliderIndicatorProps extends Omit<React.ComponentPropsWithRef<typeof Slider$1.Indicator>, "className"> {
|
|
15
|
-
className?: string;
|
|
16
|
-
}
|
|
17
|
-
interface SliderThumbProps extends Omit<React.ComponentPropsWithRef<typeof Slider$1.Thumb>, "className"> {
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
5
|
+
interface SliderProps extends React.ComponentPropsWithRef<typeof Slider$1.Root> {}
|
|
6
|
+
interface SliderControlProps extends React.ComponentPropsWithRef<typeof Slider$1.Control> {}
|
|
7
|
+
interface SliderTrackProps extends React.ComponentPropsWithRef<typeof Slider$1.Track> {}
|
|
8
|
+
interface SliderIndicatorProps extends React.ComponentPropsWithRef<typeof Slider$1.Indicator> {}
|
|
9
|
+
interface SliderThumbProps extends React.ComponentPropsWithRef<typeof Slider$1.Thumb> {}
|
|
20
10
|
interface SliderOutputProps extends Omit<React.ComponentPropsWithRef<typeof Slider$1.Value>, "children"> {
|
|
21
|
-
className?: string;
|
|
22
11
|
children?: (value: number, values: readonly number[], formattedValues: readonly string[]) => React.ReactNode;
|
|
23
12
|
}
|
|
24
|
-
interface SliderLabelProps extends
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
13
|
+
interface SliderLabelProps extends React.ComponentPropsWithRef<typeof Slider$1.Label> {}
|
|
27
14
|
/**
|
|
28
15
|
* A slider component for selecting values from a range.
|
|
29
16
|
*
|