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