@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,12 +1,11 @@
1
- import { jsx as r, jsxs as d, Fragment as b } from "react/jsx-runtime";
2
- import { forwardRef as u, useState as v, useMemo as S } from "react";
3
- import { P as x } from "./index-CblbdqjE.js";
4
- import C from "./Chip.js";
1
+ import { jsx as r, jsxs as s, Fragment as w } from "react/jsx-runtime";
2
+ import { forwardRef as x, useState as u, useMemo as y } from "react";
3
+ import b from "./Chip.js";
5
4
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
5
  import { M as h } from "./consts-BuFChS64.js";
7
- import { u as N } from "./useDetectMobile-Bkvj0VMa.js";
8
- import w from "./Button.js";
9
- const $ = f.div`
6
+ import { u as S } from "./useDetectMobile-Bkvj0VMa.js";
7
+ import v from "./Button.js";
8
+ const N = f.div`
10
9
  display: flex;
11
10
 
12
11
  border: 1px solid var(--gray-200, #e4e9f0);
@@ -73,7 +72,7 @@ const $ = f.div`
73
72
  width: 100%;
74
73
  }
75
74
  }
76
- `, O = f.div`
75
+ `, C = f.div`
77
76
  display: flex;
78
77
  gap: 1.25rem;
79
78
  flex-wrap: wrap;
@@ -102,7 +101,7 @@ const $ = f.div`
102
101
  display: none;
103
102
  }
104
103
  }
105
- `, k = f.a`
104
+ `, $ = f.a`
106
105
  text-decoration: none;
107
106
  color: var(--gray-950);
108
107
  display: flex;
@@ -202,53 +201,47 @@ const $ = f.div`
202
201
  }
203
202
  }
204
203
  }
205
- `, y = u(
206
- ({ options: t = [], selectedOptionCode: o = null, onSelectOption: a = () => {
207
- } }, l) => /* @__PURE__ */ r($, { ref: l, children: t == null ? void 0 : t.map((c, n) => /* @__PURE__ */ r(
208
- C,
204
+ `, k = x(
205
+ ({ options: t = [], selectedOptionCode: a = null, onSelectOption: o = () => {
206
+ } }, l) => /* @__PURE__ */ r(N, { ref: l, children: t == null ? void 0 : t.map((c, n) => /* @__PURE__ */ r(
207
+ b,
209
208
  {
210
209
  label: c,
211
210
  borderRadius: "curved",
212
211
  color: "neutral",
213
- className: `options__item ${o === n ? "active" : ""}`,
212
+ className: `options__item ${a === n ? "active" : ""}`,
214
213
  onClick: () => {
215
- a(n);
214
+ o(n);
216
215
  }
217
216
  },
218
217
  `toggle-section-tag__${n + 1}`
219
218
  )) })
220
- );
221
- y.propTypes = {
222
- options: x.array,
223
- selectedOptionCode: x.any,
224
- onSelectOption: x.func
225
- };
226
- const z = ({
219
+ ), z = ({
227
220
  title: t,
228
- description: o,
229
- image: a,
221
+ description: a,
222
+ image: o,
230
223
  learnMoreText: l,
231
224
  onSelectItem: c = () => {
232
225
  },
233
226
  LinkComponent: n,
234
- link: s
235
- }) => /* @__PURE__ */ d(
236
- k,
227
+ link: d
228
+ }) => /* @__PURE__ */ s(
229
+ $,
237
230
  {
238
231
  onClick: c,
239
232
  as: n || "a",
240
- ...n ? { to: `/${s}` } : { href: `/${s}` },
233
+ ...n ? { to: `/${d}` } : { href: `/${d}` },
241
234
  children: [
242
- /* @__PURE__ */ d("div", { className: "card__content", children: [
243
- /* @__PURE__ */ r("img", { src: a, alt: `Card ${t}`, className: "card__image" }),
244
- /* @__PURE__ */ d("div", { className: "card__text", children: [
235
+ /* @__PURE__ */ s("div", { className: "card__content", children: [
236
+ /* @__PURE__ */ r("img", { src: o, alt: `Card ${t}`, className: "card__image" }),
237
+ /* @__PURE__ */ s("div", { className: "card__text", children: [
245
238
  /* @__PURE__ */ r("div", { className: "card__title", children: t }),
246
239
  /* @__PURE__ */ r("div", { className: "card__divider" }),
247
- /* @__PURE__ */ r("div", { className: "card__description", children: o })
240
+ /* @__PURE__ */ r("div", { className: "card__description", children: a })
248
241
  ] })
249
242
  ] }),
250
243
  /* @__PURE__ */ r(
251
- w,
244
+ v,
252
245
  {
253
246
  text: l,
254
247
  btnType: "basic",
@@ -258,36 +251,36 @@ const z = ({
258
251
  )
259
252
  ]
260
253
  }
261
- ), M = u(
254
+ ), M = x(
262
255
  ({
263
256
  items: t = [],
264
- showMoreText: o,
265
- learnMoreText: a,
257
+ showMoreText: a,
258
+ learnMoreText: o,
266
259
  onSelectItem: l = () => {
267
260
  },
268
261
  LinkComponent: c
269
262
  }, n) => {
270
- const s = N(), [g, p] = v(!1), m = () => {
263
+ const d = S(), [g, p] = u(!1), m = () => {
271
264
  p((e) => !e);
272
- }, i = S(() => t == null ? void 0 : t.map((e, _) => /* @__PURE__ */ r(
265
+ }, i = y(() => t == null ? void 0 : t.map((e, _) => /* @__PURE__ */ r(
273
266
  z,
274
267
  {
275
268
  title: e == null ? void 0 : e.title,
276
269
  description: e == null ? void 0 : e.description,
277
270
  image: e == null ? void 0 : e.image,
278
- learnMoreText: a,
271
+ learnMoreText: o,
279
272
  onSelectItem: () => l(e),
280
273
  LinkComponent: c,
281
274
  link: e == null ? void 0 : e.link
282
275
  },
283
276
  `toggle-section-item__${_ + 1}`
284
277
  )), [t]);
285
- return /* @__PURE__ */ r(O, { ref: n, children: s ? g ? i : /* @__PURE__ */ d(b, { children: [
278
+ return /* @__PURE__ */ r(C, { ref: n, children: d ? g ? i : /* @__PURE__ */ s(w, { children: [
286
279
  i == null ? void 0 : i.slice(0, 4),
287
280
  (i == null ? void 0 : i.length) > 4 && /* @__PURE__ */ r(
288
- w,
281
+ v,
289
282
  {
290
- text: o,
283
+ text: a,
291
284
  btnType: "basic",
292
285
  color: "neutral",
293
286
  className: "section__show-more",
@@ -296,7 +289,7 @@ const z = ({
296
289
  )
297
290
  ] }) : i });
298
291
  }
299
- ), T = f.div`
292
+ ), O = f.div`
300
293
  display: flex;
301
294
  flex-direction: column;
302
295
  align-items: center;
@@ -350,26 +343,26 @@ const z = ({
350
343
  text-align: left;
351
344
  }
352
345
  }
353
- `, X = u(
346
+ `, F = x(
354
347
  ({
355
348
  title: t,
356
- description: o,
357
- showMoreText: a = "Show more",
349
+ description: a,
350
+ showMoreText: o = "Show more",
358
351
  learnMoreText: l = "Learn more",
359
352
  options: c = [],
360
353
  items: n = [],
361
- onSelectItem: s = () => {
354
+ onSelectItem: d = () => {
362
355
  },
363
356
  LinkComponent: g
364
357
  }, p) => {
365
- const [m, i] = v(0);
366
- return /* @__PURE__ */ d(T, { ref: p, children: [
367
- /* @__PURE__ */ d("div", { className: "section__heading", children: [
358
+ const [m, i] = u(0);
359
+ return /* @__PURE__ */ s(O, { ref: p, children: [
360
+ /* @__PURE__ */ s("div", { className: "section__heading", children: [
368
361
  t && /* @__PURE__ */ r("div", { className: "section__title", children: t }),
369
- o && /* @__PURE__ */ r("div", { className: "section__description", children: o })
362
+ a && /* @__PURE__ */ r("div", { className: "section__description", children: a })
370
363
  ] }),
371
364
  /* @__PURE__ */ r(
372
- y,
365
+ k,
373
366
  {
374
367
  options: c,
375
368
  selectedOptionCode: m,
@@ -383,9 +376,9 @@ const z = ({
383
376
  M,
384
377
  {
385
378
  items: n == null ? void 0 : n[m],
386
- showMoreText: a,
379
+ showMoreText: o,
387
380
  learnMoreText: l,
388
- onSelectItem: s,
381
+ onSelectItem: d,
389
382
  LinkComponent: g
390
383
  },
391
384
  `toggle-section-items__${m}`
@@ -394,5 +387,5 @@ const z = ({
394
387
  }
395
388
  );
396
389
  export {
397
- X as default
390
+ F as default
398
391
  };
package/dist/TreeMenu.cjs CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";const T=require("react/jsx-runtime"),s=require("react"),n=require("./index-BpbMKBf_.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=c.styled.div`
1
+ "use strict";const f=require("react/jsx-runtime"),t=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=w.styled.div`
2
2
  padding: 0.25rem;
3
- gap: ${t=>t.itemsGap};
3
+ gap: ${s=>s.itemsGap};
4
4
  display: flex;
5
5
  flex-direction: column;
6
- ${t=>t.widthFitContent==!1&&"min-width: 12.5rem"};
6
+ ${s=>s.widthFitContent==!1&&"min-width: 12.5rem"};
7
7
  height: 100%;
8
8
  justify-content: space-between;
9
9
  & > .start-menu-items-lnc,
10
10
  > .end-menu-items-lnc {
11
11
  display: flex;
12
12
  flex-direction: column;
13
- gap: ${t=>t.itemsGap};
13
+ gap: ${s=>s.itemsGap};
14
14
  }
15
- `,N=s.forwardRef((t,r)=>{const{widthFitContent:M=!1,itemsGap:I="0.25rem",onItemSelected:u=()=>{},className:j="",style:P={},color:o="primary",size:p="small",children:f,...S}=t,i=s.useRef(),g=s.Children.map(f,(e,y)=>{var a,m,E,_,l;if(s.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM"))return y==0&&e.props.justifyToEnd!==!0?(e.props.ref&&(i.current=r),s.cloneElement(e,{ref:r||i,color:o,size:p,onItemSelected:u})):e.props.justifyToEnd!==!0||e.props.__TYPE__=="NESTED_ITEM"||((E=e==null?void 0:e.type)==null?void 0:E.displayName)==="NESTED_ITEM"?s.cloneElement(e,{color:o,size:p,onItemSelected:u}):void 0;if(((_=e.props)==null?void 0:_.justifyToEnd)==!1||!((l=e.props)!=null&&l.justifyToEnd))return e}),x=s.Children.map(f,(e,y)=>{var a,m,E;if(s.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM")&&e.props.justifyToEnd==!0)return y==0?(e.props.ref&&(i.current=r),s.cloneElement(e,{ref:r||i,color:e.props.color?e.props.color:o,size:p,onItemSelected:u})):s.cloneElement(e,{color:e.props.color?e.props.color:o,size:p,onItemSelected:u});if(((E=e.props)==null?void 0:E.justifyToEnd)==!0)return e});return T.jsxs(w,{ref:r,widthFitContent:M,itemsGap:I,size:p,color:o,className:"lnc-ui-treemenu "+j,style:P,...S,children:[T.jsx("div",{className:"nested-item-lnc start-menu-items-lnc",children:g}),T.jsx("div",{className:"nested-item-lnc end-menu-items-lnc",children:x})]})});N.propTypes={widthFitContent:n.PropTypes.bool,itemsGap:n.PropTypes.string,onItemSelected:n.PropTypes.func,className:n.PropTypes.string,style:n.PropTypes.object,color:n.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:n.PropTypes.oneOf(["small","medium","large"])};module.exports=N;
15
+ `,D=t.forwardRef((s,n)=>{const{widthFitContent:N=!1,itemsGap:l="0.25rem",onItemSelected:a=()=>{},className:M="",style:I={},color:r="primary",size:o="small",children:T,...j}=s,u=t.useRef(),S=t.Children.map(T,(e,_)=>{var p,m,E,y,i;if(t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((p=e==null?void 0:e.type)==null?void 0:p.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM"))return _==0&&e.props.justifyToEnd!==!0?(e.props.ref&&(u.current=n),t.cloneElement(e,{ref:n||u,color:r,size:o,onItemSelected:a})):e.props.justifyToEnd!==!0||e.props.__TYPE__=="NESTED_ITEM"||((E=e==null?void 0:e.type)==null?void 0:E.displayName)==="NESTED_ITEM"?t.cloneElement(e,{color:r,size:o,onItemSelected:a}):void 0;if(((y=e.props)==null?void 0:y.justifyToEnd)==!1||!((i=e.props)!=null&&i.justifyToEnd))return e}),x=t.Children.map(T,(e,_)=>{var p,m,E;if(t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((p=e==null?void 0:e.type)==null?void 0:p.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM")&&e.props.justifyToEnd==!0)return _==0?(e.props.ref&&(u.current=n),t.cloneElement(e,{ref:n||u,color:e.props.color?e.props.color:r,size:o,onItemSelected:a})):t.cloneElement(e,{color:e.props.color?e.props.color:r,size:o,onItemSelected:a});if(((E=e.props)==null?void 0:E.justifyToEnd)==!0)return e});return f.jsxs(C,{ref:n,widthFitContent:N,itemsGap:l,size:o,color:r,className:"lnc-ui-treemenu "+M,style:I,...j,children:[f.jsx("div",{className:"nested-item-lnc start-menu-items-lnc",children:S}),f.jsx("div",{className:"nested-item-lnc end-menu-items-lnc",children:x})]})});module.exports=D;
package/dist/TreeMenu.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { jsxs as C, jsx as N } from "react/jsx-runtime";
2
- import { forwardRef as D, useRef as Y, Children as l, isValidElement as M, cloneElement as u } from "react";
3
- import { P as s } from "./index-CblbdqjE.js";
4
- import { s as G } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- const U = G.div`
2
+ import { forwardRef as P, useRef as Y, Children as i, isValidElement as M, cloneElement as u } from "react";
3
+ import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ const U = g.div`
6
5
  padding: 0.25rem;
7
6
  gap: ${(t) => t.itemsGap};
8
7
  display: flex;
@@ -16,49 +15,49 @@ const U = G.div`
16
15
  flex-direction: column;
17
16
  gap: ${(t) => t.itemsGap};
18
17
  }
19
- `, b = D((t, r) => {
18
+ `, $ = P((t, r) => {
20
19
  const {
21
20
  widthFitContent: I = !1,
22
- itemsGap: g = "0.25rem",
21
+ itemsGap: j = "0.25rem",
23
22
  //----------------
24
- onItemSelected: E = () => {
23
+ onItemSelected: a = () => {
25
24
  },
26
25
  //----------------
27
- className: j = "",
28
- style: S = {},
29
- color: n = "primary",
30
- size: o = "small",
26
+ className: S = "",
27
+ style: l = {},
28
+ color: s = "primary",
29
+ size: n = "small",
31
30
  children: _,
32
- ...w
33
- } = t, f = Y(), x = l.map(_, (e, T) => {
34
- var p, a, m, i, y;
35
- if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((a = e == null ? void 0 : e.type) == null ? void 0 : a.displayName) === "NESTED_ITEM"))
36
- return T == 0 && e.props.justifyToEnd !== !0 ? (e.props.ref && (f.current = r), u(e, {
37
- ref: r || f,
31
+ ...x
32
+ } = t, E = Y(), D = i.map(_, (e, f) => {
33
+ var o, p, m, T, y;
34
+ if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((o = e == null ? void 0 : e.type) == null ? void 0 : o.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "NESTED_ITEM"))
35
+ return f == 0 && e.props.justifyToEnd !== !0 ? (e.props.ref && (E.current = r), u(e, {
36
+ ref: r || E,
38
37
  //needed to focus on navigation
39
- color: n,
40
- size: o,
41
- onItemSelected: E
38
+ color: s,
39
+ size: n,
40
+ onItemSelected: a
42
41
  })) : e.props.justifyToEnd !== !0 || e.props.__TYPE__ == "NESTED_ITEM" || ((m = e == null ? void 0 : e.type) == null ? void 0 : m.displayName) === "NESTED_ITEM" ? u(e, {
43
- color: n,
44
- size: o,
45
- onItemSelected: E
42
+ color: s,
43
+ size: n,
44
+ onItemSelected: a
46
45
  }) : void 0;
47
- if (((i = e.props) == null ? void 0 : i.justifyToEnd) == !1 || !((y = e.props) != null && y.justifyToEnd))
46
+ if (((T = e.props) == null ? void 0 : T.justifyToEnd) == !1 || !((y = e.props) != null && y.justifyToEnd))
48
47
  return e;
49
- }), P = l.map(_, (e, T) => {
50
- var p, a, m;
51
- if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((a = e == null ? void 0 : e.type) == null ? void 0 : a.displayName) === "NESTED_ITEM") && e.props.justifyToEnd == !0)
52
- return T == 0 ? (e.props.ref && (f.current = r), u(e, {
53
- ref: r || f,
48
+ }), w = i.map(_, (e, f) => {
49
+ var o, p, m;
50
+ if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((o = e == null ? void 0 : e.type) == null ? void 0 : o.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "NESTED_ITEM") && e.props.justifyToEnd == !0)
51
+ return f == 0 ? (e.props.ref && (E.current = r), u(e, {
52
+ ref: r || E,
54
53
  //needed to focus on navigation
55
- color: e.props.color ? e.props.color : n,
56
- size: o,
57
- onItemSelected: E
54
+ color: e.props.color ? e.props.color : s,
55
+ size: n,
56
+ onItemSelected: a
58
57
  })) : u(e, {
59
- color: e.props.color ? e.props.color : n,
60
- size: o,
61
- onItemSelected: E
58
+ color: e.props.color ? e.props.color : s,
59
+ size: n,
60
+ onItemSelected: a
62
61
  });
63
62
  if (((m = e.props) == null ? void 0 : m.justifyToEnd) == !0) return e;
64
63
  });
@@ -67,42 +66,19 @@ const U = G.div`
67
66
  {
68
67
  ref: r,
69
68
  widthFitContent: I,
70
- itemsGap: g,
71
- size: o,
72
- color: n,
73
- className: "lnc-ui-treemenu " + j,
74
- style: S,
75
- ...w,
69
+ itemsGap: j,
70
+ size: n,
71
+ color: s,
72
+ className: "lnc-ui-treemenu " + S,
73
+ style: l,
74
+ ...x,
76
75
  children: [
77
- /* @__PURE__ */ N("div", { className: "nested-item-lnc start-menu-items-lnc", children: x }),
78
- /* @__PURE__ */ N("div", { className: "nested-item-lnc end-menu-items-lnc", children: P })
76
+ /* @__PURE__ */ N("div", { className: "nested-item-lnc start-menu-items-lnc", children: D }),
77
+ /* @__PURE__ */ N("div", { className: "nested-item-lnc end-menu-items-lnc", children: w })
79
78
  ]
80
79
  }
81
80
  );
82
81
  });
83
- b.propTypes = {
84
- widthFitContent: s.bool,
85
- /**
86
- * Gap between Menu Items
87
- */
88
- itemsGap: s.string,
89
- //---------------------------------------------------------------
90
- onItemSelected: s.func,
91
- //---------------------------------------------------------------
92
- className: s.string,
93
- style: s.object,
94
- color: s.oneOf([
95
- "primary",
96
- "secondary",
97
- "success",
98
- "warning",
99
- "danger",
100
- "information",
101
- "neutral",
102
- "gray"
103
- ]),
104
- size: s.oneOf(["small", "medium", "large"])
105
- };
106
82
  export {
107
- b as default
83
+ $ as default
108
84
  };
@@ -1,6 +1,6 @@
1
- "use strict";const i=require("react/jsx-runtime"),r=require("./index-BpbMKBf_.cjs"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./utils-RnrgDDZP.cjs"),u=require("react"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),d=l.styled.div`
1
+ "use strict";const n=require("react/jsx-runtime"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),m=require("react"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),l=c.styled.div`
2
2
  height: 1px;
3
- background-color: ${e=>m.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
3
+ background-color: ${e=>i.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
4
4
  margin-left: -0.25rem;
5
5
  margin-right: -0.25rem;
6
- `,t=u.forwardRef((e,s)=>{const{className:o="",style:n={},...a}=e,c=p.useTheme();return i.jsx(d,{ref:s,theme:c,className:"lnc-ui-separator "+o,style:n,...a})});t.propTypes={className:r.PropTypes.string,style:r.PropTypes.object};module.exports=t;
6
+ `,d=m.forwardRef((e,r)=>{const{className:t="",style:s={},...o}=e,a=u.useTheme();return n.jsx(l,{ref:r,theme:a,className:"lnc-ui-separator "+t,style:s,...o})});module.exports=d;
@@ -1,12 +1,11 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { P as r } from "./index-CblbdqjE.js";
1
+ import { jsx as s } from "react/jsx-runtime";
3
2
  import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { b as i } from "./utils-DtEfC-TX.js";
5
- import { forwardRef as n } from "react";
6
- import { u as c } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
3
+ import { b as n } from "./utils-DtEfC-TX.js";
4
+ import { forwardRef as i } from "react";
5
+ import { u as p } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
6
  const f = l.div`
8
7
  height: 1px;
9
- background-color: ${(e) => i(
8
+ background-color: ${(e) => n(
10
9
  e.theme,
11
10
  "MenuItem",
12
11
  "default",
@@ -15,26 +14,19 @@ const f = l.div`
15
14
  )};
16
15
  margin-left: -0.25rem;
17
16
  margin-right: -0.25rem;
18
- `, u = n((e, t) => {
19
- const { className: o = "", style: a = {}, ...s } = e, m = c();
20
- return /* @__PURE__ */ p(
17
+ `, b = i((e, r) => {
18
+ const { className: t = "", style: a = {}, ...o } = e, m = p();
19
+ return /* @__PURE__ */ s(
21
20
  f,
22
21
  {
23
- ref: t,
22
+ ref: r,
24
23
  theme: m,
25
- className: "lnc-ui-separator " + o,
24
+ className: "lnc-ui-separator " + t,
26
25
  style: a,
27
- ...s
26
+ ...o
28
27
  }
29
28
  );
30
29
  });
31
- u.propTypes = {
32
- /**
33
- * When the separator needs to be set beetween Menu Items that are justified to end, prop needs to be set to `justifyToEnd={true}`
34
- */
35
- className: r.string,
36
- style: r.object
37
- };
38
30
  export {
39
- u as default
31
+ b as default
40
32
  };
@@ -1 +1 @@
1
- "use strict";const D=require("./_commonjsHelpers-DwTZ_eVU.cjs"),C=require("react"),_=require("./SearchSection-BcbHP6QF.cjs");function N(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(a,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,M=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,H=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},P=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of I(e))!A.call(t,s)&&s!==r&&l(t,s,{get:()=>e[s],enumerable:!(a=j(e,s))||a.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},P(!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>P(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(H(t,typeof e!="symbol"?e+"":e,r),r),f={};R(f,{default:()=>h});var v=U(f),y=F(C),c=_.utils,u=_.patterns;const x="https://player.twitch.tv/js/embed/v1.js",K="Twitch",V="twitch-player-";class h extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${V}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:a,onError:s,config:o,controls:g}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(x,K).then(d=>{this.player=new d.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:a,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:g,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:E,PAUSE:O,ENDED:L,ONLINE:b,OFFLINE:w,SEEK:T}=d.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(E,this.props.onPlay),this.player.addEventListener(O,this.props.onPause),this.player.addEventListener(L,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(b,this.props.onLoaded),this.player.addEventListener(w,this.props.onLoaded)},s)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return y.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const $=D.getDefaultExportFromCjs(v),q=N({__proto__:null,default:$},[v]);exports.Twitch=q;
1
+ "use strict";const D=require("./_commonjsHelpers-DwTZ_eVU.cjs"),C=require("react"),_=require("./SearchSection-B94YN_6P.cjs");function N(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(a,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,M=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,H=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},P=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of I(e))!A.call(t,s)&&s!==r&&l(t,s,{get:()=>e[s],enumerable:!(a=j(e,s))||a.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},P(!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>P(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(H(t,typeof e!="symbol"?e+"":e,r),r),f={};R(f,{default:()=>h});var v=U(f),y=F(C),c=_.utils,u=_.patterns;const x="https://player.twitch.tv/js/embed/v1.js",K="Twitch",V="twitch-player-";class h extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${V}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:a,onError:s,config:o,controls:g}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(x,K).then(d=>{this.player=new d.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:a,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:g,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:E,PAUSE:O,ENDED:L,ONLINE:b,OFFLINE:w,SEEK:T}=d.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(E,this.props.onPlay),this.player.addEventListener(O,this.props.onPause),this.player.addEventListener(L,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(b,this.props.onLoaded),this.player.addEventListener(w,this.props.onLoaded)},s)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return y.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const $=D.getDefaultExportFromCjs(v),q=N({__proto__:null,default:$},[v]);exports.Twitch=q;
@@ -1,6 +1,6 @@
1
1
  import { g as w } from "./_commonjsHelpers-BkfeUUK-.js";
2
2
  import D from "react";
3
- import { u as C, p as N } from "./SearchSection-DDQ_K98T.js";
3
+ import { u as C, p as N } from "./SearchSection-DAaMecR4.js";
4
4
  function I(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const s = e[r];
@@ -1,13 +1,13 @@
1
- "use strict";const r=require("react/jsx-runtime"),S=require("react"),s=require("./index-BpbMKBf_.cjs"),t=require("./emotion-styled.browser.esm-BtEseadx.cjs"),h=require("./Icon.cjs"),U=require("./ProgressBar.cjs"),m=require("./utils-RnrgDDZP.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P={small:"1.5rem",medium:"1.75rem",large:"2rem"},x={small:"2.25rem",medium:"2.5rem",large:"2.75rem"},O=t.styled.div`
1
+ "use strict";const s=require("react/jsx-runtime"),I=require("react"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./Icon.cjs"),M=require("./ProgressBar.cjs"),a=require("./utils-RnrgDDZP.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x={small:"1.5rem",medium:"1.75rem",large:"2rem"},y={small:"2.25rem",medium:"2.5rem",large:"2.75rem"},T=r.styled.div`
2
2
  display: inline-flex;
3
3
  gap: 0.5rem;
4
4
  align-items: center;
5
5
  width: 100%;
6
6
 
7
- height: ${e=>e.progress?x[e.size]:P[e.size]};
8
- height: ${e=>e.progress?x[e.size]:P[e.size]};
9
- `,R=t.styled.div`
10
- color: ${e=>m.getColorRgbaValue(e.theme,"UploadedFile",e.color,"enabled","color")};
7
+ height: ${e=>e.progress?y[e.size]:x[e.size]};
8
+ height: ${e=>e.progress?y[e.size]:x[e.size]};
9
+ `,R=r.styled.div`
10
+ color: ${e=>a.getColorRgbaValue(e.theme,"UploadedFile",e.color,"enabled","color")};
11
11
 
12
12
  width: 100%;
13
13
  display: flex;
@@ -16,24 +16,24 @@
16
16
  min-width: 0;
17
17
  flex-shrink: 1;
18
18
  min-height: 0;
19
- `,_=t.styled.div`
19
+ `,S=r.styled.div`
20
20
  display: flex;
21
21
  justify-content: space-between;
22
22
  white-space: nowrap;
23
23
  overflow: hidden;
24
24
  text-overflow: ellipsis;
25
25
 
26
- ${e=>m.getComponentTypographyCss(e.theme,"UploadedFile",e.size,"enabled")};
27
- `,E=t.styled.span`
26
+ ${e=>a.getComponentTypographyCss(e.theme,"UploadedFile",e.size,"enabled")};
27
+ `,_=r.styled.span`
28
28
  display: flex;
29
29
  align-items: center;
30
30
  justify-content: center;
31
31
  cursor: ${e=>e.onCancel?"pointer":"default"};
32
- `,W=t.styled.span`
32
+ `,E=r.styled.span`
33
33
  white-space: nowrap;
34
34
  overflow: hidden;
35
35
  text-overflow: ellipsis;
36
36
  cursor: ${e=>e.hasOnClick?"pointer":"default"};
37
37
 
38
- ${e=>m.getComponentTypographyCss(e.theme,"UploadedFile",e.size,"enabled")};
39
- `,z=S.forwardRef((e,T)=>{const{id:w,fileName:c="file",fileSize:d=null,showFileSize:C=!1,progressPercentage:i,onFileClick:l=()=>{},onCancel:a=()=>{},size:j="small",color:F="primary",className:B="",style:b={},fileIcon:k="file",cancelIcon:v="times",...p}=e;var n={theme:M.useTheme(),size:j,color:F,progress:i&&i>0};const $=()=>c&&d&&C?`${c} (${q(d,2)})`:c||"";function q(o,y=2){if(o===0)return"0 Bytes";const f=1024,I=y<0?0:y,N=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],g=Math.floor(Math.log(o)/Math.log(f));return parseFloat((o/Math.pow(f,g)).toFixed(I))+" "+N[g]}const u={small:"1rem",medium:"1.25rem",large:"1.5rem"};return r.jsxs(O,{ref:T,id:w,...n,className:"lnc-ui-uploaded-file "+B,style:b,...p,children:[r.jsx(h,{...n,icon:k,sizeInUnits:u[e.size],style:{cursor:l?"pointer":"default"},onClick:o=>l?l(o):null}),r.jsxs(R,{...n,children:[r.jsxs(_,{...n,children:[r.jsx(W,{...n,hasOnClick:!!l,onClick:o=>l?l(o):null,children:$()}),i&&r.jsxs("div",{children:[i,"%"]})]}),(i||i==0)&&r.jsx(U,{progressPercentage:i,style:{height:"0.5rem"},...n})]}),r.jsx(E,{onCancel:a,onClick:a||null,children:r.jsx(h,{...n,icon:v,sizeInUnits:u[e.size],...p})})]})});z.propTypes={id:s.PropTypes.any,fileName:s.PropTypes.string,fileSize:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.number]),showFileSize:s.PropTypes.bool,progressPercentage:s.PropTypes.number,className:s.PropTypes.string,style:s.PropTypes.object,onFileClick:s.PropTypes.func,onCancel:s.PropTypes.func,size:s.PropTypes.oneOf(["small","medium","large"]),color:s.PropTypes.oneOf(["primary","secondary","success","danger","warning","disabled","neutral","information","gray"]),fileIcon:s.PropTypes.string,cancelIcon:s.PropTypes.string};module.exports=z;
38
+ ${e=>a.getComponentTypographyCss(e.theme,"UploadedFile",e.size,"enabled")};
39
+ `,O=I.forwardRef((e,z)=>{const{id:w,fileName:o="file",fileSize:d=null,showFileSize:C=!1,progressPercentage:i,onFileClick:n=()=>{},onCancel:c=()=>{},size:j="small",color:B="primary",className:F="",style:v={},fileIcon:$="file",cancelIcon:k="times",...m}=e;var t={theme:N.useTheme(),size:j,color:B,progress:i&&i>0};const q=()=>o&&d&&C?`${o} (${P(d,2)})`:o||"";function P(l,u=2){if(l===0)return"0 Bytes";const f=1024,U=u<0?0:u,b=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],g=Math.floor(Math.log(l)/Math.log(f));return parseFloat((l/Math.pow(f,g)).toFixed(U))+" "+b[g]}const h={small:"1rem",medium:"1.25rem",large:"1.5rem"};return s.jsxs(T,{ref:z,id:w,...t,className:"lnc-ui-uploaded-file "+F,style:v,...m,children:[s.jsx(p,{...t,icon:$,sizeInUnits:h[e.size],style:{cursor:n?"pointer":"default"},onClick:l=>n?n(l):null}),s.jsxs(R,{...t,children:[s.jsxs(S,{...t,children:[s.jsx(E,{...t,hasOnClick:!!n,onClick:l=>n?n(l):null,children:q()}),i&&s.jsxs("div",{children:[i,"%"]})]}),(i||i==0)&&s.jsx(M,{progressPercentage:i,style:{height:"0.5rem"},...t})]}),s.jsx(_,{onCancel:c,onClick:c||null,children:s.jsx(p,{...t,icon:k,sizeInUnits:h[e.size],...m})})]})});module.exports=O;