@moda/om 17.9.0 → 17.10.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 +14 -0
- package/dist/index.cjs.js +3 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/Modal/Modal.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/Modal/Modal.tsx +10 -2
- package/src/components/SlidingPane/SlidingPane.scss +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -11688,17 +11688,19 @@ var LoadingBalls = function LoadingBalls(_ref) {
|
|
|
11688
11688
|
})));
|
|
11689
11689
|
};
|
|
11690
11690
|
|
|
11691
|
-
var _excluded$c = ["className", "children", "onClose", "shards"];
|
|
11691
|
+
var _excluded$c = ["className", "children", "onClose", "shards", "autoFocus"];
|
|
11692
11692
|
var Modal = function Modal(_ref) {
|
|
11693
11693
|
var className = _ref.className,
|
|
11694
11694
|
children = _ref.children,
|
|
11695
11695
|
onClose = _ref.onClose,
|
|
11696
11696
|
shards = _ref.shards,
|
|
11697
|
+
autoFocus = _ref.autoFocus,
|
|
11697
11698
|
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
11698
11699
|
|
|
11699
11700
|
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
11700
11701
|
className: classNames('Modal', className)
|
|
11701
11702
|
}, rest), /*#__PURE__*/React__default.createElement(FocusOn, {
|
|
11703
|
+
autoFocus: autoFocus,
|
|
11702
11704
|
shards: shards,
|
|
11703
11705
|
onClickOutside: onClose,
|
|
11704
11706
|
onEscapeKey: onClose
|