@lanaco/lnc-react-ui 4.0.26 → 4.0.28
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/DetailedProductsSection.cjs +25 -0
- package/dist/DetailedProductsSection.js +99 -0
- package/dist/ProductsWithBannerSection.cjs +90 -0
- package/dist/ProductsWithBannerSection.js +152 -0
- package/dist/SimpleProductsSection.cjs +31 -0
- package/dist/SimpleProductsSection.js +94 -0
- package/dist/UrgentSaleProductsSection.cjs +68 -0
- package/dist/UrgentSaleProductsSection.js +135 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +14 -14
- package/dist/index10.cjs +134 -63
- package/dist/index10.js +223 -121
- package/dist/index11.cjs +112 -62
- package/dist/index11.js +1510 -101
- package/dist/index2.cjs +41 -18
- package/dist/index2.js +86 -85
- package/dist/index3.cjs +72 -22
- package/dist/index3.js +128 -78
- package/dist/index4.cjs +51 -54
- package/dist/index4.js +79 -110
- package/dist/index5.cjs +66 -32
- package/dist/index5.js +118 -80
- package/dist/index6.cjs +124 -55
- package/dist/index6.js +194 -116
- package/dist/index7.cjs +66 -46
- package/dist/index7.js +104 -83
- package/dist/index8.cjs +164 -52
- package/dist/index8.js +278 -104
- package/dist/index9.cjs +68 -120
- package/dist/index9.js +184 -185
- package/package.json +1 -1
- package/vite.config.js +4 -4
- package/dist/index12.cjs +0 -194
- package/dist/index12.js +0 -312
- package/dist/index13.cjs +0 -98
- package/dist/index13.js +0 -221
- package/dist/index14.cjs +0 -161
- package/dist/index14.js +0 -254
- package/dist/index15.cjs +0 -135
- package/dist/index15.js +0 -1534
package/dist/index4.cjs
CHANGED
|
@@ -1,68 +1,65 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
padding: 1.
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./consts-dNz9tpt4.cjs"),u=require("./Button.cjs"),t=require("./utils-CE6bljYe.cjs"),h=s.newStyled.div`
|
|
2
|
+
padding-bottom: 1.38rem;
|
|
3
|
+
text-align: center;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 2rem;
|
|
8
|
+
align-items: center;
|
|
5
9
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
border: 1.5px solid var(--danger-600, #e11d48);
|
|
9
|
-
background-color: var(--danger-50, #fff1f2);
|
|
10
|
-
position: relative;
|
|
11
|
-
border-radius: 0.75rem;
|
|
12
|
-
position: relative;
|
|
13
|
-
|
|
14
|
-
& .urgent-tag {
|
|
15
|
-
position: absolute;
|
|
16
|
-
left: 1rem;
|
|
17
|
-
top: -0.75rem;
|
|
18
|
-
min-height: 1.5rem;
|
|
19
|
-
max-height: 1.5rem;
|
|
20
|
-
border-radius: 0.375rem;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
padding: 0 0.25rem;
|
|
25
|
-
gap: 0.12rem;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
font-size: 0.875rem;
|
|
28
|
-
color: var(--white, #fff);
|
|
29
|
-
background-color: var(--danger-600, #e11d48);
|
|
10
|
+
& button {
|
|
11
|
+
width: fit-content;
|
|
30
12
|
}
|
|
31
13
|
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
15
|
+
padding-bottom: 0;
|
|
34
16
|
}
|
|
17
|
+
`,g=s.newStyled.div`
|
|
18
|
+
text-align: center;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 0.25rem;
|
|
35
23
|
|
|
36
|
-
& .
|
|
37
|
-
|
|
24
|
+
& .header-title {
|
|
25
|
+
font-size: 1.5rem;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
}
|
|
38
28
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
& .header-subtitle {
|
|
30
|
+
color: var(--gray-600, #676e79);
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
}
|
|
44
34
|
|
|
45
|
-
|
|
46
|
-
0% {
|
|
47
|
-
transform: scale(0.9);
|
|
48
|
-
-webkit-transform: scale(0.9);
|
|
49
|
-
}
|
|
50
|
-
100% {
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
-webkit-transform: scale(1);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
35
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
55
36
|
}
|
|
37
|
+
`,p=s.newStyled.div`
|
|
38
|
+
text-align: center;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
gap: 0.75rem;
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
align-items: center;
|
|
56
46
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
gap: 1.19rem;
|
|
47
|
+
& .list-item {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
61
50
|
|
|
62
|
-
& .
|
|
51
|
+
& .mng {
|
|
52
|
+
font-size: 1.25rem;
|
|
53
|
+
color: var(--success-600);
|
|
63
54
|
}
|
|
55
|
+
}
|
|
64
56
|
|
|
65
|
-
|
|
57
|
+
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
58
|
+
& .list-item {
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
text-align: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
gap: 0;
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
|
-
`,
|
|
65
|
+
`,j=o.forwardRef((a,y)=>{const{title:i,subtitle:n,buttonText:d,list:r,fallback:m=()=>{},onBannerClick:l}=a;return e.jsxs(h,{children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(g,{children:[t.isDefined(i)&&e.jsx("div",{className:"header-title",children:i}),t.isDefined(n)&&e.jsx("div",{className:"header-subitle",children:n})]}),e.jsx(p,{children:r==null?void 0:r.map((x,f)=>e.jsx(o.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:x})]})},f))}),e.jsx(u,{size:"medium",color:"neutral",type:"button",onClick:()=>t.isDefined(l)?l():m(),children:d})]})});module.exports=j;
|
package/dist/index4.js
CHANGED
|
@@ -1,135 +1,104 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
display:
|
|
11
|
-
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, Fragment as x } from "react";
|
|
3
|
+
import { n as o } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { M as a } from "./consts-DNVz1x1I.js";
|
|
5
|
+
import g from "./Button.js";
|
|
6
|
+
import { l as t } from "./utils-DtEdJZWa.js";
|
|
7
|
+
const u = o.div`
|
|
8
|
+
padding-bottom: 1.38rem;
|
|
9
|
+
text-align: center;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 2rem;
|
|
14
|
+
align-items: center;
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
border: 1.5px solid var(--danger-600, #e11d48);
|
|
16
|
-
background-color: var(--danger-50, #fff1f2);
|
|
17
|
-
position: relative;
|
|
18
|
-
border-radius: 0.75rem;
|
|
19
|
-
position: relative;
|
|
20
|
-
|
|
21
|
-
& .urgent-tag {
|
|
22
|
-
position: absolute;
|
|
23
|
-
left: 1rem;
|
|
24
|
-
top: -0.75rem;
|
|
25
|
-
min-height: 1.5rem;
|
|
26
|
-
max-height: 1.5rem;
|
|
27
|
-
border-radius: 0.375rem;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
padding: 0 0.25rem;
|
|
32
|
-
gap: 0.12rem;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
font-size: 0.875rem;
|
|
35
|
-
color: var(--white, #fff);
|
|
36
|
-
background-color: var(--danger-600, #e11d48);
|
|
16
|
+
& button {
|
|
17
|
+
width: fit-content;
|
|
37
18
|
}
|
|
38
19
|
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
@media (max-width: ${a + "px"}) {
|
|
21
|
+
padding-bottom: 0;
|
|
41
22
|
}
|
|
23
|
+
`, y = o.div`
|
|
24
|
+
text-align: center;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: 0.25rem;
|
|
42
29
|
|
|
43
|
-
& .
|
|
44
|
-
|
|
30
|
+
& .header-title {
|
|
31
|
+
font-size: 1.5rem;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
45
34
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
& .header-subtitle {
|
|
36
|
+
color: var(--gray-600, #676e79);
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
}
|
|
51
40
|
|
|
52
|
-
|
|
53
|
-
0% {
|
|
54
|
-
transform: scale(0.9);
|
|
55
|
-
-webkit-transform: scale(0.9);
|
|
56
|
-
}
|
|
57
|
-
100% {
|
|
58
|
-
transform: scale(1);
|
|
59
|
-
-webkit-transform: scale(1);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
41
|
+
@media (max-width: ${a + "px"}) {
|
|
62
42
|
}
|
|
43
|
+
`, b = o.div`
|
|
44
|
+
text-align: center;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
gap: 0.75rem;
|
|
49
|
+
font-size: 0.875rem;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
align-items: center;
|
|
63
52
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
gap: 1.19rem;
|
|
53
|
+
& .list-item {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
68
56
|
|
|
69
|
-
& .
|
|
57
|
+
& .mng {
|
|
58
|
+
font-size: 1.25rem;
|
|
59
|
+
color: var(--success-600);
|
|
70
60
|
}
|
|
61
|
+
}
|
|
71
62
|
|
|
72
|
-
|
|
63
|
+
@media (max-width: ${a + "px"}) {
|
|
64
|
+
& .list-item {
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
text-align: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
gap: 0;
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
|
-
`,
|
|
76
|
-
var d;
|
|
71
|
+
`, N = h((m, w) => {
|
|
77
72
|
const {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
title: i,
|
|
74
|
+
subtitle: n,
|
|
75
|
+
buttonText: s,
|
|
76
|
+
list: r,
|
|
77
|
+
fallback: d = () => {
|
|
82
78
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */ o("i", { className: "mng mng-lnc-bolt-filled" }),
|
|
90
|
-
/* @__PURE__ */ o("span", { children: g })
|
|
79
|
+
onBannerClick: c
|
|
80
|
+
} = m;
|
|
81
|
+
return /* @__PURE__ */ l(u, { children: [
|
|
82
|
+
(t(i) || t(n)) && /* @__PURE__ */ l(y, { children: [
|
|
83
|
+
t(i) && /* @__PURE__ */ e("div", { className: "header-title", children: i }),
|
|
84
|
+
t(n) && /* @__PURE__ */ e("div", { className: "header-subitle", children: n })
|
|
91
85
|
] }),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
image: e == null ? void 0 : e.image,
|
|
99
|
-
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
100
|
-
uuid: e == null ? void 0 : e.uuid,
|
|
101
|
-
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
102
|
-
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
|
|
103
|
-
},
|
|
104
|
-
l
|
|
105
|
-
)) : r == null ? void 0 : r.slice(0, n).map((e, l) => /* @__PURE__ */ o(
|
|
106
|
-
u,
|
|
107
|
-
{
|
|
108
|
-
title: e == null ? void 0 : e.title,
|
|
109
|
-
price: e == null ? void 0 : e.price,
|
|
110
|
-
currency: e == null ? void 0 : e.currency,
|
|
111
|
-
image: e == null ? void 0 : e.image,
|
|
112
|
-
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
113
|
-
uuid: e == null ? void 0 : e.uuid,
|
|
114
|
-
location: e == null ? void 0 : e.location,
|
|
115
|
-
isSponsored: e == null ? void 0 : e.isSponsored,
|
|
116
|
-
onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
|
|
117
|
-
},
|
|
118
|
-
l
|
|
119
|
-
)),
|
|
120
|
-
m === !0 && s < (r == null ? void 0 : r.length) && /* @__PURE__ */ o(
|
|
121
|
-
M,
|
|
86
|
+
/* @__PURE__ */ e(b, { children: r == null ? void 0 : r.map((f, p) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ l("div", { className: "list-item", children: [
|
|
87
|
+
/* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
88
|
+
/* @__PURE__ */ e("span", { children: f })
|
|
89
|
+
] }) }, p)) }),
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
g,
|
|
122
92
|
{
|
|
123
|
-
|
|
124
|
-
|
|
93
|
+
size: "medium",
|
|
94
|
+
color: "neutral",
|
|
125
95
|
type: "button",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
children: a === !0 ? f : h
|
|
96
|
+
onClick: () => t(c) ? c() : d(),
|
|
97
|
+
children: s
|
|
129
98
|
}
|
|
130
99
|
)
|
|
131
100
|
] });
|
|
132
101
|
});
|
|
133
102
|
export {
|
|
134
|
-
|
|
103
|
+
N as default
|
|
135
104
|
};
|
package/dist/index5.cjs
CHANGED
|
@@ -1,48 +1,82 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
display:
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),t=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./consts-dNz9tpt4.cjs"),b=require("./Button.cjs"),w=t.newStyled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
border-radius: 0.75rem;
|
|
4
|
+
background-color: ${e=>e.bgcolor||"transparent"};
|
|
5
|
+
overflow: hidden;
|
|
5
6
|
|
|
6
|
-
&
|
|
7
|
-
|
|
8
|
-
min-height: ${e=>e.height};
|
|
9
|
-
max-width: 27rem;
|
|
10
|
-
margin: auto;
|
|
7
|
+
& button {
|
|
8
|
+
width: fit-content;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
& img {
|
|
14
12
|
object-fit: cover;
|
|
15
|
-
width:
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
max-width: ${e=>e.imgW||"33.39346rem"};
|
|
14
|
+
min-width: ${e=>e.imgW||"33.39346rem"};
|
|
15
|
+
max-height: ${e=>e.imgH||"22.5rem"};
|
|
16
|
+
min-height: ${e=>e.imgH||"22.5rem"};
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
20
|
+
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
21
|
+
|
|
22
|
+
`}
|
|
23
|
+
|
|
24
|
+
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
& img {
|
|
27
|
+
max-width: 100%;
|
|
28
|
+
min-width: 100%;
|
|
29
|
+
max-height: ${e=>e.imgHMob||"12.1rem"};
|
|
30
|
+
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
31
|
+
}
|
|
22
32
|
}
|
|
33
|
+
`,y=t.newStyled.div`
|
|
34
|
+
padding: 2rem;
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 1.25rem;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
flex: 1;
|
|
39
|
+
flex-direction: column;
|
|
23
40
|
|
|
24
|
-
|
|
25
|
-
|
|
41
|
+
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
42
|
+
padding: 1.25rem;
|
|
26
43
|
}
|
|
44
|
+
`,j=t.newStyled.div`
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
gap: 0.25rem;
|
|
27
48
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
49
|
+
& .header-title {
|
|
50
|
+
font-size: 1.5rem;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
31
53
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
54
|
+
& .header-subtitle {
|
|
55
|
+
color: var(--gray-600, #676e79);
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
}
|
|
37
59
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
}
|
|
63
|
+
`,v=t.newStyled.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 0.75rem;
|
|
67
|
+
font-size: 0.875rem;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
|
|
70
|
+
& .list-item {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
42
73
|
|
|
43
|
-
& .
|
|
44
|
-
|
|
45
|
-
|
|
74
|
+
& .mng {
|
|
75
|
+
font-size: 1.25rem;
|
|
76
|
+
color: var(--info-600);
|
|
46
77
|
}
|
|
47
78
|
}
|
|
48
|
-
|
|
79
|
+
|
|
80
|
+
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
81
|
+
}
|
|
82
|
+
`,$=o.forwardRef((e,S)=>{const{title:a,subtitle:m,buttonText:s,list:n,image:d,imageHeight:l,imageWidth:c,imageHeightMob:x,hasBorder:g=!0,backgroundColor:h="transparent",onBannerClick:p}=e;return i.jsxs(w,{imgH:l,imgW:c,imgHMob:x,hasBorder:g,bgColor:h,children:[i.jsxs(y,{children:[i.jsxs(j,{children:[i.jsx("div",{className:"header-title",children:a}),i.jsx("div",{className:"header-subitle",children:m})]}),i.jsx(v,{children:n==null?void 0:n.map((u,f)=>i.jsx(o.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:u})]})},f))}),i.jsx(b,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:p,children:s})]}),i.jsx("img",{src:d})]})});module.exports=$;
|