@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
@@ -5,17 +5,26 @@
5
5
  border-radius: 0.75rem;
6
6
  position: relative;
7
7
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
8
+ cursor: pointer;
8
9
 
9
10
  grid-column: ${t=>{var e;return((e=t.position)==null?void 0:e.columnStart)||"1"}} /
10
11
  ${t=>{var e;return((e=t.position)==null?void 0:e.columnEnd)||"6"}};
11
12
  grid-row: ${t=>{var e;return((e=t.position)==null?void 0:e.rowStart)||"1"}} /
12
13
  ${t=>{var e;return((e=t.position)==null?void 0:e.rowEnd)||"1"}};
13
14
 
15
+ background: linear-gradient(
16
+ 178deg,
17
+ rgba(0, 0, 0, 0) 1.5%,
18
+ rgba(0, 0, 0, 0.16) 8.95%,
19
+ #000 98.39%
20
+ );
21
+
14
22
  & .wrapper__image {
15
23
  height: 100%;
16
24
  width: 100%;
17
25
  object-fit: cover;
18
26
  border-radius: 0.75rem;
27
+ mix-blend-mode: multiply;
19
28
  }
20
29
 
21
30
  & .wrapper__image--skeleton {
@@ -36,6 +45,7 @@
36
45
  gap: 0.75rem;
37
46
 
38
47
  & .text__title {
48
+ transition: var(--transiton, all 0.2s ease);
39
49
  color: var(--white, #ffffff);
40
50
  font-size: 1rem;
41
51
  font-style: normal;
@@ -94,7 +104,17 @@
94
104
  width: 9rem;
95
105
  }
96
106
  }
97
- `,u=m.forwardRef(({title:t,image:e,description:a,actionText:o,onSelectCard:l=()=>{},className:n,position:s,tag:c},y)=>{const p=h.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(f,{theme:p,className:n,onClick:l,position:s,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[c&&r.jsx("div",{className:"text__tag",children:c}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(a)&&r.jsx("div",{className:"text__description",children:a}),i.isDefinedNotEmptyString(o)&&r.jsx(x,{text:o,onClick:l,className:"text__action"})]})]})})}),_=d.newStyled.div`
107
+
108
+ &:hover {
109
+ cursor: pointer;
110
+
111
+ & .wrapper__text {
112
+ & .text__title {
113
+ color: var(--primary-500, #e87722);
114
+ }
115
+ }
116
+ }
117
+ `,u=m.forwardRef(({title:t,image:e,description:a,actionText:o,onSelectCard:l=()=>{},className:n,position:s,tag:c},v)=>{const p=h.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(f,{theme:p,className:n,onClick:l,position:s,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[c&&r.jsx("div",{className:"text__tag",children:c}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(a)&&r.jsx("div",{className:"text__description",children:a}),i.isDefinedNotEmptyString(o)&&r.jsx(x,{text:o,onClick:l,className:"text__action"})]})]})})}),_=d.newStyled.div`
98
118
  display: flex;
99
119
  flex-direction: column;
100
120
  gap: 1.5rem;
@@ -12,6 +12,7 @@ const b = s.div`
12
12
  border-radius: 0.75rem;
13
13
  position: relative;
14
14
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
15
+ cursor: pointer;
15
16
 
16
17
  grid-column: ${(r) => {
17
18
  var e;
@@ -30,11 +31,19 @@ const b = s.div`
30
31
  return ((e = r.position) == null ? void 0 : e.rowEnd) || "1";
31
32
  }};
32
33
 
34
+ background: linear-gradient(
35
+ 178deg,
36
+ rgba(0, 0, 0, 0) 1.5%,
37
+ rgba(0, 0, 0, 0.16) 8.95%,
38
+ #000 98.39%
39
+ );
40
+
33
41
  & .wrapper__image {
34
42
  height: 100%;
35
43
  width: 100%;
36
44
  object-fit: cover;
37
45
  border-radius: 0.75rem;
46
+ mix-blend-mode: multiply;
38
47
  }
39
48
 
40
49
  & .wrapper__image--skeleton {
@@ -55,6 +64,7 @@ const b = s.div`
55
64
  gap: 0.75rem;
56
65
 
57
66
  & .text__title {
67
+ transition: var(--transiton, all 0.2s ease);
58
68
  color: var(--white, #ffffff);
59
69
  font-size: 1rem;
60
70
  font-style: normal;
@@ -113,6 +123,16 @@ const b = s.div`
113
123
  width: 9rem;
114
124
  }
115
125
  }
126
+
127
+ &:hover {
128
+ cursor: pointer;
129
+
130
+ & .wrapper__text {
131
+ & .text__title {
132
+ color: var(--primary-500, #e87722);
133
+ }
134
+ }
135
+ }
116
136
  `, v = f(
117
137
  ({
118
138
  title: r,
@@ -1,127 +1,83 @@
1
- "use strict";const e=require("react/jsx-runtime"),l=require("react"),x=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),p=require("./consts-CtNoHdBj.cjs"),u=require("./style-BR3tIhP1.cjs"),m=require("./ThemeProvider.cjs"),i=require("./utils-NZLCh-J5.cjs"),g=require("./Button.cjs"),f=x.newStyled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),u=require("./consts-CtNoHdBj.cjs"),p=require("./style-DN1qT8BE.cjs"),d=require("./utils-NZLCh-J5.cjs"),f=require("./Button.cjs"),m=require("./ThemeProvider.cjs"),j=x.newStyled.div`
2
2
  display: grid;
3
- grid-template-columns: ${t=>`repeat(${t.limit}, 1fr)`};
3
+ grid-template-columns: ${n=>`repeat(${n.limit}, 1fr)`};
4
4
  gap: 1.25rem;
5
5
  justify-items: center;
6
6
 
7
- @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
7
+ @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  gap: 1rem;
11
11
  }
12
- `,h=x.newStyled.div`
13
- display: flex;
14
- flex-direction: column;
15
- align-items: flex-start;
16
- border-radius: 0.75rem;
12
+ `,g=x.newStyled.div`
13
+ width: 100%;
14
+ overflow: hidden;
17
15
  position: relative;
18
- max-height: 28.75rem;
19
16
 
20
- & .wrapper__overlay {
21
- position: relative;
17
+ border-radius: 0.75rem;
18
+ background: ${n=>n==null?void 0:n.overlay};
19
+ cursor: pointer;
22
20
 
23
- &::after {
24
- content: "";
25
- position: absolute;
26
- border-radius: 0.75rem;
27
- left: 0;
28
- top: 0;
29
- width: 100%;
30
- height: 99%;
31
- max-height: 28.75rem;
32
- background: ${t=>t==null?void 0:t.overlay};
33
- }
21
+ & .content-wrapper {
22
+ position: absolute;
23
+ right: 0;
24
+ top: 0;
25
+ padding: 2.25rem;
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 1rem;
29
+ justify-content: space-between;
30
+ height: 100%;
31
+ width: 100%;
34
32
  }
35
33
 
36
- & .wrapper__image {
37
- border-radius: 0.75rem;
38
- }
34
+ & button {
35
+ width: fit-content;
36
+ color: var(--gray-950, #14161a);
39
37
 
40
- & .wrapper__image--skeleton {
41
- width: 100%;
42
- border-radius: 0.75rem;
43
- background-color: ${i.linearGradientAnimation("-90deg")};
38
+ &:hover {
39
+ color: var(--gray-700, #4e555f);
40
+ }
44
41
  }
45
42
 
46
- & .wrapper__text {
43
+ & .content-text {
47
44
  display: flex;
48
45
  flex-direction: column;
49
- align-items: flex-start;
50
- padding: 1rem;
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
-
55
- & .text__title {
56
- color: var(--white);
57
- font-size: 1rem;
58
- font-style: normal;
59
- font-weight: 500;
60
- line-height: 1.5rem;
61
- ${i.truncateTextInRows(2)}
62
- }
46
+ gap: 1rem;
47
+ color: var(--white, #fff);
48
+ font-size: 1rem;
49
+ font-weight: 500;
63
50
 
64
- & .text__description {
65
- color: var(--white);
66
- font-size: 1.375rem;
67
- font-style: normal;
51
+ & .content-text-title {
68
52
  font-weight: 600;
69
- line-height: 1.75rem;
70
- ${i.truncateTextInRows(2)}
71
- }
72
-
73
- & .text__title--skeleton {
74
- background-color: ${i.linearGradientAnimation("-90deg")};
75
- height: 1rem;
76
- width: 9rem;
77
- }
78
-
79
- & .text__description--skeleton {
80
- background-color: ${i.linearGradientAnimation("-90deg")};
81
- height: 1rem;
82
- width: 12rem;
53
+ ${d.truncateTextInRows(2)}
83
54
  }
84
55
  }
85
56
 
86
- & .text__action {
87
- background: var(--white);
88
- color: var(--black);
89
- position: absolute;
90
- bottom: 1rem;
91
- left: 1rem;
92
-
93
- &:hover {
94
- background: var(--primary-500, #f59e0b);
95
- color: var(--white);
96
- }
57
+ & img {
58
+ aspect-ratio: 1 / 1;
59
+ mix-blend-mode: multiply;
60
+ width: 100%;
61
+ object-fit: cover;
97
62
  }
98
63
 
99
- & .text__action--skeleton {
100
- background-color: ${i.linearGradientAnimation("-90deg")};
101
- height: 2rem;
102
- width: 9rem;
103
- position: absolute;
104
- bottom: 1rem;
105
- left: 1rem;
64
+ & .img-skeleton {
65
+ background-color: ${d.linearGradientAnimation("-90deg")};
66
+ min-height: 28.75rem;
106
67
  }
107
68
 
108
- @media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
109
- max-height: 100%;
110
-
111
- & .wrapper__overlay {
112
- &::after {
113
- max-height: 100%;
114
- }
115
- }
116
-
117
- & .wrapper__text {
118
- top: 1rem;
119
- left: 1rem;
69
+ &:hover {
70
+ & .content-text {
71
+ color: var(--primary-500, #f59e0b);
120
72
  }
73
+ }
121
74
 
122
- & .text__action {
123
- bottom: 2rem;
124
- left: 2rem;
75
+ @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
76
+ & img,
77
+ .img.skeleton {
78
+ aspect-ratio: unset;
79
+ min-height: 28.75rem;
80
+ max-height: 28.75rem;
125
81
  }
126
82
  }
127
- `,v=l.forwardRef(({},t)=>{const{theme:a}=m.useTheme();return e.jsxs(h,{theme:a,children:[e.jsx("div",{className:"wrapper__image--skeleton"}),e.jsxs("div",{className:"wrapper__text",children:[e.jsx("div",{className:"text__title--skeleton"}),e.jsx("div",{className:"text__description--skeleton"})]}),e.jsx("div",{className:"text__action--skeleton"})]})}),w=({limit:t=2,isLoading:a=!1,keyPrefix:n})=>e.jsx(e.Fragment,{children:Array.from({length:t},(s,o)=>e.jsx(v,{isLoading:a},`${n}-skeleton-product-card-${o}`))}),j=({children:t,fallbackComponent:a=e.jsx(e.Fragment,{}),isLoading:n=!1,limit:s,keyPrefix:o})=>e.jsx(l.Suspense,{fallbackComponent:a,children:n===!0?e.jsx(w,{isLoading:n,limit:s,keyPrefix:o}):t}),y=l.forwardRef(({title:t,image:a,overlay:n,description:s,actionText:o,actionLink:_,handleClick:c=()=>{}},r)=>{const{theme:d}=m.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(h,{theme:d,overlay:n,onClick:c,children:[e.jsx("div",{className:"wrapper__overlay",children:e.jsx("img",{src:a,className:"wrapper__image"})}),e.jsxs("div",{className:"wrapper__text",children:[e.jsx("div",{className:"text__title",children:t}),e.jsx("div",{className:"text__description",children:s})]}),e.jsx(g,{text:o,onClick:c,className:"text__action"})]})})}),k=l.memo(y),b=l.forwardRef(({title:t,items:a,limit:n=2,onSelectCard:s=()=>{},isLoading:o=!1},_)=>{const c=l.useMemo(()=>e.jsx(e.Fragment,{children:a&&(a==null?void 0:a.map((r,d)=>e.jsx(k,{title:r==null?void 0:r.title,image:r==null?void 0:r.image,description:r==null?void 0:r.description,actionText:r==null?void 0:r.actionText,overlay:r==null?void 0:r.overlay,handleClick:()=>s(r==null?void 0:r.uuid)},`landing-page-overlay-general-card__${d+1}`)))}),[a]);return e.jsxs(u.RegulatTitleSectionWrapper,{children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:t})})}),e.jsx(f,{limit:n,children:e.jsx(j,{isLoading:o,limit:n,keyPrefix:"explore-landing",children:c})})]})});module.exports=b;
83
+ `,v=c.forwardRef(({},n)=>e.jsx(g,{ref:n,children:e.jsx("div",{className:"img-skeleton"})})),y=({limit:n=2,isLoading:t=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:n},(a,s)=>e.jsx(v,{isLoading:t},`${o}-skeleton-product-card-${s}`))}),w=({children:n,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:s})=>e.jsx(c.Suspense,{fallbackComponent:t,children:o===!0?e.jsx(y,{isLoading:o,limit:a,keyPrefix:s}):n}),k=c.forwardRef(({title:n,image:t,overlay:o,description:a,actionText:s,handleClick:i=()=>{}},l)=>{const{theme:r}=m.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(g,{ref:l,theme:r,overlay:o,onClick:i,children:[e.jsx("img",{src:t}),e.jsxs("div",{className:"content-wrapper",children:[e.jsxs("div",{className:"content-text",children:[e.jsx("div",{children:n}),e.jsx("div",{className:"content-text-title",children:a})]}),e.jsx(f,{text:s,onClick:i,className:"text__action",size:"medium",color:"gray"})]})]})})}),_=c.memo(k),b=c.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:a=()=>{},isLoading:s=!1},i)=>{const l=c.useMemo(()=>e.jsx(e.Fragment,{children:t&&(t==null?void 0:t.map((r,h)=>e.jsx(_,{title:r==null?void 0:r.title,image:r==null?void 0:r.image,description:r==null?void 0:r.description,actionText:r==null?void 0:r.actionText,overlay:r==null?void 0:r.overlay,handleClick:()=>a(r==null?void 0:r.uuid)},`landing-page-overlay-general-card__${h+1}`)))}),[t,a]);return e.jsxs(p.RegulatTitleSectionWrapper,{ref:i,children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:n})})}),e.jsx(j,{limit:o,children:e.jsx(w,{isLoading:s,limit:o,keyPrefix:"explore-landing",children:l})})]})});module.exports=b;
@@ -1,213 +1,164 @@
1
- import { jsxs as i, jsx as e, Fragment as c } from "react/jsx-runtime";
2
- import { forwardRef as m, Suspense as v, memo as w, useMemo as k } from "react";
3
- import { n as _ } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
- import { M as g } from "./consts-C1uHV4xc.js";
5
- import { R as y } from "./style-6tSw9aqK.js";
6
- import { useTheme as f } from "./ThemeProvider.js";
7
- import { m as d, t as h } from "./utils-DtRLzzTZ.js";
8
- import b from "./Button.js";
9
- const $ = _.div`
1
+ import { jsx as r, Fragment as d, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as p, Suspense as f, memo as x, useMemo as v } from "react";
3
+ import { n as g } from "./emotion-styled.browser.esm-CjCaF13H.js";
4
+ import { M as h } from "./consts-C1uHV4xc.js";
5
+ import { R as y } from "./style-CiePxaJ_.js";
6
+ import { t as w, m as k } from "./utils-DtRLzzTZ.js";
7
+ import $ from "./Button.js";
8
+ import { useTheme as b } from "./ThemeProvider.js";
9
+ const N = g.div`
10
10
  display: grid;
11
11
  grid-template-columns: ${(t) => `repeat(${t.limit}, 1fr)`};
12
12
  gap: 1.25rem;
13
13
  justify-items: center;
14
14
 
15
- @media (max-width: ${g + "px"}) {
15
+ @media (max-width: ${h + "px"}) {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  gap: 1rem;
19
19
  }
20
- `, u = _.div`
21
- display: flex;
22
- flex-direction: column;
23
- align-items: flex-start;
24
- border-radius: 0.75rem;
20
+ `, m = g.div`
21
+ width: 100%;
22
+ overflow: hidden;
25
23
  position: relative;
26
- max-height: 28.75rem;
27
24
 
28
- & .wrapper__overlay {
29
- position: relative;
25
+ border-radius: 0.75rem;
26
+ background: ${(t) => t == null ? void 0 : t.overlay};
27
+ cursor: pointer;
30
28
 
31
- &::after {
32
- content: "";
33
- position: absolute;
34
- border-radius: 0.75rem;
35
- left: 0;
36
- top: 0;
37
- width: 100%;
38
- height: 99%;
39
- max-height: 28.75rem;
40
- background: ${(t) => t == null ? void 0 : t.overlay};
41
- }
29
+ & .content-wrapper {
30
+ position: absolute;
31
+ right: 0;
32
+ top: 0;
33
+ padding: 2.25rem;
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: 1rem;
37
+ justify-content: space-between;
38
+ height: 100%;
39
+ width: 100%;
42
40
  }
43
41
 
44
- & .wrapper__image {
45
- border-radius: 0.75rem;
46
- }
42
+ & button {
43
+ width: fit-content;
44
+ color: var(--gray-950, #14161a);
47
45
 
48
- & .wrapper__image--skeleton {
49
- width: 100%;
50
- border-radius: 0.75rem;
51
- background-color: ${d("-90deg")};
46
+ &:hover {
47
+ color: var(--gray-700, #4e555f);
48
+ }
52
49
  }
53
50
 
54
- & .wrapper__text {
51
+ & .content-text {
55
52
  display: flex;
56
53
  flex-direction: column;
57
- align-items: flex-start;
58
- padding: 1rem;
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
-
63
- & .text__title {
64
- color: var(--white);
65
- font-size: 1rem;
66
- font-style: normal;
67
- font-weight: 500;
68
- line-height: 1.5rem;
69
- ${h(2)}
70
- }
54
+ gap: 1rem;
55
+ color: var(--white, #fff);
56
+ font-size: 1rem;
57
+ font-weight: 500;
71
58
 
72
- & .text__description {
73
- color: var(--white);
74
- font-size: 1.375rem;
75
- font-style: normal;
59
+ & .content-text-title {
76
60
  font-weight: 600;
77
- line-height: 1.75rem;
78
- ${h(2)}
79
- }
80
-
81
- & .text__title--skeleton {
82
- background-color: ${d("-90deg")};
83
- height: 1rem;
84
- width: 9rem;
85
- }
86
-
87
- & .text__description--skeleton {
88
- background-color: ${d("-90deg")};
89
- height: 1rem;
90
- width: 12rem;
61
+ ${w(2)}
91
62
  }
92
63
  }
93
64
 
94
- & .text__action {
95
- background: var(--white);
96
- color: var(--black);
97
- position: absolute;
98
- bottom: 1rem;
99
- left: 1rem;
100
-
101
- &:hover {
102
- background: var(--primary-500, #f59e0b);
103
- color: var(--white);
104
- }
65
+ & img {
66
+ aspect-ratio: 1 / 1;
67
+ mix-blend-mode: multiply;
68
+ width: 100%;
69
+ object-fit: cover;
105
70
  }
106
71
 
107
- & .text__action--skeleton {
108
- background-color: ${d("-90deg")};
109
- height: 2rem;
110
- width: 9rem;
111
- position: absolute;
112
- bottom: 1rem;
113
- left: 1rem;
72
+ & .img-skeleton {
73
+ background-color: ${k("-90deg")};
74
+ min-height: 28.75rem;
114
75
  }
115
76
 
116
- @media (max-width: ${g + "px"}) {
117
- max-height: 100%;
118
-
119
- & .wrapper__overlay {
120
- &::after {
121
- max-height: 100%;
122
- }
123
- }
124
-
125
- & .wrapper__text {
126
- top: 1rem;
127
- left: 1rem;
77
+ &:hover {
78
+ & .content-text {
79
+ color: var(--primary-500, #f59e0b);
128
80
  }
81
+ }
129
82
 
130
- & .text__action {
131
- bottom: 2rem;
132
- left: 2rem;
83
+ @media (max-width: ${h + "px"}) {
84
+ & img,
85
+ .img.skeleton {
86
+ aspect-ratio: unset;
87
+ min-height: 28.75rem;
88
+ max-height: 28.75rem;
133
89
  }
134
90
  }
135
- `, N = m(({}, t) => {
136
- const { theme: a } = f();
137
- return /* @__PURE__ */ i(u, { theme: a, children: [
138
- /* @__PURE__ */ e("div", { className: "wrapper__image--skeleton" }),
139
- /* @__PURE__ */ i("div", { className: "wrapper__text", children: [
140
- /* @__PURE__ */ e("div", { className: "text__title--skeleton" }),
141
- /* @__PURE__ */ e("div", { className: "text__description--skeleton" })
142
- ] }),
143
- /* @__PURE__ */ e("div", { className: "text__action--skeleton" })
144
- ] });
145
- }), S = ({ limit: t = 2, isLoading: a = !1, keyPrefix: o }) => /* @__PURE__ */ e(c, { children: Array.from({ length: t }, (n, l) => /* @__PURE__ */ e(
146
- N,
91
+ `, P = p(({}, t) => /* @__PURE__ */ r(m, { ref: t, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), S = ({ limit: t = 2, isLoading: n = !1, keyPrefix: o }) => /* @__PURE__ */ r(d, { children: Array.from({ length: t }, (a, l) => /* @__PURE__ */ r(
92
+ P,
147
93
  {
148
- isLoading: a
94
+ isLoading: n
149
95
  },
150
96
  `${o}-skeleton-product-card-${l}`
151
- )) }), C = ({
97
+ )) }), _ = ({
152
98
  children: t,
153
- fallbackComponent: a = /* @__PURE__ */ e(c, {}),
99
+ fallbackComponent: n = /* @__PURE__ */ r(d, {}),
154
100
  isLoading: o = !1,
155
- limit: n,
101
+ limit: a,
156
102
  keyPrefix: l
157
- }) => /* @__PURE__ */ e(v, { fallbackComponent: a, children: o === !0 ? /* @__PURE__ */ e(
103
+ }) => /* @__PURE__ */ r(f, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
158
104
  S,
159
105
  {
160
106
  isLoading: o,
161
- limit: n,
107
+ limit: a,
162
108
  keyPrefix: l
163
109
  }
164
- ) : t }), P = m(
165
- ({
166
- title: t,
167
- image: a,
168
- overlay: o,
169
- description: n,
170
- actionText: l,
171
- actionLink: x,
172
- handleClick: s = () => {
173
- }
174
- }, r) => {
175
- const { theme: p } = f();
176
- return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ i(u, { theme: p, overlay: o, onClick: s, children: [
177
- /* @__PURE__ */ e("div", { className: "wrapper__overlay", children: /* @__PURE__ */ e("img", { src: a, className: "wrapper__image" }) }),
178
- /* @__PURE__ */ i("div", { className: "wrapper__text", children: [
179
- /* @__PURE__ */ e("div", { className: "text__title", children: t }),
180
- /* @__PURE__ */ e("div", { className: "text__description", children: n })
181
- ] }),
182
- /* @__PURE__ */ e(
183
- b,
184
- {
185
- text: l,
186
- onClick: s,
187
- className: "text__action"
188
- }
189
- )
190
- ] }) });
110
+ ) : t }), C = p(
111
+ ({ title: t, image: n, overlay: o, description: a, actionText: l, handleClick: i = () => {
112
+ } }, s) => {
113
+ const { theme: e } = b();
114
+ return /* @__PURE__ */ r(d, { children: /* @__PURE__ */ c(
115
+ m,
116
+ {
117
+ ref: s,
118
+ theme: e,
119
+ overlay: o,
120
+ onClick: i,
121
+ children: [
122
+ /* @__PURE__ */ r("img", { src: n }),
123
+ /* @__PURE__ */ c("div", { className: "content-wrapper", children: [
124
+ /* @__PURE__ */ c("div", { className: "content-text", children: [
125
+ /* @__PURE__ */ r("div", { children: t }),
126
+ /* @__PURE__ */ r("div", { className: "content-text-title", children: a })
127
+ ] }),
128
+ /* @__PURE__ */ r(
129
+ $,
130
+ {
131
+ text: l,
132
+ onClick: i,
133
+ className: "text__action",
134
+ size: "medium",
135
+ color: "gray"
136
+ }
137
+ )
138
+ ] })
139
+ ]
140
+ }
141
+ ) });
191
142
  }
192
- ), G = w(P), W = m(
193
- ({ title: t, items: a, limit: o = 2, onSelectCard: n = () => {
194
- }, isLoading: l = !1 }, x) => {
195
- const s = k(() => /* @__PURE__ */ e(c, { children: a && (a == null ? void 0 : a.map((r, p) => /* @__PURE__ */ e(
196
- G,
143
+ ), j = x(C), A = p(
144
+ ({ title: t, items: n, limit: o = 2, onSelectCard: a = () => {
145
+ }, isLoading: l = !1 }, i) => {
146
+ const s = v(() => /* @__PURE__ */ r(d, { children: n && (n == null ? void 0 : n.map((e, u) => /* @__PURE__ */ r(
147
+ j,
197
148
  {
198
- title: r == null ? void 0 : r.title,
199
- image: r == null ? void 0 : r.image,
200
- description: r == null ? void 0 : r.description,
201
- actionText: r == null ? void 0 : r.actionText,
202
- overlay: r == null ? void 0 : r.overlay,
203
- handleClick: () => n(r == null ? void 0 : r.uuid)
149
+ title: e == null ? void 0 : e.title,
150
+ image: e == null ? void 0 : e.image,
151
+ description: e == null ? void 0 : e.description,
152
+ actionText: e == null ? void 0 : e.actionText,
153
+ overlay: e == null ? void 0 : e.overlay,
154
+ handleClick: () => a(e == null ? void 0 : e.uuid)
204
155
  },
205
- `landing-page-overlay-general-card__${p + 1}`
206
- ))) }), [a]);
207
- return /* @__PURE__ */ i(y, { children: [
208
- /* @__PURE__ */ e("div", { className: "regular-title center", children: /* @__PURE__ */ e("div", { className: "regular-title-text", children: /* @__PURE__ */ e("span", { children: t }) }) }),
209
- /* @__PURE__ */ e($, { limit: o, children: /* @__PURE__ */ e(
210
- C,
156
+ `landing-page-overlay-general-card__${u + 1}`
157
+ ))) }), [n, a]);
158
+ return /* @__PURE__ */ c(y, { ref: i, children: [
159
+ /* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: t }) }) }),
160
+ /* @__PURE__ */ r(N, { limit: o, children: /* @__PURE__ */ r(
161
+ _,
211
162
  {
212
163
  isLoading: l,
213
164
  limit: o,
@@ -219,5 +170,5 @@ const $ = _.div`
219
170
  }
220
171
  );
221
172
  export {
222
- W as default
173
+ A as default
223
174
  };