@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/FileInput.js CHANGED
@@ -1,16 +1,15 @@
1
- import { jsxs as R, jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as S, useState as y } from "react";
3
- import { s as b } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { P as t } from "./index-CblbdqjE.js";
5
- import { d as x, b as a, e as V, c as $, h as I } from "./utils-DtEfC-TX.js";
6
- import { u as B } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- const D = b.label`
1
+ import { jsxs as S, jsx as b } from "react/jsx-runtime";
2
+ import { forwardRef as T, useState as g } from "react";
3
+ import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { d as x, b as t, e as V, c as $, h as y } from "./utils-DtEfC-TX.js";
5
+ import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
+ const L = s.label`
8
7
  display: inline-flex;
9
8
  box-sizing: border-box;
10
9
  width: 100%;
11
10
  min-height: ${(e) => x(e.theme, e.size)};
12
11
  max-height: ${(e) => x(e.theme, e.size)};
13
- background-color: ${(e) => a(
12
+ background-color: ${(e) => t(
14
13
  e.theme,
15
14
  "Input",
16
15
  e.color,
@@ -19,20 +18,20 @@ const D = b.label`
19
18
  )};
20
19
  border-radius: 8px;
21
20
  ${(e) => e.focused === !0 && e.readOnly !== !0 ? V(e.theme) : ""}
22
- `, L = b.input`
21
+ `, P = s.input`
23
22
  width: 0.1px;
24
23
  height: 0.1px;
25
24
  opacity: 0;
26
25
  overflow: hidden;
27
26
  position: absolute;
28
27
  z-index: -1;
29
- `, U = b.div`
28
+ `, U = s.div`
30
29
  display: flex;
31
30
  align-items: center;
32
31
  white-space: nowrap;
33
32
  padding: 0.625rem 0.75rem;
34
33
  ${(e) => $(e.theme, "Input", e.size, "enabled")}
35
- color: ${(e) => a(
34
+ color: ${(e) => t(
36
35
  e.theme,
37
36
  "Input",
38
37
  e.focused === !0 ? "primary" : e.color,
@@ -40,7 +39,7 @@ const D = b.label`
40
39
  "prefix"
41
40
  )};
42
41
  cursor: ${(e) => e.disabled === !0 ? "default" : "pointer"};
43
- background-color: ${(e) => a(
42
+ background-color: ${(e) => t(
44
43
  e.theme,
45
44
  "Input",
46
45
  e.color,
@@ -48,7 +47,7 @@ const D = b.label`
48
47
  "background"
49
48
  )};
50
49
  border: 1px solid
51
- ${(e) => a(
50
+ ${(e) => t(
52
51
  e.theme,
53
52
  "Input",
54
53
  e.focused === !0 ? "primary" : e.color,
@@ -57,8 +56,8 @@ const D = b.label`
57
56
  )};
58
57
  border-radius: 8px 0 0 8px;
59
58
 
60
- /* ${(e) => e.disabled === !0 ? I(e.theme) : ""} */
61
- ${(e) => e.disabled === !0 && `background-color: ${a(
59
+ /* ${(e) => e.disabled === !0 ? y(e.theme) : ""} */
60
+ ${(e) => e.disabled === !0 && `background-color: ${t(
62
61
  e.theme,
63
62
  "Input",
64
63
  e.color,
@@ -66,21 +65,21 @@ const D = b.label`
66
65
  "background",
67
66
  "backgroundOpacity"
68
67
  )};
69
- color: ${(o) => a(
70
- o.theme,
68
+ color: ${(r) => t(
69
+ r.theme,
71
70
  "Input",
72
- o.color,
71
+ r.color,
73
72
  "disabled",
74
73
  "text"
75
74
  )};`}
76
- `, W = b.input`
75
+ `, W = s.input`
77
76
  width: 100%;
78
77
  appearance: none;
79
78
  outline: none;
80
79
  padding: 0.625rem 0.75rem;
81
80
  ${(e) => $(e.theme, "Input", e.size, "enabled")}
82
81
  border: 1px solid
83
- ${(e) => a(
82
+ ${(e) => t(
84
83
  e.theme,
85
84
  "Input",
86
85
  e.focused === !0 ? "primary" : e.color,
@@ -89,7 +88,7 @@ const D = b.label`
89
88
  )};
90
89
  border-radius: 0 8px 8px 0;
91
90
  border-left: transparent;
92
- color: ${(e) => a(
91
+ color: ${(e) => t(
93
92
  e.theme,
94
93
  "Input",
95
94
  e.focused === !0 ? "primary" : e.color,
@@ -97,14 +96,14 @@ const D = b.label`
97
96
  "text"
98
97
  )};
99
98
 
100
- background-color: ${(e) => a(
99
+ background-color: ${(e) => t(
101
100
  e.theme,
102
101
  "Input",
103
102
  e.color,
104
103
  "enabled",
105
104
  "background"
106
105
  )};
107
- color: ${(e) => a(
106
+ color: ${(e) => t(
108
107
  e.theme,
109
108
  "Input",
110
109
  e.focused === !0 ? "primary" : e.color,
@@ -112,9 +111,9 @@ const D = b.label`
112
111
  "text"
113
112
  )};
114
113
 
115
- /* ${(e) => e.disabled === !0 ? I(e.theme) : ""} */
114
+ /* ${(e) => e.disabled === !0 ? y(e.theme) : ""} */
116
115
 
117
- ${(e) => e.disabled === !0 && `background-color: ${a(
116
+ ${(e) => e.disabled === !0 && `background-color: ${t(
118
117
  e.theme,
119
118
  "Input",
120
119
  e.color,
@@ -122,76 +121,76 @@ const D = b.label`
122
121
  "background",
123
122
  "backgroundOpacity"
124
123
  )};
125
- color: ${(o) => a(
126
- o.theme,
124
+ color: ${(r) => t(
125
+ r.theme,
127
126
  "Input",
128
- o.color,
127
+ r.color,
129
128
  "disabled",
130
129
  "text"
131
130
  )};`}
132
- `, q = S((e, o) => {
131
+ `, J = T((e, r) => {
133
132
  const {
134
- className: p = "",
133
+ className: I = "",
135
134
  style: k = {},
136
135
  onChange: d,
137
- onFocus: s,
136
+ onFocus: i,
138
137
  onBlur: u,
139
- disabled: r,
140
- readOnly: f,
138
+ disabled: n,
139
+ readOnly: m,
141
140
  multiple: C = !1,
142
- accept: O = "",
143
- label: z = "Choose File",
144
- color: w = "primary",
145
- size: F = "small",
146
- ...v
147
- } = e, T = B(), [i, N] = y([]), [h, g] = y(!1);
148
- var c = { theme: T, size: F, color: w, disabled: r, focused: h };
141
+ accept: z = "",
142
+ label: w = "Choose File",
143
+ color: O = "primary",
144
+ size: v = "small",
145
+ ...F
146
+ } = e, p = D(), [o, N] = g([]), [h, f] = g(!1);
147
+ var c = { theme: p, size: v, color: O, disabled: n, focused: h };
149
148
  const j = () => {
150
- if (i.length > 0) {
151
- var n = "";
152
- for (const l in i)
153
- n += l == i.length - 1 ? `${i[l].name}` : `${i[l].name}, `;
154
- return n;
149
+ if (o.length > 0) {
150
+ var a = "";
151
+ for (const l in o)
152
+ a += l == o.length - 1 ? `${o[l].name}` : `${o[l].name}, `;
153
+ return a;
155
154
  }
156
155
  return "";
157
156
  };
158
- return /* @__PURE__ */ R(
159
- D,
157
+ return /* @__PURE__ */ S(
158
+ L,
160
159
  {
161
160
  ...c,
162
- className: p,
161
+ className: I,
163
162
  style: k,
164
163
  focused: h,
165
- readOnly: f,
164
+ readOnly: m,
166
165
  children: [
167
- /* @__PURE__ */ m(
168
- L,
166
+ /* @__PURE__ */ b(
167
+ P,
169
168
  {
170
169
  ...c,
171
- accept: O,
170
+ accept: z,
172
171
  multiple: C,
173
- ref: o,
174
- onChange: r || f ? () => {
175
- } : (n) => {
172
+ ref: r,
173
+ onChange: n || m ? () => {
174
+ } : (a) => {
176
175
  var l = [];
177
- if (n.target.files && n.target.files.length > 0)
178
- for (const P of n.target.files)
179
- l.push(P);
176
+ if (a.target.files && a.target.files.length > 0)
177
+ for (const R of a.target.files)
178
+ l.push(R);
180
179
  else l = [];
181
- N(l), d && (d == null || d(n, l));
180
+ N(l), d && (d == null || d(a, l));
182
181
  },
183
182
  type: "file",
184
- onFocus: (n) => {
185
- r || g(!0), s && !r && (s == null || s(n));
183
+ onFocus: (a) => {
184
+ n || f(!0), i && !n && (i == null || i(a));
186
185
  },
187
- onBlur: (n) => {
188
- r || g(!1), u && !r && (u == null || u(n));
186
+ onBlur: (a) => {
187
+ n || f(!1), u && !n && (u == null || u(a));
189
188
  },
190
- ...v
189
+ ...F
191
190
  }
192
191
  ),
193
- /* @__PURE__ */ m(U, { ...c, children: z }),
194
- /* @__PURE__ */ m(
192
+ /* @__PURE__ */ b(U, { ...c, children: w }),
193
+ /* @__PURE__ */ b(
195
194
  W,
196
195
  {
197
196
  tabIndex: -1,
@@ -205,33 +204,6 @@ const D = b.label`
205
204
  }
206
205
  );
207
206
  });
208
- q.propTypes = {
209
- id: t.any,
210
- disabled: t.bool,
211
- readOnly: t.bool,
212
- multiple: t.bool,
213
- accept: t.string,
214
- label: t.oneOfType([t.string, t.element]),
215
- tabIndex: t.number,
216
- //-------------------------
217
- onChange: t.func,
218
- onFocus: t.func,
219
- onBlur: t.func,
220
- //-------------------------
221
- className: t.string,
222
- style: t.object,
223
- size: t.oneOf(["small", "medium", "large"]),
224
- color: t.oneOf([
225
- "primary",
226
- "secondary",
227
- "success",
228
- "danger",
229
- "warning",
230
- "information",
231
- "neutral",
232
- "gray"
233
- ])
234
- };
235
207
  export {
236
- q as default
208
+ J as default
237
209
  };
@@ -1,6 +1,6 @@
1
1
  import { g as b } from "./_commonjsHelpers-BkfeUUK-.js";
2
2
  import _ from "react";
3
- import { u as O, p as A } from "./SearchSection-DDQ_K98T.js";
3
+ import { u as O, p as A } from "./SearchSection-DAaMecR4.js";
4
4
  function R(s, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -1 +1 @@
1
- "use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-BcbHP6QF.cjs");function A(s,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in s)){const l=Object.getOwnPropertyDescriptor(i,n);l&&Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var R=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,w=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,k=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},m=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of D(e))!M.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=I(e,n))||i.enumerable});return s},N=(s,e,t)=>(t=s!=null?R(w(s)):{},m(!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),j=s=>m(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),g={};U(g,{default:()=>P});var S=j(g),p=N(O),a=E.utils,d=E.patterns;const y=typeof navigator<"u",H=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||H)&&!window.MSStream,F=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,V="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",T="Hls",C="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",B="dashjs",x="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",K="flvjs",q=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,G="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends p.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?p.default.createElement("source",{key:t,src:e}):p.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>p.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return F&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(V.replace("VERSION",t),T).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(G.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(C.replace("VERSION",n),B).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(x.replace("VERSION",l),K).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return q.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:c}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",b={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return p.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:b,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const X=_.getDefaultExportFromCjs(S),W=A({__proto__:null,default:X},[S]);exports.FilePlayer=W;
1
+ "use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-B94YN_6P.cjs");function A(s,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in s)){const l=Object.getOwnPropertyDescriptor(i,n);l&&Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var R=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,w=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,k=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},m=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of D(e))!M.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=I(e,n))||i.enumerable});return s},N=(s,e,t)=>(t=s!=null?R(w(s)):{},m(!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),j=s=>m(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),g={};U(g,{default:()=>P});var S=j(g),p=N(O),a=E.utils,d=E.patterns;const y=typeof navigator<"u",H=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||H)&&!window.MSStream,F=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,V="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",T="Hls",C="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",B="dashjs",x="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",K="flvjs",q=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,G="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends p.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?p.default.createElement("source",{key:t,src:e}):p.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>p.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return F&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(V.replace("VERSION",t),T).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(G.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(C.replace("VERSION",n),B).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(x.replace("VERSION",l),K).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return q.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:c}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",b={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return p.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:b,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const X=_.getDefaultExportFromCjs(S),W=A({__proto__:null,default:X},[S]);exports.FilePlayer=W;
package/dist/FlexBox.cjs CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";const w=require("react/jsx-runtime"),d=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),f={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},m={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},x={Start:"flex-start",Center:"center",End:"flex-end",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},S={Start:"flex-start",Center:"center",Stretch:"stretch",End:"flex-end",Baseline:"baseline"},g=y.styled.div`
1
+ "use strict";const p=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},x={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},m={Start:"flex-start",Center:"center",End:"flex-end",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},f={Start:"flex-start",Center:"center",Stretch:"stretch",End:"flex-end",Baseline:"baseline"},y=w.styled.div`
2
2
  display: flex;
3
- flex-direction: ${e=>f[e.direction]};
4
- flex-wrap: ${e=>m[e.wrap]};
5
- justify-content: ${e=>x[e.justifyContent]};
6
- align-items: ${e=>S[e.alignItems]};
3
+ flex-direction: ${e=>d[e.direction]};
4
+ flex-wrap: ${e=>x[e.wrap]};
5
+ justify-content: ${e=>m[e.justifyContent]};
6
+ align-items: ${e=>f[e.alignItems]};
7
7
  column-gap: ${e=>e.columnGap?e.columnGap:e.gap};
8
8
  row-gap: ${e=>e.rowGap?e.rowGap:e.gap};
9
- `,t=d.forwardRef((e,o)=>{const{className:n="",children:a,direction:s="Row",wrap:p="NoWrap",justifyContent:c="Start",alignItems:i="Stretch",gap:l="0",...u}=e;return w.jsx(g,{className:"lnc-flexbox-container "+(n||""),ref:o,wrap:p,gap:l,alignItems:i,direction:s,justifyContent:c,...u,children:a})});t.propTypes={rowGap:r.PropTypes.string,columnGap:r.PropTypes.string,gap:r.PropTypes.string,direction:r.PropTypes.oneOf(["Row","RowReverse","Column","ColumnReverse"]),wrap:r.PropTypes.oneOf(["NoWrap","Wrap","WrapReverse"]),justifyContent:r.PropTypes.oneOf(["Start","Center","End","SpaceAround","SpaceBetween","SpaceEvenly"]),alignItems:r.PropTypes.oneOf(["Start","Center","Stretch","End","Baseline"])};module.exports=t;
9
+ `,S=u.forwardRef((e,r)=>{const{className:t="",children:n,direction:a="Row",wrap:o="NoWrap",justifyContent:s="Start",alignItems:c="Stretch",gap:l="0",...i}=e;return p.jsx(y,{className:"lnc-flexbox-container "+(t||""),ref:r,wrap:o,gap:l,alignItems:c,direction:a,justifyContent:s,...i,children:n})});module.exports=S;
package/dist/FlexBox.js CHANGED
@@ -1,97 +1,62 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
3
- import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { P as r } from "./index-CblbdqjE.js";
5
- const d = {
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ const w = {
6
5
  Row: "row",
7
6
  RowReverse: "row-reverse",
8
7
  Column: "column",
9
8
  ColumnReverse: "column-reverse"
10
- }, u = {
9
+ }, d = {
11
10
  NoWrap: "nowrap",
12
11
  Wrap: "wrap",
13
12
  WrapReverse: "wrap-reverse"
14
- }, x = {
13
+ }, u = {
15
14
  Start: "flex-start",
16
15
  Center: "center",
17
16
  End: "flex-end",
18
17
  SpaceAround: "space-around",
19
18
  SpaceBetween: "space-between",
20
19
  SpaceEvenly: "space-evenly"
21
- }, S = {
20
+ }, x = {
22
21
  Start: "flex-start",
23
22
  Center: "center",
24
23
  Stretch: "stretch",
25
24
  End: "flex-end",
26
25
  Baseline: "baseline"
27
- }, g = w.div`
26
+ }, g = m.div`
28
27
  display: flex;
29
- flex-direction: ${(e) => d[e.direction]};
30
- flex-wrap: ${(e) => u[e.wrap]};
31
- justify-content: ${(e) => x[e.justifyContent]};
32
- align-items: ${(e) => S[e.alignItems]};
28
+ flex-direction: ${(e) => w[e.direction]};
29
+ flex-wrap: ${(e) => d[e.wrap]};
30
+ justify-content: ${(e) => u[e.justifyContent]};
31
+ align-items: ${(e) => x[e.alignItems]};
33
32
  column-gap: ${(e) => e.columnGap ? e.columnGap : e.gap};
34
33
  row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap};
35
- `, v = m((e, n) => {
34
+ `, R = f((e, r) => {
36
35
  const {
37
36
  className: t = "",
38
- children: a,
39
- direction: o = "Row",
40
- wrap: s = "NoWrap",
41
- justifyContent: c = "Start",
42
- alignItems: l = "Stretch",
43
- gap: p = "0",
37
+ children: n,
38
+ direction: a = "Row",
39
+ wrap: o = "NoWrap",
40
+ justifyContent: s = "Start",
41
+ alignItems: c = "Stretch",
42
+ gap: l = "0",
44
43
  ...i
45
44
  } = e;
46
- return /* @__PURE__ */ f(
45
+ return /* @__PURE__ */ p(
47
46
  g,
48
47
  {
49
48
  className: "lnc-flexbox-container " + (t || ""),
50
- ref: n,
51
- wrap: s,
52
- gap: p,
53
- alignItems: l,
54
- direction: o,
55
- justifyContent: c,
49
+ ref: r,
50
+ wrap: o,
51
+ gap: l,
52
+ alignItems: c,
53
+ direction: a,
54
+ justifyContent: s,
56
55
  ...i,
57
- children: a
56
+ children: n
58
57
  }
59
58
  );
60
59
  });
61
- v.propTypes = {
62
- rowGap: r.string,
63
- columnGap: r.string,
64
- gap: r.string,
65
- /**
66
- * Controls the direction of items in FlexBox.
67
- */
68
- direction: r.oneOf(["Row", "RowReverse", "Column", "ColumnReverse"]),
69
- /**
70
- * Determines whether the FlexBox should wrap, when there is not enough space to display all items in one line.
71
- */
72
- wrap: r.oneOf(["NoWrap", "Wrap", "WrapReverse"]),
73
- /**
74
- * Controls how the space is distributed between items along the main-axis.
75
- */
76
- justifyContent: r.oneOf([
77
- "Start",
78
- "Center",
79
- "End",
80
- "SpaceAround",
81
- "SpaceBetween",
82
- "SpaceEvenly"
83
- ]),
84
- /**
85
- * Controls how the space is distributed between items along the cross-axis.
86
- */
87
- alignItems: r.oneOf([
88
- "Start",
89
- "Center",
90
- "Stretch",
91
- "End",
92
- "Baseline"
93
- ])
94
- };
95
60
  export {
96
- v as default
61
+ R as default
97
62
  };
package/dist/FlexGrid.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const P=require("react/jsx-runtime"),r=require("react"),e=require("./index-BpbMKBf_.cjs"),S=require("./FlexBox.cjs"),d=require("./FlexGridItem.cjs"),t=r.forwardRef((p,o)=>{const{columns:s=12,spacing:c,rowSpacing:i,columnSpacing:a,justifyContent:u="Start",alignItems:y="Stretch",children:l,rest:T}=p,m=r.Children.map(l,n=>{if(!(!r.isValidElement(n)||n.type!=d))return r.cloneElement(n,{columns:s,spacing:c,rowSpacing:i,columnSpacing:a})});return P.jsx(S,{ref:o,wrap:"Wrap",justifyContent:u,alignItems:y,...T,children:m})});t.propTypes={columns:e.PropTypes.number,spacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),rowSpacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),columnSpacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),justifyContent:e.PropTypes.oneOf(["Start","Center","End","SpaceAround","SpaceBetween","SpaceEvenly"]),alignItems:e.PropTypes.oneOf(["Start","Center","Stretch","End","Baseline"])};module.exports=t;
1
+ "use strict";const d=require("react/jsx-runtime"),e=require("react"),x=require("./FlexBox.cjs"),f=require("./FlexGridItem.cjs"),g=e.forwardRef((t,n)=>{const{columns:i=12,spacing:s,rowSpacing:c,columnSpacing:o,justifyContent:l="Start",alignItems:u="Stretch",children:a,rest:m}=t,p=e.Children.map(a,r=>{if(!(!e.isValidElement(r)||r.type!=f))return e.cloneElement(r,{columns:i,spacing:s,rowSpacing:c,columnSpacing:o})});return d.jsx(x,{ref:n,wrap:"Wrap",justifyContent:l,alignItems:u,...m,children:p})});module.exports=g;
package/dist/FlexGrid.js CHANGED
@@ -1,78 +1,38 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { forwardRef as S, Children as d, isValidElement as y, cloneElement as g } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
- import b from "./FlexBox.js";
5
- import j from "./FlexGridItem.js";
6
- const x = S((r, t) => {
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as d, Children as u, isValidElement as x, cloneElement as g } from "react";
3
+ import S from "./FlexBox.js";
4
+ import h from "./FlexGridItem.js";
5
+ const y = d((e, t) => {
7
6
  const {
8
- columns: o = 12,
9
- spacing: p,
10
- rowSpacing: m,
11
- columnSpacing: a,
12
- justifyContent: c = "Start",
13
- alignItems: i = "Stretch",
14
- children: l,
15
- rest: s
16
- } = r, f = d.map(l, (n) => {
17
- if (!(!y(n) || n.type != j))
18
- return g(n, {
19
- columns: o,
20
- spacing: p,
21
- rowSpacing: m,
22
- columnSpacing: a
7
+ columns: n = 12,
8
+ spacing: o,
9
+ rowSpacing: i,
10
+ columnSpacing: m,
11
+ justifyContent: l = "Start",
12
+ alignItems: a = "Stretch",
13
+ children: p,
14
+ rest: c
15
+ } = e, s = u.map(p, (r) => {
16
+ if (!(!x(r) || r.type != h))
17
+ return g(r, {
18
+ columns: n,
19
+ spacing: o,
20
+ rowSpacing: i,
21
+ columnSpacing: m
23
22
  });
24
23
  });
25
- return /* @__PURE__ */ u(
26
- b,
24
+ return /* @__PURE__ */ f(
25
+ S,
27
26
  {
28
27
  ref: t,
29
28
  wrap: "Wrap",
30
- justifyContent: c,
31
- alignItems: i,
32
- ...s,
33
- children: f
29
+ justifyContent: l,
30
+ alignItems: a,
31
+ ...c,
32
+ children: s
34
33
  }
35
34
  );
36
35
  });
37
- x.propTypes = {
38
- /**
39
- * Number of available grid columns.
40
- */
41
- columns: e.number,
42
- /**
43
- * Defines spacing for rows and columns.
44
- */
45
- spacing: e.oneOfType([e.number, e.object]),
46
- /**
47
- * Defines row spacing. If this is set, `spacing` property is ignored for this value.
48
- */
49
- rowSpacing: e.oneOfType([e.number, e.object]),
50
- /**
51
- * Defines column spacing. If this is set, `spacing` property is ignored for this value.
52
- */
53
- columnSpacing: e.oneOfType([e.number, e.object]),
54
- /**
55
- * Controls how the space is distributed between items along the main-axis.
56
- */
57
- justifyContent: e.oneOf([
58
- "Start",
59
- "Center",
60
- "End",
61
- "SpaceAround",
62
- "SpaceBetween",
63
- "SpaceEvenly"
64
- ]),
65
- /**
66
- * Controls how the space is distributed between items along the cross-axis.
67
- */
68
- alignItems: e.oneOf([
69
- "Start",
70
- "Center",
71
- "Stretch",
72
- "End",
73
- "Baseline"
74
- ])
75
- };
76
36
  export {
77
- x as default
37
+ y as default
78
38
  };
@@ -1,7 +1,7 @@
1
- "use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-BpbMKBf_.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-RnrgDDZP.cjs"),$=g.styled.div`
2
- ${s=>s.width>0?"":"flex: 1;"}
3
- min-width: ${s=>100/s.columns}%;
4
- width: ${s=>s.width}%;
5
- padding: ${s=>s.rowGap}px ${s=>s.columnGap}px;
1
+ "use strict";const q=require("react/jsx-runtime"),r=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),N=require("./utils-RnrgDDZP.cjs"),R=L.styled.div`
2
+ ${t=>t.width>0?"":"flex: 1;"}
3
+ min-width: ${t=>100/t.columns}%;
4
+ width: ${t=>t.width}%;
5
+ padding: ${t=>t.rowGap}px ${t=>t.columnGap}px;
6
6
  overflow-wrap: break-word;
7
- `,y=i.forwardRef((s,x)=>{const{XS:t,S:c,M:o,L:a,XL:m,col:S,columns:e,spacing:l,rowSpacing:p,columnSpacing:u,children:G}=s,d=q.useScreenSize(),[T,k]=i.useState(0),[L,w]=i.useState(0),[P,f]=i.useState(0);i.useEffect(()=>{b()},[e,t,c,o,a,m,S]),i.useEffect(()=>{b(),h()},[d]),i.useEffect(()=>{h()},[l,p,u]);const b=()=>{let r=S?100/(e/S):0;switch(d){case"XS":r=t?100/(e/t):r;break;case"S":r=c?100/(e/c):t?100/(e/t):r;break;case"M":r=o?100/(e/o):c?100/(e/c):t?100/(e/t):r;break;case"L":r=a?100/(e/a):o?100/(e/o):c?100/(e/c):t?100/(e/t):r;break;case"XL":r=m?100/(e/m):a?100/(e/a):o?100/(e/o):c?100/(e/c):t?100/(e/t):r;break}k(r)},h=()=>{l?(w(l),f(l)):(p&&(isNaN(p)?w(p[d]??0):w(p)),u&&(isNaN(u)?f(u[d]??0):f(u)))};return X.jsx($,{ref:x,columns:e,width:T,rowGap:L,columnGap:P,children:G})});y.propTypes={XS:n.PropTypes.number,S:n.PropTypes.number,M:n.PropTypes.number,L:n.PropTypes.number,XL:n.PropTypes.number,col:n.PropTypes.number};module.exports=y;
7
+ `,X=r.forwardRef((t,x)=>{const{XS:s,S:i,M:a,L:o,XL:w,col:f,columns:e,spacing:l,rowSpacing:n,columnSpacing:u,children:G}=t,d=N.useScreenSize(),[b,k]=r.useState(0),[g,p]=r.useState(0),[$,S]=r.useState(0);r.useEffect(()=>{m()},[e,s,i,a,o,w,f]),r.useEffect(()=>{m(),h()},[d]),r.useEffect(()=>{h()},[l,n,u]);const m=()=>{let c=f?100/(e/f):0;switch(d){case"XS":c=s?100/(e/s):c;break;case"S":c=i?100/(e/i):s?100/(e/s):c;break;case"M":c=a?100/(e/a):i?100/(e/i):s?100/(e/s):c;break;case"L":c=o?100/(e/o):a?100/(e/a):i?100/(e/i):s?100/(e/s):c;break;case"XL":c=w?100/(e/w):o?100/(e/o):a?100/(e/a):i?100/(e/i):s?100/(e/s):c;break}k(c)},h=()=>{l?(p(l),S(l)):(n&&(isNaN(n)?p(n[d]??0):p(n)),u&&(isNaN(u)?S(u[d]??0):S(u)))};return q.jsx(R,{ref:x,columns:e,width:b,rowGap:g,columnGap:$,children:G})});module.exports=X;