@lanaco/lnc-react-ui 4.0.183 → 4.0.185

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 (75) hide show
  1. package/dist/BlogCardsSponsoredSection.cjs +5 -3
  2. package/dist/BlogCardsSponsoredSection.js +68 -64
  3. package/dist/BlogCategoryCardsSection.cjs +1 -1
  4. package/dist/BlogCategoryCardsSection.js +1 -1
  5. package/dist/BlogListSection.cjs +8 -6
  6. package/dist/BlogListSection.js +122 -114
  7. package/dist/BlogProductCardsSection.cjs +1 -1
  8. package/dist/BlogProductCardsSection.js +1 -1
  9. package/dist/BlogShopCardsSection.cjs +1 -1
  10. package/dist/BlogShopCardsSection.js +1 -1
  11. package/dist/BlogSingleSection.cjs +1 -1
  12. package/dist/BlogSingleSection.js +1 -1
  13. package/dist/BlogsSectionDetailed.cjs +5 -3
  14. package/dist/BlogsSectionDetailed.js +53 -49
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +9 -7
  18. package/dist/BlogsSectionSimple.js +53 -47
  19. package/dist/BlogsSectionSimpleCentered.cjs +7 -5
  20. package/dist/BlogsSectionSimpleCentered.js +31 -26
  21. package/dist/BlogsSectionWithFilters.cjs +9 -7
  22. package/dist/BlogsSectionWithFilters.js +47 -42
  23. package/dist/BrandHitsSection.cjs +9 -7
  24. package/dist/BrandHitsSection.js +40 -35
  25. package/dist/{CategorySimpleCard-BNYjZQTH.cjs → CategorySimpleCard-D5N8cx0Z.cjs} +4 -3
  26. package/dist/{CategorySimpleCard-BA0S7TaN.js → CategorySimpleCard-DRQuoxXu.js} +17 -15
  27. package/dist/CheckBoxInput.cjs +27 -27
  28. package/dist/CheckBoxInput.js +61 -98
  29. package/dist/ColorInput.cjs +26 -26
  30. package/dist/ColorInput.js +127 -162
  31. package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
  32. package/dist/DetailedProductsInfinitiveSection.js +6 -5
  33. package/dist/DetailedProductsSection.cjs +2 -2
  34. package/dist/DetailedProductsSection.js +12 -10
  35. package/dist/FieldOfInterestsMasonrySection.cjs +5 -3
  36. package/dist/FieldOfInterestsMasonrySection.js +90 -85
  37. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +4 -4
  38. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +49 -46
  39. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -6
  40. package/dist/FieldOfInterestsWithTagsCardsSection.js +44 -40
  41. package/dist/GeneralWithTagsCardsSection.cjs +12 -8
  42. package/dist/GeneralWithTagsCardsSection.js +50 -44
  43. package/dist/GiftCardsSection.cjs +7 -5
  44. package/dist/GiftCardsSection.js +46 -40
  45. package/dist/MasonryGeneralCardsSection.cjs +6 -5
  46. package/dist/MasonryGeneralCardsSection.js +26 -23
  47. package/dist/Modal.cjs +14 -13
  48. package/dist/Modal.js +88 -86
  49. package/dist/OverlayGeneralCardsSection.cjs +7 -5
  50. package/dist/OverlayGeneralCardsSection.js +30 -35
  51. package/dist/ProductsWithBannerSection.cjs +8 -6
  52. package/dist/ProductsWithBannerSection.js +71 -77
  53. package/dist/QuattroCardsSection.cjs +8 -6
  54. package/dist/QuattroCardsSection.js +31 -28
  55. package/dist/ReviewsSection.cjs +11 -9
  56. package/dist/ReviewsSection.js +38 -36
  57. package/dist/SalesCampaignsSection.cjs +22 -19
  58. package/dist/SalesCampaignsSection.js +299 -300
  59. package/dist/ShopCardsSection.cjs +1 -1
  60. package/dist/ShopCardsSection.js +1 -1
  61. package/dist/SimpleCategoriesSection.cjs +2 -2
  62. package/dist/SimpleCategoriesSection.js +7 -3
  63. package/dist/SimpleProductsSection.cjs +5 -5
  64. package/dist/SimpleProductsSection.js +62 -72
  65. package/dist/UrgentSaleProductsSection.cjs +6 -6
  66. package/dist/UrgentSaleProductsSection.js +9 -7
  67. package/dist/{index-DoKMLSVY.cjs → index-0p_3g3pT.cjs} +4 -2
  68. package/dist/{index-Bhfq_YpE.js → index-BipuzfLW.js} +28 -25
  69. package/dist/{index-CaAhRJ2-.cjs → index-Bmr3IeZ_.cjs} +12 -11
  70. package/dist/{index-DWLKvVyZ.js → index-C8QkdNHi.js} +27 -23
  71. package/dist/{index-B8I1mHMA.js → index-CA59z2ge.js} +29 -26
  72. package/dist/{index-BnYqZk-h.cjs → index-DHV9awrE.cjs} +4 -2
  73. package/dist/{index-DxZ71UZ1.js → index-DZ8515cZ.js} +144 -137
  74. package/dist/{index-D55MR8tU.cjs → index-MiN854X_.cjs} +6 -4
  75. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { jsxs as r, jsx as t, Fragment as B } from "react/jsx-runtime";
2
- import { forwardRef as R, useRef as L, memo as A, useMemo as z } from "react";
2
+ import { forwardRef as R, useRef as L, memo as A, useMemo as $ } from "react";
3
3
  import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as T } from "./consts-BuFChS64.js";
5
- import { u as D } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { o as M, s as $, q as j, v as C, k as y } from "./utils-Dc5zIpaz.js";
5
+ import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { o as D, s as M, q as j, v as k, k as y } from "./utils-Dc5zIpaz.js";
7
7
  import { B as I, R as P } from "./style-C7FUSHmS.js";
8
8
  import U from "./Button.js";
9
9
  import { P as W } from "./index-C_NnINik.js";
@@ -16,7 +16,9 @@ const _ = N.div`
16
16
  @media (max-width: ${T + "px"}) {
17
17
  grid-template-columns: repeat(1, 1fr);
18
18
  }
19
- `, q = N.div`
19
+ `, q = N.a`
20
+ text-decoration: none;
21
+ color: var(--gray-950);
20
22
  display: flex;
21
23
  flex-direction: column;
22
24
  width: 100%;
@@ -73,7 +75,7 @@ const _ = N.div`
73
75
  font-size: 0.875rem;
74
76
  flex: 1;
75
77
  color: var(--gray-700, #4e555f);
76
- ${M(2)}
78
+ ${D(2)}
77
79
  }
78
80
 
79
81
  & .info-wr {
@@ -102,30 +104,32 @@ const _ = N.div`
102
104
  align-items: center;
103
105
  gap: 1rem;
104
106
  }
105
- `, G = R((s, k) => {
107
+ `, G = R((s, S) => {
106
108
  const {
107
- title: g,
108
- imageUrl: h,
109
- text: b,
109
+ title: p,
110
+ imageUrl: b,
111
+ text: w,
110
112
  numberOfLikes: a,
111
113
  numberOfComments: f,
112
114
  timeToRead: m,
113
115
  publishedAt: c,
114
- tags: n,
116
+ tags: l,
115
117
  onCardClick: u,
116
118
  timeToReadText: d = "{0} min read",
117
- metadata: l
118
- } = s, p = L();
119
+ metadata: o,
120
+ titleSlug: h
121
+ } = s, g = L();
119
122
  return /* @__PURE__ */ r(
120
123
  q,
121
124
  {
122
- ref: p,
125
+ ref: g,
123
126
  className: "blog-card",
124
- "data-accessor": l == null ? void 0 : l.accessor,
125
- name: l == null ? void 0 : l.name,
126
- onClick: (i) => u(i, p),
127
+ "data-accessor": o == null ? void 0 : o.accessor,
128
+ name: o == null ? void 0 : o.name,
129
+ onClick: (i) => u(i, g),
130
+ href: `/blog/${h}`,
127
131
  children: [
128
- /* @__PURE__ */ t(W, { src: h }),
132
+ /* @__PURE__ */ t(W, { src: b }),
129
133
  /* @__PURE__ */ r("div", { className: "blog-card-content", children: [
130
134
  /* @__PURE__ */ r(F, { children: [
131
135
  /* @__PURE__ */ r("div", { className: "info-wr", children: [
@@ -135,45 +139,45 @@ const _ = N.div`
135
139
  " "
136
140
  ] }),
137
141
  /* @__PURE__ */ t("span", { className: "small-dot", children: "●" }),
138
- m && d ? `${$(d, m)}` : "N/A"
142
+ m && d ? `${M(d, m)}` : "N/A"
139
143
  ] }),
140
144
  /* @__PURE__ */ r("div", { className: "info-wr-2", children: [
141
145
  /* @__PURE__ */ r("span", { className: "info-wr-1", children: [
142
146
  /* @__PURE__ */ t("i", { className: "mng mng-lnc-thumbs-up--filled" }),
143
- /* @__PURE__ */ t("span", { children: C(a) })
147
+ /* @__PURE__ */ t("span", { children: k(a) })
144
148
  ] }),
145
149
  /* @__PURE__ */ r("span", { className: "info-wr-1", children: [
146
150
  /* @__PURE__ */ t("i", { className: "mng mng-lnc-messages-filled" }),
147
- /* @__PURE__ */ t("span", { children: C(f) })
151
+ /* @__PURE__ */ t("span", { children: k(f) })
148
152
  ] })
149
153
  ] })
150
154
  ] }),
151
- /* @__PURE__ */ t("div", { className: "text-wr-title", children: g }),
152
- /* @__PURE__ */ t("div", { className: "text-wr", children: b })
155
+ /* @__PURE__ */ t("div", { className: "text-wr-title", children: p }),
156
+ /* @__PURE__ */ t("div", { className: "text-wr", children: w })
153
157
  ] }),
154
- n && /* @__PURE__ */ t("div", { className: "tags-wr", children: n == null ? void 0 : n.map((i, w) => /* @__PURE__ */ t(I, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, w)) })
158
+ l && /* @__PURE__ */ t("div", { className: "tags-wr", children: l == null ? void 0 : l.map((i, e) => /* @__PURE__ */ t(I, { color: i == null ? void 0 : i.color, children: i == null ? void 0 : i.name }, e)) })
155
159
  ] })
156
160
  ]
157
161
  }
158
162
  );
159
- }), S = A(G), te = R((s, k) => {
163
+ }), C = A(G), te = R((s, S) => {
160
164
  const {
161
- icon: g,
162
- title: h,
163
- onButtonAction: b,
165
+ icon: p,
166
+ title: b,
167
+ onButtonAction: w,
164
168
  items: a,
165
169
  buttonText: f,
166
170
  timeToReadText: m,
167
171
  limit: c = 3,
168
- onSelectCard: n = () => {
172
+ onSelectCard: l = () => {
169
173
  },
170
174
  isLoading: u = !1,
171
175
  buttonLink: d,
172
- getImage: l = () => {
176
+ getImage: o = () => {
173
177
  },
174
- componentName: p
175
- } = s, i = D(), w = z(() => /* @__PURE__ */ t(B, { children: i === !0 ? a == null ? void 0 : a.map((e, o) => /* @__PURE__ */ t(
176
- S,
178
+ componentName: h
179
+ } = s, g = z(), i = $(() => /* @__PURE__ */ t(B, { children: g === !0 ? a == null ? void 0 : a.map((e, n) => /* @__PURE__ */ t(
180
+ C,
177
181
  {
178
182
  title: e == null ? void 0 : e.title,
179
183
  text: e == null ? void 0 : e.description,
@@ -184,16 +188,16 @@ const _ = N.div`
184
188
  timeToRead: e == null ? void 0 : e.timeToRead,
185
189
  timeToReadText: m,
186
190
  tags: e == null ? void 0 : e.tags,
187
- onCardClick: (O, v) => n(e == null ? void 0 : e.titleSlug, v),
188
- imageUrl: l(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
189
- metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
191
+ onCardClick: (O, v) => l(e == null ? void 0 : e.titleSlug, v),
192
+ imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
193
+ metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
190
194
  },
191
- o
192
- )) : a == null ? void 0 : a.slice(0, c).map((e, o) => /* @__PURE__ */ t(
193
- S,
195
+ n
196
+ )) : a == null ? void 0 : a.slice(0, c).map((e, n) => /* @__PURE__ */ t(
197
+ C,
194
198
  {
195
199
  title: e == null ? void 0 : e.title,
196
- imageUrl: l(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
200
+ imageUrl: o(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
197
201
  text: e == null ? void 0 : e.description,
198
202
  titleSlug: e == null ? void 0 : e.titleSlug,
199
203
  tags: e == null ? void 0 : e.tags,
@@ -202,16 +206,16 @@ const _ = N.div`
202
206
  publishedAt: e == null ? void 0 : e.publishedAt,
203
207
  timeToRead: e == null ? void 0 : e.timeToRead,
204
208
  timeToReadText: m,
205
- onCardClick: (O, v) => n(e == null ? void 0 : e.titleSlug, v),
206
- metadata: { name: p, accessor: e == null ? void 0 : e.accessor }
209
+ onCardClick: (O, v) => l(e == null ? void 0 : e.titleSlug, v),
210
+ metadata: { name: h, accessor: e == null ? void 0 : e.accessor }
207
211
  },
208
- o
209
- )) }), [a, i, c, n]);
210
- return /* @__PURE__ */ r(P, { ref: k, children: [
212
+ n
213
+ )) }), [a, g, c, l]);
214
+ return /* @__PURE__ */ r(P, { ref: S, children: [
211
215
  /* @__PURE__ */ r("div", { className: "regular-title", children: [
212
216
  /* @__PURE__ */ r("div", { className: "regular-title-text", children: [
213
- y(g) && /* @__PURE__ */ t("i", { className: g }),
214
- /* @__PURE__ */ t("span", { children: h })
217
+ y(p) && /* @__PURE__ */ t("i", { className: p }),
218
+ /* @__PURE__ */ t("span", { children: b })
215
219
  ] }),
216
220
  y(f) && y(d) && !u && /* @__PURE__ */ t(
217
221
  U,
@@ -220,8 +224,8 @@ const _ = N.div`
220
224
  btnType: "tinted",
221
225
  color: "neutral",
222
226
  onClick: (e) => {
223
- var o;
224
- (o = e == null ? void 0 : e.target) == null || o.blur(), b(d);
227
+ var n;
228
+ (n = e == null ? void 0 : e.target) == null || n.blur(), w(d);
225
229
  },
226
230
  borderRadius: "curved",
227
231
  className: "button-link",
@@ -234,7 +238,7 @@ const _ = N.div`
234
238
  {
235
239
  isLoading: u,
236
240
  keyPrefix: "blogs-detailed-skeleton",
237
- children: /* @__PURE__ */ t(_, { limit: c, children: w })
241
+ children: /* @__PURE__ */ t(_, { limit: c, children: i })
238
242
  }
239
243
  )
240
244
  ] });
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),n=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./index-D55MR8tU.cjs"),d=require("./style-BAcV7F53.cjs"),C=S.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),n=require("react"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./consts-goSZX3xP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),k=require("./index-MiN854X_.cjs"),d=require("./style-BAcV7F53.cjs"),C=S.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -21,4 +21,4 @@
21
21
  box-shadow: none;
22
22
  }
23
23
  }
24
- `,B=({keyPrefix:i})=>t.jsxs(q,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-2`)]}),M=({keyPrefix:i,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(B,{keyPrefix:i}):o}),p=n.memo(k.BlogCardLarge),w=n.forwardRef((i,s)=>{const{items:r,onSelectCard:o=()=>{},limit:l=2,isLoading:h=!1,getImage:u=()=>{},componentName:m}=i,g=L.useDetectMobile(),f=n.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?r==null?void 0:r.map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a))}),[r,g,l,o]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(C,{ref:s,limit:l,children:f})})});module.exports=w;
24
+ `,B=({keyPrefix:i})=>t.jsxs(q,{children:[t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"11.25rem",borderRadius:"0.75rem"},`${i}-2`)]}),M=({keyPrefix:i,isLoading:s=!1,fallbackComponent:r=t.jsx(t.Fragment,{}),children:o})=>t.jsx(n.Suspense,{fallbackComponent:r,children:s===!0?t.jsx(B,{keyPrefix:i}):o}),p=n.memo(k.BlogCardLarge),w=n.forwardRef((i,s)=>{const{items:r,onSelectCard:o=()=>{},limit:l=2,isLoading:h=!1,getImage:u=()=>{},componentName:m}=i,g=L.useDetectMobile(),f=n.useMemo(()=>t.jsx(t.Fragment,{children:g===!0?r==null?void 0:r.map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a)):r==null?void 0:r.slice(0,l).map((e,a)=>t.jsx(p,{title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:(j,c)=>o(e==null?void 0:e.titleSlug,c),metadata:{name:m,accessor:e==null?void 0:e.accessor}},a))}),[r,g,l]);return t.jsx(M,{isLoading:h,keyPrefix:"blogs-large-skeleton",children:t.jsx(C,{ref:s,limit:l,children:f})})});module.exports=w;
@@ -3,7 +3,7 @@ import { Suspense as B, memo as L, forwardRef as M, useMemo as $ } from "react";
3
3
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as S } from "./consts-BuFChS64.js";
5
5
  import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { B as R } from "./index-Bhfq_YpE.js";
6
+ import { B as R } from "./index-BipuzfLW.js";
7
7
  import { a as T, b as u } from "./style-CXMUA6cI.js";
8
8
  const U = f.div`
9
9
  display: grid;
@@ -84,7 +84,7 @@ const U = f.div`
84
84
  metadata: { name: d, accessor: e == null ? void 0 : e.accessor }
85
85
  },
86
86
  n
87
- )) }), [r, c, l, i]);
87
+ )) }), [r, c, l]);
88
88
  return /* @__PURE__ */ t(
89
89
  j,
90
90
  {
@@ -1,12 +1,14 @@
1
- "use strict";const r=require("react/jsx-runtime"),m=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),M=require("./Button.cjs"),B=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),E=require("./index-D-3I_Ppj.cjs"),I=w.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),m=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-RnrgDDZP.cjs"),k=require("./style-CkcozOY6.cjs"),R=require("./Button.cjs"),M=require("./Link.cjs"),T=require("./index-uwl7BjRF.cjs"),$=require("./index-D-3I_Ppj.cjs"),E=b.styled.div`
2
2
  display: grid;
3
- grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
3
+ grid-template-columns: ${s=>`repeat(${s.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
5
5
 
6
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
7
7
  grid-template-columns: repeat(1, 1fr);
8
8
  }
9
- `,$=w.styled.div`
9
+ `,I=b.styled.a`
10
+ text-decoration: none;
11
+ color: var(--gray-950);
10
12
  display: flex;
11
13
  flex-direction: column;
12
14
  width: 100%;
@@ -56,9 +58,9 @@
56
58
  padding: 1rem;
57
59
  }
58
60
 
59
- @media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
61
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
60
62
  }
61
- `,D=w.styled.div`
63
+ `,D=b.styled.div`
62
64
  padding: 1rem 1rem 0 1rem;
63
65
  display: flex;
64
66
  flex-direction: column;
@@ -78,4 +80,4 @@
78
80
  color: var(--gray-700, #4e555f);
79
81
  ${d.truncateTextInRows(3)}
80
82
  }
81
- `,P=m.forwardRef((l,y)=>{const{title:g,imageUrl:u,text:h,options:n,onCardClick:a,readMoreText:i="Read more",metadata:o}=l,c=m.useRef();return r.jsxs($,{ref:c,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,c),children:[r.jsx(T.ProductImageWrapper,{src:u}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:g}),r.jsx("div",{className:"text-wr",children:h})]}),n&&r.jsx("div",{className:"tags-wr",children:n==null?void 0:n.map((t,p)=>r.jsx(k.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},p))}),r.jsx(B,{className:"action",color:"gray",onClick:a,children:i})]})}),v=m.memo(P),_=m.forwardRef((l,y)=>{const{icon:g,title:u,onButtonAction:h=()=>{},onSelectCard:n=()=>{},buttonLink:a,items:i,buttonText:o,limit:c=3,isLoading:t=!1,getImage:p=()=>{},readMoreText:b="Read more",componentName:j}=l,N=R.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,s)=>r.jsx(v,{title:e==null?void 0:e.title,imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:b,options:e==null?void 0:e.options,onCardClick:(q,f)=>n(e==null?void 0:e.titleSlug,f),metadata:{name:j,accessor:e==null?void 0:e.accessor}},s)):i==null?void 0:i.slice(0,c).map((e,s)=>r.jsx(v,{title:e==null?void 0:e.title,imageUrl:p(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:b,options:e==null?void 0:e.options,onCardClick:(q,f)=>n(e==null?void 0:e.titleSlug,f),metadata:{name:j,accessor:e==null?void 0:e.accessor}},s))}),[i]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:y,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(g)&&r.jsx("i",{className:g}),r.jsx("span",{children:u})]}),d.isDefinedNotEmptyString(o)&&d.isDefinedNotEmptyString(a)&&!t&&r.jsx(M,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var s;(s=e==null?void 0:e.target)==null||s.blur(),h(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx(E.SuspenseBlogsSectionDetailed,{isLoading:t,keyPrefix:"blogs-simple-skeleton",children:r.jsx(I,{limit:c,children:C})})]})});module.exports=_;
83
+ `,_=m.forwardRef((s,w)=>{const{title:g,imageUrl:h,text:f,options:l,onCardClick:a,readMoreText:i="Read more",metadata:o,titleSlug:u}=s,c=m.useRef();return r.jsxs(I,{ref:c,name:o==null?void 0:o.name,"data-accessor":o==null?void 0:o.name,className:"blog-card",onClick:t=>a(t,c),href:`/blog/${u}`,children:[r.jsx(T.ProductImageWrapper,{src:h}),r.jsxs(D,{children:[r.jsx("div",{className:"text-wr-title",children:g}),r.jsx("div",{className:"text-wr",children:f})]}),l&&r.jsx("div",{className:"tags-wr",children:l==null?void 0:l.map((t,p)=>r.jsx(k.BlogTag,{color:t==null?void 0:t.color,children:t==null?void 0:t.name},p))}),r.jsx(M,{className:"action",color:"gray",onClick:a,children:i})]})}),S=m.memo(_),L=m.forwardRef((s,w)=>{const{icon:g,title:h,onButtonAction:f=()=>{},onSelectCard:l=()=>{},buttonLink:a,items:i,buttonText:o,limit:u=3,isLoading:c=!1,getImage:t=()=>{},readMoreText:p="Read more",componentName:j}=s,N=B.useDetectMobile(),C=m.useMemo(()=>r.jsx(r.Fragment,{children:N===!0?i==null?void 0:i.map((e,n)=>r.jsx(S,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:t(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:p,options:e==null?void 0:e.options,onCardClick:(q,y)=>l(e==null?void 0:e.titleSlug,y),metadata:{name:j,accessor:e==null?void 0:e.accessor}},n)):i==null?void 0:i.slice(0,u).map((e,n)=>r.jsx(S,{isBlog:!0,title:e==null?void 0:e.title,imageUrl:t(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,readMoreText:p,options:e==null?void 0:e.options,onCardClick:(q,y)=>l(e==null?void 0:e.titleSlug,y),metadata:{name:j,accessor:e==null?void 0:e.accessor}},n))}),[i]);return r.jsxs(k.RegulatTitleSectionWrapper,{ref:w,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(g)&&r.jsx("i",{className:g}),r.jsx("span",{children:h})]}),d.isDefinedNotEmptyString(o)&&d.isDefinedNotEmptyString(a)&&!c&&r.jsx(R,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),f(a)},borderRadius:"curved",className:"button-link",children:o})]}),r.jsx($.SuspenseBlogsSectionDetailed,{isLoading:c,keyPrefix:"blogs-simple-skeleton",children:r.jsx(E,{limit:u,children:C})})]})});module.exports=L;
@@ -1,15 +1,15 @@
1
1
  import { jsxs as c, jsx as r, Fragment as M } from "react/jsx-runtime";
2
- import { forwardRef as k, useRef as T, memo as P, useMemo as $ } from "react";
3
- import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
2
+ import { forwardRef as k, useRef as T, memo as $, useMemo as I } from "react";
3
+ import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as C } from "./consts-BuFChS64.js";
5
- import { u as z } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { w as I, o as U, k as h } from "./utils-Dc5zIpaz.js";
7
- import { B as W, R as L } from "./style-C7FUSHmS.js";
5
+ import { u as P } from "./useDetectMobile-Bkvj0VMa.js";
6
+ import { w as U, o as W, k as w } from "./utils-Dc5zIpaz.js";
7
+ import { B as z, R as L } from "./style-C7FUSHmS.js";
8
8
  import j from "./Button.js";
9
9
  import D from "./Link.js";
10
10
  import { P as E } from "./index-C_NnINik.js";
11
11
  import { S as A } from "./index-BovNbKxB.js";
12
- const G = w.div`
12
+ const G = b.div`
13
13
  display: grid;
14
14
  grid-template-columns: ${(n) => `repeat(${n.limit}, minmax(0, 1fr))`};
15
15
  gap: 1.25rem;
@@ -17,7 +17,9 @@ const G = w.div`
17
17
  @media (max-width: ${C + "px"}) {
18
18
  grid-template-columns: repeat(1, 1fr);
19
19
  }
20
- `, _ = w.div`
20
+ `, _ = b.a`
21
+ text-decoration: none;
22
+ color: var(--gray-950);
21
23
  display: flex;
22
24
  flex-direction: column;
23
25
  width: 100%;
@@ -41,7 +43,7 @@ const G = w.div`
41
43
  width: 100%;
42
44
  max-height: 12.5625rem;
43
45
  min-height: 12.5625rem;
44
- background-color: ${I("-90deg")};
46
+ background-color: ${U("-90deg")};
45
47
  }
46
48
 
47
49
  & .action {
@@ -69,7 +71,7 @@ const G = w.div`
69
71
 
70
72
  @media (max-width: ${C + "px"}) {
71
73
  }
72
- `, F = w.div`
74
+ `, F = b.div`
73
75
  padding: 1rem 1rem 0 1rem;
74
76
  display: flex;
75
77
  flex-direction: column;
@@ -87,88 +89,92 @@ const G = w.div`
87
89
  font-size: 0.875rem;
88
90
  flex: 1;
89
91
  color: var(--gray-700, #4e555f);
90
- ${U(3)}
92
+ ${W(3)}
91
93
  }
92
- `, O = k((n, b) => {
94
+ `, O = k((n, v) => {
93
95
  const {
94
96
  title: d,
95
- imageUrl: g,
96
- text: u,
97
+ imageUrl: u,
98
+ text: f,
97
99
  options: a,
98
100
  onCardClick: m,
99
- readMoreText: i = "Read more",
100
- metadata: o
101
+ readMoreText: o = "Read more",
102
+ metadata: i,
103
+ titleSlug: p
101
104
  } = n, s = T();
102
105
  return /* @__PURE__ */ c(
103
106
  _,
104
107
  {
105
108
  ref: s,
106
- name: o == null ? void 0 : o.name,
107
- "data-accessor": o == null ? void 0 : o.name,
109
+ name: i == null ? void 0 : i.name,
110
+ "data-accessor": i == null ? void 0 : i.name,
108
111
  className: "blog-card",
109
112
  onClick: (t) => m(t, s),
113
+ href: `/blog/${p}`,
110
114
  children: [
111
- /* @__PURE__ */ r(E, { src: g }),
115
+ /* @__PURE__ */ r(E, { src: u }),
112
116
  /* @__PURE__ */ c(F, { children: [
113
117
  /* @__PURE__ */ r("div", { className: "text-wr-title", children: d }),
114
- /* @__PURE__ */ r("div", { className: "text-wr", children: u })
118
+ /* @__PURE__ */ r("div", { className: "text-wr", children: f })
115
119
  ] }),
116
- a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, p) => /* @__PURE__ */ r(W, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, p)) }),
117
- /* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: m, children: i })
120
+ a && /* @__PURE__ */ r("div", { className: "tags-wr", children: a == null ? void 0 : a.map((t, g) => /* @__PURE__ */ r(z, { color: t == null ? void 0 : t.color, children: t == null ? void 0 : t.name }, g)) }),
121
+ /* @__PURE__ */ r(D, { className: "action", color: "gray", onClick: m, children: o })
118
122
  ]
119
123
  }
120
124
  );
121
- }), S = P(O), re = k((n, b) => {
125
+ }), S = $(O), re = k((n, v) => {
122
126
  const {
123
127
  icon: d,
124
- title: g,
125
- onButtonAction: u = () => {
128
+ title: u,
129
+ onButtonAction: f = () => {
126
130
  },
127
131
  onSelectCard: a = () => {
128
132
  },
129
133
  buttonLink: m,
130
- items: i,
131
- buttonText: o,
132
- limit: s = 3,
133
- isLoading: t = !1,
134
- getImage: p = () => {
134
+ items: o,
135
+ buttonText: i,
136
+ limit: p = 3,
137
+ isLoading: s = !1,
138
+ getImage: t = () => {
135
139
  },
136
- readMoreText: v = "Read more",
140
+ readMoreText: g = "Read more",
137
141
  componentName: y
138
- } = n, N = z(), R = $(() => /* @__PURE__ */ r(M, { children: N === !0 ? i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
142
+ } = n, B = P(), N = I(() => /* @__PURE__ */ r(M, { children: B === !0 ? o == null ? void 0 : o.map((e, l) => /* @__PURE__ */ r(
139
143
  S,
140
144
  {
145
+ isBlog: !0,
141
146
  title: e == null ? void 0 : e.title,
142
- imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
147
+ imageUrl: t(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
143
148
  text: e == null ? void 0 : e.description,
144
149
  titleSlug: e == null ? void 0 : e.titleSlug,
145
- readMoreText: v,
150
+ readMoreText: g,
146
151
  options: e == null ? void 0 : e.options,
147
- onCardClick: (B, f) => a(e == null ? void 0 : e.titleSlug, f),
152
+ onCardClick: (R, h) => a(e == null ? void 0 : e.titleSlug, h),
148
153
  metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
149
154
  },
150
155
  l
151
- )) : i == null ? void 0 : i.slice(0, s).map((e, l) => /* @__PURE__ */ r(
156
+ )) : o == null ? void 0 : o.slice(0, p).map((e, l) => /* @__PURE__ */ r(
152
157
  S,
153
158
  {
159
+ isBlog: !0,
154
160
  title: e == null ? void 0 : e.title,
155
- imageUrl: p(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
161
+ imageUrl: t(e == null ? void 0 : e.imageUrl, e == null ? void 0 : e.uuid) || null,
156
162
  text: e == null ? void 0 : e.description,
157
163
  titleSlug: e == null ? void 0 : e.titleSlug,
158
- readMoreText: v,
164
+ readMoreText: g,
159
165
  options: e == null ? void 0 : e.options,
160
- onCardClick: (B, f) => a(e == null ? void 0 : e.titleSlug, f),
166
+ onCardClick: (R, h) => a(e == null ? void 0 : e.titleSlug, h),
161
167
  metadata: { name: y, accessor: e == null ? void 0 : e.accessor }
162
168
  },
163
169
  l
164
- )) }), [i]);
165
- return /* @__PURE__ */ c(L, { ref: b, children: [
170
+ )) }), [o]);
171
+ return /* @__PURE__ */ c(L, { ref: v, children: [
166
172
  /* @__PURE__ */ c("div", { className: "regular-title", children: [
167
173
  /* @__PURE__ */ c("div", { className: "regular-title-text", children: [
168
- h(d) && /* @__PURE__ */ r("i", { className: d }),
169
- /* @__PURE__ */ r("span", { children: g })
174
+ w(d) && /* @__PURE__ */ r("i", { className: d }),
175
+ /* @__PURE__ */ r("span", { children: u })
170
176
  ] }),
171
- h(o) && h(m) && !t && /* @__PURE__ */ r(
177
+ w(i) && w(m) && !s && /* @__PURE__ */ r(
172
178
  j,
173
179
  {
174
180
  type: "button",
@@ -176,20 +182,20 @@ const G = w.div`
176
182
  color: "neutral",
177
183
  onClick: (e) => {
178
184
  var l;
179
- (l = e == null ? void 0 : e.target) == null || l.blur(), u(m);
185
+ (l = e == null ? void 0 : e.target) == null || l.blur(), f(m);
180
186
  },
181
187
  borderRadius: "curved",
182
188
  className: "button-link",
183
- children: o
189
+ children: i
184
190
  }
185
191
  )
186
192
  ] }),
187
193
  /* @__PURE__ */ r(
188
194
  A,
189
195
  {
190
- isLoading: t,
196
+ isLoading: s,
191
197
  keyPrefix: "blogs-simple-skeleton",
192
- children: /* @__PURE__ */ r(G, { limit: s, children: R })
198
+ children: /* @__PURE__ */ r(G, { limit: p, children: N })
193
199
  }
194
200
  )
195
201
  ] });
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),m=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./utils-RnrgDDZP.cjs"),S=require("./Button.cjs"),y=require("./index-uwl7BjRF.cjs"),d=require("./style-BAcV7F53.cjs"),C=u.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./utils-RnrgDDZP.cjs"),y=require("./Button.cjs"),S=require("./index-uwl7BjRF.cjs"),h=require("./style-BAcV7F53.cjs"),C=g.styled.div`
2
2
  display: grid;
3
3
  grid-template-columns: ${r=>`repeat(${r.limit}, minmax(0, 1fr))`};
4
4
  gap: 1.25rem;
@@ -7,7 +7,9 @@
7
7
  @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
8
8
  grid-template-columns: repeat(1, 1fr);
9
9
  }
10
- `,x=u.styled.div`
10
+ `,k=g.styled.a`
11
+ text-decoration: none;
12
+ color: var(--gray-950);
11
13
  display: flex;
12
14
  flex-direction: column;
13
15
  width: 100%;
@@ -46,7 +48,7 @@
46
48
  @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
47
49
  max-width: unset;
48
50
  }
49
- `,v=u.styled.div`
51
+ `,v=g.styled.div`
50
52
  text-align: center;
51
53
  display: flex;
52
54
  flex-direction: column;
@@ -69,7 +71,7 @@
69
71
  letter-spacing: 0.0156rem;
70
72
  ${j.truncateTextInRows(3)}
71
73
  }
72
- `,b=m.forwardRef((r,a)=>{const{title:i,image:o,text:l,buttonText:h,onCardClick:c,metadata:n}=r,e=m.useRef(),s=g=>{c(g,e)};return t.jsxs(x,{ref:e,name:n==null?void 0:n.name,"data-accessor":n==null?void 0:n.accessor,className:"blog-card",onClick:s,children:[t.jsx(y.ProductImageWrapper,{src:o}),t.jsxs(v,{children:[t.jsx("div",{className:"text-wr-title",children:i}),t.jsx("div",{className:"text-wr",children:l})]}),t.jsx(S,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:s,size:"medium",children:h})]})}),k=u.styled(d.SkeletonRowWrapper)`
74
+ `,b=u.forwardRef((r,l)=>{const{title:n,image:o,text:c,buttonText:p,onCardClick:d,metadata:i,link:e}=r,s=u.useRef(),m=a=>{d(a,s)};return t.jsxs(k,{ref:s,name:i==null?void 0:i.name,"data-accessor":i==null?void 0:i.accessor,className:"blog-card",onClick:m,href:`/${e}`,children:[t.jsx(S.ProductImageWrapper,{src:o}),t.jsxs(v,{children:[t.jsx("div",{className:"text-wr-title",children:n}),t.jsx("div",{className:"text-wr",children:c})]}),t.jsx(y,{borderRadius:"curved",color:"gray",type:"button",btnType:"outline",onClick:m,size:"medium",children:p})]})}),R=g.styled(h.SkeletonRowWrapper)`
73
75
  @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
74
76
  flex-direction: column;
75
77
 
@@ -86,4 +88,4 @@
86
88
  box-shadow: none;
87
89
  }
88
90
  }
89
- `,R=({keyPrefix:r})=>t.jsxs(k,{justifyContent:"center",alignItems:"center",children:[t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(d.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),$=({keyPrefix:r,isLoading:a=!1,fallbackComponent:i=t.jsx(t.Fragment,{}),children:o})=>t.jsx(m.Suspense,{fallbackComponent:i,children:a===!0?t.jsx(R,{keyPrefix:r}):o}),q=m.forwardRef((r,a)=>{const{items:i,limit:o=3,onSelectCard:l=()=>{},isLoading:h=!1,componentName:c}=r,n=w.useDetectMobile();return t.jsx($,{isLoading:h,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx(C,{ref:a,limit:o,children:t.jsx(t.Fragment,{children:n===!0?i==null?void 0:i.map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(g,p)=>l(e,p),metadata:{name:c,accessor:e==null?void 0:e.accessor}},s)):i==null?void 0:i.slice(0,o).map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(g,p)=>l(e,p),metadata:{name:c,accessor:e==null?void 0:e.accessor}},s))})})})});module.exports=q;
91
+ `,$=({keyPrefix:r})=>t.jsxs(R,{justifyContent:"center",alignItems:"center",children:[t.jsx(h.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-1`),t.jsx(h.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-2`),t.jsx(h.SkeletonLinePlaceholder,{height:"24.75rem",width:"18.5rem",borderRadius:"0.75rem"},`${r}-3`)]}),q=({keyPrefix:r,isLoading:l=!1,fallbackComponent:n=t.jsx(t.Fragment,{}),children:o})=>t.jsx(u.Suspense,{fallbackComponent:n,children:l===!0?t.jsx($,{keyPrefix:r}):o}),I=u.forwardRef((r,l)=>{const{items:n,limit:o=3,onSelectCard:c=()=>{},isLoading:p=!1,componentName:d}=r,i=w.useDetectMobile();return t.jsx(q,{isLoading:p,keyPrefix:"blogs-simple-centered-skeleton",children:t.jsx(C,{ref:l,limit:o,children:t.jsx(t.Fragment,{children:i===!0?n==null?void 0:n.map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(m,a)=>c(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link},s)):n==null?void 0:n.slice(0,o).map((e,s)=>t.jsx(b,{title:e==null?void 0:e.title,image:(e==null?void 0:e.image)||null,text:e==null?void 0:e.text,buttonText:e==null?void 0:e.buttonText,onCardClick:(m,a)=>c(e,a),metadata:{name:d,accessor:e==null?void 0:e.accessor},link:e==null?void 0:e.link},s))})})})});module.exports=I;