@lanaco/lnc-react-ui 4.0.73 → 4.0.75
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/BannerSectionSimple.cjs +9 -9
- package/dist/BannerSectionSimple.js +14 -14
- package/dist/BrandHitsSection.cjs +3 -3
- package/dist/BrandHitsSection.js +18 -18
- package/dist/CalorieCalculatorSection.cjs +20 -11
- package/dist/CalorieCalculatorSection.js +168 -159
- package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
- package/dist/FieldOfInterestsMasonrySection.js +21 -21
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +5 -5
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +41 -41
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +45 -43
- package/dist/GeneralWithTagsCardsSection.cjs +14 -14
- package/dist/GeneralWithTagsCardsSection.js +37 -40
- package/dist/SalesCampaignsSection.cjs +4 -4
- package/dist/SalesCampaignsSection.js +110 -108
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),o=require("./utils-BXPz9bck.cjs"),N=require("./Icon.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),I=require("./useEffectOnce-DFrzfNzT.cjs"),E=d.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: fit-content;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
@media (max-width: ${
|
|
93
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
94
94
|
flex-direction: row;
|
|
95
95
|
align-items: center;
|
|
96
96
|
gap: 0.25rem;
|
|
@@ -123,11 +123,11 @@
|
|
|
123
123
|
border-radius: 999px;
|
|
124
124
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
125
125
|
|
|
126
|
-
@media (max-width: ${
|
|
126
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
127
127
|
width: 7.5rem;
|
|
128
128
|
height: 2.5rem;
|
|
129
129
|
}
|
|
130
|
-
`,z=l.forwardRef(({},i)=>r.jsx(q,{})),O=l.forwardRef(({text:i,isActive:
|
|
130
|
+
`,z=l.forwardRef(({},i)=>r.jsx(q,{})),O=l.forwardRef(({text:i,isActive:s,icon:t,onSelectCard:n=()=>{}},p)=>r.jsxs(R,{className:s?"active":"",onClick:n,children:[r.jsx(N,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),C=l.forwardRef(({image:i,imageComponent:s,title:t,description:n,className:p,onSelectCard:c=()=>{}},x)=>{const{theme:m}=k.useTheme();return r.jsxs(E,{theme:m,className:p,onClick:c,children:[o.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),F=l.forwardRef(({},i)=>r.jsxs(M,{children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__title"}),r.jsx("div",{className:"wrapper__description"})]})]})),L=d.styled.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
flex-direction: column;
|
|
133
133
|
align-items: center;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
@media (max-width: ${
|
|
182
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
183
183
|
& .wrapper__tags {
|
|
184
184
|
display: flex;
|
|
185
185
|
overflow-x: scroll;
|
|
@@ -191,4 +191,4 @@
|
|
|
191
191
|
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
`,W=l.forwardRef(({title:i,subtitle:
|
|
194
|
+
`,W=l.forwardRef(({title:i,subtitle:s,tags:t=[],items:n=[],limitTags:p=5,limitTagsForMobile:c=5,limit:x=3,limitForMobile:m=2,onSelectTag:_=()=>{},onSelectCard:f=()=>{}},j)=>{var u,y;const w=e=>{_==null||_(e)},h=e=>{f==null||f(e)};return I.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(v=>{const b=v.getBoundingClientRect().height,$=Math.ceil((b+10)/20);v.style.gridRowEnd=`span ${$}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(L,{ref:j,limitTags:p,limitTagsForMobile:c,limitCards:x,limitCardsForMobile:m,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,a)=>r.jsx(O,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-masonry-tag__${a+1}`)):(u=Array.from("12345"))==null?void 0:u.map((e,a)=>r.jsx(z,{},`field-of-interests-masonry-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,a)=>r.jsx(C,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>h==null?void 0:h(e==null?void 0:e.uuid),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):(y=Array.from("12345"))==null?void 0:y.map((e,a)=>r.jsx(F,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=W;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as w } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { t as b, m as $, l as M } from "./utils-DCs-SbIv.js";
|
|
6
6
|
import I from "./Icon.js";
|
|
7
7
|
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
@@ -98,7 +98,7 @@ const F = p.div`
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
@media (max-width: ${
|
|
101
|
+
@media (max-width: ${w + "px"}) {
|
|
102
102
|
flex-direction: row;
|
|
103
103
|
align-items: center;
|
|
104
104
|
gap: 0.25rem;
|
|
@@ -131,13 +131,13 @@ const F = p.div`
|
|
|
131
131
|
border-radius: 999px;
|
|
132
132
|
background: ${$("-90deg")};
|
|
133
133
|
|
|
134
|
-
@media (max-width: ${
|
|
134
|
+
@media (max-width: ${w + "px"}) {
|
|
135
135
|
width: 7.5rem;
|
|
136
136
|
height: 2.5rem;
|
|
137
137
|
}
|
|
138
138
|
`, A = l(({}, r) => /* @__PURE__ */ i(j, {})), L = l(
|
|
139
139
|
({ text: r, isActive: o, icon: t, onSelectCard: a = () => {
|
|
140
|
-
} },
|
|
140
|
+
} }, d) => /* @__PURE__ */ s(W, { className: o ? "active" : "", onClick: a, children: [
|
|
141
141
|
/* @__PURE__ */ i(I, { icon: t, className: "wrapper__icon" }),
|
|
142
142
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
143
143
|
] })
|
|
@@ -147,12 +147,12 @@ const F = p.div`
|
|
|
147
147
|
imageComponent: o,
|
|
148
148
|
title: t,
|
|
149
149
|
description: a,
|
|
150
|
-
className:
|
|
151
|
-
onSelectCard:
|
|
150
|
+
className: d,
|
|
151
|
+
onSelectCard: m = () => {
|
|
152
152
|
}
|
|
153
|
-
},
|
|
153
|
+
}, x) => {
|
|
154
154
|
const { theme: c } = C();
|
|
155
|
-
return /* @__PURE__ */ s(F, { theme: c, className:
|
|
155
|
+
return /* @__PURE__ */ s(F, { theme: c, className: d, onClick: m, children: [
|
|
156
156
|
M(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
157
157
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
158
158
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
@@ -218,7 +218,7 @@ const F = p.div`
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
@media (max-width: ${
|
|
221
|
+
@media (max-width: ${w + "px"}) {
|
|
222
222
|
& .wrapper__tags {
|
|
223
223
|
display: flex;
|
|
224
224
|
overflow-x: scroll;
|
|
@@ -236,20 +236,20 @@ const F = p.div`
|
|
|
236
236
|
subtitle: o,
|
|
237
237
|
tags: t = [],
|
|
238
238
|
items: a = [],
|
|
239
|
-
limitTags:
|
|
240
|
-
limitTagsForMobile:
|
|
241
|
-
limit:
|
|
239
|
+
limitTags: d = 5,
|
|
240
|
+
limitTagsForMobile: m = 5,
|
|
241
|
+
limit: x = 3,
|
|
242
242
|
limitForMobile: c = 2,
|
|
243
243
|
onSelectTag: f = () => {
|
|
244
244
|
},
|
|
245
245
|
onSelectCard: _ = () => {
|
|
246
246
|
}
|
|
247
247
|
}, N) => {
|
|
248
|
-
var
|
|
248
|
+
var u, y;
|
|
249
249
|
const h = (e) => {
|
|
250
|
-
f == null || f(e
|
|
251
|
-
},
|
|
252
|
-
_ == null || _(e
|
|
250
|
+
f == null || f(e);
|
|
251
|
+
}, g = (e) => {
|
|
252
|
+
_ == null || _(e);
|
|
253
253
|
};
|
|
254
254
|
return E(() => {
|
|
255
255
|
const e = () => {
|
|
@@ -265,9 +265,9 @@ const F = p.div`
|
|
|
265
265
|
q,
|
|
266
266
|
{
|
|
267
267
|
ref: N,
|
|
268
|
-
limitTags:
|
|
269
|
-
limitTagsForMobile:
|
|
270
|
-
limitCards:
|
|
268
|
+
limitTags: d,
|
|
269
|
+
limitTagsForMobile: m,
|
|
270
|
+
limitCards: x,
|
|
271
271
|
limitCardsForMobile: c,
|
|
272
272
|
children: [
|
|
273
273
|
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
@@ -282,7 +282,7 @@ const F = p.div`
|
|
|
282
282
|
onSelectCard: () => h == null ? void 0 : h(e)
|
|
283
283
|
},
|
|
284
284
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
285
|
-
)) : (
|
|
285
|
+
)) : (u = Array.from("12345")) == null ? void 0 : u.map((e, n) => /* @__PURE__ */ i(
|
|
286
286
|
A,
|
|
287
287
|
{},
|
|
288
288
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
@@ -294,7 +294,7 @@ const F = p.div`
|
|
|
294
294
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
295
295
|
title: e == null ? void 0 : e.title,
|
|
296
296
|
description: e == null ? void 0 : e.description,
|
|
297
|
-
onSelectCard: () =>
|
|
297
|
+
onSelectCard: () => g == null ? void 0 : g(e == null ? void 0 : e.uuid),
|
|
298
298
|
className: "wrapper__card"
|
|
299
299
|
},
|
|
300
300
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-CtNoHdBj.cjs"),y=require("./utils-BXPz9bck.cjs"),$=require("./index-CfA579i2.cjs"),c=h.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 11.625rem;
|
|
4
4
|
border-radius: 0.75rem;
|
|
5
5
|
background: ${y.linearGradientAnimation("-90deg")};
|
|
6
|
-
`,
|
|
6
|
+
`,v=h.styled.div`
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: auto;
|
|
9
9
|
border-radius: 999px;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
height: auto;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,C=h.styled.div`
|
|
33
33
|
width: 9.875rem;
|
|
34
34
|
height: 9.875rem;
|
|
35
35
|
border-radius: 999px;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
width: 4.5rem;
|
|
40
40
|
height: 4.5rem;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,F=g.forwardRef(({},i)=>t.jsx(C,{})),I=g.forwardRef(({isActive:i,image:o,imageComponent:r,onSelectCard:l=()=>{}},f)=>t.jsx(v,{className:i?"active":"",onClick:l,children:y.isDefined(r)?r:t.jsx("img",{src:o,className:"wrapper__image"})})),A=g.forwardRef(({uuid:i,title:o,price:r,currency:l,isNegotiable:f,isFree:x,image:u,sellerUuid:s,onSelectCard:m=()=>{},imageComponent:p,negotiableText:d="Negotiable",freeText:a="Free"},_)=>t.jsx($.SimpleProductCard,{uuid:i,title:o,price:r,currency:l,isNegotiable:f,isFree:x,image:u,imageComponent:p,sellerUuid:s,onSelectCard:m,negotiableText:d,freeText:a})),N=g.forwardRef(({},i)=>t.jsx(c,{})),k=h.styled.div`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
align-items: center;
|
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
gap: 1rem;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`,
|
|
102
|
+
`,W=g.forwardRef(({title:i,subtitle:o,avatars:r=[],limitAvatars:l=4,limit:f=6,limitAvatarsForMobile:x=4,limitForMobile:u=2,items:s=[],onSelectAvatar:m=()=>{},onSelectCard:p=()=>{}},d)=>{var j,b;const a=e=>{m==null||m(e)},_=e=>{p==null||p(e)};return t.jsxs(k,{ref:d,limitAvatars:l,limitAvatarsForMobile:x,limitCards:f,limitCardsForMobile:u,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(I,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>a==null?void 0:a(e)},`field-of-interests-with-avatars-card-avatar__${n+1}`)):(j=Array.from("1234"))==null?void 0:j.map((e,n)=>t.jsx(F,{},`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(A,{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:()=>_==null?void 0:_(e)},`field-of-interests-with-avatars-card__${n+1}`)):(b=Array.from("123456"))==null?void 0:b.map((e,n)=>t.jsx(N,{},`field-of-interests-with-avatars-card-skeleton__${n+1}`))})]})});module.exports=W;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
3
|
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as x } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import { m as
|
|
6
|
-
import { S as
|
|
7
|
-
const
|
|
5
|
+
import { m as v, l as C } from "./utils-DCs-SbIv.js";
|
|
6
|
+
import { S as F } from "./index-m9SN4CZC.js";
|
|
7
|
+
const N = _.div`
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 11.625rem;
|
|
10
10
|
border-radius: 0.75rem;
|
|
11
|
-
background: ${
|
|
12
|
-
`,
|
|
11
|
+
background: ${v("-90deg")};
|
|
12
|
+
`, k = _.div`
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: auto;
|
|
15
15
|
border-radius: 999px;
|
|
@@ -35,59 +35,59 @@ const k = _.div`
|
|
|
35
35
|
height: auto;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`, A = _.div`
|
|
39
39
|
width: 9.875rem;
|
|
40
40
|
height: 9.875rem;
|
|
41
41
|
border-radius: 999px;
|
|
42
|
-
background: ${
|
|
42
|
+
background: ${v("-90deg")};
|
|
43
43
|
|
|
44
44
|
@media (max-width: ${x + "px"}) {
|
|
45
45
|
width: 4.5rem;
|
|
46
46
|
height: 4.5rem;
|
|
47
47
|
}
|
|
48
|
-
`,
|
|
48
|
+
`, W = g(({}, i) => /* @__PURE__ */ t(A, {})), I = g(
|
|
49
49
|
({ isActive: i, image: o, imageComponent: r, onSelectCard: m = () => {
|
|
50
|
-
} },
|
|
51
|
-
|
|
50
|
+
} }, f) => /* @__PURE__ */ t(
|
|
51
|
+
k,
|
|
52
52
|
{
|
|
53
53
|
className: i ? "active" : "",
|
|
54
54
|
onClick: m,
|
|
55
|
-
children:
|
|
55
|
+
children: C(r) ? r : /* @__PURE__ */ t("img", { src: o, className: "wrapper__image" })
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
|
-
),
|
|
58
|
+
), c = g(
|
|
59
59
|
({
|
|
60
60
|
uuid: i,
|
|
61
61
|
title: o,
|
|
62
62
|
price: r,
|
|
63
63
|
currency: m,
|
|
64
|
-
isNegotiable:
|
|
64
|
+
isNegotiable: f,
|
|
65
65
|
isFree: u,
|
|
66
|
-
image:
|
|
66
|
+
image: d,
|
|
67
67
|
sellerUuid: s,
|
|
68
68
|
onSelectCard: l = () => {
|
|
69
69
|
},
|
|
70
70
|
imageComponent: p,
|
|
71
|
-
negotiableText:
|
|
72
|
-
freeText:
|
|
73
|
-
},
|
|
74
|
-
|
|
71
|
+
negotiableText: w = "Negotiable",
|
|
72
|
+
freeText: a = "Free"
|
|
73
|
+
}, h) => /* @__PURE__ */ t(
|
|
74
|
+
F,
|
|
75
75
|
{
|
|
76
76
|
uuid: i,
|
|
77
77
|
title: o,
|
|
78
78
|
price: r,
|
|
79
79
|
currency: m,
|
|
80
|
-
isNegotiable:
|
|
80
|
+
isNegotiable: f,
|
|
81
81
|
isFree: u,
|
|
82
|
-
image:
|
|
82
|
+
image: d,
|
|
83
83
|
imageComponent: p,
|
|
84
84
|
sellerUuid: s,
|
|
85
85
|
onSelectCard: l,
|
|
86
|
-
negotiableText:
|
|
87
|
-
freeText:
|
|
86
|
+
negotiableText: w,
|
|
87
|
+
freeText: a
|
|
88
88
|
}
|
|
89
89
|
)
|
|
90
|
-
),
|
|
90
|
+
), O = g(({}, i) => /* @__PURE__ */ t(N, {})), j = _.div`
|
|
91
91
|
display: flex;
|
|
92
92
|
flex-direction: column;
|
|
93
93
|
align-items: center;
|
|
@@ -147,35 +147,35 @@ const k = _.div`
|
|
|
147
147
|
gap: 1rem;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
`, B =
|
|
150
|
+
`, B = g(
|
|
151
151
|
({
|
|
152
152
|
title: i,
|
|
153
153
|
subtitle: o,
|
|
154
154
|
avatars: r = [],
|
|
155
155
|
limitAvatars: m = 4,
|
|
156
|
-
limit:
|
|
156
|
+
limit: f = 6,
|
|
157
157
|
limitAvatarsForMobile: u = 4,
|
|
158
|
-
limitForMobile:
|
|
158
|
+
limitForMobile: d = 2,
|
|
159
159
|
items: s = [],
|
|
160
160
|
onSelectAvatar: l = () => {
|
|
161
161
|
},
|
|
162
162
|
onSelectCard: p = () => {
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, w) => {
|
|
165
165
|
var b, $;
|
|
166
|
-
const
|
|
167
|
-
l == null || l(e
|
|
168
|
-
},
|
|
169
|
-
p == null || p(e
|
|
166
|
+
const a = (e) => {
|
|
167
|
+
l == null || l(e);
|
|
168
|
+
}, h = (e) => {
|
|
169
|
+
p == null || p(e);
|
|
170
170
|
};
|
|
171
171
|
return /* @__PURE__ */ y(
|
|
172
|
-
|
|
172
|
+
j,
|
|
173
173
|
{
|
|
174
|
-
ref:
|
|
174
|
+
ref: w,
|
|
175
175
|
limitAvatars: m,
|
|
176
176
|
limitAvatarsForMobile: u,
|
|
177
|
-
limitCards:
|
|
178
|
-
limitCardsForMobile:
|
|
177
|
+
limitCards: f,
|
|
178
|
+
limitCardsForMobile: d,
|
|
179
179
|
children: [
|
|
180
180
|
/* @__PURE__ */ y("div", { className: "wrapper__heading", children: [
|
|
181
181
|
i && /* @__PURE__ */ t("div", { className: "wrapper__title", children: i }),
|
|
@@ -186,16 +186,16 @@ const k = _.div`
|
|
|
186
186
|
{
|
|
187
187
|
image: e == null ? void 0 : e.image,
|
|
188
188
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
189
|
-
onSelectCard: () =>
|
|
189
|
+
onSelectCard: () => a == null ? void 0 : a(e)
|
|
190
190
|
},
|
|
191
191
|
`field-of-interests-with-avatars-card-avatar__${n + 1}`
|
|
192
192
|
)) : (b = Array.from("1234")) == null ? void 0 : b.map((e, n) => /* @__PURE__ */ t(
|
|
193
|
-
|
|
193
|
+
W,
|
|
194
194
|
{},
|
|
195
195
|
`field-of-interests-with-avatars-card-avatar-skeleton__${n + 1}`
|
|
196
196
|
)) }),
|
|
197
197
|
/* @__PURE__ */ t("div", { className: "wrapper__cards", children: s && (s == null ? void 0 : s.length) > 0 ? s == null ? void 0 : s.map((e, n) => /* @__PURE__ */ t(
|
|
198
|
-
|
|
198
|
+
c,
|
|
199
199
|
{
|
|
200
200
|
uuid: e == null ? void 0 : e.uuid,
|
|
201
201
|
title: e == null ? void 0 : e.title,
|
|
@@ -208,11 +208,11 @@ const k = _.div`
|
|
|
208
208
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
209
209
|
negotiableText: e == null ? void 0 : e.negotiableText,
|
|
210
210
|
freeText: e == null ? void 0 : e.freeText,
|
|
211
|
-
onSelectCard: () =>
|
|
211
|
+
onSelectCard: () => h == null ? void 0 : h(e)
|
|
212
212
|
},
|
|
213
213
|
`field-of-interests-with-avatars-card__${n + 1}`
|
|
214
214
|
)) : ($ = Array.from("123456")) == null ? void 0 : $.map((e, n) => /* @__PURE__ */ t(
|
|
215
|
-
|
|
215
|
+
O,
|
|
216
216
|
{},
|
|
217
217
|
`field-of-interests-with-avatars-card-skeleton__${n + 1}`
|
|
218
218
|
)) })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),p=require("react"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-BXPz9bck.cjs"),y=require("./Icon.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=require("./consts-CtNoHdBj.cjs"),k=m.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
`,$=m.styled.div`
|
|
62
62
|
width: 100%;
|
|
63
63
|
height: 11.625rem;
|
|
64
64
|
border-radius: 0.75rem;
|
|
65
65
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
66
|
-
|
|
66
|
+
`,N=m.styled.div`
|
|
67
67
|
display: flex;
|
|
68
68
|
padding: 0 0.5rem 0 0;
|
|
69
69
|
align-items: center;
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
color: var(--white, #fff);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,I=m.styled.div`
|
|
111
111
|
width: 7rem;
|
|
112
112
|
height: 3rem;
|
|
113
113
|
border-radius: 999px;
|
|
114
114
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
115
|
-
`,
|
|
115
|
+
`,C=p.forwardRef(({},t)=>r.jsx(I,{})),W=p.forwardRef(({name:t,isActive:n,icon:i,onSelectCard:o=()=>{}},d)=>r.jsxs(N,{className:n?"active":"",onClick:o,children:[r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),F=p.forwardRef(({image:t,imageComponent:n,name:i,description:o,onSelectCard:d=()=>{}},x)=>{const{theme:c}=b.useTheme();return r.jsxs(k,{theme:c,onClick:d,children:[l.isDefined(n)?n:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),o&&r.jsx("div",{className:"wrapper__description",children:o})]})]})}),R=p.forwardRef(({},t)=>r.jsx($,{})),q=m.styled.div`
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
align-items: center;
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
width: 100%;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
@media (max-width: ${
|
|
163
|
+
@media (max-width: ${j.MOBILE_SIZE_PX+"px"}) {
|
|
164
164
|
& .wrapper__tags {
|
|
165
165
|
overflow-x: scroll;
|
|
166
166
|
justify-content: flex-start;
|
|
@@ -186,4 +186,4 @@
|
|
|
186
186
|
gap: 1rem;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,T=p.forwardRef(({title:t,subtitle:n,tags:i=[],limitTags:o=7,limitTagsForMobile:d=7,limit:x=3,limitForMobile:c=2,items:s=[],onSelectTag:f=()=>{},onSelectCard:_=()=>{},getImage:v=()=>{}},z)=>{var g,u;const h=e=>{f==null||f(e)},w=e=>{_==null||_(e)};return r.jsxs(q,{limitTags:o,limitTagsForMobile:d,limitCards:x,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,a)=>r.jsx(W,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-tags-card-tag__${a+1}`)):(g=Array.from("123"))==null?void 0:g.map((e,a)=>r.jsx(C,{},`field-of-interests-with-tags-card-tag-skeleton__${a+1}`))}),r.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,a)=>r.jsx(F,{image:()=>v(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid),imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.name,description:(e==null?void 0:e.shortDescription)||(e==null?void 0:e.description),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card__${a+1}`)):(u=Array.from("123"))==null?void 0:u.map((e,a)=>r.jsx(R,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=T;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
3
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { t as v, m as y, l as
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { M as
|
|
8
|
-
const
|
|
4
|
+
import { t as v, m as y, l as k } from "./utils-DCs-SbIv.js";
|
|
5
|
+
import $ from "./Icon.js";
|
|
6
|
+
import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { M as C } from "./consts-C1uHV4xc.js";
|
|
8
|
+
const I = m.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -65,12 +65,12 @@ const C = m.div`
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`, W = m.div`
|
|
69
69
|
width: 100%;
|
|
70
70
|
height: 11.625rem;
|
|
71
71
|
border-radius: 0.75rem;
|
|
72
72
|
background: ${y("-90deg")};
|
|
73
|
-
`,
|
|
73
|
+
`, F = m.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
padding: 0 0.5rem 0 0;
|
|
76
76
|
align-items: center;
|
|
@@ -114,30 +114,30 @@ const C = m.div`
|
|
|
114
114
|
color: var(--white, #fff);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
117
|
+
`, j = m.div`
|
|
118
118
|
width: 7rem;
|
|
119
119
|
height: 3rem;
|
|
120
120
|
border-radius: 999px;
|
|
121
121
|
background: ${y("-90deg")};
|
|
122
|
-
`,
|
|
123
|
-
({
|
|
124
|
-
} },
|
|
125
|
-
/* @__PURE__ */ i(
|
|
122
|
+
`, z = p(({}, r) => /* @__PURE__ */ i(j, {})), O = p(
|
|
123
|
+
({ name: r, isActive: n, icon: t, onSelectCard: s = () => {
|
|
124
|
+
} }, f) => /* @__PURE__ */ l(F, { className: n ? "active" : "", onClick: s, children: [
|
|
125
|
+
/* @__PURE__ */ i($, { icon: t, className: "wrapper__icon" }),
|
|
126
126
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
127
127
|
] })
|
|
128
|
-
),
|
|
129
|
-
({ image: r, imageComponent:
|
|
128
|
+
), T = p(
|
|
129
|
+
({ image: r, imageComponent: n, name: t, description: s, onSelectCard: f = () => {
|
|
130
130
|
} }, g) => {
|
|
131
|
-
const { theme:
|
|
132
|
-
return /* @__PURE__ */ l(
|
|
133
|
-
|
|
131
|
+
const { theme: d } = N();
|
|
132
|
+
return /* @__PURE__ */ l(I, { theme: d, onClick: f, children: [
|
|
133
|
+
k(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
134
134
|
/* @__PURE__ */ l("div", { className: "wrapper__content", children: [
|
|
135
135
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
136
136
|
s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
|
|
137
137
|
] })
|
|
138
138
|
] });
|
|
139
139
|
}
|
|
140
|
-
),
|
|
140
|
+
), M = p(({}, r) => /* @__PURE__ */ i(W, {})), A = m.div`
|
|
141
141
|
display: flex;
|
|
142
142
|
flex-direction: column;
|
|
143
143
|
align-items: center;
|
|
@@ -185,7 +185,7 @@ const C = m.div`
|
|
|
185
185
|
width: 100%;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
@media (max-width: ${
|
|
188
|
+
@media (max-width: ${C + "px"}) {
|
|
189
189
|
& .wrapper__tags {
|
|
190
190
|
overflow-x: scroll;
|
|
191
191
|
justify-content: flex-start;
|
|
@@ -214,61 +214,63 @@ const C = m.div`
|
|
|
214
214
|
`, X = p(
|
|
215
215
|
({
|
|
216
216
|
title: r,
|
|
217
|
-
subtitle:
|
|
217
|
+
subtitle: n,
|
|
218
218
|
tags: t = [],
|
|
219
219
|
limitTags: s = 7,
|
|
220
|
-
limitTagsForMobile:
|
|
220
|
+
limitTagsForMobile: f = 7,
|
|
221
221
|
limit: g = 3,
|
|
222
|
-
limitForMobile:
|
|
223
|
-
items:
|
|
222
|
+
limitForMobile: d = 2,
|
|
223
|
+
items: a = [],
|
|
224
224
|
onSelectTag: c = () => {
|
|
225
225
|
},
|
|
226
226
|
onSelectCard: h = () => {
|
|
227
|
+
},
|
|
228
|
+
getImage: b = () => {
|
|
227
229
|
}
|
|
228
|
-
},
|
|
229
|
-
var
|
|
230
|
+
}, E) => {
|
|
231
|
+
var x, u;
|
|
230
232
|
const _ = (e) => {
|
|
231
|
-
c == null || c(e
|
|
233
|
+
c == null || c(e);
|
|
232
234
|
}, w = (e) => {
|
|
233
|
-
h == null || h(e
|
|
235
|
+
h == null || h(e);
|
|
234
236
|
};
|
|
235
237
|
return /* @__PURE__ */ l(
|
|
236
|
-
|
|
238
|
+
A,
|
|
237
239
|
{
|
|
238
240
|
limitTags: s,
|
|
239
|
-
limitTagsForMobile:
|
|
241
|
+
limitTagsForMobile: f,
|
|
240
242
|
limitCards: g,
|
|
241
|
-
limitCardsForMobile:
|
|
243
|
+
limitCardsForMobile: d,
|
|
242
244
|
children: [
|
|
243
245
|
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
244
246
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
245
|
-
|
|
247
|
+
n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
|
|
246
248
|
] }),
|
|
247
249
|
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, o) => /* @__PURE__ */ i(
|
|
248
|
-
|
|
250
|
+
O,
|
|
249
251
|
{
|
|
250
252
|
icon: e == null ? void 0 : e.icon,
|
|
251
|
-
|
|
253
|
+
name: e == null ? void 0 : e.name,
|
|
252
254
|
onSelectCard: () => _ == null ? void 0 : _(e)
|
|
253
255
|
},
|
|
254
256
|
`field-of-interests-with-tags-card-tag__${o + 1}`
|
|
255
|
-
)) : (
|
|
256
|
-
|
|
257
|
+
)) : (x = Array.from("123")) == null ? void 0 : x.map((e, o) => /* @__PURE__ */ i(
|
|
258
|
+
z,
|
|
257
259
|
{},
|
|
258
260
|
`field-of-interests-with-tags-card-tag-skeleton__${o + 1}`
|
|
259
261
|
)) }),
|
|
260
|
-
/* @__PURE__ */ i("div", { className: "wrapper__cards", children:
|
|
261
|
-
|
|
262
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, o) => /* @__PURE__ */ i(
|
|
263
|
+
T,
|
|
262
264
|
{
|
|
263
|
-
image: e == null ? void 0 : e.image,
|
|
265
|
+
image: () => b(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
|
|
264
266
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
265
|
-
|
|
266
|
-
description: e == null ? void 0 : e.description,
|
|
267
|
-
onSelectCard: () => w == null ? void 0 : w(e
|
|
267
|
+
name: e == null ? void 0 : e.name,
|
|
268
|
+
description: (e == null ? void 0 : e.shortDescription) || (e == null ? void 0 : e.description),
|
|
269
|
+
onSelectCard: () => w == null ? void 0 : w(e)
|
|
268
270
|
},
|
|
269
271
|
`field-of-interests-with-tags-card__${o + 1}`
|
|
270
|
-
)) : (
|
|
271
|
-
|
|
272
|
+
)) : (u = Array.from("123")) == null ? void 0 : u.map((e, o) => /* @__PURE__ */ i(
|
|
273
|
+
M,
|
|
272
274
|
{},
|
|
273
275
|
`field-of-interests-with-tags-card-skeleton__${o + 1}`
|
|
274
276
|
)) })
|