@deque/cauldron-react 1.0.0-canary.e7c96d07 → 2.0.0-canary.22e43f33
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.
|
@@ -3,10 +3,10 @@ import { TooltipProps } from '../Tooltip';
|
|
|
3
3
|
interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
icon: string;
|
|
5
5
|
label: string;
|
|
6
|
-
tooltipPlacement
|
|
7
|
-
tooltipVariant
|
|
8
|
-
tooltipPortal
|
|
9
|
-
variant
|
|
6
|
+
tooltipPlacement?: TooltipProps['placement'];
|
|
7
|
+
tooltipVariant?: TooltipProps['variant'];
|
|
8
|
+
tooltipPortal?: TooltipProps['portal'];
|
|
9
|
+
variant?: 'primary' | 'secondary' | 'error';
|
|
10
10
|
}
|
|
11
11
|
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export default IconButton;
|
package/lib/index.js
CHANGED
|
@@ -472,11 +472,10 @@ var TopBar = /** @class */ (function (_super) {
|
|
|
472
472
|
}(React__default.Component));
|
|
473
473
|
|
|
474
474
|
var TopBar$1 = function (props) {
|
|
475
|
-
var children = props.children, className = props.className,
|
|
475
|
+
var children = props.children, className = props.className, other = tslib.__rest(props, ["children", "className"]);
|
|
476
476
|
return (React__default.createElement("div", tslib.__assign({ className: classNames(className, {
|
|
477
477
|
// TopBar's default style is dark mode
|
|
478
|
-
TopBar: true
|
|
479
|
-
'TopBar--light': variant === 'light'
|
|
478
|
+
TopBar: true
|
|
480
479
|
}) }, other), children));
|
|
481
480
|
};
|
|
482
481
|
|
|
@@ -1478,8 +1477,6 @@ var IconButton = React.forwardRef(function (_a, ref) {
|
|
|
1478
1477
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1479
1478
|
React__default.createElement("button", tslib.__assign({ type: 'button', className: classNames(className, {
|
|
1480
1479
|
IconButton: true,
|
|
1481
|
-
'IconButton--light': variant === 'light',
|
|
1482
|
-
'IconButton--dark': variant === 'dark',
|
|
1483
1480
|
'IconButton--primary': variant === 'primary',
|
|
1484
1481
|
'IconButton--secondary': variant === 'secondary',
|
|
1485
1482
|
'IconButton--error': variant === 'error'
|