trepur_components 0.4.8 → 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
@@ -1,302 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- require("core-js/modules/web.dom-collections.iterator.js");
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _Column = _interopRequireDefault(require("../Column"));
13
-
14
- var _Icon = _interopRequireDefault(require("../Icon"));
15
-
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
-
18
- var _propTypes = _interopRequireDefault(require("prop-types"));
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
-
32
- const burgerMenuBtnProps = {
33
- bgColor: _propTypes.default.string,
34
- color: _propTypes.default.string,
35
- hoverBgColor: _propTypes.default.string,
36
- hoverColor: _propTypes.default.string,
37
- activeBgColor: _propTypes.default.string
38
- };
39
- const navProps = {
40
- id: _propTypes.default.string,
41
- classes: _propTypes.default.string,
42
- firstRow: _propTypes.default.array,
43
- firstRowClasses: _propTypes.default.string,
44
- secondRow: _propTypes.default.array,
45
- secondRowClasses: _propTypes.default.string,
46
- thirdRow: _propTypes.default.array,
47
- thirdRowClasses: _propTypes.default.string,
48
- mobileItems: _propTypes.default.object,
49
- bgColor: _propTypes.default.string,
50
- burgerMenuBtn: burgerMenuBtnProps,
51
- mobileBgColor: _propTypes.default.string,
52
- asSideBar: _propTypes.default.bool,
53
- mobileNavCloseColor: _propTypes.default.string,
54
- sideBarWidth: _propTypes.default.string,
55
- dropdownNavHeight: _propTypes.default.string,
56
- mobileLogo: _propTypes.default.string,
57
- mobileLogoBannerClasses: _propTypes.default.string,
58
- mobileNavLogoLink: _propTypes.default.string,
59
- fixedTop: _propTypes.default.bool,
60
- mobileClasses: _propTypes.default.string,
61
- borderBottom: _propTypes.default.bool,
62
- borderBottomColor: _propTypes.default.string,
63
- closeMobileIconProps: _propTypes.default.string,
64
- rowHeight: _propTypes.default.string,
65
- getNavStatus: _propTypes.default.func
66
- };
67
-
68
- const Nav = _ref => {
69
- let {
70
- id,
71
- classes,
72
- firstRow,
73
- firstRowClasses,
74
- secondRow,
75
- secondRowClasses,
76
- thirdRow,
77
- thirdRowClasses,
78
- mobileItems,
79
- bgColor,
80
- burgerMenuBtn,
81
- mobileBgColor,
82
- asSideBar,
83
- mobileNavCloseColor,
84
- sideBarWidth,
85
- dropdownNavHeight,
86
- mobileLogo,
87
- mobileLogoBannerClasses,
88
- mobileNavLogoLink,
89
- fixedTop,
90
- mobileClasses,
91
- borderBottom,
92
- borderBottomColor,
93
- closeMobileIconProps,
94
- rowHeight,
95
- getNavStatus
96
- } = _ref;
97
- const [showSideNav, setShowSideNav] = (0, _react.useState)(false);
98
- const [showDropdownNav, setShowDropdownNav] = (0, _react.useState)(false);
99
- const navRowHeight = rowHeight ? rowHeight : 'h-16';
100
- const firstRowClassList = (0, _classnames.default)({
101
- [firstRowClasses]: firstRowClasses
102
- }, 'flex');
103
- const secondRowClassList = (0, _classnames.default)({
104
- [secondRowClasses]: secondRowClasses
105
- }, 'flex');
106
- const thirdRowClassList = (0, _classnames.default)({
107
- [thirdRowClasses]: thirdRowClasses
108
- }, 'flex');
109
- const styles = (0, _classnames.default)({
110
- [burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.bgColor]: burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.bgColor,
111
- 'bg-white': !(burgerMenuBtn !== null && burgerMenuBtn !== void 0 && burgerMenuBtn.bgColor),
112
- [burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.color]: burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.color,
113
- 'text-black': !(burgerMenuBtn !== null && burgerMenuBtn !== void 0 && burgerMenuBtn.color),
114
- [burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.hoverBgColor]: burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.hoverBgColor,
115
- 'hover:bg-black': !(burgerMenuBtn !== null && burgerMenuBtn !== void 0 && burgerMenuBtn.hoverBgColor),
116
- [burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.hoverColor]: burgerMenuBtn === null || burgerMenuBtn === void 0 ? void 0 : burgerMenuBtn.hoverColor,
117
- 'hover:text-white': !(burgerMenuBtn !== null && burgerMenuBtn !== void 0 && burgerMenuBtn.hoverColor)
118
- });
119
- const sideNavClasses = (0, _classnames.default)({
120
- [mobileBgColor]: mobileBgColor,
121
- 'bg-white': !mobileBgColor,
122
- 'w-0': !showSideNav,
123
- ["w-".concat(sideBarWidth)]: showSideNav
124
- }, "z-50 shadow-inner shaddow-lg md:hidden pt-20 \n fixed top-0 left-0 z-1 overflow-hidden h-full\n duration-700");
125
- const dropdownNavClasses = (0, _classnames.default)({
126
- [mobileBgColor]: mobileBgColor,
127
- [bgColor]: !mobileBgColor && bgColor,
128
- 'bg-white': !mobileBgColor && !bgColor,
129
- 'h-0': !showDropdownNav,
130
- ["h-".concat(dropdownNavHeight)]: showDropdownNav
131
- }, "z-50 md:hidden duration-500 overflow-hidden");
132
- const logoImageClassList = (0, _classnames.default)({
133
- [mobileLogoBannerClasses]: mobileLogoBannerClasses
134
- }, 'h-16 w-auto');
135
- const mobileClassList = (0, _classnames.default)({
136
- 'fixed w-full z-50 top-0 mt-0': fixedTop,
137
- 'border-b': borderBottom,
138
- [mobileClasses]: mobileClasses
139
- }, "flex items-center md:hidden py-2");
140
- const colors = (0, _classnames.default)({
141
- [bgColor]: bgColor,
142
- 'bg-blue': !bgColor,
143
- [borderBottomColor]: borderBottomColor,
144
- 'border-b-facebook': !borderBottomColor
145
- });
146
- const desktopClassList = (0, _classnames.default)({
147
- 'fixed w-full z-50 top-0 mt-0': fixedTop,
148
- 'border-b': borderBottom
149
- }, "hidden md:block items-center justify-between sm:items-stretch text-center");
150
-
151
- const openMenu = () => {
152
- getNavStatus({
153
- asSideBar: asSideBar,
154
- open: true
155
- });
156
-
157
- if (asSideBar) {
158
- setShowSideNav(true);
159
- } else {
160
- setShowDropdownNav(!showDropdownNav);
161
- }
162
- };
163
-
164
- const closeMenu = () => {
165
- getNavStatus({
166
- asSideBar: asSideBar,
167
- open: false
168
- });
169
- setShowSideNav(false);
170
- };
171
-
172
- return /*#__PURE__*/_react.default.createElement("nav", {
173
- id: id,
174
- className: classes
175
- }, /*#__PURE__*/_react.default.createElement("div", {
176
- id: "mobile-nav",
177
- className: "".concat(mobileClassList, " ").concat(colors)
178
- }, /*#__PURE__*/_react.default.createElement("div", {
179
- id: "nav-collapse-btn-wrapper",
180
- className: "absolute inset-y-0 left-2 flex items-center"
181
- }, /*#__PURE__*/_react.default.createElement("button", {
182
- onClick: openMenu,
183
- type: "button",
184
- className: "inline-flex items-center justify-center \n p-2 rounded-md focus:ring-2 focus:ring-inset \n focus:ring-white ".concat(styles),
185
- "aria-label": "open navigation",
186
- "aria-controls": "mobile-menu",
187
- "aria-expanded": "false"
188
- }, /*#__PURE__*/_react.default.createElement("svg", {
189
- className: "block h-6 w-6",
190
- xmlns: "http://www.w3.org/2000/svg",
191
- fill: "none",
192
- viewBox: "0 0 24 24",
193
- stroke: "currentColor",
194
- "aria-hidden": "true"
195
- }, /*#__PURE__*/_react.default.createElement("path", {
196
- d: "M4 6h16M4 12h16M4 18h16"
197
- })), /*#__PURE__*/_react.default.createElement("svg", {
198
- className: "hidden h-6 w-6",
199
- xmlns: "http://www.w3.org/2000/svg",
200
- fill: "none",
201
- viewBox: "0 0 24 24",
202
- stroke: "currentColor",
203
- "aria-hidden": "true"
204
- }, /*#__PURE__*/_react.default.createElement("path", {
205
- d: "M6 18L18 6M6 6l12 12"
206
- })))), /*#__PURE__*/_react.default.createElement("a", {
207
- id: "logo-link",
208
- className: "mx-auto",
209
- href: mobileNavLogoLink
210
- }, /*#__PURE__*/_react.default.createElement("img", {
211
- className: logoImageClassList,
212
- src: mobileLogo,
213
- alt: "Logo"
214
- }))), /*#__PURE__*/_react.default.createElement("div", {
215
- id: "destop-nav",
216
- className: "".concat(desktopClassList, " ").concat(colors)
217
- }, /*#__PURE__*/_react.default.createElement("div", {
218
- className: firstRowClassList
219
- }, firstRow && firstRow.map((rowItem, i) => {
220
- const columnClassList = (0, _classnames.default)({
221
- [rowItem === null || rowItem === void 0 ? void 0 : rowItem.columnClasses]: rowItem === null || rowItem === void 0 ? void 0 : rowItem.columnClasses
222
- }, navRowHeight);
223
- return /*#__PURE__*/_react.default.createElement(_Column.default, {
224
- key: "row_item_1.".concat(i),
225
- columnProps: {
226
- classes: columnClassList,
227
- sm: rowItem.smColumnWidth,
228
- md: rowItem.mdColumnWidth,
229
- lg: rowItem.lgColumnWidth,
230
- xl: rowItem.xlColumnWidth
231
- },
232
- children: rowItem.component
233
- });
234
- })), /*#__PURE__*/_react.default.createElement("div", {
235
- className: secondRowClassList
236
- }, secondRow && secondRow.map((rowItem, i) => {
237
- const columnClassList = (0, _classnames.default)({
238
- [rowItem === null || rowItem === void 0 ? void 0 : rowItem.columnClasses]: rowItem === null || rowItem === void 0 ? void 0 : rowItem.columnClasses
239
- }, navRowHeight);
240
- return /*#__PURE__*/_react.default.createElement(_Column.default, {
241
- key: "row_item_2.".concat(i),
242
- columnProps: {
243
- classes: columnClassList,
244
- sm: rowItem.smColumnWidth,
245
- md: rowItem.mdColumnWidth,
246
- lg: rowItem.lgColumnWidth,
247
- xl: rowItem.xlColumnWidth
248
- },
249
- children: rowItem.component
250
- });
251
- })), /*#__PURE__*/_react.default.createElement("div", {
252
- className: thirdRowClassList
253
- }, thirdRow && thirdRow.map((rowItem, i) => {
254
- const columnClassList = (0, _classnames.default)({
255
- [rowItem === null || rowItem === void 0 ? void 0 : rowItem.columnClasses]: rowItem === null || rowItem === void 0 ? void 0 : rowItem.columnClasses
256
- }, navRowHeight);
257
- return /*#__PURE__*/_react.default.createElement(_Column.default, {
258
- key: "row_item_3.".concat(i),
259
- columnProps: {
260
- classes: columnClassList,
261
- sm: rowItem.smColumnWidth,
262
- md: rowItem.mdColumnWidth,
263
- lg: rowItem.lgColumnWidth,
264
- xl: rowItem.xlColumnWidth
265
- },
266
- children: rowItem.component
267
- });
268
- }))), asSideBar ? /*#__PURE__*/_react.default.createElement("div", {
269
- className: sideNavClasses
270
- }, /*#__PURE__*/_react.default.createElement(_Icon.default, {
271
- iconProps: {
272
- classes: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.classes,
273
- onClick: closeMenu,
274
- type: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.type,
275
- size: closeMobileIconProps === null || closeMobileIconProps === void 0 ? void 0 : closeMobileIconProps.size
276
- }
277
- }), mobileItems && mobileItems.map((item, i) => {
278
- return /*#__PURE__*/_react.default.createElement("div", {
279
- key: "mobile_item_".concat(i),
280
- className: "pb-5"
281
- }, item.component);
282
- })) :
283
- /*#__PURE__*/
284
-
285
- /* dropdown */
286
- _react.default.createElement("div", {
287
- className: dropdownNavClasses,
288
- id: "mobile-menu"
289
- }, /*#__PURE__*/_react.default.createElement("div", {
290
- className: "px-2 pt-2 pb-3 space-y-1"
291
- }, mobileItems && mobileItems.map((item, i) => {
292
- return /*#__PURE__*/_react.default.createElement("div", {
293
- key: "dropdown_item_1.".concat(i)
294
- }, item.component);
295
- }))));
296
- };
297
-
298
- Nav.propTypes = {
299
- navProps: _propTypes.default.shape(_objectSpread({}, navProps))
300
- };
301
- var _default = Nav;
302
- exports.default = _default;
@@ -1,129 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.navItemProps = exports.default = void 0;
7
-
8
- require("core-js/modules/es.object.assign.js");
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
-
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
-
22
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
-
24
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
-
26
- const navItemProps = {
27
- id: _propTypes.default.string,
28
- classes: _propTypes.default.string,
29
- linkClasses: _propTypes.default.string,
30
- name: _propTypes.default.string,
31
- url: _propTypes.default.string,
32
- onClick: _propTypes.default.func,
33
- bordered: _propTypes.default.bool,
34
- rounded: _propTypes.default.bool,
35
- underlineOnHover: _propTypes.default.bool,
36
- isActive: _propTypes.default.bool,
37
- default: _propTypes.default.shape({
38
- borderColor: _propTypes.default.string,
39
- textColor: _propTypes.default.string,
40
- bgColor: _propTypes.default.string
41
- }),
42
- hover: _propTypes.default.shape({
43
- borderColor: _propTypes.default.string,
44
- textColor: _propTypes.default.string,
45
- bgColor: _propTypes.default.string
46
- }),
47
- focus: _propTypes.default.shape({
48
- borderColor: _propTypes.default.string,
49
- textColor: _propTypes.default.string,
50
- bgColor: _propTypes.default.string
51
- }),
52
- active: _propTypes.default.shape({
53
- borderColor: _propTypes.default.string,
54
- textColor: _propTypes.default.string,
55
- bgColor: _propTypes.default.string
56
- })
57
- };
58
- exports.navItemProps = navItemProps;
59
-
60
- const NavItem = _ref => {
61
- var _navItemProps$default, _navItemProps$default2, _navItemProps$default3, _navItemProps$default4, _navItemProps$default5, _navItemProps$default6, _navItemProps$default7, _navItemProps$default8, _navItemProps$default9, _navItemProps$active, _navItemProps$active2, _navItemProps$active3, _navItemProps$active4, _navItemProps$active5, _navItemProps$active6, _navItemProps$active7, _navItemProps$active8, _navItemProps$active9, _navItemProps$hover, _navItemProps$hover2, _navItemProps$hover3, _navItemProps$hover4, _navItemProps$hover5, _navItemProps$hover6, _navItemProps$hover7, _navItemProps$hover8, _navItemProps$hover9, _navItemProps$focus, _navItemProps$focus2, _navItemProps$focus3, _navItemProps$focus4, _navItemProps$focus5, _navItemProps$focus6, _navItemProps$focus7, _navItemProps$focus8, _navItemProps$focus9;
62
-
63
- let {
64
- navItemProps
65
- } = _ref;
66
- if (navItemProps == undefined) return;
67
- const classList = (0, _classnames.default)({
68
- [navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.classes]: navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.classes
69
- }, 'w-auto list-none');
70
- const linkClassList = (0, _classnames.default)({
71
- 'active': navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.isActive,
72
- 'border': navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.bordered,
73
- 'rounded-lg': navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.rounded,
74
- 'hover:underline': navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.underlineOnHover,
75
- [navItemProps.linkClasses]: navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.linkClasses
76
- }, 'px-4 mx-2 mb-4 text-center whitespace-nowrap');
77
- const styleClasses = (0, _classnames.default)({
78
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$default = navItemProps.default) === null || _navItemProps$default === void 0 ? void 0 : _navItemProps$default.bgColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$default2 = navItemProps.default) === null || _navItemProps$default2 === void 0 ? void 0 : _navItemProps$default2.bgColor,
79
- 'bg-black': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$default3 = navItemProps.default) !== null && _navItemProps$default3 !== void 0 && _navItemProps$default3.bgColor),
80
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$default4 = navItemProps.default) === null || _navItemProps$default4 === void 0 ? void 0 : _navItemProps$default4.textColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$default5 = navItemProps.default) === null || _navItemProps$default5 === void 0 ? void 0 : _navItemProps$default5.textColor,
81
- 'text-white': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$default6 = navItemProps.default) !== null && _navItemProps$default6 !== void 0 && _navItemProps$default6.textColor),
82
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$default7 = navItemProps.default) === null || _navItemProps$default7 === void 0 ? void 0 : _navItemProps$default7.borderColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$default8 = navItemProps.default) === null || _navItemProps$default8 === void 0 ? void 0 : _navItemProps$default8.borderColor,
83
- 'border-black': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$default9 = navItemProps.default) !== null && _navItemProps$default9 !== void 0 && _navItemProps$default9.borderColor)
84
- });
85
- const activeStyleClasses = (0, _classnames.default)({
86
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$active = navItemProps.active) === null || _navItemProps$active === void 0 ? void 0 : _navItemProps$active.bgColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$active2 = navItemProps.active) === null || _navItemProps$active2 === void 0 ? void 0 : _navItemProps$active2.bgColor,
87
- 'bg-blue': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$active3 = navItemProps.active) !== null && _navItemProps$active3 !== void 0 && _navItemProps$active3.bgColor),
88
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$active4 = navItemProps.active) === null || _navItemProps$active4 === void 0 ? void 0 : _navItemProps$active4.textColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$active5 = navItemProps.active) === null || _navItemProps$active5 === void 0 ? void 0 : _navItemProps$active5.textColor,
89
- 'text-white': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$active6 = navItemProps.active) !== null && _navItemProps$active6 !== void 0 && _navItemProps$active6.textColor),
90
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$active7 = navItemProps.active) === null || _navItemProps$active7 === void 0 ? void 0 : _navItemProps$active7.borderColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$active8 = navItemProps.active) === null || _navItemProps$active8 === void 0 ? void 0 : _navItemProps$active8.borderColor,
91
- 'border-blue': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$active9 = navItemProps.active) !== null && _navItemProps$active9 !== void 0 && _navItemProps$active9.borderColor)
92
- });
93
- const hoverStyles = (0, _classnames.default)({
94
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$hover = navItemProps.hover) === null || _navItemProps$hover === void 0 ? void 0 : _navItemProps$hover.bgColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$hover2 = navItemProps.hover) === null || _navItemProps$hover2 === void 0 ? void 0 : _navItemProps$hover2.bgColor,
95
- 'hover:bg-white': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$hover3 = navItemProps.hover) !== null && _navItemProps$hover3 !== void 0 && _navItemProps$hover3.bgColor),
96
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$hover4 = navItemProps.hover) === null || _navItemProps$hover4 === void 0 ? void 0 : _navItemProps$hover4.textColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$hover5 = navItemProps.hover) === null || _navItemProps$hover5 === void 0 ? void 0 : _navItemProps$hover5.textColor,
97
- 'hover:text-black': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$hover6 = navItemProps.hover) !== null && _navItemProps$hover6 !== void 0 && _navItemProps$hover6.textColor),
98
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$hover7 = navItemProps.hover) === null || _navItemProps$hover7 === void 0 ? void 0 : _navItemProps$hover7.borderColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$hover8 = navItemProps.hover) === null || _navItemProps$hover8 === void 0 ? void 0 : _navItemProps$hover8.borderColor,
99
- 'hover:border-black': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$hover9 = navItemProps.hover) !== null && _navItemProps$hover9 !== void 0 && _navItemProps$hover9.borderColor)
100
- });
101
- const focusStyles = (0, _classnames.default)({
102
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$focus = navItemProps.focus) === null || _navItemProps$focus === void 0 ? void 0 : _navItemProps$focus.bgColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$focus2 = navItemProps.focus) === null || _navItemProps$focus2 === void 0 ? void 0 : _navItemProps$focus2.bgColor,
103
- 'focus:bg-white': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$focus3 = navItemProps.focus) !== null && _navItemProps$focus3 !== void 0 && _navItemProps$focus3.bgColor),
104
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$focus4 = navItemProps.focus) === null || _navItemProps$focus4 === void 0 ? void 0 : _navItemProps$focus4.textColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$focus5 = navItemProps.focus) === null || _navItemProps$focus5 === void 0 ? void 0 : _navItemProps$focus5.textColor,
105
- 'focus:text-black': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$focus6 = navItemProps.focus) !== null && _navItemProps$focus6 !== void 0 && _navItemProps$focus6.textColor),
106
- [navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$focus7 = navItemProps.focus) === null || _navItemProps$focus7 === void 0 ? void 0 : _navItemProps$focus7.borderColor]: navItemProps === null || navItemProps === void 0 ? void 0 : (_navItemProps$focus8 = navItemProps.focus) === null || _navItemProps$focus8 === void 0 ? void 0 : _navItemProps$focus8.borderColor,
107
- 'focus:border-black': !(navItemProps !== null && navItemProps !== void 0 && (_navItemProps$focus9 = navItemProps.focus) !== null && _navItemProps$focus9 !== void 0 && _navItemProps$focus9.borderColor)
108
- });
109
- const styles = (0, _classnames.default)({
110
- [activeStyleClasses]: navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.isActive,
111
- [styleClasses]: !(navItemProps !== null && navItemProps !== void 0 && navItemProps.isActive)
112
- });
113
- return /*#__PURE__*/_react.default.createElement("div", _extends({}, (navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.id) && {
114
- id: navItemProps.id
115
- }, {
116
- className: classList
117
- }), /*#__PURE__*/_react.default.createElement("a", {
118
- href: navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.url
119
- }, /*#__PURE__*/_react.default.createElement("li", {
120
- className: "".concat(linkClassList, " ").concat(styles, " ").concat(hoverStyles, " ").concat(focusStyles),
121
- onClick: navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.onClick
122
- }, navItemProps === null || navItemProps === void 0 ? void 0 : navItemProps.name)));
123
- };
124
-
125
- NavItem.propTypes = {
126
- navItemProps: _propTypes.default.shape(_objectSpread({}, navItemProps))
127
- };
128
- var _default = NavItem;
129
- exports.default = _default;
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- require("core-js/modules/es.object.assign.js");
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _Image = _interopRequireDefault(require("../Image"));
13
-
14
- var _Button = _interopRequireDefault(require("../Button"));
15
-
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
- const NewsCard = _ref => {
23
- let {
24
- id,
25
- classes,
26
- title,
27
- content,
28
- imageProps,
29
- buttonProps,
30
- rounded,
31
- boldTitle
32
- } = _ref;
33
- const roundedClasses = (0, _classnames.default)({
34
- 'rounded-lg': rounded
35
- });
36
- const titleBold = (0, _classnames.default)({
37
- 'font-bold': boldTitle
38
- });
39
- const classList = (0, _classnames.default)({
40
- 'rounded-lg': rounded,
41
- [classes]: classes
42
- }, 'border flex p-2');
43
- imageProps.wrapperClasses = roundedClasses;
44
- return /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
45
- id: id
46
- }, {
47
- className: classList
48
- }), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Image.default, {
49
- imageProps: imageProps
50
- })), /*#__PURE__*/_react.default.createElement("div", {
51
- className: "flex flex-col justify-between expandable w-auto text-center"
52
- }, /*#__PURE__*/_react.default.createElement("p", {
53
- className: titleBold
54
- }, title), /*#__PURE__*/_react.default.createElement("p", null, content), buttonProps && /*#__PURE__*/_react.default.createElement("div", {
55
- className: "px-8"
56
- }, /*#__PURE__*/_react.default.createElement(_Button.default, {
57
- buttonProps: buttonProps
58
- }, buttonProps.children))));
59
- };
60
-
61
- var _default = NewsCard;
62
- exports.default = _default;
@@ -1,86 +0,0 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.object.assign.js");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- require("core-js/modules/web.dom-collections.iterator.js");
11
-
12
- var _react = _interopRequireWildcard(require("react"));
13
-
14
- var _Image = _interopRequireDefault(require("../Image"));
15
-
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
-
26
- const Profile = _ref => {
27
- let {
28
- id,
29
- classes,
30
- profileLinks,
31
- alignment,
32
- imageHeight,
33
- imageWidth,
34
- rounded,
35
- bordered,
36
- imageProps
37
- } = _ref;
38
- const [profileState, setProfileState] = (0, _react.useState)(false);
39
- const profileAlignment = (0, _classnames.default)({
40
- 'float-right': alignment === 'right',
41
- 'float-left': alignment === 'left'
42
- });
43
- const dropdownAlignement = (0, _classnames.default)({
44
- 'mt-16 -mr-16': alignment === 'right',
45
- 'mt-16 -ml-16': alignment === 'left'
46
- });
47
- const dropdownTextAlignement = (0, _classnames.default)({
48
- 'text-center': alignment !== 'right' && alignment !== 'left'
49
- });
50
- const classList = (0, _classnames.default)({
51
- [classes]: classes,
52
- ["w-".concat(imageWidth)]: imageWidth,
53
- ["h-".concat(imageHeight)]: imageHeight,
54
- 'rounded-full': rounded,
55
- 'border': bordered
56
- }, 'object-cover');
57
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
58
- id: id
59
- }, {
60
- className: "text-center ".concat(classList)
61
- }), /*#__PURE__*/_react.default.createElement("div", {
62
- className: "hidden sm:inline-flex inset-y-0 ".concat(profileAlignment)
63
- }, /*#__PURE__*/_react.default.createElement("button", {
64
- onClick: () => setProfileState(!profileState),
65
- type: "button",
66
- className: "flex rounded-full"
67
- }, /*#__PURE__*/_react.default.createElement(_Image.default, {
68
- imageProps: imageProps
69
- })))), profileState && /*#__PURE__*/_react.default.createElement("div", {
70
- className: dropdownTextAlignement
71
- }, /*#__PURE__*/_react.default.createElement("div", {
72
- className: "w-48 sm:inline-block shadow-lg \n z-10 ".concat(profileAlignment, " ").concat(dropdownAlignement)
73
- }, profileLinks && profileLinks.map((link, i) => {
74
- return /*#__PURE__*/_react.default.createElement("a", {
75
- key: "profile_link_".concat(i + 1),
76
- href: link.link,
77
- className: "border-b font-bold block px-4 py-2 text-sm",
78
- role: "menuitem",
79
- tabindex: "-1",
80
- id: "user-menu-item-".concat(i + 1)
81
- }, link.name);
82
- }))));
83
- };
84
-
85
- var _default = Profile;
86
- exports.default = _default;
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.rowProps = exports.default = void 0;
7
-
8
- require("core-js/modules/es.object.assign.js");
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
-
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
-
22
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
-
24
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
-
26
- const rowProps = {
27
- id: _propTypes.default.string,
28
- classes: _propTypes.default.string,
29
- children: _propTypes.default.any,
30
- bordered: _propTypes.default.bool
31
- };
32
- exports.rowProps = rowProps;
33
-
34
- const Row = _ref => {
35
- let {
36
- rowProps,
37
- children
38
- } = _ref;
39
- if (rowProps == undefined) return null;
40
- const classList = (0, _classnames.default)({
41
- 'border': rowProps === null || rowProps === void 0 ? void 0 : rowProps.bordered,
42
- [rowProps.classes]: rowProps === null || rowProps === void 0 ? void 0 : rowProps.classes
43
- }, 'flex flex-wrap');
44
- return /*#__PURE__*/_react.default.createElement("div", _extends({}, (rowProps === null || rowProps === void 0 ? void 0 : rowProps.id) && {
45
- id: rowProps.id
46
- }, {
47
- className: classList
48
- }), children);
49
- };
50
-
51
- Row.propTypes = {
52
- rowProps: _propTypes.default.shape(_objectSpread({}, rowProps))
53
- };
54
- var _default = Row;
55
- exports.default = _default;