@useblu/ocean-react 1.45.0 → 1.46.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.
package/index.js CHANGED
@@ -46248,7 +46248,7 @@ var Breadcrumb = e.forwardRef(function (_a, ref) {
46248
46248
  Breadcrumb.displayName = 'Breadcrumb';
46249
46249
 
46250
46250
  var Drawer = function (_a) {
46251
- var children = _a.children, open = _a.open, onDrawerClose = _a.onDrawerClose, overlayClose = _a.overlayClose, _b = _a.align, align = _b === void 0 ? 'right' : _b, _c = _a.headerIcon, headerIcon = _c === void 0 ? e__default["default"].createElement(ts, null) : _c, _d = _a.iconAlignment, iconAlignment = _d === void 0 ? 'right' : _d, anchorEl = _a.anchorEl;
46251
+ var children = _a.children, open = _a.open, onDrawerClose = _a.onDrawerClose, overlayClose = _a.overlayClose, _b = _a.align, align = _b === void 0 ? 'right' : _b, _c = _a.headerIcon, headerIcon = _c === void 0 ? e__default["default"].createElement(ts, null) : _c, _d = _a.iconAlignment, iconAlignment = _d === void 0 ? 'right' : _d, anchorEl = _a.anchorEl, onMouseOutDrawer = _a.onMouseOutDrawer;
46252
46252
  var drawerRef = e.useRef(null);
46253
46253
  var getAnchorPosition = e.useCallback(function () {
46254
46254
  if (!(anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.current))
@@ -46280,7 +46280,7 @@ var Drawer = function (_a) {
46280
46280
  attachDrawer();
46281
46281
  }, [anchorEl, drawerRef, attachDrawer]);
46282
46282
  return (e__default["default"].createElement("div", { className: classNames('ods-overlay', open && 'ods-overlay--open'), "aria-hidden": "true", onClick: overlayClose, ref: drawerRef },
46283
- e__default["default"].createElement("div", { className: classNames('ods-drawer', open && 'ods-drawer--open', "ods-drawer--".concat(align)) },
46283
+ e__default["default"].createElement("div", { className: classNames('ods-drawer', open && 'ods-drawer--open', "ods-drawer--".concat(align)), onMouseLeave: onMouseOutDrawer },
46284
46284
  e__default["default"].createElement("div", { className: classNames('ods-drawer__content--header', "ods-drawer__content--header--".concat(iconAlignment)) },
46285
46285
  e__default["default"].createElement(Button$1, { type: "button", onClick: onDrawerClose }, headerIcon)),
46286
46286
  children)));