@lanaco/lnc-react-ui 4.0.226 → 4.0.227
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 +3 -3
- package/dist/BannerSectionCarousel.js +18 -11
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +7 -7
- package/dist/BlogListSection.js +157 -207
- package/dist/BlogSingleSection.cjs +2 -11
- package/dist/BlogSingleSection.js +19 -35
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionLarge.cjs +8 -16
- package/dist/BlogsSectionLarge.js +40 -58
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +12 -25
- package/dist/BlogsSectionSimpleCentered.js +64 -98
- package/dist/BlogsSectionWithFilters.cjs +10 -21
- package/dist/BlogsSectionWithFilters.js +106 -154
- package/dist/BrandHitsSection.cjs +7 -7
- package/dist/BrandHitsSection.js +41 -87
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +2 -2
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/FieldOfInterestsMasonrySection.cjs +13 -13
- package/dist/FieldOfInterestsMasonrySection.js +105 -159
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +93 -124
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +1 -1
- package/dist/GeneralWithTagsCardsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +10 -14
- package/dist/GiftCardsSection.js +76 -146
- package/dist/MasonryGeneralCardsSection.cjs +10 -10
- package/dist/MasonryGeneralCardsSection.js +45 -44
- package/dist/OverlayGeneralCardsSection.cjs +1 -1
- package/dist/OverlayGeneralCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +13 -13
- package/dist/ProductsWithBannerSection.js +87 -168
- package/dist/QuattroCardsSection.cjs +1 -1
- package/dist/QuattroCardsSection.js +1 -1
- package/dist/ReviewsSection.cjs +18 -22
- package/dist/ReviewsSection.js +101 -163
- package/dist/SalesCampaignsSection.cjs +14 -14
- package/dist/SalesCampaignsSection.js +299 -330
- package/dist/ShopCardsSection.cjs +6 -19
- package/dist/ShopCardsSection.js +54 -100
- package/dist/SimpleCategoriesSection.cjs +3 -3
- package/dist/SimpleCategoriesSection.js +64 -67
- package/dist/SimpleProductsSection.cjs +7 -7
- package/dist/SimpleProductsSection.js +65 -138
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/index-B7fBsitY.js +45 -0
- package/dist/index-BMAvJQBG.cjs +9 -0
- package/dist/index-BUdvfHpp.cjs +5 -0
- package/dist/index-BXT1eY2D.js +753 -0
- package/dist/index-C6amCwRZ.js +25 -0
- package/dist/index-C8R9lsWG.cjs +1 -0
- package/dist/index-CeQvy566.cjs +11 -0
- package/dist/index-Cyt4EUZ6.js +20 -0
- package/dist/index-D3QZziO_.cjs +368 -0
- package/dist/index-VTkAaA-n.js +18 -0
- package/dist/style-BFPpppS9.js +73 -0
- package/dist/style-CQdEALKR.cjs +59 -0
- package/package.json +1 -1
- package/dist/index-BGNavrtB.cjs +0 -368
- package/dist/index-BHcrzV2G.js +0 -54
- package/dist/index-Bj1KWOV4.cjs +0 -11
- package/dist/index-BsAddfgC.cjs +0 -1
- package/dist/index-Cn4bq6ZX.js +0 -84
- package/dist/index-CuRcxKQH.js +0 -42
- package/dist/index-DB1J-G6Z.js +0 -38
- package/dist/index-DkPva6Gr.cjs +0 -20
- package/dist/index-fzBXDy05.cjs +0 -16
- package/dist/index-gFZSZLba.js +0 -882
- package/dist/style-DvkivBNg.js +0 -74
- package/dist/style-Ito6YFqi.cjs +0 -64
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),m=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),C=require("./style-Boz6dk5s.cjs"),h=require("./utils-CITgSxXe.cjs"),y=require("./index-DsINTjQk.cjs"),i=require("./style-CQdEALKR.cjs"),R=j.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 ${
|
|
19
|
+
@media ${m.down("S")} {
|
|
20
20
|
height: 100%;
|
|
21
21
|
min-height: 100%;
|
|
22
22
|
max-height: 100%;
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
`,v=j.styled.div`
|
|
35
35
|
display: grid;
|
|
36
|
-
grid-template-columns: ${
|
|
36
|
+
grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
|
|
37
37
|
gap: 1.25rem;
|
|
38
38
|
|
|
39
|
-
@media ${
|
|
39
|
+
@media ${m.down("M")} {
|
|
40
40
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@media ${
|
|
43
|
+
@media ${m.down("S")} {
|
|
44
44
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
45
45
|
gap: 1rem;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
@media ${
|
|
48
|
+
@media ${m.down("XS")} {
|
|
49
49
|
grid-template-columns: 1fr;
|
|
50
50
|
gap: 0.75rem;
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`,N=j.styled.a`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
55
55
|
gap: 0.5rem;
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
& .card-title {
|
|
68
68
|
font-size: 0.875rem;
|
|
69
69
|
font-weight: 600;
|
|
70
|
-
${
|
|
70
|
+
${h.truncateTextInRows(2)}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
@media ${
|
|
73
|
+
@media ${m.down("S")} {
|
|
74
74
|
& img {
|
|
75
75
|
width: 8.875rem;
|
|
76
76
|
height: 8.875rem;
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
object-fit: cover;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
`,q=
|
|
85
|
-
@media ${
|
|
84
|
+
`,q=c.forwardRef((n,o)=>{const{uuid:a,title:r,image:l,sellerUuid:k,onSelectCard:S=()=>{},imageComponent:g,metadata:s,nameSlug:d,LinkComponent:u}=n,p=u||"a",f=c.useRef(null);return t.jsxs(N,{ref:f,className:"product-card",name:s==null?void 0:s.name,"data-accessor":s==null?void 0:s.accessor,onClick:e=>S(e,o),as:p,...u?{to:`/product/${h.isDefinedNotEmptyString(d)?`${d}-`:""}${a}`}:{href:`/product/${h.isDefinedNotEmptyString(d)?`${d}-`:""}${a}`},children:[h.isDefined(g)?g:t.jsx(y.ProductImageWrapper,{src:l}),t.jsx("div",{className:"card-title",children:r})]})}),P=j.styled(i.SkeletonAnimationColumnContainer)`
|
|
85
|
+
@media ${m.down("S")} {
|
|
86
86
|
& .skeleton__banner {
|
|
87
87
|
height: 100%;
|
|
88
88
|
aspect-ratio: 1 / 1;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
91
|
+
`,U=({keyPrefix:n})=>t.jsxs(P,{children:[t.jsx(i.SkeletonRect,{width:"100%",height:"10rem",className:"skeleton__banner"}),t.jsx(i.SkeletonContainer,{children:[1,2,3,4].map(o=>t.jsxs(i.SkeletonColumnContainer,{gap:"0.5rem",children:[t.jsx(i.SkeletonSquare,{size:"6rem"}),t.jsx(i.SkeletonRect,{width:"100%",height:"1rem"}),t.jsxs(i.SkeletonContainer,{gap:"0.5rem",children:[t.jsx(i.SkeletonRect,{width:"100%",height:"1.5rem"}),t.jsx(i.SkeletonRect,{width:"100%",height:"1.5rem"})]}),t.jsx(i.SkeletonRect,{width:"100%",height:"1.5rem"})]},`${n}-${o}`))})]}),W=({keyPrefix:n,isLoading:o=!1,fallbackComponent:a=t.jsx(t.Fragment,{}),children:r})=>t.jsx(c.Suspense,{fallbackComponent:a,children:o===!0?t.jsx(U,{keyPrefix:n}):r}),b=c.memo(q),D=c.forwardRef((n,o)=>{const{icon:a,items:r,limit:l=4,imageUrl:k,title:S="Season inspiration",isLoading:g=!1,getImage:s=()=>{},componentName:d,LinkComponent:u}=n,p=$.useDetectMobile(),f=c.useMemo(()=>t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,w)=>t.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:s(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor},LinkComponent:u},w)):r==null?void 0:r.slice(0,l).map((e,w)=>t.jsx(b,{title:e==null?void 0:e.name,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,image:s(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,metadata:{name:d,accessor:e==null?void 0:e.accessor},LinkComponent:u},w))}),[r,p,l]);return t.jsxs(C.RegulatTitleSectionWrapper,{ref:o,children:[t.jsx("div",{className:"regular-title",children:t.jsxs("div",{className:"regular-title-text",children:[h.isDefinedNotEmptyString(a)&&t.jsx("i",{className:a}),t.jsx("span",{children:S})]})}),t.jsxs(W,{isLoading:g,keyPrefix:"products-with-banner-skeleton",children:[t.jsx(R,{className:"products-banner",children:t.jsx("img",{src:k})}),t.jsx(v,{limit:l,children:f})]})]})});module.exports=D;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { d
|
|
5
|
-
import { u as
|
|
6
|
-
import { R as
|
|
7
|
-
import { n as
|
|
8
|
-
import { P as
|
|
9
|
-
import { b as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as s, jsx as r, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useRef as N, Suspense as U, memo as W, useMemo as y } from "react";
|
|
3
|
+
import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
+
import { d } from "./breakpoints-BubDitvo.js";
|
|
5
|
+
import { u as R } from "./useDetectMobile-B0Jog4jQ.js";
|
|
6
|
+
import { R as j } from "./style-D54KOzZj.js";
|
|
7
|
+
import { n as M, m as z, l as b } from "./utils-MoGhNMmj.js";
|
|
8
|
+
import { P as B } from "./index-DEypPQRI.js";
|
|
9
|
+
import { b as _, a as h, c as C, e as D, d as I } from "./style-BFPpppS9.js";
|
|
10
|
+
const L = g.div`
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 22.5rem;
|
|
13
13
|
min-height: 22.5rem;
|
|
@@ -25,7 +25,7 @@ const z = R.div`
|
|
|
25
25
|
object-fit: cover;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
@media ${
|
|
28
|
+
@media ${d("S")} {
|
|
29
29
|
height: 100%;
|
|
30
30
|
min-height: 100%;
|
|
31
31
|
max-height: 100%;
|
|
@@ -40,25 +40,25 @@ const z = R.div`
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`, T = g.div`
|
|
44
44
|
display: grid;
|
|
45
|
-
grid-template-columns: ${(
|
|
45
|
+
grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
|
|
46
46
|
gap: 1.25rem;
|
|
47
47
|
|
|
48
|
-
@media ${
|
|
48
|
+
@media ${d("M")} {
|
|
49
49
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@media ${
|
|
52
|
+
@media ${d("S")} {
|
|
53
53
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
54
54
|
gap: 1rem;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@media ${
|
|
57
|
+
@media ${d("XS")} {
|
|
58
58
|
grid-template-columns: 1fr;
|
|
59
59
|
gap: 0.75rem;
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`, q = g.a`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
gap: 0.5rem;
|
|
@@ -76,10 +76,10 @@ const z = R.div`
|
|
|
76
76
|
& .card-title {
|
|
77
77
|
font-size: 0.875rem;
|
|
78
78
|
font-weight: 600;
|
|
79
|
-
${
|
|
79
|
+
${M(2)}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
@media ${
|
|
82
|
+
@media ${d("S")} {
|
|
83
83
|
& img {
|
|
84
84
|
width: 8.875rem;
|
|
85
85
|
height: 8.875rem;
|
|
@@ -90,198 +90,117 @@ const z = R.div`
|
|
|
90
90
|
object-fit: cover;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`, A = P((t, n) => {
|
|
94
94
|
const {
|
|
95
95
|
uuid: o,
|
|
96
|
-
title:
|
|
96
|
+
title: i,
|
|
97
97
|
image: c,
|
|
98
|
-
sellerUuid:
|
|
99
|
-
onSelectCard:
|
|
98
|
+
sellerUuid: $,
|
|
99
|
+
onSelectCard: f = () => {
|
|
100
100
|
},
|
|
101
|
-
imageComponent:
|
|
102
|
-
metadata:
|
|
103
|
-
nameSlug:
|
|
104
|
-
LinkComponent:
|
|
105
|
-
} =
|
|
106
|
-
return /* @__PURE__ */
|
|
107
|
-
|
|
101
|
+
imageComponent: u,
|
|
102
|
+
metadata: a,
|
|
103
|
+
nameSlug: m,
|
|
104
|
+
LinkComponent: l
|
|
105
|
+
} = t, p = l || "a", S = N(null);
|
|
106
|
+
return /* @__PURE__ */ s(
|
|
107
|
+
q,
|
|
108
108
|
{
|
|
109
|
-
ref:
|
|
109
|
+
ref: S,
|
|
110
110
|
className: "product-card",
|
|
111
|
-
name:
|
|
112
|
-
"data-accessor":
|
|
113
|
-
onClick: (e) =>
|
|
114
|
-
as:
|
|
115
|
-
...
|
|
116
|
-
to: `/product/${
|
|
111
|
+
name: a == null ? void 0 : a.name,
|
|
112
|
+
"data-accessor": a == null ? void 0 : a.accessor,
|
|
113
|
+
onClick: (e) => f(e, n),
|
|
114
|
+
as: p,
|
|
115
|
+
...l ? {
|
|
116
|
+
to: `/product/${b(m) ? `${m}-` : ""}${o}`
|
|
117
117
|
} : {
|
|
118
|
-
href: `/product/${
|
|
118
|
+
href: `/product/${b(m) ? `${m}-` : ""}${o}`
|
|
119
119
|
},
|
|
120
120
|
children: [
|
|
121
|
-
|
|
122
|
-
/* @__PURE__ */ r("div", { className: "card-title", children:
|
|
121
|
+
z(u) ? u : /* @__PURE__ */ r(B, { src: c }),
|
|
122
|
+
/* @__PURE__ */ r("div", { className: "card-title", children: i })
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
|
-
}),
|
|
127
|
-
@media ${
|
|
126
|
+
}), E = g(_)`
|
|
127
|
+
@media ${d("S")} {
|
|
128
128
|
& .skeleton__banner {
|
|
129
129
|
height: 100%;
|
|
130
130
|
aspect-ratio: 1 / 1;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
134
|
-
/* @__PURE__ */ r(
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/* @__PURE__ */ r(s, { height: "2rem", children: /* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" }) })
|
|
151
|
-
] }, `${a}-1`),
|
|
152
|
-
/* @__PURE__ */ t(
|
|
153
|
-
s,
|
|
154
|
-
{
|
|
155
|
-
gap: "0.5rem",
|
|
156
|
-
noGradient: !0,
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ r(
|
|
159
|
-
f,
|
|
160
|
-
{
|
|
161
|
-
height: "100%",
|
|
162
|
-
width: "100%",
|
|
163
|
-
borderRadius: "0.75rem"
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
167
|
-
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
168
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
169
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
170
|
-
] }),
|
|
171
|
-
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
172
|
-
]
|
|
173
|
-
},
|
|
174
|
-
`${a}-2`
|
|
175
|
-
),
|
|
176
|
-
/* @__PURE__ */ t(
|
|
177
|
-
s,
|
|
178
|
-
{
|
|
179
|
-
gap: "0.5rem",
|
|
180
|
-
noGradient: !0,
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ r(
|
|
183
|
-
f,
|
|
184
|
-
{
|
|
185
|
-
height: "100%",
|
|
186
|
-
width: "100%",
|
|
187
|
-
borderRadius: "0.75rem"
|
|
188
|
-
}
|
|
189
|
-
),
|
|
190
|
-
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
191
|
-
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
192
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
193
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
194
|
-
] }),
|
|
195
|
-
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
`${a}-3`
|
|
199
|
-
),
|
|
200
|
-
/* @__PURE__ */ t(
|
|
201
|
-
s,
|
|
202
|
-
{
|
|
203
|
-
gap: "0.5rem",
|
|
204
|
-
noGradient: !0,
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ r(
|
|
207
|
-
f,
|
|
208
|
-
{
|
|
209
|
-
height: "100%",
|
|
210
|
-
width: "100%",
|
|
211
|
-
borderRadius: "0.75rem"
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
/* @__PURE__ */ r(i, { height: "1rem", borderRadius: "0.75rem" }),
|
|
215
|
-
/* @__PURE__ */ t(g, { gap: "0.5rem", noGradient: !0, children: [
|
|
216
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" }),
|
|
217
|
-
/* @__PURE__ */ r(i, { height: "1.5rem", borderRadius: "0.75rem" })
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */ r(i, { height: "2rem", borderRadius: "0.75rem" })
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
`${a}-4`
|
|
223
|
-
)
|
|
224
|
-
] })
|
|
225
|
-
] }), F = ({
|
|
226
|
-
keyPrefix: a,
|
|
227
|
-
isLoading: l = !1,
|
|
228
|
-
fallbackComponent: o = /* @__PURE__ */ r(W, {}),
|
|
229
|
-
children: m
|
|
230
|
-
}) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: l === !0 ? /* @__PURE__ */ r(E, { keyPrefix: a }) : m }), k = G(T), Z = N((a, l) => {
|
|
133
|
+
`, F = ({ keyPrefix: t }) => /* @__PURE__ */ s(E, { children: [
|
|
134
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "10rem", className: "skeleton__banner" }),
|
|
135
|
+
/* @__PURE__ */ r(C, { children: [1, 2, 3, 4].map((n) => /* @__PURE__ */ s(D, { gap: "0.5rem", children: [
|
|
136
|
+
/* @__PURE__ */ r(I, { size: "6rem" }),
|
|
137
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1rem" }),
|
|
138
|
+
/* @__PURE__ */ s(C, { gap: "0.5rem", children: [
|
|
139
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" }),
|
|
140
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" })
|
|
141
|
+
] }),
|
|
142
|
+
/* @__PURE__ */ r(h, { width: "100%", height: "1.5rem" })
|
|
143
|
+
] }, `${t}-${n}`)) })
|
|
144
|
+
] }), G = ({
|
|
145
|
+
keyPrefix: t,
|
|
146
|
+
isLoading: n = !1,
|
|
147
|
+
fallbackComponent: o = /* @__PURE__ */ r(v, {}),
|
|
148
|
+
children: i
|
|
149
|
+
}) => /* @__PURE__ */ r(U, { fallbackComponent: o, children: n === !0 ? /* @__PURE__ */ r(F, { keyPrefix: t }) : i }), k = W(A), x = P((t, n) => {
|
|
231
150
|
const {
|
|
232
151
|
icon: o,
|
|
233
|
-
items:
|
|
152
|
+
items: i,
|
|
234
153
|
limit: c = 4,
|
|
235
|
-
imageUrl:
|
|
236
|
-
title:
|
|
237
|
-
isLoading:
|
|
238
|
-
getImage:
|
|
154
|
+
imageUrl: $,
|
|
155
|
+
title: f = "Season inspiration",
|
|
156
|
+
isLoading: u = !1,
|
|
157
|
+
getImage: a = () => {
|
|
239
158
|
},
|
|
240
|
-
componentName:
|
|
241
|
-
LinkComponent:
|
|
242
|
-
} =
|
|
159
|
+
componentName: m,
|
|
160
|
+
LinkComponent: l
|
|
161
|
+
} = t, p = R(), S = y(() => /* @__PURE__ */ r(v, { children: p === !0 ? i == null ? void 0 : i.map((e, w) => /* @__PURE__ */ r(
|
|
243
162
|
k,
|
|
244
163
|
{
|
|
245
164
|
title: e == null ? void 0 : e.name,
|
|
246
165
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
247
166
|
uuid: e == null ? void 0 : e.uuid,
|
|
248
167
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
249
|
-
image:
|
|
250
|
-
metadata: { name:
|
|
251
|
-
LinkComponent:
|
|
168
|
+
image: a(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
169
|
+
metadata: { name: m, accessor: e == null ? void 0 : e.accessor },
|
|
170
|
+
LinkComponent: l
|
|
252
171
|
},
|
|
253
|
-
|
|
254
|
-
)) :
|
|
172
|
+
w
|
|
173
|
+
)) : i == null ? void 0 : i.slice(0, c).map((e, w) => /* @__PURE__ */ r(
|
|
255
174
|
k,
|
|
256
175
|
{
|
|
257
176
|
title: e == null ? void 0 : e.name,
|
|
258
177
|
sellerUuid: e == null ? void 0 : e.sellerUuid,
|
|
259
178
|
uuid: e == null ? void 0 : e.uuid,
|
|
260
179
|
nameSlug: e == null ? void 0 : e.nameSlug,
|
|
261
|
-
image:
|
|
262
|
-
metadata: { name:
|
|
263
|
-
LinkComponent:
|
|
180
|
+
image: a(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid) || null,
|
|
181
|
+
metadata: { name: m, accessor: e == null ? void 0 : e.accessor },
|
|
182
|
+
LinkComponent: l
|
|
264
183
|
},
|
|
265
|
-
|
|
266
|
-
)) }), [
|
|
267
|
-
return /* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */
|
|
269
|
-
|
|
270
|
-
/* @__PURE__ */ r("span", { children:
|
|
184
|
+
w
|
|
185
|
+
)) }), [i, p, c]);
|
|
186
|
+
return /* @__PURE__ */ s(j, { ref: n, children: [
|
|
187
|
+
/* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ s("div", { className: "regular-title-text", children: [
|
|
188
|
+
b(o) && /* @__PURE__ */ r("i", { className: o }),
|
|
189
|
+
/* @__PURE__ */ r("span", { children: f })
|
|
271
190
|
] }) }),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
|
|
191
|
+
/* @__PURE__ */ s(
|
|
192
|
+
G,
|
|
274
193
|
{
|
|
275
|
-
isLoading:
|
|
194
|
+
isLoading: u,
|
|
276
195
|
keyPrefix: "products-with-banner-skeleton",
|
|
277
196
|
children: [
|
|
278
|
-
/* @__PURE__ */ r(
|
|
279
|
-
/* @__PURE__ */ r(
|
|
197
|
+
/* @__PURE__ */ r(L, { className: "products-banner", children: /* @__PURE__ */ r("img", { src: $ }) }),
|
|
198
|
+
/* @__PURE__ */ r(T, { limit: c, children: S })
|
|
280
199
|
]
|
|
281
200
|
}
|
|
282
201
|
)
|
|
283
202
|
] });
|
|
284
203
|
});
|
|
285
204
|
export {
|
|
286
|
-
|
|
205
|
+
x as default
|
|
287
206
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-CITgSxXe.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),m=require("./utils-CITgSxXe.cjs"),g=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),p=require("./breakpoints-CcVm-gVm.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=require("./styled-components.browser.esm-BaNxtZgB.cjs"),h=require("./index-BMAvJQBG.cjs"),b=g.styled.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -5,7 +5,7 @@ import { s as g } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
|
5
5
|
import { d as m } from "./breakpoints-BubDitvo.js";
|
|
6
6
|
import { u as y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
7
|
import { q as v } from "./styled-components.browser.esm-Cfeh8eHg.js";
|
|
8
|
-
import { S as q } from "./index-
|
|
8
|
+
import { S as q } from "./index-C6amCwRZ.js";
|
|
9
9
|
const k = g.div`
|
|
10
10
|
position: absolute;
|
|
11
11
|
top: 0;
|
package/dist/ReviewsSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),o=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),w=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),f=require("./utils-CITgSxXe.cjs"),y=require("./ThemeProvider.cjs"),S=require("./index-DsINTjQk.cjs"),m=require("./style-CQdEALKR.cjs"),k=o.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
color: var(--darkest-950);
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
font-weight: 600;
|
|
9
9
|
font-size: 1.5rem;
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,R=o.styled.div`
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns: ${
|
|
13
|
+
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
14
14
|
gap: 1.25rem;
|
|
15
15
|
|
|
16
16
|
@media ${w.down("M")} {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
@media ${w.down("XS")} {
|
|
25
25
|
grid-template-columns: repeat(1, 1fr);
|
|
26
26
|
}
|
|
27
|
-
`,$=
|
|
27
|
+
`,$=o.styled.a`
|
|
28
28
|
padding-top: 5rem;
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
text-decoration: none;
|
|
31
31
|
color: var(--gray-950);
|
|
32
|
-
`,C=
|
|
32
|
+
`,C=o.styled.div`
|
|
33
33
|
position: relative;
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
display: flex;
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
font-size: 1.375rem;
|
|
62
62
|
font-weight: 600;
|
|
63
63
|
color: var(--gray-950, #14161a);
|
|
64
|
-
${
|
|
64
|
+
${f.truncateText()}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
& .cont-text {
|
|
68
|
-
${
|
|
68
|
+
${f.truncateTextInRows(2)}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
86
86
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
89
|
-
font-size: ${
|
|
90
|
-
line-height: ${
|
|
88
|
+
`,b=(r,n)=>f.getComponentPropValue(r.theme,"StarRating",r.color,r.disabled===!0?"disabled":"enabled",n),N=o.styled.div`
|
|
89
|
+
font-size: ${r=>b(r,"fontSize")};
|
|
90
|
+
line-height: ${r=>b(r,"lineHeight")};
|
|
91
91
|
line-height: 1.5rem;
|
|
92
92
|
width: fit-content;
|
|
93
93
|
display: flex;
|
|
@@ -104,33 +104,29 @@
|
|
|
104
104
|
font-weight: 400;
|
|
105
105
|
font-size: 0.75rem;
|
|
106
106
|
line-height: 1.5rem;
|
|
107
|
-
color: ${
|
|
107
|
+
color: ${r=>r.color};
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,z=o.styled.span`
|
|
110
110
|
position: absolute;
|
|
111
111
|
z-index: 1;
|
|
112
112
|
display: block;
|
|
113
113
|
top: 0;
|
|
114
114
|
left: 0;
|
|
115
115
|
overflow: hidden;
|
|
116
|
-
width: ${
|
|
116
|
+
width: ${r=>r.width}%;
|
|
117
117
|
|
|
118
|
-
color: ${
|
|
119
|
-
`,
|
|
118
|
+
color: ${r=>f.getColorRgbaValue(r.theme,"StarRating",r.color,r.disabled===!0?"disabled":"enabled","filledColor")};
|
|
119
|
+
`,q=o.styled.span`
|
|
120
120
|
padding: 0;
|
|
121
121
|
display: block;
|
|
122
122
|
z-index: 0;
|
|
123
|
-
color: ${
|
|
124
|
-
`,
|
|
123
|
+
color: ${r=>r.color};
|
|
124
|
+
`,M=p.forwardRef((r,n)=>{const{rating:s=0,reviewCount:i=null,disabled:a=!1,tabIndex:l=0,className:g="",style:h={},color:d="primary",size:u="large"}=r,{theme:e}=y.useTheme(),c={theme:e,color:d,size:u,style:h,disabled:a},j=s/5*100;return t.jsxs(N,{ref:n,tabIndex:l,...c,className:`star-rating ${g}`,children:[t.jsxs("div",{className:"rating",children:[t.jsx(z,{className:"filled-stars",...c,width:j,children:"★★★★★"}),t.jsx(q,{...c,children:"★★★★★"})]}),!isNaN(i)&&Number.isFinite(i)&&t.jsx("div",{className:"review-count",children:`(${i.toLocaleString()})`})]})}),P=p.forwardRef((r,n)=>{const{image:s,text:i,title:a,link:l,rating:g,onSelectCard:h=()=>{},LinkComponent:d}=r,u=d||"a";return t.jsx($,{ref:n,className:"review-card",onClick:h,as:u,...d?{to:`/${l}`}:{href:`/${l}`},children:t.jsxs(C,{children:[t.jsx(S.ProductImageWrapper,{src:s}),t.jsxs("div",{className:"cont",children:[t.jsx("span",{className:"cont-title",children:a}),t.jsx("div",{className:"cont-text",children:i})]}),t.jsx(M,{color:"warning",rating:g})]})})}),F=o.styled(m.SkeletonAnimationContainer)`
|
|
125
125
|
@media ${w.down("S")} {
|
|
126
126
|
flex-direction: column;
|
|
127
127
|
|
|
128
128
|
& > div {
|
|
129
129
|
flex-direction: column;
|
|
130
|
-
|
|
131
|
-
& > div {
|
|
132
|
-
${i.skeletonGradientBackground}
|
|
133
|
-
}
|
|
134
130
|
}
|
|
135
131
|
}
|
|
136
|
-
`,
|
|
132
|
+
`,L=({keyPrefix:r})=>t.jsx(F,{children:[1,2,3].map(n=>t.jsxs(m.SkeletonColumnContainer,{children:[t.jsx(m.SkeletonSquare,{size:"6.25rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"2rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"1rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{width:"100%",height:"1rem",borderRadius:"0.75rem"}),t.jsx(m.SkeletonRect,{height:"1rem",borderRadius:"0.75rem",width:"6rem"})]},`${r}-${n}`))}),T=({keyPrefix:r,isLoading:n=!1,fallbackComponent:s=t.jsx(t.Fragment,{}),children:i})=>t.jsx(p.Suspense,{fallbackComponent:s,children:n===!0?t.jsx(L,{keyPrefix:r}):i}),v=p.memo(P),W=p.forwardRef((r,n)=>{const{title:s="Electronics reviews",items:i,limit:a=3,onSelectCard:l=()=>{},isLoading:g=!1,LinkComponent:h}=r,d=x.useDetectMobile(),u=p.useMemo(()=>t.jsx(t.Fragment,{children:d===!0?i==null?void 0:i.map((e,c)=>t.jsx(v,{text:e==null?void 0:e.text,title:e==null?void 0:e.title,image:e==null?void 0:e.image,link:e==null?void 0:e.link,rating:e==null?void 0:e.ratingArithmeticMean,onSelectCard:()=>l(e),LinkComponent:h},c)):i==null?void 0:i.slice(0,a).map((e,c)=>t.jsx(v,{text:e==null?void 0:e.text,title:e==null?void 0:e.title,image:e==null?void 0:e.image,link:e==null?void 0:e.link,rating:e==null?void 0:e.ratingArithmeticMean,onSelectCard:()=>l(e),LinkComponent:h},c))}),[i,d,a]);return t.jsxs(k,{ref:n,children:[t.jsx("div",{className:"container-title",children:s}),t.jsx(T,{isLoading:g,keyPrefix:"reviews-skeleton",children:t.jsx(R,{limit:a,children:u})})]})});module.exports=W;
|