@deque/cauldron-react 4.7.0-canary.e0f1ccfd → 4.7.0-canary.e9f388bb

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;
@@ -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
@@ -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.e0f1ccfd",
3
+ "version": "4.7.0-canary.e9f388bb",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "publishConfig": {
6
6
  "access": "public"