trepur_components 0.4.7 → 1.0.0

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 (378) hide show
  1. package/dist/components/Accordion/Accordion.stories.tsx +88 -0
  2. package/dist/components/Accordion/index.tsx +31 -0
  3. package/dist/components/AlertBar/AlertBar.stories.tsx +105 -0
  4. package/dist/components/AlertBar/index.tsx +127 -0
  5. package/dist/components/Breadcrumbs/Breadcrumbs.stories.tsx +60 -0
  6. package/dist/components/Breadcrumbs/index.tsx +55 -0
  7. package/dist/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +52 -0
  8. package/dist/components/BreadcrumbsBordered/index.tsx +44 -0
  9. package/dist/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +54 -0
  10. package/dist/components/BreadcrumbsItem/index.tsx +151 -0
  11. package/dist/components/Button/button.stories.tsx +148 -0
  12. package/dist/components/Button/index.tsx +91 -0
  13. package/dist/components/Card/Card.stories.tsx +150 -0
  14. package/dist/components/Card/index.tsx +162 -0
  15. package/dist/components/CardWithTopImage/CardWithTopImage.stories.tsx +48 -0
  16. package/dist/components/CardWithTopImage/index.tsx +40 -0
  17. package/dist/components/Carousel/Carousel.stories.tsx +369 -0
  18. package/dist/components/Carousel/index.tsx +267 -0
  19. package/dist/components/ChevronCard/ChevronCard.stories.tsx +21 -0
  20. package/dist/components/ChevronCard/index.tsx +39 -0
  21. package/dist/components/Collapsible/Collapsible.stories.tsx +70 -0
  22. package/dist/components/Collapsible/index.tsx +124 -0
  23. package/dist/components/Column/Column.stories.tsx +82 -0
  24. package/dist/components/Column/index.tsx +114 -0
  25. package/dist/components/Container/Container.stories.tsx +38 -0
  26. package/dist/components/Container/index.tsx +30 -0
  27. package/dist/components/FooterBar/footerBar.stories.tsx +57 -0
  28. package/dist/components/FooterBar/index.tsx +44 -0
  29. package/dist/components/Form/Form.stories.tsx +93 -0
  30. package/dist/components/Form/index.tsx +58 -0
  31. package/dist/components/FyreCard/FyreCard.stories.tsx +29 -0
  32. package/dist/components/FyreCard/index.tsx +46 -0
  33. package/dist/components/Greeting/Greeting.stories.tsx +42 -0
  34. package/dist/components/Greeting/index.tsx +46 -0
  35. package/dist/components/HamburgerIcon/HamburgerIcon.stories.tsx +50 -0
  36. package/dist/components/HamburgerIcon/index.tsx +65 -0
  37. package/dist/components/Icon/Icon.stories.tsx +102 -0
  38. package/dist/components/Icon/index.tsx +112 -0
  39. package/dist/components/Image/Image.stories.tsx +88 -0
  40. package/dist/components/Image/index.tsx +113 -0
  41. package/dist/components/ImageLink/ImageLink.stories.tsx +60 -0
  42. package/dist/components/ImageLink/index.tsx +62 -0
  43. package/dist/components/ImageLinkList/ImageLinkList.stories.tsx +32 -0
  44. package/dist/components/ImageLinkList/index.tsx +33 -0
  45. package/dist/components/InformationIcon/InformationIcon.stories.tsx +86 -0
  46. package/dist/components/InformationIcon/index.tsx +84 -0
  47. package/dist/components/Input/Input.stories.tsx +99 -0
  48. package/dist/components/Input/index.tsx +126 -0
  49. package/dist/components/Jumbotron/Jumbotron.stories.tsx +22 -0
  50. package/dist/components/Jumbotron/index.tsx +25 -0
  51. package/dist/components/Nav/Nav.stories.tsx +155 -0
  52. package/dist/components/Nav/index.tsx +180 -0
  53. package/dist/components/NavItem/NavItem.stories.tsx +89 -0
  54. package/dist/components/NavItem/index.tsx +65 -0
  55. package/dist/components/NewsCard/NewsCard.stories.tsx +71 -0
  56. package/dist/components/NewsCard/index.tsx +48 -0
  57. package/dist/components/Profile/Profile.stories.tsx +50 -0
  58. package/dist/components/Profile/index.tsx +87 -0
  59. package/dist/components/Row/Row.stories.tsx +51 -0
  60. package/dist/components/Row/index.tsx +24 -0
  61. package/dist/components/Search/Search.stories.tsx +58 -0
  62. package/dist/components/Search/index.tsx +58 -0
  63. package/dist/components/SocialBlock/SocialBlock.stories.tsx +114 -0
  64. package/dist/components/SocialBlock/index.tsx +161 -0
  65. package/dist/components/StarRating/StarRating.stories.tsx +23 -0
  66. package/dist/components/StarRating/index.tsx +71 -0
  67. package/dist/components/Testimonial/Testimonial.stories.tsx +110 -0
  68. package/dist/components/Testimonial/index.tsx +50 -0
  69. package/dist/components/TextAndTitle/TextAndTitle.stories.tsx +65 -0
  70. package/dist/components/TextAndTitle/index.tsx +257 -0
  71. package/dist/components/TextArea/TextArea.stories.tsx +67 -0
  72. package/dist/components/TextArea/index.tsx +97 -0
  73. package/dist/components/Timeline/Timeline.stories.tsx +100 -0
  74. package/dist/components/Timeline/index.tsx +315 -0
  75. package/dist/components/Tubestops/Tubestops.stories.tsx +66 -0
  76. package/dist/components/Tubestops/index.tsx +77 -0
  77. package/dist/components/UserIcon/UserIcon.stories.tsx +67 -0
  78. package/dist/components/UserIcon/index.tsx +42 -0
  79. package/dist/components/Video/Video.stories.tsx +23 -0
  80. package/dist/components/Video/index.tsx +49 -0
  81. package/dist/index.js +0 -39
  82. package/dist/src/lib/components/Accordion/Accordion.stories.d.ts +6 -0
  83. package/dist/src/lib/components/Accordion/Accordion.stories.js +72 -0
  84. package/dist/src/lib/components/Accordion/Accordion.stories.js.map +1 -0
  85. package/dist/src/lib/components/Accordion/index.d.ts +9 -0
  86. package/dist/src/lib/components/Accordion/index.js +9 -0
  87. package/dist/src/lib/components/Accordion/index.js.map +1 -0
  88. package/dist/src/lib/components/AlertBar/AlertBar.stories.d.ts +6 -0
  89. package/dist/src/lib/components/AlertBar/AlertBar.stories.js +91 -0
  90. package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +1 -0
  91. package/dist/src/lib/components/AlertBar/index.d.ts +16 -0
  92. package/dist/src/lib/components/AlertBar/index.js +62 -0
  93. package/dist/src/lib/components/AlertBar/index.js.map +1 -0
  94. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +6 -0
  95. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js +56 -0
  96. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
  97. package/dist/src/lib/components/Breadcrumbs/index.d.ts +11 -0
  98. package/dist/src/lib/components/Breadcrumbs/index.js +22 -0
  99. package/dist/src/lib/components/Breadcrumbs/index.js.map +1 -0
  100. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +6 -0
  101. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +45 -0
  102. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +1 -0
  103. package/dist/src/lib/components/BreadcrumbsBordered/index.d.ts +9 -0
  104. package/dist/src/lib/components/BreadcrumbsBordered/index.js +18 -0
  105. package/dist/src/lib/components/BreadcrumbsBordered/index.js.map +1 -0
  106. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +6 -0
  107. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +50 -0
  108. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +1 -0
  109. package/dist/src/lib/components/BreadcrumbsItem/index.d.ts +12 -0
  110. package/dist/src/lib/components/BreadcrumbsItem/index.js +59 -0
  111. package/dist/src/lib/components/BreadcrumbsItem/index.js.map +1 -0
  112. package/dist/src/lib/components/Button/button.stories.d.ts +6 -0
  113. package/dist/src/lib/components/Button/button.stories.js +87 -0
  114. package/dist/src/lib/components/Button/button.stories.js.map +1 -0
  115. package/dist/src/lib/components/Button/index.d.ts +17 -0
  116. package/dist/src/lib/components/Button/index.js +32 -0
  117. package/dist/src/lib/components/Button/index.js.map +1 -0
  118. package/dist/src/lib/components/Card/Card.stories.d.ts +5 -0
  119. package/dist/src/lib/components/Card/Card.stories.js +124 -0
  120. package/dist/src/lib/components/Card/Card.stories.js.map +1 -0
  121. package/dist/src/lib/components/Card/index.d.ts +31 -0
  122. package/dist/src/lib/components/Card/index.js +63 -0
  123. package/dist/src/lib/components/Card/index.js.map +1 -0
  124. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +6 -0
  125. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +40 -0
  126. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +1 -0
  127. package/dist/src/lib/components/CardWithTopImage/index.d.ts +10 -0
  128. package/dist/src/lib/components/CardWithTopImage/index.js +15 -0
  129. package/dist/src/lib/components/CardWithTopImage/index.js.map +1 -0
  130. package/dist/src/lib/components/Carousel/Carousel.stories.d.ts +6 -0
  131. package/dist/src/lib/components/Carousel/Carousel.stories.js +297 -0
  132. package/dist/src/lib/components/Carousel/Carousel.stories.js.map +1 -0
  133. package/dist/src/lib/components/Carousel/index.d.ts +61 -0
  134. package/dist/src/lib/components/Carousel/index.js +81 -0
  135. package/dist/src/lib/components/Carousel/index.js.map +1 -0
  136. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.d.ts +6 -0
  137. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +14 -0
  138. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +1 -0
  139. package/dist/src/lib/components/ChevronCard/index.d.ts +7 -0
  140. package/dist/src/lib/components/ChevronCard/index.js +20 -0
  141. package/dist/src/lib/components/ChevronCard/index.js.map +1 -0
  142. package/dist/src/lib/components/Collapsible/Collapsible.stories.d.ts +6 -0
  143. package/dist/src/lib/components/Collapsible/Collapsible.stories.js +64 -0
  144. package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +1 -0
  145. package/dist/src/lib/components/Collapsible/index.d.ts +16 -0
  146. package/dist/src/lib/components/Collapsible/index.js +67 -0
  147. package/dist/src/lib/components/Collapsible/index.js.map +1 -0
  148. package/dist/src/lib/components/Column/Column.stories.d.ts +6 -0
  149. package/dist/src/lib/components/Column/Column.stories.js +30 -0
  150. package/dist/src/lib/components/Column/Column.stories.js.map +1 -0
  151. package/dist/src/lib/components/Column/index.d.ts +12 -0
  152. package/dist/src/lib/components/Column/index.js +83 -0
  153. package/dist/src/lib/components/Column/index.js.map +1 -0
  154. package/dist/src/lib/components/Container/Container.stories.d.ts +6 -0
  155. package/dist/src/lib/components/Container/Container.stories.js +30 -0
  156. package/dist/src/lib/components/Container/Container.stories.js.map +1 -0
  157. package/dist/src/lib/components/Container/index.d.ts +9 -0
  158. package/dist/src/lib/components/Container/index.js +8 -0
  159. package/dist/src/lib/components/Container/index.js.map +1 -0
  160. package/dist/src/lib/components/FooterBar/footerBar.stories.d.ts +6 -0
  161. package/dist/src/lib/components/FooterBar/footerBar.stories.js +48 -0
  162. package/dist/src/lib/components/FooterBar/footerBar.stories.js.map +1 -0
  163. package/dist/src/lib/components/FooterBar/index.d.ts +11 -0
  164. package/dist/src/lib/components/FooterBar/index.js +15 -0
  165. package/dist/src/lib/components/FooterBar/index.js.map +1 -0
  166. package/dist/src/lib/components/Form/Form.stories.d.ts +6 -0
  167. package/dist/src/lib/components/Form/Form.stories.js +82 -0
  168. package/dist/src/lib/components/Form/Form.stories.js.map +1 -0
  169. package/dist/src/lib/components/Form/index.d.ts +16 -0
  170. package/dist/src/lib/components/Form/index.js +19 -0
  171. package/dist/src/lib/components/Form/index.js.map +1 -0
  172. package/dist/src/lib/components/FyreCard/FyreCard.stories.d.ts +6 -0
  173. package/dist/src/lib/components/FyreCard/FyreCard.stories.js +22 -0
  174. package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +1 -0
  175. package/dist/src/lib/components/FyreCard/index.d.ts +13 -0
  176. package/dist/src/lib/components/FyreCard/index.js +18 -0
  177. package/dist/src/lib/components/FyreCard/index.js.map +1 -0
  178. package/dist/src/lib/components/Greeting/Greeting.stories.d.ts +6 -0
  179. package/dist/src/lib/components/Greeting/Greeting.stories.js +33 -0
  180. package/dist/src/lib/components/Greeting/Greeting.stories.js.map +1 -0
  181. package/dist/src/lib/components/Greeting/index.d.ts +10 -0
  182. package/dist/src/lib/components/Greeting/index.js +23 -0
  183. package/dist/src/lib/components/Greeting/index.js.map +1 -0
  184. package/dist/src/lib/components/Icon/Icon.stories.d.ts +6 -0
  185. package/dist/src/lib/components/Icon/Icon.stories.js +85 -0
  186. package/dist/src/lib/components/Icon/Icon.stories.js.map +1 -0
  187. package/dist/src/lib/components/Icon/index.d.ts +17 -0
  188. package/dist/src/lib/components/Icon/index.js +42 -0
  189. package/dist/src/lib/components/Icon/index.js.map +1 -0
  190. package/dist/src/lib/components/Image/Image.stories.d.ts +6 -0
  191. package/dist/src/lib/components/Image/Image.stories.js +73 -0
  192. package/dist/src/lib/components/Image/Image.stories.js.map +1 -0
  193. package/dist/src/lib/components/Image/index.d.ts +16 -0
  194. package/dist/src/lib/components/Image/index.js +54 -0
  195. package/dist/src/lib/components/Image/index.js.map +1 -0
  196. package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +6 -0
  197. package/dist/src/lib/components/ImageLink/ImageLink.stories.js +49 -0
  198. package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +1 -0
  199. package/dist/src/lib/components/ImageLink/index.d.ts +15 -0
  200. package/dist/src/lib/components/ImageLink/index.js +18 -0
  201. package/dist/src/lib/components/ImageLink/index.js.map +1 -0
  202. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +6 -0
  203. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +25 -0
  204. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +1 -0
  205. package/dist/src/lib/components/ImageLinkList/index.d.ts +9 -0
  206. package/dist/src/lib/components/ImageLinkList/index.js +11 -0
  207. package/dist/src/lib/components/ImageLinkList/index.js.map +1 -0
  208. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.d.ts +6 -0
  209. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +71 -0
  210. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +1 -0
  211. package/dist/src/lib/components/InformationIcon/index.d.ts +15 -0
  212. package/dist/src/lib/components/InformationIcon/index.js +46 -0
  213. package/dist/src/lib/components/InformationIcon/index.js.map +1 -0
  214. package/dist/src/lib/components/Input/Input.stories.d.ts +6 -0
  215. package/dist/src/lib/components/Input/Input.stories.js +95 -0
  216. package/dist/src/lib/components/Input/Input.stories.js.map +1 -0
  217. package/dist/src/lib/components/Input/index.d.ts +31 -0
  218. package/dist/src/lib/components/Input/index.js +25 -0
  219. package/dist/src/lib/components/Input/index.js.map +1 -0
  220. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.d.ts +6 -0
  221. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +16 -0
  222. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +1 -0
  223. package/dist/src/lib/components/Jumbotron/index.d.ts +9 -0
  224. package/dist/src/lib/components/Jumbotron/index.js +9 -0
  225. package/dist/src/lib/components/Jumbotron/index.js.map +1 -0
  226. package/dist/src/lib/components/Nav/Nav.stories.js +134 -0
  227. package/dist/src/lib/components/Nav/Nav.stories.js.map +1 -0
  228. package/dist/src/lib/components/Nav/index.d.ts +22 -0
  229. package/dist/src/lib/components/Nav/index.js +75 -0
  230. package/dist/src/lib/components/Nav/index.js.map +1 -0
  231. package/dist/src/lib/components/NavItem/NavItem.stories.d.ts +6 -0
  232. package/dist/src/lib/components/NavItem/NavItem.stories.js +75 -0
  233. package/dist/src/lib/components/NavItem/NavItem.stories.js.map +1 -0
  234. package/dist/src/lib/components/NavItem/index.d.ts +15 -0
  235. package/dist/src/lib/components/NavItem/index.js +24 -0
  236. package/dist/src/lib/components/NavItem/index.js.map +1 -0
  237. package/dist/src/lib/components/NewsCard/NewsCard.stories.d.ts +6 -0
  238. package/dist/src/lib/components/NewsCard/NewsCard.stories.js +60 -0
  239. package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +1 -0
  240. package/dist/src/lib/components/NewsCard/index.d.ts +14 -0
  241. package/dist/src/lib/components/NewsCard/index.js +20 -0
  242. package/dist/src/lib/components/NewsCard/index.js.map +1 -0
  243. package/dist/src/lib/components/Profile/Profile.stories.d.ts +6 -0
  244. package/dist/src/lib/components/Profile/Profile.stories.js +41 -0
  245. package/dist/src/lib/components/Profile/Profile.stories.js.map +1 -0
  246. package/dist/src/lib/components/Profile/index.d.ts +18 -0
  247. package/dist/src/lib/components/Profile/index.js +38 -0
  248. package/dist/src/lib/components/Profile/index.js.map +1 -0
  249. package/dist/src/lib/components/Row/Row.stories.d.ts +6 -0
  250. package/dist/src/lib/components/Row/Row.stories.js +37 -0
  251. package/dist/src/lib/components/Row/Row.stories.js.map +1 -0
  252. package/dist/src/lib/components/Row/index.d.ts +8 -0
  253. package/dist/src/lib/components/Row/index.js +8 -0
  254. package/dist/src/lib/components/Row/index.js.map +1 -0
  255. package/dist/src/lib/components/Search/Search.stories.d.ts +6 -0
  256. package/dist/src/lib/components/Search/Search.stories.js +48 -0
  257. package/dist/src/lib/components/Search/Search.stories.js.map +1 -0
  258. package/dist/src/lib/components/Search/index.d.ts +13 -0
  259. package/dist/src/lib/components/Search/index.js +23 -0
  260. package/dist/src/lib/components/Search/index.js.map +1 -0
  261. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.d.ts +6 -0
  262. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +58 -0
  263. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +1 -0
  264. package/dist/src/lib/components/SocialBlock/index.d.ts +21 -0
  265. package/dist/src/lib/components/SocialBlock/index.js +66 -0
  266. package/dist/src/lib/components/SocialBlock/index.js.map +1 -0
  267. package/dist/src/lib/components/StarRating/StarRating.stories.d.ts +6 -0
  268. package/dist/src/lib/components/StarRating/StarRating.stories.js +17 -0
  269. package/dist/src/lib/components/StarRating/StarRating.stories.js.map +1 -0
  270. package/dist/src/lib/components/StarRating/index.d.ts +9 -0
  271. package/dist/src/lib/components/StarRating/index.js +27 -0
  272. package/dist/src/lib/components/StarRating/index.js.map +1 -0
  273. package/dist/src/lib/components/Testimonial/Testimonial.stories.d.ts +6 -0
  274. package/dist/src/lib/components/Testimonial/Testimonial.stories.js +95 -0
  275. package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +1 -0
  276. package/dist/src/lib/components/Testimonial/index.d.ts +17 -0
  277. package/dist/src/lib/components/Testimonial/index.js +27 -0
  278. package/dist/src/lib/components/Testimonial/index.js.map +1 -0
  279. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +6 -0
  280. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +63 -0
  281. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +1 -0
  282. package/dist/src/lib/components/TextAndTitle/index.d.ts +26 -0
  283. package/dist/src/lib/components/TextAndTitle/index.js +113 -0
  284. package/dist/src/lib/components/TextAndTitle/index.js.map +1 -0
  285. package/dist/src/lib/components/TextArea/TextArea.stories.d.ts +6 -0
  286. package/dist/src/lib/components/TextArea/TextArea.stories.js +63 -0
  287. package/dist/src/lib/components/TextArea/TextArea.stories.js.map +1 -0
  288. package/dist/src/lib/components/TextArea/index.d.ts +27 -0
  289. package/dist/src/lib/components/TextArea/index.js +18 -0
  290. package/dist/src/lib/components/TextArea/index.js.map +1 -0
  291. package/dist/src/lib/components/Timeline/Timeline.stories.d.ts +6 -0
  292. package/dist/src/lib/components/Timeline/Timeline.stories.js +88 -0
  293. package/dist/src/lib/components/Timeline/Timeline.stories.js.map +1 -0
  294. package/dist/src/lib/components/Timeline/index.d.ts +14 -0
  295. package/dist/src/lib/components/Timeline/index.js +186 -0
  296. package/dist/src/lib/components/Timeline/index.js.map +1 -0
  297. package/dist/src/lib/components/Tubestops/Tubestops.stories.d.ts +6 -0
  298. package/dist/src/lib/components/Tubestops/Tubestops.stories.js +62 -0
  299. package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +1 -0
  300. package/dist/src/lib/components/Tubestops/index.d.ts +13 -0
  301. package/dist/src/lib/components/Tubestops/index.js +44 -0
  302. package/dist/src/lib/components/Tubestops/index.js.map +1 -0
  303. package/dist/src/lib/components/UserIcon/UserIcon.stories.d.ts +6 -0
  304. package/dist/src/lib/components/UserIcon/UserIcon.stories.js +63 -0
  305. package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +1 -0
  306. package/dist/src/lib/components/UserIcon/index.d.ts +11 -0
  307. package/dist/src/lib/components/UserIcon/index.js +17 -0
  308. package/dist/src/lib/components/UserIcon/index.js.map +1 -0
  309. package/dist/src/lib/components/Video/Video.stories.d.ts +6 -0
  310. package/dist/src/lib/components/Video/Video.stories.js +17 -0
  311. package/dist/src/lib/components/Video/Video.stories.js.map +1 -0
  312. package/dist/src/lib/components/Video/index.d.ts +17 -0
  313. package/dist/src/lib/components/Video/index.js +9 -0
  314. package/dist/src/lib/components/Video/index.js.map +1 -0
  315. package/dist/src/lib/index.d.ts +39 -0
  316. package/dist/src/lib/index.js +43 -0
  317. package/dist/src/lib/index.js.map +1 -0
  318. package/dist/src/lib/typography/Fonts.stories.d.ts +6 -0
  319. package/dist/src/lib/typography/Fonts.stories.js +42 -0
  320. package/dist/src/lib/typography/Fonts.stories.js.map +1 -0
  321. package/dist/src/lib/typography/index.d.ts +4 -0
  322. package/dist/src/lib/typography/index.js +23 -0
  323. package/dist/src/lib/typography/index.js.map +1 -0
  324. package/dist/src/lib/utils/controls.d.ts +35 -0
  325. package/dist/src/lib/utils/controls.js +21 -0
  326. package/dist/src/lib/utils/controls.js.map +1 -0
  327. package/dist/src/lib/utils/theme.d.ts +2 -0
  328. package/dist/src/lib/utils/theme.js +8 -0
  329. package/dist/src/lib/utils/theme.js.map +1 -0
  330. package/dist/tailwind.config.d.ts +64 -0
  331. package/dist/tailwind.config.js +80 -0
  332. package/dist/tailwind.config.js.map +1 -0
  333. package/package.json +18 -5
  334. package/dist/components/Accordion/index.js +0 -37
  335. package/dist/components/AlertBar/index.js +0 -129
  336. package/dist/components/Breadcrumbs/index.js +0 -66
  337. package/dist/components/BreadcrumbsBordered/index.js +0 -66
  338. package/dist/components/BreadcrumbsItem/index.js +0 -160
  339. package/dist/components/Button/index.js +0 -141
  340. package/dist/components/Card/index.js +0 -151
  341. package/dist/components/CardWithTopImage/index.js +0 -64
  342. package/dist/components/Carousel/index.css +0 -4
  343. package/dist/components/Carousel/index.css.map +0 -1
  344. package/dist/components/Carousel/index.js +0 -185
  345. package/dist/components/ChevronCard/index.js +0 -65
  346. package/dist/components/Collapsible/index.js +0 -158
  347. package/dist/components/Column/index.js +0 -137
  348. package/dist/components/Container/index.js +0 -55
  349. package/dist/components/FooterBar/index.js +0 -60
  350. package/dist/components/Form/index.js +0 -78
  351. package/dist/components/FyreCard/index.js +0 -54
  352. package/dist/components/Greeting/index.js +0 -69
  353. package/dist/components/Icon/index.js +0 -91
  354. package/dist/components/Image/index.js +0 -142
  355. package/dist/components/ImageLink/index.js +0 -61
  356. package/dist/components/ImageLinkList/index.js +0 -45
  357. package/dist/components/InformationIcon/index.js +0 -120
  358. package/dist/components/Input/index.js +0 -112
  359. package/dist/components/Jumbotron/index.js +0 -39
  360. package/dist/components/Nav/index.js +0 -302
  361. package/dist/components/NavItem/index.js +0 -129
  362. package/dist/components/NewsCard/index.js +0 -62
  363. package/dist/components/Profile/index.js +0 -86
  364. package/dist/components/Row/index.js +0 -55
  365. package/dist/components/Search/index.js +0 -60
  366. package/dist/components/SocialBlock/index.js +0 -184
  367. package/dist/components/StarRating/index.js +0 -110
  368. package/dist/components/Testimonial/index.js +0 -70
  369. package/dist/components/TextAndTitle/index.js +0 -283
  370. package/dist/components/TextArea/index.js +0 -97
  371. package/dist/components/Timeline/index.css.map +0 -1
  372. package/dist/components/Timeline/index.js +0 -254
  373. package/dist/components/Tubestops/index.css.map +0 -1
  374. package/dist/components/Tubestops/index.js +0 -95
  375. package/dist/components/UserIcon/index.js +0 -50
  376. package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css +0 -1831
  377. package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css.map +0 -1
  378. package/dist/components/Video/index.js +0 -67
@@ -0,0 +1,315 @@
1
+ import React, { CSSProperties } from 'react'
2
+ import classNames from 'classnames'
3
+ import Image from '@components/Image'
4
+ import Column from '@components/Column'
5
+ import Row from '@components/Row'
6
+
7
+ export interface Props {
8
+ id?: string
9
+ className?: string
10
+ isHorizontal?: boolean
11
+ items?: object[]
12
+ reverse?: boolean
13
+ textCenter?: boolean
14
+ useImages?: boolean
15
+ horizontalComponentClasses?: string
16
+ isSm?: boolean
17
+ }
18
+
19
+ const Timeline = ({
20
+ id,
21
+ className,
22
+ isHorizontal = false,
23
+ items,
24
+ reverse = false,
25
+ textCenter,
26
+ useImages = true,
27
+ horizontalComponentClasses,
28
+ isSm = false
29
+ }: Props): JSX.Element => {
30
+ const classList = classNames(className, 'w-full list-none overflow-x-auto pb-4')
31
+ const ulClasses = classNames({
32
+ 'flex-row none-reverse justify-between': !reverse && isHorizontal,
33
+ 'flex-col none-reverse': !reverse && !isHorizontal,
34
+ 'flex-row reverse justify-between': reverse && isHorizontal,
35
+ 'flex-col reverse': reverse && !isHorizontal
36
+ }, className, 'timeline status-flow relative list-none pl-0 flex')
37
+
38
+ const liClasses = classNames({
39
+ 'text-center': textCenter,
40
+ 'items-center flex-col justify-between': !reverse && isHorizontal,
41
+ 'flex-row none-reverse': !reverse && !isHorizontal,
42
+ 'items-center flex-col-reverse': reverse && isHorizontal,
43
+ 'flex-row-reverse': reverse && !isHorizontal
44
+ }, 'status-flow-item relative flex flex-auto flex-row leading-tight')
45
+
46
+ const circle = classNames({
47
+ 'horizontal collapse': isHorizontal && isSm,
48
+ horizontal: isHorizontal && !isSm,
49
+ vertical: !isHorizontal
50
+ }, 'w-4 h-4 my-16 text-center mx-auto rounded-full border bg-black')
51
+
52
+ const circleVerticalBefore: CSSProperties = {
53
+ position: 'absolute',
54
+ display: 'block',
55
+ borderLeft: '1px solid',
56
+ borderColor: 'text-primary',
57
+ content: '""',
58
+ height: '50%',
59
+ top: '0%',
60
+ left: '49.9%',
61
+ zIndex: '-1'
62
+ }
63
+
64
+ const circleVerticalCollapseBefore: CSSProperties = {
65
+ position: 'absolute',
66
+ display: 'block',
67
+ borderLeft: '1px solid',
68
+ borderColor: 'text-primary',
69
+ content: '""',
70
+ height: '50%',
71
+ top: '0%',
72
+ left: '8.2%',
73
+ zIndex: '-1'
74
+ }
75
+
76
+ const lastCircleVerticalBefore: CSSProperties = {
77
+ position: 'absolute',
78
+ display: 'block',
79
+ borderLeft: '1px solid',
80
+ borderColor: 'text-primary',
81
+ content: '""',
82
+ height: '50%',
83
+ top: '0%',
84
+ left: '49.9%',
85
+ zIndex: '-1'
86
+ }
87
+
88
+ const lastCircleVerticalCollapseBefore: CSSProperties = {
89
+ position: 'absolute',
90
+ display: 'block',
91
+ borderLeft: '1px solid',
92
+ borderColor: 'text-primary',
93
+ content: '""',
94
+ height: '50%',
95
+ top: '0%',
96
+ left: '8.2%',
97
+ zIndex: '-1'
98
+ }
99
+
100
+ const circleVerticalAfter: CSSProperties = {
101
+ position: 'absolute',
102
+ display: 'block',
103
+ borderLeft: '1px solid',
104
+ borderColor: 'text-primary',
105
+ content: '""',
106
+ height: '50%',
107
+ bottom: '0%',
108
+ left: '49.9%',
109
+ zIndex: '-1'
110
+ }
111
+
112
+ const firstCircleVerticalAfter: CSSProperties = {
113
+ position: 'absolute',
114
+ display: 'block',
115
+ borderLeft: '1px solid',
116
+ borderColor: 'text-primary',
117
+ content: '""',
118
+ height: '50%',
119
+ bottom: '0%',
120
+ left: '49.9%',
121
+ zIndex: '-1'
122
+ }
123
+
124
+ const circleVerticalCollapseAfter: CSSProperties = {
125
+ position: 'absolute',
126
+ display: 'block',
127
+ borderLeft: '1px solid',
128
+ borderColor: 'text-primary',
129
+ content: '""',
130
+ height: '50%',
131
+ bottom: '0%',
132
+ left: '8.2%',
133
+ zIndex: '-1'
134
+ }
135
+
136
+ const firstCircleVerticalCollapseAfter: CSSProperties = {
137
+ position: 'absolute',
138
+ display: 'block',
139
+ borderLeft: '1px solid',
140
+ borderColor: 'text-primary',
141
+ content: '""',
142
+ height: '50%',
143
+ bottom: '0%',
144
+ left: '8.2%',
145
+ zIndex: '-1'
146
+ }
147
+
148
+ return (
149
+ <Column
150
+ sm={12}
151
+ md={12}
152
+ lg={12}
153
+ xl={12}
154
+ id={id}
155
+ className={classList}
156
+ >
157
+ <div className={ulClasses}>
158
+ {items?.map((item: any, i: number) => {
159
+ let before
160
+ if (i % 2 === 0) { before = true } else { before = false }
161
+
162
+ let circlePos
163
+ if (items.length - 1 > 0) {
164
+ if (i === 0) circlePos = 'first-circle'
165
+ else if (i === items.length - 1) circlePos = 'last-circle'
166
+ else circlePos = 'circle'
167
+ }
168
+
169
+ let verticalCircleStylesBefore
170
+ if (circlePos === 'circle' && isSm) {
171
+ verticalCircleStylesBefore = circleVerticalCollapseBefore
172
+ } else if (circlePos === 'circle' && !isSm) {
173
+ verticalCircleStylesBefore = circleVerticalBefore
174
+ } else if (circlePos === 'last-circle' && isSm) {
175
+ verticalCircleStylesBefore = lastCircleVerticalCollapseBefore
176
+ } else if (circlePos === 'last-circle' && !isSm) {
177
+ verticalCircleStylesBefore = lastCircleVerticalBefore
178
+ }
179
+
180
+ let verticalCircleStylesAfter
181
+ if (circlePos === 'circle' && isSm) {
182
+ verticalCircleStylesAfter = circleVerticalCollapseAfter
183
+ } else if (circlePos === 'circle' && !isSm) {
184
+ verticalCircleStylesAfter = circleVerticalAfter
185
+ } else if (circlePos === 'first-circle' && isSm) {
186
+ verticalCircleStylesAfter = firstCircleVerticalCollapseAfter
187
+ } else if (circlePos === 'first-circle' && !isSm) {
188
+ verticalCircleStylesAfter = firstCircleVerticalAfter
189
+ }
190
+
191
+ let horizontalCircleStylesBefore
192
+ // if (circlePos === 'circle' && isSm){
193
+ // horizontalCircleStylesBefore = circleHorizontalCollapseBefore
194
+ // } else if (circlePos === 'circle' && !isSm){
195
+ // horizontalCircleStylesBefore = circleHorizontalBefore
196
+ // } else if (circlePos === 'first-circle' && isSm){
197
+ // horizontalCircleStylesBefore = firstCircleHorizontalCollapseBefore
198
+ // } else if (circlePos === 'first-circle' && !isSm){
199
+ // horizontalCircleStylesBefore = firstCircleHorizontalBefore
200
+ // }
201
+
202
+ let horizontalCircleStylesAfter
203
+ // if (circlePos === 'circle' && isSm){
204
+ // horizontalCircleStylesAfter = circleHorizontalCollapseAfter
205
+ // } else if (circlePos === 'circle' && !isSm){
206
+ // horizontalCircleStylesAfter = circleHorizontalAfter
207
+ // } else if (circlePos === 'first-circle' && isSm){
208
+ // horizontalCircleStylesAfter = firstCircleHorizontalCollapseAfter
209
+ // } else if (circlePos === 'first-circle' && !isSm){
210
+ // horizontalCircleStylesAfter = firstCircleHorizontalAfter
211
+ // }
212
+
213
+ const horizonalComponentClassList = classNames(horizontalComponentClasses, 'pt-12')
214
+ if (isHorizontal) {
215
+ return (
216
+ <Column
217
+ key={`horizontal_col_${i + 0}`}
218
+ id='timeline-item'
219
+ className={`${liClasses} py-4 mb-8`}
220
+ >
221
+ <Row className={horizontalComponentClasses}>
222
+ {before && item.component}
223
+ </Row>
224
+ <Row>
225
+ {useImages
226
+ ? (
227
+ <div
228
+ id={circlePos}
229
+ className={isHorizontal ? 'horizontal py-0 my-0' : 'vertical'}
230
+ >
231
+ <span style={horizontalCircleStylesBefore} />
232
+ <Image {...item.centerImageProps} />
233
+ <span style={horizontalCircleStylesAfter} />
234
+ </div>
235
+ )
236
+ : (
237
+ <p id={circlePos} className={circle} />
238
+ )}
239
+ </Row>
240
+ <Row className={horizonalComponentClassList}>
241
+ {!before && item.component}
242
+ </Row>
243
+ </Column>
244
+ )
245
+ } else {
246
+ return (
247
+ <Row
248
+ key={`vertical_row_${i + 0}`}
249
+ id='timeline-item'
250
+ className={`${liClasses} py-4`}
251
+ >
252
+ {!isSm &&
253
+ <Column
254
+ sm={5}
255
+ md={5}
256
+ lg={5}
257
+ xl={5}
258
+ className='text-center my-auto'
259
+ >
260
+ {before && item.component}
261
+ </Column>}
262
+ <Column
263
+ sm={2}
264
+ md={2}
265
+ lg={2}
266
+ xl={2}
267
+ id='circle-wrapper'
268
+ className='my-auto'
269
+ >
270
+ {useImages
271
+ ? (
272
+ <div
273
+ id={circlePos}
274
+ className={isSm ? 'vertical' : 'vertical'}
275
+ >
276
+ <span style={verticalCircleStylesBefore} />
277
+ <Image {...item.centerImageProps} />
278
+ <span style={verticalCircleStylesAfter} />
279
+ </div>
280
+ )
281
+ : (
282
+ <p id={circlePos} className={circle} />
283
+ )}
284
+ </Column>
285
+ {/* TODO: combine below - issue with sm div */}
286
+ {isSm &&
287
+ <Column
288
+ sm={10}
289
+ md={10}
290
+ lg={10}
291
+ xl={10}
292
+ className='text-center my-auto'
293
+ >
294
+ {item.component}
295
+ </Column>}
296
+ {!isSm &&
297
+ <Column
298
+ sm={5}
299
+ md={5}
300
+ lg={5}
301
+ xl={5}
302
+ className='text-center my-auto'
303
+ >
304
+ {!before && item.component}
305
+ </Column>}
306
+ </Row>
307
+ )
308
+ }
309
+ })}
310
+ </div>
311
+ </Column>
312
+ )
313
+ }
314
+
315
+ export default Timeline
@@ -0,0 +1,66 @@
1
+ import React from 'react'
2
+ import Tubestops from './index'
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react'
4
+
5
+ const componentMeta: ComponentMeta<typeof Tubestops> = {
6
+ title: 'Trepur Components/Other/Atoms/Tubestops',
7
+ component: Tubestops,
8
+ parameters: {},
9
+ argTypes: {
10
+ id: {
11
+ description: 'Defines the id of the component',
12
+ table: {
13
+ category: '',
14
+ type: { summary: 'string' },
15
+ defaultValue: { summary: 'undefined' }
16
+ }
17
+ },
18
+ className: {
19
+ description: 'Defines any additional classes for the components',
20
+ table: {
21
+ category: '',
22
+ type: { summary: 'string' },
23
+ defaultValue: { summary: 'undefined' }
24
+ }
25
+ },
26
+ isHorizontal: {
27
+ description: '',
28
+ table: {
29
+ category: ''
30
+ }
31
+ },
32
+ items: {
33
+ description: '',
34
+ table: {
35
+ category: ''
36
+ }
37
+ }
38
+ },
39
+ args: {
40
+ isHorizontal: false,
41
+ reverse: false,
42
+ items: [
43
+ {
44
+ title: 'This is a title',
45
+ subtitle: 'This is a subtitle'
46
+ },
47
+ {
48
+ title: 'This is a title',
49
+ subtitle: 'This is a subtitle'
50
+ },
51
+ {
52
+ title: 'This is a title',
53
+ subtitle: 'This is a subtitle'
54
+ }
55
+ ],
56
+ textCenter: true,
57
+ id: '',
58
+ className: ''
59
+ }
60
+ }
61
+
62
+ const Template: ComponentStory<typeof Tubestops> = (args) => <Tubestops {...args} />
63
+
64
+ export const _Tubestops = Template.bind({})
65
+
66
+ export default componentMeta
@@ -0,0 +1,77 @@
1
+ import React from 'react'
2
+ import classNames from 'classnames'
3
+ import './index.css'
4
+
5
+ export interface Props extends Partial<Pick<HTMLElement, 'className' | 'id'>> {
6
+ isHorizontal?: boolean
7
+ items?: Array<{ title: string, subtitle: string }>
8
+ reverse?: boolean
9
+ textCenter?: boolean
10
+ }
11
+
12
+ const Tubestops: React.FC<Props> = ({
13
+ id,
14
+ className,
15
+ isHorizontal = false,
16
+ items = [],
17
+ reverse = false,
18
+ textCenter = false
19
+ }) => {
20
+ const circle = 'w-4 h-4 rounded-full bg-black z-10'
21
+ const classList = classNames(className, 'w-full list-none')
22
+
23
+ const liClasses = classNames({
24
+ 'text-center': textCenter,
25
+ 'items-center flex-col-reverse justify-between': !reverse && isHorizontal,
26
+ 'flex-row none-reverse': !reverse && !isHorizontal,
27
+ 'items-center flex-col': reverse && isHorizontal,
28
+ 'flex-row-reverse': reverse && !isHorizontal
29
+ }, 'mb-0 status-flow-item relative flex flex-auto flex-row leading-tight')
30
+
31
+ const ulClasses = classNames({
32
+ 'flex-row none-reverse justify-between': !reverse && isHorizontal,
33
+ 'flex-col none-reverse': !reverse && !isHorizontal,
34
+ 'flex-row reverse justify-between': reverse && isHorizontal,
35
+ 'flex-col reverse': reverse && !isHorizontal
36
+ }, 'tubestop status-flow relative list-none pl-0 flex')
37
+
38
+ const padding = classNames({
39
+ 'pb-2': !reverse && isHorizontal,
40
+ 'pl-4': !reverse && !isHorizontal,
41
+ 'pt-2': reverse && isHorizontal,
42
+ 'pr-4': reverse && !isHorizontal
43
+ })
44
+
45
+ return (
46
+ <div
47
+ id={id}
48
+ className={classList}
49
+ >
50
+ <ul className={ulClasses}>
51
+ {items?.map((item: { title: string, subtitle: string }, i: number) => {
52
+ const a = isHorizontal
53
+ ? i === 0
54
+ ? ''
55
+ : ''
56
+ : i === 0
57
+ ? ''
58
+ : 'my-12'
59
+ return (
60
+ <li
61
+ key={`tubestop_${i + 0}`}
62
+ className={`${liClasses} ${a}`}
63
+ >
64
+ <span className={circle} />
65
+ <div className={padding}>
66
+ <p>{`${item?.title}${i.toString()}`}</p>
67
+ <p><small>{item?.subtitle}</small></p>
68
+ </div>
69
+ </li>
70
+ )
71
+ })}
72
+ </ul>
73
+ </div>
74
+ )
75
+ }
76
+
77
+ export default Tubestops
@@ -0,0 +1,67 @@
1
+ import React from 'react'
2
+ import UserIcon from './index'
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react'
4
+
5
+ const componentMeta: ComponentMeta<typeof UserIcon> = {
6
+ title: 'Trepur Components/Other/Organisms/User Icon',
7
+ component: UserIcon,
8
+ argTypes: {
9
+ id: {
10
+ description: 'Defines the id of the component',
11
+ control: { type: 'text', default: false },
12
+ table: {
13
+ category: 'Id',
14
+ type: { summary: 'string' },
15
+ defaultValue: { summary: 'undefined' }
16
+ }
17
+ },
18
+ className: {
19
+ description: 'Defines any additional classes for the components',
20
+ control: { type: 'text', default: false },
21
+ table: {
22
+ category: 'Classes',
23
+ type: { summary: 'string' },
24
+ defaultValue: { summary: 'undefined' }
25
+ }
26
+ },
27
+ name: {
28
+ description: '',
29
+ control: 'text',
30
+ table: {
31
+ category: ''
32
+ }
33
+ },
34
+ description: {
35
+ description: '',
36
+ control: 'text',
37
+ table: {
38
+ category: ''
39
+ }
40
+ },
41
+ imageProps: {
42
+ type: { name: 'other', value: 'object' },
43
+ description: 'The props to pass to the image to display on the component',
44
+ table: {
45
+ type: {
46
+ summary: 'object'
47
+ },
48
+ defaultValue: { summary: 'undefined' }
49
+ }
50
+ }
51
+ },
52
+ args: {
53
+ imageProps: {
54
+ title: '',
55
+ altText: '',
56
+ image: ''
57
+ },
58
+ name: 'Someones name',
59
+ description: 'someone info'
60
+ }
61
+ }
62
+
63
+ const Template: ComponentStory<typeof UserIcon> = (args) => <UserIcon {...args} />
64
+
65
+ export const _UserIcon = Template.bind({})
66
+
67
+ export default componentMeta
@@ -0,0 +1,42 @@
1
+ import React from 'react'
2
+ import classNames from 'classnames'
3
+ import Image, { Props as imageProps } from '@components/Image'
4
+
5
+ export interface Props {
6
+ id?: string
7
+ className?: string
8
+ name?: string
9
+ description?: string
10
+ imageProps?: imageProps
11
+ }
12
+ const UserIcon = ({
13
+ id,
14
+ className,
15
+ name,
16
+ description,
17
+ imageProps
18
+ }: Props): JSX.Element => {
19
+ const classList = classNames({
20
+ className: className !== undefined
21
+ }, 'group flex items-center')
22
+
23
+ imageProps = {
24
+ ...imageProps,
25
+ className: classNames(imageProps?.className, 'shrink-0 h-12 w-12 rounded-full')
26
+ }
27
+ return (
28
+ <div id={id} className={classList}>
29
+ <Image {...imageProps} />
30
+ <div className='ltr:ml-3 rtl:mr-3'>
31
+ <p className='text-xs font-medium'>
32
+ {name}
33
+ </p>
34
+ <p className='text-xs font-medium '>
35
+ {description}
36
+ </p>
37
+ </div>
38
+ </div>
39
+ )
40
+ }
41
+
42
+ export default UserIcon
@@ -0,0 +1,23 @@
1
+ import React from 'react'
2
+ import Video from './index'
3
+ import { idAndClassName } from '@utils/controls'
4
+ import { ComponentStory, ComponentMeta } from '@storybook/react'
5
+
6
+ const componentMeta: ComponentMeta<typeof Video> = {
7
+ title: 'Trepur Components/Other/Atoms/Video',
8
+ component: Video,
9
+ argTypes: {
10
+ ...idAndClassName
11
+ },
12
+ args: {
13
+ withControls: true,
14
+ autoPlay: true,
15
+ muted: true
16
+ }
17
+ }
18
+
19
+ const Template: ComponentStory<typeof Video> = (args) => <Video {...args} />
20
+
21
+ export const _Video = Template.bind({})
22
+
23
+ export default componentMeta
@@ -0,0 +1,49 @@
1
+ import React from 'react'
2
+
3
+ export interface Props {
4
+ id?: string
5
+ className?: string
6
+ autoPlay?: boolean
7
+ muted?: boolean
8
+ poster?: string
9
+ mp4File?: string
10
+ webmFile?: string
11
+ ogvFile?: string
12
+ height?: string
13
+ width?: string
14
+ withControls?: boolean
15
+ withPoster?: boolean
16
+ }
17
+
18
+ const Video = ({
19
+ id,
20
+ className,
21
+ autoPlay,
22
+ muted,
23
+ poster,
24
+ mp4File,
25
+ webmFile,
26
+ ogvFile,
27
+ height,
28
+ width,
29
+ withControls
30
+ }: Props): JSX.Element => {
31
+ return (
32
+ <video
33
+ id={id}
34
+ className={className}
35
+ poster={poster}
36
+ width={width}
37
+ height={height}
38
+ controls={withControls}
39
+ autoPlay={autoPlay}
40
+ muted={muted}
41
+ >
42
+ <source src={mp4File} type='video/mp4' />
43
+ {webmFile !== null && <source src={webmFile} type='video/webm' />}
44
+ {ogvFile !== undefined && <source src={ogvFile} type='video/ogg' />}
45
+ </video>
46
+ )
47
+ }
48
+
49
+ export default Video