@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.
@@ -89,6 +89,7 @@ declare function Button$1({
89
89
  color,
90
90
  size,
91
91
  className,
92
+ nativeButton,
92
93
  ref,
93
94
  ...props
94
95
  }: ButtonProps & {
@@ -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-BIATcZWZ.js";
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,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/Artifact.d.ts
@@ -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-QCM8ZKgR.js";
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 onChange={(checked) => console.log(checked)} />
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} onChange={setAgreed} />
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 onChange={(checked) => console.log(checked)} />
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} onChange={setAgreed} />
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-V6pgafSS.js";
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-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import { CollapsiblePanelProps, CollapsibleRootProps, CollapsibleTriggerProps } from "./Collapsible.js";
3
3
  import * as React from "react";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import { PopoverProps } from "./Popover.js";
3
3
  import * as React from "react";
4
4
 
@@ -1,4 +1,4 @@
1
- import { t as Button } from "../Button-QCM8ZKgR.js";
1
+ import { t as Button } from "../Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/Conversation.d.ts
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/EnvironmentVariables.d.ts
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
  import { StreamdownProps } from "streamdown";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/ModelSelector.d.ts
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
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-QCM8ZKgR.js";
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-QCM8ZKgR.js";
2
- import { t as CopyButtonProps } from "../copy-button-BIATcZWZ.js";
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
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "../Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "../Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/WebPreview.d.ts
@@ -1,4 +1,4 @@
1
- import { r as ButtonProps } from "./Button-QCM8ZKgR.js";
1
+ import { r as ButtonProps } from "./Button-Ct5I6aTu.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/_internal/copy-button.d.ts
@@ -1,4 +1,4 @@
1
- import { A as CodeBlockLanguage } from "../CodeBlock-V6pgafSS.js";
1
+ import { A as CodeBlockLanguage } from "../CodeBlock-CxQXv3C4.js";
2
2
 
3
3
  //#region src/utils/structured-code.d.ts
4
4
  interface StructuredCodeDisplay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.1.3",
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.2"
50
+ "@mcp-b/design-tokens": "0.1.5"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@storybook/addon-a11y": "^10.4.6",