@lanaco/lnc-react-ui 4.0.113 → 4.0.114
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/BannerSectionWithListImage.cjs +2 -2
- package/dist/BannerSectionWithListImage.js +9 -9
- package/dist/BlogCardsSponsoredSection.cjs +4 -4
- package/dist/BlogCardsSponsoredSection.js +1 -0
- package/dist/BlogsSectionDetailed.cjs +5 -5
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +14 -14
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +5 -5
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +8 -8
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +24 -23
- package/dist/GiftCardsSection.cjs +2 -2
- package/dist/GiftCardsSection.js +9 -9
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +6 -6
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +3 -2
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +4 -4
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +5 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),a=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("react"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./consts-goSZX3xP.cjs"),j=require("./Button.cjs"),y=n.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
border-radius: 0.75rem;
|
|
4
4
|
background-color: ${e=>(e==null?void 0:e.bgColor)||"transparent"};
|
|
@@ -79,4 +79,4 @@
|
|
|
79
79
|
|
|
80
80
|
@media (max-width: ${o.MOBILE_SIZE_PX+"px"}) {
|
|
81
81
|
}
|
|
82
|
-
`,B=a.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:c,list:s,imageUrl:x,imageHeight:g,imageWidth:h,imageHeightMobile:
|
|
82
|
+
`,B=a.forwardRef((e,m)=>{const{title:d,subtitle:l,buttonText:c,list:s,imageUrl:x,imageHeight:g,imageWidth:h,imageHeightMobile:u,hasBorder:p=!0,backgroundColor:b="transparent",onButtonAction:f=()=>{},buttonLink:w}=e;return i.jsxs(y,{ref:m,imgH:g,imgW:h,imgHMob:u,hasBorder:p,bgColor:b,children:[i.jsxs(v,{children:[i.jsxs($,{children:[i.jsx("div",{className:"header-title",children:d}),i.jsx("div",{className:"header-subitle",children:l})]}),i.jsx(_,{children:s==null?void 0:s.map((t,r)=>i.jsx(a.Fragment,{children:i.jsxs("div",{className:"list-item",children:[i.jsx("i",{className:"mng mng-lnc-checkmark--filled"}),i.jsx("span",{children:t})]})},r))}),i.jsx(j,{size:"medium",color:"neutral",type:"button",btnType:"outline",onClick:t=>{var r;(r=t==null?void 0:t.target)==null||r.blur(),f(w)},children:c})]}),i.jsx("img",{src:x})]})});module.exports=B;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as v, Fragment as
|
|
2
|
+
import { forwardRef as v, Fragment as $ } from "react";
|
|
3
3
|
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as m } from "./consts-BuFChS64.js";
|
|
5
|
-
import
|
|
5
|
+
import y from "./Button.js";
|
|
6
6
|
const H = n.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
border-radius: 0.75rem;
|
|
@@ -95,8 +95,8 @@ const H = n.div`
|
|
|
95
95
|
imageWidth: x,
|
|
96
96
|
imageHeightMobile: p,
|
|
97
97
|
hasBorder: f = !0,
|
|
98
|
-
backgroundColor:
|
|
99
|
-
onButtonAction:
|
|
98
|
+
backgroundColor: u = "transparent",
|
|
99
|
+
onButtonAction: b = () => {
|
|
100
100
|
},
|
|
101
101
|
buttonLink: w
|
|
102
102
|
} = e;
|
|
@@ -108,27 +108,27 @@ const H = n.div`
|
|
|
108
108
|
imgW: x,
|
|
109
109
|
imgHMob: p,
|
|
110
110
|
hasBorder: f,
|
|
111
|
-
bgColor:
|
|
111
|
+
bgColor: u,
|
|
112
112
|
children: [
|
|
113
113
|
/* @__PURE__ */ o(W, { children: [
|
|
114
114
|
/* @__PURE__ */ o(k, { children: [
|
|
115
115
|
/* @__PURE__ */ i("div", { className: "header-title", children: l }),
|
|
116
116
|
/* @__PURE__ */ i("div", { className: "header-subitle", children: s })
|
|
117
117
|
] }),
|
|
118
|
-
/* @__PURE__ */ i(B, { children: a == null ? void 0 : a.map((t, r) => /* @__PURE__ */ i(
|
|
118
|
+
/* @__PURE__ */ i(B, { children: a == null ? void 0 : a.map((t, r) => /* @__PURE__ */ i($, { children: /* @__PURE__ */ o("div", { className: "list-item", children: [
|
|
119
119
|
/* @__PURE__ */ i("i", { className: "mng mng-lnc-checkmark--filled" }),
|
|
120
120
|
/* @__PURE__ */ i("span", { children: t })
|
|
121
121
|
] }) }, r)) }),
|
|
122
122
|
/* @__PURE__ */ i(
|
|
123
|
-
|
|
123
|
+
y,
|
|
124
124
|
{
|
|
125
125
|
size: "medium",
|
|
126
|
-
color: "
|
|
126
|
+
color: "neutral",
|
|
127
127
|
type: "button",
|
|
128
128
|
btnType: "outline",
|
|
129
129
|
onClick: (t) => {
|
|
130
130
|
var r;
|
|
131
|
-
(r = t == null ? void 0 : t.target) == null || r.blur(),
|
|
131
|
+
(r = t == null ? void 0 : t.target) == null || r.blur(), b(w);
|
|
132
132
|
},
|
|
133
133
|
children: c
|
|
134
134
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),p=require("react"),n=require("./utils-CZynEOC_.cjs"),w=require("./Icon.cjs"),N=require("./Chip.cjs"),z=require("./index-BvSNRLNa.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./consts-goSZX3xP.cjs"),I=require("./suspense-large-CtcwWswP.cjs"),R=require("./Button.cjs"),k=y.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: 1rem;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: 1.25rem;
|
|
6
6
|
border-radius: 1.25rem;
|
|
7
7
|
align-items: stretch;
|
|
8
|
-
border: ${
|
|
8
|
+
border: ${s=>s!=null&&s.isSponsored?"2px solid var(--yellow-500, #f59e0b)":"1px solid var(--neutral-9508, rgba(20, 22, 26, 0.08))"};
|
|
9
9
|
background: var(--white, #fff);
|
|
10
10
|
min-height: 10.5rem;
|
|
11
11
|
position: relative;
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
`,q=
|
|
129
|
+
`,q=p.forwardRef(({title:s,imageUrl:c,options:i,publishedAt:g,timeToReadText:_="{0} min read",timeToRead:f=0,numberOfLikes:l=0,numberOfComments:d=0,isSponsored:o=!1,onSelectCard:m=()=>{},onSelectOption:u=()=>{}},b)=>r.jsxs(k,{isSponsored:o,onClick:m,children:[o&&r.jsx("div",{className:"wrapper__sponsored",children:r.jsx(w,{icon:" mng-lnc-paw",sizeInUnits:"1.5rem"})}),r.jsx(z.ProductImageWrapper,{src:c,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[r.jsxs("div",{className:"wrapper__subcontent",children:[r.jsx("div",{className:"wrapper__title",children:s}),r.jsx("div",{className:"wrapper__tags",children:i&&(i==null?void 0:i.map((a,h)=>r.jsx(N,{label:a==null?void 0:a.name,color:a==null?void 0:a.color,className:"wrapper__tag",onClick:t=>{t==null||t.stopPropagation(),u(a==null?void 0:a.code)}},`blog-card-sponsored-option__${h+1}`)))})]}),r.jsxs("div",{className:"wrapper__info",children:[r.jsx("div",{className:"info__text",children:`${n.formatLocaleDateString(g)} • ${n.formatString(_,f)}`}),r.jsxs("div",{className:"info__text",children:[r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-thumbs-up",sizeInUnits:"1rem"}),n.getRoundedNumber(l)]}),r.jsxs("div",{children:[r.jsx(w,{icon:" mng-lnc-messages",sizeInUnits:"1rem"}),n.getRoundedNumber(d)]})]})]})]})]})),$=y.styled.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
flex-direction: column;
|
|
132
132
|
align-items: flex-start;
|
|
@@ -208,4 +208,4 @@
|
|
|
208
208
|
gap: 1rem;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
`,S=
|
|
211
|
+
`,S=p.memo(q),L=p.forwardRef(({title:s,subtitle:c,icon:i,buttonText:g,buttonLink:_,timeToReadText:f="{0} min read",items:l,onButtonAction:d=()=>{},onSelectCard:o=()=>{},onSelectOption:m=()=>{},isLoading:u=!1,getImage:b=()=>{}},a)=>{const h=p.useMemo(()=>{var t;return(t=l==null?void 0:l.slice(0,4))==null?void 0:t.map((e,v)=>r.jsx(S,{title:e==null?void 0:e.title,titleSlug:e==null?void 0:e.titleSlug,options:e==null?void 0:e.options,publishedAt:e==null?void 0:e.publishedAt,timeToReadText:f,timeToRead:e==null?void 0:e.timeToRead,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>o==null?void 0:o(e),onSelectOption:x=>m==null?void 0:m(x),imageUrl:b(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},`blog-card-sponsored__${v+1}`))},[l]);return r.jsxs($,{children:[r.jsxs("div",{className:"wrapper__heading",children:[r.jsxs("div",{className:"wrapper__title",children:[s&&r.jsxs("div",{className:"title__text",children:[n.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:s})]}),d&&r.jsx(R,{text:g,borderRadius:"curved",btnType:"tinted",className:"title__action",color:"neutral",onClick:t=>{var e;(e=t==null?void 0:t.target)==null||e.blur(),d==null||d(_)}})]}),c&&r.jsx("div",{className:"wrapper__subtitle",children:c})]}),r.jsx("div",{className:"wrapper__cards",children:r.jsx(I.SuspenseBlogLarge,{isLoading:u,limit:4,keyPrefix:"blog-section",children:h})})]})});module.exports=L;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),R=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./utils-CZynEOC_.cjs"),v=require("./style-JqDQj4jh.cjs"),T=require("./Button.cjs"),O=require("./index-BvSNRLNa.cjs"),A=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${i=>`repeat(${i.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
5
5
|
|
|
6
|
-
@media (max-width: ${
|
|
6
|
+
@media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
|
|
7
7
|
grid-template-columns: repeat(1, 1fr);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,y=w.styled.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
width: 100%;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
padding: 0 1rem 1rem 1rem;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@media (max-width: ${
|
|
47
|
+
@media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
|
|
48
48
|
max-height: 100%;
|
|
49
49
|
min-height: 100%;
|
|
50
50
|
& .tags-wr {
|
|
@@ -110,4 +110,4 @@
|
|
|
110
110
|
align-items: center;
|
|
111
111
|
gap: 1rem;
|
|
112
112
|
}
|
|
113
|
-
`,$=u.forwardRef((i,l)=>{const{title:s,imageUrl:m,text:o,numberOfLikes:n,numberOfComments:f,timeToRead:p,publishedAt:c,tags:d,onCardClick:j,timeToReadText:h="{0} min read"}=i;return t.jsxs(
|
|
113
|
+
`,$=u.forwardRef((i,l)=>{const{title:s,imageUrl:m,text:o,numberOfLikes:n,numberOfComments:f,timeToRead:p,publishedAt:c,tags:d,onCardClick:j,timeToReadText:h="{0} min read"}=i;return t.jsxs(y,{ref:l,className:"blog-card",onClick:j,children:[t.jsx(O.ProductImageWrapper,{src:m}),t.jsxs(S,{children:[t.jsxs("div",{className:"info-wr",children:[t.jsxs("div",{className:"info-wr-1",children:[t.jsxs("span",{children:[r.formatLocaleDateString(c)," "]}),t.jsx("span",{className:"small-dot",children:"●"}),p&&h?`${r.formatString(h,p)}`:"N/A"]}),t.jsxs("div",{className:"info-wr-2",children:[t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-thumbs-up--filled"}),t.jsx("span",{children:r.getRoundedNumber(n)})]}),t.jsxs("span",{className:"info-wr-1",children:[t.jsx("i",{className:"mng mng-lnc-messages-filled"}),t.jsx("span",{children:r.getRoundedNumber(f)})]})]})]}),t.jsx("div",{className:"text-wr-title",children:s}),t.jsx("div",{className:"text-wr",children:o})]}),t.jsx("div",{className:"tags-wr",children:d==null?void 0:d.map((a,b)=>t.jsx(v.BlogTag,{color:a==null?void 0:a.color,children:a==null?void 0:a.name},b))})]})}),D=u.forwardRef(({},i)=>t.jsxs(y,{className:"blog-card",children:[t.jsx("div",{className:"skeleton-img"}),t.jsxs(S,{children:[t.jsx("div",{className:"info-wr"}),t.jsx("div",{className:"skeleton-title"}),t.jsx("div",{className:"info-wr-skeleton"})]})]})),q=({limit:i=3,isLoading:l=!1,keyPrefix:s})=>t.jsx(t.Fragment,{children:Array.from({length:i},(m,o)=>t.jsx(D,{isLoading:l},`${s}-skeleton-product-card-${o}`))}),B=({children:i,fallbackComponent:l=t.jsx(t.Fragment,{}),isLoading:s=!1,limit:m,keyPrefix:o})=>t.jsx(u.Suspense,{fallbackComponent:l,children:s===!0?t.jsx(q,{isLoading:s,limit:m,keyPrefix:o}):i}),N=u.memo($),L=u.forwardRef((i,l)=>{const{icon:s,title:m,onButtonAction:o,items:n,buttonText:f,timeToReadText:p,limit:c=3,onSelectCard:d=()=>{},isLoading:j=!1,buttonLink:h,getImage:a=()=>{}}=i,b=R.useDetectMobile(),C=u.useMemo(()=>t.jsx(t.Fragment,{children:b===!0?n==null?void 0:n.map((e,g)=>t.jsx(N,{title:e==null?void 0:e.title,text:e==null?void 0:e.description,titleSlug:e==null?void 0:e.titleSlug,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:p,tags:e==null?void 0:e.tags,onCardClick:()=>d(e==null?void 0:e.titleSlug),imageUrl:a(e==null?void 0:e.imageUrl,e==null?void 0:e.uuid)||null},g)):n==null?void 0:n.slice(0,c).map((e,g)=>t.jsx(N,{title:e==null?void 0:e.title,imageUrl:a(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,tags:e==null?void 0:e.tags,numberOfLikes:e==null?void 0:e.numberOfLikes,numberOfComments:e==null?void 0:e.numberOfComments,publishedAt:e==null?void 0:e.publishedAt,timeToRead:e==null?void 0:e.timeToRead,timeToReadText:p,onCardClick:()=>d(e==null?void 0:e.titleSlug)},g))}),[n,b,c,d]);return t.jsxs(v.RegulatTitleSectionWrapper,{ref:l,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[r.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:m})]}),r.isDefinedNotEmptyString(f)&&r.isDefinedNotEmptyString(h)&&t.jsx(T,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var g;(g=e==null?void 0:e.target)==null||g.blur(),o(h)},borderRadius:"curved",className:"button-link",children:f})]}),t.jsx(A,{limit:c,children:t.jsx(B,{isLoading:j,limit:c,keyPrefix:"explore-landing",children:C})})]})});module.exports=L;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
@media (max-width: ${S.MOBILE_SIZE_PX+"px"}) {
|
|
47
47
|
}
|
|
48
|
-
`,
|
|
48
|
+
`,w=p.styled.div`
|
|
49
49
|
padding: 1rem 1rem 0 1rem;
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
@@ -65,4 +65,4 @@
|
|
|
65
65
|
color: var(--gray-700, #4e555f);
|
|
66
66
|
${u.truncateTextInRows(3)}
|
|
67
67
|
}
|
|
68
|
-
`,$=c.forwardRef((t,l)=>{const{title:i,imageUrl:n,text:o,onCardClick:d,readMoreText:m="Read more"}=t;return r.jsxs(b,{ref:l,className:"blog-card",onClick:d,children:[r.jsx(M.ProductImageWrapper,{src:n}),r.jsxs(
|
|
68
|
+
`,$=c.forwardRef((t,l)=>{const{title:i,imageUrl:n,text:o,onCardClick:d,readMoreText:m="Read more"}=t;return r.jsxs(b,{ref:l,className:"blog-card",onClick:d,children:[r.jsx(M.ProductImageWrapper,{src:n}),r.jsxs(w,{children:[r.jsx("div",{className:"text-wr-title",children:i}),r.jsx("div",{className:"text-wr",children:o})]}),r.jsx(R,{className:"action",color:"gray",onClick:d,children:m})]})}),I=c.forwardRef(({},t)=>r.jsxs(b,{className:"product-card",children:[r.jsx("div",{className:"skeleton-img"}),r.jsx("div",{className:"card-title"}),r.jsx(w,{})]})),P=({limit:t=3,isLoading:l=!1,keyPrefix:i})=>r.jsx(r.Fragment,{children:Array.from({length:t},(n,o)=>r.jsx(I,{isLoading:l},`${i}-skeleton-product-card-${o}`))}),T=({children:t,fallbackComponent:l=r.jsx(r.Fragment,{}),isLoading:i=!1,limit:n,keyPrefix:o})=>r.jsx(c.Suspense,{fallbackComponent:l,children:i===!0?r.jsx(P,{isLoading:i,limit:n,keyPrefix:o}):t}),j=c.memo($),_=c.forwardRef((t,l)=>{const{icon:i,title:n,onButtonAction:o=()=>{},onSelectCard:d=()=>{},buttonLink:m,items:s,buttonText:y,limit:g=3,isLoading:v=!1,getImage:h=()=>{},readMoreText:f="Read more"}=t,k=N.useDetectMobile(),C=c.useMemo(()=>r.jsx(r.Fragment,{children:k===!0?s==null?void 0:s.map((e,a)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(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,readMoreText:f,onCardClick:()=>d(e==null?void 0:e.titleSlug)},a)):s==null?void 0:s.slice(0,g).map((e,a)=>r.jsx(j,{title:e==null?void 0:e.title,imageUrl:h(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,readMoreText:f,onCardClick:()=>d(e==null?void 0:e.titleSlug)},a))}),[s]);return r.jsxs(q.RegulatTitleSectionWrapper,{ref:l,children:[r.jsxs("div",{className:"regular-title",children:[r.jsxs("div",{className:"regular-title-text",children:[u.isDefinedNotEmptyString(i)&&r.jsx("i",{className:i}),r.jsx("span",{children:n})]}),u.isDefinedNotEmptyString(m)&&r.jsx(x,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var a;(a=e==null?void 0:e.target)==null||a.blur(),o(m)},borderRadius:"curved",className:"button-link",children:y})]}),r.jsx(B,{limit:g,children:r.jsx(T,{isLoading:v,limit:g,keyPrefix:"explore-landing",children:C})})]})});module.exports=_;
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
color: var(--gray-700, #4e555f);
|
|
78
78
|
${c.truncateTextInRows(3)}
|
|
79
79
|
}
|
|
80
|
-
`,_=d.forwardRef((i,s)=>{const{title:o,imageUrl:a,text:r,buttonText:u,onCardClick:l}=i;return e.jsxs(k,{ref:s,className:"blog-card",onClick:l,children:[e.jsxs(v,{children:[e.jsx("div",{className:"text-wr-title",children:o}),e.jsx("div",{className:"text-wr",children:r}),e.jsx(W,{color:"gray",onClick:l,children:u})]}),e.jsx(A.ProductImageWrapper,{src:a})]})}),z=d.forwardRef(({},i)=>e.jsxs(k,{className:"blog-card",children:[e.jsxs(v,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),E=({limit:i=3,isLoading:s=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:i},(a,r)=>e.jsx(z,{isLoading:s},`${o}-skeleton-product-card-${r}`))}),F=({children:i,fallbackComponent:s=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:r})=>e.jsx(d.Suspense,{fallbackComponent:s,children:o===!0?e.jsx(E,{isLoading:o,limit:a,keyPrefix:r}):i}),f=d.memo(_),O=d.forwardRef((i,s)=>{const{icon:o,title:a,items:r,buttonText:u,limit:l=3,options:m,selectedOption:y=[],onButtonAction:S=()=>{},buttonLink:x,onSelectOption:b=()=>{},onSelectAll:N=()=>{},isLoading:C=!1,onSelectCard:g=()=>{},productsToolbarName:q="All",allButton:T=!1}=i,j=B.useDetectMobile(),$=d.useMemo(()=>{var n;return e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,h)=>e.jsx(f,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>g(t)},h)):(n=r==null?void 0:r.slice(0,l))==null?void 0:n.map((t,h)=>e.jsx(f,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>g(t)},h))})},[r,j,l,g]);return e.jsxs(M.TitleWithOptionsSectionWrapper,{ref:s,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(o)&&e.jsx("i",{className:o}),e.jsx("span",{children:a})]}),c.isDefinedNotEmptyString(x)&&e.jsx(R,{type:"button",btnType:"tinted",color:"
|
|
80
|
+
`,_=d.forwardRef((i,s)=>{const{title:o,imageUrl:a,text:r,buttonText:u,onCardClick:l}=i;return e.jsxs(k,{ref:s,className:"blog-card",onClick:l,children:[e.jsxs(v,{children:[e.jsx("div",{className:"text-wr-title",children:o}),e.jsx("div",{className:"text-wr",children:r}),e.jsx(W,{color:"gray",onClick:l,children:u})]}),e.jsx(A.ProductImageWrapper,{src:a})]})}),z=d.forwardRef(({},i)=>e.jsxs(k,{className:"blog-card",children:[e.jsxs(v,{children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"text-wr"}),e.jsx("div",{className:"skeleton-action"})]}),e.jsx("div",{className:"skeleton-img"})]})),E=({limit:i=3,isLoading:s=!1,keyPrefix:o})=>e.jsx(e.Fragment,{children:Array.from({length:i},(a,r)=>e.jsx(z,{isLoading:s},`${o}-skeleton-product-card-${r}`))}),F=({children:i,fallbackComponent:s=e.jsx(e.Fragment,{}),isLoading:o=!1,limit:a,keyPrefix:r})=>e.jsx(d.Suspense,{fallbackComponent:s,children:o===!0?e.jsx(E,{isLoading:o,limit:a,keyPrefix:r}):i}),f=d.memo(_),O=d.forwardRef((i,s)=>{const{icon:o,title:a,items:r,buttonText:u,limit:l=3,options:m,selectedOption:y=[],onButtonAction:S=()=>{},buttonLink:x,onSelectOption:b=()=>{},onSelectAll:N=()=>{},isLoading:C=!1,onSelectCard:g=()=>{},productsToolbarName:q="All",allButton:T=!1}=i,j=B.useDetectMobile(),$=d.useMemo(()=>{var n;return e.jsx(e.Fragment,{children:j===!0?r==null?void 0:r.map((t,h)=>e.jsx(f,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>g(t)},h)):(n=r==null?void 0:r.slice(0,l))==null?void 0:n.map((t,h)=>e.jsx(f,{title:t==null?void 0:t.title,imageUrl:(t==null?void 0:t.image)||null,text:t==null?void 0:t.text,buttonText:t==null?void 0:t.buttonText,onCardClick:()=>g(t)},h))})},[r,j,l,g]);return e.jsxs(M.TitleWithOptionsSectionWrapper,{ref:s,children:[e.jsxs("div",{className:"regular-title",children:[e.jsxs("div",{className:"regular-title-text",children:[c.isDefinedNotEmptyString(o)&&e.jsx("i",{className:o}),e.jsx("span",{children:a})]}),c.isDefinedNotEmptyString(x)&&e.jsx(R,{type:"button",btnType:"tinted",color:"neutral",onClick:n=>{var t;(t=n==null?void 0:n.target)==null||t.blur(),S(x)},borderRadius:"curved",children:u})]}),(m==null?void 0:m.length)>0&&e.jsx(I.SelectBar,{items:m,selectedIds:y,onRemove:n=>{b(n)},onSelect:n=>{b(n)},onSelectAll:N,labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q,allButton:T}),e.jsx(P,{limit:l,children:e.jsx(F,{isLoading:C,limit:l,keyPrefix:"explore-landing",children:$})})]})});module.exports=O;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as m, jsx as t, Fragment as
|
|
1
|
+
import { jsxs as m, jsx as t, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f, Suspense as A, memo as I, useMemo as O } from "react";
|
|
3
3
|
import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import { M as C } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as R } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
-
import { o as
|
|
6
|
+
import { o as u, p as j, k as S } from "./utils-BbgAIA9N.js";
|
|
7
7
|
import { T as E } from "./style-08foMKSd.js";
|
|
8
8
|
import F from "./Button.js";
|
|
9
9
|
import L from "./Link.js";
|
|
@@ -50,7 +50,7 @@ const D = b.div`
|
|
|
50
50
|
min-height: 3.3125rem;
|
|
51
51
|
max-height: 3.3125rem;
|
|
52
52
|
border-radius: 0.75rem;
|
|
53
|
-
background-color: ${
|
|
53
|
+
background-color: ${u("-90deg")};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
& a {
|
|
@@ -73,13 +73,13 @@ const D = b.div`
|
|
|
73
73
|
& .skeleton-title {
|
|
74
74
|
height: 1.5rem;
|
|
75
75
|
width: 80%;
|
|
76
|
-
background-color: ${
|
|
76
|
+
background-color: ${u("-90deg")};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& .skeleton-action {
|
|
80
80
|
height: 1.25rem;
|
|
81
81
|
width: 20%;
|
|
82
|
-
background-color: ${
|
|
82
|
+
background-color: ${u("-90deg")};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
& .text-wr {
|
|
@@ -105,7 +105,7 @@ const D = b.div`
|
|
|
105
105
|
/* @__PURE__ */ t("div", { className: "skeleton-action" })
|
|
106
106
|
] }),
|
|
107
107
|
/* @__PURE__ */ t("div", { className: "skeleton-img" })
|
|
108
|
-
] })), K = ({ limit: i = 3, isLoading: a = !1, keyPrefix: l }) => /* @__PURE__ */ t(
|
|
108
|
+
] })), K = ({ limit: i = 3, isLoading: a = !1, keyPrefix: l }) => /* @__PURE__ */ t(h, { children: Array.from({ length: i }, (d, r) => /* @__PURE__ */ t(
|
|
109
109
|
H,
|
|
110
110
|
{
|
|
111
111
|
isLoading: a
|
|
@@ -113,7 +113,7 @@ const D = b.div`
|
|
|
113
113
|
`${l}-skeleton-product-card-${r}`
|
|
114
114
|
)) }), X = ({
|
|
115
115
|
children: i,
|
|
116
|
-
fallbackComponent: a = /* @__PURE__ */ t(
|
|
116
|
+
fallbackComponent: a = /* @__PURE__ */ t(h, {}),
|
|
117
117
|
isLoading: l = !1,
|
|
118
118
|
limit: d,
|
|
119
119
|
keyPrefix: r
|
|
@@ -124,7 +124,7 @@ const D = b.div`
|
|
|
124
124
|
limit: d,
|
|
125
125
|
keyPrefix: r
|
|
126
126
|
}
|
|
127
|
-
) : i }),
|
|
127
|
+
) : i }), y = I(G), le = f((i, a) => {
|
|
128
128
|
const {
|
|
129
129
|
icon: l,
|
|
130
130
|
title: d,
|
|
@@ -147,8 +147,8 @@ const D = b.div`
|
|
|
147
147
|
allButton: P = !1
|
|
148
148
|
} = i, w = R(), z = O(() => {
|
|
149
149
|
var o;
|
|
150
|
-
return /* @__PURE__ */ t(
|
|
151
|
-
|
|
150
|
+
return /* @__PURE__ */ t(h, { children: w === !0 ? r == null ? void 0 : r.map((e, g) => /* @__PURE__ */ t(
|
|
151
|
+
y,
|
|
152
152
|
{
|
|
153
153
|
title: e == null ? void 0 : e.title,
|
|
154
154
|
imageUrl: (e == null ? void 0 : e.image) || null,
|
|
@@ -158,7 +158,7 @@ const D = b.div`
|
|
|
158
158
|
},
|
|
159
159
|
g
|
|
160
160
|
)) : (o = r == null ? void 0 : r.slice(0, n)) == null ? void 0 : o.map((e, g) => /* @__PURE__ */ t(
|
|
161
|
-
|
|
161
|
+
y,
|
|
162
162
|
{
|
|
163
163
|
title: e == null ? void 0 : e.title,
|
|
164
164
|
imageUrl: (e == null ? void 0 : e.image) || null,
|
|
@@ -172,15 +172,15 @@ const D = b.div`
|
|
|
172
172
|
return /* @__PURE__ */ m(E, { ref: a, children: [
|
|
173
173
|
/* @__PURE__ */ m("div", { className: "regular-title", children: [
|
|
174
174
|
/* @__PURE__ */ m("div", { className: "regular-title-text", children: [
|
|
175
|
-
|
|
175
|
+
S(l) && /* @__PURE__ */ t("i", { className: l }),
|
|
176
176
|
/* @__PURE__ */ t("span", { children: d })
|
|
177
177
|
] }),
|
|
178
|
-
|
|
178
|
+
S(k) && /* @__PURE__ */ t(
|
|
179
179
|
F,
|
|
180
180
|
{
|
|
181
181
|
type: "button",
|
|
182
182
|
btnType: "tinted",
|
|
183
|
-
color: "
|
|
183
|
+
color: "neutral",
|
|
184
184
|
onClick: (o) => {
|
|
185
185
|
var e;
|
|
186
186
|
(e = o == null ? void 0 : o.target) == null || e.blur(), B(k);
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
/* Safari and Chrome */
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,S=s.memo(h.DetailedProductCard),R=s.forwardRef((r,f)=>{const{icon:a,title:j,buttonLink:c,items:t,buttonText:w,limit:o=4,gap:C,onSelectCard:u=()=>{},onButtonAction:P=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:g,options:l,onSelectOption:p=()=>{},productsToolbarName:q="All"}=r,b=M.useDetectMobile(),k=s.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?t==null?void 0:t.map((e,n)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g},n)):t==null?void 0:t.slice(0,o).map((e,n)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g},n))}),[t,b,o]);return i.jsxs(F.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:j})]}),y.isDefinedNotEmptyString(c)&&i.jsx(U,{type:"button",btnType:"tinted",color:"
|
|
29
|
+
`,S=s.memo(h.DetailedProductCard),R=s.forwardRef((r,f)=>{const{icon:a,title:j,buttonLink:c,items:t,buttonText:w,limit:o=4,gap:C,onSelectCard:u=()=>{},onButtonAction:P=()=>{},isLoading:N=!1,getImage:d=()=>{},negotiableText:m,freeText:g,options:l,onSelectOption:p=()=>{},productsToolbarName:q="All"}=r,b=M.useDetectMobile(),k=s.useMemo(()=>i.jsx(i.Fragment,{children:b===!0?t==null?void 0:t.map((e,n)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g},n)):t==null?void 0:t.slice(0,o).map((e,n)=>i.jsx(S,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>u(e==null?void 0:e.uuid),imageUrl:d(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,negotiableText:m,freeText:g},n))}),[t,b,o]);return i.jsxs(F.TitleWithOptionsSectionWrapper,{ref:f,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[y.isDefinedNotEmptyString(a)&&i.jsx("i",{className:a}),i.jsx("span",{children:j})]}),y.isDefinedNotEmptyString(c)&&i.jsx(U,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),P(c)},borderRadius:"curved",className:"button-link",children:w})]}),(l==null?void 0:l.length)>0&&i.jsx(T.SelectBar,{items:l,onRemove:e=>{p(e)},onSelect:e=>{p(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:q}),i.jsx(E,{limit:o,gap:C,children:i.jsx(h.SuspenseDetailedProductCard,{isLoading:N,limit:o,keyPrefix:"explore-landing",children:k})})]})});module.exports=R;
|
|
@@ -36,10 +36,10 @@ const W = F.div`
|
|
|
36
36
|
/* Safari and Chrome */
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
`, S = M(L), J = T((r,
|
|
39
|
+
`, S = M(L), J = T((r, h) => {
|
|
40
40
|
const {
|
|
41
41
|
icon: s,
|
|
42
|
-
title:
|
|
42
|
+
title: y,
|
|
43
43
|
buttonLink: d,
|
|
44
44
|
items: o,
|
|
45
45
|
buttonText: w,
|
|
@@ -100,18 +100,18 @@ const W = F.div`
|
|
|
100
100
|
},
|
|
101
101
|
t
|
|
102
102
|
)) }), [o, b, l]);
|
|
103
|
-
return /* @__PURE__ */ a($, { ref:
|
|
103
|
+
return /* @__PURE__ */ a($, { ref: h, children: [
|
|
104
104
|
/* @__PURE__ */ a("div", { className: "regular-title", children: [
|
|
105
105
|
/* @__PURE__ */ a("div", { className: "regular-title-text", children: [
|
|
106
106
|
f(s) && /* @__PURE__ */ i("i", { className: s }),
|
|
107
|
-
/* @__PURE__ */ i("span", { children:
|
|
107
|
+
/* @__PURE__ */ i("span", { children: y })
|
|
108
108
|
] }),
|
|
109
109
|
f(d) && /* @__PURE__ */ i(
|
|
110
110
|
E,
|
|
111
111
|
{
|
|
112
112
|
type: "button",
|
|
113
113
|
btnType: "tinted",
|
|
114
|
-
color: "
|
|
114
|
+
color: "neutral",
|
|
115
115
|
onClick: (e) => {
|
|
116
116
|
var t;
|
|
117
117
|
(t = e == null ? void 0 : e.target) == null || t.blur(), P(d);
|
package/dist/FeedbackSection.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),o=require("react"),n=require("./utils-CZynEOC_.cjs"),d=require("./Button.cjs"),f=require("./styled-components.browser.esm-CvykQBGY.cjs"),m=require("./consts-goSZX3xP.cjs"),g=f.qe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
@media (max-width: ${
|
|
48
|
+
@media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
|
|
49
49
|
text-align: center;
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,_=o.forwardRef(({title:i,description:a,buttonText:s,onButtonAction:r=()=>{}},l)=>e.jsxs(g,{ref:l,children:[e.jsxs("div",{className:"feedback__content",children:[n.isDefinedNotEmptyString(i)&&e.jsx("div",{className:"feedback__title",children:e.jsx("span",{children:i})}),n.isDefinedNotEmptyString(a)&&e.jsx("div",{className:"feedback__description",children:e.jsx("span",{children:a})})]}),n.isDefinedNotEmptyString(s)&&e.jsx(d,{text:s,borderRadius:"curved",btnType:"tinted",color:"neutral",className:"feedback__action",onClick:t=>{var c;(c=t==null?void 0:t.target)==null||c.blur(),r==null||r()}})]}));module.exports=_;
|
package/dist/FeedbackSection.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
3
|
import { k as t } from "./utils-BbgAIA9N.js";
|
|
4
|
-
import
|
|
4
|
+
import m from "./Button.js";
|
|
5
5
|
import { q as f } from "./styled-components.browser.esm-D-n22PJk.js";
|
|
6
|
-
import { M as
|
|
7
|
-
const
|
|
6
|
+
import { M as g } from "./consts-BuFChS64.js";
|
|
7
|
+
const p = f.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: center;
|
|
@@ -51,18 +51,18 @@ const g = f.div`
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
@media (max-width: ${
|
|
54
|
+
@media (max-width: ${g + "px"}) {
|
|
55
55
|
text-align: center;
|
|
56
56
|
}
|
|
57
|
-
`, y =
|
|
57
|
+
`, y = d(
|
|
58
58
|
({ title: i, description: n, buttonText: l, onButtonAction: r = () => {
|
|
59
|
-
} },
|
|
59
|
+
} }, s) => /* @__PURE__ */ o(p, { ref: s, children: [
|
|
60
60
|
/* @__PURE__ */ o("div", { className: "feedback__content", children: [
|
|
61
61
|
t(i) && /* @__PURE__ */ e("div", { className: "feedback__title", children: /* @__PURE__ */ e("span", { children: i }) }),
|
|
62
62
|
t(n) && /* @__PURE__ */ e("div", { className: "feedback__description", children: /* @__PURE__ */ e("span", { children: n }) })
|
|
63
63
|
] }),
|
|
64
64
|
t(l) && /* @__PURE__ */ e(
|
|
65
|
-
|
|
65
|
+
m,
|
|
66
66
|
{
|
|
67
67
|
text: l,
|
|
68
68
|
borderRadius: "curved",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs")
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),$=require("./Icon.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),I=require("./consts-goSZX3xP.cjs"),C=p.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
cursor: pointer;
|
|
52
|
-
`,
|
|
52
|
+
`,W=p.styled.div`
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 11.625rem;
|
|
55
55
|
border-radius: 0.75rem;
|
|
56
56
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
57
|
-
`,
|
|
57
|
+
`,F=p.styled.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
padding: 0 0.75rem 0 0.75rem;
|
|
60
60
|
align-items: center;
|
|
@@ -104,12 +104,12 @@
|
|
|
104
104
|
color: var(--white, #fff);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
`,
|
|
107
|
+
`,R=p.styled.div`
|
|
108
108
|
width: 7rem;
|
|
109
109
|
height: 3rem;
|
|
110
110
|
border-radius: 999px;
|
|
111
111
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
112
|
-
`,
|
|
112
|
+
`,q=l.forwardRef(({},i)=>r.jsx(R,{})),z=l.forwardRef(({name:i,isActive:s,icon:t,onSelectCard:a=()=>{}},m)=>r.jsxs(F,{className:s?"active":"",onClick:a,children:[o.isDefinedNotEmptyString(t)&&r.jsx($,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,name:t,description:a,onSelectCard:m=()=>{}},g)=>{const{theme:f}=N.useTheme();return r.jsxs(C,{theme:f,onClick:m,children:[o.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),A=l.forwardRef(({},i)=>r.jsx(W,{})),E=p.styled.div`
|
|
113
113
|
display: flex;
|
|
114
114
|
flex-direction: column;
|
|
115
115
|
align-items: center;
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
width: 100%;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
@media (max-width: ${
|
|
160
|
+
@media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
|
|
161
161
|
& .wrapper__tags {
|
|
162
162
|
overflow-x: scroll;
|
|
163
163
|
justify-content: flex-start;
|
|
@@ -183,4 +183,4 @@
|
|
|
183
183
|
gap: 1rem;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
`,
|
|
186
|
+
`,D=l.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:a=7,limitTagsForMobile:m=7,limit:g=3,limitForMobile:f=2,items:d=[],selectedTag:c,isLoadingTags:y=!1,isLoadingItems:b=!1,onSelectTag:_=()=>{},onSelectCard:h=()=>{},getImage:j=()=>{}},k)=>{var u,v;const w=e=>{_==null||_(e)},x=e=>{h==null||h(e)};return r.jsxs(E,{ref:k,limitTags:a,limitTagsForMobile:m,limitCards:g,limitCardsForMobile:f,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:y?(u=Array.from("123"))==null?void 0:u.map((e,n)=>r.jsx(q,{},`field-of-interests-with-tags-card-tag-skeleton__${n+1}`)):t==null?void 0:t.map((e,n)=>r.jsx(z,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,isActive:(e==null?void 0:e.uuid)===(c==null?void 0:c.uuid),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card-tag__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:b?(v=Array.from("123"))==null?void 0:v.map((e,n)=>r.jsx(A,{},`field-of-interests-with-tags-card-skeleton__${n+1}`)):d==null?void 0:d.map((e,n)=>r.jsx(O,{image:j(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid),imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.name,description:(e==null?void 0:e.shortDescription)||(e==null?void 0:e.description),onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-with-tags-card__${n+1}`))})]})});module.exports=D;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { p as y, o as b, k as
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { M as
|
|
8
|
-
const
|
|
4
|
+
import { p as y, o as b, k as I, l as W } from "./utils-BbgAIA9N.js";
|
|
5
|
+
import F from "./Icon.js";
|
|
6
|
+
import { u as j } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { M as z } from "./consts-BuFChS64.js";
|
|
8
|
+
const O = p.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -56,12 +56,12 @@ const z = p.div`
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
cursor: pointer;
|
|
59
|
-
`,
|
|
59
|
+
`, A = p.div`
|
|
60
60
|
width: 100%;
|
|
61
61
|
height: 11.625rem;
|
|
62
62
|
border-radius: 0.75rem;
|
|
63
63
|
background: ${b("-90deg")};
|
|
64
|
-
`,
|
|
64
|
+
`, E = p.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
padding: 0 0.75rem 0 0.75rem;
|
|
67
67
|
align-items: center;
|
|
@@ -111,30 +111,30 @@ const z = p.div`
|
|
|
111
111
|
color: var(--white, #fff);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`, M = p.div`
|
|
115
115
|
width: 7rem;
|
|
116
116
|
height: 3rem;
|
|
117
117
|
border-radius: 999px;
|
|
118
118
|
background: ${b("-90deg")};
|
|
119
|
-
`,
|
|
119
|
+
`, D = l(({}, r) => /* @__PURE__ */ i(M, {})), G = l(
|
|
120
120
|
({ name: r, isActive: n, icon: t, onSelectCard: s = () => {
|
|
121
|
-
} }, m) => /* @__PURE__ */ o(
|
|
122
|
-
|
|
121
|
+
} }, m) => /* @__PURE__ */ o(E, { className: n ? "active" : "", onClick: s, children: [
|
|
122
|
+
I(t) && /* @__PURE__ */ i(F, { icon: t, className: "wrapper__icon" }),
|
|
123
123
|
/* @__PURE__ */ i("div", { className: "wrapper__text", children: r })
|
|
124
124
|
] })
|
|
125
|
-
),
|
|
125
|
+
), L = l(
|
|
126
126
|
({ image: r, imageComponent: n, name: t, description: s, onSelectCard: m = () => {
|
|
127
127
|
} }, u) => {
|
|
128
|
-
const { theme: f } =
|
|
129
|
-
return /* @__PURE__ */ o(
|
|
130
|
-
|
|
128
|
+
const { theme: f } = j();
|
|
129
|
+
return /* @__PURE__ */ o(O, { theme: f, onClick: m, children: [
|
|
130
|
+
W(n) ? n : /* @__PURE__ */ i("img", { src: r, className: "wrapper__image" }),
|
|
131
131
|
/* @__PURE__ */ o("div", { className: "wrapper__content", children: [
|
|
132
132
|
t && /* @__PURE__ */ i("div", { className: "wrapper__title", children: t }),
|
|
133
133
|
s && /* @__PURE__ */ i("div", { className: "wrapper__description", children: s })
|
|
134
134
|
] })
|
|
135
135
|
] });
|
|
136
136
|
}
|
|
137
|
-
),
|
|
137
|
+
), R = l(({}, r) => /* @__PURE__ */ i(A, {})), T = p.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: column;
|
|
140
140
|
align-items: center;
|
|
@@ -182,7 +182,7 @@ const z = p.div`
|
|
|
182
182
|
width: 100%;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
@media (max-width: ${
|
|
185
|
+
@media (max-width: ${z + "px"}) {
|
|
186
186
|
& .wrapper__tags {
|
|
187
187
|
overflow-x: scroll;
|
|
188
188
|
justify-content: flex-start;
|
|
@@ -227,7 +227,7 @@ const z = p.div`
|
|
|
227
227
|
},
|
|
228
228
|
getImage: N = () => {
|
|
229
229
|
}
|
|
230
|
-
},
|
|
230
|
+
}, C) => {
|
|
231
231
|
var x, v;
|
|
232
232
|
const g = (e) => {
|
|
233
233
|
h == null || h(e);
|
|
@@ -235,8 +235,9 @@ const z = p.div`
|
|
|
235
235
|
_ == null || _(e);
|
|
236
236
|
};
|
|
237
237
|
return /* @__PURE__ */ o(
|
|
238
|
-
|
|
238
|
+
T,
|
|
239
239
|
{
|
|
240
|
+
ref: C,
|
|
240
241
|
limitTags: s,
|
|
241
242
|
limitTagsForMobile: m,
|
|
242
243
|
limitCards: u,
|
|
@@ -247,11 +248,11 @@ const z = p.div`
|
|
|
247
248
|
n && /* @__PURE__ */ i("div", { className: "wrapper__subtitle", children: n })
|
|
248
249
|
] }),
|
|
249
250
|
/* @__PURE__ */ i("div", { className: "wrapper__tags", children: k ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ i(
|
|
250
|
-
|
|
251
|
+
D,
|
|
251
252
|
{},
|
|
252
253
|
`field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
|
|
253
254
|
)) : t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ i(
|
|
254
|
-
|
|
255
|
+
G,
|
|
255
256
|
{
|
|
256
257
|
icon: e == null ? void 0 : e.icon,
|
|
257
258
|
name: e == null ? void 0 : e.name,
|
|
@@ -261,11 +262,11 @@ const z = p.div`
|
|
|
261
262
|
`field-of-interests-with-tags-card-tag__${a + 1}`
|
|
262
263
|
)) }),
|
|
263
264
|
/* @__PURE__ */ i("div", { className: "wrapper__cards", children: $ ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ i(
|
|
264
|
-
|
|
265
|
+
R,
|
|
265
266
|
{},
|
|
266
267
|
`field-of-interests-with-tags-card-skeleton__${a + 1}`
|
|
267
268
|
)) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */ i(
|
|
268
|
-
|
|
269
|
+
L,
|
|
269
270
|
{
|
|
270
271
|
image: N(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
|
|
271
272
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),w=require("./useDetectMobile-zkbzoOGV.cjs"),v=require("./style-JqDQj4jh.cjs"),o=require("./utils-CZynEOC_.cjs"),j=require("./Button.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),S=c.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>`repeat(${a.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
height: 11.5rem;
|
|
82
82
|
border-radius: 0.75rem;
|
|
83
83
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
84
|
-
`;const p=f.forwardRef((a,d)=>{const{image:s,text:l,price:i,currency:
|
|
84
|
+
`;const p=f.forwardRef((a,d)=>{const{image:s,text:l,price:i,currency:r,onSelectGiftCard:m=()=>{}}=a;return t.jsxs(k,{ref:d,className:"simple-gift-card",onClick:()=>m(i),children:[t.jsxs(G,{children:[t.jsx("div",{className:"price-tag",children:i&&r&&`${o.formatPrice(i)} ${o.GetCurrencySymbol(r)}`}),t.jsx("img",{src:s})]}),t.jsx("div",{className:"text-wrap",children:l})]})}),N=f.forwardRef((a,d)=>{const{icon:s,title:l,buttonLink:i,items:r,buttonText:m,limit:u=4,onSelectCard:g=()=>{},onButtonAction:h=()=>{}}=a,b=w.useDetectMobile();return t.jsxs(v.RegulatTitleSectionWrapper,{ref:d,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[o.isDefinedNotEmptyString(s)&&t.jsx("i",{className:s}),t.jsx("span",{children:l})]}),o.isDefinedNotEmptyString(i)&&t.jsx(j,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(i)},borderRadius:"curved",className:"button-link",children:m})]}),t.jsx(S,{limit:u,children:b===!0?r==null?void 0:r.map((e,n)=>t.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},n)):r==null?void 0:r.slice(0,u).map((e,n)=>t.jsx(p,{text:e==null?void 0:e.text,price:e==null?void 0:e.priceTo,currency:e==null?void 0:e.currencyIsoCode,image:e==null?void 0:e.imageUrl,uuid:e==null?void 0:e.uuid,onSelectGiftCard:y=>g(e)},n))})]})});module.exports=N;
|
package/dist/GiftCardsSection.js
CHANGED
|
@@ -91,10 +91,10 @@ c.div`
|
|
|
91
91
|
border-radius: 0.75rem;
|
|
92
92
|
background: ${b("-90deg")};
|
|
93
93
|
`;
|
|
94
|
-
const f = h((a,
|
|
94
|
+
const f = h((a, l) => {
|
|
95
95
|
const {
|
|
96
96
|
image: d,
|
|
97
|
-
text:
|
|
97
|
+
text: s,
|
|
98
98
|
price: i,
|
|
99
99
|
currency: r,
|
|
100
100
|
onSelectGiftCard: m = () => {
|
|
@@ -103,7 +103,7 @@ const f = h((a, s) => {
|
|
|
103
103
|
return /* @__PURE__ */ n(
|
|
104
104
|
j,
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
106
|
+
ref: l,
|
|
107
107
|
className: "simple-gift-card",
|
|
108
108
|
onClick: () => m(i),
|
|
109
109
|
children: [
|
|
@@ -111,14 +111,14 @@ const f = h((a, s) => {
|
|
|
111
111
|
/* @__PURE__ */ t("div", { className: "price-tag", children: i && r && `${G(i)} ${S(r)}` }),
|
|
112
112
|
/* @__PURE__ */ t("img", { src: d })
|
|
113
113
|
] }),
|
|
114
|
-
/* @__PURE__ */ t("div", { className: "text-wrap", children:
|
|
114
|
+
/* @__PURE__ */ t("div", { className: "text-wrap", children: s })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
|
-
}), D = h((a,
|
|
118
|
+
}), D = h((a, l) => {
|
|
119
119
|
const {
|
|
120
120
|
icon: d,
|
|
121
|
-
title:
|
|
121
|
+
title: s,
|
|
122
122
|
buttonLink: i,
|
|
123
123
|
items: r,
|
|
124
124
|
buttonText: m,
|
|
@@ -128,18 +128,18 @@ const f = h((a, s) => {
|
|
|
128
128
|
onButtonAction: v = () => {
|
|
129
129
|
}
|
|
130
130
|
} = a, w = C();
|
|
131
|
-
return /* @__PURE__ */ n(k, { ref:
|
|
131
|
+
return /* @__PURE__ */ n(k, { ref: l, children: [
|
|
132
132
|
/* @__PURE__ */ n("div", { className: "regular-title", children: [
|
|
133
133
|
/* @__PURE__ */ n("div", { className: "regular-title-text", children: [
|
|
134
134
|
u(d) && /* @__PURE__ */ t("i", { className: d }),
|
|
135
|
-
/* @__PURE__ */ t("span", { children:
|
|
135
|
+
/* @__PURE__ */ t("span", { children: s })
|
|
136
136
|
] }),
|
|
137
137
|
u(i) && /* @__PURE__ */ t(
|
|
138
138
|
N,
|
|
139
139
|
{
|
|
140
140
|
type: "button",
|
|
141
141
|
btnType: "tinted",
|
|
142
|
-
color: "
|
|
142
|
+
color: "neutral",
|
|
143
143
|
onClick: (e) => {
|
|
144
144
|
var o;
|
|
145
145
|
(o = e == null ? void 0 : e.target) == null || o.blur(), v(i);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),n=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),n=require("react"),d=require("./utils-CZynEOC_.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=require("./styled-components.browser.esm-CvykQBGY.cjs"),_=c.styled.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
font-style: normal;
|
|
80
80
|
font-weight: 600;
|
|
81
81
|
line-height: 1.75rem;
|
|
82
|
-
${
|
|
82
|
+
${d.truncateText()}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
& .quattro-card__description {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
font-style: normal;
|
|
88
88
|
font-weight: 500;
|
|
89
89
|
line-height: 1.25rem;
|
|
90
|
-
${
|
|
90
|
+
${d.truncateTextInRows(2)}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
display: block;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
`,h=n.forwardRef(({title:o,description:r,imageUrl:i,onSelectCard:
|
|
111
|
+
`,h=n.forwardRef(({title:o,description:r,imageUrl:i,onSelectCard:s=()=>{}},l)=>{const{theme:a}=g.useTheme();return e.jsxs(f,{theme:a,onClick:s,children:[e.jsx("img",{loading:"lazy",src:i}),e.jsx(_,{theme:a,className:"quattro-card__gradient",children:e.jsxs("div",{className:"quattro-card__text",children:[e.jsx("div",{className:"quattro-card__title",children:o}),e.jsx("div",{className:"quattro-card__description",children:r})]})})]})}),b=u.qe.div`
|
|
112
112
|
display: flex;
|
|
113
113
|
flex-direction: column;
|
|
114
114
|
align-items: flex-start;
|
|
@@ -160,4 +160,4 @@
|
|
|
160
160
|
gap: 1rem;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
`,w=n.memo(h),x=n.forwardRef(({title:o,items:r,onSelectCard:i=()=>{}},
|
|
163
|
+
`,w=n.memo(h),x=n.forwardRef(({title:o,items:r,onSelectCard:i=()=>{}},s)=>{const l=n.useMemo(()=>{var a;return(a=r==null?void 0:r.slice(0,4))==null?void 0:a.map((t,p)=>e.jsx(w,{title:t==null?void 0:t.title,description:t==null?void 0:t.description,imageUrl:t==null?void 0:t.imageUrl,onSelectCard:()=>i==null?void 0:i(t)},`quattro-card__${p+1}`))},[r]);return e.jsxs(b,{ref:s,children:[e.jsx("div",{className:"wrapper__heading",children:e.jsx("div",{className:"wrapper__title",children:d.isDefinedNotEmptyString(o)&&e.jsx("div",{className:"title__text",children:e.jsx("span",{children:o})})})}),e.jsx("div",{className:"wrapper__cards",children:l})]})});module.exports=x;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l, memo as g, useMemo as f } from "react";
|
|
3
3
|
import { t as h, p as u, k as _ } from "./utils-BbgAIA9N.js";
|
|
4
4
|
import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
@@ -116,12 +116,12 @@ const y = c.div`
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
`, x = l(
|
|
119
|
-
({ title: o, description: e, imageUrl: i, onSelectCard:
|
|
119
|
+
({ title: o, description: e, imageUrl: i, onSelectCard: n = () => {
|
|
120
120
|
} }, s) => {
|
|
121
121
|
const { theme: a } = b();
|
|
122
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ d(v, { theme: a, onClick: n, children: [
|
|
123
123
|
/* @__PURE__ */ r("img", { loading: "lazy", src: i }),
|
|
124
|
-
/* @__PURE__ */ r(y, { theme: a, className: "quattro-card__gradient", children: /* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ r(y, { theme: a, className: "quattro-card__gradient", children: /* @__PURE__ */ d("div", { className: "quattro-card__text", children: [
|
|
125
125
|
/* @__PURE__ */ r("div", { className: "quattro-card__title", children: o }),
|
|
126
126
|
/* @__PURE__ */ r("div", { className: "quattro-card__description", children: e })
|
|
127
127
|
] }) })
|
|
@@ -181,7 +181,7 @@ const y = c.div`
|
|
|
181
181
|
}
|
|
182
182
|
`, k = g(x), I = l(
|
|
183
183
|
({ title: o, items: e, onSelectCard: i = () => {
|
|
184
|
-
} },
|
|
184
|
+
} }, n) => {
|
|
185
185
|
const s = f(() => {
|
|
186
186
|
var a;
|
|
187
187
|
return (a = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : a.map((t, p) => /* @__PURE__ */ r(
|
|
@@ -195,7 +195,7 @@ const y = c.div`
|
|
|
195
195
|
`quattro-card__${p + 1}`
|
|
196
196
|
));
|
|
197
197
|
}, [e]);
|
|
198
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ d(q, { ref: n, children: [
|
|
199
199
|
/* @__PURE__ */ r("div", { className: "wrapper__heading", children: /* @__PURE__ */ r("div", { className: "wrapper__title", children: _(o) && /* @__PURE__ */ r("div", { className: "title__text", children: /* @__PURE__ */ r("span", { children: o }) }) }) }),
|
|
200
200
|
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: s })
|
|
201
201
|
] });
|
|
@@ -88,4 +88,4 @@
|
|
|
88
88
|
gap: 1rem;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`,d=y.forwardRef(({title:i,subtitle:s,items:n,limit:m=4,limitForMobile:_=2,buttonText:u="Show More",onSelectCard:g=()=>{},onButtonAction:l=()=>{},icon:o,getImage:x=()=>{},getProductImage:h=()=>{},hideProducts:f=!1},w)=>{var a;return t.jsxs(C,{ref:w,limitCards:m,limitCardsForMobile:_,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[v.isDefinedNotEmptyString(o)&&t.jsx("i",{className:o}),t.jsx("span",{children:i})]}),l&&t.jsx(c,{text:u,borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:l})]}),s&&t.jsx("div",{className:"wrapper__subtitle",children:s})]}),t.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,r)=>t.jsx(p.ShopCard,{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.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g(e==null?void 0:e.uuid),image:x(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:h,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:f},`shop-card__${r+1}`)):(a=Array.from("1234"))==null?void 0:a.map((e,r)=>t.jsx(p.ShopCardSkeleton,{},`shop-card-skeleton__${r+1}`))})]})});module.exports=d;
|
|
91
|
+
`,d=y.forwardRef(({title:i,subtitle:s,items:n,limit:m=4,limitForMobile:_=2,buttonText:u="Show More",onSelectCard:g=()=>{},onButtonAction:l=()=>{},icon:o,getImage:x=()=>{},getProductImage:h=()=>{},hideProducts:f=!1},w)=>{var a;return t.jsxs(C,{ref:w,limitCards:m,limitCardsForMobile:_,children:[t.jsxs("div",{className:"wrapper__heading",children:[t.jsxs("div",{className:"wrapper__title",children:[i&&t.jsxs("div",{className:"title__text",children:[v.isDefinedNotEmptyString(o)&&t.jsx("i",{className:o}),t.jsx("span",{children:i})]}),l&&t.jsx(c,{text:u,color:"neutral",borderRadius:"curved",btnType:"tinted",className:"title__action",onClick:l})]}),s&&t.jsx("div",{className:"wrapper__subtitle",children:s})]}),t.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,r)=>t.jsx(p.ShopCard,{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.ratingArithmeticMean,reviewCount:e==null?void 0:e.reviewCount,products:e==null?void 0:e.products,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>g(e==null?void 0:e.uuid),image:x(e==null?void 0:e.profileImage,e==null?void 0:e.uuid)||null,getProductImage:h,canAcceptPayments:e==null?void 0:e.canAcceptPayments,hideProducts:f},`shop-card__${r+1}`)):(a=Array.from("1234"))==null?void 0:a.map((e,r)=>t.jsx(p.ShopCardSkeleton,{},`shop-card-skeleton__${r+1}`))})]})});module.exports=d;
|
package/dist/ShopCardsSection.js
CHANGED
|
@@ -5,7 +5,7 @@ import { S as C, a as b } from "./skeleton-CkTNgaA3.js";
|
|
|
5
5
|
import { k as d } from "./utils-BbgAIA9N.js";
|
|
6
6
|
import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
7
|
import { M as N } from "./consts-BuFChS64.js";
|
|
8
|
-
const
|
|
8
|
+
const c = S.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
align-items: flex-start;
|
|
@@ -116,7 +116,7 @@ const $ = S.div`
|
|
|
116
116
|
}, x) => {
|
|
117
117
|
var s;
|
|
118
118
|
return /* @__PURE__ */ n(
|
|
119
|
-
|
|
119
|
+
c,
|
|
120
120
|
{
|
|
121
121
|
ref: x,
|
|
122
122
|
limitCards: m,
|
|
@@ -132,6 +132,7 @@ const $ = S.div`
|
|
|
132
132
|
v,
|
|
133
133
|
{
|
|
134
134
|
text: g,
|
|
135
|
+
color: "neutral",
|
|
135
136
|
borderRadius: "curved",
|
|
136
137
|
btnType: "tinted",
|
|
137
138
|
className: "title__action",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),s=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),q=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./utils-CZynEOC_.cjs"),k=require("./style-JqDQj4jh.cjs"),v=require("./Button.cjs"),p=require("./suspense-categories-card-simple-CK7XDK4k.cjs"),M=w.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${a=>"repeat(6, minmax(0, 1fr))"};
|
|
4
4
|
gap: 2rem;
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
/* Safari and Chrome */
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,m=s.memo(p.CategorySimpleCard),N=s.forwardRef((a,g)=>{const{icon:l,title:b="Shop by category",items:
|
|
25
|
+
`,m=s.memo(p.CategorySimpleCard),N=s.forwardRef((a,g)=>{const{icon:l,title:b="Shop by category",items:r,buttonText:y="Shop now",buttonLink:u,limit:o=12,onButtonAction:h=()=>{},onSelectCard:i=()=>{},isLoading:f=!1,getImage:c=()=>{}}=a,S=q.useDetectMobile(),j=s.useMemo(()=>t.jsx(t.Fragment,{children:S===!0?r==null?void 0:r.map((e,n)=>t.jsx(m,{uuid:e==null?void 0:e.uuid,image:c(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},n)):r==null?void 0:r.slice(0,o).map((e,n)=>t.jsx(m,{uuid:e==null?void 0:e.uuid,image:c(e==null?void 0:e.image)||null,name:e==null?void 0:e.name,onSelectCard:()=>i==null?void 0:i(e)},n))}),[r]);return t.jsxs(k.RegulatTitleSectionWrapper,{ref:g,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[d.isDefinedNotEmptyString(l)&&t.jsx("i",{className:l}),t.jsx("span",{children:b})]}),d.isDefinedNotEmptyString(u)&&t.jsx(v,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var n;(n=e==null?void 0:e.target)==null||n.blur(),h(u)},borderRadius:"curved",className:"button-link",children:y})]}),t.jsx(M,{limit:o,children:t.jsx(p.SuspenseSimpleCategoryCard,{isLoading:f,limit:o,keyPrefix:"explore-landing",children:j})})]})});module.exports=N;
|
|
@@ -43,10 +43,10 @@ const P = M.div`
|
|
|
43
43
|
},
|
|
44
44
|
onSelectCard: t = () => {
|
|
45
45
|
},
|
|
46
|
-
isLoading:
|
|
46
|
+
isLoading: h = !1,
|
|
47
47
|
getImage: d = () => {
|
|
48
48
|
}
|
|
49
|
-
} = l,
|
|
49
|
+
} = l, y = E(), w = v(() => /* @__PURE__ */ r(S, { children: y === !0 ? o == null ? void 0 : o.map((e, i) => /* @__PURE__ */ r(
|
|
50
50
|
u,
|
|
51
51
|
{
|
|
52
52
|
uuid: e == null ? void 0 : e.uuid,
|
|
@@ -76,7 +76,7 @@ const P = M.div`
|
|
|
76
76
|
{
|
|
77
77
|
type: "button",
|
|
78
78
|
btnType: "tinted",
|
|
79
|
-
color: "
|
|
79
|
+
color: "neutral",
|
|
80
80
|
onClick: (e) => {
|
|
81
81
|
var i;
|
|
82
82
|
(i = e == null ? void 0 : e.target) == null || i.blur(), b(s);
|
|
@@ -90,7 +90,7 @@ const P = M.div`
|
|
|
90
90
|
/* @__PURE__ */ r(P, { limit: a, children: /* @__PURE__ */ r(
|
|
91
91
|
L,
|
|
92
92
|
{
|
|
93
|
-
isLoading:
|
|
93
|
+
isLoading: h,
|
|
94
94
|
limit: a,
|
|
95
95
|
keyPrefix: "explore-landing",
|
|
96
96
|
children: w
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
`,h=n.memo(b.DetailedProductCard),N=n.forwardRef((t,w)=>{const{items:r,limit:a=5,limitMobile:d=4,onSelectCard:s=()=>{},title:y="Urgent sale",showLessText:S="Show less",showMoreText:j="Show more",isLoading:k=!1,getImage:m=()=>{},negotiableText:g,freeText:p}=t,c=v.useDetectMobile(),[l,M]=n.useState(!1),U=n.useMemo(()=>{var o;return i.jsx(i.Fragment,{children:c===!0?(o=r==null?void 0:r.slice(0,l===!0?r==null?void 0:r.length:d))==null?void 0:o.map((e,u)=>i.jsx(h,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:g,freeText:p},u)):r==null?void 0:r.slice(0,a).map((e,u)=>i.jsx(h,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:g,freeText:p},u))})},[r,c,a,d,l]);return i.jsxs(C,{ref:w,limit:a,children:[i.jsxs("div",{className:"urgent-tag",children:[i.jsx("i",{className:"mng mng-lnc-bolt-filled"}),i.jsx("span",{children:y})]}),i.jsx(b.SuspenseDetailedProductCard,{isLoading:k,limit:a,keyPrefix:"explore-landing",children:U}),c===!0&&d<(r==null?void 0:r.length)&&i.jsx(q,{className:"show-more",btnType:"basic",type:"button",color:"
|
|
74
|
+
`,h=n.memo(b.DetailedProductCard),N=n.forwardRef((t,w)=>{const{items:r,limit:a=5,limitMobile:d=4,onSelectCard:s=()=>{},title:y="Urgent sale",showLessText:S="Show less",showMoreText:j="Show more",isLoading:k=!1,getImage:m=()=>{},negotiableText:g,freeText:p}=t,c=v.useDetectMobile(),[l,M]=n.useState(!1),U=n.useMemo(()=>{var o;return i.jsx(i.Fragment,{children:c===!0?(o=r==null?void 0:r.slice(0,l===!0?r==null?void 0:r.length:d))==null?void 0:o.map((e,u)=>i.jsx(h,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:g,freeText:p},u)):r==null?void 0:r.slice(0,a).map((e,u)=>i.jsx(h,{title:e==null?void 0:e.name,price:e==null?void 0:e.price,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>s==null?void 0:s(e==null?void 0:e.uuid),imageUrl:m(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,negotiableText:g,freeText:p},u))})},[r,c,a,d,l]);return i.jsxs(C,{ref:w,limit:a,children:[i.jsxs("div",{className:"urgent-tag",children:[i.jsx("i",{className:"mng mng-lnc-bolt-filled"}),i.jsx("span",{children:y})]}),i.jsx(b.SuspenseDetailedProductCard,{isLoading:k,limit:a,keyPrefix:"explore-landing",children:U}),c===!0&&d<(r==null?void 0:r.length)&&i.jsx(q,{className:"show-more",btnType:"basic",type:"button",color:"neutral",onClick:o=>{var e;(e=o==null?void 0:o.target)==null||e.blur(),M(!l)},children:l===!0?S:j})]})});module.exports=N;
|
|
@@ -87,8 +87,8 @@ const E = C.div`
|
|
|
87
87
|
},
|
|
88
88
|
title: b = "Urgent sale",
|
|
89
89
|
showLessText: w = "Show less",
|
|
90
|
-
showMoreText:
|
|
91
|
-
isLoading:
|
|
90
|
+
showMoreText: S = "Show more",
|
|
91
|
+
isLoading: y = !1,
|
|
92
92
|
getImage: c = () => {
|
|
93
93
|
},
|
|
94
94
|
negotiableText: u,
|
|
@@ -140,7 +140,7 @@ const E = C.div`
|
|
|
140
140
|
/* @__PURE__ */ a(
|
|
141
141
|
D,
|
|
142
142
|
{
|
|
143
|
-
isLoading:
|
|
143
|
+
isLoading: y,
|
|
144
144
|
limit: l,
|
|
145
145
|
keyPrefix: "explore-landing",
|
|
146
146
|
children: M
|
|
@@ -152,12 +152,12 @@ const E = C.div`
|
|
|
152
152
|
className: "show-more",
|
|
153
153
|
btnType: "basic",
|
|
154
154
|
type: "button",
|
|
155
|
-
color: "
|
|
155
|
+
color: "neutral",
|
|
156
156
|
onClick: (t) => {
|
|
157
157
|
var e;
|
|
158
158
|
(e = t == null ? void 0 : t.target) == null || e.blur(), k(!s);
|
|
159
159
|
},
|
|
160
|
-
children: s === !0 ? w :
|
|
160
|
+
children: s === !0 ? w : S
|
|
161
161
|
}
|
|
162
162
|
)
|
|
163
163
|
] });
|