@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/index5.js
CHANGED
|
@@ -1,100 +1,138 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u, Fragment as w } from "react";
|
|
3
|
+
import { n as t } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { M as n } from "./consts-DNVz1x1I.js";
|
|
5
|
+
import v from "./Button.js";
|
|
6
|
+
const y = t.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
border-radius: 0.75rem;
|
|
9
|
+
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
10
|
+
overflow: hidden;
|
|
11
11
|
|
|
12
|
-
&
|
|
13
|
-
|
|
14
|
-
min-height: ${(t) => t.height};
|
|
15
|
-
max-width: 27rem;
|
|
16
|
-
margin: auto;
|
|
12
|
+
& button {
|
|
13
|
+
width: fit-content;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
& img {
|
|
20
17
|
object-fit: cover;
|
|
21
|
-
width:
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
max-width: ${(e) => e.imgW || "33.39346rem"};
|
|
19
|
+
min-width: ${(e) => e.imgW || "33.39346rem"};
|
|
20
|
+
max-height: ${(e) => e.imgH || "22.5rem"};
|
|
21
|
+
min-height: ${(e) => e.imgH || "22.5rem"};
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
25
|
+
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
26
|
+
|
|
27
|
+
`}
|
|
28
|
+
|
|
29
|
+
@media (max-width: ${n + "px"}) {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
& img {
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
min-width: 100%;
|
|
34
|
+
max-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
35
|
+
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
36
|
+
}
|
|
28
37
|
}
|
|
38
|
+
`, $ = t.div`
|
|
39
|
+
padding: 2rem;
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: 1.25rem;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
flex: 1;
|
|
44
|
+
flex-direction: column;
|
|
29
45
|
|
|
30
|
-
|
|
31
|
-
|
|
46
|
+
@media (max-width: ${n + "px"}) {
|
|
47
|
+
padding: 1.25rem;
|
|
32
48
|
}
|
|
49
|
+
`, H = t.div`
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 0.25rem;
|
|
33
53
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
54
|
+
& .header-title {
|
|
55
|
+
font-size: 1.5rem;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
}
|
|
37
58
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
& .header-subtitle {
|
|
60
|
+
color: var(--gray-600, #676e79);
|
|
61
|
+
font-size: 1rem;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
}
|
|
43
64
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
65
|
+
@media (max-width: ${n + "px"}) {
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
}
|
|
68
|
+
`, W = t.div`
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: 0.75rem;
|
|
72
|
+
font-size: 0.875rem;
|
|
73
|
+
font-weight: 500;
|
|
74
|
+
|
|
75
|
+
& .list-item {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
48
78
|
|
|
49
|
-
& .
|
|
50
|
-
|
|
51
|
-
|
|
79
|
+
& .mng {
|
|
80
|
+
font-size: 1.25rem;
|
|
81
|
+
color: var(--info-600);
|
|
52
82
|
}
|
|
53
83
|
}
|
|
54
|
-
|
|
84
|
+
|
|
85
|
+
@media (max-width: ${n + "px"}) {
|
|
86
|
+
}
|
|
87
|
+
`, N = u((e, k) => {
|
|
55
88
|
const {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
title: o,
|
|
90
|
+
subtitle: a,
|
|
91
|
+
buttonText: d,
|
|
92
|
+
list: m,
|
|
93
|
+
image: l,
|
|
94
|
+
imageHeight: c,
|
|
95
|
+
imageWidth: s,
|
|
96
|
+
imageHeightMob: g,
|
|
97
|
+
hasBorder: h = !0,
|
|
98
|
+
backgroundColor: p = "transparent",
|
|
99
|
+
onBannerClick: x
|
|
100
|
+
} = e;
|
|
101
|
+
return /* @__PURE__ */ r(
|
|
102
|
+
y,
|
|
103
|
+
{
|
|
104
|
+
imgH: c,
|
|
105
|
+
imgW: s,
|
|
106
|
+
imgHMob: g,
|
|
107
|
+
hasBorder: h,
|
|
108
|
+
bgColor: p,
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ r($, { children: [
|
|
111
|
+
/* @__PURE__ */ r(H, { children: [
|
|
112
|
+
/* @__PURE__ */ i("div", { className: "header-title", children: o }),
|
|
113
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: a })
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ i(W, { children: m == null ? void 0 : m.map((f, b) => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ r("div", { className: "list-item", children: [
|
|
116
|
+
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
117
|
+
/* @__PURE__ */ i("span", { children: f })
|
|
118
|
+
] }) }, b)) }),
|
|
119
|
+
/* @__PURE__ */ i(
|
|
120
|
+
v,
|
|
121
|
+
{
|
|
122
|
+
size: "medium",
|
|
123
|
+
color: "gray",
|
|
124
|
+
type: "button",
|
|
125
|
+
btnType: "outline",
|
|
126
|
+
onClick: x,
|
|
127
|
+
children: d
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ i("img", { src: l })
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
);
|
|
97
135
|
});
|
|
98
136
|
export {
|
|
99
|
-
|
|
137
|
+
N as default
|
|
100
138
|
};
|
package/dist/index6.cjs
CHANGED
|
@@ -1,81 +1,150 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),x=require("./Button.cjs"),s=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),i=require("./utils-CE6bljYe.cjs"),h=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=require("./consts-dNz9tpt4.cjs"),f=s.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
3
5
|
border-radius: 0.75rem;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
max-height: ${e=>e.height||"22.5rem"};
|
|
7
|
-
min-height: ${e=>e.height||"22.5rem"};
|
|
8
|
-
background-color: ${e=>e.bgcolor||"transparent"};
|
|
9
|
-
|
|
10
|
-
& button {
|
|
11
|
-
width: fit-content;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
15
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
6
|
+
position: relative;
|
|
7
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
|
|
16
8
|
|
|
17
|
-
|
|
9
|
+
grid-column: ${t=>{var e;return((e=t.position)==null?void 0:e.columnStart)||"1"}} /
|
|
10
|
+
${t=>{var e;return((e=t.position)==null?void 0:e.columnEnd)||"6"}};
|
|
11
|
+
grid-row: ${t=>{var e;return((e=t.position)==null?void 0:e.rowStart)||"1"}} /
|
|
12
|
+
${t=>{var e;return((e=t.position)==null?void 0:e.rowEnd)||"1"}};
|
|
18
13
|
|
|
19
|
-
&
|
|
14
|
+
& .wrapper__image {
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
20
17
|
object-fit: cover;
|
|
21
|
-
|
|
22
|
-
min-width: ${e=>e.imgW||"22.5rem"};
|
|
23
|
-
max-height: ${e=>e.height||"22.5rem"};
|
|
24
|
-
min-height: ${e=>e.height||"22.5rem"};
|
|
18
|
+
border-radius: 0.75rem;
|
|
25
19
|
}
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
& .wrapper__image--skeleton {
|
|
22
|
+
width: 24.5rem;
|
|
23
|
+
height: 30rem;
|
|
24
|
+
border-radius: 0.75rem;
|
|
25
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
26
|
+
}
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
& .wrapper__text {
|
|
29
|
+
display: flex;
|
|
34
30
|
flex-direction: column;
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
padding: 1rem;
|
|
33
|
+
position: absolute;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
gap: 0.75rem;
|
|
37
|
+
|
|
38
|
+
& .text__title {
|
|
39
|
+
color: var(--white, #ffffff);
|
|
40
|
+
font-size: 1rem;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
line-height: 1.5rem;
|
|
44
|
+
${i.truncateTextInRows(2)}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
& .text__tag {
|
|
48
|
+
background-color: var(--warning-600, #d97706);
|
|
49
|
+
color: var(--white, #ffffff);
|
|
50
|
+
font-size: 0.875rem;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
line-height: 1.25rem;
|
|
54
|
+
padding: 0.25rem 0.5rem;
|
|
37
55
|
|
|
38
|
-
|
|
39
|
-
|
|
56
|
+
border-radius: 0.375rem;
|
|
57
|
+
background: var(--warning-600, #d97706);
|
|
40
58
|
}
|
|
41
59
|
|
|
42
|
-
&
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
60
|
+
& .text__description {
|
|
61
|
+
color: var(--white);
|
|
62
|
+
font-size: 0.875rem;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
line-height: 1.25rem;
|
|
66
|
+
${i.truncateTextInRows(2)}
|
|
47
67
|
}
|
|
48
|
-
}
|
|
49
|
-
`,M=i.newStyled.div`
|
|
50
|
-
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
51
|
-
display: flex;
|
|
52
|
-
gap: 2rem;
|
|
53
|
-
flex-direction: ${e=>e.isHorizontalContent===!0?"row":"column"};
|
|
54
|
-
flex: 1;
|
|
55
68
|
|
|
56
|
-
|
|
69
|
+
& .text__action {
|
|
70
|
+
background: var(--white);
|
|
71
|
+
color: var(--black);
|
|
57
72
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
73
|
+
&:hover {
|
|
74
|
+
background: var(--primary-500, #f59e0b);
|
|
75
|
+
color: var(--white);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
& .text__title--skeleton {
|
|
80
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
81
|
+
height: 1rem;
|
|
82
|
+
width: 9rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
& .text__description--skeleton {
|
|
86
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
87
|
+
height: 1rem;
|
|
88
|
+
width: 12rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& .text__action--skeleton {
|
|
92
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
93
|
+
height: 2rem;
|
|
94
|
+
width: 9rem;
|
|
95
|
+
}
|
|
61
96
|
}
|
|
62
|
-
`,
|
|
97
|
+
`,u=c.forwardRef(({title:t,image:e,description:n,actionText:o,onSelectCard:a=()=>{},className:l,position:g,tag:d},y)=>{const p=h.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(f,{theme:p,className:l,onClick:a,position:g,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[d&&r.jsx("div",{className:"text__tag",children:d}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(o)&&r.jsx(x,{text:o,onClick:a,className:"text__action"})]})]})})}),_=s.newStyled.div`
|
|
63
98
|
display: flex;
|
|
64
99
|
flex-direction: column;
|
|
65
|
-
gap:
|
|
100
|
+
gap: 1.5rem;
|
|
66
101
|
|
|
67
|
-
& .
|
|
68
|
-
|
|
102
|
+
& .regular-title {
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 0.5rem;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
font-size: 1.5rem;
|
|
69
108
|
font-weight: 600;
|
|
109
|
+
& .regular-title-text {
|
|
110
|
+
display: flex;
|
|
111
|
+
gap: 0.5rem;
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& i {
|
|
116
|
+
font-size: 1.5rem;
|
|
117
|
+
color: var(--primary-500, #f59e0b);
|
|
118
|
+
}
|
|
70
119
|
}
|
|
71
120
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
121
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
122
|
+
gap: 1.25rem;
|
|
123
|
+
|
|
124
|
+
& .regular-title {
|
|
125
|
+
font-size: 1.375rem;
|
|
126
|
+
|
|
127
|
+
&.center {
|
|
128
|
+
justify-content: center;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
76
131
|
}
|
|
132
|
+
`,w=s.newStyled.div`
|
|
133
|
+
display: grid;
|
|
134
|
+
grid-template-columns: repeat(12, 1fr);
|
|
135
|
+
grid-template-rows: 15rem 15rem;
|
|
136
|
+
grid-column-gap: 1.25rem;
|
|
137
|
+
grid-row-gap: 1.25rem;
|
|
138
|
+
height: 30rem;
|
|
139
|
+
max-height: 30rem;
|
|
77
140
|
|
|
78
|
-
@media (max-width: ${
|
|
141
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
142
|
+
display: flex;
|
|
79
143
|
flex-direction: column;
|
|
144
|
+
gap: 1rem;
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: 100%;
|
|
147
|
+
max-height: 100%;
|
|
148
|
+
padding: 0 1rem;
|
|
80
149
|
}
|
|
81
|
-
`,
|
|
150
|
+
`,b=c.forwardRef(({title:t,items:e,limit:n=3},o)=>r.jsxs(_,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(w,{limit:n,children:e&&(e==null?void 0:e.map((a,l)=>r.jsx(u,{...a},`landing-page-masonry-general-card__${l+1}`)))})]}));module.exports=b;
|