@lanaco/lnc-react-ui 4.0.74 → 4.0.76
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/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 +113 -108
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
5
5
|
overflow: hidden;
|
|
6
|
-
max-height: ${e
|
|
7
|
-
min-height: ${e
|
|
6
|
+
max-height: ${e=>`${e.height}px`||"22.5rem"};
|
|
7
|
+
min-height: ${e=>`${e.height}px`||"22.5rem"};
|
|
8
8
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
9
9
|
|
|
10
10
|
& button {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
& img {
|
|
15
15
|
object-fit: cover;
|
|
16
|
-
max-width: ${e
|
|
17
|
-
min-width: ${e
|
|
18
|
-
max-height: ${e
|
|
19
|
-
min-height: ${e
|
|
16
|
+
max-width: ${e=>`${e.imgW}px`||"22.5rem"};
|
|
17
|
+
min-width: ${e=>`${e.imgW}px`||"22.5rem"};
|
|
18
|
+
max-height: ${e=>`${e.height}px`||"22.5rem"};
|
|
19
|
+
min-height: ${e=>`${e.height}px`||"22.5rem"};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
& img {
|
|
39
39
|
max-width: 100%;
|
|
40
40
|
min-width: 100%;
|
|
41
|
-
max-height: ${e
|
|
42
|
-
min-height: ${e
|
|
41
|
+
max-height: ${e=>`${e.imgHMob}px`||"12.1rem"};
|
|
42
|
+
min-height: ${e=>`${e.imgHMob}px`||"12.1rem"};
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
`,H=i.styled.div`
|
|
@@ -74,4 +74,4 @@
|
|
|
74
74
|
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
75
75
|
flex-direction: column;
|
|
76
76
|
}
|
|
77
|
-
`,_=j.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:s=!1,sectionHeight:
|
|
77
|
+
`,_=j.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:s=!1,sectionHeight:x="12.65625rem",imageWidth:u,imageHeightMobile:p,smallPadding:b=!1,isHorizontalContent:$=!1,backgroundColor:f,hasBorder:w=!1}=e,a=M.useDetectMobile();return t.jsxs(v,{ref:m,bgcolor:f,height:x,imgW:u,imgHMob:p,hasBorder:w,children:[n!=="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o}),t.jsxs(H,{isHorizontalContent:$,smallPadding:b,children:[t.jsxs(B,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx(y,{size:"medium",color:"neutral",type:"button",onClick:()=>g(c),children:h})]}),n==="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o})]})});module.exports=_;
|
|
@@ -9,8 +9,8 @@ const C = r.div`
|
|
|
9
9
|
border-radius: 0.75rem;
|
|
10
10
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
11
11
|
overflow: hidden;
|
|
12
|
-
max-height: ${(e) => e.height || "22.5rem"};
|
|
13
|
-
min-height: ${(e) => e.height || "22.5rem"};
|
|
12
|
+
max-height: ${(e) => `${e.height}px` || "22.5rem"};
|
|
13
|
+
min-height: ${(e) => `${e.height}px` || "22.5rem"};
|
|
14
14
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
15
15
|
|
|
16
16
|
& button {
|
|
@@ -19,10 +19,10 @@ const C = r.div`
|
|
|
19
19
|
|
|
20
20
|
& img {
|
|
21
21
|
object-fit: cover;
|
|
22
|
-
max-width: ${(e) => e.imgW || "22.5rem"};
|
|
23
|
-
min-width: ${(e) => e.imgW || "22.5rem"};
|
|
24
|
-
max-height: ${(e) => e.height || "22.5rem"};
|
|
25
|
-
min-height: ${(e) => e.height || "22.5rem"};
|
|
22
|
+
max-width: ${(e) => `${e.imgW}px` || "22.5rem"};
|
|
23
|
+
min-width: ${(e) => `${e.imgW}px` || "22.5rem"};
|
|
24
|
+
max-height: ${(e) => `${e.height}px` || "22.5rem"};
|
|
25
|
+
min-height: ${(e) => `${e.height}px` || "22.5rem"};
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
@@ -44,8 +44,8 @@ const C = r.div`
|
|
|
44
44
|
& img {
|
|
45
45
|
max-width: 100%;
|
|
46
46
|
min-width: 100%;
|
|
47
|
-
max-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
48
|
-
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
47
|
+
max-height: ${(e) => `${e.imgHMob}px` || "12.1rem"};
|
|
48
|
+
min-height: ${(e) => `${e.imgHMob}px` || "12.1rem"};
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
`, z = r.div`
|
|
@@ -86,13 +86,13 @@ const C = r.div`
|
|
|
86
86
|
subtitle: s,
|
|
87
87
|
buttonText: g,
|
|
88
88
|
buttonLink: c,
|
|
89
|
-
onButtonAction:
|
|
89
|
+
onButtonAction: x = () => {
|
|
90
90
|
},
|
|
91
91
|
imageUrl: n,
|
|
92
92
|
imagePosition: a = "right",
|
|
93
93
|
hideImageForMobile: m = !1,
|
|
94
|
-
sectionHeight:
|
|
95
|
-
imageWidth:
|
|
94
|
+
sectionHeight: p = "12.65625rem",
|
|
95
|
+
imageWidth: u,
|
|
96
96
|
imageHeightMobile: f,
|
|
97
97
|
smallPadding: b = !1,
|
|
98
98
|
isHorizontalContent: $ = !1,
|
|
@@ -104,8 +104,8 @@ const C = r.div`
|
|
|
104
104
|
{
|
|
105
105
|
ref: l,
|
|
106
106
|
bgcolor: w,
|
|
107
|
-
height:
|
|
108
|
-
imgW:
|
|
107
|
+
height: p,
|
|
108
|
+
imgW: u,
|
|
109
109
|
imgHMob: f,
|
|
110
110
|
hasBorder: v,
|
|
111
111
|
children: [
|
|
@@ -126,7 +126,7 @@ const C = r.div`
|
|
|
126
126
|
size: "medium",
|
|
127
127
|
color: "neutral",
|
|
128
128
|
type: "button",
|
|
129
|
-
onClick: () =>
|
|
129
|
+
onClick: () => x(c),
|
|
130
130
|
children: g
|
|
131
131
|
}
|
|
132
132
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("react"),c=require("./utils-BXPz9bck.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-CtNoHdBj.cjs"),h=d.styled.div`
|
|
2
2
|
width: 7.5rem;
|
|
3
3
|
height: auto;
|
|
4
4
|
max-height: 7.5rem;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
width: 4.5rem;
|
|
32
32
|
height: 4.5rem;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,m=p.forwardRef(({imageComponent:t,image:i,onSelectCard:r},n)=>e.jsx(h,{children:c.isDefined(t)?t:e.jsx("img",{src:i,className:"wrapper__image",onSelectCard:r})})),g=p.forwardRef(({},t)=>e.jsx(_,{})),w=d.styled.div`
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
align-items: flex-start;
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
`,x=p.forwardRef(({title:t,subtitle:
|
|
94
|
+
`,x=p.forwardRef(({title:t,subtitle:i,items:r=[],onSelectCard:n=()=>{}},f)=>{var l;return e.jsx(w,{children:e.jsxs("div",{className:"wrapper__heading",children:[t&&e.jsx("div",{className:"wrapper__title",children:t}),i&&e.jsx("div",{className:"wrapper__subtitle",children:i}),e.jsx("div",{className:"wrapper__content",children:r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map((a,s)=>e.jsx(m,{image:a==null?void 0:a.image,imageComponent:a==null?void 0:a.imageComponent,onSelectCard:()=>n==null?void 0:n(a),className:"wrapper__item"},`brand-hit-card__${s+1}`)):(l=Array.from("12345"))==null?void 0:l.map((a,s)=>e.jsx(g,{},`brand-hit-card-skeleton__${s+1}`))})]})})});module.exports=x;
|
package/dist/BrandHitsSection.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
3
|
import { m as c, l as s } from "./utils-DCs-SbIv.js";
|
|
4
4
|
import { s as d } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { M as
|
|
5
|
+
import { M as m } from "./consts-C1uHV4xc.js";
|
|
6
6
|
const g = d.div`
|
|
7
7
|
width: 7.5rem;
|
|
8
8
|
height: auto;
|
|
@@ -17,7 +17,7 @@ const g = d.div`
|
|
|
17
17
|
height: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@media (max-width: ${
|
|
20
|
+
@media (max-width: ${m + "px"}) {
|
|
21
21
|
width: 4.5rem;
|
|
22
22
|
height: auto;
|
|
23
23
|
max-height: 4.5rem;
|
|
@@ -32,20 +32,20 @@ const g = d.div`
|
|
|
32
32
|
height: 7.5rem;
|
|
33
33
|
background: ${c("-90deg")};
|
|
34
34
|
|
|
35
|
-
@media (max-width: ${
|
|
35
|
+
@media (max-width: ${m + "px"}) {
|
|
36
36
|
width: 4.5rem;
|
|
37
37
|
height: 4.5rem;
|
|
38
38
|
}
|
|
39
39
|
`, w = o(
|
|
40
|
-
({ imageComponent: t, image: i, onSelectCard:
|
|
40
|
+
({ imageComponent: t, image: i, onSelectCard: r }, n) => /* @__PURE__ */ e(g, { children: s(t) ? t : /* @__PURE__ */ e(
|
|
41
41
|
"img",
|
|
42
42
|
{
|
|
43
43
|
src: i,
|
|
44
44
|
className: "wrapper__image",
|
|
45
|
-
onSelectCard:
|
|
45
|
+
onSelectCard: r
|
|
46
46
|
}
|
|
47
47
|
) })
|
|
48
|
-
), f = o(({}, t) => /* @__PURE__ */
|
|
48
|
+
), f = o(({}, t) => /* @__PURE__ */ e(_, {})), x = d.div`
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-direction: column;
|
|
51
51
|
align-items: flex-start;
|
|
@@ -94,7 +94,7 @@ const g = d.div`
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
@media (max-width: ${
|
|
97
|
+
@media (max-width: ${m + "px"}) {
|
|
98
98
|
& .wrapper__content {
|
|
99
99
|
align-content: center;
|
|
100
100
|
gap: 1rem;
|
|
@@ -106,22 +106,22 @@ const g = d.div`
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
`, k = o(
|
|
109
|
-
({ title: t, subtitle: i, items:
|
|
109
|
+
({ title: t, subtitle: i, items: r = [], onSelectCard: n = () => {
|
|
110
110
|
} }, u) => {
|
|
111
|
-
var
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
-
t && /* @__PURE__ */
|
|
114
|
-
i && /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
111
|
+
var l;
|
|
112
|
+
return /* @__PURE__ */ e(x, { children: /* @__PURE__ */ h("div", { className: "wrapper__heading", children: [
|
|
113
|
+
t && /* @__PURE__ */ e("div", { className: "wrapper__title", children: t }),
|
|
114
|
+
i && /* @__PURE__ */ e("div", { className: "wrapper__subtitle", children: i }),
|
|
115
|
+
/* @__PURE__ */ e("div", { className: "wrapper__content", children: r && (r == null ? void 0 : r.length) > 0 ? r == null ? void 0 : r.map((a, p) => /* @__PURE__ */ e(
|
|
116
116
|
w,
|
|
117
117
|
{
|
|
118
|
-
image:
|
|
119
|
-
imageComponent:
|
|
120
|
-
onSelectCard: () => n == null ? void 0 : n(
|
|
118
|
+
image: a == null ? void 0 : a.image,
|
|
119
|
+
imageComponent: a == null ? void 0 : a.imageComponent,
|
|
120
|
+
onSelectCard: () => n == null ? void 0 : n(a),
|
|
121
121
|
className: "wrapper__item"
|
|
122
122
|
},
|
|
123
123
|
`brand-hit-card__${p + 1}`
|
|
124
|
-
)) : (
|
|
124
|
+
)) : (l = Array.from("12345")) == null ? void 0 : l.map((a, p) => /* @__PURE__ */ e(
|
|
125
125
|
f,
|
|
126
126
|
{},
|
|
127
127
|
`brand-hit-card-skeleton__${p + 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
|
)) })
|