@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.
Files changed (62) hide show
  1. package/dist/BannerSectionBasic.cjs +9 -9
  2. package/dist/BannerSectionBasic.js +20 -20
  3. package/dist/BannerSectionCarousel.cjs +13 -5
  4. package/dist/BannerSectionCarousel.js +29 -21
  5. package/dist/BannerSectionGrid.cjs +1 -1
  6. package/dist/BannerSectionGrid.js +6 -6
  7. package/dist/BannerSectionSimple.cjs +4 -4
  8. package/dist/BannerSectionSimple.js +41 -38
  9. package/dist/BannerSectionWithList.cjs +4 -4
  10. package/dist/BannerSectionWithList.js +17 -17
  11. package/dist/BannerSectionWithListImage.cjs +5 -5
  12. package/dist/BannerSectionWithListImage.js +41 -38
  13. package/dist/BlogsSectionDetailed.cjs +10 -10
  14. package/dist/BlogsSectionDetailed.js +32 -33
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +2 -2
  18. package/dist/BlogsSectionSimple.js +20 -20
  19. package/dist/BlogsSectionSimpleCentered.cjs +6 -6
  20. package/dist/BlogsSectionSimpleCentered.js +9 -9
  21. package/dist/BlogsSectionWithFilters.cjs +10 -10
  22. package/dist/BlogsSectionWithFilters.js +65 -64
  23. package/dist/BrandHitsSection.cjs +12 -7
  24. package/dist/BrandHitsSection.js +10 -5
  25. package/dist/CalorieCalculatorSection.cjs +7 -8
  26. package/dist/CalorieCalculatorSection.js +31 -32
  27. package/dist/CustomLoanMapSection.cjs +2 -2
  28. package/dist/CustomLoanMapSection.js +13 -13
  29. package/dist/DetailedProductsSection.cjs +1 -1
  30. package/dist/DetailedProductsSection.js +1 -1
  31. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  32. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
  33. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
  34. package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
  35. package/dist/GeneralWithTagsCardsSection.cjs +18 -6
  36. package/dist/GeneralWithTagsCardsSection.js +44 -31
  37. package/dist/GiftCardsSection.cjs +9 -5
  38. package/dist/GiftCardsSection.js +21 -17
  39. package/dist/LocationSearchSection.cjs +1 -1
  40. package/dist/LocationSearchSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +21 -1
  42. package/dist/MasonryGeneralCardsSection.js +20 -0
  43. package/dist/OverlayGeneralCardsSection.cjs +52 -96
  44. package/dist/OverlayGeneralCardsSection.js +116 -165
  45. package/dist/ProductsWithBannerSection.cjs +5 -5
  46. package/dist/ProductsWithBannerSection.js +26 -26
  47. package/dist/SalesCampaignsSection.cjs +17 -17
  48. package/dist/SalesCampaignsSection.js +81 -81
  49. package/dist/ShopCardsSection.cjs +19 -9
  50. package/dist/ShopCardsSection.js +54 -40
  51. package/dist/SimpleCategoriesSection.cjs +1 -1
  52. package/dist/SimpleCategoriesSection.js +1 -1
  53. package/dist/SimpleProductsSection.cjs +1 -1
  54. package/dist/SimpleProductsSection.js +1 -1
  55. package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
  56. package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
  57. package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
  58. package/dist/index-Dn5tPLgP.cjs +95 -0
  59. package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
  60. package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
  61. package/package.json +1 -1
  62. 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 $ } from "react";
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 v from "./Button.js";
6
- import { u as y } from "./useDetectMobile-BC6EGaBc.js";
7
- const M = r.div`
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
- `, H = r.div`
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
- `, I = $((e, B) => {
87
+ `, E = y((e, l) => {
88
88
  const {
89
- title: l,
90
- subtitle: h,
91
- buttonText: g,
92
- image: a,
93
- imagePosition: n = "right",
94
- noImageForMobile: m = !1,
95
- height: s,
96
- imageWidth: c,
97
- imageHeightMob: x,
98
- smallPadding: p = !1,
99
- isHorizontalContent: u = !1,
100
- backgroundColor: b,
101
- hasBorder: f = !1,
102
- onBannerClick: w
103
- } = e, d = y();
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
- M,
107
+ B,
106
108
  {
107
- bgcolor: b,
108
- height: s,
109
- imgW: c,
110
- imgHMob: x,
111
- hasBorder: f,
109
+ ref: l,
110
+ bgcolor: $,
111
+ height: p,
112
+ imgW: u,
113
+ imgHMob: b,
114
+ hasBorder: v,
112
115
  children: [
113
- n !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a }),
116
+ a !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n }),
114
117
  /* @__PURE__ */ t(
115
118
  C,
116
119
  {
117
- isHorizontalContent: u,
118
- smallPadding: p,
120
+ isHorizontalContent: w,
121
+ smallPadding: f,
119
122
  children: [
120
- /* @__PURE__ */ t(H, { children: [
121
- /* @__PURE__ */ i("div", { className: "header-title", children: l }),
122
- /* @__PURE__ */ i("div", { className: "header-subitle", children: h })
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
- v,
128
+ H,
126
129
  {
127
130
  size: "medium",
128
131
  color: "neutral",
129
132
  type: "button",
130
- onClick: w,
131
- children: g
133
+ onClick: () => x(c),
134
+ children: s
132
135
  }
133
136
  )
134
137
  ]
135
138
  }
136
139
  ),
137
- n === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: a })
140
+ a === "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n })
138
141
  ]
139
142
  }
140
143
  );
141
144
  });
142
145
  export {
143
- I as default
146
+ E as default
144
147
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),c=require("./consts-CtNoHdBj.cjs"),u=require("./Button.cjs"),t=require("./utils-NZLCh-J5.cjs"),h=s.newStyled.div`
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
- `,g=s.newStyled.div`
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
- `,p=s.newStyled.div`
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
- `,j=o.forwardRef((a,y)=>{const{title:i,subtitle:n,buttonText:d,list:r,fallback:m=()=>{},onBannerClick:l}=a;return e.jsxs(h,{children:[(t.isDefined(i)||t.isDefined(n))&&e.jsxs(g,{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(p,{children:r==null?void 0:r.map((x,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:x})]})},f))}),e.jsx(u,{size:"medium",color:"neutral",type:"button",onClick:()=>t.isDefined(l)?l():m(),children:d})]})});module.exports=j;
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 l, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as h, Fragment as x } from "react";
3
- import { n as o } from "./emotion-styled.browser.esm-CjCaF13H.js";
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 u = o.div`
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
- `, y = o.div`
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
- `, b = o.div`
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 = h((m, w) => {
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
- fallback: d = () => {
78
- },
79
- onBannerClick: c
80
- } = m;
81
- return /* @__PURE__ */ l(u, { children: [
82
- (t(i) || t(n)) && /* @__PURE__ */ l(y, { children: [
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(b, { children: r == null ? void 0 : r.map((f, p) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ l("div", { className: "list-item", children: [
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: f })
89
- ] }) }, p)) }),
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: () => t(c) ? c() : d(),
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"),b=require("./Button.cjs"),w=t.newStyled.div`
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
- `,y=t.newStyled.div`
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
- `,j=t.newStyled.div`
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
- `,v=t.newStyled.div`
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
- `,$=o.forwardRef((e,S)=>{const{title:a,subtitle:m,buttonText:s,list:n,image:d,imageHeight:l,imageWidth:c,imageHeightMob:x,hasBorder:g=!0,backgroundColor:h="transparent",onBannerClick:p}=e;return i.jsxs(w,{imgH:l,imgW:c,imgHMob:x,hasBorder:g,bgColor:h,children:[i.jsxs(y,{children:[i.jsxs(j,{children:[i.jsx("div",{className:"header-title",children:a}),i.jsx("div",{className:"header-subitle",children:m})]}),i.jsx(v,{children:n==null?void 0:n.map((u,f)=>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:u})]})},f))}),i.jsx(b,{size:"medium",color:"gray",type:"button",btnType:"outline",onClick:p,children:s})]}),i.jsx("img",{src:d})]})});module.exports=$;
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 r, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as u, Fragment as w } from "react";
3
- import { n as t } from "./emotion-styled.browser.esm-CjCaF13H.js";
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 v from "./Button.js";
6
- const y = t.div`
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
- `, $ = t.div`
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
- `, H = t.div`
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
- `, W = t.div`
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 = u((e, k) => {
87
+ `, N = v((e, m) => {
88
88
  const {
89
- title: o,
90
- subtitle: a,
91
- buttonText: d,
92
- list: m,
93
- image: l,
94
- imageHeight: c,
95
- imageWidth: s,
96
- imageHeightMob: g,
97
- hasBorder: h = !0,
98
- backgroundColor: p = "transparent",
99
- onBannerClick: x
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__ */ r(
102
- y,
103
+ return /* @__PURE__ */ t(
104
+ H,
103
105
  {
104
- imgH: c,
105
- imgW: s,
106
- imgHMob: g,
107
- hasBorder: h,
108
- bgColor: p,
106
+ ref: m,
107
+ imgH: s,
108
+ imgW: g,
109
+ imgHMob: h,
110
+ hasBorder: p,
111
+ bgColor: x,
109
112
  children: [
110
- /* @__PURE__ */ r($, { children: [
111
- /* @__PURE__ */ r(H, { children: [
112
- /* @__PURE__ */ i("div", { className: "header-title", children: o }),
113
- /* @__PURE__ */ i("div", { className: "header-subitle", children: a })
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(W, { children: m == null ? void 0 : m.map((f, b) => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ r("div", { className: "list-item", children: [
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: f })
118
- ] }) }, b)) }),
120
+ /* @__PURE__ */ i("span", { children: u })
121
+ ] }) }, w)) }),
119
122
  /* @__PURE__ */ i(
120
- v,
123
+ $,
121
124
  {
122
125
  size: "medium",
123
126
  color: "gray",
124
127
  type: "button",
125
128
  btnType: "outline",
126
- onClick: x,
127
- children: d
129
+ onClick: () => f(b),
130
+ children: l
128
131
  }
129
132
  )
130
133
  ] }),
131
- /* @__PURE__ */ i("img", { src: l })
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"),c=require("react"),w=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),v=require("./consts-CtNoHdBj.cjs"),S=require("./useDetectMobile-D6d5LpdL.cjs"),d=require("./utils-NZLCh-J5.cjs"),y=require("./style-BR3tIhP1.cjs"),C=require("./Button.cjs"),D=w.newStyled.div`
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: ${d.linearGradientAnimation("-90deg")};
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: ${d.linearGradientAnimation("-90deg")};
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: ${d.linearGradientAnimation("-90deg")};
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
- ${d.truncateTextInRows(2)}
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=c.forwardRef((t,m)=>{const{title:i,image:l,text:a,numberOfLikes:s,numberOfComments:f,readDuration:o,datePublished:u,tags:g,onCardClick:h,timeToReadText:p="read"}=t;return r.jsxs(k,{className:"blog-card",onClick:h,children:[r.jsx("img",{src:l}),r.jsxs(N,{children:[r.jsxs("div",{className:"info-wr",children:[r.jsxs("div",{className:"info-wr-1",children:[r.jsx("span",{children:u}),r.jsx("span",{className:"small-dot",children:"●"}),o&&p?`${o} ${p}`:"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:f})]})]})]}),r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:a})]}),r.jsx("div",{className:"tags-wr",children:g==null?void 0:g.map((n,e)=>r.jsx(y.BlogTag,{color:n==null?void 0:n.color,children:n==null?void 0:n.name},e))})]})}),$=c.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:m=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(l,a)=>r.jsx($,{isLoading:m},`${i}-skeleton-product-card-${a}`))}),P=({children:t,fallbackComponent:m=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:l,keyPrefix:a})=>r.jsx(c.Suspense,{fallbackComponent:m,children:i===!0?r.jsx(B,{isLoading:i,limit:l,keyPrefix:a}):t}),b=c.memo(O),R=c.forwardRef((t,m)=>{const{icon:i,title:l,onButtonAction:a,items:s,buttonText:f,limit:o=3,onSelectCard:u=()=>{},isLoading:g=!1,onSectionClick:h=()=>{}}=t,p=S.useDetectMobile(),n=c.useMemo(()=>r.jsx(r.Fragment,{children:p===!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:()=>u(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:()=>u(e==null?void 0:e.uuid)},j))}),[s]);return r.jsxs(y.RegulatTitleSectionWrapper,{children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:l})]}),d.isDefinedNotEmptyString(h)&&r.jsx(C,{type:"button",btnType:"tinted",color:"gray",onClick:()=>a(buttonLink),borderRadius:"curved",children:f})]}),r.jsx(D,{limit:o,children:r.jsx(P,{isLoading:g,limit:o,keyPrefix:"explore-landing",children:n})})]})});module.exports=R;
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;