@lanaco/lnc-react-ui 4.0.94 → 4.0.96

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