@lanaco/lnc-react-ui 4.0.39 → 4.0.40
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/BannerSectionBasic.cjs +9 -9
- package/dist/BannerSectionBasic.js +20 -20
- package/dist/BannerSectionCarousel.cjs +13 -5
- package/dist/BannerSectionCarousel.js +29 -21
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +6 -6
- package/dist/BannerSectionSimple.cjs +4 -4
- package/dist/BannerSectionSimple.js +41 -38
- package/dist/BannerSectionWithList.cjs +4 -4
- package/dist/BannerSectionWithList.js +17 -17
- package/dist/BannerSectionWithListImage.cjs +5 -5
- package/dist/BannerSectionWithListImage.js +41 -38
- package/dist/BlogsSectionDetailed.cjs +10 -10
- package/dist/BlogsSectionDetailed.js +32 -33
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +20 -20
- package/dist/BlogsSectionSimpleCentered.cjs +6 -6
- package/dist/BlogsSectionSimpleCentered.js +9 -9
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +65 -64
- package/dist/BrandHitsSection.cjs +12 -7
- package/dist/BrandHitsSection.js +10 -5
- package/dist/CalorieCalculatorSection.cjs +7 -8
- package/dist/CalorieCalculatorSection.js +31 -32
- package/dist/CustomLoanMapSection.cjs +2 -2
- package/dist/CustomLoanMapSection.js +13 -13
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
- package/dist/GeneralWithTagsCardsSection.cjs +18 -6
- package/dist/GeneralWithTagsCardsSection.js +44 -31
- package/dist/GiftCardsSection.cjs +9 -5
- package/dist/GiftCardsSection.js +21 -17
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +21 -1
- package/dist/MasonryGeneralCardsSection.js +20 -0
- package/dist/OverlayGeneralCardsSection.cjs +52 -96
- package/dist/OverlayGeneralCardsSection.js +116 -165
- package/dist/ProductsWithBannerSection.cjs +5 -5
- package/dist/ProductsWithBannerSection.js +26 -26
- package/dist/SalesCampaignsSection.cjs +17 -17
- package/dist/SalesCampaignsSection.js +81 -81
- package/dist/ShopCardsSection.cjs +19 -9
- package/dist/ShopCardsSection.js +54 -40
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
- package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
- package/dist/index-Dn5tPLgP.cjs +95 -0
- package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
- package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
- package/package.json +1 -1
- package/dist/index-Q_i-aqsF.cjs +0 -95
|
@@ -4,7 +4,7 @@ import { n as k } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
|
4
4
|
import { M as C } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as P } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
6
|
import { m as b, t as T, k as y } from "./utils-DtRLzzTZ.js";
|
|
7
|
-
import { B as L, R as z } from "./style-
|
|
7
|
+
import { B as L, R as z } from "./style-CiePxaJ_.js";
|
|
8
8
|
import M from "./Button.js";
|
|
9
9
|
const R = k.div`
|
|
10
10
|
display: grid;
|
|
@@ -20,9 +20,9 @@ const R = k.div`
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
22
22
|
0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
23
|
-
background-color: var(--white);
|
|
23
|
+
background-color: var(--white, #fff);
|
|
24
24
|
border-radius: 0.75rem;
|
|
25
|
-
border: 1px solid var(--gray-95008);
|
|
25
|
+
border: 1px solid var(--gray-95008, #14161a14);
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
max-height: 21.5625rem;
|
|
28
28
|
min-height: 21.5625rem;
|
|
@@ -63,7 +63,7 @@ const R = k.div`
|
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
gap: 0;
|
|
65
65
|
color: var(--gray-950, #14161a);
|
|
66
|
-
border-top: 1px solid var(--gray-95008);
|
|
66
|
+
border-top: 1px solid var(--gray-95008, #14161a14);
|
|
67
67
|
|
|
68
68
|
& .text-wr-title {
|
|
69
69
|
font-weight: 600;
|
|
@@ -101,7 +101,7 @@ const R = k.div`
|
|
|
101
101
|
|
|
102
102
|
& .mng {
|
|
103
103
|
font-size: 0.875rem;
|
|
104
|
-
color: var(--gray-300);
|
|
104
|
+
color: var(--gray-300, #c4c8cf);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -116,27 +116,27 @@ const R = k.div`
|
|
|
116
116
|
align-items: center;
|
|
117
117
|
gap: 1rem;
|
|
118
118
|
}
|
|
119
|
-
`, j = v((i,
|
|
119
|
+
`, j = v((i, s) => {
|
|
120
120
|
const {
|
|
121
121
|
title: a,
|
|
122
|
-
image:
|
|
122
|
+
image: d,
|
|
123
123
|
text: l,
|
|
124
124
|
numberOfLikes: n,
|
|
125
125
|
numberOfComments: u,
|
|
126
126
|
readDuration: m,
|
|
127
|
-
datePublished:
|
|
128
|
-
tags:
|
|
127
|
+
datePublished: c,
|
|
128
|
+
tags: g,
|
|
129
129
|
onCardClick: f,
|
|
130
130
|
timeToReadText: p = "read"
|
|
131
131
|
} = i;
|
|
132
132
|
return (
|
|
133
133
|
// <BlogCardDetailedSkeleton />
|
|
134
|
-
/* @__PURE__ */ t(S, { className: "blog-card", onClick: f, children: [
|
|
135
|
-
/* @__PURE__ */ r("img", { src:
|
|
134
|
+
/* @__PURE__ */ t(S, { ref: s, className: "blog-card", onClick: f, children: [
|
|
135
|
+
/* @__PURE__ */ r("img", { src: d }),
|
|
136
136
|
/* @__PURE__ */ t($, { children: [
|
|
137
137
|
/* @__PURE__ */ t("div", { className: "info-wr", children: [
|
|
138
138
|
/* @__PURE__ */ t("div", { className: "info-wr-1", children: [
|
|
139
|
-
/* @__PURE__ */ r("span", { children:
|
|
139
|
+
/* @__PURE__ */ r("span", { children: c }),
|
|
140
140
|
/* @__PURE__ */ r("span", { className: "small-dot", children: "●" }),
|
|
141
141
|
m && p ? `${m} ${p}` : "N/A"
|
|
142
142
|
] }),
|
|
@@ -154,7 +154,7 @@ const R = k.div`
|
|
|
154
154
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: a }),
|
|
155
155
|
/* @__PURE__ */ r("div", { className: "text-wr", children: l })
|
|
156
156
|
] }),
|
|
157
|
-
/* @__PURE__ */ r("div", { className: "tags-wr", children:
|
|
157
|
+
/* @__PURE__ */ r("div", { className: "tags-wr", children: g == null ? void 0 : g.map((o, e) => /* @__PURE__ */ r(L, { color: o == null ? void 0 : o.color, children: o == null ? void 0 : o.name }, e)) })
|
|
158
158
|
] })
|
|
159
159
|
);
|
|
160
160
|
}), A = v(({}, i) => /* @__PURE__ */ t(S, { className: "blog-card", children: [
|
|
@@ -164,38 +164,37 @@ const R = k.div`
|
|
|
164
164
|
/* @__PURE__ */ r("div", { className: "skeleton-title" }),
|
|
165
165
|
/* @__PURE__ */ r("div", { className: "info-wr-skeleton" })
|
|
166
166
|
] })
|
|
167
|
-
] })), W = ({ limit: i = 3, isLoading:
|
|
167
|
+
] })), W = ({ limit: i = 3, isLoading: s = !1, keyPrefix: a }) => /* @__PURE__ */ r(w, { children: Array.from({ length: i }, (d, l) => /* @__PURE__ */ r(
|
|
168
168
|
A,
|
|
169
169
|
{
|
|
170
|
-
isLoading:
|
|
170
|
+
isLoading: s
|
|
171
171
|
},
|
|
172
172
|
`${a}-skeleton-product-card-${l}`
|
|
173
173
|
)) }), E = ({
|
|
174
174
|
children: i,
|
|
175
|
-
fallbackComponent:
|
|
175
|
+
fallbackComponent: s = /* @__PURE__ */ r(w, {}),
|
|
176
176
|
isLoading: a = !1,
|
|
177
|
-
limit:
|
|
177
|
+
limit: d,
|
|
178
178
|
keyPrefix: l
|
|
179
|
-
}) => /* @__PURE__ */ r(D, { fallbackComponent:
|
|
179
|
+
}) => /* @__PURE__ */ r(D, { fallbackComponent: s, children: a === !0 ? /* @__PURE__ */ r(
|
|
180
180
|
W,
|
|
181
181
|
{
|
|
182
182
|
isLoading: a,
|
|
183
|
-
limit:
|
|
183
|
+
limit: d,
|
|
184
184
|
keyPrefix: l
|
|
185
185
|
}
|
|
186
|
-
) : i }), N = O(j), J = v((i,
|
|
186
|
+
) : i }), N = O(j), J = v((i, s) => {
|
|
187
187
|
const {
|
|
188
188
|
icon: a,
|
|
189
|
-
title:
|
|
189
|
+
title: d,
|
|
190
190
|
onButtonAction: l,
|
|
191
191
|
items: n,
|
|
192
192
|
buttonText: u,
|
|
193
193
|
limit: m = 3,
|
|
194
|
-
onSelectCard:
|
|
194
|
+
onSelectCard: c = () => {
|
|
195
195
|
},
|
|
196
|
-
isLoading:
|
|
197
|
-
|
|
198
|
-
}
|
|
196
|
+
isLoading: g = !1,
|
|
197
|
+
buttonLink: f
|
|
199
198
|
} = i, p = P(), o = B(() => /* @__PURE__ */ r(w, { children: p === !0 ? n == null ? void 0 : n.map((e, h) => /* @__PURE__ */ r(
|
|
200
199
|
N,
|
|
201
200
|
{
|
|
@@ -208,7 +207,7 @@ const R = k.div`
|
|
|
208
207
|
datePublished: e == null ? void 0 : e.date,
|
|
209
208
|
readDuration: e == null ? void 0 : e.readDuration,
|
|
210
209
|
tags: e == null ? void 0 : e.tags,
|
|
211
|
-
onCardClick: () =>
|
|
210
|
+
onCardClick: () => c(e == null ? void 0 : e.uuid)
|
|
212
211
|
},
|
|
213
212
|
h
|
|
214
213
|
)) : n == null ? void 0 : n.slice(0, m).map((e, h) => /* @__PURE__ */ r(
|
|
@@ -223,23 +222,23 @@ const R = k.div`
|
|
|
223
222
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
224
223
|
datePublished: e == null ? void 0 : e.date,
|
|
225
224
|
readDuration: e == null ? void 0 : e.readDuration,
|
|
226
|
-
onCardClick: () =>
|
|
225
|
+
onCardClick: () => c(e == null ? void 0 : e.uuid)
|
|
227
226
|
},
|
|
228
227
|
h
|
|
229
|
-
)) }), [n]);
|
|
230
|
-
return /* @__PURE__ */ t(z, { children: [
|
|
228
|
+
)) }), [n, p, m, c]);
|
|
229
|
+
return /* @__PURE__ */ t(z, { ref: s, children: [
|
|
231
230
|
/* @__PURE__ */ t("div", { className: "regular-title", children: [
|
|
232
231
|
/* @__PURE__ */ t("div", { className: "regular-title-text", children: [
|
|
233
232
|
y(a) && /* @__PURE__ */ r("i", { className: a }),
|
|
234
|
-
/* @__PURE__ */ r("span", { children:
|
|
233
|
+
/* @__PURE__ */ r("span", { children: d })
|
|
235
234
|
] }),
|
|
236
|
-
y(
|
|
235
|
+
y(l) && /* @__PURE__ */ r(
|
|
237
236
|
M,
|
|
238
237
|
{
|
|
239
238
|
type: "button",
|
|
240
239
|
btnType: "tinted",
|
|
241
240
|
color: "gray",
|
|
242
|
-
onClick: () => l(
|
|
241
|
+
onClick: () => l(f),
|
|
243
242
|
borderRadius: "curved",
|
|
244
243
|
children: u
|
|
245
244
|
}
|
|
@@ -248,7 +247,7 @@ const R = k.div`
|
|
|
248
247
|
/* @__PURE__ */ r(R, { limit: m, children: /* @__PURE__ */ r(
|
|
249
248
|
E,
|
|
250
249
|
{
|
|
251
|
-
isLoading:
|
|
250
|
+
isLoading: g,
|
|
252
251
|
limit: m,
|
|
253
252
|
keyPrefix: "explore-landing",
|
|
254
253
|
children: o
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),s=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),h=require("./consts-CtNoHdBj.cjs"),b=require("./useDetectMobile-D6d5LpdL.cjs"),g=require("./utils-NZLCh-J5.cjs"),p=require("./Button.cjs"),x=u.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
99
99
|
padding: 0;
|
|
100
100
|
}
|
|
101
|
-
`,y=
|
|
101
|
+
`,y=s.forwardRef((i,a)=>{const{title:r,image:n,text:o,onCardClick:l,buttonText:m}=i,d=b.useDetectMobile();return t.jsxs(f,{className:"blog-card",onClick:l,children:[t.jsx("img",{src:n}),t.jsxs(j,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:o}),d!==!0&&t.jsx(p,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:l,children:m})]}),d===!0&&t.jsx(p,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:l,children:m})]})}),k=s.forwardRef(({},i)=>t.jsxs(f,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsx(j,{children:t.jsx("div",{className:"skeleton-title"})})]})),S=({limit:i=2,isLoading:a=!1,keyPrefix:r})=>t.jsx(t.Fragment,{children:Array.from({length:i},(n,o)=>t.jsx(k,{isLoading:a},`${r}-skeleton-product-card-${o}`))}),v=({children:i,fallbackComponent:a=t.jsx(t.Fragment,{}),isLoading:r=!1,limit:n,keyPrefix:o})=>t.jsx(s.Suspense,{fallbackComponent:a,children:r===!0?t.jsx(S,{isLoading:r,limit:n,keyPrefix:o}):i}),w=s.memo(y),C=s.forwardRef((i,a)=>{const{items:r,onSelectCard:n=()=>{},limit:o=2,isLoading:l=!1}=i,m=b.useDetectMobile(),d=s.useMemo(()=>t.jsx(t.Fragment,{children:m===!0?r==null?void 0:r.map((e,c)=>t.jsx(w,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>n(e)},c)):r==null?void 0:r.slice(0,o).map((e,c)=>t.jsx(w,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>n(e)},c))}),[r,m,o,n]);return t.jsx(x,{ref:a,limit:o,children:t.jsx(v,{isLoading:l,limit:o,keyPrefix:"explore-landing",children:d})})});module.exports=C;
|
|
@@ -188,8 +188,8 @@ const M = p.div`
|
|
|
188
188
|
onCardClick: () => a(e)
|
|
189
189
|
},
|
|
190
190
|
c
|
|
191
|
-
)) }), [r]);
|
|
192
|
-
return /* @__PURE__ */ t(M, { limit: o, children: /* @__PURE__ */ t(
|
|
191
|
+
)) }), [r, l, o, a]);
|
|
192
|
+
return /* @__PURE__ */ t(M, { ref: m, limit: o, children: /* @__PURE__ */ t(
|
|
193
193
|
L,
|
|
194
194
|
{
|
|
195
195
|
isLoading: n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),f=require("./consts-CtNoHdBj.cjs"),v=require("./useDetectMobile-D6d5LpdL.cjs"),m=require("./utils-NZLCh-J5.cjs"),k=require("./style-DN1qT8BE.cjs"),C=require("./Button.cjs"),N=require("./Link.cjs"),q=p.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
color: var(--gray-700, #4e555f);
|
|
69
69
|
${m.truncateTextInRows(3)}
|
|
70
70
|
}
|
|
71
|
-
`,R=
|
|
71
|
+
`,R=a.forwardRef(({},r)=>t.jsxs(j,{className:"product-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsx("div",{className:"card-title"}),t.jsx(w,{})]})),B=a.forwardRef((r,s)=>{const{title:i,image:l,text:o,onCardClick:c,readMoreText:d="Read more"}=r;return t.jsxs(j,{className:"blog-card",onClick:c,children:[t.jsx("img",{src:l}),t.jsxs(w,{children:[t.jsx("div",{className:"text-wr-title",children:i}),t.jsx("div",{className:"text-wr",children:o})]}),t.jsx(N,{className:"action",color:"gray",onClick:c,children:d})]})}),M=({limit:r=3,isLoading:s=!1,keyPrefix:i})=>t.jsx(t.Fragment,{children:Array.from({length:r},(l,o)=>t.jsx(R,{isLoading:s},`${i}-skeleton-product-card-${o}`))}),$=({children:r,fallbackComponent:s=t.jsx(t.Fragment,{}),isLoading:i=!1,limit:l,keyPrefix:o})=>t.jsx(a.Suspense,{fallbackComponent:s,children:i===!0?t.jsx(M,{isLoading:i,limit:l,keyPrefix:o}):r}),h=a.memo(B),_=a.forwardRef((r,s)=>{const{icon:i,title:l,onButtonAction:o=()=>{},onSelectCard:c=()=>{},buttonLink:d,items:n,buttonText:S,limit:u=3,isLoading:x=!1}=r,y=v.useDetectMobile(),b=a.useMemo(()=>t.jsx(t.Fragment,{children:y===!0?n==null?void 0:n.map((e,g)=>t.jsx(h,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,onCardClick:()=>c(e==null?void 0:e.uuid)},g)):n==null?void 0:n.slice(0,u).map((e,g)=>t.jsx(h,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,onCardClick:()=>c(e==null?void 0:e.uuid)},g))}),[n]);return t.jsxs(k.RegulatTitleSectionWrapper,{ref:s,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[m.isDefinedNotEmptyString(i)&&t.jsx("i",{className:i}),t.jsx("span",{children:l})]}),m.isDefinedNotEmptyString(d)&&t.jsx(C,{type:"button",btnType:"tinted",color:"gray",onClick:()=>o(d),borderRadius:"curved",children:S})]}),t.jsx(q,{limit:u,children:t.jsx($,{isLoading:x,limit:u,keyPrefix:"explore-landing",children:b})})]})});module.exports=_;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, Suspense as $, memo as B, useMemo as M } from "react";
|
|
3
3
|
import { n as h } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as b } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { u as R } from "./useDetectMobile-BC6EGaBc.js";
|
|
6
6
|
import { m as T, t as P, k as f } from "./utils-DtRLzzTZ.js";
|
|
7
|
-
import { R as z } from "./style-
|
|
7
|
+
import { R as z } from "./style-CiePxaJ_.js";
|
|
8
8
|
import W from "./Button.js";
|
|
9
9
|
import j from "./Link.js";
|
|
10
10
|
const A = h.div`
|
|
@@ -79,47 +79,47 @@ const A = h.div`
|
|
|
79
79
|
}
|
|
80
80
|
`, E = u(({}, t) => (
|
|
81
81
|
// <LandingPageClearProductCardSkeleton />
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ m(w, { className: "product-card", children: [
|
|
83
83
|
/* @__PURE__ */ r("div", { className: "skeleton-img" }),
|
|
84
84
|
/* @__PURE__ */ r("div", { className: "card-title" }),
|
|
85
85
|
/* @__PURE__ */ r(S, {})
|
|
86
86
|
] })
|
|
87
|
-
)), I = u((t,
|
|
88
|
-
const { title: i, image:
|
|
87
|
+
)), I = u((t, l) => {
|
|
88
|
+
const { title: i, image: n, text: o, onCardClick: d, readMoreText: c = "Read more" } = t;
|
|
89
89
|
return (
|
|
90
90
|
// <SimpleBlogCardSkeleton />
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */ r("img", { src:
|
|
93
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ m(w, { className: "blog-card", onClick: d, children: [
|
|
92
|
+
/* @__PURE__ */ r("img", { src: n }),
|
|
93
|
+
/* @__PURE__ */ m(S, { children: [
|
|
94
94
|
/* @__PURE__ */ r("div", { className: "text-wr-title", children: i }),
|
|
95
95
|
/* @__PURE__ */ r("div", { className: "text-wr", children: o })
|
|
96
96
|
] }),
|
|
97
97
|
/* @__PURE__ */ r(j, { className: "action", color: "gray", onClick: d, children: c })
|
|
98
98
|
] })
|
|
99
99
|
);
|
|
100
|
-
}), L = ({ limit: t = 3, isLoading:
|
|
100
|
+
}), L = ({ limit: t = 3, isLoading: l = !1, keyPrefix: i }) => /* @__PURE__ */ r(g, { children: Array.from({ length: t }, (n, o) => /* @__PURE__ */ r(
|
|
101
101
|
E,
|
|
102
102
|
{
|
|
103
|
-
isLoading:
|
|
103
|
+
isLoading: l
|
|
104
104
|
},
|
|
105
105
|
`${i}-skeleton-product-card-${o}`
|
|
106
106
|
)) }), _ = ({
|
|
107
107
|
children: t,
|
|
108
|
-
fallbackComponent:
|
|
108
|
+
fallbackComponent: l = /* @__PURE__ */ r(g, {}),
|
|
109
109
|
isLoading: i = !1,
|
|
110
|
-
limit:
|
|
110
|
+
limit: n,
|
|
111
111
|
keyPrefix: o
|
|
112
|
-
}) => /* @__PURE__ */ r($, { fallbackComponent:
|
|
112
|
+
}) => /* @__PURE__ */ r($, { fallbackComponent: l, children: i === !0 ? /* @__PURE__ */ r(
|
|
113
113
|
L,
|
|
114
114
|
{
|
|
115
115
|
isLoading: i,
|
|
116
|
-
limit:
|
|
116
|
+
limit: n,
|
|
117
117
|
keyPrefix: o
|
|
118
118
|
}
|
|
119
|
-
) : t }), v = B(I), K = u((t,
|
|
119
|
+
) : t }), v = B(I), K = u((t, l) => {
|
|
120
120
|
const {
|
|
121
121
|
icon: i,
|
|
122
|
-
title:
|
|
122
|
+
title: n,
|
|
123
123
|
onButtonAction: o = () => {
|
|
124
124
|
},
|
|
125
125
|
onSelectCard: d = () => {
|
|
@@ -150,11 +150,11 @@ const A = h.div`
|
|
|
150
150
|
},
|
|
151
151
|
p
|
|
152
152
|
)) }), [a]);
|
|
153
|
-
return /* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
153
|
+
return /* @__PURE__ */ m(z, { ref: l, children: [
|
|
154
|
+
/* @__PURE__ */ m("div", { className: "regular-title", children: [
|
|
155
|
+
/* @__PURE__ */ m("div", { className: "regular-title-text", children: [
|
|
156
156
|
f(i) && /* @__PURE__ */ r("i", { className: i }),
|
|
157
|
-
/* @__PURE__ */ r("span", { children:
|
|
157
|
+
/* @__PURE__ */ r("span", { children: n })
|
|
158
158
|
] }),
|
|
159
159
|
f(c) && /* @__PURE__ */ r(
|
|
160
160
|
W,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),h=require("./consts-CtNoHdBj.cjs"),b=require("./useDetectMobile-D6d5LpdL.cjs"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),u=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),h=require("./consts-CtNoHdBj.cjs"),b=require("./useDetectMobile-D6d5LpdL.cjs"),m=require("./utils-NZLCh-J5.cjs"),j=require("./Button.cjs"),S=u.newStyled.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
7
|
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
grid-template-columns: repeat(1, 1fr);
|
|
9
9
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
min-height: 6rem;
|
|
45
45
|
max-height: 6rem;
|
|
46
46
|
border-radius: 0.75rem;
|
|
47
|
-
background-color: ${
|
|
47
|
+
background-color: ${m.linearGradientAnimation("-90deg")};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
& .skeleton-title {
|
|
66
66
|
height: 1.75rem;
|
|
67
67
|
width: 80%;
|
|
68
|
-
background-color: ${
|
|
68
|
+
background-color: ${m.linearGradientAnimation("-90deg")};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
& .text-wr {
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
font-size: 0.875rem;
|
|
74
74
|
flex: 1;
|
|
75
75
|
color: var(--gray-700, #4e555f);
|
|
76
|
-
${
|
|
76
|
+
${m.truncateTextInRows(3)}
|
|
77
77
|
}
|
|
78
|
-
`,C=a.forwardRef((i,l)=>{const{onCardClick:r}=i;return t.jsxs(p,{className:"product-card",onClick:r,children:[t.jsx("div",{"skeleton-img":!0}),t.jsx(f,{children:t.jsx("div",{className:"skeleton-title"})})]})}),k=a.forwardRef((i,l)=>{const{title:r,image:n,text:o,buttonText:
|
|
78
|
+
`,C=a.forwardRef((i,l)=>{const{onCardClick:r}=i;return t.jsxs(p,{className:"product-card",onClick:r,children:[t.jsx("div",{"skeleton-img":!0}),t.jsx(f,{children:t.jsx("div",{className:"skeleton-title"})})]})}),k=a.forwardRef((i,l)=>{const{title:r,image:n,text:o,buttonText:s,onCardClick:d}=i;return t.jsxs(p,{className:"blog-card",onClick:d,children:[t.jsx("img",{src:n}),t.jsxs(f,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:o})]}),t.jsx(j,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:d,size:"medium",children:s})]})}),y=({limit:i=3,isLoading:l=!1,keyPrefix:r})=>t.jsx(t.Fragment,{children:Array.from({length:i},(n,o)=>t.jsx(C,{isLoading:l},`${r}-skeleton-product-card-${o}`))}),v=({children:i,fallbackComponent:l=t.jsx(t.Fragment,{}),isLoading:r=!1,limit:n,keyPrefix:o})=>t.jsx(a.Suspense,{fallbackComponent:l,children:r===!0?t.jsx(y,{isLoading:r,limit:n,keyPrefix:o}):i}),g=a.memo(k),x=a.forwardRef((i,l)=>{const{items:r,limit:n=3,onSelectCard:o=()=>{},isLoading:s=!1}=i,d=b.useDetectMobile(),w=a.useMemo(()=>t.jsx(t.Fragment,{children:d===!0?r==null?void 0:r.map((e,c)=>t.jsx(g,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>o(e==null?void 0:e.uuid)},c)):r==null?void 0:r.slice(0,n).map((e,c)=>t.jsx(g,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>o(e==null?void 0:e.uuid)},c))}),[r,d,n,o]);return t.jsx(S,{ref:l,limit:n,children:t.jsx(v,{isLoading:s,limit:n,keyPrefix:"explore-landing",children:w})})});module.exports=x;
|
|
@@ -10,11 +10,11 @@ const B = g.div`
|
|
|
10
10
|
grid-template-columns: ${(i) => `repeat(${i.limit}, minmax(0, 1fr))`};
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
margin: auto;
|
|
13
|
-
|
|
13
|
+
width: fit-content;
|
|
14
14
|
@media (max-width: ${h + "px"}) {
|
|
15
15
|
grid-template-columns: repeat(1, 1fr);
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`, w = g.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
width: 100%;
|
|
@@ -57,7 +57,7 @@ const B = g.div`
|
|
|
57
57
|
@media (max-width: ${h + "px"}) {
|
|
58
58
|
max-width: unset;
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`, b = g.div`
|
|
61
61
|
text-align: center;
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
@@ -86,18 +86,18 @@ const B = g.div`
|
|
|
86
86
|
const { onCardClick: r } = i;
|
|
87
87
|
return (
|
|
88
88
|
// <SimpleBlogCardSkeleton />
|
|
89
|
-
/* @__PURE__ */ c(
|
|
89
|
+
/* @__PURE__ */ c(w, { className: "product-card", onClick: r, children: [
|
|
90
90
|
/* @__PURE__ */ t("div", { "skeleton-img": !0 }),
|
|
91
|
-
/* @__PURE__ */ t(
|
|
91
|
+
/* @__PURE__ */ t(b, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
|
|
92
92
|
] })
|
|
93
93
|
);
|
|
94
94
|
}), z = u((i, a) => {
|
|
95
95
|
const { title: r, image: o, text: n, buttonText: m, onCardClick: l } = i;
|
|
96
96
|
return (
|
|
97
97
|
// <SimpleBlogCardCenteredSkeleton />
|
|
98
|
-
/* @__PURE__ */ c(
|
|
98
|
+
/* @__PURE__ */ c(w, { className: "blog-card", onClick: l, children: [
|
|
99
99
|
/* @__PURE__ */ t("img", { src: o }),
|
|
100
|
-
/* @__PURE__ */ c(
|
|
100
|
+
/* @__PURE__ */ c(b, { children: [
|
|
101
101
|
/* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
|
|
102
102
|
/* @__PURE__ */ t("div", { className: "text-wr", children: n })
|
|
103
103
|
] }),
|
|
@@ -163,8 +163,8 @@ const B = g.div`
|
|
|
163
163
|
onCardClick: () => n(e == null ? void 0 : e.uuid)
|
|
164
164
|
},
|
|
165
165
|
d
|
|
166
|
-
)) }), [r]);
|
|
167
|
-
return /* @__PURE__ */ t(B, { limit: o, children: /* @__PURE__ */ t(
|
|
166
|
+
)) }), [r, l, o, n]);
|
|
167
|
+
return /* @__PURE__ */ t(B, { ref: a, limit: o, children: /* @__PURE__ */ t(
|
|
168
168
|
P,
|
|
169
169
|
{
|
|
170
170
|
isLoading: m,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),C=require("./useDetectMobile-D6d5LpdL.cjs"),a=require("./utils-NZLCh-J5.cjs"),N=require("./style-DN1qT8BE.cjs"),q=require("./Button.cjs"),T=require("./Link.cjs"),$=require("./index-Dn5tPLgP.cjs"),B=h.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,x=h.newStyled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
width: 100%;
|
|
12
12
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
min-height: 3.3125rem;
|
|
36
36
|
max-height: 3.3125rem;
|
|
37
37
|
border-radius: 0.75rem;
|
|
38
|
-
background-color: ${
|
|
38
|
+
background-color: ${a.linearGradientAnimation("-90deg")};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
& a {
|
|
42
42
|
margin-top: auto;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@media (max-width: ${
|
|
45
|
+
@media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,S=h.newStyled.div`
|
|
48
48
|
display: flex;
|
|
49
49
|
flex-direction: column;
|
|
50
50
|
gap: 0.5rem;
|
|
@@ -58,19 +58,19 @@
|
|
|
58
58
|
& .skeleton-title {
|
|
59
59
|
height: 1.5rem;
|
|
60
60
|
width: 80%;
|
|
61
|
-
background-color: ${
|
|
61
|
+
background-color: ${a.linearGradientAnimation("-90deg")};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& .skeleton-action {
|
|
65
65
|
height: 1.25rem;
|
|
66
66
|
width: 20%;
|
|
67
|
-
background-color: ${
|
|
67
|
+
background-color: ${a.linearGradientAnimation("-90deg")};
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
& .text-wr {
|
|
71
71
|
font-weight: 400;
|
|
72
72
|
font-size: 0.875rem;
|
|
73
73
|
color: var(--gray-700, #4e555f);
|
|
74
|
-
${
|
|
74
|
+
${a.truncateTextInRows(3)}
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,M=c.forwardRef(({},i)=>t.jsxs(x,{className:"blog-card",children:[t.jsxs(S,{children:[t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"text-wr"}),t.jsx("div",{className:"skeleton-action"})]}),t.jsx("div",{className:"skeleton-img"})]})),R=c.forwardRef((i,s)=>{const{title:n,image:l,text:r,buttonText:m,onCardClick:o}=i;return t.jsxs(x,{className:"blog-card",onClick:o,children:[t.jsxs(S,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:r}),t.jsx(T,{color:"gray",onClick:o,children:m})]}),t.jsx("img",{src:l})]})}),W=({limit:i=3,isLoading:s=!1,keyPrefix:n})=>t.jsx(t.Fragment,{children:Array.from({length:i},(l,r)=>t.jsx(M,{isLoading:s},`${n}-skeleton-product-card-${r}`))}),_=({children:i,fallbackComponent:s=t.jsx(t.Fragment,{}),isLoading:n=!1,limit:l,keyPrefix:r})=>t.jsx(c.Suspense,{fallbackComponent:s,children:n===!0?t.jsx(W,{isLoading:n,limit:l,keyPrefix:r}):i}),f=c.memo(R),z=c.forwardRef((i,s)=>{const{icon:n,title:l,items:r,buttonText:m,limit:o=3,options:d,onButtonAction:p=()=>{},buttonLink:k,onSelectOption:j=()=>{},isLoading:y=!1,onSelectCard:g=()=>{}}=i,b=C.useDetectMobile(),v=c.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?r==null?void 0:r.map((e,u)=>t.jsx(f,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>g(e)},u)):r==null?void 0:r.slice(0,o).map((e,u)=>t.jsx(f,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>g(e)},u))}),[r,b,o,g]);return t.jsxs(N.TitleWithOptionsSectionWrapper,{ref:s,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(n)&&t.jsx("i",{className:n}),t.jsx("span",{children:l})]}),a.isDefinedNotEmptyString(p)&&t.jsx(q,{type:"button",btnType:"tinted",color:"gray",onClick:()=>p(k),borderRadius:"curved",children:m})]}),(d==null?void 0:d.length)>0&&t.jsx($.SelectBar,{items:d,onRemove:e=>{j(e)},onSelect:e=>{j(e)},labelKey:"name",valueKey:"code",noMargin:!0}),t.jsx(B,{limit:o,children:t.jsx(_,{isLoading:y,limit:o,keyPrefix:"explore-landing",children:v})})]})});module.exports=z;
|