@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,25 @@
1
+ "use strict";const i=require("react/jsx-runtime"),y=require("react"),S=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./consts-dNz9tpt4.cjs"),f=require("./Button.cjs"),a=require("./utils-CE6bljYe.cjs"),C=require("./useDetectMobile-rBe0FiP2.cjs"),h=require("./style-C3OB0uad.cjs"),d=require("./index-LdP7U1Yl.cjs"),j=S.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: ${t=>`repeat(${t.limit}, minmax(0, 1fr))`};
4
+ gap: 1.25rem;
5
+
6
+ @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
7
+ display: flex;
8
+ gap: 1rem;
9
+ overflow-x: auto;
10
+
11
+ -webkit-overflow-scrolling: touch;
12
+ ::-webkit-scrollbar {
13
+ -webkit-appearance: none;
14
+ }
15
+ -ms-overflow-style: none;
16
+ /* Internet Explorer 10+ */
17
+ scrollbar-width: none;
18
+ /* Firefox */
19
+
20
+ &::-webkit-scrollbar {
21
+ display: none;
22
+ /* Safari and Chrome */
23
+ }
24
+ }
25
+ `,q=y.forwardRef((t,u)=>{const{icon:n,title:p,buttonLink:s,items:r,buttonText:m,limit:l=4,onSelectCard:c=()=>{},onButtonAction:g=()=>{}}=t,b=C.useDetectMobile();return i.jsxs(h.RegulatTitleSectionWrapper,{ref:u,children:[i.jsxs("div",{className:"regular-title",children:[i.jsxs("div",{className:"regular-title-text",children:[a.isDefinedNotEmptyString(n)&&i.jsx("i",{className:n}),i.jsx("span",{children:p})]}),a.isDefinedNotEmptyString(s)&&i.jsx(f,{type:"button",btnType:"tinted",color:"gray",onClick:()=>g(s),borderRadius:"curved",children:m})]}),i.jsx(j,{limit:l,children:b===!0?r==null?void 0:r.map((e,o)=>i.jsx(d.DetailedProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>c(e==null?void 0:e.uuid)},o)):r==null?void 0:r.slice(0,l).map((e,o)=>i.jsx(d.DetailedProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,imageComponent:e==null?void 0:e.imageComponent,onSelectCard:()=>c(e==null?void 0:e.uuid)},o))})]})});module.exports=q;
package/dist/index2.js ADDED
@@ -0,0 +1,99 @@
1
+ import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import { n as S } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as w } from "./consts-DNVz1x1I.js";
5
+ import h from "./Button.js";
6
+ import { k as s } from "./utils-DtEdJZWa.js";
7
+ import { u as C } from "./useDetectMobile-BookNOsk.js";
8
+ import { R as k } from "./style-Ch-xOasu.js";
9
+ import { D as m } from "./index-jVpIwR2G.js";
10
+ const v = S.div`
11
+ display: grid;
12
+ grid-template-columns: ${(o) => `repeat(${o.limit}, minmax(0, 1fr))`};
13
+ gap: 1.25rem;
14
+
15
+ @media (max-width: ${w + "px"}) {
16
+ display: flex;
17
+ gap: 1rem;
18
+ overflow-x: auto;
19
+
20
+ -webkit-overflow-scrolling: touch;
21
+ ::-webkit-scrollbar {
22
+ -webkit-appearance: none;
23
+ }
24
+ -ms-overflow-style: none;
25
+ /* Internet Explorer 10+ */
26
+ scrollbar-width: none;
27
+ /* Firefox */
28
+
29
+ &::-webkit-scrollbar {
30
+ display: none;
31
+ /* Safari and Chrome */
32
+ }
33
+ }
34
+ `, T = y((o, p) => {
35
+ const {
36
+ icon: l,
37
+ title: u,
38
+ buttonLink: a,
39
+ items: r,
40
+ buttonText: f,
41
+ limit: d = 4,
42
+ onSelectCard: c = () => {
43
+ },
44
+ onButtonAction: g = () => {
45
+ }
46
+ } = o, b = C();
47
+ return /* @__PURE__ */ n(k, { ref: p, children: [
48
+ /* @__PURE__ */ n("div", { className: "regular-title", children: [
49
+ /* @__PURE__ */ n("div", { className: "regular-title-text", children: [
50
+ s(l) && /* @__PURE__ */ i("i", { className: l }),
51
+ /* @__PURE__ */ i("span", { children: u })
52
+ ] }),
53
+ s(a) && /* @__PURE__ */ i(
54
+ h,
55
+ {
56
+ type: "button",
57
+ btnType: "tinted",
58
+ color: "gray",
59
+ onClick: () => g(a),
60
+ borderRadius: "curved",
61
+ children: f
62
+ }
63
+ )
64
+ ] }),
65
+ /* @__PURE__ */ i(v, { limit: d, children: b === !0 ? r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ i(
66
+ m,
67
+ {
68
+ title: e == null ? void 0 : e.title,
69
+ price: e == null ? void 0 : e.price,
70
+ currency: e == null ? void 0 : e.currency,
71
+ image: e == null ? void 0 : e.image,
72
+ sellerUuid: e == null ? void 0 : e.sellerUuid,
73
+ uuid: e == null ? void 0 : e.uuid,
74
+ isSponsored: e == null ? void 0 : e.isSponsored,
75
+ imageComponent: e == null ? void 0 : e.imageComponent,
76
+ onSelectCard: () => c(e == null ? void 0 : e.uuid)
77
+ },
78
+ t
79
+ )) : r == null ? void 0 : r.slice(0, d).map((e, t) => /* @__PURE__ */ i(
80
+ m,
81
+ {
82
+ title: e == null ? void 0 : e.title,
83
+ price: e == null ? void 0 : e.price,
84
+ currency: e == null ? void 0 : e.currency,
85
+ image: e == null ? void 0 : e.image,
86
+ sellerUuid: e == null ? void 0 : e.sellerUuid,
87
+ uuid: e == null ? void 0 : e.uuid,
88
+ location: e == null ? void 0 : e.location,
89
+ isSponsored: e == null ? void 0 : e.isSponsored,
90
+ imageComponent: e == null ? void 0 : e.imageComponent,
91
+ onSelectCard: () => c(e == null ? void 0 : e.uuid)
92
+ },
93
+ t
94
+ )) })
95
+ ] });
96
+ });
97
+ export {
98
+ T as default
99
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";const r=require("react/jsx-runtime"),w=require("react"),h=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),q=require("./consts-dNz9tpt4.cjs"),y=require("./useDetectMobile-rBe0FiP2.cjs"),s=require("./index-BlV3tdJ8.cjs"),S=require("./index-C2M7QHPq.cjs"),j=h.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: repeat(6, 1fr);
4
+ gap: 1.25rem;
5
+
6
+ & .text-block-v1 {
7
+ grid-column: 1 / 4;
8
+ max-width: 27rem;
9
+ margin: auto;
10
+ }
11
+
12
+ @media (max-width: ${q.MOBILE_SIZE_PX+"px"}) {
13
+ grid-template-columns: repeat(2, 1fr);
14
+
15
+ & .text-block-v1 {
16
+ grid-column: 1 / 3;
17
+ max-width: unset;
18
+ margin: unset;
19
+ }
20
+
21
+ & .simple-product-card {
22
+ max-width: unset;
23
+ min-width: unset;
24
+ width: unset;
25
+ }
26
+
27
+ & .img-wrapper {
28
+
29
+ }
30
+ }
31
+ `,k=w.forwardRef((n,o)=>{var c;const{title:d,subtitle:l,description:m,buttonText:a,buttonLink:p,items:t,onButtonAction:g=()=>{},onSelectCard:i=()=>{}}=n,b=y.useDetectMobile();return r.jsxs(j,{ref:o,limit:6,children:[r.jsx(S.TextBlockV1,{subtitle:l,title:d,description:m,buttonText:a,buttonLink:p,onButtonAction:g,className:"text-block-v1"}),b===!0?(c=t==null?void 0:t.slice(0,4))==null?void 0:c.map((e,u)=>r.jsx(s.SimpleProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,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,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},u)):t==null?void 0:t.map((e,u)=>r.jsx(s.SimpleProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,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,onSelectCard:()=>i==null?void 0:i(e==null?void 0:e.uuid)},u))]})});module.exports=k;
package/dist/index3.js ADDED
@@ -0,0 +1,94 @@
1
+ import { jsxs as w, jsx as u } from "react/jsx-runtime";
2
+ import { forwardRef as b } from "react";
3
+ import { n as h } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as y } from "./consts-DNVz1x1I.js";
5
+ import { u as k } from "./useDetectMobile-BookNOsk.js";
6
+ import { S as m } from "./index-DGl-lSfF.js";
7
+ import { T as S } from "./index-DcYg32le.js";
8
+ const v = h.div`
9
+ display: grid;
10
+ grid-template-columns: repeat(6, 1fr);
11
+ gap: 1.25rem;
12
+
13
+ & .text-block-v1 {
14
+ grid-column: 1 / 4;
15
+ max-width: 27rem;
16
+ margin: auto;
17
+ }
18
+
19
+ @media (max-width: ${y + "px"}) {
20
+ grid-template-columns: repeat(2, 1fr);
21
+
22
+ & .text-block-v1 {
23
+ grid-column: 1 / 3;
24
+ max-width: unset;
25
+ margin: unset;
26
+ }
27
+
28
+ & .simple-product-card {
29
+ max-width: unset;
30
+ min-width: unset;
31
+ width: unset;
32
+ }
33
+
34
+ & .img-wrapper {
35
+
36
+ }
37
+ }
38
+ `, I = b((l, c) => {
39
+ var o;
40
+ const {
41
+ title: d,
42
+ subtitle: a,
43
+ description: n,
44
+ buttonText: s,
45
+ buttonLink: p,
46
+ items: e,
47
+ onButtonAction: g = () => {
48
+ },
49
+ onSelectCard: i = () => {
50
+ }
51
+ } = l, f = k();
52
+ return /* @__PURE__ */ w(v, { ref: c, limit: 6, children: [
53
+ /* @__PURE__ */ u(
54
+ S,
55
+ {
56
+ subtitle: a,
57
+ title: d,
58
+ description: n,
59
+ buttonText: s,
60
+ buttonLink: p,
61
+ onButtonAction: g,
62
+ className: "text-block-v1"
63
+ }
64
+ ),
65
+ f === !0 ? (o = e == null ? void 0 : e.slice(0, 4)) == null ? void 0 : o.map((t, r) => /* @__PURE__ */ u(
66
+ m,
67
+ {
68
+ title: t == null ? void 0 : t.title,
69
+ price: t == null ? void 0 : t.price,
70
+ currency: t == null ? void 0 : t.currency,
71
+ image: t == null ? void 0 : t.image,
72
+ sellerUuid: t == null ? void 0 : t.sellerUuid,
73
+ uuid: t == null ? void 0 : t.uuid,
74
+ onSelectCard: () => i == null ? void 0 : i(t == null ? void 0 : t.uuid)
75
+ },
76
+ r
77
+ )) : e == null ? void 0 : e.map((t, r) => /* @__PURE__ */ u(
78
+ m,
79
+ {
80
+ title: t == null ? void 0 : t.title,
81
+ price: t == null ? void 0 : t.price,
82
+ currency: t == null ? void 0 : t.currency,
83
+ image: t == null ? void 0 : t.image,
84
+ sellerUuid: t == null ? void 0 : t.sellerUuid,
85
+ uuid: t == null ? void 0 : t.uuid,
86
+ onSelectCard: () => i == null ? void 0 : i(t == null ? void 0 : t.uuid)
87
+ },
88
+ r
89
+ ))
90
+ ] });
91
+ });
92
+ export {
93
+ I as default
94
+ };
@@ -0,0 +1,68 @@
1
+ "use strict";const i=require("react/jsx-runtime"),m=require("react"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),y=require("./consts-dNz9tpt4.cjs"),S=require("./useDetectMobile-rBe0FiP2.cjs"),k=require("./Button.cjs"),u=require("./index-LdP7U1Yl.cjs"),j=b.newStyled.div`
2
+ padding: 1.75rem 3rem;
3
+ display: grid;
4
+ grid-template-columns: ${t=>`repeat(${t.limit||5}, minmax(0, 1fr))`};
5
+
6
+ gap: 2.97rem;
7
+
8
+ border: 1.5px solid var(--danger-600, #e11d48);
9
+ background-color: var(--danger-50, #fff1f2);
10
+ position: relative;
11
+ border-radius: 0.75rem;
12
+ position: relative;
13
+
14
+ & .urgent-tag {
15
+ position: absolute;
16
+ left: 1rem;
17
+ top: -0.75rem;
18
+ min-height: 1.5rem;
19
+ max-height: 1.5rem;
20
+ border-radius: 0.375rem;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ padding: 0 0.25rem;
25
+ gap: 0.12rem;
26
+ font-weight: 500;
27
+ font-size: 0.875rem;
28
+ color: var(--white, #fff);
29
+ background-color: var(--danger-600, #e11d48);
30
+ }
31
+
32
+ & .show-more {
33
+ grid-column: 1 / 3;
34
+ }
35
+
36
+ & .product-card {
37
+ max-width: ${t=>`calc(${100/t.desktopCols}% - ${(t.desktopCols-1)*t.columnGapRem/t.desktopCols}rem)`};
38
+
39
+ animation-duration: 0.2s;
40
+ animation-name: animate-fade;
41
+ animation-delay: 0.2s;
42
+ animation-fill-mode: backwards;
43
+ transition: all 0.25s ease;
44
+
45
+ @keyframes animate-fade {
46
+ 0% {
47
+ transform: scale(0.9);
48
+ -webkit-transform: scale(0.9);
49
+ }
50
+ 100% {
51
+ transform: scale(1);
52
+ -webkit-transform: scale(1);
53
+ }
54
+ }
55
+ }
56
+
57
+ @media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
58
+ grid-template-columns: repeat(2, 1fr);
59
+ padding: 2rem 1.25rem;
60
+ gap: 1.19rem;
61
+
62
+ & .urgent-tag {
63
+ }
64
+
65
+ & .img-wrapper {
66
+ }
67
+ }
68
+ `,v=m.forwardRef((t,p)=>{var c;const{items:r,limit:n=5,limitMobile:l=6,onSelectCard:o=()=>{},title:g="Urgent sale",showLessText:f="Show less",showMoreText:h="Show more"}=t,d=S.useDetectMobile(),[a,w]=m.useState(!1);return i.jsxs(j,{ref:p,limit:n,children:[i.jsxs("div",{className:"urgent-tag",children:[i.jsx("i",{className:"mng mng-lnc-bolt-filled"}),i.jsx("span",{children:g})]}),d===!0?(c=r==null?void 0:r.slice(0,a===!0?r==null?void 0:r.length:l))==null?void 0:c.map((e,s)=>i.jsx(u.DetailedProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>o==null?void 0:o(e==null?void 0:e.uuid)},s)):r==null?void 0:r.slice(0,n).map((e,s)=>i.jsx(u.DetailedProductCard,{title:e==null?void 0:e.title,price:e==null?void 0:e.price,currency:e==null?void 0:e.currency,image:e==null?void 0:e.image,sellerUuid:e==null?void 0:e.sellerUuid,uuid:e==null?void 0:e.uuid,location:e==null?void 0:e.location,isSponsored:e==null?void 0:e.isSponsored,onSelectCard:()=>o==null?void 0:o(e==null?void 0:e.uuid)},s)),d===!0&&l<(r==null?void 0:r.length)&&i.jsx(k,{className:"show-more",btnType:"basic",type:"button",color:"gray",onClick:()=>w(!a),children:a===!0?f:h})]})});module.exports=v;
package/dist/index4.js ADDED
@@ -0,0 +1,135 @@
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as b, useState as y } from "react";
3
+ import { n as S } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as k } from "./consts-DNVz1x1I.js";
5
+ import { u as v } from "./useDetectMobile-BookNOsk.js";
6
+ import M from "./Button.js";
7
+ import { D as u } from "./index-jVpIwR2G.js";
8
+ const U = S.div`
9
+ padding: 1.75rem 3rem;
10
+ display: grid;
11
+ grid-template-columns: ${(i) => `repeat(${i.limit || 5}, minmax(0, 1fr))`};
12
+
13
+ gap: 2.97rem;
14
+
15
+ border: 1.5px solid var(--danger-600, #e11d48);
16
+ background-color: var(--danger-50, #fff1f2);
17
+ position: relative;
18
+ border-radius: 0.75rem;
19
+ position: relative;
20
+
21
+ & .urgent-tag {
22
+ position: absolute;
23
+ left: 1rem;
24
+ top: -0.75rem;
25
+ min-height: 1.5rem;
26
+ max-height: 1.5rem;
27
+ border-radius: 0.375rem;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ padding: 0 0.25rem;
32
+ gap: 0.12rem;
33
+ font-weight: 500;
34
+ font-size: 0.875rem;
35
+ color: var(--white, #fff);
36
+ background-color: var(--danger-600, #e11d48);
37
+ }
38
+
39
+ & .show-more {
40
+ grid-column: 1 / 3;
41
+ }
42
+
43
+ & .product-card {
44
+ max-width: ${(i) => `calc(${100 / i.desktopCols}% - ${(i.desktopCols - 1) * i.columnGapRem / i.desktopCols}rem)`};
45
+
46
+ animation-duration: 0.2s;
47
+ animation-name: animate-fade;
48
+ animation-delay: 0.2s;
49
+ animation-fill-mode: backwards;
50
+ transition: all 0.25s ease;
51
+
52
+ @keyframes animate-fade {
53
+ 0% {
54
+ transform: scale(0.9);
55
+ -webkit-transform: scale(0.9);
56
+ }
57
+ 100% {
58
+ transform: scale(1);
59
+ -webkit-transform: scale(1);
60
+ }
61
+ }
62
+ }
63
+
64
+ @media (max-width: ${k + "px"}) {
65
+ grid-template-columns: repeat(2, 1fr);
66
+ padding: 2rem 1.25rem;
67
+ gap: 1.19rem;
68
+
69
+ & .urgent-tag {
70
+ }
71
+
72
+ & .img-wrapper {
73
+ }
74
+ }
75
+ `, A = b((i, p) => {
76
+ var d;
77
+ const {
78
+ items: r,
79
+ limit: n = 5,
80
+ limitMobile: s = 6,
81
+ onSelectCard: t = () => {
82
+ },
83
+ title: g = "Urgent sale",
84
+ showLessText: f = "Show less",
85
+ showMoreText: h = "Show more"
86
+ } = i, m = v(), [a, w] = y(!1);
87
+ return /* @__PURE__ */ c(U, { ref: p, limit: n, children: [
88
+ /* @__PURE__ */ c("div", { className: "urgent-tag", children: [
89
+ /* @__PURE__ */ o("i", { className: "mng mng-lnc-bolt-filled" }),
90
+ /* @__PURE__ */ o("span", { children: g })
91
+ ] }),
92
+ m === !0 ? (d = r == null ? void 0 : r.slice(0, a === !0 ? r == null ? void 0 : r.length : s)) == null ? void 0 : d.map((e, l) => /* @__PURE__ */ o(
93
+ u,
94
+ {
95
+ title: e == null ? void 0 : e.title,
96
+ price: e == null ? void 0 : e.price,
97
+ currency: e == null ? void 0 : e.currency,
98
+ image: e == null ? void 0 : e.image,
99
+ sellerUuid: e == null ? void 0 : e.sellerUuid,
100
+ uuid: e == null ? void 0 : e.uuid,
101
+ isSponsored: e == null ? void 0 : e.isSponsored,
102
+ onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
103
+ },
104
+ l
105
+ )) : r == null ? void 0 : r.slice(0, n).map((e, l) => /* @__PURE__ */ o(
106
+ u,
107
+ {
108
+ title: e == null ? void 0 : e.title,
109
+ price: e == null ? void 0 : e.price,
110
+ currency: e == null ? void 0 : e.currency,
111
+ image: e == null ? void 0 : e.image,
112
+ sellerUuid: e == null ? void 0 : e.sellerUuid,
113
+ uuid: e == null ? void 0 : e.uuid,
114
+ location: e == null ? void 0 : e.location,
115
+ isSponsored: e == null ? void 0 : e.isSponsored,
116
+ onSelectCard: () => t == null ? void 0 : t(e == null ? void 0 : e.uuid)
117
+ },
118
+ l
119
+ )),
120
+ m === !0 && s < (r == null ? void 0 : r.length) && /* @__PURE__ */ o(
121
+ M,
122
+ {
123
+ className: "show-more",
124
+ btnType: "basic",
125
+ type: "button",
126
+ color: "gray",
127
+ onClick: () => w(!a),
128
+ children: a === !0 ? f : h
129
+ }
130
+ )
131
+ ] });
132
+ });
133
+ export {
134
+ A as default
135
+ };
@@ -0,0 +1,48 @@
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("react"),j=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./consts-dNz9tpt4.cjs"),f=require("./useDetectMobile-rBe0FiP2.cjs"),m=require("./index-C2M7QHPq.cjs"),k=j.newStyled.div`
2
+ display: grid;
3
+ grid-template-columns: repeat(2, 1fr);
4
+ gap: 0;
5
+
6
+ & .text-item {
7
+ max-height: ${e=>e.height};
8
+ min-height: ${e=>e.height};
9
+ max-width: 27rem;
10
+ margin: auto;
11
+ }
12
+
13
+ & img {
14
+ object-fit: cover;
15
+ width: 100%;
16
+ max-height: ${e=>e.height};
17
+ min-height: ${e=>e.height};
18
+ }
19
+
20
+ & .img-1 {
21
+ border-radius: 0.75rem 0.75rem 0.75rem 0;
22
+ }
23
+
24
+ & .img-2 {
25
+ border-radius: 0.75rem 0rem 0.75rem 0.75rem;
26
+ }
27
+
28
+ @media (max-width: ${w.MOBILE_SIZE_PX+"px"}) {
29
+ grid-template-columns: repeat(1, 1fr);
30
+ gap: 1.5rem;
31
+
32
+ & .img-item {
33
+ width: 100%;
34
+ min-height: 11.25rem;
35
+ max-height: 11.25rem;
36
+ }
37
+
38
+ & .img1,
39
+ .img2 {
40
+ border-radius: 0.75rem;
41
+ }
42
+
43
+ & .text-item {
44
+ min-height: unset;
45
+ max-height: unset;
46
+ }
47
+ }
48
+ `,q=p.forwardRef((e,T)=>{const{image1:s,image2:i,title1:n,title2:o,text1:g,text2:a,subtitle1:c,subtitle2:u,buttonText1:h,buttonText2:x,buttonLink1:l,buttonLink2:d,rowHeight:b="12.65625rem"}=e,r=f.useDetectMobile();return t.jsxs(k,{height:b,children:[t.jsx(m.TextBlockV1,{className:"text-item",title:n,subtitle:c,description:g,buttonText:h,buttonLink:l}),t.jsx("img",{className:"img-item img-1",src:s}),r!==!0&&t.jsx("img",{className:"img-item img-2",src:i}),t.jsx(m.TextBlockV1,{className:"text-item",title:o,subtitle:u,description:a,buttonText:x,buttonLink:d}),r===!0&&t.jsx("img",{className:"img-item img-2",src:i})]})});module.exports=q;
package/dist/index5.js ADDED
@@ -0,0 +1,100 @@
1
+ import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { M as T } from "./consts-DNVz1x1I.js";
5
+ import { u as k } from "./useDetectMobile-BookNOsk.js";
6
+ import { T as r } from "./index-DcYg32le.js";
7
+ const L = w.div`
8
+ display: grid;
9
+ grid-template-columns: repeat(2, 1fr);
10
+ gap: 0;
11
+
12
+ & .text-item {
13
+ max-height: ${(t) => t.height};
14
+ min-height: ${(t) => t.height};
15
+ max-width: 27rem;
16
+ margin: auto;
17
+ }
18
+
19
+ & img {
20
+ object-fit: cover;
21
+ width: 100%;
22
+ max-height: ${(t) => t.height};
23
+ min-height: ${(t) => t.height};
24
+ }
25
+
26
+ & .img-1 {
27
+ border-radius: 0.75rem 0.75rem 0.75rem 0;
28
+ }
29
+
30
+ & .img-2 {
31
+ border-radius: 0.75rem 0rem 0.75rem 0.75rem;
32
+ }
33
+
34
+ @media (max-width: ${T + "px"}) {
35
+ grid-template-columns: repeat(1, 1fr);
36
+ gap: 1.5rem;
37
+
38
+ & .img-item {
39
+ width: 100%;
40
+ min-height: 11.25rem;
41
+ max-height: 11.25rem;
42
+ }
43
+
44
+ & .img1,
45
+ .img2 {
46
+ border-radius: 0.75rem;
47
+ }
48
+
49
+ & .text-item {
50
+ min-height: unset;
51
+ max-height: unset;
52
+ }
53
+ }
54
+ `, y = f((t, N) => {
55
+ const {
56
+ image1: o,
57
+ image2: i,
58
+ title1: s,
59
+ title2: a,
60
+ text1: g,
61
+ text2: n,
62
+ subtitle1: h,
63
+ subtitle2: u,
64
+ buttonText1: d,
65
+ buttonText2: l,
66
+ buttonLink1: c,
67
+ buttonLink2: x,
68
+ rowHeight: p = "12.65625rem"
69
+ } = t, m = k();
70
+ return /* @__PURE__ */ b(L, { height: p, children: [
71
+ /* @__PURE__ */ e(
72
+ r,
73
+ {
74
+ className: "text-item",
75
+ title: s,
76
+ subtitle: h,
77
+ description: g,
78
+ buttonText: d,
79
+ buttonLink: c
80
+ }
81
+ ),
82
+ /* @__PURE__ */ e("img", { className: "img-item img-1", src: o }),
83
+ m !== !0 && /* @__PURE__ */ e("img", { className: "img-item img-2", src: i }),
84
+ /* @__PURE__ */ e(
85
+ r,
86
+ {
87
+ className: "text-item",
88
+ title: a,
89
+ subtitle: u,
90
+ description: n,
91
+ buttonText: l,
92
+ buttonLink: x
93
+ }
94
+ ),
95
+ m === !0 && /* @__PURE__ */ e("img", { className: "img-item img-2", src: i })
96
+ ] });
97
+ });
98
+ export {
99
+ y as default
100
+ };
@@ -0,0 +1,81 @@
1
+ "use strict";const t=require("react/jsx-runtime"),w=require("react"),i=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./consts-dNz9tpt4.cjs"),$=require("./Button.cjs"),y=require("./useDetectMobile-rBe0FiP2.cjs"),j=i.newStyled.div`
2
+ display: flex;
3
+ border-radius: 0.75rem;
4
+ background-color: ${e=>e.bgcolor||"transparent"};
5
+ overflow: hidden;
6
+ max-height: ${e=>e.height||"22.5rem"};
7
+ min-height: ${e=>e.height||"22.5rem"};
8
+ background-color: ${e=>e.bgcolor||"transparent"};
9
+
10
+ & button {
11
+ width: fit-content;
12
+ }
13
+
14
+ ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
15
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
16
+
17
+ `}
18
+
19
+ & img {
20
+ object-fit: cover;
21
+ max-width: ${e=>e.imgW||"22.5rem"};
22
+ min-width: ${e=>e.imgW||"22.5rem"};
23
+ max-height: ${e=>e.height||"22.5rem"};
24
+ min-height: ${e=>e.height||"22.5rem"};
25
+ }
26
+
27
+ ${e=>e.hasBorder===!0&&`border: 1px solid var(--gray-95008, rgba(20, 22, 26, 0.08));
28
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
29
+
30
+ `}
31
+
32
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
33
+ gap: 1.5rem;
34
+ flex-direction: column;
35
+ min-height: unset;
36
+ max-height: unset;
37
+
38
+ & button {
39
+ width: fit-content;
40
+ }
41
+
42
+ & img {
43
+ max-width: 100%;
44
+ min-width: 100%;
45
+ max-height: ${e=>e.imgHMob||"12.1rem"};
46
+ min-height: ${e=>e.imgHMob||"12.1rem"};
47
+ }
48
+ }
49
+ `,M=i.newStyled.div`
50
+ padding: ${e=>e.smallPadding===!0?"2rem":"4rem 5rem"};
51
+ display: flex;
52
+ gap: 2rem;
53
+ flex-direction: ${e=>e.isHorizontalContent===!0?"row":"column"};
54
+ flex: 1;
55
+
56
+ ${e=>e.isHorizontalContent===!0&&"justify-content: space-between;"}
57
+
58
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
59
+ padding: 0;
60
+ flex-direction: column;
61
+ }
62
+ `,v=i.newStyled.div`
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 0.25rem;
66
+
67
+ & .header-title {
68
+ font-size: 1.75rem;
69
+ font-weight: 600;
70
+ }
71
+
72
+ & .header-subtitle {
73
+ color: var(--gray-950, #14161a);
74
+ font-size: 1rem;
75
+ font-weight: 500;
76
+ }
77
+
78
+ @media (max-width: ${r.MOBILE_SIZE_PX+"px"}) {
79
+ flex-direction: column;
80
+ }
81
+ `,B=w.forwardRef((e,S)=>{const{title:d,subtitle:l,buttonText:m,image:o,imagePosition:n="right",noImageForMobile:a=!1,height:h,imageWidth:c,imageHeightMob:g,smallPadding:x=!1,isHorizontalContent:u=!1,backgroundColor:p,hasBorder:b=!1,onBannerClick:f}=e,s=y.useDetectMobile();return t.jsxs(j,{bgcolor:p,height:h,imgW:c,imgHMob:g,hasBorder:b,children:[n!=="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o}),t.jsxs(M,{isHorizontalContent:u,smallPadding:x,children:[t.jsxs(v,{children:[t.jsx("div",{className:"header-title",children:d}),t.jsx("div",{className:"header-subitle",children:l})]}),t.jsx($,{size:"medium",color:"neutral",type:"button",onClick:f,children:m})]}),n==="right"&&!(a===!0&&s===!0)&&t.jsx("img",{src:o})]})});module.exports=B;