@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: TooltipProps['placement'];
7
- tooltipVariant: TooltipProps['variant'];
8
- tooltipPortal: TooltipProps['portal'];
9
- variant: 'light' | 'dark' | 'primary' | 'secondary' | 'error';
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;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface TopBarProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  children: React.ReactNode;
4
- variant?: 'light' | 'dark';
5
4
  }
6
5
  declare const TopBar: (props: TopBarProps) => JSX.Element;
7
6
  export default TopBar;
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, _a = props.variant, variant = _a === void 0 ? 'dark' : _a, other = tslib.__rest(props, ["children", "className", "variant"]);
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'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "1.0.0-canary.e7c96d07",
3
+ "version": "2.0.0-canary.22e43f33",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "publishConfig": {
6
6
  "access": "public"