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
package/dist/index.js CHANGED
@@ -231,81 +231,42 @@ Object.defineProperty(exports, "Video", {
231
231
  return _Video.default;
232
232
  }
233
233
  });
234
-
235
234
  var _Accordion = _interopRequireDefault(require("./components/Accordion"));
236
-
237
235
  var _AlertBar = _interopRequireDefault(require("./components/AlertBar"));
238
-
239
236
  var _Breadcrumbs = _interopRequireDefault(require("./components/Breadcrumbs"));
240
-
241
237
  var _BreadcrumbsItem = _interopRequireDefault(require("./components/BreadcrumbsItem"));
242
-
243
238
  var _BreadcrumbsBordered = _interopRequireDefault(require("./components/BreadcrumbsBordered"));
244
-
245
239
  var _Button = _interopRequireDefault(require("./components/Button"));
246
-
247
240
  var _Card = _interopRequireDefault(require("./components/Card"));
248
-
249
241
  var _CardWithTopImage = _interopRequireDefault(require("./components/CardWithTopImage"));
250
-
251
242
  var _Carousel = _interopRequireDefault(require("./components/Carousel"));
252
-
253
243
  var _ChevronCard = _interopRequireDefault(require("./components/ChevronCard"));
254
-
255
244
  var _Collapsible = _interopRequireDefault(require("./components/Collapsible"));
256
-
257
245
  var _Column = _interopRequireDefault(require("./components/Column"));
258
-
259
246
  var _Container = _interopRequireDefault(require("./components/Container"));
260
-
261
247
  var _Form = _interopRequireDefault(require("./components/Form"));
262
-
263
248
  var _FooterBar = _interopRequireDefault(require("./components/FooterBar"));
264
-
265
249
  var _FyreCard = _interopRequireDefault(require("./components/FyreCard"));
266
-
267
250
  var _Greeting = _interopRequireDefault(require("./components/Greeting"));
268
-
269
251
  var _Icon = _interopRequireDefault(require("./components/Icon"));
270
-
271
252
  var _Image = _interopRequireDefault(require("./components/Image"));
272
-
273
253
  var _ImageLink = _interopRequireDefault(require("./components/ImageLink"));
274
-
275
254
  var _ImageLinkList = _interopRequireDefault(require("./components/ImageLinkList"));
276
-
277
255
  var _InformationIcon = _interopRequireDefault(require("./components/InformationIcon"));
278
-
279
256
  var _Input = _interopRequireDefault(require("./components/Input"));
280
-
281
257
  var _Jumbotron = _interopRequireDefault(require("./components/Jumbotron"));
282
-
283
258
  var _Nav = _interopRequireDefault(require("./components/Nav"));
284
-
285
259
  var _NavItem = _interopRequireDefault(require("./components/NavItem"));
286
-
287
260
  var _NewsCard = _interopRequireDefault(require("./components/NewsCard"));
288
-
289
261
  var _Profile = _interopRequireDefault(require("./components/Profile"));
290
-
291
262
  var _Row = _interopRequireDefault(require("./components/Row"));
292
-
293
263
  var _Search = _interopRequireDefault(require("./components/Search"));
294
-
295
264
  var _SocialBlock = _interopRequireDefault(require("./components/SocialBlock"));
296
-
297
265
  var _StarRating = _interopRequireDefault(require("./components/StarRating"));
298
-
299
266
  var _Testimonial = _interopRequireDefault(require("./components/Testimonial"));
300
-
301
267
  var _TextAndTitle = _interopRequireDefault(require("./components/TextAndTitle"));
302
-
303
268
  var _TextArea = _interopRequireDefault(require("./components/TextArea"));
304
-
305
269
  var _Timeline = _interopRequireDefault(require("./components/Timeline"));
306
-
307
270
  var _UserIcon = _interopRequireDefault(require("./components/UserIcon"));
308
-
309
271
  var _Video = _interopRequireDefault(require("./components/Video"));
310
-
311
272
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import Accordion from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Accordion>;
5
+ export declare const _Accordion: ComponentStory<React.FC<import("./index").Props>>;
6
+ export default componentMeta;
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ import Accordion from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ const items = [
5
+ {
6
+ title: 'This is a title',
7
+ boldTitle: true,
8
+ iconProps: {
9
+ type: 'heart',
10
+ hollow: true
11
+ },
12
+ children: React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."),
13
+ },
14
+ {
15
+ title: 'This is a title',
16
+ subtitle: 'This is a subtitle',
17
+ boldTitle: true,
18
+ iconProps: {
19
+ type: 'heart'
20
+ },
21
+ children: React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."),
22
+ },
23
+ {
24
+ title: 'This is a title',
25
+ subtitle: 'This is a subtitle',
26
+ boldTitle: true,
27
+ iconProps: {
28
+ type: 'heart',
29
+ size: 2,
30
+ hollow: true
31
+ },
32
+ children: React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."),
33
+ },
34
+ {
35
+ title: 'This is a title',
36
+ subtitle: 'This is a subtitle',
37
+ boldTitle: true,
38
+ children: React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."),
39
+ },
40
+ {
41
+ boldTitle: true,
42
+ iconProps: {
43
+ type: 'heart'
44
+ },
45
+ children: React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."),
46
+ },
47
+ {
48
+ title: 'This is title 6',
49
+ boldTitle: true,
50
+ children: React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."),
51
+ }
52
+ ];
53
+ const componentMeta = {
54
+ title: 'Trepur Components/Other/Organisms/Accordion',
55
+ component: Accordion,
56
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { items: {
57
+ description: 'An array of collapsible props',
58
+ control: { type: 'array', default: undefined },
59
+ table: {
60
+ category: 'Accordion',
61
+ type: { summary: 'array' },
62
+ defaultValue: { summary: 'undefined' }
63
+ }
64
+ } }),
65
+ args: {
66
+ items: items
67
+ }
68
+ };
69
+ const Template = (args) => React.createElement(Accordion, Object.assign({}, args));
70
+ export const _Accordion = Template.bind({});
71
+ export default componentMeta;
72
+ //# sourceMappingURL=Accordion.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accordion.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Accordion/Accordion.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,KAAK,GAAG;IACV;QACI,KAAK,EAAE,iBAAiB;QACxB,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,IAAI;SACf;QACD,QAAQ,EAAE,qsBAA0qB;KACvrB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;SAChB;QACD,QAAQ,EAAE,qsBAA0qB;KACvrB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,IAAI;SACf;QACD,QAAQ,EAAE,qsBAA0qB;KACvrB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,qsBAA0qB;KACvrB;IACD;QACI,SAAS,EAAE,IAAI;QACf,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;SAChB;QACD,QAAQ,EAAE,qsBAA0qB;KACvrB;IACD;QACI,KAAK,EAAE,iBAAiB;QACxB,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,qsBAA0qB;KACvrB;CACJ,CAAA;AAED,MAAM,aAAa,GAAoC;IACnD,KAAK,EAAE,6CAA6C;IACpD,SAAS,EAAE,SAAS;IACpB,QAAQ,kCACD,cAAc,KACjB,KAAK,EAAE;YACH,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;YAC9C,KAAK,EAAE;gBACH,QAAQ,EAAE,WAAW;gBACrB,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,GACJ;IACD,IAAI,EAAE;QACF,KAAK,EAAE,KAAK;KACf;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
+ import React from 'react';
2
+ import { Props as collapsibleProps } from '../Collapsible';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ items: Array<collapsibleProps>;
7
+ }
8
+ declare const Accordion: React.FC<Props>;
9
+ export default Accordion;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import Collapsible from '../Collapsible';
3
+ const Accordion = ({ id, className, items }) => {
4
+ return (React.createElement("div", Object.assign({}, (id && { id: id }), { className: className }), items && items.map((item, i) => {
5
+ return (React.createElement(Collapsible, Object.assign({ key: `collapsible_item_${i}` }, item), item.children));
6
+ })));
7
+ };
8
+ export default Accordion;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Accordion/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAyC,MAAM,gBAAgB,CAAA;AAQtE,MAAM,SAAS,GAAoB,CAAC,EAChC,EAAE,EACF,SAAS,EACT,KAAK,EACF,EAAE,EAAE;IACP,OAAO,CACH,6CAAS,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IAAE,SAAS,EAAE,SAAS,KAC5C,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC5B,OAAO,CACH,oBAAC,WAAW,kBACR,GAAG,EAAE,oBAAoB,CAAC,EAAE,IACxB,IAAI,GAEP,IAAI,CAAC,QAAQ,CACJ,CACjB,CAAA;IACL,CAAC,CAAC,CACA,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import AlertBar from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof AlertBar>;
5
+ export declare const _AlertBar: ComponentStory<({ id, className, type, text, theme, leftIconProps, rightIconProps, textCenter, isDismissable, onDismissClick }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,91 @@
1
+ import React from 'react';
2
+ import AlertBar from './index';
3
+ import { idAndClassName } from '@utils/controls';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Rupert Bennett/Atoms/Alert Bar',
6
+ component: AlertBar,
7
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { type: {
8
+ type: { name: 'string', required: false },
9
+ options: ['success', 'warning', 'error', 'info'],
10
+ description: 'The type of alert to render',
11
+ table: {
12
+ type: { summary: 'warning' },
13
+ defaultValue: { summary: 'warning' }
14
+ },
15
+ defaultValue: 'warning',
16
+ control: { type: 'radio' }
17
+ }, text: {
18
+ type: { name: 'string', required: false },
19
+ description: 'The text to display in the component',
20
+ table: {
21
+ type: { summary: 'string' },
22
+ defaultValue: { summary: 'undefined' }
23
+ }
24
+ }, theme: {
25
+ type: { name: 'string', required: false },
26
+ options: ['light', 'dark'],
27
+ description: 'The theme to render the component in',
28
+ table: {
29
+ type: { summary: 'light' },
30
+ defaultValue: { summary: 'light' }
31
+ },
32
+ defaultValue: 'light',
33
+ control: { type: 'radio' }
34
+ }, leftIconProps: {
35
+ description: 'The icon props for the icon to display aligned to the left',
36
+ table: {
37
+ category: '',
38
+ type: { summary: 'string' },
39
+ defaultValue: { summary: 'undefined' }
40
+ }
41
+ }, rightIconProps: {
42
+ description: 'The icon props for the icon to display aligned to the right',
43
+ table: {
44
+ category: '',
45
+ type: { summary: 'string' },
46
+ defaultValue: { summary: 'undefined' }
47
+ }
48
+ }, textCenter: {
49
+ type: { name: 'boolean', required: false },
50
+ description: 'Aligns the text in the center of the component',
51
+ table: {
52
+ type: { summary: 'boolean' },
53
+ defaultValue: { summary: 'false' }
54
+ },
55
+ defaultValue: 'false'
56
+ }, isDismissable: {
57
+ type: { name: 'boolean', required: false },
58
+ description: 'Enables the component to be closed when set to true',
59
+ table: {
60
+ type: { summary: 'boolean' },
61
+ defaultValue: { summary: 'false' }
62
+ },
63
+ defaultValue: 'false'
64
+ }, onDismissClick: {
65
+ type: { name: 'function', required: false },
66
+ description: 'The action to perform when the component is closed',
67
+ action: 'onClick',
68
+ table: {
69
+ type: {
70
+ summary: 'function'
71
+ },
72
+ defaultValue: { summary: 'undefined' }
73
+ }
74
+ } }),
75
+ args: {
76
+ text: 'This is an alert bar message',
77
+ leftIconProps: {
78
+ type: 'heart',
79
+ colour: 'white',
80
+ hollow: true
81
+ },
82
+ rightIconProps: {
83
+ type: 'heart',
84
+ colour: 'white'
85
+ }
86
+ }
87
+ };
88
+ const Template = (args) => React.createElement(AlertBar, Object.assign({}, args));
89
+ export const _AlertBar = Template.bind({});
90
+ export default componentMeta;
91
+ //# sourceMappingURL=AlertBar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlertBar.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/AlertBar/AlertBar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,QAAQ,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,aAAa,GAAmC;IAClD,KAAK,EAAE,kDAAkD;IACzD,SAAS,EAAE,QAAQ;IACnB,QAAQ,kCACD,cAAc,KACjB,IAAI,EAAE;YACF,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;YAChD,WAAW,EAAE,6BAA6B;YAC1C,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aACvC;YACD,YAAY,EAAE,SAAS;YACvB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC7B,EACD,IAAI,EAAE;YACF,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,sCAAsC;YACnD,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,EACD,KAAK,EAAE;YACH,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;YAC1B,WAAW,EAAE,sCAAsC;YACnD,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;aACrC;YACD,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC7B,EACD,aAAa,EAAE;YACX,WAAW,EAAE,4DAA4D;YACzE,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,EACD,cAAc,EAAE;YACZ,WAAW,EAAE,6DAA6D;YAC1E,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,EACD,UAAU,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,gDAAgD;YAC7D,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;aACrC;YACD,YAAY,EAAE,OAAO;SACxB,EACD,aAAa,EAAE;YACX,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC1C,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;aACrC;YACD,YAAY,EAAE,OAAO;SACxB,EACD,cAAc,EAAE;YACZ,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,WAAW,EAAE,oDAAoD;YACjE,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE;gBACH,IAAI,EAAE;oBACF,OAAO,EAAE,UAAU;iBACtB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,GACJ;IACD,IAAI,EAAE;QACF,IAAI,EAAE,8BAA8B;QACpC,aAAa,EAAE;YACX,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,IAAI;SACf;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,OAAO;SAClB;KACJ;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,16 @@
1
+ import React from 'react';
2
+ import { Props as iconProps } from '../Icon';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ type?: 'success' | 'warning' | 'error' | 'info';
7
+ text?: string;
8
+ leftIconProps?: iconProps;
9
+ rightIconProps?: iconProps;
10
+ textCenter?: boolean;
11
+ isDismissable?: boolean;
12
+ theme?: 'light' | 'dark';
13
+ onDismissClick?: React.MouseEventHandler;
14
+ }
15
+ declare const AlertBar: ({ id, className, type, text, theme, leftIconProps, rightIconProps, textCenter, isDismissable, onDismissClick }: Props) => JSX.Element;
16
+ export default AlertBar;
@@ -0,0 +1,62 @@
1
+ import React, { useState } from 'react';
2
+ import Icon from '../Icon';
3
+ import classNames from 'classnames';
4
+ import { getTheme } from '@utils/theme';
5
+ const AlertBar = ({ id, className, type = 'warning', text, theme = 'light', leftIconProps, rightIconProps, textCenter = false, isDismissable = false, onDismissClick }) => {
6
+ const themeToUse = getTheme() || theme;
7
+ const [alertBarStatus, setAlertBarStatus] = useState({
8
+ state: 'open',
9
+ display: true
10
+ });
11
+ const bgColor = classNames({
12
+ [`bg-rupertbennett-success`]: type === 'success' && themeToUse === 'rupertbennett',
13
+ [`bg-rupertbennett-warning`]: type === 'warning' && themeToUse === 'rupertbennett',
14
+ [`bg-rupertbennett-error`]: type === 'error' && themeToUse === 'rupertbennett',
15
+ [`bg-rupertbennett-info-light`]: type === 'info' && themeToUse === 'rupertbennett',
16
+ [`bg-bootson-success`]: type === 'success' && themeToUse === 'bootson',
17
+ [`bg-bootson-warning`]: type === 'warning' && themeToUse === 'bootson',
18
+ [`bg-bootson-error`]: type === 'error' && themeToUse === 'bootson',
19
+ [`bg-bootson-info-light`]: type === 'info' && themeToUse === 'bootson'
20
+ });
21
+ const alertBarState = classNames({
22
+ 'opacity-100': alertBarStatus.state === 'open',
23
+ 'opacity-0': alertBarStatus.state === 'closed',
24
+ 'hidden': alertBarStatus.display === false,
25
+ });
26
+ const classList = classNames(className, bgColor, alertBarState, 'text-white w-parent flex py-2 transition-opactiy duration-700');
27
+ const textClassList = classNames({
28
+ 'text-center': textCenter,
29
+ 'pl-4': !textCenter
30
+ }, 'w-full py-3');
31
+ const rightIconClasses = classNames({
32
+ 'hover:cursor-pointer': isDismissable
33
+ }, 'px-8 pt-3');
34
+ const leftIconClasses = 'pt-3 pl-8';
35
+ const closeAlertBar = () => {
36
+ setAlertBarStatus({
37
+ state: 'closed',
38
+ display: alertBarStatus.display
39
+ });
40
+ setTimeout(() => setAlertBarStatus({
41
+ state: 'closed',
42
+ display: false
43
+ }), 700);
44
+ onDismissClick;
45
+ };
46
+ let dismissIcon = React.createElement(Icon, { type: 'multiply', colour: 'white' });
47
+ let iconLeft = leftIconProps &&
48
+ React.createElement(Icon, Object.assign({}, leftIconProps));
49
+ let iconRight = rightIconProps &&
50
+ React.createElement(Icon, Object.assign({}, rightIconProps));
51
+ return (React.createElement("div", { id: id, className: classList },
52
+ leftIconProps &&
53
+ React.createElement("span", { className: leftIconClasses }, iconLeft),
54
+ React.createElement("h3", { className: textClassList }, text),
55
+ isDismissable &&
56
+ React.createElement("a", { className: rightIconClasses, onClick: closeAlertBar },
57
+ React.createElement("span", null, dismissIcon)),
58
+ iconRight && !isDismissable &&
59
+ React.createElement("span", { className: rightIconClasses }, iconRight)));
60
+ };
61
+ export default AlertBar;
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/AlertBar/index.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import Breadcrumbs from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof Breadcrumbs>;
5
+ export declare const _Breadcrumbs: ComponentStory<({ id, className, links }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import Breadcrumbs from './index';
3
+ const componentMeta = {
4
+ title: 'Trepur Components/Other/Atoms/Breadcrumbs',
5
+ component: Breadcrumbs,
6
+ argTypes: {
7
+ id: {
8
+ description: 'Defines the id of the component',
9
+ table: {
10
+ category: '',
11
+ type: { summary: 'string' },
12
+ defaultValue: { summary: 'undefined' }
13
+ }
14
+ },
15
+ className: {
16
+ description: 'Defines any additional classes for the components',
17
+ table: {
18
+ category: '',
19
+ type: { summary: 'string' },
20
+ defaultValue: { summary: 'undefined' }
21
+ }
22
+ },
23
+ links: {
24
+ description: 'An array of items to be displayed in the component',
25
+ table: {
26
+ category: '',
27
+ type: { summary: 'array' },
28
+ defaultValue: { summary: 'undefined' }
29
+ }
30
+ }
31
+ },
32
+ args: {
33
+ links: [
34
+ {
35
+ href: '/',
36
+ name: 'link 1'
37
+ },
38
+ {
39
+ href: '/',
40
+ name: 'link 2'
41
+ },
42
+ {
43
+ href: '/',
44
+ name: 'link 3'
45
+ },
46
+ {
47
+ href: '/',
48
+ name: 'link 4'
49
+ }
50
+ ]
51
+ }
52
+ };
53
+ const Template = (args) => React.createElement(Breadcrumbs, Object.assign({}, args));
54
+ export const _Breadcrumbs = Template.bind({});
55
+ export default componentMeta;
56
+ //# sourceMappingURL=Breadcrumbs.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Breadcrumbs/Breadcrumbs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,SAAS,CAAA;AAGjC,MAAM,aAAa,GAAsC;IACrD,KAAK,EAAE,2CAA2C;IAClD,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE;QACN,EAAE,EAAE;YACA,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,SAAS,EAAE;YACP,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;QACD,KAAK,EAAE;YACH,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ;KACJ;IACD,IAAI,EAAE;QACF,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAA;AAED,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,WAAW,oBAAK,IAAI,EAAI,CAAA;AAExF,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE7C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ links?: Array<{
6
+ name: string;
7
+ href: string;
8
+ }>;
9
+ }
10
+ declare const Breadcrumbs: ({ id, className, links }: Props) => JSX.Element;
11
+ export default Breadcrumbs;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ const Breadcrumbs = ({ id, className, links }) => {
4
+ const linksLength = links
5
+ ? Object.keys(links).length
6
+ : 0;
7
+ const classList = classNames({}, `${className} flex py-2 px-8`);
8
+ return (React.createElement("ul", { id: id, className: classList }, links && links.map((link, i) => {
9
+ return (React.createElement(React.Fragment, null,
10
+ React.createElement("div", { key: `breadcrumb_${i + 1}`, className: 'flex' },
11
+ React.createElement("li", { className: 'h-8' }, i + 1 >= linksLength ?
12
+ React.createElement("p", { className: 'px-1 py-1' }, link.name)
13
+ :
14
+ React.createElement("p", { className: 'px-1 py-1' },
15
+ React.createElement("a", { className: 'text-facebook hover:underline', href: link.href }, link.name)))),
16
+ i + 1 < linksLength &&
17
+ React.createElement("li", { className: 'h-8' },
18
+ React.createElement("p", { className: 'py-1' }, "\u00A0 > \u00A0"))));
19
+ })));
20
+ };
21
+ export default Breadcrumbs;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AAQnC,MAAM,WAAW,GAAG,CAAC,EACjB,EAAE,EACF,SAAS,EACT,KAAK,EACD,EAAE,EAAE;IACR,MAAM,WAAW,GAAG,KAAK;QACrB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM;QAC3B,CAAC,CAAC,CAAC,CAAA;IAEP,MAAM,SAAS,GAAG,UAAU,CAAC,EAC5B,EAAE,GAAG,SAAS,iBAAiB,CAAC,CAAA;IAEjC,OAAO,CACH,4BAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,IAC3B,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC5B,OAAO,CACH;YACI,6BAAK,GAAG,EAAE,cAAc,CAAC,GAAC,CAAC,EAAE,EAAE,SAAS,EAAC,MAAM;gBAC3C,4BAAI,SAAS,EAAC,KAAK,IACd,CAAC,GAAC,CAAC,IAAI,WAAW,CAAC,CAAC;oBACjB,2BAAG,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,IAAI,CAAK;oBAC5C,CAAC;wBACG,2BAAG,SAAS,EAAC,WAAW;4BACpB,2BACI,SAAS,EAAC,+BAA+B,EACzC,IAAI,EAAE,IAAI,CAAC,IAAI,IACd,IAAI,CAAC,IAAI,CACV,CACJ,CAEP,CACH;YACL,CAAC,GAAC,CAAC,GAAG,WAAW;gBACd,4BAAI,SAAS,EAAC,KAAK;oBACf,2BAAG,SAAS,EAAC,MAAM,sBAAwB,CAC1C,CAEV,CACN,CAAA;IACL,CAAC,CAAC,CACD,CACR,CAAA;AACL,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import BreadcrumbsBordered from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof BreadcrumbsBordered>;
5
+ export declare const _BreadcrumbsBordered: ComponentStory<React.FC<import("./index").Props>>;
6
+ export default componentMeta;
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { idAndClassName } from '@utils/controls';
3
+ import BreadcrumbsBordered from './index';
4
+ const componentMeta = {
5
+ title: 'Trepur Components/Other/Organisms/Breadcrumbs',
6
+ component: BreadcrumbsBordered,
7
+ parameters: {},
8
+ argTypes: Object.assign(Object.assign({}, idAndClassName), { links: {
9
+ description: 'An array of objects to be displayed in the component',
10
+ control: { type: 'array', default: undefined },
11
+ table: {
12
+ category: '',
13
+ type: { summary: 'array' },
14
+ defaultValue: { summary: 'undefined' }
15
+ }
16
+ } }),
17
+ args: {
18
+ links: [
19
+ {
20
+ link: '/',
21
+ name: 'link 1'
22
+ },
23
+ {
24
+ link: '/',
25
+ name: 'link 2'
26
+ },
27
+ {
28
+ link: '/',
29
+ name: 'link 3'
30
+ },
31
+ {
32
+ link: '/',
33
+ name: 'link 4'
34
+ },
35
+ {
36
+ link: '/',
37
+ name: 'link 5'
38
+ }
39
+ ]
40
+ }
41
+ };
42
+ const Template = (args) => React.createElement(BreadcrumbsBordered, Object.assign({}, args));
43
+ export const _BreadcrumbsBordered = Template.bind({});
44
+ export default componentMeta;
45
+ //# sourceMappingURL=BreadcrumbsBordered.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreadcrumbsBordered.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,mBAAmB,MAAM,SAAS,CAAA;AAGzC,MAAM,aAAa,GAA8C;IAC7D,KAAK,EAAE,+CAA+C;IACtD,SAAS,EAAE,mBAAmB;IAC9B,UAAU,EAAE,EAAE;IACd,QAAQ,kCACD,cAAc,KACjB,KAAK,EAAE;YACH,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;YAC9C,KAAK,EAAE;gBACH,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACzC;SACJ,GACJ;IACD,IAAI,EAAE;QACF,KAAK,EAAE;YACH;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;YACD;gBACI,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAA;AAED,MAAM,QAAQ,GAA+C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAA;AAExG,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAErD,eAAe,aAAa,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Props as breadcrumbsItemProps } from '../BreadcrumbsItem/index';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ links?: Array<breadcrumbsItemProps>;
7
+ }
8
+ declare const Breadcrumbs: React.FC<Props>;
9
+ export default Breadcrumbs;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import BreadcrumbsItem from '../BreadcrumbsItem/index';
3
+ const Breadcrumbs = ({ id, className, links }) => {
4
+ const linksLength = links === null || links === void 0 ? void 0 : links.length;
5
+ let classList = 'flex ';
6
+ classList += className ? className : '';
7
+ return (React.createElement("ul", Object.assign({}, (id && { id: id }), { className: classList }), links && links.map((link, i) => {
8
+ let margin = i === 0 ? ' mr-3' : ' mx-3';
9
+ let first = i === 0 ? true : false;
10
+ let bType = 'standard';
11
+ if (linksLength && linksLength >= 1 && i + 1 < linksLength) {
12
+ bType = 'link';
13
+ }
14
+ return (React.createElement(BreadcrumbsItem, { key: `breadcrumb_item_${i + 0}`, className: margin, name: link.name, link: link.link, type: bType, firstItem: first }));
15
+ })));
16
+ };
17
+ export default Breadcrumbs;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsBordered/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,eAAiD,MAAM,0BAA0B,CAAA;AAQxF,MAAM,WAAW,GAAoB,CAAC,EAClC,EAAE,EACF,SAAS,EACT,KAAK,EACR,EAAE,EAAE;IACD,MAAM,WAAW,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA;IACjC,IAAI,SAAS,GAAG,OAAO,CAAA;IACvB,SAAS,IAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAA;IACvC,OAAO,CACH,4CAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,IAAE,SAAS,EAAE,SAAS,KAC3C,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAyB,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,MAAM,GAAG,CAAC,KAAG,CAAC,CAAA,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAA;QACrC,IAAI,KAAK,GAAG,CAAC,KAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAA;QAEhC,IAAI,KAAK,GAAG,UAAU,CAAA;QACtB,IAAI,WAAW,IAAI,WAAW,IAAI,CAAC,IAAI,CAAC,GAAC,CAAC,GAAG,WAAW,EAAC;YACrD,KAAK,GAAG,MAAM,CAAA;SACjB;QACD,OAAO,CACH,oBAAC,eAAe,IACZ,GAAG,EAAE,mBAAmB,CAAC,GAAC,CAAC,EAAE,EAC7B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,KAAK,EACX,SAAS,EAAE,KAAK,GAClB,CACL,CAAA;IACL,CAAC,CAAC,CACD,CACR,CAAA;AACL,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import BreadcrumbsItem from './index';
3
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
4
+ declare const componentMeta: ComponentMeta<typeof BreadcrumbsItem>;
5
+ export declare const _BreadcrumbsItem: ComponentStory<({ id, className, name, link, href, type, firstItem }: import("./index").Props) => JSX.Element>;
6
+ export default componentMeta;