@lanaco/lnc-react-ui 4.0.121 → 4.0.123
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 +112 -126
- package/dist/BannerSectionCarousel.js +654 -1509
- package/dist/BannerSectionGrid.cjs +3 -3
- package/dist/BannerSectionGrid.js +3 -3
- package/dist/BannerSectionSimple.cjs +40 -4
- package/dist/BannerSectionSimple.js +66 -29
- package/dist/BannerSectionWithList.cjs +42 -8
- package/dist/BannerSectionWithList.js +57 -22
- package/dist/BannerSectionWithListImage.cjs +23 -6
- package/dist/BannerSectionWithListImage.js +52 -35
- package/dist/BlogCardsSponsoredSection.cjs +13 -7
- package/dist/BlogCardsSponsoredSection.js +19 -13
- package/dist/BlogListSection.cjs +11 -3
- package/dist/BlogListSection.js +18 -10
- package/dist/BlogsSectionSimple.cjs +16 -7
- package/dist/BlogsSectionSimple.js +47 -32
- package/dist/BlogsSectionSimpleCentered.cjs +19 -10
- package/dist/BlogsSectionSimpleCentered.js +33 -24
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +22 -15
- package/dist/FieldOfInterestsMasonrySection.js +70 -63
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +49 -44
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +2 -2
- package/dist/{KanbanCard-Crf-cTxA.js → KanbanCard-68kSAXL6.js} +1 -1
- package/dist/{KanbanCard-CP60mpJO.cjs → KanbanCard-BDvoqTDS.cjs} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +105 -63
- package/dist/OverlayGeneralCardsSection.js +172 -161
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/index-Bg5OOQN0.cjs +5 -0
- package/dist/{index-BaLBHyTh.cjs → index-CSgGox95.cjs} +6 -6
- package/dist/{index-CsrdUl1x.js → index-DK8dqEUQ.js} +5 -5
- package/dist/{index-BXrmgzsU.js → index-fN7hCOo3.js} +4 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-BZnmT78f.cjs +0 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, Suspense as B, memo as P, useMemo as R } from "react";
|
|
3
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as k } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as T } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { o as
|
|
7
|
-
import { R as
|
|
8
|
-
import
|
|
6
|
+
import { o as z, p as I, k as b } from "./utils-BbgAIA9N.js";
|
|
7
|
+
import { R as U } from "./style-08foMKSd.js";
|
|
8
|
+
import W from "./Button.js";
|
|
9
9
|
import j from "./Link.js";
|
|
10
10
|
import { P as A } from "./index-YGcWbzeb.js";
|
|
11
11
|
const E = h.div`
|
|
@@ -13,7 +13,7 @@ const E = h.div`
|
|
|
13
13
|
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
|
-
@media (max-width: ${
|
|
16
|
+
@media (max-width: ${k + "px"}) {
|
|
17
17
|
grid-template-columns: repeat(1, 1fr);
|
|
18
18
|
}
|
|
19
19
|
`, w = h.div`
|
|
@@ -31,7 +31,6 @@ const E = h.div`
|
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
|
|
33
33
|
&:hover {
|
|
34
|
-
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
& img {
|
|
@@ -45,15 +44,25 @@ const E = h.div`
|
|
|
45
44
|
width: 100%;
|
|
46
45
|
max-height: 12.5625rem;
|
|
47
46
|
min-height: 12.5625rem;
|
|
48
|
-
background-color: ${
|
|
47
|
+
background-color: ${z("-90deg")};
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
& .action {
|
|
52
51
|
padding: 0 1rem 1rem 1rem;
|
|
53
52
|
margin-top: auto;
|
|
53
|
+
color: var(--gray-950, #14161a);
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
line-height: 1.25rem;
|
|
58
|
+
letter-spacing: -0.0056rem;
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
color: var(--gray-700, #4e555f);
|
|
62
|
+
}
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
@media (max-width: ${
|
|
65
|
+
@media (max-width: ${k + "px"}) {
|
|
57
66
|
}
|
|
58
67
|
`, y = h.div`
|
|
59
68
|
padding: 1rem 1rem 0 1rem;
|
|
@@ -73,13 +82,19 @@ const E = h.div`
|
|
|
73
82
|
font-size: 0.875rem;
|
|
74
83
|
flex: 1;
|
|
75
84
|
color: var(--gray-700, #4e555f);
|
|
76
|
-
${
|
|
85
|
+
${I(3)}
|
|
77
86
|
}
|
|
78
87
|
`, L = u((t, o) => {
|
|
79
|
-
const {
|
|
80
|
-
|
|
88
|
+
const {
|
|
89
|
+
title: i,
|
|
90
|
+
imageUrl: n,
|
|
91
|
+
text: l,
|
|
92
|
+
onCardClick: c,
|
|
93
|
+
readMoreText: s = "Read more"
|
|
94
|
+
} = t;
|
|
95
|
+
return /* @__PURE__ */ d(w, { ref: o, className: "blog-card", onClick: c, children: [
|
|
81
96
|
/* @__PURE__ */ r(A, { src: n }),
|
|
82
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ d(y, { children: [
|
|
83
98
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
|
|
84
99
|
/* @__PURE__ */ r("div", { className: "text-wr", children: l })
|
|
85
100
|
] }),
|
|
@@ -87,7 +102,7 @@ const E = h.div`
|
|
|
87
102
|
] });
|
|
88
103
|
}), _ = u(({}, t) => (
|
|
89
104
|
// <LandingPageClearProductCardSkeleton />
|
|
90
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ d(w, { className: "product-card", children: [
|
|
91
106
|
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
92
107
|
/* @__PURE__ */ r("div", { className: "card-title" }),
|
|
93
108
|
/* @__PURE__ */ r(y, {})
|
|
@@ -111,7 +126,7 @@ const E = h.div`
|
|
|
111
126
|
limit: n,
|
|
112
127
|
keyPrefix: l
|
|
113
128
|
}
|
|
114
|
-
) : t }),
|
|
129
|
+
) : t }), S = P(L), Y = u((t, o) => {
|
|
115
130
|
const {
|
|
116
131
|
icon: i,
|
|
117
132
|
title: n,
|
|
@@ -126,45 +141,45 @@ const E = h.div`
|
|
|
126
141
|
isLoading: N = !1,
|
|
127
142
|
getImage: f = () => {
|
|
128
143
|
},
|
|
129
|
-
readMoreText:
|
|
130
|
-
} = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e,
|
|
131
|
-
|
|
144
|
+
readMoreText: v = "Read more"
|
|
145
|
+
} = t, M = T(), $ = R(() => /* @__PURE__ */ r(g, { children: M === !0 ? a == null ? void 0 : a.map((e, m) => /* @__PURE__ */ r(
|
|
146
|
+
S,
|
|
132
147
|
{
|
|
133
148
|
title: e == null ? void 0 : e.title,
|
|
134
149
|
imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
135
150
|
text: e == null ? void 0 : e.description,
|
|
136
151
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
137
|
-
readMoreText:
|
|
152
|
+
readMoreText: v,
|
|
138
153
|
onCardClick: () => c(e == null ? void 0 : e.titleSlug)
|
|
139
154
|
},
|
|
140
|
-
|
|
141
|
-
)) : a == null ? void 0 : a.slice(0, p).map((e,
|
|
142
|
-
|
|
155
|
+
m
|
|
156
|
+
)) : a == null ? void 0 : a.slice(0, p).map((e, m) => /* @__PURE__ */ r(
|
|
157
|
+
S,
|
|
143
158
|
{
|
|
144
159
|
title: e == null ? void 0 : e.title,
|
|
145
160
|
imageUrl: f(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
146
161
|
text: e == null ? void 0 : e.description,
|
|
147
162
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
148
|
-
readMoreText:
|
|
163
|
+
readMoreText: v,
|
|
149
164
|
onCardClick: () => c(e == null ? void 0 : e.titleSlug)
|
|
150
165
|
},
|
|
151
|
-
|
|
166
|
+
m
|
|
152
167
|
)) }), [a]);
|
|
153
|
-
return /* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
|
|
168
|
+
return /* @__PURE__ */ d(U, { ref: o, children: [
|
|
169
|
+
/* @__PURE__ */ d("div", { className: "regular-title", children: [
|
|
170
|
+
/* @__PURE__ */ d("div", { className: "regular-title-text", children: [
|
|
171
|
+
b(i) && /* @__PURE__ */ r("i", { className: i }),
|
|
157
172
|
/* @__PURE__ */ r("span", { children: n })
|
|
158
173
|
] }),
|
|
159
|
-
|
|
160
|
-
|
|
174
|
+
b(s) && /* @__PURE__ */ r(
|
|
175
|
+
W,
|
|
161
176
|
{
|
|
162
177
|
type: "button",
|
|
163
178
|
btnType: "tinted",
|
|
164
179
|
color: "neutral",
|
|
165
180
|
onClick: (e) => {
|
|
166
|
-
var
|
|
167
|
-
(
|
|
181
|
+
var m;
|
|
182
|
+
(m = e == null ? void 0 : e.target) == null || m.blur(), l(s);
|
|
168
183
|
},
|
|
169
184
|
borderRadius: "curved",
|
|
170
185
|
className: "button-link",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),s=require("react"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),s=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),x=require("./useDetectMobile-zkbzoOGV.cjs"),m=require("./utils-CZynEOC_.cjs"),w=require("./Button.cjs"),b=require("./index-BvSNRLNa.cjs"),j=g.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
margin: auto;
|
|
6
6
|
width: fit-content;
|
|
7
|
-
@media (max-width: ${
|
|
7
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
grid-template-columns: repeat(1, 1fr);
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,p=g.styled.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
width: 100%;
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
width: fit-content;
|
|
28
28
|
margin-top: auto;
|
|
29
29
|
color: var(--gray-950, #14161a);
|
|
30
|
+
font-size: 0.875rem;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
line-height: 1.25rem;
|
|
34
|
+
letter-spacing: -0.09px;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
& img {
|
|
@@ -47,10 +52,10 @@
|
|
|
47
52
|
background-color: ${m.linearGradientAnimation("-90deg")};
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
@media (max-width: ${
|
|
55
|
+
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
51
56
|
max-width: unset;
|
|
52
57
|
}
|
|
53
|
-
`,f=
|
|
58
|
+
`,f=g.styled.div`
|
|
54
59
|
text-align: center;
|
|
55
60
|
display: flex;
|
|
56
61
|
flex-direction: column;
|
|
@@ -58,8 +63,11 @@
|
|
|
58
63
|
color: var(--gray-950, #14161a);
|
|
59
64
|
|
|
60
65
|
& .text-wr-title {
|
|
61
|
-
|
|
66
|
+
text-align: center;
|
|
62
67
|
font-size: 1.375rem;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
line-height: 1.75rem;
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
& .skeleton-title {
|
|
@@ -69,10 +77,11 @@
|
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
& .text-wr {
|
|
72
|
-
font-weight: 400;
|
|
73
80
|
font-size: 0.875rem;
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
font-style: normal;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
line-height: 1.25rem;
|
|
84
|
+
letter-spacing: 0.0156rem;
|
|
76
85
|
${m.truncateTextInRows(3)}
|
|
77
86
|
}
|
|
78
|
-
`,
|
|
87
|
+
`,u=s.forwardRef((i,n)=>{const{title:r,image:o,text:l,buttonText:d,onCardClick:a}=i;return t.jsxs(p,{ref:n,className:"blog-card",onClick:a,children:[t.jsx(b.ProductImageWrapper,{src:o}),t.jsxs(f,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:l})]}),t.jsx(w,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:a,size:"medium",children:d})]})}),k=s.forwardRef((i,n)=>{const{onCardClick:r}=i;return t.jsxs(p,{className:"product-card",onClick:r,children:[t.jsx("div",{className:"skeleton-img"}),t.jsx(f,{children:t.jsx("div",{className:"skeleton-title"})})]})}),y=({limit:i=3,isLoading:n=!1,keyPrefix:r})=>t.jsx(t.Fragment,{children:Array.from({length:i},(o,l)=>t.jsx(k,{isLoading:n},`${r}-skeleton-product-card-${l}`))}),C=({children:i,fallbackComponent:n=t.jsx(t.Fragment,{}),isLoading:r=!1,limit:o,keyPrefix:l})=>t.jsx(s.Suspense,{fallbackComponent:n,children:r===!0?t.jsx(y,{isLoading:r,limit:o,keyPrefix:l}):i}),v=s.forwardRef((i,n)=>{const{items:r,limit:o=3,onSelectCard:l=()=>{},isLoading:d=!1}=i,a=x.useDetectMobile();return t.jsx(j,{ref:n,limit:o,children:t.jsx(C,{isLoading:d,limit:o,keyPrefix:"explore-landing",children:t.jsx(t.Fragment,{children:a===!0?r==null?void 0:r.map((e,c)=>t.jsx(u,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>l(e)},c)):r==null?void 0:r.slice(0,o).map((e,c)=>t.jsx(u,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>l(e)},c))})})})});module.exports=v;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p, Suspense as k } from "react";
|
|
3
3
|
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as u } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { o as f, p as
|
|
7
|
-
import
|
|
6
|
+
import { o as f, p as y } from "./utils-BbgAIA9N.js";
|
|
7
|
+
import v from "./Button.js";
|
|
8
8
|
import { P as S } from "./index-YGcWbzeb.js";
|
|
9
|
-
const
|
|
9
|
+
const x = g.div`
|
|
10
10
|
display: grid;
|
|
11
11
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
12
12
|
gap: 1.25rem;
|
|
13
13
|
margin: auto;
|
|
14
14
|
width: fit-content;
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${u + "px"}) {
|
|
16
16
|
grid-template-columns: repeat(1, 1fr);
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`, w = g.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
width: 100%;
|
|
@@ -35,6 +35,11 @@ const $ = g.div`
|
|
|
35
35
|
width: fit-content;
|
|
36
36
|
margin-top: auto;
|
|
37
37
|
color: var(--gray-950, #14161a);
|
|
38
|
+
font-size: 0.875rem;
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
line-height: 1.25rem;
|
|
42
|
+
letter-spacing: -0.09px;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
& img {
|
|
@@ -55,10 +60,10 @@ const $ = g.div`
|
|
|
55
60
|
background-color: ${f("-90deg")};
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
@media (max-width: ${
|
|
63
|
+
@media (max-width: ${u + "px"}) {
|
|
59
64
|
max-width: unset;
|
|
60
65
|
}
|
|
61
|
-
`,
|
|
66
|
+
`, b = g.div`
|
|
62
67
|
text-align: center;
|
|
63
68
|
display: flex;
|
|
64
69
|
flex-direction: column;
|
|
@@ -66,8 +71,11 @@ const $ = g.div`
|
|
|
66
71
|
color: var(--gray-950, #14161a);
|
|
67
72
|
|
|
68
73
|
& .text-wr-title {
|
|
69
|
-
|
|
74
|
+
text-align: center;
|
|
70
75
|
font-size: 1.375rem;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
line-height: 1.75rem;
|
|
71
79
|
}
|
|
72
80
|
|
|
73
81
|
& .skeleton-title {
|
|
@@ -77,22 +85,23 @@ const $ = g.div`
|
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
& .text-wr {
|
|
80
|
-
font-weight: 400;
|
|
81
88
|
font-size: 0.875rem;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
line-height: 1.25rem;
|
|
92
|
+
letter-spacing: 0.0156rem;
|
|
93
|
+
${y(3)}
|
|
85
94
|
}
|
|
86
|
-
`,
|
|
95
|
+
`, h = p((i, o) => {
|
|
87
96
|
const { title: r, image: n, text: a, buttonText: m, onCardClick: l } = i;
|
|
88
|
-
return /* @__PURE__ */ c(
|
|
97
|
+
return /* @__PURE__ */ c(w, { ref: o, className: "blog-card", onClick: l, children: [
|
|
89
98
|
/* @__PURE__ */ t(S, { src: n }),
|
|
90
|
-
/* @__PURE__ */ c(
|
|
99
|
+
/* @__PURE__ */ c(b, { children: [
|
|
91
100
|
/* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
|
|
92
101
|
/* @__PURE__ */ t("div", { className: "text-wr", children: a })
|
|
93
102
|
] }),
|
|
94
103
|
/* @__PURE__ */ t(
|
|
95
|
-
|
|
104
|
+
v,
|
|
96
105
|
{
|
|
97
106
|
borderRadius: "curved",
|
|
98
107
|
color: "gray",
|
|
@@ -104,17 +113,17 @@ const $ = g.div`
|
|
|
104
113
|
}
|
|
105
114
|
)
|
|
106
115
|
] });
|
|
107
|
-
}),
|
|
116
|
+
}), $ = p((i, o) => {
|
|
108
117
|
const { onCardClick: r } = i;
|
|
109
118
|
return (
|
|
110
119
|
// <SimpleBlogCardSkeleton />
|
|
111
|
-
/* @__PURE__ */ c(
|
|
120
|
+
/* @__PURE__ */ c(w, { className: "product-card", onClick: r, children: [
|
|
112
121
|
/* @__PURE__ */ t("div", { className: "skeleton-img" }),
|
|
113
|
-
/* @__PURE__ */ t(
|
|
122
|
+
/* @__PURE__ */ t(b, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
|
|
114
123
|
] })
|
|
115
124
|
);
|
|
116
125
|
}), T = ({ limit: i = 3, isLoading: o = !1, keyPrefix: r }) => /* @__PURE__ */ t(s, { children: Array.from({ length: i }, (n, a) => /* @__PURE__ */ t(
|
|
117
|
-
|
|
126
|
+
$,
|
|
118
127
|
{
|
|
119
128
|
isLoading: o
|
|
120
129
|
},
|
|
@@ -140,14 +149,14 @@ const $ = g.div`
|
|
|
140
149
|
},
|
|
141
150
|
isLoading: m = !1
|
|
142
151
|
} = i, l = C();
|
|
143
|
-
return /* @__PURE__ */ t(
|
|
152
|
+
return /* @__PURE__ */ t(x, { ref: o, limit: n, children: /* @__PURE__ */ t(
|
|
144
153
|
B,
|
|
145
154
|
{
|
|
146
155
|
isLoading: m,
|
|
147
156
|
limit: n,
|
|
148
157
|
keyPrefix: "explore-landing",
|
|
149
158
|
children: /* @__PURE__ */ t(s, { children: l === !0 ? r == null ? void 0 : r.map((e, d) => /* @__PURE__ */ t(
|
|
150
|
-
|
|
159
|
+
h,
|
|
151
160
|
{
|
|
152
161
|
title: e == null ? void 0 : e.title,
|
|
153
162
|
image: (e == null ? void 0 : e.image) || null,
|
|
@@ -157,7 +166,7 @@ const $ = g.div`
|
|
|
157
166
|
},
|
|
158
167
|
d
|
|
159
168
|
)) : r == null ? void 0 : r.slice(0, n).map((e, d) => /* @__PURE__ */ t(
|
|
160
|
-
|
|
169
|
+
h,
|
|
161
170
|
{
|
|
162
171
|
title: e == null ? void 0 : e.title,
|
|
163
172
|
image: (e == null ? void 0 : e.image) || null,
|
package/dist/DateInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BpbMKBf_.cjs"),Aa=require("./Icon.cjs"),Fa=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./utils-CZynEOC_.cjs"),ie=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BpbMKBf_.cjs"),Aa=require("./Icon.cjs"),Fa=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./utils-CZynEOC_.cjs"),ie=require("./index-Bg5OOQN0.cjs"),h=require("./defineProperty-CqVRDJI8.cjs"),T=require("./setPrototypeOf-4aSEnBDm.cjs"),Nr=require("./index-41nUb2kP.cjs"),Wa=require("./index-CDGmG-qk.cjs"),Ua=require("./_commonjsHelpers-DwTZ_eVU.cjs"),Ha=require("./TextInput.cjs"),$a=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function Ba(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>a[r]})}}return n.default=a,Object.freeze(n)}const j=Ba(v),qa=Fa.styled.div`
|
|
2
2
|
${a=>I.getComponentTypographyCss(a.theme,"DateInput",a.size,"enabled")}
|
|
3
3
|
& .react-datepicker__header__dropdown {
|
|
4
4
|
position: absolute !important;
|
package/dist/DateInput.js
CHANGED
|
@@ -5,7 +5,7 @@ import { P as J } from "./index-CblbdqjE.js";
|
|
|
5
5
|
import Qa from "./Icon.js";
|
|
6
6
|
import { s as Ka } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
7
|
import { c as hr, b as $ } from "./utils-BbgAIA9N.js";
|
|
8
|
-
import { c as le } from "./index-
|
|
8
|
+
import { c as le } from "./index-fN7hCOo3.js";
|
|
9
9
|
import { c as wt, a as Va, d as R, e as L, g as Y, _, f as I } from "./defineProperty-DF3p0mVo.js";
|
|
10
10
|
import { a as x } from "./setPrototypeOf-CttqfWo1.js";
|
|
11
11
|
import { r as zn, R as Xa } from "./index-B1vKwsDE.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./utils-CZynEOC_.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),l=require("./utils-CZynEOC_.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),q=require("./Icon.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),R=m.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: fit-content;
|
|
@@ -50,12 +50,25 @@
|
|
|
50
50
|
${l.truncateTextInRows(2)}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
|
|
54
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
55
|
+
& .wrapper__content {
|
|
56
|
+
& .wrapper__title {
|
|
57
|
+
font-size: 0.875rem;
|
|
58
|
+
line-height: 1.25rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& .wrapper__description {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`,S=m.styled.div`
|
|
54
67
|
width: 100%;
|
|
55
68
|
height: 11.625rem;
|
|
56
69
|
border-radius: 0.75rem;
|
|
57
70
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
58
|
-
`,
|
|
71
|
+
`,C=m.styled.div`
|
|
59
72
|
display: flex;
|
|
60
73
|
flex-direction: column;
|
|
61
74
|
align-items: center;
|
|
@@ -102,18 +115,16 @@
|
|
|
102
115
|
}
|
|
103
116
|
}
|
|
104
117
|
|
|
105
|
-
@media (max-width: ${
|
|
118
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
106
119
|
flex-direction: row;
|
|
107
120
|
align-items: center;
|
|
108
121
|
gap: 0.25rem;
|
|
109
122
|
border-radius: 999px;
|
|
110
|
-
width: 100%;
|
|
111
123
|
background: var(--neutral-95004, rgba(20, 22, 26, 0.04));
|
|
112
124
|
padding: 0 0.75rem;
|
|
113
125
|
|
|
114
126
|
&.active {
|
|
115
127
|
background: var(--gray-950, #14161a);
|
|
116
|
-
|
|
117
128
|
& .wrapper__icon {
|
|
118
129
|
background: transparent;
|
|
119
130
|
}
|
|
@@ -141,17 +152,17 @@
|
|
|
141
152
|
white-space: nowrap;
|
|
142
153
|
}
|
|
143
154
|
}
|
|
144
|
-
`,
|
|
155
|
+
`,L=m.styled.div`
|
|
145
156
|
width: 7.5rem;
|
|
146
157
|
width: 7.5rem;
|
|
147
158
|
border-radius: 999px;
|
|
148
159
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
149
160
|
|
|
150
|
-
@media (max-width: ${
|
|
161
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
151
162
|
width: 7.5rem;
|
|
152
163
|
height: 2.5rem;
|
|
153
164
|
}
|
|
154
|
-
`,
|
|
165
|
+
`,O=s.forwardRef(({},t)=>r.jsx(L,{})),F=s.forwardRef(({text:t,isActive:o=!1,icon:i,onSelectCard:n=()=>{}},_)=>r.jsxs(C,{className:o?"active":"",onClick:n,children:[r.jsx(q,{icon:i,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),A=s.forwardRef(({image:t,imageComponent:o,title:i,description:n,className:_,onSelectCard:x=()=>{}},j)=>{const{theme:u}=z.useTheme();return r.jsxs(R,{theme:u,className:_,onClick:x,children:[l.isDefined(o)?o:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),n&&r.jsx("div",{className:"wrapper__description",children:n})]})]})}),T=s.forwardRef(({},t)=>r.jsxs(S,{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"})]})]})),W=m.styled.div`
|
|
155
166
|
display: flex;
|
|
156
167
|
flex-direction: column;
|
|
157
168
|
align-items: center;
|
|
@@ -192,10 +203,6 @@
|
|
|
192
203
|
justify-content: center;
|
|
193
204
|
align-items: center;
|
|
194
205
|
gap: 0.75rem;
|
|
195
|
-
|
|
196
|
-
grid-template-columns: ${t=>`repeat(${t.numberOfTags||0}, minmax(0, 7rem))`};
|
|
197
|
-
justify-content: center;
|
|
198
|
-
display: grid;
|
|
199
206
|
}
|
|
200
207
|
|
|
201
208
|
& .wrapper__cards {
|
|
@@ -211,7 +218,7 @@
|
|
|
211
218
|
}
|
|
212
219
|
}
|
|
213
220
|
|
|
214
|
-
@media (max-width: ${
|
|
221
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
215
222
|
& .wrapper__tags {
|
|
216
223
|
overflow-x: scroll;
|
|
217
224
|
justify-content: flex-start;
|
|
@@ -236,4 +243,4 @@
|
|
|
236
243
|
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCardsForMobile}, minmax(0, 1fr))`};
|
|
237
244
|
}
|
|
238
245
|
}
|
|
239
|
-
`,B=s.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:
|
|
246
|
+
`,B=s.forwardRef(({title:t,subtitle:o,tags:i=[],items:n=[],limitTags:_=5,limitTagsForMobile:x=5,limit:j=3,limitForMobile:u=2,selectedTag:E,onSelectTag:y=()=>{},onSelectCard:v=()=>{},className:d},I)=>{var k,$;return s.useLayoutEffect(()=>{if(!l.isDefinedNotEmptyString(d))return;const e=()=>{const p=document.querySelector(`.${d} .wrapper__cards`),c=p.querySelectorAll(".wrapper__card");c.forEach(w=>{const N=w.getBoundingClientRect().height,M=Math.ceil((N+10)/20);w.style.gridRowEnd=`span ${M}`});const b=c==null?void 0:c[c.length-1];if(b){const w=b.offsetTop+b.offsetHeight;p.style.height=`${w}px`}},f=document.querySelector(`.${d} .wrapper__cards`).querySelectorAll(".wrapper__image");let h=0;return f.length===0?e():(f.forEach(p=>{p.complete?h++:p.addEventListener("load",()=>{h++,h===f.length&&e()})}),h===f.length&&e()),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d,n]),r.jsxs(W,{ref:I,limitTags:_,limitTagsForMobile:x,limitCards:j,limitCardsForMobile:u,className:d,numberOfTags:i==null?void 0:i.length,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__tags__external",children: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(F,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===E,onSelectCard:()=>y==null?void 0:y(e)},`field-of-interests-masonry-tag__${a+1}`)):(k=Array.from("12345"))==null?void 0:k.map((e,a)=>r.jsx(O,{},`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(A,{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:()=>v==null?void 0:v(e),className:"wrapper__card"},`field-of-interests-with-tags-card__${a+1}`)):($=Array.from("12345"))==null?void 0:$.map((e,a)=>r.jsx(T,{},`field-of-interests-with-tags-card-skeleton__${a+1}`))})]})});module.exports=B;
|