@deque/cauldron-react 6.4.1-canary.fead02fc → 6.4.2-canary.1fd11347
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/cauldron.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, Ref } from 'react';
|
|
2
2
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
4
|
-
variant?: 'primary' | 'secondary' | '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>>;
|
|
@@ -19,7 +19,7 @@ export interface IconButtonProps extends PolymorphicProps<React.HTMLAttributes<H
|
|
|
19
19
|
* @deprecated use `tooltipProps.portal` instead
|
|
20
20
|
*/
|
|
21
21
|
tooltipPortal?: TooltipProps['portal'];
|
|
22
|
-
variant?: 'primary' | 'secondary' | 'error';
|
|
22
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'error';
|
|
23
23
|
large?: boolean;
|
|
24
24
|
}
|
|
25
25
|
declare const IconButton: PolymorphicComponent<IconButtonProps>;
|
package/lib/index.js
CHANGED
|
@@ -1594,6 +1594,7 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
1594
1594
|
'Button--primary': variant === 'primary',
|
|
1595
1595
|
'Button--secondary': variant === 'secondary',
|
|
1596
1596
|
'Button--error': variant === 'error',
|
|
1597
|
+
'Button--tertiary': variant === 'tertiary',
|
|
1597
1598
|
Link: variant === 'link',
|
|
1598
1599
|
Tag: variant === 'tag',
|
|
1599
1600
|
'Button--tag': variant === 'tag',
|
|
@@ -1729,13 +1730,17 @@ function Tooltip(_a) {
|
|
|
1729
1730
|
};
|
|
1730
1731
|
var targetElement = document.body;
|
|
1731
1732
|
if (showTooltip) {
|
|
1732
|
-
targetElement.addEventListener('keyup', handleEscape);
|
|
1733
|
+
targetElement.addEventListener('keyup', handleEscape, { capture: true });
|
|
1733
1734
|
}
|
|
1734
1735
|
else {
|
|
1735
|
-
targetElement.removeEventListener('keyup', handleEscape
|
|
1736
|
+
targetElement.removeEventListener('keyup', handleEscape, {
|
|
1737
|
+
capture: true
|
|
1738
|
+
});
|
|
1736
1739
|
}
|
|
1737
1740
|
return function () {
|
|
1738
|
-
targetElement.removeEventListener('keyup', handleEscape
|
|
1741
|
+
targetElement.removeEventListener('keyup', handleEscape, {
|
|
1742
|
+
capture: true
|
|
1743
|
+
});
|
|
1739
1744
|
};
|
|
1740
1745
|
}, [showTooltip]);
|
|
1741
1746
|
// Handle hover and focus events for the targetElement
|
|
@@ -1835,6 +1840,7 @@ var IconButton = React.forwardRef(function (_a, ref) {
|
|
|
1835
1840
|
IconButton: true,
|
|
1836
1841
|
'IconButton--primary': variant === 'primary',
|
|
1837
1842
|
'IconButton--secondary': variant === 'secondary',
|
|
1843
|
+
'IconButton--tertiary': variant === 'tertiary',
|
|
1838
1844
|
'IconButton--error': variant === 'error',
|
|
1839
1845
|
'IconButton--large': large
|
|
1840
1846
|
}), ref: internalRef, disabled: disabled, tabIndex: disabled ? -1 : tabIndex }, accessibilityProps, other),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2-canary.1fd11347",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@testing-library/react": "^12",
|
|
48
48
|
"@testing-library/user-event": "^14.5.2",
|
|
49
49
|
"@types/classnames": "^2.2.10",
|
|
50
|
-
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
51
50
|
"@types/jest": "^29.5.11",
|
|
52
51
|
"@types/jest-axe": "^3.5.4",
|
|
53
52
|
"@types/node": "^17.0.42",
|
|
@@ -59,8 +58,6 @@
|
|
|
59
58
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
60
59
|
"babel-plugin-transform-export-extensions": "^6.22.0",
|
|
61
60
|
"concurrently": "^5.3.0",
|
|
62
|
-
"enzyme": "^3.11.0",
|
|
63
|
-
"enzyme-adapter-react-16": "^1.15.2",
|
|
64
61
|
"jest": "^29.7.0",
|
|
65
62
|
"jest-axe": "^8.0.0",
|
|
66
63
|
"jest-environment-jsdom": "^29.7.0",
|