@lanaco/lnc-react-ui 4.0.54 → 4.0.55
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/BannerSectionSimple.cjs +5 -9
- package/dist/BannerSectionSimple.js +27 -31
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +8 -7
- package/dist/MasonryGeneralCardsSection.js +46 -44
- package/dist/OverlayGeneralCardsSection.cjs +9 -9
- package/dist/OverlayGeneralCardsSection.js +58 -49
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),j=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./consts-CtNoHdBj.cjs"),y=require("./Button.cjs"),M=require("./useDetectMobile-D6d5LpdL.cjs"),v=i.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>e.bgcolor||"transparent"};
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
width: fit-content;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
15
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
16
|
-
|
|
17
|
-
`}
|
|
18
|
-
|
|
19
14
|
& img {
|
|
20
15
|
object-fit: cover;
|
|
21
16
|
max-width: ${e=>e.imgW||"22.5rem"};
|
|
@@ -34,6 +29,7 @@
|
|
|
34
29
|
flex-direction: column;
|
|
35
30
|
min-height: unset;
|
|
36
31
|
max-height: unset;
|
|
32
|
+
border: none;
|
|
37
33
|
|
|
38
34
|
& button {
|
|
39
35
|
width: fit-content;
|
|
@@ -46,7 +42,7 @@
|
|
|
46
42
|
min-height: ${e=>e.imgHMob||"12.1rem"};
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
|
-
`,
|
|
45
|
+
`,H=i.styled.div`
|
|
50
46
|
padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
|
|
51
47
|
display: flex;
|
|
52
48
|
gap: 2rem;
|
|
@@ -59,7 +55,7 @@
|
|
|
59
55
|
padding: 0;
|
|
60
56
|
flex-direction: column;
|
|
61
57
|
}
|
|
62
|
-
`,
|
|
58
|
+
`,B=i.styled.div`
|
|
63
59
|
display: flex;
|
|
64
60
|
flex-direction: column;
|
|
65
61
|
gap: 0.25rem;
|
|
@@ -78,4 +74,4 @@
|
|
|
78
74
|
@media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
|
|
79
75
|
flex-direction: column;
|
|
80
76
|
}
|
|
81
|
-
`,_=
|
|
77
|
+
`,_=j.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:h,buttonLink:c,onButtonAction:g=()=>{},imageUrl:o,imagePosition:n="right",hideImageForMobile:s=!1,sectionHeight:u="12.65625rem",imageWidth:x,imageHeightMobile:b,smallPadding:p=!1,isHorizontalContent:f=!1,backgroundColor:w,hasBorder:$=!1}=e,a=M.useDetectMobile();return t.jsxs(v,{ref:m,bgcolor:w,height:u,imgW:x,imgHMob:b,hasBorder:$,children:[n!=="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o}),t.jsxs(H,{isHorizontalContent:f,smallPadding:p,children:[t.jsxs(B,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx(y,{size:"medium",color:"neutral",type:"button",onClick:()=>g(c),children:h})]}),n==="right"&&!(s===!0&&a===!0)&&t.jsx("img",{src:o})]})});module.exports=_;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as H } from "react";
|
|
3
3
|
import { s as r } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as o } from "./consts-C1uHV4xc.js";
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
5
|
+
import M from "./Button.js";
|
|
6
|
+
import { u as y } from "./useDetectMobile-BC6EGaBc.js";
|
|
7
|
+
const C = r.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
border-radius: 0.75rem;
|
|
10
10
|
background-color: ${(e) => e.bgcolor || "transparent"};
|
|
@@ -17,11 +17,6 @@ const B = r.div`
|
|
|
17
17
|
width: fit-content;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
${(e) => e.hasBorder === !0 && `border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
|
|
21
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
|
|
22
|
-
|
|
23
|
-
`}
|
|
24
|
-
|
|
25
20
|
& img {
|
|
26
21
|
object-fit: cover;
|
|
27
22
|
max-width: ${(e) => e.imgW || "22.5rem"};
|
|
@@ -40,6 +35,7 @@ const B = r.div`
|
|
|
40
35
|
flex-direction: column;
|
|
41
36
|
min-height: unset;
|
|
42
37
|
max-height: unset;
|
|
38
|
+
border: none;
|
|
43
39
|
|
|
44
40
|
& button {
|
|
45
41
|
width: fit-content;
|
|
@@ -52,7 +48,7 @@ const B = r.div`
|
|
|
52
48
|
min-height: ${(e) => e.imgHMob || "12.1rem"};
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
|
-
`,
|
|
51
|
+
`, z = r.div`
|
|
56
52
|
padding: ${(e) => e.smallPadding === !0 ? "2rem" : "4rem 5rem"};
|
|
57
53
|
display: flex;
|
|
58
54
|
gap: 2rem;
|
|
@@ -65,7 +61,7 @@ const B = r.div`
|
|
|
65
61
|
padding: 0;
|
|
66
62
|
flex-direction: column;
|
|
67
63
|
}
|
|
68
|
-
`,
|
|
64
|
+
`, B = r.div`
|
|
69
65
|
display: flex;
|
|
70
66
|
flex-direction: column;
|
|
71
67
|
gap: 0.25rem;
|
|
@@ -84,54 +80,54 @@ const B = r.div`
|
|
|
84
80
|
@media (max-width: ${o + "px"}) {
|
|
85
81
|
flex-direction: column;
|
|
86
82
|
}
|
|
87
|
-
`, E =
|
|
83
|
+
`, E = H((e, l) => {
|
|
88
84
|
const {
|
|
89
85
|
title: h,
|
|
90
|
-
subtitle:
|
|
91
|
-
buttonText:
|
|
86
|
+
subtitle: s,
|
|
87
|
+
buttonText: g,
|
|
92
88
|
buttonLink: c,
|
|
93
|
-
onButtonAction:
|
|
89
|
+
onButtonAction: u = () => {
|
|
94
90
|
},
|
|
95
91
|
imageUrl: n,
|
|
96
92
|
imagePosition: a = "right",
|
|
97
93
|
hideImageForMobile: m = !1,
|
|
98
|
-
sectionHeight:
|
|
99
|
-
imageWidth:
|
|
100
|
-
imageHeightMobile:
|
|
101
|
-
smallPadding:
|
|
94
|
+
sectionHeight: x = "12.65625rem",
|
|
95
|
+
imageWidth: p,
|
|
96
|
+
imageHeightMobile: f,
|
|
97
|
+
smallPadding: b = !1,
|
|
102
98
|
isHorizontalContent: $ = !1,
|
|
103
99
|
backgroundColor: w,
|
|
104
100
|
hasBorder: v = !1
|
|
105
|
-
} = e, d =
|
|
101
|
+
} = e, d = y();
|
|
106
102
|
return /* @__PURE__ */ t(
|
|
107
|
-
|
|
103
|
+
C,
|
|
108
104
|
{
|
|
109
105
|
ref: l,
|
|
110
106
|
bgcolor: w,
|
|
111
|
-
height:
|
|
112
|
-
imgW:
|
|
113
|
-
imgHMob:
|
|
107
|
+
height: x,
|
|
108
|
+
imgW: p,
|
|
109
|
+
imgHMob: f,
|
|
114
110
|
hasBorder: v,
|
|
115
111
|
children: [
|
|
116
112
|
a !== "right" && !(m === !0 && d === !0) && /* @__PURE__ */ i("img", { src: n }),
|
|
117
113
|
/* @__PURE__ */ t(
|
|
118
|
-
|
|
114
|
+
z,
|
|
119
115
|
{
|
|
120
116
|
isHorizontalContent: $,
|
|
121
|
-
smallPadding:
|
|
117
|
+
smallPadding: b,
|
|
122
118
|
children: [
|
|
123
|
-
/* @__PURE__ */ t(
|
|
119
|
+
/* @__PURE__ */ t(B, { children: [
|
|
124
120
|
/* @__PURE__ */ i("div", { className: "header-title", children: h }),
|
|
125
|
-
/* @__PURE__ */ i("div", { className: "header-subitle", children:
|
|
121
|
+
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
126
122
|
] }),
|
|
127
123
|
/* @__PURE__ */ i(
|
|
128
|
-
|
|
124
|
+
M,
|
|
129
125
|
{
|
|
130
126
|
size: "medium",
|
|
131
127
|
color: "neutral",
|
|
132
128
|
type: "button",
|
|
133
|
-
onClick: () =>
|
|
134
|
-
children:
|
|
129
|
+
onClick: () => u(c),
|
|
130
|
+
children: g
|
|
135
131
|
}
|
|
136
132
|
)
|
|
137
133
|
]
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),g=require("react"),h=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-NZLCh-J5.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),p=require("./consts-CtNoHdBj.cjs"),u=c.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
117
|
+
`,_=g.forwardRef(({title:t,image:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,selectAction:d,tag:m},y)=>{const x=f.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(u,{theme:x,className:o,onClick:l,position:s,children:[r.jsx("img",{src:e,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__text",children:[m&&r.jsx("div",{className:"text__tag",children:m}),r.jsx("div",{className:"text__title",children:t}),i.isDefinedNotEmptyString(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(a)&&r.jsx(h,{text:a,onClick:()=>l(d),className:"text__action"})]})]})})}),w=c.styled.div`
|
|
118
118
|
display: flex;
|
|
119
119
|
flex-direction: column;
|
|
120
120
|
gap: 1.5rem;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@media (max-width: ${
|
|
141
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
142
142
|
gap: 1.25rem;
|
|
143
143
|
|
|
144
144
|
& .regular-title {
|
|
@@ -149,16 +149,17 @@
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
152
|
+
`,b=c.styled.div`
|
|
153
153
|
display: grid;
|
|
154
|
-
grid-template-columns: repeat(12, 1fr);
|
|
154
|
+
grid-template-columns: ${t=>"repeat(12, minmax(0, 1fr))"};
|
|
155
|
+
|
|
155
156
|
grid-template-rows: 15rem 15rem;
|
|
156
157
|
grid-column-gap: 1.25rem;
|
|
157
158
|
grid-row-gap: 1.25rem;
|
|
158
159
|
height: 30rem;
|
|
159
160
|
max-height: 30rem;
|
|
160
161
|
|
|
161
|
-
@media (max-width: ${
|
|
162
|
+
@media (max-width: ${p.MOBILE_SIZE_PX+"px"}) {
|
|
162
163
|
display: flex;
|
|
163
164
|
flex-direction: column;
|
|
164
165
|
gap: 1rem;
|
|
@@ -167,4 +168,4 @@
|
|
|
167
168
|
max-height: 100%;
|
|
168
169
|
padding: 0 1rem;
|
|
169
170
|
}
|
|
170
|
-
`,
|
|
171
|
+
`,v=g.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(w,{children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(b,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(_,{...o,onSelectCard:d=>a(d,o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=v;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { m as n, t as
|
|
6
|
-
import { u as
|
|
7
|
-
import { M as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as t, Fragment as _, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import w from "./Button.js";
|
|
4
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
+
import { m as n, t as p, k as f } from "./utils-DtRLzzTZ.js";
|
|
6
|
+
import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { M as x } from "./consts-C1uHV4xc.js";
|
|
8
|
+
const v = c.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -70,7 +70,7 @@ const b = s.div`
|
|
|
70
70
|
font-style: normal;
|
|
71
71
|
font-weight: 500;
|
|
72
72
|
line-height: 1.5rem;
|
|
73
|
-
${
|
|
73
|
+
${p(2)}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
& .text__tag {
|
|
@@ -92,7 +92,7 @@ const b = s.div`
|
|
|
92
92
|
font-style: normal;
|
|
93
93
|
font-weight: 400;
|
|
94
94
|
line-height: 1.25rem;
|
|
95
|
-
${
|
|
95
|
+
${p(2)}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
& .text__action {
|
|
@@ -133,37 +133,38 @@ const b = s.div`
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`, y = h(
|
|
137
137
|
({
|
|
138
138
|
title: r,
|
|
139
139
|
image: e,
|
|
140
|
-
description:
|
|
141
|
-
|
|
140
|
+
description: i,
|
|
141
|
+
buttonText: a,
|
|
142
142
|
onSelectCard: l = () => {
|
|
143
143
|
},
|
|
144
|
-
className:
|
|
145
|
-
position:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
className: o,
|
|
145
|
+
position: m,
|
|
146
|
+
selectAction: d,
|
|
147
|
+
tag: g
|
|
148
|
+
}, N) => {
|
|
149
|
+
const u = b();
|
|
150
|
+
return /* @__PURE__ */ t(_, { children: /* @__PURE__ */ s(
|
|
151
|
+
v,
|
|
151
152
|
{
|
|
152
|
-
theme:
|
|
153
|
-
className:
|
|
153
|
+
theme: u,
|
|
154
|
+
className: o,
|
|
154
155
|
onClick: l,
|
|
155
|
-
position:
|
|
156
|
+
position: m,
|
|
156
157
|
children: [
|
|
157
158
|
/* @__PURE__ */ t("img", { src: e, className: "wrapper__image" }),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
|
|
159
|
+
/* @__PURE__ */ s("div", { className: "wrapper__text", children: [
|
|
160
|
+
g && /* @__PURE__ */ t("div", { className: "text__tag", children: g }),
|
|
160
161
|
/* @__PURE__ */ t("div", { className: "text__title", children: r }),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
f(i) && /* @__PURE__ */ t("div", { className: "text__description", children: i }),
|
|
163
|
+
f(a) && /* @__PURE__ */ t(
|
|
164
|
+
w,
|
|
164
165
|
{
|
|
165
|
-
text:
|
|
166
|
-
onClick: l,
|
|
166
|
+
text: a,
|
|
167
|
+
onClick: () => l(d),
|
|
167
168
|
className: "text__action"
|
|
168
169
|
}
|
|
169
170
|
)
|
|
@@ -172,7 +173,7 @@ const b = s.div`
|
|
|
172
173
|
}
|
|
173
174
|
) });
|
|
174
175
|
}
|
|
175
|
-
),
|
|
176
|
+
), k = c.div`
|
|
176
177
|
display: flex;
|
|
177
178
|
flex-direction: column;
|
|
178
179
|
gap: 1.5rem;
|
|
@@ -196,7 +197,7 @@ const b = s.div`
|
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
@media (max-width: ${
|
|
200
|
+
@media (max-width: ${x + "px"}) {
|
|
200
201
|
gap: 1.25rem;
|
|
201
202
|
|
|
202
203
|
& .regular-title {
|
|
@@ -207,16 +208,17 @@ const b = s.div`
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
|
-
`,
|
|
211
|
+
`, $ = c.div`
|
|
211
212
|
display: grid;
|
|
212
|
-
grid-template-columns: repeat(12, 1fr);
|
|
213
|
+
grid-template-columns: ${(r) => "repeat(12, minmax(0, 1fr))"};
|
|
214
|
+
|
|
213
215
|
grid-template-rows: 15rem 15rem;
|
|
214
216
|
grid-column-gap: 1.25rem;
|
|
215
217
|
grid-row-gap: 1.25rem;
|
|
216
218
|
height: 30rem;
|
|
217
219
|
max-height: 30rem;
|
|
218
220
|
|
|
219
|
-
@media (max-width: ${
|
|
221
|
+
@media (max-width: ${x + "px"}) {
|
|
220
222
|
display: flex;
|
|
221
223
|
flex-direction: column;
|
|
222
224
|
gap: 1rem;
|
|
@@ -225,20 +227,20 @@ const b = s.div`
|
|
|
225
227
|
max-height: 100%;
|
|
226
228
|
padding: 0 1rem;
|
|
227
229
|
}
|
|
228
|
-
`,
|
|
229
|
-
({ title: r, items: e, limit:
|
|
230
|
-
} }, l) => /* @__PURE__ */
|
|
230
|
+
`, I = h(
|
|
231
|
+
({ title: r, items: e, limit: i = 3, onSelectCard: a = () => {
|
|
232
|
+
} }, l) => /* @__PURE__ */ s(k, { children: [
|
|
231
233
|
/* @__PURE__ */ t("div", { className: "regular-title", children: /* @__PURE__ */ t("div", { className: "regular-title-text", children: /* @__PURE__ */ t("span", { children: r }) }) }),
|
|
232
|
-
/* @__PURE__ */ t(
|
|
233
|
-
|
|
234
|
+
/* @__PURE__ */ t($, { limit: i, children: e && (e == null ? void 0 : e.map((o, m) => /* @__PURE__ */ t(
|
|
235
|
+
y,
|
|
234
236
|
{
|
|
235
|
-
...
|
|
236
|
-
onSelectCard: () =>
|
|
237
|
+
...o,
|
|
238
|
+
onSelectCard: (d) => a(d, o)
|
|
237
239
|
},
|
|
238
|
-
`landing-page-masonry-general-card__${
|
|
240
|
+
`landing-page-masonry-general-card__${m + 1}`
|
|
239
241
|
))) })
|
|
240
242
|
] })
|
|
241
243
|
);
|
|
242
244
|
export {
|
|
243
|
-
|
|
245
|
+
I as default
|
|
244
246
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("react"),u=require("./emotion-styled.browser.esm-BtEseadx.cjs"),g=require("./consts-CtNoHdBj.cjs"),p=require("./style-C571ywKV.cjs"),x=require("./utils-NZLCh-J5.cjs"),f=require("./Button.cjs"),m=require("./ThemeProvider.cjs"),v=u.styled.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: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
gap: 1rem;
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,h=u.styled.div`
|
|
13
13
|
width: 100%;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
position: relative;
|
|
16
16
|
|
|
17
17
|
border-radius: 0.75rem;
|
|
18
|
-
background: ${
|
|
18
|
+
background: ${n=>n==null?void 0:n.overlay};
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
21
|
& .content-wrapper {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
& .content-text-title {
|
|
52
52
|
font-weight: 600;
|
|
53
|
-
${
|
|
53
|
+
${x.truncateTextInRows(2)}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
& .img-skeleton {
|
|
65
|
-
background-color: ${
|
|
65
|
+
background-color: ${x.linearGradientAnimation("-90deg")};
|
|
66
66
|
min-height: 28.75rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
@media (max-width: ${
|
|
75
|
+
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
76
76
|
& img,
|
|
77
77
|
.img.skeleton {
|
|
78
78
|
aspect-ratio: unset;
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
max-height: 28.75rem;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,j=i.forwardRef(({},n)=>e.jsx(h,{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},(s,a)=>e.jsx(j,{isLoading:t},`${o}-skeleton-product-card-${a}`))}),w=({children:n,fallbackComponent:t=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:s,keyPrefix:a})=>e.jsx(i.Suspense,{fallbackComponent:t,children:o===!0?e.jsx(y,{isLoading:o,limit:s,keyPrefix:a}):n}),k=i.forwardRef(({title:n,image:t,backgroundColor:o,description:s,buttonText:a,handleClick:l=()=>{},onButtonAction:c=()=>{}},r)=>{const{theme:d}=m.useTheme();return e.jsx(e.Fragment,{children:e.jsxs(h,{ref:r,theme:d,overlay:o,onClick:l,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:s})]}),x.isDefinedNotEmptyString(a)&&e.jsx(f,{text:a,onClick:c,className:"text__action",size:"medium",color:"gray"})]})]})})}),_=i.memo(k),$=i.forwardRef(({title:n,items:t,limit:o=2,onSelectCard:s=()=>{},isLoading:a=!1},l)=>{const c=i.useMemo(()=>e.jsx(e.Fragment,{children:t&&(t==null?void 0:t.map((r,d)=>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:()=>s(r==null?void 0:r.uuid)},`landing-page-overlay-general-card__${d+1}`)))}),[t,s]);return e.jsxs(p.RegulatTitleSectionWrapper,{ref:l,children:[e.jsx("div",{className:"regular-title center",children:e.jsx("div",{className:"regular-title-text",children:e.jsx("span",{children:n})})}),e.jsx(v,{limit:o,children:e.jsx(w,{isLoading:a,limit:o,keyPrefix:"explore-landing",children:c})})]})});module.exports=$;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { M as
|
|
1
|
+
import { jsx as r, Fragment as c, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, Suspense as u, memo as v, useMemo as x } from "react";
|
|
3
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as m } from "./consts-C1uHV4xc.js";
|
|
5
5
|
import { R as y } from "./style-CsMpu4iC.js";
|
|
6
|
-
import { t as w, m as k } from "./utils-DtRLzzTZ.js";
|
|
7
|
-
import
|
|
8
|
-
import { useTheme as
|
|
9
|
-
const
|
|
6
|
+
import { t as w, m as k, k as $ } from "./utils-DtRLzzTZ.js";
|
|
7
|
+
import b from "./Button.js";
|
|
8
|
+
import { useTheme as N } from "./ThemeProvider.js";
|
|
9
|
+
const C = h.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: ${m + "px"}) {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: 1rem;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`, f = h.div`
|
|
21
21
|
width: 100%;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
position: relative;
|
|
@@ -80,7 +80,7 @@ const N = g.div`
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
@media (max-width: ${
|
|
83
|
+
@media (max-width: ${m + "px"}) {
|
|
84
84
|
& img,
|
|
85
85
|
.img.skeleton {
|
|
86
86
|
aspect-ratio: unset;
|
|
@@ -88,48 +88,57 @@ const N = g.div`
|
|
|
88
88
|
max-height: 28.75rem;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`, P =
|
|
91
|
+
`, P = g(({}, t) => /* @__PURE__ */ r(f, { ref: t, children: /* @__PURE__ */ r("div", { className: "img-skeleton" }) })), S = ({ limit: t = 2, isLoading: n = !1, keyPrefix: o }) => /* @__PURE__ */ r(c, { children: Array.from({ length: t }, (l, a) => /* @__PURE__ */ r(
|
|
92
92
|
P,
|
|
93
93
|
{
|
|
94
94
|
isLoading: n
|
|
95
95
|
},
|
|
96
|
-
`${o}-skeleton-product-card-${
|
|
97
|
-
)) }),
|
|
96
|
+
`${o}-skeleton-product-card-${a}`
|
|
97
|
+
)) }), _ = ({
|
|
98
98
|
children: t,
|
|
99
|
-
fallbackComponent: n = /* @__PURE__ */ r(
|
|
99
|
+
fallbackComponent: n = /* @__PURE__ */ r(c, {}),
|
|
100
100
|
isLoading: o = !1,
|
|
101
|
-
limit:
|
|
102
|
-
keyPrefix:
|
|
103
|
-
}) => /* @__PURE__ */ r(
|
|
104
|
-
|
|
101
|
+
limit: l,
|
|
102
|
+
keyPrefix: a
|
|
103
|
+
}) => /* @__PURE__ */ r(u, { fallbackComponent: n, children: o === !0 ? /* @__PURE__ */ r(
|
|
104
|
+
S,
|
|
105
105
|
{
|
|
106
106
|
isLoading: o,
|
|
107
|
-
limit:
|
|
108
|
-
keyPrefix:
|
|
107
|
+
limit: l,
|
|
108
|
+
keyPrefix: a
|
|
109
109
|
}
|
|
110
|
-
) : t }),
|
|
111
|
-
({
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
) : t }), j = g(
|
|
111
|
+
({
|
|
112
|
+
title: t,
|
|
113
|
+
image: n,
|
|
114
|
+
backgroundColor: o,
|
|
115
|
+
description: l,
|
|
116
|
+
buttonText: a,
|
|
117
|
+
handleClick: d = () => {
|
|
118
|
+
},
|
|
119
|
+
onButtonAction: s = () => {
|
|
120
|
+
}
|
|
121
|
+
}, e) => {
|
|
122
|
+
const { theme: p } = N();
|
|
123
|
+
return /* @__PURE__ */ r(c, { children: /* @__PURE__ */ i(
|
|
124
|
+
f,
|
|
116
125
|
{
|
|
117
|
-
ref:
|
|
118
|
-
theme:
|
|
126
|
+
ref: e,
|
|
127
|
+
theme: p,
|
|
119
128
|
overlay: o,
|
|
120
|
-
onClick:
|
|
129
|
+
onClick: d,
|
|
121
130
|
children: [
|
|
122
131
|
/* @__PURE__ */ r("img", { src: n }),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ i("div", { className: "content-wrapper", children: [
|
|
133
|
+
/* @__PURE__ */ i("div", { className: "content-text", children: [
|
|
125
134
|
/* @__PURE__ */ r("div", { children: t }),
|
|
126
|
-
/* @__PURE__ */ r("div", { className: "content-text-title", children:
|
|
135
|
+
/* @__PURE__ */ r("div", { className: "content-text-title", children: l })
|
|
127
136
|
] }),
|
|
128
|
-
/* @__PURE__ */ r(
|
|
129
|
-
|
|
137
|
+
$(a) && /* @__PURE__ */ r(
|
|
138
|
+
b,
|
|
130
139
|
{
|
|
131
|
-
text:
|
|
132
|
-
onClick:
|
|
140
|
+
text: a,
|
|
141
|
+
onClick: s,
|
|
133
142
|
className: "text__action",
|
|
134
143
|
size: "medium",
|
|
135
144
|
color: "gray"
|
|
@@ -140,27 +149,27 @@ const N = g.div`
|
|
|
140
149
|
}
|
|
141
150
|
) });
|
|
142
151
|
}
|
|
143
|
-
),
|
|
144
|
-
({ title: t, items: n, limit: o = 2, onSelectCard:
|
|
145
|
-
}, isLoading:
|
|
146
|
-
const s =
|
|
147
|
-
|
|
152
|
+
), G = v(j), A = g(
|
|
153
|
+
({ title: t, items: n, limit: o = 2, onSelectCard: l = () => {
|
|
154
|
+
}, isLoading: a = !1 }, d) => {
|
|
155
|
+
const s = x(() => /* @__PURE__ */ r(c, { children: n && (n == null ? void 0 : n.map((e, p) => /* @__PURE__ */ r(
|
|
156
|
+
G,
|
|
148
157
|
{
|
|
149
158
|
title: e == null ? void 0 : e.title,
|
|
150
159
|
image: e == null ? void 0 : e.image,
|
|
151
160
|
description: e == null ? void 0 : e.description,
|
|
152
161
|
actionText: e == null ? void 0 : e.actionText,
|
|
153
162
|
overlay: e == null ? void 0 : e.overlay,
|
|
154
|
-
handleClick: () =>
|
|
163
|
+
handleClick: () => l(e == null ? void 0 : e.uuid)
|
|
155
164
|
},
|
|
156
|
-
`landing-page-overlay-general-card__${
|
|
157
|
-
))) }), [n,
|
|
158
|
-
return /* @__PURE__ */
|
|
165
|
+
`landing-page-overlay-general-card__${p + 1}`
|
|
166
|
+
))) }), [n, l]);
|
|
167
|
+
return /* @__PURE__ */ i(y, { ref: d, children: [
|
|
159
168
|
/* @__PURE__ */ r("div", { className: "regular-title center", children: /* @__PURE__ */ r("div", { className: "regular-title-text", children: /* @__PURE__ */ r("span", { children: t }) }) }),
|
|
160
|
-
/* @__PURE__ */ r(
|
|
161
|
-
|
|
169
|
+
/* @__PURE__ */ r(C, { limit: o, children: /* @__PURE__ */ r(
|
|
170
|
+
_,
|
|
162
171
|
{
|
|
163
|
-
isLoading:
|
|
172
|
+
isLoading: a,
|
|
164
173
|
limit: o,
|
|
165
174
|
keyPrefix: "explore-landing",
|
|
166
175
|
children: s
|