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,67 @@
1
+ import React, { useState, useEffect } from 'react';
2
+ import Icon from '../Icon';
3
+ import classNames from 'classnames';
4
+ const Collapsible = ({ id, className, title, subtitle, boldTitle, borderTop, borderBottom, showBottomLine, iconProps, children }) => {
5
+ const [expanded, setExpanded] = useState(false);
6
+ useEffect(() => {
7
+ const coll = document.getElementsByClassName("collapsible");
8
+ let i;
9
+ for (i = 0; i < coll.length; i++) {
10
+ coll[i].addEventListener("click", function (err) {
11
+ let content = this.nextElementSibling;
12
+ if (content.style.maxHeight === '0px') {
13
+ content.style.maxHeight = content.scrollHeight + "px";
14
+ }
15
+ else {
16
+ content.style.maxHeight = '0px';
17
+ }
18
+ });
19
+ }
20
+ });
21
+ const headingClassList = classNames({
22
+ 'border-b': borderBottom,
23
+ 'border-t': borderTop,
24
+ }, 'w-auto flex text-center collapsible');
25
+ const classList = classNames({}, `${className} bg-primary text-white hover:bg-white hover:text-primary transition-opactiy duration-300`);
26
+ const padding = classNames({
27
+ 'pt-7': title && subtitle,
28
+ 'pt-4': title && !subtitle,
29
+ });
30
+ const textSubstitutePadding = classNames({
31
+ 'pb-4': !title && !subtitle,
32
+ });
33
+ const contentWrapperClassList = classNames({
34
+ 'max-h-max my-2': expanded,
35
+ 'max-h-0': !expanded
36
+ }, 'w-auto overflow-hidden px-4 bg-white text-primary');
37
+ const childrenClassList = classNames({
38
+ [padding]: true
39
+ }, 'w-full pr-8 text-right');
40
+ const expandItem = (e) => {
41
+ const content = e.currentTarget.nextElementSibling;
42
+ if (!expanded) {
43
+ content.style.maxHeight = `${content.scrollHeight}px`;
44
+ }
45
+ else {
46
+ content.style.maxHeight = '0px';
47
+ }
48
+ setExpanded(!expanded);
49
+ };
50
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList }),
51
+ React.createElement("div", { onClick: e => expandItem(e), className: headingClassList },
52
+ iconProps &&
53
+ React.createElement("div", { className: `pl-4 text-left ${padding} ${textSubstitutePadding}` },
54
+ React.createElement(Icon, Object.assign({}, iconProps))),
55
+ (title || subtitle) &&
56
+ React.createElement("div", { className: 'w-full pl-4 py-4 text-left' },
57
+ title && React.createElement("h4", null, title),
58
+ subtitle && React.createElement("h5", null,
59
+ React.createElement("small", null, subtitle))),
60
+ children &&
61
+ React.createElement("div", { className: childrenClassList },
62
+ React.createElement(Icon, { type: expanded ? 'chevron-up' : 'chevron-down' }))),
63
+ children &&
64
+ React.createElement("div", { className: contentWrapperClassList, style: { 'transition': 'max-height 0.2s ease-out' } }, children)));
65
+ };
66
+ export default Collapsible;
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Collapsible/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,IAA4B,MAAM,SAAS,CAAA;AAClD,OAAO,UAAU,MAAM,YAAY,CAAA;AAenC,MAAM,WAAW,GAAG,CAAC,EACjB,EAAE,EACF,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,cAAc,EACd,SAAS,EACT,QAAQ,EACJ,EAAE,EAAE;IACR,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE/C,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,IAAI,GAAG,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAA;QAC3D,IAAI,CAAS,CAAC;QAEd,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9B,IAAI,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,EAAE,UAAoB,GAAQ;gBAC1D,IAAI,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAA;gBAErC,IAAI,OAAO,CAAC,KAAK,CAAC,SAAS,KAAK,KAAK,EAAC;oBAClC,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAA;iBACxD;q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,IACtB,SAAS,EAAE,SAAS;QAEpB,6BACI,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAC3B,SAAS,EAAE,gBAAgB;YAE1B,SAAS;gBACN,6BACI,SAAS,EAAE,kBAAkB,OAAO,IAAI,qBAAqB,EAAE;oBAE/D,oBAAC,IAAI,oBAAK,SAAS,EAAI,CACrB;YAET,CAAC,KAAK,IAAI,QAAQ,CAAC;gBAChB,6BAAK,SAAS,EAAC,4BAA4B;oBACtC,KAAK,IAAI,gCAAK,KAAK,CAAM;oBACzB,QAAQ,IAAI;wBAAI,mCAAQ,QAAQ,CAAS,CAAK,CAC7C;YAET,QAAQ;gBACL,6BAAK,SAAS,EAAE,iBAAiB;oBAC7B,oBAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,GAAG,CACrD,CAER;QACL,QAAQ;YACL,6BACI,SAAS,EAAE,uBAAuB,EAClC,KAAK,EAAE,EAAC,YAAY,EAAE,0BAA0B,EAAC,IAEhD,QAAQ,CACP,CAER,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import Column from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Column>;
5
+ export declare const _Column: ComponentStory<React.FC<import("./index").Props>>;
6
+ export default componentMeta;
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import Column from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ import CardWithTopImage from '../CardWithTopImage';
5
+ import logo from '../../assets/images/primary-logo.png';
6
+ const cardChild = React.createElement(CardWithTopImage, { id: 'cardwithtopimage', imageProps: {
7
+ image: logo
8
+ } },
9
+ React.createElement("p", null, "This is some text"),
10
+ React.createElement("p", null, "This is some more text"),
11
+ React.createElement("p", null, "This is a bit more text"),
12
+ React.createElement("p", null, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem odit ad sed, quam recusandae voluptatem provident eveniet beatae omnis vero minus unde facilis. Quia commodi quas odit iusto ut enim!"));
13
+ const componentMeta = {
14
+ title: 'Trepur Components/Rupert Bennett/Atoms/Column',
15
+ component: Column,
16
+ parameters: {},
17
+ argTypes: Object.assign({}, idAndClassName),
18
+ args: {
19
+ sm: 4,
20
+ md: 4,
21
+ lg: 4,
22
+ xl: 2,
23
+ className: 'bg-facebook md:bg-twitter lg-whatsapp xl:bg-linkedin border',
24
+ children: cardChild
25
+ }
26
+ };
27
+ const Template = (args) => React.createElement(Column, Object.assign({}, args));
28
+ export const _Column = Template.bind({});
29
+ export default componentMeta;
30
+ //# sourceMappingURL=Column.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Column.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Column/Column.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAClD,OAAO,IAAI,MAAM,sCAAsC,CAAA;AAGvD,MAAM,SAAS,GACX,oBAAC,gBAAgB,IACb,EAAE,EAAC,kBAAkB,EACrB,UAAU,EAAE;QACR,KAAK,EAAE,IAAI;KACd;IAED,mDAAwB;IACxB,wDAA6B;IAC7B,yDAA8B;IAC9B,wOAA6M,CAC9L,CAAA;AAEvB,MAAM,aAAa,GAAiC;IAChD,KAAK,EAAE,+CAA+C;IACtD,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,EAAE;IACd,QAAQ,oBACD,cAAc,CACpB;IACD,IAAI,EAAE;QACF,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;QACL,SAAS,EAAE,6DAA6D;QACxE,QAAQ,EAAE,SAAS;KACtB;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,12 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ sm?: number;
6
+ md?: number;
7
+ lg?: number;
8
+ xl?: number;
9
+ children?: any;
10
+ }
11
+ declare const Column: React.FC<Props>;
12
+ export default Column;
@@ -0,0 +1,83 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const Column = ({ id, className, sm = 1, md = 1, lg = 1, xl = 1, children }) => {
4
+ const widthOptions = [
5
+ { 1: 'w-1/12' },
6
+ { 2: 'w-2/12' },
7
+ { 3: 'w-3/12' },
8
+ { 4: 'w-4/12' },
9
+ { 5: 'w-5/12' },
10
+ { 6: 'w-6/12' },
11
+ { 7: 'w-7/12' },
12
+ { 8: 'w-8/12' },
13
+ { 9: 'w-9/12' },
14
+ { 10: 'w-10/12' },
15
+ { 11: 'w-11/12' },
16
+ { 12: 'w-full' }
17
+ ];
18
+ const mdWidthOptions = [
19
+ { 1: 'md:w-1/12' },
20
+ { 2: 'md:w-2/12' },
21
+ { 3: 'md:w-3/12' },
22
+ { 4: 'md:w-4/12' },
23
+ { 5: 'md:w-5/12' },
24
+ { 6: 'md:w-6/12' },
25
+ { 7: 'md:w-7/12' },
26
+ { 8: 'md:w-8/12' },
27
+ { 9: 'md:w-9/12' },
28
+ { 10: 'md:w-10/12' },
29
+ { 11: 'md:w-11/12' },
30
+ { 12: 'md:w-full' }
31
+ ];
32
+ const lgWidthOptions = [
33
+ { 1: 'lg:w-1/12' },
34
+ { 2: 'lg:w-2/12' },
35
+ { 3: 'lg:w-3/12' },
36
+ { 4: 'lg:w-4/12' },
37
+ { 5: 'lg:w-5/12' },
38
+ { 6: 'lg:w-6/12' },
39
+ { 7: 'lg:w-7/12' },
40
+ { 8: 'lg:w-8/12' },
41
+ { 9: 'lg:w-9/12' },
42
+ { 10: 'lg:w-10/12' },
43
+ { 11: 'lg:w-11/12' },
44
+ { 12: 'lg:w-full' }
45
+ ];
46
+ const xlWidthOptions = [
47
+ { 1: 'xl:w-1/12' },
48
+ { 2: 'xl:w-2/12' },
49
+ { 3: 'xl:w-3/12' },
50
+ { 4: 'xl:w-4/12' },
51
+ { 5: 'xl:w-5/12' },
52
+ { 6: 'xl:w-6/12' },
53
+ { 7: 'xl:w-7/12' },
54
+ { 8: 'xl:w-8/12' },
55
+ { 9: 'xl:w-9/12' },
56
+ { 10: 'xl:w-10/12' },
57
+ { 11: 'xl:w-11/12' },
58
+ { 12: 'xl:w-full' }
59
+ ];
60
+ const calculateWidth = (screen, size) => {
61
+ switch (screen) {
62
+ case 'sm':
63
+ return Object.values(widthOptions[size - 1]).toString();
64
+ case 'md':
65
+ return Object.values(mdWidthOptions[size - 1]).toString();
66
+ case 'lg':
67
+ return Object.values(lgWidthOptions[size - 1]).toString();
68
+ case 'xl':
69
+ return Object.values(xlWidthOptions[size - 1]).toString();
70
+ default:
71
+ return Object.values(widthOptions[size - 1]).toString();
72
+ }
73
+ };
74
+ const classList = classNames({
75
+ [calculateWidth('sm', sm)]: sm,
76
+ [calculateWidth('md', md)]: md,
77
+ [calculateWidth('lg', lg)]: lg,
78
+ [calculateWidth('xl', xl)]: xl
79
+ }, `${className} h-full`);
80
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList }), children));
81
+ };
82
+ export default Column;
83
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Column/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA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C,CAAC,CAAC,QAAQ,EAAE,CAAA;YAC3D,KAAK,IAAI;gBACL,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,GAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAA;YAC3D;gBACI,OAAO,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,GAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAA;SAC5D;IACL,CAAC,CAAA;IAED,MAAM,SAAS,GAAG,UAAU,CAAC;QACzB,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAG,EAAE;QAC/B,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAG,EAAE;QAC/B,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAG,EAAE;QAC/B,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAG,EAAE;KAClC,EAAE,GAAG,SAAS,SAAS,CAAC,CAAA;IAEzB,OAAO,CACH,6CACQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,SAAS,EAAE,SAAS,KAEnB,QAAQ,CACP,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Container from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Container>;
5
+ export declare const _Container: ComponentStory<({ id, className, maxWidth, children }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import Container from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Rupert Bennett/Atoms/Container',
6
+ component: Container,
7
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { maxWidth: {
8
+ type: { name: 'number', required: false },
9
+ description: 'The number of pixles for the component to span',
10
+ control: { type: 'number', min: 1, step: 1 },
11
+ defaultValue: '1200'
12
+ }, children: {
13
+ type: { name: 'other', value: 'string | React.ReactNode' },
14
+ description: 'The child elements to show in the component',
15
+ table: {
16
+ type: {
17
+ summary: 'Array'
18
+ },
19
+ defaultValue: { summary: 'undefined' }
20
+ }
21
+ } }),
22
+ args: {
23
+ className: 'border',
24
+ children: React.createElement("p", null, "This is a centered container with a max width")
25
+ }
26
+ };
27
+ const Template = (args) => React.createElement(Container, Object.assign({}, args));
28
+ export const _Container = Template.bind({});
29
+ export default componentMeta;
30
+ //# sourceMappingURL=Container.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Container/Container.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAoC;IACnD,KAAK,EAAE,kDAAkD;IACzD,SAAS,EAAE,SAAS;IACpB,QAAQ,kCACD,cAAc,KACjB,QAAQ,EAAE;YACN,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,gDAAgD;YAC7D,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;YAC5C,YAAY,EAAE,MAAM;SACvB,EACD,QAAQ,EAAE;YACN,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACH,IAAI,EAAE;oBACF,OAAO,EAAE,OAAO;iBACnB;gBACH,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACJ,GACJ;IACD,IAAI,EAAE;QACF,SAAS,EAAE,QAAQ;QACnB,QAAQ,EAAE,+EAAoD;KACjE;CACJ,CAAA;AAED,MAAM,QAAQ,GAAqC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,SAAS,oBAAK,IAAI,EAAI,CAAA;AAEpF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ maxWidth?: number;
6
+ children?: any;
7
+ }
8
+ declare const Container: ({ id, className, maxWidth, children }: Props) => JSX.Element;
9
+ export default Container;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const Container = ({ id, className, maxWidth = 1200, children }) => {
4
+ const classList = classNames(className, 'mx-auto');
5
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: classList, style: { 'maxWidth': `${maxWidth}px` } }), children));
6
+ };
7
+ export default Container;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Container/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AASnC,MAAM,SAAS,GAAG,CAAC,EACf,EAAE,EACF,SAAS,EACT,QAAQ,GAAG,IAAI,EACf,QAAQ,EACJ,EAAE,EAAE;IACR,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;IAElD,OAAO,CACH,6CACQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAC,UAAU,EAAE,GAAG,QAAQ,IAAI,EAAC,KAEnC,QAAQ,CACP,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import FooterBar from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof FooterBar>;
5
+ export declare const _FooterBar: ComponentStory<({ id, className, text, buttonProps, theme }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import FooterBar from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ import { action } from '@storybook/addon-actions';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Rupert Bennett/Organisms/Footer Bar',
7
+ component: FooterBar,
8
+ parameters: {},
9
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { text: {
10
+ type: { name: 'string', required: false },
11
+ description: 'The text to show on the component',
12
+ table: {
13
+ type: { summary: 'default' }
14
+ },
15
+ defaultValue: { summary: 'undefined' }
16
+ }, buttonProps: {
17
+ type: { name: 'other', value: 'object' },
18
+ description: 'The props to pass to the button to display on the component',
19
+ table: {
20
+ type: {
21
+ summary: 'object'
22
+ },
23
+ defaultValue: { summary: 'undefined' }
24
+ }
25
+ }, theme: {
26
+ type: { name: 'string', required: false },
27
+ options: ['dark', 'light'],
28
+ description: 'The variant of button to render',
29
+ table: {
30
+ type: { summary: 'light' },
31
+ defaultValue: { summary: 'light' }
32
+ },
33
+ defaultValue: 'light',
34
+ control: { type: 'radio' }
35
+ } }),
36
+ args: {
37
+ text: 'RupertBennett.com Copyright 2022 All rights reserved',
38
+ theme: 'dark',
39
+ buttonProps: {
40
+ children: 'Admin Panel',
41
+ onClick: action('button clicked')
42
+ }
43
+ },
44
+ };
45
+ const Template = (args) => React.createElement(FooterBar, Object.assign({}, args));
46
+ export const _FooterBar = Template.bind({});
47
+ export default componentMeta;
48
+ //# sourceMappingURL=footerBar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footerBar.stories.js","sourceRoot":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AI,EAAE;QACF,IAAI,EAAE,sDAAsD;QAC5D,KAAK,EAAE,MAAM;QACb,WAAW,EAAE;YACT,QAAQ,EAAE,aAAa;YACvB,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;SACpC;KACJ;CACJ,CAAA;AAED,MAAM,QAAQ,GAAqC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,SAAS,oBAAK,IAAI,EAAI,CAAA;AAEpF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE3C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ buttonProps?: buttonProps;
7
+ text?: string;
8
+ theme?: 'light' | 'dark';
9
+ }
10
+ declare const Nav: ({ id, className, text, buttonProps, theme }: Props) => JSX.Element;
11
+ export default Nav;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import Button from '../Button';
4
+ const Nav = ({ id, className, text, buttonProps, theme }) => {
5
+ const colours = theme === 'dark' ? 'bg-primary text-white' : 'bg-white text-primary';
6
+ const classList = classNames(className, colours, 'block md:flex flex-wrap justify-between items-center h-auto');
7
+ const textClasses = 'text-center pt-8 pb-4 md:pb-0 md:my-8 md:pt-0 md:pl-16';
8
+ const buttonClasses = 'text-center pb-8 pt-4 md:pb-0 md:pt-0 md:pr-16';
9
+ return (React.createElement("div", { id: id, className: classList },
10
+ React.createElement("div", { className: textClasses }, text),
11
+ React.createElement("div", { className: buttonClasses },
12
+ React.createElement(Button, { children: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.children, variant: theme === 'dark' ? 'primary' : 'secondary', rounded: true, href: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.href, onClick: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick }))));
13
+ };
14
+ export default Nav;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/FooterBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAA+B,MAAM,WAAW,CAAA;AAUvD,MAAM,GAAG,GAAG,CAAC,EACT,EAAE,EACF,SAAS,EACT,IAAI,EACJ,WAAW,EACX,KAAK,EACD,EAAE,EAAE;IACR,MAAM,OAAO,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,uBAAuB,CAAA;IACpF,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,6DAA6D,CAAC,CAAA;IAC/G,MAAM,WAAW,GAAG,wDAAwD,CAAA;IAC5E,MAAM,aAAa,GAAG,gDAAgD,CAAA;IAEtE,OAAO,CACH,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS;QAC7B,6BAAK,SAAS,EAAE,WAAW,IACtB,IAAI,CACH;QACN,6BAAK,SAAS,EAAE,aAAa;YACzB,oBAAC,MAAM,IACH,QAAQ,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAC/B,OAAO,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EACnD,OAAO,EAAE,IAAI,EACb,IAAI,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,EACvB,OAAO,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,GAC/B,CACA,CACJ,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Form from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Form>;
5
+ export declare const _Form: ComponentStory<({ id, className, title, titleClasses, onSubmit, ref, components }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ import { idAndClassName } from '@utils/controls';
3
+ import Form from './index';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Rupert Bennett/Organisms/Form',
6
+ component: Form,
7
+ parameters: {},
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
9
+ type: { name: 'string', required: false },
10
+ description: 'The title to display on the component',
11
+ table: {
12
+ type: { summary: 'string' },
13
+ defaultValue: { summary: 'undefined' }
14
+ }
15
+ }, titleClasses: {
16
+ type: { name: 'string', required: false },
17
+ description: 'The class names to pass to the title of the component',
18
+ table: {
19
+ type: { summary: 'string' },
20
+ defaultValue: { summary: 'undefined' }
21
+ }
22
+ }, onSubmit: {
23
+ type: { name: 'function', required: false },
24
+ description: 'The action to perform when submitting the component',
25
+ action: 'onClick',
26
+ table: {
27
+ type: {
28
+ summary: 'function'
29
+ },
30
+ defaultValue: { summary: 'undefined' }
31
+ }
32
+ }, ref: {
33
+ type: { name: 'other', value: 'RefObject<TouchableOpacity>' },
34
+ description: 'An ref for highlighting the current element',
35
+ table: {
36
+ type: {
37
+ summary: 'object'
38
+ },
39
+ defaultValue: { summary: 'undefined' }
40
+ }
41
+ }, components: {
42
+ description: 'An array of component objects to pass to the component',
43
+ control: 'array',
44
+ table: {
45
+ type: {
46
+ summary: 'array'
47
+ },
48
+ defaultValue: { summary: 'undefined' }
49
+ }
50
+ } }),
51
+ args: {
52
+ title: 'This is a title',
53
+ components: [
54
+ {
55
+ htmlType: 'Input',
56
+ label: 'This is a label',
57
+ placeholder: 'This is a placeholder',
58
+ children: 'Submit'
59
+ },
60
+ {
61
+ htmlType: 'Input',
62
+ label: 'This is a label',
63
+ placeholder: 'This is a placeholder',
64
+ children: 'Submit'
65
+ },
66
+ {
67
+ htmlType: 'Input',
68
+ label: 'This is a label',
69
+ placeholder: 'This is a placeholder',
70
+ children: 'Submit'
71
+ },
72
+ {
73
+ htmlType: 'Button',
74
+ children: 'Submit'
75
+ }
76
+ ]
77
+ }
78
+ };
79
+ const Template = (args) => React.createElement(Form, Object.assign({}, args));
80
+ export const _Form = Template.bind({});
81
+ export default componentMeta;
82
+ //# sourceMappingURL=Form.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Form/Form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,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,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,uCAAuC;YACpD,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,EACD,YAAY,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,uDAAuD;YACpE,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,EACD,QAAQ,EAAE;YACN,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,WAAW,EAAE,qDAAqD;YAClE,MAAM,EAAE,SAAS;YACjB,KAAK,EAA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C,CAAA;AAEtC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button';
3
+ import { Props as inputProps } from '../Input';
4
+ export interface Props {
5
+ id?: string;
6
+ className?: string;
7
+ title?: string;
8
+ titleClasses?: string;
9
+ onSubmit?: () => void;
10
+ ref?: string;
11
+ components?: Array<inputProps & buttonProps & {
12
+ htmlType: string;
13
+ }>;
14
+ }
15
+ declare const Form: ({ id, className, title, titleClasses, onSubmit, ref, components }: Props) => JSX.Element;
16
+ export default Form;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import Button from '../Button';
3
+ import Input from '../Input';
4
+ const Form = ({ id, className, title, titleClasses, onSubmit, ref, components }) => {
5
+ return (React.createElement(React.Fragment, null,
6
+ React.createElement("h1", { className: titleClasses }, title),
7
+ React.createElement("form", Object.assign({}, (id && { id: id }), { ref: ref, className: className, onSubmit: onSubmit }), components && components.map((component, i) => {
8
+ if (component.htmlType === 'Input') {
9
+ return (React.createElement(Input, { key: `input_${i + 0}`, className: component.className, label: component.label, placeholder: component.placeholder, type: component.type, name: component.name }));
10
+ }
11
+ else if (component.htmlType === 'Button') {
12
+ return (React.createElement(Button, { key: `button_${i + 0}`, type: component.type, onClick: component.onClick, className: component.className, children: component.children }));
13
+ }
14
+ else
15
+ return React.createElement(React.Fragment, null);
16
+ }))));
17
+ };
18
+ export default Form;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAA+B,MAAM,WAAW,CAAA;AACvD,OAAO,KAA6B,MAAM,UAAU,CAAA;AAYpD,MAAM,IAAI,GAAG,CAAC,EACV,EAAE,EACF,SAAS,EACT,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,UAAU,EACN,EAAE,EAAE;IACR,OAAO,CACH;QACI,4BAAI,SAAS,EAAE,YAAY,IAAG,KAAK,CAAM;QACzC,8CAAU,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,KAC3E,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE;YAC3C,IAAG,SAAS,CAAC,QAAQ,KAAK,OAAO,EAAC;gBAC9B,OAAO,CACH,oBAAC,KAAK,IACF,GAAG,EAAE,SAAS,CAAC,GAAC,CAAC,EAAE,EACnB,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,WAAW,EAAE,SAAS,CAAC,WAAW,EAClC,IAAI,EAAE,SAAS,CAAC,IAAI,EACpB,IAAI,EAAE,SAAS,CAAC,IAAI,GACtB,CACL,CAAA;aACJ;iBAAM,IAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,EAAC;gBACtC,OAAO,CACH,oBAAC,MAAM,IACH,GAAG,EAAE,UAAU,CAAC,GAAC,CAAC,EAAE,EACpB,IAAI,EAAE,SAAS,CAAC,IAAI,EACpB,OAAO,EAAE,SAAS,CAAC,OAAO,EAC1B,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,QAAQ,EAAE,SAAS,CAAC,QAAQ,GAC9B,CACL,CAAA;aACJ;;gBAAM,OAAO,yCAAK,CAAA;QACvB,CAAC,CAAC,CACC,CACR,CACN,CAAA;AAEL,CAAC,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import FyreCard from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof FyreCard>;
5
+ export declare const _FyreCard: ComponentStory<({ id, className, image, imageClass, altText, bordered, buttonProps }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import FyreCard from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Other/Organisms/Fyre Card',
6
+ component: FyreCard,
7
+ parameters: {},
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { image: {
9
+ description: '',
10
+ control: 'text',
11
+ table: {
12
+ category: '',
13
+ },
14
+ } }),
15
+ args: {
16
+ image: 'https://picsum.photos/500/300'
17
+ }
18
+ };
19
+ const Template = (args) => React.createElement(FyreCard, Object.assign({}, args));
20
+ export const _FyreCard = Template.bind({});
21
+ export default componentMeta;
22
+ //# sourceMappingURL=FyreCard.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FyreCard.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/FyreCard/FyreCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAmC;IAClD,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE;IACd,QAAQ,kCACD,cAAc,KACjB,KAAK,EAAE;YACH,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;aACf;SACJ,GACJ;IACD,IAAI,EAAE;QACF,KAAK,EAAE,+BAA+B;KACzC;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,13 @@
1
+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ image?: string;
7
+ imageClass?: string;
8
+ altText?: string;
9
+ bordered?: string;
10
+ buttonProps?: buttonProps;
11
+ }
12
+ declare const FyreCard: ({ id, className, image, imageClass, altText, bordered, buttonProps }: Props) => JSX.Element;
13
+ export default FyreCard;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import Button from '../Button';
3
+ const FyreCard = ({ id, className, image, imageClass, altText, bordered, buttonProps }) => {
4
+ let border = bordered && ' border border-grey border-opacity-100 ';
5
+ let classList = 'flex flex-col ';
6
+ classList += className ? className : '';
7
+ classList += ' ' + border;
8
+ let imageClassList = ' w-full ';
9
+ imageClassList += imageClass;
10
+ return (React.createElement("div", Object.assign({ key: id }, (id && { id: id }), { className: classList }),
11
+ React.createElement("div", { className: 'card-content flex flex-1 flex-col' },
12
+ React.createElement("div", null,
13
+ React.createElement("img", { className: imageClassList, src: image, alt: altText })),
14
+ React.createElement("div", { className: 'flex justify-end' },
15
+ React.createElement(Button, Object.assign({}, buttonProps), buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.children)))));
16
+ };
17
+ export default FyreCard;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/FyreCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAA+B,MAAM,WAAW,CAAA;AAWvD,MAAM,QAAQ,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,KAAK,EACL,UAAU,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACP,EAAE,EAAE;IACR,IAAI,MAAM,GAAG,QAAQ,IAAI,yCAAyC,CAAA;IAClE,IAAI,SAAS,GAAG,gBAAgB,CAAA;IAChC,SAAS,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAA;IACvC,SAAS,IAAI,GAAG,GAAG,MAAM,CAAA;IACzB,IAAI,cAAc,GAAG,UAAU,CAAA;IAE/B,cAAc,IAAI,UAAU,CAAA;IAE5B,OAAO,CACH,2CACI,GAAG,EAAE,EAAE,IACH,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IACtB,SAAS,EAAE,SAAS;QACpB,6BAAK,SAAS,EAAC,mCAAmC;YAC9C;gBACI,6BAAK,SAAS,EAAE,cAAc,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,GAAG,CACzD;YACN,6BAAK,SAAS,EAAC,kBAAkB;gBAC7B,oBAAC,MAAM,oBAAK,WAAW,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,CAAU,CACvD,CACJ,CACJ,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Greeting from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Greeting>;
5
+ export declare const _Greeting: ComponentStory<({ id, className, morningMessage, afternoonMessage, eveningMessage }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;