@lanaco/lnc-react-ui 4.0.87 → 4.0.88
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/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +4 -1
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +31 -28
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +26 -23
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +30 -27
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +19 -16
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +24 -21
- package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
- package/dist/FieldOfInterestsMasonrySection.js +72 -66
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -0
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -0
- package/dist/GeneralWithTagsCardsSection.cjs +4 -3
- package/dist/GeneralWithTagsCardsSection.js +1 -0
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +52 -49
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +15 -12
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +33 -30
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";const i=require("react/jsx-runtime"),l=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),P=require("./Button.cjs"),y=require("./utils-DhRHf5Ed.cjs"),U=require("./useDetectMobile-zkbzoOGV.cjs"),M=require("./style-xvwWn3Zv.cjs"),h=require("./suspense-product-card-detailed-DBNlkFiP.cjs"),F=require("./index-DG7qQq8L.cjs"),T=v.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
6
|
& .button-link {
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
/* Safari and Chrome */
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,S=l.memo(h.DetailedProductCard),E=l.forwardRef((
|
|
29
|
+
`,S=l.memo(h.DetailedProductCard),E=l.forwardRef((s,f)=>{const{icon:a,title:C,buttonLink:c,items:r,buttonText:j,limit:o=4,onSelectCard:u=()=>{},onButtonAction:w=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:p,options:n,onSelectOption:g=()=>{},productsToolbarName:q="All"}=s,b=U.useDetectMobile(),k=l.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?r==null?void 0:r.map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},t)):r==null?void 0:r.slice(0,o).map((e,t)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:p},t))}),[r,b,o]);return i.jsxs(M.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:C})]}),y.isDefinedNotEmptyString(c)&&i.jsx(P,{type:"button",btnType:"tinted",color:"gray",onClick:e=>{var t;(t=e==null?void 0:e.target)==null||t.blur(),w(c)},borderRadius:"curved",className:"button-link",children:j})]}),(n==null?void 0:n.length)>0&&i.jsx(F.SelectBar,{items:n,onRemove:e=>{g(e)},onSelect:e=>{g(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q}),i.jsx(T,{limit:o,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:N,itemsCount:o,keyPrefix:"explore-landing",children:k})})]})});module.exports=E;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as i, Fragment as U, jsxs as
|
|
1
|
+
import { jsx as i, Fragment as U, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { memo as M, forwardRef as P, useMemo as T } from "react";
|
|
3
3
|
import { s as D } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as F } from "./consts-BuFChS64.js";
|
|
5
5
|
import B from "./Button.js";
|
|
6
|
-
import { k as
|
|
6
|
+
import { k as f } from "./utils-BE-UlkKf.js";
|
|
7
7
|
import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
8
|
import { T as I } from "./style-sLF37aOA.js";
|
|
9
9
|
import { D as L, S as O } from "./suspense-product-card-detailed-CwdbxJrY.js";
|
|
10
10
|
import { S as R } from "./index-Db8wvLXS.js";
|
|
11
11
|
const W = D.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${(
|
|
13
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
16
|
& .button-link {
|
|
@@ -36,14 +36,14 @@ const W = D.div`
|
|
|
36
36
|
/* Safari and Chrome */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`, S = M(L), H = P((
|
|
39
|
+
`, S = M(L), H = P((a, y) => {
|
|
40
40
|
const {
|
|
41
41
|
icon: s,
|
|
42
42
|
title: h,
|
|
43
43
|
buttonLink: d,
|
|
44
44
|
items: r,
|
|
45
45
|
buttonText: C,
|
|
46
|
-
limit:
|
|
46
|
+
limit: t = 4,
|
|
47
47
|
onSelectCard: m = () => {
|
|
48
48
|
},
|
|
49
49
|
onButtonAction: w = () => {
|
|
@@ -53,11 +53,11 @@ const W = D.div`
|
|
|
53
53
|
},
|
|
54
54
|
negotiableText: u,
|
|
55
55
|
freeText: p,
|
|
56
|
-
options:
|
|
56
|
+
options: l,
|
|
57
57
|
onSelectOption: g = () => {
|
|
58
58
|
},
|
|
59
59
|
productsToolbarName: N = "All"
|
|
60
|
-
} =
|
|
60
|
+
} = a, b = E(), v = T(() => /* @__PURE__ */ i(U, { children: b === !0 ? r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ i(
|
|
61
61
|
S,
|
|
62
62
|
{
|
|
63
63
|
title: e == null ? void 0 : e.name,
|
|
@@ -75,8 +75,8 @@ const W = D.div`
|
|
|
75
75
|
negotiableText: u,
|
|
76
76
|
freeText: p
|
|
77
77
|
},
|
|
78
|
-
|
|
79
|
-
)) : r == null ? void 0 : r.slice(0,
|
|
78
|
+
o
|
|
79
|
+
)) : r == null ? void 0 : r.slice(0, t).map((e, o) => /* @__PURE__ */ i(
|
|
80
80
|
S,
|
|
81
81
|
{
|
|
82
82
|
title: e == null ? void 0 : e.name,
|
|
@@ -95,31 +95,34 @@ const W = D.div`
|
|
|
95
95
|
negotiableText: u,
|
|
96
96
|
freeText: p
|
|
97
97
|
},
|
|
98
|
-
|
|
99
|
-
)) }), [r,
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
98
|
+
o
|
|
99
|
+
)) }), [r, b, t]);
|
|
100
|
+
return /* @__PURE__ */ n(I, { ref: y, children: [
|
|
101
|
+
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
102
|
+
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
103
|
+
f(s) && /* @__PURE__ */ i("i", { className: s }),
|
|
104
104
|
/* @__PURE__ */ i("span", { children: h })
|
|
105
105
|
] }),
|
|
106
|
-
|
|
106
|
+
f(d) && /* @__PURE__ */ i(
|
|
107
107
|
B,
|
|
108
108
|
{
|
|
109
109
|
type: "button",
|
|
110
110
|
btnType: "tinted",
|
|
111
111
|
color: "gray",
|
|
112
|
-
onClick: () =>
|
|
112
|
+
onClick: (e) => {
|
|
113
|
+
var o;
|
|
114
|
+
(o = e == null ? void 0 : e.target) == null || o.blur(), w(d);
|
|
115
|
+
},
|
|
113
116
|
borderRadius: "curved",
|
|
114
117
|
className: "button-link",
|
|
115
118
|
children: C
|
|
116
119
|
}
|
|
117
120
|
)
|
|
118
121
|
] }),
|
|
119
|
-
(
|
|
122
|
+
(l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ i(
|
|
120
123
|
R,
|
|
121
124
|
{
|
|
122
|
-
items:
|
|
125
|
+
items: l,
|
|
123
126
|
onRemove: (e) => {
|
|
124
127
|
g(e);
|
|
125
128
|
},
|
|
@@ -132,11 +135,11 @@ const W = D.div`
|
|
|
132
135
|
productsToolbarName: N
|
|
133
136
|
}
|
|
134
137
|
),
|
|
135
|
-
/* @__PURE__ */ i(W, { limit:
|
|
138
|
+
/* @__PURE__ */ i(W, { limit: t, children: /* @__PURE__ */ i(
|
|
136
139
|
O,
|
|
137
140
|
{
|
|
138
141
|
isLoading: k,
|
|
139
|
-
itemsCount:
|
|
142
|
+
itemsCount: t,
|
|
140
143
|
keyPrefix: "explore-landing",
|
|
141
144
|
children: v
|
|
142
145
|
}
|
|
@@ -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"),h=require("./consts-goSZX3xP.cjs"),o=require("./utils-DhRHf5Ed.cjs"),$=require("./Icon.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./useEffectOnce-DFrzfNzT.cjs"),I=d.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: fit-content;
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
11
11
|
background: var(--Lanaco-Gray-white, #fff);
|
|
12
12
|
|
|
13
|
+
&:hover {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
/* drop-shadow-sm */
|
|
14
18
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
15
19
|
|
|
@@ -46,17 +50,21 @@
|
|
|
46
50
|
${o.truncateTextInRows(2)}
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
`,
|
|
53
|
+
`,E=d.styled.div`
|
|
50
54
|
width: 100%;
|
|
51
55
|
height: 11.625rem;
|
|
52
56
|
border-radius: 0.75rem;
|
|
53
57
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
54
|
-
`,
|
|
58
|
+
`,M=d.styled.div`
|
|
55
59
|
display: flex;
|
|
56
60
|
flex-direction: column;
|
|
57
61
|
align-items: center;
|
|
58
62
|
gap: 0.75rem;
|
|
59
63
|
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
& .wrapper__icon {
|
|
61
69
|
display: flex;
|
|
62
70
|
width: 2.75rem;
|
|
@@ -65,9 +73,13 @@
|
|
|
65
73
|
align-items: center;
|
|
66
74
|
font-size: 1.75rem;
|
|
67
75
|
color: var(--gray-950, #14161a);
|
|
68
|
-
background: var(--neutral-
|
|
76
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
69
77
|
border-radius: 999px;
|
|
70
78
|
|
|
79
|
+
&:hover {
|
|
80
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
81
|
+
}
|
|
82
|
+
|
|
71
83
|
& i {
|
|
72
84
|
width: auto;
|
|
73
85
|
}
|
|
@@ -83,20 +95,19 @@
|
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
&.active {
|
|
86
|
-
background: var(--gray-950, #14161a);
|
|
87
|
-
|
|
88
98
|
& .wrapper__icon {
|
|
99
|
+
background: var(--gray-950, #14161a);
|
|
89
100
|
color: var(--white, #fff);
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
|
|
93
|
-
@media (max-width: ${
|
|
104
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
94
105
|
flex-direction: row;
|
|
95
106
|
align-items: center;
|
|
96
107
|
gap: 0.25rem;
|
|
97
108
|
border-radius: 999px;
|
|
98
109
|
width: 100%;
|
|
99
|
-
background: var(--neutral-
|
|
110
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
100
111
|
padding: 0 0.75rem;
|
|
101
112
|
|
|
102
113
|
& .wrapper__icon {
|
|
@@ -117,17 +128,17 @@
|
|
|
117
128
|
white-space: nowrap;
|
|
118
129
|
}
|
|
119
130
|
}
|
|
120
|
-
`,
|
|
131
|
+
`,R=d.styled.div`
|
|
121
132
|
width: 7.5rem;
|
|
122
133
|
width: 7.5rem;
|
|
123
134
|
border-radius: 999px;
|
|
124
135
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
125
136
|
|
|
126
|
-
@media (max-width: ${
|
|
137
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
127
138
|
width: 7.5rem;
|
|
128
139
|
height: 2.5rem;
|
|
129
140
|
}
|
|
130
|
-
`,
|
|
141
|
+
`,q=l.forwardRef(({},i)=>r.jsx(R,{})),z=l.forwardRef(({text:i,isActive:s=!1,icon:t,onSelectCard:n=()=>{}},p)=>r.jsxs(M,{className:s?"active":"",onClick:n,children:[r.jsx($,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,title:t,description:n,className:p,onSelectCard:c=()=>{}},w)=>{const{theme:m}=k.useTheme();return r.jsxs(I,{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})]})]})}),C=l.forwardRef(({},i)=>r.jsxs(E,{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"})]})]})),F=d.styled.div`
|
|
131
142
|
display: flex;
|
|
132
143
|
flex-direction: column;
|
|
133
144
|
align-items: center;
|
|
@@ -179,7 +190,7 @@
|
|
|
179
190
|
}
|
|
180
191
|
}
|
|
181
192
|
|
|
182
|
-
@media (max-width: ${
|
|
193
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
183
194
|
& .wrapper__tags {
|
|
184
195
|
display: flex;
|
|
185
196
|
overflow-x: scroll;
|
|
@@ -191,4 +202,4 @@
|
|
|
191
202
|
grid-template-columns: ${i=>`repeat(${i==null?void 0:i.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
192
203
|
}
|
|
193
204
|
}
|
|
194
|
-
`,
|
|
205
|
+
`,A=l.forwardRef(({title:i,subtitle:s,tags:t=[],items:n=[],limitTags:p=5,limitTagsForMobile:c=5,limit:w=3,limitForMobile:m=2,selectedTag:y,onSelectTag:_=()=>{},onSelectCard:f=()=>{}},v)=>{var g,x;return N.useEffectOnce(()=>{const e=()=>{document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach(u=>{const b=u.getBoundingClientRect().height,j=Math.ceil((b+10)/20);u.style.gridRowEnd=`span ${j}`})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),r.jsxs(F,{ref:v,limitTags:p,limitTagsForMobile:c,limitCards:w,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(z,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===y,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-masonry-tag__${a+1}`)):(g=Array.from("12345"))==null?void 0:g.map((e,a)=>r.jsx(q,{},`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(O,{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:()=>f==null?void 0:f(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):(x=Array.from("12345"))==null?void 0:x.map((e,a)=>r.jsx(C,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=A;
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
|
5
|
-
import { t as
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
4
|
+
import { M as _ } from "./consts-BuFChS64.js";
|
|
5
|
+
import { t as v, m as y, l as z } from "./utils-BE-UlkKf.js";
|
|
6
|
+
import M from "./Icon.js";
|
|
7
|
+
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { u as I } from "./useEffectOnce-guOKBPuL.js";
|
|
9
|
+
const E = p.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: fit-content;
|
|
@@ -18,6 +18,10 @@ const O = p.div`
|
|
|
18
18
|
border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
|
|
19
19
|
background: var(--Lanaco-Gray-white, #fff);
|
|
20
20
|
|
|
21
|
+
&:hover {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
/* drop-shadow-sm */
|
|
22
26
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
|
|
23
27
|
|
|
@@ -41,7 +45,7 @@ const O = p.div`
|
|
|
41
45
|
font-style: normal;
|
|
42
46
|
font-weight: 500;
|
|
43
47
|
line-height: 1.5rem;
|
|
44
|
-
${
|
|
48
|
+
${v(2)}
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
& .wrapper__description {
|
|
@@ -51,20 +55,24 @@ const O = p.div`
|
|
|
51
55
|
font-weight: 400;
|
|
52
56
|
line-height: 1rem;
|
|
53
57
|
letter-spacing: 0.025rem;
|
|
54
|
-
${
|
|
58
|
+
${v(2)}
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
|
-
`,
|
|
61
|
+
`, F = p.div`
|
|
58
62
|
width: 100%;
|
|
59
63
|
height: 11.625rem;
|
|
60
64
|
border-radius: 0.75rem;
|
|
61
|
-
background: ${
|
|
62
|
-
`,
|
|
65
|
+
background: ${y("-90deg")};
|
|
66
|
+
`, O = p.div`
|
|
63
67
|
display: flex;
|
|
64
68
|
flex-direction: column;
|
|
65
69
|
align-items: center;
|
|
66
70
|
gap: 0.75rem;
|
|
67
71
|
|
|
72
|
+
&:hover {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
|
|
68
76
|
& .wrapper__icon {
|
|
69
77
|
display: flex;
|
|
70
78
|
width: 2.75rem;
|
|
@@ -73,9 +81,13 @@ const O = p.div`
|
|
|
73
81
|
align-items: center;
|
|
74
82
|
font-size: 1.75rem;
|
|
75
83
|
color: var(--gray-950, #14161a);
|
|
76
|
-
background: var(--neutral-
|
|
84
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
77
85
|
border-radius: 999px;
|
|
78
86
|
|
|
87
|
+
&:hover {
|
|
88
|
+
background: var(--neutral-95008, rgba(20, 22, 26, 0.08));
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
& i {
|
|
80
92
|
width: auto;
|
|
81
93
|
}
|
|
@@ -91,20 +103,19 @@ const O = p.div`
|
|
|
91
103
|
}
|
|
92
104
|
|
|
93
105
|
&.active {
|
|
94
|
-
background: var(--gray-950, #14161a);
|
|
95
|
-
|
|
96
106
|
& .wrapper__icon {
|
|
107
|
+
background: var(--gray-950, #14161a);
|
|
97
108
|
color: var(--white, #fff);
|
|
98
109
|
}
|
|
99
110
|
}
|
|
100
111
|
|
|
101
|
-
@media (max-width: ${
|
|
112
|
+
@media (max-width: ${_ + "px"}) {
|
|
102
113
|
flex-direction: row;
|
|
103
114
|
align-items: center;
|
|
104
115
|
gap: 0.25rem;
|
|
105
116
|
border-radius: 999px;
|
|
106
117
|
width: 100%;
|
|
107
|
-
background: var(--neutral-
|
|
118
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
108
119
|
padding: 0 0.75rem;
|
|
109
120
|
|
|
110
121
|
& .wrapper__icon {
|
|
@@ -125,48 +136,48 @@ const O = p.div`
|
|
|
125
136
|
white-space: nowrap;
|
|
126
137
|
}
|
|
127
138
|
}
|
|
128
|
-
`,
|
|
139
|
+
`, W = p.div`
|
|
129
140
|
width: 7.5rem;
|
|
130
141
|
width: 7.5rem;
|
|
131
142
|
border-radius: 999px;
|
|
132
|
-
background: ${
|
|
143
|
+
background: ${y("-90deg")};
|
|
133
144
|
|
|
134
|
-
@media (max-width: ${
|
|
145
|
+
@media (max-width: ${_ + "px"}) {
|
|
135
146
|
width: 7.5rem;
|
|
136
147
|
height: 2.5rem;
|
|
137
148
|
}
|
|
138
|
-
`,
|
|
139
|
-
({ text: r, isActive: o, icon: t, onSelectCard: a = () => {
|
|
140
|
-
} },
|
|
141
|
-
/* @__PURE__ */ i(
|
|
149
|
+
`, A = l(({}, r) => /* @__PURE__ */ i(W, {})), j = l(
|
|
150
|
+
({ text: r, isActive: o = !1, icon: t, onSelectCard: a = () => {
|
|
151
|
+
} }, d) => /* @__PURE__ */ s(O, { className: o ? "active" : "", onClick: a, children: [
|
|
152
|
+
/* @__PURE__ */ i(M, { icon: t, className: "wrapper__icon" }),
|
|
142
153
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
143
154
|
] })
|
|
144
|
-
),
|
|
155
|
+
), L = l(
|
|
145
156
|
({
|
|
146
157
|
image: r,
|
|
147
158
|
imageComponent: o,
|
|
148
159
|
title: t,
|
|
149
160
|
description: a,
|
|
150
|
-
className:
|
|
151
|
-
onSelectCard:
|
|
161
|
+
className: d,
|
|
162
|
+
onSelectCard: m = () => {
|
|
152
163
|
}
|
|
153
|
-
},
|
|
154
|
-
const { theme: c } =
|
|
155
|
-
return /* @__PURE__ */ s(
|
|
156
|
-
|
|
164
|
+
}, w) => {
|
|
165
|
+
const { theme: c } = C();
|
|
166
|
+
return /* @__PURE__ */ s(E, { theme: c, className: d, onClick: m, children: [
|
|
167
|
+
z(o) ? o : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
157
168
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
158
169
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
159
170
|
a && /* @__PURE__ */ i("div", { className: "wrapper__description", children: a })
|
|
160
171
|
] })
|
|
161
172
|
] });
|
|
162
173
|
}
|
|
163
|
-
),
|
|
174
|
+
), R = l(({}, r) => /* @__PURE__ */ s(F, { children: [
|
|
164
175
|
/* @__PURE__ */ i("div", { className: "wrapper__image" }),
|
|
165
176
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
166
177
|
/* @__PURE__ */ i("div", { className: "wrapper__title" }),
|
|
167
178
|
/* @__PURE__ */ i("div", { className: "wrapper__description" })
|
|
168
179
|
] })
|
|
169
|
-
] })),
|
|
180
|
+
] })), T = p.div`
|
|
170
181
|
display: flex;
|
|
171
182
|
flex-direction: column;
|
|
172
183
|
align-items: center;
|
|
@@ -218,7 +229,7 @@ const O = p.div`
|
|
|
218
229
|
}
|
|
219
230
|
}
|
|
220
231
|
|
|
221
|
-
@media (max-width: ${
|
|
232
|
+
@media (max-width: ${_ + "px"}) {
|
|
222
233
|
& .wrapper__tags {
|
|
223
234
|
display: flex;
|
|
224
235
|
overflow-x: scroll;
|
|
@@ -230,45 +241,40 @@ const O = p.div`
|
|
|
230
241
|
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
231
242
|
}
|
|
232
243
|
}
|
|
233
|
-
`,
|
|
244
|
+
`, J = l(
|
|
234
245
|
({
|
|
235
246
|
title: r,
|
|
236
247
|
subtitle: o,
|
|
237
248
|
tags: t = [],
|
|
238
249
|
items: a = [],
|
|
239
|
-
limitTags:
|
|
240
|
-
limitTagsForMobile:
|
|
241
|
-
limit:
|
|
250
|
+
limitTags: d = 5,
|
|
251
|
+
limitTagsForMobile: m = 5,
|
|
252
|
+
limit: w = 3,
|
|
242
253
|
limitForMobile: c = 2,
|
|
243
|
-
selectedTag:
|
|
244
|
-
onSelectTag:
|
|
254
|
+
selectedTag: b,
|
|
255
|
+
onSelectTag: f = () => {
|
|
245
256
|
},
|
|
246
257
|
onSelectCard: h = () => {
|
|
247
258
|
}
|
|
248
|
-
},
|
|
249
|
-
var
|
|
250
|
-
|
|
251
|
-
_ == null || _(e);
|
|
252
|
-
}, g = (e) => {
|
|
253
|
-
h == null || h(e);
|
|
254
|
-
};
|
|
255
|
-
return F(() => {
|
|
259
|
+
}, $) => {
|
|
260
|
+
var g, u;
|
|
261
|
+
return I(() => {
|
|
256
262
|
const e = () => {
|
|
257
|
-
document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((
|
|
258
|
-
const
|
|
259
|
-
|
|
263
|
+
document.querySelector(".wrapper__cards").querySelectorAll(".wrapper__card").forEach((x) => {
|
|
264
|
+
const k = x.getBoundingClientRect().height, N = Math.ceil((k + 10) / 20);
|
|
265
|
+
x.style.gridRowEnd = `span ${N}`;
|
|
260
266
|
});
|
|
261
267
|
};
|
|
262
268
|
return e(), window.addEventListener("resize", e), () => {
|
|
263
269
|
window.removeEventListener("resize", e);
|
|
264
270
|
};
|
|
265
271
|
}), /* @__PURE__ */ s(
|
|
266
|
-
|
|
272
|
+
T,
|
|
267
273
|
{
|
|
268
|
-
ref:
|
|
269
|
-
limitTags:
|
|
270
|
-
limitTagsForMobile:
|
|
271
|
-
limitCards:
|
|
274
|
+
ref: $,
|
|
275
|
+
limitTags: d,
|
|
276
|
+
limitTagsForMobile: m,
|
|
277
|
+
limitCards: w,
|
|
272
278
|
limitCardsForMobile: c,
|
|
273
279
|
children: [
|
|
274
280
|
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
@@ -276,32 +282,32 @@ const O = p.div`
|
|
|
276
282
|
o && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: o })
|
|
277
283
|
] }),
|
|
278
284
|
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, n) => /* @__PURE__ */ i(
|
|
279
|
-
|
|
285
|
+
j,
|
|
280
286
|
{
|
|
281
287
|
icon: e == null ? void 0 : e.icon,
|
|
282
|
-
text: e == null ? void 0 : e.
|
|
283
|
-
isActive: (e == null ? void 0 : e.
|
|
284
|
-
onSelectCard: () =>
|
|
288
|
+
text: e == null ? void 0 : e.title,
|
|
289
|
+
isActive: (e == null ? void 0 : e.code) === b,
|
|
290
|
+
onSelectCard: () => f == null ? void 0 : f(e)
|
|
285
291
|
},
|
|
286
292
|
`field-of-interests-masonry-tag__${n + 1}`
|
|
287
|
-
)) : (
|
|
288
|
-
|
|
293
|
+
)) : (g = Array.from("12345")) == null ? void 0 : g.map((e, n) => /* @__PURE__ */ i(
|
|
294
|
+
A,
|
|
289
295
|
{},
|
|
290
296
|
`field-of-interests-masonry-tag-skeleton__${n + 1}`
|
|
291
297
|
)) }),
|
|
292
298
|
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: a && (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ i(
|
|
293
|
-
|
|
299
|
+
L,
|
|
294
300
|
{
|
|
295
301
|
image: e == null ? void 0 : e.image,
|
|
296
302
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
297
303
|
title: e == null ? void 0 : e.title,
|
|
298
304
|
description: e == null ? void 0 : e.description,
|
|
299
|
-
onSelectCard: () =>
|
|
305
|
+
onSelectCard: () => h == null ? void 0 : h(e),
|
|
300
306
|
className: "wrapper__card"
|
|
301
307
|
},
|
|
302
308
|
`field-of-interests-with-tags-card__${n + 1}`
|
|
303
|
-
)) : (
|
|
304
|
-
|
|
309
|
+
)) : (u = Array.from("12345")) == null ? void 0 : u.map((e, n) => /* @__PURE__ */ i(
|
|
310
|
+
R,
|
|
305
311
|
{},
|
|
306
312
|
`field-of-interests-with-tags-card-skeleton__${n + 1}`
|
|
307
313
|
)) })
|
|
@@ -311,5 +317,5 @@ const O = p.div`
|
|
|
311
317
|
}
|
|
312
318
|
);
|
|
313
319
|
export {
|
|
314
|
-
|
|
320
|
+
J as default
|
|
315
321
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),d=require("./utils-DhRHf5Ed.cjs"),y=require("./Icon.cjs"),v=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
|
|
97
97
|
&:hover {
|
|
98
98
|
cursor: pointer;
|
|
99
|
+
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
& .wrapper__icon {
|
|
@@ -134,7 +135,7 @@
|
|
|
134
135
|
height: 3rem;
|
|
135
136
|
border-radius: 999px;
|
|
136
137
|
background: ${d.linearGradientAnimation("-90deg")};
|
|
137
|
-
`,C=
|
|
138
|
+
`,C=s.forwardRef(({},a)=>r.jsx(N,{})),E=s.forwardRef(({title:a,icon:i,onSelectCard:t=()=>{}},p)=>r.jsxs($,{onClick:t,children:[d.isDefinedNotEmptyString(i)&&r.jsx(y,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:a})]})),I=s.forwardRef(({imageUrl:a,imageComponent:i,title:t,onSelectCard:p=()=>{}},c)=>{const{theme:g}=v.useTheme();return r.jsxs(j,{ref:c,theme:g,onClick:p,children:[d.isDefined(i)?i:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsx("div",{className:"wrapper__content",children:r.jsx("div",{className:"wrapper__title",children:t})})]})}),W=s.forwardRef(({},a)=>r.jsx(k,{})),G=o.styled.div`
|
|
138
139
|
display: flex;
|
|
139
140
|
flex-direction: column;
|
|
140
141
|
align-items: center;
|
|
@@ -210,4 +211,4 @@
|
|
|
210
211
|
gap: 1rem;
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
|
-
`,R=
|
|
214
|
+
`,R=s.forwardRef(({title:a,subtitle:i,options:t=[],limitTags:p=7,limitTagsForMobile:c=2,limit:g=3,limitForMobile:f=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:u},b)=>{var w,x;return r.jsxs(G,{ref:b,limitTags:p,limitTagsForMobile:c,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[a&&r.jsx("div",{className:"wrapper__title",children:a}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,l)=>r.jsx(I,{imageUrl:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>{_==null||_(e)}},`general-with-tags-card__${l+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,l)=>r.jsx(W,{},`general-with-tags-card-skeleton__${l+1}`))}),(t==null?void 0:t.length)>0&&r.jsx("div",{className:"wrapper__tags",children:t==null?void 0:t.map((e,l)=>r.jsx(E,{icon:e==null?void 0:e.icon,title:e==null?void 0:e.title,onSelectCard:()=>h==null?void 0:h(e)},`general-with-tags-card-tag__${l+1}`))}),u===!0&&!((t==null?void 0:t.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(x=Array.from("123"))==null?void 0:x.map((e,l)=>r.jsx(C,{},`general-with-tags-card-tag-skeleton__${l+1}`))})]})});module.exports=R;
|