@deque/cauldron-react 6.21.0-canary.62b96d63 → 6.21.0-canary.6afe1a38
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 +1 -1
- package/lib/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
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' | 'badge';
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'error' | 'danger' | 'danger-secondary' | '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
|
@@ -1714,6 +1714,8 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
1714
1714
|
'Button--primary': variant === 'primary',
|
|
1715
1715
|
'Button--secondary': variant === 'secondary',
|
|
1716
1716
|
'Button--error': variant === 'error',
|
|
1717
|
+
'Button--danger': variant === 'danger',
|
|
1718
|
+
'Button--danger-secondary': variant === 'danger-secondary',
|
|
1717
1719
|
'Button--tertiary': variant === 'tertiary',
|
|
1718
1720
|
Link: variant === 'link',
|
|
1719
1721
|
Tag: variant === 'tag',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.21.0-canary.
|
|
3
|
+
"version": "6.21.0-canary.6afe1a38",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|