@launchpad-ui/button
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -17,2 +17,3 @@ import type { ButtonHTMLAttributes, ReactElement } from 'react'; | ||
asChild?: boolean; | ||
'data-test-id'?: string; | ||
}; | ||
@@ -33,2 +34,3 @@ declare const Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & { | ||
asChild?: boolean | undefined; | ||
'data-test-id'?: string | undefined; | ||
} & import("react").RefAttributes<HTMLButtonElement>>>; | ||
@@ -35,0 +37,0 @@ export { Button }; |
@@ -5,6 +5,7 @@ import type { HTMLAttributes } from 'react'; | ||
spacing?: 'compact' | 'normal' | 'large'; | ||
'data-test-id'?: string; | ||
}; | ||
declare const ButtonGroup: ({ spacing, className, children, ...rest }: ButtonGroupProps) => JSX.Element; | ||
declare const ButtonGroup: ({ spacing, className, children, "data-test-id": testId, ...rest }: ButtonGroupProps) => JSX.Element; | ||
export { ButtonGroup }; | ||
export type { ButtonGroupProps }; | ||
//# sourceMappingURL=ButtonGroup.d.ts.map |
@@ -14,2 +14,3 @@ import type { ButtonProps } from './Button'; | ||
asChild?: boolean; | ||
'data-test-id'?: string; | ||
}; | ||
@@ -26,2 +27,3 @@ declare const IconButton: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & { | ||
asChild?: boolean | undefined; | ||
'data-test-id'?: string | undefined; | ||
} & import("react").RefAttributes<HTMLButtonElement>>>; | ||
@@ -28,0 +30,0 @@ export { IconButton }; |
@@ -23,2 +23,3 @@ import './style.css'; | ||
type = "button", | ||
"data-test-id": testId = "button", | ||
...rest | ||
@@ -69,2 +70,3 @@ } = props; | ||
type, | ||
"data-test-id": testId, | ||
...rest, | ||
@@ -81,2 +83,3 @@ children: renderChildren() | ||
children, | ||
"data-test-id": testId = "button-group", | ||
...rest | ||
@@ -87,2 +90,3 @@ }) => { | ||
className: classes, | ||
"data-test-id": testId, | ||
...rest, | ||
@@ -100,2 +104,3 @@ children | ||
onSelect, | ||
"data-test-id": testId = "upload-button", | ||
...rest | ||
@@ -135,2 +140,3 @@ }) => { | ||
className: classes, | ||
"data-test-id": testId, | ||
children: [/* @__PURE__ */ jsx("input", { | ||
@@ -175,2 +181,3 @@ ref: inputRef, | ||
type = "button", | ||
"data-test-id": testId = "icon-button", | ||
...rest | ||
@@ -213,2 +220,3 @@ } = props; | ||
type, | ||
"data-test-id": testId, | ||
...rest, | ||
@@ -215,0 +223,0 @@ children: renderChildren() |
@@ -25,2 +25,3 @@ require('./style.css'); | ||
type = "button", | ||
"data-test-id": testId = "button", | ||
...rest | ||
@@ -71,2 +72,3 @@ } = props; | ||
type, | ||
"data-test-id": testId, | ||
...rest, | ||
@@ -83,2 +85,3 @@ children: renderChildren() | ||
children, | ||
"data-test-id": testId = "button-group", | ||
...rest | ||
@@ -89,2 +92,3 @@ }) => { | ||
className: classes, | ||
"data-test-id": testId, | ||
...rest, | ||
@@ -102,2 +106,3 @@ children | ||
onSelect, | ||
"data-test-id": testId = "upload-button", | ||
...rest | ||
@@ -137,2 +142,3 @@ }) => { | ||
className: classes, | ||
"data-test-id": testId, | ||
children: [/* @__PURE__ */ jsxRuntime.jsx("input", { | ||
@@ -177,2 +183,3 @@ ref: inputRef, | ||
type = "button", | ||
"data-test-id": testId = "icon-button", | ||
...rest | ||
@@ -215,2 +222,3 @@ } = props; | ||
type, | ||
"data-test-id": testId, | ||
...rest, | ||
@@ -217,0 +225,0 @@ children: renderChildren() |
@@ -9,5 +9,5 @@ /// <reference types="react" /> | ||
}; | ||
declare const UploadButton: ({ id, className, children, disabled, accept, maxSize, onSelect, ...rest }: UploadButtonProps) => JSX.Element; | ||
declare const UploadButton: ({ id, className, children, disabled, accept, maxSize, onSelect, "data-test-id": testId, ...rest }: UploadButtonProps) => JSX.Element; | ||
export { UploadButton }; | ||
export type { UploadButtonProps }; | ||
//# sourceMappingURL=UploadButton.d.ts.map |
{ | ||
"name": "@launchpad-ui/button", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"status": "beta", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
71513
1141