@lanaco/lnc-react-ui 4.0.95 → 4.0.97
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/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +20 -20
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +16 -14
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +18 -18
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +14 -14
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +8 -8
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +6 -6
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +6 -6
- package/dist/NumberInput.cjs +19 -19
- package/dist/NumberInput.js +100 -95
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +1 -1
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +22 -22
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +13 -13
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.cjs +17 -17
- package/dist/TextInput.js +1 -1
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +1 -1
- package/dist/{suspense-product-card-detailed-Z0emIstD.js → suspense-product-card-detailed-Bez9UFMR.js} +61 -49
- package/dist/suspense-product-card-detailed-Yjo62f1v.cjs +124 -0
- package/package.json +1 -1
- package/dist/suspense-product-card-detailed-EXZJLtNh.cjs +0 -114
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),o=require("react"),r=require("./utils-BOtq2mcF.cjs"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./index-XrPpEvxt.cjs"),v=require("./consts-goSZX3xP.cjs"),g=p.styled.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 0.5rem;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
|
|
7
|
-
& .wrapper-card-1 {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: 0.38rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
& .wrapper-card-2 {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
gap: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
& img {
|
|
20
|
-
width: 100%;
|
|
21
|
-
aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
|
|
22
|
-
object-fit: cover; /* making sure the image isn't distorted */
|
|
23
|
-
border-radius: 0.75rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
& .card-title {
|
|
27
|
-
font-size: 0.875rem;
|
|
28
|
-
font-weight: 600;
|
|
29
|
-
${r.truncateTextInRows(2)}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
& .price-text {
|
|
33
|
-
font-size: 1rem;
|
|
34
|
-
font-weight: 600;
|
|
35
|
-
${r.truncateText()}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
& .location-text {
|
|
39
|
-
font-size: 0.75rem;
|
|
40
|
-
font-weight: 400;
|
|
41
|
-
color: var(--gray-600, #676e79);
|
|
42
|
-
${r.truncateText()}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
& .tags-wrapper {
|
|
46
|
-
display: flex;
|
|
47
|
-
gap: 0.5rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&:hover {
|
|
51
|
-
& .card-title {
|
|
52
|
-
color: var(--primary-500, #f59e0b);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .skeleton-img {
|
|
57
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
58
|
-
border-radius: 0.75rem;
|
|
59
|
-
border: 1px solid white;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
& .skeleton-title {
|
|
63
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
64
|
-
width: 100%;
|
|
65
|
-
height: 2.5rem;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
& .skeleton-tags {
|
|
69
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
70
|
-
width: 80%;
|
|
71
|
-
height: 1.5rem;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
& .skeleton-price {
|
|
75
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
76
|
-
width: 50%;
|
|
77
|
-
height: 2.5rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
& .skeleton-sponsored {
|
|
81
|
-
background-color: ${r.linearGradientAnimation("-90deg")};
|
|
82
|
-
width: 50%;
|
|
83
|
-
height: 1rem;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
|
|
87
|
-
& img {
|
|
88
|
-
width: 8.875rem;
|
|
89
|
-
height: 8.875rem;
|
|
90
|
-
min-width: 8.875rem;
|
|
91
|
-
min-height: 8.875rem;
|
|
92
|
-
min-width: 8.875rem;
|
|
93
|
-
min-height: 8.875rem;
|
|
94
|
-
object-fit: cover;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
& .price-text {
|
|
98
|
-
font-size: 0.875rem;
|
|
99
|
-
font-weight: 600;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`,N=p.styled.div`
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
gap: 0.25rem;
|
|
106
|
-
color: var(--gray-500);
|
|
107
|
-
font-size: 0.75rem;
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
|
|
110
|
-
& i {
|
|
111
|
-
font-size: 1rem;
|
|
112
|
-
color: var(--warning-500, #F59E0B);
|
|
113
|
-
}
|
|
114
|
-
`,b=o.forwardRef(({sponsoredText:t="Sponsored"},i)=>e.jsxs(N,{ref:i,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:t})]})),y=o.forwardRef((t,i)=>{const{uuid:a,title:n,price:s=0,currency:c,isNegotiable:d,isFree:l,imageUrl:u,sellerUuid:P,location:h,isSponsored:x,imageComponent:m,onSelectCard:f=()=>{},freeText:w="Free",negotiableText:j="Negotiable"}=t;return e.jsxs(g,{className:"product-card",onClick:f,children:[r.isDefined(m)?m:e.jsx(k.ProductImageWrapper,{src:u}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:n})}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:"price-text",children:[s>0&&c&&d!==!0&&l!==!0&&`${r.formatPrice(s)} ${r.GetCurrencySymbol(c)}`,d&&j,l&&w]}),e.jsx("div",{className:"location-text",children:h})]}),x===!0&&e.jsx(b,{})]})}),$=o.forwardRef(({},t)=>e.jsxs(g,{className:"product-card",children:[e.jsx("img",{className:"skeleton-img"}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-title"}),e.jsx("div",{className:"skeleton-tags"})]}),e.jsxs("div",{className:"wrapper-card-1",children:[e.jsx("div",{className:"skeleton-price"}),e.jsx("div",{className:"skeleton-sponsored"})]})]})),S=({limit:t=5,isLoading:i=!1,keyPrefix:a})=>e.jsx(e.Fragment,{children:Array.from({length:t},(n,s)=>e.jsx($,{isLoading:i},`${a}-skeleton-product-card-${s}`))}),C=({children:t,fallbackComponent:i=e.jsx(e.Fragment,{}),isLoading:a=!1,limit:n,keyPrefix:s})=>e.jsx(o.Suspense,{fallbackComponent:i,children:a===!0?e.jsx(S,{isLoading:a,limit:n,keyPrefix:s}):t});exports.DetailedProductCard=y;exports.SuspenseDetailedProductCard=C;
|