@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,32 +1,24 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),s=require("react"),j=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),l=require("./breakpoints-CcVm-gVm.cjs"),h=require("./useDetectMobile-DYV6V1yw.cjs"),$=require("./index-D4OKsSqi.cjs"),b=require("./style-CQdEALKR.cjs"),q=j.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media ${
|
|
6
|
+
@media ${l.down("M")} {
|
|
7
7
|
grid-template-columns: repeat(2, 1fr);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@media ${
|
|
10
|
+
@media ${l.down("S")} {
|
|
11
11
|
grid-template-columns: repeat(2, 1fr);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@media ${
|
|
14
|
+
@media ${l.down("XS")} {
|
|
15
15
|
grid-template-columns: repeat(1, 1fr);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
@media ${
|
|
17
|
+
`,w=j.styled(b.SkeletonAnimationContainer)`
|
|
18
|
+
@media ${l.down("S")} {
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
|
|
21
21
|
& > div {
|
|
22
|
-
background: linear-gradient(
|
|
23
|
-
to right,
|
|
24
|
-
transparent 0%,
|
|
25
|
-
#f4f6fb 40%,
|
|
26
|
-
#f4f6fb 100%
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
box-shadow: none;
|
|
30
22
|
}
|
|
31
23
|
}
|
|
32
|
-
`,
|
|
24
|
+
`,y=({keyPrefix:i})=>t.jsx(w,{children:[1,2].map(n=>t.jsx(b.SkeletonRect,{width:"100%",height:"11.25rem"},`${i}-${n}`))}),L=({keyPrefix:i,isLoading:n=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(s.Suspense,{fallbackComponent:r,children:n===!0?t.jsx(y,{keyPrefix:i}):o}),S=s.memo($.BlogCardLarge),M=s.forwardRef((i,n)=>{const{items:r,onSelectCard:o=()=>{},limit:a=2,isLoading:f=!1,getImage:m=()=>{},componentName:u,LinkComponent:g}=i,p=h.useDetectMobile(),C=s.useMemo(()=>t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,c)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:m(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(k,d)=>o(e==null?void 0:e.titleSlug,d),metadata:{name:u,accessor:e==null?void 0:e.accessor},LinkComponent:g},c)):r==null?void 0:r.slice(0,a).map((e,c)=>t.jsx(S,{title:e==null?void 0:e.title,imageUrl:m(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(k,d)=>o(e==null?void 0:e.titleSlug,d),metadata:{name:u,accessor:e==null?void 0:e.accessor},LinkComponent:g},c))}),[r,p,a]);return t.jsx(L,{isLoading:f,keyPrefix:"blogs-large-skeleton",children:t.jsx(q,{ref:n,limit:a,children:C})})});module.exports=M;
|
|
@@ -1,110 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Suspense as
|
|
3
|
-
import { s as
|
|
4
|
-
import { d as
|
|
5
|
-
import { u as
|
|
1
|
+
import { jsx as t, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as $, memo as b, forwardRef as B, useMemo as L } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
+
import { d as l } from "./breakpoints-BubDitvo.js";
|
|
5
|
+
import { u as M } from "./useDetectMobile-B0Jog4jQ.js";
|
|
6
6
|
import { B as T } from "./index-rhYVjszT.js";
|
|
7
|
-
import { S as U, a as
|
|
8
|
-
const
|
|
7
|
+
import { S as U, a as w } from "./style-BFPpppS9.js";
|
|
8
|
+
const y = f.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
|
|
11
11
|
gap: 1.25rem;
|
|
12
12
|
|
|
13
|
-
@media ${
|
|
13
|
+
@media ${l("M")} {
|
|
14
14
|
grid-template-columns: repeat(2, 1fr);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
@media ${
|
|
17
|
+
@media ${l("S")} {
|
|
18
18
|
grid-template-columns: repeat(2, 1fr);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
@media ${
|
|
21
|
+
@media ${l("XS")} {
|
|
22
22
|
grid-template-columns: repeat(1, 1fr);
|
|
23
23
|
}
|
|
24
|
-
`, v =
|
|
25
|
-
@media ${
|
|
24
|
+
`, v = f(U)`
|
|
25
|
+
@media ${l("S")} {
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
|
|
28
28
|
& > div {
|
|
29
|
-
background: linear-gradient(
|
|
30
|
-
to right,
|
|
31
|
-
transparent 0%,
|
|
32
|
-
#f4f6fb 40%,
|
|
33
|
-
#f4f6fb 100%
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
box-shadow: none;
|
|
37
29
|
}
|
|
38
30
|
}
|
|
39
|
-
`,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
),
|
|
48
|
-
/* @__PURE__ */ t(
|
|
49
|
-
p,
|
|
50
|
-
{
|
|
51
|
-
height: "11.25rem",
|
|
52
|
-
borderRadius: "0.75rem"
|
|
53
|
-
},
|
|
54
|
-
`${o}-2`
|
|
55
|
-
)
|
|
56
|
-
] }), z = ({
|
|
31
|
+
`, z = ({ keyPrefix: o }) => /* @__PURE__ */ t(v, { children: [1, 2].map((i) => /* @__PURE__ */ t(
|
|
32
|
+
w,
|
|
33
|
+
{
|
|
34
|
+
width: "100%",
|
|
35
|
+
height: "11.25rem"
|
|
36
|
+
},
|
|
37
|
+
`${o}-${i}`
|
|
38
|
+
)) }), P = ({
|
|
57
39
|
keyPrefix: o,
|
|
58
|
-
isLoading:
|
|
40
|
+
isLoading: i = !1,
|
|
59
41
|
fallbackComponent: r = /* @__PURE__ */ t(S, {}),
|
|
60
|
-
children:
|
|
61
|
-
}) => /* @__PURE__ */ t(
|
|
42
|
+
children: a
|
|
43
|
+
}) => /* @__PURE__ */ t($, { fallbackComponent: r, children: i === !0 ? /* @__PURE__ */ t(z, { keyPrefix: o }) : a }), p = b(T), N = B((o, i) => {
|
|
62
44
|
const {
|
|
63
45
|
items: r,
|
|
64
|
-
onSelectCard:
|
|
46
|
+
onSelectCard: a = () => {
|
|
65
47
|
},
|
|
66
48
|
limit: n = 2,
|
|
67
|
-
isLoading:
|
|
68
|
-
getImage:
|
|
49
|
+
isLoading: C = !1,
|
|
50
|
+
getImage: c = () => {
|
|
69
51
|
},
|
|
70
|
-
componentName:
|
|
52
|
+
componentName: d,
|
|
71
53
|
LinkComponent: u
|
|
72
|
-
} = o, g =
|
|
73
|
-
|
|
54
|
+
} = o, g = M(), h = L(() => /* @__PURE__ */ t(S, { children: g === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
|
|
55
|
+
p,
|
|
74
56
|
{
|
|
75
57
|
title: e == null ? void 0 : e.title,
|
|
76
|
-
imageUrl:
|
|
58
|
+
imageUrl: c(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
77
59
|
text: e == null ? void 0 : e.description,
|
|
78
60
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
79
61
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
80
|
-
onCardClick: (k, s) =>
|
|
81
|
-
metadata: { name:
|
|
62
|
+
onCardClick: (k, s) => a(e == null ? void 0 : e.titleSlug, s),
|
|
63
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
82
64
|
LinkComponent: u
|
|
83
65
|
},
|
|
84
66
|
m
|
|
85
67
|
)) : r == null ? void 0 : r.slice(0, n).map((e, m) => /* @__PURE__ */ t(
|
|
86
|
-
|
|
68
|
+
p,
|
|
87
69
|
{
|
|
88
70
|
title: e == null ? void 0 : e.title,
|
|
89
|
-
imageUrl:
|
|
71
|
+
imageUrl: c(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
|
|
90
72
|
text: e == null ? void 0 : e.description,
|
|
91
73
|
titleSlug: e == null ? void 0 : e.titleSlug,
|
|
92
74
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
93
|
-
onCardClick: (k, s) =>
|
|
94
|
-
metadata: { name:
|
|
75
|
+
onCardClick: (k, s) => a(e == null ? void 0 : e.titleSlug, s),
|
|
76
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
95
77
|
LinkComponent: u
|
|
96
78
|
},
|
|
97
79
|
m
|
|
98
80
|
)) }), [r, g, n]);
|
|
99
81
|
return /* @__PURE__ */ t(
|
|
100
|
-
|
|
82
|
+
P,
|
|
101
83
|
{
|
|
102
|
-
isLoading:
|
|
84
|
+
isLoading: C,
|
|
103
85
|
keyPrefix: "blogs-large-skeleton",
|
|
104
|
-
children: /* @__PURE__ */ t(
|
|
86
|
+
children: /* @__PURE__ */ t(y, { ref: i, limit: n, children: h })
|
|
105
87
|
}
|
|
106
88
|
);
|
|
107
89
|
});
|
|
108
90
|
export {
|
|
109
|
-
|
|
91
|
+
N as default
|
|
110
92
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),p=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),g=require("./utils-CITgSxXe.cjs"),C=require("./style-Boz6dk5s.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-DsINTjQk.cjs"),D=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),S=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),$=require("./useDetectMobile-DYV6V1yw.cjs"),g=require("./utils-CITgSxXe.cjs"),C=require("./style-Boz6dk5s.cjs"),B=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-DsINTjQk.cjs"),D=require("./index-BUdvfHpp.cjs"),L=S.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -8,7 +8,7 @@ import { B as j, R as D } from "./style-D54KOzZj.js";
|
|
|
8
8
|
import I from "./Button.js";
|
|
9
9
|
import A from "./Link.js";
|
|
10
10
|
import { P as G } from "./index-DEypPQRI.js";
|
|
11
|
-
import { S as E } from "./index-
|
|
11
|
+
import { S as E } from "./index-VTkAaA-n.js";
|
|
12
12
|
const F = S.div`
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),h=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),y=require("./useDetectMobile-DYV6V1yw.cjs"),j=require("./utils-CITgSxXe.cjs"),k=require("./Button.cjs"),S=require("./index-DsINTjQk.cjs"),b=require("./style-CQdEALKR.cjs"),$=h.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
margin: auto;
|
|
6
6
|
width: fit-content;
|
|
7
7
|
|
|
8
|
-
@media ${
|
|
8
|
+
@media ${c.down("M")} {
|
|
9
9
|
grid-template-columns: repeat(2, 1fr);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@media ${
|
|
12
|
+
@media ${c.down("S")} {
|
|
13
13
|
grid-template-columns: repeat(2, 1fr);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@media ${
|
|
16
|
+
@media ${c.down("XS")} {
|
|
17
17
|
grid-template-columns: repeat(1, 1fr);
|
|
18
18
|
}
|
|
19
|
-
`,v=
|
|
19
|
+
`,v=h.styled.a`
|
|
20
20
|
text-decoration: none;
|
|
21
21
|
color: var(--gray-950);
|
|
22
22
|
display: flex;
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
object-fit: cover;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@media ${
|
|
57
|
+
@media ${c.down("S")} {
|
|
58
58
|
max-width: unset;
|
|
59
59
|
}
|
|
60
|
-
`,
|
|
60
|
+
`,q=h.styled.div`
|
|
61
61
|
text-align: center;
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
@@ -78,23 +78,10 @@
|
|
|
78
78
|
font-weight: 400;
|
|
79
79
|
line-height: 1.25rem;
|
|
80
80
|
letter-spacing: 0.0156rem;
|
|
81
|
-
${
|
|
81
|
+
${j.truncateTextInRows(3)}
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
84
|
-
@media ${
|
|
83
|
+
`,w=g.forwardRef((n,o)=>{const{title:r,image:s,text:m,buttonText:f,onCardClick:d,metadata:i,link:p,LinkComponent:e}=n,l=e||"a",u=g.useRef(),a=C=>{d(C,u)};return t.jsxs(v,{ref:u,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:a,as:l,...e?{to:`/${p}`}:{href:`/${p}`},children:[t.jsx(S.ProductImageWrapper,{src:s}),t.jsxs(q,{children:[t.jsx("div",{className:"text-wr-title",children:r}),t.jsx("div",{className:"text-wr",children:m})]}),t.jsx(k,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:a,size:"medium",children:f})]})}),R=h.styled(b.SkeletonAnimationContainer)`
|
|
84
|
+
@media ${c.down("S")} {
|
|
85
85
|
flex-direction: column;
|
|
86
|
-
|
|
87
|
-
& > div {
|
|
88
|
-
width: 100%;
|
|
89
|
-
|
|
90
|
-
background: linear-gradient(
|
|
91
|
-
to right,
|
|
92
|
-
transparent 0%,
|
|
93
|
-
#f4f6fb 40%,
|
|
94
|
-
#f4f6fb 100%
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
box-shadow: none;
|
|
98
|
-
}
|
|
99
86
|
}
|
|
100
|
-
`,T=({keyPrefix:
|
|
87
|
+
`,T=({keyPrefix:n})=>t.jsx(R,{justifyContent:"center",alignItems:"center",children:[1,2,3].map(o=>t.jsx(b.SkeletonRect,{height:"24.75rem",width:"18.5rem"},`${n}-${o}`))}),B=({keyPrefix:n,isLoading:o=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:s})=>t.jsx(g.Suspense,{fallbackComponent:r,children:o===!0?t.jsx(T,{keyPrefix:n}):s}),z=g.forwardRef((n,o)=>{const{items:r,limit:s=3,onSelectCard:m=()=>{},isLoading:f=!1,componentName:d,LinkComponent:i}=n,p=y.useDetectMobile();return t.jsx(B,{isLoading:f,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx($,{ref:o,limit:s,children:t.jsx(t.Fragment,{children:p===!0?r==null?void 0:r.map((e,l)=>t.jsx(w,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,a)=>m(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},l)):r==null?void 0:r.slice(0,s).map((e,l)=>t.jsx(w,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(u,a)=>m(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:i},l))})})})});module.exports=z;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { d as
|
|
5
|
-
import { u as
|
|
6
|
-
import { n as
|
|
1
|
+
import { jsxs as h, jsx as t, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useRef as S, Suspense as y } from "react";
|
|
3
|
+
import { s as f } from "./emotion-styled.browser.esm-DfbrHHed.js";
|
|
4
|
+
import { d as s } from "./breakpoints-BubDitvo.js";
|
|
5
|
+
import { u as $ } from "./useDetectMobile-B0Jog4jQ.js";
|
|
6
|
+
import { n as v } from "./utils-MoGhNMmj.js";
|
|
7
7
|
import T from "./Button.js";
|
|
8
|
-
import { P as
|
|
9
|
-
import { S as
|
|
10
|
-
const
|
|
8
|
+
import { P as R } from "./index-DEypPQRI.js";
|
|
9
|
+
import { S as B, a as j } from "./style-BFPpppS9.js";
|
|
10
|
+
const z = f.div`
|
|
11
11
|
display: grid;
|
|
12
|
-
grid-template-columns: ${(
|
|
12
|
+
grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
|
|
13
13
|
gap: 1.25rem;
|
|
14
14
|
margin: auto;
|
|
15
15
|
width: fit-content;
|
|
16
16
|
|
|
17
|
-
@media ${
|
|
17
|
+
@media ${s("M")} {
|
|
18
18
|
grid-template-columns: repeat(2, 1fr);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
@media ${
|
|
21
|
+
@media ${s("S")} {
|
|
22
22
|
grid-template-columns: repeat(2, 1fr);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
@media ${
|
|
25
|
+
@media ${s("XS")} {
|
|
26
26
|
grid-template-columns: repeat(1, 1fr);
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
28
|
+
`, N = f.a`
|
|
29
29
|
text-decoration: none;
|
|
30
30
|
color: var(--gray-950);
|
|
31
31
|
display: flex;
|
|
@@ -63,10 +63,10 @@ const j = h.div`
|
|
|
63
63
|
object-fit: cover;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
@media ${
|
|
66
|
+
@media ${s("S")} {
|
|
67
67
|
max-width: unset;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`, W = f.div`
|
|
70
70
|
text-align: center;
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
@@ -87,36 +87,36 @@ const j = h.div`
|
|
|
87
87
|
font-weight: 400;
|
|
88
88
|
line-height: 1.25rem;
|
|
89
89
|
letter-spacing: 0.0156rem;
|
|
90
|
-
${
|
|
90
|
+
${v(3)}
|
|
91
91
|
}
|
|
92
|
-
`,
|
|
92
|
+
`, C = w((n, o) => {
|
|
93
93
|
const {
|
|
94
|
-
title:
|
|
95
|
-
image:
|
|
96
|
-
text:
|
|
97
|
-
buttonText:
|
|
98
|
-
onCardClick:
|
|
94
|
+
title: r,
|
|
95
|
+
image: a,
|
|
96
|
+
text: c,
|
|
97
|
+
buttonText: u,
|
|
98
|
+
onCardClick: d,
|
|
99
99
|
metadata: i,
|
|
100
100
|
link: p,
|
|
101
101
|
LinkComponent: e
|
|
102
|
-
} =
|
|
103
|
-
|
|
102
|
+
} = n, m = e || "a", g = S(), l = (k) => {
|
|
103
|
+
d(k, g);
|
|
104
104
|
};
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
|
|
105
|
+
return /* @__PURE__ */ h(
|
|
106
|
+
N,
|
|
107
107
|
{
|
|
108
108
|
ref: g,
|
|
109
109
|
name: i == null ? void 0 : i.name,
|
|
110
110
|
"data-accessor": i == null ? void 0 : i.accessor,
|
|
111
111
|
className: "blog-card",
|
|
112
|
-
onClick:
|
|
112
|
+
onClick: l,
|
|
113
113
|
as: m,
|
|
114
114
|
...e ? { to: `/${p}` } : { href: `/${p}` },
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */ t(
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */ t("div", { className: "text-wr-title", children:
|
|
119
|
-
/* @__PURE__ */ t("div", { className: "text-wr", children:
|
|
116
|
+
/* @__PURE__ */ t(R, { src: a }),
|
|
117
|
+
/* @__PURE__ */ h(W, { children: [
|
|
118
|
+
/* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
|
|
119
|
+
/* @__PURE__ */ t("div", { className: "text-wr", children: c })
|
|
120
120
|
] }),
|
|
121
121
|
/* @__PURE__ */ t(
|
|
122
122
|
T,
|
|
@@ -125,101 +125,67 @@ const j = h.div`
|
|
|
125
125
|
color: "gray",
|
|
126
126
|
type: "button",
|
|
127
127
|
btnType: "outline",
|
|
128
|
-
onClick:
|
|
128
|
+
onClick: l,
|
|
129
129
|
size: "medium",
|
|
130
|
-
children:
|
|
130
|
+
children: u
|
|
131
131
|
}
|
|
132
132
|
)
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
|
-
}),
|
|
137
|
-
@media ${
|
|
136
|
+
}), I = f(B)`
|
|
137
|
+
@media ${s("S")} {
|
|
138
138
|
flex-direction: column;
|
|
139
|
-
|
|
140
|
-
& > div {
|
|
141
|
-
width: 100%;
|
|
142
|
-
|
|
143
|
-
background: linear-gradient(
|
|
144
|
-
to right,
|
|
145
|
-
transparent 0%,
|
|
146
|
-
#f4f6fb 40%,
|
|
147
|
-
#f4f6fb 100%
|
|
148
|
-
);
|
|
149
|
-
|
|
150
|
-
box-shadow: none;
|
|
151
|
-
}
|
|
152
139
|
}
|
|
153
|
-
`,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
/* @__PURE__ */ t(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
height: "24.75rem",
|
|
167
|
-
width: "18.5rem",
|
|
168
|
-
borderRadius: "0.75rem"
|
|
169
|
-
},
|
|
170
|
-
`${r}-2`
|
|
171
|
-
),
|
|
172
|
-
/* @__PURE__ */ t(
|
|
173
|
-
u,
|
|
174
|
-
{
|
|
175
|
-
height: "24.75rem",
|
|
176
|
-
width: "18.5rem",
|
|
177
|
-
borderRadius: "0.75rem"
|
|
178
|
-
},
|
|
179
|
-
`${r}-3`
|
|
180
|
-
)
|
|
181
|
-
] }), M = ({
|
|
182
|
-
keyPrefix: r,
|
|
183
|
-
isLoading: s = !1,
|
|
184
|
-
fallbackComponent: n = /* @__PURE__ */ t(C, {}),
|
|
185
|
-
children: o
|
|
186
|
-
}) => /* @__PURE__ */ t($, { fallbackComponent: n, children: s === !0 ? /* @__PURE__ */ t(I, { keyPrefix: r }) : o }), J = S((r, s) => {
|
|
140
|
+
`, L = ({ keyPrefix: n }) => /* @__PURE__ */ t(I, { justifyContent: "center", alignItems: "center", children: [1, 2, 3].map((o) => /* @__PURE__ */ t(
|
|
141
|
+
j,
|
|
142
|
+
{
|
|
143
|
+
height: "24.75rem",
|
|
144
|
+
width: "18.5rem"
|
|
145
|
+
},
|
|
146
|
+
`${n}-${o}`
|
|
147
|
+
)) }), M = ({
|
|
148
|
+
keyPrefix: n,
|
|
149
|
+
isLoading: o = !1,
|
|
150
|
+
fallbackComponent: r = /* @__PURE__ */ t(b, {}),
|
|
151
|
+
children: a
|
|
152
|
+
}) => /* @__PURE__ */ t(y, { fallbackComponent: r, children: o === !0 ? /* @__PURE__ */ t(L, { keyPrefix: n }) : a }), J = w((n, o) => {
|
|
187
153
|
const {
|
|
188
|
-
items:
|
|
189
|
-
limit:
|
|
190
|
-
onSelectCard:
|
|
154
|
+
items: r,
|
|
155
|
+
limit: a = 3,
|
|
156
|
+
onSelectCard: c = () => {
|
|
191
157
|
},
|
|
192
|
-
isLoading:
|
|
193
|
-
componentName:
|
|
158
|
+
isLoading: u = !1,
|
|
159
|
+
componentName: d,
|
|
194
160
|
LinkComponent: i
|
|
195
|
-
} =
|
|
161
|
+
} = n, p = $();
|
|
196
162
|
return /* @__PURE__ */ t(
|
|
197
163
|
M,
|
|
198
164
|
{
|
|
199
|
-
isLoading:
|
|
165
|
+
isLoading: u,
|
|
200
166
|
keyPrefix: "blogs-simple-centered-skeleton",
|
|
201
|
-
children: /* @__PURE__ */ t(
|
|
202
|
-
|
|
167
|
+
children: /* @__PURE__ */ t(z, { ref: o, limit: a, children: /* @__PURE__ */ t(b, { children: p === !0 ? r == null ? void 0 : r.map((e, m) => /* @__PURE__ */ t(
|
|
168
|
+
C,
|
|
203
169
|
{
|
|
204
170
|
title: e == null ? void 0 : e.title,
|
|
205
171
|
image: (e == null ? void 0 : e.image) || null,
|
|
206
172
|
text: e == null ? void 0 : e.text,
|
|
207
173
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
208
|
-
onCardClick: (g,
|
|
209
|
-
metadata: { name:
|
|
174
|
+
onCardClick: (g, l) => c(e, l),
|
|
175
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
210
176
|
link: e == null ? void 0 : e.link,
|
|
211
177
|
LinkComponent: i
|
|
212
178
|
},
|
|
213
179
|
m
|
|
214
|
-
)) :
|
|
215
|
-
|
|
180
|
+
)) : r == null ? void 0 : r.slice(0, a).map((e, m) => /* @__PURE__ */ t(
|
|
181
|
+
C,
|
|
216
182
|
{
|
|
217
183
|
title: e == null ? void 0 : e.title,
|
|
218
184
|
image: (e == null ? void 0 : e.image) || null,
|
|
219
185
|
text: e == null ? void 0 : e.text,
|
|
220
186
|
buttonText: e == null ? void 0 : e.buttonText,
|
|
221
|
-
onCardClick: (g,
|
|
222
|
-
metadata: { name:
|
|
187
|
+
onCardClick: (g, l) => c(e, l),
|
|
188
|
+
metadata: { name: d, accessor: e == null ? void 0 : e.accessor },
|
|
223
189
|
link: e == null ? void 0 : e.link,
|
|
224
190
|
LinkComponent: i
|
|
225
191
|
},
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),w=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),j=require("./breakpoints-CcVm-gVm.cjs"),x=require("./useDetectMobile-DYV6V1yw.cjs"),S=require("./utils-CITgSxXe.cjs"),M=require("./style-Boz6dk5s.cjs"),z=require("./Button.cjs"),D=require("./Link.cjs"),F=require("./index-DsINTjQk.cjs"),L=require("./index-3GKF_7BJ.cjs"),p=require("./style-CQdEALKR.cjs"),A=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
|
-
grid-template-columns: ${
|
|
3
|
+
grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media ${
|
|
6
|
+
@media ${j.down("M")} {
|
|
7
7
|
grid-template-columns: repeat(2, 1fr);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@media ${
|
|
10
|
+
@media ${j.down("S")} {
|
|
11
11
|
grid-template-columns: repeat(2, 1fr);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@media ${
|
|
14
|
+
@media ${j.down("XS")} {
|
|
15
15
|
grid-template-columns: repeat(1, 1fr);
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,E=w.styled.a`
|
|
18
18
|
text-decoration: none;
|
|
19
19
|
color: var(--gray-950);
|
|
20
20
|
display: flex;
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
& a {
|
|
47
47
|
margin-top: auto;
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
49
|
+
`,I=w.styled.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 0.5rem;
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
color: var(--gray-700, #4e555f);
|
|
64
64
|
${S.truncateTextInRows(3)}
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
67
|
-
@media ${
|
|
66
|
+
`,O=a.forwardRef((n,s)=>{const{title:l,imageUrl:c,text:i,buttonText:g,onCardClick:d,metadata:r,link:m,LinkComponent:h}=n,b=h||"a",u=a.useRef(),f=k=>{d(k,u)};return t.jsxs(E,{ref:u,name:r==null?void 0:r.name,"data-accessor":r==null?void 0:r.accessor,className:"blog-card",onClick:f,to:`/${m}`,as:b,...h?{to:`/${m}`}:{href:`/${m}`},children:[t.jsxs(I,{children:[t.jsx("div",{className:"text-wr-title",children:l}),t.jsx("div",{className:"text-wr",children:i}),t.jsx(D,{color:"gray",onClick:f,children:g})]}),t.jsx(F.ProductImageWrapper,{src:c})]})}),U=w.styled(p.SkeletonAnimationColumnContainer)`
|
|
67
|
+
@media ${j.down("S")} {
|
|
68
68
|
& .skeleton__tags {
|
|
69
69
|
& > div {
|
|
70
70
|
width: 100%;
|
|
@@ -73,17 +73,6 @@
|
|
|
73
73
|
|
|
74
74
|
& .skeleton__cards {
|
|
75
75
|
flex-direction: column;
|
|
76
|
-
|
|
77
|
-
& > div {
|
|
78
|
-
background: linear-gradient(
|
|
79
|
-
to right,
|
|
80
|
-
transparent 0%,
|
|
81
|
-
#f4f6fb 40%,
|
|
82
|
-
#f4f6fb 100%
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
box-shadow: none;
|
|
86
|
-
}
|
|
87
76
|
}
|
|
88
77
|
}
|
|
89
|
-
`,
|
|
78
|
+
`,K=({keyPrefix:n})=>t.jsxs(U,{children:[t.jsx(p.SkeletonContainer,{className:"skeleton__tags",children:[1,2,3].map(s=>t.jsx(p.SkeletonRect,{height:"2.25rem",width:"8rem",borderRadius:"1rem"},`${n}-tab-${s}`))}),t.jsx(p.SkeletonContainer,{className:"skeleton__cards",children:[1,2,3].map(s=>t.jsx(p.SkeletonRect,{height:"10.375rem",width:"100%",borderRadius:"1rem"},`${n}-card-${s}`))})]}),P=({keyPrefix:n,isLoading:s=!1,fallbackComponent:l=t.jsx(t.Fragment,{}),children:c})=>t.jsx(a.Suspense,{fallbackComponent:l,children:s===!0?t.jsx(K,{keyPrefix:n}):c}),q=a.memo(O),G=a.forwardRef((n,s)=>{const{icon:l,title:c,items:i,buttonText:g,limit:d=3,options:r,selectedOption:m=[],onButtonAction:h=()=>{},buttonLink:b,onSelectOption:u=()=>{},onSelectAll:f=()=>{},isLoading:k=!1,onSelectCard:v=()=>{},productsToolbarName:T="All",allButton:_=!1,componentName:$,LinkComponent:N}=n,R=x.useDetectMobile(),B=a.useMemo(()=>{var o;return t.jsx(t.Fragment,{children:R===!0?i==null?void 0:i.map((e,y)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(W,C)=>v(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:N},y)):(o=i==null?void 0:i.slice(0,d))==null?void 0:o.map((e,y)=>t.jsx(q,{title:e==null?void 0:e.title,imageUrl:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(W,C)=>v(e,C),metadata:{name:$,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link,LinkComponent:N},y))})},[i,R,d]);return t.jsxs(M.TitleWithOptionsSectionWrapper,{ref:s,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[S.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:c})]}),S.isDefinedNotEmptyString(g)&&S.isDefinedNotEmptyString(b)&&!k&&t.jsx(z,{type:"button",btnType:"tinted",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),h(b)},borderRadius:"curved",children:g})]}),t.jsxs(P,{isLoading:k,keyPrefix:"blogs-with-filters-skeleton",children:[(r==null?void 0:r.length)>0&&t.jsx(L.SelectBar,{items:r,selectedIds:m,onRemove:o=>{u(o)},onSelect:o=>{u(o)},onSelectAll:f,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:T,allButton:_}),t.jsx(A,{limit:d,children:B})]})]})});module.exports=G;
|