@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.
- package/dist/BannerSectionBasic.cjs +9 -9
- package/dist/BannerSectionBasic.js +20 -20
- package/dist/BannerSectionCarousel.cjs +13 -5
- package/dist/BannerSectionCarousel.js +29 -21
- package/dist/BannerSectionGrid.cjs +1 -1
- package/dist/BannerSectionGrid.js +6 -6
- package/dist/BannerSectionSimple.cjs +4 -4
- package/dist/BannerSectionSimple.js +41 -38
- package/dist/BannerSectionWithList.cjs +4 -4
- package/dist/BannerSectionWithList.js +17 -17
- package/dist/BannerSectionWithListImage.cjs +5 -5
- package/dist/BannerSectionWithListImage.js +41 -38
- package/dist/BlogsSectionDetailed.cjs +15 -15
- package/dist/BlogsSectionDetailed.js +128 -92
- package/dist/BlogsSectionLarge.cjs +10 -10
- package/dist/BlogsSectionLarge.js +87 -60
- package/dist/BlogsSectionSimple.cjs +8 -8
- package/dist/BlogsSectionSimple.js +98 -72
- package/dist/BlogsSectionSimpleCentered.cjs +10 -10
- package/dist/BlogsSectionSimpleCentered.js +76 -46
- package/dist/BlogsSectionWithFilters.cjs +11 -11
- package/dist/BlogsSectionWithFilters.js +102 -73
- package/dist/BrandHitsSection.cjs +12 -7
- package/dist/BrandHitsSection.js +10 -5
- package/dist/CalorieCalculatorSection.cjs +7 -8
- package/dist/CalorieCalculatorSection.js +31 -32
- package/dist/CustomLoanMapSection.cjs +2 -2
- package/dist/CustomLoanMapSection.js +13 -13
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +66 -57
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +8 -8
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +9 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +14 -6
- package/dist/FieldOfInterestsWithTagsCardsSection.js +12 -4
- package/dist/GeneralWithTagsCardsSection.cjs +18 -6
- package/dist/GeneralWithTagsCardsSection.js +44 -31
- package/dist/GiftCardsSection.cjs +9 -5
- package/dist/GiftCardsSection.js +21 -17
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +21 -1
- package/dist/MasonryGeneralCardsSection.js +20 -0
- package/dist/OverlayGeneralCardsSection.cjs +60 -104
- package/dist/OverlayGeneralCardsSection.js +138 -147
- package/dist/ProductsWithBannerSection.cjs +10 -10
- package/dist/ProductsWithBannerSection.js +85 -54
- package/dist/SalesCampaignsSection.cjs +17 -17
- package/dist/SalesCampaignsSection.js +81 -81
- package/dist/ShopCardsSection.cjs +19 -9
- package/dist/ShopCardsSection.js +54 -40
- package/dist/SimpleCategoriesSection.cjs +9 -9
- package/dist/SimpleCategoriesSection.js +89 -58
- package/dist/SimpleProductsSection.cjs +3 -3
- package/dist/SimpleProductsSection.js +86 -55
- package/dist/UrgentSaleProductsSection.cjs +5 -5
- package/dist/UrgentSaleProductsSection.js +41 -30
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-CHkb_Sj6.js → index-BT55M3t6.js} +16 -15
- package/dist/{index-Dj5wZCVs.cjs → index-DHJmdMN8.cjs} +6 -5
- package/dist/index-Dn5tPLgP.cjs +95 -0
- package/dist/{style-6tSw9aqK.js → style-CiePxaJ_.js} +6 -6
- package/dist/{style-BR3tIhP1.cjs → style-DN1qT8BE.cjs} +6 -6
- package/dist/suspense-product-card-detailed-BETmfKMT.js +189 -0
- package/dist/{index-vXmvgZ2Y.cjs → suspense-product-card-detailed-DtzOxHaH.cjs} +4 -4
- package/package.json +1 -1
- package/dist/index-D6g5ZqyJ.js +0 -159
- package/dist/index-Q_i-aqsF.cjs +0 -95
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
5
5
|
gap: 0.75rem;
|
|
6
|
-
|
|
7
|
-
&:hover {
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
6
|
+
cursor: pointer;
|
|
10
7
|
|
|
11
8
|
& .wrapper__card {
|
|
12
9
|
width: 100%;
|
|
@@ -57,13 +54,20 @@
|
|
|
57
54
|
line-height: 1.5rem;
|
|
58
55
|
width: 100%;
|
|
59
56
|
${s.truncateTextInRows(2)}
|
|
57
|
+
transition: var(--transition, all 0.2s ease);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
& .wrapper__text {
|
|
62
|
+
color: var(--primary-500, #f59e0b);
|
|
63
|
+
}
|
|
60
64
|
}
|
|
61
65
|
`,_=f.newStyled.div`
|
|
62
66
|
width: 100%;
|
|
63
67
|
height: 11.5rem;
|
|
64
68
|
border-radius: 0.75rem;
|
|
65
69
|
background: ${s.linearGradientAnimation("-90deg")};
|
|
66
|
-
`,h=d.forwardRef(({image:r,imageComponent:o,text:i,price:l,currency:p,onSelectCard:n=()=>{}},a)=>t.jsxs(w,{onClick:n,children:[t.jsxs("div",{className:"wrapper__card",children:[s.isDefined(o)?o:t.jsx("img",{src:r,className:"wrapper__image"}),t.jsx("div",{className:"wrapper__tag",children:`${s.formatPrice(l)} ${s.GetCurrencySymbol(p)}`})]}),t.jsx("div",{className:"wrapper__text",children:i})]})),c=d.forwardRef(({},r)=>t.jsx(_,{})),u=f.newStyled.div`
|
|
70
|
+
`,h=d.forwardRef(({image:r,imageComponent:o,text:i,price:l,currency:p,onSelectCard:n=()=>{}},a)=>t.jsxs(w,{ref:a,onClick:n,children:[t.jsxs("div",{className:"wrapper__card",children:[s.isDefined(o)?o:t.jsx("img",{src:r,className:"wrapper__image"}),t.jsx("div",{className:"wrapper__tag",children:`${s.formatPrice(l)} ${s.GetCurrencySymbol(p)}`})]}),t.jsx("div",{className:"wrapper__text",children:i})]})),c=d.forwardRef(({},r)=>t.jsx(_,{})),u=f.newStyled.div`
|
|
67
71
|
display: flex;
|
|
68
72
|
flex-direction: column;
|
|
69
73
|
align-items: center;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as _, m as h, l as w, n as x, G as c } from "./utils-DtRLzzTZ.js";
|
|
4
4
|
import { n as g } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
5
5
|
import { M as u } from "./consts-C1uHV4xc.js";
|
|
6
|
-
const
|
|
6
|
+
const v = g.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
align-items: flex-start;
|
|
10
10
|
gap: 0.75rem;
|
|
11
|
-
|
|
12
|
-
&:hover {
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
11
|
+
cursor: pointer;
|
|
15
12
|
|
|
16
13
|
& .wrapper__card {
|
|
17
14
|
width: 100%;
|
|
@@ -61,25 +58,32 @@ const y = g.div`
|
|
|
61
58
|
font-weight: 500;
|
|
62
59
|
line-height: 1.5rem;
|
|
63
60
|
width: 100%;
|
|
64
|
-
${
|
|
61
|
+
${_(2)}
|
|
62
|
+
transition: var(--transition, all 0.2s ease);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
& .wrapper__text {
|
|
67
|
+
color: var(--primary-500, #f59e0b);
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
|
-
`,
|
|
70
|
+
`, y = g.div`
|
|
67
71
|
width: 100%;
|
|
68
72
|
height: 11.5rem;
|
|
69
73
|
border-radius: 0.75rem;
|
|
70
|
-
background: ${
|
|
74
|
+
background: ${h("-90deg")};
|
|
71
75
|
`, b = f(
|
|
72
|
-
({ image: r, imageComponent:
|
|
73
|
-
} }, n) => /* @__PURE__ */ l(
|
|
76
|
+
({ image: r, imageComponent: a, text: t, price: s, currency: p, onSelectCard: o = () => {
|
|
77
|
+
} }, n) => /* @__PURE__ */ l(v, { ref: n, onClick: o, children: [
|
|
74
78
|
/* @__PURE__ */ l("div", { className: "wrapper__card", children: [
|
|
75
|
-
w(
|
|
79
|
+
w(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
76
80
|
/* @__PURE__ */ i("div", { className: "wrapper__tag", children: `${x(
|
|
77
81
|
s
|
|
78
82
|
)} ${c(p)}` })
|
|
79
83
|
] }),
|
|
80
84
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: t })
|
|
81
85
|
] })
|
|
82
|
-
), $ = f(({}, r) => /* @__PURE__ */ i(
|
|
86
|
+
), $ = f(({}, r) => /* @__PURE__ */ i(y, {})), N = g.div`
|
|
83
87
|
display: flex;
|
|
84
88
|
flex-direction: column;
|
|
85
89
|
align-items: center;
|
|
@@ -128,16 +132,16 @@ const y = g.div`
|
|
|
128
132
|
`, M = f(
|
|
129
133
|
({
|
|
130
134
|
title: r,
|
|
131
|
-
subtitle:
|
|
135
|
+
subtitle: a,
|
|
132
136
|
items: t,
|
|
133
137
|
limit: s = 4,
|
|
134
138
|
limitForMobile: p = 1,
|
|
135
|
-
onSelectCard:
|
|
139
|
+
onSelectCard: o = () => {
|
|
136
140
|
}
|
|
137
141
|
}) => {
|
|
138
142
|
var d;
|
|
139
143
|
const n = (e) => {
|
|
140
|
-
|
|
144
|
+
o == null || o(e == null ? void 0 : e.uuid);
|
|
141
145
|
};
|
|
142
146
|
return /* @__PURE__ */ l(
|
|
143
147
|
N,
|
|
@@ -147,7 +151,7 @@ const y = g.div`
|
|
|
147
151
|
children: [
|
|
148
152
|
/* @__PURE__ */ l("div", { className: "wrapper__heading", children: [
|
|
149
153
|
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
150
|
-
|
|
154
|
+
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
151
155
|
] }),
|
|
152
156
|
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, m) => /* @__PURE__ */ i(
|
|
153
157
|
b,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),f=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),o=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),d=require("./consts-CtNoHdBj.cjs"),f=require("./index-Dn5tPLgP.cjs"),v=o.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
padding: 1.25rem;
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as u, Fragment as v } from "react";
|
|
3
3
|
import { n as t } from "./emotion-styled.browser.esm-CjCaF13H.js";
|
|
4
4
|
import { M as d } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import { S as w } from "./index-
|
|
5
|
+
import { S as w } from "./index-5cttM4t7.js";
|
|
6
6
|
const S = t.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
@@ -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
|
-
|
|
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
|
|
2
|
-
display:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
display: grid;
|
|
3
|
+
grid-template-columns: ${n=>`repeat(${n.limit}, 1fr)`};
|
|
4
|
+
gap: 1.25rem;
|
|
5
|
+
justify-items: center;
|
|
6
|
+
|
|
7
|
+
@media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 1rem;
|
|
11
|
+
}
|
|
12
|
+
`,g=x.newStyled.div`
|
|
13
|
+
width: 100%;
|
|
14
|
+
overflow: hidden;
|
|
6
15
|
position: relative;
|
|
7
|
-
max-height: 28.75rem;
|
|
8
16
|
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
border-radius: 0.75rem;
|
|
18
|
+
background: ${n=>n==null?void 0:n.overlay};
|
|
19
|
+
cursor: pointer;
|
|
11
20
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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%;
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
&
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
& button {
|
|
35
|
+
width: fit-content;
|
|
36
|
+
color: var(--gray-950, #14161a);
|
|
28
37
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
38
|
+
&:hover {
|
|
39
|
+
color: var(--gray-700, #4e555f);
|
|
40
|
+
}
|
|
33
41
|
}
|
|
34
42
|
|
|
35
|
-
& .
|
|
43
|
+
& .content-text {
|
|
36
44
|
display: flex;
|
|
37
45
|
flex-direction: column;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
left: 0;
|
|
43
|
-
|
|
44
|
-
& .text__title {
|
|
45
|
-
color: var(--white);
|
|
46
|
-
font-size: 1rem;
|
|
47
|
-
font-style: normal;
|
|
48
|
-
font-weight: 500;
|
|
49
|
-
line-height: 1.5rem;
|
|
50
|
-
${o.truncateTextInRows(2)}
|
|
51
|
-
}
|
|
46
|
+
gap: 1rem;
|
|
47
|
+
color: var(--white, #fff);
|
|
48
|
+
font-size: 1rem;
|
|
49
|
+
font-weight: 500;
|
|
52
50
|
|
|
53
|
-
& .
|
|
54
|
-
color: var(--white);
|
|
55
|
-
font-size: 1.375rem;
|
|
56
|
-
font-style: normal;
|
|
51
|
+
& .content-text-title {
|
|
57
52
|
font-weight: 600;
|
|
58
|
-
|
|
59
|
-
${o.truncateTextInRows(2)}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
& .text__title--skeleton {
|
|
63
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
64
|
-
height: 1rem;
|
|
65
|
-
width: 9rem;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
& .text__description--skeleton {
|
|
69
|
-
background-color: ${o.linearGradientAnimation("-90deg")};
|
|
70
|
-
height: 1rem;
|
|
71
|
-
width: 12rem;
|
|
53
|
+
${d.truncateTextInRows(2)}
|
|
72
54
|
}
|
|
73
55
|
}
|
|
74
56
|
|
|
75
|
-
&
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
left: 1rem;
|
|
81
|
-
|
|
82
|
-
&:hover {
|
|
83
|
-
background: var(--primary-500, #f59e0b);
|
|
84
|
-
color: var(--white);
|
|
85
|
-
}
|
|
57
|
+
& img {
|
|
58
|
+
aspect-ratio: 1 / 1;
|
|
59
|
+
mix-blend-mode: multiply;
|
|
60
|
+
width: 100%;
|
|
61
|
+
object-fit: cover;
|
|
86
62
|
}
|
|
87
63
|
|
|
88
|
-
& .
|
|
89
|
-
background-color: ${
|
|
90
|
-
height:
|
|
91
|
-
width: 9rem;
|
|
92
|
-
position: absolute;
|
|
93
|
-
bottom: 1rem;
|
|
94
|
-
left: 1rem;
|
|
64
|
+
& .img-skeleton {
|
|
65
|
+
background-color: ${d.linearGradientAnimation("-90deg")};
|
|
66
|
+
min-height: 28.75rem;
|
|
95
67
|
}
|
|
96
68
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
& .wrapper__overlay {
|
|
101
|
-
&::after {
|
|
102
|
-
max-height: 100%;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
& .wrapper__text {
|
|
107
|
-
top: 1rem;
|
|
108
|
-
left: 1rem;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
& .text__action {
|
|
112
|
-
bottom: 2rem;
|
|
113
|
-
left: 2rem;
|
|
69
|
+
&:hover {
|
|
70
|
+
& .content-text {
|
|
71
|
+
color: var(--primary-500, #f59e0b);
|
|
114
72
|
}
|
|
115
73
|
}
|
|
116
|
-
`,u=c.forwardRef(({title:t,image:a,overlay:n,description:l,actionText:s,actionLink:e,handleClick:i=()=>{}},v)=>{const{theme:p}=_.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(m,{theme:p,overlay:n,onClick:i,children:[r.jsx("div",{className:"wrapper__overlay",children:r.jsx("img",{src:a,className:"wrapper__image"})}),r.jsxs("div",{className:"wrapper__text",children:[r.jsx("div",{className:"text__title",children:t}),r.jsx("div",{className:"text__description",children:l})]}),r.jsx(h,{text:s,onClick:i,className:"text__action"})]})})}),f=d.newStyled.div`
|
|
117
|
-
display: grid;
|
|
118
|
-
grid-template-columns: ${t=>`repeat(${t.limit}, 1fr)`};
|
|
119
|
-
gap: 1.25rem;
|
|
120
|
-
justify-items: center;
|
|
121
74
|
|
|
122
|
-
@media (max-width: ${
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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;
|
|
81
|
+
}
|
|
126
82
|
}
|
|
127
|
-
`,
|
|
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;
|