@lanaco/lnc-react-ui 4.0.152 → 4.0.154
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/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +1 -1
- package/dist/BlogSingleSection.cjs +1 -1
- package/dist/BlogSingleSection.js +2 -2
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +4 -4
- package/dist/BlogsSectionLarge.cjs +1 -1
- package/dist/BlogsSectionLarge.js +2 -2
- package/dist/BlogsSectionSimpleCentered.cjs +1 -1
- package/dist/BlogsSectionSimpleCentered.js +17 -17
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +10 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.js +63 -59
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +13 -7
- package/dist/MasonryGeneralCardsSection.js +29 -23
- package/dist/ProductsWithBannerSection.cjs +15 -8
- package/dist/ProductsWithBannerSection.js +33 -26
- package/dist/ShopCardsSection.cjs +48 -10
- package/dist/ShopCardsSection.js +104 -53
- package/dist/{index-CjQhwLEY.cjs → index-Cm0f72Po.cjs} +1 -1
- package/dist/{index-DXNlFyQ4.js → index-DGp7FHms.js} +1 -1
- package/dist/{skeleton-Bil8w1A7.js → skeleton-BWFqIToC.js} +48 -32
- package/dist/{skeleton-BQd32q08.cjs → skeleton-BdbB-LdT.cjs} +2 -2
- package/dist/{skeleton-B74purm7.js → skeleton-CQPwIEP0.js} +2 -2
- package/dist/{skeleton-CWPYgHom.cjs → skeleton-CanJ6Gr6.cjs} +18 -3
- package/dist/{suspense-large-DPZHjpEr.js → suspense-large-BMO7JH52.js} +1 -1
- package/dist/{suspense-large-BX4jlU4U.cjs → suspense-large-CFmcSzX-.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),m=require("react"),s=require("./utils-Dl9xPH4c.cjs"),w=require("./Icon.cjs"),j=require("./style-CyHewQxg.cjs"),N=require("./index-BueKsXT8.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),x=require("./suspense-large-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),m=require("react"),s=require("./utils-Dl9xPH4c.cjs"),w=require("./Icon.cjs"),j=require("./style-CyHewQxg.cjs"),N=require("./index-BueKsXT8.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),x=require("./suspense-large-CFmcSzX-.cjs"),S=require("./Button.cjs"),z=b.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
@@ -6,7 +6,7 @@ import { B as R } from "./style-DFPWLJBr.js";
|
|
|
6
6
|
import { P as L } from "./index-CF3HhgvN.js";
|
|
7
7
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { M as N } from "./consts-BuFChS64.js";
|
|
9
|
-
import { S as O } from "./suspense-large-
|
|
9
|
+
import { S as O } from "./suspense-large-BMO7JH52.js";
|
|
10
10
|
import T from "./Button.js";
|
|
11
11
|
const U = y.div`
|
|
12
12
|
display: flex;
|
package/dist/BlogListSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),y=require("./Icon.cjs"),j=require("./IconButton.cjs"),s=require("./utils-Dl9xPH4c.cjs"),B=require("./index-BueKsXT8.cjs"),R=require("./style-CyHewQxg.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./consts-goSZX3xP.cjs"),I=require("./suspense-large-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),y=require("./Icon.cjs"),j=require("./IconButton.cjs"),s=require("./utils-Dl9xPH4c.cjs"),B=require("./index-BueKsXT8.cjs"),R=require("./style-CyHewQxg.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./consts-goSZX3xP.cjs"),I=require("./suspense-large-CFmcSzX-.cjs"),$=v.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
package/dist/BlogListSection.js
CHANGED
|
@@ -7,7 +7,7 @@ import { P as O } from "./index-CF3HhgvN.js";
|
|
|
7
7
|
import { B as S } from "./style-DFPWLJBr.js";
|
|
8
8
|
import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
9
9
|
import { M as E } from "./consts-BuFChS64.js";
|
|
10
|
-
import { S as M } from "./suspense-large-
|
|
10
|
+
import { S as M } from "./suspense-large-BMO7JH52.js";
|
|
11
11
|
const U = B.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: 1rem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),u=require("react"),S=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("react"),S=require("./useDetectMobile-zkbzoOGV.cjs"),a=require("./skeleton-CanJ6Gr6.cjs"),b=require("./Button.cjs"),_=require("./style-BTTXJFJN.cjs"),k=({limit:o=4,isLoading:n=!1,keyPrefix:s})=>r.jsx(r.Fragment,{children:Array.from({length:o},(i,t)=>r.jsx(a.ShopCardSkeleton,{isLoading:n},`${s}-skeleton-shop-card-${t}`))}),q=({children:o,fallbackComponent:n=r.jsx(r.Fragment,{}),isLoading:s=!1,limit:i,keyPrefix:t})=>r.jsx(u.Suspense,{fallbackComponent:n,children:s===!0?r.jsx(k,{isLoading:s,limit:i,keyPrefix:t}):o}),C=u.memo(a.ShopCard),w=u.forwardRef(({buttonText:o,buttonLink:n,items:s,onButtonAction:i=()=>{},onSelectCard:t=()=>{},isLoading:l=!1,limit:d=4,getImage:p=()=>{},isHighlight:h=!1},m)=>{const g=S.useDetectMobile(),j=u.useMemo(()=>{var c;return(c=s==null?void 0:s.slice(0,4))==null?void 0:c.map((e,f)=>r.jsx(C,{uuid:e==null?void 0:e.uuid,title:e==null?void 0:e.name,subtitle:e==null?void 0:e.shortDescription,rating:e==null?void 0:e.rating,reviewCount:e==null?void 0:e.reviewCount,onSelectCard:()=>t==null?void 0:t(e==null?void 0:e.uuid),image:p(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,hideProducts:!0},`shop-card__${f+1}`))},[s]);return r.jsxs(_.Wrapper,{ref:m,className:h?"highlight":"",children:[r.jsx("div",{className:"wrapper__grid",children:r.jsx(q,{isLoading:l,limit:d,keyPrefix:"blog-section",children:j})}),r.jsx(b,{text:o,borderRadius:"curved",btnType:g?"basic":"outline",color:"neutral",className:"wrapper__action",onClick:()=>i(n)})]})});module.exports=w;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, Fragment as u, jsxs as S } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as b, memo as _, forwardRef as C, useMemo as k } from "react";
|
|
3
3
|
import { u as w } from "./useDetectMobile-Bkvj0VMa.js";
|
|
4
|
-
import { a as v, S as M } from "./skeleton-
|
|
4
|
+
import { a as v, S as M } from "./skeleton-BWFqIToC.js";
|
|
5
5
|
import y from "./Button.js";
|
|
6
6
|
import { W as N } from "./style-tw6KjI2J.js";
|
|
7
7
|
const $ = ({ limit: s = 4, isLoading: a = !1, keyPrefix: r }) => /* @__PURE__ */ o(u, { children: Array.from({ length: s }, (i, t) => /* @__PURE__ */ o(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),o=require("react"),g=require("./index-Cm0f72Po.cjs"),a=require("./skeleton-BdbB-LdT.cjs"),c=({limit:t=1,isLoading:l=!1,keyPrefix:n})=>r.jsx(r.Fragment,{children:Array.from({length:t},(e,s)=>r.jsx(a.BlogCardLargeSkeleton,{isLoading:l},`${n}-skeleton-product-card-${s}`))}),x=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:n=!1,limit:e,keyPrefix:s})=>r.jsx(o.Suspense,{fallbackComponent:l,children:n===!0?r.jsx(c,{isLoading:n,limit:e,keyPrefix:s}):t}),d=o.forwardRef((t,l)=>{const{isLoading:n,item:e,onSelectCard:s=()=>{},getImage:u=()=>{}}=t;return r.jsx(x,{isLoading:n,limit:1,keyPrefix:"explore-landing",children:r.jsx(g.BlogCardLarge,{ref:l,title:e==null?void 0:e.title,imageUrl:u(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,buttonText:e==null?void 0:e.buttonText,onCardClick:()=>s(e==null?void 0:e.titleSlug)})})});module.exports=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as s, forwardRef as u } from "react";
|
|
3
|
-
import { B as d } from "./index-
|
|
4
|
-
import { B as c } from "./skeleton-
|
|
3
|
+
import { B as d } from "./index-DGp7FHms.js";
|
|
4
|
+
import { B as c } from "./skeleton-CQPwIEP0.js";
|
|
5
5
|
const f = ({ limit: o = 1, isLoading: t = !1, keyPrefix: l }) => /* @__PURE__ */ e(a, { children: Array.from({ length: o }, (r, n) => /* @__PURE__ */ e(
|
|
6
6
|
c,
|
|
7
7
|
{
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
& img {
|
|
25
|
-
max-height: 11.
|
|
26
|
-
min-height: 11.
|
|
25
|
+
max-height: 11.25rem;
|
|
26
|
+
min-height: 11.25rem;
|
|
27
27
|
object-fit: cover;
|
|
28
28
|
width: 100%;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
& .skeleton-img {
|
|
32
32
|
width: 100%;
|
|
33
|
-
max-height: 11.
|
|
34
|
-
min-height: 11.
|
|
33
|
+
max-height: 11.25rem;
|
|
34
|
+
min-height: 11.25rem;
|
|
35
35
|
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -31,16 +31,16 @@ const E = y.div`
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
& img {
|
|
34
|
-
max-height: 11.
|
|
35
|
-
min-height: 11.
|
|
34
|
+
max-height: 11.25rem;
|
|
35
|
+
min-height: 11.25rem;
|
|
36
36
|
object-fit: cover;
|
|
37
37
|
width: 100%;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
& .skeleton-img {
|
|
41
41
|
width: 100%;
|
|
42
|
-
max-height: 11.
|
|
43
|
-
min-height: 11.
|
|
42
|
+
max-height: 11.25rem;
|
|
43
|
+
min-height: 11.25rem;
|
|
44
44
|
background-color: ${k("-90deg")};
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),b=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),s=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),b=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./index-Cm0f72Po.cjs"),C=require("./suspense-large-CFmcSzX-.cjs"),f=p.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${l=>`repeat(${l.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -3,8 +3,8 @@ import { memo as c, forwardRef as f, useMemo as S } from "react";
|
|
|
3
3
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as b } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as B } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { B as M } from "./index-
|
|
7
|
-
import { S as L } from "./suspense-large-
|
|
6
|
+
import { B as M } from "./index-DGp7FHms.js";
|
|
7
|
+
import { S as L } from "./suspense-large-BMO7JH52.js";
|
|
8
8
|
const h = C.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: ${(l) => `repeat(${l.limit}, minmax(0, 1fr))`};
|
|
@@ -33,7 +33,7 @@ const x = g.div`
|
|
|
33
33
|
|
|
34
34
|
& button {
|
|
35
35
|
width: fit-content;
|
|
36
|
-
margin-top:
|
|
36
|
+
margin-top: 1.5rem;
|
|
37
37
|
color: var(--gray-950, #14161a);
|
|
38
38
|
font-size: 0.875rem;
|
|
39
39
|
font-style: normal;
|
|
@@ -92,10 +92,10 @@ const x = g.div`
|
|
|
92
92
|
letter-spacing: 0.0156rem;
|
|
93
93
|
${y(3)}
|
|
94
94
|
}
|
|
95
|
-
`, h = p((i,
|
|
96
|
-
const { title: r, image:
|
|
97
|
-
return /* @__PURE__ */ c(w, { ref:
|
|
98
|
-
/* @__PURE__ */ t(S, { src:
|
|
95
|
+
`, h = p((i, n) => {
|
|
96
|
+
const { title: r, image: o, text: a, buttonText: m, onCardClick: l } = i;
|
|
97
|
+
return /* @__PURE__ */ c(w, { ref: n, className: "blog-card", onClick: l, children: [
|
|
98
|
+
/* @__PURE__ */ t(S, { src: o }),
|
|
99
99
|
/* @__PURE__ */ c(b, { children: [
|
|
100
100
|
/* @__PURE__ */ t("div", { className: "text-wr-title", children: r }),
|
|
101
101
|
/* @__PURE__ */ t("div", { className: "text-wr", children: a })
|
|
@@ -113,7 +113,7 @@ const x = g.div`
|
|
|
113
113
|
}
|
|
114
114
|
)
|
|
115
115
|
] });
|
|
116
|
-
}), $ = p((i,
|
|
116
|
+
}), $ = p((i, n) => {
|
|
117
117
|
const { onCardClick: r } = i;
|
|
118
118
|
return (
|
|
119
119
|
// <SimpleBlogCardSkeleton />
|
|
@@ -122,38 +122,38 @@ const x = g.div`
|
|
|
122
122
|
/* @__PURE__ */ t(b, { children: /* @__PURE__ */ t("div", { className: "skeleton-title" }) })
|
|
123
123
|
] })
|
|
124
124
|
);
|
|
125
|
-
}), T = ({ limit: i = 3, isLoading:
|
|
125
|
+
}), T = ({ limit: i = 3, isLoading: n = !1, keyPrefix: r }) => /* @__PURE__ */ t(s, { children: Array.from({ length: i }, (o, a) => /* @__PURE__ */ t(
|
|
126
126
|
$,
|
|
127
127
|
{
|
|
128
|
-
isLoading:
|
|
128
|
+
isLoading: n
|
|
129
129
|
},
|
|
130
130
|
`${r}-skeleton-product-card-${a}`
|
|
131
131
|
)) }), B = ({
|
|
132
132
|
children: i,
|
|
133
|
-
fallbackComponent:
|
|
133
|
+
fallbackComponent: n = /* @__PURE__ */ t(s, {}),
|
|
134
134
|
isLoading: r = !1,
|
|
135
|
-
limit:
|
|
135
|
+
limit: o,
|
|
136
136
|
keyPrefix: a
|
|
137
|
-
}) => /* @__PURE__ */ t(k, { fallbackComponent:
|
|
137
|
+
}) => /* @__PURE__ */ t(k, { fallbackComponent: n, children: r === !0 ? /* @__PURE__ */ t(
|
|
138
138
|
T,
|
|
139
139
|
{
|
|
140
140
|
isLoading: r,
|
|
141
|
-
limit:
|
|
141
|
+
limit: o,
|
|
142
142
|
keyPrefix: a
|
|
143
143
|
}
|
|
144
|
-
) : i }), _ = p((i,
|
|
144
|
+
) : i }), _ = p((i, n) => {
|
|
145
145
|
const {
|
|
146
146
|
items: r,
|
|
147
|
-
limit:
|
|
147
|
+
limit: o = 3,
|
|
148
148
|
onSelectCard: a = () => {
|
|
149
149
|
},
|
|
150
150
|
isLoading: m = !1
|
|
151
151
|
} = i, l = C();
|
|
152
|
-
return /* @__PURE__ */ t(x, { ref:
|
|
152
|
+
return /* @__PURE__ */ t(x, { ref: n, limit: o, children: /* @__PURE__ */ t(
|
|
153
153
|
B,
|
|
154
154
|
{
|
|
155
155
|
isLoading: m,
|
|
156
|
-
limit:
|
|
156
|
+
limit: o,
|
|
157
157
|
keyPrefix: "explore-landing",
|
|
158
158
|
children: /* @__PURE__ */ t(s, { children: l === !0 ? r == null ? void 0 : r.map((e, d) => /* @__PURE__ */ t(
|
|
159
159
|
h,
|
|
@@ -165,7 +165,7 @@ const x = g.div`
|
|
|
165
165
|
onCardClick: () => a(e)
|
|
166
166
|
},
|
|
167
167
|
d
|
|
168
|
-
)) : r == null ? void 0 : r.slice(0,
|
|
168
|
+
)) : r == null ? void 0 : r.slice(0, o).map((e, d) => /* @__PURE__ */ t(
|
|
169
169
|
h,
|
|
170
170
|
{
|
|
171
171
|
title: e == null ? void 0 : e.title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),c=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-Dl9xPH4c.cjs"),g=require("./consts-goSZX3xP.cjs"),b=require("./Icon.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),k=m.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
width: 100%;
|
|
16
16
|
aspect-ratio: 1 / 1;
|
|
17
17
|
object-fit: cover;
|
|
18
|
-
height:
|
|
18
|
+
height: 100%;
|
|
19
|
+
max-height: 10.375rem;
|
|
19
20
|
border-radius: 0.75rem 0.75rem 0 0;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -49,12 +50,12 @@
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
cursor: pointer;
|
|
52
|
-
|
|
53
|
+
`,$=m.styled.div`
|
|
53
54
|
width: 100%;
|
|
54
55
|
height: 11.625rem;
|
|
55
56
|
border-radius: 0.75rem;
|
|
56
57
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
57
|
-
`,I=
|
|
58
|
+
`,I=m.styled.div`
|
|
58
59
|
display: flex;
|
|
59
60
|
padding: 0 0.75rem 0 0.75rem;
|
|
60
61
|
align-items: center;
|
|
@@ -94,7 +95,7 @@
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
&.active {
|
|
97
|
-
background: var(--yellow-600, #d97706);
|
|
98
|
+
background: ${t=>(t==null?void 0:t.activeColor)||"var(--yellow-600, #d97706)"};
|
|
98
99
|
|
|
99
100
|
& .wrapper__icon {
|
|
100
101
|
color: var(--white, #fff);
|
|
@@ -108,12 +109,12 @@
|
|
|
108
109
|
@media (max-width: ${g.MOBILE_SIZE_PX+"px"}) {
|
|
109
110
|
min-width: fit-content;
|
|
110
111
|
}
|
|
111
|
-
`,N=
|
|
112
|
+
`,N=m.styled.div`
|
|
112
113
|
width: 7rem;
|
|
113
114
|
height: 3rem;
|
|
114
115
|
border-radius: 999px;
|
|
115
116
|
background: ${l.linearGradientAnimation("-90deg")};
|
|
116
|
-
|
|
117
|
+
`,C=c.forwardRef(({},t)=>r.jsx(N,{})),W=c.forwardRef(({name:t,isActive:n,activeColor:i,icon:a,onSelectCard:d=()=>{}},p)=>r.jsxs(I,{ref:p,className:n?"active":"",activeColor:i,onClick:d,children:[l.isDefinedNotEmptyString(a)&&r.jsx(b,{icon:a,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:t})]})),R=c.forwardRef(({image:t,imageComponent:n,name:i,description:a,onSelectCard:d=()=>{}},p)=>{const{theme:f}=j.useTheme();return r.jsxs(k,{ref:p,theme:f,onClick:d,children:[l.isDefined(n)?n:r.jsx("img",{src:t,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),F=c.forwardRef(({},t)=>r.jsx($,{})),T=m.styled.div`
|
|
117
118
|
display: flex;
|
|
118
119
|
flex-direction: column;
|
|
119
120
|
align-items: center;
|
|
@@ -154,7 +155,7 @@
|
|
|
154
155
|
|
|
155
156
|
& .wrapper__cards {
|
|
156
157
|
display: grid;
|
|
157
|
-
grid-template-columns: ${
|
|
158
|
+
grid-template-columns: ${t=>`repeat(${t==null?void 0:t.limitCards}, minmax(0, 1fr))`};
|
|
158
159
|
justify-content: center;
|
|
159
160
|
align-items: center;
|
|
160
161
|
gap: 1.5rem;
|
|
@@ -188,4 +189,4 @@
|
|
|
188
189
|
gap: 1rem;
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
|
-
`,
|
|
192
|
+
`,q=c.forwardRef(({title:t,subtitle:n,tags:i=[],limitTags:a=7,limitTagsForMobile:d=7,limit:p=3,limitForMobile:f=2,items:s=[],selectedTag:u,activeColor:v,onSelectTag:h=()=>{},onSelectCard:_=()=>{}},y)=>{var w,x;return r.jsxs(T,{ref:y,limitTags:a,limitTagsForMobile:d,limitCards:p,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),n&&r.jsx("div",{className:"wrapper__subtitle",children:n})]}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.length)>0?i==null?void 0:i.map((e,o)=>r.jsx(W,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.title,isActive:(e==null?void 0:e.code)===u,activeColor:v,onSelectCard:()=>h==null?void 0:h(e)},`field-of-interests-with-tags-card-tag__${o+1}`)):(w=Array.from("123"))==null?void 0:w.map((e,o)=>r.jsx(C,{},`field-of-interests-with-tags-card-tag-skeleton__${o+1}`))}),r.jsx("div",{className:"wrapper__cards",children:s&&(s==null?void 0:s.length)>0?s==null?void 0:s.map((e,o)=>r.jsx(R,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.title,description:e==null?void 0:e.description,onSelectCard:()=>_==null?void 0:_(e)},`field-of-interests-with-tags-card__${o+1}`)):(x=Array.from("123"))==null?void 0:x.map((e,o)=>r.jsx(F,{},`field-of-interests-with-tags-card-skeleton__${o+1}`))})]})});module.exports=q;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
import { p as x, o as u, k
|
|
1
|
+
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { p as x, o as u, k as $, l as N } from "./utils-BdsZgOUE.js";
|
|
5
5
|
import { M as v } from "./consts-BuFChS64.js";
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
6
|
+
import C from "./Icon.js";
|
|
7
|
+
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
const W = c.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -22,7 +22,8 @@ const I = d.div`
|
|
|
22
22
|
width: 100%;
|
|
23
23
|
aspect-ratio: 1 / 1;
|
|
24
24
|
object-fit: cover;
|
|
25
|
-
height:
|
|
25
|
+
height: 100%;
|
|
26
|
+
max-height: 10.375rem;
|
|
26
27
|
border-radius: 0.75rem 0.75rem 0 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -56,12 +57,12 @@ const I = d.div`
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
cursor: pointer;
|
|
59
|
-
`,
|
|
60
|
+
`, j = c.div`
|
|
60
61
|
width: 100%;
|
|
61
62
|
height: 11.625rem;
|
|
62
63
|
border-radius: 0.75rem;
|
|
63
64
|
background: ${u("-90deg")};
|
|
64
|
-
`,
|
|
65
|
+
`, F = c.div`
|
|
65
66
|
display: flex;
|
|
66
67
|
padding: 0 0.75rem 0 0.75rem;
|
|
67
68
|
align-items: center;
|
|
@@ -101,7 +102,7 @@ const I = d.div`
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&.active {
|
|
104
|
-
background: var(--yellow-600, #d97706);
|
|
105
|
+
background: ${(r) => (r == null ? void 0 : r.activeColor) || "var(--yellow-600, #d97706)"};
|
|
105
106
|
|
|
106
107
|
& .wrapper__icon {
|
|
107
108
|
color: var(--white, #fff);
|
|
@@ -115,38 +116,39 @@ const I = d.div`
|
|
|
115
116
|
@media (max-width: ${v + "px"}) {
|
|
116
117
|
min-width: fit-content;
|
|
117
118
|
}
|
|
118
|
-
`,
|
|
119
|
+
`, T = c.div`
|
|
119
120
|
width: 7rem;
|
|
120
121
|
height: 3rem;
|
|
121
122
|
border-radius: 999px;
|
|
122
123
|
background: ${u("-90deg")};
|
|
123
|
-
`,
|
|
124
|
-
({ name:
|
|
125
|
-
} },
|
|
126
|
-
|
|
124
|
+
`, z = d(({}, r) => /* @__PURE__ */ i(T, {})), O = d(
|
|
125
|
+
({ name: r, isActive: a, activeColor: t, icon: n, onSelectCard: s = () => {
|
|
126
|
+
} }, p) => /* @__PURE__ */ m(
|
|
127
|
+
F,
|
|
127
128
|
{
|
|
128
|
-
ref:
|
|
129
|
+
ref: p,
|
|
129
130
|
className: a ? "active" : "",
|
|
130
|
-
|
|
131
|
+
activeColor: t,
|
|
132
|
+
onClick: s,
|
|
131
133
|
children: [
|
|
132
|
-
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
+
$(n) && /* @__PURE__ */ i(C, { icon: n, className: "wrapper__icon" }),
|
|
135
|
+
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
134
136
|
]
|
|
135
137
|
}
|
|
136
138
|
)
|
|
137
|
-
),
|
|
138
|
-
({ image:
|
|
139
|
-
} },
|
|
140
|
-
const { theme: f } =
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
N(a) ? a : /* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
), A = d(
|
|
140
|
+
({ image: r, imageComponent: a, name: t, description: n, onSelectCard: s = () => {
|
|
141
|
+
} }, p) => {
|
|
142
|
+
const { theme: f } = I();
|
|
143
|
+
return /* @__PURE__ */ m(W, { ref: p, theme: f, onClick: s, children: [
|
|
144
|
+
N(a) ? a : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
145
|
+
/* @__PURE__ */ m("div", { className: "wrapper__content", children: [
|
|
146
|
+
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
147
|
+
n && /* @__PURE__ */ i("div", { className: "wrapper__description", children: n })
|
|
146
148
|
] })
|
|
147
149
|
] });
|
|
148
150
|
}
|
|
149
|
-
),
|
|
151
|
+
), E = d(({}, r) => /* @__PURE__ */ i(j, {})), M = c.div`
|
|
150
152
|
display: flex;
|
|
151
153
|
flex-direction: column;
|
|
152
154
|
align-items: center;
|
|
@@ -187,7 +189,7 @@ const I = d.div`
|
|
|
187
189
|
|
|
188
190
|
& .wrapper__cards {
|
|
189
191
|
display: grid;
|
|
190
|
-
grid-template-columns: ${(
|
|
192
|
+
grid-template-columns: ${(r) => `repeat(${r == null ? void 0 : r.limitCards}, minmax(0, 1fr))`};
|
|
191
193
|
justify-content: center;
|
|
192
194
|
align-items: center;
|
|
193
195
|
gap: 1.5rem;
|
|
@@ -221,52 +223,54 @@ const I = d.div`
|
|
|
221
223
|
gap: 1rem;
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
|
-
`,
|
|
226
|
+
`, X = d(
|
|
225
227
|
({
|
|
226
|
-
title:
|
|
228
|
+
title: r,
|
|
227
229
|
subtitle: a,
|
|
228
|
-
tags:
|
|
229
|
-
limitTags:
|
|
230
|
+
tags: t = [],
|
|
231
|
+
limitTags: n = 7,
|
|
230
232
|
limitTagsForMobile: s = 7,
|
|
231
|
-
limit:
|
|
233
|
+
limit: p = 3,
|
|
232
234
|
limitForMobile: f = 2,
|
|
233
|
-
items:
|
|
235
|
+
items: o = [],
|
|
234
236
|
selectedTag: y,
|
|
237
|
+
activeColor: b,
|
|
235
238
|
onSelectTag: h = () => {
|
|
236
239
|
},
|
|
237
240
|
onSelectCard: _ = () => {
|
|
238
241
|
}
|
|
239
|
-
},
|
|
242
|
+
}, k) => {
|
|
240
243
|
var w, g;
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
-
|
|
244
|
+
return /* @__PURE__ */ m(
|
|
245
|
+
M,
|
|
243
246
|
{
|
|
244
|
-
ref:
|
|
245
|
-
limitTags:
|
|
247
|
+
ref: k,
|
|
248
|
+
limitTags: n,
|
|
246
249
|
limitTagsForMobile: s,
|
|
247
|
-
limitCards:
|
|
250
|
+
limitCards: p,
|
|
248
251
|
limitCardsForMobile: f,
|
|
249
252
|
children: [
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
|
|
252
|
-
a && /* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ m("div", { className: "wrapper__heading", children: [
|
|
254
|
+
r && /* @__PURE__ */ i("div", { className: "wrapper__title", children: r }),
|
|
255
|
+
a && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: a })
|
|
253
256
|
] }),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
|
|
257
|
+
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((e, l) => /* @__PURE__ */ i(
|
|
258
|
+
O,
|
|
256
259
|
{
|
|
257
260
|
icon: e == null ? void 0 : e.icon,
|
|
258
261
|
name: e == null ? void 0 : e.title,
|
|
259
262
|
isActive: (e == null ? void 0 : e.code) === y,
|
|
263
|
+
activeColor: b,
|
|
260
264
|
onSelectCard: () => h == null ? void 0 : h(e)
|
|
261
265
|
},
|
|
262
|
-
`field-of-interests-with-tags-card-tag__${
|
|
263
|
-
)) : (w = Array.from("123")) == null ? void 0 : w.map((e,
|
|
264
|
-
|
|
266
|
+
`field-of-interests-with-tags-card-tag__${l + 1}`
|
|
267
|
+
)) : (w = Array.from("123")) == null ? void 0 : w.map((e, l) => /* @__PURE__ */ i(
|
|
268
|
+
z,
|
|
265
269
|
{},
|
|
266
|
-
`field-of-interests-with-tags-card-tag-skeleton__${
|
|
270
|
+
`field-of-interests-with-tags-card-tag-skeleton__${l + 1}`
|
|
267
271
|
)) }),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
|
|
272
|
+
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: o && (o == null ? void 0 : o.length) > 0 ? o == null ? void 0 : o.map((e, l) => /* @__PURE__ */ i(
|
|
273
|
+
A,
|
|
270
274
|
{
|
|
271
275
|
image: e == null ? void 0 : e.image,
|
|
272
276
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
@@ -274,11 +278,11 @@ const I = d.div`
|
|
|
274
278
|
description: e == null ? void 0 : e.description,
|
|
275
279
|
onSelectCard: () => _ == null ? void 0 : _(e)
|
|
276
280
|
},
|
|
277
|
-
`field-of-interests-with-tags-card__${
|
|
278
|
-
)) : (g = Array.from("123")) == null ? void 0 : g.map((e,
|
|
279
|
-
|
|
281
|
+
`field-of-interests-with-tags-card__${l + 1}`
|
|
282
|
+
)) : (g = Array.from("123")) == null ? void 0 : g.map((e, l) => /* @__PURE__ */ i(
|
|
283
|
+
E,
|
|
280
284
|
{},
|
|
281
|
-
`field-of-interests-with-tags-card-skeleton__${
|
|
285
|
+
`field-of-interests-with-tags-card-skeleton__${l + 1}`
|
|
282
286
|
)) })
|
|
283
287
|
]
|
|
284
288
|
}
|
|
@@ -286,5 +290,5 @@ const I = d.div`
|
|
|
286
290
|
}
|
|
287
291
|
);
|
|
288
292
|
export {
|
|
289
|
-
|
|
293
|
+
X as default
|
|
290
294
|
};
|
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"),f=require("./Button.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-Dl9xPH4c.cjs"),m=require("./consts-goSZX3xP.cjs"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=d.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -104,8 +104,15 @@
|
|
|
104
104
|
width: 9rem;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
|
|
109
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
110
|
+
& .wrapper__image {
|
|
111
|
+
height: 100%;
|
|
112
|
+
max-height: 14.5rem;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
`,w=g.forwardRef(({title:t,imageUrl:e,description:n,buttonText:a,onSelectCard:l=()=>{},className:o,position:s,tag:c,backgroundColor:p},x)=>{const h=u.useTheme();return r.jsx(r.Fragment,{children:r.jsxs(_,{ref:x,theme:h,className:o,position:s,backgroundColor:p,onClick:l,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(n)&&r.jsx("div",{className:"text__description",children:n}),i.isDefinedNotEmptyString(a)&&r.jsx(f,{text:a,className:"text__action"})]})]})})}),b=d.styled.div`
|
|
109
116
|
display: flex;
|
|
110
117
|
flex-direction: column;
|
|
111
118
|
gap: 1.5rem;
|
|
@@ -129,7 +136,7 @@
|
|
|
129
136
|
}
|
|
130
137
|
}
|
|
131
138
|
|
|
132
|
-
@media (max-width: ${
|
|
139
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
133
140
|
gap: 1.25rem;
|
|
134
141
|
|
|
135
142
|
& .regular-title {
|
|
@@ -150,13 +157,12 @@
|
|
|
150
157
|
height: 30rem;
|
|
151
158
|
max-height: 30rem;
|
|
152
159
|
|
|
153
|
-
@media (max-width: ${
|
|
160
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
154
161
|
display: flex;
|
|
155
162
|
flex-direction: column;
|
|
156
163
|
gap: 1rem;
|
|
157
164
|
width: 100%;
|
|
158
165
|
height: 100%;
|
|
159
166
|
max-height: 100%;
|
|
160
|
-
padding: 0 1rem;
|
|
161
167
|
}
|
|
162
|
-
`,v=
|
|
168
|
+
`,v=g.forwardRef(({title:t,items:e,limit:n=3,onSelectCard:a=()=>{}},l)=>r.jsxs(b,{ref:l,children:[r.jsx("div",{className:"regular-title",children:r.jsx("div",{className:"regular-title-text",children:r.jsx("span",{children:t})})}),r.jsx(y,{limit:n,children:e&&(e==null?void 0:e.map((o,s)=>r.jsx(w,{...o,onSelectCard:()=>a(o)},`landing-page-masonry-general-card__${s+1}`)))})]}));module.exports=v;
|