@lanaco/lnc-react-ui 4.0.23 → 4.0.26

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 (228) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +2 -2
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +2 -2
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +2 -2
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +2 -2
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +2 -2
  17. package/dist/Button.cjs +1 -1
  18. package/dist/Button.js +2 -2
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +2 -2
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +2 -2
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +2 -2
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +2 -2
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +2 -2
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +1 -1
  31. package/dist/{CustomStyles-Dlqxic2X.cjs → CustomStyles-CBON9fD-.cjs} +1 -1
  32. package/dist/{CustomStyles-BUSJ8bZt.js → CustomStyles-DuADCM-0.js} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +1 -1
  35. package/dist/DateInput.cjs +1 -1
  36. package/dist/DateInput.js +3 -3
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +2 -2
  39. package/dist/DecimalInputV2.cjs +1 -1
  40. package/dist/DecimalInputV2.js +2 -2
  41. package/dist/DetailsView.cjs +1 -1
  42. package/dist/DetailsView.js +2 -2
  43. package/dist/DoubleRangeSlider.cjs +1 -1
  44. package/dist/DoubleRangeSlider.js +2 -2
  45. package/dist/DragAndDropFile.cjs +1 -1
  46. package/dist/DragAndDropFile.js +2 -2
  47. package/dist/DragDropFiles.cjs +1 -1
  48. package/dist/DragDropFiles.js +2 -2
  49. package/dist/Drawer.cjs +1 -1
  50. package/dist/Drawer.js +2 -2
  51. package/dist/Dropdown.cjs +1 -1
  52. package/dist/Dropdown.js +3 -3
  53. package/dist/DropdownItem.cjs +1 -1
  54. package/dist/DropdownItem.js +2 -2
  55. package/dist/DropdownLookup.cjs +1 -1
  56. package/dist/DropdownLookup.js +2 -2
  57. package/dist/DropdownMenu.cjs +1 -1
  58. package/dist/DropdownMenu.js +2 -2
  59. package/dist/EditableTable.cjs +1 -1
  60. package/dist/EditableTable.js +2 -2
  61. package/dist/FileInput.cjs +1 -1
  62. package/dist/FileInput.js +2 -2
  63. package/dist/FlexBox.cjs +1 -1
  64. package/dist/FlexBox.js +1 -1
  65. package/dist/FlexGrid.cjs +1 -1
  66. package/dist/FlexGrid.js +1 -1
  67. package/dist/FlexGridItem.cjs +1 -1
  68. package/dist/FlexGridItem.js +2 -2
  69. package/dist/Footer.cjs +1 -1
  70. package/dist/Footer.js +1 -1
  71. package/dist/FormField.cjs +1 -1
  72. package/dist/FormField.js +2 -2
  73. package/dist/FormView.cjs +1 -1
  74. package/dist/FormView.js +2 -2
  75. package/dist/Grid.cjs +1 -1
  76. package/dist/Grid.js +1 -1
  77. package/dist/GridItem.cjs +1 -1
  78. package/dist/GridItem.js +1 -1
  79. package/dist/Header.cjs +1 -1
  80. package/dist/Header.js +1 -1
  81. package/dist/Icon.cjs +1 -1
  82. package/dist/Icon.js +2 -2
  83. package/dist/IconButton.cjs +1 -1
  84. package/dist/IconButton.js +2 -2
  85. package/dist/Kanban.cjs +2 -2
  86. package/dist/Kanban.js +85 -87
  87. package/dist/KanbanActionsToolbar.cjs +1 -1
  88. package/dist/KanbanActionsToolbar.js +2 -2
  89. package/dist/{KanbanCard-CHZ_C9kk.js → KanbanCard-BDyFaKYd.js} +2 -2
  90. package/dist/{KanbanCard-DV3VnSUi.cjs → KanbanCard-CofqdTrO.cjs} +1 -1
  91. package/dist/KanbanCard.cjs +1 -1
  92. package/dist/KanbanCard.js +2 -2
  93. package/dist/KanbanFooter.cjs +1 -1
  94. package/dist/KanbanFooter.js +1 -1
  95. package/dist/KanbanHeader.cjs +1 -1
  96. package/dist/KanbanHeader.js +1 -1
  97. package/dist/KanbanView.cjs +1 -1
  98. package/dist/KanbanView.js +3 -3
  99. package/dist/Link.cjs +1 -1
  100. package/dist/Link.js +2 -2
  101. package/dist/MenuItem.cjs +1 -1
  102. package/dist/MenuItem.js +2 -2
  103. package/dist/Modal.cjs +1 -1
  104. package/dist/Modal.js +2 -2
  105. package/dist/MultiSelectDropdown.cjs +1 -1
  106. package/dist/MultiSelectDropdown.js +2 -2
  107. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  108. package/dist/MultiSelectDropdownLookup.js +2 -2
  109. package/dist/NestedDropdownItem.cjs +1 -1
  110. package/dist/NestedDropdownItem.js +2 -2
  111. package/dist/NestedMenuItem.cjs +1 -1
  112. package/dist/NestedMenuItem.js +2 -2
  113. package/dist/NotificationContainer.cjs +1 -1
  114. package/dist/NotificationContainer.js +2 -2
  115. package/dist/NotificationMessage.cjs +1 -1
  116. package/dist/NotificationMessage.js +2 -2
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +2 -2
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +1 -1
  121. package/dist/Pagination.cjs +1 -1
  122. package/dist/Pagination.js +1 -1
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +2 -2
  125. package/dist/Popover.cjs +1 -1
  126. package/dist/Popover.js +1 -1
  127. package/dist/PopoverContent.cjs +1 -1
  128. package/dist/PopoverContent.js +2 -2
  129. package/dist/PopoverTrigger.cjs +1 -1
  130. package/dist/PopoverTrigger.js +1 -1
  131. package/dist/ProgressBar.cjs +1 -1
  132. package/dist/ProgressBar.js +2 -2
  133. package/dist/RadioGroup.cjs +1 -1
  134. package/dist/RadioGroup.js +1 -1
  135. package/dist/RadioInput.cjs +1 -1
  136. package/dist/RadioInput.js +2 -2
  137. package/dist/RangeSlider.cjs +1 -1
  138. package/dist/RangeSlider.js +2 -2
  139. package/dist/SearchBar.cjs +1 -1
  140. package/dist/SearchBar.js +1 -1
  141. package/dist/Separator.cjs +1 -1
  142. package/dist/Separator.js +2 -2
  143. package/dist/Sidebar.cjs +1 -1
  144. package/dist/Sidebar.js +2 -2
  145. package/dist/Spinner.cjs +1 -1
  146. package/dist/Spinner.js +2 -2
  147. package/dist/Surface.cjs +1 -1
  148. package/dist/Surface.js +2 -2
  149. package/dist/SwipeableDrawer.cjs +1 -1
  150. package/dist/SwipeableDrawer.js +2 -2
  151. package/dist/TabItem.cjs +1 -1
  152. package/dist/TabItem.js +2 -2
  153. package/dist/Table.cjs +1 -1
  154. package/dist/Table.js +2 -2
  155. package/dist/TableView.cjs +1 -1
  156. package/dist/TableView.js +2 -2
  157. package/dist/Tabs.cjs +1 -1
  158. package/dist/Tabs.js +1 -1
  159. package/dist/TextAreaInput.cjs +1 -1
  160. package/dist/TextAreaInput.js +2 -2
  161. package/dist/TextInput.cjs +1 -1
  162. package/dist/TextInput.js +2 -2
  163. package/dist/ThemeProvider.cjs +1 -1
  164. package/dist/ThemeProvider.js +26 -26
  165. package/dist/TimeInput.cjs +1 -1
  166. package/dist/TimeInput.js +2 -2
  167. package/dist/Toggle.cjs +1 -1
  168. package/dist/Toggle.js +2 -2
  169. package/dist/TreeMenu.cjs +1 -1
  170. package/dist/TreeMenu.js +1 -1
  171. package/dist/TreeMenuSeparator.cjs +1 -1
  172. package/dist/TreeMenuSeparator.js +2 -2
  173. package/dist/UploadedFile.cjs +1 -1
  174. package/dist/UploadedFile.js +2 -2
  175. package/dist/consts-DNVz1x1I.js +4 -0
  176. package/dist/consts-dNz9tpt4.cjs +1 -0
  177. package/dist/{index-BIlhCoy2.cjs → index-BPVoEhTF.cjs} +5 -5
  178. package/dist/index-BlV3tdJ8.cjs +87 -0
  179. package/dist/{index-Cu0xwYjD.js → index-Bq3leL2e.js} +5 -4
  180. package/dist/index-C2M7QHPq.cjs +40 -0
  181. package/dist/index-DGl-lSfF.js +122 -0
  182. package/dist/index-DcYg32le.js +69 -0
  183. package/dist/index-LdP7U1Yl.cjs +114 -0
  184. package/dist/{index-BYnWp42a.js → index-S5Cd7WrG.js} +74 -73
  185. package/dist/index-gY9e_8LL.cjs +5 -0
  186. package/dist/index-jVpIwR2G.js +159 -0
  187. package/dist/index.cjs +1 -1
  188. package/dist/index.js +156 -128
  189. package/dist/index10.cjs +90 -0
  190. package/dist/index10.js +152 -0
  191. package/dist/index11.cjs +85 -0
  192. package/dist/index11.js +125 -0
  193. package/dist/index12.cjs +194 -0
  194. package/dist/index12.js +312 -0
  195. package/dist/index13.cjs +98 -0
  196. package/dist/index13.js +221 -0
  197. package/dist/index14.cjs +161 -0
  198. package/dist/index14.js +254 -0
  199. package/dist/index15.cjs +135 -0
  200. package/dist/index15.js +1534 -0
  201. package/dist/index2.cjs +25 -0
  202. package/dist/index2.js +99 -0
  203. package/dist/index3.cjs +31 -0
  204. package/dist/index3.js +94 -0
  205. package/dist/index4.cjs +68 -0
  206. package/dist/index4.js +135 -0
  207. package/dist/index5.cjs +48 -0
  208. package/dist/index5.js +100 -0
  209. package/dist/index6.cjs +81 -0
  210. package/dist/index6.js +144 -0
  211. package/dist/index7.cjs +65 -0
  212. package/dist/index7.js +104 -0
  213. package/dist/index8.cjs +82 -0
  214. package/dist/index8.js +138 -0
  215. package/dist/index9.cjs +150 -0
  216. package/dist/index9.js +222 -0
  217. package/dist/style-C3OB0uad.cjs +76 -0
  218. package/dist/style-Ch-xOasu.js +84 -0
  219. package/dist/style.css +1 -1
  220. package/dist/useDetectMobile-BookNOsk.js +13 -0
  221. package/dist/useDetectMobile-rBe0FiP2.cjs +1 -0
  222. package/dist/useEffectOnce-DFrzfNzT.cjs +1 -0
  223. package/dist/useEffectOnce-guOKBPuL.js +7 -0
  224. package/dist/{utils-DTAPpJXU.cjs → utils-CE6bljYe.cjs} +43 -5
  225. package/dist/{utils-C52T57HO.js → utils-DtEdJZWa.js} +121 -32
  226. package/package.json +16 -2
  227. package/vite.config.js +60 -1
  228. package/dist/index-CSXL784P.cjs +0 -5
@@ -0,0 +1,87 @@
1
+ "use strict";const e=require("react/jsx-runtime"),p=require("react"),a=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./utils-CE6bljYe.cjs");a.newStyled.div`
2
+ background-color: var(--gray-200, #dddfe4);
3
+ border-radius: 0.75rem;
4
+ min-width: 11.625rem;
5
+ min-height: 11.625rem;
6
+ max-width: 11.625rem;
7
+ max-height: 11.625rem;
8
+ ${r.linearGradientAnimation("-90deg")}
9
+ `;const f=a.newStyled.div`
10
+ display: flex;
11
+ flex-direction: column;
12
+ justify-content: end;
13
+ position: relative;
14
+ border-radius: 0.75rem;
15
+ overflow: hidden;
16
+ cursor: pointer;
17
+ background: linear-gradient(
18
+ 178deg,
19
+ rgba(0, 0, 0, 0) 1.5%,
20
+ rgba(0, 0, 0, 0.16) 8.95%,
21
+ #000 98.39%
22
+ );
23
+
24
+ & .text-block {
25
+ padding: 0.75rem;
26
+ z-index: 1;
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 0.5rem;
30
+ position: absolute;
31
+ bottom: 0rem;
32
+ left: 0rem;
33
+ }
34
+ & .img-wrapper {
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ z-index: 0;
39
+ background: linear-gradient(
40
+ 178deg,
41
+ rgba(0, 0, 0, 0) 1.5%,
42
+ rgba(0, 0, 0, 0.16) 8.95%,
43
+ #000 98.39%
44
+ );
45
+ }
46
+
47
+ & img {
48
+ width: 100%;
49
+ aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
50
+ object-fit: cover; /* making sure the image isn't distorted */
51
+ border-radius: 0.75rem;
52
+ }
53
+
54
+ & .fallback-image {
55
+ mix-blend-mode: multiply;
56
+ }
57
+
58
+ font-size: 0.875rem;
59
+ font-weight: 500;
60
+ & .price-chip {
61
+ font-size: 0.75rem;
62
+ font-weight: 500;
63
+ padding: 0 0.38rem;
64
+ min-height: 1.25rem;
65
+ max-height: 1.25rem;
66
+ width: fit-content;
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ border-radius: 62.4375rem;
71
+ z-index: 1;
72
+ background-color: var(--white, #fff);
73
+ color: var(--gray-950, #14161A);
74
+ }
75
+ & .title-simple-product-card {
76
+ z-index: 1;
77
+ color: var(--white, #fff);
78
+ transition: all 0.2s ease;
79
+ }
80
+
81
+ &:hover {
82
+ & .title-simple-product-card {
83
+ z-index: 1;
84
+ color: var(--primary-500, #F59E0B);
85
+ }
86
+ }
87
+ `,h=p.forwardRef((d,b)=>{const{uuid:x,title:n,price:i,currency:t,isNegotiable:c,isFree:l,image:s,sellerUuid:y,onSelectCard:m=()=>{},imageComponent:o,negotiableText:g="Negotiable",freeText:u="Free"}=d;return e.jsxs(f,{className:"simple-product-card",onClick:m,children:[r.isDefined(o)?o:e.jsx("img",{src:s}),e.jsxs("div",{className:"text-block",children:[e.jsx("div",{className:"title-simple-product-card",children:n}),e.jsxs("div",{className:"price-chip",children:[i&&t&&`${r.formatPrice(i)} ${r.GetCurrencySymbol(t)}`,c&&g,l&&u]})]})]})});exports.SimpleProductCard=h;
@@ -7,15 +7,15 @@ var i = { exports: {} };
7
7
  */
8
8
  (function(e) {
9
9
  (function() {
10
- var f = {}.hasOwnProperty;
10
+ var a = {}.hasOwnProperty;
11
11
  function s() {
12
12
  for (var t = "", r = 0; r < arguments.length; r++) {
13
13
  var n = arguments[r];
14
- n && (t = o(t, a(n)));
14
+ n && (t = o(t, f(n)));
15
15
  }
16
16
  return t;
17
17
  }
18
- function a(t) {
18
+ function f(t) {
19
19
  if (typeof t == "string" || typeof t == "number")
20
20
  return t;
21
21
  if (typeof t != "object")
@@ -26,7 +26,7 @@ var i = { exports: {} };
26
26
  return t.toString();
27
27
  var r = "";
28
28
  for (var n in t)
29
- f.call(t, n) && t[n] && (r = o(r, n));
29
+ a.call(t, n) && t[n] && (r = o(r, n));
30
30
  return r;
31
31
  }
32
32
  function o(t, r) {
@@ -38,5 +38,6 @@ var i = { exports: {} };
38
38
  var p = i.exports;
39
39
  const l = /* @__PURE__ */ c(p);
40
40
  export {
41
+ p as a,
41
42
  l as c
42
43
  };
@@ -0,0 +1,40 @@
1
+ "use strict";const t=require("react/jsx-runtime"),a=require("react"),d=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),u=require("./consts-dNz9tpt4.cjs"),x=require("./Button.cjs"),b=d.newStyled.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 1.25rem;
5
+ color: var(--gray-950, #14161A);
6
+ justify-content: center;
7
+
8
+ & button {
9
+ width: fit-content
10
+ }
11
+
12
+ & .block-group {
13
+ display: flex;
14
+ flex-direction: column;
15
+ }
16
+
17
+ & .txt-block-subtitle {
18
+ font-size: 0.75rem;
19
+ font-weight: 400;
20
+ color: var(--gray-500);
21
+ }
22
+ & .txt-block-title {
23
+ font-size: 1.5rem;
24
+ font-weight: 600;
25
+ color: var(--gray-950, #14161A);
26
+ }
27
+ & .txt-block-description {
28
+ font-size: 0.875rem;
29
+ font-weight: 400;
30
+ color: var(--gray-700, #4E555F);
31
+ }
32
+
33
+ @media (max-width: ${u.MOBILE_SIZE_PX+"px"}) {
34
+ align-items: start;
35
+ justify-content: start;
36
+ & .txt-block-title {
37
+ font-size: 1.375rem;
38
+ }
39
+ }
40
+ `,f=a.forwardRef((e,m)=>{const{title:o,subtitle:r,description:i,buttonText:n,buttonLink:c,onButtonAction:s=()=>{},...l}=e;return t.jsxs(b,{...l,children:[t.jsxs("div",{className:"block-group",children:[t.jsx("div",{className:"txt-block-subtitle",children:r}),t.jsx("div",{className:"txt-block-title",children:o}),t.jsx("div",{className:"txt-block-description",children:i})]}),t.jsx(x,{type:"button",btnType:"outline",borderRadius:"curved",onClick:()=>s(c),color:"gray",children:n})]})});exports.TextBlockV1=f;
@@ -0,0 +1,122 @@
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { n as a } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { m as u, l as h, n as b, G as x } from "./utils-DtEdJZWa.js";
5
+ a.div`
6
+ background-color: var(--gray-200, #dddfe4);
7
+ border-radius: 0.75rem;
8
+ min-width: 11.625rem;
9
+ min-height: 11.625rem;
10
+ max-width: 11.625rem;
11
+ max-height: 11.625rem;
12
+ ${u("-90deg")}
13
+ `;
14
+ const v = a.div`
15
+ display: flex;
16
+ flex-direction: column;
17
+ justify-content: end;
18
+ position: relative;
19
+ border-radius: 0.75rem;
20
+ overflow: hidden;
21
+ cursor: pointer;
22
+ background: linear-gradient(
23
+ 178deg,
24
+ rgba(0, 0, 0, 0) 1.5%,
25
+ rgba(0, 0, 0, 0.16) 8.95%,
26
+ #000 98.39%
27
+ );
28
+
29
+ & .text-block {
30
+ padding: 0.75rem;
31
+ z-index: 1;
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: 0.5rem;
35
+ position: absolute;
36
+ bottom: 0rem;
37
+ left: 0rem;
38
+ }
39
+ & .img-wrapper {
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ z-index: 0;
44
+ background: linear-gradient(
45
+ 178deg,
46
+ rgba(0, 0, 0, 0) 1.5%,
47
+ rgba(0, 0, 0, 0.16) 8.95%,
48
+ #000 98.39%
49
+ );
50
+ }
51
+
52
+ & img {
53
+ width: 100%;
54
+ aspect-ratio: 1 / 1; /* defining the aspect ratio of the image */
55
+ object-fit: cover; /* making sure the image isn't distorted */
56
+ border-radius: 0.75rem;
57
+ }
58
+
59
+ & .fallback-image {
60
+ mix-blend-mode: multiply;
61
+ }
62
+
63
+ font-size: 0.875rem;
64
+ font-weight: 500;
65
+ & .price-chip {
66
+ font-size: 0.75rem;
67
+ font-weight: 500;
68
+ padding: 0 0.38rem;
69
+ min-height: 1.25rem;
70
+ max-height: 1.25rem;
71
+ width: fit-content;
72
+ display: flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ border-radius: 62.4375rem;
76
+ z-index: 1;
77
+ background-color: var(--white, #fff);
78
+ color: var(--gray-950, #14161A);
79
+ }
80
+ & .title-simple-product-card {
81
+ z-index: 1;
82
+ color: var(--white, #fff);
83
+ transition: all 0.2s ease;
84
+ }
85
+
86
+ &:hover {
87
+ & .title-simple-product-card {
88
+ z-index: 1;
89
+ color: var(--primary-500, #F59E0B);
90
+ }
91
+ }
92
+ `, S = f((d, y) => {
93
+ const {
94
+ uuid: w,
95
+ title: n,
96
+ price: r,
97
+ currency: i,
98
+ isNegotiable: m,
99
+ isFree: l,
100
+ image: c,
101
+ sellerUuid: k,
102
+ onSelectCard: s = () => {
103
+ },
104
+ imageComponent: t,
105
+ negotiableText: p = "Negotiable",
106
+ freeText: g = "Free"
107
+ } = d;
108
+ return /* @__PURE__ */ e(v, { className: "simple-product-card", onClick: s, children: [
109
+ h(t) ? t : /* @__PURE__ */ o("img", { src: c }),
110
+ /* @__PURE__ */ e("div", { className: "text-block", children: [
111
+ /* @__PURE__ */ o("div", { className: "title-simple-product-card", children: n }),
112
+ /* @__PURE__ */ e("div", { className: "price-chip", children: [
113
+ r && i && `${b(r)} ${x(i)}`,
114
+ m && p,
115
+ l && g
116
+ ] })
117
+ ] })
118
+ ] });
119
+ });
120
+ export {
121
+ S
122
+ };
@@ -0,0 +1,69 @@
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import { n as m } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as f } from "./consts-DNVz1x1I.js";
5
+ import p from "./Button.js";
6
+ const u = m.div`
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 1.25rem;
10
+ color: var(--gray-950, #14161A);
11
+ justify-content: center;
12
+
13
+ & button {
14
+ width: fit-content
15
+ }
16
+
17
+ & .block-group {
18
+ display: flex;
19
+ flex-direction: column;
20
+ }
21
+
22
+ & .txt-block-subtitle {
23
+ font-size: 0.75rem;
24
+ font-weight: 400;
25
+ color: var(--gray-500);
26
+ }
27
+ & .txt-block-title {
28
+ font-size: 1.5rem;
29
+ font-weight: 600;
30
+ color: var(--gray-950, #14161A);
31
+ }
32
+ & .txt-block-description {
33
+ font-size: 0.875rem;
34
+ font-weight: 400;
35
+ color: var(--gray-700, #4E555F);
36
+ }
37
+
38
+ @media (max-width: ${f + "px"}) {
39
+ align-items: start;
40
+ justify-content: start;
41
+ & .txt-block-title {
42
+ font-size: 1.375rem;
43
+ }
44
+ }
45
+ `, v = d((e, b) => {
46
+ const { title: r, subtitle: i, description: n, buttonText: l, buttonLink: c, onButtonAction: s = () => {
47
+ }, ...a } = e;
48
+ return /* @__PURE__ */ o(u, { ...a, children: [
49
+ /* @__PURE__ */ o("div", { className: "block-group", children: [
50
+ /* @__PURE__ */ t("div", { className: "txt-block-subtitle", children: i }),
51
+ /* @__PURE__ */ t("div", { className: "txt-block-title", children: r }),
52
+ /* @__PURE__ */ t("div", { className: "txt-block-description", children: n })
53
+ ] }),
54
+ /* @__PURE__ */ t(
55
+ p,
56
+ {
57
+ type: "button",
58
+ btnType: "outline",
59
+ borderRadius: "curved",
60
+ onClick: () => s(c),
61
+ color: "gray",
62
+ children: l
63
+ }
64
+ )
65
+ ] });
66
+ });
67
+ export {
68
+ v as T
69
+ };
@@ -0,0 +1,114 @@
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("react"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./consts-dNz9tpt4.cjs"),r=require("./utils-CE6bljYe.cjs"),b=c.newStyled.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: ${w.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
+ `,j=c.newStyled.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
+ `,v=s.forwardRef(({sponsoredText:i="Sponsored"},t)=>e.jsxs(j,{ref:t,className:"sponsored-line",children:[e.jsx("i",{className:"mng-lnc-paw2"}),e.jsx("span",{children:i})]})),y=s.forwardRef((i,t)=>{const{uuid:k,title:d,price:n,currency:o,isNegotiable:l,isFree:m,image:g,sellerUuid:$,location:p,isSponsored:h,imageComponent:a,onSelectCard:u=()=>{},freeText:x="Free",negotiableText:f="Negotiable"}=i;return e.jsxs(b,{className:"product-card",onClick:u,children:[r.isDefined(a)?a:e.jsx("img",{src:g}),e.jsx("div",{className:"wrapper-card-1",children:e.jsx("div",{className:"card-title",children:d})}),e.jsxs("div",{className:"wrapper-card-2",children:[e.jsxs("div",{className:"price-text",children:[n&&o&&`${r.formatPrice(n)} ${r.GetCurrencySymbol(o)}`,l&&{negotiableText:f},m&&{freeText:x}]}),e.jsx("div",{className:"location-text",children:p})]}),h===!0&&e.jsx(v,{})]})});exports.DetailedProductCard=y;