@deque/cauldron-react 4.7.0-canary.4f6f035a → 4.7.0-canary.60782888

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.
@@ -8,6 +8,7 @@ export interface ClickOutsideListenerProps<T extends HTMLElement = HTMLElement>
8
8
  target?: T;
9
9
  }
10
10
  export default class ClickOutsideListener extends React.Component<ClickOutsideListenerProps> {
11
+ static displayName: string;
11
12
  static defaultProps: {
12
13
  mouseEvent: string;
13
14
  touchEvent: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface LoaderOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ export interface LoaderOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  variant?: 'large' | 'small';
4
4
  label?: string;
5
5
  focusOnInitialRender?: boolean;
@@ -5,7 +5,7 @@ export interface SideBarProps extends React.HTMLAttributes<HTMLUListElement> {
5
5
  onDismiss: () => void;
6
6
  className?: string;
7
7
  show: boolean;
8
- navProps: React.HTMLAttributes<HTMLElement>;
8
+ navProps?: React.HTMLAttributes<HTMLElement>;
9
9
  }
10
10
  interface SideBarState {
11
11
  wide: boolean;
package/lib/index.js CHANGED
@@ -305,7 +305,7 @@ var Icon = React.forwardRef(function (_a, ref) {
305
305
  var data = tslib.__assign(tslib.__assign({}, other), { 'aria-hidden': !label, className: classNames('Icon', "Icon--".concat(type), className, (_b = {},
306
306
  _b["Icon__".concat(direction)] = !!direction,
307
307
  _b)) });
308
- return (React__default.createElement("div", tslib.__assign({ ref: ref }, data),
308
+ return (React__default.createElement("span", tslib.__assign({ ref: ref }, data),
309
309
  label && React__default.createElement(Offscreen, null, label),
310
310
  IconSVG && React__default.createElement(IconSVG, null)));
311
311
  });
@@ -899,6 +899,7 @@ var ClickOutsideListener = /** @class */ (function (_super) {
899
899
  ref: resolveRef
900
900
  });
901
901
  };
902
+ ClickOutsideListener.displayName = 'ClickOutsideListener';
902
903
  ClickOutsideListener.defaultProps = {
903
904
  mouseEvent: 'click',
904
905
  touchEvent: 'touchend'
@@ -1560,8 +1561,10 @@ var Dialog = /** @class */ (function (_super) {
1560
1561
  };
1561
1562
  Dialog.prototype.close = function () {
1562
1563
  var _a, _b, _c;
1563
- (_a = this.state.isolator) === null || _a === void 0 ? void 0 : _a.deactivate();
1564
- (_c = (_b = this.props).onClose) === null || _c === void 0 ? void 0 : _c.call(_b);
1564
+ if (this.props.show) {
1565
+ (_a = this.state.isolator) === null || _a === void 0 ? void 0 : _a.deactivate();
1566
+ (_c = (_b = this.props).onClose) === null || _c === void 0 ? void 0 : _c.call(_b);
1567
+ }
1565
1568
  };
1566
1569
  Dialog.prototype.handleClickOutside = function () {
1567
1570
  var _a = this.props, show = _a.show, forceAction = _a.forceAction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "4.7.0-canary.4f6f035a",
3
+ "version": "4.7.0-canary.60782888",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "publishConfig": {
6
6
  "access": "public"