@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.mjs
CHANGED
|
@@ -4462,7 +4462,7 @@ var PopupContainer = function (_a) {
|
|
|
4462
4462
|
return ReactDOM.createPortal(children, ref.current);
|
|
4463
4463
|
};
|
|
4464
4464
|
var Popup = React.forwardRef(function (_a, forwardedRef) {
|
|
4465
|
-
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"]);
|
|
4465
|
+
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"]);
|
|
4466
4466
|
var ref = useFallbackRef(forwardedRef);
|
|
4467
4467
|
useClickOutside({
|
|
4468
4468
|
ref: ref,
|
|
@@ -4490,14 +4490,14 @@ var Popup = React.forwardRef(function (_a, forwardedRef) {
|
|
|
4490
4490
|
}, [closeOnClickOutside, closeOnEsc, onClose]);
|
|
4491
4491
|
return React.createElement(PopupContainer, null,
|
|
4492
4492
|
React.createElement(Overlay, { zIndex: overlayZIndex },
|
|
4493
|
-
React.createElement(PopupWindowComponent, __assign({ className: "popup" + (popupClassName ? " ".concat(popupClassName) : '') }, props, { ref: ref }),
|
|
4493
|
+
React.createElement(PopupWindowComponent, __assign({ className: "popup" + (popupClassName ? " ".concat(popupClassName) : ''), style: __assign({ position: 'fixed' }, style) }, props, { ref: ref }),
|
|
4494
4494
|
noHeader ? null :
|
|
4495
4495
|
header ? header : (React.createElement(PopupHeader, { className: "popup-header", xsStyle: "flex-wrap: wrap-reverse;", smStyle: "flex-wrap: wrap;" },
|
|
4496
4496
|
React.createElement(Col, { style: { textAlign: 'left', alignSelf: 'center' } },
|
|
4497
4497
|
React.createElement("span", { className: "title" }, title)),
|
|
4498
4498
|
React.createElement(Col, { style: { textAlign: 'right', alignSelf: 'center' } }, noCloseButton ? null :
|
|
4499
4499
|
controls || React.createElement(Button, { onClick: onClose }, "Close")))),
|
|
4500
|
-
React.createElement("div", { className: "popup-content" + (contentClassName ? " ".concat(contentClassName) : '')
|
|
4500
|
+
React.createElement("div", { className: "popup-content" + (contentClassName ? " ".concat(contentClassName) : '') },
|
|
4501
4501
|
children,
|
|
4502
4502
|
" "))));
|
|
4503
4503
|
});
|