@ebay/ui-core-react 1.6.0 → 1.7.0

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.
@@ -68,7 +68,7 @@ exports.DialogBase = function (_a) {
68
68
  onBackgroundClick(e);
69
69
  }
70
70
  };
71
- if (open) {
71
+ if (open && buttonPosition !== 'hidden') {
72
72
  // On React 18 useEffect hooks runs synchronous instead of asynchronous as React 17 or prior
73
73
  // causing the event listener to be attached to the document at the same time that the dialog
74
74
  // opens. Adding a timeout so the event is attached after the click event that opened the modal
@@ -32,7 +32,7 @@ var classPrefix = 'lightbox-dialog';
32
32
  var EbayLightboxDialog = function (_a) {
33
33
  var _b;
34
34
  var _c = _a.a11yCloseText, a11yCloseText = _c === void 0 ? 'Close Dialog' : _c, open = _a.open, mode = _a.mode, _d = _a.onClose, onClose = _d === void 0 ? function () { } : _d, _e = _a.onOpen, onOpen = _e === void 0 ? function () { } : _e, rest = __rest(_a, ["a11yCloseText", "open", "mode", "onClose", "onOpen"]);
35
- return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({}, rest, { a11yCloseText: a11yCloseText, classPrefix: classPrefix, buttonPosition: "right", onCloseBtnClick: onClose, onBackgroundClick: onClose, className: classnames_1.default(rest.className, classPrefix + "--mask-fade"), windowClass: classnames_1.default('lightbox-dialog__window--fade', (_b = {},
35
+ return (react_1.default.createElement(ebay_dialog_base_1.DialogBaseWithState, __assign({ buttonPosition: "right" }, rest, { a11yCloseText: a11yCloseText, classPrefix: classPrefix, onCloseBtnClick: onClose, onBackgroundClick: onClose, className: classnames_1.default(rest.className, classPrefix + "--mask-fade"), windowClass: classnames_1.default('lightbox-dialog__window--fade', (_b = {},
36
36
  _b[classPrefix + "__window--mini"] = mode === 'mini',
37
37
  _b)), open: open })));
38
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Skin components build off React",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",