@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.
- 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 +10 -10
- package/dist/BlogsSectionDetailed.js +32 -33
- package/dist/BlogsSectionLarge.cjs +2 -2
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +20 -20
- package/dist/BlogsSectionSimpleCentered.cjs +6 -6
- package/dist/BlogsSectionSimpleCentered.js +9 -9
- package/dist/BlogsSectionWithFilters.cjs +10 -10
- package/dist/BlogsSectionWithFilters.js +65 -64
- 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 +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- 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 +52 -96
- package/dist/OverlayGeneralCardsSection.js +116 -165
- package/dist/ProductsWithBannerSection.cjs +5 -5
- package/dist/ProductsWithBannerSection.js +26 -26
- 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 +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/SimpleProductsSection.cjs +1 -1
- package/dist/SimpleProductsSection.js +1 -1
- package/dist/{index-CT6_7UFb.js → index-5cttM4t7.js} +119 -124
- package/dist/{index-BN8qgFbe.js → index-BT55M3t6.js} +8 -7
- package/dist/{index-_Db92CJE.cjs → index-DHJmdMN8.cjs} +5 -4
- 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/package.json +1 -1
- 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
|
-
|
|
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"),
|
|
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: ${
|
|
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: ${
|
|
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
|
-
`,
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
21
|
-
|
|
17
|
+
border-radius: 0.75rem;
|
|
18
|
+
background: ${n=>n==null?void 0:n.overlay};
|
|
19
|
+
cursor: pointer;
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
&
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
& button {
|
|
35
|
+
width: fit-content;
|
|
36
|
+
color: var(--gray-950, #14161a);
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
background-color: ${i.linearGradientAnimation("-90deg")};
|
|
38
|
+
&:hover {
|
|
39
|
+
color: var(--gray-700, #4e555f);
|
|
40
|
+
}
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
& .
|
|
43
|
+
& .content-text {
|
|
47
44
|
display: flex;
|
|
48
45
|
flex-direction: column;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
& .
|
|
65
|
-
color: var(--white);
|
|
66
|
-
font-size: 1.375rem;
|
|
67
|
-
font-style: normal;
|
|
51
|
+
& .content-text-title {
|
|
68
52
|
font-weight: 600;
|
|
69
|
-
|
|
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
|
-
&
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
& .
|
|
100
|
-
background-color: ${
|
|
101
|
-
height:
|
|
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
|
-
|
|
109
|
-
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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=
|
|
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 {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { n as
|
|
4
|
-
import { M as
|
|
5
|
-
import { R as y } from "./style-
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import b from "./
|
|
9
|
-
const
|
|
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: ${
|
|
15
|
+
@media (max-width: ${h + "px"}) {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: 1rem;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
29
|
-
|
|
25
|
+
border-radius: 0.75rem;
|
|
26
|
+
background: ${(t) => t == null ? void 0 : t.overlay};
|
|
27
|
+
cursor: pointer;
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
&
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
& button {
|
|
43
|
+
width: fit-content;
|
|
44
|
+
color: var(--gray-950, #14161a);
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
background-color: ${d("-90deg")};
|
|
46
|
+
&:hover {
|
|
47
|
+
color: var(--gray-700, #4e555f);
|
|
48
|
+
}
|
|
52
49
|
}
|
|
53
50
|
|
|
54
|
-
& .
|
|
51
|
+
& .content-text {
|
|
55
52
|
display: flex;
|
|
56
53
|
flex-direction: column;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
& .
|
|
73
|
-
color: var(--white);
|
|
74
|
-
font-size: 1.375rem;
|
|
75
|
-
font-style: normal;
|
|
59
|
+
& .content-text-title {
|
|
76
60
|
font-weight: 600;
|
|
77
|
-
|
|
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
|
-
&
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
& .
|
|
108
|
-
background-color: ${
|
|
109
|
-
height:
|
|
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
|
-
|
|
117
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
`,
|
|
136
|
-
|
|
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:
|
|
94
|
+
isLoading: n
|
|
149
95
|
},
|
|
150
96
|
`${o}-skeleton-product-card-${l}`
|
|
151
|
-
)) }),
|
|
97
|
+
)) }), _ = ({
|
|
152
98
|
children: t,
|
|
153
|
-
fallbackComponent:
|
|
99
|
+
fallbackComponent: n = /* @__PURE__ */ r(d, {}),
|
|
154
100
|
isLoading: o = !1,
|
|
155
|
-
limit:
|
|
101
|
+
limit: a,
|
|
156
102
|
keyPrefix: l
|
|
157
|
-
}) => /* @__PURE__ */
|
|
103
|
+
}) => /* @__PURE__ */ r(f, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
|
|
158
104
|
S,
|
|
159
105
|
{
|
|
160
106
|
isLoading: o,
|
|
161
|
-
limit:
|
|
107
|
+
limit: a,
|
|
162
108
|
keyPrefix: l
|
|
163
109
|
}
|
|
164
|
-
) : t }),
|
|
165
|
-
({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
),
|
|
193
|
-
({ title: t, items:
|
|
194
|
-
}, isLoading: l = !1 },
|
|
195
|
-
const s =
|
|
196
|
-
|
|
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:
|
|
199
|
-
image:
|
|
200
|
-
description:
|
|
201
|
-
actionText:
|
|
202
|
-
overlay:
|
|
203
|
-
handleClick: () =>
|
|
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__${
|
|
206
|
-
))) }), [a]);
|
|
207
|
-
return /* @__PURE__ */
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
|
|
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
|
-
|
|
173
|
+
A as default
|
|
223
174
|
};
|