@lanaco/lnc-react-ui 4.0.38 → 4.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/BannerSectionBasic.cjs +9 -9
  2. package/dist/BannerSectionBasic.js +20 -20
  3. package/dist/BannerSectionCarousel.cjs +13 -5
  4. package/dist/BannerSectionCarousel.js +29 -21
  5. package/dist/BannerSectionGrid.cjs +1 -1
  6. package/dist/BannerSectionGrid.js +6 -6
  7. package/dist/BannerSectionSimple.cjs +4 -4
  8. package/dist/BannerSectionSimple.js +41 -38
  9. package/dist/BannerSectionWithList.cjs +4 -4
  10. package/dist/BannerSectionWithList.js +17 -17
  11. package/dist/BannerSectionWithListImage.cjs +5 -5
  12. package/dist/BannerSectionWithListImage.js +41 -38
  13. package/dist/BlogsSectionDetailed.cjs +15 -15
  14. package/dist/BlogsSectionDetailed.js +128 -92
  15. package/dist/BlogsSectionLarge.cjs +10 -10
  16. package/dist/BlogsSectionLarge.js +87 -60
  17. package/dist/BlogsSectionSimple.cjs +8 -8
  18. package/dist/BlogsSectionSimple.js +98 -72
  19. package/dist/BlogsSectionSimpleCentered.cjs +10 -10
  20. package/dist/BlogsSectionSimpleCentered.js +76 -46
  21. package/dist/BlogsSectionWithFilters.cjs +11 -11
  22. package/dist/BlogsSectionWithFilters.js +102 -73
  23. package/dist/BrandHitsSection.cjs +12 -7
  24. package/dist/BrandHitsSection.js +10 -5
  25. package/dist/CalorieCalculatorSection.cjs +7 -8
  26. package/dist/CalorieCalculatorSection.js +31 -32
  27. package/dist/CustomLoanMapSection.cjs +2 -2
  28. package/dist/CustomLoanMapSection.js +13 -13
  29. package/dist/DetailedProductsSection.cjs +4 -4
  30. package/dist/DetailedProductsSection.js +66 -57
  31. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
  32. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
  33. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
  34. package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
  35. package/dist/GeneralWithTagsCardsSection.cjs +18 -6
  36. package/dist/GeneralWithTagsCardsSection.js +44 -31
  37. package/dist/GiftCardsSection.cjs +9 -5
  38. package/dist/GiftCardsSection.js +21 -17
  39. package/dist/LocationSearchSection.cjs +1 -1
  40. package/dist/LocationSearchSection.js +1 -1
  41. package/dist/MasonryGeneralCardsSection.cjs +21 -1
  42. package/dist/MasonryGeneralCardsSection.js +20 -0
  43. package/dist/OverlayGeneralCardsSection.cjs +60 -104
  44. package/dist/OverlayGeneralCardsSection.js +138 -147
  45. package/dist/ProductsWithBannerSection.cjs +10 -10
  46. package/dist/ProductsWithBannerSection.js +85 -54
  47. package/dist/SalesCampaignsSection.cjs +17 -17
  48. package/dist/SalesCampaignsSection.js +81 -81
  49. package/dist/ShopCardsSection.cjs +19 -9
  50. package/dist/ShopCardsSection.js +54 -40
  51. package/dist/SimpleCategoriesSection.cjs +9 -9
  52. package/dist/SimpleCategoriesSection.js +89 -58
  53. package/dist/SimpleProductsSection.cjs +3 -3
  54. package/dist/SimpleProductsSection.js +86 -55
  55. package/dist/UrgentSaleProductsSection.cjs +5 -5
  56. package/dist/UrgentSaleProductsSection.js +41 -30
  57. package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
  58. package/dist/{index-CHkb_Sj6.js → index-BT55M3t6.js} +16 -15
  59. package/dist/{index-Dj5wZCVs.cjs → index-DHJmdMN8.cjs} +6 -5
  60. package/dist/index-Dn5tPLgP.cjs +95 -0
  61. package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
  62. package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
  63. package/dist/suspense-product-card-detailed-BETmfKMT.js +189 -0
  64. package/dist/{index-vXmvgZ2Y.cjs → suspense-product-card-detailed-DtzOxHaH.cjs} +4 -4
  65. package/package.json +1 -1
  66. package/dist/index-D6g5ZqyJ.js +0 -159
  67. package/dist/index-Q_i-aqsF.cjs +0 -95
@@ -1,10 +1,11 @@
1
- "use strict";const r=require("react/jsx-runtime"),_=require("react"),w=require("./Button.cjs"),v=require("./Icon.cjs"),p=require("./utils-NZLCh-J5.cjs"),d=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./consts-CtNoHdBj.cjs"),b=d.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),g=require("react"),f=require("./Button.cjs"),v=require("./Icon.cjs"),l=require("./utils-NZLCh-J5.cjs"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./consts-CtNoHdBj.cjs"),j=h.newStyled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  border-radius: 1.25rem;
6
6
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
7
7
  background: var(--Lanaco-Gray-white, #fff);
8
+ width: 100%;
8
9
 
9
10
  /* drop-shadow-sm */
10
11
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
@@ -42,7 +43,7 @@
42
43
  font-weight: 500;
43
44
  line-height: 1.5rem;
44
45
  letter-spacing: -0.0112rem;
45
- ${p.truncateTextInRows(2)}
46
+ ${l.truncateTextInRows(2)}
46
47
  }
47
48
 
48
49
  & .wrapper__subtitle {
@@ -53,7 +54,7 @@
53
54
  font-weight: 400;
54
55
  line-height: 1.25rem;
55
56
  letter-spacing: -0.0056rem;
56
- ${p.truncateTextInRows(2)}
57
+ ${l.truncateTextInRows(2)}
57
58
  }
58
59
 
59
60
  & .wrapper__badges {
@@ -108,7 +109,7 @@
108
109
  }
109
110
  }
110
111
  }
111
- `,j=d.newStyled.div`
112
+ `,u=h.newStyled.div`
112
113
  display: flex;
113
114
  flex-direction: column;
114
115
  align-items: center;
@@ -134,7 +135,7 @@
134
135
  width: 4rem;
135
136
  height: 4rem;
136
137
  border-radius: 999px;
137
- background-color: ${p.linearGradientAnimation("-90deg")};
138
+ background-color: ${l.linearGradientAnimation("-90deg")};
138
139
  }
139
140
  }
140
141
 
@@ -146,12 +147,12 @@
146
147
  width: 100%;
147
148
 
148
149
  & .wrapper__info-item {
149
- background-color: ${p.linearGradientAnimation("-90deg")};
150
+ background-color: ${l.linearGradientAnimation("-90deg")};
150
151
  height: 1rem;
151
152
  width: 100%;
152
153
  }
153
154
  }
154
- `,y=_.forwardRef(({image:a,imageComponent:m,title:t,subtitle:g,badges:c,rating:o,reviewCount:n,products:s,onSelectCard:h=()=>{}},f)=>r.jsxs(b,{onClick:h,children:[r.jsxs("div",{className:"wrapper__content",children:[p.isDefined(m)?m:r.jsx("img",{src:a,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"wrapper__title",children:t}),r.jsx("div",{className:"wrapper__subtitle",children:g}),c&&r.jsx("div",{className:"wrapper__badges"}),o&&n&&r.jsxs("div",{className:"wrapper__rating",children:[r.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((i,l)=>r.jsx(v,{icon:i<o?" mng-lnc-star--filled":" mng-lnc-star",className:"wrapper__star"},`shop-card-rating-star__${l+1}`))}),r.jsxs("div",{className:"wrapper__review-count",children:["(",n==null?void 0:n.toLocaleString(),")"]})]})]})]}),r.jsx("div",{className:"wrapper__products",children:s&&(s==null?void 0:s.map((i,l)=>r.jsx(_.Fragment,{children:r.jsx("div",{className:"wrapper__product",onClick:()=>{var e;return(e=i==null?void 0:i.onSelectProduct)==null?void 0:e.call(i,i==null?void 0:i.uuid)},children:p.isDefined(i==null?void 0:i.imageComponent)?i==null?void 0:i.imageComponent:r.jsx("img",{src:i==null?void 0:i.image,className:"product__image"})})},l)))})]})),N=_.forwardRef(({},a)=>r.jsx(j,{children:r.jsxs("div",{className:"wrapper__content",children:[r.jsx("div",{className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"}),r.jsx("div",{className:"wrapper__info-item"})]})]})})),k=d.newStyled.div`
155
+ `,b=g.forwardRef(({image:a,imageComponent:p,title:s,subtitle:c,badges:x,rating:m,reviewCount:t,products:n,onSelectCard:_=()=>{}},w)=>e.jsxs(j,{onClick:_,children:[e.jsxs("div",{className:"wrapper__content",children:[l.isDefined(p)?p:e.jsx("img",{src:a,className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__title",children:s}),e.jsx("div",{className:"wrapper__subtitle",children:c}),x&&e.jsx("div",{className:"wrapper__badges"}),m&&t&&e.jsxs("div",{className:"wrapper__rating",children:[e.jsx("div",{className:"wrapper_stars",children:[...Array(5).keys()].map((i,o)=>e.jsx(v,{icon:i<m?" mng-lnc-star--filled":" mng-lnc-star",className:"wrapper__star"},`shop-card-rating-star__${o+1}`))}),e.jsxs("div",{className:"wrapper__review-count",children:["(",t==null?void 0:t.toLocaleString(),")"]})]})]})]}),e.jsx("div",{className:"wrapper__products",children:n&&(n==null?void 0:n.map((i,o)=>e.jsx(g.Fragment,{children:e.jsx("div",{className:"wrapper__product",onClick:()=>{var r;return(r=i==null?void 0:i.onSelectProduct)==null?void 0:r.call(i,i==null?void 0:i.uuid)},children:l.isDefined(i==null?void 0:i.imageComponent)?i==null?void 0:i.imageComponent:e.jsx("img",{src:i==null?void 0:i.image,className:"product__image"})})},o)))})]})),N=g.forwardRef(({},a)=>e.jsx(u,{children:e.jsxs("div",{className:"wrapper__content",children:[e.jsx("div",{className:"wrapper__image"}),e.jsxs("div",{className:"wrapper__info",children:[e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"}),e.jsx("div",{className:"wrapper__info-item"})]})]})})),k=h.newStyled.div`
155
156
  display: flex;
156
157
  flex-direction: column;
157
158
  align-items: flex-start;
@@ -175,6 +176,15 @@
175
176
  font-weight: 600;
176
177
  line-height: 2rem;
177
178
  letter-spacing: -0.47px;
179
+
180
+ display: flex;
181
+ align-items: center;
182
+ gap: 0.5rem;
183
+
184
+ & i {
185
+ font-size: 1.5rem;
186
+ color: var(--primary-500, #f59e0b);
187
+ }
178
188
  }
179
189
 
180
190
  & .title__action {
@@ -210,7 +220,7 @@
210
220
  width: 100%;
211
221
  }
212
222
 
213
- @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
223
+ @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
214
224
  & .wrapper__heading {
215
225
  & .wrapper__title {
216
226
  & .title__action {
@@ -231,4 +241,4 @@
231
241
  gap: 1rem;
232
242
  }
233
243
  }
234
- `,$=_.forwardRef(({title:a,subtitle:m,items:t,limit:g=4,limitForMobile:c=2,actionText:o,onSelectCard:n=()=>{},onShowMore:s},h)=>{var l;const f=()=>{s==null||s()},i=e=>{n==null||n(e==null?void 0:e.uuid)};return r.jsxs(k,{limitCards:g,limitCardsForMobile:c,children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[a&&r.jsx("div",{className:"title__text",children:a}),o&&s&&r.jsx(w,{text:o,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:f})]}),m&&r.jsx("div",{className:"wrapper__subtitle",children:m})]}),r.jsx("div",{className:"wrapper__cards",children:t&&(t==null?void 0:t.length)>0?t==null?void 0:t.map((e,x)=>r.jsx(y,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.title,subtitle:e==null?void 0:e.subtitle,image:e==null?void 0:e.image,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>i==null?void 0:i(e)},`shop-card__${x+1}`)):(l=Array.from("1234"))==null?void 0:l.map((e,x)=>r.jsx(N,{},`shop-card-skeleton__${x+1}`))})]})});module.exports=$;
244
+ `,$=g.forwardRef(({title:a,subtitle:p,items:s,limit:c=4,limitForMobile:x=2,buttonText:m="Show More",onSelectCard:t=()=>{},onButtonAction:n=()=>{},icon:_},w)=>{var o;const i=r=>{t==null||t(r==null?void 0:r.uuid)};return e.jsxs(k,{ref:w,limitCards:c,limitCardsForMobile:x,children:[e.jsxs("div",{className:"wrapper__heading",children:[e.jsxs("div",{className:"wrapper__title",children:[a&&e.jsxs("div",{className:"title__text",children:[l.isDefinedNotEmptyString(_)&&e.jsx("i",{className:_}),e.jsx("span",{children:a})]}),n&&e.jsx(f,{text:m,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:n})]}),p&&e.jsx("div",{className:"wrapper__subtitle",children:p})]}),e.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((r,d)=>e.jsx(b,{uuid:r==null?void 0:r.uuid,title:r==null?void 0:r.title,subtitle:r==null?void 0:r.subtitle,image:r==null?void 0:r.image,rating:r==null?void 0:r.rating,reviewCount:r==null?void 0:r.reviewCount,products:r==null?void 0:r.products,imageComponent:r==null?void 0:r.imageComponent,onSelectCard:()=>i==null?void 0:i(r)},`shop-card__${d+1}`)):(o=Array.from("1234"))==null?void 0:o.map((r,d)=>e.jsx(N,{},`shop-card-skeleton__${d+1}`))})]})});module.exports=$;
@@ -2,16 +2,17 @@ import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as c, Fragment as y } from "react";
3
3
  import u from "./Button.js";
4
4
  import N from "./Icon.js";
5
- import { t as x, m as v, l as b } from "./utils-DtRLzzTZ.js";
5
+ import { t as x, m as v, l as b, k } from "./utils-DtRLzzTZ.js";
6
6
  import { n as f } from "./emotion-styled.browser.esm-CjCaF13H.js";
7
- import { M as k } from "./consts-C1uHV4xc.js";
8
- const $ = f.div`
7
+ import { M as $ } from "./consts-C1uHV4xc.js";
8
+ const S = f.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: center;
12
12
  border-radius: 1.25rem;
13
13
  border: 1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08));
14
14
  background: var(--Lanaco-Gray-white, #fff);
15
+ width: 100%;
15
16
 
16
17
  /* drop-shadow-sm */
17
18
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
@@ -158,26 +159,26 @@ const $ = f.div`
158
159
  width: 100%;
159
160
  }
160
161
  }
161
- `, C = c(
162
+ `, z = c(
162
163
  ({
163
164
  image: a,
164
165
  imageComponent: m,
165
166
  title: l,
166
- subtitle: _,
167
- badges: g,
167
+ subtitle: g,
168
+ badges: d,
168
169
  rating: o,
169
- reviewCount: s,
170
- products: n,
171
- onSelectCard: h = () => {
170
+ reviewCount: n,
171
+ products: s,
172
+ onSelectCard: _ = () => {
172
173
  }
173
- }, w) => /* @__PURE__ */ t($, { onClick: h, children: [
174
+ }, w) => /* @__PURE__ */ t(S, { onClick: _, children: [
174
175
  /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
175
176
  b(m) ? m : /* @__PURE__ */ i("img", { src: a, className: "wrapper__image" }),
176
177
  /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
177
178
  /* @__PURE__ */ i("div", { className: "wrapper__title", children: l }),
178
- /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: _ }),
179
- g && /* @__PURE__ */ i("div", { className: "wrapper__badges" }),
180
- o && s && /* @__PURE__ */ t("div", { className: "wrapper__rating", children: [
179
+ /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: g }),
180
+ d && /* @__PURE__ */ i("div", { className: "wrapper__badges" }),
181
+ o && n && /* @__PURE__ */ t("div", { className: "wrapper__rating", children: [
181
182
  /* @__PURE__ */ i("div", { className: "wrapper_stars", children: [...Array(5).keys()].map((r, p) => /* @__PURE__ */ i(
182
183
  N,
183
184
  {
@@ -188,13 +189,13 @@ const $ = f.div`
188
189
  )) }),
189
190
  /* @__PURE__ */ t("div", { className: "wrapper__review-count", children: [
190
191
  "(",
191
- s == null ? void 0 : s.toLocaleString(),
192
+ n == null ? void 0 : n.toLocaleString(),
192
193
  ")"
193
194
  ] })
194
195
  ] })
195
196
  ] })
196
197
  ] }),
197
- /* @__PURE__ */ i("div", { className: "wrapper__products", children: n && (n == null ? void 0 : n.map((r, p) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ i(
198
+ /* @__PURE__ */ i("div", { className: "wrapper__products", children: s && (s == null ? void 0 : s.map((r, p) => /* @__PURE__ */ i(y, { children: /* @__PURE__ */ i(
198
199
  "div",
199
200
  {
200
201
  className: "wrapper__product",
@@ -206,7 +207,7 @@ const $ = f.div`
206
207
  }
207
208
  ) }, p))) })
208
209
  ] })
209
- ), z = c(({}, a) => /* @__PURE__ */ i(j, { children: /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
210
+ ), C = c(({}, a) => /* @__PURE__ */ i(j, { children: /* @__PURE__ */ t("div", { className: "wrapper__content", children: [
210
211
  /* @__PURE__ */ i("div", { className: "wrapper__image" }),
211
212
  /* @__PURE__ */ t("div", { className: "wrapper__info", children: [
212
213
  /* @__PURE__ */ i("div", { className: "wrapper__info-item" }),
@@ -214,7 +215,7 @@ const $ = f.div`
214
215
  /* @__PURE__ */ i("div", { className: "wrapper__info-item" }),
215
216
  /* @__PURE__ */ i("div", { className: "wrapper__info-item" })
216
217
  ] })
217
- ] }) })), I = f.div`
218
+ ] }) })), M = f.div`
218
219
  display: flex;
219
220
  flex-direction: column;
220
221
  align-items: flex-start;
@@ -238,6 +239,15 @@ const $ = f.div`
238
239
  font-weight: 600;
239
240
  line-height: 2rem;
240
241
  letter-spacing: -0.47px;
242
+
243
+ display: flex;
244
+ align-items: center;
245
+ gap: 0.5rem;
246
+
247
+ & i {
248
+ font-size: 1.5rem;
249
+ color: var(--primary-500, #f59e0b);
250
+ }
241
251
  }
242
252
 
243
253
  & .title__action {
@@ -273,7 +283,7 @@ const $ = f.div`
273
283
  width: 100%;
274
284
  }
275
285
 
276
- @media (max-width: ${k + "px"}) {
286
+ @media (max-width: ${$ + "px"}) {
277
287
  & .wrapper__heading {
278
288
  & .wrapper__title {
279
289
  & .title__action {
@@ -294,48 +304,52 @@ const $ = f.div`
294
304
  gap: 1rem;
295
305
  }
296
306
  }
297
- `, E = c(
307
+ `, A = c(
298
308
  ({
299
309
  title: a,
300
310
  subtitle: m,
301
311
  items: l,
302
- limit: _ = 4,
303
- limitForMobile: g = 2,
304
- actionText: o,
305
- onSelectCard: s = () => {
312
+ limit: g = 4,
313
+ limitForMobile: d = 2,
314
+ buttonText: o = "Show More",
315
+ onSelectCard: n = () => {
316
+ },
317
+ onButtonAction: s = () => {
306
318
  },
307
- onShowMore: n
308
- }, h) => {
319
+ icon: _
320
+ }, w) => {
309
321
  var p;
310
- const w = () => {
311
- n == null || n();
312
- }, r = (e) => {
313
- s == null || s(e == null ? void 0 : e.uuid);
322
+ const r = (e) => {
323
+ n == null || n(e == null ? void 0 : e.uuid);
314
324
  };
315
325
  return /* @__PURE__ */ t(
316
- I,
326
+ M,
317
327
  {
318
- limitCards: _,
319
- limitCardsForMobile: g,
328
+ ref: w,
329
+ limitCards: g,
330
+ limitCardsForMobile: d,
320
331
  children: [
321
332
  /* @__PURE__ */ t("div", { className: "wrapper__heading", children: [
322
333
  /* @__PURE__ */ t("div", { className: "wrapper__title", children: [
323
- a && /* @__PURE__ */ i("div", { className: "title__text", children: a }),
324
- o && n && /* @__PURE__ */ i(
334
+ a && /* @__PURE__ */ t("div", { className: "title__text", children: [
335
+ k(_) && /* @__PURE__ */ i("i", { className: _ }),
336
+ /* @__PURE__ */ i("span", { children: a })
337
+ ] }),
338
+ s && /* @__PURE__ */ i(
325
339
  u,
326
340
  {
327
341
  text: o,
328
342
  borderRadius: "curved",
329
343
  btnType: "tinted",
330
344
  className: "title__action",
331
- onClick: w
345
+ onClick: s
332
346
  }
333
347
  )
334
348
  ] }),
335
349
  m && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: m })
336
350
  ] }),
337
- /* @__PURE__ */ i("div", { className: "wrapper__cards", children: l && (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((e, d) => /* @__PURE__ */ i(
338
- C,
351
+ /* @__PURE__ */ i("div", { className: "wrapper__cards", children: l && (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((e, h) => /* @__PURE__ */ i(
352
+ z,
339
353
  {
340
354
  uuid: e == null ? void 0 : e.uuid,
341
355
  title: e == null ? void 0 : e.title,
@@ -347,13 +361,13 @@ const $ = f.div`
347
361
  imageComponent: e == null ? void 0 : e.imageComponent,
348
362
  onSelectCard: () => r == null ? void 0 : r(e)
349
363
  },
350
- `shop-card__${d + 1}`
351
- )) : (p = Array.from("1234")) == null ? void 0 : p.map((e, d) => /* @__PURE__ */ i(z, {}, `shop-card-skeleton__${d + 1}`)) })
364
+ `shop-card__${h + 1}`
365
+ )) : (p = Array.from("1234")) == null ? void 0 : p.map((e, h) => /* @__PURE__ */ i(C, {}, `shop-card-skeleton__${h + 1}`)) })
352
366
  ]
353
367
  }
354
368
  );
355
369
  }
356
370
  );
357
371
  export {
358
- E as default
372
+ A as default
359
373
  };
@@ -1,9 +1,9 @@
1
- "use strict";const r=require("react/jsx-runtime"),h=require("react"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),w=require("./consts-CtNoHdBj.cjs"),y=require("./useDetectMobile-D6d5LpdL.cjs"),n=require("./utils-NZLCh-J5.cjs"),v=require("./style-BR3tIhP1.cjs"),j=require("./Button.cjs"),S=p.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("react"),p=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),f=require("./consts-CtNoHdBj.cjs"),S=require("./useDetectMobile-D6d5LpdL.cjs"),d=require("./utils-NZLCh-J5.cjs"),k=require("./style-DN1qT8BE.cjs"),x=require("./Button.cjs"),C=p.newStyled.div`
2
2
  display: grid;
3
- grid-template-columns: ${o=>"repeat(6, minmax(0, 1fr))"};
3
+ grid-template-columns: ${i=>"repeat(6, minmax(0, 1fr))"};
4
4
  gap: 2rem;
5
5
 
6
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
6
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
7
7
  display: flex;
8
8
  gap: 1rem;
9
9
  overflow-x: auto;
@@ -22,7 +22,7 @@
22
22
  /* Safari and Chrome */
23
23
  }
24
24
  }
25
- `,k=p.newStyled.div`
25
+ `,w=p.newStyled.div`
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  gap: 0;
@@ -47,11 +47,11 @@
47
47
 
48
48
  & .card-content {
49
49
  padding: 0.75rem;
50
- ${n.truncateTextInRows(2)}
50
+ ${d.truncateTextInRows(2)}
51
51
  }
52
52
 
53
53
  & .card-content-2 {
54
- ${n.truncateTextInRows(2)}
54
+ ${d.truncateTextInRows(2)}
55
55
  }
56
56
 
57
57
  & img {
@@ -65,10 +65,10 @@
65
65
  width: 100%;
66
66
  min-height: 8.25rem;
67
67
  max-height: 8.25rem;
68
- ${n.linearGradientAnimation("-90deg")}
68
+ ${d.linearGradientAnimation("-90deg")}
69
69
  }
70
70
 
71
- @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
71
+ @media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
72
72
  min-width: 8.75rem;
73
73
  max-width: 8.75rem;
74
74
 
@@ -78,4 +78,4 @@
78
78
  max-height: 5.375rem;
79
79
  }
80
80
  }
81
- `,g=h.forwardRef((o,l)=>{const{uuid:a,image:s,name:i,onSelectCard:c=()=>{}}=o;return r.jsxs(k,{className:"simple-category-card",onClick:()=>c(a),children:[r.jsx("img",{src:s}),r.jsx("div",{className:"card-content",children:r.jsx("div",{className:"card-content-2",children:i})})]})}),R=h.forwardRef((o,l)=>{const{icon:a,title:s="Shop by category",items:i,buttonText:c,buttonLink:m,limit:u=12,onButtonAction:b=()=>{},onSelectCard:t=()=>{}}=o,f=y.useDetectMobile();return r.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[n.isDefinedNotEmptyString(a)&&r.jsx("i",{className:a}),r.jsx("span",{children:s})]}),n.isDefinedNotEmptyString(m)&&r.jsx(j,{type:"button",btnType:"tinted",color:"gray",onClick:()=>b(m),borderRadius:"curved",children:c})]}),r.jsx(S,{limit:u,children:f===!0?i==null?void 0:i.map((e,d)=>r.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid)},d)):i==null?void 0:i.slice(0,u).map((e,d)=>r.jsx(g,{uuid:e==null?void 0:e.uuid,image:e==null?void 0:e.image,name:e==null?void 0:e.name,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid)},d))})]})});module.exports=R;
81
+ `,N=c.forwardRef((i,a)=>{const{uuid:n,image:o,name:t,onSelectCard:l=()=>{}}=i;return e.jsxs(w,{className:"simple-category-card",onClick:()=>l(n),children:[e.jsx("img",{src:o}),e.jsx("div",{className:"card-content",children:e.jsx("div",{className:"card-content-2",children:t})})]})}),R=c.forwardRef(({},i)=>e.jsxs(w,{className:"simple-category-card",children:[e.jsx("div",{className:"skeleton-img"}),e.jsx("div",{className:"card-content"})]})),q=({limit:i=12,isLoading:a=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:i},(o,t)=>e.jsx(R,{isLoading:a},`${n}-skeleton-category-card-${t}`))}),$=({children:i,fallbackComponent:a=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:o,keyPrefix:t})=>e.jsx(c.Suspense,{fallbackComponent:a,children:n===!0?e.jsx(q,{isLoading:n,limit:o,keyPrefix:t}):i}),h=c.memo(N),E=c.forwardRef((i,a)=>{const{icon:n,title:o="Shop by category",items:t,buttonText:l,buttonLink:g,limit:m=12,onButtonAction:y=()=>{},onSelectCard:s=()=>{},isLoading:b=!1}=i,j=S.useDetectMobile(),v=c.useMemo(()=>e.jsx(e.Fragment,{children:j===!0?t==null?void 0:t.map((r,u)=>e.jsx(h,{uuid:r==null?void 0:r.uuid,image:r==null?void 0:r.image,name:r==null?void 0:r.name,onSelectCard:()=>s==null?void 0:s(r==null?void 0:r.uuid)},u)):t==null?void 0:t.slice(0,m).map((r,u)=>e.jsx(h,{uuid:r==null?void 0:r.uuid,image:r==null?void 0:r.image,name:r==null?void 0:r.name,onSelectCard:()=>s==null?void 0:s(r==null?void 0:r.uuid)},u))}),[t]);return e.jsxs(k.RegulatTitleSectionWrapper,{ref:a,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(n)&&e.jsx("i",{className:n}),e.jsx("span",{children:o})]}),d.isDefinedNotEmptyString(g)&&e.jsx(x,{type:"button",btnType:"tinted",color:"gray",onClick:()=>y(g),borderRadius:"curved",children:l})]}),e.jsx(C,{limit:m,children:e.jsx($,{isLoading:b,limit:m,keyPrefix:"explore-landing",children:v})})]})});module.exports=E;
@@ -1,17 +1,17 @@
1
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
1
+ import { jsxs as d, jsx as r, Fragment as p } from "react/jsx-runtime";
2
+ import { forwardRef as g, Suspense as $, memo as R, useMemo as M } from "react";
3
3
  import { n as b } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
- import { M as w } from "./consts-C1uHV4xc.js";
5
- import { u as k } from "./useDetectMobile-BC6EGaBc.js";
6
- import { t as h, m as S, k as g } from "./utils-DtRLzzTZ.js";
7
- import { R as N } from "./style-6tSw9aqK.js";
8
- import C from "./Button.js";
9
- const R = b.div`
4
+ import { M as v } from "./consts-C1uHV4xc.js";
5
+ import { u as E } from "./useDetectMobile-BC6EGaBc.js";
6
+ import { t as h, m as I, k as f } from "./utils-DtRLzzTZ.js";
7
+ import { R as P } from "./style-CiePxaJ_.js";
8
+ import T from "./Button.js";
9
+ const j = b.div`
10
10
  display: grid;
11
- grid-template-columns: ${(a) => "repeat(6, minmax(0, 1fr))"};
11
+ grid-template-columns: ${(t) => "repeat(6, minmax(0, 1fr))"};
12
12
  gap: 2rem;
13
13
 
14
- @media (max-width: ${w + "px"}) {
14
+ @media (max-width: ${v + "px"}) {
15
15
  display: flex;
16
16
  gap: 1rem;
17
17
  overflow-x: auto;
@@ -30,7 +30,7 @@ const R = b.div`
30
30
  /* Safari and Chrome */
31
31
  }
32
32
  }
33
- `, $ = b.div`
33
+ `, y = b.div`
34
34
  display: flex;
35
35
  flex-direction: column;
36
36
  gap: 0;
@@ -73,10 +73,10 @@ const R = b.div`
73
73
  width: 100%;
74
74
  min-height: 8.25rem;
75
75
  max-height: 8.25rem;
76
- ${S("-90deg")}
76
+ ${I("-90deg")}
77
77
  }
78
78
 
79
- @media (max-width: ${w + "px"}) {
79
+ @media (max-width: ${v + "px"}) {
80
80
  min-width: 8.75rem;
81
81
  max-width: 8.75rem;
82
82
 
@@ -86,72 +86,103 @@ const R = b.div`
86
86
  max-height: 5.375rem;
87
87
  }
88
88
  }
89
- `, u = f((a, c) => {
90
- const { uuid: o, image: m, name: i, onSelectCard: d = () => {
91
- } } = a;
92
- return /* @__PURE__ */ n(
93
- $,
89
+ `, z = g((t, o) => {
90
+ const { uuid: a, image: n, name: i, onSelectCard: l = () => {
91
+ } } = t;
92
+ return /* @__PURE__ */ d(
93
+ y,
94
94
  {
95
95
  className: "simple-category-card",
96
- onClick: () => d(o),
96
+ onClick: () => l(a),
97
97
  children: [
98
- /* @__PURE__ */ r("img", { src: m }),
98
+ /* @__PURE__ */ r("img", { src: n }),
99
99
  /* @__PURE__ */ r("div", { className: "card-content", children: /* @__PURE__ */ r("div", { className: "card-content-2", children: i }) })
100
100
  ]
101
101
  }
102
102
  );
103
- }), D = f((a, c) => {
103
+ }), A = g(({}, t) => /* @__PURE__ */ d(y, { className: "simple-category-card", children: [
104
+ /* @__PURE__ */ r("div", { className: "skeleton-img" }),
105
+ /* @__PURE__ */ r("div", { className: "card-content" })
106
+ ] })), B = ({ limit: t = 12, isLoading: o = !1, keyPrefix: a }) => /* @__PURE__ */ r(p, { children: Array.from({ length: t }, (n, i) => /* @__PURE__ */ r(
107
+ A,
108
+ {
109
+ isLoading: o
110
+ },
111
+ `${a}-skeleton-category-card-${i}`
112
+ )) }), W = ({
113
+ children: t,
114
+ fallbackComponent: o = /* @__PURE__ */ r(p, {}),
115
+ isLoading: a = !1,
116
+ limit: n,
117
+ keyPrefix: i
118
+ }) => /* @__PURE__ */ r($, { fallbackComponent: o, children: a === !0 ? /* @__PURE__ */ r(
119
+ B,
120
+ {
121
+ isLoading: a,
122
+ limit: n,
123
+ keyPrefix: i
124
+ }
125
+ ) : t }), w = R(z), q = g((t, o) => {
104
126
  const {
105
- icon: o,
106
- title: m = "Shop by category",
127
+ icon: a,
128
+ title: n = "Shop by category",
107
129
  items: i,
108
- buttonText: d,
109
- buttonLink: s,
110
- limit: p = 12,
111
- onButtonAction: v = () => {
130
+ buttonText: l,
131
+ buttonLink: u,
132
+ limit: s = 12,
133
+ onButtonAction: k = () => {
112
134
  },
113
- onSelectCard: t = () => {
114
- }
115
- } = a, y = k();
116
- return /* @__PURE__ */ n(N, { ref: c, children: [
117
- /* @__PURE__ */ n("div", { className: "regular-title", children: [
118
- /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
119
- g(o) && /* @__PURE__ */ r("i", { className: o }),
120
- /* @__PURE__ */ r("span", { children: m })
135
+ onSelectCard: m = () => {
136
+ },
137
+ isLoading: S = !1
138
+ } = t, C = E(), N = M(() => /* @__PURE__ */ r(p, { children: C === !0 ? i == null ? void 0 : i.map((e, c) => /* @__PURE__ */ r(
139
+ w,
140
+ {
141
+ uuid: e == null ? void 0 : e.uuid,
142
+ image: e == null ? void 0 : e.image,
143
+ name: e == null ? void 0 : e.name,
144
+ onSelectCard: () => m == null ? void 0 : m(e == null ? void 0 : e.uuid)
145
+ },
146
+ c
147
+ )) : i == null ? void 0 : i.slice(0, s).map((e, c) => /* @__PURE__ */ r(
148
+ w,
149
+ {
150
+ uuid: e == null ? void 0 : e.uuid,
151
+ image: e == null ? void 0 : e.image,
152
+ name: e == null ? void 0 : e.name,
153
+ onSelectCard: () => m == null ? void 0 : m(e == null ? void 0 : e.uuid)
154
+ },
155
+ c
156
+ )) }), [i]);
157
+ return /* @__PURE__ */ d(P, { ref: o, children: [
158
+ /* @__PURE__ */ d("div", { className: "regular-title", children: [
159
+ /* @__PURE__ */ d("div", { className: "regular-title-text", children: [
160
+ f(a) && /* @__PURE__ */ r("i", { className: a }),
161
+ /* @__PURE__ */ r("span", { children: n })
121
162
  ] }),
122
- g(s) && /* @__PURE__ */ r(
123
- C,
163
+ f(u) && /* @__PURE__ */ r(
164
+ T,
124
165
  {
125
166
  type: "button",
126
167
  btnType: "tinted",
127
168
  color: "gray",
128
- onClick: () => v(s),
169
+ onClick: () => k(u),
129
170
  borderRadius: "curved",
130
- children: d
171
+ children: l
131
172
  }
132
173
  )
133
174
  ] }),
134
- /* @__PURE__ */ r(R, { limit: p, children: y === !0 ? i == null ? void 0 : i.map((e, l) => /* @__PURE__ */ r(
135
- u,
136
- {
137
- uuid: e == null ? void 0 : e.uuid,
138
- image: e == null ? void 0 : e.image,
139
- name: e == null ? void 0 : e.name,
140
- onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
141
- },
142
- l
143
- )) : i == null ? void 0 : i.slice(0, p).map((e, l) => /* @__PURE__ */ r(
144
- u,
175
+ /* @__PURE__ */ r(j, { limit: s, children: /* @__PURE__ */ r(
176
+ W,
145
177
  {
146
- uuid: e == null ? void 0 : e.uuid,
147
- image: e == null ? void 0 : e.image,
148
- name: e == null ? void 0 : e.name,
149
- onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
150
- },
151
- l
152
- )) })
178
+ isLoading: S,
179
+ limit: s,
180
+ keyPrefix: "explore-landing",
181
+ children: N
182
+ }
183
+ ) })
153
184
  ] });
154
185
  });
155
186
  export {
156
- D as default
187
+ q as default
157
188
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("react/jsx-runtime"),w=require("react"),h=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),q=require("./consts-CtNoHdBj.cjs"),y=require("./useDetectMobile-D6d5LpdL.cjs"),s=require("./index-Dj5wZCVs.cjs"),S=require("./index-Dit169OA.cjs"),j=h.newStyled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),o=require("react"),k=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),y=require("./consts-CtNoHdBj.cjs"),P=require("./useDetectMobile-D6d5LpdL.cjs"),g=require("./index-DHJmdMN8.cjs"),q=require("./index-Dit169OA.cjs"),M=k.newStyled.div`
2
2
  display: grid;
3
3
  grid-template-columns: repeat(6, 1fr);
4
4
  gap: 1.25rem;
@@ -9,7 +9,7 @@
9
9
  margin: auto;
10
10
  }
11
11
 
12
- @media (max-width: ${q.MOBILE_SIZE_PX+"px"}) {
12
+ @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
13
13
  grid-template-columns: repeat(2, 1fr);
14
14
 
15
15
  & .text-block-v1 {
@@ -28,4 +28,4 @@
28
28
 
29
29
  }
30
30
  }
31
- `,k=w.forwardRef((n,o)=>{var c;const{title:d,subtitle:l,description:m,buttonText:a,buttonLink:p,items:t,onButtonAction:g=()=>{},onSelectCard:i=()=>{}}=n,b=y.useDetectMobile();return r.jsxs(j,{ref:o,limit:6,children:[r.jsx(S.TextBlockV1,{subtitle:l,title:d,description:m,buttonText:a,buttonLink:p,onButtonAction:g,className:"text-block-v1"}),b===!0?(c=t==null?void 0:t.slice(0,4))==null?void 0:c.map((e,u)=>r.jsx(s.SimpleProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},u)):t==null?void 0:t.map((e,u)=>r.jsx(s.SimpleProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},u))]})});module.exports=k;
31
+ `,_=o.forwardRef((i,s)=>r.jsx(g.SkeletonWrapper,{})),v=({limit:i=6,isLoading:s=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:i},(d,c)=>r.jsx(_,{isLoading:s},`${n}-skeleton-product-card-${c}`))}),R=({children:i,fallbackComponent:s=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:d,keyPrefix:c})=>r.jsx(o.Suspense,{fallbackComponent:s,children:n===!0?r.jsx(v,{isLoading:n,limit:d,keyPrefix:c}):i}),p=o.memo(g.SimpleProductCard),U=o.forwardRef((i,s)=>{const{title:n,subtitle:d,description:c,buttonText:j,buttonLink:f,items:t,onButtonAction:h=()=>{},onSelectCard:u=()=>{},isLoading:S=!1,limit:a=6}=i,w=P.useDetectMobile(),b=o.useMemo(()=>{var m;return r.jsx(r.Fragment,{children:w===!0?(m=t==null?void 0:t.slice(0,4))==null?void 0:m.map((e,l)=>r.jsx(p,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>u==null?void 0:u(e==null?void 0:e.uuid)},l)):t==null?void 0:t.map((e,l)=>r.jsx(p,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,onSelectCard:()=>u==null?void 0:u(e==null?void 0:e.uuid)},l))})},[t]);return r.jsxs(M,{ref:s,limit:a,children:[r.jsx(q.TextBlockV1,{subtitle:d,title:n,description:c,buttonText:j,buttonLink:f,onButtonAction:h,className:"text-block-v1"}),r.jsx(R,{isLoading:S,limit:a,keyPrefix:"explore-landing",children:b})]})});module.exports=U;