@mcp-b/react-components 0.12.0 → 0.13.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 (229) hide show
  1. package/dist/{AgentChat-CRmsKg9B.d.ts → AgentChat-Br6tKEl8.d.ts} +29 -5
  2. package/dist/{Button-Ct5I6aTu.d.ts → Button-FX_hpqxm.d.ts} +8 -11
  3. package/dist/{CodeBlock-XNQOupQ3.js → CodeBlock-BUFXG8HW.js} +22 -12
  4. package/dist/{CodeBlock-CxQXv3C4.d.ts → CodeBlock-DUh9WOGo.d.ts} +13 -7
  5. package/dist/{Combobox-D9anamNr.d.ts → Combobox-B9Fcd6q-.d.ts} +4 -14
  6. package/dist/{FileTree-wMyZhhHO.js → FileTree-mpEIcfzA.js} +1 -1
  7. package/dist/{Menu-BLhnNnRK.d.ts → Menu-Bgu-ufb5.d.ts} +26 -65
  8. package/dist/{ModelSelector-BB-xB-Es.js → ModelSelector-DVgVBdvw.js} +7 -7
  9. package/dist/{PromptInput-IyM6ZETj.d.ts → PromptInput-p5KmOmt1.d.ts} +302 -46
  10. package/dist/Select-Dl_vF_Bt.d.ts +213 -0
  11. package/dist/{Tabs-D9EAq09D.d.ts → Tabs-3Zc4tb9D.d.ts} +9 -6
  12. package/dist/{ThinkChat-B3wYahor.js → ThinkChat-7DQ2CogF.js} +34 -2
  13. package/dist/{ThinkChatActivity-F4KFPcJA.d.ts → ThinkChatActivity-Cuk28Js_.d.ts} +1 -1
  14. package/dist/{attachment-preview-ChtC3HiU.js → attachment-preview-DIs50Q0h.js} +3 -3
  15. package/dist/components/Accordion.d.ts +17 -6
  16. package/dist/components/Accordion.js +23 -36
  17. package/dist/components/Activity.d.ts +5 -5
  18. package/dist/components/Activity.js +9 -9
  19. package/dist/components/AgentChat.d.ts +1 -1
  20. package/dist/components/AgentChat.js +304 -116
  21. package/dist/components/AgentConnection.js +2 -2
  22. package/dist/components/AlertDialog.d.ts +40 -32
  23. package/dist/components/AlertDialog.js +46 -39
  24. package/dist/components/Artifact.d.ts +1 -1
  25. package/dist/components/Artifact.js +5 -5
  26. package/dist/components/Autocomplete.js +10 -2
  27. package/dist/components/Avatar.d.ts +2 -2
  28. package/dist/components/Avatar.js +3 -3
  29. package/dist/components/Badge.d.ts +11 -14
  30. package/dist/components/Badge.js +10 -18
  31. package/dist/components/BrowserLiveView.js +26 -36
  32. package/dist/components/BrowserReplay.js +4 -4
  33. package/dist/components/BrowserRunPanel.js +1 -1
  34. package/dist/components/Button.d.ts +2 -2
  35. package/dist/components/Button.js +7 -30
  36. package/dist/components/ChainOfThought.d.ts +5 -5
  37. package/dist/components/ChainOfThought.js +8 -5
  38. package/dist/components/ChatGptSignInScreen.js +3 -3
  39. package/dist/components/Checkbox.d.ts +10 -2
  40. package/dist/components/Checkbox.js +13 -6
  41. package/dist/components/CheckboxGroup.d.ts +6 -6
  42. package/dist/components/CheckboxGroup.js +6 -6
  43. package/dist/components/CodeBlock.d.ts +1 -1
  44. package/dist/components/CodeBlock.js +1 -1
  45. package/dist/components/CodexModelSelector.d.ts +23 -28
  46. package/dist/components/CodexModelSelector.js +116 -94
  47. package/dist/components/Collapsible.d.ts +2 -4
  48. package/dist/components/Collapsible.js +9 -7
  49. package/dist/components/Combobox.d.ts +2 -2
  50. package/dist/components/Combobox.js +20 -22
  51. package/dist/components/Commit.d.ts +5 -5
  52. package/dist/components/Commit.js +6 -6
  53. package/dist/components/Context.js +5 -1
  54. package/dist/components/ContextMenu.d.ts +20 -72
  55. package/dist/components/ContextMenu.js +46 -56
  56. package/dist/components/Conversation.d.ts +1 -1
  57. package/dist/components/Conversation.js +1 -1
  58. package/dist/components/Dialog.d.ts +38 -30
  59. package/dist/components/Dialog.js +46 -34
  60. package/dist/components/EnvironmentVariables.d.ts +1 -1
  61. package/dist/components/EnvironmentVariables.js +5 -5
  62. package/dist/components/Field.d.ts +3 -3
  63. package/dist/components/Field.js +7 -8
  64. package/dist/components/Fieldset.d.ts +2 -2
  65. package/dist/components/Fieldset.js +2 -2
  66. package/dist/components/FileTree.js +1 -1
  67. package/dist/components/Label.d.ts +1 -1
  68. package/dist/components/Label.js +1 -1
  69. package/dist/components/McpServerPicker.js +21 -19
  70. package/dist/components/Menu.d.ts +2 -2
  71. package/dist/components/Menu.js +39 -49
  72. package/dist/components/Menubar.d.ts +16 -52
  73. package/dist/components/Menubar.js +44 -56
  74. package/dist/components/Message.d.ts +1 -1
  75. package/dist/components/Message.js +6 -6
  76. package/dist/components/MessageScroller.d.ts +1 -1
  77. package/dist/components/MessageScroller.js +1 -1
  78. package/dist/components/Meter.js +5 -0
  79. package/dist/components/ModelSelector.d.ts +1 -1
  80. package/dist/components/ModelSelector.js +1 -1
  81. package/dist/components/NavigationMenu.d.ts +3 -14
  82. package/dist/components/NavigationMenu.js +22 -38
  83. package/dist/components/NumberField.js +6 -0
  84. package/dist/components/Popover.d.ts +21 -44
  85. package/dist/components/Popover.js +33 -23
  86. package/dist/components/PreviewCard.d.ts +20 -18
  87. package/dist/components/PreviewCard.js +30 -20
  88. package/dist/components/PricingPage.js +30 -29
  89. package/dist/components/Progress.d.ts +7 -3
  90. package/dist/components/Progress.js +9 -4
  91. package/dist/components/PromptInput.d.ts +2 -2
  92. package/dist/components/PromptInput.js +139 -54
  93. package/dist/components/Queue.d.ts +7 -7
  94. package/dist/components/Queue.js +6 -6
  95. package/dist/components/RadioGroup.d.ts +10 -9
  96. package/dist/components/RadioGroup.js +8 -9
  97. package/dist/components/Reasoning.d.ts +4 -4
  98. package/dist/components/Reasoning.js +10 -6
  99. package/dist/components/ScrollArea.d.ts +2 -9
  100. package/dist/components/ScrollArea.js +5 -23
  101. package/dist/components/Select.d.ts +2 -2
  102. package/dist/components/Select.js +100 -134
  103. package/dist/components/Slider.d.ts +10 -7
  104. package/dist/components/Slider.js +12 -11
  105. package/dist/components/Sources.d.ts +4 -4
  106. package/dist/components/Sources.js +8 -5
  107. package/dist/components/Stepper.js +1 -1
  108. package/dist/components/Switch.d.ts +6 -3
  109. package/dist/components/Switch.js +7 -4
  110. package/dist/components/Tabs.d.ts +2 -2
  111. package/dist/components/Tabs.js +9 -4
  112. package/dist/components/Task.d.ts +4 -4
  113. package/dist/components/Task.js +10 -6
  114. package/dist/components/Terminal.d.ts +2 -2
  115. package/dist/components/Terminal.js +5 -5
  116. package/dist/components/TestResults.d.ts +4 -4
  117. package/dist/components/TestResults.js +5 -5
  118. package/dist/components/ThinkChat.d.ts +9 -2
  119. package/dist/components/ThinkChat.js +1 -1
  120. package/dist/components/ThinkChatActivity.d.ts +1 -1
  121. package/dist/components/ThinkChatActivity.js +1 -1
  122. package/dist/components/ThinkChatToolPanels.js +8 -8
  123. package/dist/components/ThinkExecutionWorkbench.js +28 -28
  124. package/dist/components/ThinkFullApp.js +8 -8
  125. package/dist/components/ThinkThreadPicker.js +1 -1
  126. package/dist/components/ThinkThreadShell.js +5 -5
  127. package/dist/components/Toast.js +7 -0
  128. package/dist/components/ToggleGroup.d.ts +6 -2
  129. package/dist/components/ToggleGroup.js +6 -2
  130. package/dist/components/Toolbar.js +6 -0
  131. package/dist/components/Tooltip.d.ts +36 -27
  132. package/dist/components/Tooltip.js +45 -29
  133. package/dist/components/WebPreview.d.ts +1 -1
  134. package/dist/components/WebPreview.js +3 -3
  135. package/dist/components/WorkspaceExplorer.d.ts +6 -8
  136. package/dist/components/WorkspaceExplorer.js +6 -6
  137. package/dist/components/icons.d.ts +2 -2
  138. package/dist/components/icons.js +2 -2
  139. package/dist/{copy-button-C6JSKtFE.js → copy-button-DUMLYdsk.js} +7 -6
  140. package/dist/{copy-button-BKXqGiNm.d.ts → copy-button-DtPMgN7e.d.ts} +3 -2
  141. package/dist/icons-Ba9THQKz.js +64 -0
  142. package/dist/icons-CUCz_Sft.d.ts +210 -0
  143. package/dist/styles/accessibility.css +14 -0
  144. package/dist/styles/accordion.css +21 -61
  145. package/dist/styles/activity.css +23 -58
  146. package/dist/styles/agent-chat.css +45 -4
  147. package/dist/styles/agent-connection.css +8 -10
  148. package/dist/styles/alert-dialog.css +20 -26
  149. package/dist/styles/artifact.css +6 -6
  150. package/dist/styles/attachment-preview.css +1 -1
  151. package/dist/styles/autocomplete.css +5 -170
  152. package/dist/styles/avatar.css +8 -8
  153. package/dist/styles/badge.css +8 -10
  154. package/dist/styles/base-ui-motion.css +176 -0
  155. package/dist/styles/base.css +19 -25
  156. package/dist/styles/browser-live-view.css +7 -7
  157. package/dist/styles/browser-replay.css +5 -5
  158. package/dist/styles/browser-run-panel.css +5 -5
  159. package/dist/styles/button.css +48 -43
  160. package/dist/styles/card.css +3 -5
  161. package/dist/styles/chain-of-thought.css +14 -70
  162. package/dist/styles/chatgpt-sign-in-screen.css +3 -3
  163. package/dist/styles/checkbox-group.css +1 -1
  164. package/dist/styles/checkbox.css +3 -7
  165. package/dist/styles/code-block.css +10 -10
  166. package/dist/styles/codex-model-selector.css +33 -44
  167. package/dist/styles/collapsible.css +11 -27
  168. package/dist/styles/combobox.css +3 -149
  169. package/dist/styles/commit.css +19 -35
  170. package/dist/styles/context-menu.css +1 -77
  171. package/dist/styles/context.css +12 -12
  172. package/dist/styles/conversation.css +7 -7
  173. package/dist/styles/dialog.css +34 -55
  174. package/dist/styles/environment-variables.css +10 -10
  175. package/dist/styles/field.css +16 -58
  176. package/dist/styles/fieldset.css +2 -2
  177. package/dist/styles/file-tree.css +7 -9
  178. package/dist/styles/index.css +8 -1
  179. package/dist/styles/input.css +1 -51
  180. package/dist/styles/label.css +2 -2
  181. package/dist/styles/marker.css +2 -4
  182. package/dist/styles/mcp-server-picker.css +5 -5
  183. package/dist/styles/menu.css +6 -153
  184. package/dist/styles/menubar.css +6 -105
  185. package/dist/styles/message-scroller.css +1 -1
  186. package/dist/styles/message.css +86 -8
  187. package/dist/styles/meter.css +4 -20
  188. package/dist/styles/model-selector.css +13 -13
  189. package/dist/styles/navigation-menu.css +14 -54
  190. package/dist/styles/number-field.css +8 -23
  191. package/dist/styles/popover.css +13 -68
  192. package/dist/styles/preview-card.css +5 -46
  193. package/dist/styles/pricing-page.css +43 -43
  194. package/dist/styles/progress.css +7 -16
  195. package/dist/styles/prompt-input.css +95 -44
  196. package/dist/styles/queue.css +12 -28
  197. package/dist/styles/radio.css +4 -8
  198. package/dist/styles/reasoning.css +3 -62
  199. package/dist/styles/recipes.css +475 -0
  200. package/dist/styles/select.css +7 -103
  201. package/dist/styles/shell.css +3 -3
  202. package/dist/styles/slider.css +5 -7
  203. package/dist/styles/sources.css +9 -66
  204. package/dist/styles/stepper.css +16 -14
  205. package/dist/styles/streamdown.css +9 -9
  206. package/dist/styles/switch.css +4 -7
  207. package/dist/styles/tabs.css +7 -8
  208. package/dist/styles/task.css +13 -42
  209. package/dist/styles/terminal.css +7 -7
  210. package/dist/styles/test-results.css +21 -37
  211. package/dist/styles/think-execution-workbench.css +23 -23
  212. package/dist/styles/think-full-app.css +12 -20
  213. package/dist/styles/think-resize-handle.css +2 -2
  214. package/dist/styles/think-thread-picker.css +19 -10
  215. package/dist/styles/think-thread-shell.css +7 -7
  216. package/dist/styles/toast.css +14 -25
  217. package/dist/styles/toggle-group.css +16 -14
  218. package/dist/styles/toggle.css +14 -15
  219. package/dist/styles/toolbar.css +13 -25
  220. package/dist/styles/tooltip.css +6 -16
  221. package/dist/styles/web-preview.css +15 -15
  222. package/dist/styles/workspace-explorer.css +14 -13
  223. package/dist/utils/codex-model-catalog.d.ts +142 -0
  224. package/dist/utils/codex-model-catalog.js +112 -0
  225. package/dist/utils/structured-code.d.ts +1 -1
  226. package/package.json +8 -2
  227. package/dist/Select-CRsKCJ9x.d.ts +0 -200
  228. package/dist/icons-CbjtbIJK.d.ts +0 -51
  229. package/dist/icons-D2Q5n5C1.js +0 -291
@@ -1,9 +1,9 @@
1
1
  import { t as cx } from "../class-names-9UtZwb0J.js";
2
- import { A as SearchIcon, h as FileIcon, k as RefreshIcon, n as ArrowLeftIcon } from "../icons-D2Q5n5C1.js";
2
+ import { A as RefreshIcon, h as FileIcon, j as SearchIcon, n as ArrowLeftIcon } from "../icons-Ba9THQKz.js";
3
3
  import { Button } from "./Button.js";
4
- import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../CodeBlock-XNQOupQ3.js";
4
+ import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../CodeBlock-BUFXG8HW.js";
5
5
  import { Input } from "./Input.js";
6
- import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../FileTree-wMyZhhHO.js";
6
+ import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../FileTree-mpEIcfzA.js";
7
7
  import * as React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/components/WorkspaceExplorer.tsx
@@ -92,7 +92,7 @@ function useWorkspace({ source, root = "/" }) {
92
92
  markLoading
93
93
  ]);
94
94
  const loadInfo = React.useCallback(async () => {
95
- if (!("getWorkspaceInfo" in source)) return;
95
+ if (!source.getWorkspaceInfo) return;
96
96
  try {
97
97
  setInfo(await source.getWorkspaceInfo());
98
98
  } catch {
@@ -245,7 +245,7 @@ function WorkspaceExplorer({ workspace, className, title = "Workspace", actions,
245
245
  children: [showFileView ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button, {
246
246
  variant: "ghost",
247
247
  color: "neutral",
248
- size: "xs",
248
+ size: "icon-xs",
249
249
  onClick: () => setView("tree"),
250
250
  "aria-label": "Back to files",
251
251
  children: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" })
@@ -264,7 +264,7 @@ function WorkspaceExplorer({ workspace, className, title = "Workspace", actions,
264
264
  children: [actions, /* @__PURE__ */ jsx(Button, {
265
265
  variant: "ghost",
266
266
  color: "neutral",
267
- size: "xs",
267
+ size: "icon-xs",
268
268
  onClick: refresh,
269
269
  disabled: isLoading,
270
270
  "aria-label": "Refresh workspace",
@@ -1,2 +1,2 @@
1
- import { A as RefreshIcon, C as MinusIcon, D as PencilIcon, E as PauseIcon, F as TerminalIcon, I as WarningIcon, L as WrenchIcon, M as SidebarIcon, N as SpinnerIcon, O as PlayIcon, P as SquareIcon, R as XIcon, S as MaximizeIcon, T as PaperclipIcon, _ as FolderOpenIcon, a as CheckIcon, b as InfoIcon, c as ChevronRightIcon, d as DownloadIcon, f as EllipsisIcon, g as FolderIcon, h as FileIcon, i as ArrowUpIcon, j as SearchIcon, k as PlusIcon, l as CopyIcon, m as EyeOffIcon, n as ArrowLeftIcon, o as ChevronDownIcon, p as EyeIcon, r as ArrowRightIcon, s as ChevronLeftIcon, t as ArrowDownIcon, u as DotIcon, v as IconProps, w as MonitorIcon, x as LinkIcon, y as ImageIcon } from "../icons-CbjtbIJK.js";
2
- export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
1
+ import { A as PlusIcon, B as XIcon, C as MicrophoneIcon, D as PauseIcon, E as PaperclipIcon, F as SquareIcon, I as StopIcon, L as TerminalIcon, M as SearchIcon, N as SidebarIcon, O as PencilIcon, P as SpinnerIcon, R as WarningIcon, S as MaximizeIcon, T as MonitorIcon, _ as FolderOpenIcon, a as CheckIcon, b as InfoIcon, c as ChevronRightIcon, d as DownloadIcon, f as EllipsisIcon, g as FolderIcon, h as FileIcon, i as ArrowUpIcon, j as RefreshIcon, k as PlayIcon, l as CopyIcon, m as EyeOffIcon, n as ArrowLeftIcon, o as ChevronDownIcon, p as EyeIcon, r as ArrowRightIcon, s as ChevronLeftIcon, t as ArrowDownIcon, u as DotIcon, v as IconProps, w as MinusIcon, x as LinkIcon, y as ImageIcon, z as WrenchIcon } from "../icons-CUCz_Sft.js";
2
+ export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MicrophoneIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, StopIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
@@ -1,2 +1,2 @@
1
- import { A as SearchIcon, C as MonitorIcon, D as PlayIcon, E as PencilIcon, F as WarningIcon, I as WrenchIcon, L as XIcon, M as SpinnerIcon, N as SquareIcon, O as PlusIcon, P as TerminalIcon, S as MinusIcon, T as PauseIcon, _ as FolderOpenIcon, a as CheckIcon, b as LinkIcon, c as ChevronRightIcon, d as DownloadIcon, f as EllipsisIcon, g as FolderIcon, h as FileIcon, i as ArrowUpIcon, j as SidebarIcon, k as RefreshIcon, l as CopyIcon, m as EyeOffIcon, n as ArrowLeftIcon, o as ChevronDownIcon, p as EyeIcon, r as ArrowRightIcon, s as ChevronLeftIcon, t as ArrowDownIcon, u as DotIcon, v as ImageIcon, w as PaperclipIcon, x as MaximizeIcon, y as InfoIcon } from "../icons-D2Q5n5C1.js";
2
- export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
1
+ import { A as RefreshIcon, C as MinusIcon, D as PencilIcon, E as PauseIcon, F as StopIcon, I as TerminalIcon, L as WarningIcon, M as SidebarIcon, N as SpinnerIcon, O as PlayIcon, P as SquareIcon, R as WrenchIcon, S as MicrophoneIcon, T as PaperclipIcon, _ as FolderOpenIcon, a as CheckIcon, b as LinkIcon, c as ChevronRightIcon, d as DownloadIcon, f as EllipsisIcon, g as FolderIcon, h as FileIcon, i as ArrowUpIcon, j as SearchIcon, k as PlusIcon, l as CopyIcon, m as EyeOffIcon, n as ArrowLeftIcon, o as ChevronDownIcon, p as EyeIcon, r as ArrowRightIcon, s as ChevronLeftIcon, t as ArrowDownIcon, u as DotIcon, v as ImageIcon, w as MonitorIcon, x as MaximizeIcon, y as InfoIcon, z as XIcon } from "../icons-Ba9THQKz.js";
2
+ export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MicrophoneIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, StopIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
@@ -1,10 +1,10 @@
1
- import { a as CheckIcon, l as CopyIcon } from "./icons-D2Q5n5C1.js";
1
+ import { a as CheckIcon, l as CopyIcon } from "./icons-Ba9THQKz.js";
2
2
  import { Button } from "./components/Button.js";
3
- import { Tooltip, TooltipPopup, TooltipPortal, TooltipPositioner, TooltipTrigger } from "./components/Tooltip.js";
3
+ import { Tooltip } from "./components/Tooltip.js";
4
4
  import * as React from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/_internal/copy-button.tsx
7
- function CopyButton({ label, text, timeout = 1500, stopPropagation = false, onCopy, onError, onClick, ...props }) {
7
+ function CopyButton({ label, tooltip = label, text, size = "icon", timeout = 1500, stopPropagation = false, onCopy, onError, onClick, ...props }) {
8
8
  const [copied, setCopied] = React.useState(false);
9
9
  const timeoutRef = React.useRef(null);
10
10
  React.useEffect(() => () => {
@@ -30,14 +30,15 @@ function CopyButton({ label, text, timeout = 1500, stopPropagation = false, onCo
30
30
  text,
31
31
  timeout
32
32
  ]);
33
- return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, { render: /* @__PURE__ */ jsx(Button, {
33
+ return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx(Button, {
34
+ type: "button",
34
35
  variant: "ghost",
35
- size: "icon",
36
+ size,
36
37
  "aria-label": label,
37
38
  ...props,
38
39
  onClick: handleClick,
39
40
  children: copied ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx(CopyIcon, {})
40
- }) }), /* @__PURE__ */ jsx(TooltipPortal, { children: /* @__PURE__ */ jsx(TooltipPositioner, { children: /* @__PURE__ */ jsx(TooltipPopup, { children: copied ? "Copied" : label }) }) })] });
41
+ }) }), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: copied ? "Copied" : tooltip }) }) })] });
41
42
  }
42
43
  //#endregion
43
44
  export { CopyButton as t };
@@ -1,10 +1,11 @@
1
- import { r as ButtonProps } from "./Button-Ct5I6aTu.js";
1
+ import { r as ButtonProps } from "./Button-FX_hpqxm.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/_internal/copy-button.d.ts
5
- interface CopyButtonProps extends Omit<ButtonProps, "children" | "variant" | "size" | "color" | "className" | "onClick" | "onError"> {
5
+ interface CopyButtonProps extends Omit<ButtonProps, "children" | "variant" | "color" | "className" | "onClick" | "onError"> {
6
6
  className?: string;
7
7
  label: string;
8
+ tooltip?: string;
8
9
  text: string;
9
10
  timeout?: number;
10
11
  stopPropagation?: boolean;
@@ -0,0 +1,64 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Check, ChevronDown, ChevronLeft, ChevronRight, CircleStop, Copy, Dot, Download, Ellipsis, Eye, EyeOff, File, Folder, FolderOpen, Image, Info, Link2, LoaderCircle, Maximize2, Mic, Minus, Monitor, PanelLeft, Paperclip, Pause, Pencil, Play, Plus, RefreshCw, Search, Square, Terminal, TriangleAlert, Wrench, X } from "lucide-react";
3
+ //#region src/components/_internal/icons.tsx
4
+ function icon(Component) {
5
+ return function DesignSystemIcon({ size = 16, strokeWidth = 1.75, ...props }) {
6
+ return /* @__PURE__ */ jsx(Component, {
7
+ size,
8
+ strokeWidth,
9
+ "aria-hidden": "true",
10
+ focusable: "false",
11
+ ...props
12
+ });
13
+ };
14
+ }
15
+ const ChevronRightIcon = icon(ChevronRight);
16
+ const ChevronDownIcon = icon(ChevronDown);
17
+ const ChevronLeftIcon = icon(ChevronLeft);
18
+ const CheckIcon = icon(Check);
19
+ const XIcon = icon(X);
20
+ const PencilIcon = icon(Pencil);
21
+ const CopyIcon = icon(Copy);
22
+ const EyeIcon = icon(Eye);
23
+ const EyeOffIcon = icon(EyeOff);
24
+ const FolderIcon = icon(Folder);
25
+ const FolderOpenIcon = icon(FolderOpen);
26
+ const FileIcon = icon(File);
27
+ const PaperclipIcon = icon(Paperclip);
28
+ const MicrophoneIcon = icon(Mic);
29
+ const StopIcon = icon(CircleStop);
30
+ const PlusIcon = icon(Plus);
31
+ const MinusIcon = icon(Minus);
32
+ const PlayIcon = icon(Play);
33
+ const PauseIcon = icon(Pause);
34
+ const SquareIcon = icon(Square);
35
+ const ArrowLeftIcon = icon(ArrowLeft);
36
+ const ArrowRightIcon = icon(ArrowRight);
37
+ const ArrowDownIcon = icon(ArrowDown);
38
+ const ArrowUpIcon = icon(ArrowUp);
39
+ const DownloadIcon = icon(Download);
40
+ const RefreshIcon = icon(RefreshCw);
41
+ const DotIcon = icon(Dot);
42
+ const EllipsisIcon = icon(Ellipsis);
43
+ function SpinnerIcon({ className, size = 16, strokeWidth = 1.75, ...props }) {
44
+ return /* @__PURE__ */ jsx(LoaderCircle, {
45
+ size,
46
+ strokeWidth,
47
+ "aria-hidden": "true",
48
+ focusable: "false",
49
+ className: ["sigvelo-icon--spinner", className].filter(Boolean).join(" "),
50
+ ...props
51
+ });
52
+ }
53
+ const SearchIcon = icon(Search);
54
+ const SidebarIcon = icon(PanelLeft);
55
+ const TerminalIcon = icon(Terminal);
56
+ const LinkIcon = icon(Link2);
57
+ const WarningIcon = icon(TriangleAlert);
58
+ const WrenchIcon = icon(Wrench);
59
+ const InfoIcon = icon(Info);
60
+ const ImageIcon = icon(Image);
61
+ const MonitorIcon = icon(Monitor);
62
+ const MaximizeIcon = icon(Maximize2);
63
+ //#endregion
64
+ export { RefreshIcon as A, MinusIcon as C, PencilIcon as D, PauseIcon as E, StopIcon as F, TerminalIcon as I, WarningIcon as L, SidebarIcon as M, SpinnerIcon as N, PlayIcon as O, SquareIcon as P, WrenchIcon as R, MicrophoneIcon as S, PaperclipIcon as T, FolderOpenIcon as _, CheckIcon as a, LinkIcon as b, ChevronRightIcon as c, DownloadIcon as d, EllipsisIcon as f, FolderIcon as g, FileIcon as h, ArrowUpIcon as i, SearchIcon as j, PlusIcon as k, CopyIcon as l, EyeOffIcon as m, ArrowLeftIcon as n, ChevronDownIcon as o, EyeIcon as p, ArrowRightIcon as r, ChevronLeftIcon as s, ArrowDownIcon as t, DotIcon as u, ImageIcon as v, MonitorIcon as w, MaximizeIcon as x, InfoIcon as y, XIcon as z };
@@ -0,0 +1,210 @@
1
+ import { LucideProps } from "lucide-react";
2
+
3
+ //#region src/components/_internal/icons.d.ts
4
+ /**
5
+ * The design system's single icon adapter.
6
+ *
7
+ * Lucide supplies the artwork while this adapter owns the library-wide optical
8
+ * defaults and decorative semantics. Keeping the existing names here lets
9
+ * components share one icon language without coupling their public APIs to an
10
+ * icon vendor.
11
+ */
12
+ type IconProps = Omit<LucideProps, "ref">;
13
+ declare const ChevronRightIcon: ({
14
+ size,
15
+ strokeWidth,
16
+ ...props
17
+ }: IconProps) => import("react").JSX.Element;
18
+ declare const ChevronDownIcon: ({
19
+ size,
20
+ strokeWidth,
21
+ ...props
22
+ }: IconProps) => import("react").JSX.Element;
23
+ declare const ChevronLeftIcon: ({
24
+ size,
25
+ strokeWidth,
26
+ ...props
27
+ }: IconProps) => import("react").JSX.Element;
28
+ declare const CheckIcon: ({
29
+ size,
30
+ strokeWidth,
31
+ ...props
32
+ }: IconProps) => import("react").JSX.Element;
33
+ declare const XIcon: ({
34
+ size,
35
+ strokeWidth,
36
+ ...props
37
+ }: IconProps) => import("react").JSX.Element;
38
+ declare const PencilIcon: ({
39
+ size,
40
+ strokeWidth,
41
+ ...props
42
+ }: IconProps) => import("react").JSX.Element;
43
+ declare const CopyIcon: ({
44
+ size,
45
+ strokeWidth,
46
+ ...props
47
+ }: IconProps) => import("react").JSX.Element;
48
+ declare const EyeIcon: ({
49
+ size,
50
+ strokeWidth,
51
+ ...props
52
+ }: IconProps) => import("react").JSX.Element;
53
+ declare const EyeOffIcon: ({
54
+ size,
55
+ strokeWidth,
56
+ ...props
57
+ }: IconProps) => import("react").JSX.Element;
58
+ declare const FolderIcon: ({
59
+ size,
60
+ strokeWidth,
61
+ ...props
62
+ }: IconProps) => import("react").JSX.Element;
63
+ declare const FolderOpenIcon: ({
64
+ size,
65
+ strokeWidth,
66
+ ...props
67
+ }: IconProps) => import("react").JSX.Element;
68
+ declare const FileIcon: ({
69
+ size,
70
+ strokeWidth,
71
+ ...props
72
+ }: IconProps) => import("react").JSX.Element;
73
+ declare const PaperclipIcon: ({
74
+ size,
75
+ strokeWidth,
76
+ ...props
77
+ }: IconProps) => import("react").JSX.Element;
78
+ declare const MicrophoneIcon: ({
79
+ size,
80
+ strokeWidth,
81
+ ...props
82
+ }: IconProps) => import("react").JSX.Element;
83
+ declare const StopIcon: ({
84
+ size,
85
+ strokeWidth,
86
+ ...props
87
+ }: IconProps) => import("react").JSX.Element;
88
+ declare const PlusIcon: ({
89
+ size,
90
+ strokeWidth,
91
+ ...props
92
+ }: IconProps) => import("react").JSX.Element;
93
+ declare const MinusIcon: ({
94
+ size,
95
+ strokeWidth,
96
+ ...props
97
+ }: IconProps) => import("react").JSX.Element;
98
+ declare const PlayIcon: ({
99
+ size,
100
+ strokeWidth,
101
+ ...props
102
+ }: IconProps) => import("react").JSX.Element;
103
+ declare const PauseIcon: ({
104
+ size,
105
+ strokeWidth,
106
+ ...props
107
+ }: IconProps) => import("react").JSX.Element;
108
+ declare const SquareIcon: ({
109
+ size,
110
+ strokeWidth,
111
+ ...props
112
+ }: IconProps) => import("react").JSX.Element;
113
+ declare const ArrowLeftIcon: ({
114
+ size,
115
+ strokeWidth,
116
+ ...props
117
+ }: IconProps) => import("react").JSX.Element;
118
+ declare const ArrowRightIcon: ({
119
+ size,
120
+ strokeWidth,
121
+ ...props
122
+ }: IconProps) => import("react").JSX.Element;
123
+ declare const ArrowDownIcon: ({
124
+ size,
125
+ strokeWidth,
126
+ ...props
127
+ }: IconProps) => import("react").JSX.Element;
128
+ declare const ArrowUpIcon: ({
129
+ size,
130
+ strokeWidth,
131
+ ...props
132
+ }: IconProps) => import("react").JSX.Element;
133
+ declare const DownloadIcon: ({
134
+ size,
135
+ strokeWidth,
136
+ ...props
137
+ }: IconProps) => import("react").JSX.Element;
138
+ declare const RefreshIcon: ({
139
+ size,
140
+ strokeWidth,
141
+ ...props
142
+ }: IconProps) => import("react").JSX.Element;
143
+ declare const DotIcon: ({
144
+ size,
145
+ strokeWidth,
146
+ ...props
147
+ }: IconProps) => import("react").JSX.Element;
148
+ declare const EllipsisIcon: ({
149
+ size,
150
+ strokeWidth,
151
+ ...props
152
+ }: IconProps) => import("react").JSX.Element;
153
+ declare function SpinnerIcon({
154
+ className,
155
+ size,
156
+ strokeWidth,
157
+ ...props
158
+ }: IconProps): import("react").JSX.Element;
159
+ declare const SearchIcon: ({
160
+ size,
161
+ strokeWidth,
162
+ ...props
163
+ }: IconProps) => import("react").JSX.Element;
164
+ declare const SidebarIcon: ({
165
+ size,
166
+ strokeWidth,
167
+ ...props
168
+ }: IconProps) => import("react").JSX.Element;
169
+ declare const TerminalIcon: ({
170
+ size,
171
+ strokeWidth,
172
+ ...props
173
+ }: IconProps) => import("react").JSX.Element;
174
+ declare const LinkIcon: ({
175
+ size,
176
+ strokeWidth,
177
+ ...props
178
+ }: IconProps) => import("react").JSX.Element;
179
+ declare const WarningIcon: ({
180
+ size,
181
+ strokeWidth,
182
+ ...props
183
+ }: IconProps) => import("react").JSX.Element;
184
+ declare const WrenchIcon: ({
185
+ size,
186
+ strokeWidth,
187
+ ...props
188
+ }: IconProps) => import("react").JSX.Element;
189
+ declare const InfoIcon: ({
190
+ size,
191
+ strokeWidth,
192
+ ...props
193
+ }: IconProps) => import("react").JSX.Element;
194
+ declare const ImageIcon: ({
195
+ size,
196
+ strokeWidth,
197
+ ...props
198
+ }: IconProps) => import("react").JSX.Element;
199
+ declare const MonitorIcon: ({
200
+ size,
201
+ strokeWidth,
202
+ ...props
203
+ }: IconProps) => import("react").JSX.Element;
204
+ declare const MaximizeIcon: ({
205
+ size,
206
+ strokeWidth,
207
+ ...props
208
+ }: IconProps) => import("react").JSX.Element;
209
+ //#endregion
210
+ export { PlusIcon as A, XIcon as B, MicrophoneIcon as C, PauseIcon as D, PaperclipIcon as E, SquareIcon as F, StopIcon as I, TerminalIcon as L, SearchIcon as M, SidebarIcon as N, PencilIcon as O, SpinnerIcon as P, WarningIcon as R, MaximizeIcon as S, MonitorIcon as T, FolderOpenIcon as _, CheckIcon as a, InfoIcon as b, ChevronRightIcon as c, DownloadIcon as d, EllipsisIcon as f, FolderIcon as g, FileIcon as h, ArrowUpIcon as i, RefreshIcon as j, PlayIcon as k, CopyIcon as l, EyeOffIcon as m, ArrowLeftIcon as n, ChevronDownIcon as o, EyeIcon as p, ArrowRightIcon as r, ChevronLeftIcon as s, ArrowDownIcon as t, DotIcon as u, IconProps as v, MinusIcon as w, LinkIcon as x, ImageIcon as y, WrenchIcon as z };
@@ -0,0 +1,14 @@
1
+ /* Accessibility overrides intentionally come after component styles so system
2
+ * colors and keyboard focus remain visible even when a component customizes
3
+ * its normal-mode outline or box shadow. */
4
+ @media (forced-colors: active) {
5
+ :where(:focus-visible) {
6
+ outline: var(--sigvelo-focus-width) solid Highlight;
7
+ outline-offset: var(--sigvelo-focus-offset);
8
+ }
9
+
10
+ :where([data-disabled], :disabled) {
11
+ border-color: GrayText;
12
+ color: GrayText;
13
+ }
14
+ }
@@ -18,13 +18,13 @@
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: space-between;
21
- gap: 0.75rem;
21
+ gap: var(--sigvelo-recipe-control-gap);
22
22
  inline-size: 100%;
23
- min-block-size: var(--sigvelo-control-height-md);
24
- padding-block: 1rem;
25
- padding-inline: 0.5rem;
26
- font-family: var(--sigvelo-font-sans);
27
- font-size: 0.9375rem;
23
+ min-block-size: var(--sigvelo-recipe-control-height);
24
+ padding-block: var(--sigvelo-spacing-2);
25
+ padding-inline: var(--sigvelo-recipe-control-padding-inline);
26
+ font-family: inherit;
27
+ font-size: var(--sigvelo-recipe-control-font-size);
28
28
  font-weight: var(--sigvelo-font-weight-semibold);
29
29
  text-align: start;
30
30
  color: var(--sigvelo-color-text);
@@ -43,9 +43,7 @@
43
43
 
44
44
  .accordion__trigger:focus-visible {
45
45
  outline: none;
46
- box-shadow:
47
- 0 0 0 2px var(--sigvelo-color-canvas),
48
- 0 0 0 4px var(--sigvelo-color-focus);
46
+ box-shadow: var(--sigvelo-recipe-focus-shadow);
49
47
  }
50
48
 
51
49
  .accordion__trigger:is(:disabled, [data-disabled]) {
@@ -53,69 +51,31 @@
53
51
  cursor: not-allowed;
54
52
  }
55
53
 
56
- .accordion__trigger-text {
57
- flex: 1;
58
- min-inline-size: 0;
59
- overflow-wrap: break-word;
60
- }
61
-
62
- .accordion__icon {
63
- display: flex;
64
- align-items: center;
65
- justify-content: center;
66
- flex: 0 0 auto;
67
- inline-size: 1.25rem;
68
- block-size: 1.25rem;
69
- color: var(--sigvelo-color-text-muted);
70
- transition:
71
- color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
72
- transform var(--sigvelo-duration-medium) var(--sigvelo-ease-emphasized);
73
- }
74
-
75
- .accordion__item[data-open] .accordion__icon {
76
- color: var(--sigvelo-color-text);
77
- transform: rotate(180deg);
78
- }
79
-
80
54
  .accordion__panel {
55
+ block-size: var(--accordion-panel-height);
81
56
  overflow: hidden;
82
- font-family: var(--sigvelo-font-sans);
83
- font-size: 0.875rem;
57
+ font-family: inherit;
58
+ font-size: var(--sigvelo-text-sm);
84
59
  line-height: 1.625;
85
60
  color: var(--sigvelo-color-text-muted);
61
+ transition:
62
+ block-size var(--sigvelo-duration-medium) var(--sigvelo-ease-emphasized),
63
+ opacity var(--sigvelo-duration-fast) var(--sigvelo-ease-standard);
86
64
  }
87
65
 
88
- .accordion__panel[data-open] {
89
- animation: accordion-expand var(--sigvelo-duration-medium) var(--sigvelo-ease-emphasized);
90
- }
91
-
66
+ .accordion__panel[data-starting-style],
92
67
  .accordion__panel[data-ending-style] {
93
- animation: accordion-collapse var(--sigvelo-duration-medium) var(--sigvelo-ease-accelerate);
68
+ block-size: 0;
69
+ opacity: 0;
94
70
  }
95
71
 
96
72
  .accordion__panel > * {
97
- padding-block-end: 1rem;
98
- padding-inline: 0.5rem;
73
+ padding-block-end: var(--sigvelo-spacing-4);
74
+ padding-inline: var(--sigvelo-recipe-control-padding-inline);
99
75
  }
100
76
 
101
- @keyframes accordion-expand {
102
- from {
103
- block-size: 0;
104
- opacity: 0;
105
- }
106
- to {
107
- block-size: var(--accordion-panel-height);
108
- opacity: 1;
109
- }
110
- }
111
-
112
- @keyframes accordion-collapse {
113
- from {
114
- block-size: var(--accordion-panel-height);
115
- opacity: 1;
116
- }
117
- to {
118
- block-size: 0;
119
- opacity: 0;
77
+ @media (prefers-reduced-motion: reduce) {
78
+ .accordion__panel {
79
+ transition-duration: var(--sigvelo-duration-reduced);
120
80
  }
121
81
  }