@commonsku/styles 1.17.13 → 1.17.14
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/styles/Popup.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4493,7 +4493,7 @@ var PopupContainer = function (_a) {
|
|
|
4493
4493
|
return ReactDOM__default.default.createPortal(children, ref.current);
|
|
4494
4494
|
};
|
|
4495
4495
|
var Popup = React__default.default.forwardRef(function (_a, forwardedRef) {
|
|
4496
|
-
var header = _a.header, _b = _a.noHeader, noHeader = _b === void 0 ? false : _b, title = _a.title, controls = _a.controls, children = _a.children, onClose = _a.onClose, _c = _a.noCloseButton, noCloseButton = _c === void 0 ? false : _c, _d = _a.closeOnEsc, closeOnEsc = _d === void 0 ? true : _d, _e = _a.closeOnClickOutside, closeOnClickOutside = _e === void 0 ? false : _e, overlayZIndex = _a.overlayZIndex, popupClassName = _a.popupClassName, contentClassName = _a.contentClassName, _f = _a.PopupWindowComponent, PopupWindowComponent = _f === void 0 ? PopupWindow : _f, props = __rest(_a, ["header", "noHeader", "title", "controls", "children", "onClose", "noCloseButton", "closeOnEsc", "closeOnClickOutside", "overlayZIndex", "popupClassName", "contentClassName", "PopupWindowComponent"]);
|
|
4496
|
+
var header = _a.header, _b = _a.noHeader, noHeader = _b === void 0 ? false : _b, title = _a.title, controls = _a.controls, children = _a.children, onClose = _a.onClose, _c = _a.noCloseButton, noCloseButton = _c === void 0 ? false : _c, _d = _a.closeOnEsc, closeOnEsc = _d === void 0 ? true : _d, _e = _a.closeOnClickOutside, closeOnClickOutside = _e === void 0 ? false : _e, overlayZIndex = _a.overlayZIndex, popupClassName = _a.popupClassName, contentClassName = _a.contentClassName, _f = _a.PopupWindowComponent, PopupWindowComponent = _f === void 0 ? PopupWindow : _f, style = _a.style, props = __rest(_a, ["header", "noHeader", "title", "controls", "children", "onClose", "noCloseButton", "closeOnEsc", "closeOnClickOutside", "overlayZIndex", "popupClassName", "contentClassName", "PopupWindowComponent", "style"]);
|
|
4497
4497
|
var ref = useFallbackRef(forwardedRef);
|
|
4498
4498
|
useClickOutside({
|
|
4499
4499
|
ref: ref,
|
|
@@ -4521,14 +4521,14 @@ var Popup = React__default.default.forwardRef(function (_a, forwardedRef) {
|
|
|
4521
4521
|
}, [closeOnClickOutside, closeOnEsc, onClose]);
|
|
4522
4522
|
return React__default.default.createElement(PopupContainer, null,
|
|
4523
4523
|
React__default.default.createElement(Overlay, { zIndex: overlayZIndex },
|
|
4524
|
-
React__default.default.createElement(PopupWindowComponent, __assign({ className: "popup" + (popupClassName ? " ".concat(popupClassName) : '') }, props, { ref: ref }),
|
|
4524
|
+
React__default.default.createElement(PopupWindowComponent, __assign({ className: "popup" + (popupClassName ? " ".concat(popupClassName) : ''), style: __assign({ position: 'fixed' }, style) }, props, { ref: ref }),
|
|
4525
4525
|
noHeader ? null :
|
|
4526
4526
|
header ? header : (React__default.default.createElement(PopupHeader, { className: "popup-header", xsStyle: "flex-wrap: wrap-reverse;", smStyle: "flex-wrap: wrap;" },
|
|
4527
4527
|
React__default.default.createElement(Col, { style: { textAlign: 'left', alignSelf: 'center' } },
|
|
4528
4528
|
React__default.default.createElement("span", { className: "title" }, title)),
|
|
4529
4529
|
React__default.default.createElement(Col, { style: { textAlign: 'right', alignSelf: 'center' } }, noCloseButton ? null :
|
|
4530
4530
|
controls || React__default.default.createElement(Button, { onClick: onClose }, "Close")))),
|
|
4531
|
-
React__default.default.createElement("div", { className: "popup-content" + (contentClassName ? " ".concat(contentClassName) : '')
|
|
4531
|
+
React__default.default.createElement("div", { className: "popup-content" + (contentClassName ? " ".concat(contentClassName) : '') },
|
|
4532
4532
|
children,
|
|
4533
4533
|
" "))));
|
|
4534
4534
|
});
|