@lanaco/lnc-react-ui 4.0.199 → 4.0.201

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 (270) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BannerSectionCarousel.cjs +4 -4
  16. package/dist/BannerSectionCarousel.js +51 -542
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +1 -1
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +12 -14
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +1 -1
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +1 -1
  26. package/dist/BlogsSectionDetailed.js +1 -1
  27. package/dist/BlogsSectionSimple.cjs +1 -1
  28. package/dist/BlogsSectionSimple.js +1 -1
  29. package/dist/BlogsSectionWithFilters.cjs +1 -1
  30. package/dist/BlogsSectionWithFilters.js +2 -2
  31. package/dist/Breadcrumbs.cjs +5 -5
  32. package/dist/Breadcrumbs.js +57 -87
  33. package/dist/Button.cjs +11 -11
  34. package/dist/Button.js +126 -173
  35. package/dist/ButtonGroup.cjs +8 -8
  36. package/dist/ButtonGroup.js +37 -49
  37. package/dist/CalorieCalculatorSection.cjs +8 -8
  38. package/dist/CalorieCalculatorSection.js +90 -97
  39. package/dist/CheckBoxInput.cjs +1 -1
  40. package/dist/CheckBoxInput.js +2 -5
  41. package/dist/Chip.cjs +14 -14
  42. package/dist/Chip.js +73 -111
  43. package/dist/ConfirmationForm.cjs +6 -6
  44. package/dist/ConfirmationForm.js +67 -109
  45. package/dist/ContactSection.cjs +1 -0
  46. package/dist/ContactSection.js +1 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +7 -15
  49. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  50. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  51. package/dist/DataView.cjs +1 -1
  52. package/dist/DataView.js +30 -50
  53. package/dist/DateInput.cjs +4 -4
  54. package/dist/DateInput.js +1347 -1383
  55. package/dist/DecimalInput.cjs +6 -6
  56. package/dist/DecimalInput.js +210 -263
  57. package/dist/DecimalInputV2.cjs +23 -23
  58. package/dist/DecimalInputV2.js +119 -176
  59. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  60. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +2 -2
  63. package/dist/DetailsView.cjs +9 -9
  64. package/dist/DetailsView.js +111 -162
  65. package/dist/DoubleRangeSlider.cjs +22 -22
  66. package/dist/DoubleRangeSlider.js +70 -95
  67. package/dist/DragAndDropFile.cjs +10 -10
  68. package/dist/DragAndDropFile.js +347 -402
  69. package/dist/DragDropFiles.cjs +4 -4
  70. package/dist/DragDropFiles.js +70 -124
  71. package/dist/Drawer.cjs +5 -5
  72. package/dist/Drawer.js +97 -135
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +44 -213
  75. package/dist/DropdownItem.cjs +14 -14
  76. package/dist/DropdownItem.js +106 -142
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +61 -242
  79. package/dist/DropdownMenu.cjs +4 -4
  80. package/dist/DropdownMenu.js +87 -149
  81. package/dist/EditableTable.cjs +10 -10
  82. package/dist/EditableTable.js +165 -331
  83. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  84. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  85. package/dist/FaqSection.cjs +3 -3
  86. package/dist/FaqSection.js +119 -153
  87. package/dist/FileInput.cjs +7 -7
  88. package/dist/FileInput.js +66 -94
  89. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  90. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  91. package/dist/FlexBox.cjs +6 -6
  92. package/dist/FlexBox.js +28 -63
  93. package/dist/FlexGrid.cjs +1 -1
  94. package/dist/FlexGrid.js +27 -67
  95. package/dist/FlexGridItem.cjs +6 -6
  96. package/dist/FlexGridItem.js +34 -62
  97. package/dist/Footer.cjs +1 -1
  98. package/dist/Footer.js +7 -15
  99. package/dist/FormField.cjs +7 -7
  100. package/dist/FormField.js +22 -47
  101. package/dist/FormView.cjs +6 -6
  102. package/dist/FormView.js +148 -195
  103. package/dist/GiftCardsSection.cjs +1 -1
  104. package/dist/GiftCardsSection.js +1 -1
  105. package/dist/Grid.cjs +2 -2
  106. package/dist/Grid.js +40 -65
  107. package/dist/GridItem.cjs +2 -2
  108. package/dist/GridItem.js +47 -80
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +7 -15
  111. package/dist/HelpBannerSection.cjs +3 -3
  112. package/dist/HelpBannerSection.js +9 -15
  113. package/dist/Icon.cjs +4 -4
  114. package/dist/Icon.js +29 -55
  115. package/dist/IconButton.cjs +9 -9
  116. package/dist/IconButton.js +89 -127
  117. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  118. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  119. package/dist/Kanban.cjs +7 -7
  120. package/dist/Kanban.js +2033 -2098
  121. package/dist/KanbanActionsToolbar.cjs +4 -5
  122. package/dist/KanbanActionsToolbar.js +61 -96
  123. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  124. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -3
  127. package/dist/KanbanFooter.cjs +3 -3
  128. package/dist/KanbanFooter.js +37 -55
  129. package/dist/KanbanHeader.cjs +4 -4
  130. package/dist/KanbanHeader.js +49 -81
  131. package/dist/KanbanView.cjs +2 -2
  132. package/dist/KanbanView.js +106 -173
  133. package/dist/Link.cjs +7 -7
  134. package/dist/Link.js +20 -37
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +13 -13
  140. package/dist/MenuItem.js +101 -139
  141. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  142. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  143. package/dist/Modal.cjs +18 -19
  144. package/dist/Modal.js +131 -166
  145. package/dist/MultiSelectDropdown.cjs +1 -1
  146. package/dist/MultiSelectDropdown.js +25 -196
  147. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  148. package/dist/MultiSelectDropdownLookup.js +27 -209
  149. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  150. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  151. package/dist/NestedDropdownItem.cjs +3 -3
  152. package/dist/NestedDropdownItem.js +45 -67
  153. package/dist/NestedMenuItem.cjs +5 -5
  154. package/dist/NestedMenuItem.js +51 -78
  155. package/dist/NotificationContainer.cjs +10 -10
  156. package/dist/NotificationContainer.js +46 -79
  157. package/dist/NotificationMessage.cjs +2 -2
  158. package/dist/NotificationMessage.js +47 -64
  159. package/dist/NumberInput.cjs +23 -23
  160. package/dist/NumberInput.js +89 -149
  161. package/dist/PageLayout.cjs +2 -2
  162. package/dist/PageLayout.js +20 -28
  163. package/dist/Pagination.cjs +3 -3
  164. package/dist/Pagination.js +102 -185
  165. package/dist/PartnerBrandsSection.cjs +62 -0
  166. package/dist/PartnerBrandsSection.js +154 -0
  167. package/dist/PartnerStatsSection.cjs +100 -0
  168. package/dist/PartnerStatsSection.js +124 -0
  169. package/dist/PasswordInput.cjs +23 -23
  170. package/dist/PasswordInput.js +108 -137
  171. package/dist/Popover.cjs +1 -1
  172. package/dist/Popover.js +7 -32
  173. package/dist/PopoverContent.cjs +5 -5
  174. package/dist/PopoverContent.js +22 -28
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +7 -12
  177. package/dist/ProductsWithBannerSection.cjs +1 -1
  178. package/dist/ProductsWithBannerSection.js +1 -1
  179. package/dist/ProgressBar.cjs +8 -8
  180. package/dist/ProgressBar.js +32 -59
  181. package/dist/RadioGroup.cjs +3 -3
  182. package/dist/RadioGroup.js +41 -72
  183. package/dist/RadioInput.cjs +28 -28
  184. package/dist/RadioInput.js +78 -123
  185. package/dist/RangeSlider.cjs +19 -19
  186. package/dist/RangeSlider.js +92 -119
  187. package/dist/ReviewsSection.cjs +13 -13
  188. package/dist/ReviewsSection.js +81 -101
  189. package/dist/SalesCampaignsSection.cjs +38 -28
  190. package/dist/SalesCampaignsSection.js +297 -325
  191. package/dist/SearchBar.cjs +10 -10
  192. package/dist/SearchBar.js +168 -188
  193. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  194. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  195. package/dist/SearchSection.cjs +1 -1
  196. package/dist/SearchSection.js +2 -3
  197. package/dist/Separator.cjs +3 -3
  198. package/dist/Separator.js +14 -19
  199. package/dist/Sidebar.cjs +4 -5
  200. package/dist/Sidebar.js +33 -56
  201. package/dist/SimpleCategoriesSection.cjs +2 -2
  202. package/dist/SimpleCategoriesSection.js +2 -2
  203. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  204. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  205. package/dist/Spinner.cjs +18 -18
  206. package/dist/Spinner.js +37 -54
  207. package/dist/StatsSection.cjs +6 -6
  208. package/dist/StatsSection.js +15 -25
  209. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  210. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  211. package/dist/Surface.cjs +4 -4
  212. package/dist/Surface.js +19 -34
  213. package/dist/SwipeableDrawer.cjs +8 -8
  214. package/dist/SwipeableDrawer.js +84 -136
  215. package/dist/TabItem.cjs +11 -11
  216. package/dist/TabItem.js +83 -118
  217. package/dist/Table.cjs +65 -65
  218. package/dist/Table.js +786 -1167
  219. package/dist/TableView.cjs +2 -2
  220. package/dist/TableView.js +113 -197
  221. package/dist/Tabs.cjs +4 -4
  222. package/dist/Tabs.js +41 -60
  223. package/dist/TextAreaInput.cjs +14 -14
  224. package/dist/TextAreaInput.js +131 -181
  225. package/dist/TextInput.cjs +23 -23
  226. package/dist/TextInput.js +78 -126
  227. package/dist/ThemeProvider.cjs +5 -5
  228. package/dist/ThemeProvider.js +35 -39
  229. package/dist/TimeInput.cjs +7 -7
  230. package/dist/TimeInput.js +46 -72
  231. package/dist/Toggle.cjs +20 -20
  232. package/dist/Toggle.js +78 -109
  233. package/dist/ToggleSection.cjs +5 -5
  234. package/dist/ToggleSection.js +48 -55
  235. package/dist/TreeMenu.cjs +5 -5
  236. package/dist/TreeMenu.js +43 -67
  237. package/dist/TreeMenuSeparator.cjs +3 -3
  238. package/dist/TreeMenuSeparator.js +12 -20
  239. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  240. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  241. package/dist/UploadedFile.cjs +11 -11
  242. package/dist/UploadedFile.js +73 -99
  243. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  244. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  245. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  246. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  247. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  248. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  249. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  250. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  251. package/dist/index-BdKi2ogu.js +39 -0
  252. package/dist/index-BppfjY8h.js +497 -0
  253. package/dist/index-CRk3vcd4.cjs +95 -0
  254. package/dist/index-CX2A-q39.cjs +4 -0
  255. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  256. package/dist/index-DeS-oqJB.cjs +1 -0
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.js +25 -21
  259. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  260. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  261. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  262. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  263. package/package.json +4 -2
  264. package/vite.config.js +8 -0
  265. package/dist/KanbanCard-68kSAXL6.js +0 -175
  266. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  267. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  268. package/dist/index-Be-_NM9Q.cjs +0 -4
  269. package/dist/index-C0LcDEqa.js +0 -47
  270. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,8 +1,7 @@
1
- import { jsx as E } from "react/jsx-runtime";
2
- import { forwardRef as T, Children as d, isValidElement as S, cloneElement as y } from "react";
3
- import { P as L } from "./index-CblbdqjE.js";
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { forwardRef as S, Children as d, isValidElement as E, cloneElement as h } from "react";
4
3
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
4
+ import { u as L } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
5
  const N = C.section`
7
6
  display: flex;
8
7
  flex: auto;
@@ -28,16 +27,16 @@ const N = C.section`
28
27
  flex: 0 0 15rem;
29
28
  height: 100%;
30
29
  }
31
- `, p = T((i, h) => {
32
- const { children: l, isChild: m, __TYPE__: w = "PageLayout", ...n } = i, P = Y(), g = d.toArray(l).some(
30
+ `, T = S((i, _) => {
31
+ const { children: l, isChild: p, ...n } = i, m = L(), g = d.toArray(l).some(
33
32
  (e) => {
34
33
  var t;
35
34
  return e.props.__TYPE__ || ((t = e == null ? void 0 : e.type) == null ? void 0 : t.displayName) == "Sidebar";
36
35
  }
37
- ), b = (e) => {
36
+ ), P = (e) => {
38
37
  let t, a, s;
39
38
  if (d.forEach(e, (r, o) => {
40
- var f, u, _;
39
+ var f, u, y;
41
40
  if (r.props.__TYPE__ == "Sidebar" || ((f = r == null ? void 0 : r.type) == null ? void 0 : f.displayName) === "Sidebar") {
42
41
  if (a)
43
42
  throw "Found multiple ocurrences of Sidebar component on the same level in the component tree.";
@@ -46,7 +45,7 @@ const N = C.section`
46
45
  if (t)
47
46
  throw "Found multiple ocurrences of PageLayout component on the same level in the component tree.";
48
47
  t = o + 1;
49
- } else if (r.props.__TYPE__ == "Content" || ((_ = r == null ? void 0 : r.type) == null ? void 0 : _.displayName) === "Content") {
48
+ } else if (r.props.__TYPE__ == "Content" || ((y = r == null ? void 0 : r.type) == null ? void 0 : y.displayName) === "Content") {
50
49
  if (s)
51
50
  throw "Found multiple ocurrences of Content component on the same level in the component tree.";
52
51
  s = o + 1;
@@ -55,38 +54,31 @@ const N = C.section`
55
54
  return a < t ? "left" : "right";
56
55
  if (s && a)
57
56
  return a < s ? "left" : "right";
58
- }, x = d.map(l, (e) => {
57
+ }, b = d.map(l, (e) => {
59
58
  var t, a;
60
- if (S(e)) {
59
+ if (E(e)) {
61
60
  if (e.props.__TYPE__ == "Sidebar" || ((t = e.type) == null ? void 0 : t.displayName) === "Sidebar")
62
- return y(e, {
63
- placement: b(l)
61
+ return h(e, {
62
+ placement: P(l)
64
63
  });
65
64
  if (e.props.__TYPE__ == "PageLayout" || ((a = e.type) == null ? void 0 : a.displayName) === "PageLayout")
66
- return y(e, { isChild: !0 });
65
+ return h(e, { isChild: !0 });
67
66
  }
68
67
  return e;
69
68
  });
70
- return /* @__PURE__ */ E(
69
+ return /* @__PURE__ */ x(
71
70
  N,
72
71
  {
73
- isChild: m,
72
+ isChild: p,
74
73
  hasSidebar: g,
75
- theme: P,
76
- ref: h,
74
+ theme: m,
75
+ ref: _,
77
76
  ...n,
78
- children: x
77
+ children: b
79
78
  }
80
79
  );
81
80
  });
82
- p.propTypes = {
83
- /**
84
- * Do not override this property.
85
- * Should only be used as indicator for type if you are passing custom component.
86
- */
87
- __TYPE__: L.string
88
- };
89
- p.displayName = "PageLayout";
81
+ T.displayName = "PageLayout";
90
82
  export {
91
- p as default
83
+ T as default
92
84
  };
@@ -1,12 +1,12 @@
1
- "use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-BpbMKBf_.cjs"),P=require("./Button.cjs"),b=require("./IconButton.cjs"),_=require("./ButtonGroup.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),w=require("./useUpdateEffect-BtMgpgIV.cjs"),U=C.styled.div`
1
+ "use strict";const n=require("react/jsx-runtime"),_=require("react"),h=require("./Button.cjs"),g=require("./IconButton.cjs"),A=require("./ButtonGroup.cjs"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),L=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=require("./useUpdateEffect-BtMgpgIV.cjs"),U=q.styled.div`
2
2
  display: inline-flex;
3
3
  flex-wrap: wrap;
4
4
  width: 100%;
5
5
  gap: 0.375rem;
6
6
  justify-content: ${u=>u.horizontalAlignment};
7
- `,$=C.styled.div`
7
+ `,G=q.styled.div`
8
8
  & > .button-group-pagination-lnc {
9
9
  width: 100%;
10
10
  justify-content: ${u=>u.horizontalAlignment};
11
11
  }
12
- `,O=u=>{const{icons:c={},borderRadius:d="regular",currentPage:f=1,buttonType:q="outline",currentPageButtonType:B="tinted",withFirstLast:m=!0,withButtonGroup:N=!0,disabledNext:v=!1,disabledPrevious:k=!1,disabledFirst:z=!1,disabledLast:F=!1,disabled:i=!1,totalNumberOfPages:g=1,pagesOffset:y=0,horizontalAlignment:T="left",onPageChange:L=()=>{},className:h="",style:x={},color:R="primary",size:S="small"}=u,l={theme:G.useTheme(),size:S,color:R,btnType:q},[s,a]=E.useState(f);w.useUpdateEffect(()=>{a(f)},[f]),w.useUpdateEffect(()=>{L(s)},[s]);const p=(r,e)=>{e=="next"&&s<g?a(s+1):e=="previous"&&s>1?a(s-1):e=="last"&&s!=g?a(g):e=="first"&&s!=1?a(1):isNaN(+e)||a(e)},A=()=>{let r=[];for(let e=s-y>0?s-y:1;e<s&&e>0;e++)r.push(o.jsx(P,{...l,borderRadius:d,onClick:n=>p(n,e),btnType:"basic",text:e.toString(),disabled:i},e));r.push(o.jsx(P,{...l,borderRadius:d,btnType:B,text:s.toString(),disabled:i},s));for(let e=s+1;e<=s+y&&e<=g;e++)r.push(o.jsx(P,{...l,borderRadius:d,onClick:n=>p(n,e),btnType:"basic",text:e.toString(),disabled:i},e));return r},j=(r=null)=>{var e={};return r&&(e.borderRadius=r),o.jsxs(o.Fragment,{children:[m&&o.jsx(b,{...l,icon:c.doubleLeft||"angle-double-left",disabled:z||i,onClick:n=>p(n,"first"),...e}),o.jsx(b,{...l,icon:c.left||"angle-left",disabled:k||i,onClick:n=>p(n,"previous"),...e}),A(),o.jsx(b,{...l,icon:c.right||"angle-right",disabled:v||i,onClick:n=>p(n,"next"),...e}),m&&o.jsx(b,{...l,icon:c.doubleRight||"angle-double-right",disabled:F||i,onClick:n=>p(n,"last"),...e})]})};return N?o.jsx($,{horizontalAlignment:T,children:o.jsx(_,{className:"button-group-pagination-lnc "+h,style:x,borderRadius:d,children:j()})}):o.jsx(U,{horizontalAlignment:T,className:h,style:x,children:j(d)})};O.propTypes={icons:t.PropTypes.shape({left:t.PropTypes.element,right:t.PropTypes.element,doubleLeft:t.PropTypes.element,doubleRight:t.PropTypes.element}),disabled:t.PropTypes.bool,borderRadius:t.PropTypes.oneOf(["slight","regular","edged","curved","none"]),buttonType:t.PropTypes.oneOf(["filled","tinted","outline","basic"]),currentPageButtonType:t.PropTypes.oneOf(["filled","tinted","outline","basic"]),withFirstLast:t.PropTypes.bool,withButtonGroup:t.PropTypes.bool,currentPage:t.PropTypes.number,totalNumberOfPages:t.PropTypes.number,pagesOffset:t.PropTypes.number,disabledNext:t.PropTypes.bool,disabledPrevious:t.PropTypes.bool,disabledFirst:t.PropTypes.bool,disabledLast:t.PropTypes.bool,horizontalAlignment:t.PropTypes.oneOf(["left","center","right"]),onPageChange:t.PropTypes.func,className:t.PropTypes.string,style:t.PropTypes.object,size:t.PropTypes.oneOf(["small","medium","large"]),color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"])};module.exports=O;
12
+ `,O=u=>{const{icons:d={},borderRadius:c="regular",currentPage:b=1,buttonType:w="outline",currentPageButtonType:k="tinted",withFirstLast:x=!0,withButtonGroup:B=!0,disabledNext:T=!1,disabledPrevious:v=!1,disabledFirst:N=!1,disabledLast:S=!1,disabled:o=!1,totalNumberOfPages:f=1,pagesOffset:p=0,horizontalAlignment:m="left",onPageChange:z=()=>{},className:j="",style:y={},color:E="primary",size:F="small"}=u,r={theme:L.useTheme(),size:F,color:E,btnType:w},[t,l]=_.useState(b);C.useUpdateEffect(()=>{l(b)},[b]),C.useUpdateEffect(()=>{z(t)},[t]);const a=(i,e)=>{e=="next"&&t<f?l(t+1):e=="previous"&&t>1?l(t-1):e=="last"&&t!=f?l(f):e=="first"&&t!=1?l(1):isNaN(+e)||l(e)},R=()=>{let i=[];for(let e=t-p>0?t-p:1;e<t&&e>0;e++)i.push(n.jsx(h,{...r,borderRadius:c,onClick:s=>a(s,e),btnType:"basic",text:e.toString(),disabled:o},e));i.push(n.jsx(h,{...r,borderRadius:c,btnType:k,text:t.toString(),disabled:o},t));for(let e=t+1;e<=t+p&&e<=f;e++)i.push(n.jsx(h,{...r,borderRadius:c,onClick:s=>a(s,e),btnType:"basic",text:e.toString(),disabled:o},e));return i},P=(i=null)=>{var e={};return i&&(e.borderRadius=i),n.jsxs(n.Fragment,{children:[x&&n.jsx(g,{...r,icon:d.doubleLeft||"angle-double-left",disabled:N||o,onClick:s=>a(s,"first"),...e}),n.jsx(g,{...r,icon:d.left||"angle-left",disabled:v||o,onClick:s=>a(s,"previous"),...e}),R(),n.jsx(g,{...r,icon:d.right||"angle-right",disabled:T||o,onClick:s=>a(s,"next"),...e}),x&&n.jsx(g,{...r,icon:d.doubleRight||"angle-double-right",disabled:S||o,onClick:s=>a(s,"last"),...e})]})};return B?n.jsx(G,{horizontalAlignment:m,children:n.jsx(A,{className:"button-group-pagination-lnc "+j,style:y,borderRadius:c,children:P()})}):n.jsx(U,{horizontalAlignment:m,className:j,style:y,children:P(c)})};module.exports=O;
@@ -1,248 +1,165 @@
1
- import { jsx as i, jsxs as G, Fragment as $ } from "react/jsx-runtime";
2
- import { useState as E } from "react";
3
- import { P as t } from "./index-CblbdqjE.js";
4
- import h from "./Button.js";
5
- import b from "./IconButton.js";
6
- import U from "./ButtonGroup.js";
7
- import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- import { u as q } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
- import { u as O } from "./useUpdateEffect-CuYWz7EA.js";
10
- const D = w.div`
1
+ import { jsx as i, jsxs as G, Fragment as O } from "react/jsx-runtime";
2
+ import { useState as R } from "react";
3
+ import b from "./Button.js";
4
+ import g from "./IconButton.js";
5
+ import E from "./ButtonGroup.js";
6
+ import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
+ import { u as U } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { u as k } from "./useUpdateEffect-CuYWz7EA.js";
9
+ const q = B.div`
11
10
  display: inline-flex;
12
11
  flex-wrap: wrap;
13
12
  width: 100%;
14
13
  gap: 0.375rem;
15
- justify-content: ${(d) => d.horizontalAlignment};
16
- `, H = w.div`
14
+ justify-content: ${(u) => u.horizontalAlignment};
15
+ `, D = B.div`
17
16
  & > .button-group-pagination-lnc {
18
17
  width: 100%;
19
- justify-content: ${(d) => d.horizontalAlignment};
18
+ justify-content: ${(u) => u.horizontalAlignment};
20
19
  }
21
- `, I = (d) => {
20
+ `, Y = (u) => {
22
21
  const {
23
- icons: c = {},
24
- borderRadius: f = "regular",
25
- currentPage: m = 1,
26
- buttonType: B = "outline",
27
- currentPageButtonType: N = "tinted",
28
- withFirstLast: y = !0,
29
- withButtonGroup: v = !0,
30
- disabledNext: k = !1,
31
- disabledPrevious: z = !1,
32
- disabledFirst: L = !1,
33
- disabledLast: j = !1,
34
- disabled: l = !1,
35
- totalNumberOfPages: g = 1,
36
- pagesOffset: p = 0,
37
- horizontalAlignment: P = "left",
22
+ icons: f = {},
23
+ borderRadius: d = "regular",
24
+ currentPage: p = 1,
25
+ buttonType: T = "outline",
26
+ currentPageButtonType: v = "tinted",
27
+ withFirstLast: h = !0,
28
+ withButtonGroup: w = !0,
29
+ disabledNext: N = !1,
30
+ disabledPrevious: j = !1,
31
+ disabledFirst: z = !1,
32
+ disabledLast: S = !1,
33
+ disabled: r = !1,
34
+ totalNumberOfPages: c = 1,
35
+ pagesOffset: m = 0,
36
+ horizontalAlignment: y = "left",
38
37
  //------------------
39
- onPageChange: F = () => {
38
+ onPageChange: A = () => {
40
39
  },
41
40
  //------------------
42
41
  className: x = "",
43
- style: C = {},
44
- color: A = "primary",
45
- size: R = "small"
46
- } = d, s = { theme: q(), size: R, color: A, btnType: B }, [n, a] = E(m);
47
- O(() => {
48
- a(m);
49
- }, [m]), O(() => {
50
- F(n);
51
- }, [n]);
52
- const u = (r, e) => {
53
- e == "next" && n < g ? a(n + 1) : e == "previous" && n > 1 ? a(n - 1) : e == "last" && n != g ? a(g) : e == "first" && n != 1 ? a(1) : isNaN(+e) || a(e);
54
- }, S = () => {
55
- let r = [];
56
- for (let e = n - p > 0 ? n - p : 1; e < n && e > 0; e++)
57
- r.push(
42
+ style: P = {},
43
+ color: F = "primary",
44
+ size: L = "small"
45
+ } = u, s = { theme: U(), size: L, color: F, btnType: T }, [e, a] = R(p);
46
+ k(() => {
47
+ a(p);
48
+ }, [p]), k(() => {
49
+ A(e);
50
+ }, [e]);
51
+ const l = (o, t) => {
52
+ t == "next" && e < c ? a(e + 1) : t == "previous" && e > 1 ? a(e - 1) : t == "last" && e != c ? a(c) : t == "first" && e != 1 ? a(1) : isNaN(+t) || a(t);
53
+ }, $ = () => {
54
+ let o = [];
55
+ for (let t = e - m > 0 ? e - m : 1; t < e && t > 0; t++)
56
+ o.push(
58
57
  /* @__PURE__ */ i(
59
- h,
58
+ b,
60
59
  {
61
60
  ...s,
62
- borderRadius: f,
63
- onClick: (o) => u(o, e),
61
+ borderRadius: d,
62
+ onClick: (n) => l(n, t),
64
63
  btnType: "basic",
65
- text: e.toString(),
66
- disabled: l
64
+ text: t.toString(),
65
+ disabled: r
67
66
  },
68
- e
67
+ t
69
68
  )
70
69
  );
71
- r.push(
70
+ o.push(
72
71
  /* @__PURE__ */ i(
73
- h,
72
+ b,
74
73
  {
75
74
  ...s,
76
- borderRadius: f,
77
- btnType: N,
78
- text: n.toString(),
79
- disabled: l
75
+ borderRadius: d,
76
+ btnType: v,
77
+ text: e.toString(),
78
+ disabled: r
80
79
  },
81
- n
80
+ e
82
81
  )
83
82
  );
84
- for (let e = n + 1; e <= n + p && e <= g; e++)
85
- r.push(
83
+ for (let t = e + 1; t <= e + m && t <= c; t++)
84
+ o.push(
86
85
  /* @__PURE__ */ i(
87
- h,
86
+ b,
88
87
  {
89
88
  ...s,
90
- borderRadius: f,
91
- onClick: (o) => u(o, e),
89
+ borderRadius: d,
90
+ onClick: (n) => l(n, t),
92
91
  btnType: "basic",
93
- text: e.toString(),
94
- disabled: l
92
+ text: t.toString(),
93
+ disabled: r
95
94
  },
96
- e
95
+ t
97
96
  )
98
97
  );
99
- return r;
100
- }, T = (r = null) => {
101
- var e = {};
102
- return r && (e.borderRadius = r), /* @__PURE__ */ G($, { children: [
103
- y && /* @__PURE__ */ i(
104
- b,
98
+ return o;
99
+ }, C = (o = null) => {
100
+ var t = {};
101
+ return o && (t.borderRadius = o), /* @__PURE__ */ G(O, { children: [
102
+ h && /* @__PURE__ */ i(
103
+ g,
105
104
  {
106
105
  ...s,
107
- icon: c.doubleLeft || "angle-double-left",
108
- disabled: L || l,
109
- onClick: (o) => u(o, "first"),
110
- ...e
106
+ icon: f.doubleLeft || "angle-double-left",
107
+ disabled: z || r,
108
+ onClick: (n) => l(n, "first"),
109
+ ...t
111
110
  }
112
111
  ),
113
112
  /* @__PURE__ */ i(
114
- b,
113
+ g,
115
114
  {
116
115
  ...s,
117
- icon: c.left || "angle-left",
118
- disabled: z || l,
119
- onClick: (o) => u(o, "previous"),
120
- ...e
116
+ icon: f.left || "angle-left",
117
+ disabled: j || r,
118
+ onClick: (n) => l(n, "previous"),
119
+ ...t
121
120
  }
122
121
  ),
123
- S(),
122
+ $(),
124
123
  /* @__PURE__ */ i(
125
- b,
124
+ g,
126
125
  {
127
126
  ...s,
128
- icon: c.right || "angle-right",
129
- disabled: k || l,
130
- onClick: (o) => u(o, "next"),
131
- ...e
127
+ icon: f.right || "angle-right",
128
+ disabled: N || r,
129
+ onClick: (n) => l(n, "next"),
130
+ ...t
132
131
  }
133
132
  ),
134
- y && /* @__PURE__ */ i(
135
- b,
133
+ h && /* @__PURE__ */ i(
134
+ g,
136
135
  {
137
136
  ...s,
138
- icon: c.doubleRight || "angle-double-right",
139
- disabled: j || l,
140
- onClick: (o) => u(o, "last"),
141
- ...e
137
+ icon: f.doubleRight || "angle-double-right",
138
+ disabled: S || r,
139
+ onClick: (n) => l(n, "last"),
140
+ ...t
142
141
  }
143
142
  )
144
143
  ] });
145
144
  };
146
- return v ? /* @__PURE__ */ i(H, { horizontalAlignment: P, children: /* @__PURE__ */ i(
147
- U,
145
+ return w ? /* @__PURE__ */ i(D, { horizontalAlignment: y, children: /* @__PURE__ */ i(
146
+ E,
148
147
  {
149
148
  className: "button-group-pagination-lnc " + x,
150
- style: C,
151
- borderRadius: f,
152
- children: T()
149
+ style: P,
150
+ borderRadius: d,
151
+ children: C()
153
152
  }
154
153
  ) }) : /* @__PURE__ */ i(
155
- D,
154
+ q,
156
155
  {
157
- horizontalAlignment: P,
156
+ horizontalAlignment: y,
158
157
  className: x,
159
- style: C,
160
- children: T(f)
158
+ style: P,
159
+ children: C(d)
161
160
  }
162
161
  );
163
162
  };
164
- I.propTypes = {
165
- icons: t.shape({
166
- left: t.element,
167
- right: t.element,
168
- doubleLeft: t.element,
169
- doubleRight: t.element
170
- }),
171
- /**
172
- * Applies to the movement buttons and to the page number buttons
173
- */
174
- disabled: t.bool,
175
- borderRadius: t.oneOf([
176
- "slight",
177
- "regular",
178
- "edged",
179
- "curved",
180
- "none"
181
- ]),
182
- /**
183
- * Sets the button `type`
184
- */
185
- buttonType: t.oneOf(["filled", "tinted", "outline", "basic"]),
186
- /**
187
- * Set button `type` of the current page button
188
- */
189
- currentPageButtonType: t.oneOf([
190
- "filled",
191
- "tinted",
192
- "outline",
193
- "basic"
194
- ]),
195
- /**
196
- * Show the First and Last buttons
197
- */
198
- withFirstLast: t.bool,
199
- /**
200
- * Wrap the buttons in a `ButtonGroup` component
201
- */
202
- withButtonGroup: t.bool,
203
- /**
204
- * Active page number
205
- */
206
- currentPage: t.number,
207
- totalNumberOfPages: t.number,
208
- /**
209
- * how many page numbers will be shown to the right/left of the current page
210
- */
211
- pagesOffset: t.number,
212
- /**
213
- * Applies to the Next button
214
- */
215
- disabledNext: t.bool,
216
- /**
217
- * Applies to the Previous button
218
- */
219
- disabledPrevious: t.bool,
220
- /**
221
- * Applies to the First button
222
- */
223
- disabledFirst: t.bool,
224
- /**
225
- * Applies to the Last button
226
- */
227
- disabledLast: t.bool,
228
- horizontalAlignment: t.oneOf(["left", "center", "right"]),
229
- //-------------------------------
230
- onPageChange: t.func,
231
- //-------------------------------
232
- className: t.string,
233
- style: t.object,
234
- size: t.oneOf(["small", "medium", "large"]),
235
- color: t.oneOf([
236
- "primary",
237
- "secondary",
238
- "success",
239
- "warning",
240
- "danger",
241
- "information",
242
- "neutral",
243
- "gray"
244
- ])
245
- };
246
163
  export {
247
- I as default
164
+ Y as default
248
165
  };
@@ -0,0 +1,62 @@
1
+ "use strict";const r=require("react/jsx-runtime"),h=require("react"),g=require("./index-DeS-oqJB.cjs"),_=require("./Button.cjs"),p=require("./useDetectMobile-zkbzoOGV.cjs"),u=require("./style-B4kAj6YU.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=b.styled.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 1.5rem;
5
+
6
+ & .section__slider {
7
+ position: relative;
8
+ }
9
+
10
+ & .slider__gradient {
11
+ position: absolute;
12
+ width: 7.5rem;
13
+ height: 100%;
14
+ pointer-events: none;
15
+ z-index: 1;
16
+ opacity: 0.4;
17
+ top: 0;
18
+
19
+ &.left {
20
+ left: 0;
21
+ background: linear-gradient(to left, transparent, white);
22
+ }
23
+
24
+ &.right {
25
+ right: 0;
26
+ background: linear-gradient(to right, transparent, white);
27
+ }
28
+ }
29
+
30
+ .slider__container {
31
+ width: 100%;
32
+ }
33
+
34
+ .slider__item {
35
+ padding-right: 1rem;
36
+ }
37
+
38
+ & .section__item {
39
+ width: 100%;
40
+ height: 100%;
41
+ max-height: 3.75rem;
42
+ border-radius: 0.5rem;
43
+ border: 1px solid var(--gray-200, #e4e9f0);
44
+ overflow: hidden;
45
+
46
+ & img {
47
+ object-fit: cover;
48
+ width: 100%;
49
+ height: 100%;
50
+ filter: grayscale(100%);
51
+ transition: filter 0.3s ease;
52
+
53
+ &:hover {
54
+ filter: grayscale(0%);
55
+ }
56
+ }
57
+
58
+ &:hover {
59
+ cursor: pointer;
60
+ }
61
+ }
62
+ `,x=h.forwardRef(({title:l,buttonText:n,buttonLink:o,items:e,onSelectCard:d=()=>{},onButtonAction:t=()=>{}},m)=>{const c=p.useDetectMobile()?2:7,a=(e==null?void 0:e.length)>c;return r.jsxs(f,{children:[r.jsxs(u.SectionHeadingContainer,{children:[l&&r.jsx("div",{className:"heading__title",children:l}),n&&o&&r.jsx(_,{text:n,borderRadius:"curved",btnType:"tinted",className:"heading__action",color:"neutral",onClick:i=>{var s;(s=i==null?void 0:i.target)==null||s.blur(),t==null||t(o)}})]}),e&&(e==null?void 0:e.length)>0&&r.jsxs("div",{className:"section__slider",children:[a&&r.jsx("div",{className:"slider__gradient left"}),r.jsx(g.Carousel,{responsive:{desktop:{breakpoint:{max:9999,min:801},items:7,slidesToSlide:1,partialVisibilityGutter:10},mobile:{breakpoint:{max:800,min:0},items:2,slidesToSlide:1,partialVisibilityGutter:20}},draggable:!1,swipeable:!1,arrows:!1,infinite:a,autoPlay:a,autoPlaySpeed:2e3,partialVisible:a,customTransition:"transform 500ms linear",transitionDuration:500,containerClass:"slider__container",itemClass:"slider__item",children:e==null?void 0:e.map((i,s)=>r.jsx("div",{className:"section__item",onClick:()=>d(i),children:r.jsx("img",{src:i==null?void 0:i.imageUrl,alt:`Partner brand image ${s+1}`,loading:"lazy"})},`partner-brands-section-item__${s+1}`))}),a&&r.jsx("div",{className:"slider__gradient right"})]})]})});module.exports=x;