@sydsoft/base 1.24.0 → 1.25.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/dist/esm/modal/index.js
CHANGED
|
@@ -61,6 +61,6 @@ export var Modal = memo(function MemoFunction(_a) {
|
|
|
61
61
|
}, []);
|
|
62
62
|
if ((!keepMounted && !open) || typeof window === "undefined")
|
|
63
63
|
return null;
|
|
64
|
-
var Component = (_jsx("div", { className: "".concat(styles.backdrop, " ").concat(open ? styles.backdrop_open : ""), style: __assign({ alignItems: vertialAlign, justifyContent: horizontalAlign }, backdropStyle), children: _jsxs("div", { ref: ref, className: "".concat(styles.modal, " ").concat(fullScreen ? styles.fullscreen : ""), style: modalStyle, children: [!hideCloseButton && (_jsx("div", { className: styles.close_fixed, children: _jsx("div", { className: styles.close, onClick: onClose, children: "\u2715" }) })), children] }) }));
|
|
64
|
+
var Component = (_jsx("div", { className: "".concat(styles.backdrop, " ").concat(open ? styles.backdrop_open : ""), style: __assign({ alignItems: vertialAlign, justifyContent: horizontalAlign }, backdropStyle), children: _jsxs("div", { ref: ref, className: "smodal ".concat(styles.modal, " ").concat(fullScreen ? styles.fullscreen : ""), style: modalStyle, children: [!hideCloseButton && (_jsx("div", { className: "close ".concat(styles.close_fixed), children: _jsx("div", { className: styles.close, onClick: onClose, children: "\u2715" }) })), children] }) }));
|
|
65
65
|
return modalDiv ? ReactDOM.createPortal(Component, modalDiv) : null;
|
|
66
66
|
});
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
.close_fixed {
|
|
40
40
|
position: absolute;
|
|
41
41
|
top: 0;
|
|
42
|
-
right:
|
|
42
|
+
right: 0;
|
|
43
43
|
z-index: 1000;
|
|
44
44
|
text-align: right;
|
|
45
45
|
border-radius: inherit;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
.close {
|
|
49
49
|
position: fixed;
|
|
50
50
|
background: #e7e7e7;
|
|
51
|
-
padding:
|
|
51
|
+
padding: 8px 10px;
|
|
52
52
|
font-size: 11px;
|
|
53
53
|
transform: translateX(-100%);
|
|
54
54
|
border-radius: inherit;
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
border-bottom-right-radius: 0;
|
|
57
57
|
border-bottom-left-radius: 50%;
|
|
58
58
|
cursor: pointer;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
text-shadow: 1px 0px 0px #000000;
|
|
59
61
|
}
|
|
60
62
|
.close:hover {
|
|
61
63
|
zoom: 1.3;
|