@carbonorm/carbonreact 3.0.7 → 3.0.8
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.esm.js
CHANGED
|
@@ -3944,10 +3944,11 @@ function getStyles(overrides) {
|
|
|
3944
3944
|
function Popup(_a) {
|
|
3945
3945
|
var _b = _a.open, open = _b === void 0 ? true : _b, handleClose = _a.handleClose, children = _a.children, maxWidth = _a.maxWidth;
|
|
3946
3946
|
if (false === open) {
|
|
3947
|
+
// @link https://legacy.reactjs.org/docs/conditional-rendering.html#preventing-component-from-rendering
|
|
3947
3948
|
return null;
|
|
3948
3949
|
}
|
|
3949
3950
|
var dig = getStyles();
|
|
3950
|
-
return jsxRuntime_1(
|
|
3951
|
+
return jsxRuntime_1("div", { className: classNames(dig.modal, dig.fade, dig.show, dig.dBlock), style: { backgroundColor: "rgba(0,0,0,0.8)" }, id: "exampleModalCenter", tabIndex: -1, "aria-labelledby": "exampleModalCenterTitle", "aria-modal": "true", role: "dialog", children: jsxRuntime_1("div", { style: { maxWidth: maxWidth }, className: classNames(dig.modalDialog, dig.modalDialogCentered), children: jsxRuntime_1(OutsideClickHandler, { onOutsideClick: function () { return handleClose(); }, children: jsxRuntime_1("div", { className: classNames(dig.modalContent, dig.bgTransparent, dig.modalDialogScrollable), children: children }) }) }) });
|
|
3951
3952
|
}
|
|
3952
3953
|
|
|
3953
3954
|
var isProduction = window.location.host.split(".")[0] === "www";
|