trepur_components 0.4.8 → 1.0.1

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 (319) hide show
  1. package/dist/src/lib/components/Accordion/Accordion.stories.d.ts +6 -0
  2. package/dist/src/lib/components/Accordion/Accordion.stories.js +80 -0
  3. package/dist/src/lib/components/Accordion/Accordion.stories.js.map +1 -0
  4. package/dist/src/lib/components/Accordion/index.d.ts +8 -0
  5. package/dist/src/lib/components/Accordion/index.js +9 -0
  6. package/dist/src/lib/components/Accordion/index.js.map +1 -0
  7. package/dist/src/lib/components/AlertBar/AlertBar.stories.d.ts +6 -0
  8. package/dist/src/lib/components/AlertBar/AlertBar.stories.js +91 -0
  9. package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +1 -0
  10. package/dist/src/lib/components/AlertBar/index.d.ts +16 -0
  11. package/dist/src/lib/components/AlertBar/index.js +64 -0
  12. package/dist/src/lib/components/AlertBar/index.js.map +1 -0
  13. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +6 -0
  14. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js +56 -0
  15. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
  16. package/dist/src/lib/components/Breadcrumbs/index.d.ts +11 -0
  17. package/dist/src/lib/components/Breadcrumbs/index.js +20 -0
  18. package/dist/src/lib/components/Breadcrumbs/index.js.map +1 -0
  19. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +6 -0
  20. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +45 -0
  21. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +1 -0
  22. package/dist/src/lib/components/BreadcrumbsBordered/index.d.ts +9 -0
  23. package/dist/src/lib/components/BreadcrumbsBordered/index.js +18 -0
  24. package/dist/src/lib/components/BreadcrumbsBordered/index.js.map +1 -0
  25. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +6 -0
  26. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +50 -0
  27. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +1 -0
  28. package/dist/src/lib/components/BreadcrumbsItem/index.d.ts +12 -0
  29. package/dist/src/lib/components/BreadcrumbsItem/index.js +57 -0
  30. package/dist/src/lib/components/BreadcrumbsItem/index.js.map +1 -0
  31. package/dist/src/lib/components/Button/button.stories.d.ts +6 -0
  32. package/dist/src/lib/components/Button/button.stories.js +132 -0
  33. package/dist/src/lib/components/Button/button.stories.js.map +1 -0
  34. package/dist/src/lib/components/Button/index.d.ts +17 -0
  35. package/dist/src/lib/components/Button/index.js +32 -0
  36. package/dist/src/lib/components/Button/index.js.map +1 -0
  37. package/dist/src/lib/components/Card/Card.stories.d.ts +8 -0
  38. package/dist/src/lib/components/Card/Card.stories.js +124 -0
  39. package/dist/src/lib/components/Card/Card.stories.js.map +1 -0
  40. package/dist/src/lib/components/Card/index.d.ts +31 -0
  41. package/dist/src/lib/components/Card/index.js +66 -0
  42. package/dist/src/lib/components/Card/index.js.map +1 -0
  43. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +6 -0
  44. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +40 -0
  45. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +1 -0
  46. package/dist/src/lib/components/CardWithTopImage/index.d.ts +10 -0
  47. package/dist/src/lib/components/CardWithTopImage/index.js +15 -0
  48. package/dist/src/lib/components/CardWithTopImage/index.js.map +1 -0
  49. package/dist/src/lib/components/Carousel/Carousel.stories.d.ts +6 -0
  50. package/dist/src/lib/components/Carousel/Carousel.stories.js +297 -0
  51. package/dist/src/lib/components/Carousel/Carousel.stories.js.map +1 -0
  52. package/dist/src/lib/components/Carousel/index.d.ts +59 -0
  53. package/dist/src/lib/components/Carousel/index.js +122 -0
  54. package/dist/src/lib/components/Carousel/index.js.map +1 -0
  55. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.d.ts +6 -0
  56. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +14 -0
  57. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +1 -0
  58. package/dist/src/lib/components/ChevronCard/index.d.ts +7 -0
  59. package/dist/src/lib/components/ChevronCard/index.js +20 -0
  60. package/dist/src/lib/components/ChevronCard/index.js.map +1 -0
  61. package/dist/src/lib/components/Collapsible/Collapsible.stories.d.ts +6 -0
  62. package/dist/src/lib/components/Collapsible/Collapsible.stories.js +66 -0
  63. package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +1 -0
  64. package/dist/src/lib/components/Collapsible/index.d.ts +16 -0
  65. package/dist/src/lib/components/Collapsible/index.js +67 -0
  66. package/dist/src/lib/components/Collapsible/index.js.map +1 -0
  67. package/dist/src/lib/components/Column/Column.stories.d.ts +6 -0
  68. package/dist/src/lib/components/Column/Column.stories.js +64 -0
  69. package/dist/src/lib/components/Column/Column.stories.js.map +1 -0
  70. package/dist/src/lib/components/Column/index.d.ts +12 -0
  71. package/dist/src/lib/components/Column/index.js +83 -0
  72. package/dist/src/lib/components/Column/index.js.map +1 -0
  73. package/dist/src/lib/components/Container/Container.stories.d.ts +6 -0
  74. package/dist/src/lib/components/Container/Container.stories.js +30 -0
  75. package/dist/src/lib/components/Container/Container.stories.js.map +1 -0
  76. package/dist/src/lib/components/Container/index.d.ts +9 -0
  77. package/dist/src/lib/components/Container/index.js +8 -0
  78. package/dist/src/lib/components/Container/index.js.map +1 -0
  79. package/dist/src/lib/components/FooterBar/footerBar.stories.d.ts +6 -0
  80. package/dist/src/lib/components/FooterBar/footerBar.stories.js +48 -0
  81. package/dist/src/lib/components/FooterBar/footerBar.stories.js.map +1 -0
  82. package/dist/src/lib/components/FooterBar/index.d.ts +11 -0
  83. package/dist/src/lib/components/FooterBar/index.js +15 -0
  84. package/dist/src/lib/components/FooterBar/index.js.map +1 -0
  85. package/dist/src/lib/components/Form/Form.stories.d.ts +6 -0
  86. package/dist/src/lib/components/Form/Form.stories.js +82 -0
  87. package/dist/src/lib/components/Form/Form.stories.js.map +1 -0
  88. package/dist/src/lib/components/Form/index.d.ts +16 -0
  89. package/dist/src/lib/components/Form/index.js +19 -0
  90. package/dist/src/lib/components/Form/index.js.map +1 -0
  91. package/dist/src/lib/components/FyreCard/FyreCard.stories.d.ts +6 -0
  92. package/dist/src/lib/components/FyreCard/FyreCard.stories.js +22 -0
  93. package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +1 -0
  94. package/dist/src/lib/components/FyreCard/index.d.ts +13 -0
  95. package/dist/src/lib/components/FyreCard/index.js +17 -0
  96. package/dist/src/lib/components/FyreCard/index.js.map +1 -0
  97. package/dist/src/lib/components/Greeting/Greeting.stories.d.ts +6 -0
  98. package/dist/src/lib/components/Greeting/Greeting.stories.js +33 -0
  99. package/dist/src/lib/components/Greeting/Greeting.stories.js.map +1 -0
  100. package/dist/src/lib/components/Greeting/index.d.ts +10 -0
  101. package/dist/src/lib/components/Greeting/index.js +23 -0
  102. package/dist/src/lib/components/Greeting/index.js.map +1 -0
  103. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +6 -0
  104. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js +46 -0
  105. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js.map +1 -0
  106. package/dist/src/lib/components/HamburgerIcon/index.d.ts +7 -0
  107. package/dist/src/lib/components/HamburgerIcon/index.js +26 -0
  108. package/dist/src/lib/components/HamburgerIcon/index.js.map +1 -0
  109. package/dist/src/lib/components/Icon/Icon.stories.d.ts +6 -0
  110. package/dist/src/lib/components/Icon/Icon.stories.js +87 -0
  111. package/dist/src/lib/components/Icon/Icon.stories.js.map +1 -0
  112. package/dist/src/lib/components/Icon/index.d.ts +19 -0
  113. package/dist/src/lib/components/Icon/index.js +56 -0
  114. package/dist/src/lib/components/Icon/index.js.map +1 -0
  115. package/dist/src/lib/components/Image/Image.stories.d.ts +6 -0
  116. package/dist/src/lib/components/Image/Image.stories.js +73 -0
  117. package/dist/src/lib/components/Image/Image.stories.js.map +1 -0
  118. package/dist/src/lib/components/Image/index.d.ts +16 -0
  119. package/dist/src/lib/components/Image/index.js +54 -0
  120. package/dist/src/lib/components/Image/index.js.map +1 -0
  121. package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +9 -0
  122. package/dist/src/lib/components/ImageLink/ImageLink.stories.js +50 -0
  123. package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +1 -0
  124. package/dist/src/lib/components/ImageLink/index.d.ts +15 -0
  125. package/dist/src/lib/components/ImageLink/index.js +18 -0
  126. package/dist/src/lib/components/ImageLink/index.js.map +1 -0
  127. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +6 -0
  128. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +27 -0
  129. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +1 -0
  130. package/dist/src/lib/components/ImageLinkList/index.d.ts +9 -0
  131. package/dist/src/lib/components/ImageLinkList/index.js +11 -0
  132. package/dist/src/lib/components/ImageLinkList/index.js.map +1 -0
  133. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.d.ts +6 -0
  134. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +73 -0
  135. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +1 -0
  136. package/dist/src/lib/components/InformationIcon/index.d.ts +15 -0
  137. package/dist/src/lib/components/InformationIcon/index.js +45 -0
  138. package/dist/src/lib/components/InformationIcon/index.js.map +1 -0
  139. package/dist/src/lib/components/Input/Input.stories.d.ts +6 -0
  140. package/dist/src/lib/components/Input/Input.stories.js +95 -0
  141. package/dist/src/lib/components/Input/Input.stories.js.map +1 -0
  142. package/dist/src/lib/components/Input/index.d.ts +31 -0
  143. package/dist/src/lib/components/Input/index.js +25 -0
  144. package/dist/src/lib/components/Input/index.js.map +1 -0
  145. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.d.ts +6 -0
  146. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +16 -0
  147. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +1 -0
  148. package/dist/src/lib/components/Jumbotron/index.d.ts +9 -0
  149. package/dist/src/lib/components/Jumbotron/index.js +9 -0
  150. package/dist/src/lib/components/Jumbotron/index.js.map +1 -0
  151. package/dist/src/lib/components/Nav/Nav.stories.d.ts +6 -0
  152. package/dist/src/lib/components/Nav/Nav.stories.js +134 -0
  153. package/dist/src/lib/components/Nav/Nav.stories.js.map +1 -0
  154. package/dist/src/lib/components/Nav/index.d.ts +22 -0
  155. package/dist/src/lib/components/Nav/index.js +65 -0
  156. package/dist/src/lib/components/Nav/index.js.map +1 -0
  157. package/dist/src/lib/components/NavItem/NavItem.stories.d.ts +6 -0
  158. package/dist/src/lib/components/NavItem/NavItem.stories.js +75 -0
  159. package/dist/src/lib/components/NavItem/NavItem.stories.js.map +1 -0
  160. package/dist/src/lib/components/NavItem/index.d.ts +15 -0
  161. package/dist/src/lib/components/NavItem/index.js +24 -0
  162. package/dist/src/lib/components/NavItem/index.js.map +1 -0
  163. package/dist/src/lib/components/NewsCard/NewsCard.stories.d.ts +6 -0
  164. package/dist/src/lib/components/NewsCard/NewsCard.stories.js +60 -0
  165. package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +1 -0
  166. package/dist/src/lib/components/NewsCard/index.d.ts +14 -0
  167. package/dist/src/lib/components/NewsCard/index.js +20 -0
  168. package/dist/src/lib/components/NewsCard/index.js.map +1 -0
  169. package/dist/src/lib/components/Profile/Profile.stories.d.ts +6 -0
  170. package/dist/src/lib/components/Profile/Profile.stories.js +41 -0
  171. package/dist/src/lib/components/Profile/Profile.stories.js.map +1 -0
  172. package/dist/src/lib/components/Profile/index.d.ts +18 -0
  173. package/dist/src/lib/components/Profile/index.js +36 -0
  174. package/dist/src/lib/components/Profile/index.js.map +1 -0
  175. package/dist/src/lib/components/Row/Row.stories.d.ts +6 -0
  176. package/dist/src/lib/components/Row/Row.stories.js +37 -0
  177. package/dist/src/lib/components/Row/Row.stories.js.map +1 -0
  178. package/dist/src/lib/components/Row/index.d.ts +8 -0
  179. package/dist/src/lib/components/Row/index.js +8 -0
  180. package/dist/src/lib/components/Row/index.js.map +1 -0
  181. package/dist/src/lib/components/Search/Search.stories.d.ts +6 -0
  182. package/dist/src/lib/components/Search/Search.stories.js +48 -0
  183. package/dist/src/lib/components/Search/Search.stories.js.map +1 -0
  184. package/dist/src/lib/components/Search/index.d.ts +13 -0
  185. package/dist/src/lib/components/Search/index.js +23 -0
  186. package/dist/src/lib/components/Search/index.js.map +1 -0
  187. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.d.ts +6 -0
  188. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +58 -0
  189. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +1 -0
  190. package/dist/src/lib/components/SocialBlock/index.d.ts +21 -0
  191. package/dist/src/lib/components/SocialBlock/index.js +65 -0
  192. package/dist/src/lib/components/SocialBlock/index.js.map +1 -0
  193. package/dist/src/lib/components/StarRating/StarRating.stories.d.ts +6 -0
  194. package/dist/src/lib/components/StarRating/StarRating.stories.js +17 -0
  195. package/dist/src/lib/components/StarRating/StarRating.stories.js.map +1 -0
  196. package/dist/src/lib/components/StarRating/index.d.ts +9 -0
  197. package/dist/src/lib/components/StarRating/index.js +27 -0
  198. package/dist/src/lib/components/StarRating/index.js.map +1 -0
  199. package/dist/src/lib/components/Testimonial/Testimonial.stories.d.ts +6 -0
  200. package/dist/src/lib/components/Testimonial/Testimonial.stories.js +95 -0
  201. package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +1 -0
  202. package/dist/src/lib/components/Testimonial/index.d.ts +17 -0
  203. package/dist/src/lib/components/Testimonial/index.js +27 -0
  204. package/dist/src/lib/components/Testimonial/index.js.map +1 -0
  205. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +6 -0
  206. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +63 -0
  207. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +1 -0
  208. package/dist/src/lib/components/TextAndTitle/index.d.ts +26 -0
  209. package/dist/src/lib/components/TextAndTitle/index.js +104 -0
  210. package/dist/src/lib/components/TextAndTitle/index.js.map +1 -0
  211. package/dist/src/lib/components/TextArea/TextArea.stories.d.ts +6 -0
  212. package/dist/src/lib/components/TextArea/TextArea.stories.js +63 -0
  213. package/dist/src/lib/components/TextArea/TextArea.stories.js.map +1 -0
  214. package/dist/src/lib/components/TextArea/index.d.ts +27 -0
  215. package/dist/src/lib/components/TextArea/index.js +19 -0
  216. package/dist/src/lib/components/TextArea/index.js.map +1 -0
  217. package/dist/src/lib/components/Timeline/Timeline.stories.d.ts +6 -0
  218. package/dist/src/lib/components/Timeline/Timeline.stories.js +87 -0
  219. package/dist/src/lib/components/Timeline/Timeline.stories.js.map +1 -0
  220. package/dist/src/lib/components/Timeline/index.d.ts +14 -0
  221. package/dist/src/lib/components/Timeline/index.js +208 -0
  222. package/dist/src/lib/components/Timeline/index.js.map +1 -0
  223. package/dist/src/lib/components/Tubestops/Tubestops.stories.d.ts +6 -0
  224. package/dist/src/lib/components/Tubestops/Tubestops.stories.js +62 -0
  225. package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +1 -0
  226. package/dist/src/lib/components/Tubestops/index.d.ts +13 -0
  227. package/dist/src/lib/components/Tubestops/index.js +44 -0
  228. package/dist/src/lib/components/Tubestops/index.js.map +1 -0
  229. package/dist/src/lib/components/UserIcon/UserIcon.stories.d.ts +6 -0
  230. package/dist/src/lib/components/UserIcon/UserIcon.stories.js +63 -0
  231. package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +1 -0
  232. package/dist/src/lib/components/UserIcon/index.d.ts +11 -0
  233. package/dist/src/lib/components/UserIcon/index.js +16 -0
  234. package/dist/src/lib/components/UserIcon/index.js.map +1 -0
  235. package/dist/src/lib/components/Video/Video.stories.d.ts +6 -0
  236. package/dist/src/lib/components/Video/Video.stories.js +17 -0
  237. package/dist/src/lib/components/Video/Video.stories.js.map +1 -0
  238. package/dist/src/lib/components/Video/index.d.ts +17 -0
  239. package/dist/src/lib/components/Video/index.js +9 -0
  240. package/dist/src/lib/components/Video/index.js.map +1 -0
  241. package/dist/src/lib/index.d.ts +39 -0
  242. package/dist/src/lib/index.js +43 -0
  243. package/dist/src/lib/index.js.map +1 -0
  244. package/dist/src/lib/typography/Fonts.stories.d.ts +6 -0
  245. package/dist/src/lib/typography/Fonts.stories.js +12 -0
  246. package/dist/src/lib/typography/Fonts.stories.js.map +1 -0
  247. package/dist/src/lib/typography/index.d.ts +6 -0
  248. package/dist/src/lib/typography/index.js +23 -0
  249. package/dist/src/lib/typography/index.js.map +1 -0
  250. package/dist/src/lib/utils/controls.d.ts +35 -0
  251. package/dist/src/lib/utils/controls.js +21 -0
  252. package/dist/src/lib/utils/controls.js.map +1 -0
  253. package/dist/src/lib/utils/theme.d.ts +3 -0
  254. package/dist/src/lib/utils/theme.js +28 -0
  255. package/dist/src/lib/utils/theme.js.map +1 -0
  256. package/dist/tailwind.config.d.ts +65 -0
  257. package/dist/tailwind.config.js +81 -0
  258. package/dist/tailwind.config.js.map +1 -0
  259. package/package.json +19 -5
  260. package/dist/components/Accordion/index.js +0 -37
  261. package/dist/components/AlertBar/index.js +0 -129
  262. package/dist/components/Breadcrumbs/index.js +0 -66
  263. package/dist/components/BreadcrumbsBordered/index.js +0 -66
  264. package/dist/components/BreadcrumbsItem/index.js +0 -160
  265. package/dist/components/Button/index.js +0 -141
  266. package/dist/components/Card/index.js +0 -151
  267. package/dist/components/CardWithTopImage/index.js +0 -64
  268. package/dist/components/Carousel/index.css +0 -4
  269. package/dist/components/Carousel/index.css.map +0 -1
  270. package/dist/components/Carousel/index.js +0 -185
  271. package/dist/components/ChevronCard/index.js +0 -65
  272. package/dist/components/Collapsible/index.js +0 -158
  273. package/dist/components/Column/index.js +0 -137
  274. package/dist/components/Container/index.js +0 -55
  275. package/dist/components/FooterBar/index.js +0 -60
  276. package/dist/components/Form/index.js +0 -78
  277. package/dist/components/FyreCard/index.js +0 -54
  278. package/dist/components/Greeting/index.js +0 -69
  279. package/dist/components/Icon/index.js +0 -91
  280. package/dist/components/Image/index.js +0 -142
  281. package/dist/components/ImageLink/index.js +0 -61
  282. package/dist/components/ImageLinkList/index.js +0 -45
  283. package/dist/components/InformationIcon/index.js +0 -120
  284. package/dist/components/Input/index.js +0 -112
  285. package/dist/components/Jumbotron/index.js +0 -39
  286. package/dist/components/Nav/index.js +0 -302
  287. package/dist/components/NavItem/index.js +0 -129
  288. package/dist/components/NewsCard/index.js +0 -62
  289. package/dist/components/Profile/index.js +0 -86
  290. package/dist/components/Row/index.js +0 -55
  291. package/dist/components/Search/index.js +0 -60
  292. package/dist/components/SocialBlock/index.js +0 -184
  293. package/dist/components/StarRating/index.js +0 -110
  294. package/dist/components/Testimonial/index.js +0 -70
  295. package/dist/components/TextAndTitle/index.js +0 -283
  296. package/dist/components/TextArea/index.js +0 -97
  297. package/dist/components/Timeline/index.css +0 -133
  298. package/dist/components/Timeline/index.css.map +0 -1
  299. package/dist/components/Timeline/index.js +0 -254
  300. package/dist/components/Tubestops/index.css +0 -92
  301. package/dist/components/Tubestops/index.css.map +0 -1
  302. package/dist/components/Tubestops/index.js +0 -95
  303. package/dist/components/UserIcon/index.js +0 -50
  304. package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css +0 -1831
  305. package/dist/components/Users/rupertb/Documents/apps/trepur_components/src/lib/styles/base.css.map +0 -1
  306. package/dist/components/Video/index.js +0 -67
  307. package/dist/fonts/Sora/OFL.txt +0 -93
  308. package/dist/fonts/Sora/README.txt +0 -70
  309. package/dist/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  310. package/dist/fonts/Sora/static/Sora-Bold.ttf +0 -0
  311. package/dist/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  312. package/dist/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  313. package/dist/fonts/Sora/static/Sora-Light.ttf +0 -0
  314. package/dist/fonts/Sora/static/Sora-Medium.ttf +0 -0
  315. package/dist/fonts/Sora/static/Sora-Regular.ttf +0 -0
  316. package/dist/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  317. package/dist/fonts/Sora/static/Sora-Thin.ttf +0 -0
  318. package/dist/index.js +0 -311
  319. package/dist/styles/base.css +0 -73
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nav.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Nav/Nav.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,GAAG,MAAM,SAAS,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,aAAa,MAAM,sCAAsC,CAAA;AAChE,OAAO,SAAS,MAAM,wCAAwC,CAAA;AAE9D,MAAM,QAAQ,GAAG;IACf,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC/C,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;CACpD,CAAA;AAED,MAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,gDAAgD;IACvD,SAAS,EAAE,GAAG;IACd,UAAU,EAAE;QACV,WAAW,EAAE;YACX,OAAO,EAAE,MAAM;YACf,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,SAAS;iBACjB;aACF;SACF;KACF;IACD,QAAQ,kCACH,cAAc,KACjB,QAAQ,EAAE;YACR,WAAW,EAAE,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AAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,kCAAkC;YAC/C,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5B;SACF,EACD,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,kEAAkE;YAC/E,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,GACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,GAAG;QACb,QAAQ;QACR,SAAS,EAAE,IAAI;QACf,iBAAiB,EAAE,IAAI;QACvB,IAAI,EAAE,SAAS;QACf,aAAa;QACb,UAAU,EAAE,SAAS;QACrB,mBAAmB,EAAE,aAAa;QAClC,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,mBAAmB;QACzB,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;YACvB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;QACzC,CAAC;KACF;CACF,CAAA;AAED,MAAM,QAAQ,GAA+B,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,GAAG,oBAAK,IAAI,EAAI,CAAA;AAExE,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAErC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { Props as navItemProps } from '../NavItem';
3
+ export interface Props {
4
+ id: string;
5
+ className: string;
6
+ navLinks: Array<navItemProps>;
7
+ asSideBar: boolean;
8
+ dropdownNavHeight: string;
9
+ logo: string;
10
+ logoDarkTheme: string;
11
+ mobileLogo: string;
12
+ mobileLogoDarkTheme: string;
13
+ logoLink: string;
14
+ mobileClasses: string;
15
+ fixedTop: boolean;
16
+ getNavStatus: (asSideBar: boolean, open: boolean) => void;
17
+ theme: 'light' | 'dark';
18
+ text?: string;
19
+ textLink?: string;
20
+ }
21
+ declare const Nav: ({ id, className, navLinks, asSideBar, dropdownNavHeight, logo, logoDarkTheme, mobileLogo, mobileLogoDarkTheme, logoLink, fixedTop, mobileClasses, getNavStatus, theme, text, textLink }: Props) => JSX.Element;
22
+ export default Nav;
@@ -0,0 +1,65 @@
1
+ import React, { useState } from 'react';
2
+ import classNames from 'classnames';
3
+ import NavItem from '../NavItem';
4
+ import HamburgerIcon from '../HamburgerIcon';
5
+ const Nav = ({ id, className, navLinks, asSideBar, dropdownNavHeight, logo, logoDarkTheme, mobileLogo, mobileLogoDarkTheme, logoLink, fixedTop, mobileClasses, getNavStatus, theme = 'dark', text, textLink }) => {
6
+ const [showSideNav, setShowSideNav] = useState(false);
7
+ const [showDropdownNav, setShowDropdownNav] = useState(false);
8
+ const colours = theme === 'dark' ? 'text-white bg-primary' : 'text-primary bg-white';
9
+ const textColour = theme === 'dark' ? 'text-white' : 'text-primary';
10
+ const navItemsClassList = 'flex justify-center my-auto px-4 lg:px-8';
11
+ const logoClassList = 'flex justify-center my-auto pl-16 lg:pl-24';
12
+ const emailClassList = 'flex justify-center my-auto pr-24';
13
+ const classList = classNames(className, colours, 'h-16');
14
+ const sideNavClasses = classNames({
15
+ 'w-0': !showSideNav,
16
+ 'w-full sm:w-1/3': showSideNav
17
+ }, colours, 'z-50 md:hidden mt-20 fixed overflow-hidden h-full duration-700');
18
+ const dropdownNavClasses = classNames({
19
+ 'h-0': !showDropdownNav,
20
+ [`h-${dropdownNavHeight}`]: showDropdownNav
21
+ }, colours, 'z-50 md:hidden overflow-hidden pt-20');
22
+ const logoImageClassList = 'h-16 w-auto';
23
+ const mobileClassList = classNames({
24
+ 'fixed w-full z-50 top-0 mt-0': fixedTop
25
+ }, colours, mobileClasses, 'flex items-center md:hidden py-2');
26
+ const desktopClassList = classNames({
27
+ 'fixed w-full z-50 top-0 mt-0': fixedTop
28
+ }, 'w-full justify-between hidden md:flex items-center justify-between sm:items-stretch text-center');
29
+ const toggleMenu = () => {
30
+ getNavStatus === null || getNavStatus === void 0 ? void 0 : getNavStatus(asSideBar, true);
31
+ if (asSideBar) {
32
+ setShowSideNav(!showSideNav);
33
+ }
34
+ else {
35
+ setShowDropdownNav(!showDropdownNav);
36
+ }
37
+ };
38
+ return (React.createElement("header", { id: id, className: classList },
39
+ React.createElement("div", { id: 'mobile-nav', className: `${mobileClassList}` },
40
+ React.createElement("div", { id: 'nav-collapse-btn-wrapper', className: 'absolute inset-y-0 left-8 top-5' },
41
+ React.createElement(HamburgerIcon, { onClick: toggleMenu })),
42
+ React.createElement("a", { id: 'logo-link', className: 'mx-auto', href: logoLink },
43
+ React.createElement("img", { className: logoImageClassList, src: theme === 'dark' ? mobileLogoDarkTheme : mobileLogo, alt: 'Logo' }))),
44
+ React.createElement("div", { id: 'destop-nav', className: `${desktopClassList} flex` },
45
+ React.createElement("div", { className: logoClassList },
46
+ React.createElement("a", { id: 'logo-link', className: 'mx-auto', href: logoLink },
47
+ React.createElement("img", { className: logoImageClassList, src: theme === 'dark' ? logoDarkTheme : logo, alt: 'Logo' }))),
48
+ React.createElement("div", { className: navItemsClassList }, navLinks === null || navLinks === void 0 ? void 0 : navLinks.map((navLink, i) => {
49
+ return (React.createElement(NavItem, Object.assign({ key: `navItem_${i}` }, navLink, { className: i !== 0 ? 'pl-8' : '', bordered: false, rounded: false, underlineOnHover: true, variant: theme === 'dark' ? 'secondary' : 'primary' })));
50
+ })),
51
+ React.createElement("div", { className: emailClassList },
52
+ React.createElement("a", { className: `hidden lg:inline-block ${textColour}`, href: textLink }, text))),
53
+ asSideBar
54
+ ? (React.createElement("div", { className: sideNavClasses }, navLinks === null || navLinks === void 0 ? void 0 : navLinks.map((navLink, i) => {
55
+ return (React.createElement(NavItem, Object.assign({ key: `navItem_${i}` }, navLink, { className: 'pl-8 pt-4', bordered: false, rounded: false, underlineOnHover: true, variant: theme === 'dark' ? 'secondary' : 'primary' })));
56
+ }))
57
+ /* dropdown */
58
+ )
59
+ : (React.createElement("div", { className: dropdownNavClasses, id: 'mobile-menu' },
60
+ React.createElement("div", { className: 'pt-2 pb-3 space-y-1' }, navLinks === null || navLinks === void 0 ? void 0 : navLinks.map((navLink, i) => {
61
+ return (React.createElement(NavItem, Object.assign({ key: `navItem_${i}` }, navLink, { className: 'pl-8 pt-2', bordered: false, rounded: false, underlineOnHover: true, variant: theme === 'dark' ? 'secondary' : 'primary' })));
62
+ }))))));
63
+ };
64
+ export default Nav;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Nav/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,OAAkC,MAAM,qBAAqB,CAAA;AACpE,OAAO,aAAa,MAAM,2BAA2B,CAAA;AAqBrD,MAAM,GAAG,GAAG,CAAC,EACX,EAAE,EACF,SAAS,EACT,QAAQ,EACR,SAAS,EACT,iBAAiB,EACjB,IAAI,EACJ,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,KAAK,GAAG,MAAM,EACd,IAAI,EACJ,QAAQ,EACF,EAAe,EAAE;IACvB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACrD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE7D,MAAM,OAAO,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,uBAAuB,CAAA;IACpF,MAAM,UAAU,GAAG,KA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A0B,UAAU,EAAE,EACjD,IAAI,EAAE,QAAQ,IAEb,IAAI,CACH,CACA,CACF;QAIL,SAAS;YACR,CAAC,CAAC,CACA,6BAAK,SAAS,EAAE,cAAc,IAC3B,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;gBAC5B,OAAO,CACL,oBAAC,OAAO,kBACN,GAAG,EAAE,WAAW,CAAC,EAAE,IACf,OAAO,IACX,SAAS,EAAC,WAAW,EACrB,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,KAAK,EACd,gBAAgB,QAChB,OAAO,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,IACnD,CACH,CAAA;YACH,CAAC,CAAC,CACE;YACV,cAAc;aACT;YACH,CAAC,CAAC,CACA,6BACE,SAAS,EAAE,kBAAkB,EAC7B,EAAE,EAAC,aAAa;gBAEhB,6BAAK,SAAS,EAAC,qBAAqB,IACjC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE;oBAC5B,OAAO,CACL,oBAAC,OAAO,kBACN,GAAG,EAAE,WAAW,CAAC,EAAE,IACf,OAAO,IACX,SAAS,EAAC,WAAW,EACrB,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,KAAK,EACd,gBAAgB,QAChB,OAAO,EAAE,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,IACnD,CACH,CAAA;gBACH,CAAC,CAAC,CACE,CACF,CACL,CACE,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import NavItem from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof NavItem>;
5
+ export declare const _NavItem: ComponentStory<({ id, className, title, href, onClick, bordered, rounded, underlineOnHover, isActive, variant }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import NavItem from './index';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { idAndClassName } from '../../utils/controls';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Rupert Bennett/Atoms/Nav Item',
7
+ component: NavItem,
8
+ parameters: {},
9
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
10
+ type: { name: 'string', required: false },
11
+ description: 'A title for the component',
12
+ table: {
13
+ type: { summary: 'string' }
14
+ }
15
+ }, href: {
16
+ type: { name: 'string', required: false },
17
+ description: 'A href for the component',
18
+ table: {
19
+ type: { summary: 'string' }
20
+ }
21
+ }, onClick: {
22
+ type: { name: 'function', required: false },
23
+ description: 'An on click handle to execute when clicking on the component',
24
+ table: {
25
+ type: { summary: 'function' }
26
+ }
27
+ }, bordered: {
28
+ type: { name: 'boolean', required: false },
29
+ description: 'Enables borders around the component',
30
+ table: {
31
+ type: { summary: 'boolean' }
32
+ },
33
+ defaultValue: false
34
+ }, rounded: {
35
+ type: { name: 'boolean', required: false },
36
+ description: 'Roundes the corners of the component',
37
+ table: {
38
+ type: { summary: 'boolean' }
39
+ },
40
+ defaultValue: true
41
+ }, underlineOnHover: {
42
+ type: { name: 'boolean', required: false },
43
+ description: 'Underlines the title when hovering over the component',
44
+ table: {
45
+ type: { summary: 'boolean' }
46
+ },
47
+ defaultValue: true
48
+ }, isActive: {
49
+ type: { name: 'boolean', required: false },
50
+ description: 'Set the active state to the component',
51
+ table: {
52
+ type: { summary: 'array' }
53
+ },
54
+ defaultValue: false
55
+ }, variant: {
56
+ type: { name: 'string', required: false },
57
+ options: ['primary', 'secondary'],
58
+ description: 'The varient of the component to render',
59
+ table: {
60
+ type: { summary: 'string' }
61
+ },
62
+ defaultValue: 'primary',
63
+ control: 'radio'
64
+ } }),
65
+ args: {
66
+ title: 'Home',
67
+ href: '/',
68
+ underlineOnHover: true,
69
+ onClick: action('button-click')
70
+ }
71
+ };
72
+ const Template = (args) => React.createElement(NavItem, Object.assign({}, args));
73
+ export const _NavItem = Template.bind({});
74
+ export default componentMeta;
75
+ //# sourceMappingURL=NavItem.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavItem.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/NavItem/NavItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,aAAa,GAAkC;IACnD,KAAK,EAAE,iDAAiD;IACxD,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,EAAE;IACd,QAAQ,kCACH,cAAc,KACjB,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,2BAA2B;YACxC,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5B;SACF,EACD,IAAI,EAAE;YACJ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,0BAA0B;YACvC,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5B;SACF,EACD,OAAO,EAAE;YACP,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,WAAW,EAAE,8DAA8D;YAC3E,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;aAC9B;SACF,EACD,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EA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AAE,MAAM,CAAC,cAAc,CAAC;KAChC;CACF,CAAA;AAED,MAAM,QAAQ,GAAmC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,OAAO,oBAAK,IAAI,EAAI,CAAA;AAEhF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEzC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ title: string;
6
+ href?: string;
7
+ onClick?: React.MouseEventHandler;
8
+ bordered?: boolean;
9
+ rounded?: boolean;
10
+ underlineOnHover?: boolean;
11
+ isActive?: boolean;
12
+ variant?: 'primary' | 'secondary';
13
+ }
14
+ declare const NavItem: ({ id, className, title, href, onClick, bordered, rounded, underlineOnHover, isActive, variant }: Props) => JSX.Element;
15
+ export default NavItem;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const NavItem = ({ id, className, title, href, onClick, bordered = false, rounded = true, underlineOnHover = true, isActive = false, variant = 'primary' }) => {
4
+ const linkClassList = classNames({
5
+ 'active before:w-full': isActive,
6
+ 'border-2 px-2 py-2': bordered,
7
+ 'rounded-md': rounded,
8
+ 'before:w-full': isActive,
9
+ 'before:w-0': !isActive,
10
+ 'text-primary before:bg-primary': variant === 'primary',
11
+ 'text-white before:bg-white': variant === 'secondary',
12
+ 'relative before:absolute before:-bottom-1 before:left-0 hover:before:w-full focus:before:w-full before:h-1 before:transition-all ease-linear': underlineOnHover
13
+ }, 'text-center whitespace-nowrap');
14
+ const classList = classNames(className, 'w-auto list-none');
15
+ const anchorClassList = classNames({
16
+ 'relative ease-linear': underlineOnHover,
17
+ [linkClassList]: true // TODO: remove this once css files are compilable
18
+ }, 'focus:outline-none');
19
+ return (React.createElement("div", { id: id, className: classList },
20
+ React.createElement("a", { href: href, onClick: onClick, className: anchorClassList },
21
+ React.createElement("span", { className: linkClassList }, title))));
22
+ };
23
+ export default NavItem;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/NavItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AAenC,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,SAAS,EACT,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,SAAS,EACb,EAAe,EAAE;IACvB,MAAM,aAAa,GAAG,UAAU,CAAC;QAC/B,sBAAsB,EAAE,QAAQ;QAChC,oBAAoB,EAAE,QAAQ;QAC9B,YAAY,EAAE,OAAO;QACrB,eAAe,EAAE,QAAQ;QACzB,YAAY,EAAE,CAAC,QAAQ;QACvB,gCAAgC,EAAE,OAAO,KAAK,SAAS;QACvD,4BAA4B,EAAE,OAAO,KAAK,WAAW;QACrD,8IAA8I,EAAE,gBAAgB;KACjK,EAAE,+BAA+B,CAAC,CAAA;IAEnC,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAA;IAE3D,MAAM,eAAe,GAAG,UAAU,CAAC;QACjC,sBAAsB,EAAE,gBAAgB;QACxC,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,kDAAkD;KACzE,EAAE,oBAAoB,CAAC,CAAA;IAExB,OAAO,CACL,6BACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS;QAEpB,2BACE,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,eAAe;YAE1B,8BAAM,SAAS,EAAE,aAAa,IAC3B,KAAK,CACD,CACL,CACA,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import NewsCard from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof NewsCard>;
5
+ export declare const _NewsCard: ComponentStory<({ id, className, title, content, imageProps, buttonProps, rounded }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { idAndClassName } from '../../utils/controls';
3
+ import NewsCard from './index';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Other/Organisms/News Card',
6
+ component: NewsCard,
7
+ parameters: {},
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
9
+ description: '',
10
+ control: 'text',
11
+ table: {
12
+ category: ''
13
+ }
14
+ }, content: {
15
+ description: '',
16
+ control: 'text',
17
+ table: {
18
+ category: ''
19
+ }
20
+ }, imageProps: {
21
+ type: { name: 'other', value: 'object' },
22
+ description: 'The props to pass to the image to display on the component',
23
+ table: {
24
+ type: {
25
+ summary: 'object'
26
+ },
27
+ defaultValue: { summary: 'undefined' }
28
+ }
29
+ }, buttonProps: {
30
+ description: '',
31
+ control: 'text',
32
+ table: {
33
+ category: ''
34
+ }
35
+ }, rounded: {
36
+ description: '',
37
+ control: 'text',
38
+ table: {
39
+ category: ''
40
+ }
41
+ } }),
42
+ args: {
43
+ title: 'This is a title',
44
+ content: 'This is some content that will only be displayed if the collapsible item is expanded and will dissappear when the collapsible item is collapsed.',
45
+ rounded: true,
46
+ imageProps: {
47
+ image: 'https://picsum.photos/400/200',
48
+ rounded: true
49
+ },
50
+ buttonProps: {
51
+ children: 'Button 1',
52
+ className: 'w-full',
53
+ href: '/'
54
+ }
55
+ }
56
+ };
57
+ const Template = (args) => React.createElement(NewsCard, Object.assign({}, args));
58
+ export const _NewsCard = Template.bind({});
59
+ export default componentMeta;
60
+ //# sourceMappingURL=NewsCard.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsCard.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/NewsCard/NewsCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,QAAQ,MAAM,SAAS,CAAA;AAG9B,MAAM,aAAa,GAAmC;IACpD,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE;IACd,QAAQ,kCACH,cAAc,KACjB,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,OAAO,EAAE;YACP,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,4DAA4D;YACzE,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,EACD,WAAW,EAAE;YACX,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,OAAO,EAAE;YACP,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,GACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,kJAAkJ;QAC3J,OAAO,EAAE,IAAI;QACb,UAAU,EAAE;YACV,KAAK,EAAE,+BAA+B;YACtC,OAAO,EAAE,IAAI;SACd;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,GAAG;SACV;KACF;CACF,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,14 @@
1
+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button';
3
+ import { Props as imageProps } from '../Image';
4
+ export interface Props {
5
+ id?: string;
6
+ className?: string;
7
+ title?: string;
8
+ content?: string;
9
+ imageProps?: imageProps;
10
+ buttonProps?: buttonProps;
11
+ rounded?: boolean;
12
+ }
13
+ declare const NewsCard: ({ id, className, title, content, imageProps, buttonProps, rounded }: Props) => JSX.Element;
14
+ export default NewsCard;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import Button from '../Button';
3
+ import Image from '../Image';
4
+ import classNames from 'classnames';
5
+ const NewsCard = ({ id, className, title, content, imageProps, buttonProps, rounded }) => {
6
+ const classList = classNames({
7
+ 'rounded-lg': rounded
8
+ }, className, 'border flex p-2');
9
+ return (React.createElement("div", { id: id, className: classList },
10
+ React.createElement("div", null,
11
+ React.createElement(Image, Object.assign({}, imageProps))),
12
+ React.createElement("div", { className: 'flex flex-col justify-between expandable w-auto text-center' },
13
+ React.createElement("p", null, title),
14
+ React.createElement("p", null, content),
15
+ (buttonProps != null) &&
16
+ React.createElement("div", { className: 'px-8' },
17
+ React.createElement(Button, Object.assign({}, buttonProps), buttonProps.children)))));
18
+ };
19
+ export default NewsCard;
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/NewsCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAgC,MAAM,oBAAoB,CAAA;AACjE,OAAO,KAA8B,MAAM,mBAAmB,CAAA;AAC9D,OAAO,UAAU,MAAM,YAAY,CAAA;AAYnC,MAAM,QAAQ,GAAG,CAAC,EAChB,EAAE,EACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,UAAU,EACV,WAAW,EACX,OAAO,EACD,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,YAAY,EAAE,OAAO;KACtB,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAA;IAEhC,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS;QAC/B;YACE,oBAAC,KAAK,oBAAK,UAAU,EAAI,CACrB;QACN,6BAAK,SAAS,EAAC,6DAA6D;YAC1E,+BAAI,KAAK,CAAK;YACd,+BAAI,OAAO,CAAK;YACf,CAAC,WAAW,IAAI,IAAI,CAAC;gBACpB,6BAAK,SAAS,EAAC,MAAM;oBACnB,oBAAC,MAAM,oBAAK,WAAW,GACpB,WAAW,CAAC,QAAQ,CACd,CACL,CACJ,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Profile from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Profile>;
5
+ export declare const _Profile: ComponentStory<({ id, className, profileLinks, alignment, imageHeight, imageWidth, rounded, bordered, imageProps }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import Profile from './index';
3
+ import userImage from '@assets/images/user.jpeg';
4
+ import { idAndClassName } from '../../utils/controls';
5
+ const componentMeta = {
6
+ title: 'Trepur Components/Other/Organisms/Profile',
7
+ component: Profile,
8
+ parameters: {},
9
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { imageProps: {
10
+ type: { name: 'other', value: 'object' },
11
+ description: 'The props to pass to the image to display on the component',
12
+ table: {
13
+ type: {
14
+ summary: 'object'
15
+ },
16
+ defaultValue: { summary: 'undefined' }
17
+ }
18
+ }, alignment: {
19
+ description: '',
20
+ control: 'select',
21
+ options: ['left', 'center', 'right'],
22
+ table: {
23
+ category: ''
24
+ }
25
+ }, profileLinks: {
26
+ description: '',
27
+ control: 'text',
28
+ table: {
29
+ category: ''
30
+ }
31
+ } }),
32
+ args: {
33
+ imageProps: {
34
+ image: userImage
35
+ }
36
+ }
37
+ };
38
+ const Template = (args) => React.createElement(Profile, Object.assign({}, args));
39
+ export const _Profile = Template.bind({});
40
+ export default componentMeta;
41
+ //# sourceMappingURL=Profile.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Profile.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Profile/Profile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,SAAS,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGhD,MAAM,aAAa,GAAkC;IACnD,KAAK,EAAE,2CAA2C;IAClD,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE,EAAE;IACd,QAAQ,kCACH,cAAc,KACjB,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,4DAA4D;YACzE,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,EACD,SAAS,EAAE;YACT,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;YACpC,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,YAAY,EAAE;YACZ,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,GACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,KAAK,EAAE,SAAS;SACjB;KACF;CACF,CAAA;AAED,MAAM,QAAQ,GAAmC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,OAAO,oBAAK,IAAI,EAAI,CAAA;AAEhF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEzC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Props as imageProps } from '../Image';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ profileLinks?: Array<{
7
+ name: string;
8
+ link: string;
9
+ }>;
10
+ alignment?: 'left' | 'right';
11
+ imageHeight?: number;
12
+ imageWidth?: number;
13
+ rounded?: boolean;
14
+ bordered?: boolean;
15
+ imageProps?: imageProps;
16
+ }
17
+ declare const Profile: ({ id, className, profileLinks, alignment, imageHeight, imageWidth, rounded, bordered, imageProps }: Props) => JSX.Element;
18
+ export default Profile;
@@ -0,0 +1,36 @@
1
+ import React, { useState } from 'react';
2
+ import Image from '../Image';
3
+ import classNames from 'classnames';
4
+ const Profile = ({ id, className, profileLinks, alignment, imageHeight = 0, imageWidth = 0, rounded, bordered, imageProps }) => {
5
+ const [profileState, setProfileState] = useState(false);
6
+ const profileAlignment = classNames({
7
+ 'float-right': alignment === 'right',
8
+ 'float-left': alignment === 'left'
9
+ });
10
+ const dropdownAlignement = classNames({
11
+ 'mt-16 -mr-16': alignment === 'right',
12
+ 'mt-16 -ml-16': alignment === 'left'
13
+ });
14
+ const dropdownTextAlignement = classNames({
15
+ 'text-center': alignment !== 'right' && alignment !== 'left'
16
+ });
17
+ const classList = classNames({
18
+ 'rounded-full': rounded === true,
19
+ border: bordered === true
20
+ }, className, `h-${imageHeight} w-${imageWidth} object-cover`);
21
+ return (React.createElement(React.Fragment, null,
22
+ React.createElement("div", { id: id, className: `text-center ${classList}` },
23
+ React.createElement("div", { className: `hidden sm:inline-flex inset-y-0 ${profileAlignment}` },
24
+ React.createElement("button", { onClick: () => setProfileState(!profileState), type: 'button', className: 'flex rounded-full' },
25
+ React.createElement(Image, Object.assign({}, imageProps))))),
26
+ profileState &&
27
+ React.createElement("div", { className: dropdownTextAlignement },
28
+ React.createElement("div", { className: `w-48 sm:inline-block shadow-lg
29
+ z-10 ${profileAlignment} ${dropdownAlignement}` }, profileLinks === null || profileLinks === void 0 ? void 0 : profileLinks.map((link, i) => {
30
+ return (React.createElement("a", { key: `profile_link_${i + 1}`, href: link.link, className: 'border-b font-bold block px-4 py-2 text-sm', role: 'menuitem',
31
+ // tabindex="-1"
32
+ id: `user-menu-item-${i + 1}` }, link.name));
33
+ })))));
34
+ };
35
+ export default Profile;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Profile/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAA8B,MAAM,mBAAmB,CAAA;AAC9D,OAAO,UAAU,MAAM,YAAY,CAAA;AAcnC,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,GAAG,CAAC,EACf,UAAU,GAAG,CAAC,EACd,OAAO,EACP,QAAQ,EACR,UAAU,EACJ,EAAe,EAAE;IACvB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEvD,MAAM,gBAAgB,GAAG,UAAU,CAAC;QAClC,aAAa,EAAE,SAAS,KAAK,OAAO;QACpC,YAAY,EAAE,SAAS,KAAK,MAAM;KACnC,CAA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,CACF,CACP,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Row from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Row>;
5
+ export declare const _Row: ComponentStory<({ id, className, children }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import Row from './index';
3
+ import CardWithTopImage from '../CardWithTopImage';
4
+ import logo from '@assets/images/primary-logo.png';
5
+ import { idAndClassName } from '../../utils/controls';
6
+ const cardChild = (React.createElement(CardWithTopImage, { imageProps: {
7
+ image: logo,
8
+ rounded: true,
9
+ height: 4,
10
+ width: 4,
11
+ roundedFull: true
12
+ }, className: 'w-1/3' },
13
+ React.createElement("p", null, "This is some text"),
14
+ React.createElement("p", null, "This is some more text"),
15
+ React.createElement("p", null, "This is a bit more text"),
16
+ 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!")));
17
+ const componentMeta = {
18
+ title: 'Trepur Components/Rupert Bennett/Atoms/Row',
19
+ component: Row,
20
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { children: {
21
+ type: { name: 'other', value: 'string | React.ReactNode' },
22
+ description: 'The child elements to show in the component',
23
+ table: {
24
+ type: {
25
+ summary: 'Array'
26
+ },
27
+ defaultValue: { summary: 'undefined' }
28
+ }
29
+ } }),
30
+ args: {
31
+ children: cardChild
32
+ }
33
+ };
34
+ const Template = (args) => React.createElement(Row, Object.assign({}, args));
35
+ export const _Row = Template.bind({});
36
+ export default componentMeta;
37
+ //# sourceMappingURL=Row.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Row/Row.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,GAAG,MAAM,SAAS,CAAA;AACzB,OAAO,gBAAgB,MAAM,8BAA8B,CAAA;AAC3D,OAAO,IAAI,MAAM,iCAAiC,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,SAAS,GAAG,CAChB,oBAAC,gBAAgB,IACf,UAAU,EAAE;QACV,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI;KAClB,EACD,SAAS,EAAC,OAAO;IAEjB,mDAAwB;IACxB,wDAA6B;IAC7B,yDAA8B;IAC9B,wOAA6M,CAC5L,CACpB,CAAA;AAED,MAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,4CAA4C;IACnD,SAAS,EAAE,GAAG;IACd,QAAQ,kCACH,cAAc,KACjB,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,SAAS;KACpB;CACF,CAAA;AAED,MAAM,QAAQ,GAA+B,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,GAAG,oBAAK,IAAI,EAAI,CAAA;AAExE,MAAM,CAAC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAErC,eAAe,aAAa,CAAA"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ children: any;
6
+ }
7
+ declare const Row: ({ id, className, children }: Props) => JSX.Element;
8
+ export default Row;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const Row = ({ id, className, children }) => {
4
+ const classList = classNames(className, 'flex flex-wrap');
5
+ return (React.createElement("div", { id: id, className: classList }, children));
6
+ };
7
+ export default Row;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AAQnC,MAAM,GAAG,GAAG,CAAC,EACX,EAAE,EACF,SAAS,EACT,QAAQ,EACF,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;IAEzD,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,IAC9B,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Search from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Search>;
5
+ export declare const _Search: ComponentStory<({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import { idAndClassName } from '../../utils/controls';
3
+ import Search from './index';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Other/Organisms/Search',
6
+ component: Search,
7
+ parameters: {},
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { leftIconProps: {
9
+ description: 'An optional param to display an icon to the left of the search bar',
10
+ control: 'text',
11
+ table: {
12
+ category: ''
13
+ }
14
+ }, rightIconProps: {
15
+ description: 'An optional param to display an icon to the right of the search bar',
16
+ control: 'text',
17
+ table: {
18
+ category: ''
19
+ }
20
+ }, placeholder: {
21
+ description: 'An optional param to display a placeholder inside the search box',
22
+ control: 'text',
23
+ table: {
24
+ category: ''
25
+ }
26
+ }, text: {
27
+ description: 'An optional param to display a label on the left of the search bar',
28
+ control: 'text',
29
+ table: {
30
+ category: ''
31
+ }
32
+ } }),
33
+ args: {
34
+ placeholder: 'search...',
35
+ leftIconProps: {
36
+ type: 'heart',
37
+ className: 'absolute py-4 left-3 flex items-center'
38
+ },
39
+ rightIconProps: {
40
+ type: 'heart',
41
+ className: 'absolute py-4 right-3 flex items-center'
42
+ }
43
+ }
44
+ };
45
+ const Template = (args) => React.createElement(Search, Object.assign({}, args));
46
+ export const _Search = Template.bind({});
47
+ export default componentMeta;
48
+ //# sourceMappingURL=Search.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Search/Search.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,MAAM,MAAM,SAAS,CAAA;AAG5B,MAAM,aAAa,GAAiC;IAClD,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,EAAE;IACd,QAAQ,kCACH,cAAc,KACjB,aAAa,EAAE;YACb,WAAW,EAAE,oEAAoE;YACjF,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,cAAc,EAAE;YACd,WAAW,EAAE,qEAAqE;YAClF,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,WAAW,EAAE;YACX,WAAW,EAAE,kEAAkE;YAC/E,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,EACD,IAAI,EAAE;YACJ,WAAW,EAAE,oEAAoE;YACjF,OAAO,EAAE,MAAM;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;aACb;SACF,GACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,WAAW;QACxB,aAAa,EAAE;YACb,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,wCAAwC;SACpD;QACD,cAAc,EAAE;YACd,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,yCAAyC;SACrD;KACF;CACF,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"}