@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.esm.js CHANGED
@@ -12577,13 +12577,15 @@ var SelectableButton = function SelectableButton(_ref) {
12577
12577
  }, rest), /*#__PURE__*/React__default.createElement("span", null, children));
12578
12578
  };
12579
12579
 
12580
- var _excluded$5 = ["className", "title", "visible", "children", "onClose"];
12580
+ var _excluded$5 = ["className", "title", "visible", "children", "onClose", "autoFocus"];
12581
12581
  var SlidingPane = function SlidingPane(_ref) {
12582
12582
  var className = _ref.className,
12583
12583
  title = _ref.title,
12584
12584
  visible = _ref.visible,
12585
12585
  children = _ref.children,
12586
12586
  onClose = _ref.onClose,
12587
+ _ref$autoFocus = _ref.autoFocus,
12588
+ autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
12587
12589
  rest = _objectWithoutProperties(_ref, _excluded$5);
12588
12590
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
12589
12591
  className: classNames('SlidingPane__overlay', {
@@ -12592,6 +12594,7 @@ var SlidingPane = function SlidingPane(_ref) {
12592
12594
  onClick: onClose
12593
12595
  }), /*#__PURE__*/React__default.createElement(FocusOn, {
12594
12596
  enabled: visible,
12597
+ autoFocus: autoFocus,
12595
12598
  onClickOutside: onClose,
12596
12599
  onEscapeKey: onClose
12597
12600
  }, /*#__PURE__*/React__default.createElement("div", _extends$1({