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,48 +0,0 @@
1
- import React from 'react'
2
- import CardWithTopImage from './index'
3
- import logo from '@assets/images/primary-logo.png'
4
- import { ComponentStory, ComponentMeta } from '@storybook/react'
5
- import { idAndClassName } from '@utils/controls'
6
-
7
- const componentMeta: ComponentMeta<typeof CardWithTopImage> = {
8
- title: 'Trepur Components/Rupert Bennett/Organisms/Card With Top Image',
9
- component: CardWithTopImage,
10
- argTypes: {
11
- ...idAndClassName,
12
- children: {
13
- type: { name: 'other', value: 'string | React.ReactNode' },
14
- description: 'The child elements to show in the component',
15
- table: {
16
- type: {
17
- summary: 'Array'
18
- },
19
- defaultValue: { summary: 'undefined' }
20
- }
21
- },
22
- imageProps: {
23
- type: { name: 'other', value: 'object' },
24
- description: 'The props to pass to the image on the component',
25
- table: {
26
- type: {
27
- summary: 'object'
28
- },
29
- defaultValue: { summary: 'undefined' }
30
- }
31
- }
32
- },
33
- args: {
34
- imageProps: {
35
- image: logo,
36
- roundedFull: true,
37
- width: 4,
38
- height: 4
39
- },
40
- children: [<p key='1'>This is a child</p>, <p key='2'>This is another child</p>]
41
- }
42
- }
43
-
44
- const Template: ComponentStory<typeof CardWithTopImage> = (args) => <CardWithTopImage {...args} />
45
-
46
- export const _CardWithTopImage = Template.bind({})
47
-
48
- export default componentMeta
@@ -1,40 +0,0 @@
1
- import React from 'react'
2
- import Image, { Props as imageProps } from '@components/Image'
3
- import classNames from 'classnames'
4
-
5
- export interface Props {
6
- id?: string
7
- className?: string
8
- children?: any
9
- imageProps?: imageProps
10
- }
11
-
12
- const CardWithTopImage = ({
13
- id,
14
- className,
15
- children,
16
- imageProps
17
- }: Props): JSX.Element => {
18
- const wrapperClassList = classNames('rounded-full mx-auto max-w-max bg-white p-4')
19
-
20
- const contentClassList = 'pt-12 px-4 h-auto pb-16 -mt-12 bg-white'
21
-
22
- return (
23
- <div
24
- style={{
25
- filter: 'drop-shadow(0 4px 8px rgb(154, 154, 154))'
26
- }}
27
- id={id}
28
- className={className}
29
- >
30
- <div className={wrapperClassList}>
31
- <Image {...imageProps} />
32
- </div>
33
- <div className={contentClassList}>
34
- {children}
35
- </div>
36
- </div>
37
- )
38
- }
39
-
40
- export default CardWithTopImage
@@ -1,369 +0,0 @@
1
- import React from 'react'
2
- import Carousel from './index'
3
- import { idAndClassName } from '@utils/controls'
4
- import Card from '@components/Card'
5
- import { ComponentStory, ComponentMeta } from '@storybook/react'
6
- import logo from '@assets/images/primary-logo.png'
7
-
8
- const slides = [
9
- <Card
10
- key='card_1'
11
- className='keen-slider__slide'
12
- image={logo}
13
- subTitle='This is a subtitle'
14
- description='This is a description paragraph'
15
- extraText='This is another paragraph'
16
- rounded
17
- bordered
18
- />,
19
- <Card
20
- key='card_2'
21
- className='keen-slider__slide'
22
- image={logo}
23
- subTitle='This is a subtitle'
24
- description='This is a description paragraph'
25
- extraText='This is another paragraph'
26
- rounded
27
- bordered
28
- />,
29
- <Card
30
- key='card_3'
31
- className='keen-slider__slide'
32
- image={logo}
33
- subTitle='This is a subtitle'
34
- description='This is a description paragraph'
35
- extraText='This is another paragraph'
36
- rounded
37
- bordered
38
- />,
39
- <Card
40
- key='card_4'
41
- className='keen-slider__slide'
42
- image={logo}
43
- subTitle='This is a subtitle'
44
- description='This is a description paragraph'
45
- extraText='This is another paragraph'
46
- rounded
47
- bordered
48
- />
49
- ]
50
-
51
- const componentMeta: ComponentMeta<typeof Carousel> = {
52
- title: 'Trepur Components/Rupert Bennett/Organisms/Carousel',
53
- component: Carousel,
54
- parameters: {},
55
- argTypes: {
56
- ...idAndClassName,
57
- breakpoints: {
58
- type: { name: 'number', required: false },
59
- description: 'The slide to begin on',
60
- table: {
61
- category: '',
62
- subcategory: '',
63
- type: { summary: 'number' },
64
- defaultValue: { summary: 'undefined' }
65
- }
66
- },
67
- defaultAnimation: {
68
- type: { name: 'number', required: false },
69
- description: 'The slide to begin on',
70
- table: {
71
- category: '',
72
- subcategory: '',
73
- type: { summary: 'number' },
74
- defaultValue: { summary: 'undefined' }
75
- }
76
- },
77
- drag: {
78
- type: { name: 'boolean', required: false },
79
- description: 'Can the carousel be dragged or not',
80
- table: {
81
- category: '',
82
- subcategory: '',
83
- type: { summary: 'boolean' },
84
- defaultValue: { summary: 'undefined' }
85
- }
86
- },
87
- dragSpeed: {
88
- type: { name: 'number', required: false },
89
- description: 'The slide to begin on',
90
- table: {
91
- category: '',
92
- subcategory: '',
93
- type: { summary: 'number' },
94
- defaultValue: { summary: 'undefined' }
95
- }
96
- },
97
- initial: {
98
- type: { name: 'number', required: false },
99
- description: 'The slide to begin on',
100
- table: {
101
- category: '',
102
- subcategory: '',
103
- type: { summary: 'number' },
104
- defaultValue: { summary: 'undefined' }
105
- }
106
- },
107
- loop: {
108
- type: { name: 'boolean', required: false },
109
- description: 'loop the end back to the start',
110
- table: {
111
- category: '',
112
- subcategory: '',
113
- type: { summary: 'boolean' },
114
- defaultValue: { summary: 'undefined' }
115
- }
116
- },
117
- mode: {
118
- type: { name: 'string', required: false },
119
- description: 'snap, free or snap-free',
120
- table: {
121
- category: '',
122
- subcategory: '',
123
- type: { summary: 'string' },
124
- defaultValue: { summary: 'undefined' }
125
- }
126
- },
127
- range: {
128
- type: { name: 'number', required: false },
129
- description: '',
130
- table: {
131
- category: '',
132
- subcategory: '',
133
- type: { summary: 'number' },
134
- defaultValue: { summary: 'undefined' }
135
- }
136
- },
137
- renderMode: {
138
- type: { name: 'number', required: false },
139
- description: '',
140
- table: {
141
- category: '',
142
- subcategory: '',
143
- type: { summary: 'number' },
144
- defaultValue: { summary: 'undefined' }
145
- }
146
- },
147
- rtl: {
148
- type: { name: 'boolean', required: false },
149
- description: 'to display right to left',
150
- table: {
151
- category: '',
152
- subcategory: '',
153
- type: { summary: 'boolean' },
154
- defaultValue: { summary: 'undefined' }
155
- }
156
- },
157
- rubberband: {
158
- type: { name: 'boolean', required: false },
159
- description: '',
160
- table: {
161
- category: '',
162
- subcategory: '',
163
- type: { summary: 'boolean' },
164
- defaultValue: { summary: 'undefined' }
165
- }
166
- },
167
- slides: {
168
- type: { name: 'boolean', required: false },
169
- description: '',
170
- table: {
171
- category: '',
172
- subcategory: '',
173
- type: { summary: 'boolean' },
174
- defaultValue: { summary: 'undefined' }
175
- }
176
- },
177
- vertical: {
178
- type: { name: 'boolean', required: false },
179
- description: 'displays the slider vertically',
180
- table: {
181
- category: '',
182
- subcategory: '',
183
- type: { summary: 'boolean' },
184
- defaultValue: { summary: 'undefined' }
185
- }
186
- },
187
- animationStarted: {
188
- type: { name: 'boolean', required: false },
189
- description: '',
190
- table: {
191
- category: '',
192
- subcategory: '',
193
- type: { summary: 'boolean' },
194
- defaultValue: { summary: 'undefined' }
195
- }
196
- },
197
- animationStopped: {
198
- type: { name: 'boolean', required: false },
199
- description: '',
200
- table: {
201
- category: '',
202
- subcategory: '',
203
- type: { summary: 'boolean' },
204
- defaultValue: { summary: 'undefined' }
205
- }
206
- },
207
- animationEnded: {
208
- type: { name: 'boolean', required: false },
209
- description: '',
210
- table: {
211
- category: '',
212
- subcategory: '',
213
- type: { summary: 'boolean' },
214
- defaultValue: { summary: 'undefined' }
215
- }
216
- },
217
- destroyed: {
218
- type: { name: 'boolean', required: false },
219
- description: '',
220
- table: {
221
- category: '',
222
- subcategory: '',
223
- type: { summary: 'boolean' },
224
- defaultValue: { summary: 'undefined' }
225
- }
226
- },
227
- detailsChanged: {
228
- type: { name: 'boolean', required: false },
229
- description: '',
230
- table: {
231
- category: '',
232
- subcategory: '',
233
- type: { summary: 'boolean' },
234
- defaultValue: { summary: 'undefined' }
235
- }
236
- },
237
- dragged: {
238
- type: { name: 'boolean', required: false },
239
- description: '',
240
- table: {
241
- category: '',
242
- subcategory: '',
243
- type: { summary: 'boolean' },
244
- defaultValue: { summary: 'undefined' }
245
- }
246
- },
247
- dragStarted: {
248
- type: { name: 'boolean', required: false },
249
- description: '',
250
- table: {
251
- category: '',
252
- subcategory: '',
253
- type: { summary: 'boolean' },
254
- defaultValue: { summary: 'undefined' }
255
- }
256
- },
257
- dragChecked: {
258
- type: { name: 'boolean', required: false },
259
- description: '',
260
- table: {
261
- category: '',
262
- subcategory: '',
263
- type: { summary: 'boolean' },
264
- defaultValue: { summary: 'undefined' }
265
- }
266
- },
267
- dragEnded: {
268
- type: { name: 'boolean', required: false },
269
- description: '',
270
- table: {
271
- category: '',
272
- subcategory: '',
273
- type: { summary: 'boolean' },
274
- defaultValue: { summary: 'undefined' }
275
- }
276
- },
277
- beforeOptionsChanged: {
278
- type: { name: 'boolean', required: false },
279
- description: '',
280
- table: {
281
- category: '',
282
- subcategory: '',
283
- type: { summary: 'boolean' },
284
- defaultValue: { summary: 'undefined' }
285
- }
286
- },
287
- optionsChanged: {
288
- type: { name: 'boolean', required: false },
289
- description: '',
290
- table: {
291
- category: '',
292
- subcategory: '',
293
- type: { summary: 'boolean' },
294
- defaultValue: { summary: 'undefined' }
295
- }
296
- },
297
- updated: {
298
- type: { name: 'boolean', required: false },
299
- description: '',
300
- table: {
301
- category: '',
302
- subcategory: '',
303
- type: { summary: 'boolean' },
304
- defaultValue: { summary: 'undefined' }
305
- }
306
- },
307
- perView: {
308
- type: { name: 'number', required: false },
309
- description: 'The number of slides to show at a time',
310
- table: {
311
- category: '',
312
- subcategory: '',
313
- type: { summary: 'number' },
314
- defaultValue: { summary: 'undefined' }
315
- }
316
- },
317
- spacing: {
318
- type: { name: 'number', required: false },
319
- description: 'The spacing left and right of each slide',
320
- table: {
321
- category: '',
322
- subcategory: '',
323
- type: { summary: 'number' },
324
- defaultValue: { summary: 'undefined' }
325
- }
326
- },
327
- number: {
328
- type: { name: 'number', required: false },
329
- description: '',
330
- table: {
331
- category: '',
332
- subcategory: '',
333
- type: { summary: 'number' },
334
- defaultValue: { summary: 'undefined' }
335
- }
336
- },
337
- origin: {
338
- type: { name: 'boolean', required: false },
339
- description: '',
340
- table: {
341
- category: '',
342
- subcategory: '',
343
- type: { summary: 'boolean' },
344
- defaultValue: { summary: 'undefined' }
345
- }
346
- }
347
- },
348
- args: {
349
- loop: true,
350
- drag: true,
351
- slides,
352
- spacing: 16,
353
- perView: 4,
354
- arrows: {
355
- visible: true
356
- },
357
- dots: {
358
- visible: true,
359
- colours: 'bg-primary',
360
- activeColours: 'bg-secondary'
361
- }
362
- }
363
- }
364
-
365
- const Template: ComponentStory<typeof Carousel> = (args) => <Carousel {...args} />
366
-
367
- export const _Carousel = Template.bind({})
368
-
369
- export default componentMeta