@lanaco/lnc-react-ui 4.0.185 → 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 +16 -15
  46. package/dist/MasonryGeneralCardsSection.js +83 -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,5 @@
1
- "use strict";const e=require("react/jsx-runtime"),h=require("react"),_=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),n=require("./utils-RnrgDDZP.cjs"),c=require("./consts-goSZX3xP.cjs"),w=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),i=require("./style-BAcV7F53.cjs"),j=d.styled.div`
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
+ text-decoration: none;
2
3
  display: flex;
3
4
  flex-direction: column;
4
5
  align-items: flex-start;
@@ -32,7 +33,7 @@
32
33
  width: 24.5rem;
33
34
  height: 30rem;
34
35
  border-radius: 0.75rem;
35
- background-color: ${n.linearGradientAnimation("-90deg")};
36
+ background-color: ${i.linearGradientAnimation("-90deg")};
36
37
  }
37
38
 
38
39
  & .wrapper__text {
@@ -52,7 +53,7 @@
52
53
  font-style: normal;
53
54
  font-weight: 500;
54
55
  line-height: 1.5rem;
55
- ${n.truncateTextInRows(2)}
56
+ ${i.truncateTextInRows(2)}
56
57
  }
57
58
 
58
59
  & .text__tag {
@@ -74,7 +75,7 @@
74
75
  font-style: normal;
75
76
  font-weight: 400;
76
77
  line-height: 1.25rem;
77
- ${n.truncateTextInRows(2)}
78
+ ${i.truncateTextInRows(2)}
78
79
  }
79
80
 
80
81
  & .text__action {
@@ -88,32 +89,32 @@
88
89
  }
89
90
 
90
91
  & .text__title--skeleton {
91
- background-color: ${n.linearGradientAnimation("-90deg")};
92
+ background-color: ${i.linearGradientAnimation("-90deg")};
92
93
  height: 1rem;
93
94
  width: 9rem;
94
95
  }
95
96
 
96
97
  & .text__description--skeleton {
97
- background-color: ${n.linearGradientAnimation("-90deg")};
98
+ background-color: ${i.linearGradientAnimation("-90deg")};
98
99
  height: 1rem;
99
100
  width: 12rem;
100
101
  }
101
102
 
102
103
  & .text__action--skeleton {
103
- background-color: ${n.linearGradientAnimation("-90deg")};
104
+ background-color: ${i.linearGradientAnimation("-90deg")};
104
105
  height: 2rem;
105
106
  width: 9rem;
106
107
  }
107
108
  }
108
109
  cursor: pointer;
109
110
 
110
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
111
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
111
112
  & .wrapper__image {
112
113
  height: 100%;
113
114
  max-height: 14.5rem;
114
115
  }
115
116
  }
116
- `,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}),n.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"text__description",children:o}),n.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`
117
118
  display: flex;
118
119
  flex-direction: column;
119
120
  gap: 1.5rem;
@@ -137,7 +138,7 @@
137
138
  }
138
139
  }
139
140
 
140
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
141
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
141
142
  & .regular-title {
142
143
  font-size: 1.375rem;
143
144
 
@@ -146,7 +147,7 @@
146
147
  }
147
148
  }
148
149
  }
149
- `,y=d.styled.div`
150
+ `,$=s.styled.div`
150
151
  display: grid;
151
152
  grid-template-columns: ${r=>"repeat(12, minmax(0, 1fr))"};
152
153
 
@@ -156,7 +157,7 @@
156
157
  height: 30rem;
157
158
  max-height: 30rem;
158
159
 
159
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
160
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
160
161
  display: flex;
161
162
  flex-direction: column;
162
163
  gap: 1.25rem;
@@ -164,8 +165,8 @@
164
165
  height: 100%;
165
166
  max-height: 100%;
166
167
  }
167
- `,S=d.styled(i.SkeletonRowWrapper)`
168
- @media (max-width: ${c.MOBILE_SIZE_PX+"px"}) {
168
+ `,v=s.styled(n.SkeletonRowWrapper)`
169
+ @media (max-width: ${d.MOBILE_SIZE_PX+"px"}) {
169
170
  flex-direction: column;
170
171
 
171
172
  & .skeleton__big {
@@ -178,4 +179,4 @@
178
179
  flex-direction: column;
179
180
  }
180
181
  }
181
- `,v=({keyPrefix:r})=>e.jsxs(S,{children:[e.jsx(i.SkeletonColumnWrapper,{children:e.jsx(i.SkeletonLinePlaceholder,{height:"31.25rem",className:"skeleton__big"},`${r}-1`)}),e.jsxs(i.SkeletonColumnWrapper,{children:[e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-2`),e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-3`)]}),e.jsxs(i.SkeletonRowWrapper,{noGradient:!0,children:[e.jsx(i.SkeletonLinePlaceholder,{height:"15rem"},`${r}-4`),e.jsx(i.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,13 @@
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 u } 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 x, b as o } from "./style-CXMUA6cI.js";
9
- const C = s.div`
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
+ text-decoration: none;
10
11
  display: flex;
11
12
  flex-direction: column;
12
13
  align-items: flex-start;
@@ -52,7 +53,7 @@ const C = s.div`
52
53
  width: 24.5rem;
53
54
  height: 30rem;
54
55
  border-radius: 0.75rem;
55
- background-color: ${m("-90deg")};
56
+ background-color: ${d("-90deg")};
56
57
  }
57
58
 
58
59
  & .wrapper__text {
@@ -72,7 +73,7 @@ const C = s.div`
72
73
  font-style: normal;
73
74
  font-weight: 500;
74
75
  line-height: 1.5rem;
75
- ${f(2)}
76
+ ${_(2)}
76
77
  }
77
78
 
78
79
  & .text__tag {
@@ -94,7 +95,7 @@ const C = s.div`
94
95
  font-style: normal;
95
96
  font-weight: 400;
96
97
  line-height: 1.25rem;
97
- ${f(2)}
98
+ ${_(2)}
98
99
  }
99
100
 
100
101
  & .text__action {
@@ -108,66 +109,72 @@ const C = s.div`
108
109
  }
109
110
 
110
111
  & .text__title--skeleton {
111
- background-color: ${m("-90deg")};
112
+ background-color: ${d("-90deg")};
112
113
  height: 1rem;
113
114
  width: 9rem;
114
115
  }
115
116
 
116
117
  & .text__description--skeleton {
117
- background-color: ${m("-90deg")};
118
+ background-color: ${d("-90deg")};
118
119
  height: 1rem;
119
120
  width: 12rem;
120
121
  }
121
122
 
122
123
  & .text__action--skeleton {
123
- background-color: ${m("-90deg")};
124
+ background-color: ${d("-90deg")};
124
125
  height: 2rem;
125
126
  width: 9rem;
126
127
  }
127
128
  }
128
129
  cursor: pointer;
129
130
 
130
- @media (max-width: ${c + "px"}) {
131
+ @media (max-width: ${m + "px"}) {
131
132
  & .wrapper__image {
132
133
  height: 100%;
133
134
  max-height: 14.5rem;
134
135
  }
135
136
  }
136
- `, G = w(
137
+ `, M = v(
137
138
  ({
138
139
  title: e,
139
140
  imageUrl: t,
140
141
  description: a,
141
- buttonText: n,
142
- onSelectCard: g = () => {
142
+ buttonText: o,
143
+ onSelectCard: c = () => {
143
144
  },
144
- className: h,
145
- position: l,
146
- tag: d,
147
- backgroundColor: b,
148
- buttonLink: v
149
- }, $) => {
150
- const k = N();
151
- return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ i(
152
- 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,
153
155
  {
154
- ref: $,
155
- theme: k,
156
- className: h,
157
- position: l,
158
- backgroundColor: b,
159
- onClick: g,
160
- 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
+ },
161
168
  children: [
162
169
  /* @__PURE__ */ r("img", { src: t, className: "wrapper__image" }),
163
170
  /* @__PURE__ */ i("div", { className: "wrapper__text", children: [
164
- d && /* @__PURE__ */ r("div", { className: "text__tag", children: d }),
171
+ n && /* @__PURE__ */ r("div", { className: "text__tag", children: n }),
165
172
  /* @__PURE__ */ r("div", { className: "text__title", children: e }),
166
- u(a) && /* @__PURE__ */ r("div", { className: "text__description", children: a }),
167
- u(n) && /* @__PURE__ */ r(
168
- S,
173
+ w(a) && /* @__PURE__ */ r("div", { className: "text__description", children: a }),
174
+ w(o) && /* @__PURE__ */ r(
175
+ C,
169
176
  {
170
- text: n,
177
+ text: o,
171
178
  className: "text__action"
172
179
  }
173
180
  )
@@ -176,7 +183,7 @@ const C = s.div`
176
183
  }
177
184
  ) });
178
185
  }
179
- ), z = s.div`
186
+ ), j = s.div`
180
187
  display: flex;
181
188
  flex-direction: column;
182
189
  gap: 1.5rem;
@@ -200,7 +207,7 @@ const C = s.div`
200
207
  }
201
208
  }
202
209
 
203
- @media (max-width: ${c + "px"}) {
210
+ @media (max-width: ${m + "px"}) {
204
211
  & .regular-title {
205
212
  font-size: 1.375rem;
206
213
 
@@ -209,7 +216,7 @@ const C = s.div`
209
216
  }
210
217
  }
211
218
  }
212
- `, M = s.div`
219
+ `, E = s.div`
213
220
  display: grid;
214
221
  grid-template-columns: ${(e) => "repeat(12, minmax(0, 1fr))"};
215
222
 
@@ -219,7 +226,7 @@ const C = s.div`
219
226
  height: 30rem;
220
227
  max-height: 30rem;
221
228
 
222
- @media (max-width: ${c + "px"}) {
229
+ @media (max-width: ${m + "px"}) {
223
230
  display: flex;
224
231
  flex-direction: column;
225
232
  gap: 1.25rem;
@@ -227,8 +234,8 @@ const C = s.div`
227
234
  height: 100%;
228
235
  max-height: 100%;
229
236
  }
230
- `, j = s(p)`
231
- @media (max-width: ${c + "px"}) {
237
+ `, W = s(f)`
238
+ @media (max-width: ${m + "px"}) {
232
239
  flex-direction: column;
233
240
 
234
241
  & .skeleton__big {
@@ -241,51 +248,59 @@ const C = s.div`
241
248
  flex-direction: column;
242
249
  }
243
250
  }
244
- `, E = ({ keyPrefix: e }) => /* @__PURE__ */ i(j, { children: [
245
- /* @__PURE__ */ r(x, { children: /* @__PURE__ */ r(
246
- o,
251
+ `, R = ({ keyPrefix: e }) => /* @__PURE__ */ i(W, { children: [
252
+ /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(
253
+ l,
247
254
  {
248
255
  height: "31.25rem",
249
256
  className: "skeleton__big"
250
257
  },
251
258
  `${e}-1`
252
259
  ) }),
253
- /* @__PURE__ */ i(x, { children: [
254
- /* @__PURE__ */ i(p, { noGradient: !0, children: [
255
- /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-2`),
256
- /* @__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`)
257
264
  ] }),
258
- /* @__PURE__ */ i(p, { noGradient: !0, children: [
259
- /* @__PURE__ */ r(o, { height: "15rem" }, `${e}-4`),
260
- /* @__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`)
261
268
  ] })
262
269
  ] })
263
- ] }), W = ({
270
+ ] }), I = ({
264
271
  keyPrefix: e,
265
272
  isLoading: t = !1,
266
- fallbackComponent: a = /* @__PURE__ */ r(_, {}),
267
- children: n
268
- }) => /* @__PURE__ */ r(y, { fallbackComponent: a, children: t === !0 ? /* @__PURE__ */ r(E, { keyPrefix: e }) : n }), O = w(
269
- ({ title: e, items: t, isLoading: a = !1, limit: n = 3, onSelectCard: g = () => {
270
- } }, 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: [
271
285
  /* @__PURE__ */ r("div", { className: "regular-title", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: e }) }) }),
272
286
  /* @__PURE__ */ r(
273
- W,
287
+ I,
274
288
  {
275
289
  isLoading: a,
276
290
  keyPrefix: "masonry-general-cards-skeleton",
277
- children: /* @__PURE__ */ r(M, { limit: n, children: t && (t == null ? void 0 : t.map((l, d) => /* @__PURE__ */ r(
278
- G,
291
+ children: /* @__PURE__ */ r(E, { limit: o, children: t && (t == null ? void 0 : t.map((n, p) => /* @__PURE__ */ r(
292
+ M,
279
293
  {
280
- ...l,
281
- onSelectCard: () => g(l)
294
+ ...n,
295
+ onSelectCard: () => c(n),
296
+ LinkComponent: g
282
297
  },
283
- `landing-page-masonry-general-card__${d + 1}`
298
+ `landing-page-masonry-general-card__${p + 1}`
284
299
  ))) })
285
300
  }
286
301
  )
287
302
  ] })
288
303
  );
289
304
  export {
290
- O as default
305
+ Z as default
291
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;