@lanaco/lnc-react-ui 4.0.12 → 4.0.13
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/Modal.cjs +15 -15
- package/dist/Modal.js +78 -74
- package/package.json +1 -1
package/dist/Modal.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),y=require("react"),o=require("./index-BIlhCoy2.cjs"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),y=require("react"),o=require("./index-BIlhCoy2.cjs"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),D=require("./Icon.cjs"),j=require("./utils-DTAPpJXU.cjs"),V=require("./index-Ct1N7fF4.cjs"),L=require("./motion-Oud-wpUz.cjs"),G=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=require("./index-BP5r5zGN.cjs"),x="5rem",h="3.8rem",i="1.5rem",W=(e,r,n)=>r&&n?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:r?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:n?e=="FULL"?`calc(100dvh - ${x})`:`calc(100dvh - ${x} - ${i})`:e=="FULL"?"100dvh":`calc(100dvh - ${i})`,X=e=>e=="FULL"?"100vw":`calc(100vw - ${i})`,J=(e,r,n)=>e=="FULL"?"0":`${r?"0":"16px"} 0 ${n?"0":"16px"} 0`,K=C.newStyled(L.motion.div)`
|
|
2
2
|
position: ${e=>e.scrollOverlay==!0?"absolute":"fixed"};
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
background: ${e=>e.scrollOverlay===!0?"transparent":e.overlayColor};
|
|
8
8
|
z-index: ${e=>e.zIndex};
|
|
9
9
|
display: flex;
|
|
10
|
-
`,
|
|
10
|
+
`,Q=C.newStyled(L.motion.div)`
|
|
11
11
|
position: relative;
|
|
12
12
|
width: 50%;
|
|
13
13
|
background-color: white;
|
|
14
14
|
${e=>e.scrollOverlay==!1?"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);":"height: fit-content; margin-right: auto; margin-left: auto;"}
|
|
15
|
-
background-color: ${e=>
|
|
15
|
+
background-color: ${e=>j.getColorRgbaValue(e.theme,"Modal","default","enabled","bg")};
|
|
16
16
|
z-index: ${e=>e.zIndex};
|
|
17
|
-
width: ${e=>
|
|
18
|
-
max-width: ${e=>
|
|
17
|
+
width: ${e=>ee[e.size.toUpperCase()]};
|
|
18
|
+
max-width: ${e=>X(e.size.toUpperCase())};
|
|
19
19
|
box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
20
20
|
0px 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
21
21
|
border-radius: ${e=>e.size.toUpperCase()!="FULL"?"16px":"0"};
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
& .lnc-modal-header {
|
|
27
27
|
max-height: ${h};
|
|
28
28
|
overflow: hidden;
|
|
29
|
-
padding: ${
|
|
29
|
+
padding: ${i} ${i} 0 ${i};
|
|
30
30
|
}
|
|
31
31
|
& .lnc-modal-header > h1,
|
|
32
32
|
h2,
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
flex-direction: column;
|
|
46
46
|
justify-content: space-between;
|
|
47
47
|
scrollbar-width: thin;
|
|
48
|
-
${e=>e.scrollOverlay==!1&&`max-height: ${
|
|
48
|
+
${e=>e.scrollOverlay==!1&&`max-height: ${W(e.size.toUpperCase(),e.header,e.footer)};`}
|
|
49
49
|
overflow: auto;
|
|
50
|
-
margin: ${e=>
|
|
51
|
-
padding: 0 ${
|
|
50
|
+
margin: ${e=>J(e.size,e.header,e.footer)};
|
|
51
|
+
padding: 0 ${i} 0 ${i};
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,Y=C.newStyled.div`
|
|
54
54
|
position: absolute;
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
top: 1.375rem;
|
|
57
57
|
right: 1.375rem;
|
|
58
|
-
color: ${e=>
|
|
58
|
+
color: ${e=>j.getColorRgbaValue(e.theme,"Modal","primary","enabled","cancelButton")};
|
|
59
59
|
height: 1.5rem;
|
|
60
60
|
width: 1.5rem;
|
|
61
61
|
display: flex;
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&:hover {
|
|
70
|
-
background-color: ${e=>
|
|
70
|
+
background-color: ${e=>j.getColorRgbaValue(e.theme,"Modal","primary","hover","cancelBtnBg","cancelBtnBgOpacity")};
|
|
71
71
|
}
|
|
72
72
|
&:focus {
|
|
73
|
-
background-color: ${e=>
|
|
73
|
+
background-color: ${e=>j.getColorRgbaValue(e.theme,"Modal","primary","focus","cancelBtnBg","cancelBtnBgOpacity")};
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,Z=C.newStyled(L.motion.div)`
|
|
76
76
|
display: ${e=>e.scrollOverlay===!0?"block":"none"};
|
|
77
77
|
position: fixed;
|
|
78
78
|
top: 0;
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
width: 100%;
|
|
82
82
|
background-color: ${e=>e.overlayColor};
|
|
83
83
|
z-index: 3;
|
|
84
|
-
`,N=y.forwardRef((e,r)=>{const{portalElement:n=document.body,isOpen:s=!1,header:d,footer:
|
|
84
|
+
`,N=y.forwardRef((e,r)=>{const{portalElement:n=document.body,isOpen:s=!1,header:d,footer:l,scrollOverlay:a=!1,overlay:c=!0,overlayColor:p="rgba(0, 0, 0, 0.3)",showCloseButton:u=!0,onOpen:f=()=>{},onClose:g=()=>{},zIndex:O=1e3,size:$="fluid",clickOutsideToClose:v=!0,className:b="",style:A={},overlayProps:P,overlayAnimation:F={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},modalAnimation:U={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},transition:{type:"spring",duration:.6}},onFinishOpen:H=()=>{},children:z,rest:M}=e,R=y.useRef(),[T,k]=y.useState(s);let B={theme:G.useTheme(),size:$,zIndex:O,className:b,style:A};const S=m=>{m.target===m.currentTarget&&v&&w(m)};y.useImperativeHandle(r,()=>({open(){_()},close(){w()},isOpen(){return T}}));const _=m=>{k(!0),f(m)},w=m=>{k(!1),g(m)};return y.useEffect(()=>{T===!0&&H()},[T]),t.jsx(t.Fragment,{children:T&&t.jsx(t.Fragment,{children:n?t.jsx(t.Fragment,{children:V.reactDomExports.createPortal(t.jsx(q,{ref:R,overlay:c,scrollOverlay:a,onClickOutsideModal:S,overlayColor:p,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:u,close:w,header:d,footer:l,isOpen:s,...M,children:z}),n)}):t.jsx(q,{ref:R,overlay:c,scrollOverlay:a,onClickOutsideModal:S,overlayColor:p,overlayProps:P,overlayAnimation:F,modalAnimation:U,themeProps:B,showCloseButton:u,close:w,header:d,footer:l,isOpen:s,...M,children:z})})})}),q=y.forwardRef(({overlay:e,scrollOverlay:r,onClickOutsideModal:n,overlayColor:s,overlayProps:d,overlayAnimation:l,modalAnimation:a,themeProps:c,showCloseButton:p,header:u,footer:f,close:g,isOpen:O,children:$,...v},b)=>t.jsx(I.AnimatePresence,{children:e?t.jsxs(t.Fragment,{children:[t.jsx(Z,{scrollOverlay:r,onClick:n,overlayColor:s,...d,...l}),t.jsx(K,{...c,onClick:n,scrollOverlay:r,overlayColor:s,isOpen:O,...d,...l,children:t.jsx(E,{ref:b,themeProps:c,scrollOverlay:r,modalAnimation:a,showCloseButton:p,close:g,header:u,footer:f,...v,children:$})})]}):t.jsx(E,{ref:b,themeProps:c,modalAnimation:a,showCloseButton:p,close:g,header:u,footer:f,...v,children:$})})),E=y.forwardRef(({themeProps:e,scrollOverlay:r,modalAnimation:n,showCloseButton:s,close:d,header:l,footer:a,children:c,...p},u)=>t.jsx(I.AnimatePresence,{children:t.jsxs(Q,{ref:u,...e,...n,header:l,footer:a,scrollOverlay:r,...p,className:`modal-lnc-container ${e==null?void 0:e.className}`,children:[s&&t.jsx(Y,{...e,className:"modal-lnc-times",onClick:d,children:t.jsx(D,{icon:"times"})}),l&&t.jsx("div",{className:"lnc-modal-header",children:l}),t.jsx("div",{className:"lnc-modal-content",children:c}),a&&t.jsx("div",{className:"lnc-modal-footer",children:a})]})}));N.propTypes={portalElement:o.PropTypes.any,isOpen:o.PropTypes.bool,header:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),footer:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),showCloseButton:o.PropTypes.bool,overlay:o.PropTypes.bool,scrollOverlay:o.PropTypes.bool,onOpen:o.PropTypes.func,onClose:o.PropTypes.func,zIndex:o.PropTypes.number,clickOutsideToClose:o.PropTypes.bool,overlayColor:o.PropTypes.string,overlayAnimation:o.PropTypes.object,modalAnimation:o.PropTypes.object,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:o.PropTypes.any};const ee={FLUID:"max-content",XS:"320px",S:"412px",M:"672px",L:"1112px",XL:"1376px",FULL:"100vw"};module.exports=N;
|
package/dist/Modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as t, Fragment as L, jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as z, useRef as X, useState as V, useImperativeHandle as q, useEffect as J } from "react";
|
|
3
3
|
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
-
import { n as
|
|
5
|
-
import
|
|
6
|
-
import { a as
|
|
7
|
-
import { r as
|
|
8
|
-
import { m as
|
|
9
|
-
import { u as
|
|
4
|
+
import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import K from "./Icon.js";
|
|
6
|
+
import { a as w } from "./utils-C52T57HO.js";
|
|
7
|
+
import { r as Q } from "./index--Kmch3aI.js";
|
|
8
|
+
import { m as M } from "./motion-ecIGZGwI.js";
|
|
9
|
+
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
10
10
|
import { A as R } from "./index-BUChtubz.js";
|
|
11
|
-
const f = "5rem", h = "3.8rem", a = "1.5rem",
|
|
11
|
+
const f = "5rem", h = "3.8rem", a = "1.5rem", Z = (e, n, r) => n && r ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${a})` : n ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${a})` : r ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${a})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${a})`, P = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${a})`, ee = (e, n, r) => e == "FULL" ? "0" : `${n ? "0" : "16px"} 0 ${r ? "0" : "16px"} 0`, oe = C(M.div)`
|
|
12
12
|
position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
|
|
13
13
|
top: 0;
|
|
14
14
|
left: 0;
|
|
@@ -17,15 +17,15 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
17
17
|
background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
|
|
18
18
|
z-index: ${(e) => e.zIndex};
|
|
19
19
|
display: flex;
|
|
20
|
-
`,
|
|
20
|
+
`, te = C(M.div)`
|
|
21
21
|
position: relative;
|
|
22
22
|
width: 50%;
|
|
23
23
|
background-color: white;
|
|
24
24
|
${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
|
|
25
|
-
background-color: ${(e) =>
|
|
25
|
+
background-color: ${(e) => w(e.theme, "Modal", "default", "enabled", "bg")};
|
|
26
26
|
z-index: ${(e) => e.zIndex};
|
|
27
|
-
width: ${(e) =>
|
|
28
|
-
max-width: ${(e) =>
|
|
27
|
+
width: ${(e) => le[e.size.toUpperCase()]};
|
|
28
|
+
max-width: ${(e) => P(e.size.toUpperCase())};
|
|
29
29
|
box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
|
|
30
30
|
0px 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
31
31
|
border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
|
|
@@ -55,21 +55,21 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
justify-content: space-between;
|
|
57
57
|
scrollbar-width: thin;
|
|
58
|
-
${(e) => e.scrollOverlay == !1 && `max-height: ${
|
|
58
|
+
${(e) => e.scrollOverlay == !1 && `max-height: ${Z(
|
|
59
59
|
e.size.toUpperCase(),
|
|
60
60
|
e.header,
|
|
61
61
|
e.footer
|
|
62
62
|
)};`}
|
|
63
63
|
overflow: auto;
|
|
64
|
-
margin: ${(e) =>
|
|
64
|
+
margin: ${(e) => ee(e.size, e.header, e.footer)};
|
|
65
65
|
padding: 0 ${a} 0 ${a};
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`, ne = C.div`
|
|
68
68
|
position: absolute;
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
top: 1.375rem;
|
|
71
71
|
right: 1.375rem;
|
|
72
|
-
color: ${(e) =>
|
|
72
|
+
color: ${(e) => w(
|
|
73
73
|
e.theme,
|
|
74
74
|
"Modal",
|
|
75
75
|
"primary",
|
|
@@ -87,7 +87,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:hover {
|
|
90
|
-
background-color: ${(e) =>
|
|
90
|
+
background-color: ${(e) => w(
|
|
91
91
|
e.theme,
|
|
92
92
|
"Modal",
|
|
93
93
|
"primary",
|
|
@@ -97,7 +97,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
97
97
|
)};
|
|
98
98
|
}
|
|
99
99
|
&:focus {
|
|
100
|
-
background-color: ${(e) =>
|
|
100
|
+
background-color: ${(e) => w(
|
|
101
101
|
e.theme,
|
|
102
102
|
"Modal",
|
|
103
103
|
"primary",
|
|
@@ -106,7 +106,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
106
106
|
"cancelBtnBgOpacity"
|
|
107
107
|
)};
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`, re = C(M.div)`
|
|
110
110
|
display: ${(e) => e.scrollOverlay === !0 ? "block" : "none"};
|
|
111
111
|
position: fixed;
|
|
112
112
|
top: 0;
|
|
@@ -115,9 +115,9 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
115
115
|
width: 100%;
|
|
116
116
|
background-color: ${(e) => e.overlayColor};
|
|
117
117
|
z-index: 3;
|
|
118
|
-
`,
|
|
118
|
+
`, ae = z((e, n) => {
|
|
119
119
|
const {
|
|
120
|
-
portalElement:
|
|
120
|
+
portalElement: r = document.body,
|
|
121
121
|
isOpen: c = !1,
|
|
122
122
|
header: d,
|
|
123
123
|
footer: l,
|
|
@@ -129,12 +129,12 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
129
129
|
},
|
|
130
130
|
onClose: x = () => {
|
|
131
131
|
},
|
|
132
|
-
zIndex:
|
|
132
|
+
zIndex: U = 1e3,
|
|
133
133
|
size: y = "fluid",
|
|
134
134
|
clickOutsideToClose: $ = !0,
|
|
135
135
|
className: v = "",
|
|
136
136
|
style: G = {},
|
|
137
|
-
overlayProps:
|
|
137
|
+
overlayProps: F,
|
|
138
138
|
overlayAnimation: k = {
|
|
139
139
|
animate: { opacity: 1 },
|
|
140
140
|
exit: { opacity: 0 },
|
|
@@ -143,7 +143,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
143
143
|
},
|
|
144
144
|
transition: { type: "spring", duration: 0.6 }
|
|
145
145
|
},
|
|
146
|
-
modalAnimation:
|
|
146
|
+
modalAnimation: B = {
|
|
147
147
|
animate: { opacity: 1 },
|
|
148
148
|
exit: { opacity: 0 },
|
|
149
149
|
initial: {
|
|
@@ -151,78 +151,82 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
151
151
|
},
|
|
152
152
|
transition: { type: "spring", duration: 0.6 }
|
|
153
153
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
onFinishOpen: _ = () => {
|
|
155
|
+
},
|
|
156
|
+
children: T,
|
|
157
|
+
rest: I
|
|
158
|
+
} = e, E = X(), [b, N] = V(c);
|
|
159
|
+
let j = { theme: Y(), size: y, zIndex: U, className: v, style: G };
|
|
158
160
|
const A = (u) => {
|
|
159
|
-
u.target === u.currentTarget && $ &&
|
|
161
|
+
u.target === u.currentTarget && $ && O(u);
|
|
160
162
|
};
|
|
161
|
-
|
|
163
|
+
q(n, () => ({
|
|
162
164
|
open() {
|
|
163
|
-
|
|
165
|
+
W();
|
|
164
166
|
},
|
|
165
167
|
close() {
|
|
166
|
-
|
|
168
|
+
O();
|
|
167
169
|
},
|
|
168
170
|
isOpen() {
|
|
169
|
-
return
|
|
171
|
+
return b;
|
|
170
172
|
}
|
|
171
173
|
}));
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
|
|
174
|
+
const W = (u) => {
|
|
175
|
+
N(!0), g(u);
|
|
176
|
+
}, O = (u) => {
|
|
177
|
+
N(!1), x(u);
|
|
176
178
|
};
|
|
177
|
-
return
|
|
179
|
+
return J(() => {
|
|
180
|
+
b === !0 && _();
|
|
181
|
+
}, [b]), /* @__PURE__ */ t(L, { children: b && /* @__PURE__ */ t(L, { children: r ? /* @__PURE__ */ t(L, { children: Q.createPortal(
|
|
178
182
|
/* @__PURE__ */ t(
|
|
179
183
|
H,
|
|
180
184
|
{
|
|
181
|
-
ref:
|
|
185
|
+
ref: E,
|
|
182
186
|
overlay: s,
|
|
183
187
|
scrollOverlay: i,
|
|
184
188
|
onClickOutsideModal: A,
|
|
185
189
|
overlayColor: m,
|
|
186
|
-
overlayProps:
|
|
190
|
+
overlayProps: F,
|
|
187
191
|
overlayAnimation: k,
|
|
188
|
-
modalAnimation:
|
|
192
|
+
modalAnimation: B,
|
|
189
193
|
themeProps: j,
|
|
190
194
|
showCloseButton: p,
|
|
191
|
-
close:
|
|
195
|
+
close: O,
|
|
192
196
|
header: d,
|
|
193
197
|
footer: l,
|
|
194
198
|
isOpen: c,
|
|
195
|
-
...
|
|
196
|
-
children:
|
|
199
|
+
...I,
|
|
200
|
+
children: T
|
|
197
201
|
}
|
|
198
202
|
),
|
|
199
|
-
|
|
203
|
+
r
|
|
200
204
|
) }) : /* @__PURE__ */ t(
|
|
201
205
|
H,
|
|
202
206
|
{
|
|
203
|
-
ref:
|
|
207
|
+
ref: E,
|
|
204
208
|
overlay: s,
|
|
205
209
|
scrollOverlay: i,
|
|
206
210
|
onClickOutsideModal: A,
|
|
207
211
|
overlayColor: m,
|
|
208
|
-
overlayProps:
|
|
212
|
+
overlayProps: F,
|
|
209
213
|
overlayAnimation: k,
|
|
210
|
-
modalAnimation:
|
|
214
|
+
modalAnimation: B,
|
|
211
215
|
themeProps: j,
|
|
212
216
|
showCloseButton: p,
|
|
213
|
-
close:
|
|
217
|
+
close: O,
|
|
214
218
|
header: d,
|
|
215
219
|
footer: l,
|
|
216
220
|
isOpen: c,
|
|
217
|
-
...
|
|
218
|
-
children:
|
|
221
|
+
...I,
|
|
222
|
+
children: T
|
|
219
223
|
}
|
|
220
224
|
) }) });
|
|
221
|
-
}), H =
|
|
225
|
+
}), H = z(
|
|
222
226
|
({
|
|
223
227
|
overlay: e,
|
|
224
|
-
scrollOverlay:
|
|
225
|
-
onClickOutsideModal:
|
|
228
|
+
scrollOverlay: n,
|
|
229
|
+
onClickOutsideModal: r,
|
|
226
230
|
overlayColor: c,
|
|
227
231
|
overlayProps: d,
|
|
228
232
|
overlayAnimation: l,
|
|
@@ -232,28 +236,28 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
232
236
|
header: p,
|
|
233
237
|
footer: g,
|
|
234
238
|
close: x,
|
|
235
|
-
isOpen:
|
|
239
|
+
isOpen: U,
|
|
236
240
|
children: y,
|
|
237
241
|
...$
|
|
238
242
|
}, v) => /* @__PURE__ */ t(R, { children: e ? /* @__PURE__ */ D(L, { children: [
|
|
239
243
|
/* @__PURE__ */ t(
|
|
240
|
-
|
|
244
|
+
re,
|
|
241
245
|
{
|
|
242
|
-
scrollOverlay:
|
|
243
|
-
onClick:
|
|
246
|
+
scrollOverlay: n,
|
|
247
|
+
onClick: r,
|
|
244
248
|
overlayColor: c,
|
|
245
249
|
...d,
|
|
246
250
|
...l
|
|
247
251
|
}
|
|
248
252
|
),
|
|
249
253
|
/* @__PURE__ */ t(
|
|
250
|
-
|
|
254
|
+
oe,
|
|
251
255
|
{
|
|
252
256
|
...s,
|
|
253
|
-
onClick:
|
|
254
|
-
scrollOverlay:
|
|
257
|
+
onClick: r,
|
|
258
|
+
scrollOverlay: n,
|
|
255
259
|
overlayColor: c,
|
|
256
|
-
isOpen:
|
|
260
|
+
isOpen: U,
|
|
257
261
|
...d,
|
|
258
262
|
...l,
|
|
259
263
|
children: /* @__PURE__ */ t(
|
|
@@ -261,7 +265,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
261
265
|
{
|
|
262
266
|
ref: v,
|
|
263
267
|
themeProps: s,
|
|
264
|
-
scrollOverlay:
|
|
268
|
+
scrollOverlay: n,
|
|
265
269
|
modalAnimation: i,
|
|
266
270
|
showCloseButton: m,
|
|
267
271
|
close: x,
|
|
@@ -287,11 +291,11 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
287
291
|
children: y
|
|
288
292
|
}
|
|
289
293
|
) })
|
|
290
|
-
), S =
|
|
294
|
+
), S = z(
|
|
291
295
|
({
|
|
292
296
|
themeProps: e,
|
|
293
|
-
scrollOverlay:
|
|
294
|
-
modalAnimation:
|
|
297
|
+
scrollOverlay: n,
|
|
298
|
+
modalAnimation: r,
|
|
295
299
|
showCloseButton: c,
|
|
296
300
|
close: d,
|
|
297
301
|
header: l,
|
|
@@ -299,24 +303,24 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
299
303
|
children: s,
|
|
300
304
|
...m
|
|
301
305
|
}, p) => /* @__PURE__ */ t(R, { children: /* @__PURE__ */ D(
|
|
302
|
-
|
|
306
|
+
te,
|
|
303
307
|
{
|
|
304
308
|
ref: p,
|
|
305
309
|
...e,
|
|
306
|
-
...
|
|
310
|
+
...r,
|
|
307
311
|
header: l,
|
|
308
312
|
footer: i,
|
|
309
|
-
scrollOverlay:
|
|
313
|
+
scrollOverlay: n,
|
|
310
314
|
...m,
|
|
311
315
|
className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
|
|
312
316
|
children: [
|
|
313
317
|
c && /* @__PURE__ */ t(
|
|
314
|
-
|
|
318
|
+
ne,
|
|
315
319
|
{
|
|
316
320
|
...e,
|
|
317
321
|
className: "modal-lnc-times",
|
|
318
322
|
onClick: d,
|
|
319
|
-
children: /* @__PURE__ */ t(
|
|
323
|
+
children: /* @__PURE__ */ t(K, { icon: "times" })
|
|
320
324
|
}
|
|
321
325
|
),
|
|
322
326
|
l && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: l }),
|
|
@@ -326,7 +330,7 @@ const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
326
330
|
}
|
|
327
331
|
) })
|
|
328
332
|
);
|
|
329
|
-
|
|
333
|
+
ae.propTypes = {
|
|
330
334
|
/**
|
|
331
335
|
* If the value is given modal will use createPortal to be rendered in portalElement
|
|
332
336
|
*/
|
|
@@ -358,7 +362,7 @@ re.propTypes = {
|
|
|
358
362
|
size: o.oneOf(["fluid", "xs", "s", "m", "l", "xl", "full"]),
|
|
359
363
|
overlayProps: o.any
|
|
360
364
|
};
|
|
361
|
-
const
|
|
365
|
+
const le = {
|
|
362
366
|
FLUID: "max-content",
|
|
363
367
|
XS: "320px",
|
|
364
368
|
S: "412px",
|
|
@@ -368,5 +372,5 @@ const ne = {
|
|
|
368
372
|
FULL: "100vw"
|
|
369
373
|
};
|
|
370
374
|
export {
|
|
371
|
-
|
|
375
|
+
ae as default
|
|
372
376
|
};
|