@lanaco/lnc-react-ui 4.0.185 → 4.0.188
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 +4 -4
- package/dist/BannerSectionCarousel.js +150 -158
- package/dist/BlogCardsSponsoredSection.cjs +5 -5
- package/dist/BlogCardsSponsoredSection.js +55 -51
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +1 -1
- package/dist/BlogExploreSection.cjs +5 -5
- package/dist/BlogExploreSection.js +182 -215
- package/dist/BlogListSection.cjs +6 -6
- package/dist/BlogListSection.js +134 -116
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +26 -24
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +3 -3
- package/dist/BlogSingleSection.js +21 -19
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +81 -76
- package/dist/BlogsSectionLarge.cjs +6 -6
- package/dist/BlogsSectionLarge.js +34 -31
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +68 -63
- package/dist/BlogsSectionSimpleCentered.cjs +9 -9
- package/dist/BlogsSectionSimpleCentered.js +67 -54
- package/dist/BlogsSectionWithFilters.cjs +9 -9
- package/dist/BlogsSectionWithFilters.js +98 -84
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +50 -32
- package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
- package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
- package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
- package/dist/DetailedProductsInfinitiveSection.js +23 -21
- package/dist/DetailedProductsSection.cjs +3 -3
- package/dist/DetailedProductsSection.js +38 -35
- package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
- package/dist/FieldOfInterestsMasonrySection.js +87 -83
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
- package/dist/GeneralWithTagsCardsSection.cjs +4 -4
- package/dist/GeneralWithTagsCardsSection.js +83 -46
- package/dist/GiftCardsSection.cjs +7 -7
- package/dist/GiftCardsSection.js +56 -47
- package/dist/MasonryGeneralCardsSection.cjs +16 -15
- package/dist/MasonryGeneralCardsSection.js +83 -68
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +58 -50
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +79 -70
- package/dist/QuattroCardsSection.cjs +8 -8
- package/dist/QuattroCardsSection.js +62 -40
- package/dist/ReviewsSection.cjs +8 -8
- package/dist/ReviewsSection.js +92 -67
- package/dist/SalesCampaignsSection.cjs +18 -18
- package/dist/SalesCampaignsSection.js +304 -298
- package/dist/ShopCardsSection.cjs +3 -3
- package/dist/ShopCardsSection.js +25 -23
- package/dist/SimpleCategoriesSection.cjs +4 -4
- package/dist/SimpleCategoriesSection.js +25 -22
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +53 -50
- package/dist/UrgentSaleProductsSection.cjs +4 -4
- package/dist/UrgentSaleProductsSection.js +41 -38
- package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
- package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
- package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
- package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
- package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
- package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
- package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
- package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { s as
|
|
5
|
-
import { M as
|
|
6
|
-
import { S as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import u from "./Button.js";
|
|
4
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { M as _ } from "./consts-BuFChS64.js";
|
|
6
|
+
import { S as x } from "./index-BovNbKxB.js";
|
|
7
|
+
const p = h.a`
|
|
8
8
|
text-decoration: none;
|
|
9
9
|
color: var(--gray-950);
|
|
10
10
|
display: flex;
|
|
@@ -68,7 +68,7 @@ const x = g.a`
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
@media (max-width: ${
|
|
71
|
+
@media (max-width: ${_ + "px"}) {
|
|
72
72
|
padding: 2rem;
|
|
73
73
|
min-height: 17.5rem;
|
|
74
74
|
width: 100%;
|
|
@@ -91,37 +91,43 @@ const x = g.a`
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`, v = g(
|
|
95
95
|
({
|
|
96
96
|
title: r,
|
|
97
|
-
description:
|
|
98
|
-
buttonText:
|
|
99
|
-
imageUrl:
|
|
100
|
-
backgroundColor:
|
|
101
|
-
handleSelectCard:
|
|
97
|
+
description: n,
|
|
98
|
+
buttonText: a,
|
|
99
|
+
imageUrl: l,
|
|
100
|
+
backgroundColor: s = "none",
|
|
101
|
+
handleSelectCard: c = () => {
|
|
102
102
|
},
|
|
103
|
-
handleButtonAction:
|
|
103
|
+
handleButtonAction: d = () => {
|
|
104
104
|
},
|
|
105
|
-
selectAction:
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
selectAction: e,
|
|
106
|
+
LinkComponent: i
|
|
107
|
+
}, m) => /* @__PURE__ */ f(
|
|
108
|
+
p,
|
|
108
109
|
{
|
|
109
|
-
ref:
|
|
110
|
-
backgroundImage:
|
|
111
|
-
backgroundColor:
|
|
112
|
-
onClick:
|
|
113
|
-
|
|
110
|
+
ref: m,
|
|
111
|
+
backgroundImage: l,
|
|
112
|
+
backgroundColor: s,
|
|
113
|
+
onClick: c,
|
|
114
|
+
as: i || "a",
|
|
115
|
+
...i ? {
|
|
116
|
+
to: `/${e}`
|
|
117
|
+
} : {
|
|
118
|
+
href: `/${e}`
|
|
119
|
+
},
|
|
114
120
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
r && /* @__PURE__ */
|
|
117
|
-
|
|
121
|
+
/* @__PURE__ */ f("div", { className: "section__text", children: [
|
|
122
|
+
r && /* @__PURE__ */ o("div", { className: "section__title", children: r }),
|
|
123
|
+
n && /* @__PURE__ */ o("div", { className: "section__description", children: n })
|
|
118
124
|
] }),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
|
|
125
|
+
/* @__PURE__ */ o(
|
|
126
|
+
u,
|
|
121
127
|
{
|
|
122
|
-
text:
|
|
128
|
+
text: a,
|
|
123
129
|
onClick: (t) => {
|
|
124
|
-
t == null || t.preventDefault(), t == null || t.stopPropagation(),
|
|
130
|
+
t == null || t.preventDefault(), t == null || t.stopPropagation(), d();
|
|
125
131
|
},
|
|
126
132
|
borderRadius: "regular",
|
|
127
133
|
color: "gray",
|
|
@@ -131,7 +137,7 @@ const x = g.a`
|
|
|
131
137
|
]
|
|
132
138
|
}
|
|
133
139
|
)
|
|
134
|
-
),
|
|
140
|
+
), y = h.div`
|
|
135
141
|
display: flex;
|
|
136
142
|
flex-direction: column;
|
|
137
143
|
align-items: flex-start;
|
|
@@ -170,7 +176,7 @@ const x = g.a`
|
|
|
170
176
|
}
|
|
171
177
|
}
|
|
172
178
|
|
|
173
|
-
@media (max-width: ${
|
|
179
|
+
@media (max-width: ${_ + "px"}) {
|
|
174
180
|
& .section__title {
|
|
175
181
|
font-size: 1.375rem;
|
|
176
182
|
line-height: 1.75rem;
|
|
@@ -180,40 +186,42 @@ const x = g.a`
|
|
|
180
186
|
flex-direction: column;
|
|
181
187
|
}
|
|
182
188
|
}
|
|
183
|
-
`,
|
|
189
|
+
`, S = g(
|
|
184
190
|
({
|
|
185
191
|
title: r,
|
|
186
|
-
items:
|
|
187
|
-
isLoading:
|
|
188
|
-
onSelectCard:
|
|
192
|
+
items: n,
|
|
193
|
+
isLoading: a = !1,
|
|
194
|
+
onSelectCard: l = () => {
|
|
189
195
|
},
|
|
190
|
-
onButtonAction:
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
196
|
+
onButtonAction: s = () => {
|
|
197
|
+
},
|
|
198
|
+
LinkComponent: c
|
|
199
|
+
}, d) => /* @__PURE__ */ f(y, { ref: d, children: [
|
|
200
|
+
/* @__PURE__ */ o("div", { className: "section__title", children: r }),
|
|
201
|
+
/* @__PURE__ */ o(
|
|
202
|
+
x,
|
|
196
203
|
{
|
|
197
|
-
isLoading:
|
|
204
|
+
isLoading: a,
|
|
198
205
|
keyPrefix: "overlay-general-cards-skeleton",
|
|
199
|
-
children: /* @__PURE__ */
|
|
200
|
-
|
|
206
|
+
children: /* @__PURE__ */ o("div", { className: "section__items", children: n == null ? void 0 : n.map((e, i) => /* @__PURE__ */ o(
|
|
207
|
+
v,
|
|
201
208
|
{
|
|
202
209
|
title: e == null ? void 0 : e.title,
|
|
203
210
|
description: e == null ? void 0 : e.description,
|
|
204
211
|
imageUrl: e == null ? void 0 : e.imageUrl,
|
|
205
212
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
206
213
|
backgroundColor: e == null ? void 0 : e.backgroundColor,
|
|
207
|
-
handleSelectCard: () =>
|
|
208
|
-
handleButtonAction: () =>
|
|
209
|
-
selectAction: e == null ? void 0 : e.selectAction
|
|
214
|
+
handleSelectCard: () => l(e),
|
|
215
|
+
handleButtonAction: () => s(e),
|
|
216
|
+
selectAction: e == null ? void 0 : e.selectAction,
|
|
217
|
+
LinkComponent: c
|
|
210
218
|
},
|
|
211
|
-
`overlay-general-card__${
|
|
219
|
+
`overlay-general-card__${i + 1}`
|
|
212
220
|
)) })
|
|
213
221
|
}
|
|
214
222
|
)
|
|
215
223
|
] })
|
|
216
224
|
);
|
|
217
225
|
export {
|
|
218
|
-
|
|
226
|
+
S as default
|
|
219
227
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./style-CkcozOY6.cjs"),c=require("./utils-RnrgDDZP.cjs"),L=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),W=g.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 22.5rem;
|
|
4
4
|
min-height: 22.5rem;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
object-fit: cover;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@media (max-width: ${
|
|
19
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
20
20
|
height: 100%;
|
|
21
21
|
min-height: 100%;
|
|
22
22
|
max-height: 100%;
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,C=g.styled.div`
|
|
35
35
|
display: grid;
|
|
36
36
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
37
37
|
gap: 1.25rem;
|
|
38
38
|
|
|
39
|
-
@media (max-width: ${
|
|
39
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
40
40
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
`,$=g.styled.a`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
gap: 0.5rem;
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
& .card-title {
|
|
58
58
|
font-size: 0.875rem;
|
|
59
59
|
font-weight: 600;
|
|
60
|
-
${
|
|
60
|
+
${c.truncateTextInRows(2)}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@media (max-width: ${
|
|
63
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
64
64
|
& img {
|
|
65
65
|
width: 8.875rem;
|
|
66
66
|
height: 8.875rem;
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
object-fit: cover;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
@media (max-width: ${
|
|
74
|
+
`,_=d.forwardRef((t,l)=>{const{uuid:s,title:n,image:m,sellerUuid:R,onSelectCard:j=()=>{},imageComponent:u,metadata:o,nameSlug:a,LinkComponent:h}=t,p=h||"a",k=d.useRef(null);return e.jsxs($,{ref:k,className:"product-card",name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.accessor,onClick:r=>j(r,l),as:p,...h?{to:`/product/${c.isDefinedNotEmptyString(a)?`${a}-`:""}${s}`}:{href:`/product/${c.isDefinedNotEmptyString(a)?`${a}-`:""}${s}`},children:[c.isDefined(u)?u:e.jsx(L.ProductImageWrapper,{src:m}),e.jsx("div",{className:"card-title",children:n})]})}),q=g.styled(i.SkeletonColumnWrapper)`
|
|
75
|
+
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
76
76
|
& .skeleton__banner {
|
|
77
77
|
height: 100%;
|
|
78
78
|
aspect-ratio: 1 / 1;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,y=({keyPrefix:t})=>e.jsxs(q,{children:[e.jsx(i.SkeletonLinePlaceholder,{height:"22.5rem",className:"skeleton__banner"}),e.jsxs(i.SkeletonRowWrapper,{children:[e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${t}-1`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-2`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-3`),e.jsxs(i.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(i.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(i.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(i.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${t}-4`)]})]}),v=({keyPrefix:t,isLoading:l=!1,fallbackComponent:s=e.jsx(e.Fragment,{}),children:n})=>e.jsx(d.Suspense,{fallbackComponent:s,children:l===!0?e.jsx(y,{keyPrefix:t}):n}),P=d.memo(_),E=d.forwardRef((t,l)=>{const{icon:s,items:n,limit:m=4,imageUrl:R,title:j="Season inspiration",isLoading:u=!1,getImage:o=()=>{},componentName:a,LinkComponent:h}=t,p=w.useDetectMobile(),k=d.useMemo(()=>e.jsx(e.Fragment,{children:p===!0?n==null?void 0:n.map((r,b)=>e.jsx(P,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:a,accessor:r==null?void 0:r.accessor},LinkComponent:h},b)):n==null?void 0:n.slice(0,m).map((r,b)=>e.jsx(P,{title:r==null?void 0:r.name,sellerUuid:r==null?void 0:r.sellerUuid,uuid:r==null?void 0:r.uuid,nameSlug:r==null?void 0:r.nameSlug,image:o(r==null?void 0:r.image,r==null?void 0:r.uuid,r==null?void 0:r.sellerUuid)||null,metadata:{name:a,accessor:r==null?void 0:r.accessor},LinkComponent:h},b))}),[n,p,m]);return e.jsxs(f.RegulatTitleSectionWrapper,{ref:l,children:[e.jsx("div",{className:"regular-title",children:e.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(s)&&e.jsx("i",{className:s}),e.jsx("span",{children:j})]})}),e.jsxs(v,{isLoading:u,keyPrefix:"products-with-banner-skeleton",children:[e.jsx(W,{className:"products-banner",children:e.jsx("img",{src:R})}),e.jsx(C,{limit:m,children:k})]})]})});module.exports=E;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as W, useRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import { u as
|
|
6
|
-
import { R as
|
|
7
|
-
import { o as
|
|
8
|
-
import { P as
|
|
9
|
-
import { S as
|
|
10
|
-
const y =
|
|
2
|
+
import { forwardRef as W, useRef as N, Suspense as U, memo as G, useMemo as M } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as R } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as _ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { R as j } from "./style-C7FUSHmS.js";
|
|
7
|
+
import { o as B, l as I, k as C } from "./utils-Dc5zIpaz.js";
|
|
8
|
+
import { P as L } from "./index-C_NnINik.js";
|
|
9
|
+
import { S as s, b as i, a as u, c as b } from "./style-CXMUA6cI.js";
|
|
10
|
+
const y = f.div`
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 22.5rem;
|
|
13
13
|
min-height: 22.5rem;
|
|
@@ -25,7 +25,7 @@ const y = b.div`
|
|
|
25
25
|
object-fit: cover;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media (max-width: ${
|
|
28
|
+
@media (max-width: ${R + "px"}) {
|
|
29
29
|
height: 100%;
|
|
30
30
|
min-height: 100%;
|
|
31
31
|
max-height: 100%;
|
|
@@ -40,15 +40,15 @@ const y = b.div`
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
`, z =
|
|
43
|
+
`, z = f.div`
|
|
44
44
|
display: grid;
|
|
45
45
|
grid-template-columns: ${(a) => `repeat(${a.limit}, minmax(0, 1fr))`};
|
|
46
46
|
gap: 1.25rem;
|
|
47
47
|
|
|
48
|
-
@media (max-width: ${
|
|
48
|
+
@media (max-width: ${R + "px"}) {
|
|
49
49
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
50
50
|
}
|
|
51
|
-
`, D =
|
|
51
|
+
`, D = f.a`
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
gap: 0.5rem;
|
|
@@ -66,10 +66,10 @@ const y = b.div`
|
|
|
66
66
|
& .card-title {
|
|
67
67
|
font-size: 0.875rem;
|
|
68
68
|
font-weight: 600;
|
|
69
|
-
${
|
|
69
|
+
${B(2)}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
@media (max-width: ${
|
|
72
|
+
@media (max-width: ${R + "px"}) {
|
|
73
73
|
& img {
|
|
74
74
|
width: 8.875rem;
|
|
75
75
|
height: 8.875rem;
|
|
@@ -80,67 +80,73 @@ const y = b.div`
|
|
|
80
80
|
object-fit: cover;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
`, E = W((a,
|
|
83
|
+
`, E = W((a, h) => {
|
|
84
84
|
const {
|
|
85
|
-
uuid:
|
|
85
|
+
uuid: o,
|
|
86
86
|
title: d,
|
|
87
|
-
image:
|
|
88
|
-
sellerUuid:
|
|
89
|
-
onSelectCard:
|
|
87
|
+
image: c,
|
|
88
|
+
sellerUuid: k,
|
|
89
|
+
onSelectCard: w = () => {
|
|
90
90
|
},
|
|
91
|
-
imageComponent:
|
|
91
|
+
imageComponent: g,
|
|
92
92
|
metadata: m,
|
|
93
|
-
nameSlug:
|
|
94
|
-
|
|
93
|
+
nameSlug: n,
|
|
94
|
+
LinkComponent: l
|
|
95
|
+
} = a, p = l || "a", S = N(null);
|
|
95
96
|
return /* @__PURE__ */ t(
|
|
96
97
|
D,
|
|
97
98
|
{
|
|
98
|
-
ref:
|
|
99
|
+
ref: S,
|
|
99
100
|
className: "product-card",
|
|
100
101
|
name: m == null ? void 0 : m.name,
|
|
101
102
|
"data-accessor": m == null ? void 0 : m.accessor,
|
|
102
|
-
onClick: (
|
|
103
|
-
|
|
103
|
+
onClick: (e) => w(e, h),
|
|
104
|
+
as: p,
|
|
105
|
+
...l ? {
|
|
106
|
+
to: `/product/${C(n) ? `${n}-` : ""}${o}`
|
|
107
|
+
} : {
|
|
108
|
+
href: `/product/${C(n) ? `${n}-` : ""}${o}`
|
|
109
|
+
},
|
|
104
110
|
children: [
|
|
105
|
-
|
|
111
|
+
I(g) ? g : /* @__PURE__ */ r(L, { src: c }),
|
|
106
112
|
/* @__PURE__ */ r("div", { className: "card-title", children: d })
|
|
107
113
|
]
|
|
108
114
|
}
|
|
109
115
|
);
|
|
110
|
-
}),
|
|
111
|
-
@media (max-width: ${
|
|
116
|
+
}), T = f(s)`
|
|
117
|
+
@media (max-width: ${R + "px"}) {
|
|
112
118
|
& .skeleton__banner {
|
|
113
119
|
height: 100%;
|
|
114
120
|
aspect-ratio: 1 / 1;
|
|
115
121
|
}
|
|
116
122
|
}
|
|
117
|
-
`,
|
|
123
|
+
`, q = ({ keyPrefix: a }) => /* @__PURE__ */ t(T, { children: [
|
|
118
124
|
/* @__PURE__ */ r(i, { height: "22.5rem", className: "skeleton__banner" }),
|
|
119
|
-
/* @__PURE__ */ t(
|
|
120
|
-
/* @__PURE__ */ t(
|
|
125
|
+
/* @__PURE__ */ t(u, { children: [
|
|
126
|
+
/* @__PURE__ */ t(s, { gap: "0.5rem", children: [
|
|
121
127
|
/* @__PURE__ */ r(
|
|
122
|
-
|
|
128
|
+
b,
|
|
123
129
|
{
|
|
124
130
|
height: "100%",
|
|
125
131
|
width: "100%",
|
|
126
132
|
borderRadius: "0.75rem"
|
|
127
133
|
}
|
|
128
134
|
),
|
|
129
|
-
/* @__PURE__ */ r(
|
|
130
|
-
/* @__PURE__ */ t(
|
|
135
|
+
/* @__PURE__ */ r(s, { height: "1rem", children: /* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }) }),
|
|
136
|
+
/* @__PURE__ */ t(u, { gap: "0.5rem", children: [
|
|
131
137
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
132
138
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
133
139
|
] }),
|
|
134
|
-
/* @__PURE__ */ r(
|
|
140
|
+
/* @__PURE__ */ r(s, { height: "2rem", children: /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" }) })
|
|
135
141
|
] }, `${a}-1`),
|
|
136
142
|
/* @__PURE__ */ t(
|
|
137
|
-
|
|
143
|
+
s,
|
|
138
144
|
{
|
|
139
145
|
gap: "0.5rem",
|
|
140
146
|
noGradient: !0,
|
|
141
147
|
children: [
|
|
142
148
|
/* @__PURE__ */ r(
|
|
143
|
-
|
|
149
|
+
b,
|
|
144
150
|
{
|
|
145
151
|
height: "100%",
|
|
146
152
|
width: "100%",
|
|
@@ -148,7 +154,7 @@ const y = b.div`
|
|
|
148
154
|
}
|
|
149
155
|
),
|
|
150
156
|
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
151
|
-
/* @__PURE__ */ t(
|
|
157
|
+
/* @__PURE__ */ t(u, { gap: "0.5rem", noGradient: !0, children: [
|
|
152
158
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
153
159
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
154
160
|
] }),
|
|
@@ -158,13 +164,13 @@ const y = b.div`
|
|
|
158
164
|
`${a}-2`
|
|
159
165
|
),
|
|
160
166
|
/* @__PURE__ */ t(
|
|
161
|
-
|
|
167
|
+
s,
|
|
162
168
|
{
|
|
163
169
|
gap: "0.5rem",
|
|
164
170
|
noGradient: !0,
|
|
165
171
|
children: [
|
|
166
172
|
/* @__PURE__ */ r(
|
|
167
|
-
|
|
173
|
+
b,
|
|
168
174
|
{
|
|
169
175
|
height: "100%",
|
|
170
176
|
width: "100%",
|
|
@@ -172,7 +178,7 @@ const y = b.div`
|
|
|
172
178
|
}
|
|
173
179
|
),
|
|
174
180
|
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
175
|
-
/* @__PURE__ */ t(
|
|
181
|
+
/* @__PURE__ */ t(u, { gap: "0.5rem", noGradient: !0, children: [
|
|
176
182
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
177
183
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
178
184
|
] }),
|
|
@@ -182,13 +188,13 @@ const y = b.div`
|
|
|
182
188
|
`${a}-3`
|
|
183
189
|
),
|
|
184
190
|
/* @__PURE__ */ t(
|
|
185
|
-
|
|
191
|
+
s,
|
|
186
192
|
{
|
|
187
193
|
gap: "0.5rem",
|
|
188
194
|
noGradient: !0,
|
|
189
195
|
children: [
|
|
190
196
|
/* @__PURE__ */ r(
|
|
191
|
-
|
|
197
|
+
b,
|
|
192
198
|
{
|
|
193
199
|
height: "100%",
|
|
194
200
|
width: "100%",
|
|
@@ -196,7 +202,7 @@ const y = b.div`
|
|
|
196
202
|
}
|
|
197
203
|
),
|
|
198
204
|
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
199
|
-
/* @__PURE__ */ t(
|
|
205
|
+
/* @__PURE__ */ t(u, { gap: "0.5rem", noGradient: !0, children: [
|
|
200
206
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
201
207
|
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
202
208
|
] }),
|
|
@@ -206,23 +212,24 @@ const y = b.div`
|
|
|
206
212
|
`${a}-4`
|
|
207
213
|
)
|
|
208
214
|
] })
|
|
209
|
-
] }),
|
|
215
|
+
] }), F = ({
|
|
210
216
|
keyPrefix: a,
|
|
211
|
-
isLoading:
|
|
212
|
-
fallbackComponent:
|
|
217
|
+
isLoading: h = !1,
|
|
218
|
+
fallbackComponent: o = /* @__PURE__ */ r(P, {}),
|
|
213
219
|
children: d
|
|
214
|
-
}) => /* @__PURE__ */ r(
|
|
220
|
+
}) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: h === !0 ? /* @__PURE__ */ r(q, { keyPrefix: a }) : d }), v = G(E), Y = W((a, h) => {
|
|
215
221
|
const {
|
|
216
|
-
icon:
|
|
222
|
+
icon: o,
|
|
217
223
|
items: d,
|
|
218
|
-
limit:
|
|
219
|
-
imageUrl:
|
|
220
|
-
title:
|
|
221
|
-
isLoading:
|
|
224
|
+
limit: c = 4,
|
|
225
|
+
imageUrl: k,
|
|
226
|
+
title: w = "Season inspiration",
|
|
227
|
+
isLoading: g = !1,
|
|
222
228
|
getImage: m = () => {
|
|
223
229
|
},
|
|
224
|
-
componentName:
|
|
225
|
-
|
|
230
|
+
componentName: n,
|
|
231
|
+
LinkComponent: l
|
|
232
|
+
} = a, p = _(), S = M(() => /* @__PURE__ */ r(P, { children: p === !0 ? d == null ? void 0 : d.map((e, $) => /* @__PURE__ */ r(
|
|
226
233
|
v,
|
|
227
234
|
{
|
|
228
235
|
title: e == null ? void 0 : e.name,
|
|
@@ -230,10 +237,11 @@ const y = b.div`
|
|
|
230
237
|
uuid: e == null ? void 0 : e.uuid,
|
|
231
238
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
232
239
|
image: m(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
233
|
-
metadata: { name:
|
|
240
|
+
metadata: { name: n, accessor: e == null ? void 0 : e.accessor },
|
|
241
|
+
LinkComponent: l
|
|
234
242
|
},
|
|
235
|
-
|
|
236
|
-
)) : d == null ? void 0 : d.slice(0,
|
|
243
|
+
$
|
|
244
|
+
)) : d == null ? void 0 : d.slice(0, c).map((e, $) => /* @__PURE__ */ r(
|
|
237
245
|
v,
|
|
238
246
|
{
|
|
239
247
|
title: e == null ? void 0 : e.name,
|
|
@@ -241,28 +249,29 @@ const y = b.div`
|
|
|
241
249
|
uuid: e == null ? void 0 : e.uuid,
|
|
242
250
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
243
251
|
image: m(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
244
|
-
metadata: { name:
|
|
252
|
+
metadata: { name: n, accessor: e == null ? void 0 : e.accessor },
|
|
253
|
+
LinkComponent: l
|
|
245
254
|
},
|
|
246
|
-
|
|
247
|
-
)) }), [d,
|
|
248
|
-
return /* @__PURE__ */ t(
|
|
255
|
+
$
|
|
256
|
+
)) }), [d, p, c]);
|
|
257
|
+
return /* @__PURE__ */ t(j, { ref: h, children: [
|
|
249
258
|
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: [
|
|
250
|
-
|
|
251
|
-
/* @__PURE__ */ r("span", { children:
|
|
259
|
+
C(o) && /* @__PURE__ */ r("i", { className: o }),
|
|
260
|
+
/* @__PURE__ */ r("span", { children: w })
|
|
252
261
|
] }) }),
|
|
253
262
|
/* @__PURE__ */ t(
|
|
254
|
-
|
|
263
|
+
F,
|
|
255
264
|
{
|
|
256
|
-
isLoading:
|
|
265
|
+
isLoading: g,
|
|
257
266
|
keyPrefix: "products-with-banner-skeleton",
|
|
258
267
|
children: [
|
|
259
|
-
/* @__PURE__ */ r(y, { className: "products-banner", children: /* @__PURE__ */ r("img", { src:
|
|
260
|
-
/* @__PURE__ */ r(z, { limit:
|
|
268
|
+
/* @__PURE__ */ r(y, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: k }) }),
|
|
269
|
+
/* @__PURE__ */ r(z, { limit: c, children: S })
|
|
261
270
|
]
|
|
262
271
|
}
|
|
263
272
|
)
|
|
264
273
|
] });
|
|
265
274
|
});
|
|
266
275
|
export {
|
|
267
|
-
|
|
276
|
+
Y as default
|
|
268
277
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),d=require("react"),m=require("./utils-RnrgDDZP.cjs"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),_=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=require("./styled-components.browser.esm-CvykQBGY.cjs"),h=require("./index-D0IYt1s3.cjs"),b=p.styled.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 );
|
|
42
42
|
border-radius: 0.75rem;
|
|
43
43
|
z-index: 2;
|
|
44
|
-
`,
|
|
44
|
+
`,w=p.styled.a`
|
|
45
45
|
text-decoration: none;
|
|
46
46
|
color: var(--gray-950);
|
|
47
47
|
cursor: pointer;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
font-style: normal;
|
|
82
82
|
font-weight: 600;
|
|
83
83
|
line-height: 1.75rem;
|
|
84
|
-
${
|
|
84
|
+
${m.truncateText()}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
& .quattro-card__description {
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
font-style: normal;
|
|
90
90
|
font-weight: 500;
|
|
91
91
|
line-height: 1.25rem;
|
|
92
|
-
${
|
|
92
|
+
${m.truncateTextInRows(2)}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
@media (max-width: ${
|
|
96
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
97
97
|
width: 100%;
|
|
98
98
|
|
|
99
99
|
img {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
display: block;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,y=d.forwardRef(({title:o,description:r,imageUrl:l,onSelectCard:i=()=>{},link:n,LinkComponent:s},c)=>{const{theme:a}=_.useTheme(),e=s||"a";return t.jsxs(w,{ref:c,theme:a,onClick:i,as:e,...s?{to:`/${n}`}:{href:`/${n}`},children:[t.jsx("img",{loading:"lazy",src:l}),t.jsx(b,{theme:a,className:"quattro-card__gradient",children:t.jsxs("div",{className:"quattro-card__text",children:[t.jsx("div",{className:"quattro-card__title",children:o}),t.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),x=f.qe.div`
|
|
114
114
|
display: flex;
|
|
115
115
|
flex-direction: column;
|
|
116
116
|
align-items: flex-start;
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
width: 100%;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
@media (max-width: ${
|
|
159
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
160
160
|
gap: 1.25rem;
|
|
161
161
|
|
|
162
162
|
& .wrapper__cards {
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
gap: 1rem;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
167
|
+
`,q=d.memo(y),j=d.forwardRef(({title:o,items:r,isLoading:l=!1,onSelectCard:i=()=>{},LinkComponent:n},s)=>{const c=d.useMemo(()=>{var a;return(a=r==null?void 0:r.slice(0,4))==null?void 0:a.map((e,u)=>t.jsx(q,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,onSelectCard:()=>i==null?void 0:i(e),link:e==null?void 0:e.link,LinkComponent:n},`quattro-card__${u+1}`))},[r]);return t.jsxs(x,{ref:s,children:[t.jsx("div",{className:"wrapper__heading",children:t.jsx("div",{className:"wrapper__title",children:m.isDefinedNotEmptyString(o)&&t.jsx("div",{className:"title__text",children:t.jsx("span",{children:o})})})}),t.jsx(h.SuspenseBlogCardsSponsored,{isLoading:l,keyPrefix:"quattro-cards-skeleton",children:t.jsx("div",{className:"wrapper__cards",children:c})})]})});module.exports=j;
|