@deque/cauldron-react 6.14.0-canary.1653ddc7 → 6.14.0-canary.2c1219d1
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/lib/components/Button/index.d.ts +2 -2
- package/lib/index.js +2 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ButtonHTMLAttributes, Ref } from 'react';
|
|
2
2
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
4
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'error' | 'link' | 'tag'
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'error' | 'link' | 'tag';
|
|
5
5
|
thin?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
package/lib/index.js
CHANGED
|
@@ -1715,7 +1715,7 @@ var SkipLink = /** @class */ (function (_super) {
|
|
|
1715
1715
|
|
|
1716
1716
|
var Button = React.forwardRef(function (_a, ref) {
|
|
1717
1717
|
var _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, thin = _a.thin, children = _a.children, className = _a.className, buttonRef = _a.buttonRef, other = tslib.__rest(_a, ["variant", "thin", "children", "className", "buttonRef"]);
|
|
1718
|
-
return (React__default["default"].createElement("button", tslib.__assign({ type:
|
|
1718
|
+
return (React__default["default"].createElement("button", tslib.__assign({ type: 'button', className: classNames__default["default"](className, {
|
|
1719
1719
|
'Button--primary': variant === 'primary',
|
|
1720
1720
|
'Button--secondary': variant === 'secondary',
|
|
1721
1721
|
'Button--error': variant === 'error',
|
|
@@ -1723,8 +1723,7 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
1723
1723
|
Link: variant === 'link',
|
|
1724
1724
|
Tag: variant === 'tag',
|
|
1725
1725
|
'Button--tag': variant === 'tag',
|
|
1726
|
-
'Button--thin': thin
|
|
1727
|
-
'Button--badge': variant === 'badge'
|
|
1726
|
+
'Button--thin': thin
|
|
1728
1727
|
}), ref: ref || buttonRef }, other), children));
|
|
1729
1728
|
});
|
|
1730
1729
|
Button.displayName = 'Button';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.14.0-canary.
|
|
3
|
+
"version": "6.14.0-canary.2c1219d1",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|