@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/dist/index.esm.js
CHANGED
|
@@ -12408,7 +12408,16 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12408
12408
|
onClose = _ref.onClose,
|
|
12409
12409
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
12410
12410
|
|
|
12411
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div",
|
|
12411
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
12412
|
+
className: classNames('SlidingPane__overlay', {
|
|
12413
|
+
'SlidingPane__overlay--active': visible
|
|
12414
|
+
}),
|
|
12415
|
+
onClick: onClose
|
|
12416
|
+
}), /*#__PURE__*/React__default.createElement(FocusOn, {
|
|
12417
|
+
enabled: visible,
|
|
12418
|
+
onClickOutside: onClose,
|
|
12419
|
+
onEscapeKey: onClose
|
|
12420
|
+
}, /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
12412
12421
|
className: classNames('SlidingPane', className, {
|
|
12413
12422
|
'SlidingPane--active': visible
|
|
12414
12423
|
})
|
|
@@ -12425,12 +12434,7 @@ var SlidingPane = function SlidingPane(_ref) {
|
|
|
12425
12434
|
onClick: onClose
|
|
12426
12435
|
}, /*#__PURE__*/React__default.createElement(Exit16, null))), /*#__PURE__*/React__default.createElement("div", {
|
|
12427
12436
|
className: "SlidingPane__content"
|
|
12428
|
-
}, children))
|
|
12429
|
-
className: classNames('SlidingPane__overlay', {
|
|
12430
|
-
'SlidingPane__overlay--active': visible
|
|
12431
|
-
}),
|
|
12432
|
-
onClick: onClose
|
|
12433
|
-
}));
|
|
12437
|
+
}, children))));
|
|
12434
12438
|
};
|
|
12435
12439
|
|
|
12436
12440
|
var tokens = {
|