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,151 @@
1
+ import React, { useState } from 'react'
2
+ import classNames from 'classnames'
3
+
4
+ export interface Props {
5
+ id?: string
6
+ className?: string
7
+ name: string
8
+ link: string
9
+ type?: string
10
+ firstItem?: boolean
11
+ href?: string
12
+ }
13
+
14
+ const BreadcrumbsItem = ({
15
+ id,
16
+ className,
17
+ name,
18
+ link,
19
+ href,
20
+ type,
21
+ firstItem
22
+ }: Props): JSX.Element => {
23
+ const [isHovering, setIsHovering] = useState(false)
24
+ const topArrowClasses = 'top-0'
25
+ const bottomArrowClasses = 'bottom-0'
26
+ const textClassList = 'text-center pt-1'
27
+ const liClassList = 'list-none'
28
+
29
+ const classList = classNames(className, 'item')
30
+
31
+ const itemClassList = classNames({
32
+ 'hover:underline': type === 'link',
33
+ 'mb-0': isHovering
34
+ }, 'bc-item relative px-4 h-8')
35
+
36
+ const backArrowsClasses = 'absolute w-0 h-0 bg-transparent border-l-transparent'
37
+ const frontArrowClasses = 'absolute top-0 w-0 h-0 border-t'
38
+
39
+ const frontArrow = (
40
+ <span
41
+ style={{
42
+ borderTop: '17px solid transparent',
43
+ borderBottom: '15px solid transparent',
44
+ borderLeft: '16px solid',
45
+ right: '-16px'
46
+ }}
47
+ className={frontArrowClasses}
48
+ />
49
+ )
50
+
51
+ const backArrows = (
52
+ <>
53
+ <span
54
+ style={{
55
+ borderTop: '17px solid',
56
+ borderBottom: '18px solid transparent',
57
+ borderLeft: '17px solid transparent',
58
+ left: '-17px',
59
+ // '-webkit-transform': 'scaleY(-1)',
60
+ transform: 'scaleY(-1)'
61
+ }}
62
+ className={`${backArrowsClasses} ${bottomArrowClasses}`}
63
+ />
64
+ <span
65
+ style={{
66
+ borderTop: '18px solid',
67
+ borderBottom: '17px solid transparent',
68
+ borderLeft: '17px solid transparent',
69
+ left: '-17px'
70
+ }}
71
+ className={`${backArrowsClasses} ${topArrowClasses}`}
72
+ />
73
+ </>
74
+ )
75
+
76
+ const renderWithFrontArrow = (
77
+ <div className={itemClassList}>
78
+ <p className={textClassList}>
79
+ {name}
80
+ {frontArrow}
81
+ </p>
82
+ </div>
83
+ )
84
+
85
+ const renderWithBackArrows = (
86
+ <div className={itemClassList}>
87
+ <p className={textClassList}>
88
+ {backArrows}
89
+ {name}
90
+ {frontArrow}
91
+ </p>
92
+ </div>
93
+ )
94
+
95
+ return (
96
+ <div
97
+ id={id}
98
+ className={classList}
99
+ >
100
+ {type === 'link'
101
+ ? (
102
+ firstItem === true
103
+ ? (
104
+ <a
105
+ onMouseOver={() => setIsHovering(true)}
106
+ onMouseOut={() => setIsHovering(false)}
107
+ href={href}
108
+ >
109
+ <li className={liClassList}>
110
+ {renderWithFrontArrow}
111
+ </li>
112
+ </a>
113
+ )
114
+ : (
115
+ <a
116
+ onMouseOver={() => setIsHovering(true)}
117
+ onMouseOut={() => setIsHovering(false)}
118
+ href={href}
119
+ >
120
+ <li className={liClassList}>
121
+ {renderWithBackArrows}
122
+ </li>
123
+ </a>
124
+ )
125
+ )
126
+ : (
127
+ firstItem === true
128
+ ? (
129
+ <li
130
+ className={liClassList}
131
+ onMouseOver={() => setIsHovering(true)}
132
+ onMouseOut={() => setIsHovering(false)}
133
+ >
134
+ {renderWithFrontArrow}
135
+ </li>
136
+ )
137
+ : (
138
+ <li
139
+ className={liClassList}
140
+ onMouseOver={() => setIsHovering(true)}
141
+ onMouseOut={() => setIsHovering(false)}
142
+ >
143
+ {renderWithBackArrows}
144
+ </li>
145
+ )
146
+ )}
147
+ </div>
148
+ )
149
+ }
150
+
151
+ export default BreadcrumbsItem
@@ -0,0 +1,148 @@
1
+ import React from 'react'
2
+ import Button from './index'
3
+ import { action } from '@storybook/addon-actions'
4
+ import { idAndClassName } from '@utils/controls'
5
+ import { ComponentStory, ComponentMeta } from '@storybook/react'
6
+
7
+ const componentMeta: ComponentMeta<typeof Button> = {
8
+ title: 'Trepur Components/Rupert Bennett/Atoms/Button',
9
+ component: Button,
10
+ parameters: {
11
+ docs: {
12
+ description: {
13
+ component: 'A Button which can either be internal, external or social as well as a standard design or a slide design.'
14
+ }
15
+ }
16
+ },
17
+ argTypes: {
18
+ ...idAndClassName,
19
+ onClick: {
20
+ type: { name: 'function', required: false },
21
+ description: 'The action to perform when clicking on the component',
22
+ action: 'onClick',
23
+ table: {
24
+ type: {
25
+ summary: 'function'
26
+ },
27
+ defaultValue: { summary: 'undefined' }
28
+ }
29
+ },
30
+ hoverText: {
31
+ type: {
32
+ name: 'string',
33
+ required: false
34
+ },
35
+ description: 'The text to display when hovering on the component',
36
+ table: {
37
+ type: {
38
+ summary: 'string'
39
+ },
40
+ defaultValue: {
41
+ summary: 'undefined'
42
+ }
43
+ }
44
+ },
45
+ variant: {
46
+ type: {
47
+ name: 'string', required: false
48
+ },
49
+ options: ['primary', 'secondary'],
50
+ description: 'The variant of button to render',
51
+ table: {
52
+ type: {
53
+ summary: 'primary'
54
+ },
55
+ defaultValue: {
56
+ summary: 'primary'
57
+ }
58
+ },
59
+ defaultValue: 'primary',
60
+ control: {
61
+ type: 'radio'
62
+ }
63
+ },
64
+ type: {
65
+ type: {
66
+ name: 'string',
67
+ required: false
68
+ },
69
+ options: ['default', 'social', 'icon'],
70
+ description: 'The type of button to render',
71
+ table: {
72
+ type: {
73
+ summary: 'default'
74
+ },
75
+ defaultValue: {
76
+ summary: 'default'
77
+ }
78
+ },
79
+ defaultValue: 'default',
80
+ control: { type: 'radio' }
81
+ },
82
+ href: {
83
+ type: { name: 'string', required: false },
84
+ description: 'The link attached to the component',
85
+ table: {
86
+ type: {
87
+ summary: 'default'
88
+ },
89
+ defaultValue: {
90
+ summary: 'undefined'
91
+ }
92
+ }
93
+ },
94
+ rounded: {
95
+ type: {
96
+ name: 'boolean',
97
+ required: false
98
+ },
99
+ description: 'rounds the borders when true',
100
+ defaultValue: 'true'
101
+ },
102
+ disabled: {
103
+ type: {
104
+ name: 'boolean',
105
+ required: false
106
+ },
107
+ description: 'Can the carousel be dragged or not'
108
+ },
109
+ isLoading: {
110
+ type: {
111
+ name: 'boolean',
112
+ required: false
113
+ },
114
+ table: {
115
+ defaultValue: {
116
+ summary: 'false'
117
+ }
118
+ },
119
+ description: 'Toggles the loading state of the compnent'
120
+ },
121
+ openInNewTab: {
122
+ type: { name: 'boolean', required: false },
123
+ description: 'Opens the link in a new tab when set to true',
124
+ defaultValue: 'false'
125
+ },
126
+ children: {
127
+ type: { name: 'other', value: 'string | React.ReactNode' },
128
+ description: 'The child elements to show in the component',
129
+ table: {
130
+ type: {
131
+ summary: 'Array'
132
+ },
133
+ defaultValue: { summary: 'undefined' }
134
+ }
135
+ }
136
+ },
137
+ args: {
138
+ children: 'This is a button',
139
+ rounded: true,
140
+ onClick: action('button clicked')
141
+ }
142
+ }
143
+
144
+ const Template: ComponentStory<typeof Button> = (args) => <Button {...args} />
145
+
146
+ export const _Button = Template.bind({})
147
+
148
+ export default componentMeta
@@ -0,0 +1,91 @@
1
+ import React from 'react'
2
+ import Icon from '@components/Icon'
3
+ import classNames from 'classnames'
4
+
5
+ export interface Props {
6
+ id?: string
7
+ className?: string
8
+ onClick?: React.MouseEventHandler
9
+ hoverText?: string
10
+ variant?: 'primary' | 'secondary'
11
+ type?: 'social' | 'icon' | 'default'
12
+ href?: string
13
+ rounded?: boolean
14
+ disabled?: boolean
15
+ isLoading?: boolean
16
+ openInNewTab?: boolean
17
+ children?: any
18
+ }
19
+
20
+ const Button = ({
21
+ id,
22
+ className,
23
+ onClick,
24
+ hoverText,
25
+ variant = 'primary',
26
+ type = 'default',
27
+ href,
28
+ rounded = true,
29
+ disabled = false,
30
+ isLoading = false,
31
+ openInNewTab = false,
32
+ children
33
+ }: Props): JSX.Element => {
34
+ const padding = classNames({
35
+ 'px-1 py-1': type === 'social',
36
+ 'px-3': type === 'icon',
37
+ 'px-8': type !== 'social' && type !== 'icon'
38
+ }, 'py-2')
39
+
40
+ const loadingClasses = classNames({
41
+ invisible: !isLoading
42
+ }, 'absolute left-2/4 top-1/4 -ml-2')
43
+
44
+ const classList = classNames({
45
+ 'bg-primary text-white border-white': variant === 'primary',
46
+ 'hover:bg-white hover:text-primary hover:border-primary': !disabled && variant === 'primary',
47
+ 'bg-white text-primary border-primary': variant === 'secondary',
48
+ 'hover:bg-primary hover:text-white hover:border-primary': !disabled && variant === 'secondary',
49
+ 'opacity-50': disabled,
50
+ 'rounded-lg': rounded,
51
+ 'rounded-none': !rounded
52
+ }, className, padding, 'group border-2 transition-backgroundColor duration-500 transform')
53
+
54
+ const loadingIcon = (
55
+ <Icon
56
+ size={1}
57
+ type='spinner'
58
+ animation='pulse'
59
+ colour='white'
60
+ bgColour='primary'
61
+ />
62
+ )
63
+
64
+ return (
65
+ <a
66
+ className='group'
67
+ {...(openInNewTab && { target: '_blank' })}
68
+ href={href}
69
+ >
70
+ <button
71
+ id={id}
72
+ className={classList}
73
+ aria-busy={isLoading}
74
+ {...((onClick != null) &&
75
+ { onClick })}
76
+ {...(disabled &&
77
+ { disabled })}
78
+ >
79
+ <div className={classNames({ invisible: isLoading })}>
80
+ {children}
81
+ </div>
82
+ {isLoading &&
83
+ <div className={loadingClasses}>
84
+ {loadingIcon}
85
+ </div>}
86
+ </button>
87
+ </a>
88
+ )
89
+ }
90
+
91
+ export default Button
@@ -0,0 +1,150 @@
1
+ import React from 'react'
2
+ import Card from './index'
3
+ import { idAndClassName } from '@utils/controls'
4
+ import Icon from '@components/Icon'
5
+ import { ComponentStory, ComponentMeta } from '@storybook/react'
6
+
7
+ const componentMeta: ComponentMeta<typeof Card> = {
8
+ title: 'Trepur Components/Rupert Bennett/Organisms/Card',
9
+ component: Card,
10
+ argTypes: {
11
+ ...idAndClassName,
12
+ title: {
13
+ description: '',
14
+ table: {
15
+ category: 'Card'
16
+ }
17
+ },
18
+ image: {
19
+ description: '',
20
+ table: {
21
+ category: 'Card'
22
+ }
23
+ },
24
+ subTitle: {
25
+ description: '',
26
+ table: {
27
+ category: 'Card'
28
+ }
29
+ },
30
+ description: {
31
+ description: '',
32
+ table: {
33
+ category: 'Card'
34
+ }
35
+ },
36
+ extraText: {
37
+ description: '',
38
+ table: {
39
+ category: 'Card'
40
+ }
41
+ },
42
+ imageBelowTitle: {
43
+ description: '',
44
+ table: {
45
+ category: 'Card'
46
+ }
47
+ },
48
+ bordered: {
49
+ description: '',
50
+ table: {
51
+ category: 'Card'
52
+ }
53
+ },
54
+ rounded: {
55
+ description: '',
56
+ table: {
57
+ category: 'Card'
58
+ }
59
+ },
60
+ hasCta: {
61
+ description: '',
62
+ table: {
63
+ category: 'Card'
64
+ }
65
+ },
66
+ titleLeft: {
67
+ description: '',
68
+ table: {
69
+ category: 'Card'
70
+ }
71
+ },
72
+ titleRight: {
73
+ description: '',
74
+ table: {
75
+ category: 'Card'
76
+ }
77
+ },
78
+ titleBold: {
79
+ description: '',
80
+ table: {
81
+ category: 'Card'
82
+ }
83
+ }
84
+ },
85
+ args: {
86
+ subTitle: 'This is a subtitle',
87
+ description: 'This is a description paragraph',
88
+ extraText: 'This is another paragraph',
89
+ rounded: true,
90
+ bordered: true,
91
+ hasCta: true,
92
+ iconButtonProps: {
93
+ type: 'icon',
94
+ href: '/',
95
+ className: 'mt-8',
96
+ children: <Icon
97
+ type='heart'
98
+ hollow={false}
99
+ />
100
+ },
101
+ cardButtonProps: {
102
+ children: (
103
+ <div className='flex'>
104
+ <Icon type='heart' />
105
+ <p>buttonText</p>
106
+ <Icon type='heart' />
107
+ </div>
108
+ ),
109
+ disabled: false,
110
+ hoverText: 'buttonHoverText',
111
+ href: 'buttonUrl',
112
+ rounded: true
113
+ },
114
+ button2Props: {
115
+ className: 'ml-2 w-full mt-8',
116
+ children: 'Add to basket',
117
+ rounded: false,
118
+ disabled: false
119
+ }
120
+ }
121
+ }
122
+
123
+ const Template: ComponentStory<typeof Card> = (args) => <Card {...args} />
124
+
125
+ export const _ImageCard = Template.bind({})
126
+ _ImageCard.args = {
127
+ title: 'This is a title',
128
+ image: 'https://picsum.photos/500/300'
129
+ }
130
+
131
+ export const _VideoCard = Template.bind({})
132
+ _VideoCard.args = {
133
+ title: 'This is a title',
134
+ videoProps: {
135
+ mp4File: '/',
136
+ withControls: true,
137
+ autoPlay: true
138
+ }
139
+ }
140
+
141
+ export const _ProductCard = Template.bind({})
142
+ _ProductCard.args = {
143
+ image: 'https://picsum.photos/500/300',
144
+ subTitle: 'Product name',
145
+ description: 'Product description',
146
+ extraText: '£123.45',
147
+ onHover: true
148
+ }
149
+
150
+ export default componentMeta
@@ -0,0 +1,162 @@
1
+ import React, { useState } from 'react'
2
+ import classNames from 'classnames'
3
+ import Button, { Props as buttonProps } from '@components/Button'
4
+ import Video, { Props as videoProps } from '@components/Video'
5
+
6
+ export interface Props {
7
+ id?: string
8
+ className?: string
9
+ title?: string
10
+ image?: string
11
+ subTitle?: string
12
+ description?: string
13
+ extraText?: string
14
+ hasCta?: boolean
15
+ imageBelowTitle?: boolean
16
+ titleLeft?: boolean
17
+ titleRight?: boolean
18
+ titleBold?: boolean
19
+ imageClass?: string
20
+ subTitleClass?: string
21
+ extraTextClass?: string
22
+ descriptionClass?: string
23
+ altText?: string
24
+ rounded?: boolean
25
+ bordered?: boolean
26
+ videoProps?: videoProps
27
+ onHover?: boolean
28
+ iconButtonProps?: buttonProps
29
+ cardButtonProps?: buttonProps
30
+ button2Props?: buttonProps
31
+ }
32
+
33
+ const Card: React.FC<Props> = ({
34
+ id,
35
+ className,
36
+ title,
37
+ image,
38
+ subTitle,
39
+ description,
40
+ extraText,
41
+ hasCta,
42
+ imageBelowTitle,
43
+ titleLeft = false,
44
+ titleRight = false,
45
+ titleBold = false,
46
+ imageClass,
47
+ subTitleClass,
48
+ extraTextClass,
49
+ descriptionClass,
50
+ altText,
51
+ rounded,
52
+ bordered,
53
+ videoProps,
54
+ onHover = false,
55
+ iconButtonProps,
56
+ cardButtonProps,
57
+ button2Props
58
+ }: Props): JSX.Element => {
59
+ const [showHoverButtons, setShowHoverButtons] = useState(false)
60
+
61
+ const orderClass = classNames({ 'order-first': imageBelowTitle })
62
+ const btnClass = 'w-full p-3'
63
+ const border = classNames({ 'border border-grey border-opacity-100:': bordered })
64
+ const cardTitleFont = classNames({ 'font-bold': titleBold })
65
+ const cardTitlePosition = classNames({
66
+ 'text-left': titleLeft,
67
+ 'text-right': titleRight,
68
+ 'text-center': !titleLeft && !titleRight
69
+ })
70
+ const roundedImage = classNames({ 'rounded-t-lg': rounded })
71
+ const roundedCard = classNames({ 'rounded-lg': rounded })
72
+ const contentWrapperClass = 'px-3 order-3'
73
+ const titleWrapperClass = classNames(orderClass, 'pt-3')
74
+
75
+ const cardTitleClasses = classNames({
76
+ [cardTitlePosition]: true
77
+ }, cardTitleFont, 'font-medium text-md text-grey')
78
+
79
+ const cardSubTitleClassList = classNames(subTitleClass, 'font-light text-sm text-grey')
80
+ const cardDescriptionClassList = classNames(descriptionClass, 'font-extraLight text-xs text-light-grey')
81
+ const classList = classNames(className, border, roundedCard, 'flex flex-col')
82
+
83
+ const imageClassList = classNames(roundedImage, imageClass, 'w-full object-cover h-full')
84
+
85
+ const cardExtraTextClassList = classNames({
86
+ 'pb-4': hasCta === false
87
+ }, extraTextClass, 'w-full object-cover h-full font-extraLight text-xs text-light-grey')
88
+
89
+ const imageWrapperClassList = classNames({
90
+ 'order-2': imageBelowTitle === true,
91
+ [roundedImage]: imageBelowTitle === false,
92
+ 'order-1': imageBelowTitle === false
93
+ }, 'h-64 overflow-hidden object-cover')
94
+
95
+ const toggleHover = (isHovering: boolean): void => {
96
+ onHover && setShowHoverButtons(!!isHovering)
97
+ }
98
+
99
+ return (
100
+ <div
101
+ id={id}
102
+ className={classList}
103
+ onMouseEnter={() => toggleHover(true)}
104
+ onMouseLeave={() => toggleHover(false)}
105
+ >
106
+ <div className='card-content flex flex-1 flex-col'>
107
+ {videoProps?.mp4File !== undefined || videoProps?.webmFile !== undefined || videoProps?.ogvFile !== undefined
108
+ ? (
109
+ <div className={imageWrapperClassList}>
110
+ <Video {...videoProps} />
111
+ </div>
112
+ )
113
+ : (image !== undefined &&
114
+ <div className={imageWrapperClassList}>
115
+ <img className={imageClassList} src={image} alt={altText} />
116
+ </div>)}
117
+ {!showHoverButtons
118
+ ? (
119
+ <>
120
+ <div className={imageBelowTitle !== undefined ? 'order-1' : 'order-3'}>
121
+ {title !== undefined &&
122
+ <div className={titleWrapperClass}>
123
+ <h3 className={cardTitleClasses}>{title}</h3>
124
+ </div>}
125
+ </div>
126
+ <div className={contentWrapperClass}>
127
+ {subTitle !== undefined &&
128
+ <h4 className={cardSubTitleClassList}>
129
+ {subTitle}
130
+ </h4>}
131
+ {description !== undefined &&
132
+ <p className={cardDescriptionClassList}>
133
+ {description}
134
+ </p>}
135
+ {extraText !== undefined &&
136
+ <p className={cardExtraTextClassList}>
137
+ {extraText}
138
+ </p>}
139
+ </div>
140
+ </>
141
+ )
142
+ : (
143
+ <div className='flex p-2 order-last h-24'>
144
+ <Button {...iconButtonProps}>
145
+ {iconButtonProps?.children}
146
+ </Button>
147
+ <Button {...button2Props}>
148
+ {button2Props?.children}
149
+ </Button>
150
+ </div>)}
151
+ </div>
152
+ {(cardButtonProps != null) &&
153
+ <div className={btnClass}>
154
+ <Button {...cardButtonProps}>
155
+ {cardButtonProps.children}
156
+ </Button>
157
+ </div>}
158
+ </div>
159
+ )
160
+ }
161
+
162
+ export default Card