@mcp-b/react-components 0.16.0 → 0.17.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/{AgentChat-CrlpbvQJ.d.ts → AgentChat-CRuMi1Pb.d.ts} +4 -10
- package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
- package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
- package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Co1noLbC.js} +2 -2
- package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-Dnpr88ZQ.d.ts} +2 -2
- 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-B7bBsUyU.js} +7 -7
- package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
- package/dist/{Message-BkMdE3bS.js → Message-C4eYRogZ.js} +3 -3
- package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-BNrZlY_Y.js} +5 -5
- package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-OLfXPuHM.d.ts} +39 -67
- package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
- package/dist/{Select-BeEsefzh.d.ts → Select-CwSqP07Y.d.ts} +14 -42
- package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-9zddXDQo.d.ts} +5 -19
- package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-DInElus-.js} +53 -26
- package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-BgesTfZ4.d.ts} +12 -4
- 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-DaXpe1Lc.d.ts} +1 -1
- package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-yseEWkOC.d.ts} +3 -4
- package/dist/{Workspace-D39LxGvP.d.ts → Workspace-C9RFoxcu.d.ts} +1 -1
- package/dist/WorkspaceExplorer-sZewzT2O.d.ts +32 -0
- package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-C8UzuSH4.d.ts} +1 -1
- package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-DNdGAEiX.js} +5 -5
- package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-B1ykV1dS.js} +15 -29
- package/dist/class-names-Bk-QLWWI.js +11 -0
- package/dist/components/Accordion.d.ts +5 -15
- package/dist/components/Accordion.js +11 -10
- package/dist/components/Activity.d.ts +5 -10
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.js +1 -1
- package/dist/components/AgentActivityPreview.js +2 -2
- package/dist/components/AgentAttention.d.ts +1 -1
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +27 -164
- package/dist/components/AgentChatMessageEditor.js +1 -1
- 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 +55 -0
- package/dist/components/AgentToolDetail.js +98 -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 +4 -1
- package/dist/components/AppTopBar.js +5 -5
- package/dist/components/Approval.d.ts +102 -0
- package/dist/components/Approval.js +227 -0
- package/dist/components/Artifact.d.ts +2 -4
- package/dist/components/Artifact.js +3 -3
- package/dist/components/Autocomplete.d.ts +11 -33
- package/dist/components/Autocomplete.js +23 -30
- package/dist/components/Avatar.d.ts +3 -11
- package/dist/components/Avatar.js +13 -12
- package/dist/components/BrowserLiveView.js +2 -2
- package/dist/components/BrowserReplay.js +2 -2
- package/dist/components/BrowserRunPanel.js +58 -78
- package/dist/components/Button.js +4 -9
- package/dist/components/ChainOfThought.d.ts +5 -11
- package/dist/components/ChainOfThought.js +3 -2
- package/dist/components/ChatGptSignInScreen.js +3 -3
- 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 +2 -4
- package/dist/components/Conversation.js +2 -2
- 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 +16 -16
- package/dist/components/Fieldset.d.ts +2 -7
- package/dist/components/Fieldset.js +7 -6
- 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/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/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 +3 -6
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +3 -3
- package/dist/components/Meter.d.ts +5 -20
- package/dist/components/Meter.js +11 -10
- package/dist/components/ModelSelector.d.ts +2 -6
- 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/PricingPlanCard.js +3 -3
- package/dist/components/PricingUsageCalculator.js +2 -2
- 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 +52 -200
- package/dist/components/Queue.d.ts +6 -16
- package/dist/components/Queue.js +2 -2
- 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 -3
- package/dist/components/ResizableSidePanel.js +2 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/ResponsiveSidebarShell.js +4 -3
- package/dist/components/ScrollArea.d.ts +5 -20
- package/dist/components/ScrollArea.js +11 -10
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +32 -55
- 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 +2 -2
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.js +1 -2
- package/dist/components/SubagentRunSelector.d.ts +2 -11
- package/dist/components/SubagentRunSelector.js +16 -15
- package/dist/components/Switch.d.ts +2 -5
- package/dist/components/Switch.js +5 -8
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +10 -16
- package/dist/components/Task.d.ts +4 -9
- package/dist/components/Task.js +4 -3
- package/dist/components/Terminal.d.ts +2 -3
- package/dist/components/Terminal.js +3 -3
- package/dist/components/TestResults.d.ts +4 -9
- package/dist/components/TestResults.js +3 -2
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +21 -11
- package/dist/components/ThinkChat.js +5 -3
- package/dist/components/ThinkChatActivity.d.ts +1 -1
- package/dist/components/ThinkChatActivity.js +26 -7
- package/dist/components/ThinkChatContext.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +2 -2
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.js +2 -2
- package/dist/components/ThinkFullApp.d.ts +33 -9
- package/dist/components/ThinkFullApp.js +118 -64
- 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 +40 -0
- package/dist/components/ThinkRoutine.js +1 -0
- package/dist/components/ThinkRoutineBrowser.js +6 -6
- package/dist/components/ThinkRoutineDetail.js +1 -1
- package/dist/components/ThinkRoutineForm.js +2 -2
- package/dist/components/ThinkRoutineLibrary.d.ts +9 -0
- package/dist/components/ThinkRoutineLibrary.js +67 -20
- package/dist/components/ThinkRoutineRuns.js +1 -1
- package/dist/components/ThinkThreadPicker.js +2 -2
- 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 +5 -5
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +8 -15
- 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 +3 -9
- package/dist/components/Tooltip.js +7 -10
- package/dist/components/WebPreview.d.ts +1 -2
- package/dist/components/WebPreview.js +4 -3
- package/dist/components/Workspace.d.ts +1 -1
- package/dist/components/Workspace.js +5 -20
- package/dist/components/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/WorkspaceBrowser.js +3 -3
- package/dist/components/WorkspaceExplorer.d.ts +3 -31
- package/dist/components/WorkspaceExplorer.js +3 -3
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +1 -1
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.js +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-CQx3LQAC.d.ts} +1 -2
- package/dist/{copy-button-Dejn5heL.js → copy-button-cYsJBauI.js} +1 -1
- package/dist/{icons-CpfUer49.js → icons--FqCZEc3.js} +3 -2
- package/dist/{icons-GQd1xF4e.d.ts → icons-DpUqY8Mp.d.ts} +6 -1
- package/dist/styles/agent-activity-preview.css +13 -11
- package/dist/styles/agent-attention.css +19 -13
- package/dist/styles/agent-chat.css +0 -41
- package/dist/styles/agent-connection.css +9 -21
- package/dist/styles/agent-tool-detail.css +54 -0
- package/dist/styles/alert-dialog.css +11 -11
- package/dist/styles/app-top-bar.css +9 -7
- package/dist/styles/approval.css +172 -0
- package/dist/styles/artifact.css +0 -12
- package/dist/styles/browser-run-panel.css +5 -2
- package/dist/styles/card.css +8 -8
- package/dist/styles/chain-of-thought.css +5 -13
- package/dist/styles/checkpoint.css +58 -0
- package/dist/styles/codex-model-selector.css +3 -3
- package/dist/styles/combobox.css +3 -2
- package/dist/styles/commit.css +0 -21
- package/dist/styles/context-menu.css +1 -9
- package/dist/styles/dialog.css +11 -11
- package/dist/styles/environment-variables.css +0 -13
- package/dist/styles/field.css +14 -14
- package/dist/styles/fieldset.css +5 -5
- package/dist/styles/file-tree.css +0 -16
- package/dist/styles/index.css +8 -4
- package/dist/styles/inline-citation.css +107 -0
- package/dist/styles/mcp-connection-request.css +3 -3
- package/dist/styles/mcp-server-picker.css +1 -30
- package/dist/styles/menu.css +1 -30
- package/dist/styles/menubar.css +0 -8
- package/dist/styles/message-scroller.css +0 -12
- package/dist/styles/message.css +0 -12
- package/dist/styles/model-selector.css +18 -32
- package/dist/styles/plan.css +127 -0
- package/dist/styles/popover.css +7 -43
- package/dist/styles/preview-card.css +1 -1
- package/dist/styles/prompt-input.css +2 -195
- package/dist/styles/recipes.css +139 -12
- package/dist/styles/responsive-sidebar-shell.css +16 -19
- package/dist/styles/select.css +3 -3
- package/dist/styles/sources.css +6 -14
- package/dist/styles/subagent-run.css +12 -70
- package/dist/styles/task.css +17 -26
- package/dist/styles/test-results.css +17 -23
- package/dist/styles/textarea.css +1 -1
- package/dist/styles/think-execution-workbench.css +9 -9
- package/dist/styles/think-full-app.css +49 -33
- package/dist/styles/think-routine-library.css +30 -38
- package/dist/styles/think-thread-picker.css +15 -0
- package/dist/styles/toast.css +4 -11
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/utilities.css +31 -0
- package/dist/styles/web-preview.css +0 -21
- package/dist/styles/workspace-explorer.css +20 -65
- package/dist/think-agent-Cip5KAPj.d.ts +7 -0
- package/dist/utils/codex-model-catalog.d.ts +4 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-path-L_KmjRjq.js +26 -0
- package/package.json +3 -4
- 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
|
@@ -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-Bk-QLWWI.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-Bk-QLWWI.js";
|
|
2
|
+
import { m as DotIcon, r as ArrowRightIcon, s as CheckIcon } from "../icons--FqCZEc3.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,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as mergeBaseClassName } from "../class-names-Bk-QLWWI.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
|
*/
|