@lanaco/lnc-react-ui 4.0.186 → 4.0.188

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 (73) hide show
  1. package/dist/BannerSectionCarousel.cjs +4 -4
  2. package/dist/BannerSectionCarousel.js +150 -158
  3. package/dist/BlogCardsSponsoredSection.cjs +5 -5
  4. package/dist/BlogCardsSponsoredSection.js +55 -51
  5. package/dist/BlogCategoryCardsSection.cjs +1 -1
  6. package/dist/BlogCategoryCardsSection.js +1 -1
  7. package/dist/BlogExploreSection.cjs +5 -5
  8. package/dist/BlogExploreSection.js +182 -215
  9. package/dist/BlogListSection.cjs +6 -6
  10. package/dist/BlogListSection.js +134 -116
  11. package/dist/BlogProductCardsSection.cjs +1 -1
  12. package/dist/BlogProductCardsSection.js +26 -24
  13. package/dist/BlogShopCardsSection.cjs +1 -1
  14. package/dist/BlogShopCardsSection.js +1 -1
  15. package/dist/BlogSingleSection.cjs +3 -3
  16. package/dist/BlogSingleSection.js +21 -19
  17. package/dist/BlogsSectionDetailed.cjs +4 -4
  18. package/dist/BlogsSectionDetailed.js +81 -76
  19. package/dist/BlogsSectionLarge.cjs +6 -6
  20. package/dist/BlogsSectionLarge.js +34 -31
  21. package/dist/BlogsSectionSimple.cjs +8 -8
  22. package/dist/BlogsSectionSimple.js +68 -63
  23. package/dist/BlogsSectionSimpleCentered.cjs +9 -9
  24. package/dist/BlogsSectionSimpleCentered.js +67 -54
  25. package/dist/BlogsSectionWithFilters.cjs +9 -9
  26. package/dist/BlogsSectionWithFilters.js +98 -84
  27. package/dist/BrandHitsSection.cjs +7 -7
  28. package/dist/BrandHitsSection.js +50 -32
  29. package/dist/{CategorySimpleCard-DRQuoxXu.js → CategorySimpleCard-CEzArySG.js} +18 -17
  30. package/dist/{CategorySimpleCard-D5N8cx0Z.cjs → CategorySimpleCard-COGlTj06.cjs} +5 -5
  31. package/dist/DetailedProductsInfinitiveSection.cjs +4 -4
  32. package/dist/DetailedProductsInfinitiveSection.js +23 -21
  33. package/dist/DetailedProductsSection.cjs +3 -3
  34. package/dist/DetailedProductsSection.js +38 -35
  35. package/dist/FieldOfInterestsMasonrySection.cjs +12 -12
  36. package/dist/FieldOfInterestsMasonrySection.js +87 -83
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +7 -7
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +47 -43
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +87 -62
  41. package/dist/GeneralWithTagsCardsSection.cjs +4 -4
  42. package/dist/GeneralWithTagsCardsSection.js +83 -46
  43. package/dist/GiftCardsSection.cjs +7 -7
  44. package/dist/GiftCardsSection.js +56 -47
  45. package/dist/MasonryGeneralCardsSection.cjs +9 -9
  46. package/dist/MasonryGeneralCardsSection.js +82 -68
  47. package/dist/OverlayGeneralCardsSection.cjs +5 -5
  48. package/dist/OverlayGeneralCardsSection.js +58 -50
  49. package/dist/ProductsWithBannerSection.cjs +10 -10
  50. package/dist/ProductsWithBannerSection.js +79 -70
  51. package/dist/QuattroCardsSection.cjs +8 -8
  52. package/dist/QuattroCardsSection.js +62 -40
  53. package/dist/ReviewsSection.cjs +8 -8
  54. package/dist/ReviewsSection.js +92 -67
  55. package/dist/SalesCampaignsSection.cjs +18 -18
  56. package/dist/SalesCampaignsSection.js +304 -298
  57. package/dist/ShopCardsSection.cjs +3 -3
  58. package/dist/ShopCardsSection.js +25 -23
  59. package/dist/SimpleCategoriesSection.cjs +4 -4
  60. package/dist/SimpleCategoriesSection.js +25 -22
  61. package/dist/SimpleProductsSection.cjs +3 -3
  62. package/dist/SimpleProductsSection.js +53 -50
  63. package/dist/UrgentSaleProductsSection.cjs +4 -4
  64. package/dist/UrgentSaleProductsSection.js +41 -38
  65. package/dist/{index-CA59z2ge.js → index-9inVkeN6.js} +46 -40
  66. package/dist/{index-C8QkdNHi.js → index-BB63Jo6p.js} +42 -36
  67. package/dist/{index-DHV9awrE.cjs → index-BFc3nxYZ.cjs} +3 -3
  68. package/dist/{index-MiN854X_.cjs → index-BWE-RCPy.cjs} +6 -6
  69. package/dist/{index-Bmr3IeZ_.cjs → index-DBokGIps.cjs} +14 -14
  70. package/dist/{index-BipuzfLW.js → index-DMHtIdm-.js} +39 -29
  71. package/dist/{index-0p_3g3pT.cjs → index-D_5jNP-o.cjs} +3 -3
  72. package/dist/{index-DZ8515cZ.js → index-DdUC0zgY.js} +211 -192
  73. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { jsxs as i, jsx as r, Fragment as R } from "react/jsx-runtime";
2
- import { forwardRef as v, Suspense as k } from "react";
3
- import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
4
- import { R as I } from "./style-C7FUSHmS.js";
5
- import { p as N, G as A, k as g } from "./utils-Dc5zIpaz.js";
2
+ import { forwardRef as C, Suspense as $ } from "react";
3
+ import { u as I } from "./useDetectMobile-Bkvj0VMa.js";
4
+ import { R as N } from "./style-C7FUSHmS.js";
5
+ import { p as A, G as L, k as b } from "./utils-Dc5zIpaz.js";
6
6
  import W from "./Button.js";
7
- import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
+ import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as S } from "./consts-BuFChS64.js";
9
9
  import { s as T, a as j, S as h, b as o } from "./style-CXMUA6cI.js";
10
- const z = p.div`
10
+ const z = g.div`
11
11
  display: grid;
12
12
  grid-template-columns: ${(t) => `repeat(${t.limit}, minmax(0, 1fr))`};
13
13
  gap: 1.25rem;
@@ -15,7 +15,7 @@ const z = p.div`
15
15
  @media (max-width: ${S + "px"}) {
16
16
  grid-template-columns: repeat(1, 1fr);
17
17
  }
18
- `, B = p.a`
18
+ `, B = g.a`
19
19
  text-decoration: none;
20
20
  color: var(--gray-950);
21
21
  display: flex;
@@ -38,7 +38,7 @@ const z = p.div`
38
38
  transform: scale(1.1);
39
39
  }
40
40
  }
41
- `, E = p.div`
41
+ `, E = g.div`
42
42
  width: 100%;
43
43
  min-height: 11rem;
44
44
  max-height: 11rem;
@@ -75,33 +75,39 @@ const z = p.div`
75
75
  -webkit-transform: rotate(315deg);
76
76
  transform: rotate(315deg);
77
77
  }
78
- `, w = v((t, s) => {
78
+ `, v = C((t, c) => {
79
79
  const {
80
80
  image: a,
81
- text: l,
81
+ text: m,
82
82
  price: d,
83
83
  currency: n,
84
- onSelectGiftCard: m = () => {
84
+ onSelectGiftCard: u = () => {
85
85
  },
86
- selectAction: u
86
+ selectAction: l,
87
+ LinkComponent: p
87
88
  } = t;
88
89
  return /* @__PURE__ */ i(
89
90
  B,
90
91
  {
91
- ref: s,
92
+ ref: c,
92
93
  className: "simple-gift-card",
93
- onClick: () => m(d),
94
- href: u,
94
+ onClick: () => u(d),
95
+ as: p || "a",
96
+ ...p ? {
97
+ to: `${l}`
98
+ } : {
99
+ href: `${l}`
100
+ },
95
101
  children: [
96
102
  /* @__PURE__ */ i(E, { children: [
97
- /* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${N(d)} ${A(n)}` }),
103
+ /* @__PURE__ */ r("div", { className: "price-tag", children: d && n && `${A(d)} ${L(n)}` }),
98
104
  /* @__PURE__ */ r("img", { src: a })
99
105
  ] }),
100
- /* @__PURE__ */ r("div", { className: "text-wrap", children: l })
106
+ /* @__PURE__ */ r("div", { className: "text-wrap", children: m })
101
107
  ]
102
108
  }
103
109
  );
104
- }), L = p(j)`
110
+ }), M = g(j)`
105
111
  @media (max-width: ${S + "px"}) {
106
112
  flex-direction: column;
107
113
 
@@ -113,7 +119,7 @@ const z = p.div`
113
119
  }
114
120
  }
115
121
  }
116
- `, M = ({ keyPrefix: t }) => /* @__PURE__ */ i(L, { children: [
122
+ `, D = ({ keyPrefix: t }) => /* @__PURE__ */ i(M, { children: [
117
123
  /* @__PURE__ */ i(h, { alignItems: "center", children: [
118
124
  /* @__PURE__ */ r(o, { height: "11rem", borderRadius: "0.75rem" }),
119
125
  /* @__PURE__ */ r(
@@ -182,49 +188,50 @@ const z = p.div`
182
188
  },
183
189
  `${t}-4`
184
190
  )
185
- ] }), D = ({
191
+ ] }), U = ({
186
192
  keyPrefix: t,
187
- isLoading: s = !1,
193
+ isLoading: c = !1,
188
194
  fallbackComponent: a = /* @__PURE__ */ r(R, {}),
189
- children: l
190
- }) => /* @__PURE__ */ r(k, { fallbackComponent: a, children: s === !0 ? /* @__PURE__ */ r(M, { keyPrefix: t }) : l }), J = v((t, s) => {
195
+ children: m
196
+ }) => /* @__PURE__ */ r($, { fallbackComponent: a, children: c === !0 ? /* @__PURE__ */ r(D, { keyPrefix: t }) : m }), K = C((t, c) => {
191
197
  const {
192
198
  icon: a,
193
- title: l,
199
+ title: m,
194
200
  buttonLink: d,
195
201
  items: n,
196
- isLoading: m = !1,
197
- buttonText: u,
198
- limit: f = 4,
199
- onSelectCard: b = () => {
202
+ isLoading: u = !1,
203
+ buttonText: l,
204
+ limit: p = 4,
205
+ onSelectCard: f = () => {
200
206
  },
201
- onButtonAction: C = () => {
202
- }
203
- } = t, y = $();
204
- return /* @__PURE__ */ i(I, { ref: s, children: [
207
+ onButtonAction: k = () => {
208
+ },
209
+ LinkComponent: w
210
+ } = t, y = I();
211
+ return /* @__PURE__ */ i(N, { ref: c, children: [
205
212
  /* @__PURE__ */ i("div", { className: "regular-title", children: [
206
213
  /* @__PURE__ */ i("div", { className: "regular-title-text", children: [
207
- g(a) && /* @__PURE__ */ r("i", { className: a }),
208
- /* @__PURE__ */ r("span", { children: l })
214
+ b(a) && /* @__PURE__ */ r("i", { className: a }),
215
+ /* @__PURE__ */ r("span", { children: m })
209
216
  ] }),
210
- g(u) && g(d) && !m && /* @__PURE__ */ r(
217
+ b(l) && b(d) && !u && /* @__PURE__ */ r(
211
218
  W,
212
219
  {
213
220
  type: "button",
214
221
  btnType: "tinted",
215
222
  color: "neutral",
216
223
  onClick: (e) => {
217
- var c;
218
- (c = e == null ? void 0 : e.target) == null || c.blur(), C(d);
224
+ var s;
225
+ (s = e == null ? void 0 : e.target) == null || s.blur(), k(d);
219
226
  },
220
227
  borderRadius: "curved",
221
228
  className: "button-link",
222
- children: u
229
+ children: l
223
230
  }
224
231
  )
225
232
  ] }),
226
- /* @__PURE__ */ r(D, { isLoading: m, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ r(z, { limit: f, children: y === !0 ? n == null ? void 0 : n.map((e, c) => /* @__PURE__ */ r(
227
- w,
233
+ /* @__PURE__ */ r(U, { isLoading: u, keyPrefix: "gift-cards-skeleton", children: /* @__PURE__ */ r(z, { limit: p, children: y === !0 ? n == null ? void 0 : n.map((e, s) => /* @__PURE__ */ r(
234
+ v,
228
235
  {
229
236
  text: e == null ? void 0 : e.text,
230
237
  price: e == null ? void 0 : e.priceTo,
@@ -232,11 +239,12 @@ const z = p.div`
232
239
  image: e == null ? void 0 : e.imageUrl,
233
240
  uuid: e == null ? void 0 : e.uuid,
234
241
  selectAction: e == null ? void 0 : e.selectAction,
235
- onSelectGiftCard: (G) => b(e)
242
+ onSelectGiftCard: (G) => f(e),
243
+ LinkComponent: w
236
244
  },
237
- c
238
- )) : n == null ? void 0 : n.slice(0, f).map((e, c) => /* @__PURE__ */ r(
239
- w,
245
+ s
246
+ )) : n == null ? void 0 : n.slice(0, p).map((e, s) => /* @__PURE__ */ r(
247
+ v,
240
248
  {
241
249
  text: e == null ? void 0 : e.text,
242
250
  price: e == null ? void 0 : e.priceTo,
@@ -244,12 +252,13 @@ const z = p.div`
244
252
  image: e == null ? void 0 : e.imageUrl,
245
253
  uuid: e == null ? void 0 : e.uuid,
246
254
  selectAction: e == null ? void 0 : e.selectAction,
247
- onSelectGiftCard: (G) => b(e)
255
+ onSelectGiftCard: (G) => f(e),
256
+ LinkComponent: w
248
257
  },
249
- c
258
+ s
250
259
  )) }) })
251
260
  ] });
252
261
  });
253
262
  export {
254
- J as default
263
+ K as default
255
264
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),h=require("react"),_=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),c=require("./consts-goSZX3xP.cjs"),w=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),j=d.styled.a`
1
+ "use strict";const e=require("react/jsx-runtime"),p=require("react"),j=require("./Button.cjs"),s=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),d=require("./consts-goSZX3xP.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),n=require("./style-BAcV7F53.cjs"),y=s.styled.a`
2
2
  text-decoration: none;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -108,13 +108,13 @@
108
108
  }
109
109
  cursor: pointer;
110
110
 
111
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
111
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
112
112
  & .wrapper__image {
113
113
  height: 100%;
114
114
  max-height: 14.5rem;
115
115
  }
116
116
  }
117
- `,b=h.forwardRef(({title:r,imageUrl:t,description:o,buttonText:a,onSelectCard:m=()=>{},className:g,position:l,tag:s,backgroundColor:p,buttonLink:x},u)=>{const f=w.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(j,{ref:u,theme:f,className:g,position:l,backgroundColor:p,onClick:m,href:`/${x}`,children:[e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__text",children:[s&&e.jsx("div",{className:"text__tag",children:s}),e.jsx("div",{className:"text__title",children:r}),i.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),i.isDefinedNotEmptyString(a)&&e.jsx(_,{text:a,className:"text__action"})]})]})})}),k=d.styled.div`
117
+ `,k=p.forwardRef(({title:r,imageUrl:t,description:o,buttonText:a,onSelectCard:c=()=>{},className:m,position:g,tag:l,backgroundColor:h,buttonLink:x,LinkComponent:u},f)=>{const _=u||"a",w=b.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(y,{ref:f,theme:w,className:m,position:g,backgroundColor:h,onClick:c,as:_,...u?{to:`/${x}`}:{href:`/${x}`},children:[e.jsx("img",{src:t,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__text",children:[l&&e.jsx("div",{className:"text__tag",children:l}),e.jsx("div",{className:"text__title",children:r}),i.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),i.isDefinedNotEmptyString(a)&&e.jsx(j,{text:a,className:"text__action"})]})]})})}),S=s.styled.div`
118
118
  display: flex;
119
119
  flex-direction: column;
120
120
  gap: 1.5rem;
@@ -138,7 +138,7 @@
138
138
  }
139
139
  }
140
140
 
141
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
141
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
142
142
  & .regular-title {
143
143
  font-size: 1.375rem;
144
144
 
@@ -147,7 +147,7 @@
147
147
  }
148
148
  }
149
149
  }
150
- `,y=d.styled.div`
150
+ `,$=s.styled.div`
151
151
  display: grid;
152
152
  grid-template-columns: ${r=>"repeat(12, minmax(0, 1fr))"};
153
153
 
@@ -157,7 +157,7 @@
157
157
  height: 30rem;
158
158
  max-height: 30rem;
159
159
 
160
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
160
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
161
161
  display: flex;
162
162
  flex-direction: column;
163
163
  gap: 1.25rem;
@@ -165,8 +165,8 @@
165
165
  height: 100%;
166
166
  max-height: 100%;
167
167
  }
168
- `,S=d.styled(n.SkeletonRowWrapper)`
169
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
168
+ `,v=s.styled(n.SkeletonRowWrapper)`
169
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
170
170
  flex-direction: column;
171
171
 
172
172
  & .skeleton__big {
@@ -179,4 +179,4 @@
179
179
  flex-direction: column;
180
180
  }
181
181
  }
182
- `,v=({keyPrefix:r})=>e.jsxs(S,{children:[e.jsx(n.SkeletonColumnWrapper,{children:e.jsx(n.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(n.SkeletonColumnWrapper,{children:[e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-5`)]})]})]}),$=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=e.jsx(e.Fragment,{}),children:a})=>e.jsx(h.Suspense,{fallbackComponent:o,children:t===!0?e.jsx(v,{keyPrefix:r}):a}),E=h.forwardRef(({title:r,items:t,isLoading:o=!1,limit:a=3,onSelectCard:m=()=>{}},g)=>e.jsxs(k,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx($,{isLoading:o,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx(y,{limit:a,children:t&&(t==null?void 0:t.map((l,s)=>e.jsx(b,{...l,onSelectCard:()=>m(l)},`landing-page-masonry-general-card__${s+1}`)))})})]}));module.exports=E;
182
+ `,E=({keyPrefix:r})=>e.jsxs(v,{children:[e.jsx(n.SkeletonColumnWrapper,{children:e.jsx(n.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(n.SkeletonColumnWrapper,{children:[e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(n.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(n.SkeletonLinePlaceholder,{height:"15rem"},`${r}-5`)]})]})]}),G=({keyPrefix:r,isLoading:t=!1,fallbackComponent:o=e.jsx(e.Fragment,{}),children:a})=>e.jsx(p.Suspense,{fallbackComponent:o,children:t===!0?e.jsx(E,{keyPrefix:r}):a}),N=p.forwardRef(({title:r,items:t,isLoading:o=!1,limit:a=3,onSelectCard:c=()=>{},LinkComponent:m},g)=>e.jsxs(S,{ref:g,children:[e.jsx("div",{className:"regular-title",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:r})})}),e.jsx(G,{isLoading:o,keyPrefix:"masonry-general-cards-skeleton",children:e.jsx($,{limit:a,children:t&&(t==null?void 0:t.map((l,h)=>e.jsx(k,{...l,onSelectCard:()=>c(l),LinkComponent:m},`landing-page-masonry-general-card__${h+1}`)))})})]}));module.exports=N;
@@ -1,12 +1,12 @@
1
- import { jsx as r, Fragment as _, jsxs as i } from "react/jsx-runtime";
2
- import { forwardRef as w, Suspense as y } from "react";
3
- import S from "./Button.js";
1
+ import { jsx as r, Fragment as $, jsxs as i } from "react/jsx-runtime";
2
+ import { forwardRef as v, Suspense as N } from "react";
3
+ import C from "./Button.js";
4
4
  import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { w as m, o as f, k as x } from "./utils-Dc5zIpaz.js";
6
- import { M as c } from "./consts-BuFChS64.js";
7
- import { u as N } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- import { a as p, S as u, b as o } from "./style-CXMUA6cI.js";
9
- const C = s.a`
5
+ import { w as d, o as _, k as w } from "./utils-Dc5zIpaz.js";
6
+ import { M as m } from "./consts-BuFChS64.js";
7
+ import { u as G } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { a as f, S as b, b as l } from "./style-CXMUA6cI.js";
9
+ const z = s.a`
10
10
  text-decoration: none;
11
11
  display: flex;
12
12
  flex-direction: column;
@@ -53,7 +53,7 @@ const C = s.a`
53
53
  width: 24.5rem;
54
54
  height: 30rem;
55
55
  border-radius: 0.75rem;
56
- background-color: ${m("-90deg")};
56
+ background-color: ${d("-90deg")};
57
57
  }
58
58
 
59
59
  & .wrapper__text {
@@ -73,7 +73,7 @@ const C = s.a`
73
73
  font-style: normal;
74
74
  font-weight: 500;
75
75
  line-height: 1.5rem;
76
- ${f(2)}
76
+ ${_(2)}
77
77
  }
78
78
 
79
79
  & .text__tag {
@@ -95,7 +95,7 @@ const C = s.a`
95
95
  font-style: normal;
96
96
  font-weight: 400;
97
97
  line-height: 1.25rem;
98
- ${f(2)}
98
+ ${_(2)}
99
99
  }
100
100
 
101
101
  & .text__action {
@@ -109,66 +109,72 @@ const C = s.a`
109
109
  }
110
110
 
111
111
  & .text__title--skeleton {
112
- background-color: ${m("-90deg")};
112
+ background-color: ${d("-90deg")};
113
113
  height: 1rem;
114
114
  width: 9rem;
115
115
  }
116
116
 
117
117
  & .text__description--skeleton {
118
- background-color: ${m("-90deg")};
118
+ background-color: ${d("-90deg")};
119
119
  height: 1rem;
120
120
  width: 12rem;
121
121
  }
122
122
 
123
123
  & .text__action--skeleton {
124
- background-color: ${m("-90deg")};
124
+ background-color: ${d("-90deg")};
125
125
  height: 2rem;
126
126
  width: 9rem;
127
127
  }
128
128
  }
129
129
  cursor: pointer;
130
130
 
131
- @media (max-width: ${c + "px"}) {
131
+ @media (max-width: ${m + "px"}) {
132
132
  & .wrapper__image {
133
133
  height: 100%;
134
134
  max-height: 14.5rem;
135
135
  }
136
136
  }
137
- `, G = w(
137
+ `, M = v(
138
138
  ({
139
139
  title: e,
140
140
  imageUrl: t,
141
141
  description: a,
142
- buttonText: n,
143
- onSelectCard: g = () => {
142
+ buttonText: o,
143
+ onSelectCard: c = () => {
144
144
  },
145
- className: h,
146
- position: l,
147
- tag: d,
148
- backgroundColor: b,
149
- buttonLink: v
150
- }, $) => {
151
- const k = N();
152
- return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ i(
153
- C,
145
+ className: g,
146
+ position: h,
147
+ tag: n,
148
+ backgroundColor: p,
149
+ buttonLink: x,
150
+ LinkComponent: u
151
+ }, y) => {
152
+ const k = u || "a", S = G();
153
+ return /* @__PURE__ */ r($, { children: /* @__PURE__ */ i(
154
+ z,
154
155
  {
155
- ref: $,
156
- theme: k,
157
- className: h,
158
- position: l,
159
- backgroundColor: b,
160
- onClick: g,
161
- href: `/${v}`,
156
+ ref: y,
157
+ theme: S,
158
+ className: g,
159
+ position: h,
160
+ backgroundColor: p,
161
+ onClick: c,
162
+ as: k,
163
+ ...u ? {
164
+ to: `/${x}`
165
+ } : {
166
+ href: `/${x}`
167
+ },
162
168
  children: [
163
169
  /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
164
170
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: [
165
- d && /* @__PURE__ */ r("div", { className: "text__tag", children: d }),
171
+ n && /* @__PURE__ */ r("div", { className: "text__tag", children: n }),
166
172
  /* @__PURE__ */ r("div", { className: "text__title", children: e }),
167
- x(a) && /* @__PURE__ */ r("div", { className: "text__description", children: a }),
168
- x(n) && /* @__PURE__ */ r(
169
- S,
173
+ w(a) && /* @__PURE__ */ r("div", { className: "text__description", children: a }),
174
+ w(o) && /* @__PURE__ */ r(
175
+ C,
170
176
  {
171
- text: n,
177
+ text: o,
172
178
  className: "text__action"
173
179
  }
174
180
  )
@@ -177,7 +183,7 @@ const C = s.a`
177
183
  }
178
184
  ) });
179
185
  }
180
- ), z = s.div`
186
+ ), j = s.div`
181
187
  display: flex;
182
188
  flex-direction: column;
183
189
  gap: 1.5rem;
@@ -201,7 +207,7 @@ const C = s.a`
201
207
  }
202
208
  }
203
209
 
204
- @media (max-width: ${c + "px"}) {
210
+ @media (max-width: ${m + "px"}) {
205
211
  & .regular-title {
206
212
  font-size: 1.375rem;
207
213
 
@@ -210,7 +216,7 @@ const C = s.a`
210
216
  }
211
217
  }
212
218
  }
213
- `, M = s.div`
219
+ `, E = s.div`
214
220
  display: grid;
215
221
  grid-template-columns: ${(e) => "repeat(12, minmax(0, 1fr))"};
216
222
 
@@ -220,7 +226,7 @@ const C = s.a`
220
226
  height: 30rem;
221
227
  max-height: 30rem;
222
228
 
223
- @media (max-width: ${c + "px"}) {
229
+ @media (max-width: ${m + "px"}) {
224
230
  display: flex;
225
231
  flex-direction: column;
226
232
  gap: 1.25rem;
@@ -228,8 +234,8 @@ const C = s.a`
228
234
  height: 100%;
229
235
  max-height: 100%;
230
236
  }
231
- `, j = s(p)`
232
- @media (max-width: ${c + "px"}) {
237
+ `, W = s(f)`
238
+ @media (max-width: ${m + "px"}) {
233
239
  flex-direction: column;
234
240
 
235
241
  & .skeleton__big {
@@ -242,51 +248,59 @@ const C = s.a`
242
248
  flex-direction: column;
243
249
  }
244
250
  }
245
- `, E = ({ keyPrefix: e }) => /* @__PURE__ */ i(j, { children: [
246
- /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(
247
- o,
251
+ `, R = ({ keyPrefix: e }) => /* @__PURE__ */ i(W, { children: [
252
+ /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
253
+ l,
248
254
  {
249
255
  height: "31.25rem",
250
256
  className: "skeleton__big"
251
257
  },
252
258
  `${e}-1`
253
259
  ) }),
254
- /* @__PURE__ */ i(u, { children: [
255
- /* @__PURE__ */ i(p, { noGradient: !0, children: [
256
- /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-2`),
257
- /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-3`)
260
+ /* @__PURE__ */ i(b, { children: [
261
+ /* @__PURE__ */ i(f, { noGradient: !0, children: [
262
+ /* @__PURE__ */ r(l, { height: "15rem" }, `${e}-2`),
263
+ /* @__PURE__ */ r(l, { height: "15rem" }, `${e}-3`)
258
264
  ] }),
259
- /* @__PURE__ */ i(p, { noGradient: !0, children: [
260
- /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-4`),
261
- /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-5`)
265
+ /* @__PURE__ */ i(f, { noGradient: !0, children: [
266
+ /* @__PURE__ */ r(l, { height: "15rem" }, `${e}-4`),
267
+ /* @__PURE__ */ r(l, { height: "15rem" }, `${e}-5`)
262
268
  ] })
263
269
  ] })
264
- ] }), W = ({
270
+ ] }), I = ({
265
271
  keyPrefix: e,
266
272
  isLoading: t = !1,
267
- fallbackComponent: a = /* @__PURE__ */ r(_, {}),
268
- children: n
269
- }) => /* @__PURE__ */ r(y, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ r(E, { keyPrefix: e }) : n }), O = w(
270
- ({ title: e, items: t, isLoading: a = !1, limit: n = 3, onSelectCard: g = () => {
271
- } }, h) => /* @__PURE__ */ i(z, { ref: h, children: [
273
+ fallbackComponent: a = /* @__PURE__ */ r($, {}),
274
+ children: o
275
+ }) => /* @__PURE__ */ r(N, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ r(R, { keyPrefix: e }) : o }), Z = v(
276
+ ({
277
+ title: e,
278
+ items: t,
279
+ isLoading: a = !1,
280
+ limit: o = 3,
281
+ onSelectCard: c = () => {
282
+ },
283
+ LinkComponent: g
284
+ }, h) => /* @__PURE__ */ i(j, { ref: h, children: [
272
285
  /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: e }) }) }),
273
286
  /* @__PURE__ */ r(
274
- W,
287
+ I,
275
288
  {
276
289
  isLoading: a,
277
290
  keyPrefix: "masonry-general-cards-skeleton",
278
- children: /* @__PURE__ */ r(M, { limit: n, children: t && (t == null ? void 0 : t.map((l, d) => /* @__PURE__ */ r(
279
- G,
291
+ children: /* @__PURE__ */ r(E, { limit: o, children: t && (t == null ? void 0 : t.map((n, p) => /* @__PURE__ */ r(
292
+ M,
280
293
  {
281
- ...l,
282
- onSelectCard: () => g(l)
294
+ ...n,
295
+ onSelectCard: () => c(n),
296
+ LinkComponent: g
283
297
  },
284
- `landing-page-masonry-general-card__${d + 1}`
298
+ `landing-page-masonry-general-card__${p + 1}`
285
299
  ))) })
286
300
  }
287
301
  )
288
302
  ] })
289
303
  );
290
304
  export {
291
- O as default
305
+ Z as default
292
306
  };
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),d=require("react"),x=require("./Button.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-goSZX3xP.cjs"),_=require("./index-D-3I_Ppj.cjs"),u=f.styled.a`
1
+ "use strict";const n=require("react/jsx-runtime"),f=require("react"),u=require("./Button.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./consts-goSZX3xP.cjs"),m=require("./index-D-3I_Ppj.cjs"),y=g.styled.a`
2
2
  text-decoration: none;
3
3
  color: var(--gray-950);
4
4
  display: flex;
@@ -62,7 +62,7 @@
62
62
  }
63
63
  }
64
64
 
65
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
65
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
66
66
  padding: 2rem;
67
67
  min-height: 17.5rem;
68
68
  width: 100%;
@@ -85,7 +85,7 @@
85
85
  }
86
86
  }
87
87
  }
88
- `,m=d.forwardRef(({title:r,description:t,buttonText:i,imageUrl:s,backgroundColor:l="none",handleSelectCard:a=()=>{},handleButtonAction:e=()=>{},selectAction:c},h)=>n.jsxs(u,{ref:h,backgroundImage:s,backgroundColor:l,onClick:a,href:`/${c}`,children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),t&&n.jsx("div",{className:"section__description",children:t})]}),n.jsx(x,{text:i,onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation(),e()},borderRadius:"regular",color:"gray",className:"section__action"})]})),y=f.styled.div`
88
+ `,v=f.forwardRef(({title:r,description:t,buttonText:s,imageUrl:a,backgroundColor:l="none",handleSelectCard:c=()=>{},handleButtonAction:d=()=>{},selectAction:e,LinkComponent:i},x)=>{const _=i||"a";return n.jsxs(y,{ref:x,backgroundImage:a,backgroundColor:l,onClick:c,as:_,...i?{to:`/${e}`}:{href:`/${e}`},children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),t&&n.jsx("div",{className:"section__description",children:t})]}),n.jsx(u,{text:s,onClick:o=>{o==null||o.preventDefault(),o==null||o.stopPropagation(),d()},borderRadius:"regular",color:"gray",className:"section__action"})]})}),p=g.styled.div`
89
89
  display: flex;
90
90
  flex-direction: column;
91
91
  align-items: flex-start;
@@ -124,7 +124,7 @@
124
124
  }
125
125
  }
126
126
 
127
- @media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
127
+ @media (max-width: ${h.MOBILE_SIZE_PX+"px"}) {
128
128
  & .section__title {
129
129
  font-size: 1.375rem;
130
130
  line-height: 1.75rem;
@@ -134,4 +134,4 @@
134
134
  flex-direction: column;
135
135
  }
136
136
  }
137
- `,v=d.forwardRef(({title:r,items:t,isLoading:i=!1,onSelectCard:s=()=>{},onButtonAction:l=()=>{}},a)=>n.jsxs(y,{ref:a,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(_.SuspenseBlogsSectionDetailed,{isLoading:i,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:t==null?void 0:t.map((e,c)=>n.jsx(m,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>s(e),handleButtonAction:()=>l(e),selectAction:e==null?void 0:e.selectAction},`overlay-general-card__${c+1}`))})})]}));module.exports=v;
137
+ `,b=f.forwardRef(({title:r,items:t,isLoading:s=!1,onSelectCard:a=()=>{},onButtonAction:l=()=>{},LinkComponent:c},d)=>n.jsxs(p,{ref:d,children:[n.jsx("div",{className:"section__title",children:r}),n.jsx(m.SuspenseBlogsSectionDetailed,{isLoading:s,keyPrefix:"overlay-general-cards-skeleton",children:n.jsx("div",{className:"section__items",children:t==null?void 0:t.map((e,i)=>n.jsx(v,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>a(e),handleButtonAction:()=>l(e),selectAction:e==null?void 0:e.selectAction,LinkComponent:c},`overlay-general-card__${i+1}`))})})]}));module.exports=b;