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 @@
1
+ {"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AA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AAY,EAAE,MAAM;YACpB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC7B;KACJ;IACD,IAAI,EAAE;QACF,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,IAAI;KACpB;CACJ,CAAA;AAED,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAA;AAElF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ labelClasses?: string;
6
+ textAreaClasses?: string;
7
+ label?: string;
8
+ placeholder?: string;
9
+ bold?: boolean;
10
+ name?: string;
11
+ disabled?: boolean;
12
+ rows?: number;
13
+ cols?: number;
14
+ autoFocus?: boolean;
15
+ formId?: string;
16
+ maxLength?: number;
17
+ readOnly?: boolean;
18
+ required?: boolean;
19
+ onBlur?: () => void;
20
+ onFocus?: () => void;
21
+ onChange?: (e: any) => void;
22
+ withPadding?: boolean;
23
+ children?: any;
24
+ theme?: 'dark' | 'light';
25
+ }
26
+ declare const TextArea: ({ id, className, labelClasses, textAreaClasses, label, placeholder, bold, name, disabled, rows, cols, autoFocus, formId, maxLength, readOnly, required, onBlur, onFocus, onChange, withPadding, children, theme }: Props) => JSX.Element;
27
+ export default TextArea;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const TextArea = ({ id, className, labelClasses, textAreaClasses, label, placeholder, bold, name, disabled, rows, cols, autoFocus, formId, maxLength, readOnly, required, onBlur, onFocus, onChange, withPadding, children, theme = 'light' }) => {
4
+ const colours = theme === 'dark' ? 'placeholder-white bg-primary text-white' : 'placeholder-primary bg-white text-primary';
5
+ const classList = classNames(className, colours, 'flex flex-col');
6
+ const labelClassList = classNames({
7
+ 'font-bold': bold
8
+ }, labelClasses, 'w-auto pb-2');
9
+ const textAreaClassList = classNames({
10
+ 'p-2': withPadding
11
+ }, textAreaClasses, colours, 'border rounded-md mb-2');
12
+ return (React.createElement("div", { id: id, className: classList },
13
+ label &&
14
+ React.createElement("label", { className: labelClassList, htmlFor: `text-area-${id}` }, label),
15
+ React.createElement("textarea", { className: textAreaClassList, autoFocus: autoFocus, form: formId, maxLength: maxLength, readOnly: readOnly, required: required, disabled: disabled, rows: rows, cols: cols, name: name, placeholder: placeholder, onChange: onChange, onFocus: onFocus, onBlur: onBlur }, children)));
16
+ };
17
+ export default TextArea;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/TextArea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AA4BnC,MAAM,QAAQ,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,YAAY,EACZ,eAAe,EACf,KAAK,EACL,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,GAAG,OAAO,EACX,EAAE,EAAE;IACR,MAAM,OAAO,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,yCAAyC,CAAC,CAAC,CAAC,2CAA2C,CAAA;IAC1H,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,CAAC,CAAA;IAEjE,MAAM,cAAc,GAAG,UAAU,CAAC;QAC9B,WAAW,EAAE,IAAI;KACpB,EAAE,YAAY,EAAE,aAAa,CAAC,CAAA;IAE/B,MAAM,iBAAiB,GAAG,UAAU,CAAC;QACjC,KAAK,EAAE,WAAW;KACrB,EAAE,eAAe,EAAE,OAAO,EAAE,wBAAwB,CAAC,CAAA;IAEtD,OAAO,CACH,6BACI,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS;QAEnB,KAAK;YACF,+BACI,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,aAAa,EAAE,EAAE,IAEzB,KAAK,CACF;QACR,kCACI,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,IAEb,QAAQ,CACF,CACb,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Timeline from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Timeline>;
5
+ export declare const _Timeline: ComponentStory<({ id, className, isHorizontal, items, reverse, textCenter, useImages, horizontalComponentClasses, isSm }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,88 @@
1
+ import React from 'react';
2
+ import Timeline from './index';
3
+ import CardWithTopImage from '../CardWithTopImage';
4
+ import logo from '../../assets/images/primary-logo.png';
5
+ const timelineItems = () => {
6
+ return new Array(8).fill(null).map(() => {
7
+ return ({
8
+ component: React.createElement(CardWithTopImage, { id: 'cardwithtopimage', imageProps: {
9
+ image: logo,
10
+ roundedFull: true,
11
+ className: 'rounded-full',
12
+ width: 4,
13
+ height: 4
14
+ }, className: 'px-4' },
15
+ React.createElement("p", null, "This is some text"),
16
+ React.createElement("p", null, "This is some more text"),
17
+ React.createElement("p", null, "This is a bit more text"),
18
+ React.createElement("p", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem odit ad sed, quam recusandae voluptatem provident eveniet beatae omnis vero minus unde facilis. Quia commodi quas odit iusto ut enim!")),
19
+ centerImageProps: {
20
+ image: logo,
21
+ imageClasses: 'mx-auto',
22
+ title: 'This is a title',
23
+ altText: 'This is a description',
24
+ width: 4,
25
+ height: 4
26
+ }
27
+ });
28
+ });
29
+ };
30
+ const componentMeta = {
31
+ title: 'Trepur Components/Rupert Bennett/Organisms/Timeline',
32
+ component: Timeline,
33
+ parameters: {},
34
+ argTypes: {
35
+ id: {
36
+ description: 'Defines the id of the component',
37
+ control: { type: 'text', default: false },
38
+ table: {
39
+ category: 'Id',
40
+ type: { summary: 'string' },
41
+ defaultValue: { summary: 'undefined' }
42
+ }
43
+ },
44
+ className: {
45
+ description: 'Defines any additional classes for the components',
46
+ control: { type: 'text', default: false },
47
+ table: {
48
+ category: 'Classes',
49
+ type: { summary: 'string' },
50
+ defaultValue: { summary: 'undefined' }
51
+ }
52
+ },
53
+ isHorizontal: {
54
+ description: '',
55
+ control: 'boolean',
56
+ table: {
57
+ category: '',
58
+ },
59
+ },
60
+ useImages: {
61
+ description: '',
62
+ control: 'boolean',
63
+ table: {
64
+ category: '',
65
+ },
66
+ },
67
+ items: {
68
+ description: '',
69
+ control: 'array',
70
+ table: {
71
+ category: '',
72
+ },
73
+ }
74
+ },
75
+ args: {
76
+ isHorizontal: false,
77
+ reverse: false,
78
+ items: timelineItems(),
79
+ textCenter: true,
80
+ useImages: true,
81
+ horizontalComponentClasses: 'w-96 h-96',
82
+ isSm: true
83
+ }
84
+ };
85
+ const Template = (args) => React.createElement(Timeline, Object.assign({}, args));
86
+ export const _Timeline = Template.bind({});
87
+ export default componentMeta;
88
+ //# sourceMappingURL=Timeline.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Timeline/Timeline.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAC9B,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAElD,OAAO,IAAI,MAAM,sCAAsC,CAAA;AACvD,MAAM,aAAa,GAAG,GAAG,EAAE;IACvB,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE;QACpC,OAAO,CACH;YACI,SAAS,EACL,oBAAC,gBAAgB,IACb,EAAE,EAAE,kBAAkB,EACtB,UAAU,EAAE;oBACR,KAAK,EAAE,IAAI;oBACX,WAAW,EAAE,IAAI;oBACjB,SAAS,EAAE,cAAc;oBACzB,KAAK,EAAE,CAAC;oBACR,MAAM,EAAE,CAAC;iBACZ,EACD,SAAS,EAAC,MAAM;gBAEhB,mDAAwB;gBACxB,wDAA6B;gBAC7B,yDAA8B;gBAC9B,wOAA6M,CAC9L;YACvB,gBAAgB,EAAE;gBACd,KAAK,EAAE,IAAI;gBACX,YAAY,EAAE,SAAS;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,OAAO,EAAE,uBAAuB;gBAChC,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,CAAC;aACZ;SACJ,CACJ,CAAA;IACL,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,MAAM,aAAa,GAAmC;IAClD,KAAK,EAAE,qDAAqD;IAC5D,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACN,EAAE,EAAE;YACA,WAAW,EAAE,iCAAiC;YAC9C,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;YACzC,KAAK,EAAE;gBACH,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,EAA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array<object>;
7
+ reverse?: boolean;
8
+ textCenter?: boolean;
9
+ useImages?: boolean;
10
+ horizontalComponentClasses?: string;
11
+ isSm?: boolean;
12
+ }
13
+ declare const Timeline: ({ id, className, isHorizontal, items, reverse, textCenter, useImages, horizontalComponentClasses, isSm }: Props) => JSX.Element;
14
+ export default Timeline;
@@ -0,0 +1,186 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import Image from '../Image';
4
+ import Column from '../Column';
5
+ import Row from '../Row/index';
6
+ const Timeline = ({ id, className, isHorizontal, items, reverse, textCenter, useImages, horizontalComponentClasses, isSm = false }) => {
7
+ const classList = classNames({}, `${className} w-full list-none overflow-x-auto pb-4`);
8
+ const ulClasses = classNames({
9
+ 'flex-row none-reverse justify-between': !reverse && isHorizontal,
10
+ 'flex-col none-reverse': !reverse && !isHorizontal,
11
+ 'flex-row reverse justify-between': reverse && isHorizontal,
12
+ 'flex-col reverse': reverse && !isHorizontal,
13
+ }, `${className} timeline status-flow relative list-none pl-0 flex`);
14
+ const liClasses = classNames({
15
+ 'text-center': textCenter,
16
+ 'items-center flex-col justify-between': !reverse && isHorizontal,
17
+ 'flex-row none-reverse': !reverse && !isHorizontal,
18
+ 'items-center flex-col-reverse': reverse && isHorizontal,
19
+ 'flex-row-reverse': reverse && !isHorizontal,
20
+ }, 'status-flow-item relative flex flex-auto flex-row leading-tight');
21
+ const circle = classNames({
22
+ 'horizontal collapse': isHorizontal && isSm,
23
+ 'horizontal': isHorizontal && !isSm,
24
+ 'vertical collapse': !isHorizontal && isSm,
25
+ 'vertical': !isHorizontal && !isSm
26
+ }, 'w-4 h-4 my-16 text-center mx-auto rounded-full border bg-black');
27
+ const circleVerticalBefore = {
28
+ 'position': 'absolute',
29
+ 'display': 'block',
30
+ 'borderLeft': '1px solid',
31
+ 'borderColor': 'text-primary',
32
+ 'content': '""',
33
+ 'height': '50%',
34
+ 'top': '0%',
35
+ 'left': '49.9%',
36
+ 'zIndex': '-1'
37
+ };
38
+ const circleVerticalCollapseBefore = {
39
+ position: 'absolute',
40
+ display: 'block',
41
+ borderLeft: '1px solid',
42
+ borderColor: 'text-primary',
43
+ content: '""',
44
+ height: '50%',
45
+ top: '0%',
46
+ left: '8.2%',
47
+ zIndex: '-1'
48
+ };
49
+ const lastCircleVerticalBefore = {
50
+ position: 'absolute',
51
+ display: 'block',
52
+ borderLeft: '1px solid',
53
+ borderColor: 'text-primary',
54
+ content: '""',
55
+ height: '50%',
56
+ top: '0%',
57
+ left: '49.9%',
58
+ zIndex: '-1',
59
+ };
60
+ const lastCircleVerticalCollapseBefore = {
61
+ position: 'absolute',
62
+ display: 'block',
63
+ borderLeft: '1px solid',
64
+ borderColor: 'text-primary',
65
+ content: '""',
66
+ height: '50%',
67
+ top: '0%',
68
+ left: '8.2%',
69
+ zIndex: '-1',
70
+ };
71
+ const circleVerticalAfter = {
72
+ position: 'absolute',
73
+ display: 'block',
74
+ borderLeft: '1px solid',
75
+ borderColor: 'text-primary',
76
+ content: '""',
77
+ height: '50%',
78
+ bottom: '0%',
79
+ left: '49.9%',
80
+ zIndex: '-1'
81
+ };
82
+ const firstCircleVerticalAfter = {
83
+ position: 'absolute',
84
+ display: 'block',
85
+ borderLeft: '1px solid',
86
+ borderColor: 'text-primary',
87
+ content: '""',
88
+ height: '50%',
89
+ bottom: '0%',
90
+ left: '49.9%',
91
+ zIndex: '-1'
92
+ };
93
+ const circleVerticalCollapseAfter = {
94
+ position: 'absolute',
95
+ display: 'block',
96
+ borderLeft: '1px solid',
97
+ borderColor: 'text-primary',
98
+ content: '""',
99
+ height: '50%',
100
+ bottom: '0%',
101
+ left: '8.2%',
102
+ zIndex: '-1'
103
+ };
104
+ const firstCircleVerticalCollapseAfter = {
105
+ position: 'absolute',
106
+ display: 'block',
107
+ borderLeft: '1px solid',
108
+ borderColor: 'text-primary',
109
+ content: '""',
110
+ height: '50%',
111
+ bottom: '0%',
112
+ left: '8.2%',
113
+ zIndex: '-1'
114
+ };
115
+ return (React.createElement(Column, { sm: 12, md: 12, lg: 12, xl: 12, id: id, className: classList },
116
+ React.createElement("div", { className: ulClasses }, items && items.map((item, i) => {
117
+ let before;
118
+ if (i % 2 === 0)
119
+ before = true;
120
+ else
121
+ before = false;
122
+ let circlePos;
123
+ if (items.length - 1 > 0) {
124
+ if (i === 0)
125
+ circlePos = 'first-circle';
126
+ else if (i === items.length - 1)
127
+ circlePos = 'last-circle';
128
+ else
129
+ circlePos = `circle`;
130
+ }
131
+ let verticalCircleStylesBefore;
132
+ if (circlePos === 'circle' && isSm) {
133
+ verticalCircleStylesBefore = circleVerticalCollapseBefore;
134
+ }
135
+ else if (circlePos === 'circle' && !isSm) {
136
+ verticalCircleStylesBefore = circleVerticalBefore;
137
+ }
138
+ else if (circlePos === 'last-circle' && isSm) {
139
+ verticalCircleStylesBefore = lastCircleVerticalCollapseBefore;
140
+ }
141
+ else if (circlePos === 'last-circle' && !isSm) {
142
+ verticalCircleStylesBefore = lastCircleVerticalBefore;
143
+ }
144
+ let verticalCircleStylesAfter;
145
+ if (circlePos === 'circle' && isSm) {
146
+ verticalCircleStylesAfter = circleVerticalCollapseAfter;
147
+ }
148
+ else if (circlePos === 'circle' && !isSm) {
149
+ verticalCircleStylesAfter = circleVerticalAfter;
150
+ }
151
+ else if (circlePos === 'first-circle' && isSm) {
152
+ verticalCircleStylesAfter = firstCircleVerticalCollapseAfter;
153
+ }
154
+ else if (circlePos === 'first-circle' && !isSm) {
155
+ verticalCircleStylesAfter = firstCircleVerticalAfter;
156
+ }
157
+ if (isHorizontal) {
158
+ return (React.createElement(Column, { key: `horizontal_col_${i + 0}`, id: 'timeline-item', className: `${liClasses} py-4 mb-8` },
159
+ React.createElement(Row, { className: horizontalComponentClasses }, before && item.component),
160
+ React.createElement(Row, null, useImages ?
161
+ React.createElement("div", { id: circlePos, className: isHorizontal ? 'horizontal py-0 my-0' : 'vertical' },
162
+ React.createElement(Image, Object.assign({}, item.centerImageProps)))
163
+ :
164
+ React.createElement("p", { id: circlePos, className: circle })),
165
+ React.createElement(Row, { className: horizontalComponentClasses }, !before && item.component)));
166
+ }
167
+ else {
168
+ return (React.createElement(Row, { key: `vertical_row_${i + 0}`, id: 'timeline-item', className: `${liClasses} py-4` },
169
+ !isSm &&
170
+ React.createElement(Column, { sm: 5, md: 5, lg: 5, xl: 5, className: 'text-center my-auto' }, before && item.component),
171
+ React.createElement(Column, { sm: 2, md: 2, lg: 2, xl: 2, id: 'circle-wrapper', className: 'my-auto' }, useImages ?
172
+ React.createElement("div", { id: circlePos, className: isSm ? 'vertical collapse' : 'vertical' },
173
+ React.createElement("span", { style: verticalCircleStylesBefore }),
174
+ React.createElement(Image, Object.assign({}, item.centerImageProps)),
175
+ React.createElement("span", { style: verticalCircleStylesAfter }))
176
+ :
177
+ React.createElement("p", { id: circlePos, className: circle })),
178
+ isSm &&
179
+ React.createElement(Column, { sm: 10, md: 10, lg: 10, xl: 10, className: 'text-center my-auto' }, item.component),
180
+ !isSm &&
181
+ React.createElement(Column, { sm: 5, md: 5, lg: 5, xl: 5, className: 'text-center my-auto' }, !before && item.component)));
182
+ }
183
+ }))));
184
+ };
185
+ export default Timeline;
186
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Timeline/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAC5C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,GAAG,MAAM,cAAc,CAAA;AAc9B,MAAM,QAAQ,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,YAAY,EACZ,KAAK,EACL,OAAO,EACP,UAAU,EACV,SAAS,EACT,0BAA0B,EAC1B,IAAI,GAAG,KAAK,EACT,EAAE,EAAE;IACP,MAAM,SAAS,GAAG,UAAU,CAAC,EAC5B,EAAE,GAA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C,EACL,SAAS,EAAC,qBAAqB,IAE9B,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CACrB,CAEX,CACT,CAAA;aACJ;QACL,CAAC,CAAC,CACA,CACD,CACZ,CAAA;AACL,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import Tubestops from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Tubestops>;
5
+ export declare const _Tubestops: ComponentStory<React.FC<import("./index").Props>>;
6
+ export default componentMeta;
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import Tubestops from './index';
3
+ const componentMeta = {
4
+ title: 'Trepur Components/Other/Atoms/Tubestops',
5
+ component: Tubestops,
6
+ parameters: {},
7
+ argTypes: {
8
+ id: {
9
+ description: 'Defines the id of the component',
10
+ table: {
11
+ category: '',
12
+ type: { summary: 'string' },
13
+ defaultValue: { summary: 'undefined' }
14
+ }
15
+ },
16
+ className: {
17
+ description: 'Defines any additional classes for the components',
18
+ table: {
19
+ category: '',
20
+ type: { summary: 'string' },
21
+ defaultValue: { summary: 'undefined' }
22
+ }
23
+ },
24
+ isHorizontal: {
25
+ description: '',
26
+ table: {
27
+ category: '',
28
+ },
29
+ },
30
+ items: {
31
+ description: '',
32
+ table: {
33
+ category: '',
34
+ },
35
+ }
36
+ },
37
+ args: {
38
+ isHorizontal: false,
39
+ reverse: false,
40
+ items: [
41
+ {
42
+ title: 'This is a title',
43
+ subtitle: 'This is a subtitle'
44
+ },
45
+ {
46
+ title: 'This is a title',
47
+ subtitle: 'This is a subtitle'
48
+ },
49
+ {
50
+ title: 'This is a title',
51
+ subtitle: 'This is a subtitle'
52
+ }
53
+ ],
54
+ textCenter: true,
55
+ id: '',
56
+ className: ''
57
+ }
58
+ };
59
+ const Template = (args) => React.createElement(Tubestops, Object.assign({}, args));
60
+ export const _Tubestops = Template.bind({});
61
+ export default componentMeta;
62
+ //# sourceMappingURL=Tubestops.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tubestops.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Tubestops/Tubestops.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,SAAS,CAAA;AAG/B,MAAM,aAAa,GAAoC;IACnD,KAAK,EAAE,yCAAyC;IAChD,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACN,EAAE,EAAE;YACA,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,SAAS,EAAE;YACP,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,YAAY,EAAE;YACV,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;aACf;SACJ;QACD,KAAK,EAAE;YACH,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;aACf;SACJ;KACJ;IACD,IAAI,EAAE;QACF,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACH;gBACI,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,oBAAoB;aACjC;YACD;gBACI,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,oBAAoB;aACjC;YACD;gBACI,KAAK,EAAE,iBAAiB;gBACxB,QAAQ,EAAE,oBAAoB;aACjC;SACJ;QACD,UAAU,EAAE,IAAI;QAChB,EAAE,EAAE,EAAE;QACN,SAAS,EAAE,EAAE;KAChB;CACJ,CAAA;AAGD,MAAM,QAAQ,GAAqC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,SAAS,oBAAK,IAAI,EAAI,CAAA;AAEpF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import './index.css';
3
+ export interface Props extends Partial<Pick<HTMLElement, 'className' | 'id'>> {
4
+ isHorizontal?: boolean;
5
+ items?: Array<{
6
+ title: string;
7
+ subtitle: string;
8
+ }>;
9
+ reverse?: boolean;
10
+ textCenter?: boolean;
11
+ }
12
+ declare const Tubestops: React.FC<Props>;
13
+ export default Tubestops;
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import './index.css';
4
+ const Tubestops = ({ id, className, isHorizontal = false, items = [], reverse = false, textCenter = false }) => {
5
+ const circle = 'w-4 h-4 rounded-full bg-black z-10';
6
+ const classList = classNames({}, `${className} w-full list-none`);
7
+ const liClasses = classNames({
8
+ 'text-center': textCenter,
9
+ 'items-center flex-col-reverse justify-between': !reverse && isHorizontal,
10
+ 'flex-row none-reverse': !reverse && !isHorizontal,
11
+ 'items-center flex-col': reverse && isHorizontal,
12
+ 'flex-row-reverse': reverse && !isHorizontal
13
+ }, 'mb-0 status-flow-item relative flex flex-auto flex-row leading-tight');
14
+ const ulClasses = classNames({
15
+ 'flex-row none-reverse justify-between': !reverse && isHorizontal,
16
+ 'flex-col none-reverse': !reverse && !isHorizontal,
17
+ 'flex-row reverse justify-between': reverse && isHorizontal,
18
+ 'flex-col reverse': reverse && !isHorizontal
19
+ }, 'tubestop status-flow relative list-none pl-0 flex');
20
+ const padding = classNames({
21
+ 'pb-2': !reverse && isHorizontal,
22
+ 'pl-4': !reverse && !isHorizontal,
23
+ 'pt-2': reverse && isHorizontal,
24
+ 'pr-4': reverse && !isHorizontal
25
+ });
26
+ return (React.createElement("div", { id: id, className: classList },
27
+ React.createElement("ul", { className: ulClasses }, items && items.map((item, i) => {
28
+ let a = isHorizontal
29
+ ? i === 0
30
+ ? ''
31
+ : ''
32
+ : i === 0
33
+ ? ''
34
+ : 'my-12';
35
+ return (React.createElement("li", { key: `tubestop_${i + 0}`, className: `${liClasses} ${a}` },
36
+ React.createElement("span", { className: circle }),
37
+ React.createElement("div", { className: padding },
38
+ React.createElement("p", null, item.title + i),
39
+ React.createElement("p", null,
40
+ React.createElement("small", null, item.subtitle)))));
41
+ }))));
42
+ };
43
+ export default Tubestops;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Tubestops/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,aAAa,CAAA;AASpB,MAAM,SAAS,GAAoB,CAAC,EAChC,EAAE,EACF,SAAS,EACT,YAAY,GAAG,KAAK,EACpB,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,KAAK,EACf,UAAU,GAAG,KAAK,EACrB,EAAE,EAAE;IACD,MAAM,MAAM,GAAG,oCAAoC,CAAA;IAEnD,MAAM,SAAS,GAAG,UAAU,CAAC,EAC5B,EAAE,GAAG,SAAS,mBAAmB,CAAC,CAAA;IAEnC,MAAM,SAAS,GAAG,UAAU,CAAC;QACzB,aAAa,EAAE,UAAU;QACzB,+CAA+C,EAAE,CAAC,OAAO,IAAI,YAAY;QACzE,uBAAuB,EAAE,CAAC,OAAO,IAAI,CAAC,YAAY;QAClD,uBAAuB,EAAE,OAAO,IAAI,YAAY;QAChD,kBAAkB,EAAE,OAAO,IAAI,CAAC,YAAY;KAC/C,EAAE,sEAAsE,CAAC,CAAA;IAE1E,MAAM,SAAS,GAAG,UAAU,CAAC;QACzB,uC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reference types="react" />
2
+ import UserIcon from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof UserIcon>;
5
+ export declare const _UserIcon: ComponentStory<({ id, className, name, description, imageProps }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import UserIcon from './index';
3
+ const componentMeta = {
4
+ title: 'Trepur Components/Other/Organisms/User Icon',
5
+ component: UserIcon,
6
+ argTypes: {
7
+ id: {
8
+ description: 'Defines the id of the component',
9
+ control: { type: 'text', default: false },
10
+ table: {
11
+ category: 'Id',
12
+ type: { summary: 'string' },
13
+ defaultValue: { summary: 'undefined' }
14
+ }
15
+ },
16
+ className: {
17
+ description: 'Defines any additional classes for the components',
18
+ control: { type: 'text', default: false },
19
+ table: {
20
+ category: 'Classes',
21
+ type: { summary: 'string' },
22
+ defaultValue: { summary: 'undefined' }
23
+ }
24
+ },
25
+ name: {
26
+ description: '',
27
+ control: 'text',
28
+ table: {
29
+ category: ''
30
+ }
31
+ },
32
+ description: {
33
+ description: '',
34
+ control: 'text',
35
+ table: {
36
+ category: ''
37
+ }
38
+ },
39
+ imageProps: {
40
+ type: { name: 'other', value: 'object' },
41
+ description: 'The props to pass to the image to display on the component',
42
+ table: {
43
+ type: {
44
+ summary: 'object'
45
+ },
46
+ defaultValue: { summary: 'undefined' }
47
+ }
48
+ }
49
+ },
50
+ args: {
51
+ imageProps: {
52
+ title: '',
53
+ altText: '',
54
+ image: ''
55
+ },
56
+ name: 'Someones name',
57
+ description: 'someone info'
58
+ }
59
+ };
60
+ const Template = (args) => React.createElement(UserIcon, Object.assign({}, args));
61
+ export const _UserIcon = Template.bind({});
62
+ export default componentMeta;
63
+ //# sourceMappingURL=UserIcon.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserIcon.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/UserIcon/UserIcon.stories.tsx"],"names":[],"mappings":"A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KAAK,EAAE,EAAE;YACT,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACZ;QACD,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,cAAc;KAC9B;CACJ,CAAA;AAED,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAA;AAElF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Props as imageProps } from '../Image';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ name?: string;
7
+ description?: string;
8
+ imageProps?: imageProps;
9
+ }
10
+ declare const UserIcon: ({ id, className, name, description, imageProps }: Props) => JSX.Element;
11
+ export default UserIcon;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import Image from '../Image';
4
+ const UserIcon = ({ id, className, name, description, imageProps }) => {
5
+ const classList = classNames({
6
+ className: className !== undefined
7
+ }, 'group flex items-center');
8
+ const classs = (imageProps === null || imageProps === void 0 ? void 0 : imageProps.className) + " shrink-0 h-12 w-12 rounded-full";
9
+ imageProps = Object.assign(Object.assign({}, imageProps), { className: classs });
10
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList }),
11
+ React.createElement(Image, Object.assign({}, imageProps)),
12
+ React.createElement("div", { className: "ltr:ml-3 rtl:mr-3" },
13
+ React.createElement("p", { className: "text-xs font-medium" }, name),
14
+ React.createElement("p", { className: "text-xs font-medium " }, description))));
15
+ };
16
+ export default UserIcon;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/UserIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAA6B,MAAM,UAAU,CAAA;AASpD,MAAM,QAAQ,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACN,EAAE,EAAE;IACR,MAAM,SAAS,GAAG,UAAU,CAAC;QACzB,SAAS,EAAE,SAAS,KAAK,SAAS;KACrC,EAAE,yBAAyB,CAAC,CAAA;IAE7B,MAAM,MAAM,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS,IAAG,kCAAkC,CAAA;IACzE,UAAU,mCACH,UAAU,KACb,SAAS,EAAE,MAAM,GACpB,CAAA;IACD,OAAO,CACH,6CAAS,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IAAE,SAAS,EAAE,SAAS;QAC7C,oBAAC,KAAK,oBAAK,UAAU,EAAI;QACzB,6BAAK,SAAS,EAAC,mBAAmB;YAC9B,2BAAG,SAAS,EAAC,qBAAqB,IAC7B,IAAI,CACL;YACJ,2BAAG,SAAS,EAAC,sBAAsB,IAC9B,WAAW,CACZ,CACF,CACJ,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Video from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Video>;
5
+ export declare const _Video: ComponentStory<({ id, className, autoPlay, muted, poster, mp4File, webmFile, ogvFile, height, width, withControls }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;