@lanaco/lnc-react-ui 4.0.133 → 4.0.135
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 +157 -87
- package/dist/BannerSectionCarousel.js +510 -414
- package/dist/BlogCardsSponsoredSection.cjs +6 -4
- package/dist/BlogCardsSponsoredSection.js +11 -9
- package/dist/BlogListSection.cjs +3 -1
- package/dist/BlogListSection.js +15 -13
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -5
- package/dist/BlogsSectionSimple.js +2 -5
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +29 -29
- package/dist/SalesCampaignsSection.js +261 -257
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{style-XXDQBreL.js → style-DAn9Ifqe.js} +9 -7
- package/dist/{style-C_BRvopE.cjs → style-DaT7Beup.cjs} +7 -5
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),s=require("./utils-DmMdPm9O.cjs"),h=require("./Icon.cjs"),j=require("./style-DaT7Beup.cjs"),N=require("./index-DiIeF_76.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),x=require("./suspense-large-PHdzP1Ln.cjs"),S=require("./Button.cjs"),z=b.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 1.25rem;
|
|
6
6
|
border-radius: 1.25rem;
|
|
7
7
|
align-items: stretch;
|
|
8
|
-
border: ${
|
|
8
|
+
border: ${i=>i!=null&&i.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
9
9
|
background: var(--white, #fff);
|
|
10
10
|
min-height: 10.5rem;
|
|
11
11
|
position: relative;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
object-fit: cover;
|
|
39
39
|
height: auto;
|
|
40
40
|
max-width: 12.5rem;
|
|
41
|
+
min-width: 12.5rem;
|
|
41
42
|
max-height: 9rem;
|
|
42
43
|
border-radius: 0.75rem;
|
|
43
44
|
}
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
border-bottom-left-radius: 0;
|
|
103
104
|
border-bottom-right-radius: 0;
|
|
104
105
|
max-width: 100%;
|
|
106
|
+
min-width: 100%;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
& .wrapper__content {
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
|
-
`,I=
|
|
124
|
+
`,I=m.forwardRef(({title:i,imageUrl:p,options:t,publishedAt:c,timeToReadText:g="{0} min read",timeToRead:_=0,numberOfLikes:n=0,numberOfComments:l=0,isSponsored:o=!1,onSelectCard:f=()=>{}},w)=>r.jsxs(z,{isSponsored:o,onClick:f,children:[o&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(h,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(N.ProductImageWrapper,{src:p,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:i}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.map((a,u)=>r.jsx(j.BlogTag,{color:a==null?void 0:a.color,children:a==null?void 0:a.name},u)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${s.formatLocaleDateString(c)} • ${s.formatString(g,_)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(h,{icon:" mng-lnc-thumbs-up--filled",sizeInUnits:"1rem"}),s.getRoundedNumber(n)]}),r.jsxs("div",{children:[r.jsx(h,{icon:" mng-lnc-messages-filled",sizeInUnits:"1rem"}),s.getRoundedNumber(l)]})]})]})]})]})),R=b.styled.div`
|
|
123
125
|
display: flex;
|
|
124
126
|
flex-direction: column;
|
|
125
127
|
align-items: flex-start;
|
|
@@ -201,4 +203,4 @@
|
|
|
201
203
|
gap: 1rem;
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
|
-
`,q=
|
|
206
|
+
`,q=m.memo(I),k=m.forwardRef(({title:i,subtitle:p,icon:t,buttonText:c,buttonLink:g,timeToReadText:_="{0} min read",items:n,onButtonAction:l=()=>{},onSelectCard:o=()=>{},isLoading:f=!1,getImage:w=()=>{}},a)=>{const u=m.useMemo(()=>{var d;return(d=n==null?void 0:n.slice(0,4))==null?void 0:d.map((e,y)=>r.jsx(q,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:_,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>o==null?void 0:o(e),imageUrl:w(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${y+1}`))},[n]);return r.jsxs(R,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[i&&r.jsxs("div",{className:"title__text",children:[s.isDefinedNotEmptyString(t)&&r.jsx("i",{className:t}),r.jsx("span",{children:i})]}),l&&r.jsx(S,{text:c,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:d=>{var e;(e=d==null?void 0:d.target)==null||e.blur(),l==null||l(g)}})]}),p&&r.jsx("div",{className:"wrapper__subtitle",children:p})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(x.SuspenseBlogLarge,{isLoading:f,limit:4,keyPrefix:"blog-section",children:u})})]})});module.exports=k;
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as b, memo as S, useMemo as k } from "react";
|
|
3
3
|
import { p as v, s as $, v as j, w as u, k as I } from "./utils-BPdU4_1q.js";
|
|
4
4
|
import h from "./Icon.js";
|
|
5
|
-
import { B as R } from "./style-
|
|
5
|
+
import { B as R } from "./style-DAn9Ifqe.js";
|
|
6
6
|
import { P as L } from "./index-DRP1yTKe.js";
|
|
7
7
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { M as N } from "./consts-BuFChS64.js";
|
|
@@ -48,6 +48,7 @@ const U = y.div`
|
|
|
48
48
|
object-fit: cover;
|
|
49
49
|
height: auto;
|
|
50
50
|
max-width: 12.5rem;
|
|
51
|
+
min-width: 12.5rem;
|
|
51
52
|
max-height: 9rem;
|
|
52
53
|
border-radius: 0.75rem;
|
|
53
54
|
}
|
|
@@ -112,6 +113,7 @@ const U = y.div`
|
|
|
112
113
|
border-bottom-left-radius: 0;
|
|
113
114
|
border-bottom-right-radius: 0;
|
|
114
115
|
max-width: 100%;
|
|
116
|
+
min-width: 100%;
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
& .wrapper__content {
|
|
@@ -132,7 +134,7 @@ const U = y.div`
|
|
|
132
134
|
`, B = b(
|
|
133
135
|
({
|
|
134
136
|
title: i,
|
|
135
|
-
imageUrl:
|
|
137
|
+
imageUrl: p,
|
|
136
138
|
options: t,
|
|
137
139
|
publishedAt: d,
|
|
138
140
|
timeToReadText: c = "{0} min read",
|
|
@@ -144,7 +146,7 @@ const U = y.div`
|
|
|
144
146
|
}
|
|
145
147
|
}, w) => /* @__PURE__ */ a(U, { isSponsored: o, onClick: f, children: [
|
|
146
148
|
o && /* @__PURE__ */ r("div", { className: "wrapper__sponsored", children: /* @__PURE__ */ r(h, { icon: " mng-lnc-paw", sizeInUnits: "1.5rem" }) }),
|
|
147
|
-
/* @__PURE__ */ r(L, { src:
|
|
149
|
+
/* @__PURE__ */ r(L, { src: p, className: "wrapper__image" }),
|
|
148
150
|
/* @__PURE__ */ a("div", { className: "wrapper__content", children: [
|
|
149
151
|
/* @__PURE__ */ a("div", { className: "wrapper__subcontent", children: [
|
|
150
152
|
/* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
@@ -252,7 +254,7 @@ const U = y.div`
|
|
|
252
254
|
`, M = S(B), J = b(
|
|
253
255
|
({
|
|
254
256
|
title: i,
|
|
255
|
-
subtitle:
|
|
257
|
+
subtitle: p,
|
|
256
258
|
icon: t,
|
|
257
259
|
buttonText: d,
|
|
258
260
|
buttonLink: c,
|
|
@@ -267,8 +269,8 @@ const U = y.div`
|
|
|
267
269
|
}
|
|
268
270
|
}, l) => {
|
|
269
271
|
const _ = k(() => {
|
|
270
|
-
var
|
|
271
|
-
return (
|
|
272
|
+
var m;
|
|
273
|
+
return (m = n == null ? void 0 : n.slice(0, 4)) == null ? void 0 : m.map((e, z) => /* @__PURE__ */ r(
|
|
272
274
|
M,
|
|
273
275
|
{
|
|
274
276
|
title: e == null ? void 0 : e.title,
|
|
@@ -301,14 +303,14 @@ const U = y.div`
|
|
|
301
303
|
btnType: "tinted",
|
|
302
304
|
className: "title__action",
|
|
303
305
|
color: "neutral",
|
|
304
|
-
onClick: (
|
|
306
|
+
onClick: (m) => {
|
|
305
307
|
var e;
|
|
306
|
-
(e =
|
|
308
|
+
(e = m == null ? void 0 : m.target) == null || e.blur(), s == null || s(c);
|
|
307
309
|
}
|
|
308
310
|
}
|
|
309
311
|
)
|
|
310
312
|
] }),
|
|
311
|
-
|
|
313
|
+
p && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: p })
|
|
312
314
|
] }),
|
|
313
315
|
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: /* @__PURE__ */ r(
|
|
314
316
|
O,
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),b=require("./Icon.cjs"),c=require("./IconButton.cjs"),o=require("./utils-DmMdPm9O.cjs"),y=require("./index-DiIeF_76.cjs"),j=require("./style-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),b=require("./Icon.cjs"),c=require("./IconButton.cjs"),o=require("./utils-DmMdPm9O.cjs"),y=require("./index-DiIeF_76.cjs"),j=require("./style-DaT7Beup.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),k=require("./suspense-large-PHdzP1Ln.cjs"),N=h.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
height: auto;
|
|
26
26
|
max-height: 9.5rem;
|
|
27
27
|
max-width: 17.75rem;
|
|
28
|
+
min-width: 17.75rem;
|
|
28
29
|
border-radius: 0.75rem;
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
|
|
101
102
|
& .wrapper__image {
|
|
102
103
|
max-width: 100%;
|
|
104
|
+
min-width: 100%;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
& .desktop-only {
|
package/dist/BlogListSection.js
CHANGED
|
@@ -4,7 +4,7 @@ import u from "./Icon.js";
|
|
|
4
4
|
import c from "./IconButton.js";
|
|
5
5
|
import { p as N, s as I, v as R, w as b } from "./utils-BPdU4_1q.js";
|
|
6
6
|
import { P as j } from "./index-DRP1yTKe.js";
|
|
7
|
-
import { B as P } from "./style-
|
|
7
|
+
import { B as P } from "./style-DAn9Ifqe.js";
|
|
8
8
|
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
9
|
import { M as T } from "./consts-BuFChS64.js";
|
|
10
10
|
import { S as $ } from "./suspense-large-DrD8xVZi.js";
|
|
@@ -35,6 +35,7 @@ const z = w.div`
|
|
|
35
35
|
height: auto;
|
|
36
36
|
max-height: 9.5rem;
|
|
37
37
|
max-width: 17.75rem;
|
|
38
|
+
min-width: 17.75rem;
|
|
38
39
|
border-radius: 0.75rem;
|
|
39
40
|
}
|
|
40
41
|
|
|
@@ -110,6 +111,7 @@ const z = w.div`
|
|
|
110
111
|
|
|
111
112
|
& .wrapper__image {
|
|
112
113
|
max-width: 100%;
|
|
114
|
+
min-width: 100%;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
& .desktop-only {
|
|
@@ -154,13 +156,13 @@ const z = w.div`
|
|
|
154
156
|
}
|
|
155
157
|
`, B = h(
|
|
156
158
|
({
|
|
157
|
-
title:
|
|
159
|
+
title: d,
|
|
158
160
|
imageUrl: n,
|
|
159
161
|
options: a,
|
|
160
162
|
publishedAt: o,
|
|
161
163
|
timeToReadText: l = "{0} min read",
|
|
162
|
-
timeToRead:
|
|
163
|
-
numberOfLikes:
|
|
164
|
+
timeToRead: m = 0,
|
|
165
|
+
numberOfLikes: p = 0,
|
|
164
166
|
numberOfComments: f = 0,
|
|
165
167
|
isBookmarked: g = !1,
|
|
166
168
|
onSelectCard: _ = () => {
|
|
@@ -173,7 +175,7 @@ const z = w.div`
|
|
|
173
175
|
/* @__PURE__ */ t(j, { src: n, className: "wrapper__image" }),
|
|
174
176
|
/* @__PURE__ */ i("div", { className: "wrapper__content", children: [
|
|
175
177
|
/* @__PURE__ */ i("div", { className: "wrapper__subcontent", children: [
|
|
176
|
-
/* @__PURE__ */ t("div", { className: "wrapper__title", children:
|
|
178
|
+
/* @__PURE__ */ t("div", { className: "wrapper__title", children: d }),
|
|
177
179
|
/* @__PURE__ */ i("div", { className: "wrapper__tags-action", children: [
|
|
178
180
|
/* @__PURE__ */ t("div", { className: "wrapper__tags", children: a && (a == null ? void 0 : a.map((r, y) => /* @__PURE__ */ t(
|
|
179
181
|
P,
|
|
@@ -215,11 +217,11 @@ const z = w.div`
|
|
|
215
217
|
/* @__PURE__ */ i("div", { className: "info__content", children: [
|
|
216
218
|
/* @__PURE__ */ t("div", { className: "info__text", children: `${I(
|
|
217
219
|
o
|
|
218
|
-
)} • ${R(l,
|
|
220
|
+
)} • ${R(l, m)}` }),
|
|
219
221
|
/* @__PURE__ */ i("div", { className: "info__text", children: [
|
|
220
222
|
/* @__PURE__ */ i("div", { children: [
|
|
221
223
|
/* @__PURE__ */ t(u, { icon: " mng-lnc-thumbs-up--filled", sizeInUnits: "1rem" }),
|
|
222
|
-
b(
|
|
224
|
+
b(p)
|
|
223
225
|
] }),
|
|
224
226
|
/* @__PURE__ */ i("div", { children: [
|
|
225
227
|
/* @__PURE__ */ t(u, { icon: " mng-lnc-messages-filled", sizeInUnits: "1rem" }),
|
|
@@ -282,7 +284,7 @@ const z = w.div`
|
|
|
282
284
|
}
|
|
283
285
|
`, L = v(B), F = h(
|
|
284
286
|
({
|
|
285
|
-
timeToReadText:
|
|
287
|
+
timeToReadText: d = "{0} min read",
|
|
286
288
|
items: n,
|
|
287
289
|
onSelectCard: a = () => {
|
|
288
290
|
},
|
|
@@ -290,8 +292,8 @@ const z = w.div`
|
|
|
290
292
|
},
|
|
291
293
|
onBookmark: l = () => {
|
|
292
294
|
},
|
|
293
|
-
isLoading:
|
|
294
|
-
getImage:
|
|
295
|
+
isLoading: m = !1,
|
|
296
|
+
getImage: p = () => {
|
|
295
297
|
},
|
|
296
298
|
isSeparated: f = !0
|
|
297
299
|
}, g) => {
|
|
@@ -302,7 +304,7 @@ const z = w.div`
|
|
|
302
304
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
303
305
|
options: e == null ? void 0 : e.options,
|
|
304
306
|
publishedAt: e == null ? void 0 : e.publishedAt,
|
|
305
|
-
timeToReadText:
|
|
307
|
+
timeToReadText: d,
|
|
306
308
|
timeToRead: e == null ? void 0 : e.timeToRead,
|
|
307
309
|
numberOfLikes: e == null ? void 0 : e.numberOfLikes,
|
|
308
310
|
numberOfComments: e == null ? void 0 : e.numberOfComments,
|
|
@@ -311,14 +313,14 @@ const z = w.div`
|
|
|
311
313
|
onSelectCard: () => a == null ? void 0 : a(e),
|
|
312
314
|
onShare: () => o == null ? void 0 : o(e),
|
|
313
315
|
onBookmark: () => l == null ? void 0 : l(e),
|
|
314
|
-
imageUrl:
|
|
316
|
+
imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null
|
|
315
317
|
},
|
|
316
318
|
`blog-card-item__${s + 1}`
|
|
317
319
|
)), [n]);
|
|
318
320
|
return /* @__PURE__ */ t(C, { className: f ? "separated" : "", children: /* @__PURE__ */ t(
|
|
319
321
|
$,
|
|
320
322
|
{
|
|
321
|
-
isLoading:
|
|
323
|
+
isLoading: m,
|
|
322
324
|
limit: 5,
|
|
323
325
|
keyPrefix: "blog-section",
|
|
324
326
|
children: _
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-DmMdPm9O.cjs"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-DmMdPm9O.cjs"),v=require("./style-DaT7Beup.cjs"),T=require("./Button.cjs"),O=require("./index-DiIeF_76.cjs"),A=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,y=w.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
& img {
|
|
25
25
|
max-height: 11.0625rem;
|
|
26
26
|
min-height: 11.0625rem;
|
|
27
|
-
object-fit:
|
|
27
|
+
object-fit: cover;
|
|
28
28
|
width: 100%;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -107,4 +107,4 @@
|
|
|
107
107
|
align-items: center;
|
|
108
108
|
gap: 1rem;
|
|
109
109
|
}
|
|
110
|
-
`,$=u.forwardRef((i,o)=>{const{title:s,imageUrl:m,text:d,numberOfLikes:n,numberOfComments:h,timeToRead:p,publishedAt:c,tags:a,onCardClick:j,timeToReadText:f="{0} min read"}=i;return t.jsxs(
|
|
110
|
+
`,$=u.forwardRef((i,o)=>{const{title:s,imageUrl:m,text:d,numberOfLikes:n,numberOfComments:h,timeToRead:p,publishedAt:c,tags:a,onCardClick:j,timeToReadText:f="{0} min read"}=i;return t.jsxs(y,{ref:o,className:"blog-card",onClick:j,children:[t.jsx(O.ProductImageWrapper,{src:m}),t.jsxs(S,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[r.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),p&&f?`${r.formatString(f,p)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:r.getRoundedNumber(n)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:r.getRoundedNumber(h)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:s}),t.jsx("div",{className:"text-wr",children:d})]}),a&&t.jsx("div",{className:"tags-wr",children:a==null?void 0:a.map((l,b)=>t.jsx(v.BlogTag,{color:l==null?void 0:l.color,children:l==null?void 0:l.name},b))})]})}),D=u.forwardRef(({},i)=>t.jsxs(y,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsxs(S,{children:[t.jsx("div",{className:"info-wr"}),t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"info-wr-skeleton"})]})]})),q=({limit:i=3,isLoading:o=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:i},(m,d)=>t.jsx(D,{isLoading:o},`${s}-skeleton-product-card-${d}`))}),B=({children:i,fallbackComponent:o=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:m,keyPrefix:d})=>t.jsx(u.Suspense,{fallbackComponent:o,children:s===!0?t.jsx(q,{isLoading:s,limit:m,keyPrefix:d}):i}),N=u.memo($),L=u.forwardRef((i,o)=>{const{icon:s,title:m,onButtonAction:d,items:n,buttonText:h,timeToReadText:p,limit:c=3,onSelectCard:a=()=>{},isLoading:j=!1,buttonLink:f,getImage:l=()=>{}}=i,b=R.useDetectMobile(),C=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?n==null?void 0:n.map((e,g)=>t.jsx(N,{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:p,tags:e==null?void 0:e.tags,onCardClick:()=>a(e==null?void 0:e.titleSlug),imageUrl:l(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},g)):n==null?void 0:n.slice(0,c).map((e,g)=>t.jsx(N,{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:p,onCardClick:()=>a(e==null?void 0:e.titleSlug)},g))}),[n,b,c,a]);return t.jsxs(v.RegulatTitleSectionWrapper,{ref:o,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[r.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:m})]}),r.isDefinedNotEmptyString(h)&&r.isDefinedNotEmptyString(f)&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var g;(g=e==null?void 0:e.target)==null||g.blur(),d(f)},borderRadius:"curved",className:"button-link",children:h})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:j,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
|
|
@@ -4,7 +4,7 @@ import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
4
4
|
import { M as T } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { o as k, p as P, v as z, s as M, w as C, k as w } from "./utils-BPdU4_1q.js";
|
|
7
|
-
import { B as I, R as U } from "./style-
|
|
7
|
+
import { B as I, R as U } from "./style-DAn9Ifqe.js";
|
|
8
8
|
import W from "./Button.js";
|
|
9
9
|
import { P as j } from "./index-DRP1yTKe.js";
|
|
10
10
|
const E = y.div`
|
|
@@ -33,7 +33,7 @@ const E = y.div`
|
|
|
33
33
|
& img {
|
|
34
34
|
max-height: 11.0625rem;
|
|
35
35
|
min-height: 11.0625rem;
|
|
36
|
-
object-fit:
|
|
36
|
+
object-fit: cover;
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),m=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),q=require("./useDetectMobile-zkbzoOGV.cjs"),p=require("./utils-DmMdPm9O.cjs"),S=require("./style-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),q=require("./useDetectMobile-zkbzoOGV.cjs"),p=require("./utils-DmMdPm9O.cjs"),S=require("./style-DaT7Beup.cjs"),R=require("./Button.cjs"),B=require("./Link.cjs"),M=require("./index-DiIeF_76.cjs"),T=h.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -19,13 +19,10 @@
|
|
|
19
19
|
min-height: 21.5625rem;
|
|
20
20
|
cursor: pointer;
|
|
21
21
|
|
|
22
|
-
&:hover {
|
|
23
|
-
}
|
|
24
|
-
|
|
25
22
|
& img {
|
|
26
23
|
max-height: 12.5625rem;
|
|
27
24
|
min-height: 12.5625rem;
|
|
28
|
-
object-fit:
|
|
25
|
+
object-fit: cover;
|
|
29
26
|
width: 100%;
|
|
30
27
|
}
|
|
31
28
|
|
|
@@ -4,7 +4,7 @@ import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
4
4
|
import { M as k } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as R } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { o as z, p as I, k as b } from "./utils-BPdU4_1q.js";
|
|
7
|
-
import { B as U, R as W } from "./style-
|
|
7
|
+
import { B as U, R as W } from "./style-DAn9Ifqe.js";
|
|
8
8
|
import j from "./Button.js";
|
|
9
9
|
import A from "./Link.js";
|
|
10
10
|
import { P as E } from "./index-DRP1yTKe.js";
|
|
@@ -29,13 +29,10 @@ const L = f.div`
|
|
|
29
29
|
min-height: 21.5625rem;
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
|
|
32
|
-
&:hover {
|
|
33
|
-
}
|
|
34
|
-
|
|
35
32
|
& img {
|
|
36
33
|
max-height: 12.5625rem;
|
|
37
34
|
min-height: 12.5625rem;
|
|
38
|
-
object-fit:
|
|
35
|
+
object-fit: cover;
|
|
39
36
|
width: 100%;
|
|
40
37
|
}
|
|
41
38
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),d=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),c=require("./utils-DmMdPm9O.cjs"),M=require("./style-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),d=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./consts-goSZX3xP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),c=require("./utils-DmMdPm9O.cjs"),M=require("./style-DaT7Beup.cjs"),R=require("./Button.cjs"),W=require("./Link.cjs"),A=require("./index-DiIeF_76.cjs"),I=require("./index-D0xZLbyl.cjs"),P=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -4,7 +4,7 @@ import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
4
4
|
import { M as C } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as R } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import { o as u, p as j, k as S } from "./utils-BPdU4_1q.js";
|
|
7
|
-
import { T as E } from "./style-
|
|
7
|
+
import { T as E } from "./style-DAn9Ifqe.js";
|
|
8
8
|
import F from "./Button.js";
|
|
9
9
|
import L from "./Link.js";
|
|
10
10
|
import { P as U } from "./index-DRP1yTKe.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),U=require("./Button.cjs"),y=require("./utils-DmMdPm9O.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./style-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./consts-goSZX3xP.cjs"),U=require("./Button.cjs"),y=require("./utils-DmMdPm9O.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),F=require("./style-DaT7Beup.cjs"),h=require("./suspense-product-card-detailed-D0jNIBlf.cjs"),T=require("./index-D0xZLbyl.cjs"),E=v.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: ${r=>(r==null?void 0:r.gap)||"1.25rem"};
|
|
@@ -5,7 +5,7 @@ import { M as B } from "./consts-BuFChS64.js";
|
|
|
5
5
|
import E from "./Button.js";
|
|
6
6
|
import { k as f } from "./utils-BPdU4_1q.js";
|
|
7
7
|
import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
|
-
import { T as $ } from "./style-
|
|
8
|
+
import { T as $ } from "./style-DAn9Ifqe.js";
|
|
9
9
|
import { D as L, S as O } from "./suspense-product-card-detailed-CFZchhUK.js";
|
|
10
10
|
import { S as R } from "./index-BRciSeV3.js";
|
|
11
11
|
const W = F.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-DaT7Beup.cjs"),o=require("./utils-DmMdPm9O.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as h } from "react";
|
|
3
3
|
import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { R as k } from "./style-
|
|
4
|
+
import { R as k } from "./style-DAn9Ifqe.js";
|
|
5
5
|
import { o as b, q as G, G as S, k as u } from "./utils-BPdU4_1q.js";
|
|
6
6
|
import N from "./Button.js";
|
|
7
7
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),v=require("./useDetectMobile-zkbzoOGV.cjs"),y=require("./style-DaT7Beup.cjs"),l=require("./utils-DmMdPm9O.cjs"),P=require("./index-DiIeF_76.cjs"),S=u.styled.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 22.5rem;
|
|
4
4
|
min-height: 22.5rem;
|
|
@@ -3,7 +3,7 @@ import { forwardRef as u, Suspense as C, memo as N, useMemo as S } from "react";
|
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as k } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { R as U } from "./style-
|
|
6
|
+
import { R as U } from "./style-DAn9Ifqe.js";
|
|
7
7
|
import { p as I, o as b, l as M, k as W } from "./utils-BPdU4_1q.js";
|
|
8
8
|
import { P as j } from "./index-DRP1yTKe.js";
|
|
9
9
|
const E = p.div`
|