@mcp-b/react-components 0.69.0 → 0.71.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.
Files changed (100) hide show
  1. package/dist/AgentComputer-CpS9R2KG.d.ts +305 -0
  2. package/dist/{AgentComputer-CFJxjMFE.js → AgentComputer-DZCyQkcE.js} +1850 -478
  3. package/dist/CommandPalette-DDctKdpC.d.ts +53 -0
  4. package/dist/ComputerCalendar-Ci7tLASe.js +1360 -0
  5. package/dist/ComputerCustomWallpaper-CnGQYHp0.js +518 -0
  6. package/dist/ComputerCustomWallpaper-D4lgwj2k.d.ts +18 -0
  7. package/dist/ComputerNotifications-q7eeELZ8.d.ts +41 -0
  8. package/dist/ComputerPresentation-BEQKYAjc.js +888 -0
  9. package/dist/Context-CYUxZrwW.js +918 -0
  10. package/dist/{ExecutionResult-C7SzVquo.js → ExecutionResult-CXnGcmM4.js} +1 -1
  11. package/dist/{WorkspaceBrowser-ojoZy0uO.js → WorkspaceBrowser-mRScUczT.js} +5 -5
  12. package/dist/WorkspaceFileTransfer-D2cOoVyO.js +1625 -0
  13. package/dist/{WorkspaceMessageResponse-BoeeltJM.js → WorkspaceMessageResponse-CXGOQgpo.js} +1 -1
  14. package/dist/components/agents-sdk/AgentComputer.d.ts +2 -276
  15. package/dist/components/agents-sdk/AgentComputer.js +1 -1
  16. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  17. package/dist/components/agents-sdk/ComputerAutomations.d.ts +5 -15
  18. package/dist/components/agents-sdk/ComputerAutomations.js +164 -145
  19. package/dist/components/agents-sdk/ComputerCalendar.d.ts +1 -1
  20. package/dist/components/agents-sdk/ComputerCalendar.js +1 -1344
  21. package/dist/components/agents-sdk/ComputerCustomWallpaper.d.ts +2 -39
  22. package/dist/components/agents-sdk/ComputerCustomWallpaper.js +2 -522
  23. package/dist/components/agents-sdk/ComputerFiles.d.ts +18 -81
  24. package/dist/components/agents-sdk/ComputerFiles.js +365 -89
  25. package/dist/components/agents-sdk/ComputerHome.d.ts +6 -11
  26. package/dist/components/agents-sdk/ComputerHome.js +1 -89
  27. package/dist/components/agents-sdk/ComputerHost.d.ts +43 -0
  28. package/dist/components/agents-sdk/ComputerHost.js +97 -0
  29. package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
  30. package/dist/components/agents-sdk/ComputerNotifications.d.ts +2 -54
  31. package/dist/components/agents-sdk/ComputerNotifications.js +1 -668
  32. package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -0
  33. package/dist/components/agents-sdk/ComputerPresentation.js +2 -0
  34. package/dist/components/agents-sdk/ComputerScreen.d.ts +14 -14
  35. package/dist/components/agents-sdk/ComputerScreen.js +109 -50
  36. package/dist/components/agents-sdk/ComputerSettings.d.ts +12 -40
  37. package/dist/components/agents-sdk/ComputerSettings.js +249 -1038
  38. package/dist/components/agents-sdk/ComputerSpotlight.d.ts +13 -15
  39. package/dist/components/agents-sdk/ComputerSpotlight.js +1 -231
  40. package/dist/components/agents-sdk/ComputerViewer.d.ts +13 -17
  41. package/dist/components/agents-sdk/ComputerViewer.js +176 -187
  42. package/dist/components/agents-sdk/ComputerWallpapers.d.ts +1 -1
  43. package/dist/components/agents-sdk/EmployeeChat.js +2 -2
  44. package/dist/components/agents-sdk/EmployeeChrome.js +3 -3
  45. package/dist/components/agents-sdk/EmployeeSchedules.js +2 -2
  46. package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
  47. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  48. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  49. package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
  50. package/dist/components/agents-sdk/ThinkChat.js +1 -1
  51. package/dist/components/agents-sdk/ThinkChatToolPanels.js +3 -3
  52. package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
  53. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +2 -2
  54. package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
  55. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
  56. package/dist/components/agents-sdk/ThinkScheduleDetail.js +4 -4
  57. package/dist/components/agents-sdk/ThinkScheduleForm.js +3 -3
  58. package/dist/components/agents-sdk/WorkspaceAutomation.js +3 -3
  59. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
  60. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  61. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -5
  62. package/dist/components/agents-sdk/WorkspaceDesktop.js +53 -41
  63. package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
  64. package/dist/components/agents-sdk/WorkspaceFileCommands.js +1 -924
  65. package/dist/components/agents-sdk/WorkspaceFileDetails.js +1 -1
  66. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +1 -504
  67. package/dist/components/agents-sdk/WorkspaceFileView.js +6 -6
  68. package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
  69. package/dist/components/agents-sdk/WorkspaceLive.d.ts +9 -0
  70. package/dist/components/agents-sdk/WorkspaceLive.js +2 -177
  71. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  72. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  73. package/dist/components/ai-sdk/Context.js +1 -842
  74. package/dist/components/ai-sdk/Plan.d.ts +33 -9
  75. package/dist/components/ai-sdk/Plan.js +336 -107
  76. package/dist/components/ai-sdk/PromptInput.js +1 -1
  77. package/dist/components/extension/FirstRunSetup.js +2 -2
  78. package/dist/components/foundations/ThemeProvider.d.ts +2 -0
  79. package/dist/components/foundations/ThemeProvider.js +2 -1
  80. package/dist/components/general-purpose/CommandPalette.d.ts +2 -52
  81. package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
  82. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -2
  83. package/dist/components/nanites/AgentConnection.js +1 -1
  84. package/dist/components/nanites/AgentToolDetail.js +1 -1
  85. package/dist/context-BWJpR084.js +94 -0
  86. package/dist/{parts-CPVz9l31.js → parts-DuT5-rDz.js} +1 -1
  87. package/dist/styles/agent-computer.css +16 -0
  88. package/dist/styles/computer-files.css +5 -0
  89. package/dist/styles/computer-notifications.css +1 -0
  90. package/dist/styles/plan.css +160 -23
  91. package/dist/{workspace-drag-B6hMXUNt.js → workspace-drag-BNhZIN8F.js} +1 -1
  92. package/dist/{workspace-quick-look-DODjsfhH.js → workspace-quick-look-8cbGu1Xf.js} +2 -2
  93. package/package.json +2 -2
  94. package/dist/WallpaperPicker-C-FItmDS.d.ts +0 -34
  95. package/dist/automations-host-DPORjdc7.js +0 -17
  96. package/dist/context-Ddsp8HgD.js +0 -43
  97. package/dist/minute-clock-CXpRGCMF.js +0 -35
  98. package/dist/progress-ring-BO649JA9.js +0 -79
  99. package/dist/{ManagerOffice-kSK7vTBl.js → ManagerOffice-BJ2vs-Lr.js} +2 -2
  100. package/dist/{WorkspaceLink-DK9kdMUH.js → WorkspaceLink-DDkj-Tq5.js} +1 -1
@@ -3,6 +3,7 @@ import { c } from "react/compiler-runtime";
3
3
  import * as React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/foundations/ThemeProvider.tsx
6
+ /** Null outside a ThemeProvider; `useTheme` throws there instead. */
6
7
  const ThemeContext = React.createContext(null);
7
8
  const useClientLayoutEffect = typeof document === "undefined" ? React.useEffect : React.useLayoutEffect;
8
9
  /**
@@ -163,4 +164,4 @@ function useTheme() {
163
164
  return context;
164
165
  }
165
166
  //#endregion
166
- export { ThemeProvider, useTheme };
167
+ export { ThemeContext, ThemeProvider, useTheme };
@@ -1,52 +1,2 @@
1
- import { ReactNode } from "react";
2
- //#region src/components/general-purpose/CommandPalette.d.ts
3
- /** One searchable action or destination. */
4
- export interface CommandPaletteCommand {
5
- /** Stable identity, independent of the visible label. */
6
- id: string;
7
- /** The action or destination shown in search results. */
8
- label: string;
9
- /** Supporting context, such as a file path. Also searchable. */
10
- description?: string;
11
- /** Plain-text group heading, as on `PromptInputCommandDefinition`. Also searchable. */
12
- group?: string;
13
- /** Additional search terms, without changing the visible label. */
14
- keywords?: readonly string[];
15
- /** Decorative destination or action icon. */
16
- icon?: ReactNode;
17
- /** Runs after the dialog closes so it can move focus to its destination. */
18
- onSelect: () => void;
19
- /** Runs when the command is highlighted, to warm its destination before it is chosen. */
20
- preload?: () => void;
21
- }
22
- /** Props for {@link CommandPalette}. */
23
- export interface CommandPaletteProps {
24
- /** Commands available to the current user and workspace. */
25
- commands: readonly CommandPaletteCommand[];
26
- /** Whether the modal search is open. */
27
- open: boolean;
28
- /** Receives search dismissal; the host owns its trigger and shortcut. */
29
- onOpenChange: (open: boolean) => void;
30
- /** Visible loading, error, or source information beneath the results. */
31
- children?: ReactNode;
32
- /**
33
- * The element the search portals into; its containing block is the screen
34
- * the search centres on and blocks. Defaults to the document body.
35
- */
36
- container?: HTMLElement | null;
37
- /**
38
- * Receives the query as it is typed, for a host that searches a source of
39
- * its own. Its results still pass the palette's own match.
40
- */
41
- onQueryChange?: (query: string) => void;
42
- }
43
- /**
44
- * Modal command search using Base UI's inline Combobox and Dialog, shaped like
45
- * Spotlight: one floating field over the screen with its results under it, no
46
- * dimmed backdrop, no close button and no key legend. Arrow keys highlight
47
- * results, Enter executes, and Escape or a press outside restores the
48
- * initiating focus. The host owns commands and keyboard shortcuts; actions run
49
- * after dismissal.
50
- */
51
- export declare function CommandPalette({ commands, open, onOpenChange, children, container, onQueryChange }: CommandPaletteProps): import("react").JSX.Element;
52
- //#endregion
1
+ import { n as CommandPaletteCommand, r as CommandPaletteProps, t as CommandPalette } from "../../CommandPalette-DDctKdpC.js";
2
+ export { CommandPalette, CommandPaletteCommand, CommandPaletteProps };
@@ -4,8 +4,8 @@ import { t as capitalize } from "../../format-DL7f2rqp.js";
4
4
  import { Button } from "../foundations/Button.js";
5
5
  import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
6
6
  import { t as isAtMostRem } from "../../container-width-C43ccJ84.js";
7
- import { n as ShellAppBarOutletContext, r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
8
7
  import { AppTopBar } from "./AppTopBar.js";
8
+ import { n as ShellAppBarOutletContext, r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
9
9
  import { ResizableSidePanel } from "./ResizableSidePanel.js";
10
10
  import { c } from "react/compiler-runtime";
11
11
  import * as React from "react";
@@ -1,2 +1,33 @@
1
- import { n as WallpaperPicker, r as WallpaperPickerProps, t as WallpaperOption } from "../../WallpaperPicker-C-FItmDS.js";
2
- export { WallpaperOption, WallpaperPicker, WallpaperPickerProps };
1
+ import { ComponentPropsWithRef, ReactNode } from "react";
2
+ //#region src/components/general-purpose/WallpaperPicker.d.ts
3
+ /** One host-supplied background. */
4
+ export interface WallpaperOption {
5
+ /** Stable identifier stored by the consuming application. */
6
+ value: string;
7
+ /** Visible and accessible name for this background. */
8
+ label: string;
9
+ /** Trusted CSS background shorthand supplied by the host. */
10
+ background: string;
11
+ /**
12
+ * The same picture's dark variant, as a background shorthand. It fades in
13
+ * over `background` while the document is dark: `data-theme="dark"`, or no
14
+ * `data-theme` and a dark OS.
15
+ */
16
+ darkBackground?: string;
17
+ }
18
+ /** Props for {@link WallpaperPicker}. */
19
+ export interface WallpaperPickerProps extends Omit<ComponentPropsWithRef<"div">, "children" | "aria-label"> {
20
+ /** References a visible label for the thumbnail radio group. Defaults to its heading. */
21
+ "aria-labelledby"?: string;
22
+ /** Host-owned backgrounds. The picker owns no catalog or persistent state. */
23
+ wallpapers: readonly WallpaperOption[];
24
+ /** The selected wallpaper identifier. */
25
+ value: string;
26
+ /** Selection applies immediately. Arrow keys also select a background. */
27
+ onValueChange: (value: string) => void;
28
+ /** Host controls beside the current preview, such as a theme preference. */
29
+ selectionControls?: ReactNode;
30
+ }
31
+ /** A wallpaper preview and thumbnail gallery over the shared radio-group contract. */
32
+ export declare function WallpaperPicker({ wallpapers, value, onValueChange, selectionControls, className, "aria-labelledby": ariaLabelledBy, ...props }: WallpaperPickerProps): import("react").JSX.Element;
33
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
2
  import { F as LinkIcon } from "../../icons-nLTnB9kd.js";
3
3
  import { Button } from "../foundations/Button.js";
4
- import { ToggleGroup } from "../foundations/ToggleGroup.js";
5
4
  import { Popover } from "../foundations/Popover.js";
5
+ import { ToggleGroup } from "../foundations/ToggleGroup.js";
6
6
  import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
7
7
  import { c } from "react/compiler-runtime";
8
8
  import * as React from "react";
@@ -4,8 +4,8 @@ import { MessageActions } from "../ai-sdk/Message.js";
4
4
  import { SubagentRunIndicator, getSubagentRunName } from "../agents-sdk/SubagentRunIndicator.js";
5
5
  import { NaniteMark } from "./NaniteScene.js";
6
6
  import { AgentChat } from "../agents-sdk/AgentChat.js";
7
- import { TransitionSurface } from "../foundations/TransitionSurface.js";
8
7
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
8
+ import { TransitionSurface } from "../foundations/TransitionSurface.js";
9
9
  import { ThinkChat } from "../agents-sdk/ThinkChat.js";
10
10
  import { c } from "react/compiler-runtime";
11
11
  import * as React from "react";
@@ -0,0 +1,94 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import * as React from "react";
3
+ //#region src/components/_internal/agent-computer/context.ts
4
+ /** The computer's controller: its state and every transition between states. */
5
+ const ComputerContext = React.createContext(null);
6
+ function useComputer() {
7
+ return React.use(ComputerContext);
8
+ }
9
+ /**
10
+ * A slice of the computer's state. `select` must return a primitive or a value
11
+ * the controller caches, so an unrelated change leaves this component alone.
12
+ */
13
+ function useComputerSlice(select) {
14
+ const $ = c(3);
15
+ const computer = useComputer();
16
+ let t0;
17
+ if ($[0] !== computer || $[1] !== select) {
18
+ t0 = () => select(computer);
19
+ $[0] = computer;
20
+ $[1] = select;
21
+ $[2] = t0;
22
+ } else t0 = $[2];
23
+ return React.useSyncExternalStore(computer.subscribe, t0);
24
+ }
25
+ /** The window an app part is rendered in. Memoized per window. */
26
+ const WindowContext = React.createContext(null);
27
+ /**
28
+ * Whether that window is key, apart from the window itself: focus moves on
29
+ * every window action, and only the parts that draw it should render again.
30
+ */
31
+ const WindowActiveContext = React.createContext(null);
32
+ /** The computer's actions: one object for the computer's lifetime. */
33
+ const ActionsContext = React.createContext(null);
34
+ /** Where a running app registers its keyboard commands and quit guard. */
35
+ const HandlersContext = React.createContext(null);
36
+ /**
37
+ * The element an overlay inside the computer portals into, so it stays on the
38
+ * computer's screen above its windows: null until the computer has mounted
39
+ * it, which a Base UI portal waits for, and undefined outside a computer.
40
+ */
41
+ const PortalContext = React.createContext(void 0);
42
+ /** The computer mounted under a `ComputerHost`, while it is. */
43
+ var MountedComputer = class {
44
+ current = null;
45
+ attach(computer) {
46
+ this.current = computer;
47
+ return () => {
48
+ if (this.current === computer) this.current = null;
49
+ };
50
+ }
51
+ };
52
+ const HostContext = React.createContext(null);
53
+ /** `ComputerHost`'s value. Throws outside one, naming the part that needs it. */
54
+ function useComputerHost(part) {
55
+ const host = React.use(HostContext);
56
+ if (!host) throw new Error(`${part} needs a ComputerHost above it.`);
57
+ return host;
58
+ }
59
+ const AppHostsContext = React.createContext({});
60
+ /** One app Host's part of the computer, beside what the Hosts above it added. */
61
+ function useAppHosts(key, value) {
62
+ const $ = c(4);
63
+ const hosts = React.use(AppHostsContext);
64
+ let t0;
65
+ if ($[0] !== hosts || $[1] !== key || $[2] !== value) {
66
+ t0 = {
67
+ ...hosts,
68
+ [key]: value
69
+ };
70
+ $[0] = hosts;
71
+ $[1] = key;
72
+ $[2] = value;
73
+ $[3] = t0;
74
+ } else t0 = $[3];
75
+ return t0;
76
+ }
77
+ /** The computer's presentation: layout, wallpaper, Dock and folder views. */
78
+ const PresentationContext = React.createContext(null);
79
+ function usePresentation(select) {
80
+ const $ = c(3);
81
+ const store = React.use(PresentationContext);
82
+ let t0;
83
+ if ($[0] !== select || $[1] !== store) {
84
+ t0 = () => select(store);
85
+ $[0] = select;
86
+ $[1] = store;
87
+ $[2] = t0;
88
+ } else t0 = $[2];
89
+ return React.useSyncExternalStore(store.subscribe, t0);
90
+ }
91
+ /** The wallpaper the computer shows, and Settings' controls for it. */
92
+ const AppearanceContext = React.createContext(null);
93
+ //#endregion
94
+ export { HandlersContext as a, PortalContext as c, WindowContext as d, useAppHosts as f, usePresentation as g, useComputerSlice as h, ComputerContext as i, PresentationContext as l, useComputerHost as m, AppHostsContext as n, HostContext as o, useComputer as p, AppearanceContext as r, MountedComputer as s, ActionsContext as t, WindowActiveContext as u };
@@ -1,4 +1,4 @@
1
- import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-CFJxjMFE.js";
1
+ import { a as useAgentComputerWindow, r as useAgentComputerAppHandlers } from "./AgentComputer-DZCyQkcE.js";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import * as React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -359,6 +359,22 @@
359
359
  .agent-computer__employee {
360
360
  min-inline-size: 0;
361
361
  }
362
+ /* The connection warning is a symbol, named by its title and hidden text. */
363
+ .agent-computer__connection {
364
+ display: inline-flex;
365
+ align-items: center;
366
+ gap: var(--sigvelo-spacing-2);
367
+ }
368
+ @container agent-computer (inline-size <= 48rem) {
369
+ .agent-computer__connection {
370
+ display: none;
371
+ }
372
+ }
373
+ /* On the phone the band is Home's widget area: the widget's own control opens
374
+ the conversation, so the menu bar's copy of it goes. */
375
+ [data-slot="agent-computer"][data-phone][data-home-widget] .agent-computer__conversation-toggle {
376
+ display: none;
377
+ }
362
378
  /* ---- the body: the stage --------------------------------------------- */
363
379
  .agent-computer__body {
364
380
  display: grid;
@@ -595,3 +595,8 @@
595
595
  .computer-finder .workspace-browser__entries[data-layout="list"] .computer-file-thumbnail {
596
596
  zoom: 0.3;
597
597
  }
598
+
599
+ /* The desktop's files fill the stage behind the windows. */
600
+ .computer-files-desktop {
601
+ block-size: 100%;
602
+ }
@@ -111,6 +111,7 @@
111
111
  @media (any-pointer: coarse) {
112
112
  :where(.agent-computer[data-phone]) .computer-notifications__trigger {
113
113
  min-block-size: var(--sigvelo-touch-target);
114
+ min-inline-size: var(--sigvelo-touch-target);
114
115
  }
115
116
  }
116
117
  .computer-notifications__count {
@@ -1,11 +1,26 @@
1
+ .plan {
2
+ gap: var(--sigvelo-spacing-4);
3
+ padding: var(--sigvelo-spacing-5);
4
+ }
5
+
6
+ .plan-card {
7
+ display: grid;
8
+ gap: var(--sigvelo-spacing-6);
9
+ min-inline-size: 0;
10
+ inline-size: 100%;
11
+ }
12
+
13
+ .plan--card {
14
+ background-color: var(--sigvelo-color-surface-sunken);
15
+ border-color: transparent;
16
+ border-radius: var(--sigvelo-radius-xl);
17
+ }
18
+
1
19
  .plan__header {
2
20
  display: grid;
3
21
  gap: var(--sigvelo-spacing-0-5);
4
22
  min-inline-size: 0;
5
- padding-block: var(--sigvelo-layout-cluster);
6
- padding-inline: 0;
7
- border-block-end: var(--sigvelo-border-width) var(--sigvelo-border-style)
8
- var(--sigvelo-color-neutral-border-subtle);
23
+ padding: 0;
9
24
  }
10
25
 
11
26
  .plan__title,
@@ -17,6 +32,15 @@
17
32
  overflow-wrap: anywhere;
18
33
  }
19
34
 
35
+ .plan__step-indicator[data-variant="plain"] {
36
+ align-self: start;
37
+ margin-block-start: var(--sigvelo-spacing-0-5);
38
+ color: var(--sigvelo-color-text-muted);
39
+ background-color: transparent;
40
+ border: none;
41
+ border-radius: 0;
42
+ }
43
+
20
44
  .plan__title {
21
45
  color: var(--sigvelo-color-text);
22
46
  font-size: var(--sigvelo-text-prose);
@@ -33,10 +57,9 @@
33
57
  .plan__content {
34
58
  display: flex;
35
59
  flex-direction: column;
36
- gap: var(--sigvelo-layout-gutter);
60
+ gap: var(--sigvelo-spacing-4);
37
61
  margin: 0;
38
- padding-block: var(--sigvelo-layout-gutter);
39
- padding-inline: 0;
62
+ padding: 0;
40
63
  list-style: none;
41
64
  }
42
65
 
@@ -90,13 +113,13 @@
90
113
  block-size: var(--sigvelo-spacing-3);
91
114
  }
92
115
 
93
- .plan__step[data-status="complete"] .plan__step-indicator {
116
+ .plan__step[data-status="complete"] .plan__step-indicator:not([data-variant="plain"]) {
94
117
  color: var(--sigvelo-color-success-text-on-bg);
95
118
  background-color: var(--sigvelo-color-success-bg);
96
119
  border-color: var(--sigvelo-color-success-bg);
97
120
  }
98
121
 
99
- .plan__step[data-status="active"] .plan__step-indicator {
122
+ .plan__step[data-status="active"] .plan__step-indicator:not([data-variant="plain"]) {
100
123
  color: var(--sigvelo-color-primary-text-on-subtle);
101
124
  background-color: var(--sigvelo-color-primary-bg-subtle);
102
125
  border-color: var(--sigvelo-color-primary-border-muted);
@@ -120,6 +143,101 @@
120
143
  line-height: var(--sigvelo-leading-normal);
121
144
  }
122
145
 
146
+ .plan--card .plan__step-title,
147
+ .plan-summary__content .plan__step-title {
148
+ font-weight: var(--sigvelo-font-weight-normal);
149
+ line-height: var(--sigvelo-leading-normal);
150
+ }
151
+
152
+ .plan__step-body {
153
+ min-inline-size: 0;
154
+ }
155
+
156
+ .plan__step-trigger {
157
+ display: flex;
158
+ align-items: start;
159
+ gap: var(--sigvelo-spacing-3);
160
+ inline-size: 100%;
161
+ padding: 0;
162
+ font: inherit;
163
+ text-align: start;
164
+ color: inherit;
165
+ background: transparent;
166
+ border: none;
167
+ border-radius: var(--sigvelo-radius-sm);
168
+ cursor: pointer;
169
+ }
170
+
171
+ .plan__step-trigger > svg {
172
+ flex: none;
173
+ inline-size: var(--sigvelo-spacing-4);
174
+ block-size: var(--sigvelo-spacing-4);
175
+ margin-block-start: var(--sigvelo-spacing-1);
176
+ margin-inline-start: auto;
177
+ color: var(--sigvelo-color-text-muted);
178
+ transition: rotate var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
179
+ }
180
+
181
+ .plan__step-trigger[data-panel-open] > svg {
182
+ rotate: 180deg;
183
+ }
184
+
185
+ .plan__step-trigger:focus-visible {
186
+ outline: var(--sigvelo-focus-ring);
187
+ outline-offset: var(--sigvelo-focus-offset);
188
+ }
189
+
190
+ .plan__step-details > div {
191
+ padding-block-start: var(--sigvelo-spacing-2);
192
+ color: var(--sigvelo-color-text-muted);
193
+ font-size: var(--sigvelo-text-meta);
194
+ line-height: var(--sigvelo-leading-normal);
195
+ }
196
+
197
+ .plan-result {
198
+ min-inline-size: 0;
199
+ container-type: inline-size;
200
+ }
201
+
202
+ .plan-result__table {
203
+ overflow: auto;
204
+ max-inline-size: 100%;
205
+ border-radius: var(--sigvelo-radius-md);
206
+ }
207
+
208
+ .plan-result__table:focus-visible {
209
+ outline: var(--sigvelo-focus-ring);
210
+ outline-offset: var(--sigvelo-focus-offset);
211
+ }
212
+
213
+ .plan-result [data-streamdown="table"] {
214
+ table-layout: fixed;
215
+ background-color: var(--sigvelo-color-surface-sunken);
216
+ }
217
+
218
+ .plan-result :is([data-streamdown="table-header-cell"], [data-streamdown="table-cell"]) {
219
+ padding: var(--sigvelo-spacing-3);
220
+ white-space: normal;
221
+ line-height: var(--sigvelo-leading-normal);
222
+ }
223
+
224
+ .plan-result [data-streamdown="inline-code"] {
225
+ color: var(--sigvelo-color-text);
226
+ background-color: var(--sigvelo-color-neutral-bg-subtle);
227
+ box-decoration-break: clone;
228
+ }
229
+
230
+ .plan-result [data-streamdown="table"] [data-streamdown="inline-code"] {
231
+ white-space: nowrap;
232
+ }
233
+
234
+ @container (max-width: 28rem) {
235
+ .plan-result [data-streamdown="table"] {
236
+ table-layout: auto;
237
+ min-inline-size: 32rem;
238
+ }
239
+ }
240
+
123
241
  .plan-summary {
124
242
  display: inline-block;
125
243
  font-family: inherit;
@@ -129,27 +247,39 @@
129
247
  display: inline-flex;
130
248
  align-items: center;
131
249
  gap: var(--sigvelo-spacing-1-5);
250
+ min-block-size: var(--sigvelo-spacing-8);
132
251
  padding-block: var(--sigvelo-spacing-1);
133
- padding-inline: var(--sigvelo-spacing-2-5);
134
- color: var(--sigvelo-color-text);
252
+ padding-inline: var(--sigvelo-spacing-2);
253
+ font-family: inherit;
254
+ color: var(--sigvelo-color-text-muted);
135
255
  font-size: var(--sigvelo-text-prose);
256
+ font-weight: var(--sigvelo-font-weight-normal);
136
257
  line-height: var(--sigvelo-leading-snug);
137
- background-color: var(--sigvelo-color-surface-raised);
138
- border: var(--sigvelo-border-width) var(--sigvelo-border-style)
139
- var(--sigvelo-color-neutral-border-subtle);
140
- border-radius: var(--sigvelo-radius-full);
258
+ background-color: transparent;
259
+ border: none;
260
+ border-radius: var(--sigvelo-radius-md);
261
+ cursor: pointer;
141
262
  }
142
263
 
143
- .plan-summary__trigger:hover {
144
- background-color: color-mix(
145
- in oklab,
146
- var(--sigvelo-color-surface-raised),
147
- var(--sigvelo-color-text) 5%
148
- );
264
+ .plan-summary__trigger:is(:hover, [data-popup-open]):not(:disabled) {
265
+ color: var(--sigvelo-color-text);
266
+ background-color: var(--sigvelo-color-neutral-bg-subtle);
267
+ }
268
+
269
+ .plan-summary__trigger:focus-visible {
270
+ outline: var(--sigvelo-focus-ring);
271
+ outline-offset: var(--sigvelo-focus-offset);
149
272
  }
150
273
 
151
274
  .plan-summary__trigger svg {
152
275
  flex: none;
276
+ inline-size: var(--sigvelo-spacing-3-5);
277
+ block-size: var(--sigvelo-spacing-3-5);
278
+ transition: rotate var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
279
+ }
280
+
281
+ .plan-summary__trigger[data-popup-open] svg {
282
+ rotate: 180deg;
153
283
  }
154
284
 
155
285
  .plan-summary__trigger-label {
@@ -159,13 +289,20 @@
159
289
 
160
290
  .plan-summary__content {
161
291
  /* Popover reading width. Not --sigvelo-layout-sidebar. */
162
- min-inline-size: 16rem;
163
- max-inline-size: min(24rem, calc(100dvi - var(--sigvelo-spacing-8)));
292
+ inline-size: min(22rem, var(--available-width));
293
+ min-inline-size: 0;
294
+ max-inline-size: calc(100dvi - var(--sigvelo-spacing-8));
164
295
  padding: 0;
165
296
  font-family: inherit;
166
297
  color: var(--sigvelo-color-text);
167
298
  }
168
299
 
300
+ .plan-summary__content > .plan {
301
+ padding: var(--sigvelo-spacing-4);
302
+ background-color: transparent;
303
+ border: none;
304
+ }
305
+
169
306
  @media (forced-colors: active) {
170
307
  .plan__step-indicator {
171
308
  border: var(--sigvelo-border-style) var(--sigvelo-border-width) CanvasText;
@@ -1,5 +1,5 @@
1
1
  import { n as isWorkspacePathWithinRoot } from "./workspace-path-TZggP-u4.js";
2
- import { readWorkspaceFile } from "./components/agents-sdk/WorkspaceFileTransfer.js";
2
+ import { i as readWorkspaceFile } from "./WorkspaceFileTransfer-D2cOoVyO.js";
3
3
  import { c } from "react/compiler-runtime";
4
4
  import * as React from "react";
5
5
  //#region src/components/_internal/workspace-drag.ts
@@ -2,11 +2,11 @@ import { g as ChevronRightIcon, gt as XIcon, h as ChevronLeftIcon } from "./icon
2
2
  import { Button } from "./components/foundations/Button.js";
3
3
  import { Dialog } from "./components/foundations/Dialog.js";
4
4
  import { i as workspaceBasename } from "./workspace-path-TZggP-u4.js";
5
- import { i as PortalContext } from "./context-Ddsp8HgD.js";
5
+ import { g as workspaceFileCommandForKey } from "./WorkspaceFileTransfer-D2cOoVyO.js";
6
+ import { c as PortalContext } from "./context-BWJpR084.js";
6
7
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
7
8
  import { a as hasModifier, r as FileGridArtwork, t as ComputerFileThumbnail } from "./ComputerFileThumbnail-CXHy127c.js";
8
9
  import { ContextMenu } from "./components/foundations/ContextMenu.js";
9
- import { workspaceFileCommandForKey } from "./components/agents-sdk/WorkspaceFileCommands.js";
10
10
  import { r as WorkspacePreviewFrame } from "./workspace-media-preview-B4iB5Tvi.js";
11
11
  import { c } from "react/compiler-runtime";
12
12
  import * as React from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.69.0",
3
+ "version": "0.71.0",
4
4
  "description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
5
5
  "homepage": "https://design-system.sigvelo.com",
6
6
  "bugs": {
@@ -55,7 +55,7 @@
55
55
  "streamdown": "^2.7.0",
56
56
  "unist-util-visit": "^5.1.0",
57
57
  "yet-another-react-lightbox": "^3.32.2",
58
- "@mcp-b/design-tokens": "0.69.0"
58
+ "@mcp-b/design-tokens": "0.71.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@ai-sdk/react": "^4.0.136",
@@ -1,34 +0,0 @@
1
- import { ComponentPropsWithRef, ReactNode } from "react";
2
- //#region src/components/general-purpose/WallpaperPicker.d.ts
3
- /** One host-supplied background. */
4
- interface WallpaperOption {
5
- /** Stable identifier stored by the consuming application. */
6
- value: string;
7
- /** Visible and accessible name for this background. */
8
- label: string;
9
- /** Trusted CSS background shorthand supplied by the host. */
10
- background: string;
11
- /**
12
- * The same picture's dark variant, as a background shorthand. It fades in
13
- * over `background` while the document is dark: `data-theme="dark"`, or no
14
- * `data-theme` and a dark OS.
15
- */
16
- darkBackground?: string;
17
- }
18
- /** Props for {@link WallpaperPicker}. */
19
- interface WallpaperPickerProps extends Omit<ComponentPropsWithRef<"div">, "children" | "aria-label"> {
20
- /** References a visible label for the thumbnail radio group. Defaults to its heading. */
21
- "aria-labelledby"?: string;
22
- /** Host-owned backgrounds. The picker owns no catalog or persistent state. */
23
- wallpapers: readonly WallpaperOption[];
24
- /** The selected wallpaper identifier. */
25
- value: string;
26
- /** Selection applies immediately. Arrow keys also select a background. */
27
- onValueChange: (value: string) => void;
28
- /** Host controls beside the current preview, such as a theme preference. */
29
- selectionControls?: ReactNode;
30
- }
31
- /** A wallpaper preview and thumbnail gallery over the shared radio-group contract. */
32
- declare function WallpaperPicker({ wallpapers, value, onValueChange, selectionControls, className, "aria-labelledby": ariaLabelledBy, ...props }: WallpaperPickerProps): import("react").JSX.Element;
33
- //#endregion
34
- export { WallpaperPicker as n, WallpaperPickerProps as r, WallpaperOption as t };
@@ -1,17 +0,0 @@
1
- import * as React from "react";
2
- //#region src/components/_internal/computer-apps/automations-host.ts
3
- const ComputerAutomationsContext = React.createContext(null);
4
- function useComputerAutomationsContext() {
5
- const value = React.use(ComputerAutomationsContext);
6
- if (!value) throw new Error("Automations and Calendar need ComputerAutomations.Host.");
7
- return value;
8
- }
9
- /** A formatter in the employee's working timezone. */
10
- function zonedFormat(timeZone, options) {
11
- return new Intl.DateTimeFormat("en-US", {
12
- ...options,
13
- timeZone
14
- });
15
- }
16
- //#endregion
17
- export { useComputerAutomationsContext as n, zonedFormat as r, ComputerAutomationsContext as t };
@@ -1,43 +0,0 @@
1
- import { c } from "react/compiler-runtime";
2
- import * as React from "react";
3
- //#region src/components/_internal/agent-computer/context.ts
4
- /** The computer's controller: its state and every transition between states. */
5
- const ComputerContext = React.createContext(null);
6
- function useComputer() {
7
- return React.use(ComputerContext);
8
- }
9
- /**
10
- * A slice of the computer's state. `select` must return a primitive or a value
11
- * the controller caches, so an unrelated change leaves this component alone.
12
- */
13
- function useComputerSlice(select) {
14
- const $ = c(3);
15
- const computer = useComputer();
16
- let t0;
17
- if ($[0] !== computer || $[1] !== select) {
18
- t0 = () => select(computer);
19
- $[0] = computer;
20
- $[1] = select;
21
- $[2] = t0;
22
- } else t0 = $[2];
23
- return React.useSyncExternalStore(computer.subscribe, t0);
24
- }
25
- /** The window an app part is rendered in. Memoized per window. */
26
- const WindowContext = React.createContext(null);
27
- /**
28
- * Whether that window is key, apart from the window itself: focus moves on
29
- * every window action, and only the parts that draw it should render again.
30
- */
31
- const WindowActiveContext = React.createContext(null);
32
- /** The computer's actions: one object for the computer's lifetime. */
33
- const ActionsContext = React.createContext(null);
34
- /** Where a running app registers its keyboard commands and quit guard. */
35
- const HandlersContext = React.createContext(null);
36
- /**
37
- * The element an overlay inside the computer portals into, so it stays on the
38
- * computer's screen above its windows: null until the computer has mounted
39
- * it, which a Base UI portal waits for, and undefined outside a computer.
40
- */
41
- const PortalContext = React.createContext(void 0);
42
- //#endregion
43
- export { WindowActiveContext as a, useComputerSlice as c, PortalContext as i, ComputerContext as n, WindowContext as o, HandlersContext as r, useComputer as s, ActionsContext as t };