@lanaco/lnc-react-ui 4.0.157 → 4.0.161
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/BlogCardsSponsoredSection.cjs +11 -9
- package/dist/BlogCardsSponsoredSection.js +108 -90
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +88 -84
- package/dist/BlogListSection.cjs +5 -5
- package/dist/BlogListSection.js +139 -126
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +37 -35
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +43 -41
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +9 -4
- package/dist/BlogsSectionDetailed.cjs +11 -11
- package/dist/BlogsSectionDetailed.js +122 -108
- package/dist/BlogsSectionLarge.cjs +4 -4
- package/dist/BlogsSectionLarge.js +43 -40
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +100 -86
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +81 -66
- package/dist/BlogsSectionWithFilters.cjs +11 -11
- package/dist/BlogsSectionWithFilters.js +108 -93
- package/dist/{CustomStyles-Ajyqx0cb.cjs → CustomStyles-BwHfr4iM.cjs} +1 -1
- package/dist/{CustomStyles-DVcu00ul.js → CustomStyles-iconSXFL.js} +0 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +5 -3
- package/dist/DetailedProductsInfinitiveSection.js +31 -27
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +76 -65
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -12
- package/dist/FieldOfInterestsMasonrySection.js +35 -27
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +2 -0
- package/dist/FieldOfInterestsWithTagsCardsSection.js +5 -3
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -3
- package/dist/MasonryGeneralCardsSection.js +9 -11
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +20 -27
- package/dist/ProductsWithBannerSection.js +93 -78
- package/dist/QuattroCardsSection.cjs +2 -0
- package/dist/QuattroCardsSection.js +2 -0
- package/dist/SalesCampaignsSection.cjs +29 -27
- package/dist/SalesCampaignsSection.js +247 -239
- package/dist/ShopCardsSection.cjs +5 -3
- package/dist/ShopCardsSection.js +29 -25
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +62 -51
- package/dist/UrgentSaleProductsSection.cjs +6 -6
- package/dist/UrgentSaleProductsSection.js +67 -56
- package/dist/index-1Dm1i6WK.js +52 -0
- package/dist/index-BGTtoLxz.cjs +1 -0
- package/dist/{index-CLoINIGC.cjs → index-DicTpiG0.cjs} +5 -5
- package/dist/{index-BGY3PSA-.js → index-y6sKgrZC.js} +45 -34
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{skeleton-BWFqIToC.js → skeleton-5mO22c5S.js} +94 -84
- package/dist/{skeleton-CanJ6Gr6.cjs → skeleton-Ccd6EDeB.cjs} +8 -8
- package/dist/{style-BLuyU97E.js → style-DKAOBWn3.js} +1 -0
- package/dist/{style-lSjkOR95.cjs → style-Db3VFbfP.cjs} +1 -0
- package/dist/{suspense-product-card-detailed-BWoxabjZ.js → suspense-product-card-detailed-BZtObEfA.js} +126 -123
- package/dist/{suspense-product-card-detailed-DYyH_jf5.cjs → suspense-product-card-detailed-D-pjVe22.cjs} +7 -7
- package/dist/{suspense-product-card-simple-CrqjSxHI.cjs → suspense-product-card-simple-DJ8UYolb.cjs} +1 -1
- package/dist/{suspense-product-card-simple-CLJjab5B.js → suspense-product-card-simple-ziy0XcLp.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Cm0f72Po.cjs +0 -1
- package/dist/index-DGp7FHms.js +0 -42
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),A=require("./useDetectMobile-zkbzoOGV.cjs"),i=require("./utils-Dl9xPH4c.cjs"),R=require("./style-Db3VFbfP.cjs"),$=require("./Button.cjs"),B=require("./index-BueKsXT8.cjs"),D=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
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,C=v.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-height: 11.25rem;
|
|
34
34
|
min-height: 11.25rem;
|
|
35
|
-
background-color: ${
|
|
35
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
& .tags-wr {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
padding: 0 1rem 1rem 1rem;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@media (max-width: ${
|
|
47
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
48
48
|
max-height: 100%;
|
|
49
49
|
min-height: 100%;
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,T=v.styled.div`
|
|
52
52
|
padding: 1rem 1rem 0 1rem;
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& .info-wr-skeleton {
|
|
65
|
-
background-color: ${
|
|
65
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
66
66
|
height: 1rem;
|
|
67
67
|
width: 100%;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
& .skeleton-title {
|
|
71
|
-
background-color: ${
|
|
71
|
+
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
72
72
|
height: 1.5rem;
|
|
73
73
|
width: 70%;
|
|
74
74
|
}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
font-size: 0.875rem;
|
|
79
79
|
flex: 1;
|
|
80
80
|
color: var(--gray-700, #4e555f);
|
|
81
|
-
${
|
|
81
|
+
${i.truncateTextInRows(2)}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
& .info-wr {
|
|
@@ -107,4 +107,4 @@
|
|
|
107
107
|
align-items: center;
|
|
108
108
|
gap: 1rem;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
`,q=c.forwardRef((s,m)=>{const{title:n,imageUrl:g,text:d,numberOfLikes:a,numberOfComments:j,timeToRead:f,publishedAt:u,tags:o,onCardClick:w,timeToReadText:h="{0} min read",metadata:l}=s,b=c.useRef();return r.jsxs(C,{ref:b,className:"blog-card","data-accessor":l==null?void 0:l.accessor,name:l==null?void 0:l.name,onClick:t=>w(t,b),children:[r.jsx(B.ProductImageWrapper,{src:g}),r.jsxs(T,{children:[r.jsxs("div",{className:"info-wr",children:[r.jsxs("div",{className:"info-wr-1",children:[r.jsxs("span",{children:[i.formatLocaleDateString(u)," "]}),r.jsx("span",{className:"small-dot",children:"●"}),f&&h?`${i.formatString(h,f)}`:"N/A"]}),r.jsxs("div",{className:"info-wr-2",children:[r.jsxs("span",{className:"info-wr-1",children:[r.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),r.jsx("span",{children:i.getRoundedNumber(a)})]}),r.jsxs("span",{className:"info-wr-1",children:[r.jsx("i",{className:"mng mng-lnc-messages-filled"}),r.jsx("span",{children:i.getRoundedNumber(j)})]})]})]}),r.jsx("div",{className:"text-wr-title",children:n}),r.jsx("div",{className:"text-wr",children:d})]}),o&&r.jsx("div",{className:"tags-wr",children:o==null?void 0:o.map((t,N)=>r.jsx(R.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},N))})]})}),L=c.forwardRef(({},s)=>r.jsxs(C,{className:"blog-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsxs(T,{children:[r.jsx("div",{className:"info-wr"}),r.jsx("div",{className:"skeleton-title"}),r.jsx("div",{className:"info-wr-skeleton"})]})]})),E=({limit:s=3,isLoading:m=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:s},(g,d)=>r.jsx(L,{isLoading:m},`${n}-skeleton-product-card-${d}`))}),I=({children:s,fallbackComponent:m=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:g,keyPrefix:d})=>r.jsx(c.Suspense,{fallbackComponent:m,children:n===!0?r.jsx(E,{isLoading:n,limit:g,keyPrefix:d}):s}),y=c.memo(q),M=c.forwardRef((s,m)=>{const{icon:n,title:g,onButtonAction:d,items:a,buttonText:j,timeToReadText:f,limit:u=3,onSelectCard:o=()=>{},isLoading:w=!1,buttonLink:h,getImage:l=()=>{},componentName:b}=s,t=A.useDetectMobile(),N=c.useMemo(()=>r.jsx(r.Fragment,{children:t===!0?a==null?void 0:a.map((e,p)=>r.jsx(y,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:f,tags:e==null?void 0:e.tags,onCardClick:(O,k)=>o(e==null?void 0:e.titleSlug,k),imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,metadata:{name:b,accessor:e==null?void 0:e.accessor}},p)):a==null?void 0:a.slice(0,u).map((e,p)=>r.jsx(y,{title:e==null?void 0:e.title,imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:f,onCardClick:(O,k)=>o(e==null?void 0:e.titleSlug,k),metadata:{name:b,accessor:e==null?void 0:e.accessor}},p))}),[a,t,u,o]);return r.jsxs(R.RegulatTitleSectionWrapper,{ref:m,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[i.isDefinedNotEmptyString(n)&&r.jsx("i",{className:n}),r.jsx("span",{children:g})]}),i.isDefinedNotEmptyString(j)&&i.isDefinedNotEmptyString(h)&&r.jsx($,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var p;(p=e==null?void 0:e.target)==null||p.blur(),d(h)},borderRadius:"curved",className:"button-link",children:j})]}),r.jsx(D,{limit:u,children:r.jsx(I,{isLoading:w,limit:u,keyPrefix:"explore-landing",children:N})})]})});module.exports=M;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as t, jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { o as
|
|
7
|
-
import { B as
|
|
8
|
-
import
|
|
9
|
-
import { P as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as t, jsx as r, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, useRef as D, Suspense as z, memo as M, useMemo as P } from "react";
|
|
3
|
+
import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as $ } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { o as y, p as U, v as W, s as j, w as T, k as N } from "./utils-BdsZgOUE.js";
|
|
7
|
+
import { B as E, R as _ } from "./style-DKAOBWn3.js";
|
|
8
|
+
import G from "./Button.js";
|
|
9
|
+
import { P as F } from "./index-CF3HhgvN.js";
|
|
10
|
+
const X = R.div`
|
|
11
11
|
display: grid;
|
|
12
|
-
grid-template-columns: ${(
|
|
12
|
+
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
14
14
|
|
|
15
|
-
@media (max-width: ${
|
|
15
|
+
@media (max-width: ${$ + "px"}) {
|
|
16
16
|
grid-template-columns: repeat(1, 1fr);
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`, B = R.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
width: 100%;
|
|
@@ -41,7 +41,7 @@ const E = y.div`
|
|
|
41
41
|
width: 100%;
|
|
42
42
|
max-height: 11.25rem;
|
|
43
43
|
min-height: 11.25rem;
|
|
44
|
-
background-color: ${
|
|
44
|
+
background-color: ${y("-90deg")};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
& .tags-wr {
|
|
@@ -53,11 +53,11 @@ const E = y.div`
|
|
|
53
53
|
padding: 0 1rem 1rem 1rem;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
@media (max-width: ${
|
|
56
|
+
@media (max-width: ${$ + "px"}) {
|
|
57
57
|
max-height: 100%;
|
|
58
58
|
min-height: 100%;
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`, A = R.div`
|
|
61
61
|
padding: 1rem 1rem 0 1rem;
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
@@ -71,13 +71,13 @@ const E = y.div`
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
& .info-wr-skeleton {
|
|
74
|
-
background-color: ${
|
|
74
|
+
background-color: ${y("-90deg")};
|
|
75
75
|
height: 1rem;
|
|
76
76
|
width: 100%;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& .skeleton-title {
|
|
80
|
-
background-color: ${
|
|
80
|
+
background-color: ${y("-90deg")};
|
|
81
81
|
height: 1.5rem;
|
|
82
82
|
width: 70%;
|
|
83
83
|
}
|
|
@@ -87,7 +87,7 @@ const E = y.div`
|
|
|
87
87
|
font-size: 0.875rem;
|
|
88
88
|
flex: 1;
|
|
89
89
|
color: var(--gray-700, #4e555f);
|
|
90
|
-
${
|
|
90
|
+
${U(2)}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
& .info-wr {
|
|
@@ -116,93 +116,105 @@ const E = y.div`
|
|
|
116
116
|
align-items: center;
|
|
117
117
|
gap: 1rem;
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`, Z = S((a, d) => {
|
|
120
120
|
const {
|
|
121
|
-
title:
|
|
122
|
-
imageUrl:
|
|
121
|
+
title: n,
|
|
122
|
+
imageUrl: c,
|
|
123
123
|
text: m,
|
|
124
124
|
numberOfLikes: l,
|
|
125
|
-
numberOfComments:
|
|
126
|
-
timeToRead:
|
|
127
|
-
publishedAt:
|
|
128
|
-
tags:
|
|
129
|
-
onCardClick:
|
|
130
|
-
timeToReadText:
|
|
131
|
-
|
|
125
|
+
numberOfComments: b,
|
|
126
|
+
timeToRead: u,
|
|
127
|
+
publishedAt: g,
|
|
128
|
+
tags: s,
|
|
129
|
+
onCardClick: w,
|
|
130
|
+
timeToReadText: f = "{0} min read",
|
|
131
|
+
metadata: o
|
|
132
|
+
} = a, h = D();
|
|
132
133
|
return (
|
|
133
134
|
// <BlogCardDetailedSkeleton />
|
|
134
|
-
/* @__PURE__ */ t(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
135
|
+
/* @__PURE__ */ t(
|
|
136
|
+
B,
|
|
137
|
+
{
|
|
138
|
+
ref: h,
|
|
139
|
+
className: "blog-card",
|
|
140
|
+
"data-accessor": o == null ? void 0 : o.accessor,
|
|
141
|
+
name: o == null ? void 0 : o.name,
|
|
142
|
+
onClick: (i) => w(i, h),
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ r(F, { src: c }),
|
|
145
|
+
/* @__PURE__ */ t(A, { children: [
|
|
146
|
+
/* @__PURE__ */ t("div", { className: "info-wr", children: [
|
|
147
|
+
/* @__PURE__ */ t("div", { className: "info-wr-1", children: [
|
|
148
|
+
/* @__PURE__ */ t("span", { children: [
|
|
149
|
+
j(g),
|
|
150
|
+
" "
|
|
151
|
+
] }),
|
|
152
|
+
/* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
|
|
153
|
+
u && f ? `${W(f, u)}` : "N/A"
|
|
154
|
+
] }),
|
|
155
|
+
/* @__PURE__ */ t("div", { className: "info-wr-2", children: [
|
|
156
|
+
/* @__PURE__ */ t("span", { className: "info-wr-1", children: [
|
|
157
|
+
/* @__PURE__ */ r("i", { className: "mng mng-lnc-thumbs-up--filled" }),
|
|
158
|
+
/* @__PURE__ */ r("span", { children: T(l) })
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ t("span", { className: "info-wr-1", children: [
|
|
161
|
+
/* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
|
|
162
|
+
/* @__PURE__ */ r("span", { children: T(b) })
|
|
163
|
+
] })
|
|
164
|
+
] })
|
|
142
165
|
] }),
|
|
143
|
-
/* @__PURE__ */ r("
|
|
144
|
-
|
|
166
|
+
/* @__PURE__ */ r("div", { className: "text-wr-title", children: n }),
|
|
167
|
+
/* @__PURE__ */ r("div", { className: "text-wr", children: m })
|
|
145
168
|
] }),
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ t("span", { className: "info-wr-1", children: [
|
|
152
|
-
/* @__PURE__ */ r("i", { className: "mng mng-lnc-messages-filled" }),
|
|
153
|
-
/* @__PURE__ */ r("span", { children: C(f) })
|
|
154
|
-
] })
|
|
155
|
-
] })
|
|
156
|
-
] }),
|
|
157
|
-
/* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
|
|
158
|
-
/* @__PURE__ */ r("div", { className: "text-wr", children: m })
|
|
159
|
-
] }),
|
|
160
|
-
o && /* @__PURE__ */ r("div", { className: "tags-wr", children: o == null ? void 0 : o.map((n, h) => /* @__PURE__ */ r(I, { color: n == null ? void 0 : n.color, children: n == null ? void 0 : n.name }, h)) })
|
|
161
|
-
] })
|
|
169
|
+
s && /* @__PURE__ */ r("div", { className: "tags-wr", children: s == null ? void 0 : s.map((i, k) => /* @__PURE__ */ r(E, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, k)) })
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
)
|
|
162
173
|
);
|
|
163
|
-
}),
|
|
174
|
+
}), q = S(({}, a) => /* @__PURE__ */ t(B, { className: "blog-card", children: [
|
|
164
175
|
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
165
|
-
/* @__PURE__ */ t(
|
|
176
|
+
/* @__PURE__ */ t(A, { children: [
|
|
166
177
|
/* @__PURE__ */ r("div", { className: "info-wr" }),
|
|
167
178
|
/* @__PURE__ */ r("div", { className: "skeleton-title" }),
|
|
168
179
|
/* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
|
|
169
180
|
] })
|
|
170
|
-
] })),
|
|
171
|
-
|
|
181
|
+
] })), H = ({ limit: a = 3, isLoading: d = !1, keyPrefix: n }) => /* @__PURE__ */ r(C, { children: Array.from({ length: a }, (c, m) => /* @__PURE__ */ r(
|
|
182
|
+
q,
|
|
172
183
|
{
|
|
173
|
-
isLoading:
|
|
184
|
+
isLoading: d
|
|
174
185
|
},
|
|
175
|
-
`${
|
|
176
|
-
)) }),
|
|
177
|
-
children:
|
|
178
|
-
fallbackComponent:
|
|
179
|
-
isLoading:
|
|
180
|
-
limit:
|
|
186
|
+
`${n}-skeleton-product-card-${m}`
|
|
187
|
+
)) }), J = ({
|
|
188
|
+
children: a,
|
|
189
|
+
fallbackComponent: d = /* @__PURE__ */ r(C, {}),
|
|
190
|
+
isLoading: n = !1,
|
|
191
|
+
limit: c,
|
|
181
192
|
keyPrefix: m
|
|
182
|
-
}) => /* @__PURE__ */ r(
|
|
183
|
-
|
|
193
|
+
}) => /* @__PURE__ */ r(z, { fallbackComponent: d, children: n === !0 ? /* @__PURE__ */ r(
|
|
194
|
+
H,
|
|
184
195
|
{
|
|
185
|
-
isLoading:
|
|
186
|
-
limit:
|
|
196
|
+
isLoading: n,
|
|
197
|
+
limit: c,
|
|
187
198
|
keyPrefix: m
|
|
188
199
|
}
|
|
189
|
-
) :
|
|
200
|
+
) : a }), O = M(Z), ae = S((a, d) => {
|
|
190
201
|
const {
|
|
191
|
-
icon:
|
|
192
|
-
title:
|
|
202
|
+
icon: n,
|
|
203
|
+
title: c,
|
|
193
204
|
onButtonAction: m,
|
|
194
205
|
items: l,
|
|
195
|
-
buttonText:
|
|
196
|
-
timeToReadText:
|
|
197
|
-
limit:
|
|
198
|
-
onSelectCard:
|
|
206
|
+
buttonText: b,
|
|
207
|
+
timeToReadText: u,
|
|
208
|
+
limit: g = 3,
|
|
209
|
+
onSelectCard: s = () => {
|
|
199
210
|
},
|
|
200
|
-
isLoading:
|
|
201
|
-
buttonLink:
|
|
202
|
-
getImage:
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
211
|
+
isLoading: w = !1,
|
|
212
|
+
buttonLink: f,
|
|
213
|
+
getImage: o = () => {
|
|
214
|
+
},
|
|
215
|
+
componentName: h
|
|
216
|
+
} = a, i = I(), k = P(() => /* @__PURE__ */ r(C, { children: i === !0 ? l == null ? void 0 : l.map((e, p) => /* @__PURE__ */ r(
|
|
217
|
+
O,
|
|
206
218
|
{
|
|
207
219
|
title: e == null ? void 0 : e.title,
|
|
208
220
|
text: e == null ? void 0 : e.description,
|
|
@@ -211,17 +223,18 @@ const E = y.div`
|
|
|
211
223
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
212
224
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
213
225
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
214
|
-
timeToReadText:
|
|
226
|
+
timeToReadText: u,
|
|
215
227
|
tags: e == null ? void 0 : e.tags,
|
|
216
|
-
onCardClick: () =>
|
|
217
|
-
imageUrl:
|
|
228
|
+
onCardClick: (L, v) => s(e == null ? void 0 : e.titleSlug, v),
|
|
229
|
+
imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
230
|
+
metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
|
|
218
231
|
},
|
|
219
|
-
|
|
220
|
-
)) : l == null ? void 0 : l.slice(0,
|
|
221
|
-
|
|
232
|
+
p
|
|
233
|
+
)) : l == null ? void 0 : l.slice(0, g).map((e, p) => /* @__PURE__ */ r(
|
|
234
|
+
O,
|
|
222
235
|
{
|
|
223
236
|
title: e == null ? void 0 : e.title,
|
|
224
|
-
imageUrl:
|
|
237
|
+
imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
225
238
|
text: e == null ? void 0 : e.description,
|
|
226
239
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
227
240
|
tags: e == null ? void 0 : e.tags,
|
|
@@ -229,44 +242,45 @@ const E = y.div`
|
|
|
229
242
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
230
243
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
231
244
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
232
|
-
timeToReadText:
|
|
233
|
-
onCardClick: () =>
|
|
245
|
+
timeToReadText: u,
|
|
246
|
+
onCardClick: (L, v) => s(e == null ? void 0 : e.titleSlug, v),
|
|
247
|
+
metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
|
|
234
248
|
},
|
|
235
|
-
|
|
236
|
-
)) }), [l,
|
|
237
|
-
return /* @__PURE__ */ t(
|
|
249
|
+
p
|
|
250
|
+
)) }), [l, i, g, s]);
|
|
251
|
+
return /* @__PURE__ */ t(_, { ref: d, children: [
|
|
238
252
|
/* @__PURE__ */ t("div", { className: "regular-title", children: [
|
|
239
253
|
/* @__PURE__ */ t("div", { className: "regular-title-text", children: [
|
|
240
|
-
|
|
241
|
-
/* @__PURE__ */ r("span", { children:
|
|
254
|
+
N(n) && /* @__PURE__ */ r("i", { className: n }),
|
|
255
|
+
/* @__PURE__ */ r("span", { children: c })
|
|
242
256
|
] }),
|
|
243
|
-
|
|
244
|
-
|
|
257
|
+
N(b) && N(f) && /* @__PURE__ */ r(
|
|
258
|
+
G,
|
|
245
259
|
{
|
|
246
260
|
type: "button",
|
|
247
261
|
btnType: "tinted",
|
|
248
262
|
color: "neutral",
|
|
249
263
|
onClick: (e) => {
|
|
250
|
-
var
|
|
251
|
-
(
|
|
264
|
+
var p;
|
|
265
|
+
(p = e == null ? void 0 : e.target) == null || p.blur(), m(f);
|
|
252
266
|
},
|
|
253
267
|
borderRadius: "curved",
|
|
254
268
|
className: "button-link",
|
|
255
|
-
children:
|
|
269
|
+
children: b
|
|
256
270
|
}
|
|
257
271
|
)
|
|
258
272
|
] }),
|
|
259
|
-
/* @__PURE__ */ r(
|
|
260
|
-
|
|
273
|
+
/* @__PURE__ */ r(X, { limit: g, children: /* @__PURE__ */ r(
|
|
274
|
+
J,
|
|
261
275
|
{
|
|
262
|
-
isLoading:
|
|
263
|
-
limit:
|
|
276
|
+
isLoading: w,
|
|
277
|
+
limit: g,
|
|
264
278
|
keyPrefix: "explore-landing",
|
|
265
|
-
children:
|
|
279
|
+
children: k
|
|
266
280
|
}
|
|
267
281
|
) })
|
|
268
282
|
] });
|
|
269
283
|
});
|
|
270
284
|
export {
|
|
271
|
-
|
|
285
|
+
ae as default
|
|
272
286
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),f=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./index-BGTtoLxz.cjs"),L=require("./suspense-large-CFmcSzX-.cjs"),M=q.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${o=>`repeat(${o.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${C.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,m=a.memo(j.BlogCardLarge),B=a.forwardRef((o,g)=>{const{items:t,onSelectCard:s=()=>{},limit:i=2,isLoading:p=!1,getImage:c=()=>{},componentName:u}=o,d=f.useDetectMobile(),S=a.useMemo(()=>r.jsx(r.Fragment,{children:d===!0?t==null?void 0:t.map((e,l)=>r.jsx(m,{title:e==null?void 0:e.title,imageUrl:c(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(b,n)=>s(e==null?void 0:e.titleSlug,n),metadata:{name:u,accessor:e==null?void 0:e.accessor}},l)):t==null?void 0:t.slice(0,i).map((e,l)=>r.jsx(m,{title:e==null?void 0:e.title,imageUrl:c(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(b,n)=>s(e==null?void 0:e.titleSlug,n),metadata:{name:u,accessor:e==null?void 0:e.accessor}},l))}),[t,d,i,s]);return r.jsx(M,{ref:g,limit:i,children:r.jsx(L.SuspenseBlogLarge,{isLoading:p,limit:i,keyPrefix:"explore-landing",children:S})})});module.exports=B;
|
|
@@ -1,60 +1,63 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { B as
|
|
7
|
-
import { S as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as r, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { memo as C, forwardRef as b, useMemo as B } from "react";
|
|
3
|
+
import { s as M } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as L } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as h } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { B as T } from "./index-1Dm1i6WK.js";
|
|
7
|
+
import { S as U } from "./suspense-large-BMO7JH52.js";
|
|
8
|
+
const k = M.div`
|
|
9
9
|
display: grid;
|
|
10
|
-
grid-template-columns: ${(
|
|
10
|
+
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
|
|
13
|
-
@media (max-width: ${
|
|
13
|
+
@media (max-width: ${L + "px"}) {
|
|
14
14
|
grid-template-columns: repeat(1, 1fr);
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, c = C(T), _ = b((o, u) => {
|
|
17
17
|
const {
|
|
18
|
-
items:
|
|
19
|
-
onSelectCard:
|
|
18
|
+
items: t,
|
|
19
|
+
onSelectCard: a = () => {
|
|
20
20
|
},
|
|
21
21
|
limit: i = 2,
|
|
22
|
-
isLoading:
|
|
23
|
-
getImage:
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
isLoading: g = !1,
|
|
23
|
+
getImage: n = () => {
|
|
24
|
+
},
|
|
25
|
+
componentName: s
|
|
26
|
+
} = o, d = h(), p = B(() => /* @__PURE__ */ r(S, { children: d === !0 ? t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ r(
|
|
27
|
+
c,
|
|
27
28
|
{
|
|
28
|
-
title:
|
|
29
|
-
imageUrl:
|
|
30
|
-
text:
|
|
31
|
-
titleSlug:
|
|
32
|
-
buttonText:
|
|
33
|
-
onCardClick: () =>
|
|
29
|
+
title: e == null ? void 0 : e.title,
|
|
30
|
+
imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
31
|
+
text: e == null ? void 0 : e.description,
|
|
32
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
33
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
34
|
+
onCardClick: (f, m) => a(e == null ? void 0 : e.titleSlug, m),
|
|
35
|
+
metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
|
|
34
36
|
},
|
|
35
|
-
|
|
36
|
-
)) :
|
|
37
|
-
|
|
37
|
+
l
|
|
38
|
+
)) : t == null ? void 0 : t.slice(0, i).map((e, l) => /* @__PURE__ */ r(
|
|
39
|
+
c,
|
|
38
40
|
{
|
|
39
|
-
title:
|
|
40
|
-
imageUrl:
|
|
41
|
-
text:
|
|
42
|
-
titleSlug:
|
|
43
|
-
buttonText:
|
|
44
|
-
onCardClick: () =>
|
|
41
|
+
title: e == null ? void 0 : e.title,
|
|
42
|
+
imageUrl: n(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
43
|
+
text: e == null ? void 0 : e.description,
|
|
44
|
+
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
45
|
+
buttonText: e == null ? void 0 : e.buttonText,
|
|
46
|
+
onCardClick: (f, m) => a(e == null ? void 0 : e.titleSlug, m),
|
|
47
|
+
metadata: { name: s, accessor: e == null ? void 0 : e.accessor }
|
|
45
48
|
},
|
|
46
|
-
|
|
47
|
-
)) }), [
|
|
48
|
-
return /* @__PURE__ */ r(
|
|
49
|
-
|
|
49
|
+
l
|
|
50
|
+
)) }), [t, d, i, a]);
|
|
51
|
+
return /* @__PURE__ */ r(k, { ref: u, limit: i, children: /* @__PURE__ */ r(
|
|
52
|
+
U,
|
|
50
53
|
{
|
|
51
|
-
isLoading:
|
|
54
|
+
isLoading: g,
|
|
52
55
|
limit: i,
|
|
53
56
|
keyPrefix: "explore-landing",
|
|
54
|
-
children:
|
|
57
|
+
children: p
|
|
55
58
|
}
|
|
56
59
|
) });
|
|
57
60
|
});
|
|
58
61
|
export {
|
|
59
|
-
|
|
62
|
+
_ as default
|
|
60
63
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./utils-Dl9xPH4c.cjs"),k=require("./style-Db3VFbfP.cjs"),T=require("./Button.cjs"),$=require("./Link.cjs"),I=require("./index-BueKsXT8.cjs"),P=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,N=w.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
width: 100%;
|
|
31
31
|
max-height: 12.5625rem;
|
|
32
32
|
min-height: 12.5625rem;
|
|
33
|
-
background-color: ${
|
|
33
|
+
background-color: ${f.linearGradientAnimation("-90deg")};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
& .action {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
padding: 1rem;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@media (max-width: ${
|
|
59
|
+
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,C=w.styled.div`
|
|
62
62
|
padding: 1rem 1rem 0 1rem;
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
font-size: 0.875rem;
|
|
77
77
|
flex: 1;
|
|
78
78
|
color: var(--gray-700, #4e555f);
|
|
79
|
-
${
|
|
79
|
+
${f.truncateTextInRows(3)}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
`,_=c.forwardRef((t,d)=>{const{title:o,imageUrl:m,text:l,options:a,onCardClick:p,readMoreText:s="Read more",metadata:n}=t,g=c.useRef();return r.jsxs(N,{ref:g,name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.name,className:"blog-card",onClick:i=>p(i,g),children:[r.jsx(I.ProductImageWrapper,{src:m}),r.jsxs(C,{children:[r.jsx("div",{className:"text-wr-title",children:o}),r.jsx("div",{className:"text-wr",children:l})]}),a&&r.jsx("div",{className:"tags-wr",children:a==null?void 0:a.map((i,h)=>r.jsx(k.BlogTag,{color:i==null?void 0:i.color,children:i==null?void 0:i.name},h))}),r.jsx($,{className:"action",color:"gray",onClick:p,children:s})]})}),E=c.forwardRef(({},t)=>r.jsxs(N,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(C,{})]})),z=({limit:t=3,isLoading:d=!1,keyPrefix:o})=>r.jsx(r.Fragment,{children:Array.from({length:t},(m,l)=>r.jsx(E,{isLoading:d},`${o}-skeleton-product-card-${l}`))}),U=({children:t,fallbackComponent:d=r.jsx(r.Fragment,{}),isLoading:o=!1,limit:m,keyPrefix:l})=>r.jsx(c.Suspense,{fallbackComponent:d,children:o===!0?r.jsx(z,{isLoading:o,limit:m,keyPrefix:l}):t}),b=c.memo(_),W=c.forwardRef((t,d)=>{const{icon:o,title:m,onButtonAction:l=()=>{},onSelectCard:a=()=>{},buttonLink:p,items:s,buttonText:n,limit:g=3,isLoading:i=!1,getImage:h=()=>{},readMoreText:y="Read more",componentName:S}=t,R=M.useDetectMobile(),q=c.useMemo(()=>r.jsx(r.Fragment,{children:R===!0?s==null?void 0:s.map((e,u)=>r.jsx(b,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:y,options:e==null?void 0:e.options,onCardClick:(B,j)=>a(e==null?void 0:e.titleSlug,j),metadata:{name:S,accessor:e==null?void 0:e.accessor}},u)):s==null?void 0:s.slice(0,g).map((e,u)=>r.jsx(b,{title:e==null?void 0:e.title,imageUrl:h(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:y,options:e==null?void 0:e.options,onCardClick:(B,j)=>a(e==null?void 0:e.titleSlug,j),metadata:{name:S,accessor:e==null?void 0:e.accessor}},u))}),[s]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:d,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[f.isDefinedNotEmptyString(o)&&r.jsx("i",{className:o}),r.jsx("span",{children:m})]}),f.isDefinedNotEmptyString(p)&&r.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var u;(u=e==null?void 0:e.target)==null||u.blur(),l(p)},borderRadius:"curved",className:"button-link",children:n})]}),r.jsx(P,{limit:g,children:r.jsx(U,{isLoading:i,limit:g,keyPrefix:"explore-landing",children:q})})]})});module.exports=W;
|