@moda/om 21.6.12 → 21.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.
package/dist/index.cjs.js CHANGED
@@ -12597,13 +12597,15 @@ var SelectableButton = function SelectableButton(_ref) {
12597
12597
  }, rest), /*#__PURE__*/React.createElement("span", null, children));
12598
12598
  };
12599
12599
 
12600
- var _excluded$5 = ["className", "title", "visible", "children", "onClose"];
12600
+ var _excluded$5 = ["className", "title", "visible", "children", "onClose", "autoFocus"];
12601
12601
  var SlidingPane = function SlidingPane(_ref) {
12602
12602
  var className = _ref.className,
12603
12603
  title = _ref.title,
12604
12604
  visible = _ref.visible,
12605
12605
  children = _ref.children,
12606
12606
  onClose = _ref.onClose,
12607
+ _ref$autoFocus = _ref.autoFocus,
12608
+ autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
12607
12609
  rest = _objectWithoutProperties(_ref, _excluded$5);
12608
12610
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
12609
12611
  className: classNames('SlidingPane__overlay', {
@@ -12612,6 +12614,7 @@ var SlidingPane = function SlidingPane(_ref) {
12612
12614
  onClick: onClose
12613
12615
  }), /*#__PURE__*/React.createElement(FocusOn, {
12614
12616
  enabled: visible,
12617
+ autoFocus: autoFocus,
12615
12618
  onClickOutside: onClose,
12616
12619
  onEscapeKey: onClose
12617
12620
  }, /*#__PURE__*/React.createElement("div", _extends$1({