@lanaco/lnc-react-ui 4.0.175 → 4.0.177
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/BlogImagePathSection.cjs +26 -0
- package/dist/BlogImagePathSection.js +89 -0
- package/dist/DetailedProductsInfinitiveSection.cjs +2 -2
- package/dist/DetailedProductsInfinitiveSection.js +7 -7
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +4 -4
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +7 -7
- package/dist/{index-BD-qUr5R.cjs → index-BeVjdODO.cjs} +9 -9
- package/dist/{index-DMnFESGw.js → index-DrtxDu6u.js} +85 -80
- package/dist/index.cjs +1 -1
- package/dist/index.js +17 -15
- package/package.json +3 -2
- package/vite.config.js +4 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),h=require("react"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),u=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),_=l.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
width: 100%;
|
|
5
|
+
text-align: center;
|
|
6
|
+
`,b=l.styled.div`
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
|
|
10
|
+
& .wrapper__image {
|
|
11
|
+
width: ${e=>e!=null&&e.imageWidth?`${e==null?void 0:e.imageWidth}px`:"100%"};
|
|
12
|
+
height: ${e=>e!=null&&e.imageHeight?`${e==null?void 0:e.imageHeight}px`:"100%"};
|
|
13
|
+
object-fit: cover;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//&:hover {
|
|
17
|
+
// cursor: pointer;
|
|
18
|
+
//}
|
|
19
|
+
|
|
20
|
+
//@media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
|
|
21
|
+
// aspect-ratio: 1 / 1;
|
|
22
|
+
// & .wrapper__image {
|
|
23
|
+
// aspect-ratio: 1 / 1;
|
|
24
|
+
// }
|
|
25
|
+
//}
|
|
26
|
+
`,M=h.forwardRef((e,a)=>{const{image:r,altText:o,imageWidth:s,imageHeight:g,imageMobileWidth:c,imageMobileHeight:n,isMobile:i,onClick:m=()=>{}}=e,d=i?c:s,x=i?n:g;return t.jsx(b,{ref:a,imageWidth:d,imageHeight:x,className:"image-banner__wrapper",children:t.jsx("img",{loading:"lazy",src:r,alt:o,className:"wrapper__image",onClick:m})})}),W=h.forwardRef((e,a)=>{const{image:r,altText:o,imageWidth:s,imageHeight:g,imageMobileWidth:c,imageMobileHeight:n,onClick:i=()=>{}}=e,m=w.useDetectMobile();return t.jsx(_,{ref:a,children:t.jsx(M,{image:r,altText:o,imageWidth:s,imageHeight:g,imageMobileWidth:c,imageMobileHeight:n,isMobile:m,onClick:i})})});module.exports=W;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { M as d } from "./consts-BuFChS64.js";
|
|
5
|
+
import { u as f } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
const w = l.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
text-align: center;
|
|
11
|
+
`, x = l.div`
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
|
|
15
|
+
& .wrapper__image {
|
|
16
|
+
width: ${(e) => e != null && e.imageWidth ? `${e == null ? void 0 : e.imageWidth}px` : "100%"};
|
|
17
|
+
height: ${(e) => e != null && e.imageHeight ? `${e == null ? void 0 : e.imageHeight}px` : "100%"};
|
|
18
|
+
object-fit: cover;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//&:hover {
|
|
22
|
+
// cursor: pointer;
|
|
23
|
+
//}
|
|
24
|
+
|
|
25
|
+
//@media (max-width: ${d + "px"}) {
|
|
26
|
+
// aspect-ratio: 1 / 1;
|
|
27
|
+
// & .wrapper__image {
|
|
28
|
+
// aspect-ratio: 1 / 1;
|
|
29
|
+
// }
|
|
30
|
+
//}
|
|
31
|
+
`, _ = c((e, a) => {
|
|
32
|
+
const {
|
|
33
|
+
image: r,
|
|
34
|
+
altText: o,
|
|
35
|
+
imageWidth: g,
|
|
36
|
+
imageHeight: m,
|
|
37
|
+
imageMobileWidth: h,
|
|
38
|
+
imageMobileHeight: s,
|
|
39
|
+
isMobile: i,
|
|
40
|
+
onClick: n = () => {
|
|
41
|
+
}
|
|
42
|
+
} = e;
|
|
43
|
+
return /* @__PURE__ */ t(
|
|
44
|
+
x,
|
|
45
|
+
{
|
|
46
|
+
ref: a,
|
|
47
|
+
imageWidth: i ? h : g,
|
|
48
|
+
imageHeight: i ? s : m,
|
|
49
|
+
className: "image-banner__wrapper",
|
|
50
|
+
children: /* @__PURE__ */ t(
|
|
51
|
+
"img",
|
|
52
|
+
{
|
|
53
|
+
loading: "lazy",
|
|
54
|
+
src: r,
|
|
55
|
+
alt: o,
|
|
56
|
+
className: "wrapper__image",
|
|
57
|
+
onClick: n
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}), v = c((e, a) => {
|
|
63
|
+
const {
|
|
64
|
+
image: r,
|
|
65
|
+
altText: o,
|
|
66
|
+
imageWidth: g,
|
|
67
|
+
imageHeight: m,
|
|
68
|
+
imageMobileWidth: h,
|
|
69
|
+
imageMobileHeight: s,
|
|
70
|
+
onClick: i = () => {
|
|
71
|
+
}
|
|
72
|
+
} = e, n = f();
|
|
73
|
+
return /* @__PURE__ */ t(w, { ref: a, children: /* @__PURE__ */ t(
|
|
74
|
+
_,
|
|
75
|
+
{
|
|
76
|
+
image: r,
|
|
77
|
+
altText: o,
|
|
78
|
+
imageWidth: g,
|
|
79
|
+
imageHeight: m,
|
|
80
|
+
imageMobileWidth: h,
|
|
81
|
+
imageMobileHeight: s,
|
|
82
|
+
isMobile: n,
|
|
83
|
+
onClick: i
|
|
84
|
+
}
|
|
85
|
+
) });
|
|
86
|
+
});
|
|
87
|
+
export {
|
|
88
|
+
v as default
|
|
89
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./consts-goSZX3xP.cjs"),E=require("./IconButton.cjs"),I=require("./Button.cjs"),r=require("./utils-RnrgDDZP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./consts-goSZX3xP.cjs"),E=require("./IconButton.cjs"),I=require("./Button.cjs"),r=require("./utils-RnrgDDZP.cjs"),L=require("./useDetectMobile-zkbzoOGV.cjs"),g=require("./index-BeVjdODO.cjs"),T=M.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1.5rem;
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
`,z=a.memo(g.DetailedProductCard),R=a.forwardRef((n,p)=>{const{title:l,icon:c,items:o,limit:f=4,isLoading:s=!1,onSelectCard:b=()=>{},onLoadMore:h=()=>{},onButtonAction:w=()=>{},getImage:y=()=>{},viewAllbuttonLink:d,viewAllButonText:m="View all",negotiableText:_,freeText:k,loadMoreButtonIcon:v="angle-down",sponsoredText:C,onBookmark:N=()=>{},
|
|
73
|
+
`,z=a.memo(g.DetailedProductCard),R=a.forwardRef((n,p)=>{const{title:l,icon:c,items:o,limit:f=4,isLoading:s=!1,onSelectCard:b=()=>{},onLoadMore:h=()=>{},onButtonAction:w=()=>{},getImage:y=()=>{},viewAllbuttonLink:d,viewAllButonText:m="View all",negotiableText:_,freeText:k,loadMoreButtonIcon:v="angle-down",sponsoredText:C,onBookmark:N=()=>{},actionComponent:S,componentName:j,hasNextPage:q=!1}=n,u=L.useDetectMobile(),P=a.useMemo(()=>o==null?void 0:o.map((e,i)=>t.jsx(z,{name: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,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(U,D)=>b({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:D}),imageUrl:y(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:_,freeText:k,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:C,onBookmark:N,actionComponent:S,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:j},sellerName:e==null?void 0:e.sellerName,forCart:e==null?void 0:e.forCart,forOrder:e==null?void 0:e.forOrder,contactSeller:e==null?void 0:e.contactSeller,hasVariants:e==null?void 0:e.hasVariants},i)),[o]);return t.jsxs(T,{ref:p,limit:f,children:[t.jsxs("div",{className:"section__heading",children:[r.isDefinedNotEmptyString(l)&&t.jsxs("div",{className:"section__title",children:[r.isDefinedNotEmptyString(c)&&t.jsx("i",{className:c})," ",l]}),u&&r.isDefinedNotEmptyString(d)&&r.isDefinedNotEmptyString(m)&&!s&&t.jsx(I,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var i;(i=e==null?void 0:e.target)==null||i.blur(),w(d)},borderRadius:"curved",className:"section__view-all",children:m})]}),t.jsx(g.SuspenseDetailedProductCard,{isLoading:s,keyPrefix:"detailed-product-card-skeleton",children:t.jsx("div",{className:"section__items",children:P})}),!u&&!s&&q&&t.jsx(E,{icon:v,borderRadius:"curved",btnType:"basic",color:"neutral",className:"section__show-more",onClick:h})]})});module.exports=R;
|
|
@@ -6,7 +6,7 @@ import E from "./IconButton.js";
|
|
|
6
6
|
import U from "./Button.js";
|
|
7
7
|
import { k as i } from "./utils-Dc5zIpaz.js";
|
|
8
8
|
import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
|
|
9
|
-
import { D as j, S as A } from "./index-
|
|
9
|
+
import { D as j, S as A } from "./index-DrtxDu6u.js";
|
|
10
10
|
const F = T.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
@@ -97,12 +97,12 @@ const F = T.div`
|
|
|
97
97
|
viewAllbuttonLink: m,
|
|
98
98
|
viewAllButonText: d = "View all",
|
|
99
99
|
negotiableText: _,
|
|
100
|
-
freeText:
|
|
101
|
-
loadMoreButtonIcon:
|
|
100
|
+
freeText: y,
|
|
101
|
+
loadMoreButtonIcon: k = "angle-down",
|
|
102
102
|
sponsoredText: v,
|
|
103
103
|
onBookmark: C = () => {
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
actionComponent: N,
|
|
106
106
|
componentName: S,
|
|
107
107
|
hasNextPage: P = !1
|
|
108
108
|
} = a, u = $(), M = L(() => t == null ? void 0 : t.map((e, r) => /* @__PURE__ */ o(
|
|
@@ -122,7 +122,7 @@ const F = T.div`
|
|
|
122
122
|
isFree: e == null ? void 0 : e.isFree,
|
|
123
123
|
isNegotiable: e == null ? void 0 : e.isNegotiable,
|
|
124
124
|
negotiableText: _,
|
|
125
|
-
freeText:
|
|
125
|
+
freeText: y,
|
|
126
126
|
tags: e == null ? void 0 : e.tags,
|
|
127
127
|
categoryCode: e == null ? void 0 : e.categoryCode,
|
|
128
128
|
condition: e == null ? void 0 : e.condition,
|
|
@@ -130,7 +130,7 @@ const F = T.div`
|
|
|
130
130
|
trade: e == null ? void 0 : e.trade,
|
|
131
131
|
sponsoredText: v,
|
|
132
132
|
onBookmark: C,
|
|
133
|
-
|
|
133
|
+
actionComponent: N,
|
|
134
134
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
135
135
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
136
136
|
metadata: { accessor: e == null ? void 0 : e.accessor, name: S },
|
|
@@ -176,7 +176,7 @@ const F = T.div`
|
|
|
176
176
|
!u && !n && P && /* @__PURE__ */ o(
|
|
177
177
|
E,
|
|
178
178
|
{
|
|
179
|
-
icon:
|
|
179
|
+
icon: k,
|
|
180
180
|
borderRadius: "curved",
|
|
181
181
|
btnType: "basic",
|
|
182
182
|
color: "neutral",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),F=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./style-CkcozOY6.cjs"),w=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),T=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),F=require("./Button.cjs"),l=require("./utils-RnrgDDZP.cjs"),B=require("./useDetectMobile-zkbzoOGV.cjs"),R=require("./style-CkcozOY6.cjs"),w=require("./index-BeVjdODO.cjs"),I=require("./index-CSNxZFTX.cjs"),_=T.styled.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: ${n=>`repeat(${n.limit}, minmax(0, 1fr))`};
|
|
4
4
|
gap: 1.25rem;
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
/* Safari and Chrome */
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
`,j=c.memo(w.DetailedProductCard),$=c.forwardRef((n,P)=>{const{icon:d,title:v,buttonLink:u,items:
|
|
29
|
+
`,j=c.memo(w.DetailedProductCard),$=c.forwardRef((n,P)=>{const{icon:d,title:v,buttonLink:u,items:i,buttonText:m,limit:a=4,onSelectCard:g=()=>{},onButtonAction:D=()=>{},isLoading:p=!1,getImage:b=()=>{},negotiableText:k,freeText:y,options:r,onSelectOption:S=()=>{},productsToolbarName:U="All",sponsoredText:C,onBookmark:N=()=>{},actionComponent:f,componentName:h}=n,q=B.useDetectMobile(),L=c.useMemo(()=>t.jsx(t.Fragment,{children:q===!0?i==null?void 0:i.map((e,o)=>t.jsx(j,{name: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,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(M,s)=>g({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),sellerName:e==null?void 0:e.sellerName,imageUrl:b(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:k,freeText:y,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:C,onBookmark:N,actionComponent:f,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:h}},o)):i==null?void 0:i.slice(0,a).map((e,o)=>t.jsx(j,{name: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,sponsored:e==null?void 0:e.sponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:(M,s)=>g({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:s}),imageUrl:b(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:k,freeText:y,tags:e==null?void 0:e.tags,categoryCode:e==null?void 0:e.categoryCode,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:C,onBookmark:N,actionComponent:f,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{accessor:e==null?void 0:e.accessor,name:h},sellerName:e==null?void 0:e.sellerName},o))}),[i,q,a]);return t.jsxs(R.TitleWithOptionsSectionWrapper,{ref:P,children:[t.jsxs("div",{className:"regular-title",children:[t.jsxs("div",{className:"regular-title-text",children:[l.isDefinedNotEmptyString(d)&&t.jsx("i",{className:d}),t.jsx("span",{children:v})]}),l.isDefinedNotEmptyString(u)&&l.isDefinedNotEmptyString(m)&&!p&&t.jsx(F,{type:"button",btnType:"tinted",color:"neutral",onClick:e=>{var o;(o=e==null?void 0:e.target)==null||o.blur(),D(u)},borderRadius:"curved",className:"button-link",children:m})]}),(r==null?void 0:r.length)>0&&t.jsx(I.SelectBar,{items:r,onRemove:e=>{S(e)},onSelect:e=>{S(e)},labelKey:"name",valueKey:"code",noMargin:!0,productsToolbarName:U}),t.jsx(w.SuspenseDetailedProductCard,{isLoading:p,keyPrefix:"detailed-products-skeleton",children:t.jsx(_,{limit:a,children:L})})]})});module.exports=$;
|
|
@@ -6,7 +6,7 @@ import R from "./Button.js";
|
|
|
6
6
|
import { k as m } from "./utils-Dc5zIpaz.js";
|
|
7
7
|
import { u as W } from "./useDetectMobile-Bkvj0VMa.js";
|
|
8
8
|
import { T as $ } from "./style-C7FUSHmS.js";
|
|
9
|
-
import { D as j, S as z } from "./index-
|
|
9
|
+
import { D as j, S as z } from "./index-DrtxDu6u.js";
|
|
10
10
|
import { S as A } from "./index-BGiZlEQt.js";
|
|
11
11
|
const K = I.div`
|
|
12
12
|
display: grid;
|
|
@@ -60,7 +60,7 @@ const K = I.div`
|
|
|
60
60
|
sponsoredText: S,
|
|
61
61
|
onBookmark: C = () => {
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
actionComponent: h,
|
|
64
64
|
componentName: N
|
|
65
65
|
} = a, w = W(), M = E(() => /* @__PURE__ */ o(F, { children: w === !0 ? r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ o(
|
|
66
66
|
P,
|
|
@@ -92,7 +92,7 @@ const K = I.div`
|
|
|
92
92
|
trade: e == null ? void 0 : e.trade,
|
|
93
93
|
sponsoredText: S,
|
|
94
94
|
onBookmark: C,
|
|
95
|
-
|
|
95
|
+
actionComponent: h,
|
|
96
96
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
97
97
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
98
98
|
metadata: { accessor: e == null ? void 0 : e.accessor, name: N }
|
|
@@ -128,7 +128,7 @@ const K = I.div`
|
|
|
128
128
|
trade: e == null ? void 0 : e.trade,
|
|
129
129
|
sponsoredText: S,
|
|
130
130
|
onBookmark: C,
|
|
131
|
-
|
|
131
|
+
actionComponent: h,
|
|
132
132
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
133
133
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
134
134
|
metadata: { accessor: e == null ? void 0 : e.accessor, name: N },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),s=require("react"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),T=require("./Button.cjs"),N=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),s=require("react"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=require("./consts-goSZX3xP.cjs"),$=require("./useDetectMobile-zkbzoOGV.cjs"),T=require("./Button.cjs"),N=require("./index-BeVjdODO.cjs"),F=_.styled.div`
|
|
2
2
|
padding: 1.75rem 3rem;
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-columns: ${a=>`repeat(${a.limit||5}, minmax(0, 1fr))`};
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
}
|
|
74
|
-
`,S=s.memo(N.DetailedProductCard),I=s.forwardRef((a,P)=>{const{items:r,limit:n=5,limitMobile:l=4,onSelectCard:u=()=>{},title:j="Urgent sale",showLessText:q="Show less",showMoreText:L="Show more",isLoading:g=!1,getImage:p=()=>{},negotiableText:b,freeText:
|
|
74
|
+
`,S=s.memo(N.DetailedProductCard),I=s.forwardRef((a,P)=>{const{items:r,limit:n=5,limitMobile:l=4,onSelectCard:u=()=>{},title:j="Urgent sale",showLessText:q="Show less",showMoreText:L="Show more",isLoading:g=!1,getImage:p=()=>{},negotiableText:b,freeText:f,onBookmark:k=()=>{},actionComponent:h,componentName:y,sponsoredText:w}=a,d=$.useDetectMobile(),[i,M]=s.useState(!1),U=s.useMemo(()=>{var t;return o.jsx(o.Fragment,{children:d===!0?(t=r==null?void 0:r.slice(0,i===!0?r==null?void 0:r.length:l))==null?void 0:t.map((e,m)=>o.jsx(S,{sellerName:e==null?void 0:e.sellerName,name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,categoryCode:e==null?void 0:e.categoryCode,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,sponsored:e==null?void 0:e.sponsored,onSelectCard:(v,c)=>u({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:c}),image:e==null?void 0:e.image,imageUrl:p(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,imageComponent:e==null?void 0:e.imageComponent,negotiableText:b,freeText:f,onBookmark:k,actionComponent:h,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{name:y,accessor:e==null?void 0:e.accessor},tags:e==null?void 0:e.tags,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:w},m)):r==null?void 0:r.slice(0,n).map((e,m)=>o.jsx(S,{name:e==null?void 0:e.name,price:e==null?void 0:e.price,sellingPrice:e==null?void 0:e.sellingPrice,isFree:e==null?void 0:e.isFree,isNegotiable:e==null?void 0:e.isNegotiable,currency:e==null?void 0:e.currency,categoryCode:e==null?void 0:e.categoryCode,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,sponsored:e==null?void 0:e.sponsored,onSelectCard:(v,c)=>u({uuid:e==null?void 0:e.uuid,nameSlug:e==null?void 0:e.nameSlug,cardRef:c}),image:e==null?void 0:e.image,imageUrl:p(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid)||null,imageComponent:e==null?void 0:e.imageComponent,negotiableText:b,freeText:f,onBookmark:k,actionComponent:h,bookmarked:e==null?void 0:e.bookmarked,bookmarkLists:e==null?void 0:e.bookmarkLists,metadata:{name:y,accessor:e==null?void 0:e.accessor},tags:e==null?void 0:e.tags,condition:e==null?void 0:e.condition,quantity:e==null?void 0:e.quantity,trade:e==null?void 0:e.trade,sponsoredText:w,sellerName:e==null?void 0:e.sellerName},m))})},[r,d,n,l,i]);return o.jsx(N.SuspenseDetailedProductCard,{isLoading:g,keyPrefix:"urgent-sale-products-skeleton",children:o.jsxs(F,{ref:P,limit:n,children:[o.jsxs("div",{className:"urgent-tag",children:[o.jsx("i",{className:"mng mng-lnc-bolt-filled"}),o.jsx("span",{children:j})]})," ",U," ",d===!0&&l<(r==null?void 0:r.length)&&!g&&o.jsx(T,{className:"show-more",btnType:"basic",type:"button",color:"neutral",onClick:t=>{var e;(e=t==null?void 0:t.target)==null||e.blur(),M(!i)},children:i===!0?q:L})]})})});module.exports=I;
|
|
@@ -4,7 +4,7 @@ import { s as q } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
4
4
|
import { M as B, S as D } from "./consts-BuFChS64.js";
|
|
5
5
|
import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
6
|
import j from "./Button.js";
|
|
7
|
-
import { D as z, S as A } from "./index-
|
|
7
|
+
import { D as z, S as A } from "./index-DrtxDu6u.js";
|
|
8
8
|
const G = q.div`
|
|
9
9
|
padding: 1.75rem 3rem;
|
|
10
10
|
display: grid;
|
|
@@ -93,9 +93,9 @@ const G = q.div`
|
|
|
93
93
|
},
|
|
94
94
|
negotiableText: p,
|
|
95
95
|
freeText: f,
|
|
96
|
-
onBookmark:
|
|
96
|
+
onBookmark: b = () => {
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
actionComponent: k,
|
|
99
99
|
componentName: h,
|
|
100
100
|
sponsoredText: y
|
|
101
101
|
} = a, l = E(), [t, M] = I(!1), U = _(() => {
|
|
@@ -124,8 +124,8 @@ const G = q.div`
|
|
|
124
124
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
125
125
|
negotiableText: p,
|
|
126
126
|
freeText: f,
|
|
127
|
-
onBookmark:
|
|
128
|
-
|
|
127
|
+
onBookmark: b,
|
|
128
|
+
actionComponent: k,
|
|
129
129
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
130
130
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
131
131
|
metadata: { name: h, accessor: e == null ? void 0 : e.accessor },
|
|
@@ -160,8 +160,8 @@ const G = q.div`
|
|
|
160
160
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
161
161
|
negotiableText: p,
|
|
162
162
|
freeText: f,
|
|
163
|
-
onBookmark:
|
|
164
|
-
|
|
163
|
+
onBookmark: b,
|
|
164
|
+
actionComponent: k,
|
|
165
165
|
bookmarked: e == null ? void 0 : e.bookmarked,
|
|
166
166
|
bookmarkLists: e == null ? void 0 : e.bookmarkLists,
|
|
167
167
|
metadata: { name: h, accessor: e == null ? void 0 : e.accessor },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("react"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),l=require("./utils-RnrgDDZP.cjs"),we=require("./index-uwl7BjRF.cjs"),P=require("./Badge.cjs"),ve=require("./Popover.cjs"),je=require("./PopoverTrigger.cjs"),xe=require("./PopoverContent.cjs"),ke=require("./useDetectMobile-zkbzoOGV.cjs"),r=require("./style-BAcV7F53.cjs"),Se=x.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 0.5rem;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
gap: 0.25rem;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
@media (max-width: ${
|
|
106
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
107
107
|
overflow: visible;
|
|
108
108
|
|
|
109
109
|
& .wrapper-card-3 {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
&:hover .product-image-wrapper img {
|
|
167
167
|
transform: scale(1.1);
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,ye=x.styled.div`
|
|
170
170
|
position: relative;
|
|
171
171
|
overflow: hidden;
|
|
172
172
|
border-radius: 0.75rem;
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
transition: var(--transition, all 0.3s ease);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
@media (max-width: ${
|
|
222
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
223
223
|
& img {
|
|
224
224
|
width: 8.875rem;
|
|
225
225
|
height: 8.875rem;
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
top: unset;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
`,
|
|
237
|
+
`,Pe=x.styled.div`
|
|
238
238
|
background: var(--white, #fff);
|
|
239
239
|
z-index: 1;
|
|
240
240
|
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
color: var(--gray-950, #14161a);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
287
|
+
`,_e=x.styled.div`
|
|
288
288
|
display: flex;
|
|
289
289
|
align-items: center;
|
|
290
290
|
gap: 0.25rem;
|
|
@@ -296,12 +296,12 @@
|
|
|
296
296
|
font-size: 1rem;
|
|
297
297
|
color: var(--warning-500, #F59E0B);
|
|
298
298
|
}
|
|
299
|
-
`,
|
|
300
|
-
@media (max-width: ${
|
|
299
|
+
`,Ce=c.forwardRef(({sponsoredText:i="Sponsored"},k)=>e.jsxs(_e,{ref:k,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),Re="Vehicles_Cars",Le="Vehicles_Motorcycles",Ne="Vehicles_Trucks",We="Vehicles_AgriculturalMachines_Tractors",$e="Vehicles_ConstructionMachines",Ee="Vehicles_Bus",Te="Vehicles_Campers",qe="RealEstates_",s={Mileage:{icon:"mng-lnc-road",measure:"km"},YearOfProduction:{icon:"mng-lnc-calendar",measure:""},Fuel:{icon:"mng-lnc-gas-station",measure:""},EnginePowerKW:{icon:"mng-lnc-engine",measure:"kW"},Transmission:{icon:"mng-lnc-transmission",measure:""},Model:{icon:"mng-lnc-application",measure:""},Brand:{icon:"mng-lnc-car--front",measure:""},SurfaceArea:{icon:"mng-lnc-right-angle",measure:""},Floor:{icon:"mng-lnc-elevator",measure:""},FurnishedCondition:{icon:"mng-lnc-sofa-01",measure:""},AdType:{icon:"mng-lnc-notes",measure:""},NumberOfRooms:{icon:"mng-lnc-meeting-room",measure:""},HeatingType:{icon:"mng-lnc-heat",measure:""},AirConditioning:{icon:"mng-lnc-air-conditioner",measure:""},Type:{icon:"mng-lnc-house-building",measure:""},Parking:{icon:"mng-lnc-parking-area-circle",measure:""},Internet:{icon:"mng-lnc-wifi-02",measure:""},State:{icon:"mng-lnc-settings-1",measure:""},NumberOfPremises:{icon:"mng-lnc-meeting-room",measure:""},Pool:{icon:"mng-lnc-pool",measure:""},Approach:{icon:"mng-lnc-driveway",measure:""},NumberOfBeds:{icon:"mng-lnc-bed",measure:""},Kitchen:{icon:"mng-lnc-fridge",measure:""},BathroomToilet:{icon:"mng-lnc-bath",measure:""},default:{icon:" mng-lnc-clock--filled",measure:""}},Oe=c.forwardRef((i,k)=>{const{uuid:w,sellerUuid:_,name:Y,price:C=0,sellingPrice:S,currency:y,isNegotiable:R,isFree:L,imageUrl:Z,location:A,sponsored:K,imageComponent:q,onSelectCard:H=()=>{},freeText:Q="Free",negotiableText:J="Negotiable",tags:t=[],categoryCode:N,condition:O,quantity:W,trade:V,sponsoredText:ee,forCart:re,forOrder:oe,contactSeller:ne,hasVariants:te,hasQuantities:ie,status:se,onBookmark:$=()=>{},actionComponent:v,bookmarked:B,bookmarkLists:ae,metadata:f,sellerName:z}=i,E=ke.useDetectMobile(),le=()=>{var m;if(!l.isDefined(v))return e.jsx(e.Fragment,{});const o=v,n=(m=v==null?void 0:v.props)==null?void 0:m.children,d=c.cloneElement(n,{key:`bookmark_pr__${B}`,bookmarked:B,productUuid:w,onAddToBookmark:()=>$(!0,w),onRemoveFromBookmark:()=>$(!1,w),bookmarkedUuidList:ae,sellerUuid:_,handleBookmarking:$,forCart:re,forOrder:oe,contactSeller:ne,hasVariants:te,status:se,quantity:W,hasQuantities:ie});return c.cloneElement(o,void 0,d)},M=[Re,Le,Ne,We,$e,Ee,Te,qe].some(o=>N==null?void 0:N.includes(o)),[ce,F]=c.useState(!1),de=()=>{F(!0)},me=()=>{F(!1)},a=c.useRef(null),p=c.useRef([]),[he,G]=c.useState(t==null?void 0:t.length),ue=()=>{var m,b,j;if(!(a!=null&&a.current)||((m=p==null?void 0:p.current)==null?void 0:m.length)===0)return;if(E){G(t==null?void 0:t.length);return}const o=(b=a==null?void 0:a.current)==null?void 0:b.offsetWidth;let n=0,d=0;for(let h=0;h<(t==null?void 0:t.length);h++){const g=((j=p==null?void 0:p.current[h])==null?void 0:j.offsetWidth)||0,u=n+g+4;if(u<=o)n+=u,d++;else break}G(d)};c.useEffect(()=>{const o=a==null?void 0:a.current;if(!o)return;const n=new ResizeObserver(()=>{ue()});return n.observe(o),()=>{n.disconnect()}},[t,E]);const pe=()=>{var o;return e.jsx("div",{className:"tags-popover__trigger",children:(o=t==null?void 0:t.slice(0,he))==null?void 0:o.map((n,d)=>{var g,u,D,U,X;const m=((g=s==null?void 0:s[n==null?void 0:n.code])==null?void 0:g.icon)??((u=s==null?void 0:s.default)==null?void 0:u.icon)??"",b=((D=n==null?void 0:n.measurementUnit)==null?void 0:D.symbol)??((U=s==null?void 0:s[n==null?void 0:n.code])==null?void 0:U.measure)??"",h=[(n==null?void 0:n.value)??((X=n==null?void 0:n.multiOptions)==null?void 0:X[0])??"",b].filter(Boolean).join(" ");return e.jsxs(P,{ref:be=>p.current[d]=be,className:"tag",children:[e.jsx("i",{className:m}),h]},`detailed-products-section-tag__${d+1}`)})})},ge=()=>e.jsx("div",{className:"tags-popover__content",children:t==null?void 0:t.map((o,n)=>{var h,g,u;const d=((h=o==null?void 0:o.measurementUnit)==null?void 0:h.symbol)??((g=s==null?void 0:s[o==null?void 0:o.code])==null?void 0:g.measure)??"",b=[(o==null?void 0:o.value)??((u=o==null?void 0:o.multiOptions)==null?void 0:u[0])??"",d].filter(Boolean).join(" "),j=o==null?void 0:o.name;return e.jsxs("div",{children:[e.jsx("span",{className:"tags-popover__name",children:`${j}: `}),e.jsx("span",{className:"tags-popover__value",children:b})]},`detailed-products-section-tag-dropdown__${n+1}`)})}),fe=()=>e.jsxs(e.Fragment,{children:[O&&e.jsx(P,{className:"tag",children:O},"detailed-products-section-tag__condition"),W&&e.jsx(P,{className:"tag",children:W},"detailed-products-section-tag__quantity"),V&&e.jsx(P,{className:"tag",children:V},"detailed-products-section-tag__trade")]}),I=C>0&&y&&R!==!0&&L!==!0&&C!==S;return e.jsxs(Se,{ref:a,className:"product-card","data-accessor":f==null?void 0:f.accessor,name:f==null?void 0:f.name,onClick:o=>H(o,a),children:[e.jsxs(ye,{className:"product-image-wrapper",children:[e.jsx(le,{}),l.isDefined(q)?q:e.jsx(we.ProductImageWrapper,{src:Z})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"seller",title:z,children:z}),e.jsx("div",{className:"card-title",children:Y})]}),e.jsxs("div",{className:"wrapper-card-3",children:[M&&e.jsx("div",{...E?{}:{onMouseEnter:de,onMouseLeave:me},children:e.jsxs(ve,{placement:"bottom",open:ce,children:[e.jsx(je,{children:pe()}),e.jsx(xe,{style:{all:"unset"},children:e.jsx(Pe,{children:ge()})})]})}),!M&&fe()]}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:`price-text ${I?"new-price":""}`,children:[S>0&&y&&R!==!0&&L!==!0&&e.jsx("div",{children:`${l.formatPrice(S)} ${l.GetCurrencySymbol(y)}`}),I&&e.jsx("div",{className:`${S>0?"full-price":""}`,children:`${l.formatPrice(C)} ${l.GetCurrencySymbol(y)}`}),R&&J,L&&Q]}),e.jsx("div",{className:"location-text",children:A})]}),K===!0&&e.jsx(Ce,{sponsoredText:ee})]})}),Ve=x.styled(r.SkeletonRowWrapper)`
|
|
300
|
+
@media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
|
|
301
301
|
& > div {
|
|
302
302
|
&:nth-of-type(even) {
|
|
303
303
|
display: none;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
`,
|
|
307
|
+
`,Be=({keyPrefix:i})=>e.jsxs(Ve,{children:[e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonColumnWrapper,{height:"1rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"})}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonColumnWrapper,{height:"2rem",children:e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})})]},`${i}-1`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-2`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-3`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-4`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-5`),e.jsxs(r.SkeletonColumnWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonSquarePlaceholder,{height:"100%",width:"100%",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1rem",borderRadius:"0.75rem"}),e.jsxs(r.SkeletonRowWrapper,{gap:"0.5rem",noGradient:!0,children:[e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"}),e.jsx(r.SkeletonLinePlaceholder,{height:"1.5rem",borderRadius:"0.75rem"})]}),e.jsx(r.SkeletonLinePlaceholder,{height:"2rem",borderRadius:"0.75rem"})]},`${i}-6`)]}),ze=({keyPrefix:i,isLoading:k=!1,fallbackComponent:w=e.jsx(e.Fragment,{}),children:_})=>e.jsx(c.Suspense,{fallbackComponent:w,children:k===!0?e.jsx(Be,{keyPrefix:i}):_});exports.DetailedProductCard=Oe;exports.SuspenseDetailedProductCard=ze;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as ne, useState as
|
|
1
|
+
import { jsxs as t, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ne, useState as Q, useRef as Z, useEffect as Te, cloneElement as J, Suspense as Ve } from "react";
|
|
3
3
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M } from "./consts-BuFChS64.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import { P as
|
|
4
|
+
import { M as F } from "./consts-BuFChS64.js";
|
|
5
|
+
import { t as G, o as Ee, a as Oe, l as ee, p as re, G as oe } from "./utils-Dc5zIpaz.js";
|
|
6
|
+
import { P as ze } from "./index-C_NnINik.js";
|
|
7
7
|
import S from "./Badge.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
8
|
+
import Be from "./Popover.js";
|
|
9
|
+
import We from "./PopoverTrigger.js";
|
|
10
|
+
import Ge from "./PopoverContent.js";
|
|
11
|
+
import { u as Me } from "./useDetectMobile-Bkvj0VMa.js";
|
|
12
12
|
import { a as f, S as p, c as w, b as n } from "./style-CXMUA6cI.js";
|
|
13
|
-
const
|
|
13
|
+
const Fe = C.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
gap: 0.5rem;
|
|
@@ -20,7 +20,7 @@ const Ge = C.div`
|
|
|
20
20
|
|
|
21
21
|
& .seller {
|
|
22
22
|
text-transform: uppercase;
|
|
23
|
-
${
|
|
23
|
+
${G()}
|
|
24
24
|
color: var(--gray-500);
|
|
25
25
|
font-size: 0.625rem;
|
|
26
26
|
font-weight: 400;
|
|
@@ -73,13 +73,13 @@ const Ge = C.div`
|
|
|
73
73
|
& .card-title {
|
|
74
74
|
font-size: 0.875rem;
|
|
75
75
|
font-weight: 600;
|
|
76
|
-
${
|
|
76
|
+
${Ee(2)}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
& .price-text {
|
|
80
80
|
font-size: 1rem;
|
|
81
81
|
font-weight: 600;
|
|
82
|
-
${
|
|
82
|
+
${G()}
|
|
83
83
|
display: flex;
|
|
84
84
|
align-items: end;
|
|
85
85
|
gap: 0.5rem;
|
|
@@ -102,7 +102,7 @@ const Ge = C.div`
|
|
|
102
102
|
font-size: 0.75rem;
|
|
103
103
|
font-weight: 400;
|
|
104
104
|
color: var(--gray-600, #676e79);
|
|
105
|
-
${
|
|
105
|
+
${G()}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
& .tags-wrapper {
|
|
@@ -115,7 +115,7 @@ const Ge = C.div`
|
|
|
115
115
|
gap: 0.25rem;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
@media (max-width: ${
|
|
118
|
+
@media (max-width: ${F + "px"}) {
|
|
119
119
|
overflow: visible;
|
|
120
120
|
|
|
121
121
|
& .wrapper-card-3 {
|
|
@@ -178,7 +178,7 @@ const Ge = C.div`
|
|
|
178
178
|
&:hover .product-image-wrapper img {
|
|
179
179
|
transform: scale(1.1);
|
|
180
180
|
}
|
|
181
|
-
`,
|
|
181
|
+
`, Ie = C.div`
|
|
182
182
|
position: relative;
|
|
183
183
|
overflow: hidden;
|
|
184
184
|
border-radius: 0.75rem;
|
|
@@ -199,7 +199,7 @@ const Ge = C.div`
|
|
|
199
199
|
|
|
200
200
|
width: 2.25rem;
|
|
201
201
|
height: 2.25rem;
|
|
202
|
-
border-radius: ${(a) =>
|
|
202
|
+
border-radius: ${(a) => Oe(a.theme, "curved")};
|
|
203
203
|
border: 1px solid var(--gray-95008);
|
|
204
204
|
background-color: white;
|
|
205
205
|
color: var(--gray-950);
|
|
@@ -231,7 +231,7 @@ const Ge = C.div`
|
|
|
231
231
|
transition: var(--transition, all 0.3s ease);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
@media (max-width: ${
|
|
234
|
+
@media (max-width: ${F + "px"}) {
|
|
235
235
|
& img {
|
|
236
236
|
width: 8.875rem;
|
|
237
237
|
height: 8.875rem;
|
|
@@ -246,7 +246,7 @@ const Ge = C.div`
|
|
|
246
246
|
top: unset;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`, je = C.div`
|
|
250
250
|
background: var(--white, #fff);
|
|
251
251
|
z-index: 1;
|
|
252
252
|
|
|
@@ -296,7 +296,7 @@ const Ge = C.div`
|
|
|
296
296
|
color: var(--gray-950, #14161a);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
`,
|
|
299
|
+
`, De = C.div`
|
|
300
300
|
display: flex;
|
|
301
301
|
align-items: center;
|
|
302
302
|
gap: 0.25rem;
|
|
@@ -308,10 +308,10 @@ const Ge = C.div`
|
|
|
308
308
|
font-size: 1rem;
|
|
309
309
|
color: var(--warning-500, #F59E0B);
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`, Ue = ne(({ sponsoredText: a = "Sponsored" }, R) => /* @__PURE__ */ t(De, { ref: R, className: "sponsored-line", children: [
|
|
312
312
|
/* @__PURE__ */ e("i", { className: "mng-lnc-paw2" }),
|
|
313
313
|
/* @__PURE__ */ e("span", { children: a })
|
|
314
|
-
] })),
|
|
314
|
+
] })), Le = "Vehicles_Cars", Xe = "Vehicles_Motorcycles", qe = "Vehicles_Trucks", xe = "Vehicles_AgriculturalMachines_Tractors", Ye = "Vehicles_ConstructionMachines", Ae = "Vehicles_Bus", Ke = "Vehicles_Campers", He = "RealEstates_", s = {
|
|
315
315
|
Mileage: {
|
|
316
316
|
icon: "mng-lnc-road",
|
|
317
317
|
measure: "km"
|
|
@@ -412,7 +412,7 @@ const Ge = C.div`
|
|
|
412
412
|
icon: " mng-lnc-clock--filled",
|
|
413
413
|
measure: ""
|
|
414
414
|
}
|
|
415
|
-
},
|
|
415
|
+
}, hr = ne((a, R) => {
|
|
416
416
|
const {
|
|
417
417
|
uuid: y,
|
|
418
418
|
sellerUuid: P,
|
|
@@ -425,72 +425,77 @@ const Ge = C.div`
|
|
|
425
425
|
imageUrl: ie,
|
|
426
426
|
location: ae,
|
|
427
427
|
sponsored: se,
|
|
428
|
-
imageComponent:
|
|
428
|
+
imageComponent: I,
|
|
429
429
|
onSelectCard: le = () => {
|
|
430
430
|
},
|
|
431
431
|
freeText: ce = "Free",
|
|
432
432
|
negotiableText: de = "Negotiable",
|
|
433
433
|
tags: i = [],
|
|
434
434
|
categoryCode: O,
|
|
435
|
-
condition:
|
|
436
|
-
quantity:
|
|
435
|
+
condition: j,
|
|
436
|
+
quantity: z,
|
|
437
437
|
trade: D,
|
|
438
438
|
sponsoredText: me,
|
|
439
439
|
forCart: he,
|
|
440
440
|
forOrder: pe,
|
|
441
|
-
contactSeller:
|
|
442
|
-
hasVariants:
|
|
441
|
+
contactSeller: ue,
|
|
442
|
+
hasVariants: ge,
|
|
443
|
+
hasQuantities: fe,
|
|
444
|
+
status: be,
|
|
443
445
|
onBookmark: B = () => {
|
|
444
446
|
},
|
|
445
|
-
|
|
447
|
+
actionComponent: k,
|
|
446
448
|
bookmarked: U,
|
|
447
|
-
bookmarkLists:
|
|
449
|
+
bookmarkLists: ve,
|
|
448
450
|
metadata: b,
|
|
449
451
|
sellerName: L
|
|
450
|
-
} = a,
|
|
452
|
+
} = a, W = Me(), we = () => {
|
|
451
453
|
var d;
|
|
452
|
-
if (!ee(k)) return /* @__PURE__ */ e(
|
|
453
|
-
const r = k, o = (d = k == null ? void 0 : k.props) == null ? void 0 : d.children, c =
|
|
454
|
+
if (!ee(k)) return /* @__PURE__ */ e(M, {});
|
|
455
|
+
const r = k, o = (d = k == null ? void 0 : k.props) == null ? void 0 : d.children, c = J(o, {
|
|
454
456
|
key: `bookmark_pr__${U}`,
|
|
455
457
|
bookmarked: U,
|
|
456
458
|
productUuid: y,
|
|
457
459
|
onAddToBookmark: () => B(!0, y),
|
|
458
460
|
onRemoveFromBookmark: () => B(!1, y),
|
|
459
|
-
bookmarkedUuidList:
|
|
461
|
+
bookmarkedUuidList: ve,
|
|
460
462
|
sellerUuid: P,
|
|
461
463
|
handleBookmarking: B,
|
|
462
464
|
forCart: he,
|
|
463
465
|
forOrder: pe,
|
|
464
|
-
contactSeller:
|
|
465
|
-
hasVariants:
|
|
466
|
+
contactSeller: ue,
|
|
467
|
+
hasVariants: ge,
|
|
468
|
+
status: be,
|
|
469
|
+
quantity: z,
|
|
470
|
+
hasQuantities: fe
|
|
466
471
|
});
|
|
467
|
-
return
|
|
472
|
+
return J(r, void 0, c);
|
|
468
473
|
}, X = [
|
|
469
|
-
De,
|
|
470
|
-
Ue,
|
|
471
474
|
Le,
|
|
472
475
|
Xe,
|
|
473
476
|
qe,
|
|
474
477
|
xe,
|
|
475
478
|
Ye,
|
|
476
|
-
|
|
479
|
+
Ae,
|
|
480
|
+
Ke,
|
|
481
|
+
He
|
|
477
482
|
].some(
|
|
478
483
|
(r) => O == null ? void 0 : O.includes(r)
|
|
479
|
-
), [
|
|
484
|
+
), [ye, q] = Q(!1), ke = () => {
|
|
480
485
|
q(!0);
|
|
481
|
-
},
|
|
486
|
+
}, _e = () => {
|
|
482
487
|
q(!1);
|
|
483
|
-
}, l =
|
|
488
|
+
}, l = Z(null), u = Z([]), [Ce, x] = Q(i == null ? void 0 : i.length), Re = () => {
|
|
484
489
|
var d, v, _;
|
|
485
|
-
if (!(l != null && l.current) || ((d =
|
|
486
|
-
if (
|
|
490
|
+
if (!(l != null && l.current) || ((d = u == null ? void 0 : u.current) == null ? void 0 : d.length) === 0) return;
|
|
491
|
+
if (W) {
|
|
487
492
|
x(i == null ? void 0 : i.length);
|
|
488
493
|
return;
|
|
489
494
|
}
|
|
490
495
|
const r = (v = l == null ? void 0 : l.current) == null ? void 0 : v.offsetWidth;
|
|
491
496
|
let o = 0, c = 0;
|
|
492
497
|
for (let m = 0; m < (i == null ? void 0 : i.length); m++) {
|
|
493
|
-
const
|
|
498
|
+
const g = ((_ = u == null ? void 0 : u.current[m]) == null ? void 0 : _.offsetWidth) || 0, h = o + g + 4;
|
|
494
499
|
if (h <= r)
|
|
495
500
|
o += h, c++;
|
|
496
501
|
else
|
|
@@ -498,25 +503,25 @@ const Ge = C.div`
|
|
|
498
503
|
}
|
|
499
504
|
x(c);
|
|
500
505
|
};
|
|
501
|
-
|
|
506
|
+
Te(() => {
|
|
502
507
|
const r = l == null ? void 0 : l.current;
|
|
503
508
|
if (!r) return;
|
|
504
509
|
const o = new ResizeObserver(() => {
|
|
505
|
-
|
|
510
|
+
Re();
|
|
506
511
|
});
|
|
507
512
|
return o.observe(r), () => {
|
|
508
513
|
o.disconnect();
|
|
509
514
|
};
|
|
510
|
-
}, [i,
|
|
511
|
-
const
|
|
515
|
+
}, [i, W]);
|
|
516
|
+
const Ne = () => {
|
|
512
517
|
var r;
|
|
513
|
-
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0,
|
|
514
|
-
var
|
|
515
|
-
const d = ((
|
|
518
|
+
return /* @__PURE__ */ e("div", { className: "tags-popover__trigger", children: (r = i == null ? void 0 : i.slice(0, Ce)) == null ? void 0 : r.map((o, c) => {
|
|
519
|
+
var g, h, A, K, H;
|
|
520
|
+
const d = ((g = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : g.icon) ?? ((h = s == null ? void 0 : s.default) == null ? void 0 : h.icon) ?? "", v = ((A = o == null ? void 0 : o.measurementUnit) == null ? void 0 : A.symbol) ?? ((K = s == null ? void 0 : s[o == null ? void 0 : o.code]) == null ? void 0 : K.measure) ?? "", m = [(o == null ? void 0 : o.value) ?? ((H = o == null ? void 0 : o.multiOptions) == null ? void 0 : H[0]) ?? "", v].filter(Boolean).join(" ");
|
|
516
521
|
return /* @__PURE__ */ t(
|
|
517
522
|
S,
|
|
518
523
|
{
|
|
519
|
-
ref: (
|
|
524
|
+
ref: (Pe) => u.current[c] = Pe,
|
|
520
525
|
className: "tag",
|
|
521
526
|
children: [
|
|
522
527
|
/* @__PURE__ */ e("i", { className: d }),
|
|
@@ -526,22 +531,22 @@ const Ge = C.div`
|
|
|
526
531
|
`detailed-products-section-tag__${c + 1}`
|
|
527
532
|
);
|
|
528
533
|
}) });
|
|
529
|
-
},
|
|
530
|
-
var m,
|
|
531
|
-
const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((
|
|
534
|
+
}, $e = () => /* @__PURE__ */ e("div", { className: "tags-popover__content", children: i == null ? void 0 : i.map((r, o) => {
|
|
535
|
+
var m, g, h;
|
|
536
|
+
const c = ((m = r == null ? void 0 : r.measurementUnit) == null ? void 0 : m.symbol) ?? ((g = s == null ? void 0 : s[r == null ? void 0 : r.code]) == null ? void 0 : g.measure) ?? "", v = [(r == null ? void 0 : r.value) ?? ((h = r == null ? void 0 : r.multiOptions) == null ? void 0 : h[0]) ?? "", c].filter(Boolean).join(" "), _ = r == null ? void 0 : r.name;
|
|
532
537
|
return /* @__PURE__ */ t("div", { children: [
|
|
533
538
|
/* @__PURE__ */ e("span", { className: "tags-popover__name", children: `${_}: ` }),
|
|
534
539
|
/* @__PURE__ */ e("span", { className: "tags-popover__value", children: v })
|
|
535
540
|
] }, `detailed-products-section-tag-dropdown__${o + 1}`);
|
|
536
|
-
}) }),
|
|
537
|
-
|
|
538
|
-
|
|
541
|
+
}) }), Se = () => /* @__PURE__ */ t(M, { children: [
|
|
542
|
+
j && /* @__PURE__ */ e(S, { className: "tag", children: j }, "detailed-products-section-tag__condition"),
|
|
543
|
+
z && /* @__PURE__ */ e(S, { className: "tag", children: z }, "detailed-products-section-tag__quantity"),
|
|
539
544
|
D && /* @__PURE__ */ e(S, { className: "tag", children: D }, "detailed-products-section-tag__trade")
|
|
540
545
|
] }), Y = T > 0 && $ && V !== !0 && E !== !0 && T !== N;
|
|
541
546
|
return (
|
|
542
547
|
// <LandingPageProductCardSkeleton />
|
|
543
548
|
/* @__PURE__ */ t(
|
|
544
|
-
|
|
549
|
+
Fe,
|
|
545
550
|
{
|
|
546
551
|
ref: l,
|
|
547
552
|
className: "product-card",
|
|
@@ -549,9 +554,9 @@ const Ge = C.div`
|
|
|
549
554
|
name: b == null ? void 0 : b.name,
|
|
550
555
|
onClick: (r) => le(r, l),
|
|
551
556
|
children: [
|
|
552
|
-
/* @__PURE__ */ t(
|
|
553
|
-
/* @__PURE__ */ e(
|
|
554
|
-
ee(
|
|
557
|
+
/* @__PURE__ */ t(Ie, { className: "product-image-wrapper", children: [
|
|
558
|
+
/* @__PURE__ */ e(we, {}),
|
|
559
|
+
ee(I) ? I : /* @__PURE__ */ e(ze, { src: ie })
|
|
555
560
|
] }),
|
|
556
561
|
/* @__PURE__ */ t("div", { className: "wrapper-card-1", children: [
|
|
557
562
|
/* @__PURE__ */ e("div", { className: "seller", title: L, children: L }),
|
|
@@ -561,17 +566,17 @@ const Ge = C.div`
|
|
|
561
566
|
X && /* @__PURE__ */ e(
|
|
562
567
|
"div",
|
|
563
568
|
{
|
|
564
|
-
...
|
|
565
|
-
onMouseEnter:
|
|
566
|
-
onMouseLeave:
|
|
569
|
+
...W ? {} : {
|
|
570
|
+
onMouseEnter: ke,
|
|
571
|
+
onMouseLeave: _e
|
|
567
572
|
},
|
|
568
|
-
children: /* @__PURE__ */ t(
|
|
569
|
-
/* @__PURE__ */ e(
|
|
570
|
-
/* @__PURE__ */ e(
|
|
573
|
+
children: /* @__PURE__ */ t(Be, { placement: "bottom", open: ye, children: [
|
|
574
|
+
/* @__PURE__ */ e(We, { children: Ne() }),
|
|
575
|
+
/* @__PURE__ */ e(Ge, { style: { all: "unset" }, children: /* @__PURE__ */ e(je, { children: $e() }) })
|
|
571
576
|
] })
|
|
572
577
|
}
|
|
573
578
|
),
|
|
574
|
-
!X &&
|
|
579
|
+
!X && Se()
|
|
575
580
|
] }),
|
|
576
581
|
/* @__PURE__ */ t("div", { className: "wrapper-card-2", children: [
|
|
577
582
|
/* @__PURE__ */ t("div", { className: `price-text ${Y ? "new-price" : ""}`, children: [
|
|
@@ -582,20 +587,20 @@ const Ge = C.div`
|
|
|
582
587
|
] }),
|
|
583
588
|
/* @__PURE__ */ e("div", { className: "location-text", children: ae })
|
|
584
589
|
] }),
|
|
585
|
-
se === !0 && /* @__PURE__ */ e(
|
|
590
|
+
se === !0 && /* @__PURE__ */ e(Ue, { sponsoredText: me })
|
|
586
591
|
]
|
|
587
592
|
}
|
|
588
593
|
)
|
|
589
594
|
);
|
|
590
|
-
}),
|
|
591
|
-
@media (max-width: ${
|
|
595
|
+
}), Qe = C(f)`
|
|
596
|
+
@media (max-width: ${F + "px"}) {
|
|
592
597
|
& > div {
|
|
593
598
|
&:nth-of-type(even) {
|
|
594
599
|
display: none;
|
|
595
600
|
}
|
|
596
601
|
}
|
|
597
602
|
}
|
|
598
|
-
`,
|
|
603
|
+
`, Ze = ({ keyPrefix: a }) => /* @__PURE__ */ t(Qe, { children: [
|
|
599
604
|
/* @__PURE__ */ t(p, { gap: "0.5rem", children: [
|
|
600
605
|
/* @__PURE__ */ e(
|
|
601
606
|
w,
|
|
@@ -732,13 +737,13 @@ const Ge = C.div`
|
|
|
732
737
|
},
|
|
733
738
|
`${a}-6`
|
|
734
739
|
)
|
|
735
|
-
] }),
|
|
740
|
+
] }), pr = ({
|
|
736
741
|
keyPrefix: a,
|
|
737
742
|
isLoading: R = !1,
|
|
738
|
-
fallbackComponent: y = /* @__PURE__ */ e(
|
|
743
|
+
fallbackComponent: y = /* @__PURE__ */ e(M, {}),
|
|
739
744
|
children: P
|
|
740
|
-
}) => /* @__PURE__ */ e(
|
|
745
|
+
}) => /* @__PURE__ */ e(Ve, { fallbackComponent: y, children: R === !0 ? /* @__PURE__ */ e(Ze, { keyPrefix: a }) : P });
|
|
741
746
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
747
|
+
hr as D,
|
|
748
|
+
pr as S
|
|
744
749
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckBoxInput.cjs"),t=require("./ColorInput.cjs"),e=require("./DateInput.cjs"),n=require("./DecimalInput.cjs"),i=require("./DecimalInputV2.cjs"),c=require("./FileInput.cjs"),a=require("./NumberInput.cjs"),s=require("./PasswordInput.cjs"),u=require("./RadioInput.cjs"),d=require("./RangeSlider.cjs"),q=require("./TextAreaInput.cjs"),l=require("./TextInput.cjs"),S=require("./TimeInput.cjs"),p=require("./Badge.cjs"),g=require("./Chip.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckBoxInput.cjs"),t=require("./ColorInput.cjs"),e=require("./DateInput.cjs"),n=require("./DecimalInput.cjs"),i=require("./DecimalInputV2.cjs"),c=require("./FileInput.cjs"),a=require("./NumberInput.cjs"),s=require("./PasswordInput.cjs"),u=require("./RadioInput.cjs"),d=require("./RangeSlider.cjs"),q=require("./TextAreaInput.cjs"),l=require("./TextInput.cjs"),S=require("./TimeInput.cjs"),p=require("./Badge.cjs"),g=require("./Chip.cjs"),m=require("./DataView.cjs"),B=require("./DetailsView.cjs"),C=require("./EditableTable.cjs"),I=require("./FormView.cjs"),D=require("./Kanban.cjs"),b=require("./KanbanCard-BDvoqTDS.cjs"),T=require("./KanbanHeader.cjs"),P=require("./KanbanFooter.cjs"),F=require("./KanbanView.cjs"),w=require("./KanbanActionsToolbar.cjs"),h=require("./Table.cjs"),f=require("./TableView.cjs"),M=require("./ActionsToolbar.cjs"),A=require("./Alert.cjs"),v=require("./Notification.cjs"),G=require("./NotificationContainer.cjs"),x=require("./NotificationMessage.cjs"),L=require("./ProgressBar.cjs"),y=require("./Spinner.cjs"),K=require("./Avatar.cjs"),N=require("./Button.cjs"),V=require("./Icon.cjs"),W=require("./IconButton.cjs"),k=require("./Link.cjs"),H=require("./Surface.cjs"),R=require("./UploadedFile.cjs"),O=require("./DoubleRangeSlider.cjs"),E=require("./DragAndDropFile.cjs"),Q=require("./DragDropFiles.cjs"),U=require("./Dropdown.cjs"),z=require("./DropdownLookup.cjs"),j=require("./MultiSelectDropdown.cjs"),J=require("./MultiSelectDropdownLookup.cjs"),X=require("./RadioGroup.cjs"),Y=require("./SearchBar.cjs"),Z=require("./Toggle.cjs"),_=require("./ButtonGroup.cjs"),$=require("./Content.cjs"),ee=require("./FlexBox.cjs"),re=require("./FlexGrid.cjs"),oe=require("./FlexGridItem.cjs"),te=require("./Footer.cjs"),ne=require("./FormField.cjs"),ie=require("./Grid.cjs"),ce=require("./GridItem.cjs"),ae=require("./Header.cjs"),se=require("./PageLayout.cjs"),ue=require("./Sidebar.cjs"),de=require("./Tabs.cjs"),qe=require("./TabItem.cjs"),le=require("./Accordion.cjs"),Se=require("./AccordionSummary.cjs"),pe=require("./AccordionDetails.cjs"),ge=require("./Breadcrumbs.cjs"),me=require("./ConfirmationForm.cjs"),Be=require("./Drawer.cjs"),Ce=require("./DropdownMenu.cjs"),Ie=require("./DropdownItem.cjs"),De=require("./NestedDropdownItem.cjs"),be=require("./Separator.cjs"),Te=require("./Modal.cjs"),Pe=require("./Pagination.cjs"),Fe=require("./Popover.cjs"),we=require("./PopoverClose.cjs"),he=require("./PopoverHeading.cjs"),fe=require("./PopoverContent.cjs"),Me=require("./PopoverTrigger.cjs"),Ae=require("./PopoverDescription.cjs"),ve=require("./SwipeableDrawer.cjs"),Ge=require("./TreeMenu.cjs"),xe=require("./MenuItem.cjs"),Le=require("./NestedMenuItem.cjs"),ye=require("./TreeMenuSeparator.cjs"),Ke=require("./MasonryGeneralCardsSection.cjs"),Ne=require("./DetailedProductsSection.cjs"),Ve=require("./DetailedProductsInfinitiveSection.cjs"),We=require("./ProductsWithBannerSection.cjs"),ke=require("./SimpleProductsSection.cjs"),He=require("./UrgentSaleProductsSection.cjs"),Re=require("./BannerSectionCarousel.cjs"),Oe=require("./BannerSectionGrid.cjs"),Ee=require("./BannerSectionSimple.cjs"),Qe=require("./BannerSectionWithList.cjs"),Ue=require("./BannerSectionWithListImage.cjs"),ze=require("./GiftCardsSection.cjs"),je=require("./BrandHitsSection.cjs"),Je=require("./FieldOfInterestsMasonrySection.cjs"),Xe=require("./FieldOfInterestsWithAvatarsCardsSection.cjs"),Ye=require("./FieldOfInterestsWithTagsCardsSection.cjs"),Ze=require("./BannerSectionBasic.cjs"),_e=require("./GeneralWithTagsCardsSection.cjs"),$e=require("./ShopCardsSection.cjs"),er=require("./QuizSection.cjs"),rr=require("./SalesCampaignsSection.cjs"),or=require("./CalorieCalculatorSection.cjs"),tr=require("./BlogCategoryCardsSection.cjs"),nr=require("./BlogProductCardsSection.cjs"),ir=require("./BlogShopCardsSection.cjs"),cr=require("./BlogCardsSponsoredSection.cjs"),ar=require("./BlogListSection.cjs"),sr=require("./AdBannerSection.cjs"),ur=require("./QuattroCardsSection.cjs"),dr=require("./FeedbackSection.cjs"),qr=require("./HelpBannerSection.cjs"),lr=require("./ContactSection.cjs"),Sr=require("./FaqSection.cjs"),pr=require("./SearchSection-BcbHP6QF.cjs"),gr=require("./StatsSection.cjs"),mr=require("./ToggleSection.cjs"),Br=require("./BlogExploreSection.cjs"),Cr=require("./BlogImagePathSection.cjs"),r=require("./ThemeProvider.cjs"),Ir=require("./CustomStyles-C86XQqBE.cjs");exports.CheckBoxInput=o;exports.ColorInput=t;exports.DateInput=e.default;exports.registerLocale=e.registerLocale;exports.DecimalInput=n;exports.DecimalInputV2=i;exports.FileInput=c;exports.NumberInput=a;exports.PasswordInput=s;exports.RadioInput=u;exports.RangeSlider=d;exports.TextAreaInput=q;exports.TextInput=l;exports.TimeInput=S;exports.Badge=p;exports.Chip=g;exports.DataView=m;exports.DetailsView=B;exports.EditableTable=C;exports.FormView=I;exports.Kanban=D;exports.KanbanCard=b.KanbanCard;exports.KanbanHeader=T;exports.KanbanFooter=P;exports.KanbanView=F;exports.KanbanActionsToolbar=w;exports.Table=h.default;exports.TableView=f;exports.ActionsToolbar=M;exports.Alert=A;exports.Notification=v;exports.NotificationContainer=G;exports.NotificationMessage=x;exports.ProgressBar=L;exports.Spinner=y;exports.Avatar=K;exports.Button=N;exports.Icon=V;exports.IconButton=W;exports.Link=k;exports.Surface=H;exports.UploadedFile=R;exports.DoubleRangeSlider=O;exports.DragAndDropFile=E;exports.DragDropFiles=Q;exports.Dropdown=U.default;exports.DropdownLookup=z;exports.MultiSelectDropdown=j;exports.MultiSelectDropdownLookup=J;exports.RadioGroup=X;exports.SearchBar=Y;exports.Toggle=Z;exports.ButtonGroup=_;exports.Content=$;exports.FlexBox=ee;exports.FlexGrid=re;exports.FlexGridItem=oe;exports.Footer=te;exports.FormField=ne;exports.Grid=ie;exports.GridItem=ce;exports.Header=ae;exports.PageLayout=se;exports.Sidebar=ue;exports.Tabs=de;exports.TabItem=qe;exports.Accordion=le;exports.AccordionSummary=Se;exports.AccordionDetails=pe.default;exports.Breadcrumbs=ge;exports.ConfirmationForm=me;exports.Drawer=Be;exports.DropdownMenu=Ce;exports.DropdownItem=Ie;exports.NestedDropdownItem=De;exports.Separator=be;exports.Modal=Te;exports.Pagination=Pe;exports.Popover=Fe;exports.PopoverClose=we;exports.PopoverHeading=he;exports.PopoverContent=fe;exports.PopoverTrigger=Me;exports.PopoverDescription=Ae;exports.SwipeableDrawer=ve;exports.TreeMenu=Ge;exports.MenuItem=xe;exports.NestedMenuItem=Le;exports.TreeMenuSeparator=ye;exports.MasonryGeneralCardsSection=Ke;exports.DetailedProductsSection=Ne;exports.DetailedProductsInfinitiveSection=Ve;exports.ProductsWithBannerSection=We;exports.SimpleProductsSection=ke;exports.UrgentSaleProductsSection=He;exports.BannerSectionCarousel=Re;exports.BannerSectionGrid=Oe;exports.BannerSectionSimple=Ee;exports.BannerSectionWithList=Qe;exports.BannerSectionWithListImage=Ue;exports.GiftCardsSection=ze;exports.BrandHitsSection=je;exports.FieldOfInterestsMasonrySection=Je;exports.FieldOfInterestsWithAvatarsCardsSection=Xe;exports.FieldOfInterestsWithTagsCardsSection=Ye;exports.BannerSectionBasic=Ze;exports.GeneralWithTagsCardsSection=_e;exports.ShopCardsSection=$e;exports.QuizSection=er;exports.SalesCampaignsSection=rr;exports.CalorieCalculatorSection=or;exports.BlogCategoryCardsSection=tr;exports.BlogProductCardsSection=nr;exports.BlogShopCardsSection=ir;exports.BlogCardsSponsoredSection=cr;exports.BlogListSection=ar;exports.AdBannerSection=sr;exports.QuattroCardsSection=ur;exports.FeedbackSection=dr;exports.HelpBannerSection=qr;exports.ContactSection=lr;exports.FaqSection=Sr;exports.SearchSection=pr.SearchSection;exports.StatsSection=gr;exports.ToggleSection=mr;exports.BlogExploreSection=Br;exports.BlogImagePathSection=Cr;exports.ThemeProvider=r.default;exports.useTheme=r.useTheme;exports.components=Ir.components;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { default as m } from "./DecimalInputV2.js";
|
|
|
6
6
|
import { default as x } from "./FileInput.js";
|
|
7
7
|
import { default as c } from "./NumberInput.js";
|
|
8
8
|
import { default as g } from "./PasswordInput.js";
|
|
9
|
-
import { default as
|
|
9
|
+
import { default as I } from "./RadioInput.js";
|
|
10
10
|
import { default as D } from "./RangeSlider.js";
|
|
11
11
|
import { default as T } from "./TextAreaInput.js";
|
|
12
12
|
import { default as P } from "./TextInput.js";
|
|
@@ -33,7 +33,7 @@ import { default as me } from "./NotificationMessage.js";
|
|
|
33
33
|
import { default as xe } from "./ProgressBar.js";
|
|
34
34
|
import { default as ce } from "./Spinner.js";
|
|
35
35
|
import { default as ge } from "./Avatar.js";
|
|
36
|
-
import { default as
|
|
36
|
+
import { default as Ie } from "./Button.js";
|
|
37
37
|
import { default as De } from "./Icon.js";
|
|
38
38
|
import { default as Te } from "./IconButton.js";
|
|
39
39
|
import { default as Pe } from "./Link.js";
|
|
@@ -60,7 +60,7 @@ import { default as no } from "./Grid.js";
|
|
|
60
60
|
import { default as io } from "./GridItem.js";
|
|
61
61
|
import { default as So } from "./Header.js";
|
|
62
62
|
import { default as Bo } from "./PageLayout.js";
|
|
63
|
-
import { default as
|
|
63
|
+
import { default as Co } from "./Sidebar.js";
|
|
64
64
|
import { default as bo } from "./Tabs.js";
|
|
65
65
|
import { default as Fo } from "./TabItem.js";
|
|
66
66
|
import { default as wo } from "./Accordion.js";
|
|
@@ -87,7 +87,7 @@ import { default as nt } from "./MenuItem.js";
|
|
|
87
87
|
import { default as it } from "./NestedMenuItem.js";
|
|
88
88
|
import { default as St } from "./TreeMenuSeparator.js";
|
|
89
89
|
import { default as Bt } from "./MasonryGeneralCardsSection.js";
|
|
90
|
-
import { default as
|
|
90
|
+
import { default as Ct } from "./DetailedProductsSection.js";
|
|
91
91
|
import { default as bt } from "./DetailedProductsInfinitiveSection.js";
|
|
92
92
|
import { default as Ft } from "./ProductsWithBannerSection.js";
|
|
93
93
|
import { default as wt } from "./SimpleProductsSection.js";
|
|
@@ -114,7 +114,7 @@ import { default as nr } from "./BlogShopCardsSection.js";
|
|
|
114
114
|
import { default as ir } from "./BlogCardsSponsoredSection.js";
|
|
115
115
|
import { default as Sr } from "./BlogListSection.js";
|
|
116
116
|
import { default as Br } from "./AdBannerSection.js";
|
|
117
|
-
import { default as
|
|
117
|
+
import { default as Cr } from "./QuattroCardsSection.js";
|
|
118
118
|
import { default as br } from "./FeedbackSection.js";
|
|
119
119
|
import { default as Fr } from "./HelpBannerSection.js";
|
|
120
120
|
import { default as wr } from "./ContactSection.js";
|
|
@@ -123,8 +123,9 @@ import { S as vr } from "./SearchSection-DDQ_K98T.js";
|
|
|
123
123
|
import { default as Lr } from "./StatsSection.js";
|
|
124
124
|
import { default as Nr } from "./ToggleSection.js";
|
|
125
125
|
import { default as Wr } from "./BlogExploreSection.js";
|
|
126
|
-
import { default as yr
|
|
127
|
-
import {
|
|
126
|
+
import { default as yr } from "./BlogImagePathSection.js";
|
|
127
|
+
import { default as Rr, useTheme as Or } from "./ThemeProvider.js";
|
|
128
|
+
import { c as Qr } from "./CustomStyles-6WboE3g5.js";
|
|
128
129
|
export {
|
|
129
130
|
wo as Accordion,
|
|
130
131
|
vo as AccordionDetails,
|
|
@@ -143,12 +144,13 @@ export {
|
|
|
143
144
|
ir as BlogCardsSponsoredSection,
|
|
144
145
|
lr as BlogCategoryCardsSection,
|
|
145
146
|
Wr as BlogExploreSection,
|
|
147
|
+
yr as BlogImagePathSection,
|
|
146
148
|
Sr as BlogListSection,
|
|
147
149
|
ur as BlogProductCardsSection,
|
|
148
150
|
nr as BlogShopCardsSection,
|
|
149
151
|
Et as BrandHitsSection,
|
|
150
152
|
Lo as Breadcrumbs,
|
|
151
|
-
|
|
153
|
+
Ie as Button,
|
|
152
154
|
Ze as ButtonGroup,
|
|
153
155
|
dr as CalorieCalculatorSection,
|
|
154
156
|
t as CheckBoxInput,
|
|
@@ -162,7 +164,7 @@ export {
|
|
|
162
164
|
p as DecimalInput,
|
|
163
165
|
m as DecimalInputV2,
|
|
164
166
|
bt as DetailedProductsInfinitiveSection,
|
|
165
|
-
|
|
167
|
+
Ct as DetailedProductsSection,
|
|
166
168
|
V as DetailsView,
|
|
167
169
|
Ge as DoubleRangeSlider,
|
|
168
170
|
Ke as DragAndDropFile,
|
|
@@ -222,17 +224,17 @@ export {
|
|
|
222
224
|
at as PopoverTrigger,
|
|
223
225
|
Ft as ProductsWithBannerSection,
|
|
224
226
|
xe as ProgressBar,
|
|
225
|
-
|
|
227
|
+
Cr as QuattroCardsSection,
|
|
226
228
|
tr as QuizSection,
|
|
227
229
|
qe as RadioGroup,
|
|
228
|
-
|
|
230
|
+
I as RadioInput,
|
|
229
231
|
D as RangeSlider,
|
|
230
232
|
ar as SalesCampaignsSection,
|
|
231
233
|
je as SearchBar,
|
|
232
234
|
vr as SearchSection,
|
|
233
235
|
Uo as Separator,
|
|
234
236
|
er as ShopCardsSection,
|
|
235
|
-
|
|
237
|
+
Co as Sidebar,
|
|
236
238
|
wt as SimpleProductsSection,
|
|
237
239
|
ce as Spinner,
|
|
238
240
|
Lr as StatsSection,
|
|
@@ -244,7 +246,7 @@ export {
|
|
|
244
246
|
bo as Tabs,
|
|
245
247
|
T as TextAreaInput,
|
|
246
248
|
P as TextInput,
|
|
247
|
-
|
|
249
|
+
Rr as ThemeProvider,
|
|
248
250
|
h as TimeInput,
|
|
249
251
|
Xe as Toggle,
|
|
250
252
|
Nr as ToggleSection,
|
|
@@ -252,7 +254,7 @@ export {
|
|
|
252
254
|
St as TreeMenuSeparator,
|
|
253
255
|
Me as UploadedFile,
|
|
254
256
|
At as UrgentSaleProductsSection,
|
|
255
|
-
|
|
257
|
+
Qr as components,
|
|
256
258
|
s as registerLocale,
|
|
257
|
-
|
|
259
|
+
Or as useTheme
|
|
258
260
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lanaco/lnc-react-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.177",
|
|
4
4
|
"description": "React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -165,7 +165,8 @@
|
|
|
165
165
|
"./SearchSection": "./dist/SearchSection.js",
|
|
166
166
|
"./StatsSection": "./dist/StatsSection.js",
|
|
167
167
|
"./ToggleSection": "./dist/ToggleSection.js",
|
|
168
|
-
"./BlogExploreSection": "./dist/BlogExploreSection.js"
|
|
168
|
+
"./BlogExploreSection": "./dist/BlogExploreSection.js",
|
|
169
|
+
"./BlogImagePathSection": "./dist/BlogImagePathSection.js"
|
|
169
170
|
},
|
|
170
171
|
"dependencies": {
|
|
171
172
|
"@dnd-kit/core": "^6.0.5",
|
package/vite.config.js
CHANGED
|
@@ -343,6 +343,10 @@ export default defineConfig({
|
|
|
343
343
|
__dirname,
|
|
344
344
|
"src/Landing Sections/blogs-sections/blog-explore-section/BlogExploreSection.jsx"
|
|
345
345
|
),
|
|
346
|
+
resolve(
|
|
347
|
+
__dirname,
|
|
348
|
+
"src/Blog Sections/blog-image-path-section/BlogImagePathSection.jsx"
|
|
349
|
+
),
|
|
346
350
|
],
|
|
347
351
|
name: "@lanaco/lnc-react-ui",
|
|
348
352
|
fileName: (format, name) => {
|