trepur_components 1.0.2 → 1.0.4

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 (237) hide show
  1. package/dist/src/lib/components/Accordion/index.js +3 -1
  2. package/dist/src/lib/components/Accordion/index.js.map +1 -1
  3. package/dist/src/lib/components/Accordion/style.module.css +4 -0
  4. package/dist/src/lib/components/Accordion/style.module.css.map +1 -0
  5. package/dist/src/lib/components/Carousel/index.d.ts +0 -1
  6. package/dist/src/lib/components/Carousel/index.js +1 -1
  7. package/dist/src/lib/components/Carousel/index.js.map +1 -1
  8. package/dist/src/lib/components/ImageLinkList/index.d.ts +1 -1
  9. package/dist/src/lib/components/Nav/index.d.ts +1 -1
  10. package/dist/src/lib/components/Nav/index.js +2 -2
  11. package/dist/src/lib/components/Nav/index.js.map +1 -1
  12. package/dist/src/lib/components/SocialBlock/index.js +2 -2
  13. package/dist/src/lib/components/SocialBlock/index.js.map +1 -1
  14. package/dist/{components → src/lib/components}/Timeline/index.css +2 -0
  15. package/dist/src/lib/components/Timeline/index.css.map +1 -0
  16. package/dist/{components → src/lib/components}/Tubestops/index.css +35 -30
  17. package/dist/src/lib/components/Tubestops/index.css.map +1 -0
  18. package/dist/src/lib/typography/index.d.ts +1 -3
  19. package/dist/src/lib/typography/index.js +1 -1
  20. package/dist/src/lib/typography/index.js.map +1 -1
  21. package/package.json +13 -6
  22. package/dist/components/Accordion/Accordion.stories.tsx +0 -88
  23. package/dist/components/Accordion/index.tsx +0 -31
  24. package/dist/components/AlertBar/AlertBar.stories.tsx +0 -105
  25. package/dist/components/AlertBar/index.tsx +0 -127
  26. package/dist/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -60
  27. package/dist/components/Breadcrumbs/index.tsx +0 -55
  28. package/dist/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +0 -52
  29. package/dist/components/BreadcrumbsBordered/index.tsx +0 -44
  30. package/dist/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +0 -54
  31. package/dist/components/BreadcrumbsItem/index.tsx +0 -151
  32. package/dist/components/Button/button.stories.tsx +0 -148
  33. package/dist/components/Button/index.tsx +0 -91
  34. package/dist/components/Card/Card.stories.tsx +0 -150
  35. package/dist/components/Card/index.tsx +0 -162
  36. package/dist/components/CardWithTopImage/CardWithTopImage.stories.tsx +0 -48
  37. package/dist/components/CardWithTopImage/index.tsx +0 -40
  38. package/dist/components/Carousel/Carousel.stories.tsx +0 -369
  39. package/dist/components/Carousel/index.tsx +0 -267
  40. package/dist/components/ChevronCard/ChevronCard.stories.tsx +0 -21
  41. package/dist/components/ChevronCard/index.tsx +0 -39
  42. package/dist/components/Collapsible/Collapsible.stories.tsx +0 -70
  43. package/dist/components/Collapsible/index.tsx +0 -124
  44. package/dist/components/Column/Column.stories.tsx +0 -82
  45. package/dist/components/Column/index.tsx +0 -114
  46. package/dist/components/Container/Container.stories.tsx +0 -38
  47. package/dist/components/Container/index.tsx +0 -30
  48. package/dist/components/FooterBar/FooterBar.stories.tsx +0 -57
  49. package/dist/components/FooterBar/index.tsx +0 -44
  50. package/dist/components/Form/Form.stories.tsx +0 -93
  51. package/dist/components/Form/index.tsx +0 -58
  52. package/dist/components/FyreCard/FyreCard.stories.tsx +0 -29
  53. package/dist/components/FyreCard/index.tsx +0 -46
  54. package/dist/components/Greeting/Greeting.stories.tsx +0 -42
  55. package/dist/components/Greeting/index.tsx +0 -46
  56. package/dist/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -50
  57. package/dist/components/HamburgerIcon/index.tsx +0 -65
  58. package/dist/components/Icon/Icon.stories.tsx +0 -102
  59. package/dist/components/Icon/index.tsx +0 -112
  60. package/dist/components/Image/Image.stories.tsx +0 -88
  61. package/dist/components/Image/index.tsx +0 -113
  62. package/dist/components/ImageLink/ImageLink.stories.tsx +0 -60
  63. package/dist/components/ImageLink/index.tsx +0 -62
  64. package/dist/components/ImageLinkList/ImageLinkList.stories.tsx +0 -34
  65. package/dist/components/ImageLinkList/index.tsx +0 -33
  66. package/dist/components/InformationIcon/InformationIcon.stories.tsx +0 -86
  67. package/dist/components/InformationIcon/index.tsx +0 -84
  68. package/dist/components/Input/Input.stories.tsx +0 -99
  69. package/dist/components/Input/index.tsx +0 -126
  70. package/dist/components/Jumbotron/Jumbotron.stories.tsx +0 -22
  71. package/dist/components/Jumbotron/index.tsx +0 -25
  72. package/dist/components/Nav/Nav.stories.tsx +0 -155
  73. package/dist/components/Nav/index.tsx +0 -180
  74. package/dist/components/NavItem/NavItem.stories.tsx +0 -89
  75. package/dist/components/NavItem/index.tsx +0 -65
  76. package/dist/components/NewsCard/NewsCard.stories.tsx +0 -71
  77. package/dist/components/NewsCard/index.tsx +0 -48
  78. package/dist/components/Profile/Profile.stories.tsx +0 -50
  79. package/dist/components/Profile/index.tsx +0 -87
  80. package/dist/components/Row/Row.stories.tsx +0 -51
  81. package/dist/components/Row/index.tsx +0 -24
  82. package/dist/components/Search/Search.stories.tsx +0 -58
  83. package/dist/components/Search/index.tsx +0 -58
  84. package/dist/components/SocialBlock/SocialBlock.stories.tsx +0 -114
  85. package/dist/components/SocialBlock/index.tsx +0 -161
  86. package/dist/components/StarRating/StarRating.stories.tsx +0 -23
  87. package/dist/components/StarRating/index.tsx +0 -71
  88. package/dist/components/Testimonial/Testimonial.stories.tsx +0 -110
  89. package/dist/components/Testimonial/index.tsx +0 -50
  90. package/dist/components/TextAndTitle/TextAndTitle.stories.tsx +0 -65
  91. package/dist/components/TextAndTitle/index.tsx +0 -257
  92. package/dist/components/TextArea/TextArea.stories.tsx +0 -67
  93. package/dist/components/TextArea/index.tsx +0 -97
  94. package/dist/components/Timeline/Timeline.stories.tsx +0 -100
  95. package/dist/components/Timeline/index.tsx +0 -315
  96. package/dist/components/Tubestops/Tubestops.stories.tsx +0 -66
  97. package/dist/components/Tubestops/index.tsx +0 -77
  98. package/dist/components/UserIcon/UserIcon.stories.tsx +0 -67
  99. package/dist/components/UserIcon/index.tsx +0 -42
  100. package/dist/components/Video/Video.stories.tsx +0 -23
  101. package/dist/components/Video/index.tsx +0 -49
  102. package/dist/fonts/Sora/OFL.txt +0 -93
  103. package/dist/fonts/Sora/README.txt +0 -70
  104. package/dist/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  105. package/dist/fonts/Sora/static/Sora-Bold.ttf +0 -0
  106. package/dist/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  107. package/dist/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  108. package/dist/fonts/Sora/static/Sora-Light.ttf +0 -0
  109. package/dist/fonts/Sora/static/Sora-Medium.ttf +0 -0
  110. package/dist/fonts/Sora/static/Sora-Regular.ttf +0 -0
  111. package/dist/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  112. package/dist/fonts/Sora/static/Sora-Thin.ttf +0 -0
  113. package/dist/index.js +0 -272
  114. package/dist/src/lib/components/Accordion/Accordion.stories.d.ts +0 -6
  115. package/dist/src/lib/components/Accordion/Accordion.stories.js +0 -80
  116. package/dist/src/lib/components/Accordion/Accordion.stories.js.map +0 -1
  117. package/dist/src/lib/components/AlertBar/AlertBar.stories.d.ts +0 -6
  118. package/dist/src/lib/components/AlertBar/AlertBar.stories.js +0 -91
  119. package/dist/src/lib/components/AlertBar/AlertBar.stories.js.map +0 -1
  120. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -6
  121. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js +0 -56
  122. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.stories.js.map +0 -1
  123. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.d.ts +0 -6
  124. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js +0 -45
  125. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.stories.js.map +0 -1
  126. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.d.ts +0 -6
  127. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js +0 -50
  128. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.js.map +0 -1
  129. package/dist/src/lib/components/Button/button.stories.d.ts +0 -6
  130. package/dist/src/lib/components/Button/button.stories.js +0 -132
  131. package/dist/src/lib/components/Button/button.stories.js.map +0 -1
  132. package/dist/src/lib/components/Card/Card.stories.d.ts +0 -8
  133. package/dist/src/lib/components/Card/Card.stories.js +0 -124
  134. package/dist/src/lib/components/Card/Card.stories.js.map +0 -1
  135. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.d.ts +0 -6
  136. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js +0 -40
  137. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.stories.js.map +0 -1
  138. package/dist/src/lib/components/Carousel/Carousel.stories.d.ts +0 -6
  139. package/dist/src/lib/components/Carousel/Carousel.stories.js +0 -297
  140. package/dist/src/lib/components/Carousel/Carousel.stories.js.map +0 -1
  141. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.d.ts +0 -6
  142. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js +0 -14
  143. package/dist/src/lib/components/ChevronCard/ChevronCard.stories.js.map +0 -1
  144. package/dist/src/lib/components/Collapsible/Collapsible.stories.d.ts +0 -6
  145. package/dist/src/lib/components/Collapsible/Collapsible.stories.js +0 -66
  146. package/dist/src/lib/components/Collapsible/Collapsible.stories.js.map +0 -1
  147. package/dist/src/lib/components/Column/Column.stories.d.ts +0 -6
  148. package/dist/src/lib/components/Column/Column.stories.js +0 -64
  149. package/dist/src/lib/components/Column/Column.stories.js.map +0 -1
  150. package/dist/src/lib/components/Container/Container.stories.d.ts +0 -6
  151. package/dist/src/lib/components/Container/Container.stories.js +0 -30
  152. package/dist/src/lib/components/Container/Container.stories.js.map +0 -1
  153. package/dist/src/lib/components/FooterBar/footerBar.stories.d.ts +0 -6
  154. package/dist/src/lib/components/FooterBar/footerBar.stories.js +0 -48
  155. package/dist/src/lib/components/FooterBar/footerBar.stories.js.map +0 -1
  156. package/dist/src/lib/components/Form/Form.stories.d.ts +0 -6
  157. package/dist/src/lib/components/Form/Form.stories.js +0 -82
  158. package/dist/src/lib/components/Form/Form.stories.js.map +0 -1
  159. package/dist/src/lib/components/FyreCard/FyreCard.stories.d.ts +0 -6
  160. package/dist/src/lib/components/FyreCard/FyreCard.stories.js +0 -22
  161. package/dist/src/lib/components/FyreCard/FyreCard.stories.js.map +0 -1
  162. package/dist/src/lib/components/Greeting/Greeting.stories.d.ts +0 -6
  163. package/dist/src/lib/components/Greeting/Greeting.stories.js +0 -33
  164. package/dist/src/lib/components/Greeting/Greeting.stories.js.map +0 -1
  165. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +0 -6
  166. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js +0 -46
  167. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.stories.js.map +0 -1
  168. package/dist/src/lib/components/Icon/Icon.stories.d.ts +0 -6
  169. package/dist/src/lib/components/Icon/Icon.stories.js +0 -87
  170. package/dist/src/lib/components/Icon/Icon.stories.js.map +0 -1
  171. package/dist/src/lib/components/Image/Image.stories.d.ts +0 -6
  172. package/dist/src/lib/components/Image/Image.stories.js +0 -73
  173. package/dist/src/lib/components/Image/Image.stories.js.map +0 -1
  174. package/dist/src/lib/components/ImageLink/ImageLink.stories.d.ts +0 -9
  175. package/dist/src/lib/components/ImageLink/ImageLink.stories.js +0 -50
  176. package/dist/src/lib/components/ImageLink/ImageLink.stories.js.map +0 -1
  177. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.d.ts +0 -6
  178. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js +0 -27
  179. package/dist/src/lib/components/ImageLinkList/ImageLinkList.stories.js.map +0 -1
  180. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.d.ts +0 -6
  181. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js +0 -73
  182. package/dist/src/lib/components/InformationIcon/InformationIcon.stories.js.map +0 -1
  183. package/dist/src/lib/components/Input/Input.stories.d.ts +0 -6
  184. package/dist/src/lib/components/Input/Input.stories.js +0 -95
  185. package/dist/src/lib/components/Input/Input.stories.js.map +0 -1
  186. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.d.ts +0 -6
  187. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js +0 -16
  188. package/dist/src/lib/components/Jumbotron/Jumbotron.stories.js.map +0 -1
  189. package/dist/src/lib/components/Nav/Nav.stories.d.ts +0 -6
  190. package/dist/src/lib/components/Nav/Nav.stories.js +0 -134
  191. package/dist/src/lib/components/Nav/Nav.stories.js.map +0 -1
  192. package/dist/src/lib/components/NavItem/NavItem.stories.d.ts +0 -6
  193. package/dist/src/lib/components/NavItem/NavItem.stories.js +0 -75
  194. package/dist/src/lib/components/NavItem/NavItem.stories.js.map +0 -1
  195. package/dist/src/lib/components/NewsCard/NewsCard.stories.d.ts +0 -6
  196. package/dist/src/lib/components/NewsCard/NewsCard.stories.js +0 -60
  197. package/dist/src/lib/components/NewsCard/NewsCard.stories.js.map +0 -1
  198. package/dist/src/lib/components/Profile/Profile.stories.d.ts +0 -6
  199. package/dist/src/lib/components/Profile/Profile.stories.js +0 -41
  200. package/dist/src/lib/components/Profile/Profile.stories.js.map +0 -1
  201. package/dist/src/lib/components/Row/Row.stories.d.ts +0 -6
  202. package/dist/src/lib/components/Row/Row.stories.js +0 -37
  203. package/dist/src/lib/components/Row/Row.stories.js.map +0 -1
  204. package/dist/src/lib/components/Search/Search.stories.d.ts +0 -6
  205. package/dist/src/lib/components/Search/Search.stories.js +0 -48
  206. package/dist/src/lib/components/Search/Search.stories.js.map +0 -1
  207. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.d.ts +0 -6
  208. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js +0 -58
  209. package/dist/src/lib/components/SocialBlock/SocialBlock.stories.js.map +0 -1
  210. package/dist/src/lib/components/StarRating/StarRating.stories.d.ts +0 -6
  211. package/dist/src/lib/components/StarRating/StarRating.stories.js +0 -17
  212. package/dist/src/lib/components/StarRating/StarRating.stories.js.map +0 -1
  213. package/dist/src/lib/components/Testimonial/Testimonial.stories.d.ts +0 -6
  214. package/dist/src/lib/components/Testimonial/Testimonial.stories.js +0 -95
  215. package/dist/src/lib/components/Testimonial/Testimonial.stories.js.map +0 -1
  216. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.d.ts +0 -6
  217. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js +0 -63
  218. package/dist/src/lib/components/TextAndTitle/TextAndTitle.stories.js.map +0 -1
  219. package/dist/src/lib/components/TextArea/TextArea.stories.d.ts +0 -6
  220. package/dist/src/lib/components/TextArea/TextArea.stories.js +0 -63
  221. package/dist/src/lib/components/TextArea/TextArea.stories.js.map +0 -1
  222. package/dist/src/lib/components/Timeline/Timeline.stories.d.ts +0 -6
  223. package/dist/src/lib/components/Timeline/Timeline.stories.js +0 -87
  224. package/dist/src/lib/components/Timeline/Timeline.stories.js.map +0 -1
  225. package/dist/src/lib/components/Tubestops/Tubestops.stories.d.ts +0 -6
  226. package/dist/src/lib/components/Tubestops/Tubestops.stories.js +0 -62
  227. package/dist/src/lib/components/Tubestops/Tubestops.stories.js.map +0 -1
  228. package/dist/src/lib/components/UserIcon/UserIcon.stories.d.ts +0 -6
  229. package/dist/src/lib/components/UserIcon/UserIcon.stories.js +0 -63
  230. package/dist/src/lib/components/UserIcon/UserIcon.stories.js.map +0 -1
  231. package/dist/src/lib/components/Video/Video.stories.d.ts +0 -6
  232. package/dist/src/lib/components/Video/Video.stories.js +0 -17
  233. package/dist/src/lib/components/Video/Video.stories.js.map +0 -1
  234. package/dist/src/lib/typography/Fonts.stories.d.ts +0 -6
  235. package/dist/src/lib/typography/Fonts.stories.js +0 -12
  236. package/dist/src/lib/typography/Fonts.stories.js.map +0 -1
  237. package/dist/styles/base.css +0 -73
@@ -1,91 +0,0 @@
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
@@ -1 +0,0 @@
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;IACpD,KAAK,EAAE,kDAAkD;IACzD,SAAS,EAAE,QAAQ;IACnB,QAAQ,kCACH,cAAc,KACjB,IAAI,EAAE;YACJ,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;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;aACrC;YACD,YAAY,EAAE,SAAS;YACvB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B,EACD,IAAI,EAAE;YACJ,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,WAAW,EAAE,sCAAsC;YACnD,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,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OAAO,EAAE,SAAS,EAAE;gBAC5B,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;aACnC;YACD,YAAY,EAAE,OAAO;SACtB,EACD,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE;YAC3C,WAAW,EAAE,oDAAoD;YACjE,MAAM,EAAE,SAAS;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,UAAU;iBACpB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,8BAA8B;QACpC,aAAa,EAAE;YACb,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,IAAI;SACb;QACD,cAAc,EAAE;YACd,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,OAAO;SAChB;KACF;CACF,CAAA;AAED,MAAM,QAAQ,GAAoC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,QAAQ,oBAAK,IAAI,EAAI,CAAA;AAElF,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAE1C,eAAe,aAAa,CAAA"}
@@ -1,6 +0,0 @@
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;
@@ -1,56 +0,0 @@
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
@@ -1 +0,0 @@
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;IACvD,KAAK,EAAE,2CAA2C;IAClD,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;KACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,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"}
@@ -1,6 +0,0 @@
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;
@@ -1,45 +0,0 @@
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
@@ -1 +0,0 @@
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,CAAA;AAChD,OAAO,mBAAmB,MAAM,SAAS,CAAA;AAGzC,MAAM,aAAa,GAA8C;IAC/D,KAAK,EAAE,+CAA+C;IACtD,SAAS,EAAE,mBAAmB;IAC9B,UAAU,EAAE,EAAE;IACd,QAAQ,kCACH,cAAc,KACjB,KAAK,EAAE;YACL,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;YAC9C,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;gBAC1B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,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"}
@@ -1,6 +0,0 @@
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;
@@ -1,50 +0,0 @@
1
- import React from 'react';
2
- import BreadcrumbsItem from './index';
3
- const componentMeta = {
4
- title: 'Trepur Components/Other/Atoms/Breadcrumbs Item',
5
- component: BreadcrumbsItem,
6
- parameters: {},
7
- argTypes: {
8
- id: {
9
- description: 'Defines the id of the component',
10
- table: {
11
- category: '',
12
- type: { summary: 'string' },
13
- defaultValue: { summary: 'undefined' }
14
- }
15
- },
16
- className: {
17
- description: 'Defines any additional classes for the components',
18
- table: {
19
- category: '',
20
- type: { summary: 'string' },
21
- defaultValue: { summary: 'undefined' }
22
- }
23
- },
24
- name: {
25
- description: 'Specifies the name for the key attribute',
26
- table: {
27
- category: '',
28
- type: { summary: 'string' },
29
- defaultValue: { summary: 'undefined' }
30
- }
31
- },
32
- type: {
33
- description: 'Specifies the type of breadcrumbs to display ie link',
34
- table: {
35
- category: '',
36
- type: { summary: 'string' },
37
- defaultValue: { summary: 'undefined' }
38
- }
39
- }
40
- },
41
- args: {
42
- name: 'Link 1',
43
- href: '/',
44
- firstItem: false
45
- }
46
- };
47
- const Template = (args) => React.createElement(BreadcrumbsItem, Object.assign({}, args));
48
- export const _BreadcrumbsItem = Template.bind({});
49
- export default componentMeta;
50
- //# sourceMappingURL=BreadcrumbsItem.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BreadcrumbsItem.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/BreadcrumbsItem/BreadcrumbsItem.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,eAAe,MAAM,SAAS,CAAA;AAGrC,MAAM,aAAa,GAA0C;IAC3D,KAAK,EAAE,gDAAgD;IACvD,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACR,EAAE,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,mDAAmD;YAChE,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,KAAK,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,KAAK;KACjB;CACF,CAAA;AAED,MAAM,QAAQ,GAA2C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,eAAe,oBAAK,IAAI,EAAI,CAAA;AAEhG,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAEjD,eAAe,aAAa,CAAA"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import Button from './index';
3
- import { ComponentStory, ComponentMeta } from '@storybook/react';
4
- declare const componentMeta: ComponentMeta<typeof Button>;
5
- export declare const _Button: ComponentStory<({ id, className, onClick, hoverText, variant, type, href, rounded, disabled, isLoading, openInNewTab, children }: import("./index").Props) => JSX.Element>;
6
- export default componentMeta;
@@ -1,132 +0,0 @@
1
- import React from 'react';
2
- import Button from './index';
3
- import { action } from '@storybook/addon-actions';
4
- import { idAndClassName } from '../../utils/controls';
5
- const componentMeta = {
6
- title: 'Trepur Components/Rupert Bennett/Atoms/Button',
7
- component: Button,
8
- parameters: {
9
- docs: {
10
- description: {
11
- component: 'A Button which can either be internal, external or social as well as a standard design or a slide design.'
12
- }
13
- }
14
- },
15
- argTypes: Object.assign(Object.assign({}, idAndClassName), { onClick: {
16
- type: { name: 'function', required: false },
17
- description: 'The action to perform when clicking on the component',
18
- action: 'onClick',
19
- table: {
20
- type: {
21
- summary: 'function'
22
- },
23
- defaultValue: { summary: 'undefined' }
24
- }
25
- }, hoverText: {
26
- type: {
27
- name: 'string',
28
- required: false
29
- },
30
- description: 'The text to display when hovering on the component',
31
- table: {
32
- type: {
33
- summary: 'string'
34
- },
35
- defaultValue: {
36
- summary: 'undefined'
37
- }
38
- }
39
- }, variant: {
40
- type: {
41
- name: 'string', required: false
42
- },
43
- options: ['primary', 'secondary'],
44
- description: 'The variant of button to render',
45
- table: {
46
- type: {
47
- summary: 'primary'
48
- },
49
- defaultValue: {
50
- summary: 'primary'
51
- }
52
- },
53
- defaultValue: 'primary',
54
- control: {
55
- type: 'radio'
56
- }
57
- }, type: {
58
- type: {
59
- name: 'string',
60
- required: false
61
- },
62
- options: ['default', 'social', 'icon'],
63
- description: 'The type of button to render',
64
- table: {
65
- type: {
66
- summary: 'default'
67
- },
68
- defaultValue: {
69
- summary: 'default'
70
- }
71
- },
72
- defaultValue: 'default',
73
- control: { type: 'radio' }
74
- }, href: {
75
- type: { name: 'string', required: false },
76
- description: 'The link attached to the component',
77
- table: {
78
- type: {
79
- summary: 'default'
80
- },
81
- defaultValue: {
82
- summary: 'undefined'
83
- }
84
- }
85
- }, rounded: {
86
- type: {
87
- name: 'boolean',
88
- required: false
89
- },
90
- description: 'rounds the borders when true',
91
- defaultValue: 'true'
92
- }, disabled: {
93
- type: {
94
- name: 'boolean',
95
- required: false
96
- },
97
- description: 'Can the carousel be dragged or not'
98
- }, isLoading: {
99
- type: {
100
- name: 'boolean',
101
- required: false
102
- },
103
- table: {
104
- defaultValue: {
105
- summary: 'false'
106
- }
107
- },
108
- description: 'Toggles the loading state of the compnent'
109
- }, openInNewTab: {
110
- type: { name: 'boolean', required: false },
111
- description: 'Opens the link in a new tab when set to true',
112
- defaultValue: 'false'
113
- }, children: {
114
- type: { name: 'other', value: 'string | React.ReactNode' },
115
- description: 'The child elements to show in the component',
116
- table: {
117
- type: {
118
- summary: 'Array'
119
- },
120
- defaultValue: { summary: 'undefined' }
121
- }
122
- } }),
123
- args: {
124
- children: 'This is a button',
125
- rounded: true,
126
- onClick: action('button clicked')
127
- }
128
- };
129
- const Template = (args) => React.createElement(Button, Object.assign({}, args));
130
- export const _Button = Template.bind({});
131
- export default componentMeta;
132
- //# sourceMappingURL=button.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Button/button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAA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;SACtB,EACD,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAClC;CACF,CAAA;AAED,MAAM,QAAQ,GAAkC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,MAAM,oBAAK,IAAI,EAAI,CAAA;AAE9E,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,eAAe,aAAa,CAAA"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import Card from './index';
3
- import { ComponentStory, ComponentMeta } from '@storybook/react';
4
- declare const componentMeta: ComponentMeta<typeof Card>;
5
- export declare const _ImageCard: ComponentStory<React.FC<import("./index").Props>>;
6
- export declare const _VideoCard: ComponentStory<React.FC<import("./index").Props>>;
7
- export declare const _ProductCard: ComponentStory<React.FC<import("./index").Props>>;
8
- export default componentMeta;
@@ -1,124 +0,0 @@
1
- import React from 'react';
2
- import Card from './index';
3
- import { idAndClassName } from '../../utils/controls';
4
- import Icon from '../Icon';
5
- const componentMeta = {
6
- title: 'Trepur Components/Rupert Bennett/Organisms/Card',
7
- component: Card,
8
- argTypes: Object.assign(Object.assign({}, idAndClassName), { title: {
9
- description: '',
10
- table: {
11
- category: 'Card'
12
- }
13
- }, image: {
14
- description: '',
15
- table: {
16
- category: 'Card'
17
- }
18
- }, subTitle: {
19
- description: '',
20
- table: {
21
- category: 'Card'
22
- }
23
- }, description: {
24
- description: '',
25
- table: {
26
- category: 'Card'
27
- }
28
- }, extraText: {
29
- description: '',
30
- table: {
31
- category: 'Card'
32
- }
33
- }, imageBelowTitle: {
34
- description: '',
35
- table: {
36
- category: 'Card'
37
- }
38
- }, bordered: {
39
- description: '',
40
- table: {
41
- category: 'Card'
42
- }
43
- }, rounded: {
44
- description: '',
45
- table: {
46
- category: 'Card'
47
- }
48
- }, hasCta: {
49
- description: '',
50
- table: {
51
- category: 'Card'
52
- }
53
- }, titleLeft: {
54
- description: '',
55
- table: {
56
- category: 'Card'
57
- }
58
- }, titleRight: {
59
- description: '',
60
- table: {
61
- category: 'Card'
62
- }
63
- }, titleBold: {
64
- description: '',
65
- table: {
66
- category: 'Card'
67
- }
68
- } }),
69
- args: {
70
- subTitle: 'This is a subtitle',
71
- description: 'This is a description paragraph',
72
- extraText: 'This is another paragraph',
73
- rounded: true,
74
- bordered: true,
75
- hasCta: true,
76
- iconButtonProps: {
77
- type: 'icon',
78
- href: '/',
79
- className: 'mt-8',
80
- children: React.createElement(Icon, { type: 'heart', hollow: false })
81
- },
82
- cardButtonProps: {
83
- children: (React.createElement("div", { className: 'flex' },
84
- React.createElement(Icon, { type: 'heart' }),
85
- React.createElement("p", null, "buttonText"),
86
- React.createElement(Icon, { type: 'heart' }))),
87
- disabled: false,
88
- hoverText: 'buttonHoverText',
89
- href: 'buttonUrl',
90
- rounded: true
91
- },
92
- button2Props: {
93
- className: 'ml-2 w-full mt-8',
94
- children: 'Add to basket',
95
- rounded: false,
96
- disabled: false
97
- }
98
- }
99
- };
100
- const Template = (args) => React.createElement(Card, Object.assign({}, args));
101
- export const _ImageCard = Template.bind({});
102
- _ImageCard.args = {
103
- title: 'This is a title',
104
- image: 'https://picsum.photos/500/300'
105
- };
106
- export const _VideoCard = Template.bind({});
107
- _VideoCard.args = {
108
- title: 'This is a title',
109
- videoProps: {
110
- mp4File: '/',
111
- withControls: true,
112
- autoPlay: true
113
- }
114
- };
115
- export const _ProductCard = Template.bind({});
116
- _ProductCard.args = {
117
- image: 'https://picsum.photos/500/300',
118
- subTitle: 'Product name',
119
- description: 'Product description',
120
- extraText: '£123.45',
121
- onHover: true
122
- };
123
- export default componentMeta;
124
- //# sourceMappingURL=Card.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Card.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/Card/Card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,IAAI,MAAM,kBAAkB,CAAA;AAGnC,MAAM,aAAa,GAA+B;IAChD,KAAK,EAAE,iDAAiD;IACxD,SAAS,EAAE,IAAI;IACf,QAAQ,kCACH,cAAc,KACjB,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,KAAK,EAAE;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,QAAQ,EAAE;YACR,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,WAAW,EAAE;YACX,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,SAAS,EAAE;YACT,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,eAAe,EAAE;YACf,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,QAAQ,EAAE;YACR,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EACD,OAAO,EAAE;YACP,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM;aACjB;SACF,EAC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IAAI,EAAI,CAAA;AAE1E,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,iBAAiB;IACxB,KAAK,EAAE,+BAA+B;CACvC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG;IAChB,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,GAAG;QACZ,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC7C,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,+BAA+B;IACtC,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,qBAAqB;IAClC,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,IAAI;CACd,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import CardWithTopImage from './index';
3
- import { ComponentStory, ComponentMeta } from '@storybook/react';
4
- declare const componentMeta: ComponentMeta<typeof CardWithTopImage>;
5
- export declare const _CardWithTopImage: ComponentStory<({ id, className, children, imageProps }: import("./index").Props) => JSX.Element>;
6
- export default componentMeta;
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import CardWithTopImage from './index';
3
- import logo from '@assets/images/primary-logo.png';
4
- import { idAndClassName } from '../../utils/controls';
5
- const componentMeta = {
6
- title: 'Trepur Components/Rupert Bennett/Organisms/Card With Top Image',
7
- component: CardWithTopImage,
8
- argTypes: Object.assign(Object.assign({}, idAndClassName), { children: {
9
- type: { name: 'other', value: 'string | React.ReactNode' },
10
- description: 'The child elements to show in the component',
11
- table: {
12
- type: {
13
- summary: 'Array'
14
- },
15
- defaultValue: { summary: 'undefined' }
16
- }
17
- }, imageProps: {
18
- type: { name: 'other', value: 'object' },
19
- description: 'The props to pass to the image on the component',
20
- table: {
21
- type: {
22
- summary: 'object'
23
- },
24
- defaultValue: { summary: 'undefined' }
25
- }
26
- } }),
27
- args: {
28
- imageProps: {
29
- image: logo,
30
- roundedFull: true,
31
- width: 4,
32
- height: 4
33
- },
34
- children: [React.createElement("p", { key: '1' }, "This is a child"), React.createElement("p", { key: '2' }, "This is another child")]
35
- }
36
- };
37
- const Template = (args) => React.createElement(CardWithTopImage, Object.assign({}, args));
38
- export const _CardWithTopImage = Template.bind({});
39
- export default componentMeta;
40
- //# sourceMappingURL=CardWithTopImage.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardWithTopImage.stories.js","sourceRoot":"","sources":["../../../../../src/lib/components/CardWithTopImage/CardWithTopImage.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,gBAAgB,MAAM,SAAS,CAAA;AACtC,OAAO,IAAI,MAAM,iCAAiC,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,MAAM,aAAa,GAA2C;IAC5D,KAAK,EAAE,gEAAgE;IACvE,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,kCACH,cAAc,KACjB,QAAQ,EAAE;YACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,0BAA0B,EAAE;YAC1D,WAAW,EAAE,6CAA6C;YAC1D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,OAAO;iBACjB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,EACD,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,iDAAiD;YAC9D,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;gBACD,YAAY,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;aACvC;SACF,GACF;IACD,IAAI,EAAE;QACJ,UAAU,EAAE;YACV,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACV;QACD,QAAQ,EAAE,CAAC,2BAAG,GAAG,EAAC,GAAG,sBAAoB,EAAE,2BAAG,GAAG,EAAC,GAAG,4BAA0B,CAAC;KACjF;CACF,CAAA;AAED,MAAM,QAAQ,GAA4C,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAA;AAElG,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAElD,eAAe,aAAa,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import Carousel from './index';
3
- import { ComponentStory, ComponentMeta } from '@storybook/react';
4
- declare const componentMeta: ComponentMeta<typeof Carousel>;
5
- export declare const _Carousel: ComponentStory<React.FC<import("./index").Props>>;
6
- export default componentMeta;