@moda/om 17.7.0 → 17.8.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 +7 -0
- package/dist/index.cjs.js +11 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SlidingPane/SlidingPane.tsx +26 -24
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.8.0](https://github.com/ModaOperandi/om/compare/v17.7.0...v17.8.0) (2022-10-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **SlidingPane:** lock focus ([#2965](https://github.com/ModaOperandi/om/issues/2965)) ([ffb5ab7](https://github.com/ModaOperandi/om/commit/ffb5ab77a5dcb105693efb9a338b56c41bba86a4))
|
|
12
|
+
|
|
6
13
|
# [17.7.0](https://github.com/ModaOperandi/om/compare/v17.6.0...v17.7.0) (2022-10-11)
|
|
7
14
|
|
|
8
15
|
|
package/dist/index.cjs.js
CHANGED
|
@@ -12435,7 +12435,16 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12435
12435
|
onClose = _ref.onClose,
|
|
12436
12436
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12437
12437
|
|
|
12438
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div",
|
|
12438
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12439
|
+
className: classNames('SlidingPane__overlay', {
|
|
12440
|
+
'SlidingPane__overlay--active': visible
|
|
12441
|
+
}),
|
|
12442
|
+
onClick: onClose
|
|
12443
|
+
}), /*#__PURE__*/React__default["default"].createElement(FocusOn, {
|
|
12444
|
+
enabled: visible,
|
|
12445
|
+
onClickOutside: onClose,
|
|
12446
|
+
onEscapeKey: onClose
|
|
12447
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", _extends$1({
|
|
12439
12448
|
className: classNames('SlidingPane', className, {
|
|
12440
12449
|
'SlidingPane--active': visible
|
|
12441
12450
|
})
|
|
@@ -12452,12 +12461,7 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12452
12461
|
onClick: onClose
|
|
12453
12462
|
}, /*#__PURE__*/React__default["default"].createElement(Exit16, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12454
12463
|
className: "SlidingPane__content"
|
|
12455
|
-
}, children))
|
|
12456
|
-
className: classNames('SlidingPane__overlay', {
|
|
12457
|
-
'SlidingPane__overlay--active': visible
|
|
12458
|
-
}),
|
|
12459
|
-
onClick: onClose
|
|
12460
|
-
}));
|
|
12464
|
+
}, children))));
|
|
12461
12465
|
};
|
|
12462
12466
|
|
|
12463
12467
|
var tokens = {
|