@mcp-b/react-components 0.1.3 → 0.1.5
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/{Button-QCM8ZKgR.d.ts → Button-Ct5I6aTu.d.ts} +1 -0
- package/dist/{CodeBlock-V6pgafSS.d.ts → CodeBlock-CxQXv3C4.d.ts} +1 -1
- package/dist/components/Artifact.d.ts +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +2 -1
- package/dist/components/Checkbox.d.ts +2 -2
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/Commit.d.ts +1 -1
- package/dist/components/Context.d.ts +1 -1
- package/dist/components/Conversation.d.ts +1 -1
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/Message.d.ts +1 -1
- package/dist/components/ModelSelector.d.ts +1 -1
- package/dist/components/PromptInput.d.ts +1 -1
- package/dist/components/Queue.d.ts +1 -1
- package/dist/components/Terminal.d.ts +2 -2
- package/dist/components/WebPreview.d.ts +1 -1
- package/dist/{copy-button-BIATcZWZ.d.ts → copy-button-BKXqGiNm.d.ts} +1 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as SelectTriggerProps, M as SelectValueProps, S as SelectProps, r as SelectContentProps, s as SelectItemProps } from "./Select-CRsKCJ9x.js";
|
|
2
|
-
import { t as CopyButtonProps } from "./copy-button-
|
|
2
|
+
import { t as CopyButtonProps } from "./copy-button-BKXqGiNm.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { BundledLanguage, ThemedToken } from "shiki";
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonVariant, c as ShadcnButtonVariant, i as ButtonSize, l as buttonVariants, n as ButtonColor, o as ButtonVariantsOptions, r as ButtonProps, s as ShadcnButtonSize, t as Button } from "../Button-
|
|
1
|
+
import { a as ButtonVariant, c as ShadcnButtonVariant, i as ButtonSize, l as buttonVariants, n as ButtonColor, o as ButtonVariantsOptions, r as ButtonProps, s as ShadcnButtonSize, t as Button } from "../Button-Ct5I6aTu.js";
|
|
2
2
|
export { Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, ButtonVariantsOptions, ShadcnButtonSize, ShadcnButtonVariant, buttonVariants };
|
|
@@ -51,7 +51,7 @@ function buttonVariants({ variant = "default", color, size = "default", classNam
|
|
|
51
51
|
* @see {@link https://base-ui.com/react/components/button | Base UI Button}
|
|
52
52
|
* @see {@link https://ui.shadcn.com/docs/components/base/button | shadcn/ui Button}
|
|
53
53
|
*/
|
|
54
|
-
function Button({ variant = "default", color, size = "default", className, ref, ...props }) {
|
|
54
|
+
function Button({ variant = "default", color, size = "default", className, nativeButton, ref, ...props }) {
|
|
55
55
|
return /* @__PURE__ */ jsx(Button$1, {
|
|
56
56
|
ref,
|
|
57
57
|
"data-slot": "button",
|
|
@@ -66,6 +66,7 @@ function Button({ variant = "default", color, size = "default", className, ref,
|
|
|
66
66
|
size,
|
|
67
67
|
className
|
|
68
68
|
}),
|
|
69
|
+
nativeButton: nativeButton ?? props.render == null,
|
|
69
70
|
...props
|
|
70
71
|
});
|
|
71
72
|
}
|
|
@@ -14,10 +14,10 @@ interface CheckboxProps extends Omit<CheckboxRootProps, "className"> {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```tsx
|
|
17
|
-
* <Checkbox defaultChecked
|
|
17
|
+
* <Checkbox defaultChecked onCheckedChange={(checked) => console.log(checked)} />
|
|
18
18
|
*
|
|
19
19
|
* <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
|
|
20
|
-
* <Checkbox id="terms" checked={agreed}
|
|
20
|
+
* <Checkbox id="terms" checked={agreed} onCheckedChange={setAgreed} />
|
|
21
21
|
* <Label htmlFor="terms">I agree to the terms</Label>
|
|
22
22
|
* </div>
|
|
23
23
|
* ```
|
|
@@ -19,10 +19,10 @@ function CheckIcon(props) {
|
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```tsx
|
|
22
|
-
* <Checkbox defaultChecked
|
|
22
|
+
* <Checkbox defaultChecked onCheckedChange={(checked) => console.log(checked)} />
|
|
23
23
|
*
|
|
24
24
|
* <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
|
|
25
|
-
* <Checkbox id="terms" checked={agreed}
|
|
25
|
+
* <Checkbox id="terms" checked={agreed} onCheckedChange={setAgreed} />
|
|
26
26
|
* <Label htmlFor="terms">I agree to the terms</Label>
|
|
27
27
|
* </div>
|
|
28
28
|
* ```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as CodeBlockLanguage, C as CodeBlockLanguageSelectorValueProps, D as TokenizedCode, E as CodeBlockTitleProps, O as highlightCode, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, k as CODE_BLOCK_LANGUAGES, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../CodeBlock-
|
|
1
|
+
import { A as CodeBlockLanguage, C as CodeBlockLanguageSelectorValueProps, D as TokenizedCode, E as CodeBlockTitleProps, O as highlightCode, S as CodeBlockLanguageSelectorValue, T as CodeBlockTitle, _ as CodeBlockLanguageSelectorItem, a as CodeBlockContainerProps, b as CodeBlockLanguageSelectorTrigger, c as CodeBlockCopyButton, d as CodeBlockFilenameProps, f as CodeBlockHeader, g as CodeBlockLanguageSelectorContentProps, h as CodeBlockLanguageSelectorContent, i as CodeBlockContainer, k as CODE_BLOCK_LANGUAGES, l as CodeBlockCopyButtonProps, m as CodeBlockLanguageSelector, n as CodeBlockActions, o as CodeBlockContent, p as CodeBlockHeaderProps, r as CodeBlockActionsProps, s as CodeBlockContentProps, t as CodeBlock, u as CodeBlockFilename, v as CodeBlockLanguageSelectorItemProps, w as CodeBlockProps, x as CodeBlockLanguageSelectorTriggerProps, y as CodeBlockLanguageSelectorProps } from "../CodeBlock-CxQXv3C4.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockActionsProps, CodeBlockContainer, CodeBlockContainerProps, CodeBlockContent, CodeBlockContentProps, CodeBlockCopyButton, CodeBlockCopyButtonProps, CodeBlockFilename, CodeBlockFilenameProps, CodeBlockHeader, CodeBlockHeaderProps, type CodeBlockLanguage, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorContentProps, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorItemProps, CodeBlockLanguageSelectorProps, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorTriggerProps, CodeBlockLanguageSelectorValue, CodeBlockLanguageSelectorValueProps, CodeBlockProps, CodeBlockTitle, CodeBlockTitleProps, TokenizedCode, highlightCode };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
|
|
2
2
|
import { A as SelectTriggerProps, M as SelectValueProps, S as SelectProps, f as SelectOption, j as SelectValue, r as SelectContentProps, s as SelectItemProps, t as Select } from "../Select-CRsKCJ9x.js";
|
|
3
3
|
import { Combobox, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPositioner, ComboboxSeparator, ComboboxTrigger } from "./Combobox.js";
|
|
4
4
|
import { MenuItemProps, MenuPopupProps, MenuProps } from "./Menu.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
|
|
2
2
|
import { CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps } from "./Collapsible.js";
|
|
3
3
|
import { ScrollAreaRootProps } from "./ScrollArea.js";
|
|
4
4
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as ButtonProps } from "../Button-
|
|
2
|
-
import { t as CopyButtonProps } from "../copy-button-
|
|
1
|
+
import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
|
|
2
|
+
import { t as CopyButtonProps } from "../copy-button-BKXqGiNm.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Terminal.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "MCP-B React components built on Base UI and shared design tokens.",
|
|
5
5
|
"homepage": "https://design-system.sigvelo.com",
|
|
6
6
|
"bugs": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"anser": "^2.3.5",
|
|
48
48
|
"shiki": "^4.2.0",
|
|
49
49
|
"streamdown": "^2.5.0",
|
|
50
|
-
"@mcp-b/design-tokens": "0.1.
|
|
50
|
+
"@mcp-b/design-tokens": "0.1.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@storybook/addon-a11y": "^10.4.6",
|