@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
package/dist/Avatar.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as I } from "react";
3
- import { P as i } from "./index-CblbdqjE.js";
4
- import { s as U } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { a as y, d as t, h as $, b as v } from "./utils-DtEfC-TX.js";
6
- import w from "./Icon.js";
7
- import { u as R } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const x = U.div`
9
- border-radius: ${(e) => y(e.theme, e.borderRadius)};
2
+ import { forwardRef as U } from "react";
3
+ import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { a as b, d as t, h as $, b as v } from "./utils-DtEfC-TX.js";
5
+ import y from "./Icon.js";
6
+ import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ const R = I.div`
8
+ border-radius: ${(e) => b(e.theme, e.borderRadius)};
10
9
  color: white;
11
10
  display: inline-flex;
12
11
  justify-content: center;
@@ -20,92 +19,54 @@ const x = U.div`
20
19
  height: ${(e) => e.sizeInUnits ? e.sizeInUnits : t(e.theme, e.size)};
21
20
  width: ${(e) => e.sizeInUnits ? e.sizeInUnits : t(e.theme, e.size)};
22
21
  }
23
- `, C = I((e, o) => {
22
+ `, B = U((e, r) => {
24
23
  const {
25
- image: a,
24
+ image: n,
26
25
  icon: l = "user",
27
- sizeInUnits: n,
26
+ sizeInUnits: i,
28
27
  borderRadius: m = "curved",
29
28
  //----------------
30
29
  onFocus: d = () => {
31
30
  },
32
- onBlur: c = () => {
31
+ onBlur: o = () => {
33
32
  },
34
- onClick: u = () => {
33
+ onClick: c = () => {
35
34
  },
36
35
  //----------------
37
- size: r = "small",
36
+ size: a = "small",
38
37
  color: h = "primary",
39
- className: g = "",
40
- style: f = {},
41
- ...z
42
- } = e, b = {
43
- theme: R(),
38
+ className: u = "",
39
+ style: z = {},
40
+ ...f
41
+ } = e, g = {
42
+ theme: w(),
44
43
  color: h,
45
- style: f,
46
- size: r,
47
- sizeInUnits: n,
48
- className: "lnc-ui-avatar " + g
44
+ style: z,
45
+ size: a,
46
+ sizeInUnits: i,
47
+ className: "lnc-ui-avatar " + u
49
48
  };
50
49
  return /* @__PURE__ */ s(
51
- x,
50
+ R,
52
51
  {
53
- ref: o,
54
- ...b,
52
+ ref: r,
53
+ ...g,
55
54
  borderRadius: m,
56
- onClick: u,
55
+ onClick: c,
57
56
  onFocus: d,
58
- onBlur: c,
59
- ...z,
60
- children: a ? /* @__PURE__ */ s("img", { src: a }) : /* @__PURE__ */ s(
61
- w,
57
+ onBlur: o,
58
+ ...f,
59
+ children: n ? /* @__PURE__ */ s("img", { src: n }) : /* @__PURE__ */ s(
60
+ y,
62
61
  {
63
62
  icon: l,
64
- size: r,
65
- sizeInUnits: n ? `calc(${n} / 2)` : null
63
+ size: a,
64
+ sizeInUnits: i ? `calc(${i} / 2)` : null
66
65
  }
67
66
  )
68
67
  }
69
68
  );
70
69
  });
71
- C.propTypes = {
72
- image: i.string,
73
- /**
74
- * If `image` is not defined, icon can be used.
75
- */
76
- icon: i.string,
77
- tabIndex: i.number,
78
- /**
79
- * it has higher priority than `size` prop
80
- */
81
- sizeInUnits: i.string,
82
- disabled: i.bool,
83
- borderRadius: i.oneOf([
84
- "slight",
85
- "regular",
86
- "edged",
87
- "curved",
88
- "none"
89
- ]),
90
- //---------------------------------------------------------------
91
- onBlur: i.func,
92
- onFocus: i.func,
93
- onClick: i.func,
94
- //---------------------------------------------------------------
95
- className: i.string,
96
- style: i.object,
97
- size: i.oneOf(["small", "medium", "large"]),
98
- color: i.oneOf([
99
- "primary",
100
- "secondary",
101
- "success",
102
- "warning",
103
- "danger",
104
- "information",
105
- "neutral",
106
- "gray"
107
- ])
108
- };
109
70
  export {
110
- C as default
71
+ B as default
111
72
  };
package/dist/Badge.cjs CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";const h=require("react/jsx-runtime"),p=require("react"),r=require("./index-BpbMKBf_.cjs"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-RnrgDDZP.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),t=e=>e=="large"?"2rem":e=="medium"?"1.75rem":"1.5rem",R=f.styled.div`
2
- ${e=>s.getComponentTypographyCss(e.theme,"Badge",e.size,"enabled")};
3
- background-color: ${e=>s.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","background","backgroundOpacity")};
4
- color: ${e=>s.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","text")};
5
- border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
1
+ "use strict";const h=require("react/jsx-runtime"),b=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-RnrgDDZP.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),t=e=>e=="large"?"2rem":e=="medium"?"1.75rem":"1.5rem",R=y.styled.div`
2
+ ${e=>r.getComponentTypographyCss(e.theme,"Badge",e.size,"enabled")};
3
+ background-color: ${e=>r.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","background","backgroundOpacity")};
4
+ color: ${e=>r.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","text")};
5
+ border-radius: ${e=>r.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
6
6
  display: inline-flex;
7
7
  min-width: ${e=>t(e.size)};
8
8
  min-height: ${e=>t(e.size)};
@@ -14,4 +14,4 @@
14
14
  & i {
15
15
  font-size: ${e=>e.size=="small"?"0.75rem":e.size=="medium"?"0.875rem":"1rem"};
16
16
  }
17
- `,o=p.forwardRef((e,i)=>{const{borderRadius:n="curved",onClick:a=()=>{},className:d="",style:l={},color:c="primary",size:m="small",children:u,...g}=e,y=z.useTheme(),b={borderRadius:n,theme:y,size:m,color:c,className:"lnc-ui-badge "+d,style:l};return h.jsx(R,{ref:i,...b,onClick:a,...g,children:u})});o.propTypes={onClick:r.PropTypes.func,borderRadius:r.PropTypes.oneOf(["slight","regular","edged","curved","none"]),className:r.PropTypes.string,style:r.PropTypes.object,color:r.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:r.PropTypes.oneOf(["small","medium","large"])};module.exports=o;
17
+ `,$=b.forwardRef((e,i)=>{const{borderRadius:s="curved",onClick:n=()=>{},className:o="",style:a={},color:d="primary",size:m="small",children:l,...c}=e,u=z.useTheme(),g={borderRadius:s,theme:u,size:m,color:d,className:"lnc-ui-badge "+o,style:a};return h.jsx(R,{ref:i,...g,onClick:n,...c,children:l})});module.exports=$;
package/dist/Badge.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
- import { forwardRef as y } from "react";
3
- import { P as r } from "./index-CblbdqjE.js";
2
+ import { forwardRef as f } from "react";
4
3
  import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { c as p, b as o, a as z } from "./utils-DtEfC-TX.js";
4
+ import { c as y, b as t, a as z } from "./utils-DtEfC-TX.js";
6
5
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B = b.div`
8
- ${(e) => p(e.theme, "Badge", e.size, "enabled")};
9
- background-color: ${(e) => o(
6
+ const r = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B = b.div`
7
+ ${(e) => y(e.theme, "Badge", e.size, "enabled")};
8
+ background-color: ${(e) => t(
10
9
  e.theme,
11
10
  "Badge",
12
11
  e.color,
@@ -14,12 +13,12 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B
14
13
  "background",
15
14
  "backgroundOpacity"
16
15
  )};
17
- color: ${(e) => o(e.theme, "Badge", e.color, "enabled", "text")};
16
+ color: ${(e) => t(e.theme, "Badge", e.color, "enabled", "text")};
18
17
  border-radius: ${(e) => z(e.theme, e.borderRadius)};
19
18
  display: inline-flex;
20
- min-width: ${(e) => a(e.size)};
21
- min-height: ${(e) => a(e.size)};
22
- max-height: ${(e) => a(e.size)};
19
+ min-width: ${(e) => r(e.size)};
20
+ min-height: ${(e) => r(e.size)};
21
+ max-height: ${(e) => r(e.size)};
23
22
  justify-content: center;
24
23
  align-items: center;
25
24
  padding: 0.313rem;
@@ -27,51 +26,27 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B
27
26
  & i {
28
27
  font-size: ${(e) => e.size == "small" ? "0.75rem" : e.size == "medium" ? "0.875rem" : "1rem"};
29
28
  }
30
- `, R = y((e, t) => {
29
+ `, j = f((e, a) => {
31
30
  const {
32
31
  borderRadius: i = "curved",
33
- onClick: s = () => {
32
+ onClick: o = () => {
34
33
  },
35
- className: n = "",
36
- style: m = {},
34
+ className: m = "",
35
+ style: s = {},
37
36
  color: d = "primary",
38
- size: l = "small",
39
- children: c,
40
- ...g
41
- } = e, u = $(), f = {
37
+ size: n = "small",
38
+ children: l,
39
+ ...c
40
+ } = e, u = $(), g = {
42
41
  borderRadius: i,
43
42
  theme: u,
44
- size: l,
43
+ size: n,
45
44
  color: d,
46
- className: "lnc-ui-badge " + n,
47
- style: m
45
+ className: "lnc-ui-badge " + m,
46
+ style: s
48
47
  };
49
- return /* @__PURE__ */ h(B, { ref: t, ...f, onClick: s, ...g, children: c });
48
+ return /* @__PURE__ */ h(B, { ref: a, ...g, onClick: o, ...c, children: l });
50
49
  });
51
- R.propTypes = {
52
- onClick: r.func,
53
- borderRadius: r.oneOf([
54
- "slight",
55
- "regular",
56
- "edged",
57
- "curved",
58
- "none"
59
- ]),
60
- //---------------------------
61
- className: r.string,
62
- style: r.object,
63
- color: r.oneOf([
64
- "primary",
65
- "secondary",
66
- "success",
67
- "warning",
68
- "danger",
69
- "information",
70
- "neutral",
71
- "gray"
72
- ]),
73
- size: r.oneOf(["small", "medium", "large"])
74
- };
75
50
  export {
76
- R as default
51
+ j as default
77
52
  };
@@ -1,4 +1,4 @@
1
- "use strict";const S=require("react/jsx-runtime"),E=require("react"),L=require("./_commonjsHelpers-DwTZ_eVU.cjs"),ft=require("./Button.cjs"),mt=require("./useDetectMobile-zkbzoOGV.cjs"),st=require("./emotion-styled.browser.esm-BtEseadx.cjs"),at=require("./style-BAcV7F53.cjs"),vt=require("./consts-goSZX3xP.cjs");var Y={},q={},m={},B={};(function(o){function i(a,n,l){var h=n.slidesToShow,d=n.currentSlide;return l.length>2*h?a+2*h:d>=l.length?l.length+a:a}function t(a,n){if(n.length>2*a){for(var l={},h=n.length-2*a,d=n.length-h,u=h,c=0;c<d;c++)l[c]=u,u++;var p=n.length+d,f=p+n.slice(0,2*a).length,g=0;for(c=p;c<=f;c++)l[c]=g,g++;var b=p,_=0;for(c=d;c<b;c++)l[c]=_,_++;return l}l={};var C=3*n.length,y=0;for(c=0;c<C;c++)l[c]=y,++y===n.length&&(y=0);return l}function e(a,n){return n.length<a?n:n.length>2*a?n.slice(n.length-2*a,n.length).concat(n,n.slice(0,2*a)):n.concat(n,n)}function r(a,n){return n.length>2*a?2*a:n.length}function s(a,n,l){var h,d=a.currentSlide,u=a.slidesToShow,c=a.itemWidth,p=a.totalItems,f=0,g=0,b=d===0,_=n.length-(n.length-2*u);return n.length<u?(g=f=0,b=h=!1):n.length>2*u?((h=d>=_+n.length)&&(g=-c*(f=d-n.length)),b&&(g=-c*(f=_+(n.length-2*u)))):((h=d>=2*n.length)&&(g=-c*(f=d-n.length)),b&&(g=l.showDots?-c*(f=n.length):-c*(f=p/3))),{isReachingTheEnd:h,isReachingTheStart:b,nextSlide:f,nextPosition:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.getOriginalCounterPart=i,o.getOriginalIndexLookupTableByClones=t,o.getClones=e,o.getInitialSlideInInfiniteMode=r,o.checkClonesPosition=s})(B);var A={};Object.defineProperty(A,"__esModule",{value:!0});var it=!1;function gt(o,i,t,e){var r=0,s=e||t;return i&&s&&(!it&&process.env.NODE_ENV!=="production"&&o[s].paritialVisibilityGutter&&(it=!0,console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")),r=o[s].partialVisibilityGutter||o[s].paritialVisibilityGutter),r}function yt(o,i){var t;return i[o]&&(t=(100/i[o].items).toFixed(1)),t}function St(o,i,t){return Math.round(t/(i+(o.centerMode?1:0)))}A.getPartialVisibilityGutter=gt,A.getWidthFromDeviceType=yt,A.getItemClientSideWidth=St;var T={};Object.defineProperty(T,"__esModule",{value:!0});var U=A;function K(o){var i=o.slidesToShow;return o.totalItems<i}function Tt(o,i){var t,e=o.domLoaded,r=o.slidesToShow,s=o.containerWidth,a=o.itemWidth,n=i.deviceType,l=i.responsive,h=i.ssr,d=i.partialVisbile,u=i.partialVisible,c=!!(e&&r&&s&&a);h&&n&&!c&&(t=U.getWidthFromDeviceType(n,l));var p=!!(h&&n&&!c&&t);return{shouldRenderOnSSR:p,flexBisis:t,domFullyLoaded:c,partialVisibilityGutter:U.getPartialVisibilityGutter(l,d||u,n,o.deviceType),shouldRenderAtAll:p||c}}function wt(o,i){var t=i.currentSlide,e=i.slidesToShow;return t<=o&&o<t+e}function lt(o,i,t){var e=t||o.transform;return!i.infinite&&o.currentSlide===0||K(o)?e:e+o.itemWidth/2}function bt(o){return!(0<o.currentSlide)}function ut(o){var i=o.currentSlide,t=o.totalItems;return!(i+o.slidesToShow<t)}function ht(o,i,t,e){i===void 0&&(i=0);var r=o.currentSlide,s=o.slidesToShow,a=ut(o),n=!t.infinite&&a,l=e||o.transform;if(K(o))return l;var h=l+r*i;return n?h+(o.containerWidth-(o.itemWidth-i)*s):h}function dt(o,i){return o.rtl?-1*i:i}function _t(o,i,t){var e=i.partialVisbile,r=i.partialVisible,s=i.responsive,a=i.deviceType,n=i.centerMode,l=t||o.transform,h=U.getPartialVisibilityGutter(s,e||r,a,o.deviceType);return dt(i,r||e?ht(o,h,i,t):n?lt(o,i,t):l)}function Ct(o,i){var t=o.domLoaded,e=o.slidesToShow,r=o.containerWidth,s=o.itemWidth,a=i.deviceType,n=i.responsive,l=i.slidesToSlide||1,h=!!(t&&e&&r&&s);return i.ssr&&i.deviceType&&!h&&Object.keys(n).forEach(function(d){var u=n[d].slidesToSlide;a===d&&u&&(l=u)}),h&&Object.keys(n).forEach(function(d){var u=n[d],c=u.breakpoint,p=u.slidesToSlide,f=c.max,g=c.min;p&&window.innerWidth>=g&&window.innerWidth<=f&&(l=p)}),l}T.notEnoughChildren=K,T.getInitialState=Tt,T.getIfSlideIsVisbile=wt,T.getTransformForCenterMode=lt,T.isInLeftEnd=bt,T.isInRightEnd=ut,T.getTransformForPartialVsibile=ht,T.parsePosition=dt,T.getTransform=_t,T.getSlidesToSlide=Ct;var Z={};Object.defineProperty(Z,"__esModule",{value:!0});var It=function(o,i,t){var e;return function(){var r=arguments;e||(o.apply(this,r),e=!0,typeof t=="function"&&t(!0),setTimeout(function(){e=!1,typeof t=="function"&&t(!1)},i))}};Z.default=It;var ct={};(function(o){function i(t,e){var r=e.partialVisbile,s=e.partialVisible,a=e.centerMode,n=e.ssr,l=e.responsive;if((r||s)&&a)throw new Error("center mode can not be used at the same time with partialVisible");if(!l)throw n?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(l&&typeof l!="object")throw new Error("responsive prop must be an object")}Object.defineProperty(o,"__esModule",{value:!0}),o.default=i})(ct);var J={};Object.defineProperty(J,"__esModule",{value:!0});var Mt=T;function xt(o,i,t){t===void 0&&(t=0);var e,r,s=o.slidesToShow,a=o.currentSlide,n=o.itemWidth,l=o.totalItems,h=Mt.getSlidesToSlide(o,i),d=a+1+t+s+(0<t?0:h);return r=d<=l?-n*(e=a+t+(0<t?0:h)):l<d&&a!==l-s?-n*(e=l-s):e=void 0,{nextSlides:e,nextPosition:r}}J.populateNextSlides=xt;var Q={};Object.defineProperty(Q,"__esModule",{value:!0});var Pt=E,Et=T,Rt=T;function Ot(o,i,t){t===void 0&&(t=0);var e,r,s=o.currentSlide,a=o.itemWidth,n=o.slidesToShow,l=i.children,h=i.showDots,d=i.infinite,u=Et.getSlidesToSlide(o,i),c=s-t-(0<t?0:u),p=(Pt.Children.toArray(l).length-n)%u;return r=0<=c?(e=c,h&&!d&&0<p&&Rt.isInRightEnd(o)&&(e=s-p),-a*e):e=c<0&&s!==0?0:void 0,{nextSlides:e,nextPosition:r}}Q.populatePreviousSlides=Ot;var pt={};(function(o){function i(t,e,r,s,a,n){var l,h,d=t.itemWidth,u=t.slidesToShow,c=t.totalItems,p=t.currentSlide,f=e.infinite,g=!1,b=Math.round((r-s)/d),_=Math.round((s-r)/d),C=r<a;if(a<r&&b<=u){l="right";var y=Math.abs(-d*(c-u)),M=n-(s-a),I=p===c-u;(Math.abs(M)<=y||I&&f)&&(h=M,g=!0)}return C&&_<=u&&(l="left",((M=n+(a-s))<=0||p===0&&f)&&(g=!0,h=M)),{direction:l,nextPosition:h,canContinue:g}}Object.defineProperty(o,"__esModule",{value:!0}),o.populateSlidesOnMouseTouchMove=i})(pt);Object.defineProperty(m,"__esModule",{value:!0});var j=B;m.getOriginalCounterPart=j.getOriginalCounterPart,m.getClones=j.getClones,m.checkClonesPosition=j.checkClonesPosition,m.getInitialSlideInInfiniteMode=j.getInitialSlideInInfiniteMode;var z=A;m.getWidthFromDeviceType=z.getWidthFromDeviceType,m.getPartialVisibilityGutter=z.getPartialVisibilityGutter,m.getItemClientSideWidth=z.getItemClientSideWidth;var P=T;m.getInitialState=P.getInitialState,m.getIfSlideIsVisbile=P.getIfSlideIsVisbile,m.getTransformForCenterMode=P.getTransformForCenterMode,m.getTransformForPartialVsibile=P.getTransformForPartialVsibile,m.isInLeftEnd=P.isInLeftEnd,m.isInRightEnd=P.isInRightEnd,m.notEnoughChildren=P.notEnoughChildren,m.getSlidesToSlide=P.getSlidesToSlide;var At=Z;m.throttle=At.default;var Wt=ct;m.throwError=Wt.default;var Dt=J;m.populateNextSlides=Dt.populateNextSlides;var Lt=Q;m.populatePreviousSlides=Lt.populatePreviousSlides;var kt=pt;m.populateSlidesOnMouseTouchMove=kt.populateSlidesOnMouseTouchMove;var F={},jt=L.commonjsGlobal&&L.commonjsGlobal.__extends||function(){var o=function(i,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(i,t)};return function(i,t){function e(){this.constructor=i}o(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(F,"__esModule",{value:!0});var Vt=E;function Gt(o){return"clientY"in o}F.isMouseMoveEvent=Gt;var Nt=function(o){function i(){return o!==null&&o.apply(this,arguments)||this}return jt(i,o),i}(Vt.Component);F.default=Nt;var H={},tt={};Object.defineProperty(tt,"__esModule",{value:!0});var Bt=B,Ft=T;function $t(o,i,t,e){var r={},s=Ft.getSlidesToSlide(i,t);return Array(o).fill(0).forEach(function(a,n){var l=Bt.getOriginalCounterPart(n,i,e);if(n===0)r[0]=l;else{var h=r[n-1]+s;r[n]=h}}),r}tt.getLookupTableForNextSlides=$t;Object.defineProperty(H,"__esModule",{value:!0});var D=E,zt=B,Xt=tt,ot=T,Ut=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.getState,s=i.showDots,a=i.customDot,n=i.dotListClass,l=i.infinite,h=i.children;if(!s||ot.notEnoughChildren(t))return null;var d,u=t.currentSlide,c=t.slidesToShow,p=ot.getSlidesToSlide(t,i),f=D.Children.toArray(h);d=l?Math.ceil(f.length/p):Math.ceil((f.length-c)/p)+1;var g=Xt.getLookupTableForNextSlides(d,t,i,f),b=zt.getOriginalIndexLookupTableByClones(c,f),_=b[u];return D.createElement("ul",{className:"react-multi-carousel-dot-list "+n},Array(d).fill(0).map(function(C,y){var M,I;if(l){I=g[y];var O=b[I];M=_===O||O<=_&&_<O+p}else{var W=f.length-c,k=y*p;M=(I=W<k?W:k)===u||I<u&&u<I+p&&u<f.length-c}return a?D.cloneElement(a,{index:y,active:M,key:y,onClick:function(){return e(I)},carouselState:r()}):D.createElement("li",{"data-index":y,key:y,className:"react-multi-carousel-dot "+(M?"react-multi-carousel-dot--active":"")},D.createElement("button",{"aria-label":"Go to slide "+(y+1),onClick:function(){return e(I)}}))}))};H.default=Ut;var $={};Object.defineProperty($,"__esModule",{value:!0});var N=E,Yt=function(o){var i=o.customLeftArrow,t=o.getState,e=o.previous,r=o.disabled,s=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:s});var a=s?"rtl":"";return N.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+a,onClick:function(){return e()},type:"button",disabled:r})};$.LeftArrow=Yt;var qt=function(o){var i=o.customRightArrow,t=o.getState,e=o.next,r=o.disabled,s=o.rtl;if(i)return N.cloneElement(i,{onClick:function(){return e()},carouselState:t(),disabled:r,rtl:s});var a=s?"rtl":"";return N.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+a,onClick:function(){return e()},type:"button",disabled:r})};$.RightArrow=qt;var et={};Object.defineProperty(et,"__esModule",{value:!0});var V=E,X=m,Kt=function(o){var i=o.props,t=o.state,e=o.goToSlide,r=o.clones,s=o.notEnoughChildren,a=t.itemWidth,n=i.children,l=i.infinite,h=i.itemClass,d=i.itemAriaLabel,u=i.partialVisbile,c=i.partialVisible,p=X.getInitialState(t,i),f=p.flexBisis,g=p.shouldRenderOnSSR,b=p.domFullyLoaded,_=p.partialVisibilityGutter;return p.shouldRenderAtAll?(u&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),V.createElement(V.Fragment,null,(l?r:V.Children.toArray(n)).map(function(C,y){return V.createElement("li",{key:y,"data-index":y,onClick:function(){i.focusOnSelect&&e(y)},"aria-hidden":X.getIfSlideIsVisbile(y,t)?"false":"true","aria-label":d||(C.props.ariaLabel?C.props.ariaLabel:null),style:{flex:g?"1 0 "+f+"%":"auto",position:"relative",width:b?((u||c)&&_&&!s?a-_:a)+"px":"auto"},className:"react-multi-carousel-item "+(X.getIfSlideIsVisbile(y,t)?"react-multi-carousel-item--active":"")+" "+h},C)}))):null};et.default=Kt;var Zt=L.commonjsGlobal&&L.commonjsGlobal.__extends||function(){var o=function(i,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])})(i,t)};return function(i,t){function e(){this.constructor=i}o(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(q,"__esModule",{value:!0});var w=E,v=m,R=F,Jt=H,rt=$,Qt=et,G=T,x=400,nt="transform 400ms ease-in-out",Ht=function(o){function i(t){var e=o.call(this,t)||this;return e.containerRef=w.createRef(),e.listRef=w.createRef(),e.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:w.Children.count(t.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},e.onResize=e.onResize.bind(e),e.handleDown=e.handleDown.bind(e),e.handleMove=e.handleMove.bind(e),e.handleOut=e.handleOut.bind(e),e.onKeyUp=e.onKeyUp.bind(e),e.handleEnter=e.handleEnter.bind(e),e.setIsInThrottle=e.setIsInThrottle.bind(e),e.next=v.throttle(e.next.bind(e),t.transitionDuration||x,e.setIsInThrottle),e.previous=v.throttle(e.previous.bind(e),t.transitionDuration||x,e.setIsInThrottle),e.goToSlide=v.throttle(e.goToSlide.bind(e),t.transitionDuration||x,e.setIsInThrottle),e.onMove=!1,e.initialX=0,e.lastX=0,e.isAnimationAllowed=!1,e.direction="",e.initialY=0,e.isInThrottle=!1,e.transformPlaceHolder=0,e}return Zt(i,o),i.prototype.resetTotalItems=function(){var t=this,e=w.Children.count(this.props.children),r=v.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,e));this.setState({totalItems:e,currentSlide:r},function(){t.setContainerAndItemWidth(t.state.slidesToShow,!0)})},i.prototype.setIsInThrottle=function(t){t===void 0&&(t=!1),this.isInThrottle=t},i.prototype.setTransformDirectly=function(t,e){var r=this.props.additionalTransfrom;this.transformPlaceHolder=t;var s=G.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(e),this.listRef.current.style.transform="translate3d("+(s+r)+"px,0,0)")},i.prototype.setAnimationDirectly=function(t){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=t?this.props.customTransition||nt:"none")},i.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},i.prototype.setClones=function(t,e,r,s){var a=this;s===void 0&&(s=!1),this.isAnimationAllowed=!1;var n=w.Children.toArray(this.props.children),l=v.getInitialSlideInInfiniteMode(t||this.state.slidesToShow,n),h=v.getClones(this.state.slidesToShow,n),d=n.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:h.length,currentSlide:r&&!s?d:l},function(){a.correctItemsPosition(e||a.state.itemWidth)})},i.prototype.setItemsToShow=function(t,e){var r=this,s=this.props.responsive;Object.keys(s).forEach(function(a){var n=s[a],l=n.breakpoint,h=n.items,d=l.max,u=l.min,c=[window.innerWidth];window.screen&&window.screen.width&&c.push(window.screen.width);var p=Math.min.apply(Math,c);u<=p&&p<=d&&(r.setState({slidesToShow:h,deviceType:a}),r.setContainerAndItemWidth(h,t,e))})},i.prototype.setContainerAndItemWidth=function(t,e,r){var s=this;if(this.containerRef&&this.containerRef.current){var a=this.containerRef.current.offsetWidth,n=v.getItemClientSideWidth(this.props,t,a);this.setState({containerWidth:a,itemWidth:n},function(){s.props.infinite&&s.setClones(t,n,e,r)}),e&&this.correctItemsPosition(n)}},i.prototype.correctItemsPosition=function(t,e,r){e&&(this.isAnimationAllowed=!0),!e&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var s=this.state.totalItems<this.state.slidesToShow?0:-t*this.state.currentSlide;r&&this.setTransformDirectly(s,!0),this.setState({transform:s})},i.prototype.onResize=function(t){var e;e=!!this.props.infinite&&(typeof t!="boolean"||!t),this.setItemsToShow(e)},i.prototype.componentDidUpdate=function(t,e){var r=this,s=t.keyBoardControl,a=t.autoPlay,n=t.children,l=e.containerWidth,h=e.domLoaded,d=e.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==l&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){r.setItemsToShow(!0)},this.props.transitionDuration||x)),s&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!s&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),a&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),a||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),n.length!==this.props.children.length?i.clonesTimeout=setTimeout(function(){r.props.infinite?r.setClones(r.state.slidesToShow,r.state.itemWidth,!0,!0):r.resetTotalItems()},this.props.transitionDuration||x):this.props.infinite&&this.state.currentSlide!==d&&this.correctClonesPosition({domLoaded:h}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&v.isInRightEnd(this.state)){var u=this.props.transitionDuration||x;i.isInThrottleTimeout=setTimeout(function(){r.setIsInThrottle(!1),r.resetAutoplayInterval(),r.goToSlide(0,void 0,!!r.props.rewindWithAnimation)},u+this.props.autoPlaySpeed)}},i.prototype.correctClonesPosition=function(t){var e=this,r=t.domLoaded,s=w.Children.toArray(this.props.children),a=v.checkClonesPosition(this.state,s,this.props),n=a.isReachingTheEnd,l=a.isReachingTheStart,h=a.nextSlide,d=a.nextPosition;this.state.domLoaded&&r&&(n||l)&&(this.isAnimationAllowed=!1,i.transformTimeout=setTimeout(function(){e.setState({transform:d,currentSlide:h})},this.props.transitionDuration||x))},i.prototype.next=function(t){var e=this;t===void 0&&(t=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!v.notEnoughChildren(this.state)){var n=v.populateNextSlides(this.state,this.props,t),l=n.nextSlides,h=n.nextPosition,d=this.state.currentSlide;l!==void 0&&h!==void 0&&(typeof a=="function"&&a(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:h,currentSlide:l},function(){typeof s=="function"&&(i.afterChangeTimeout=setTimeout(function(){s(d,e.getState())},e.props.transitionDuration||x))}))}},i.prototype.previous=function(t){var e=this;t===void 0&&(t=0);var r=this.props,s=r.afterChange,a=r.beforeChange;if(!v.notEnoughChildren(this.state)){var n=v.populatePreviousSlides(this.state,this.props,t),l=n.nextSlides,h=n.nextPosition;if(l!==void 0&&h!==void 0){var d=this.state.currentSlide;typeof a=="function"&&a(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:h,currentSlide:l},function(){typeof s=="function"&&(i.afterChangeTimeout2=setTimeout(function(){s(d,e.getState())},e.props.transitionDuration||x))})}}},i.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},i.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),i.clonesTimeout&&clearTimeout(i.clonesTimeout),i.isInThrottleTimeout&&clearTimeout(i.isInThrottleTimeout),i.transformTimeout&&clearTimeout(i.transformTimeout),i.afterChangeTimeout&&clearTimeout(i.afterChangeTimeout),i.afterChangeTimeout2&&clearTimeout(i.afterChangeTimeout2),i.afterChangeTimeout3&&clearTimeout(i.afterChangeTimeout3)},i.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},i.prototype.getCords=function(t){var e=t.clientX,r=t.clientY;return{clientX:G.parsePosition(this.props,e),clientY:G.parsePosition(this.props,r)}},i.prototype.handleDown=function(t){if(!(!R.isMouseMoveEvent(t)&&!this.props.swipeable||R.isMouseMoveEvent(t)&&!this.props.draggable||this.isInThrottle)){var e=this.getCords(R.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,s=e.clientY;this.onMove=!0,this.initialX=r,this.initialY=s,this.lastX=r,this.isAnimationAllowed=!1}},i.prototype.handleMove=function(t){if(!(!R.isMouseMoveEvent(t)&&!this.props.swipeable||R.isMouseMoveEvent(t)&&!this.props.draggable||v.notEnoughChildren(this.state))){var e=this.getCords(R.isMouseMoveEvent(t)?t:t.touches[0]),r=e.clientX,s=e.clientY,a=this.initialX-r,n=this.initialY-s;if(this.onMove){if(!(Math.abs(a)>Math.abs(n)))return;var l=v.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),h=l.direction,d=l.nextPosition,u=l.canContinue;h&&(this.direction=h,u&&d!==void 0&&this.setTransformDirectly(d)),this.lastX=r}}},i.prototype.handleOut=function(t){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var e=t.type==="touchend"&&!this.props.swipeable,r=(t.type==="mouseleave"||t.type==="mouseup")&&!this.props.draggable;if(!e&&!r&&this.onMove){if(this.setAnimationDirectly(!0),this.direction==="right")if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var s=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(s)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);this.direction==="left"&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(s=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(s)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},i.prototype.isInViewport=function(t){var e=t.getBoundingClientRect(),r=e.top,s=r===void 0?0:r,a=e.left,n=a===void 0?0:a,l=e.bottom,h=l===void 0?0:l,d=e.right,u=d===void 0?0:d;return 0<=s&&0<=n&&h<=(window.innerHeight||document.documentElement.clientHeight)&&u<=(window.innerWidth||document.documentElement.clientWidth)},i.prototype.isChildOfCarousel=function(t){return!!(t instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(t)},i.prototype.onKeyUp=function(t){var e=t.target;switch(t.keyCode){case 37:if(this.isChildOfCarousel(e))return this.previous();break;case 39:if(this.isChildOfCarousel(e))return this.next();break;case 9:if(this.isChildOfCarousel(e)&&e instanceof HTMLInputElement&&this.isInViewport(e))return this.next()}},i.prototype.handleEnter=function(t){R.isMouseMoveEvent(t)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},i.prototype.goToSlide=function(t,e,r){var s=this;if(r===void 0&&(r=!0),!this.isInThrottle){var a=this.state.itemWidth,n=this.props,l=n.afterChange,h=n.beforeChange,d=this.state.currentSlide;typeof h!="function"||e&&(typeof e!="object"||e.skipBeforeChange)||h(t,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:t,transform:-a*t},function(){s.props.infinite&&s.correctClonesPosition({domLoaded:!0}),typeof l!="function"||e&&(typeof e!="object"||e.skipAfterChange)||(i.afterChangeTimeout3=setTimeout(function(){l(d,s.getState())},s.props.transitionDuration||x))})}},i.prototype.getState=function(){return this.state},i.prototype.renderLeftArrow=function(t){var e=this,r=this.props,s=r.customLeftArrow,a=r.rtl;return w.createElement(rt.LeftArrow,{customLeftArrow:s,getState:function(){return e.getState()},previous:this.previous,disabled:t,rtl:a})},i.prototype.renderRightArrow=function(t){var e=this,r=this.props,s=r.customRightArrow,a=r.rtl;return w.createElement(rt.RightArrow,{customRightArrow:s,getState:function(){return e.getState()},next:this.next,disabled:t,rtl:a})},i.prototype.renderButtonGroups=function(){var t=this,e=this.props.customButtonGroup;return e?w.cloneElement(e,{previous:function(){return t.previous()},next:function(){return t.next()},goToSlide:function(r,s){return t.goToSlide(r,s)},carouselState:this.getState()}):null},i.prototype.renderDotsList=function(){var t=this;return w.createElement(Jt.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return t.getState()}})},i.prototype.renderCarouselItems=function(){var t=[];if(this.props.infinite){var e=w.Children.toArray(this.props.children);t=v.getClones(this.state.slidesToShow,e)}return w.createElement(Qt.default,{clones:t,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:v.notEnoughChildren(this.state),props:this.props})},i.prototype.render=function(){var t=this.props,e=t.deviceType,r=t.arrows,s=t.renderArrowsWhenDisabled,a=t.removeArrowOnDeviceType,n=t.infinite,l=t.containerClass,h=t.sliderClass,d=t.customTransition,u=t.additionalTransfrom,c=t.renderDotsOutside,p=t.renderButtonGroupOutside,f=t.className,g=t.rtl;process.env.NODE_ENV!=="production"&&v.throwError(this.state,this.props);var b=v.getInitialState(this.state,this.props),_=b.shouldRenderOnSSR,C=b.shouldRenderAtAll,y=v.isInLeftEnd(this.state),M=v.isInRightEnd(this.state),I=r&&!(a&&(e&&-1<a.indexOf(e)||this.state.deviceType&&-1<a.indexOf(this.state.deviceType)))&&!v.notEnoughChildren(this.state)&&C,O=!n&&y,W=!n&&M,k=G.getTransform(this.state,this.props);return w.createElement(w.Fragment,null,w.createElement("div",{className:"react-multi-carousel-list "+l+" "+f,dir:g?"rtl":"ltr",ref:this.containerRef},w.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+h,style:{transition:this.isAnimationAllowed?d||nt:"none",overflow:_?"hidden":"unset",transform:"translate3d("+(k+u)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),I&&(!O||s)&&this.renderLeftArrow(O),I&&(!W||s)&&this.renderRightArrow(W),C&&!p&&this.renderButtonGroups(),C&&!c&&this.renderDotsList()),C&&c&&this.renderDotsList(),C&&p&&this.renderButtonGroups())},i.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},i}(w.Component);q.default=Ht;Object.defineProperty(Y,"__esModule",{value:!0});var te=q;Y.default=te.default;var ee=Y;const ie=L.getDefaultExportFromCjs(ee),oe=st.styled.div`
1
+ "use strict";const r=require("react/jsx-runtime"),c=require("react"),x=require("./index-DeS-oqJB.cjs"),b=require("./Button.cjs"),y=require("./useDetectMobile-zkbzoOGV.cjs"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),u=require("./style-BAcV7F53.cjs"),v=require("./consts-goSZX3xP.cjs"),w=d.styled.div`
2
2
  &:hover {
3
3
  cursor: pointer;
4
4
 
@@ -167,11 +167,11 @@
167
167
  }
168
168
  }
169
169
  }
170
- `,re=st.styled(at.SkeletonColumnWrapper)`
171
- @media (max-width: ${vt.MOBILE_SIZE_PX+"px"}) {
170
+ `,j=d.styled(u.SkeletonColumnWrapper)`
171
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
172
172
  & > div {
173
173
  height: 100%;
174
174
  aspect-ratio: 1 / 1;
175
175
  }
176
176
  }
177
- `,ne=({keyPrefix:o})=>S.jsx(re,{noGradient:!0,children:S.jsx(at.SkeletonLinePlaceholder,{keyPrefix:`${o}-1`,height:"22.5rem"})}),se=({keyPrefix:o,isLoading:i=!1,fallbackComponent:t=S.jsx(S.Fragment,{}),children:e})=>S.jsx(E.Suspense,{fallbackComponent:t,children:i===!0?S.jsx(ne,{keyPrefix:o}):e}),ae=E.forwardRef(({items:o=[],isLoading:i=!1,deviceType:t,partialVisible:e=!0,fallbackComponent:r=S.jsx(S.Fragment,{}),onSelectItem:s=()=>{},onButtonAction:a=()=>{},carouselProps:n},l)=>{const h={desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:64}},d=mt.useDetectMobile();return S.jsx(oe,{ref:l,children:S.jsx(se,{fallbackComponent:r,keyPrefix:"banner-carousel-skeleton",isLoading:i,children:S.jsx(ie,{responsive:h,deviceType:t,removeArrowOnDeviceType:["tablet","mobile"],infinite:!d,keyBoardControl:!0,autoPlay:!0,partialVisible:e,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,...n,children:o==null?void 0:o.map((u,c)=>S.jsxs("div",{className:"section__card",onClick:()=>s(u),children:[S.jsx("img",{src:u==null?void 0:u.imageUrl,alt:`Slide ${c+1}`,className:"section__image"}),S.jsxs("div",{className:"card__content",children:[S.jsxs("div",{className:"card__text",children:[(u==null?void 0:u.title)&&S.jsx("div",{className:"card__title",children:u==null?void 0:u.title}),(u==null?void 0:u.title)&&S.jsx("div",{className:"card__description",children:u==null?void 0:u.description})]}),(u==null?void 0:u.buttonText)&&S.jsx(ft,{text:u==null?void 0:u.buttonText,className:"card__action",size:"medium",onClick:p=>{p==null||p.stopPropagation(),a(u)}})]})]},`banner-section-carousel-item__${c+1}`))})})},`banner-section-carousel__${d}`)});module.exports=ae;
177
+ `,k=({keyPrefix:t})=>r.jsx(j,{noGradient:!0,children:r.jsx(u.SkeletonLinePlaceholder,{keyPrefix:`${t}-1`,height:"22.5rem"})}),C=({keyPrefix:t,isLoading:i=!1,fallbackComponent:a=r.jsx(r.Fragment,{}),children:n})=>r.jsx(c.Suspense,{fallbackComponent:a,children:i===!0?r.jsx(k,{keyPrefix:t}):n}),S=c.forwardRef(({items:t=[],isLoading:i=!1,deviceType:a,partialVisible:n=!0,fallbackComponent:h=r.jsx(r.Fragment,{}),onSelectItem:m=()=>{},onButtonAction:_=()=>{},carouselProps:p},g)=>{const f={desktop:{breakpoint:{max:3e3,min:1024},items:1,partialVisibilityGutter:0},tablet:{breakpoint:{max:1024,min:464},items:1,partialVisibilityGutter:0},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:64}},s=y.useDetectMobile();return r.jsx(w,{ref:g,children:r.jsx(C,{fallbackComponent:h,keyPrefix:"banner-carousel-skeleton",isLoading:i,children:r.jsx(x.Carousel,{responsive:f,deviceType:a,removeArrowOnDeviceType:["tablet","mobile"],infinite:!s,keyBoardControl:!0,autoPlay:!0,partialVisible:n,customTransition:"transform 500ms ease-in-out",sliderClass:"carousel-slider",itemClass:"carousel-item",containerClass:"carousel-container",rewind:!0,rewindWithAnimation:!0,...p,children:t==null?void 0:t.map((e,l)=>r.jsxs("div",{className:"section__card",onClick:()=>m(e),children:[r.jsx("img",{src:e==null?void 0:e.imageUrl,alt:`Slide ${l+1}`,className:"section__image"}),r.jsxs("div",{className:"card__content",children:[r.jsxs("div",{className:"card__text",children:[(e==null?void 0:e.title)&&r.jsx("div",{className:"card__title",children:e==null?void 0:e.title}),(e==null?void 0:e.title)&&r.jsx("div",{className:"card__description",children:e==null?void 0:e.description})]}),(e==null?void 0:e.buttonText)&&r.jsx(b,{text:e==null?void 0:e.buttonText,className:"card__action",size:"medium",onClick:o=>{o==null||o.stopPropagation(),_(e)}})]})]},`banner-section-carousel-item__${l+1}`))})})},`banner-section-carousel__${s}`)});module.exports=S;