@deque/cauldron-react 6.14.0-canary.d6bcd11e → 6.14.0-canary.df008fea

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.
@@ -1,7 +1,7 @@
1
- import React, { ButtonHTMLAttributes, Ref } from 'react';
1
+ import React, { type ButtonHTMLAttributes, type 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' | 'badge';
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: 'button', className: classNames__default["default"](className, {
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,7 +1723,8 @@ 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
1726
+ 'Button--thin': thin,
1727
+ 'Button--badge': variant === 'badge'
1727
1728
  }), ref: ref || buttonRef }, other), children));
1728
1729
  });
1729
1730
  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.d6bcd11e",
3
+ "version": "6.14.0-canary.df008fea",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",