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,50 @@
1
+ import React from 'react';
2
+ import BreadcrumbsItem from './index';
3
+ const componentMeta = {
4
+ title: 'Trepur Components/Other/Atoms/Breadcrumbs Item',
5
+ component: BreadcrumbsItem,
6
+ parameters: {},
7
+ argTypes: {
8
+ id: {
9
+ description: 'Defines the id of the component',
10
+ table: {
11
+ category: '',
12
+ type: { summary: 'string' },
13
+ defaultValue: { summary: 'undefined' }
14
+ }
15
+ },
16
+ className: {
17
+ description: 'Defines any additional classes for the components',
18
+ table: {
19
+ category: '',
20
+ type: { summary: 'string' },
21
+ defaultValue: { summary: 'undefined' }
22
+ }
23
+ },
24
+ name: {
25
+ description: 'Specifies the name for the key attribute',
26
+ table: {
27
+ category: '',
28
+ type: { summary: 'string' },
29
+ defaultValue: { summary: 'undefined' }
30
+ }
31
+ },
32
+ type: {
33
+ description: 'Specifies the type of breadcrumbs to display ie link',
34
+ table: {
35
+ category: '',
36
+ type: { summary: 'string' },
37
+ defaultValue: { summary: 'undefined' }
38
+ }
39
+ },
40
+ },
41
+ args: {
42
+ name: 'Link 1',
43
+ href: '/',
44
+ firstItem: false
45
+ },
46
+ };
47
+ const Template = (args) => React.createElement(BreadcrumbsItem, Object.assign({}, args));
48
+ export const _BreadcrumbsItem = Template.bind({});
49
+ export default componentMeta;
50
+ //# sourceMappingURL=BreadcrumbsItem.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreadcrumbsItem.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,eAAe,MAAM,SAAS,CAAA;AAGrC,MAAM,aAAa,GAA0C;IACzD,KAAK,EAAE,gDAAgD;IACvD,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACN,EAAE,EAAE;YACA,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,SAAS,EAAE;YACP,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,IAAI,EAAE;YACF,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,IAAI,EAAE;YACF,WAAW,EAAE,sDAAsD;YACnE,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;KACJ;IACD,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,KAAK;KACnB;CACJ,CAAA;AAED,MAAM,QAAQ,GAA2C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAA;AAEhG,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEjD,eAAe,aAAa,CAAA"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ name: string;
6
+ link: string;
7
+ type?: string;
8
+ firstItem?: boolean;
9
+ href?: string;
10
+ }
11
+ declare const BreadcrumbsItem: ({ id, className, name, link, href, type, firstItem }: Props) => JSX.Element;
12
+ export default BreadcrumbsItem;
@@ -0,0 +1,59 @@
1
+ import React, { useState } from 'react';
2
+ import classNames from 'classnames';
3
+ const BreadcrumbsItem = ({ id, className, name, link, href, type, firstItem }) => {
4
+ const [isHovering, setIsHovering] = useState(false);
5
+ const topArrowClasses = 'top-0';
6
+ const bottomArrowClasses = 'bottom-0';
7
+ const textClassList = 'text-center pt-1';
8
+ const liClassList = 'list-none';
9
+ const classList = classNames({}, `${className} item`);
10
+ const itemClassList = classNames({
11
+ 'hover:underline': type === 'link'
12
+ }, 'bc-item relative px-4 h-8');
13
+ const backArrowsClasses = classNames({}, 'absolute w-0 h-0 bg-transparent border-l-transparent');
14
+ const frontArrowClasses = classNames({}, 'absolute top-0 w-0 h-0 border-t');
15
+ const frontArrow = React.createElement("span", { style: {
16
+ 'borderTop': '17px solid transparent',
17
+ 'borderBottom': '15px solid transparent',
18
+ 'borderLeft': '16px solid',
19
+ 'right': '-16px'
20
+ }, className: frontArrowClasses });
21
+ const backArrows = React.createElement(React.Fragment, null,
22
+ React.createElement("span", { style: {
23
+ 'borderTop': '17px solid',
24
+ 'borderBottom': '18px solid transparent',
25
+ 'borderLeft': '17px solid transparent',
26
+ 'left': '-17px',
27
+ // '-webkit-transform': 'scaleY(-1)',
28
+ 'transform': 'scaleY(-1)'
29
+ }, className: `${backArrowsClasses} ${bottomArrowClasses}` }),
30
+ React.createElement("span", { style: {
31
+ 'borderTop': '18px solid',
32
+ 'borderBottom': '17px solid transparent',
33
+ 'borderLeft': '17px solid transparent',
34
+ 'left': '-17px'
35
+ }, className: `${backArrowsClasses} ${topArrowClasses}` }));
36
+ const renderWithFrontArrow = () => (React.createElement("div", { className: itemClassList },
37
+ React.createElement("p", { className: textClassList },
38
+ name,
39
+ frontArrow)));
40
+ const renderWithBackArrows = () => (React.createElement("div", { className: itemClassList },
41
+ React.createElement("p", { className: textClassList },
42
+ backArrows,
43
+ name,
44
+ frontArrow)));
45
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList }), type === 'link' ?
46
+ firstItem ?
47
+ React.createElement("a", { onMouseOver: () => setIsHovering(true), onMouseOut: () => setIsHovering(false), href: href },
48
+ React.createElement("li", { className: liClassList }, renderWithFrontArrow()))
49
+ :
50
+ React.createElement("a", { onMouseOver: () => setIsHovering(true), onMouseOut: () => setIsHovering(false), href: href },
51
+ React.createElement("li", { className: liClassList }, renderWithBackArrows()))
52
+ :
53
+ firstItem ?
54
+ React.createElement("li", { className: liClassList, onMouseOver: () => setIsHovering(true), onMouseOut: () => setIsHovering(false) }, renderWithFrontArrow())
55
+ :
56
+ React.createElement("li", { className: liClassList, onMouseOver: () => setIsHovering(true), onMouseOut: () => setIsHovering(false) }, renderWithBackArrows())));
57
+ };
58
+ export default BreadcrumbsItem;
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AAYnC,MAAM,eAAe,GAAG,CAAC,EACrB,EAAE,EACF,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,SAAS,EACL,EAAE,EAAE;IACR,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACnD,MAAM,eAAe,GAAG,OAAO,CAAA;IAC/B,MAAM,kBAAkB,GAAG,UAAU,CAAA;IACrC,MAAM,aAAa,GAAG,kBAAkB,CAAA;IACxC,MAAM,WAAW,GAAG,WAAW,CAAA;IAE/B,MAAM,SAAS,GAAG,UAAU,CAAC,EAC5B,EAAE,GAAG,SAAS,OAAO,CAAC,CAAA;IAEvB,MAAM,aAAa,GAAG,UAAU,CAAC;QAC7B,iBAAiB,EAAE,IAAI,KAAK,MAAM;KACrC,EAAE,2BAA2B,CAAC,CAAA;IAE/B,MAAM,iBAAiB,GAAG,UAAU,CAAC,EACpC,EAAE,sDAAsD,CAAC,CAAA;IAE1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aAAa,CAAC,IAAI,CAAC,EACtC,UAAU,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EACtC,IAAI,EAAE,IAAI;gBAEV,4BAAI,SAAS,EAAE,WAAW,IACrB,oBAAoB,EAAE,CACtB,CACL;YACR,CAAC;gBACG,2BACI,WAAW,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EACtC,UAAU,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EACtC,IAAI,EAAE,IAAI;oBAEV,4BAAI,SAAS,EAAE,WAAW,IACrB,oBAAoB,EAAE,CACtB,CACL;QACZ,CAAC;YACG,SAAS,CAAC,CAAC;gBACP,4BACI,SAAS,EAAE,WAAW,EACtB,WAAW,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EACtC,UAAU,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,IAErC,oBAAoB,EAAE,CACtB;gBACT,CAAC;oBACG,4BACI,SAAS,EAAE,WAAW,EACtB,WAAW,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EACtC,UAAU,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,IAErC,oBAAoB,EAAE,CACtB,CAEX,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Button from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Button>;
5
+ export declare const _Button: ComponentStory<({ id, className, onClick, hoverText, variant, type, href, rounded, disabled, isLoading, openInNewTab, children }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,87 @@
1
+ import React from 'react';
2
+ import Button from './index';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { idAndClassName } from '@utils/controls';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Rupert Bennett/Atoms/Button',
7
+ component: Button,
8
+ parameters: {
9
+ docs: {
10
+ description: {
11
+ component: 'A Button which can either be internal, external or social as well as a standard design or a slide design.',
12
+ },
13
+ },
14
+ },
15
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { onClick: {
16
+ type: { name: 'function', required: false },
17
+ description: 'The action to perform when clicking on the component',
18
+ action: 'onClick',
19
+ table: {
20
+ type: {
21
+ summary: 'function'
22
+ },
23
+ defaultValue: { summary: 'undefined' }
24
+ }
25
+ }, hoverText: {
26
+ type: { name: 'string', required: false },
27
+ description: 'The text to display when hovering on the component',
28
+ table: {
29
+ type: { summary: 'string' }
30
+ }
31
+ }, variant: {
32
+ type: { name: 'string', required: false },
33
+ options: ['primary', 'secondary'],
34
+ description: 'The variant of button to render',
35
+ table: { type: { summary: 'primary' }, defaultValue: { summary: 'primary' } },
36
+ defaultValue: 'primary',
37
+ control: { type: 'radio' }
38
+ }, type: {
39
+ type: { name: 'string', required: false },
40
+ options: ['default', 'social', 'icon'],
41
+ description: 'The type of button to render',
42
+ table: { type: { summary: 'default' }, defaultValue: { summary: 'default' } },
43
+ defaultValue: 'default',
44
+ control: { type: 'radio' }
45
+ }, href: {
46
+ type: { name: 'string', required: false },
47
+ description: 'The link attached to the component',
48
+ table: {
49
+ type: { summary: 'default' }
50
+ }
51
+ }, rounded: {
52
+ type: { name: 'boolean', required: false },
53
+ description: 'rounds the borders when true',
54
+ defaultValue: 'true'
55
+ }, disabled: {
56
+ type: { name: 'boolean', required: false },
57
+ description: 'Can the carousel be dragged or not'
58
+ }, isLoading: {
59
+ type: { name: 'boolean', required: false },
60
+ description: 'Toggles the loading state of the compnent',
61
+ table: {
62
+ type: { summary: 'false' }
63
+ }
64
+ }, openInNewTab: {
65
+ type: { name: 'boolean', required: false },
66
+ description: 'Opens the link in a new tab when set to true',
67
+ defaultValue: 'false'
68
+ }, children: {
69
+ type: { name: 'other', value: 'string | React.ReactNode' },
70
+ description: 'The child elements to show in the component',
71
+ table: {
72
+ type: {
73
+ summary: 'Array'
74
+ },
75
+ defaultValue: { summary: 'undefined' }
76
+ }
77
+ } }),
78
+ args: {
79
+ children: 'This is a button',
80
+ rounded: true,
81
+ onClick: action('button clicked')
82
+ },
83
+ };
84
+ const Template = (args) => React.createElement(Button, Object.assign({}, args));
85
+ export const _Button = Template.bind({});
86
+ export default componentMeta;
87
+ //# sourceMappingURL=button.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Button/button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAiC;IAChD,KAAK,EAAE,+CAA+C;IACtD,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACR,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,SAAS,EAAE,2GAA2G;aACvH;SACF;KACF;IACH,QAAQ,kCACH,cAAc,KACjB,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,WAAW,EAAE,sDAAsD;YACnE,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,UAAU;iBACpB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,EACD,SAAS,EAAE;YACT,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5B;SACF,EACD,OAAO,EAAE;YACP,IAAI,EAAE,E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,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,2CAA2C;YACxD,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;aAC3B;SACF,EACD,YAAY,EAAE;YACZ,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,8CAA8C;YAC3D,YAAY,EAAE,OAAO;SACtB,EACD,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAClC;CACJ,CAAA;AAED,MAAM,QAAQ,GAAkC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAA;AAE9E,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ onClick?: React.MouseEventHandler;
6
+ hoverText?: string;
7
+ variant?: 'primary' | 'secondary';
8
+ type?: 'social' | 'icon' | 'default';
9
+ href?: string;
10
+ rounded?: boolean;
11
+ disabled?: boolean;
12
+ isLoading?: boolean;
13
+ openInNewTab?: boolean;
14
+ children?: any;
15
+ }
16
+ declare const Button: ({ id, className, onClick, hoverText, variant, type, href, rounded, disabled, isLoading, openInNewTab, children }: Props) => JSX.Element;
17
+ export default Button;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import Icon from '../Icon';
3
+ import classNames from 'classnames';
4
+ const Button = ({ id, className, onClick, hoverText, variant = 'primary', type = 'default', href, rounded = true, disabled = false, isLoading = false, openInNewTab = false, children }) => {
5
+ const padding = classNames({
6
+ 'px-1 py-1': type === 'social',
7
+ 'px-3': type === 'icon',
8
+ 'px-8': type !== 'social' && type !== 'icon'
9
+ }, 'py-2');
10
+ const loadingClasses = classNames({
11
+ 'invisible': !isLoading,
12
+ }, 'absolute left-2/4 top-1/4 -ml-2');
13
+ const classList = classNames({
14
+ 'bg-primary text-white border-white': variant === 'primary',
15
+ 'hover:bg-white hover:text-primary hover:border-primary': disabled === false && variant === 'primary',
16
+ 'bg-white text-primary border-primary': variant === 'secondary',
17
+ 'hover:bg-primary hover:text-white hover:border-primary': disabled === false && variant === 'secondary',
18
+ 'opacity-50': disabled === true,
19
+ 'rounded-lg': rounded,
20
+ 'rounded-none': !rounded
21
+ }, className, padding, 'border-2 transition-backgroundColor duration-500 transform');
22
+ const loadingIcon = React.createElement(Icon, { size: 1, type: 'spinner', animation: 'pulse', colour: 'white', bgColour: 'primary' });
23
+ return (React.createElement("a", Object.assign({}, (openInNewTab && { target: '_blank' }), { href: href }),
24
+ React.createElement("button", Object.assign({}, (id && { id: id }), { className: classList, "aria-busy": isLoading }, (onClick &&
25
+ { onClick: onClick }), (disabled &&
26
+ { disabled: disabled })),
27
+ React.createElement("div", { className: isLoading ? 'invisible' : '' }, children),
28
+ isLoading &&
29
+ React.createElement("div", { className: loadingClasses }, loadingIcon))));
30
+ };
31
+ export default Button;
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,UAAU,MAAM,YAAY,C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I;QAEV,gDACQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,SAAS,EAAE,SAAS,eACT,SAAS,IAChB,CAAC,OAAO;YACR,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EACrB,CAAC,QAAQ;YACT,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;YAE3B,6BAAK,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IACvC,QAAQ,CACP;YACL,SAAS;gBACN,6BAAK,SAAS,EAAE,cAAc,IACzB,WAAW,CACV,CAEL,CACT,CACP,CAAA;AACL,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ComponentStory } from '@storybook/react';
3
+ export declare const _ImageCard: ComponentStory<React.FC<import("./index").Props>>;
4
+ export declare const _VideoCard: ComponentStory<React.FC<import("./index").Props>>;
5
+ export declare const _ProductCard: ComponentStory<React.FC<import("./index").Props>>;
@@ -0,0 +1,124 @@
1
+ import React from 'react';
2
+ import Card from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ import Icon from '../Icon';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Rupert Bennett/Organisms/Card',
7
+ component: Card,
8
+ parameters: {},
9
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
10
+ description: '',
11
+ table: {
12
+ category: 'Card',
13
+ },
14
+ }, image: {
15
+ description: '',
16
+ table: {
17
+ category: 'Card',
18
+ },
19
+ }, subTitle: {
20
+ description: '',
21
+ table: {
22
+ category: 'Card',
23
+ },
24
+ }, description: {
25
+ description: '',
26
+ table: {
27
+ category: 'Card',
28
+ },
29
+ }, extraText: {
30
+ description: '',
31
+ table: {
32
+ category: 'Card',
33
+ },
34
+ }, imageBelowTitle: {
35
+ description: '',
36
+ table: {
37
+ category: 'Card',
38
+ },
39
+ }, bordered: {
40
+ description: '',
41
+ table: {
42
+ category: 'Card',
43
+ },
44
+ }, rounded: {
45
+ description: '',
46
+ table: {
47
+ category: 'Card',
48
+ },
49
+ }, hasCta: {
50
+ description: '',
51
+ table: {
52
+ category: 'Card',
53
+ },
54
+ }, titleLeft: {
55
+ description: '',
56
+ table: {
57
+ category: 'Card',
58
+ },
59
+ }, titleRight: {
60
+ description: '',
61
+ table: {
62
+ category: 'Card',
63
+ },
64
+ }, titleBold: {
65
+ description: '',
66
+ table: {
67
+ category: 'Card',
68
+ },
69
+ } }),
70
+ args: {
71
+ subTitle: 'This is a subtitle',
72
+ description: 'This is a description paragraph',
73
+ extraText: 'This is another paragraph',
74
+ rounded: true,
75
+ bordered: true,
76
+ hasCta: true,
77
+ iconButtonProps: {
78
+ type: 'icon',
79
+ href: '/',
80
+ className: 'mt-8',
81
+ children: React.createElement(Icon, { type: 'heart', hollow: false })
82
+ },
83
+ cardButtonProps: {
84
+ children: React.createElement("div", { className: 'flex' },
85
+ React.createElement(Icon, { type: 'heart' }),
86
+ "buttonText",
87
+ React.createElement(Icon, { type: 'heart' })),
88
+ disabled: false,
89
+ hoverText: 'buttonHoverText',
90
+ href: 'buttonUrl',
91
+ rounded: true,
92
+ },
93
+ button2Props: {
94
+ className: 'ml-2 w-full mt-8',
95
+ children: 'Add to basket',
96
+ rounded: false,
97
+ disabled: false
98
+ }
99
+ }
100
+ };
101
+ const Template = (args) => React.createElement(Card, Object.assign({}, args));
102
+ export const _ImageCard = Template.bind({});
103
+ _ImageCard.args = {
104
+ title: 'This is a title',
105
+ image: 'https://picsum.photos/500/300',
106
+ };
107
+ export const _VideoCard = Template.bind({});
108
+ _VideoCard.args = {
109
+ title: 'This is a title',
110
+ videoProps: {
111
+ mp4File: '/',
112
+ withControls: true,
113
+ autoPlay: true,
114
+ }
115
+ };
116
+ export const _ProductCard = Template.bind({});
117
+ _ProductCard.args = {
118
+ image: 'https://picsum.photos/500/300',
119
+ subTitle: 'Product name',
120
+ description: 'Product description',
121
+ extraText: '£123.45',
122
+ onHover: true
123
+ };
124
+ //# sourceMappingURL=Card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,IAAI,MAAM,SAAS,CAAA;AAG1B,MAAM,aAAa,GAA+B;IAC9C,KAAK,EAAE,iDAAiD;IACxD,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,EAAE;IACd,QAAQ,kCACD,cAAc,KACjB,KAAK,EAAE;YACH,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,KAAK,EAAE;YACH,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,QAAQ,EAAE;YACN,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,WAAW,EAAE;YACT,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,SAAS,EAAE;YACP,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,eAAe,EAAE;YACb,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,QAAQ,EAAE;YACN,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,OAAO,EAAE;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,EACD,MAAM,EAAE;YACJ,WAAW,EAAE,EAAE;YACf,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,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,+BAA+B;CACzC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACd,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACR,OAAO,EAAE,GAAG;QACZ,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9C,YAAY,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,+BAA+B;IACtC,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,qBAAqB;IAClC,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,IAAI;CAChB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { Props as buttonProps } from '../Button';
3
+ import { Props as videoProps } from '../Video';
4
+ export interface Props {
5
+ id?: string;
6
+ className?: string;
7
+ title?: string;
8
+ image?: string;
9
+ subTitle?: string;
10
+ description?: string;
11
+ extraText?: string;
12
+ hasCta?: boolean;
13
+ imageBelowTitle?: boolean;
14
+ titleLeft?: string;
15
+ titleRight?: string;
16
+ titleBold?: string;
17
+ imageClass?: string;
18
+ subTitleClass?: string;
19
+ extraTextClass?: string;
20
+ descriptionClass?: string;
21
+ altText?: string;
22
+ rounded?: boolean;
23
+ bordered?: boolean;
24
+ videoProps?: videoProps;
25
+ onHover?: boolean;
26
+ iconButtonProps?: buttonProps;
27
+ cardButtonProps?: buttonProps;
28
+ button2Props?: buttonProps;
29
+ }
30
+ declare const Card: React.FC<Props>;
31
+ export default Card;
@@ -0,0 +1,63 @@
1
+ import React, { useState } from 'react';
2
+ import classNames from 'classnames';
3
+ import Button from '../Button';
4
+ import Video from '../Video';
5
+ const Card = ({ id, className, title, image, subTitle, description, extraText, hasCta, imageBelowTitle, titleLeft, titleRight, titleBold, imageClass, subTitleClass, extraTextClass, descriptionClass, altText, rounded, bordered, videoProps, onHover, iconButtonProps, cardButtonProps, button2Props }) => {
6
+ const [showHoverButtons, setShowHoverButtons] = useState(false);
7
+ let orderClass = imageBelowTitle ? ' order-first ' : '';
8
+ let btnClass = 'w-full p-3 ';
9
+ let border = bordered ? 'border border-grey border-opacity-100 ' : '';
10
+ let cardTitleFont = titleBold ? 'font-bold' : '';
11
+ let cardTitlePosition = titleLeft ? 'text-left ' : titleRight ? 'text-right ' : 'text-center ';
12
+ let roundedImage = rounded ? 'rounded-t-2xl ' : '';
13
+ let roundedCard = rounded ? 'rounded-2xl ' : '';
14
+ let contentWrapperClass = 'px-3 order-3';
15
+ const titleWrapperClass = classNames({}, `${orderClass} pt-3`);
16
+ const cardTitleClasses = classNames({
17
+ [cardTitlePosition]: true
18
+ }, `${cardTitleFont} font-medium text-md text-grey`);
19
+ const cardSubTitleClassList = classNames({}, `${subTitleClass} font-light text-sm text-grey`);
20
+ const cardDescriptionClassList = classNames({}, `${descriptionClass} font-extraLight text-xs text-light-grey`);
21
+ const classList = classNames({}, `${className} ${border} ${roundedCard} flex flex-col`);
22
+ const imageClassList = classNames({}, `${roundedImage} ${imageClass} w-full object-cover h-full`);
23
+ const cardExtraTextClassList = classNames({
24
+ 'pb-4': !hasCta,
25
+ }, `${extraTextClass} w-full object-cover h-full font-extraLight text-xs text-light-grey`);
26
+ const imageWrapperClassList = classNames({
27
+ 'order-2': imageBelowTitle,
28
+ [`${roundedImage} order-1`]: !imageBelowTitle
29
+ }, 'h-64 overflow-hidden object-cover');
30
+ const toggleHover = (isHovering) => {
31
+ onHover && setShowHoverButtons(isHovering ? true : false);
32
+ };
33
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList, onMouseEnter: () => toggleHover(true), onMouseLeave: () => toggleHover(false) }),
34
+ React.createElement("div", { className: 'card-content flex flex-1 flex-col' },
35
+ (videoProps === null || videoProps === void 0 ? void 0 : videoProps.mp4File) || (videoProps === null || videoProps === void 0 ? void 0 : videoProps.webmFile) || (videoProps === null || videoProps === void 0 ? void 0 : videoProps.ogvFile) ?
36
+ React.createElement("div", { className: imageWrapperClassList },
37
+ React.createElement(Video, Object.assign({}, videoProps)))
38
+ :
39
+ image &&
40
+ React.createElement("div", { className: imageWrapperClassList },
41
+ React.createElement("img", { className: imageClassList, src: image, alt: altText })),
42
+ !showHoverButtons ?
43
+ React.createElement(React.Fragment, null,
44
+ React.createElement("div", { className: imageBelowTitle ? 'order-1' : 'order-3' }, title &&
45
+ React.createElement("div", { className: titleWrapperClass },
46
+ React.createElement("h3", { className: cardTitleClasses }, title))),
47
+ React.createElement("div", { className: contentWrapperClass },
48
+ subTitle &&
49
+ React.createElement("h4", { className: cardSubTitleClassList }, subTitle),
50
+ description &&
51
+ React.createElement("p", { className: cardDescriptionClassList }, description),
52
+ extraText &&
53
+ React.createElement("p", { className: cardExtraTextClassList }, extraText)))
54
+ :
55
+ React.createElement("div", { className: 'flex p-2 order-last h-24' },
56
+ React.createElement(Button, Object.assign({}, iconButtonProps), iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children),
57
+ React.createElement(Button, Object.assign({}, button2Props), button2Props === null || button2Props === void 0 ? void 0 : button2Props.children))),
58
+ cardButtonProps &&
59
+ React.createElement("div", { className: btnClass },
60
+ React.createElement(Button, Object.assign({}, cardButtonProps), cardButtonProps.children))));
61
+ };
62
+ export default Card;
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAAgC,MA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import CardWithTopImage from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof CardWithTopImage>;
5
+ export declare const _CardWithTopImage: ComponentStory<({ id, className, children, imageProps }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import CardWithTopImage from './index';
3
+ import logo from '../../assets/images/primary-logo.png';
4
+ import { idAndClassName } from '@utils/controls';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Rupert Bennett/Organisms/Card With Top Image',
7
+ component: CardWithTopImage,
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { children: {
9
+ type: { name: 'other', value: 'string | React.ReactNode' },
10
+ description: 'The child elements to show in the component',
11
+ table: {
12
+ type: {
13
+ summary: 'Array'
14
+ },
15
+ defaultValue: { summary: 'undefined' }
16
+ }
17
+ }, imageProps: {
18
+ type: { name: 'other', value: 'object' },
19
+ description: 'The props to pass to the image on the component',
20
+ table: {
21
+ type: {
22
+ summary: 'object'
23
+ },
24
+ defaultValue: { summary: 'undefined' }
25
+ }
26
+ } }),
27
+ args: {
28
+ imageProps: {
29
+ image: logo,
30
+ roundedFull: true,
31
+ width: 4,
32
+ height: 4
33
+ },
34
+ children: [React.createElement("p", null, "This is a child"), React.createElement("p", null, "This is another child")]
35
+ }
36
+ };
37
+ const Template = (args) => React.createElement(CardWithTopImage, Object.assign({}, args));
38
+ export const _CardWithTopImage = Template.bind({});
39
+ export default componentMeta;
40
+ //# sourceMappingURL=CardWithTopImage.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardWithTopImage.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/CardWithTopImage/CardWithTopImage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,gBAAgB,MAAM,SAAS,CAAA;AACtC,OAAO,IAAI,MAAM,sCAAsC,CAAA;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,aAAa,GAA2C;IAC1D,KAAK,EAAE,gEAAgE;IACvE,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,kCACD,cAAc,KACjB,QAAQ,EAAE;YACN,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACJ,EACD,UAAU,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,iDAAiD;YAC9D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACJ,GACJ;IACD,IAAI,EAAE;QACF,UAAU,EAAE;YACR,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACZ;QACD,QAAQ,EAAE,CAAC,iDAAsB,EAAC,uDAA4B,CAAC;KAClE;CACJ,CAAA;AAED,MAAM,QAAQ,GAA4C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAA;AAElG,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEnD,eAAe,aAAa,CAAA"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Props as imageProps } from '../Image';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ children?: any;
7
+ imageProps?: imageProps;
8
+ }
9
+ declare const CardWithTopImage: ({ id, className, children, imageProps }: Props) => JSX.Element;
10
+ export default CardWithTopImage;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import Image from '../Image';
3
+ import classNames from 'classnames';
4
+ const CardWithTopImage = ({ id, className, children, imageProps }) => {
5
+ const wrapperClassList = classNames('rounded-full mx-auto max-w-max bg-white p-4');
6
+ const contentClassList = 'pt-12 px-4 h-auto pb-16 -mt-12 bg-white';
7
+ return (React.createElement("div", { style: {
8
+ 'filter': 'drop-shadow(0 4px 8px rgb(154, 154, 154))'
9
+ }, id: id, className: className },
10
+ React.createElement("div", { className: wrapperClassList },
11
+ React.createElement(Image, Object.assign({}, imageProps))),
12
+ React.createElement("div", { className: contentClassList }, children)));
13
+ };
14
+ export default CardWithTopImage;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/CardWithTopImage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAA8B,MAAM,UAAU,CAAA;AACrD,OAAO,UAAU,MAAM,YAAY,CAAA;AASnC,MAAM,gBAAgB,GAAG,CAAC,EACtB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,UAAU,EACN,EAAE,EAAE;IACR,MAAM,gBAAgB,GAAG,UAAU,CAAC,6CAA6C,CAAC,CAAA;IAElF,MAAM,gBAAgB,GAAG,yCAAyC,CAAA;IAElE,OAAO,CACH,6BACI,KAAK,EAAE;YACH,QAAQ,EAAE,2CAA2C;SACxD,EACD,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS;QAEpB,6BAAK,SAAS,EAAE,gBAAgB;YAC5B,oBAAC,KAAK,oBAAK,UAAU,EAAI,CACvB;QACN,6BAAK,SAAS,EAAE,gBAAgB,IAC3B,QAAQ,CACP,CACJ,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import Carousel from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Carousel>;
5
+ export declare const _Carousel: ComponentStory<React.FC<import("./index").Props>>;
6
+ export default componentMeta;