@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/index9.cjs
CHANGED
|
@@ -1,150 +1,98 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
align-items: flex-start;
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),u=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),a=require("./consts-dNz9tpt4.cjs"),d=require("./utils-CE6bljYe.cjs"),$=require("./index-BlV3tdJ8.cjs"),I=u.newStyled.div`
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 11.625rem;
|
|
5
4
|
border-radius: 0.75rem;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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"}};
|
|
5
|
+
background: ${d.linearGradientAnimation("-90deg")};
|
|
6
|
+
`,A=u.newStyled.div`
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: auto;
|
|
9
|
+
border-radius: 999px;
|
|
13
10
|
|
|
14
11
|
& .wrapper__image {
|
|
15
|
-
height: 100%;
|
|
16
12
|
width: 100%;
|
|
13
|
+
aspect-ratio: 1 / 1;
|
|
17
14
|
object-fit: cover;
|
|
18
|
-
border-radius:
|
|
15
|
+
border-radius: 999px;
|
|
16
|
+
max-height: 9.875rem;
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
&.active {
|
|
20
|
+
border: var(--yellow-600, #d97706);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (max-width: ${a.MOBILE_SIZE_PX+"px"}) {
|
|
24
|
+
& .wrapper__image {
|
|
25
|
+
height: auto;
|
|
26
|
+
}
|
|
26
27
|
}
|
|
28
|
+
`,F=u.newStyled.div`
|
|
29
|
+
width: 9.875rem;
|
|
30
|
+
height: 9.875rem;
|
|
31
|
+
border-radius: 999px;
|
|
32
|
+
background: ${d.linearGradientAnimation("-90deg")};
|
|
33
|
+
|
|
34
|
+
@media (max-width: ${a.MOBILE_SIZE_PX+"px"}) {
|
|
35
|
+
width: 4.5rem;
|
|
36
|
+
height: 4.5rem;
|
|
37
|
+
}
|
|
38
|
+
`,N=f.forwardRef(({},i)=>t.jsx(F,{})),k=f.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},_)=>t.jsx(A,{className:i?"active":"",onClick:l,children:d.isDefined(r)?r:t.jsx("img",{src:o,className:"wrapper__image"})})),C=f.forwardRef(({uuid:i,title:o,price:r,currency:l,isNegotiable:_,isFree:x,image:w,sellerUuid:s,onSelectCard:m=()=>{},imageComponent:p,negotiableText:y="Negotiable",freeText:g="Free"},h)=>t.jsx($.SimpleProductCard,{uuid:i,title:o,price:r,currency:l,isNegotiable:_,isFree:x,image:w,imageComponent:p,sellerUuid:s,onSelectCard:m,negotiableText:y,freeText:g})),W=f.forwardRef(({},i)=>t.jsx(I,{})),O=u.newStyled.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 1.5rem;
|
|
27
43
|
|
|
28
|
-
& .
|
|
44
|
+
& .wrapper__heading {
|
|
29
45
|
display: flex;
|
|
30
46
|
flex-direction: column;
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
}
|
|
47
|
+
gap: 1rem;
|
|
48
|
+
text-align: center;
|
|
46
49
|
|
|
47
|
-
& .
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
font-size:
|
|
50
|
+
& .wrapper__title {
|
|
51
|
+
color: var(--gray-950, #14161a);
|
|
52
|
+
text-align: center;
|
|
53
|
+
font-size: 1.5rem;
|
|
51
54
|
font-style: normal;
|
|
52
|
-
font-weight:
|
|
53
|
-
line-height:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
border-radius: 0.375rem;
|
|
57
|
-
background: var(--warning-600, #d97706);
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
line-height: 2rem;
|
|
57
|
+
letter-spacing: -0.47px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
& .
|
|
61
|
-
color: var(
|
|
60
|
+
& .wrapper__subtitle {
|
|
61
|
+
color: var(---gray-600, #676e79);
|
|
62
62
|
font-size: 0.875rem;
|
|
63
63
|
font-style: normal;
|
|
64
64
|
font-weight: 400;
|
|
65
65
|
line-height: 1.25rem;
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
& .text__action {
|
|
70
|
-
background: var(--white);
|
|
71
|
-
color: var(--black);
|
|
72
|
-
|
|
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;
|
|
66
|
+
letter-spacing: 0.25px;
|
|
95
67
|
}
|
|
96
68
|
}
|
|
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`
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
gap: 1.5rem;
|
|
101
69
|
|
|
102
|
-
& .
|
|
103
|
-
display:
|
|
104
|
-
|
|
70
|
+
& .wrapper__avatars {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitAvatars}, minmax(0, 1fr))`};
|
|
73
|
+
gap: 2rem;
|
|
74
|
+
justify-items: center;
|
|
105
75
|
align-items: center;
|
|
106
|
-
justify-content: space-between;
|
|
107
|
-
font-size: 1.5rem;
|
|
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
|
-
}
|
|
119
76
|
}
|
|
120
77
|
|
|
121
|
-
|
|
78
|
+
& .wrapper__cards {
|
|
79
|
+
display: grid;
|
|
80
|
+
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCards}, minmax(0, 1fr))`};
|
|
122
81
|
gap: 1.25rem;
|
|
82
|
+
justify-items: center;
|
|
83
|
+
align-items: center;
|
|
84
|
+
width: 100%;
|
|
85
|
+
}
|
|
123
86
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
justify-content: center;
|
|
129
|
-
}
|
|
87
|
+
@media (max-width: ${a.MOBILE_SIZE_PX+"px"}) {
|
|
88
|
+
& .wrapper__avatars {
|
|
89
|
+
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
90
|
+
gap: auto;
|
|
130
91
|
}
|
|
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;
|
|
140
92
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
width: 100%;
|
|
146
|
-
height: 100%;
|
|
147
|
-
max-height: 100%;
|
|
148
|
-
padding: 0 1rem;
|
|
93
|
+
& .wrapper__cards {
|
|
94
|
+
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
95
|
+
gap: 1rem;
|
|
96
|
+
}
|
|
149
97
|
}
|
|
150
|
-
`,
|
|
98
|
+
`,R=f.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limitCards:_=6,limitAvatarsForMobile:x=4,limitCardsForMobile:w=2,cards:s=[],onSelectAvatar:m=()=>{},onSelectCard:p=()=>{}},y)=>{var j,b;const g=e=>{m==null||m(e==null?void 0:e.uuid)},h=e=>{p==null||p(e==null?void 0:e.uuid)};return t.jsxs(O,{limitAvatars:l,limitAvatarsForMobile:x,limitCards:_,limitCardsForMobile:w,children:[t.jsxs("div",{className:"wrapper__heading",children:[i&&t.jsx("div",{className:"wrapper__title",children:i}),o&&t.jsx("div",{className:"wrapper__subtitle",children:o})]}),t.jsx("div",{className:"wrapper__avatars",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((e,n)=>t.jsx(k,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g==null?void 0:g(e)},`field-of-interests-with-avatars-card-avatar__${n+1}`)):(j=Array.from("1234"))==null?void 0:j.map((e,n)=>t.jsx(N,{},`field-of-interests-with-avatars-card-avatar-skeleton__${n+1}`))}),t.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,n)=>t.jsx(C,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,isNegotiable:e==null?void 0:e.isNegotiable,isFree:e==null?void 0:e.isFree,image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,sellerUuid:e==null?void 0:e.sellerUuid,negotiableText:e==null?void 0:e.negotiableText,freeText:e==null?void 0:e.freeText,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-avatars-card__${n+1}`)):(b=Array.from("123456"))==null?void 0:b.map((e,n)=>t.jsx(W,{},`field-of-interests-with-avatars-card-skeleton__${n+1}`))})]})});module.exports=R;
|
package/dist/index9.js
CHANGED
|
@@ -1,222 +1,221 @@
|
|
|
1
|
-
import { jsx as t,
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { m as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
align-items: flex-start;
|
|
1
|
+
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { n as u } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { M as x } from "./consts-DNVz1x1I.js";
|
|
5
|
+
import { m as F, l as N } from "./utils-DtEdJZWa.js";
|
|
6
|
+
import { S as k } from "./index-DGl-lSfF.js";
|
|
7
|
+
const A = u.div`
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 11.625rem;
|
|
12
10
|
border-radius: 0.75rem;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return ((e = r.position) == null ? void 0 : e.columnStart) || "1";
|
|
19
|
-
}} /
|
|
20
|
-
${(r) => {
|
|
21
|
-
var e;
|
|
22
|
-
return ((e = r.position) == null ? void 0 : e.columnEnd) || "6";
|
|
23
|
-
}};
|
|
24
|
-
grid-row: ${(r) => {
|
|
25
|
-
var e;
|
|
26
|
-
return ((e = r.position) == null ? void 0 : e.rowStart) || "1";
|
|
27
|
-
}} /
|
|
28
|
-
${(r) => {
|
|
29
|
-
var e;
|
|
30
|
-
return ((e = r.position) == null ? void 0 : e.rowEnd) || "1";
|
|
31
|
-
}};
|
|
11
|
+
background: ${F("-90deg")};
|
|
12
|
+
`, C = u.div`
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: auto;
|
|
15
|
+
border-radius: 999px;
|
|
32
16
|
|
|
33
17
|
& .wrapper__image {
|
|
34
|
-
height: 100%;
|
|
35
18
|
width: 100%;
|
|
19
|
+
aspect-ratio: 1 / 1;
|
|
36
20
|
object-fit: cover;
|
|
37
|
-
border-radius:
|
|
21
|
+
border-radius: 999px;
|
|
22
|
+
max-height: 9.875rem;
|
|
38
23
|
}
|
|
39
24
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
height: 30rem;
|
|
43
|
-
border-radius: 0.75rem;
|
|
44
|
-
background-color: ${o("-90deg")};
|
|
25
|
+
&.active {
|
|
26
|
+
border: var(--yellow-600, #d97706);
|
|
45
27
|
}
|
|
46
28
|
|
|
47
|
-
|
|
29
|
+
@media (max-width: ${x + "px"}) {
|
|
30
|
+
& .wrapper__image {
|
|
31
|
+
height: auto;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`, W = u.div`
|
|
35
|
+
width: 9.875rem;
|
|
36
|
+
height: 9.875rem;
|
|
37
|
+
border-radius: 999px;
|
|
38
|
+
background: ${F("-90deg")};
|
|
39
|
+
|
|
40
|
+
@media (max-width: ${x + "px"}) {
|
|
41
|
+
width: 4.5rem;
|
|
42
|
+
height: 4.5rem;
|
|
43
|
+
}
|
|
44
|
+
`, I = f(({}, i) => /* @__PURE__ */ t(W, {})), v = f(
|
|
45
|
+
({ isActive: i, image: s, imageComponent: r, onSelectCard: o = () => {
|
|
46
|
+
} }, h) => /* @__PURE__ */ t(
|
|
47
|
+
C,
|
|
48
|
+
{
|
|
49
|
+
className: i ? "active" : "",
|
|
50
|
+
onClick: o,
|
|
51
|
+
children: N(r) ? r : /* @__PURE__ */ t("img", { src: s, className: "wrapper__image" })
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
), O = f(
|
|
55
|
+
({
|
|
56
|
+
uuid: i,
|
|
57
|
+
title: s,
|
|
58
|
+
price: r,
|
|
59
|
+
currency: o,
|
|
60
|
+
isNegotiable: h,
|
|
61
|
+
isFree: w,
|
|
62
|
+
image: a,
|
|
63
|
+
sellerUuid: m,
|
|
64
|
+
onSelectCard: l = () => {
|
|
65
|
+
},
|
|
66
|
+
imageComponent: p,
|
|
67
|
+
negotiableText: d = "Negotiable",
|
|
68
|
+
freeText: g = "Free"
|
|
69
|
+
}, _) => /* @__PURE__ */ t(
|
|
70
|
+
k,
|
|
71
|
+
{
|
|
72
|
+
uuid: i,
|
|
73
|
+
title: s,
|
|
74
|
+
price: r,
|
|
75
|
+
currency: o,
|
|
76
|
+
isNegotiable: h,
|
|
77
|
+
isFree: w,
|
|
78
|
+
image: a,
|
|
79
|
+
imageComponent: p,
|
|
80
|
+
sellerUuid: m,
|
|
81
|
+
onSelectCard: l,
|
|
82
|
+
negotiableText: d,
|
|
83
|
+
freeText: g
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
), j = f(({}, i) => /* @__PURE__ */ t(A, {})), M = u.div`
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 1.5rem;
|
|
91
|
+
|
|
92
|
+
& .wrapper__heading {
|
|
48
93
|
display: flex;
|
|
49
94
|
flex-direction: column;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
position: absolute;
|
|
53
|
-
bottom: 0;
|
|
54
|
-
left: 0;
|
|
55
|
-
gap: 0.75rem;
|
|
56
|
-
|
|
57
|
-
& .text__title {
|
|
58
|
-
color: var(--white, #ffffff);
|
|
59
|
-
font-size: 1rem;
|
|
60
|
-
font-style: normal;
|
|
61
|
-
font-weight: 500;
|
|
62
|
-
line-height: 1.5rem;
|
|
63
|
-
${c(2)}
|
|
64
|
-
}
|
|
95
|
+
gap: 1rem;
|
|
96
|
+
text-align: center;
|
|
65
97
|
|
|
66
|
-
& .
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
font-size:
|
|
98
|
+
& .wrapper__title {
|
|
99
|
+
color: var(--gray-950, #14161a);
|
|
100
|
+
text-align: center;
|
|
101
|
+
font-size: 1.5rem;
|
|
70
102
|
font-style: normal;
|
|
71
|
-
font-weight:
|
|
72
|
-
line-height:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
border-radius: 0.375rem;
|
|
76
|
-
background: var(--warning-600, #d97706);
|
|
103
|
+
font-weight: 600;
|
|
104
|
+
line-height: 2rem;
|
|
105
|
+
letter-spacing: -0.47px;
|
|
77
106
|
}
|
|
78
107
|
|
|
79
|
-
& .
|
|
80
|
-
color: var(
|
|
108
|
+
& .wrapper__subtitle {
|
|
109
|
+
color: var(---gray-600, #676e79);
|
|
81
110
|
font-size: 0.875rem;
|
|
82
111
|
font-style: normal;
|
|
83
112
|
font-weight: 400;
|
|
84
113
|
line-height: 1.25rem;
|
|
85
|
-
|
|
114
|
+
letter-spacing: 0.25px;
|
|
86
115
|
}
|
|
116
|
+
}
|
|
87
117
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
}
|
|
118
|
+
& .wrapper__avatars {
|
|
119
|
+
display: grid;
|
|
120
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatars}, minmax(0, 1fr))`};
|
|
121
|
+
gap: 2rem;
|
|
122
|
+
justify-items: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
}
|
|
97
125
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
126
|
+
& .wrapper__cards {
|
|
127
|
+
display: grid;
|
|
128
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(0, 1fr))`};
|
|
129
|
+
gap: 1.25rem;
|
|
130
|
+
justify-items: center;
|
|
131
|
+
align-items: center;
|
|
132
|
+
width: 100%;
|
|
133
|
+
}
|
|
103
134
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
135
|
+
@media (max-width: ${x + "px"}) {
|
|
136
|
+
& .wrapper__avatars {
|
|
137
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitAvatarsForMobile}, minmax(0, 1fr))`};
|
|
138
|
+
gap: auto;
|
|
108
139
|
}
|
|
109
140
|
|
|
110
|
-
& .
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
width: 9rem;
|
|
141
|
+
& .wrapper__cards {
|
|
142
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
143
|
+
gap: 1rem;
|
|
114
144
|
}
|
|
115
145
|
}
|
|
116
|
-
`,
|
|
146
|
+
`, D = f(
|
|
117
147
|
({
|
|
118
|
-
title:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
148
|
+
title: i,
|
|
149
|
+
subtitle: s,
|
|
150
|
+
avatars: r = [],
|
|
151
|
+
limitAvatars: o = 4,
|
|
152
|
+
limitCards: h = 6,
|
|
153
|
+
limitAvatarsForMobile: w = 4,
|
|
154
|
+
limitCardsForMobile: a = 2,
|
|
155
|
+
cards: m = [],
|
|
156
|
+
onSelectAvatar: l = () => {
|
|
123
157
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
158
|
+
onSelectCard: p = () => {
|
|
159
|
+
}
|
|
160
|
+
}, d) => {
|
|
161
|
+
var $, b;
|
|
162
|
+
const g = (e) => {
|
|
163
|
+
l == null || l(e == null ? void 0 : e.uuid);
|
|
164
|
+
}, _ = (e) => {
|
|
165
|
+
p == null || p(e == null ? void 0 : e.uuid);
|
|
166
|
+
};
|
|
167
|
+
return /* @__PURE__ */ y(
|
|
168
|
+
M,
|
|
131
169
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
170
|
+
limitAvatars: o,
|
|
171
|
+
limitAvatarsForMobile: w,
|
|
172
|
+
limitCards: h,
|
|
173
|
+
limitCardsForMobile: a,
|
|
136
174
|
children: [
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
s && /* @__PURE__ */ t("div", { className: "
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
175
|
+
/* @__PURE__ */ y("div", { className: "wrapper__heading", children: [
|
|
176
|
+
i && /* @__PURE__ */ t("div", { className: "wrapper__title", children: i }),
|
|
177
|
+
s && /* @__PURE__ */ t("div", { className: "wrapper__subtitle", children: s })
|
|
178
|
+
] }),
|
|
179
|
+
/* @__PURE__ */ t("div", { className: "wrapper__avatars", children: r && (r == null ? void 0 : r.length) > 0 ? r == null ? void 0 : r.map((e, n) => /* @__PURE__ */ t(
|
|
180
|
+
v,
|
|
181
|
+
{
|
|
182
|
+
image: e == null ? void 0 : e.image,
|
|
183
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
184
|
+
onSelectCard: () => g == null ? void 0 : g(e)
|
|
185
|
+
},
|
|
186
|
+
`field-of-interests-with-avatars-card-avatar__${n + 1}`
|
|
187
|
+
)) : ($ = Array.from("1234")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ t(
|
|
188
|
+
I,
|
|
189
|
+
{},
|
|
190
|
+
`field-of-interests-with-avatars-card-avatar-skeleton__${n + 1}`
|
|
191
|
+
)) }),
|
|
192
|
+
/* @__PURE__ */ t("div", { className: "wrapper__cards", children: m && (m == null ? void 0 : m.length) > 0 ? m == null ? void 0 : m.map((e, n) => /* @__PURE__ */ t(
|
|
193
|
+
O,
|
|
194
|
+
{
|
|
195
|
+
uuid: e == null ? void 0 : e.uuid,
|
|
196
|
+
title: e == null ? void 0 : e.title,
|
|
197
|
+
price: e == null ? void 0 : e.price,
|
|
198
|
+
currency: e == null ? void 0 : e.currency,
|
|
199
|
+
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
200
|
+
isFree: e == null ? void 0 : e.isFree,
|
|
201
|
+
image: e == null ? void 0 : e.image,
|
|
202
|
+
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
203
|
+
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
204
|
+
negotiableText: e == null ? void 0 : e.negotiableText,
|
|
205
|
+
freeText: e == null ? void 0 : e.freeText,
|
|
206
|
+
onSelectCard: () => _ == null ? void 0 : _(e)
|
|
207
|
+
},
|
|
208
|
+
`field-of-interests-with-avatars-card__${n + 1}`
|
|
209
|
+
)) : (b = Array.from("123456")) == null ? void 0 : b.map((e, n) => /* @__PURE__ */ t(
|
|
210
|
+
j,
|
|
211
|
+
{},
|
|
212
|
+
`field-of-interests-with-avatars-card-skeleton__${n + 1}`
|
|
213
|
+
)) })
|
|
151
214
|
]
|
|
152
215
|
}
|
|
153
|
-
)
|
|
154
|
-
}
|
|
155
|
-
), y = d.div`
|
|
156
|
-
display: flex;
|
|
157
|
-
flex-direction: column;
|
|
158
|
-
gap: 1.5rem;
|
|
159
|
-
|
|
160
|
-
& .regular-title {
|
|
161
|
-
display: flex;
|
|
162
|
-
gap: 0.5rem;
|
|
163
|
-
align-items: center;
|
|
164
|
-
justify-content: space-between;
|
|
165
|
-
font-size: 1.5rem;
|
|
166
|
-
font-weight: 600;
|
|
167
|
-
& .regular-title-text {
|
|
168
|
-
display: flex;
|
|
169
|
-
gap: 0.5rem;
|
|
170
|
-
align-items: center;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
& i {
|
|
174
|
-
font-size: 1.5rem;
|
|
175
|
-
color: var(--primary-500, #f59e0b);
|
|
176
|
-
}
|
|
216
|
+
);
|
|
177
217
|
}
|
|
178
|
-
|
|
179
|
-
@media (max-width: ${f + "px"}) {
|
|
180
|
-
gap: 1.25rem;
|
|
181
|
-
|
|
182
|
-
& .regular-title {
|
|
183
|
-
font-size: 1.375rem;
|
|
184
|
-
|
|
185
|
-
&.center {
|
|
186
|
-
justify-content: center;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
`, k = d.div`
|
|
191
|
-
display: grid;
|
|
192
|
-
grid-template-columns: repeat(12, 1fr);
|
|
193
|
-
grid-template-rows: 15rem 15rem;
|
|
194
|
-
grid-column-gap: 1.25rem;
|
|
195
|
-
grid-row-gap: 1.25rem;
|
|
196
|
-
height: 30rem;
|
|
197
|
-
max-height: 30rem;
|
|
198
|
-
|
|
199
|
-
@media (max-width: ${f + "px"}) {
|
|
200
|
-
display: flex;
|
|
201
|
-
flex-direction: column;
|
|
202
|
-
gap: 1rem;
|
|
203
|
-
width: 100%;
|
|
204
|
-
height: 100%;
|
|
205
|
-
max-height: 100%;
|
|
206
|
-
padding: 0 1rem;
|
|
207
|
-
}
|
|
208
|
-
`, C = p(
|
|
209
|
-
({ title: r, items: e, limit: i = 3 }, n) => /* @__PURE__ */ m(y, { children: [
|
|
210
|
-
/* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
|
|
211
|
-
/* @__PURE__ */ t(k, { limit: i, children: e && (e == null ? void 0 : e.map((a, l) => /* @__PURE__ */ t(
|
|
212
|
-
v,
|
|
213
|
-
{
|
|
214
|
-
...a
|
|
215
|
-
},
|
|
216
|
-
`landing-page-masonry-general-card__${l + 1}`
|
|
217
|
-
))) })
|
|
218
|
-
] })
|
|
219
218
|
);
|
|
220
219
|
export {
|
|
221
|
-
|
|
220
|
+
D as default
|
|
222
221
|
};
|
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -147,19 +147,19 @@ export default defineConfig({
|
|
|
147
147
|
),
|
|
148
148
|
resolve(
|
|
149
149
|
__dirname,
|
|
150
|
-
"src/Landing Sections/products-sections/detailed-products-section/
|
|
150
|
+
"src/Landing Sections/products-sections/detailed-products-section/DetailedProductsSection.jsx"
|
|
151
151
|
),
|
|
152
152
|
resolve(
|
|
153
153
|
__dirname,
|
|
154
|
-
"src/Landing Sections/products-sections/products-with-banner-section/
|
|
154
|
+
"src/Landing Sections/products-sections/products-with-banner-section/ProductsWithBannerSection.jsx"
|
|
155
155
|
),
|
|
156
156
|
resolve(
|
|
157
157
|
__dirname,
|
|
158
|
-
"src/Landing Sections/products-sections/simple-products-section/
|
|
158
|
+
"src/Landing Sections/products-sections/simple-products-section/SimpleProductsSection.jsx"
|
|
159
159
|
),
|
|
160
160
|
resolve(
|
|
161
161
|
__dirname,
|
|
162
|
-
"src/Landing Sections/products-sections/urgent-sale-products-section/
|
|
162
|
+
"src/Landing Sections/products-sections/urgent-sale-products-section/UrgentSaleProductsSection.jsx"
|
|
163
163
|
),
|
|
164
164
|
resolve(
|
|
165
165
|
__dirname,
|