@mcp-b/react-components 0.16.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentActivity-BNUNrP9O.d.ts → AgentActivity-D2SHSGFX.d.ts} +1 -1
- package/dist/{AgentChat-CrlpbvQJ.d.ts → AgentChat-ClxViuUM.d.ts} +4 -29
- package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
- package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
- package/dist/{Button-FX_hpqxm.d.ts → Button-DLGzHsjc.d.ts} +13 -7
- package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Bfp5PAg3.js} +9 -6
- package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-gV4kZeCI.d.ts} +2 -9
- package/dist/Collapsible-N64ASIQr.d.ts +119 -0
- package/dist/{Combobox-B9Fcd6q-.d.ts → Combobox-CYc37s5l.d.ts} +11 -33
- package/dist/{FileTree-CkVbIMWV.js → FileTree-3zYtrddG.js} +46 -20
- package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
- package/dist/{Message-BkMdE3bS.js → Message-BXtmfc9Q.js} +13 -20
- package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-Cqw_qrUG.js} +18 -25
- package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-Bdh9pqlo.d.ts} +41 -71
- package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
- package/dist/{Select-BeEsefzh.d.ts → Select-B_13gg_J.d.ts} +16 -44
- package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-ColWK-XA.d.ts} +14 -20
- package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-15EhfvYJ.js} +123 -73
- package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-Bzot45kX.d.ts} +9 -4
- package/dist/{ThinkChatActivitySummary-BPmu9a-c.d.ts → ThinkChatActivitySummary-D1xOrNrq.d.ts} +1 -1
- package/dist/{ThinkChatContext-C3Eb1Xpi.d.ts → ThinkChatContext-DrsZqdaO.d.ts} +1 -1
- package/dist/ThinkRecoveryNotice-DFIcG9UX.d.ts +19 -0
- package/dist/{Toggle-CAAlNl-M.d.ts → Toggle-JKZ43D5S.d.ts} +2 -2
- package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-DNd6cDJZ.d.ts} +4 -5
- package/dist/Workspace-Jez8ffUj.d.ts +274 -0
- package/dist/WorkspaceExplorer-B9dQWNVK.d.ts +32 -0
- package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-CzyHnESE.d.ts} +1 -1
- package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-C68Ub8S8.js} +121 -128
- package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-BYYeTQLf.js} +20 -55
- package/dist/{WorkspaceLink-DK1DWMHe.d.ts → WorkspaceLink-O-EBKUJ8.d.ts} +6 -9
- package/dist/class-names-BiMDVpUo.js +14 -0
- package/dist/components/Accordion.d.ts +5 -15
- package/dist/components/Accordion.js +16 -10
- package/dist/components/Activity.d.ts +5 -10
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.d.ts +1 -1
- package/dist/components/AgentActivity.js +4 -5
- package/dist/components/AgentActivityPreview.d.ts +9 -9
- package/dist/components/AgentActivityPreview.js +8 -12
- package/dist/components/AgentAttention.d.ts +2 -2
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +113 -218
- package/dist/components/AgentChatMessageEditor.js +3 -3
- package/dist/components/AgentChatTurnError.js +2 -2
- package/dist/components/AgentConnection.js +4 -4
- package/dist/components/AgentMessageParts.d.ts +2 -0
- package/dist/components/AgentMessageParts.js +119 -0
- package/dist/components/AgentToolDetail.d.ts +57 -0
- package/dist/components/AgentToolDetail.js +100 -0
- package/dist/components/AgentToolRunsContext.d.ts +2 -0
- package/dist/components/AgentToolRunsContext.js +16 -0
- package/dist/components/AlertDialog.d.ts +7 -19
- package/dist/components/AlertDialog.js +21 -32
- package/dist/components/AppTopBar.d.ts +28 -8
- package/dist/components/AppTopBar.js +36 -12
- package/dist/components/Approval.d.ts +102 -0
- package/dist/components/Approval.js +227 -0
- package/dist/components/Artifact.d.ts +3 -5
- package/dist/components/Artifact.js +7 -5
- package/dist/components/Autocomplete.d.ts +11 -33
- package/dist/components/Autocomplete.js +23 -30
- package/dist/components/Avatar.d.ts +4 -12
- package/dist/components/Avatar.js +13 -12
- package/dist/components/Badge.js +3 -0
- package/dist/components/BrowserLiveView.js +27 -12
- package/dist/components/BrowserReplay.js +4 -3
- package/dist/components/BrowserRunPanel.js +58 -78
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +14 -16
- package/dist/components/Card.d.ts +7 -8
- package/dist/components/Card.js +19 -10
- package/dist/components/ChainOfThought.d.ts +5 -11
- package/dist/components/ChainOfThought.js +3 -2
- package/dist/components/ChatGptSignInScreen.js +8 -8
- package/dist/components/Checkbox.d.ts +2 -4
- package/dist/components/Checkbox.js +6 -5
- package/dist/components/CheckboxGroup.d.ts +1 -3
- package/dist/components/CheckboxGroup.js +15 -14
- package/dist/components/Checkpoint.d.ts +64 -0
- package/dist/components/Checkpoint.js +63 -0
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +1 -1
- package/dist/components/CodexModelSelector.js +2 -2
- package/dist/components/Collapsible.d.ts +1 -124
- package/dist/components/Collapsible.js +7 -10
- package/dist/components/Combobox.d.ts +1 -1
- package/dist/components/Combobox.js +23 -30
- package/dist/components/Commit.d.ts +5 -11
- package/dist/components/Commit.js +6 -5
- package/dist/components/Context.js +1 -1
- package/dist/components/ContextMenu.d.ts +21 -37
- package/dist/components/ContextMenu.js +34 -51
- package/dist/components/Conversation.d.ts +3 -5
- package/dist/components/Conversation.js +5 -4
- package/dist/components/DescriptionListParts.js +1 -1
- package/dist/components/Dialog.d.ts +6 -17
- package/dist/components/Dialog.js +17 -24
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +4 -3
- package/dist/components/Field.d.ts +17 -20
- package/dist/components/Field.js +20 -17
- package/dist/components/Fieldset.d.ts +2 -7
- package/dist/components/Fieldset.js +7 -6
- package/dist/components/FileTree.d.ts +6 -0
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Form.d.ts +1 -4
- package/dist/components/Form.js +3 -2
- package/dist/components/GithubMotionMark.js +1 -1
- package/dist/components/IconButton.d.ts +2 -3
- package/dist/components/IconButton.js +2 -1
- package/dist/components/InlineCitation.d.ts +66 -0
- package/dist/components/InlineCitation.js +142 -0
- package/dist/components/Input.d.ts +1 -4
- package/dist/components/Input.js +3 -2
- package/dist/components/Marker.js +1 -1
- package/dist/components/McpConnectionRequest.js +2 -2
- package/dist/components/McpServerPicker.d.ts +1 -1
- package/dist/components/McpServerPicker.js +6 -5
- package/dist/components/MediaPreviewCard.d.ts +103 -0
- package/dist/components/MediaPreviewCard.js +193 -0
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menu.js +33 -52
- package/dist/components/Menubar.d.ts +22 -43
- package/dist/components/Menubar.js +36 -53
- package/dist/components/Message.d.ts +7 -7
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +2 -2
- package/dist/components/MessageScroller.js +6 -5
- package/dist/components/Meter.d.ts +5 -20
- package/dist/components/Meter.js +11 -10
- package/dist/components/ModelSelector.d.ts +6 -9
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +11 -33
- package/dist/components/NavigationMenu.js +23 -30
- package/dist/components/NumberField.d.ts +6 -24
- package/dist/components/NumberField.js +13 -12
- package/dist/components/Plan.d.ts +103 -0
- package/dist/components/Plan.js +113 -0
- package/dist/components/Popover.d.ts +9 -36
- package/dist/components/Popover.js +23 -34
- package/dist/components/PreviewCard.d.ts +6 -24
- package/dist/components/PreviewCard.js +13 -24
- package/dist/components/PricingBillingToggle.js +1 -1
- package/dist/components/PricingFAQ.js +1 -1
- package/dist/components/PricingPage.js +2 -1
- package/dist/components/PricingPlanCard.js +5 -4
- package/dist/components/PricingUsageCalculator.js +3 -3
- package/dist/components/Progress.d.ts +3 -8
- package/dist/components/Progress.js +7 -10
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +83 -218
- package/dist/components/Queue.d.ts +7 -17
- package/dist/components/Queue.js +2 -3
- package/dist/components/RadioGroup.d.ts +3 -8
- package/dist/components/RadioGroup.js +7 -10
- package/dist/components/Reasoning.d.ts +4 -8
- package/dist/components/Reasoning.js +3 -6
- package/dist/components/ResizableSidePanel.js +2 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/ResponsiveSidebarShell.js +18 -11
- package/dist/components/ScrollArea.d.ts +5 -20
- package/dist/components/ScrollArea.js +12 -10
- package/dist/components/SearchField.d.ts +43 -0
- package/dist/components/SearchField.js +52 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +33 -57
- package/dist/components/Separator.d.ts +1 -5
- package/dist/components/Separator.js +3 -6
- package/dist/components/Slider.d.ts +6 -19
- package/dist/components/Slider.js +15 -14
- package/dist/components/Sources.d.ts +4 -9
- package/dist/components/Sources.js +3 -2
- package/dist/components/Stepper.js +16 -9
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.d.ts +3 -5
- package/dist/components/SubagentRunList.js +3 -5
- package/dist/components/SubagentRunSelector.d.ts +9 -22
- package/dist/components/SubagentRunSelector.js +29 -31
- package/dist/components/Switch.d.ts +4 -7
- package/dist/components/Switch.js +6 -10
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +21 -18
- package/dist/components/Task.d.ts +4 -9
- package/dist/components/Task.js +4 -3
- package/dist/components/Terminal.d.ts +3 -4
- package/dist/components/Terminal.js +5 -4
- package/dist/components/TestResults.d.ts +4 -9
- package/dist/components/TestResults.js +11 -6
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +45 -22
- package/dist/components/ThinkChat.js +7 -5
- package/dist/components/ThinkChatActivity.d.ts +2 -2
- package/dist/components/ThinkChatActivity.js +24 -7
- package/dist/components/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/ThinkChatActivitySummary.js +7 -3
- package/dist/components/ThinkChatContext.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +27 -17
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.d.ts +30 -8
- package/dist/components/ThinkExecutionWorkbench.js +70 -134
- package/dist/components/ThinkFullApp.d.ts +40 -15
- package/dist/components/ThinkFullApp.js +193 -117
- package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/ThinkFullAppViewSwitch.js +2 -2
- package/dist/components/ThinkPendingApproval.d.ts +60 -0
- package/dist/components/ThinkPendingApproval.js +99 -0
- package/dist/components/ThinkRecoveryNotice.d.ts +2 -0
- package/dist/components/ThinkRecoveryNotice.js +46 -0
- package/dist/components/ThinkRoutine.js +1 -0
- package/dist/components/ThinkRoutineBrowser.d.ts +17 -9
- package/dist/components/ThinkRoutineBrowser.js +37 -44
- package/dist/components/ThinkRoutineDetail.d.ts +5 -2
- package/dist/components/ThinkRoutineDetail.js +4 -4
- package/dist/components/ThinkRoutineForm.d.ts +3 -2
- package/dist/components/ThinkRoutineForm.js +11 -10
- package/dist/components/ThinkRoutineLibrary.d.ts +27 -25
- package/dist/components/ThinkRoutineLibrary.js +104 -80
- package/dist/components/ThinkRoutineRuns.d.ts +3 -2
- package/dist/components/ThinkRoutineRuns.js +31 -24
- package/dist/components/ThinkThreadPicker.d.ts +17 -11
- package/dist/components/ThinkThreadPicker.js +163 -39
- package/dist/components/ThinkThreadShell.d.ts +1 -1
- package/dist/components/Toast.d.ts +7 -28
- package/dist/components/Toast.js +15 -14
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +10 -8
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +21 -26
- package/dist/components/ToolApproval.d.ts +28 -0
- package/dist/components/ToolApproval.js +35 -0
- package/dist/components/ToolInvocation.d.ts +26 -0
- package/dist/components/ToolInvocation.js +72 -0
- package/dist/components/Toolbar.d.ts +6 -24
- package/dist/components/Toolbar.js +13 -12
- package/dist/components/Tooltip.d.ts +11 -10
- package/dist/components/Tooltip.js +17 -11
- package/dist/components/TransitionSurface.d.ts +27 -0
- package/dist/components/TransitionSurface.js +20 -0
- package/dist/components/WebPreview.d.ts +6 -7
- package/dist/components/WebPreview.js +70 -55
- package/dist/components/Workspace.d.ts +2 -2
- package/dist/components/Workspace.js +361 -346
- package/dist/components/WorkspaceBrowser.d.ts +4 -7
- package/dist/components/WorkspaceBrowser.js +16 -26
- package/dist/components/WorkspaceExplorer.d.ts +5 -33
- package/dist/components/WorkspaceExplorer.js +19 -32
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +14 -2
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.d.ts +0 -8
- package/dist/components/WorkspaceHeader.js +3 -15
- package/dist/components/WorkspaceLink.d.ts +1 -1
- package/dist/components/WorkspaceLink.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DtPMgN7e.d.ts → copy-button-D7aAYA-2.d.ts} +2 -3
- package/dist/{copy-button-Dejn5heL.js → copy-button-DeK6KXEV.js} +3 -2
- package/dist/{icons-CpfUer49.js → icons-CQJ-aMnI.js} +7 -3
- package/dist/{icons-GQd1xF4e.d.ts → icons-CYXmvKlJ.d.ts} +22 -2
- package/dist/navigation-link-Cob7KBlM.js +19 -0
- package/dist/styles/accordion.css +4 -19
- package/dist/styles/activity.css +48 -56
- package/dist/styles/agent-activity-preview.css +6 -0
- package/dist/styles/agent-chat.css +14 -63
- package/dist/styles/agent-connection.css +0 -12
- package/dist/styles/agent-tool-detail.css +54 -0
- package/dist/styles/alert-dialog.css +16 -18
- package/dist/styles/app-top-bar.css +17 -9
- package/dist/styles/approval.css +177 -0
- package/dist/styles/artifact.css +6 -18
- package/dist/styles/autocomplete.css +2 -1
- package/dist/styles/avatar.css +35 -30
- package/dist/styles/badge.css +10 -10
- package/dist/styles/base-ui-motion.css +94 -39
- package/dist/styles/browser-control-overlay.css +0 -1
- package/dist/styles/browser-live-view.css +39 -22
- package/dist/styles/browser-replay.css +1 -1
- package/dist/styles/browser-run-panel.css +13 -6
- package/dist/styles/button.css +36 -33
- package/dist/styles/card.css +5 -6
- package/dist/styles/chain-of-thought.css +22 -24
- package/dist/styles/checkbox.css +18 -5
- package/dist/styles/checkpoint.css +58 -0
- package/dist/styles/codex-model-selector.css +3 -7
- package/dist/styles/collapsible.css +10 -10
- package/dist/styles/combobox.css +4 -3
- package/dist/styles/commit.css +19 -39
- package/dist/styles/composition-motion.css +83 -0
- package/dist/styles/context-menu.css +3 -11
- package/dist/styles/context.css +11 -10
- package/dist/styles/conversation.css +18 -23
- package/dist/styles/dialog.css +15 -15
- package/dist/styles/environment-variables.css +0 -13
- package/dist/styles/field.css +32 -12
- package/dist/styles/file-tree.css +66 -22
- package/dist/styles/form.css +1 -1
- package/dist/styles/index.css +13 -4
- package/dist/styles/inline-citation.css +107 -0
- package/dist/styles/input.css +2 -2
- package/dist/styles/marker.css +14 -13
- package/dist/styles/mcp-server-picker.css +20 -47
- package/dist/styles/media-preview-card.css +160 -0
- package/dist/styles/menu.css +11 -40
- package/dist/styles/menubar.css +12 -19
- package/dist/styles/message-scroller.css +0 -12
- package/dist/styles/message.css +25 -31
- package/dist/styles/meter.css +2 -2
- package/dist/styles/model-selector.css +16 -34
- package/dist/styles/motion-reduction.css +29 -0
- package/dist/styles/navigation-menu.css +14 -30
- package/dist/styles/number-field.css +22 -4
- package/dist/styles/plan.css +132 -0
- package/dist/styles/popover.css +15 -52
- package/dist/styles/preview-card.css +2 -32
- package/dist/styles/progress.css +8 -3
- package/dist/styles/prompt-input.css +76 -269
- package/dist/styles/queue.css +48 -32
- package/dist/styles/radio.css +19 -12
- package/dist/styles/reasoning.css +2 -1
- package/dist/styles/recipes.css +207 -26
- package/dist/styles/resizable-side-panel.css +4 -10
- package/dist/styles/responsive-sidebar-shell.css +32 -34
- package/dist/styles/scroll-area.css +32 -15
- package/dist/styles/search-field.css +21 -0
- package/dist/styles/select.css +19 -12
- package/dist/styles/slider.css +25 -29
- package/dist/styles/sources.css +3 -11
- package/dist/styles/stepper.css +36 -26
- package/dist/styles/subagent-run.css +13 -71
- package/dist/styles/switch.css +32 -29
- package/dist/styles/tabs.css +79 -23
- package/dist/styles/task.css +11 -23
- package/dist/styles/test-results.css +29 -36
- package/dist/styles/theme-mode-control.css +8 -0
- package/dist/styles/think-execution-workbench.css +18 -15
- package/dist/styles/think-full-app.css +51 -100
- package/dist/styles/think-routine-library.css +51 -40
- package/dist/styles/think-thread-picker.css +207 -50
- package/dist/styles/toast.css +48 -34
- package/dist/styles/toggle-group.css +2 -36
- package/dist/styles/toggle.css +29 -5
- package/dist/styles/toolbar.css +25 -27
- package/dist/styles/tooltip.css +2 -32
- package/dist/styles/transition-surface.css +55 -0
- package/dist/styles/utilities.css +31 -0
- package/dist/styles/web-preview.css +0 -21
- package/dist/styles/workspace-explorer.css +104 -99
- package/dist/summarize-tool-input-CqTcGRYy.js +15 -0
- package/dist/think-agent-Cip5KAPj.d.ts +7 -0
- package/dist/utils/codex-model-catalog.d.ts +4 -4
- package/dist/utils/mcp-server-catalog.d.ts +132 -0
- package/dist/utils/mcp-server-catalog.js +90 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-path-L_KmjRjq.js +26 -0
- package/package.json +14 -9
- package/dist/Workspace-D39LxGvP.d.ts +0 -62
- package/dist/class-names-9UtZwb0J.js +0 -12
- package/dist/components/AppFrame.d.ts +0 -24
- package/dist/components/AppFrame.js +0 -25
- package/dist/components/Shell.d.ts +0 -163
- package/dist/components/Shell.js +0 -137
- package/dist/components/SubagentRun.d.ts +0 -86
- package/dist/components/SubagentRun.js +0 -108
- package/dist/styles/app-frame.css +0 -15
- package/dist/styles/shell.css +0 -122
- package/dist/summarize-tool-input-BUJsENSn.js +0 -12
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-BiMDVpUo.js";
|
|
1
2
|
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
|
|
@@ -37,8 +38,8 @@ import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-me
|
|
|
37
38
|
*
|
|
38
39
|
* @see {@link https://base-ui.com/react/components/navigation-menu | Base UI NavigationMenu}
|
|
39
40
|
*/
|
|
40
|
-
function Root({ className
|
|
41
|
-
const classes = ["navigation-menu"
|
|
41
|
+
function Root({ className, ref, ...props }) {
|
|
42
|
+
const classes = mergeBaseClassName(["navigation-menu"].filter(Boolean).join(" "), className);
|
|
42
43
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Root, {
|
|
43
44
|
ref,
|
|
44
45
|
render: /* @__PURE__ */ jsx("nav", {}),
|
|
@@ -47,8 +48,8 @@ function Root({ className = "", ref, ...props }) {
|
|
|
47
48
|
...props
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
|
-
function NavigationMenuList({ className
|
|
51
|
-
const classes = ["navigation-menu__list"
|
|
51
|
+
function NavigationMenuList({ className, ref, ...props }) {
|
|
52
|
+
const classes = mergeBaseClassName(["navigation-menu__list"].filter(Boolean).join(" "), className);
|
|
52
53
|
return /* @__PURE__ */ jsx(NavigationMenu$1.List, {
|
|
53
54
|
ref,
|
|
54
55
|
"data-slot": "navigation-menu-list",
|
|
@@ -57,8 +58,8 @@ function NavigationMenuList({ className = "", ref, ...props }) {
|
|
|
57
58
|
...props
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
|
-
function NavigationMenuItem({ className
|
|
61
|
-
const classes = ["navigation-menu__item"
|
|
61
|
+
function NavigationMenuItem({ className, ref, ...props }) {
|
|
62
|
+
const classes = mergeBaseClassName(["navigation-menu__item"].filter(Boolean).join(" "), className);
|
|
62
63
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Item, {
|
|
63
64
|
ref,
|
|
64
65
|
"data-slot": "navigation-menu-item",
|
|
@@ -66,8 +67,8 @@ function NavigationMenuItem({ className = "", ref, ...props }) {
|
|
|
66
67
|
...props
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
|
-
function NavigationMenuTrigger({ className
|
|
70
|
-
const classes = ["navigation-menu__trigger"
|
|
70
|
+
function NavigationMenuTrigger({ className, ref, ...props }) {
|
|
71
|
+
const classes = mergeBaseClassName(["navigation-menu__trigger"].filter(Boolean).join(" "), className);
|
|
71
72
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Trigger, {
|
|
72
73
|
ref,
|
|
73
74
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -75,8 +76,8 @@ function NavigationMenuTrigger({ className = "", ref, ...props }) {
|
|
|
75
76
|
...props
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
function NavigationMenuIcon({ className
|
|
79
|
-
const classes = ["navigation-menu__icon"
|
|
79
|
+
function NavigationMenuIcon({ className, ref, ...props }) {
|
|
80
|
+
const classes = mergeBaseClassName(["navigation-menu__icon"].filter(Boolean).join(" "), className);
|
|
80
81
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Icon, {
|
|
81
82
|
ref,
|
|
82
83
|
"data-slot": "navigation-menu-icon",
|
|
@@ -84,8 +85,8 @@ function NavigationMenuIcon({ className = "", ref, ...props }) {
|
|
|
84
85
|
...props
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
function NavigationMenuContent({ className
|
|
88
|
-
const classes = ["navigation-menu__content"
|
|
88
|
+
function NavigationMenuContent({ className, ref, ...props }) {
|
|
89
|
+
const classes = mergeBaseClassName(["navigation-menu__content"].filter(Boolean).join(" "), className);
|
|
89
90
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Content, {
|
|
90
91
|
ref,
|
|
91
92
|
"data-slot": "navigation-menu-content",
|
|
@@ -93,8 +94,8 @@ function NavigationMenuContent({ className = "", ref, ...props }) {
|
|
|
93
94
|
...props
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
|
-
function NavigationMenuLink({ className
|
|
97
|
-
const classes = ["navigation-menu__link"
|
|
97
|
+
function NavigationMenuLink({ className, ref, ...props }) {
|
|
98
|
+
const classes = mergeBaseClassName(["navigation-menu__link"].filter(Boolean).join(" "), className);
|
|
98
99
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Link, {
|
|
99
100
|
ref,
|
|
100
101
|
"data-slot": "navigation-menu-link",
|
|
@@ -108,12 +109,8 @@ function NavigationMenuPortal(props) {
|
|
|
108
109
|
...props
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
|
-
function NavigationMenuPositioner({ className
|
|
112
|
-
const classes = [
|
|
113
|
-
"navigation-menu__positioner",
|
|
114
|
-
"base-ui-positioner",
|
|
115
|
-
className
|
|
116
|
-
].filter(Boolean).join(" ");
|
|
112
|
+
function NavigationMenuPositioner({ className, ref, ...props }) {
|
|
113
|
+
const classes = mergeBaseClassName(["navigation-menu__positioner", "base-ui-positioner"].filter(Boolean).join(" "), className);
|
|
117
114
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Positioner, {
|
|
118
115
|
ref,
|
|
119
116
|
"data-slot": "navigation-menu-positioner",
|
|
@@ -121,12 +118,8 @@ function NavigationMenuPositioner({ className = "", ref, ...props }) {
|
|
|
121
118
|
...props
|
|
122
119
|
});
|
|
123
120
|
}
|
|
124
|
-
function NavigationMenuPopup({ className
|
|
125
|
-
const classes = [
|
|
126
|
-
"navigation-menu__popup",
|
|
127
|
-
"base-ui-popup",
|
|
128
|
-
className
|
|
129
|
-
].filter(Boolean).join(" ");
|
|
121
|
+
function NavigationMenuPopup({ className, ref, ...props }) {
|
|
122
|
+
const classes = mergeBaseClassName(["navigation-menu__popup", "base-ui-popup"].filter(Boolean).join(" "), className);
|
|
130
123
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Popup, {
|
|
131
124
|
ref,
|
|
132
125
|
"data-slot": "navigation-menu-popup",
|
|
@@ -134,8 +127,8 @@ function NavigationMenuPopup({ className = "", ref, ...props }) {
|
|
|
134
127
|
...props
|
|
135
128
|
});
|
|
136
129
|
}
|
|
137
|
-
function NavigationMenuViewport({ className
|
|
138
|
-
const classes = ["navigation-menu__viewport"
|
|
130
|
+
function NavigationMenuViewport({ className, ref, ...props }) {
|
|
131
|
+
const classes = mergeBaseClassName(["navigation-menu__viewport"].filter(Boolean).join(" "), className);
|
|
139
132
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Viewport, {
|
|
140
133
|
ref,
|
|
141
134
|
"data-slot": "navigation-menu-viewport",
|
|
@@ -143,8 +136,8 @@ function NavigationMenuViewport({ className = "", ref, ...props }) {
|
|
|
143
136
|
...props
|
|
144
137
|
});
|
|
145
138
|
}
|
|
146
|
-
function NavigationMenuArrow({ className
|
|
147
|
-
const classes = ["navigation-menu__arrow"
|
|
139
|
+
function NavigationMenuArrow({ className, ref, ...props }) {
|
|
140
|
+
const classes = mergeBaseClassName(["navigation-menu__arrow"].filter(Boolean).join(" "), className);
|
|
148
141
|
return /* @__PURE__ */ jsx(NavigationMenu$1.Arrow, {
|
|
149
142
|
ref,
|
|
150
143
|
"data-slot": "navigation-menu-arrow",
|
|
@@ -5,45 +5,27 @@ import { NumberField as NumberField$1 } from "@base-ui/react/number-field";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for the NumberField.Root component.
|
|
7
7
|
*/
|
|
8
|
-
interface NumberFieldRootProps extends
|
|
9
|
-
/** Additional CSS class names */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
8
|
+
interface NumberFieldRootProps extends React.ComponentPropsWithoutRef<typeof NumberField$1.Root> {}
|
|
12
9
|
/**
|
|
13
10
|
* Props for the NumberField.Group component.
|
|
14
11
|
*/
|
|
15
|
-
interface NumberFieldGroupProps extends
|
|
16
|
-
/** Additional CSS class names */
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
12
|
+
interface NumberFieldGroupProps extends React.ComponentPropsWithoutRef<typeof NumberField$1.Group> {}
|
|
19
13
|
/**
|
|
20
14
|
* Props for the NumberField.Input component.
|
|
21
15
|
*/
|
|
22
|
-
interface NumberFieldInputProps extends
|
|
23
|
-
/** Additional CSS class names */
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
16
|
+
interface NumberFieldInputProps extends React.ComponentPropsWithoutRef<typeof NumberField$1.Input> {}
|
|
26
17
|
/**
|
|
27
18
|
* Props for the NumberField.Increment component.
|
|
28
19
|
*/
|
|
29
|
-
interface NumberFieldIncrementProps extends
|
|
30
|
-
/** Additional CSS class names */
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
20
|
+
interface NumberFieldIncrementProps extends React.ComponentPropsWithoutRef<typeof NumberField$1.Increment> {}
|
|
33
21
|
/**
|
|
34
22
|
* Props for the NumberField.Decrement component.
|
|
35
23
|
*/
|
|
36
|
-
interface NumberFieldDecrementProps extends
|
|
37
|
-
/** Additional CSS class names */
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
24
|
+
interface NumberFieldDecrementProps extends React.ComponentPropsWithoutRef<typeof NumberField$1.Decrement> {}
|
|
40
25
|
/**
|
|
41
26
|
* Props for the NumberField.ScrubArea component.
|
|
42
27
|
*/
|
|
43
|
-
interface NumberFieldScrubAreaProps extends
|
|
44
|
-
/** Additional CSS class names */
|
|
45
|
-
className?: string;
|
|
46
|
-
}
|
|
28
|
+
interface NumberFieldScrubAreaProps extends React.ComponentPropsWithoutRef<typeof NumberField$1.ScrubArea> {}
|
|
47
29
|
/**
|
|
48
30
|
* Container that groups all parts and manages state. Renders a `<div>` element.
|
|
49
31
|
*
|
|
@@ -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 { NumberField as NumberField$1 } from "@base-ui/react/number-field";
|
|
@@ -18,8 +19,8 @@ import { NumberField as NumberField$1 } from "@base-ui/react/number-field";
|
|
|
18
19
|
*
|
|
19
20
|
* @see {@link https://base-ui.com/react/components/number-field | Base UI NumberField}
|
|
20
21
|
*/
|
|
21
|
-
function NumberFieldRoot({ className
|
|
22
|
-
const classes = ["number-field"
|
|
22
|
+
function NumberFieldRoot({ className, ref, ...props }) {
|
|
23
|
+
const classes = mergeBaseClassName(["number-field"].filter(Boolean).join(" "), className);
|
|
23
24
|
return /* @__PURE__ */ jsx(NumberField$1.Root, {
|
|
24
25
|
ref,
|
|
25
26
|
"data-slot": "number-field",
|
|
@@ -30,8 +31,8 @@ function NumberFieldRoot({ className = "", ref, ...props }) {
|
|
|
30
31
|
/**
|
|
31
32
|
* Groups the input with increment and decrement buttons.
|
|
32
33
|
*/
|
|
33
|
-
function NumberFieldGroup({ className
|
|
34
|
-
const classes = ["number-field__group"
|
|
34
|
+
function NumberFieldGroup({ className, ref, ...props }) {
|
|
35
|
+
const classes = mergeBaseClassName(["number-field__group"].filter(Boolean).join(" "), className);
|
|
35
36
|
return /* @__PURE__ */ jsx(NumberField$1.Group, {
|
|
36
37
|
ref,
|
|
37
38
|
"data-slot": "number-field-group",
|
|
@@ -42,8 +43,8 @@ function NumberFieldGroup({ className = "", ref, ...props }) {
|
|
|
42
43
|
/**
|
|
43
44
|
* The native input control for the number field.
|
|
44
45
|
*/
|
|
45
|
-
function NumberFieldInput({ className
|
|
46
|
-
const classes = ["number-field__input"
|
|
46
|
+
function NumberFieldInput({ className, ref, ...props }) {
|
|
47
|
+
const classes = mergeBaseClassName(["number-field__input"].filter(Boolean).join(" "), className);
|
|
47
48
|
return /* @__PURE__ */ jsx(NumberField$1.Input, {
|
|
48
49
|
ref,
|
|
49
50
|
"data-slot": "number-field-input",
|
|
@@ -54,8 +55,8 @@ function NumberFieldInput({ className = "", ref, ...props }) {
|
|
|
54
55
|
/**
|
|
55
56
|
* Button that increases the value.
|
|
56
57
|
*/
|
|
57
|
-
function NumberFieldIncrement({ className
|
|
58
|
-
const classes = ["number-field__increment"
|
|
58
|
+
function NumberFieldIncrement({ className, ref, ...props }) {
|
|
59
|
+
const classes = mergeBaseClassName(["number-field__increment"].filter(Boolean).join(" "), className);
|
|
59
60
|
return /* @__PURE__ */ jsx(NumberField$1.Increment, {
|
|
60
61
|
ref,
|
|
61
62
|
"data-slot": "number-field-increment",
|
|
@@ -66,8 +67,8 @@ function NumberFieldIncrement({ className = "", ref, ...props }) {
|
|
|
66
67
|
/**
|
|
67
68
|
* Button that decreases the value.
|
|
68
69
|
*/
|
|
69
|
-
function NumberFieldDecrement({ className
|
|
70
|
-
const classes = ["number-field__decrement"
|
|
70
|
+
function NumberFieldDecrement({ className, ref, ...props }) {
|
|
71
|
+
const classes = mergeBaseClassName(["number-field__decrement"].filter(Boolean).join(" "), className);
|
|
71
72
|
return /* @__PURE__ */ jsx(NumberField$1.Decrement, {
|
|
72
73
|
ref,
|
|
73
74
|
"data-slot": "number-field-decrement",
|
|
@@ -78,8 +79,8 @@ function NumberFieldDecrement({ className = "", ref, ...props }) {
|
|
|
78
79
|
/**
|
|
79
80
|
* Interactive area for click-and-drag value changes.
|
|
80
81
|
*/
|
|
81
|
-
function NumberFieldScrubArea({ className
|
|
82
|
-
const classes = ["number-field__scrub-area"
|
|
82
|
+
function NumberFieldScrubArea({ className, ref, ...props }) {
|
|
83
|
+
const classes = mergeBaseClassName(["number-field__scrub-area"].filter(Boolean).join(" "), className);
|
|
83
84
|
return /* @__PURE__ */ jsx(NumberField$1.ScrubArea, {
|
|
84
85
|
ref,
|
|
85
86
|
"data-slot": "number-field-scrub-area",
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ChainOfThoughtStepStatus } from "./ChainOfThought.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Plan.d.ts
|
|
5
|
+
/** Presentation state shared with the existing reasoning-step primitive. */
|
|
6
|
+
type PlanStepStatus = ChainOfThoughtStepStatus;
|
|
7
|
+
interface PlanProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/** Plan header and ordered steps composed from application-owned plan data. */
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Presentation-only container for an application-owned plan.
|
|
13
|
+
*
|
|
14
|
+
* Think, Agents, and the AI SDK do not export a generic plan model. Map a
|
|
15
|
+
* concrete app or tool result directly into this compositional anatomy.
|
|
16
|
+
*/
|
|
17
|
+
declare function Plan({
|
|
18
|
+
className,
|
|
19
|
+
ref,
|
|
20
|
+
...props
|
|
21
|
+
}: PlanProps & {
|
|
22
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
23
|
+
}): React.JSX.Element;
|
|
24
|
+
interface PlanHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
25
|
+
declare function PlanHeader({
|
|
26
|
+
className,
|
|
27
|
+
ref,
|
|
28
|
+
...props
|
|
29
|
+
}: PlanHeaderProps & {
|
|
30
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
interface PlanTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
33
|
+
/** Choose the level that fits the surrounding document outline. */
|
|
34
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
35
|
+
}
|
|
36
|
+
declare function PlanTitle({
|
|
37
|
+
className,
|
|
38
|
+
headingLevel,
|
|
39
|
+
ref,
|
|
40
|
+
...props
|
|
41
|
+
}: PlanTitleProps & {
|
|
42
|
+
ref?: React.Ref<HTMLHeadingElement>;
|
|
43
|
+
}): React.JSX.Element;
|
|
44
|
+
interface PlanDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {}
|
|
45
|
+
declare function PlanDescription({
|
|
46
|
+
className,
|
|
47
|
+
ref,
|
|
48
|
+
...props
|
|
49
|
+
}: PlanDescriptionProps & {
|
|
50
|
+
ref?: React.Ref<HTMLParagraphElement>;
|
|
51
|
+
}): React.JSX.Element;
|
|
52
|
+
interface PlanContentProps extends React.OlHTMLAttributes<HTMLOListElement> {}
|
|
53
|
+
/** Ordered sequence of PlanStep children. */
|
|
54
|
+
declare function PlanContent({
|
|
55
|
+
className,
|
|
56
|
+
ref,
|
|
57
|
+
...props
|
|
58
|
+
}: PlanContentProps & {
|
|
59
|
+
ref?: React.Ref<HTMLOListElement>;
|
|
60
|
+
}): React.JSX.Element;
|
|
61
|
+
interface PlanStepProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
62
|
+
/** Visual presentation state; this is not a Think or AI SDK execution status. */
|
|
63
|
+
status?: PlanStepStatus;
|
|
64
|
+
}
|
|
65
|
+
declare function PlanStep({
|
|
66
|
+
className,
|
|
67
|
+
status,
|
|
68
|
+
ref,
|
|
69
|
+
...props
|
|
70
|
+
}: PlanStepProps & {
|
|
71
|
+
ref?: React.Ref<HTMLLIElement>;
|
|
72
|
+
}): React.JSX.Element;
|
|
73
|
+
interface PlanStepIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
74
|
+
/** Accessible label for the visual state indicator. */
|
|
75
|
+
label?: string;
|
|
76
|
+
}
|
|
77
|
+
declare function PlanStepIndicator({
|
|
78
|
+
children,
|
|
79
|
+
className,
|
|
80
|
+
label,
|
|
81
|
+
ref,
|
|
82
|
+
...props
|
|
83
|
+
}: PlanStepIndicatorProps & {
|
|
84
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
85
|
+
}): React.JSX.Element;
|
|
86
|
+
interface PlanStepTitleProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
87
|
+
declare function PlanStepTitle({
|
|
88
|
+
className,
|
|
89
|
+
ref,
|
|
90
|
+
...props
|
|
91
|
+
}: PlanStepTitleProps & {
|
|
92
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
93
|
+
}): React.JSX.Element;
|
|
94
|
+
interface PlanStepDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {}
|
|
95
|
+
declare function PlanStepDescription({
|
|
96
|
+
className,
|
|
97
|
+
ref,
|
|
98
|
+
...props
|
|
99
|
+
}: PlanStepDescriptionProps & {
|
|
100
|
+
ref?: React.Ref<HTMLParagraphElement>;
|
|
101
|
+
}): React.JSX.Element;
|
|
102
|
+
//#endregion
|
|
103
|
+
export { Plan, PlanContent, PlanContentProps, PlanDescription, PlanDescriptionProps, PlanHeader, PlanHeaderProps, PlanProps, PlanStep, PlanStepDescription, PlanStepDescriptionProps, PlanStepIndicator, PlanStepIndicatorProps, PlanStepProps, PlanStepStatus, PlanStepTitle, PlanStepTitleProps, PlanTitle, PlanTitleProps };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { t as cx } from "../class-names-BiMDVpUo.js";
|
|
2
|
+
import { g as DotIcon, i as ArrowRightIcon, l as CheckIcon } from "../icons-CQJ-aMnI.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Plan.tsx
|
|
6
|
+
const PlanStepContext = React.createContext("pending");
|
|
7
|
+
/**
|
|
8
|
+
* Presentation-only container for an application-owned plan.
|
|
9
|
+
*
|
|
10
|
+
* Think, Agents, and the AI SDK do not export a generic plan model. Map a
|
|
11
|
+
* concrete app or tool result directly into this compositional anatomy.
|
|
12
|
+
*/
|
|
13
|
+
function Plan({ className, ref, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
ref,
|
|
16
|
+
"data-slot": "plan",
|
|
17
|
+
"data-recipe": "framed-panel",
|
|
18
|
+
className: cx("plan", className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function PlanHeader({ className, ref, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24
|
+
ref,
|
|
25
|
+
"data-slot": "plan-header",
|
|
26
|
+
className: cx("plan__header", className),
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function PlanTitle({ className, headingLevel = 3, ref, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ jsx(`h${headingLevel}`, {
|
|
32
|
+
ref,
|
|
33
|
+
"data-slot": "plan-title",
|
|
34
|
+
className: cx("plan__title", className),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function PlanDescription({ className, ref, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx("p", {
|
|
40
|
+
ref,
|
|
41
|
+
"data-slot": "plan-description",
|
|
42
|
+
className: cx("plan__description", className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/** Ordered sequence of PlanStep children. */
|
|
47
|
+
function PlanContent({ className, ref, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
49
|
+
ref,
|
|
50
|
+
"data-slot": "plan-content",
|
|
51
|
+
className: cx("plan__content", className),
|
|
52
|
+
role: "list",
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function PlanStep({ className, status = "pending", ref, ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx(PlanStepContext.Provider, {
|
|
58
|
+
value: status,
|
|
59
|
+
children: /* @__PURE__ */ jsx("li", {
|
|
60
|
+
ref,
|
|
61
|
+
"data-slot": "plan-step",
|
|
62
|
+
"data-status": status,
|
|
63
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
64
|
+
className: cx("plan__step", className),
|
|
65
|
+
...props
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const STATUS_LABELS = {
|
|
70
|
+
active: "Current step",
|
|
71
|
+
complete: "Completed step",
|
|
72
|
+
pending: "Pending step"
|
|
73
|
+
};
|
|
74
|
+
function defaultStepIcon(status) {
|
|
75
|
+
if (status === "complete") return /* @__PURE__ */ jsx(CheckIcon, {});
|
|
76
|
+
if (status === "active") return /* @__PURE__ */ jsx(ArrowRightIcon, {});
|
|
77
|
+
return /* @__PURE__ */ jsx(DotIcon, {});
|
|
78
|
+
}
|
|
79
|
+
function PlanStepIndicator({ children, className, label, ref, ...props }) {
|
|
80
|
+
const status = React.useContext(PlanStepContext);
|
|
81
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
82
|
+
ref,
|
|
83
|
+
"data-slot": "plan-step-indicator",
|
|
84
|
+
className: cx("plan__step-indicator", className),
|
|
85
|
+
...props,
|
|
86
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
87
|
+
className: "plan__step-indicator-visual",
|
|
88
|
+
"aria-hidden": "true",
|
|
89
|
+
children: children ?? defaultStepIcon(status)
|
|
90
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
91
|
+
className: "sigvelo-visually-hidden",
|
|
92
|
+
children: label ?? STATUS_LABELS[status]
|
|
93
|
+
})]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function PlanStepTitle({ className, ref, ...props }) {
|
|
97
|
+
return /* @__PURE__ */ jsx("div", {
|
|
98
|
+
ref,
|
|
99
|
+
"data-slot": "plan-step-title",
|
|
100
|
+
className: cx("plan__step-title", className),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function PlanStepDescription({ className, ref, ...props }) {
|
|
105
|
+
return /* @__PURE__ */ jsx("p", {
|
|
106
|
+
ref,
|
|
107
|
+
"data-slot": "plan-step-description",
|
|
108
|
+
className: cx("plan__step-description", className),
|
|
109
|
+
...props
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
export { Plan, PlanContent, PlanDescription, PlanHeader, PlanStep, PlanStepDescription, PlanStepIndicator, PlanStepTitle, PlanTitle };
|
|
@@ -9,10 +9,7 @@ interface PopoverProps extends React.ComponentPropsWithoutRef<typeof Popover$1.R
|
|
|
9
9
|
/**
|
|
10
10
|
* Props for the Popover.Trigger component.
|
|
11
11
|
*/
|
|
12
|
-
interface PopoverTriggerProps extends
|
|
13
|
-
/** Additional CSS class names */
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
12
|
+
interface PopoverTriggerProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Trigger> {}
|
|
16
13
|
interface PopoverAnchorProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
17
14
|
/**
|
|
18
15
|
* Props for the Popover.Portal component.
|
|
@@ -21,60 +18,36 @@ interface PopoverPortalProps extends React.ComponentPropsWithoutRef<typeof Popov
|
|
|
21
18
|
/**
|
|
22
19
|
* Props for the Popover.Backdrop component.
|
|
23
20
|
*/
|
|
24
|
-
interface PopoverBackdropProps extends
|
|
25
|
-
/** Additional CSS class names */
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
21
|
+
interface PopoverBackdropProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Backdrop> {}
|
|
28
22
|
/**
|
|
29
23
|
* Props for the Popover.Positioner component.
|
|
30
24
|
*/
|
|
31
|
-
interface PopoverPositionerProps extends
|
|
32
|
-
/** Additional CSS class names */
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
25
|
+
interface PopoverPositionerProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Positioner> {}
|
|
35
26
|
/**
|
|
36
27
|
* Props for the Popover.Popup component.
|
|
37
28
|
*/
|
|
38
|
-
interface PopoverPopupProps extends
|
|
39
|
-
/** Additional CSS class names */
|
|
40
|
-
className?: string;
|
|
41
|
-
}
|
|
29
|
+
interface PopoverPopupProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Popup> {}
|
|
42
30
|
/**
|
|
43
31
|
* Props for the Popover.Viewport component. Use this only when one popover
|
|
44
32
|
* moves between triggers and its content changes during that transition.
|
|
45
33
|
*/
|
|
46
|
-
interface PopoverViewportProps extends
|
|
47
|
-
/** Additional CSS class names */
|
|
48
|
-
className?: string;
|
|
49
|
-
}
|
|
34
|
+
interface PopoverViewportProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Viewport> {}
|
|
50
35
|
/**
|
|
51
36
|
* Props for the Popover.Arrow component.
|
|
52
37
|
*/
|
|
53
|
-
interface PopoverArrowProps extends
|
|
54
|
-
/** Additional CSS class names */
|
|
55
|
-
className?: string;
|
|
56
|
-
}
|
|
38
|
+
interface PopoverArrowProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Arrow> {}
|
|
57
39
|
/**
|
|
58
40
|
* Props for the Popover.Title component.
|
|
59
41
|
*/
|
|
60
|
-
interface PopoverTitleProps extends
|
|
61
|
-
/** Additional CSS class names */
|
|
62
|
-
className?: string;
|
|
63
|
-
}
|
|
42
|
+
interface PopoverTitleProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Title> {}
|
|
64
43
|
/**
|
|
65
44
|
* Props for the Popover.Description component.
|
|
66
45
|
*/
|
|
67
|
-
interface PopoverDescriptionProps extends
|
|
68
|
-
/** Additional CSS class names */
|
|
69
|
-
className?: string;
|
|
70
|
-
}
|
|
46
|
+
interface PopoverDescriptionProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Description> {}
|
|
71
47
|
/**
|
|
72
48
|
* Props for the Popover.Close component.
|
|
73
49
|
*/
|
|
74
|
-
interface PopoverCloseProps extends
|
|
75
|
-
/** Additional CSS class names */
|
|
76
|
-
className?: string;
|
|
77
|
-
}
|
|
50
|
+
interface PopoverCloseProps extends React.ComponentPropsWithoutRef<typeof Popover$1.Close> {}
|
|
78
51
|
interface PopoverHeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
79
52
|
declare function PopoverAnchor({
|
|
80
53
|
className,
|