@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,23 +1,24 @@
1
- import { jsxs as t, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { forwardRef as ne, useState as Q, useRef as Z, useEffect as Ve, cloneElement as J, Suspense as Ee } from "react";
1
+ import { jsxs as n, jsx as e, Fragment as M } from "react/jsx-runtime";
2
+ import { forwardRef as ne, useState as Z, useRef as J, useEffect as Ve, cloneElement as ee, Suspense as Oe } from "react";
3
3
  import { s as N } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as F } from "./consts-BuFChS64.js";
5
- import { t as G, o as Oe, a as Be, l as ee, p as re, G as oe } from "./utils-Dc5zIpaz.js";
6
- import { P as ze } from "./index-C_NnINik.js";
7
- import E from "./Badge.js";
8
- import We from "./Popover.js";
9
- import Ge from "./PopoverTrigger.js";
10
- import Me from "./PopoverContent.js";
11
- import { u as Fe } from "./useDetectMobile-Bkvj0VMa.js";
12
- import { a as f, S as p, c as y, b as n } from "./style-CXMUA6cI.js";
13
- const Ie = N.div`
5
+ import { t as G, o as Be, a as ze, l as re, p as oe, G as te, k as We } from "./utils-Dc5zIpaz.js";
6
+ import { P as Ge } from "./index-C_NnINik.js";
7
+ import V from "./Badge.js";
8
+ import Me from "./Popover.js";
9
+ import Fe from "./PopoverTrigger.js";
10
+ import Ie from "./PopoverContent.js";
11
+ import { u as De } from "./useDetectMobile-Bkvj0VMa.js";
12
+ import { a as b, S as p, c as y, b as t } from "./style-CXMUA6cI.js";
13
+ const je = N.a`
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  gap: 0.5rem;
17
17
  cursor: pointer;
18
18
  overflow: hidden;
19
19
  width: 100%;
20
-
20
+ text-decoration: none;
21
+ color: var(--gray-950, #14161a);
21
22
  & .seller {
22
23
  text-transform: uppercase;
23
24
  ${G()}
@@ -73,7 +74,7 @@ const Ie = N.div`
73
74
  & .card-title {
74
75
  font-size: 0.875rem;
75
76
  font-weight: 600;
76
- ${Oe(2)}
77
+ ${Be(2)}
77
78
  }
78
79
 
79
80
  & .price-text {
@@ -178,7 +179,7 @@ const Ie = N.div`
178
179
  &:hover .product-image-wrapper img {
179
180
  transform: scale(1.1);
180
181
  }
181
- `, je = N.div`
182
+ `, Ue = N.div`
182
183
  position: relative;
183
184
  overflow: hidden;
184
185
  border-radius: 0.75rem;
@@ -199,7 +200,7 @@ const Ie = N.div`
199
200
 
200
201
  width: 2.25rem;
201
202
  height: 2.25rem;
202
- border-radius: ${(a) => Be(a.theme, "curved")};
203
+ border-radius: ${(a) => ze(a.theme, "curved")};
203
204
  border: 1px solid var(--gray-95008);
204
205
  background-color: white;
205
206
  color: var(--gray-950);
@@ -246,7 +247,7 @@ const Ie = N.div`
246
247
  top: unset;
247
248
  }
248
249
  }
249
- `, De = N.div`
250
+ `, Le = N.div`
250
251
  background: var(--white, #fff);
251
252
  z-index: 1;
252
253
 
@@ -296,7 +297,7 @@ const Ie = N.div`
296
297
  color: var(--gray-950, #14161a);
297
298
  }
298
299
  }
299
- `, Ue = N.div`
300
+ `, Xe = N.div`
300
301
  display: flex;
301
302
  align-items: center;
302
303
  gap: 0.25rem;
@@ -308,10 +309,10 @@ const Ie = N.div`
308
309
  font-size: 1rem;
309
310
  color: var(--warning-500, #F59E0B);
310
311
  }
311
- `, Le = ne(({ sponsoredText: a = "Sponsored" }, $) => /* @__PURE__ */ t(Ue, { ref: $, className: "sponsored-line", children: [
312
+ `, xe = ne(({ sponsoredText: a = "Sponsored" }, $) => /* @__PURE__ */ n(Xe, { ref: $, className: "sponsored-line", children: [
312
313
  /* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
313
314
  /* @__PURE__ */ e("span", { children: a })
314
- ] })), Xe = "Vehicles_Cars", qe = "Vehicles_Motorcycles", xe = "Vehicles_Trucks", Ye = "Vehicles_AgriculturalMachines_Tractors", Ae = "Vehicles_ConstructionMachines", Ke = "Vehicles_Bus", He = "Vehicles_Campers", Qe = "RealEstates_", s = {
315
+ ] })), qe = "Vehicles_Cars", Ye = "Vehicles_Motorcycles", Ae = "Vehicles_Trucks", Ke = "Vehicles_AgriculturalMachines_Tractors", He = "Vehicles_ConstructionMachines", Qe = "Vehicles_Bus", Ze = "Vehicles_Campers", Je = "RealEstates_", s = {
315
316
  Mileage: {
316
317
  icon: "mng-lnc-road",
317
318
  measure: "km"
@@ -412,30 +413,28 @@ const Ie = N.div`
412
413
  icon: " mng-lnc-clock--filled",
413
414
  measure: ""
414
415
  }
415
- }, pr = ne((a, $) => {
416
+ }, gr = ne((a, $) => {
416
417
  const {
417
- uuid: b,
418
+ uuid: u,
418
419
  sellerUuid: O,
419
- name: te,
420
+ name: ie,
420
421
  price: S = 0,
421
422
  sellingPrice: k,
422
423
  currency: _,
423
424
  isNegotiable: P,
424
- isFree: T,
425
- imageUrl: ie,
426
- location: ae,
427
- sponsored: se,
425
+ isFree: E,
426
+ imageUrl: ae,
427
+ location: se,
428
+ sponsored: le,
428
429
  imageComponent: I,
429
- onSelectCard: le = () => {
430
- },
431
430
  freeText: ce = "Free",
432
431
  negotiableText: de = "Negotiable",
433
432
  tags: i = [],
434
- categoryCode: V,
433
+ categoryCode: T,
435
434
  categoryName: me,
436
- condition: j,
435
+ condition: D,
437
436
  quantity: B,
438
- trade: D,
437
+ trade: j,
439
438
  sponsoredText: he,
440
439
  forCart: pe,
441
440
  forOrder: ue,
@@ -449,16 +448,19 @@ const Ie = N.div`
449
448
  bookmarked: U,
450
449
  bookmarkLists: we,
451
450
  metadata: v,
452
- sellerName: L
453
- } = a, W = Fe(), ye = () => {
451
+ sellerName: L,
452
+ nameSlug: X,
453
+ onSelectCard: ye = () => {
454
+ }
455
+ } = a, W = De(), ke = () => {
454
456
  var d;
455
- if (!ee(C)) return /* @__PURE__ */ e(M, {});
456
- const r = C, o = (d = C == null ? void 0 : C.props) == null ? void 0 : d.children, c = J(o, {
457
+ if (!re(C)) return /* @__PURE__ */ e(M, {});
458
+ const r = C, o = (d = C == null ? void 0 : C.props) == null ? void 0 : d.children, c = ee(o, {
457
459
  key: `bookmark_pr__${U}`,
458
460
  bookmarked: U,
459
- productUuid: b,
460
- onAddToBookmark: () => z(!0, b),
461
- onRemoveFromBookmark: () => z(!1, b),
461
+ productUuid: u,
462
+ onAddToBookmark: () => z(!0, u),
463
+ onRemoveFromBookmark: () => z(!1, u),
462
464
  bookmarkedUuidList: we,
463
465
  sellerUuid: O,
464
466
  handleBookmarking: z,
@@ -470,69 +472,69 @@ const Ie = N.div`
470
472
  quantity: B,
471
473
  hasQuantities: be,
472
474
  productBasicInfo: {
473
- uuid: b,
475
+ uuid: u,
474
476
  price: S,
475
477
  sellingPrice: k,
476
- categoryCode: V,
478
+ categoryCode: T,
477
479
  categoryName: me,
478
480
  currency: _,
479
481
  isNegotiable: P,
480
- isFree: T
482
+ isFree: E
481
483
  }
482
484
  });
483
- return J(r, void 0, c);
484
- }, X = [
485
- Xe,
485
+ return ee(r, void 0, c);
486
+ }, x = [
486
487
  qe,
487
- xe,
488
488
  Ye,
489
489
  Ae,
490
490
  Ke,
491
491
  He,
492
- Qe
492
+ Qe,
493
+ Ze,
494
+ Je
493
495
  ].some(
494
- (r) => V == null ? void 0 : V.includes(r)
495
- ), [ke, q] = Q(!1), _e = () => {
496
+ (r) => T == null ? void 0 : T.includes(r)
497
+ ), [_e, q] = Z(!1), Ce = () => {
496
498
  q(!0);
497
- }, Ce = () => {
499
+ }, Re = () => {
498
500
  q(!1);
499
- }, l = Z(null), u = Z([]), [Re, x] = Q(i == null ? void 0 : i.length), Ne = () => {
501
+ }, l = J(null), g = J([]), [Ne, Y] = Z(i == null ? void 0 : i.length), $e = () => {
500
502
  var d, w, R;
501
- if (!(l != null && l.current) || ((d = u == null ? void 0 : u.current) == null ? void 0 : d.length) === 0) return;
503
+ if (!(l != null && l.current) || ((d = g == null ? void 0 : g.current) == null ? void 0 : d.length) === 0) return;
502
504
  if (W) {
503
- x(i == null ? void 0 : i.length);
505
+ Y(i == null ? void 0 : i.length);
504
506
  return;
505
507
  }
506
508
  const r = (w = l == null ? void 0 : l.current) == null ? void 0 : w.offsetWidth;
507
509
  let o = 0, c = 0;
508
510
  for (let m = 0; m < (i == null ? void 0 : i.length); m++) {
509
- const g = ((R = u == null ? void 0 : u.current[m]) == null ? void 0 : R.offsetWidth) || 0, h = o + g + 4;
511
+ const f = ((R = g == null ? void 0 : g.current[m]) == null ? void 0 : R.offsetWidth) || 0, h = o + f + 4;
510
512
  if (h <= r)
511
513
  o += h, c++;
512
514
  else
513
515
  break;
514
516
  }
515
- x(c);
517
+ Y(c);
516
518
  };
517
519
  Ve(() => {
518
520
  const r = l == null ? void 0 : l.current;
519
521
  if (!r) return;
520
522
  const o = new ResizeObserver(() => {
521
- Ne();
523
+ $e();
522
524
  });
523
525
  return o.observe(r), () => {
524
526
  o.disconnect();
525
527
  };
526
528
  }, [i, W]);
527
- const $e = () => {
529
+ const Se = () => {
528
530
  var r;
529
- return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0, Re)) == null ? void 0 : r.map((o, c) => {
530
- var g, h, A, K, H;
531
- const d = ((g = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : g.icon) ?? ((h = s == null ? void 0 : s.default) == null ? void 0 : h.icon) ?? "", w = ((A = o == null ? void 0 : o.measurementUnit) == null ? void 0 : A.symbol) ?? ((K = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : K.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((H = o == null ? void 0 : o.multiOptions) == null ? void 0 : H[0]) ?? "", w].filter(Boolean).join(" ");
532
- return /* @__PURE__ */ t(
533
- E,
531
+ return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0, Ne)) == null ? void 0 : r.map((o, c) => {
532
+ var f, h, K, H, Q;
533
+ const d = ((f = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : f.icon) ?? ((h = s == null ? void 0 : s.default) == null ? void 0 : h.icon) ?? "", w = ((K = o == null ? void 0 : o.measurementUnit) == null ? void 0 : K.symbol) ?? ((H = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : H.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((Q = o == null ? void 0 : o.multiOptions) == null ? void 0 : Q[0]) ?? "", w].filter(Boolean).join(" ");
534
+ return /* @__PURE__ */ n(
535
+ V,
534
536
  {
535
- ref: (Te) => u.current[c] = Te,
537
+ ref: (Te) => g.current[c] = Te,
536
538
  className: "tag",
537
539
  children: [
538
540
  /* @__PURE__ */ e("i", { className: d }),
@@ -542,68 +544,73 @@ const Ie = N.div`
542
544
  `detailed-products-section-tag__${c + 1}`
543
545
  );
544
546
  }) });
545
- }, Se = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: i == null ? void 0 : i.map((r, o) => {
546
- var m, g, h;
547
- const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((g = s == null ? void 0 : s[r == null ? void 0 : r.code]) == null ? void 0 : g.measure) ?? "", w = [(r == null ? void 0 : r.value) ?? ((h = r == null ? void 0 : r.multiOptions) == null ? void 0 : h[0]) ?? "", c].filter(Boolean).join(" "), R = r == null ? void 0 : r.name;
548
- return /* @__PURE__ */ t("div", { children: [
547
+ }, Pe = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: i == null ? void 0 : i.map((r, o) => {
548
+ var m, f, h;
549
+ const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((f = s == null ? void 0 : s[r == null ? void 0 : r.code]) == null ? void 0 : f.measure) ?? "", w = [(r == null ? void 0 : r.value) ?? ((h = r == null ? void 0 : r.multiOptions) == null ? void 0 : h[0]) ?? "", c].filter(Boolean).join(" "), R = r == null ? void 0 : r.name;
550
+ return /* @__PURE__ */ n("div", { children: [
549
551
  /* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${R}: ` }),
550
552
  /* @__PURE__ */ e("span", { className: "tags-popover__value", children: w })
551
553
  ] }, `detailed-products-section-tag-dropdown__${o + 1}`);
552
- }) }), Pe = () => /* @__PURE__ */ t(M, { children: [
553
- j && /* @__PURE__ */ e(E, { className: "tag", children: j }, "detailed-products-section-tag__condition"),
554
- B && /* @__PURE__ */ e(E, { className: "tag", children: B }, "detailed-products-section-tag__quantity"),
555
- D && /* @__PURE__ */ e(E, { className: "tag", children: D }, "detailed-products-section-tag__trade")
556
- ] }), Y = S > 0 && _ && P !== !0 && T !== !0 && S !== k;
554
+ }) }), Ee = () => /* @__PURE__ */ n(M, { children: [
555
+ D && /* @__PURE__ */ e(V, { className: "tag", children: D }, "detailed-products-section-tag__condition"),
556
+ B && /* @__PURE__ */ e(V, { className: "tag", children: B }, "detailed-products-section-tag__quantity"),
557
+ j && /* @__PURE__ */ e(V, { className: "tag", children: j }, "detailed-products-section-tag__trade")
558
+ ] }), A = S > 0 && _ && P !== !0 && E !== !0 && S !== k;
557
559
  return (
558
560
  // <LandingPageProductCardSkeleton />
559
- /* @__PURE__ */ t(
560
- Ie,
561
+ /* @__PURE__ */ n(
562
+ je,
561
563
  {
562
564
  ref: l,
563
565
  className: "product-card",
564
566
  "data-accessor": v == null ? void 0 : v.accessor,
565
567
  name: v == null ? void 0 : v.name,
566
- onClick: (r) => le(r, l),
568
+ onClick: (r) => ye(r, l),
569
+ href: `/product/${We(X) ? `${X}-` : ""}${u}`,
567
570
  children: [
568
- /* @__PURE__ */ t(je, { className: "product-image-wrapper", children: [
569
- /* @__PURE__ */ e(ye, {}),
570
- ee(I) ? I : /* @__PURE__ */ e(ze, { src: ie })
571
+ /* @__PURE__ */ n(Ue, { className: "product-image-wrapper", children: [
572
+ /* @__PURE__ */ e("div", { onClick: (r) => {
573
+ r == null || r.preventDefault(), r == null || r.stopPropagation();
574
+ }, children: /* @__PURE__ */ e(ke, {}) }),
575
+ re(I) ? I : /* @__PURE__ */ e(Ge, { src: ae })
571
576
  ] }),
572
- /* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
577
+ /* @__PURE__ */ n("div", { className: "wrapper-card-1", children: [
573
578
  /* @__PURE__ */ e("div", { className: "seller", title: L, children: L }),
574
- /* @__PURE__ */ e("div", { className: "card-title", children: te })
579
+ /* @__PURE__ */ e("div", { className: "card-title", children: ie })
575
580
  ] }),
576
- /* @__PURE__ */ t("div", { className: "wrapper-card-3", children: [
577
- X && /* @__PURE__ */ e(
581
+ /* @__PURE__ */ n("div", { className: "wrapper-card-3", onClick: (r) => {
582
+ r == null || r.preventDefault(), r == null || r.stopPropagation();
583
+ }, children: [
584
+ x && /* @__PURE__ */ e(
578
585
  "div",
579
586
  {
580
587
  ...W ? {} : {
581
- onMouseEnter: _e,
582
- onMouseLeave: Ce
588
+ onMouseEnter: Ce,
589
+ onMouseLeave: Re
583
590
  },
584
- children: /* @__PURE__ */ t(We, { placement: "bottom", open: ke, children: [
585
- /* @__PURE__ */ e(Ge, { children: $e() }),
586
- /* @__PURE__ */ e(Me, { style: { all: "unset" }, children: /* @__PURE__ */ e(De, { children: Se() }) })
591
+ children: /* @__PURE__ */ n(Me, { placement: "bottom", open: _e, children: [
592
+ /* @__PURE__ */ e(Fe, { children: Se() }),
593
+ /* @__PURE__ */ e(Ie, { style: { all: "unset" }, children: /* @__PURE__ */ e(Le, { children: Pe() }) })
587
594
  ] })
588
595
  }
589
596
  ),
590
- !X && Pe()
597
+ !x && Ee()
591
598
  ] }),
592
- /* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
593
- /* @__PURE__ */ t("div", { className: `price-text ${Y ? "new-price" : ""}`, children: [
594
- k > 0 && _ && P !== !0 && T !== !0 && /* @__PURE__ */ e("div", { children: `${re(k)} ${oe(_)}` }),
595
- Y && /* @__PURE__ */ e("div", { className: `${k > 0 ? "full-price" : ""}`, children: `${re(S)} ${oe(_)}` }),
599
+ /* @__PURE__ */ n("div", { className: "wrapper-card-2", children: [
600
+ /* @__PURE__ */ n("div", { className: `price-text ${A ? "new-price" : ""}`, children: [
601
+ k > 0 && _ && P !== !0 && E !== !0 && /* @__PURE__ */ e("div", { children: `${oe(k)} ${te(_)}` }),
602
+ A && /* @__PURE__ */ e("div", { className: `${k > 0 ? "full-price" : ""}`, children: `${oe(S)} ${te(_)}` }),
596
603
  P && de,
597
- T && ce
604
+ E && ce
598
605
  ] }),
599
- /* @__PURE__ */ e("div", { className: "location-text", children: ae })
606
+ /* @__PURE__ */ e("div", { className: "location-text", children: se })
600
607
  ] }),
601
- se === !0 && /* @__PURE__ */ e(Le, { sponsoredText: he })
608
+ le === !0 && /* @__PURE__ */ e(xe, { sponsoredText: he })
602
609
  ]
603
610
  }
604
611
  )
605
612
  );
606
- }), Ze = N(f)`
613
+ }), er = N(b)`
607
614
  @media (max-width: ${F + "px"}) {
608
615
  & > div {
609
616
  &:nth-of-type(even) {
@@ -611,8 +618,8 @@ const Ie = N.div`
611
618
  }
612
619
  }
613
620
  }
614
- `, Je = ({ keyPrefix: a }) => /* @__PURE__ */ t(Ze, { children: [
615
- /* @__PURE__ */ t(p, { gap: "0.5rem", children: [
621
+ `, rr = ({ keyPrefix: a }) => /* @__PURE__ */ n(er, { children: [
622
+ /* @__PURE__ */ n(p, { gap: "0.5rem", children: [
616
623
  /* @__PURE__ */ e(
617
624
  y,
618
625
  {
@@ -621,14 +628,14 @@ const Ie = N.div`
621
628
  borderRadius: "0.75rem"
622
629
  }
623
630
  ),
624
- /* @__PURE__ */ e(p, { height: "1rem", children: /* @__PURE__ */ e(n, { height: "1rem", borderRadius: "0.75rem" }) }),
625
- /* @__PURE__ */ t(f, { gap: "0.5rem", children: [
626
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" }),
627
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" })
631
+ /* @__PURE__ */ e(p, { height: "1rem", children: /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }) }),
632
+ /* @__PURE__ */ n(b, { gap: "0.5rem", children: [
633
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
634
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
628
635
  ] }),
629
- /* @__PURE__ */ e(p, { height: "2rem", children: /* @__PURE__ */ e(n, { height: "2rem", borderRadius: "0.75rem" }) })
636
+ /* @__PURE__ */ e(p, { height: "2rem", children: /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" }) })
630
637
  ] }, `${a}-1`),
631
- /* @__PURE__ */ t(
638
+ /* @__PURE__ */ n(
632
639
  p,
633
640
  {
634
641
  gap: "0.5rem",
@@ -642,17 +649,17 @@ const Ie = N.div`
642
649
  borderRadius: "0.75rem"
643
650
  }
644
651
  ),
645
- /* @__PURE__ */ e(n, { height: "1rem", borderRadius: "0.75rem" }),
646
- /* @__PURE__ */ t(f, { gap: "0.5rem", noGradient: !0, children: [
647
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" }),
648
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" })
652
+ /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
653
+ /* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
654
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
655
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
649
656
  ] }),
650
- /* @__PURE__ */ e(n, { height: "2rem", borderRadius: "0.75rem" })
657
+ /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
651
658
  ]
652
659
  },
653
660
  `${a}-2`
654
661
  ),
655
- /* @__PURE__ */ t(
662
+ /* @__PURE__ */ n(
656
663
  p,
657
664
  {
658
665
  gap: "0.5rem",
@@ -666,17 +673,17 @@ const Ie = N.div`
666
673
  borderRadius: "0.75rem"
667
674
  }
668
675
  ),
669
- /* @__PURE__ */ e(n, { height: "1rem", borderRadius: "0.75rem" }),
670
- /* @__PURE__ */ t(f, { gap: "0.5rem", noGradient: !0, children: [
671
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" }),
672
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" })
676
+ /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
677
+ /* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
678
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
679
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
673
680
  ] }),
674
- /* @__PURE__ */ e(n, { height: "2rem", borderRadius: "0.75rem" })
681
+ /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
675
682
  ]
676
683
  },
677
684
  `${a}-3`
678
685
  ),
679
- /* @__PURE__ */ t(
686
+ /* @__PURE__ */ n(
680
687
  p,
681
688
  {
682
689
  gap: "0.5rem",
@@ -690,17 +697,17 @@ const Ie = N.div`
690
697
  borderRadius: "0.75rem"
691
698
  }
692
699
  ),
693
- /* @__PURE__ */ e(n, { height: "1rem", borderRadius: "0.75rem" }),
694
- /* @__PURE__ */ t(f, { gap: "0.5rem", noGradient: !0, children: [
695
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" }),
696
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" })
700
+ /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
701
+ /* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
702
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
703
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
697
704
  ] }),
698
- /* @__PURE__ */ e(n, { height: "2rem", borderRadius: "0.75rem" })
705
+ /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
699
706
  ]
700
707
  },
701
708
  `${a}-4`
702
709
  ),
703
- /* @__PURE__ */ t(
710
+ /* @__PURE__ */ n(
704
711
  p,
705
712
  {
706
713
  gap: "0.5rem",
@@ -714,17 +721,17 @@ const Ie = N.div`
714
721
  borderRadius: "0.75rem"
715
722
  }
716
723
  ),
717
- /* @__PURE__ */ e(n, { height: "1rem", borderRadius: "0.75rem" }),
718
- /* @__PURE__ */ t(f, { gap: "0.5rem", noGradient: !0, children: [
719
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" }),
720
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" })
724
+ /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
725
+ /* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
726
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
727
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
721
728
  ] }),
722
- /* @__PURE__ */ e(n, { height: "2rem", borderRadius: "0.75rem" })
729
+ /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
723
730
  ]
724
731
  },
725
732
  `${a}-5`
726
733
  ),
727
- /* @__PURE__ */ t(
734
+ /* @__PURE__ */ n(
728
735
  p,
729
736
  {
730
737
  gap: "0.5rem",
@@ -738,23 +745,23 @@ const Ie = N.div`
738
745
  borderRadius: "0.75rem"
739
746
  }
740
747
  ),
741
- /* @__PURE__ */ e(n, { height: "1rem", borderRadius: "0.75rem" }),
742
- /* @__PURE__ */ t(f, { gap: "0.5rem", noGradient: !0, children: [
743
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" }),
744
- /* @__PURE__ */ e(n, { height: "1.5rem", borderRadius: "0.75rem" })
748
+ /* @__PURE__ */ e(t, { height: "1rem", borderRadius: "0.75rem" }),
749
+ /* @__PURE__ */ n(b, { gap: "0.5rem", noGradient: !0, children: [
750
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" }),
751
+ /* @__PURE__ */ e(t, { height: "1.5rem", borderRadius: "0.75rem" })
745
752
  ] }),
746
- /* @__PURE__ */ e(n, { height: "2rem", borderRadius: "0.75rem" })
753
+ /* @__PURE__ */ e(t, { height: "2rem", borderRadius: "0.75rem" })
747
754
  ]
748
755
  },
749
756
  `${a}-6`
750
757
  )
751
- ] }), ur = ({
758
+ ] }), fr = ({
752
759
  keyPrefix: a,
753
760
  isLoading: $ = !1,
754
- fallbackComponent: b = /* @__PURE__ */ e(M, {}),
761
+ fallbackComponent: u = /* @__PURE__ */ e(M, {}),
755
762
  children: O
756
- }) => /* @__PURE__ */ e(Ee, { fallbackComponent: b, children: $ === !0 ? /* @__PURE__ */ e(Je, { keyPrefix: a }) : O });
763
+ }) => /* @__PURE__ */ e(Oe, { fallbackComponent: u, children: $ === !0 ? /* @__PURE__ */ e(rr, { keyPrefix: a }) : O });
757
764
  export {
758
- pr as D,
759
- ur as S
765
+ gr as D,
766
+ fr as S
760
767
  };
@@ -1,4 +1,6 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),h=require("./utils-RnrgDDZP.cjs"),p=require("./useDetectMobile-zkbzoOGV.cjs"),s=require("./Button.cjs"),w=require("./index-uwl7BjRF.cjs"),b=c.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),p=require("./utils-RnrgDDZP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),s=require("./Button.cjs"),b=require("./index-uwl7BjRF.cjs"),f=c.styled.a`
2
+ text-decoration: none;
3
+ color: var(--gray-950);
2
4
  display: flex;
3
5
  width: 100%;
4
6
  gap: 1.25rem;
@@ -50,7 +52,7 @@
50
52
  margin-top: auto;
51
53
  }
52
54
  }
53
- `,f=c.styled.div`
55
+ `,y=c.styled.div`
54
56
  padding: 1rem;
55
57
  display: flex;
56
58
  flex-direction: column;
@@ -66,7 +68,7 @@
66
68
  font-weight: 400;
67
69
  font-size: 0.875rem;
68
70
  color: var(--gray-700, #4e555f);
69
- ${h.truncateTextInRows(3)}
71
+ ${p.truncateTextInRows(3)}
70
72
  }
71
73
 
72
74
  & button {
@@ -77,4 +79,4 @@
77
79
  @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
78
80
  padding: 0;
79
81
  }
80
- `,y=a.forwardRef((d,v)=>{const{title:l,imageUrl:u,text:x,onCardClick:t,buttonText:i,metadata:r}=d,o=p.useDetectMobile(),n=a.useRef();return e.jsxs(b,{ref:n,className:"blog-card","data-accessor":r==null?void 0:r.accessor,name:r==null?void 0:r.name,onClick:g=>t(g,n),children:[e.jsx(w.ProductImageWrapper,{src:u}),e.jsxs(f,{children:[e.jsx("div",{className:"text-wr-title",children:l}),e.jsx("div",{className:"text-wr",children:x}),o!==!0&&e.jsx(s,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:i})]}),o===!0&&e.jsx(s,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:i})]})});exports.BlogCardLarge=y;
82
+ `,v=a.forwardRef((d,j)=>{const{title:l,imageUrl:g,text:u,onCardClick:t,buttonText:i,metadata:r,titleSlug:x}=d,o=w.useDetectMobile(),n=a.useRef();return e.jsxs(f,{ref:n,className:"blog-card","data-accessor":r==null?void 0:r.accessor,name:r==null?void 0:r.name,onClick:h=>t(h,n),href:`/blog/${x}`,children:[e.jsx(b.ProductImageWrapper,{src:g}),e.jsxs(y,{children:[e.jsx("div",{className:"text-wr-title",children:l}),e.jsx("div",{className:"text-wr",children:u}),o!==!0&&e.jsx(s,{type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:i})]}),o===!0&&e.jsx(s,{className:"action",type:"button",btnType:"outline",size:"medium",color:"gray",onClick:t,children:i})]})});exports.BlogCardLarge=v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.183",
3
+ "version": "4.0.185",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [