@mcp-b/react-components 0.40.0 → 0.41.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-CVO7xyLC.d.ts → AgentChat-DVr2giwD.d.ts} +1 -1
- package/dist/{AgentToolRunsContext-BCVqCtJ1.d.ts → AgentToolRunsContext-daY67hFM.d.ts} +12 -0
- package/dist/AppTopBar-ZdgmB_Lu.d.ts +97 -0
- package/dist/{CodeBlock-CWk1FVtm.js → CodeBlock-BjELA-_s.js} +1 -1
- package/dist/{FileTree-xqHYBw4g.js → FileTree-DMYRdT6R.js} +1 -1
- package/dist/McpConnectorForm-MRm1r59e.d.ts +39 -0
- package/dist/{Message-DBsHHhcM.d.ts → Message-D_vCVEGB.d.ts} +20 -1
- package/dist/{ThinkChatActivity-D6-_5Phw.d.ts → ThinkChatActivity-DyGHj01E.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-lYYgyeE1.d.ts → ThinkExecutionRun-k8bpyXqt.d.ts} +3 -3
- package/dist/{ToggleGroup-_pQMyHGM.d.ts → ToggleGroup-BrQZOQn_.d.ts} +1 -1
- package/dist/Toolbar-CBOseBQr.d.ts +152 -0
- package/dist/{WorkspaceFileView-Lab3om3F.js → WorkspaceFileView-D0yFwoDr.js} +2 -2
- package/dist/{WorkspaceMessageResponse-Cy28WGSz.d.ts → WorkspaceMessageResponse-D66ty4FO.d.ts} +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +41 -18
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +1 -1
- package/dist/components/agents-sdk/AgentToolRunsContext.js +12 -0
- package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +135 -0
- package/dist/components/agents-sdk/BrowserLiveScreen.js +637 -0
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +2 -2
- package/dist/components/agents-sdk/BrowserLiveView.js +6 -9
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +6 -12
- package/dist/components/agents-sdk/ManagerOffice.d.ts +156 -0
- package/dist/components/agents-sdk/ManagerOffice.js +662 -0
- package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -38
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +8 -2
- package/dist/components/agents-sdk/McpPluginCatalog.js +80 -62
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelSelector.js +2 -2
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunDetails.d.ts +1 -9
- package/dist/components/agents-sdk/SubagentRunDetails.js +1 -9
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +4 -2
- package/dist/components/agents-sdk/SubagentRunSelector.js +7 -6
- package/dist/components/agents-sdk/ThinkChat.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +43 -43
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +5 -6
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +8 -12
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +42 -37
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +18 -6
- package/dist/components/agents-sdk/ThinkFullApp.js +113 -145
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +5 -16
- package/dist/components/agents-sdk/ThinkRoutineForm.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +69 -89
- package/dist/components/agents-sdk/ThinkRoutineRuns.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +3 -10
- package/dist/components/agents-sdk/ThinkThreadPicker.js +2 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +2 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +11 -11
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +1 -1
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +2 -2
- package/dist/components/ai-sdk/Message.js +25 -3
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- package/dist/components/ai-sdk/Queue.d.ts +4 -4
- package/dist/components/ai-sdk/Queue.js +6 -15
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.d.ts +2 -2
- package/dist/components/ai-sdk/Task.js +2 -2
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.js +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/foundations/Avatar.d.ts +1 -10
- package/dist/components/foundations/Avatar.js +1 -10
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/CheckboxGroup.js +1 -0
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/LinkButton.d.ts +12 -10
- package/dist/components/foundations/LinkButton.js +15 -11
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Toolbar.d.ts +1 -151
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -90
- package/dist/components/general-purpose/AppTopBar.js +2 -1
- package/dist/components/general-purpose/Commit.d.ts +2 -2
- package/dist/components/general-purpose/Commit.js +5 -13
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +4 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.js +5 -10
- package/dist/components/general-purpose/PricingPlanCard.js +15 -14
- package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +95 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +90 -34
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.d.ts +1 -1
- package/dist/components/general-purpose/Terminal.js +4 -12
- package/dist/components/general-purpose/TestResults.d.ts +1 -1
- package/dist/components/general-purpose/TestResults.js +8 -21
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.d.ts +1 -1
- package/dist/components/general-purpose/WebPreview.js +4 -12
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
- package/dist/components/nanites/AgentToolDetail.js +7 -7
- package/dist/components/nanites/NaniteScene.js +11 -11
- package/dist/{copy-button-Bc7jsYv_.js → copy-button-lys9N_aI.js} +1 -1
- package/dist/{icons-DwgNir1Q.d.ts → icons-0corjfxR.d.ts} +1 -16
- package/dist/{icons-MmIXciMO.js → icons-CVFSeTJn.js} +2 -5
- package/dist/styles/agent-attention.css +5 -5
- package/dist/styles/agent-chat.css +47 -12
- package/dist/styles/agent-tool-detail.css +2 -12
- package/dist/styles/app-icon.css +12 -18
- package/dist/styles/app-top-bar.css +32 -6
- package/dist/styles/avatar.css +6 -22
- package/dist/styles/base.css +2 -8
- package/dist/styles/browser-live-screen.css +38 -0
- package/dist/styles/browser-live-view.css +12 -4
- package/dist/styles/browser-run-panel.css +20 -18
- package/dist/styles/chatgpt-sign-in-screen.css +5 -5
- package/dist/styles/commit.css +24 -1
- package/dist/styles/environment-variables.css +3 -0
- package/dist/styles/index.css +5 -4
- package/dist/styles/manager-office.css +486 -0
- package/dist/styles/mcp-plugin-catalog.css +39 -35
- package/dist/styles/mcp-server-picker.css +1 -1
- package/dist/styles/message.css +41 -18
- package/dist/styles/nanite-scene.css +9 -9
- package/dist/styles/pricing-page.css +12 -8
- package/dist/styles/prompt-input.css +8 -13
- package/dist/styles/recipes.css +1 -57
- package/dist/styles/responsive-sidebar-shell.css +70 -20
- package/dist/styles/subagent-run.css +20 -3
- package/dist/styles/terminal.css +19 -0
- package/dist/styles/test-results.css +10 -1
- package/dist/styles/think-execution-status.css +8 -24
- package/dist/styles/think-execution-workbench.css +98 -105
- package/dist/styles/think-full-app.css +81 -193
- package/dist/styles/think-routine-library.css +0 -40
- package/dist/styles/think-thread-picker.css +8 -3
- package/dist/styles/transition-surface.css +7 -8
- package/dist/styles/utilities.css +42 -0
- package/dist/styles/web-preview.css +28 -5
- package/dist/styles/workspace-explorer.css +4 -23
- package/dist/styles/workspace-mount-manager.css +22 -0
- package/package.json +37 -35
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +0 -68
- package/dist/components/agents-sdk/AgentActivityPreview.d.ts +0 -46
- package/dist/components/agents-sdk/AgentActivityPreview.js +0 -93
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +0 -38
- package/dist/components/agents-sdk/ThinkThreadShell.js +0 -27
- package/dist/components/foundations/Badge.d.ts +0 -62
- package/dist/components/foundations/Badge.js +0 -55
- package/dist/components/foundations/StatusPill.d.ts +0 -43
- package/dist/components/foundations/StatusPill.js +0 -35
- package/dist/components/general-purpose/Shell.d.ts +0 -149
- package/dist/components/general-purpose/Shell.js +0 -116
- package/dist/styles/agent-activity-preview-overlay.css +0 -169
- package/dist/styles/agent-activity-preview.css +0 -209
- package/dist/styles/badge.css +0 -120
- package/dist/styles/shell.css +0 -122
- package/dist/styles/status-pill.css +0 -39
- package/dist/{ThinkChat-DkA4Wr71.js → ThinkChat-BES_3Mb-.js} +1 -1
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import { buttonVariants } from "./Button.js";
|
|
2
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/foundations/LinkButton.tsx
|
|
4
5
|
/**
|
|
5
6
|
* A link that wears Button chrome. Renders a plain anchor composed through the
|
|
6
7
|
* {@link buttonVariants} seam, so the element stays a genuine link.
|
|
7
8
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* cannot construct the React element the `render` prop expects (a `.astro` `<a />`
|
|
11
|
-
* is an Astro vnode, not a React element, and `@astrojs/react` rejects it). This
|
|
12
|
-
* component is that wrapper, so Astro can render a button-styled link by passing
|
|
13
|
-
* plain props.
|
|
9
|
+
* Pass `href` for a native anchor or an app-authored router link through
|
|
10
|
+
* `render`. The latter preserves the consuming app's route-tree inference.
|
|
14
11
|
*/
|
|
15
|
-
function LinkButton({ variant, color, size, className, ref, ...props }) {
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
function LinkButton({ variant, color, size, className, render, ref, ...props }) {
|
|
13
|
+
const linkProps = {
|
|
14
|
+
...props,
|
|
18
15
|
className: buttonVariants({
|
|
19
16
|
variant,
|
|
20
17
|
color,
|
|
21
18
|
size,
|
|
22
19
|
className
|
|
23
|
-
})
|
|
24
|
-
|
|
20
|
+
})
|
|
21
|
+
};
|
|
22
|
+
return render ? /* @__PURE__ */ jsx(NavigationLink, {
|
|
23
|
+
render,
|
|
24
|
+
ref,
|
|
25
|
+
...linkProps
|
|
26
|
+
}) : /* @__PURE__ */ jsx("a", {
|
|
27
|
+
ref,
|
|
28
|
+
...linkProps
|
|
25
29
|
});
|
|
26
30
|
}
|
|
27
31
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as DotIcon, d as CheckIcon } from "../../icons-CVFSeTJn.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { U as SearchIcon } from "../../icons-CVFSeTJn.js";
|
|
3
3
|
import { Field } from "./Field.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/foundations/SearchField.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-
|
|
2
|
+
import { a as ArrowUpIcon, d as CheckIcon, n as ArrowDownIcon } from "../../icons-CVFSeTJn.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { K as SpinnerIcon, d as CheckIcon } from "../../icons-CVFSeTJn.js";
|
|
3
3
|
import { Tabs } from "./Tabs.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { tt as XIcon } from "../../icons-CVFSeTJn.js";
|
|
3
3
|
import { buttonVariants } from "./Button.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ToggleGroupItemProps, r as ToggleGroupProps, t as ToggleGroup } from "../../ToggleGroup-
|
|
1
|
+
import { n as ToggleGroupItemProps, r as ToggleGroupProps, t as ToggleGroup } from "../../ToggleGroup-BrQZOQn_.js";
|
|
2
2
|
export { ToggleGroup, ToggleGroupItemProps, ToggleGroupProps };
|
|
@@ -3,8 +3,8 @@ import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
|
3
3
|
import { toggleVariants } from "./Toggle.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { Toggle } from "@base-ui/react/toggle";
|
|
7
6
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
7
|
+
import { Toggle } from "@base-ui/react/toggle";
|
|
8
8
|
//#region src/components/foundations/ToggleGroup.tsx
|
|
9
9
|
/**
|
|
10
10
|
* Tracks the pressed item's box so the segmented thumb can slide to it instead
|
|
@@ -1,152 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Toolbar as Toolbar$1 } from "@base-ui/react/toolbar";
|
|
3
|
-
|
|
4
|
-
//#region src/components/foundations/Toolbar.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the Toolbar.Root component.
|
|
7
|
-
*/
|
|
8
|
-
interface ToolbarRootProps extends React.ComponentPropsWithoutRef<typeof Toolbar$1.Root> {}
|
|
9
|
-
/**
|
|
10
|
-
* Props for the Toolbar.Button component.
|
|
11
|
-
*/
|
|
12
|
-
interface ToolbarButtonProps extends React.ComponentPropsWithoutRef<typeof Toolbar$1.Button> {
|
|
13
|
-
/** Skip the default Button chrome when a composed control owns its visuals. */
|
|
14
|
-
unstyled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Props for the Toolbar.Link component.
|
|
18
|
-
*/
|
|
19
|
-
interface ToolbarLinkProps extends React.ComponentPropsWithoutRef<typeof Toolbar$1.Link> {
|
|
20
|
-
/** Skip the default Button chrome when a composed link owns its visuals. */
|
|
21
|
-
unstyled?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Props for the Toolbar.Group component.
|
|
25
|
-
*/
|
|
26
|
-
interface ToolbarGroupProps extends React.ComponentPropsWithoutRef<typeof Toolbar$1.Group> {}
|
|
27
|
-
/**
|
|
28
|
-
* Props for the Toolbar.Separator component.
|
|
29
|
-
*/
|
|
30
|
-
interface ToolbarSeparatorProps extends React.ComponentPropsWithoutRef<typeof Toolbar$1.Separator> {}
|
|
31
|
-
/**
|
|
32
|
-
* Props for the Toolbar.Input component.
|
|
33
|
-
*/
|
|
34
|
-
interface ToolbarInputProps extends React.ComponentPropsWithoutRef<typeof Toolbar$1.Input> {}
|
|
35
|
-
/**
|
|
36
|
-
* Container for grouping toolbar buttons and controls.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* <Toolbar.Root>
|
|
41
|
-
* <Toolbar.Button>Bold</Toolbar.Button>
|
|
42
|
-
* <Toolbar.Button>Italic</Toolbar.Button>
|
|
43
|
-
* <Toolbar.Separator />
|
|
44
|
-
* <Toolbar.Button>Align Left</Toolbar.Button>
|
|
45
|
-
* </Toolbar.Root>
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link https://base-ui.com/react/components/toolbar | Base UI Toolbar}
|
|
49
|
-
*/
|
|
50
|
-
declare function ToolbarRoot({
|
|
51
|
-
className,
|
|
52
|
-
ref,
|
|
53
|
-
...props
|
|
54
|
-
}: ToolbarRootProps & {
|
|
55
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
-
}): React.JSX.Element;
|
|
57
|
-
/**
|
|
58
|
-
* A clickable button within the toolbar.
|
|
59
|
-
*/
|
|
60
|
-
declare function ToolbarButton({
|
|
61
|
-
unstyled,
|
|
62
|
-
className,
|
|
63
|
-
ref,
|
|
64
|
-
...props
|
|
65
|
-
}: ToolbarButtonProps & {
|
|
66
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
67
|
-
}): React.JSX.Element;
|
|
68
|
-
/**
|
|
69
|
-
* A link element within the toolbar.
|
|
70
|
-
*/
|
|
71
|
-
declare function ToolbarLink({
|
|
72
|
-
unstyled,
|
|
73
|
-
className,
|
|
74
|
-
ref,
|
|
75
|
-
...props
|
|
76
|
-
}: ToolbarLinkProps & {
|
|
77
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
78
|
-
}): React.JSX.Element;
|
|
79
|
-
/**
|
|
80
|
-
* Groups toolbar items together.
|
|
81
|
-
*/
|
|
82
|
-
declare function ToolbarGroup({
|
|
83
|
-
className,
|
|
84
|
-
ref,
|
|
85
|
-
...props
|
|
86
|
-
}: ToolbarGroupProps & {
|
|
87
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
88
|
-
}): React.JSX.Element;
|
|
89
|
-
/**
|
|
90
|
-
* Visual separator between toolbar sections.
|
|
91
|
-
*/
|
|
92
|
-
declare function ToolbarSeparator({
|
|
93
|
-
className,
|
|
94
|
-
ref,
|
|
95
|
-
...props
|
|
96
|
-
}: ToolbarSeparatorProps & {
|
|
97
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
98
|
-
}): React.JSX.Element;
|
|
99
|
-
/**
|
|
100
|
-
* Input element within the toolbar.
|
|
101
|
-
*/
|
|
102
|
-
declare function ToolbarInput({
|
|
103
|
-
className,
|
|
104
|
-
ref,
|
|
105
|
-
...props
|
|
106
|
-
}: ToolbarInputProps & {
|
|
107
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
108
|
-
}): React.JSX.Element;
|
|
109
|
-
/**
|
|
110
|
-
* A container for grouping buttons and controls.
|
|
111
|
-
* Provides keyboard navigation between items.
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* ```tsx
|
|
115
|
-
* // Text formatting toolbar
|
|
116
|
-
* <Toolbar.Root>
|
|
117
|
-
* <Toolbar.Group>
|
|
118
|
-
* <Toolbar.Button>Bold</Toolbar.Button>
|
|
119
|
-
* <Toolbar.Button>Italic</Toolbar.Button>
|
|
120
|
-
* <Toolbar.Button>Underline</Toolbar.Button>
|
|
121
|
-
* </Toolbar.Group>
|
|
122
|
-
* <Toolbar.Separator />
|
|
123
|
-
* <Toolbar.Group>
|
|
124
|
-
* <Toolbar.Button>Left</Toolbar.Button>
|
|
125
|
-
* <Toolbar.Button>Center</Toolbar.Button>
|
|
126
|
-
* <Toolbar.Button>Right</Toolbar.Button>
|
|
127
|
-
* </Toolbar.Group>
|
|
128
|
-
* </Toolbar.Root>
|
|
129
|
-
* ```
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* ```tsx
|
|
133
|
-
* // Vertical toolbar
|
|
134
|
-
* <Toolbar.Root orientation="vertical">
|
|
135
|
-
* <Toolbar.Button>Item 1</Toolbar.Button>
|
|
136
|
-
* <Toolbar.Button>Item 2</Toolbar.Button>
|
|
137
|
-
* <Toolbar.Button>Item 3</Toolbar.Button>
|
|
138
|
-
* </Toolbar.Root>
|
|
139
|
-
* ```
|
|
140
|
-
*
|
|
141
|
-
* @see {@link https://base-ui.com/react/components/toolbar | Base UI Toolbar}
|
|
142
|
-
*/
|
|
143
|
-
declare const Toolbar: {
|
|
144
|
-
Root: typeof ToolbarRoot;
|
|
145
|
-
Button: typeof ToolbarButton;
|
|
146
|
-
Link: typeof ToolbarLink;
|
|
147
|
-
Group: typeof ToolbarGroup;
|
|
148
|
-
Separator: typeof ToolbarSeparator;
|
|
149
|
-
Input: typeof ToolbarInput;
|
|
150
|
-
};
|
|
151
|
-
//#endregion
|
|
1
|
+
import { a as ToolbarLinkProps, i as ToolbarInputProps, n as ToolbarButtonProps, o as ToolbarRootProps, r as ToolbarGroupProps, s as ToolbarSeparatorProps, t as Toolbar } from "../../Toolbar-CBOseBQr.js";
|
|
152
2
|
export { Toolbar, ToolbarButtonProps, ToolbarGroupProps, ToolbarInputProps, ToolbarLinkProps, ToolbarRootProps, ToolbarSeparatorProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, BookmarkIcon, BoxIcon, BrainIcon, BrandIconProps, CalendarIcon, CheckIcon, ChevronDownIcon,
|
|
1
|
+
import { $ as TerminalIcon, A as MaximizeIcon, B as PencilIcon, C as FileIcon, D as InfoIcon, E as IconProps, F as MonitorIcon, G as SearchIcon, H as PlusIcon, I as MoonIcon, J as SpinnerIcon, K as SidebarIcon, L as MoveToFrontIcon, M as MessageSquareIcon, N as MicrophoneIcon, O as KeyboardIcon, P as MinusIcon, Q as TargetIcon, R as PaperclipIcon, S as EyeOffIcon, T as FolderOpenIcon, U as QueueIcon, V as PlayIcon, W as RefreshIcon, X as StopIcon, Y as SquareIcon, Z as SunIcon, _ as DiscordIcon, a as ArrowUpIcon, b as EllipsisIcon, c as BoxIcon, d as CalendarIcon, et as TrashIcon, f as CheckIcon, g as CopyIcon, h as CodeIcon, i as ArrowRightIcon, j as McpIcon, k as LinkIcon, l as BrainIcon, m as ChevronRightIcon, n as ArrowDownIcon, nt as WrenchIcon, o as ArrowUpRightIcon, p as ChevronDownIcon, q as SlackIcon, r as ArrowLeftIcon, rt as XIcon, s as BookmarkIcon, t as ArchiveIcon, tt as WarningIcon, u as BrandIconProps, v as DotIcon, w as FolderIcon, x as EyeIcon, y as DownloadIcon, z as PauseIcon } from "../../icons-0corjfxR.js";
|
|
2
|
+
export { ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, BookmarkIcon, BoxIcon, BrainIcon, BrandIconProps, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CodeIcon, CopyIcon, DiscordIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, InfoIcon, KeyboardIcon, LinkIcon, MaximizeIcon, McpIcon, MessageSquareIcon, MicrophoneIcon, MinusIcon, MonitorIcon, MoonIcon, MoveToFrontIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, QueueIcon, RefreshIcon, SearchIcon, SidebarIcon, SlackIcon, SpinnerIcon, SquareIcon, StopIcon, SunIcon, TargetIcon, TerminalIcon, TrashIcon, WarningIcon, WrenchIcon, XIcon };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, BookmarkIcon, BoxIcon, BrainIcon, CalendarIcon, CheckIcon, ChevronDownIcon,
|
|
1
|
+
import { $ as WarningIcon, A as MessageSquareIcon, B as PlusIcon, C as FolderIcon, D as LinkIcon, E as KeyboardIcon, F as MoveToFrontIcon, G as SlackIcon, H as RefreshIcon, I as PaperclipIcon, J as StopIcon, K as SpinnerIcon, L as PauseIcon, M as MinusIcon, N as MonitorIcon, O as MaximizeIcon, P as MoonIcon, Q as TrashIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, V as QueueIcon, W as SidebarIcon, X as TargetIcon, Y as SunIcon, Z as TerminalIcon, _ as DotIcon, a as ArrowUpIcon, b as EyeIcon, c as BoxIcon, d as CheckIcon, et as WrenchIcon, f as ChevronDownIcon, g as DiscordIcon, h as CopyIcon, i as ArrowRightIcon, j as MicrophoneIcon, k as McpIcon, l as BrainIcon, m as CodeIcon, n as ArrowDownIcon, o as ArrowUpRightIcon, p as ChevronRightIcon, q as SquareIcon, r as ArrowLeftIcon, s as BookmarkIcon, t as ArchiveIcon, tt as XIcon, u as CalendarIcon, v as DownloadIcon, w as FolderOpenIcon, x as EyeOffIcon, y as EllipsisIcon, z as PlayIcon } from "../../icons-CVFSeTJn.js";
|
|
2
|
+
export { ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, BookmarkIcon, BoxIcon, BrainIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CodeIcon, CopyIcon, DiscordIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, InfoIcon, KeyboardIcon, LinkIcon, MaximizeIcon, McpIcon, MessageSquareIcon, MicrophoneIcon, MinusIcon, MonitorIcon, MoonIcon, MoveToFrontIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, QueueIcon, RefreshIcon, SearchIcon, SidebarIcon, SlackIcon, SpinnerIcon, SquareIcon, StopIcon, SunIcon, TargetIcon, TerminalIcon, TrashIcon, WarningIcon, WrenchIcon, XIcon };
|
|
@@ -1,91 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
|
|
5
|
-
//#region src/components/general-purpose/AppTopBar.d.ts
|
|
6
|
-
interface AppTopBarRootProps extends React.ComponentPropsWithoutRef<typeof Toolbar.Root> {
|
|
7
|
-
/** Accessible name describing the controls in this application bar. */
|
|
8
|
-
"aria-label": string;
|
|
9
|
-
}
|
|
10
|
-
interface AppTopBarGroupProps extends ToolbarGroupProps {}
|
|
11
|
-
interface AppTopBarTitleProps extends useRender.ComponentProps<"div"> {}
|
|
12
|
-
interface AppTopBarButtonProps extends Omit<ToolbarButtonProps, "aria-label"> {
|
|
13
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
14
|
-
/** Accessible name and default tooltip text for the icon-only control. */
|
|
15
|
-
label: string;
|
|
16
|
-
/** Tooltip text when it should differ from the accessible name. */
|
|
17
|
-
tooltip?: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
interface AppTopBarLinkProps extends Omit<ToolbarLinkProps, "aria-label"> {
|
|
20
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
21
|
-
/** Accessible name and default tooltip text for the icon-only link. */
|
|
22
|
-
label: string;
|
|
23
|
-
/** Tooltip text when it should differ from the accessible name. */
|
|
24
|
-
tooltip?: React.ReactNode;
|
|
25
|
-
}
|
|
26
|
-
interface AppTopBarControlProps extends ToolbarButtonProps {
|
|
27
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Stable application-level toolbar with composable leading, title, and trailing
|
|
31
|
-
* slots. Descendant buttons share Base UI's roving focus and tooltip provider.
|
|
32
|
-
*/
|
|
33
|
-
declare function AppTopBarRoot({
|
|
34
|
-
children,
|
|
35
|
-
className,
|
|
36
|
-
...props
|
|
37
|
-
}: AppTopBarRootProps): React.JSX.Element;
|
|
38
|
-
declare function AppTopBarLeading({
|
|
39
|
-
className,
|
|
40
|
-
...props
|
|
41
|
-
}: AppTopBarGroupProps): React.JSX.Element;
|
|
42
|
-
declare function AppTopBarTitle({
|
|
43
|
-
className,
|
|
44
|
-
render,
|
|
45
|
-
ref,
|
|
46
|
-
...props
|
|
47
|
-
}: AppTopBarTitleProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
48
|
-
declare function AppTopBarTrailing({
|
|
49
|
-
className,
|
|
50
|
-
...props
|
|
51
|
-
}: AppTopBarGroupProps): React.JSX.Element;
|
|
52
|
-
declare function AppTopBarControl({
|
|
53
|
-
className,
|
|
54
|
-
...props
|
|
55
|
-
}: AppTopBarControlProps): React.JSX.Element;
|
|
56
|
-
declare function AppTopBarButton({
|
|
57
|
-
children,
|
|
58
|
-
className,
|
|
59
|
-
disabled,
|
|
60
|
-
label,
|
|
61
|
-
render,
|
|
62
|
-
tooltip,
|
|
63
|
-
...props
|
|
64
|
-
}: AppTopBarButtonProps): React.JSX.Element;
|
|
65
|
-
declare function AppTopBarLink({
|
|
66
|
-
children,
|
|
67
|
-
className,
|
|
68
|
-
label,
|
|
69
|
-
render,
|
|
70
|
-
tooltip,
|
|
71
|
-
...props
|
|
72
|
-
}: AppTopBarLinkProps): React.JSX.Element;
|
|
73
|
-
/**
|
|
74
|
-
* Composable application top bar with stable leading, title, and trailing
|
|
75
|
-
* slots. Icon controls use shared Toolbar roving focus and coordinated Tooltip
|
|
76
|
-
* behavior; their fixed slots do not resize when state icons change. Render an
|
|
77
|
-
* existing behavior-rich button through `Control` to retain those toolbar
|
|
78
|
-
* semantics without rebuilding the control. Use `Link` for navigation so an
|
|
79
|
-
* `href` or router-provided link keeps native link semantics.
|
|
80
|
-
*/
|
|
81
|
-
declare const AppTopBar: {
|
|
82
|
-
Root: typeof AppTopBarRoot;
|
|
83
|
-
Leading: typeof AppTopBarLeading;
|
|
84
|
-
Title: typeof AppTopBarTitle;
|
|
85
|
-
Trailing: typeof AppTopBarTrailing;
|
|
86
|
-
Control: typeof AppTopBarControl;
|
|
87
|
-
Button: typeof AppTopBarButton;
|
|
88
|
-
Link: typeof AppTopBarLink;
|
|
89
|
-
};
|
|
90
|
-
//#endregion
|
|
1
|
+
import { a as AppTopBarLinkProps, i as AppTopBarGroupProps, n as AppTopBarButtonProps, o as AppTopBarRootProps, r as AppTopBarControlProps, s as AppTopBarTitleProps, t as AppTopBar } from "../../AppTopBar-ZdgmB_Lu.js";
|
|
91
2
|
export { AppTopBar, AppTopBarButtonProps, AppTopBarControlProps, AppTopBarGroupProps, AppTopBarLinkProps, AppTopBarRootProps, AppTopBarTitleProps };
|
|
@@ -10,9 +10,10 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
10
10
|
* Stable application-level toolbar with composable leading, title, and trailing
|
|
11
11
|
* slots. Descendant buttons share Base UI's roving focus and tooltip provider.
|
|
12
12
|
*/
|
|
13
|
-
function AppTopBarRoot({ children, className, ...props }) {
|
|
13
|
+
function AppTopBarRoot({ children, className, titleAlign = "center", ...props }) {
|
|
14
14
|
return /* @__PURE__ */ jsx(Tooltip.Provider, { children: /* @__PURE__ */ jsx(Toolbar.Root, {
|
|
15
15
|
className: mergeBaseClassName("app-top-bar", className),
|
|
16
|
+
"data-title-align": titleAlign,
|
|
16
17
|
...props,
|
|
17
18
|
children
|
|
18
19
|
}) });
|
|
@@ -13,7 +13,7 @@ interface CommitProps extends Omit<React.ComponentProps<typeof Collapsible.Root>
|
|
|
13
13
|
* summaries with expandable file details. Do not use it as a generic
|
|
14
14
|
* accordion; use Collapsible or Accordion directly.
|
|
15
15
|
*
|
|
16
|
-
* Styling consumes Sigvelo surface, border, spacing, radius,
|
|
16
|
+
* Styling consumes Sigvelo surface, border, spacing, radius, status, and focus
|
|
17
17
|
* tokens. Add shared metadata/file affordances here instead of forking commit
|
|
18
18
|
* cards in apps.
|
|
19
19
|
*
|
|
@@ -190,7 +190,7 @@ declare function CommitFile({
|
|
|
190
190
|
}: CommitFileProps & {
|
|
191
191
|
ref?: React.Ref<HTMLLIElement>;
|
|
192
192
|
}): React.JSX.Element;
|
|
193
|
-
interface CommitFileStatusProps extends
|
|
193
|
+
interface CommitFileStatusProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
194
194
|
status: CommitFileStatusValue;
|
|
195
195
|
}
|
|
196
196
|
declare function CommitFileStatus({
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as CopyButton } from "../../copy-button-
|
|
5
|
-
import { Badge } from "../foundations/Badge.js";
|
|
3
|
+
import { S as FileIcon, p as ChevronRightIcon } from "../../icons-CVFSeTJn.js";
|
|
4
|
+
import { t as CopyButton } from "../../copy-button-lys9N_aI.js";
|
|
6
5
|
import { Avatar } from "../foundations/Avatar.js";
|
|
7
6
|
import "react";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
8
|
//#region src/components/general-purpose/Commit.tsx
|
|
10
|
-
const FILE_STATUS_COLOR = {
|
|
11
|
-
added: "success",
|
|
12
|
-
modified: "warning",
|
|
13
|
-
deleted: "destructive",
|
|
14
|
-
renamed: "primary"
|
|
15
|
-
};
|
|
16
9
|
const FILE_STATUS_LABEL = {
|
|
17
10
|
added: "A",
|
|
18
11
|
modified: "M",
|
|
@@ -27,7 +20,7 @@ const FILE_STATUS_LABEL = {
|
|
|
27
20
|
* summaries with expandable file details. Do not use it as a generic
|
|
28
21
|
* accordion; use Collapsible or Accordion directly.
|
|
29
22
|
*
|
|
30
|
-
* Styling consumes Sigvelo surface, border, spacing, radius,
|
|
23
|
+
* Styling consumes Sigvelo surface, border, spacing, radius, status, and focus
|
|
31
24
|
* tokens. Add shared metadata/file affordances here instead of forking commit
|
|
32
25
|
* cards in apps.
|
|
33
26
|
*
|
|
@@ -197,12 +190,11 @@ function CommitFile({ className, children, ref, ...props }) {
|
|
|
197
190
|
});
|
|
198
191
|
}
|
|
199
192
|
function CommitFileStatus({ className, status, ref, ...props }) {
|
|
200
|
-
return /* @__PURE__ */ jsx(
|
|
193
|
+
return /* @__PURE__ */ jsx("span", {
|
|
201
194
|
...props,
|
|
202
195
|
ref,
|
|
203
|
-
color: FILE_STATUS_COLOR[status],
|
|
204
|
-
size: "sm",
|
|
205
196
|
className: cx("commit__file-status", className),
|
|
197
|
+
"data-status": status,
|
|
206
198
|
"aria-label": status,
|
|
207
199
|
children: FILE_STATUS_LABEL[status]
|
|
208
200
|
});
|
|
@@ -22,7 +22,7 @@ interface EnvironmentVariablesProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
22
22
|
* environment keys and copyable values. Do not treat masking as a security
|
|
23
23
|
* boundary; do not render secrets for users who are not allowed to see them.
|
|
24
24
|
*
|
|
25
|
-
* Sigvelo changes: composes
|
|
25
|
+
* Sigvelo changes: composes Button, Switch, and Tooltip; maps copy and
|
|
26
26
|
* reveal controls to Sigvelo CSS tokens; keeps masking local to the component.
|
|
27
27
|
*
|
|
28
28
|
* Values need visible labels and copy buttons need accessible labels. Styling
|
|
@@ -156,7 +156,7 @@ declare function EnvironmentVariableCopyButton({
|
|
|
156
156
|
timeout,
|
|
157
157
|
...props
|
|
158
158
|
}: EnvironmentVariableCopyButtonProps): React.JSX.Element;
|
|
159
|
-
interface EnvironmentVariableRequiredProps extends
|
|
159
|
+
interface EnvironmentVariableRequiredProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
160
160
|
declare function EnvironmentVariableRequired({
|
|
161
161
|
className,
|
|
162
162
|
children,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as CopyButton } from "../../copy-button-
|
|
4
|
-
import { Badge } from "../foundations/Badge.js";
|
|
2
|
+
import { b as EyeIcon, x as EyeOffIcon } from "../../icons-CVFSeTJn.js";
|
|
3
|
+
import { t as CopyButton } from "../../copy-button-lys9N_aI.js";
|
|
5
4
|
import { Switch } from "../foundations/Switch.js";
|
|
6
5
|
import * as React from "react";
|
|
7
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -26,7 +25,7 @@ function useVariableContext() {
|
|
|
26
25
|
* environment keys and copyable values. Do not treat masking as a security
|
|
27
26
|
* boundary; do not render secrets for users who are not allowed to see them.
|
|
28
27
|
*
|
|
29
|
-
* Sigvelo changes: composes
|
|
28
|
+
* Sigvelo changes: composes Button, Switch, and Tooltip; maps copy and
|
|
30
29
|
* reveal controls to Sigvelo CSS tokens; keeps masking local to the component.
|
|
31
30
|
*
|
|
32
31
|
* Values need visible labels and copy buttons need accessible labels. Styling
|
|
@@ -185,11 +184,9 @@ function EnvironmentVariableCopyButton({ className, format = "value", label, onC
|
|
|
185
184
|
});
|
|
186
185
|
}
|
|
187
186
|
function EnvironmentVariableRequired({ className, children, ref, ...props }) {
|
|
188
|
-
return /* @__PURE__ */ jsx(
|
|
187
|
+
return /* @__PURE__ */ jsx("span", {
|
|
189
188
|
...props,
|
|
190
189
|
ref,
|
|
191
|
-
color: "warning",
|
|
192
|
-
size: "sm",
|
|
193
190
|
className: cx("environment-variables__required", className),
|
|
194
191
|
children: children ?? "Required"
|
|
195
192
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../../FileTree-
|
|
1
|
+
import { a as FileTreeIcon, i as FileTreeFolder, n as FileTreeActions, o as FileTreeName, r as FileTreeFile, t as FileTree } from "../../FileTree-DMYRdT6R.js";
|
|
2
2
|
export { FileTree, FileTreeActions, FileTreeFile, FileTreeFolder, FileTreeIcon, FileTreeName };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { Badge } from "../foundations/Badge.js";
|
|
3
|
-
import { Switch } from "../foundations/Switch.js";
|
|
4
2
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
3
|
+
import { Switch } from "../foundations/Switch.js";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
//#region src/components/general-purpose/PricingBillingToggle.tsx
|
|
7
6
|
/** Controlled billing-period selector composed from the shared Switch or ToggleGroup. */
|
|
@@ -26,10 +25,8 @@ function PricingBillingToggle({ value, onValueChange, yearlySavingsPercent, vari
|
|
|
26
25
|
/* @__PURE__ */ jsxs("span", {
|
|
27
26
|
className: "pricing-page__period-label",
|
|
28
27
|
"data-active": isYearly || void 0,
|
|
29
|
-
children: ["Yearly", /* @__PURE__ */ jsxs(
|
|
30
|
-
|
|
31
|
-
size: "sm",
|
|
32
|
-
className: "pricing-page__billing-badge",
|
|
28
|
+
children: ["Yearly", /* @__PURE__ */ jsxs("span", {
|
|
29
|
+
className: "pricing-page__billing-savings",
|
|
33
30
|
children: [
|
|
34
31
|
"Save ",
|
|
35
32
|
yearlySavingsPercent,
|
|
@@ -51,10 +48,8 @@ function PricingBillingToggle({ value, onValueChange, yearlySavingsPercent, vari
|
|
|
51
48
|
children: "Monthly"
|
|
52
49
|
}), /* @__PURE__ */ jsxs(ToggleGroup.Item, {
|
|
53
50
|
value: "yearly",
|
|
54
|
-
children: ["Yearly", /* @__PURE__ */ jsxs(
|
|
55
|
-
|
|
56
|
-
size: "sm",
|
|
57
|
-
className: "pricing-page__billing-badge",
|
|
51
|
+
children: ["Yearly", /* @__PURE__ */ jsxs("span", {
|
|
52
|
+
className: "pricing-page__billing-savings",
|
|
58
53
|
children: [
|
|
59
54
|
"-",
|
|
60
55
|
yearlySavingsPercent,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { M as MinusIcon, T as InfoIcon, d as CheckIcon } from "../../icons-CVFSeTJn.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { Separator } from "../foundations/Separator.js";
|
|
6
6
|
import { Card } from "../foundations/Card.js";
|
|
7
|
-
import { Badge } from "../foundations/Badge.js";
|
|
8
7
|
import { getPlanPrice, getPlanYearlySavings } from "./Pricing.js";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
//#region src/components/general-purpose/PricingPlanCard.tsx
|
|
@@ -24,20 +23,22 @@ function PricingPlanCard({ plan, billingPeriod, action = "select", onSelect, cla
|
|
|
24
23
|
className: cx("pricing-page__plan", className),
|
|
25
24
|
"data-popular": plan.popular || void 0,
|
|
26
25
|
children: [
|
|
27
|
-
plan.popular ? /* @__PURE__ */ jsx(Badge, {
|
|
28
|
-
color: "success",
|
|
29
|
-
className: "pricing-page__popular-badge",
|
|
30
|
-
children: "Most Popular"
|
|
31
|
-
}) : null,
|
|
32
26
|
/* @__PURE__ */ jsxs("div", {
|
|
33
27
|
className: "pricing-page__plan-header",
|
|
34
|
-
children: [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
children: [
|
|
29
|
+
plan.popular ? /* @__PURE__ */ jsx("span", {
|
|
30
|
+
className: "pricing-page__popular-label",
|
|
31
|
+
children: "Most popular"
|
|
32
|
+
}) : null,
|
|
33
|
+
/* @__PURE__ */ jsx("h2", {
|
|
34
|
+
className: "pricing-page__plan-name",
|
|
35
|
+
children: plan.name
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx("p", {
|
|
38
|
+
className: "pricing-page__plan-description",
|
|
39
|
+
children: plan.description
|
|
40
|
+
})
|
|
41
|
+
]
|
|
41
42
|
}),
|
|
42
43
|
/* @__PURE__ */ jsxs("div", {
|
|
43
44
|
className: "pricing-page__plan-price",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Separator } from "../foundations/Separator.js";
|
|
3
3
|
import { Card } from "../foundations/Card.js";
|
|
4
|
-
import { Progress } from "../foundations/Progress.js";
|
|
5
4
|
import { Slider } from "../foundations/Slider.js";
|
|
5
|
+
import { Progress } from "../foundations/Progress.js";
|
|
6
6
|
import { formatPricingUsage, getUsagePrice } from "./Pricing.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|