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,33 @@
1
+ import React from 'react';
2
+ import Greeting from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Rupert Bennett/Atoms/Greeting',
6
+ component: Greeting,
7
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { morningMessage: {
8
+ type: { name: 'string', required: false },
9
+ description: 'Defines the morning message for the greeting component',
10
+ table: {
11
+ type: { summary: 'string' }
12
+ }
13
+ }, afternoonMessage: {
14
+ type: { name: 'string', required: false },
15
+ description: 'Defines the afternoon message for the greeting component',
16
+ table: {
17
+ type: { summary: 'string' }
18
+ }
19
+ }, eveningMessage: {
20
+ type: { name: 'string', required: false },
21
+ description: 'Defines the evening message for the greeting component',
22
+ table: {
23
+ type: { summary: 'string' }
24
+ }
25
+ } }),
26
+ args: {
27
+ morningMessage: 'What a beautiful morning it is today'
28
+ }
29
+ };
30
+ const Template = (args) => React.createElement(Greeting, Object.assign({}, args));
31
+ export const _Greeting = Template.bind({});
32
+ export default componentMeta;
33
+ //# sourceMappingURL=Greeting.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Greeting.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Greeting/Greeting.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,aAAa,GAAmC;IAClD,KAAK,EAAE,iDAAiD;IACxD,SAAS,EAAE,QAAQ;IACnB,QAAQ,kCACD,cAAc,KACjB,cAAc,EAAE;YACZ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,wDAAwD;YACrE,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC9B;SACJ,EACD,gBAAgB,EAAE;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,0DAA0D;YACvE,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC9B;SACJ,EACD,cAAc,EAAE;YACZ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,wDAAwD;YACrE,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC9B;SACJ,GACJ;IACD,IAAI,EAAE;QACF,cAAc,EAAE,sCAAsC;KACzD;CACJ,CAAA;AAED,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAA;AAElF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ morningMessage?: string;
6
+ afternoonMessage?: string;
7
+ eveningMessage?: string;
8
+ }
9
+ declare const Greeting: ({ id, className, morningMessage, afternoonMessage, eveningMessage }: Props) => JSX.Element;
10
+ export default Greeting;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const Greeting = ({ id, className, morningMessage = 'Good morning', afternoonMessage = 'Good afternoon', eveningMessage = 'Good evening' }) => {
4
+ const today = new Date();
5
+ const hours = ('0' + (today.getHours())).slice(-2);
6
+ const minutes = ('0' + (today.getMinutes())).slice(-2);
7
+ const seconds = ('0' + (today.getSeconds())).slice(-2);
8
+ const time = parseInt(`${hours}${minutes}${seconds}`);
9
+ let message;
10
+ if (time < 120000) {
11
+ message = morningMessage;
12
+ }
13
+ else if (time > 115959 && time < 170000) {
14
+ message = afternoonMessage;
15
+ }
16
+ else if (time > 165959) {
17
+ message = eveningMessage;
18
+ }
19
+ const classList = classNames(className);
20
+ return (React.createElement("p", Object.assign({}, (id && { id: id }), { className: classList }), message));
21
+ };
22
+ export default Greeting;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Greeting/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AAUnC,MAAM,QAAQ,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,cAAc,GAAG,cAAc,EAC/B,gBAAgB,GAAG,gBAAgB,EACnC,cAAc,GAAG,cAAc,EAC3B,EAAE,EAAE;IACR,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAA;IACxB,MAAM,KAAK,GAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IACnD,MAAM,OAAO,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IACtD,MAAM,OAAO,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IACtD,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,EAAE,CAAC,CAAA;IAErD,IAAI,OAAO,CAAA;IACX,IAAG,IAAI,GAAG,MAAM,EAAG;QACf,OAAO,GAAG,cAAc,CAAA;KAC3B;SAAM,IAAG,IAAI,GAAG,MAAM,IAAI,IAAI,GAAG,MAAM,EAAE;QACtC,OAAO,GAAG,gBAAgB,CAAA;KAC7B;SAAM,IAAG,IAAI,GAAG,MAAM,EAAE;QACrB,OAAO,GAAG,cAAc,CAAA;KAC3B;IAED,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;IAEvC,OAAO,CACH,2CACQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,SAAS,EAAE,SAAS,KACnB,OAAO,CACR,CACP,CAAA;AACL,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Icon from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Icon>;
5
+ export declare const _Icon: ComponentStory<({ id, className, type, size, animation, reverseSpin, hollow, colour, bgColour, rounded, brand }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,85 @@
1
+ import React from 'react';
2
+ import Icon from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Rupert Bennett/Atoms/Icon',
6
+ component: Icon,
7
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { type: {
8
+ options: ['heart', 'arrow-up', 'arrow-down', 'multiply', 'burger', 'bars'],
9
+ type: { name: 'string', required: false },
10
+ description: 'The name of the icon to display in the component',
11
+ table: {
12
+ type: { summary: 'string' }
13
+ },
14
+ control: 'select'
15
+ }, size: {
16
+ type: { name: 'number', required: false },
17
+ description: 'The size of the icon to show in the component',
18
+ table: {
19
+ type: { summary: 'number' }
20
+ }
21
+ }, animation: {
22
+ type: { name: 'string', required: false },
23
+ options: ['none', 'pulse', 'spin', 'beat'],
24
+ description: 'Type of annimation to apply to the component',
25
+ table: {
26
+ type: { summary: 'string' }
27
+ },
28
+ control: 'select'
29
+ }, reverseSpin: {
30
+ type: { name: 'boolean', required: false },
31
+ description: 'To reverse the animation on the component',
32
+ table: {
33
+ type: { summary: 'boolean' }
34
+ },
35
+ defaultValue: 'false'
36
+ }, hollow: {
37
+ type: { name: 'boolean', required: false },
38
+ description: 'To render a hollow version of the icon in component',
39
+ table: {
40
+ type: { summary: 'boolean' }
41
+ },
42
+ defaultValue: 'false'
43
+ }, colour: {
44
+ type: { name: 'string', required: false },
45
+ options: ['primary', 'secondary', 'white', 'black', 'gold'],
46
+ description: 'The font colour of the component',
47
+ table: {
48
+ type: { summary: 'string' }
49
+ },
50
+ defaultValue: 'primary',
51
+ control: 'select'
52
+ }, bgColour: {
53
+ type: { name: 'string', required: false },
54
+ options: ['primary', 'secondary', 'white', 'black', 'gold'],
55
+ description: 'The background colour of the component',
56
+ table: {
57
+ type: { summary: 'string' }
58
+ },
59
+ defaultValue: 'secondary',
60
+ control: 'select'
61
+ }, rounded: {
62
+ type: { name: 'boolean', required: false },
63
+ description: 'Sets the component to a circle shape',
64
+ table: {
65
+ type: { summary: 'boolean' }
66
+ },
67
+ defaultValue: 'false'
68
+ }, brand: {
69
+ type: { name: 'boolean', required: false },
70
+ description: 'Set to true if the icon type to render is a brand image',
71
+ table: {
72
+ type: { summary: 'boolean' }
73
+ },
74
+ defaultValue: 'false'
75
+ } }),
76
+ args: {
77
+ type: 'heart',
78
+ size: 3,
79
+ animation: 'none'
80
+ }
81
+ };
82
+ const Template = (args) => React.createElement(Icon, Object.assign({}, args));
83
+ export const _Icon = Template.bind({});
84
+ export default componentMeta;
85
+ //# sourceMappingURL=Icon.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Icon/Icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAA+B;IAC9C,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,IAAI;IACf,QAAQ,kCACD,cAAc,KACjB,IAAI,EAAE;YACF,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC;YAC1E,IAAI,EAAE,EAAE,IAAI,EAAE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,CAAC,EAAE,CAAC,CAAA;AAEtC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { Colours } from '@utils/controls';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ type: string;
7
+ size?: number;
8
+ animation?: 'pulse' | 'none';
9
+ reverseSpin?: boolean;
10
+ hollow?: boolean;
11
+ colour?: Colours;
12
+ bgColour?: Colours;
13
+ rounded?: boolean;
14
+ brand?: boolean;
15
+ }
16
+ declare const Icon: ({ id, className, type, size, animation, reverseSpin, hollow, colour, bgColour, rounded, brand }: Props) => JSX.Element;
17
+ export default Icon;
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const Icon = ({ id, className, type, size = 1, animation = 'none', reverseSpin = false, hollow = false, colour = 'primary', bgColour = 'secondary', rounded = false, brand = false }) => {
4
+ const fontColour = {
5
+ primary: 'text-primary',
6
+ secondary: 'text-secondary',
7
+ white: 'text-white',
8
+ black: 'text-black',
9
+ gold: 'text-gold'
10
+ };
11
+ const backgroundColour = {
12
+ primary: 'bg-primary',
13
+ secondary: 'bg-secondary',
14
+ white: 'bg-white',
15
+ black: 'bg-black',
16
+ gold: 'bg-gold'
17
+ };
18
+ const wrapperClassList = classNames({
19
+ 'w-6 h-6': size === 1,
20
+ 'w-10 h-10': size === 2,
21
+ 'w-14 h-14': size === 3,
22
+ 'w-20 h-20': size === 4,
23
+ 'w-24 h-24': size === 5,
24
+ 'w-28 h-28': size === 6,
25
+ 'w-32 h-32': size === 7,
26
+ 'w-36 h-36': size === 8,
27
+ 'w-40 h-40': size === 9,
28
+ 'w-44 h-44': size === 10,
29
+ 'rounded-full': rounded
30
+ }, className, backgroundColour[bgColour], fontColour[colour], 'flex');
31
+ const classList = classNames({
32
+ 'fa-brands': brand,
33
+ [`fa-${size}x`]: size,
34
+ [`fa-${animation}`]: animation,
35
+ 'fa-spin-reverse': reverseSpin,
36
+ 'fa-regular': hollow
37
+ }, `fa fa-${type} mx-auto my-auto`);
38
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: wrapperClassList }),
39
+ React.createElement("span", { className: classList, role: 'img', "aria-hidden": 'true', "aria-label": type })));
40
+ };
41
+ export default Icon;
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AAiBnC,MAAM,IAAI,GAAG,CAAC,EACV,EAAE,EACF,SAAS,EACT,IAAI,EACJ,IAAI,GAAG,CAAC,EACR,SAAS,GAAG,MAAM,EAClB,WAAW,GAAG,KAAK,EACnB,MAAM,GAAG,KAAK,EACd,MAAM,GAAG,SAAS,EAClB,QAAQ,GAAG,WAAW,EACtB,OAAO,GAAG,KAAK,EACf,KAAK,GAAG,KAAK,EACT,EAAE,EAAE;IACR,MAAM,UAAU,GAAgC;QAC5C,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,gBAAgB;QAC3B,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,WAAW;KACpB,CAAA;IAED,MAAM,gBAAgB,GAAgC;QAClD,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,cAAc;QACzB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,SAAS;KAClB,CAAA;IAED,MAAM,gBAAgB,GAAG,UAAU,CAAC;QAChC,SAAS,EAAE,IAAI,KAAK,CAAC;QACrB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,CAAC;QACvB,WAAW,EAAE,IAAI,KAAK,EAAE;QACxB,cAAc,EAAE,OAAO;KAC1B,EAAE,SAAS,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAA;IAErE,MAAM,SAAS,GAAG,UAAU,CAAC;QACzB,WAAW,EAAE,KAAK;QAClB,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI;QACrB,CAAC,MAAM,SAAS,EAAE,CAAC,EAAE,SAAS;QAC9B,iBAAiB,EAAE,WAAW;QAC9B,YAAY,EAAE,MAAM;KACvB,EAAE,SAAS,IAAI,kBAAkB,CAAC,CAAA;IAEnC,OAAO,CACH,6CACQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,SAAS,EAAE,gBAAgB;QAE3B,8BACI,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,KAAK,iBACE,MAAM,gBACN,IAAI,GACZ,CACN,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Image from '.';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Image>;
5
+ export declare const _Image: ComponentStory<({ id, className, image, altText, title, rounded, roundedFull, height, width, overlayText, centerAligned }: import(".").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,73 @@
1
+ import React from 'react';
2
+ import Image from '.';
3
+ import { idAndClassName } from '@utils/controls';
4
+ import logo from '../../assets/images/primary-logo.png';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Rupert Bennett/Atoms/Image',
7
+ component: Image,
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { image: {
9
+ type: { name: 'string', required: false },
10
+ description: 'The image to display on the component',
11
+ table: {
12
+ type: { summary: 'default' }
13
+ }
14
+ }, altText: {
15
+ type: { name: 'string', required: false },
16
+ description: 'The accessibility alt text for the image on the component',
17
+ table: {
18
+ type: { summary: 'default' }
19
+ }
20
+ }, title: {
21
+ type: { name: 'string', required: false },
22
+ description: 'The accessibility title for the image on the component',
23
+ table: {
24
+ type: { summary: 'default' }
25
+ }
26
+ }, rounded: {
27
+ type: { name: 'boolean', required: false },
28
+ description: 'Sets the corners of the component to rounded',
29
+ table: {
30
+ type: { summary: 'boolean' }
31
+ }
32
+ }, roundedFull: {
33
+ type: { name: 'boolean', required: false },
34
+ description: 'Sets the component to a circle shape',
35
+ table: {
36
+ type: { summary: 'boolean' }
37
+ }
38
+ }, height: {
39
+ type: { name: 'number', required: false },
40
+ description: 'Defines the height of the component',
41
+ table: {
42
+ type: { summary: 'number' }
43
+ }
44
+ }, width: {
45
+ type: { name: 'number', required: false },
46
+ description: 'Defines the width of the component',
47
+ table: {
48
+ type: { summary: 'number' }
49
+ }
50
+ }, overlayText: {
51
+ type: { name: 'string', required: false },
52
+ description: 'The text to show when hovering over the component',
53
+ table: {
54
+ type: { summary: 'default' }
55
+ }
56
+ }, centerAligned: {
57
+ type: { name: 'boolean', required: false },
58
+ description: 'Sets the component to the center',
59
+ table: {
60
+ type: { summary: 'boolean' }
61
+ }
62
+ } }),
63
+ args: {
64
+ image: logo,
65
+ height: 8,
66
+ width: 8,
67
+ overlayText: 'logo'
68
+ }
69
+ };
70
+ const Template = (args) => React.createElement(Image, Object.assign({}, args));
71
+ export const _Image = Template.bind({});
72
+ export default componentMeta;
73
+ //# sourceMappingURL=Image.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Image/Image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,GAAG,CAAA;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAi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WAAW,EAAE,qCAAqC;YAClD,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC9B;SACJ,EACD,KAAK,EAAE;YACH,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,oCAAoC;YACjD,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC9B;SACJ,EACD,WAAW,EAAE;YACT,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aAC/B;SACJ,EACD,aAAa,EAAE;YACX,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,kCAAkC;YAC/C,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aAC/B;SACJ,GACJ;IACD,IAAI,EAAE;QACF,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,MAAM;KACtB;CACJ,CAAA;AAED,MAAM,QAAQ,GAAiC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,KAAK,oBAAK,IAAI,EAAI,CAAA;AAE5E,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEvC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ image?: string;
6
+ altText?: string;
7
+ title?: string;
8
+ rounded?: boolean;
9
+ roundedFull?: boolean;
10
+ height?: number;
11
+ width?: number;
12
+ overlayText?: string;
13
+ centerAligned?: boolean;
14
+ }
15
+ declare const Image: ({ id, className, image, altText, title, rounded, roundedFull, height, width, overlayText, centerAligned }: Props) => JSX.Element;
16
+ export default Image;
@@ -0,0 +1,54 @@
1
+ import React, { useState } from 'react';
2
+ import classNames from 'classnames';
3
+ const Image = ({ id, className, image, altText, title, rounded = false, roundedFull = false, height = 8, width = 8, overlayText, centerAligned = false }) => {
4
+ const [isHovering, setIsHovering] = useState(false);
5
+ const opacity = classNames({
6
+ 'opacity-80': isHovering,
7
+ 'opacity-0': !isHovering
8
+ });
9
+ const widthClassList = classNames({
10
+ 'w-6': width === 1,
11
+ 'w-10': width === 2,
12
+ 'w-14': width === 3,
13
+ 'w-16': width === 4,
14
+ 'w-20': width === 5,
15
+ 'w-24': width === 6,
16
+ 'w-28': width === 7,
17
+ 'w-32': width === 8,
18
+ 'w-36': width === 9,
19
+ 'w-40': width === 10,
20
+ 'w-44': width === 11,
21
+ 'w-full': (width === undefined) || (![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(width))
22
+ });
23
+ const heightClassList = classNames({
24
+ 'h-6': height === 1,
25
+ 'h-10': height === 2,
26
+ 'h-14': height === 3,
27
+ 'h-16': height === 4,
28
+ 'h-20': height === 5,
29
+ 'h-24': height === 6,
30
+ 'h-28': height === 7,
31
+ 'h-32': height === 8,
32
+ 'h-36': height === 9,
33
+ 'h-40': height === 10,
34
+ 'h-44': height === 11,
35
+ 'h-full': (height === undefined) || (![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(height)),
36
+ });
37
+ const imageClassList = classNames({
38
+ 'rounded-2xl': rounded,
39
+ 'rounded-full': roundedFull,
40
+ 'mx-auto': centerAligned
41
+ }, className, widthClassList, heightClassList);
42
+ const overlayClassList = classNames(widthClassList, heightClassList, opacity, 'absolute z-10 transition-opacity duration-700 bg-white');
43
+ const overlayTextWrapperClassList = classNames(widthClassList, heightClassList, opacity, 'flex absolute z-20 transition-opacity duration-700');
44
+ const overlayTextClassList = 'm-auto text-center text-primary';
45
+ return (React.createElement(React.Fragment, null,
46
+ overlayText &&
47
+ React.createElement(React.Fragment, null,
48
+ React.createElement("div", { className: overlayClassList }),
49
+ React.createElement("div", { className: overlayTextWrapperClassList, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false) },
50
+ React.createElement("p", { className: overlayTextClassList }, overlayText))),
51
+ React.createElement("img", Object.assign({ id: id, className: imageClassList, src: image }, (altText && { alt: altText }), (title && { title: title })))));
52
+ };
53
+ export default Image;
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Image/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AAgBnC,MAAM,KAAK,GAAG,CAAC,EACX,EAAE,EACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,OAAO,GAAG,KAAK,EACf,WAAW,GAAG,KAAK,EACnB,MAAM,GAAG,CAAC,EACV,KAAK,GAAG,CAAC,EACT,WAAW,EACX,aAAa,GAAG,KAAK,EACjB,EAAE,EAAE;IACR,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACnD,MAAM,OAAO,GAAG,UAAU,CAAC;QACvB,YAAY,EAAE,UAAU;QACxB,WAAW,EAAE,CAAC,UAAU;KAC3B,CAAC,CAAA;IAEF,MAAM,cAAc,GAAG,UAAU,CAAC;QAC9B,KAAK,EAAE,KAAK,KAAK,CAAC;QAClB,MAAM,EAAE,KAAK,KAAK,CAAC;QACnB,MAAM,EAAE,KAAK,KAAK,CAAC;QACnB,MAAM,EAAE,KAAK,KAAK,CAAC;QACnB,MAAM,EAAE,KAAK,KAAK,CAAC;QACnB,MAAM,EAAE,KAAK,KAAK,CAAC;QACnB,MAAM,EAAE,KAAK,KAAK,CAAC;Q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AE,cAAc,EAAE,eAAe,CAAC,CAAA;IAE9C,MAAM,gBAAgB,GAAG,UAAU,CAC/B,cAAc,EACd,eAAe,EACf,OAAO,EACP,wDAAwD,CAC3D,CAAA;IAED,MAAM,2BAA2B,GAAG,UAAU,CAC1C,cAAc,EACd,eAAe,EACf,OAAO,EACP,oDAAoD,CACvD,CAAA;IAED,MAAM,oBAAoB,GAAG,iCAAiC,CAAA;IAE9D,OAAO,CACH;QACK,WAAW;YACR;gBACI,6BAAK,SAAS,EAAE,gBAAgB,GAAI;gBACpC,6BACI,SAAS,EAAE,2BAA2B,EACtC,YAAY,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EACvC,YAAY,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC;oBAExC,2BAAG,SAAS,EAAE,oBAAoB,IAAG,WAAW,CAAK,CACnD,CACP;QAEP,2CACI,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,cAAc,EACzB,GAAG,EAAE,KAAK,IACN,CAAC,OAAO,IAAI,EAAC,GAAG,EAAE,OAAO,EAAC,CAAC,EAC3B,CAAC,KAAK,IAAI,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,EAC/B,CACH,CACN,CAAA;AACL,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ComponentStory } from '@storybook/react';
3
+ export declare const _ImageLink: ComponentStory<({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }: import("./index").Props) => JSX.Element>;
4
+ export declare const _ImageLinkWithTitle: ComponentStory<({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }: import("./index").Props) => JSX.Element>;
5
+ export declare const _ImageLinkWithButton: ComponentStory<({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }: import("./index").Props) => JSX.Element>;
6
+ export declare const _ImageLinkRounded: ComponentStory<({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }: import("./index").Props) => JSX.Element>;
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { idAndClassName } from '@utils/controls';
3
+ import Column from '../Column';
4
+ import ImageLink from './index';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Other/Organisms/Image Link',
7
+ component: ImageLink,
8
+ parameters: {},
9
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
10
+ description: '',
11
+ control: 'text',
12
+ table: {
13
+ category: '',
14
+ },
15
+ }, image: {
16
+ description: '',
17
+ control: 'text',
18
+ table: {
19
+ category: '',
20
+ },
21
+ } }),
22
+ args: {
23
+ image: 'https://picsum.photos/400/400',
24
+ link: '/'
25
+ },
26
+ };
27
+ const Template = (args) => React.createElement(Column, { sm: 3, md: 3 },
28
+ React.createElement(ImageLink, Object.assign({}, args)));
29
+ export const _ImageLink = Template.bind({});
30
+ _ImageLink.args = {};
31
+ export const _ImageLinkWithTitle = Template.bind({});
32
+ _ImageLinkWithTitle.args = {
33
+ title: 'Title'
34
+ };
35
+ export const _ImageLinkWithButton = Template.bind({});
36
+ _ImageLinkWithButton.args = {
37
+ buttonProps: {
38
+ children: 'Button 1'
39
+ }
40
+ };
41
+ export const _ImageLinkRounded = Template.bind({});
42
+ _ImageLinkRounded.args = {
43
+ title: 'Title',
44
+ buttonProps: {
45
+ children: 'Button 1'
46
+ },
47
+ rounded: true,
48
+ };
49
+ //# sourceMappingURL=ImageLink.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageLink.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/ImageLink/ImageLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,SAAS,MAAM,SAAS,CAAA;AAG/B,MAAM,aAAa,GAAoC;IACnD,KAAK,EAAE,8CAA8C;IACrD,SAAS,EAAE,SAAS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+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ image?: string;
7
+ altText?: string;
8
+ title?: string;
9
+ link?: string;
10
+ rounded?: boolean;
11
+ openInNewTab?: boolean;
12
+ buttonProps?: buttonProps;
13
+ }
14
+ declare const ImageLink: ({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }: Props) => JSX.Element;
15
+ export default ImageLink;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import Button from '../Button';
3
+ import classNames from 'classnames';
4
+ const ImageLink = ({ id, className, image, altText, title, link, rounded, openInNewTab, buttonProps }) => {
5
+ const classList = classNames({}, `${className} cursor-pointer lg:mx-3 md:mx-1 mx-1 lg:mb-5 md:mb-2 mb-2 hover:opacity-50 overflow-hidden text-center`);
6
+ const roundedClass = classNames({
7
+ 'rounded-full': rounded
8
+ });
9
+ return (React.createElement("a", Object.assign({}, (id && { id: id }), { href: link }, (openInNewTab && { target: 'blank' })),
10
+ React.createElement("div", { className: roundedClass + ' ' + classList + ' relative overflow-hidden' },
11
+ React.createElement("img", { src: image, alt: altText, className: "object-cover w-full h-full" }),
12
+ title &&
13
+ React.createElement("h1", { className: 'absolute bg-black text-white py-2 mt-4 top-0 inset-x-0 text-center' }, title),
14
+ (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.children) &&
15
+ React.createElement(Button, { className: 'absolute mx-8 mb-4 bottom-0 inset-x-0 text-center', children: buttonProps.children }))));
16
+ };
17
+ export default ImageLink;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/ImageLink/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAgC,MAAM,WAAW,CAAA;AACxD,OAAO,UAAU,MAAM,YAAY,CAAA;AAanC,MAAM,SAAS,GAAG,CAAC,EACf,EAAE,EACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,WAAW,EACR,EAAE,EAAE;IAEP,MAAM,SAAS,GAAG,UAAU,CAAC,EAC5B,EAAE,GAAG,SAAS,wGAAwG,CAAC,CAAA;IAExH,MAAM,YAAY,GAAG,UAAU,CAAC;QAC5B,cAAc,EAAE,OAAO;KAC1B,CAAC,CAAA;IAEF,OAAO,CACH,2CACQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,IAAI,EAAE,IAAI,IACN,CAAC,YAAY,IAAI,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QAEvC,6BAAK,SAAS,EAAE,YAAY,GAAG,GAAG,GAAG,SAAS,GAAG,2BAA2B;YACxE,6BACI,GAAG,EAAE,KAAK,EACV,GAAG,EAAE,OAAO,EACZ,SAAS,EAAC,4BAA4B,GACxC;YACD,KAAK;gBACF,4BACI,SAAS,EAAC,oEAAoE,IAE7E,KAAK,CACL;YAER,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ;gBAClB,oBAAC,MAAM,IACH,SAAS,EAAC,mDAAmD,EAC7D,QAAQ,EAAE,WAAW,CAAC,QAAQ,GAChC,CAEJ,CACN,CACP,CAAA;AACL,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import ImageLinkList from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof ImageLinkList>;
5
+ export declare const _ImageLinkList: ComponentStory<({ id, className, items }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { idAndClassName } from '@utils/controls';
3
+ import ImageLinkList from './index';
4
+ const getLinks = () => {
5
+ return new Array(16).fill(null).map(() => {
6
+ return {
7
+ image: "https://picsum.photos/400/400",
8
+ title: 'Hi',
9
+ ctaText: 'button'
10
+ };
11
+ });
12
+ };
13
+ const componentMeta = {
14
+ title: 'Trepur Components/Other/Organisms/Image Link List',
15
+ component: ImageLinkList,
16
+ parameters: {},
17
+ argTypes: Object.assign({}, idAndClassName),
18
+ args: {
19
+ items: getLinks()
20
+ }
21
+ };
22
+ const Template = (args) => React.createElement(ImageLinkList, Object.assign({}, args));
23
+ export const _ImageLinkList = Template.bind({});
24
+ export default componentMeta;
25
+ //# sourceMappingURL=ImageLinkList.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageLinkList.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/ImageLinkList/ImageLinkList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,aAAa,MAAM,SAAS,CAAA;AAGnC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAClB,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;YACH,KAAK,EAAE,+BAA+B;YACtC,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,QAAQ;SACpB,CAAA;IACL,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAED,MAAM,aAAa,GAAwC;IACvD,KAAK,EAAE,mDAAmD;IAC1D,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE,EAAE;IACd,QAAQ,oBACD,cAAc,CACpB;IACD,IAAI,EAAE;QACF,KAAK,EAAE,QAAQ,EAAE;KACpB;CACJ,CAAA;AAED,MAAM,QAAQ,GAAyC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,aAAa,oBAAK,IAAI,EAAI,CAAA;AAE5F,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE/C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Props as imageLinkProps } from "../ImageLink/index";
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ items?: Array<imageLinkProps>;
7
+ }
8
+ declare const ImageLinkList: ({ id, className, items }: Props) => JSX.Element;
9
+ export default ImageLinkList;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import ImageLink from "../ImageLink/index";
3
+ import classNames from 'classnames';
4
+ const ImageLinkList = ({ id, className, items }) => {
5
+ const classList = classNames({}, `${className} grid md:grid-cols-4 sm:grid-cols-2`);
6
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList }), items && items.map((item, i) => {
7
+ return (React.createElement(ImageLink, { key: `image_link_${i + 0}`, altText: 'image', image: item.image, title: item.title }));
8
+ })));
9
+ };
10
+ export default ImageLinkList;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/ImageLinkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAqC,MAAM,oBAAoB,CAAA;AACtE,OAAO,UAAU,MAAM,YAAY,CAAA;AAOnC,MAAM,aAAa,GAAG,CAAC,EACnB,EAAE,EACF,SAAS,EACT,KAAK,EACD,EAAE,EAAE;IACR,MAAM,SAAS,GAAG,UAAU,CAAC,EAC5B,EAAE,GAAG,SAAS,qCAAqC,CAAC,CAAA;IAErD,OAAO,CACL,6CAAS,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IAAE,SAAS,EAAE,SAAS,KAC9C,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAS,EAAE,EAAE;QACtC,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,cAAc,CAAC,GAAC,CAAC,EAAE,EACxB,OAAO,EAAC,OAAO,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AAEL,CAAC,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import InformationIcon from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof InformationIcon>;
5
+ export declare const _InformationIcon: ComponentStory<({ id, className, text, number, bordered, rounded, withAnimation, iconProps, theme }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;