@lanaco/lnc-react-ui 4.0.39 → 4.0.40
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/BannerSectionBasic.cjs +9 -9
- package/dist/BannerSectionBasic.js +20 -20
- package/dist/BannerSectionCarousel.cjs +13 -5
- package/dist/BannerSectionCarousel.js +29 -21
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +6 -6
- package/dist/BannerSectionSimple.cjs +4 -4
- package/dist/BannerSectionSimple.js +41 -38
- package/dist/BannerSectionWithList.cjs +4 -4
- package/dist/BannerSectionWithList.js +17 -17
- package/dist/BannerSectionWithListImage.cjs +5 -5
- package/dist/BannerSectionWithListImage.js +41 -38
- package/dist/BlogsSectionDetailed.cjs +10 -10
- package/dist/BlogsSectionDetailed.js +32 -33
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +20 -20
- package/dist/BlogsSectionSimpleCentered.cjs +6 -6
- package/dist/BlogsSectionSimpleCentered.js +9 -9
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +65 -64
- package/dist/BrandHitsSection.cjs +12 -7
- package/dist/BrandHitsSection.js +10 -5
- package/dist/CalorieCalculatorSection.cjs +7 -8
- package/dist/CalorieCalculatorSection.js +31 -32
- package/dist/CustomLoanMapSection.cjs +2 -2
- package/dist/CustomLoanMapSection.js +13 -13
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
- package/dist/GeneralWithTagsCardsSection.cjs +18 -6
- package/dist/GeneralWithTagsCardsSection.js +44 -31
- package/dist/GiftCardsSection.cjs +9 -5
- package/dist/GiftCardsSection.js +21 -17
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +21 -1
- package/dist/MasonryGeneralCardsSection.js +20 -0
- package/dist/OverlayGeneralCardsSection.cjs +52 -96
- package/dist/OverlayGeneralCardsSection.js +116 -165
- package/dist/ProductsWithBannerSection.cjs +5 -5
- package/dist/ProductsWithBannerSection.js +26 -26
- package/dist/SalesCampaignsSection.cjs +17 -17
- package/dist/SalesCampaignsSection.js +81 -81
- package/dist/ShopCardsSection.cjs +19 -9
- package/dist/ShopCardsSection.js +54 -40
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
- package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
- package/dist/index-Dn5tPLgP.cjs +95 -0
- package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
- package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
- package/package.json +1 -1
- package/dist/index-Q_i-aqsF.cjs +0 -95
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
3
|
import { n as r } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as o } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
5
|
+
import H from "./Button.js";
|
|
6
|
+
import { u as M } from "./useDetectMobile-BC6EGaBc.js";
|
|
7
|
+
const B = r.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
border-radius: 0.75rem;
|
|
10
10
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
@@ -65,7 +65,7 @@ const M = r.div`
|
|
|
65
65
|
padding: 0;
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`, z = r.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
gap: 0.25rem;
|
|
@@ -84,61 +84,64 @@ const M = r.div`
|
|
|
84
84
|
@media (max-width: ${o + "px"}) {
|
|
85
85
|
flex-direction: column;
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`, E = y((e, l) => {
|
|
88
88
|
const {
|
|
89
|
-
title:
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
89
|
+
title: h,
|
|
90
|
+
subtitle: g,
|
|
91
|
+
buttonText: s,
|
|
92
|
+
buttonLink: c,
|
|
93
|
+
onButtonAction: x = () => {
|
|
94
|
+
},
|
|
95
|
+
imageUrl: n,
|
|
96
|
+
imagePosition: a = "right",
|
|
97
|
+
hideImageForMobile: m = !1,
|
|
98
|
+
sectionHeight: p = "12.65625rem",
|
|
99
|
+
imageWidth: u,
|
|
100
|
+
imageHeightMobile: b,
|
|
101
|
+
smallPadding: f = !1,
|
|
102
|
+
isHorizontalContent: w = !1,
|
|
103
|
+
backgroundColor: $,
|
|
104
|
+
hasBorder: v = !1
|
|
105
|
+
} = e, d = M();
|
|
104
106
|
return /* @__PURE__ */ t(
|
|
105
|
-
|
|
107
|
+
B,
|
|
106
108
|
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
ref: l,
|
|
110
|
+
bgcolor: $,
|
|
111
|
+
height: p,
|
|
112
|
+
imgW: u,
|
|
113
|
+
imgHMob: b,
|
|
114
|
+
hasBorder: v,
|
|
112
115
|
children: [
|
|
113
|
-
|
|
116
|
+
a !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n }),
|
|
114
117
|
/* @__PURE__ */ t(
|
|
115
118
|
C,
|
|
116
119
|
{
|
|
117
|
-
isHorizontalContent:
|
|
118
|
-
smallPadding:
|
|
120
|
+
isHorizontalContent: w,
|
|
121
|
+
smallPadding: f,
|
|
119
122
|
children: [
|
|
120
|
-
/* @__PURE__ */ t(
|
|
121
|
-
/* @__PURE__ */ i("div", { className: "header-title", children:
|
|
122
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
123
|
+
/* @__PURE__ */ t(z, { children: [
|
|
124
|
+
/* @__PURE__ */ i("div", { className: "header-title", children: h }),
|
|
125
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: g })
|
|
123
126
|
] }),
|
|
124
127
|
/* @__PURE__ */ i(
|
|
125
|
-
|
|
128
|
+
H,
|
|
126
129
|
{
|
|
127
130
|
size: "medium",
|
|
128
131
|
color: "neutral",
|
|
129
132
|
type: "button",
|
|
130
|
-
onClick:
|
|
131
|
-
children:
|
|
133
|
+
onClick: () => x(c),
|
|
134
|
+
children: s
|
|
132
135
|
}
|
|
133
136
|
)
|
|
134
137
|
]
|
|
135
138
|
}
|
|
136
139
|
),
|
|
137
|
-
|
|
140
|
+
a === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n })
|
|
138
141
|
]
|
|
139
142
|
}
|
|
140
143
|
);
|
|
141
144
|
});
|
|
142
145
|
export {
|
|
143
|
-
|
|
146
|
+
E as default
|
|
144
147
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),r=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),c=require("./consts-CtNoHdBj.cjs"),h=require("./Button.cjs"),t=require("./utils-NZLCh-J5.cjs"),g=r.newStyled.div`
|
|
2
2
|
padding-bottom: 1.38rem;
|
|
3
3
|
text-align: center;
|
|
4
4
|
display: flex;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
15
15
|
padding-bottom: 0;
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,p=r.newStyled.div`
|
|
18
18
|
text-align: center;
|
|
19
19
|
display: flex;
|
|
20
20
|
justify-content: center;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
@media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,j=r.newStyled.div`
|
|
38
38
|
text-align: center;
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
gap: 0;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`,y=o.forwardRef((l,a)=>{const{title:i,subtitle:n,buttonText:d,list:s,buttonLink:m,onButtonAction:x=()=>{}}=l;return e.jsxs(g,{ref:a,children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(p,{children:[t.isDefined(i)&&e.jsx("div",{className:"header-title",children:i}),t.isDefined(n)&&e.jsx("div",{className:"header-subitle",children:n})]}),e.jsx(j,{children:s==null?void 0:s.map((u,f)=>e.jsx(o.Fragment,{children:e.jsxs("div",{className:"list-item",children:[e.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),e.jsx("span",{children:u})]})},f))}),e.jsx(h,{size:"medium",color:"neutral",type:"button",onClick:()=>x(m),children:d})]})});module.exports=y;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u, Fragment as x } from "react";
|
|
3
|
+
import { n as l } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as a } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import g from "./Button.js";
|
|
6
6
|
import { l as t } from "./utils-DtRLzzTZ.js";
|
|
7
|
-
const
|
|
7
|
+
const y = l.div`
|
|
8
8
|
padding-bottom: 1.38rem;
|
|
9
9
|
text-align: center;
|
|
10
10
|
display: flex;
|
|
@@ -20,7 +20,7 @@ const u = o.div`
|
|
|
20
20
|
@media (max-width: ${a + "px"}) {
|
|
21
21
|
padding-bottom: 0;
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`, b = l.div`
|
|
24
24
|
text-align: center;
|
|
25
25
|
display: flex;
|
|
26
26
|
justify-content: center;
|
|
@@ -40,7 +40,7 @@ const u = o.div`
|
|
|
40
40
|
|
|
41
41
|
@media (max-width: ${a + "px"}) {
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`, w = l.div`
|
|
44
44
|
text-align: center;
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
@@ -68,32 +68,32 @@ const u = o.div`
|
|
|
68
68
|
gap: 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`, N =
|
|
71
|
+
`, N = u((c, m) => {
|
|
72
72
|
const {
|
|
73
73
|
title: i,
|
|
74
74
|
subtitle: n,
|
|
75
75
|
buttonText: s,
|
|
76
76
|
list: r,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
} =
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
(t(i) || t(n)) && /* @__PURE__ */
|
|
77
|
+
buttonLink: d,
|
|
78
|
+
onButtonAction: f = () => {
|
|
79
|
+
}
|
|
80
|
+
} = c;
|
|
81
|
+
return /* @__PURE__ */ o(y, { ref: m, children: [
|
|
82
|
+
(t(i) || t(n)) && /* @__PURE__ */ o(b, { children: [
|
|
83
83
|
t(i) && /* @__PURE__ */ e("div", { className: "header-title", children: i }),
|
|
84
84
|
t(n) && /* @__PURE__ */ e("div", { className: "header-subitle", children: n })
|
|
85
85
|
] }),
|
|
86
|
-
/* @__PURE__ */ e(
|
|
86
|
+
/* @__PURE__ */ e(w, { children: r == null ? void 0 : r.map((p, h) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ o("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: p })
|
|
89
|
+
] }) }, h)) }),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
91
|
g,
|
|
92
92
|
{
|
|
93
93
|
size: "medium",
|
|
94
94
|
color: "neutral",
|
|
95
95
|
type: "button",
|
|
96
|
-
onClick: () =>
|
|
96
|
+
onClick: () => f(d),
|
|
97
97
|
children: s
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),o=require("react"),t=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./consts-CtNoHdBj.cjs"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),t=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),r=require("./consts-CtNoHdBj.cjs"),y=require("./Button.cjs"),j=t.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
33
|
+
`,v=t.newStyled.div`
|
|
34
34
|
padding: 2rem;
|
|
35
35
|
display: flex;
|
|
36
36
|
gap: 1.25rem;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
42
42
|
padding: 1.25rem;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
`,$=t.newStyled.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: 0.25rem;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
63
|
+
`,S=t.newStyled.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
gap: 0.75rem;
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
|
|
80
80
|
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
`,_=o.forwardRef((e,a)=>{const{title:m,subtitle:s,buttonText:d,list:n,imageUrl:l,imageHeight:c,imageWidth:x,imageHeightMobile:g,hasBorder:h=!0,backgroundColor:p="transparent",onButtonAction:u=()=>{},buttonLink:f}=e;return i.jsxs(j,{ref:a,imgH:c,imgW:x,imgHMob:g,hasBorder:h,bgColor:p,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:m}),i.jsx("div",{className:"header-subitle",children:s})]}),i.jsx(S,{children:n==null?void 0:n.map((b,w)=>i.jsx(o.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:b})]})},w))}),i.jsx(y,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:()=>u(f),children:d})]}),i.jsx("img",{src:l})]})});module.exports=_;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, Fragment as y } from "react";
|
|
3
|
+
import { n as r } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as n } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import $ from "./Button.js";
|
|
6
|
+
const H = r.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
border-radius: 0.75rem;
|
|
9
9
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
@@ -35,7 +35,7 @@ const y = t.div`
|
|
|
35
35
|
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`, W = r.div`
|
|
39
39
|
padding: 2rem;
|
|
40
40
|
display: flex;
|
|
41
41
|
gap: 1.25rem;
|
|
@@ -46,7 +46,7 @@ const y = t.div`
|
|
|
46
46
|
@media (max-width: ${n + "px"}) {
|
|
47
47
|
padding: 1.25rem;
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
49
|
+
`, k = r.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
gap: 0.25rem;
|
|
@@ -65,7 +65,7 @@ const y = t.div`
|
|
|
65
65
|
@media (max-width: ${n + "px"}) {
|
|
66
66
|
flex-direction: column;
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`, B = r.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
gap: 0.75rem;
|
|
@@ -84,51 +84,54 @@ const y = t.div`
|
|
|
84
84
|
|
|
85
85
|
@media (max-width: ${n + "px"}) {
|
|
86
86
|
}
|
|
87
|
-
`, N =
|
|
87
|
+
`, N = v((e, m) => {
|
|
88
88
|
const {
|
|
89
|
-
title:
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
92
|
-
list:
|
|
93
|
-
|
|
94
|
-
imageHeight:
|
|
95
|
-
imageWidth:
|
|
96
|
-
|
|
97
|
-
hasBorder:
|
|
98
|
-
backgroundColor:
|
|
99
|
-
|
|
89
|
+
title: a,
|
|
90
|
+
subtitle: d,
|
|
91
|
+
buttonText: l,
|
|
92
|
+
list: o,
|
|
93
|
+
imageUrl: c,
|
|
94
|
+
imageHeight: s,
|
|
95
|
+
imageWidth: g,
|
|
96
|
+
imageHeightMobile: h,
|
|
97
|
+
hasBorder: p = !0,
|
|
98
|
+
backgroundColor: x = "transparent",
|
|
99
|
+
onButtonAction: f = () => {
|
|
100
|
+
},
|
|
101
|
+
buttonLink: b
|
|
100
102
|
} = e;
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
-
|
|
103
|
+
return /* @__PURE__ */ t(
|
|
104
|
+
H,
|
|
103
105
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
ref: m,
|
|
107
|
+
imgH: s,
|
|
108
|
+
imgW: g,
|
|
109
|
+
imgHMob: h,
|
|
110
|
+
hasBorder: p,
|
|
111
|
+
bgColor: x,
|
|
109
112
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */ i("div", { className: "header-title", children:
|
|
113
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
113
|
+
/* @__PURE__ */ t(W, { children: [
|
|
114
|
+
/* @__PURE__ */ t(k, { children: [
|
|
115
|
+
/* @__PURE__ */ i("div", { className: "header-title", children: a }),
|
|
116
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: d })
|
|
114
117
|
] }),
|
|
115
|
-
/* @__PURE__ */ i(
|
|
118
|
+
/* @__PURE__ */ i(B, { children: o == null ? void 0 : o.map((u, w) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ t("div", { className: "list-item", children: [
|
|
116
119
|
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
117
|
-
/* @__PURE__ */ i("span", { children:
|
|
118
|
-
] }) },
|
|
120
|
+
/* @__PURE__ */ i("span", { children: u })
|
|
121
|
+
] }) }, w)) }),
|
|
119
122
|
/* @__PURE__ */ i(
|
|
120
|
-
|
|
123
|
+
$,
|
|
121
124
|
{
|
|
122
125
|
size: "medium",
|
|
123
126
|
color: "gray",
|
|
124
127
|
type: "button",
|
|
125
128
|
btnType: "outline",
|
|
126
|
-
onClick:
|
|
127
|
-
children:
|
|
129
|
+
onClick: () => f(b),
|
|
130
|
+
children: l
|
|
128
131
|
}
|
|
129
132
|
)
|
|
130
133
|
] }),
|
|
131
|
-
/* @__PURE__ */ i("img", { src:
|
|
134
|
+
/* @__PURE__ */ i("img", { src: c })
|
|
132
135
|
]
|
|
133
136
|
}
|
|
134
137
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),w=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),v=require("./consts-CtNoHdBj.cjs"),S=require("./useDetectMobile-D6d5LpdL.cjs"),c=require("./utils-NZLCh-J5.cjs"),y=require("./style-DN1qT8BE.cjs"),C=require("./Button.cjs"),D=w.newStyled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
|
|
14
14
|
0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
15
|
-
background-color: var(--white);
|
|
15
|
+
background-color: var(--white, #fff);
|
|
16
16
|
border-radius: 0.75rem;
|
|
17
|
-
border: 1px solid var(--gray-95008);
|
|
17
|
+
border: 1px solid var(--gray-95008, #14161a14);
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
max-height: 21.5625rem;
|
|
20
20
|
min-height: 21.5625rem;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
width: 100%;
|
|
38
38
|
max-height: 11.0625rem;
|
|
39
39
|
min-height: 11.0625rem;
|
|
40
|
-
background-color: ${
|
|
40
|
+
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
& .tags-wr {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
gap: 0;
|
|
57
57
|
color: var(--gray-950, #14161a);
|
|
58
|
-
border-top: 1px solid var(--gray-95008);
|
|
58
|
+
border-top: 1px solid var(--gray-95008, #14161a14);
|
|
59
59
|
|
|
60
60
|
& .text-wr-title {
|
|
61
61
|
font-weight: 600;
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
& .info-wr-skeleton {
|
|
66
|
-
background-color: ${
|
|
66
|
+
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
67
67
|
height: 1rem;
|
|
68
68
|
width: 100%;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
& .skeleton-title {
|
|
72
|
-
background-color: ${
|
|
72
|
+
background-color: ${c.linearGradientAnimation("-90deg")};
|
|
73
73
|
height: 1.5rem;
|
|
74
74
|
width: 70%;
|
|
75
75
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
font-size: 0.875rem;
|
|
80
80
|
flex: 1;
|
|
81
81
|
color: var(--gray-700, #4e555f);
|
|
82
|
-
${
|
|
82
|
+
${c.truncateTextInRows(2)}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
& .info-wr {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
& .mng {
|
|
95
95
|
font-size: 0.875rem;
|
|
96
|
-
color: var(--gray-300);
|
|
96
|
+
color: var(--gray-300, #c4c8cf);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -108,4 +108,4 @@
|
|
|
108
108
|
align-items: center;
|
|
109
109
|
gap: 1rem;
|
|
110
110
|
}
|
|
111
|
-
`,O=
|
|
111
|
+
`,O=m.forwardRef((t,l)=>{const{title:i,image:d,text:n,numberOfLikes:s,numberOfComments:p,readDuration:o,datePublished:g,tags:u,onCardClick:h,timeToReadText:f="read"}=t;return r.jsxs(k,{ref:l,className:"blog-card",onClick:h,children:[r.jsx("img",{src:d}),r.jsxs(N,{children:[r.jsxs("div",{className:"info-wr",children:[r.jsxs("div",{className:"info-wr-1",children:[r.jsx("span",{children:g}),r.jsx("span",{className:"small-dot",children:"●"}),o&&f?`${o} ${f}`:"N/A"]}),r.jsxs("div",{className:"info-wr-2",children:[r.jsxs("span",{className:"info-wr-1",children:[r.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),r.jsx("span",{children:s})]}),r.jsxs("span",{className:"info-wr-1",children:[r.jsx("i",{className:"mng mng-lnc-messages-filled"}),r.jsx("span",{children:p})]})]})]}),r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:n})]}),r.jsx("div",{className:"tags-wr",children:u==null?void 0:u.map((a,e)=>r.jsx(y.BlogTag,{color:a==null?void 0:a.color,children:a==null?void 0:a.name},e))})]})}),$=m.forwardRef(({},t)=>r.jsxs(k,{className:"blog-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsxs(N,{children:[r.jsx("div",{className:"info-wr"}),r.jsx("div",{className:"skeleton-title"}),r.jsx("div",{className:"info-wr-skeleton"})]})]})),B=({limit:t=3,isLoading:l=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(d,n)=>r.jsx($,{isLoading:l},`${i}-skeleton-product-card-${n}`))}),P=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:d,keyPrefix:n})=>r.jsx(m.Suspense,{fallbackComponent:l,children:i===!0?r.jsx(B,{isLoading:i,limit:d,keyPrefix:n}):t}),b=m.memo(O),R=m.forwardRef((t,l)=>{const{icon:i,title:d,onButtonAction:n,items:s,buttonText:p,limit:o=3,onSelectCard:g=()=>{},isLoading:u=!1,buttonLink:h}=t,f=S.useDetectMobile(),a=m.useMemo(()=>r.jsx(r.Fragment,{children:f===!0?s==null?void 0:s.map((e,j)=>r.jsx(b,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,datePublished:e==null?void 0:e.date,readDuration:e==null?void 0:e.readDuration,tags:e==null?void 0:e.tags,onCardClick:()=>g(e==null?void 0:e.uuid)},j)):s==null?void 0:s.slice(0,o).map((e,j)=>r.jsx(b,{title:e==null?void 0:e.title,image:e==null?void 0:e.image,text:e==null?void 0:e.text,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,datePublished:e==null?void 0:e.date,readDuration:e==null?void 0:e.readDuration,onCardClick:()=>g(e==null?void 0:e.uuid)},j))}),[s,f,o,g]);return r.jsxs(y.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:d})]}),c.isDefinedNotEmptyString(n)&&r.jsx(C,{type:"button",btnType:"tinted",color:"gray",onClick:()=>n(h),borderRadius:"curved",children:p})]}),r.jsx(D,{limit:o,children:r.jsx(P,{isLoading:u,limit:o,keyPrefix:"explore-landing",children:a})})]})});module.exports=R;
|