trepur_components 1.0.0 → 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 (285) hide show
  1. package/dist/src/lib/components/Accordion/Accordion.stories.js +19 -11
  2. package/dist/src/lib/components/Accordion/Accordion.stories.js.map +1 -1
  3. package/dist/src/lib/components/Accordion/index.d.ts +1 -2
  4. package/dist/src/lib/components/Accordion/index.js +1 -1
  5. package/dist/src/lib/components/Accordion/index.js.map +1 -1
  6. package/dist/src/lib/components/AlertBar/AlertBar.stories.js +1 -1
  7. package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +1 -1
  8. package/dist/src/lib/components/AlertBar/index.js +21 -19
  9. package/dist/src/lib/components/AlertBar/index.js.map +1 -1
  10. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
  11. package/dist/src/lib/components/Breadcrumbs/index.js +8 -10
  12. package/dist/src/lib/components/Breadcrumbs/index.js.map +1 -1
  13. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +1 -1
  14. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +1 -1
  15. package/dist/src/lib/components/BreadcrumbsBordered/index.d.ts +1 -1
  16. package/dist/src/lib/components/BreadcrumbsBordered/index.js +7 -7
  17. package/dist/src/lib/components/BreadcrumbsBordered/index.js.map +1 -1
  18. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +2 -2
  19. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +1 -1
  20. package/dist/src/lib/components/BreadcrumbsItem/index.js +33 -35
  21. package/dist/src/lib/components/BreadcrumbsItem/index.js.map +1 -1
  22. package/dist/src/lib/components/Button/button.stories.js +64 -19
  23. package/dist/src/lib/components/Button/button.stories.js.map +1 -1
  24. package/dist/src/lib/components/Button/index.js +11 -11
  25. package/dist/src/lib/components/Button/index.js.map +1 -1
  26. package/dist/src/lib/components/Card/Card.stories.d.ts +4 -1
  27. package/dist/src/lib/components/Card/Card.stories.js +32 -32
  28. package/dist/src/lib/components/Card/Card.stories.js.map +1 -1
  29. package/dist/src/lib/components/Card/index.d.ts +3 -3
  30. package/dist/src/lib/components/Card/index.js +43 -40
  31. package/dist/src/lib/components/Card/index.js.map +1 -1
  32. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +3 -3
  33. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +1 -1
  34. package/dist/src/lib/components/CardWithTopImage/index.js +1 -1
  35. package/dist/src/lib/components/CardWithTopImage/index.js.map +1 -1
  36. package/dist/src/lib/components/Carousel/Carousel.stories.js +12 -12
  37. package/dist/src/lib/components/Carousel/Carousel.stories.js.map +1 -1
  38. package/dist/src/lib/components/Carousel/index.d.ts +6 -8
  39. package/dist/src/lib/components/Carousel/index.js +95 -54
  40. package/dist/src/lib/components/Carousel/index.js.map +1 -1
  41. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +1 -1
  42. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +1 -1
  43. package/dist/src/lib/components/ChevronCard/index.js +8 -8
  44. package/dist/src/lib/components/ChevronCard/index.js.map +1 -1
  45. package/dist/src/lib/components/Collapsible/Collapsible.stories.js +5 -3
  46. package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +1 -1
  47. package/dist/src/lib/components/Collapsible/index.d.ts +1 -1
  48. package/dist/src/lib/components/Collapsible/index.js +22 -22
  49. package/dist/src/lib/components/Collapsible/index.js.map +1 -1
  50. package/dist/src/lib/components/Column/Column.stories.js +42 -8
  51. package/dist/src/lib/components/Column/Column.stories.js.map +1 -1
  52. package/dist/src/lib/components/Column/index.js +2 -2
  53. package/dist/src/lib/components/Column/index.js.map +1 -1
  54. package/dist/src/lib/components/Container/Container.stories.js +1 -1
  55. package/dist/src/lib/components/Container/Container.stories.js.map +1 -1
  56. package/dist/src/lib/components/Container/index.js +1 -1
  57. package/dist/src/lib/components/Container/index.js.map +1 -1
  58. package/dist/src/lib/components/FooterBar/footerBar.stories.js +2 -2
  59. package/dist/src/lib/components/FooterBar/footerBar.stories.js.map +1 -1
  60. package/dist/src/lib/components/FooterBar/index.js +1 -1
  61. package/dist/src/lib/components/FooterBar/index.js.map +1 -1
  62. package/dist/src/lib/components/Form/Form.stories.js +1 -1
  63. package/dist/src/lib/components/Form/Form.stories.js.map +1 -1
  64. package/dist/src/lib/components/Form/index.js +4 -4
  65. package/dist/src/lib/components/Form/index.js.map +1 -1
  66. package/dist/src/lib/components/FyreCard/FyreCard.stories.js +3 -3
  67. package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +1 -1
  68. package/dist/src/lib/components/FyreCard/index.js +6 -7
  69. package/dist/src/lib/components/FyreCard/index.js.map +1 -1
  70. package/dist/src/lib/components/Greeting/Greeting.stories.js +1 -1
  71. package/dist/src/lib/components/Greeting/Greeting.stories.js.map +1 -1
  72. package/dist/src/lib/components/Greeting/index.js +4 -4
  73. package/dist/src/lib/components/Greeting/index.js.map +1 -1
  74. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +6 -0
  75. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js +46 -0
  76. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js.map +1 -0
  77. package/dist/src/lib/components/HamburgerIcon/index.d.ts +7 -0
  78. package/dist/src/lib/components/HamburgerIcon/index.js +26 -0
  79. package/dist/src/lib/components/HamburgerIcon/index.js.map +1 -0
  80. package/dist/src/lib/components/Icon/Icon.stories.d.ts +1 -1
  81. package/dist/src/lib/components/Icon/Icon.stories.js +4 -2
  82. package/dist/src/lib/components/Icon/Icon.stories.js.map +1 -1
  83. package/dist/src/lib/components/Icon/index.d.ts +4 -2
  84. package/dist/src/lib/components/Icon/index.js +17 -3
  85. package/dist/src/lib/components/Icon/index.js.map +1 -1
  86. package/dist/src/lib/components/Image/Image.stories.js +2 -2
  87. package/dist/src/lib/components/Image/Image.stories.js.map +1 -1
  88. package/dist/src/lib/components/Image/index.js +3 -3
  89. package/dist/src/lib/components/Image/index.js.map +1 -1
  90. package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +4 -1
  91. package/dist/src/lib/components/ImageLink/ImageLink.stories.js +8 -7
  92. package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +1 -1
  93. package/dist/src/lib/components/ImageLink/index.js +6 -6
  94. package/dist/src/lib/components/ImageLink/index.js.map +1 -1
  95. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +2 -2
  96. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +5 -3
  97. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +1 -1
  98. package/dist/src/lib/components/ImageLinkList/index.d.ts +1 -1
  99. package/dist/src/lib/components/ImageLinkList/index.js +3 -3
  100. package/dist/src/lib/components/ImageLinkList/index.js.map +1 -1
  101. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +5 -3
  102. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +1 -1
  103. package/dist/src/lib/components/InformationIcon/index.d.ts +1 -1
  104. package/dist/src/lib/components/InformationIcon/index.js +12 -13
  105. package/dist/src/lib/components/InformationIcon/index.js.map +1 -1
  106. package/dist/src/lib/components/Input/Input.stories.js +10 -10
  107. package/dist/src/lib/components/Input/Input.stories.js.map +1 -1
  108. package/dist/src/lib/components/Input/index.d.ts +1 -1
  109. package/dist/src/lib/components/Input/index.js +14 -14
  110. package/dist/src/lib/components/Input/index.js.map +1 -1
  111. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +1 -1
  112. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +1 -1
  113. package/dist/src/lib/components/Jumbotron/index.js +1 -1
  114. package/dist/src/lib/components/Jumbotron/index.js.map +1 -1
  115. package/dist/src/lib/components/Nav/Nav.stories.d.ts +6 -0
  116. package/dist/src/lib/components/Nav/Nav.stories.js +12 -12
  117. package/dist/src/lib/components/Nav/Nav.stories.js.map +1 -1
  118. package/dist/src/lib/components/Nav/index.d.ts +2 -2
  119. package/dist/src/lib/components/Nav/index.js +25 -35
  120. package/dist/src/lib/components/Nav/index.js.map +1 -1
  121. package/dist/src/lib/components/NavItem/NavItem.stories.js +1 -1
  122. package/dist/src/lib/components/NavItem/NavItem.stories.js.map +1 -1
  123. package/dist/src/lib/components/NavItem/index.js +2 -2
  124. package/dist/src/lib/components/NavItem/index.js.map +1 -1
  125. package/dist/src/lib/components/NewsCard/NewsCard.stories.js +1 -1
  126. package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +1 -1
  127. package/dist/src/lib/components/NewsCard/index.js +3 -3
  128. package/dist/src/lib/components/NewsCard/index.js.map +1 -1
  129. package/dist/src/lib/components/Profile/Profile.stories.js +2 -2
  130. package/dist/src/lib/components/Profile/Profile.stories.js.map +1 -1
  131. package/dist/src/lib/components/Profile/index.js +9 -11
  132. package/dist/src/lib/components/Profile/index.js.map +1 -1
  133. package/dist/src/lib/components/Row/Row.stories.js +4 -4
  134. package/dist/src/lib/components/Row/Row.stories.js.map +1 -1
  135. package/dist/src/lib/components/Row/index.js.map +1 -1
  136. package/dist/src/lib/components/Search/Search.stories.js +1 -1
  137. package/dist/src/lib/components/Search/Search.stories.js.map +1 -1
  138. package/dist/src/lib/components/Search/index.js +10 -10
  139. package/dist/src/lib/components/Search/index.js.map +1 -1
  140. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +9 -9
  141. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +1 -1
  142. package/dist/src/lib/components/SocialBlock/index.d.ts +2 -2
  143. package/dist/src/lib/components/SocialBlock/index.js +20 -21
  144. package/dist/src/lib/components/SocialBlock/index.js.map +1 -1
  145. package/dist/src/lib/components/StarRating/StarRating.stories.js +1 -1
  146. package/dist/src/lib/components/StarRating/StarRating.stories.js.map +1 -1
  147. package/dist/src/lib/components/StarRating/index.js +3 -3
  148. package/dist/src/lib/components/StarRating/index.js.map +1 -1
  149. package/dist/src/lib/components/Testimonial/Testimonial.stories.js +1 -1
  150. package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +1 -1
  151. package/dist/src/lib/components/Testimonial/index.js.map +1 -1
  152. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +2 -2
  153. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +1 -1
  154. package/dist/src/lib/components/TextAndTitle/index.d.ts +2 -2
  155. package/dist/src/lib/components/TextAndTitle/index.js +55 -64
  156. package/dist/src/lib/components/TextAndTitle/index.js.map +1 -1
  157. package/dist/src/lib/components/TextArea/TextArea.stories.js +3 -3
  158. package/dist/src/lib/components/TextArea/TextArea.stories.js.map +1 -1
  159. package/dist/src/lib/components/TextArea/index.js +4 -3
  160. package/dist/src/lib/components/TextArea/index.js.map +1 -1
  161. package/dist/src/lib/components/Timeline/Timeline.stories.js +12 -13
  162. package/dist/src/lib/components/Timeline/Timeline.stories.js.map +1 -1
  163. package/dist/src/lib/components/Timeline/index.d.ts +1 -1
  164. package/dist/src/lib/components/Timeline/index.js +57 -35
  165. package/dist/src/lib/components/Timeline/index.js.map +1 -1
  166. package/dist/src/lib/components/Tubestops/Tubestops.stories.js +4 -4
  167. package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +1 -1
  168. package/dist/src/lib/components/Tubestops/index.js +5 -5
  169. package/dist/src/lib/components/Tubestops/index.js.map +1 -1
  170. package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +1 -1
  171. package/dist/src/lib/components/UserIcon/index.js +5 -6
  172. package/dist/src/lib/components/UserIcon/index.js.map +1 -1
  173. package/dist/src/lib/components/Video/Video.stories.js +1 -1
  174. package/dist/src/lib/components/Video/Video.stories.js.map +1 -1
  175. package/dist/src/lib/components/Video/index.js +2 -2
  176. package/dist/src/lib/components/Video/index.js.map +1 -1
  177. package/dist/src/lib/index.js.map +1 -1
  178. package/dist/src/lib/typography/Fonts.stories.d.ts +2 -2
  179. package/dist/src/lib/typography/Fonts.stories.js +2 -32
  180. package/dist/src/lib/typography/Fonts.stories.js.map +1 -1
  181. package/dist/src/lib/typography/index.d.ts +4 -2
  182. package/dist/src/lib/typography/index.js.map +1 -1
  183. package/dist/src/lib/utils/controls.js.map +1 -1
  184. package/dist/src/lib/utils/theme.d.ts +3 -2
  185. package/dist/src/lib/utils/theme.js +20 -0
  186. package/dist/src/lib/utils/theme.js.map +1 -1
  187. package/dist/tailwind.config.d.ts +1 -0
  188. package/dist/tailwind.config.js +1 -0
  189. package/dist/tailwind.config.js.map +1 -1
  190. package/package.json +2 -1
  191. package/dist/components/Accordion/Accordion.stories.tsx +0 -88
  192. package/dist/components/Accordion/index.tsx +0 -31
  193. package/dist/components/AlertBar/AlertBar.stories.tsx +0 -105
  194. package/dist/components/AlertBar/index.tsx +0 -127
  195. package/dist/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -60
  196. package/dist/components/Breadcrumbs/index.tsx +0 -55
  197. package/dist/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +0 -52
  198. package/dist/components/BreadcrumbsBordered/index.tsx +0 -44
  199. package/dist/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +0 -54
  200. package/dist/components/BreadcrumbsItem/index.tsx +0 -151
  201. package/dist/components/Button/button.stories.tsx +0 -148
  202. package/dist/components/Button/index.tsx +0 -91
  203. package/dist/components/Card/Card.stories.tsx +0 -150
  204. package/dist/components/Card/index.tsx +0 -162
  205. package/dist/components/CardWithTopImage/CardWithTopImage.stories.tsx +0 -48
  206. package/dist/components/CardWithTopImage/index.tsx +0 -40
  207. package/dist/components/Carousel/Carousel.stories.tsx +0 -369
  208. package/dist/components/Carousel/index.tsx +0 -267
  209. package/dist/components/ChevronCard/ChevronCard.stories.tsx +0 -21
  210. package/dist/components/ChevronCard/index.tsx +0 -39
  211. package/dist/components/Collapsible/Collapsible.stories.tsx +0 -70
  212. package/dist/components/Collapsible/index.tsx +0 -124
  213. package/dist/components/Column/Column.stories.tsx +0 -82
  214. package/dist/components/Column/index.tsx +0 -114
  215. package/dist/components/Container/Container.stories.tsx +0 -38
  216. package/dist/components/Container/index.tsx +0 -30
  217. package/dist/components/FooterBar/footerBar.stories.tsx +0 -57
  218. package/dist/components/FooterBar/index.tsx +0 -44
  219. package/dist/components/Form/Form.stories.tsx +0 -93
  220. package/dist/components/Form/index.tsx +0 -58
  221. package/dist/components/FyreCard/FyreCard.stories.tsx +0 -29
  222. package/dist/components/FyreCard/index.tsx +0 -46
  223. package/dist/components/Greeting/Greeting.stories.tsx +0 -42
  224. package/dist/components/Greeting/index.tsx +0 -46
  225. package/dist/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -50
  226. package/dist/components/HamburgerIcon/index.tsx +0 -65
  227. package/dist/components/Icon/Icon.stories.tsx +0 -102
  228. package/dist/components/Icon/index.tsx +0 -112
  229. package/dist/components/Image/Image.stories.tsx +0 -88
  230. package/dist/components/Image/index.tsx +0 -113
  231. package/dist/components/ImageLink/ImageLink.stories.tsx +0 -60
  232. package/dist/components/ImageLink/index.tsx +0 -62
  233. package/dist/components/ImageLinkList/ImageLinkList.stories.tsx +0 -32
  234. package/dist/components/ImageLinkList/index.tsx +0 -33
  235. package/dist/components/InformationIcon/InformationIcon.stories.tsx +0 -86
  236. package/dist/components/InformationIcon/index.tsx +0 -84
  237. package/dist/components/Input/Input.stories.tsx +0 -99
  238. package/dist/components/Input/index.tsx +0 -126
  239. package/dist/components/Jumbotron/Jumbotron.stories.tsx +0 -22
  240. package/dist/components/Jumbotron/index.tsx +0 -25
  241. package/dist/components/Nav/Nav.stories.tsx +0 -155
  242. package/dist/components/Nav/index.tsx +0 -180
  243. package/dist/components/NavItem/NavItem.stories.tsx +0 -89
  244. package/dist/components/NavItem/index.tsx +0 -65
  245. package/dist/components/NewsCard/NewsCard.stories.tsx +0 -71
  246. package/dist/components/NewsCard/index.tsx +0 -48
  247. package/dist/components/Profile/Profile.stories.tsx +0 -50
  248. package/dist/components/Profile/index.tsx +0 -87
  249. package/dist/components/Row/Row.stories.tsx +0 -51
  250. package/dist/components/Row/index.tsx +0 -24
  251. package/dist/components/Search/Search.stories.tsx +0 -58
  252. package/dist/components/Search/index.tsx +0 -58
  253. package/dist/components/SocialBlock/SocialBlock.stories.tsx +0 -114
  254. package/dist/components/SocialBlock/index.tsx +0 -161
  255. package/dist/components/StarRating/StarRating.stories.tsx +0 -23
  256. package/dist/components/StarRating/index.tsx +0 -71
  257. package/dist/components/Testimonial/Testimonial.stories.tsx +0 -110
  258. package/dist/components/Testimonial/index.tsx +0 -50
  259. package/dist/components/TextAndTitle/TextAndTitle.stories.tsx +0 -65
  260. package/dist/components/TextAndTitle/index.tsx +0 -257
  261. package/dist/components/TextArea/TextArea.stories.tsx +0 -67
  262. package/dist/components/TextArea/index.tsx +0 -97
  263. package/dist/components/Timeline/Timeline.stories.tsx +0 -100
  264. package/dist/components/Timeline/index.css +0 -133
  265. package/dist/components/Timeline/index.tsx +0 -315
  266. package/dist/components/Tubestops/Tubestops.stories.tsx +0 -66
  267. package/dist/components/Tubestops/index.css +0 -92
  268. package/dist/components/Tubestops/index.tsx +0 -77
  269. package/dist/components/UserIcon/UserIcon.stories.tsx +0 -67
  270. package/dist/components/UserIcon/index.tsx +0 -42
  271. package/dist/components/Video/Video.stories.tsx +0 -23
  272. package/dist/components/Video/index.tsx +0 -49
  273. package/dist/fonts/Sora/OFL.txt +0 -93
  274. package/dist/fonts/Sora/README.txt +0 -70
  275. package/dist/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  276. package/dist/fonts/Sora/static/Sora-Bold.ttf +0 -0
  277. package/dist/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  278. package/dist/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  279. package/dist/fonts/Sora/static/Sora-Light.ttf +0 -0
  280. package/dist/fonts/Sora/static/Sora-Medium.ttf +0 -0
  281. package/dist/fonts/Sora/static/Sora-Regular.ttf +0 -0
  282. package/dist/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  283. package/dist/fonts/Sora/static/Sora-Thin.ttf +0 -0
  284. package/dist/index.js +0 -272
  285. package/dist/styles/base.css +0 -73
@@ -1,88 +0,0 @@
1
- import React from 'react'
2
- import Accordion from './index'
3
- import { idAndClassName } from '@utils/controls'
4
- import { ComponentStory, ComponentMeta } from '@storybook/react'
5
-
6
- const items = [
7
- {
8
- title: 'This is a title',
9
- boldTitle: true,
10
- iconProps: {
11
- type: 'heart',
12
- hollow: true,
13
- colour: 'white',
14
- bgColour: 'primary'
15
- },
16
- children: <p>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.</p>
17
- },
18
- {
19
- title: 'This is a title',
20
- subtitle: 'This is a subtitle',
21
- boldTitle: true,
22
- iconProps: {
23
- type: 'heart',
24
- colour: 'white',
25
- bgColour: 'primary'
26
- },
27
- children: <p>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.</p>
28
- },
29
- {
30
- title: 'This is a title',
31
- subtitle: 'This is a subtitle',
32
- boldTitle: true,
33
- iconProps: {
34
- type: 'heart',
35
- size: 2,
36
- hollow: true,
37
- colour: 'white',
38
- bgColour: 'primary'
39
- },
40
- children: <p>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.</p>
41
- },
42
- {
43
- title: 'This is a title',
44
- subtitle: 'This is a subtitle',
45
- boldTitle: true,
46
- children: <p>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.</p>
47
- },
48
- {
49
- boldTitle: true,
50
- iconProps: {
51
- type: 'heart',
52
- colour: 'white',
53
- bgColour: 'primary'
54
- },
55
- children: <p>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.</p>
56
- },
57
- {
58
- title: 'This is title 6',
59
- boldTitle: true,
60
- children: <p>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.</p>
61
- }
62
- ]
63
-
64
- const componentMeta: ComponentMeta<typeof Accordion> = {
65
- title: 'Trepur Components/Other/Organisms/Accordion',
66
- component: Accordion,
67
- argTypes: {
68
- ...idAndClassName,
69
- items: {
70
- description: 'An array of collapsible props',
71
- control: { type: 'array', default: undefined },
72
- table: {
73
- category: 'Accordion',
74
- type: { summary: 'array' },
75
- defaultValue: { summary: 'undefined' }
76
- }
77
- }
78
- },
79
- args: {
80
- items
81
- }
82
- }
83
-
84
- const Template: ComponentStory<typeof Accordion> = (args) => <Accordion {...args} />
85
-
86
- export const _Accordion = Template.bind({})
87
-
88
- export default componentMeta
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
- import Collapsible, { Props as collapsibleProps } from '@components/Collapsible'
3
-
4
- export interface Props {
5
- id?: string
6
- className?: string
7
- items: collapsibleProps[]
8
- }
9
-
10
- const Accordion: React.FC<Props> = ({
11
- id,
12
- className,
13
- items
14
- }: Props): JSX.Element => {
15
- return (
16
- <div id={id} className={className}>
17
- {items?.map((item, i) => {
18
- return (
19
- <Collapsible
20
- key={`collapsible_item_${i}`}
21
- {...item}
22
- >
23
- {item.children}
24
- </Collapsible>
25
- )
26
- })}
27
- </div>
28
- )
29
- }
30
-
31
- export default Accordion
@@ -1,105 +0,0 @@
1
- import React from 'react'
2
- import AlertBar from './index'
3
- import { ComponentStory, ComponentMeta } from '@storybook/react'
4
- import { idAndClassName } from '@utils/controls'
5
-
6
- const componentMeta: ComponentMeta<typeof AlertBar> = {
7
- title: 'Trepur Components/Rupert Bennett/Atoms/Alert Bar',
8
- component: AlertBar,
9
- argTypes: {
10
- ...idAndClassName,
11
- type: {
12
- type: { name: 'string', required: false },
13
- options: ['success', 'warning', 'error', 'info'],
14
- description: 'The type of alert to render',
15
- table: {
16
- type: { summary: 'warning' },
17
- defaultValue: { summary: 'warning' }
18
- },
19
- defaultValue: 'warning',
20
- control: { type: 'radio' }
21
- },
22
- text: {
23
- type: { name: 'string', required: false },
24
- description: 'The text to display in the component',
25
- table: {
26
- type: { summary: 'string' },
27
- defaultValue: { summary: 'undefined' }
28
- }
29
- },
30
- theme: {
31
- type: { name: 'string', required: false },
32
- options: ['light', 'dark'],
33
- description: 'The theme to render the component in',
34
- table: {
35
- type: { summary: 'light' },
36
- defaultValue: { summary: 'light' }
37
- },
38
- defaultValue: 'light',
39
- control: { type: 'radio' }
40
- },
41
- leftIconProps: {
42
- description: 'The icon props for the icon to display aligned to the left',
43
- table: {
44
- category: '',
45
- type: { summary: 'string' },
46
- defaultValue: { summary: 'undefined' }
47
- }
48
- },
49
- rightIconProps: {
50
- description: 'The icon props for the icon to display aligned to the right',
51
- table: {
52
- category: '',
53
- type: { summary: 'string' },
54
- defaultValue: { summary: 'undefined' }
55
- }
56
- },
57
- textCenter: {
58
- type: { name: 'boolean', required: false },
59
- description: 'Aligns the text in the center of the component',
60
- table: {
61
- type: { summary: 'boolean' },
62
- defaultValue: { summary: 'false' }
63
- },
64
- defaultValue: 'false'
65
- },
66
- isDismissable: {
67
- type: { name: 'boolean', required: false },
68
- description: 'Enables the component to be closed when set to true',
69
- table: {
70
- type: { summary: 'boolean' },
71
- defaultValue: { summary: 'false' }
72
- },
73
- defaultValue: 'false'
74
- },
75
- onDismissClick: {
76
- type: { name: 'function', required: false },
77
- description: 'The action to perform when the component is closed',
78
- action: 'onClick',
79
- table: {
80
- type: {
81
- summary: 'function'
82
- },
83
- defaultValue: { summary: 'undefined' }
84
- }
85
- }
86
- },
87
- args: {
88
- text: 'This is an alert bar message',
89
- leftIconProps: {
90
- type: 'heart',
91
- colour: 'white',
92
- hollow: true
93
- },
94
- rightIconProps: {
95
- type: 'heart',
96
- colour: 'white'
97
- }
98
- }
99
- }
100
-
101
- const Template: ComponentStory<typeof AlertBar> = (args) => <AlertBar {...args} />
102
-
103
- export const _AlertBar = Template.bind({})
104
-
105
- export default componentMeta
@@ -1,127 +0,0 @@
1
- import React, { useState } from 'react'
2
- import Icon, { Props as iconProps } from '@components/Icon'
3
- import classNames from 'classnames'
4
- import { getTheme } from '@utils/theme'
5
-
6
- export interface Props {
7
- id?: string
8
- className?: string
9
- type?: 'success' | 'warning' | 'error' | 'info'
10
- text?: string
11
- leftIconProps?: iconProps
12
- rightIconProps?: iconProps
13
- textCenter?: boolean
14
- isDismissable?: boolean
15
- theme?: 'light' | 'dark'
16
- onDismissClick?: React.MouseEventHandler
17
- }
18
-
19
- const AlertBar = ({
20
- id,
21
- className,
22
- type = 'warning',
23
- text,
24
- theme = 'light',
25
- leftIconProps,
26
- rightIconProps,
27
- textCenter = false,
28
- isDismissable = false,
29
- onDismissClick
30
- }: Props): JSX.Element => {
31
- const themeToUse: string = getTheme()
32
- const [alertBarStatus, setAlertBarStatus] = useState({
33
- state: 'open',
34
- display: true
35
- })
36
-
37
- const bgColor = classNames({
38
- 'bg-rupertbennett-success': type === 'success' && themeToUse === 'rupertbennett',
39
- 'bg-rupertbennett-warning': type === 'warning' && themeToUse === 'rupertbennett',
40
- 'bg-rupertbennett-error': type === 'error' && themeToUse === 'rupertbennett',
41
- 'bg-rupertbennett-info-light': type === 'info' && themeToUse === 'rupertbennett',
42
- 'bg-bootson-success': type === 'success' && themeToUse === 'bootson',
43
- 'bg-bootson-warning': type === 'warning' && themeToUse === 'bootson',
44
- 'bg-bootson-error': type === 'error' && themeToUse === 'bootson',
45
- 'bg-bootson-info-light': type === 'info' && themeToUse === 'bootson'
46
- })
47
-
48
- const alertBarState = classNames({
49
- 'opacity-100': alertBarStatus.state === 'open',
50
- 'opacity-0': alertBarStatus.state === 'closed',
51
- hidden: !alertBarStatus.display
52
- })
53
-
54
- const classList = classNames(
55
- className,
56
- bgColor,
57
- alertBarState,
58
- 'text-white w-parent flex py-2 transition-opactiy duration-700'
59
- )
60
-
61
- const textClassList = classNames({
62
- 'text-center': textCenter,
63
- 'pl-4': !textCenter
64
- }, 'w-full py-3')
65
-
66
- const rightIconClasses = classNames({
67
- 'hover:cursor-pointer': isDismissable
68
- }, 'px-8 pt-3')
69
-
70
- const leftIconClasses = 'pt-3 pl-8'
71
-
72
- const closeAlertBar = (e: any): void => {
73
- setAlertBarStatus({
74
- state: 'closed',
75
- display: alertBarStatus.display
76
- })
77
- setTimeout(() => setAlertBarStatus({
78
- state: 'closed',
79
- display: false
80
- }), 700)
81
- if (onDismissClick != null) {
82
- onDismissClick(e)
83
- }
84
- }
85
-
86
- const dismissIcon = (
87
- <Icon
88
- type='multiply'
89
- colour='white'
90
- />
91
- )
92
-
93
- const iconLeft = (leftIconProps != null) &&
94
- <Icon
95
- {...leftIconProps}
96
- />
97
-
98
- const iconRight = (rightIconProps != null) &&
99
- <Icon
100
- {...rightIconProps}
101
- />
102
-
103
- return (
104
- <div
105
- id={id}
106
- className={classList}
107
- >
108
- {(leftIconProps != null) &&
109
- <span className={leftIconClasses}>
110
- {iconLeft}
111
- </span>}
112
- <h3 className={textClassList}>{text}</h3>
113
- {isDismissable &&
114
- <a className={rightIconClasses} onClick={(e) => closeAlertBar(e)}>
115
- <span>
116
- {dismissIcon}
117
- </span>
118
- </a>}
119
- {(iconRight != null) && !isDismissable &&
120
- <span className={rightIconClasses}>
121
- {iconRight}
122
- </span>}
123
- </div>
124
- )
125
- }
126
-
127
- export default AlertBar
@@ -1,60 +0,0 @@
1
- import React from 'react'
2
- import Breadcrumbs from './index'
3
- import { ComponentStory, ComponentMeta } from '@storybook/react'
4
-
5
- const componentMeta: ComponentMeta<typeof Breadcrumbs> = {
6
- title: 'Trepur Components/Other/Atoms/Breadcrumbs',
7
- component: Breadcrumbs,
8
- argTypes: {
9
- id: {
10
- description: 'Defines the id of the component',
11
- table: {
12
- category: '',
13
- type: { summary: 'string' },
14
- defaultValue: { summary: 'undefined' }
15
- }
16
- },
17
- className: {
18
- description: 'Defines any additional classes for the components',
19
- table: {
20
- category: '',
21
- type: { summary: 'string' },
22
- defaultValue: { summary: 'undefined' }
23
- }
24
- },
25
- links: {
26
- description: 'An array of items to be displayed in the component',
27
- table: {
28
- category: '',
29
- type: { summary: 'array' },
30
- defaultValue: { summary: 'undefined' }
31
- }
32
- }
33
- },
34
- args: {
35
- links: [
36
- {
37
- href: '/',
38
- name: 'link 1'
39
- },
40
- {
41
- href: '/',
42
- name: 'link 2'
43
- },
44
- {
45
- href: '/',
46
- name: 'link 3'
47
- },
48
- {
49
- href: '/',
50
- name: 'link 4'
51
- }
52
- ]
53
- }
54
- }
55
-
56
- const Template: ComponentStory<typeof Breadcrumbs> = (args) => <Breadcrumbs {...args} />
57
-
58
- export const _Breadcrumbs = Template.bind({})
59
-
60
- export default componentMeta
@@ -1,55 +0,0 @@
1
- import React from 'react'
2
- import classNames from 'classnames'
3
-
4
- export interface Props {
5
- id?: string
6
- className?: string
7
- links?: Array<{ name: string, href: string }>
8
- }
9
-
10
- const Breadcrumbs = ({
11
- id,
12
- className,
13
- links
14
- }: Props): JSX.Element => {
15
- const linksLength = (links != null)
16
- ? Object.keys(links).length
17
- : 0
18
-
19
- const classList = classNames(className, 'flex py-2 px-8')
20
-
21
- return (
22
- <ul id={id} className={classList}>
23
- {links?.map((link, i) => {
24
- return (
25
- <div key={`breadcrumb_${i + 1}`} className='flex'>
26
- <li className='h-8'>
27
- {i + 1 >= linksLength
28
- ? (
29
- <p className='px-1 py-1'>
30
- {link.name}
31
- </p>
32
- )
33
- : (
34
- <p className='px-1 py-1'>
35
- <a
36
- className='text-facebook hover:underline'
37
- href={link.href}
38
- >
39
- {link.name}
40
- </a>
41
- </p>
42
- )}
43
- </li>
44
- {i + 1 < linksLength &&
45
- <li className='h-8'>
46
- <p className='py-1'>&nbsp; &#62; &nbsp;</p>
47
- </li>}
48
- </div>
49
- )
50
- })}
51
- </ul>
52
- )
53
- }
54
-
55
- export default Breadcrumbs
@@ -1,52 +0,0 @@
1
- import React from 'react'
2
- import { idAndClassName } from '@utils/controls'
3
- import BreadcrumbsBordered from './index'
4
- import { ComponentStory, ComponentMeta } from '@storybook/react'
5
-
6
- const componentMeta: ComponentMeta<typeof BreadcrumbsBordered> = {
7
- title: 'Trepur Components/Other/Organisms/Breadcrumbs',
8
- component: BreadcrumbsBordered,
9
- parameters: {},
10
- argTypes: {
11
- ...idAndClassName,
12
- links: {
13
- description: 'An array of objects to be displayed in the component',
14
- control: { type: 'array', default: undefined },
15
- table: {
16
- category: '',
17
- type: { summary: 'array' },
18
- defaultValue: { summary: 'undefined' }
19
- }
20
- }
21
- },
22
- args: {
23
- links: [
24
- {
25
- link: '/',
26
- name: 'link 1'
27
- },
28
- {
29
- link: '/',
30
- name: 'link 2'
31
- },
32
- {
33
- link: '/',
34
- name: 'link 3'
35
- },
36
- {
37
- link: '/',
38
- name: 'link 4'
39
- },
40
- {
41
- link: '/',
42
- name: 'link 5'
43
- }
44
- ]
45
- }
46
- }
47
-
48
- const Template: ComponentStory<typeof BreadcrumbsBordered> = (args) => <BreadcrumbsBordered {...args} />
49
-
50
- export const _BreadcrumbsBordered = Template.bind({})
51
-
52
- export default componentMeta
@@ -1,44 +0,0 @@
1
- import React from 'react'
2
- import BreadcrumbsItem, { Props as breadcrumbsItemProps } from '@components/BreadcrumbsItem/index'
3
- import classNames from 'classnames'
4
-
5
- export interface Props {
6
- id?: string
7
- className?: string
8
- links?: breadcrumbsItemProps[]
9
- }
10
-
11
- const Breadcrumbs: React.FC<Props> = ({
12
- id,
13
- className,
14
- links
15
- }) => {
16
- const linksLength = links?.length !== undefined ? links.length : 0
17
- const classList = classNames(className, 'flex')
18
-
19
- return (
20
- <ul id={id} className={classList}>
21
- {links?.map((link: breadcrumbsItemProps, i: number) => {
22
- const margin = i === 0 ? ' mr-3' : ' mx-3'
23
- const first = i === 0
24
-
25
- let bType = 'standard'
26
- if (linksLength >= 1 && i + 1 < linksLength) {
27
- bType = 'link'
28
- }
29
- return (
30
- <BreadcrumbsItem
31
- key={`breadcrumb_item_${i + 0}`}
32
- className={margin}
33
- name={link.name}
34
- link={link.link}
35
- type={bType}
36
- firstItem={first}
37
- />
38
- )
39
- })}
40
- </ul>
41
- )
42
- }
43
-
44
- export default Breadcrumbs
@@ -1,54 +0,0 @@
1
- import React from 'react'
2
- import BreadcrumbsItem from './index'
3
- import { ComponentStory, ComponentMeta } from '@storybook/react'
4
-
5
- const componentMeta: ComponentMeta<typeof BreadcrumbsItem> = {
6
- title: 'Trepur Components/Other/Atoms/Breadcrumbs Item',
7
- component: BreadcrumbsItem,
8
- parameters: {},
9
- argTypes: {
10
- id: {
11
- description: 'Defines the id of the component',
12
- table: {
13
- category: '',
14
- type: { summary: 'string' },
15
- defaultValue: { summary: 'undefined' }
16
- }
17
- },
18
- className: {
19
- description: 'Defines any additional classes for the components',
20
- table: {
21
- category: '',
22
- type: { summary: 'string' },
23
- defaultValue: { summary: 'undefined' }
24
- }
25
- },
26
- name: {
27
- description: 'Specifies the name for the key attribute',
28
- table: {
29
- category: '',
30
- type: { summary: 'string' },
31
- defaultValue: { summary: 'undefined' }
32
- }
33
- },
34
- type: {
35
- description: 'Specifies the type of breadcrumbs to display ie link',
36
- table: {
37
- category: '',
38
- type: { summary: 'string' },
39
- defaultValue: { summary: 'undefined' }
40
- }
41
- }
42
- },
43
- args: {
44
- name: 'Link 1',
45
- href: '/',
46
- firstItem: false
47
- }
48
- }
49
-
50
- const Template: ComponentStory<typeof BreadcrumbsItem> = (args) => <BreadcrumbsItem {...args} />
51
-
52
- export const _BreadcrumbsItem = Template.bind({})
53
-
54
- export default componentMeta