@lanaco/lnc-react-ui 4.0.39 → 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 (62) 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 +10 -10
  14. package/dist/BlogsSectionDetailed.js +32 -33
  15. package/dist/BlogsSectionLarge.cjs +2 -2
  16. package/dist/BlogsSectionLarge.js +2 -2
  17. package/dist/BlogsSectionSimple.cjs +2 -2
  18. package/dist/BlogsSectionSimple.js +20 -20
  19. package/dist/BlogsSectionSimpleCentered.cjs +6 -6
  20. package/dist/BlogsSectionSimpleCentered.js +9 -9
  21. package/dist/BlogsSectionWithFilters.cjs +10 -10
  22. package/dist/BlogsSectionWithFilters.js +65 -64
  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 +1 -1
  30. package/dist/DetailedProductsSection.js +1 -1
  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 +52 -96
  44. package/dist/OverlayGeneralCardsSection.js +116 -165
  45. package/dist/ProductsWithBannerSection.cjs +5 -5
  46. package/dist/ProductsWithBannerSection.js +26 -26
  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 +1 -1
  52. package/dist/SimpleCategoriesSection.js +1 -1
  53. package/dist/SimpleProductsSection.cjs +1 -1
  54. package/dist/SimpleProductsSection.js +1 -1
  55. package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
  56. package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
  57. package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
  58. package/dist/index-Dn5tPLgP.cjs +95 -0
  59. package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
  60. package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
  61. package/package.json +1 -1
  62. package/dist/index-Q_i-aqsF.cjs +0 -95
@@ -3,8 +3,8 @@ import { forwardRef as w, useState as N, useRef as Y } from "react";
3
3
  import { n as y } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
4
  import { M as T } from "./consts-C1uHV4xc.js";
5
5
  import R from "./Button.js";
6
- import { P as G } from "./index-S5Cd7WrG.js";
7
- import A from "./RangeSlider.js";
6
+ import { P as A } from "./index-S5Cd7WrG.js";
7
+ import G from "./RangeSlider.js";
8
8
  import _ from "./DropdownItem.js";
9
9
  import K from "./DropdownMenu.js";
10
10
  import X from "./IconButton.js";
@@ -274,9 +274,8 @@ const U = y.div`
274
274
  display: inline-flex;
275
275
  align-items: center;
276
276
  cursor: pointer;
277
- background: var(--white);
277
+ background: var(--white, #fff);
278
278
  border-radius: 30px;
279
- padding: 0.25em 0.5em;
280
279
  user-select: none;
281
280
  font-family: Arial, sans-serif;
282
281
  font-weight: bold;
@@ -305,7 +304,7 @@ const U = y.div`
305
304
  top: 0;
306
305
  bottom: 0;
307
306
  left: ${(s) => s.checked ? "3rem" : "3px"};
308
- background: var(--success-600);
307
+ background: var(--success-600, #059669);
309
308
  border-radius: 30px;
310
309
  transition: left 0.3s;
311
310
  width: fit-content;
@@ -315,11 +314,11 @@ const U = y.div`
315
314
  pointer-events: none;
316
315
  font-weight: normal;
317
316
  font-size: 0.9rem;
318
- color: var(--white);
317
+ color: var(--white, #fff);
319
318
  padding: 0 0.75rem;
320
319
  min-height: 2.5rem;
321
320
  max-height: 2.5rem;
322
- border: 1px solid var(--success-600);
321
+ border: 1px solid var(--success-600, #059669);
323
322
  }
324
323
 
325
324
  .text {
@@ -329,7 +328,7 @@ const U = y.div`
329
328
  display: flex;
330
329
  gap: 0.5rem;
331
330
  padding: 0.75rem;
332
- border: 1px solid var(--gray-95012);
331
+ border: 1px solid var(--gray-95012, #14161a1f);
333
332
  border-radius: 30px;
334
333
  min-height: 2.5rem;
335
334
  max-height: 2.5rem;
@@ -344,7 +343,7 @@ const U = y.div`
344
343
  align-items: center;
345
344
  gap: 0.38rem;
346
345
  }
347
- `, I = w((s, b) => {
346
+ `, I = w((s, f) => {
348
347
  var m, g, p, h, v, x, k, C;
349
348
  const {
350
349
  onChange: d = () => {
@@ -361,7 +360,7 @@ const U = y.div`
361
360
  /* @__PURE__ */ t("span", { children: (p = a == null ? void 0 : a.at(1)) == null ? void 0 : p.name }),
362
361
  /* @__PURE__ */ t("i", { className: (h = a == null ? void 0 : a.at(1)) == null ? void 0 : h.icon })
363
362
  ] }), [e, r] = N(!1);
364
- return /* @__PURE__ */ i(ne, { checked: e, ...l, children: [
363
+ return /* @__PURE__ */ i(ne, { ref: f, checked: e, ...l, children: [
365
364
  /* @__PURE__ */ t("input", { type: "checkbox", checked: e, onChange: (u) => {
366
365
  var L, j;
367
366
  r(u.target.checked), d && d(
@@ -382,11 +381,11 @@ const U = y.div`
382
381
  ] });
383
382
  });
384
383
  I.propTypes = {
385
- value: G.any,
386
- handleClick: G.func,
387
- color: G.string
384
+ value: A.any,
385
+ handleClick: A.func,
386
+ color: A.string
388
387
  };
389
- const ie = w((s, b) => {
388
+ const ie = w((s, f) => {
390
389
  var C;
391
390
  const {
392
391
  yearsText: d,
@@ -499,14 +498,14 @@ const ie = w((s, b) => {
499
498
  )
500
499
  ] })
501
500
  ] });
502
- }), re = w((s, b) => {
501
+ }), re = w((s, f) => {
503
502
  const { text: d = "Years", onChange: a = () => {
504
503
  } } = s, [l, c] = N(1);
505
504
  return /* @__PURE__ */ i(z, { children: [
506
505
  /* @__PURE__ */ t("div", { className: "grid-label", children: d }),
507
506
  /* @__PURE__ */ i("div", { className: "caluclating-group", children: [
508
507
  /* @__PURE__ */ t(
509
- A,
508
+ G,
510
509
  {
511
510
  className: "range-input-lnc",
512
511
  max: 115,
@@ -538,7 +537,7 @@ const ie = w((s, b) => {
538
537
  )
539
538
  ] })
540
539
  ] });
541
- }), le = w((s, b) => {
540
+ }), le = w((s, f) => {
542
541
  const { text: d = "Height", unitText: a = "cm", onChange: l = () => {
543
542
  } } = s, [c, n] = N(1);
544
543
  return /* @__PURE__ */ i(z, { children: [
@@ -549,7 +548,7 @@ const ie = w((s, b) => {
549
548
  ] }),
550
549
  /* @__PURE__ */ i("div", { className: "caluclating-group", children: [
551
550
  /* @__PURE__ */ t(
552
- A,
551
+ G,
553
552
  {
554
553
  className: "range-input-lnc",
555
554
  max: 273,
@@ -581,7 +580,7 @@ const ie = w((s, b) => {
581
580
  )
582
581
  ] })
583
582
  ] });
584
- }), ce = w((s, b) => {
583
+ }), ce = w((s, f) => {
585
584
  const { text: d = "Weight", unitText: a = "cm", onChange: l = () => {
586
585
  } } = s, [c, n] = N(1);
587
586
  return /* @__PURE__ */ i(z, { children: [
@@ -592,7 +591,7 @@ const ie = w((s, b) => {
592
591
  ] }),
593
592
  /* @__PURE__ */ i("div", { className: "caluclating-group", children: [
594
593
  /* @__PURE__ */ t(
595
- A,
594
+ G,
596
595
  {
597
596
  className: "range-input-lnc",
598
597
  max: 400,
@@ -624,7 +623,7 @@ const ie = w((s, b) => {
624
623
  )
625
624
  ] })
626
625
  ] });
627
- }), oe = w((s, b) => {
626
+ }), oe = w((s, f) => {
628
627
  const {
629
628
  text: d = "Activity level",
630
629
  activityLevels: a,
@@ -648,7 +647,7 @@ const ie = w((s, b) => {
648
647
  r
649
648
  )) })
650
649
  ] });
651
- }), se = w((s, b) => {
650
+ }), se = w((s, f) => {
652
651
  const { text: d = "Goal", goals: a, onChange: l = () => {
653
652
  } } = s, [c, n] = N(null);
654
653
  return /* @__PURE__ */ i(z, { children: [
@@ -671,7 +670,7 @@ const ie = w((s, b) => {
671
670
  r
672
671
  )) })
673
672
  ] });
674
- }), de = w((s, b) => {
673
+ }), de = w((s, f) => {
675
674
  const {
676
675
  caloriesText: d = "Calories",
677
676
  carbsText: a = "Carbs",
@@ -752,7 +751,7 @@ const ie = w((s, b) => {
752
751
  )
753
752
  ] })
754
753
  ] });
755
- }), me = w((s, b) => {
754
+ }), me = w((s, f) => {
756
755
  const {
757
756
  caloriesText: d,
758
757
  carbsText: a,
@@ -778,8 +777,8 @@ const ie = w((s, b) => {
778
777
  "From certified dealers from all over Europe"
779
778
  ],
780
779
  buttonText: M = "Calculate calorie needs"
781
- } = s, [W, S] = N(1), [f, B] = N(0);
782
- return /* @__PURE__ */ i(J, { ref: b, children: [
780
+ } = s, [W, S] = N(1), [b, B] = N(0);
781
+ return /* @__PURE__ */ i(J, { ref: f, children: [
783
782
  /* @__PURE__ */ i(Q, { children: [
784
783
  /* @__PURE__ */ t("div", { className: "header-title", children: u }),
785
784
  /* @__PURE__ */ t("div", { className: "header-subtitle", children: L })
@@ -788,7 +787,7 @@ const ie = w((s, b) => {
788
787
  Z,
789
788
  {
790
789
  buttonText: M,
791
- onBannerClick: () => {
790
+ onButtonAction: () => {
792
791
  S(2);
793
792
  },
794
793
  list: j
@@ -838,14 +837,14 @@ const ie = w((s, b) => {
838
837
  fatsText: c,
839
838
  calculateAgainText: n,
840
839
  onGoBack: () => S(2),
841
- calories: f == null ? void 0 : f.calories,
842
- fats: f == null ? void 0 : f.fat,
843
- carbs: f == null ? void 0 : f.carbs,
844
- protein: f == null ? void 0 : f.protein
840
+ calories: b == null ? void 0 : b.calories,
841
+ fats: b == null ? void 0 : b.fat,
842
+ carbs: b == null ? void 0 : b.carbs,
843
+ protein: b == null ? void 0 : b.protein
845
844
  }
846
845
  )
847
846
  ] });
848
- }), ke = w((s, b) => /* @__PURE__ */ t(me, { ref: b, ...s }));
847
+ }), ke = w((s, f) => /* @__PURE__ */ t(me, { ref: f, ...s }));
849
848
  export {
850
849
  ke as default
851
850
  };