@lanaco/lnc-react-ui 4.0.87 → 4.0.88
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 +1 -1
- package/dist/BannerSectionCarousel.js +4 -1
- package/dist/BannerSectionSimple.cjs +7 -7
- package/dist/BannerSectionSimple.js +54 -51
- package/dist/BannerSectionWithList.cjs +7 -7
- package/dist/BannerSectionWithList.js +33 -30
- package/dist/BannerSectionWithListImage.cjs +9 -9
- package/dist/BannerSectionWithListImage.js +44 -41
- package/dist/BlogCardsSponsoredSection.cjs +3 -3
- package/dist/BlogCardsSponsoredSection.js +31 -28
- package/dist/BlogsSectionDetailed.cjs +2 -2
- package/dist/BlogsSectionDetailed.js +26 -23
- package/dist/BlogsSectionSimple.cjs +6 -6
- package/dist/BlogsSectionSimple.js +30 -27
- package/dist/BlogsSectionWithFilters.cjs +6 -6
- package/dist/BlogsSectionWithFilters.js +19 -16
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +24 -21
- package/dist/FieldOfInterestsMasonrySection.cjs +24 -13
- package/dist/FieldOfInterestsMasonrySection.js +72 -66
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -0
- package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -0
- package/dist/GeneralWithTagsCardsSection.cjs +4 -3
- package/dist/GeneralWithTagsCardsSection.js +1 -0
- package/dist/GiftCardsSection.cjs +8 -8
- package/dist/GiftCardsSection.js +52 -49
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +15 -12
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +33 -30
- package/package.json +1 -1
|
@@ -140,4 +140,4 @@
|
|
|
140
140
|
display: none;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
`,Me=N.forwardRef(({carouselItems:t=[],onSelectItem:n=()=>{},onButtonAction:r=()=>{}},i)=>{const e=Le.useDetectMobile();return D.jsx(Ot,{ref:i,children:D.jsx(Oe.Carousel,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:500,onClickItem:o=>{e||n==null||n(t==null?void 0:t.at(o),o)},children:t&&(t==null?void 0:t.map((o,a)=>D.jsxs(Rt,{backgroundColor:o==null?void 0:o.backgroundColor,children:[D.jsx("img",{loading:"lazy",src:o.imageUrl}),D.jsx(Et,{backgroundColor:o==null?void 0:o.backgroundColor,children:D.jsxs("div",{className:"banner-content",children:[D.jsxs("div",{className:"banner-text",children:[D.jsx("div",{className:"banner-title",children:o.title}),o.description]}),re.isDefinedNotEmptyString(o==null?void 0:o.buttonText)&&D.jsx(De,{color:"neutral",onClick:()
|
|
143
|
+
`,Me=N.forwardRef(({carouselItems:t=[],onSelectItem:n=()=>{},onButtonAction:r=()=>{}},i)=>{const e=Le.useDetectMobile();return D.jsx(Ot,{ref:i,children:D.jsx(Oe.Carousel,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:500,onClickItem:o=>{e||n==null||n(t==null?void 0:t.at(o),o)},children:t&&(t==null?void 0:t.map((o,a)=>D.jsxs(Rt,{backgroundColor:o==null?void 0:o.backgroundColor,children:[D.jsx("img",{loading:"lazy",src:o.imageUrl}),D.jsx(Et,{backgroundColor:o==null?void 0:o.backgroundColor,children:D.jsxs("div",{className:"banner-content",children:[D.jsxs("div",{className:"banner-text",children:[D.jsx("div",{className:"banner-title",children:o.title}),o.description]}),re.isDefinedNotEmptyString(o==null?void 0:o.buttonText)&&D.jsx(De,{color:"neutral",onClick:s=>{var f;(f=s==null?void 0:s.target)==null||f.blur(),r(o)},children:o.buttonText})]})})]},`banner-${a+1}`)))})})});Me.propTypes={items:fe.PropTypes.array,handleClick:fe.PropTypes.func};module.exports=Me;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),M=require("react"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),v=require("./Button.cjs"),H=require("./useDetectMobile-zkbzoOGV.cjs"),B=r.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
`}
|
|
26
26
|
|
|
27
|
-
@media (max-width: ${
|
|
27
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
28
28
|
gap: 1.5rem;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
min-height: unset;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
min-height: ${e=>`${e.imgHMob}px`||"12.1rem"};
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,_=r.styled.div`
|
|
46
46
|
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
47
47
|
display: flex;
|
|
48
48
|
gap: 2rem;
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
|
|
52
52
|
${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
|
|
53
53
|
|
|
54
|
-
@media (max-width: ${
|
|
54
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
55
55
|
padding: 0;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`,C=r.styled.div`
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
gap: 0.25rem;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
font-weight: 500;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
@media (max-width: ${
|
|
74
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
75
75
|
flex-direction: column;
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,I=M.forwardRef((e,d)=>{const{title:h,subtitle:c,buttonText:g,buttonLink:x,onButtonAction:u=()=>{},imageUrl:n,imagePosition:s="right",hideImageForMobile:a=!1,sectionHeight:p="12.65625rem",imageWidth:b,imageHeightMobile:$,smallPadding:f=!1,isHorizontalContent:w=!1,backgroundColor:j,hasBorder:y=!1}=e,l=H.useDetectMobile();return t.jsxs(B,{ref:d,bgcolor:j,height:p,imgW:b,imgHMob:$,hasBorder:y,children:[s!=="right"&&!(a===!0&&l===!0)&&t.jsx("img",{src:n}),t.jsxs(_,{isHorizontalContent:w,smallPadding:f,children:[t.jsxs(C,{children:[t.jsx("div",{className:"header-title",children:h}),t.jsx("div",{className:"header-subitle",children:c})]}),t.jsx(v,{size:"medium",color:"neutral",type:"button",onClick:i=>{var m;(m=i==null?void 0:i.target)==null||m.blur(),u(x)},children:g})]}),s==="right"&&!(a===!0&&l===!0)&&t.jsx("img",{src:n})]})});module.exports=I;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as n } from "./consts-BuFChS64.js";
|
|
5
|
+
import C from "./Button.js";
|
|
6
|
+
import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
|
|
7
|
+
const B = o.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
border-radius: 0.75rem;
|
|
10
10
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
@@ -30,7 +30,7 @@ const C = r.div`
|
|
|
30
30
|
|
|
31
31
|
`}
|
|
32
32
|
|
|
33
|
-
@media (max-width: ${
|
|
33
|
+
@media (max-width: ${n + "px"}) {
|
|
34
34
|
gap: 1.5rem;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
min-height: unset;
|
|
@@ -48,7 +48,7 @@ const C = r.div`
|
|
|
48
48
|
min-height: ${(e) => `${e.imgHMob}px` || "12.1rem"};
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`, k = o.div`
|
|
52
52
|
padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
|
|
53
53
|
display: flex;
|
|
54
54
|
gap: 2rem;
|
|
@@ -57,11 +57,11 @@ const C = r.div`
|
|
|
57
57
|
|
|
58
58
|
${(e) => e.isHorizontalContent === !0 && "justify-content: space-between;"}
|
|
59
59
|
|
|
60
|
-
@media (max-width: ${
|
|
60
|
+
@media (max-width: ${n + "px"}) {
|
|
61
61
|
padding: 0;
|
|
62
62
|
flex-direction: column;
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`, W = o.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
gap: 0.25rem;
|
|
@@ -77,67 +77,70 @@ const C = r.div`
|
|
|
77
77
|
font-weight: 500;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
@media (max-width: ${
|
|
80
|
+
@media (max-width: ${n + "px"}) {
|
|
81
81
|
flex-direction: column;
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`, N = y((e, g) => {
|
|
84
84
|
const {
|
|
85
|
-
title:
|
|
86
|
-
subtitle:
|
|
87
|
-
buttonText:
|
|
88
|
-
buttonLink:
|
|
89
|
-
onButtonAction:
|
|
85
|
+
title: s,
|
|
86
|
+
subtitle: c,
|
|
87
|
+
buttonText: x,
|
|
88
|
+
buttonLink: p,
|
|
89
|
+
onButtonAction: u = () => {
|
|
90
90
|
},
|
|
91
|
-
imageUrl:
|
|
92
|
-
imagePosition:
|
|
93
|
-
hideImageForMobile:
|
|
94
|
-
sectionHeight:
|
|
95
|
-
imageWidth:
|
|
96
|
-
imageHeightMobile:
|
|
97
|
-
smallPadding:
|
|
98
|
-
isHorizontalContent:
|
|
99
|
-
backgroundColor:
|
|
100
|
-
hasBorder:
|
|
101
|
-
} = e,
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
-
|
|
91
|
+
imageUrl: a,
|
|
92
|
+
imagePosition: m = "right",
|
|
93
|
+
hideImageForMobile: d = !1,
|
|
94
|
+
sectionHeight: b = "12.65625rem",
|
|
95
|
+
imageWidth: f,
|
|
96
|
+
imageHeightMobile: $,
|
|
97
|
+
smallPadding: w = !1,
|
|
98
|
+
isHorizontalContent: v = !1,
|
|
99
|
+
backgroundColor: H,
|
|
100
|
+
hasBorder: M = !1
|
|
101
|
+
} = e, l = z();
|
|
102
|
+
return /* @__PURE__ */ r(
|
|
103
|
+
B,
|
|
104
104
|
{
|
|
105
|
-
ref:
|
|
106
|
-
bgcolor:
|
|
107
|
-
height:
|
|
108
|
-
imgW:
|
|
109
|
-
imgHMob:
|
|
110
|
-
hasBorder:
|
|
105
|
+
ref: g,
|
|
106
|
+
bgcolor: H,
|
|
107
|
+
height: b,
|
|
108
|
+
imgW: f,
|
|
109
|
+
imgHMob: $,
|
|
110
|
+
hasBorder: M,
|
|
111
111
|
children: [
|
|
112
|
-
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
112
|
+
m !== "right" && !(d === !0 && l === !0) && /* @__PURE__ */ t("img", { src: a }),
|
|
113
|
+
/* @__PURE__ */ r(
|
|
114
|
+
k,
|
|
115
115
|
{
|
|
116
|
-
isHorizontalContent:
|
|
117
|
-
smallPadding:
|
|
116
|
+
isHorizontalContent: v,
|
|
117
|
+
smallPadding: w,
|
|
118
118
|
children: [
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ r(W, { children: [
|
|
120
|
+
/* @__PURE__ */ t("div", { className: "header-title", children: s }),
|
|
121
|
+
/* @__PURE__ */ t("div", { className: "header-subitle", children: c })
|
|
122
122
|
] }),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
123
|
+
/* @__PURE__ */ t(
|
|
124
|
+
C,
|
|
125
125
|
{
|
|
126
126
|
size: "medium",
|
|
127
127
|
color: "neutral",
|
|
128
128
|
type: "button",
|
|
129
|
-
onClick: () =>
|
|
130
|
-
|
|
129
|
+
onClick: (i) => {
|
|
130
|
+
var h;
|
|
131
|
+
(h = i == null ? void 0 : i.target) == null || h.blur(), u(p);
|
|
132
|
+
},
|
|
133
|
+
children: x
|
|
131
134
|
}
|
|
132
135
|
)
|
|
133
136
|
]
|
|
134
137
|
}
|
|
135
138
|
),
|
|
136
|
-
|
|
139
|
+
m === "right" && !(d === !0 && l === !0) && /* @__PURE__ */ t("img", { src: a })
|
|
137
140
|
]
|
|
138
141
|
}
|
|
139
142
|
);
|
|
140
143
|
});
|
|
141
144
|
export {
|
|
142
|
-
|
|
145
|
+
N as default
|
|
143
146
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),o=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./consts-goSZX3xP.cjs"),g=require("./Button.cjs"),n=require("./utils-DhRHf5Ed.cjs"),h=o.styled.div`
|
|
2
2
|
padding-bottom: 1.38rem;
|
|
3
3
|
text-align: center;
|
|
4
4
|
display: flex;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
width: fit-content;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@media (max-width: ${
|
|
14
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
15
15
|
padding-bottom: 0;
|
|
16
16
|
}
|
|
17
|
-
`,p=
|
|
17
|
+
`,p=o.styled.div`
|
|
18
18
|
text-align: center;
|
|
19
19
|
display: flex;
|
|
20
20
|
justify-content: center;
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
font-weight: 500;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
@media (max-width: ${
|
|
35
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
36
36
|
}
|
|
37
|
-
`,j=
|
|
37
|
+
`,j=o.styled.div`
|
|
38
38
|
text-align: center;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
@media (max-width: ${
|
|
57
|
+
@media (max-width: ${l.MOBILE_SIZE_PX+"px"}) {
|
|
58
58
|
& .list-item {
|
|
59
59
|
flex-direction: column;
|
|
60
60
|
text-align: center;
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
gap: 0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,y=
|
|
65
|
+
`,y=a.forwardRef((d,m)=>{const{title:s,subtitle:r,buttonText:u,list:c,buttonLink:x,onButtonAction:f=()=>{}}=d;return e.jsxs(h,{ref:m,children:[(n.isDefined(s)||n.isDefined(r))&&e.jsxs(p,{children:[n.isDefined(s)&&e.jsx("div",{className:"header-title",children:s}),n.isDefined(r)&&e.jsx("div",{className:"header-subitle",children:r})]}),e.jsx(j,{children:c==null?void 0:c.map((t,i)=>e.jsx(a.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:t})]})},i))}),e.jsx(g,{size:"medium",color:"neutral",type:"button",onClick:t=>{var i;(i=t==null?void 0:t.target)==null||i.blur(),f(x)},children:u})]})});module.exports=y;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
5
|
-
import
|
|
6
|
-
import { l as
|
|
7
|
-
const y =
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Fragment as h } from "react";
|
|
3
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
5
|
+
import x from "./Button.js";
|
|
6
|
+
import { l as n } from "./utils-BE-UlkKf.js";
|
|
7
|
+
const y = c.div`
|
|
8
8
|
padding-bottom: 1.38rem;
|
|
9
9
|
text-align: center;
|
|
10
10
|
display: flex;
|
|
@@ -17,10 +17,10 @@ const y = l.div`
|
|
|
17
17
|
width: fit-content;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
@media (max-width: ${
|
|
20
|
+
@media (max-width: ${m + "px"}) {
|
|
21
21
|
padding-bottom: 0;
|
|
22
22
|
}
|
|
23
|
-
`, b =
|
|
23
|
+
`, b = c.div`
|
|
24
24
|
text-align: center;
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: center;
|
|
@@ -38,9 +38,9 @@ const y = l.div`
|
|
|
38
38
|
font-weight: 500;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@media (max-width: ${
|
|
41
|
+
@media (max-width: ${m + "px"}) {
|
|
42
42
|
}
|
|
43
|
-
`, v =
|
|
43
|
+
`, v = c.div`
|
|
44
44
|
text-align: center;
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
@@ -60,7 +60,7 @@ const y = l.div`
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@media (max-width: ${
|
|
63
|
+
@media (max-width: ${m + "px"}) {
|
|
64
64
|
& .list-item {
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
text-align: center;
|
|
@@ -68,33 +68,36 @@ const y = l.div`
|
|
|
68
68
|
gap: 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`, N =
|
|
71
|
+
`, N = g((s, d) => {
|
|
72
72
|
const {
|
|
73
|
-
title:
|
|
74
|
-
subtitle:
|
|
75
|
-
buttonText:
|
|
76
|
-
list:
|
|
77
|
-
buttonLink:
|
|
78
|
-
onButtonAction:
|
|
73
|
+
title: r,
|
|
74
|
+
subtitle: o,
|
|
75
|
+
buttonText: f,
|
|
76
|
+
list: l,
|
|
77
|
+
buttonLink: p,
|
|
78
|
+
onButtonAction: u = () => {
|
|
79
79
|
}
|
|
80
|
-
} =
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
} = s;
|
|
81
|
+
return /* @__PURE__ */ a(y, { ref: d, children: [
|
|
82
|
+
(n(r) || n(o)) && /* @__PURE__ */ a(b, { children: [
|
|
83
|
+
n(r) && /* @__PURE__ */ e("div", { className: "header-title", children: r }),
|
|
84
|
+
n(o) && /* @__PURE__ */ e("div", { className: "header-subitle", children: o })
|
|
85
85
|
] }),
|
|
86
|
-
/* @__PURE__ */ e(v, { children:
|
|
86
|
+
/* @__PURE__ */ e(v, { children: l == null ? void 0 : l.map((t, i) => /* @__PURE__ */ e(h, { children: /* @__PURE__ */ a("div", { className: "list-item", children: [
|
|
87
87
|
/* @__PURE__ */ e("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
88
|
-
/* @__PURE__ */ e("span", { children:
|
|
89
|
-
] }) },
|
|
88
|
+
/* @__PURE__ */ e("span", { children: t })
|
|
89
|
+
] }) }, i)) }),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
|
-
|
|
91
|
+
x,
|
|
92
92
|
{
|
|
93
93
|
size: "medium",
|
|
94
94
|
color: "neutral",
|
|
95
95
|
type: "button",
|
|
96
|
-
onClick: () =>
|
|
97
|
-
|
|
96
|
+
onClick: (t) => {
|
|
97
|
+
var i;
|
|
98
|
+
(i = t == null ? void 0 : t.target) == null || i.blur(), u(p);
|
|
99
|
+
},
|
|
100
|
+
children: f
|
|
98
101
|
}
|
|
99
102
|
)
|
|
100
103
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),y=require("./Button.cjs"),j=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>(e==null?void 0:e.bgColor)||"transparent"};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
`}
|
|
23
23
|
|
|
24
|
-
@media (max-width: ${
|
|
24
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
& img {
|
|
27
27
|
max-width: 100%;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,v=
|
|
33
|
+
`,v=n.styled.div`
|
|
34
34
|
padding: 2rem;
|
|
35
35
|
display: flex;
|
|
36
36
|
gap: 1.25rem;
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
flex: 1;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
|
|
41
|
-
@media (max-width: ${
|
|
41
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
42
42
|
padding: 1.25rem;
|
|
43
43
|
}
|
|
44
|
-
`,$=
|
|
44
|
+
`,$=n.styled.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: 0.25rem;
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
font-weight: 500;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
@media (max-width: ${
|
|
60
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
}
|
|
63
|
-
`,_=
|
|
63
|
+
`,_=n.styled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
gap: 0.75rem;
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
@media (max-width: ${
|
|
80
|
+
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
81
81
|
}
|
|
82
|
-
`,B=
|
|
82
|
+
`,B=a.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:c,list:s,imageUrl:x,imageHeight:g,imageWidth:h,imageHeightMobile:p,hasBorder:u=!0,backgroundColor:b="transparent",onButtonAction:f=()=>{},buttonLink:w}=e;return i.jsxs(j,{ref:m,imgH:g,imgW:h,imgHMob:p,hasBorder:u,bgColor:b,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:d}),i.jsx("div",{className:"header-subitle",children:l})]}),i.jsx(_,{children:s==null?void 0:s.map((t,r)=>i.jsx(a.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:t})]})},r))}),i.jsx(y,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:t=>{var r;(r=t==null?void 0:t.target)==null||r.blur(),f(w)},children:c})]}),i.jsx("img",{src:x})]})});module.exports=B;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, Fragment as y } from "react";
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
3
|
+
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-BuFChS64.js";
|
|
5
5
|
import $ from "./Button.js";
|
|
6
|
-
const H =
|
|
6
|
+
const H = n.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
border-radius: 0.75rem;
|
|
9
9
|
background-color: ${(e) => (e == null ? void 0 : e.bgColor) || "transparent"};
|
|
@@ -26,7 +26,7 @@ const H = r.div`
|
|
|
26
26
|
|
|
27
27
|
`}
|
|
28
28
|
|
|
29
|
-
@media (max-width: ${
|
|
29
|
+
@media (max-width: ${m + "px"}) {
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
& img {
|
|
32
32
|
max-width: 100%;
|
|
@@ -35,7 +35,7 @@ const H = r.div`
|
|
|
35
35
|
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`, W =
|
|
38
|
+
`, W = n.div`
|
|
39
39
|
padding: 2rem;
|
|
40
40
|
display: flex;
|
|
41
41
|
gap: 1.25rem;
|
|
@@ -43,10 +43,10 @@ const H = r.div`
|
|
|
43
43
|
flex: 1;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
|
|
46
|
-
@media (max-width: ${
|
|
46
|
+
@media (max-width: ${m + "px"}) {
|
|
47
47
|
padding: 1.25rem;
|
|
48
48
|
}
|
|
49
|
-
`, k =
|
|
49
|
+
`, k = n.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 0.25rem;
|
|
@@ -62,10 +62,10 @@ const H = r.div`
|
|
|
62
62
|
font-weight: 500;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@media (max-width: ${
|
|
65
|
+
@media (max-width: ${m + "px"}) {
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
}
|
|
68
|
-
`, B =
|
|
68
|
+
`, B = n.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
gap: 0.75rem;
|
|
@@ -82,43 +82,43 @@ const H = r.div`
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
@media (max-width: ${
|
|
85
|
+
@media (max-width: ${m + "px"}) {
|
|
86
86
|
}
|
|
87
|
-
`, N = v((e,
|
|
87
|
+
`, N = v((e, d) => {
|
|
88
88
|
const {
|
|
89
|
-
title:
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
92
|
-
list:
|
|
93
|
-
imageUrl:
|
|
94
|
-
imageHeight:
|
|
95
|
-
imageWidth:
|
|
96
|
-
imageHeightMobile:
|
|
97
|
-
hasBorder:
|
|
98
|
-
backgroundColor:
|
|
99
|
-
onButtonAction:
|
|
89
|
+
title: l,
|
|
90
|
+
subtitle: s,
|
|
91
|
+
buttonText: c,
|
|
92
|
+
list: a,
|
|
93
|
+
imageUrl: g,
|
|
94
|
+
imageHeight: h,
|
|
95
|
+
imageWidth: x,
|
|
96
|
+
imageHeightMobile: p,
|
|
97
|
+
hasBorder: f = !0,
|
|
98
|
+
backgroundColor: b = "transparent",
|
|
99
|
+
onButtonAction: u = () => {
|
|
100
100
|
},
|
|
101
|
-
buttonLink:
|
|
101
|
+
buttonLink: w
|
|
102
102
|
} = e;
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ o(
|
|
104
104
|
H,
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
107
|
-
imgH:
|
|
108
|
-
imgW:
|
|
109
|
-
imgHMob:
|
|
110
|
-
hasBorder:
|
|
111
|
-
bgColor:
|
|
106
|
+
ref: d,
|
|
107
|
+
imgH: h,
|
|
108
|
+
imgW: x,
|
|
109
|
+
imgHMob: p,
|
|
110
|
+
hasBorder: f,
|
|
111
|
+
bgColor: b,
|
|
112
112
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */ i("div", { className: "header-title", children:
|
|
116
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
113
|
+
/* @__PURE__ */ o(W, { children: [
|
|
114
|
+
/* @__PURE__ */ o(k, { children: [
|
|
115
|
+
/* @__PURE__ */ i("div", { className: "header-title", children: l }),
|
|
116
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
117
117
|
] }),
|
|
118
|
-
/* @__PURE__ */ i(B, { children:
|
|
118
|
+
/* @__PURE__ */ i(B, { children: a == null ? void 0 : a.map((t, r) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
|
|
119
119
|
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
120
|
-
/* @__PURE__ */ i("span", { children:
|
|
121
|
-
] }) },
|
|
120
|
+
/* @__PURE__ */ i("span", { children: t })
|
|
121
|
+
] }) }, r)) }),
|
|
122
122
|
/* @__PURE__ */ i(
|
|
123
123
|
$,
|
|
124
124
|
{
|
|
@@ -126,12 +126,15 @@ const H = r.div`
|
|
|
126
126
|
color: "gray",
|
|
127
127
|
type: "button",
|
|
128
128
|
btnType: "outline",
|
|
129
|
-
onClick: () =>
|
|
130
|
-
|
|
129
|
+
onClick: (t) => {
|
|
130
|
+
var r;
|
|
131
|
+
(r = t == null ? void 0 : t.target) == null || r.blur(), u(w);
|
|
132
|
+
},
|
|
133
|
+
children: c
|
|
131
134
|
}
|
|
132
135
|
)
|
|
133
136
|
] }),
|
|
134
|
-
/* @__PURE__ */ i("img", { src:
|
|
137
|
+
/* @__PURE__ */ i("img", { src: g })
|
|
135
138
|
]
|
|
136
139
|
}
|
|
137
140
|
);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
gap: 1.25rem;
|
|
6
6
|
border-radius: 1.25rem;
|
|
7
7
|
align-items: stretch;
|
|
8
|
-
border: ${
|
|
8
|
+
border: ${s=>s!=null&&s.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;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,S=p.forwardRef(({title:
|
|
117
|
+
`,S=p.forwardRef(({title:s,imageUrl:o,options:t,publishedAt:g,timeToReadText:_="{0} min read",timeToRead:f=0,numberOfLikes:l=0,numberOfComments:n=0,isSponsored:d=!1,onSelectCard:m=()=>{},onSelectOption:u=()=>{}},b)=>r.jsxs(R,{isSponsored:d,onClick:m,children:[d&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(x.ProductImageWrapper,{src:o,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:s}),r.jsx("div",{className:"wrapper__tags",children:t&&(t==null?void 0:t.map((a,h)=>r.jsx(N,{label:a==null?void 0:a.name,color:a==null?void 0:a.color,className:"wrapper__tag",onClick:i=>{i==null||i.stopPropagation(),u(a==null?void 0:a.code)}},`blog-card-sponsored-option__${h+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${c.formatLocaleDateString(g)} • ${c.formatString(_,f)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),c.getRoundedNumber(l)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),c.getRoundedNumber(n)]})]})]})]})]})),I=y.styled.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: column;
|
|
120
120
|
align-items: flex-start;
|
|
@@ -196,4 +196,4 @@
|
|
|
196
196
|
gap: 1rem;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,$=p.memo(S),C=p.forwardRef(({title:
|
|
199
|
+
`,$=p.memo(S),C=p.forwardRef(({title:s,subtitle:o,icon:t,buttonText:g,buttonLink:_,timeToReadText:f="{0} min read",items:l,onButtonAction:n=()=>{},onSelectCard:d=()=>{},onSelectOption:m=()=>{},isLoading:u=!1,getImage:b=()=>{}},a)=>{const h=p.useMemo(()=>{var i;return(i=l==null?void 0:l.slice(0,4))==null?void 0:i.map((e,v)=>r.jsx($,{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:f,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:()=>d==null?void 0:d(e==null?void 0:e.uuid,e==null?void 0:e.titleSlug),onSelectOption:j=>m==null?void 0:m(j),imageUrl:b(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${v+1}`))},[l]);return r.jsxs(I,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[s&&r.jsxs("div",{className:"title__text",children:[c.isDefinedNotEmptyString(t)&&r.jsx("i",{className:t}),r.jsx("span",{children:s})]}),n&&r.jsx(k,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:i=>{var e;(e=i==null?void 0:i.target)==null||e.blur(),n==null||n(_)}})]}),o&&r.jsx("div",{className:"wrapper__subtitle",children:o})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(z.SuspenseBlogLarge,{isLoading:u,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=C;
|