@moda/om 17.10.0 → 17.11.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [17.11.0](https://github.com/ModaOperandi/om/compare/v17.10.0...v17.11.0) (2022-10-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **modaloverlay:** add autoFocus ([3f41d25](https://github.com/ModaOperandi/om/commit/3f41d2546e3ddde4b4c2e7786fcaf53eed12da78))
|
|
12
|
+
|
|
6
13
|
# [17.10.0](https://github.com/ModaOperandi/om/compare/v17.9.1...v17.10.0) (2022-10-14)
|
|
7
14
|
|
|
8
15
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -11771,7 +11771,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
|
11771
11771
|
});
|
|
11772
11772
|
Overlay.displayName = 'Overlay';
|
|
11773
11773
|
|
|
11774
|
-
var _excluded$a = ["children", "className", "contentClassName", "onClose", "overlayClassName", "show", "shards"];
|
|
11774
|
+
var _excluded$a = ["children", "className", "contentClassName", "onClose", "overlayClassName", "show", "shards", "autoFocus"];
|
|
11775
11775
|
var ModalOverlay = function ModalOverlay(_ref) {
|
|
11776
11776
|
var children = _ref.children,
|
|
11777
11777
|
className = _ref.className,
|
|
@@ -11781,6 +11781,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
11781
11781
|
_ref$show = _ref.show,
|
|
11782
11782
|
show = _ref$show === void 0 ? true : _ref$show,
|
|
11783
11783
|
shards = _ref.shards,
|
|
11784
|
+
autoFocus = _ref.autoFocus,
|
|
11784
11785
|
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
11785
11786
|
|
|
11786
11787
|
var element = React.useMemo(function () {
|
|
@@ -11802,7 +11803,8 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
11802
11803
|
}, rest), /*#__PURE__*/React__default["default"].createElement(Modal, {
|
|
11803
11804
|
className: classNames('ModalOverlay__modal', className),
|
|
11804
11805
|
onClose: onClose,
|
|
11805
|
-
shards: shards
|
|
11806
|
+
shards: shards,
|
|
11807
|
+
autoFocus: autoFocus
|
|
11806
11808
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11807
11809
|
className: classNames('ModalOverlay__content', contentClassName)
|
|
11808
11810
|
}, children))), element);
|