@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 * as React from "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
@@ -37,12 +38,12 @@ const PopoverRoot = (props) => {
|
|
|
37
38
|
})
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
|
-
function PopoverAnchor({ className
|
|
41
|
+
function PopoverAnchor({ className, ref, ...props }) {
|
|
41
42
|
const anchorRef = React.useContext(PopoverAnchorContext);
|
|
42
43
|
return /* @__PURE__ */ jsx("div", {
|
|
43
44
|
ref: (node) => setRefs(node, anchorRef, ref),
|
|
44
45
|
"data-slot": "popover-anchor",
|
|
45
|
-
className: ["popover__anchor"
|
|
46
|
+
className: mergeBaseClassName(["popover__anchor"].filter(Boolean).join(" "), className),
|
|
46
47
|
...props
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -50,8 +51,8 @@ function PopoverAnchor({ className = "", ref, ...props }) {
|
|
|
50
51
|
* Button that toggles the popover visibility.
|
|
51
52
|
* Renders a `<button>` element.
|
|
52
53
|
*/
|
|
53
|
-
function PopoverTrigger({ className
|
|
54
|
-
const classes = ["popover__trigger"
|
|
54
|
+
function PopoverTrigger({ className, ref, ...props }) {
|
|
55
|
+
const classes = mergeBaseClassName(["popover__trigger"].filter(Boolean).join(" "), className);
|
|
55
56
|
return /* @__PURE__ */ jsx(Popover$1.Trigger, {
|
|
56
57
|
ref,
|
|
57
58
|
"data-slot": "popover-trigger",
|
|
@@ -68,12 +69,8 @@ const PopoverPortal = (props) => {
|
|
|
68
69
|
/**
|
|
69
70
|
* Optional backdrop that appears behind the popover.
|
|
70
71
|
*/
|
|
71
|
-
function PopoverBackdrop({ className
|
|
72
|
-
const classes = [
|
|
73
|
-
"popover__backdrop",
|
|
74
|
-
"base-ui-backdrop",
|
|
75
|
-
className
|
|
76
|
-
].filter(Boolean).join(" ");
|
|
72
|
+
function PopoverBackdrop({ className, ref, ...props }) {
|
|
73
|
+
const classes = mergeBaseClassName(["popover__backdrop", "base-ui-backdrop"].filter(Boolean).join(" "), className);
|
|
77
74
|
return /* @__PURE__ */ jsx(Popover$1.Backdrop, {
|
|
78
75
|
ref,
|
|
79
76
|
"data-slot": "popover-backdrop",
|
|
@@ -92,13 +89,9 @@ function PopoverBackdrop({ className = "", ref, ...props }) {
|
|
|
92
89
|
* </Popover.Positioner>
|
|
93
90
|
* ```
|
|
94
91
|
*/
|
|
95
|
-
function PopoverPositioner({ className
|
|
92
|
+
function PopoverPositioner({ className, anchor, ref, ...props }) {
|
|
96
93
|
const anchorRef = React.useContext(PopoverAnchorContext);
|
|
97
|
-
const classes = [
|
|
98
|
-
"popover__positioner",
|
|
99
|
-
"base-ui-positioner",
|
|
100
|
-
className
|
|
101
|
-
].filter(Boolean).join(" ");
|
|
94
|
+
const classes = mergeBaseClassName(["popover__positioner", "base-ui-positioner"].filter(Boolean).join(" "), className);
|
|
102
95
|
return /* @__PURE__ */ jsx(Popover$1.Positioner, {
|
|
103
96
|
ref,
|
|
104
97
|
anchor: anchor ?? anchorRef ?? void 0,
|
|
@@ -109,12 +102,8 @@ function PopoverPositioner({ className = "", anchor, ref, ...props }) {
|
|
|
109
102
|
/**
|
|
110
103
|
* The popup container that holds the popover content.
|
|
111
104
|
*/
|
|
112
|
-
function PopoverPopup({ className
|
|
113
|
-
const classes = [
|
|
114
|
-
"popover__popup",
|
|
115
|
-
"base-ui-popup",
|
|
116
|
-
className
|
|
117
|
-
].filter(Boolean).join(" ");
|
|
105
|
+
function PopoverPopup({ className, ref, ...props }) {
|
|
106
|
+
const classes = mergeBaseClassName(["popover__popup", "base-ui-popup"].filter(Boolean).join(" "), className);
|
|
118
107
|
return /* @__PURE__ */ jsx(Popover$1.Popup, {
|
|
119
108
|
ref,
|
|
120
109
|
"data-slot": "popover-content",
|
|
@@ -127,8 +116,8 @@ function PopoverPopup({ className = "", ref, ...props }) {
|
|
|
127
116
|
* triggers. Pair the adaptive classes from `base-ui-motion.css` with the
|
|
128
117
|
* positioner, popup, and this viewport when that behavior is needed.
|
|
129
118
|
*/
|
|
130
|
-
function PopoverViewport({ className
|
|
131
|
-
const classes = ["popover__viewport"
|
|
119
|
+
function PopoverViewport({ className, ref, ...props }) {
|
|
120
|
+
const classes = mergeBaseClassName(["popover__viewport"].filter(Boolean).join(" "), className);
|
|
132
121
|
return /* @__PURE__ */ jsx(Popover$1.Viewport, {
|
|
133
122
|
ref,
|
|
134
123
|
"data-slot": "popover-viewport",
|
|
@@ -136,19 +125,19 @@ function PopoverViewport({ className = "", ref, ...props }) {
|
|
|
136
125
|
...props
|
|
137
126
|
});
|
|
138
127
|
}
|
|
139
|
-
function PopoverHeader({ className
|
|
128
|
+
function PopoverHeader({ className, ref, ...props }) {
|
|
140
129
|
return /* @__PURE__ */ jsx("div", {
|
|
141
130
|
ref,
|
|
142
131
|
"data-slot": "popover-header",
|
|
143
|
-
className: ["popover__header"
|
|
132
|
+
className: mergeBaseClassName(["popover__header"].filter(Boolean).join(" "), className),
|
|
144
133
|
...props
|
|
145
134
|
});
|
|
146
135
|
}
|
|
147
136
|
/**
|
|
148
137
|
* Directional arrow pointing to the trigger element.
|
|
149
138
|
*/
|
|
150
|
-
function PopoverArrow({ className
|
|
151
|
-
const classes = ["popover__arrow"
|
|
139
|
+
function PopoverArrow({ className, ref, ...props }) {
|
|
140
|
+
const classes = mergeBaseClassName(["popover__arrow"].filter(Boolean).join(" "), className);
|
|
152
141
|
return /* @__PURE__ */ jsx(Popover$1.Arrow, {
|
|
153
142
|
ref,
|
|
154
143
|
"data-slot": "popover-arrow",
|
|
@@ -160,8 +149,8 @@ function PopoverArrow({ className = "", ref, ...props }) {
|
|
|
160
149
|
* Semantic title for the popover content.
|
|
161
150
|
* Renders an `<h2>` element.
|
|
162
151
|
*/
|
|
163
|
-
function PopoverTitle({ className
|
|
164
|
-
const classes = ["popover__title"
|
|
152
|
+
function PopoverTitle({ className, ref, ...props }) {
|
|
153
|
+
const classes = mergeBaseClassName(["popover__title"].filter(Boolean).join(" "), className);
|
|
165
154
|
return /* @__PURE__ */ jsx(Popover$1.Title, {
|
|
166
155
|
ref,
|
|
167
156
|
"data-slot": "popover-title",
|
|
@@ -173,8 +162,8 @@ function PopoverTitle({ className = "", ref, ...props }) {
|
|
|
173
162
|
* Description text for the popover content.
|
|
174
163
|
* Renders a `<p>` element.
|
|
175
164
|
*/
|
|
176
|
-
function PopoverDescription({ className
|
|
177
|
-
const classes = ["popover__description"
|
|
165
|
+
function PopoverDescription({ className, ref, ...props }) {
|
|
166
|
+
const classes = mergeBaseClassName(["popover__description"].filter(Boolean).join(" "), className);
|
|
178
167
|
return /* @__PURE__ */ jsx(Popover$1.Description, {
|
|
179
168
|
ref,
|
|
180
169
|
"data-slot": "popover-description",
|
|
@@ -185,8 +174,8 @@ function PopoverDescription({ className = "", ref, ...props }) {
|
|
|
185
174
|
/**
|
|
186
175
|
* Button that closes the popover.
|
|
187
176
|
*/
|
|
188
|
-
function PopoverClose({ className
|
|
189
|
-
const classes = ["popover__close"
|
|
177
|
+
function PopoverClose({ className, ref, ...props }) {
|
|
178
|
+
const classes = mergeBaseClassName(["popover__close"].filter(Boolean).join(" "), className);
|
|
190
179
|
return /* @__PURE__ */ jsx(Popover$1.Close, {
|
|
191
180
|
ref,
|
|
192
181
|
"data-slot": "popover-close",
|
|
@@ -9,10 +9,7 @@ interface PreviewCardProps extends React.ComponentPropsWithoutRef<typeof Preview
|
|
|
9
9
|
/**
|
|
10
10
|
* Props for the PreviewCard.Trigger component.
|
|
11
11
|
*/
|
|
12
|
-
interface PreviewCardTriggerProps extends
|
|
13
|
-
/** Additional CSS class names */
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
12
|
+
interface PreviewCardTriggerProps extends React.ComponentPropsWithoutRef<typeof PreviewCard$1.Trigger> {}
|
|
16
13
|
/**
|
|
17
14
|
* Props for the PreviewCard.Portal component.
|
|
18
15
|
*/
|
|
@@ -20,39 +17,24 @@ interface PreviewCardPortalProps extends React.ComponentPropsWithoutRef<typeof P
|
|
|
20
17
|
/**
|
|
21
18
|
* Props for the PreviewCard.Backdrop component.
|
|
22
19
|
*/
|
|
23
|
-
interface PreviewCardBackdropProps extends
|
|
24
|
-
/** Additional CSS class names */
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
20
|
+
interface PreviewCardBackdropProps extends React.ComponentPropsWithoutRef<typeof PreviewCard$1.Backdrop> {}
|
|
27
21
|
/**
|
|
28
22
|
* Props for the PreviewCard.Positioner component.
|
|
29
23
|
*/
|
|
30
|
-
interface PreviewCardPositionerProps extends
|
|
31
|
-
/** Additional CSS class names */
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
24
|
+
interface PreviewCardPositionerProps extends React.ComponentPropsWithoutRef<typeof PreviewCard$1.Positioner> {}
|
|
34
25
|
/**
|
|
35
26
|
* Props for the PreviewCard.Popup component.
|
|
36
27
|
*/
|
|
37
|
-
interface PreviewCardPopupProps extends
|
|
38
|
-
/** Additional CSS class names */
|
|
39
|
-
className?: string;
|
|
40
|
-
}
|
|
28
|
+
interface PreviewCardPopupProps extends React.ComponentPropsWithoutRef<typeof PreviewCard$1.Popup> {}
|
|
41
29
|
/**
|
|
42
30
|
* Props for the PreviewCard.Viewport component. Use this only when one
|
|
43
31
|
* preview card moves between triggers and its content changes in place.
|
|
44
32
|
*/
|
|
45
|
-
interface PreviewCardViewportProps extends
|
|
46
|
-
/** Additional CSS class names */
|
|
47
|
-
className?: string;
|
|
48
|
-
}
|
|
33
|
+
interface PreviewCardViewportProps extends React.ComponentPropsWithoutRef<typeof PreviewCard$1.Viewport> {}
|
|
49
34
|
/**
|
|
50
35
|
* Props for the PreviewCard.Arrow component.
|
|
51
36
|
*/
|
|
52
|
-
interface PreviewCardArrowProps extends
|
|
53
|
-
/** Additional CSS class names */
|
|
54
|
-
className?: string;
|
|
55
|
-
}
|
|
37
|
+
interface PreviewCardArrowProps extends React.ComponentPropsWithoutRef<typeof PreviewCard$1.Arrow> {}
|
|
56
38
|
/**
|
|
57
39
|
* Link element that triggers the preview card on hover.
|
|
58
40
|
*/
|
|
@@ -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 { PreviewCard as PreviewCard$1 } from "@base-ui/react/preview-card";
|
|
@@ -31,8 +32,8 @@ const PreviewCardRoot = (props) => {
|
|
|
31
32
|
/**
|
|
32
33
|
* Link element that triggers the preview card on hover.
|
|
33
34
|
*/
|
|
34
|
-
function PreviewCardTrigger({ className
|
|
35
|
-
const classes = ["preview-card__trigger"
|
|
35
|
+
function PreviewCardTrigger({ className, ref, ...props }) {
|
|
36
|
+
const classes = mergeBaseClassName(["preview-card__trigger"].filter(Boolean).join(" "), className);
|
|
36
37
|
return /* @__PURE__ */ jsx(PreviewCard$1.Trigger, {
|
|
37
38
|
ref,
|
|
38
39
|
"data-slot": "hover-card-trigger",
|
|
@@ -52,12 +53,8 @@ const PreviewCardPortal = (props) => {
|
|
|
52
53
|
/**
|
|
53
54
|
* Optional backdrop behind the preview card.
|
|
54
55
|
*/
|
|
55
|
-
function PreviewCardBackdrop({ className
|
|
56
|
-
const classes = [
|
|
57
|
-
"preview-card__backdrop",
|
|
58
|
-
"base-ui-backdrop",
|
|
59
|
-
className
|
|
60
|
-
].filter(Boolean).join(" ");
|
|
56
|
+
function PreviewCardBackdrop({ className, ref, ...props }) {
|
|
57
|
+
const classes = mergeBaseClassName(["preview-card__backdrop", "base-ui-backdrop"].filter(Boolean).join(" "), className);
|
|
61
58
|
return /* @__PURE__ */ jsx(PreviewCard$1.Backdrop, {
|
|
62
59
|
ref,
|
|
63
60
|
"data-slot": "hover-card-backdrop",
|
|
@@ -68,12 +65,8 @@ function PreviewCardBackdrop({ className = "", ref, ...props }) {
|
|
|
68
65
|
/**
|
|
69
66
|
* Positions the preview card relative to the trigger.
|
|
70
67
|
*/
|
|
71
|
-
function PreviewCardPositioner({ className
|
|
72
|
-
const classes = [
|
|
73
|
-
"preview-card__positioner",
|
|
74
|
-
"base-ui-positioner",
|
|
75
|
-
className
|
|
76
|
-
].filter(Boolean).join(" ");
|
|
68
|
+
function PreviewCardPositioner({ className, ref, ...props }) {
|
|
69
|
+
const classes = mergeBaseClassName(["preview-card__positioner", "base-ui-positioner"].filter(Boolean).join(" "), className);
|
|
77
70
|
return /* @__PURE__ */ jsx(PreviewCard$1.Positioner, {
|
|
78
71
|
ref,
|
|
79
72
|
"data-slot": "hover-card-positioner",
|
|
@@ -84,12 +77,8 @@ function PreviewCardPositioner({ className = "", ref, ...props }) {
|
|
|
84
77
|
/**
|
|
85
78
|
* Container for preview card content.
|
|
86
79
|
*/
|
|
87
|
-
function PreviewCardPopup({ className
|
|
88
|
-
const classes = [
|
|
89
|
-
"preview-card__popup",
|
|
90
|
-
"base-ui-popup",
|
|
91
|
-
className
|
|
92
|
-
].filter(Boolean).join(" ");
|
|
80
|
+
function PreviewCardPopup({ className, ref, ...props }) {
|
|
81
|
+
const classes = mergeBaseClassName(["preview-card__popup", "base-ui-popup"].filter(Boolean).join(" "), className);
|
|
93
82
|
return /* @__PURE__ */ jsx(PreviewCard$1.Popup, {
|
|
94
83
|
ref,
|
|
95
84
|
"data-slot": "hover-card-content",
|
|
@@ -102,8 +91,8 @@ function PreviewCardPopup({ className = "", ref, ...props }) {
|
|
|
102
91
|
* between triggers. Pair the adaptive classes from `base-ui-motion.css` with
|
|
103
92
|
* the positioner, popup, and this viewport when that behavior is needed.
|
|
104
93
|
*/
|
|
105
|
-
function PreviewCardViewport({ className
|
|
106
|
-
const classes = ["preview-card__viewport"
|
|
94
|
+
function PreviewCardViewport({ className, ref, ...props }) {
|
|
95
|
+
const classes = mergeBaseClassName(["preview-card__viewport"].filter(Boolean).join(" "), className);
|
|
107
96
|
return /* @__PURE__ */ jsx(PreviewCard$1.Viewport, {
|
|
108
97
|
ref,
|
|
109
98
|
"data-slot": "hover-card-viewport",
|
|
@@ -114,8 +103,8 @@ function PreviewCardViewport({ className = "", ref, ...props }) {
|
|
|
114
103
|
/**
|
|
115
104
|
* Decorative arrow pointing to the trigger.
|
|
116
105
|
*/
|
|
117
|
-
function PreviewCardArrow({ className
|
|
118
|
-
const classes = ["preview-card__arrow"
|
|
106
|
+
function PreviewCardArrow({ className, ref, ...props }) {
|
|
107
|
+
const classes = mergeBaseClassName(["preview-card__arrow"].filter(Boolean).join(" "), className);
|
|
119
108
|
return /* @__PURE__ */ jsx(PreviewCard$1.Arrow, {
|
|
120
109
|
ref,
|
|
121
110
|
"data-slot": "hover-card-arrow",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import { Accordion } from "./Accordion.js";
|
|
2
|
-
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/PricingFAQ.tsx
|
|
@@ -7,6 +7,7 @@ import { PricingUsageCalculator } from "./PricingUsageCalculator.js";
|
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/PricingPage.tsx
|
|
10
|
+
const EMPTY_USAGE_TIERS = [];
|
|
10
11
|
/**
|
|
11
12
|
* A comprehensive pricing page component that demonstrates all pricing-related
|
|
12
13
|
* components working together.
|
|
@@ -28,7 +29,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
28
29
|
* />
|
|
29
30
|
* ```
|
|
30
31
|
*/
|
|
31
|
-
function PricingPage({ title = "Simple, transparent pricing", subtitle, plans, faq, showUsageCalculator = false, usageTiers =
|
|
32
|
+
function PricingPage({ title = "Simple, transparent pricing", subtitle, plans, faq, showUsageCalculator = false, usageTiers = EMPTY_USAGE_TIERS, maxUsage = 1e5, usageUnit = "API calls", onSelectPlan, onConfirmUpgrade, className = "", billingToggleVariant, productIds, currentProductId, isSubscribed = false, checkoutUrl = "/api/checkout", switchPlanUrl = "/api/switch-plan", portalUrl = "/api/portal", isLoggedIn = false, loginUrl = "/auth/login", hasPolarAccount = false, onCheckout, onSwitchPlan, onPortalRedirect }) {
|
|
32
33
|
const [billingPeriod, setBillingPeriod] = React.useState("monthly");
|
|
33
34
|
const [selectedPlan, setSelectedPlan] = React.useState(null);
|
|
34
35
|
const [confirmDialogOpen, setConfirmDialogOpen] = React.useState(false);
|
|
@@ -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 { E as InfoIcon, M as MinusIcon, l as CheckIcon } from "../icons-CQJ-aMnI.js";
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
|
-
import { Separator } from "./Separator.js";
|
|
5
4
|
import { Tooltip } from "./Tooltip.js";
|
|
5
|
+
import { Separator } from "./Separator.js";
|
|
6
6
|
import { Badge } from "./Badge.js";
|
|
7
7
|
import { Card } from "./Card.js";
|
|
8
8
|
import { getPlanPrice, getPlanYearlySavings } from "./Pricing.js";
|
|
@@ -94,7 +94,8 @@ function PricingPlanCard({ plan, billingPeriod, action = "select", onSelect, cla
|
|
|
94
94
|
render: /* @__PURE__ */ jsx(Button, {
|
|
95
95
|
variant: "ghost",
|
|
96
96
|
color: "neutral",
|
|
97
|
-
size: "
|
|
97
|
+
size: "sm",
|
|
98
|
+
iconOnly: true,
|
|
98
99
|
"aria-label": `More information about ${feature.name}`
|
|
99
100
|
}),
|
|
100
101
|
children: /* @__PURE__ */ jsx(InfoIcon, { size: 14 })
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as cx } from "../class-names-
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Separator } from "./Separator.js";
|
|
3
|
+
import { Progress } from "./Progress.js";
|
|
3
4
|
import { Slider } from "./Slider.js";
|
|
4
5
|
import { Card } from "./Card.js";
|
|
5
6
|
import { formatPricingUsage, getUsagePrice } from "./Pricing.js";
|
|
6
|
-
import { Progress } from "./Progress.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/PricingUsageCalculator.tsx
|
|
10
10
|
/** Self-contained usage estimator composed from Card, Slider, Progress, and Separator. */
|
|
11
11
|
function PricingUsageCalculator({ usageTiers, maxUsage = 1e5, usageUnit = "API calls", defaultUsage = 5e4, className }) {
|
|
12
|
-
const [usage, setUsage] = React.useState(Math.min(defaultUsage, maxUsage));
|
|
12
|
+
const [usage, setUsage] = React.useState(() => Math.min(defaultUsage, maxUsage));
|
|
13
13
|
return /* @__PURE__ */ jsxs(Card, {
|
|
14
14
|
className: cx("pricing-page__calculator", className),
|
|
15
15
|
children: [
|
|
@@ -3,20 +3,15 @@ import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/Progress.d.ts
|
|
5
5
|
type ProgressColor = "primary" | "success" | "warning" | "destructive";
|
|
6
|
-
interface ProgressProps extends
|
|
7
|
-
className?: string;
|
|
6
|
+
interface ProgressProps extends React.ComponentPropsWithRef<typeof Progress$1.Root> {
|
|
8
7
|
/**
|
|
9
8
|
* The semantic color of the progress bar.
|
|
10
9
|
* @default 'primary'
|
|
11
10
|
*/
|
|
12
11
|
color?: ProgressColor;
|
|
13
12
|
}
|
|
14
|
-
interface ProgressTrackProps extends
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
interface ProgressIndicatorProps extends Omit<React.ComponentPropsWithRef<typeof Progress$1.Indicator>, "className"> {
|
|
18
|
-
className?: string;
|
|
19
|
-
}
|
|
13
|
+
interface ProgressTrackProps extends React.ComponentPropsWithRef<typeof Progress$1.Track> {}
|
|
14
|
+
interface ProgressIndicatorProps extends React.ComponentPropsWithRef<typeof Progress$1.Indicator> {}
|
|
20
15
|
/**
|
|
21
16
|
* A progress indicator component for showing completion status.
|
|
22
17
|
*
|
|
@@ -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 { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
@@ -16,12 +17,8 @@ import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
|
16
17
|
*
|
|
17
18
|
* @see {@link https://base-ui.com/react/components/progress | Base UI Progress}
|
|
18
19
|
*/
|
|
19
|
-
function ProgressRoot({ color = "primary", className
|
|
20
|
-
const classes = [
|
|
21
|
-
"progress",
|
|
22
|
-
`progress--${color}`,
|
|
23
|
-
className
|
|
24
|
-
].filter(Boolean).join(" ");
|
|
20
|
+
function ProgressRoot({ color = "primary", className, ref, ...props }) {
|
|
21
|
+
const classes = mergeBaseClassName(["progress", `progress--${color}`].filter(Boolean).join(" "), className);
|
|
25
22
|
return /* @__PURE__ */ jsx(Progress$1.Root, {
|
|
26
23
|
ref,
|
|
27
24
|
"data-slot": "progress",
|
|
@@ -29,8 +26,8 @@ function ProgressRoot({ color = "primary", className = "", ref, ...props }) {
|
|
|
29
26
|
...props
|
|
30
27
|
});
|
|
31
28
|
}
|
|
32
|
-
function ProgressTrack({ className
|
|
33
|
-
const classes = ["progress__track"
|
|
29
|
+
function ProgressTrack({ className, ref, ...props }) {
|
|
30
|
+
const classes = mergeBaseClassName(["progress__track"].filter(Boolean).join(" "), className);
|
|
34
31
|
return /* @__PURE__ */ jsx(Progress$1.Track, {
|
|
35
32
|
ref,
|
|
36
33
|
"data-slot": "progress-track",
|
|
@@ -38,8 +35,8 @@ function ProgressTrack({ className = "", ref, ...props }) {
|
|
|
38
35
|
...props
|
|
39
36
|
});
|
|
40
37
|
}
|
|
41
|
-
function ProgressIndicator({ className
|
|
42
|
-
const classes = ["progress__indicator"
|
|
38
|
+
function ProgressIndicator({ className, ref, ...props }) {
|
|
39
|
+
const classes = mergeBaseClassName(["progress__indicator"].filter(Boolean).join(" "), className);
|
|
43
40
|
return /* @__PURE__ */ jsx(Progress$1.Indicator, {
|
|
44
41
|
ref,
|
|
45
42
|
"data-slot": "progress-indicator",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AttachmentsContext,
|
|
1
|
+
import { $ as PromptInputDictationProps, A as PromptInputCommandDefinition, At as PromptInputTabProps, B as PromptInputCommandItemProps, Bt as getApprovalRequestId, C as PromptInputBodyProps, Ct as PromptInputTab, D as PromptInputCommand, Dt as PromptInputTabItemProps, E as PromptInputButtonTooltip, Et as PromptInputTabItem, F as PromptInputCommandGroupLabelProps, Ft as PromptInputTools, G as PromptInputCommandSeparatorProps, Gt as useProviderAttachments, H as PromptInputCommandListProps, Ht as getPendingToolApprovals, I as PromptInputCommandGroupProps, It as PromptInputToolsProps, J as PromptInputContextItem, K as PromptInputCommandTrigger, L as PromptInputCommandInput, Lt as PromptInputTooltipConfig, M as PromptInputCommandEmptyProps, Mt as PromptInputTabsListProps, N as PromptInputCommandGroup, Nt as PromptInputTextarea, O as PromptInputCommandComposer, Ot as PromptInputTabLabel, P as PromptInputCommandGroupLabel, Pt as PromptInputTextareaProps, Q as PromptInputDictation, R as PromptInputCommandInputProps, Rt as TextInputContext, S as PromptInputBody, St as PromptInputSubmitProps, T as PromptInputButtonProps, Tt as PromptInputTabBodyProps, U as PromptInputCommandProps, Ut as usePromptInputAttachments, V as PromptInputCommandList, Vt as getApprovalStateKey, W as PromptInputCommandSeparator, Wt as usePromptInputController, X as PromptInputContextSelectorProps, Y as PromptInputContextSelector, Z as PromptInputControllerProps, _ as PromptInputApprovalProps, _t as PromptInputReferences, a as PromptInputActionAddAttachmentsProps, at as PromptInputHoverCardContent, b as PromptInputAttachments, bt as PromptInputSelectProps, c as PromptInputActionMenu, ct as PromptInputHoverCardTrigger, d as PromptInputActionMenuItem, dt as PromptInputPermissionSelector, et as PromptInputFooter, f as PromptInputActionMenuItemProps, ft as PromptInputPermissionSelectorProps, g as PromptInputApproval, gt as PromptInputReference, h as PromptInputActionMenuTriggerProps, ht as PromptInputProviderProps, i as PromptInputActionAddAttachments, it as PromptInputHoverCard, j as PromptInputCommandEmpty, jt as PromptInputTabsList, k as PromptInputCommandComposerProps, kt as PromptInputTabLabelProps, l as PromptInputActionMenuContent, lt as PromptInputHoverCardTriggerProps, m as PromptInputActionMenuTrigger, mt as PromptInputProvider, n as PermissionMode, nt as PromptInputHeader, o as PromptInputActionAddScreenshot, ot as PromptInputHoverCardContentProps, p as PromptInputActionMenuProps, pt as PromptInputProps, q as PromptInputContextAction, r as PromptInput, rt as PromptInputHeaderProps, s as PromptInputActionAddScreenshotProps, st as PromptInputHoverCardProps, t as AttachmentsContext, tt as PromptInputFooterProps, u as PromptInputActionMenuContentProps, ut as PromptInputMessage, v as PromptInputAttachment, vt as PromptInputReferencesProps, w as PromptInputButton, wt as PromptInputTabBody, x as PromptInputAttachmentsProps, xt as PromptInputSubmit, y as PromptInputAttachmentProps, yt as PromptInputSelect, z as PromptInputCommandItem, zt as TooltipSide } from "../PromptInput-Bdh9pqlo.js";
|
|
2
|
+
export { AttachmentsContext, PermissionMode, PromptInput, PromptInputActionAddAttachments, PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuContentProps, PromptInputActionMenuItem, PromptInputActionMenuItemProps, PromptInputActionMenuProps, PromptInputActionMenuTrigger, PromptInputActionMenuTriggerProps, PromptInputApproval, PromptInputApprovalProps, PromptInputAttachment, PromptInputAttachmentProps, PromptInputAttachments, PromptInputAttachmentsProps, PromptInputBody, PromptInputBodyProps, PromptInputButton, PromptInputButtonProps, PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandComposer, PromptInputCommandComposerProps, PromptInputCommandDefinition, PromptInputCommandEmpty, PromptInputCommandEmptyProps, PromptInputCommandGroup, PromptInputCommandGroupLabel, PromptInputCommandGroupLabelProps, PromptInputCommandGroupProps, PromptInputCommandInput, PromptInputCommandInputProps, PromptInputCommandItem, PromptInputCommandItemProps, PromptInputCommandList, PromptInputCommandListProps, PromptInputCommandProps, PromptInputCommandSeparator, PromptInputCommandSeparatorProps, PromptInputCommandTrigger, PromptInputContextAction, PromptInputContextItem, PromptInputContextSelector, PromptInputContextSelectorProps, PromptInputControllerProps, PromptInputDictation, PromptInputDictationProps, PromptInputFooter, PromptInputFooterProps, PromptInputHeader, PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, PromptInputHoverCardContentProps, PromptInputHoverCardProps, PromptInputHoverCardTrigger, PromptInputHoverCardTriggerProps, PromptInputMessage, PromptInputPermissionSelector, PromptInputPermissionSelectorProps, PromptInputProps, PromptInputProvider, PromptInputProviderProps, PromptInputReference, PromptInputReferences, PromptInputReferencesProps, PromptInputSelect, PromptInputSelectProps, PromptInputSubmit, PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, PromptInputTabBodyProps, PromptInputTabItem, PromptInputTabItemProps, PromptInputTabLabel, PromptInputTabLabelProps, PromptInputTabProps, PromptInputTabsList, PromptInputTabsListProps, PromptInputTextarea, PromptInputTextareaProps, PromptInputTools, PromptInputToolsProps, PromptInputTooltipConfig, TextInputContext, TooltipSide, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals, usePromptInputAttachments, usePromptInputController, useProviderAttachments };
|