@biggive/components 1.0.6 → 1.0.8

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 (211) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-07962fc5.entry.js +1 -0
  3. package/dist/biggive/p-0d6687f4.js +1 -0
  4. package/dist/biggive/p-1b78efa0.entry.js +1 -0
  5. package/dist/biggive/p-5dbda89c.entry.js +1 -0
  6. package/dist/biggive/p-5f1b0106.entry.js +1 -0
  7. package/dist/biggive/p-629007e0.entry.js +1 -0
  8. package/dist/biggive/p-6326f936.entry.js +1 -0
  9. package/dist/biggive/p-72a6f0a8.entry.js +1 -0
  10. package/dist/biggive/p-74b5d4c7.entry.js +1 -0
  11. package/dist/biggive/p-7eee1e58.entry.js +1 -0
  12. package/dist/biggive/{p-a6da36d4.js → p-871707f4.js} +2 -2
  13. package/dist/biggive/p-8f605036.entry.js +1 -0
  14. package/dist/biggive/p-bdb476eb.entry.js +1 -0
  15. package/dist/biggive/p-c9aaa5c3.entry.js +1 -0
  16. package/dist/biggive/p-df6daa79.entry.js +1 -0
  17. package/dist/biggive/{p-43c02e71.js → p-ec9b42b3.js} +1 -1
  18. package/dist/biggive/p-f9388477.entry.js +1 -0
  19. package/dist/biggive/p-f98681a5.entry.js +1 -0
  20. package/dist/cjs/biggive-article-card.cjs.entry.js +63 -0
  21. package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +923 -0
  22. package/dist/cjs/biggive-basic-card.cjs.entry.js +12 -4
  23. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  25. package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
  26. package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
  28. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  29. package/dist/cjs/biggive-image.cjs.entry.js +32 -2
  30. package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
  31. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  32. package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
  34. package/dist/cjs/biggive-video.cjs.entry.js +7 -2
  35. package/dist/cjs/biggive.cjs.js +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/cjs/video-f9e682a8.js +14 -0
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/biggive-article-card/biggive-article-card.css +534 -0
  40. package/dist/collection/components/biggive-article-card/biggive-article-card.js +272 -0
  41. package/dist/collection/components/biggive-article-card/biggive-article-card.stories.js +84 -0
  42. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +95 -10
  43. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +95 -16
  44. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +49 -5
  45. package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +25 -0
  46. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +95 -10
  47. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +95 -10
  48. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +95 -10
  49. package/dist/collection/components/biggive-button/biggive-button.css +95 -10
  50. package/dist/collection/components/biggive-button/biggive-button.js +45 -1
  51. package/dist/collection/components/biggive-button/biggive-button.stories.js +17 -0
  52. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +95 -19
  53. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +92 -4
  54. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.stories.js +36 -0
  55. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +95 -10
  56. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +95 -10
  57. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +95 -10
  58. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +95 -10
  59. package/dist/collection/components/biggive-footer/biggive-footer.css +95 -10
  60. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +95 -10
  61. package/dist/collection/components/biggive-grid/biggive-grid.css +95 -10
  62. package/dist/collection/components/biggive-header/biggive-header.css +95 -10
  63. package/dist/collection/components/biggive-header/biggive-header.js +28 -9
  64. package/dist/collection/components/biggive-header/biggive-header.stories.js +15 -2
  65. package/dist/collection/components/biggive-heading/biggive-heading.css +95 -35
  66. package/dist/collection/components/biggive-heading/biggive-heading.js +46 -2
  67. package/dist/collection/components/biggive-heading/biggive-heading.stories.js +18 -0
  68. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +98 -10
  69. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +95 -10
  70. package/dist/collection/components/biggive-image/biggive-image.css +95 -10
  71. package/dist/collection/components/biggive-image/biggive-image.js +104 -2
  72. package/dist/collection/components/biggive-image/biggive-image.stories.js +30 -1
  73. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +95 -10
  74. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +95 -10
  75. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +95 -10
  76. package/dist/collection/components/biggive-page-section/biggive-page-section.css +96 -10
  77. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +95 -10
  78. package/dist/collection/components/biggive-quote/biggive-quote.css +95 -10
  79. package/dist/collection/components/biggive-search/biggive-search.css +95 -10
  80. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +95 -10
  81. package/dist/collection/components/biggive-tab/biggive-tab.css +95 -10
  82. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +95 -10
  83. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +95 -10
  84. package/dist/collection/components/biggive-video/biggive-video.css +95 -10
  85. package/dist/collection/components/biggive-video/biggive-video.js +25 -3
  86. package/dist/collection/components/biggive-video/biggive-video.stories.js +11 -1
  87. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +95 -10
  88. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +25 -3
  89. package/dist/collection/components/biggive-video-feature/biggive-video-feature.stories.js +10 -1
  90. package/dist/collection/util/video.js +10 -0
  91. package/dist/components/biggive-article-card.d.ts +11 -0
  92. package/dist/components/biggive-article-card.js +95 -0
  93. package/dist/components/biggive-back-to-top.js +1 -1
  94. package/dist/components/biggive-basic-card.js +14 -4
  95. package/dist/components/biggive-beneficiary-icon.js +1 -1
  96. package/dist/components/biggive-boxed-content.js +1 -1
  97. package/dist/components/biggive-branded-image.js +1 -1
  98. package/dist/components/biggive-button2.js +13 -3
  99. package/dist/components/biggive-call-to-action.js +22 -2
  100. package/dist/components/biggive-campaign-card-filter-grid.js +1 -1
  101. package/dist/components/biggive-campaign-card.js +1 -1
  102. package/dist/components/biggive-campaign-highlights.js +1 -1
  103. package/dist/components/biggive-category-icon.js +1 -1
  104. package/dist/components/biggive-footer.js +1 -1
  105. package/dist/components/biggive-formatted-text.js +1 -1
  106. package/dist/components/biggive-grid.js +1 -1
  107. package/dist/components/biggive-header.js +9 -10
  108. package/dist/components/biggive-heading.js +12 -2
  109. package/dist/components/biggive-hero-image.js +1 -1
  110. package/dist/components/biggive-icon-group.js +1 -1
  111. package/dist/components/biggive-image-feature.js +1 -1
  112. package/dist/components/biggive-image.js +37 -3
  113. package/dist/components/biggive-misc-icon2.js +1 -1
  114. package/dist/components/biggive-page-columns.js +1 -1
  115. package/dist/components/biggive-page-section.js +1 -1
  116. package/dist/components/biggive-progress-bar2.js +1 -1
  117. package/dist/components/biggive-quote.js +1 -1
  118. package/dist/components/biggive-search.js +1 -1
  119. package/dist/components/biggive-social-icon2.js +1 -1
  120. package/dist/components/biggive-tab.js +1 -1
  121. package/dist/components/biggive-tabbed-content.js +1 -1
  122. package/dist/components/biggive-totalizer.js +1 -1
  123. package/dist/components/biggive-video-feature.js +8 -2
  124. package/dist/components/biggive-video.js +8 -2
  125. package/dist/components/index.d.ts +1 -0
  126. package/dist/components/index.js +1 -0
  127. package/dist/components/video.js +12 -0
  128. package/dist/esm/biggive-article-card.entry.js +59 -0
  129. package/dist/esm/biggive-back-to-top_20.entry.js +900 -0
  130. package/dist/esm/biggive-basic-card.entry.js +12 -4
  131. package/dist/esm/biggive-beneficiary-icon.entry.js +3 -3
  132. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  133. package/dist/esm/biggive-branded-image.entry.js +1 -1
  134. package/dist/esm/biggive-category-icon.entry.js +3 -3
  135. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  136. package/dist/esm/biggive-icon-group.entry.js +1 -1
  137. package/dist/esm/biggive-image.entry.js +32 -2
  138. package/dist/esm/biggive-quote.entry.js +1 -1
  139. package/dist/esm/biggive-search.entry.js +2 -2
  140. package/dist/esm/biggive-tab.entry.js +1 -1
  141. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  142. package/dist/esm/biggive-video.entry.js +7 -2
  143. package/dist/esm/biggive.js +1 -1
  144. package/dist/esm/{fontawesome-icons-e232deb7.js → fontawesome-icons-562459be.js} +1 -1
  145. package/dist/esm/{index.es-64a64fa8.js → index.es-5777380a.js} +1 -1
  146. package/dist/esm/loader.js +1 -1
  147. package/dist/esm/video-89b7535d.js +12 -0
  148. package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +47 -0
  149. package/dist/types/components/biggive-article-card/biggive-article-card.stories.d.ts +56 -0
  150. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +9 -1
  151. package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +21 -0
  152. package/dist/types/components/biggive-button/biggive-button.d.ts +8 -0
  153. package/dist/types/components/biggive-button/biggive-button.stories.d.ts +13 -0
  154. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.d.ts +16 -0
  155. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.stories.d.ts +28 -0
  156. package/dist/types/components/biggive-header/biggive-header.d.ts +4 -0
  157. package/dist/types/components/biggive-heading/biggive-heading.d.ts +8 -0
  158. package/dist/types/components/biggive-heading/biggive-heading.stories.d.ts +14 -0
  159. package/dist/types/components/biggive-image/biggive-image.d.ts +18 -0
  160. package/dist/types/components/biggive-image/biggive-image.stories.d.ts +20 -0
  161. package/dist/types/components/biggive-video/biggive-video.d.ts +4 -0
  162. package/dist/types/components/biggive-video/biggive-video.stories.d.ts +7 -0
  163. package/dist/types/components/biggive-video-feature/biggive-video-feature.d.ts +4 -0
  164. package/dist/types/components/biggive-video-feature/biggive-video-feature.stories.d.ts +7 -0
  165. package/dist/types/components.d.ts +239 -2
  166. package/dist/types/util/video.d.ts +3 -0
  167. package/hydrate/index.js +232 -45
  168. package/package.json +1 -1
  169. package/dist/biggive/p-068c6901.entry.js +0 -1
  170. package/dist/biggive/p-19aac764.entry.js +0 -1
  171. package/dist/biggive/p-278fbc22.entry.js +0 -1
  172. package/dist/biggive/p-293fa43e.entry.js +0 -1
  173. package/dist/biggive/p-29921058.entry.js +0 -1
  174. package/dist/biggive/p-2c7ccc17.entry.js +0 -1
  175. package/dist/biggive/p-2d9408d3.entry.js +0 -1
  176. package/dist/biggive/p-3670bfe5.entry.js +0 -1
  177. package/dist/biggive/p-46a368de.entry.js +0 -1
  178. package/dist/biggive/p-558ebb94.entry.js +0 -1
  179. package/dist/biggive/p-664bfe6e.entry.js +0 -1
  180. package/dist/biggive/p-7637ac94.entry.js +0 -1
  181. package/dist/biggive/p-78129441.entry.js +0 -1
  182. package/dist/biggive/p-8b5487c1.entry.js +0 -1
  183. package/dist/biggive/p-a62e9af0.entry.js +0 -1
  184. package/dist/biggive/p-ab82bcf1.entry.js +0 -1
  185. package/dist/biggive/p-b4d5f946.entry.js +0 -1
  186. package/dist/biggive/p-c84740c3.entry.js +0 -1
  187. package/dist/biggive/p-cc6e33a6.entry.js +0 -1
  188. package/dist/biggive/p-db3da9bb.entry.js +0 -1
  189. package/dist/biggive/p-e0347718.entry.js +0 -1
  190. package/dist/biggive/p-ea35e2fe.entry.js +0 -1
  191. package/dist/biggive/p-ef6c1ed4.entry.js +0 -1
  192. package/dist/cjs/biggive-back-to-top_11.cjs.entry.js +0 -365
  193. package/dist/cjs/biggive-call-to-action.cjs.entry.js +0 -83
  194. package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +0 -50
  195. package/dist/cjs/biggive-campaign-card.cjs.entry.js +0 -97
  196. package/dist/cjs/biggive-grid.cjs.entry.js +0 -31
  197. package/dist/cjs/biggive-hero-image.cjs.entry.js +0 -73
  198. package/dist/cjs/biggive-image-feature.cjs.entry.js +0 -67
  199. package/dist/cjs/biggive-page-section.cjs.entry.js +0 -35
  200. package/dist/cjs/biggive-totalizer.cjs.entry.js +0 -69
  201. package/dist/cjs/biggive-video-feature.cjs.entry.js +0 -67
  202. package/dist/esm/biggive-back-to-top_11.entry.js +0 -351
  203. package/dist/esm/biggive-call-to-action.entry.js +0 -79
  204. package/dist/esm/biggive-campaign-card-filter-grid.entry.js +0 -46
  205. package/dist/esm/biggive-campaign-card.entry.js +0 -93
  206. package/dist/esm/biggive-grid.entry.js +0 -27
  207. package/dist/esm/biggive-hero-image.entry.js +0 -69
  208. package/dist/esm/biggive-image-feature.entry.js +0 -63
  209. package/dist/esm/biggive-page-section.entry.js +0 -31
  210. package/dist/esm/biggive-totalizer.entry.js +0 -65
  211. package/dist/esm/biggive-video-feature.entry.js +0 -63
@@ -21,6 +21,19 @@ export default {
21
21
  url: {
22
22
  name: 'Url',
23
23
  },
24
+ fullWidth: {
25
+ name: 'Full width',
26
+ },
27
+ size: {
28
+ name: 'Size',
29
+ control: {
30
+ type: 'select',
31
+ options: ['small', 'medium'],
32
+ },
33
+ },
34
+ rounded: {
35
+ name: 'Rounded',
36
+ },
24
37
  },
25
38
  };
26
39
  const Template = args => `
@@ -30,6 +43,8 @@ const Template = args => `
30
43
  label=${args.label}
31
44
  url=${args.url}
32
45
  full-width=${args.fullWidth}
46
+ size=${args.size}
47
+ rounded=${args.rounded}
33
48
  </biggive-button>
34
49
  `;
35
50
  export const ButtonComponent = Template.bind({});
@@ -39,4 +54,6 @@ ButtonComponent.args = {
39
54
  label: 'Donate now',
40
55
  url: 'http://www.google.com',
41
56
  fullWidth: false,
57
+ size: 'medium',
58
+ rounded: false,
42
59
  };
@@ -2,31 +2,35 @@ body {
2
2
  background-color: #D7D7D7;
3
3
  }
4
4
 
5
- h1 {
5
+ h1, h3, h3, h4, h5, h6 {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ h1, .heading-1 {
6
10
  font-size: 50px;
7
11
  line-height: 60px;
8
12
  font-weight: bold;
9
13
  }
10
14
 
11
- h2 {
15
+ h2, .heading-2 {
12
16
  font-size: 38px;
13
17
  line-height: 45px;
14
18
  font-weight: bold;
15
19
  }
16
20
 
17
- h3 {
21
+ h3, .heading-3 {
18
22
  font-size: 25px;
19
23
  line-height: 32px;
20
24
  font-weight: bold;
21
25
  }
22
26
 
23
- h4 {
27
+ h4, .heading-4 {
24
28
  font-size: 20px;
25
29
  line-height: 24px;
26
30
  font-weight: bold;
27
31
  }
28
32
 
29
- h5 {
33
+ h5, .heading-5 {
30
34
  font-size: 17px;
31
35
  line-height: 24px;
32
36
  font-weight: bold;
@@ -60,22 +64,27 @@ a:hover {
60
64
  color: #000000;
61
65
  }
62
66
 
67
+ .text-colour-hover-primary:hover,
63
68
  .text-colour-primary {
64
69
  color: #2C089B;
65
70
  }
66
71
 
72
+ .text-colour-hover-secondary:hover,
67
73
  .text-colour-secondary {
68
74
  color: #2AF135;
69
75
  }
70
76
 
77
+ .text-colour-hover-tertiary:hover,
71
78
  .text-colour-tertiary {
72
79
  color: #FF7272;
73
80
  }
74
81
 
82
+ .text-colour-hover-white:hover,
75
83
  .text-colour-white {
76
84
  color: #FFFFFF;
77
85
  }
78
86
 
87
+ .text-colour-hover-black:hover,
79
88
  .text-colour-black {
80
89
  color: #000000;
81
90
  }
@@ -100,22 +109,27 @@ a:hover {
100
109
  fill: #000000;
101
110
  }
102
111
 
112
+ .background-colour-hover-primary:hover,
103
113
  .background-colour-primary {
104
114
  background-color: #2C089B;
105
115
  }
106
116
 
117
+ .background-colour-hover-secondary:hover,
107
118
  .background-colour-secondary {
108
119
  background-color: #2AF135;
109
120
  }
110
121
 
122
+ .background-colour-hover-tertiary:hover,
111
123
  .background-colour-tertiary {
112
124
  background-color: #FF7272;
113
125
  }
114
126
 
127
+ .background-colour-hover-white:hover,
115
128
  .background-colour-white {
116
129
  background-color: #FFFFFF;
117
130
  }
118
131
 
132
+ .background-colour-hover-black:hover,
119
133
  .background-colour-black {
120
134
  background-color: #000000;
121
135
  }
@@ -142,9 +156,9 @@ a:hover {
142
156
  }
143
157
 
144
158
  .button {
145
- font-size: 18px;
146
- line-height: 23px;
147
- padding: 15px 30px;
159
+ font-size: 17px;
160
+ line-height: 24px;
161
+ padding: 10px 30px;
148
162
  border-radius: 5px;
149
163
  border: 1px solid #000000;
150
164
  background-color: #000000;
@@ -160,6 +174,17 @@ a:hover {
160
174
  background-color: #FFFFFF;
161
175
  color: #000000;
162
176
  }
177
+ .button.size-small {
178
+ font-size: 13px;
179
+ line-height: 17px;
180
+ padding: 5px 15px;
181
+ }
182
+ .button.button.rounded-true {
183
+ border-radius: 27.5px;
184
+ }
185
+ .button.button.rounded-true.size-small {
186
+ border-radius: 20px;
187
+ }
163
188
 
164
189
  .button-primary {
165
190
  color: #FFFFFF;
@@ -247,7 +272,10 @@ a:hover {
247
272
  }
248
273
 
249
274
  .button-rounded {
250
- border-radius: 50%;
275
+ border-radius: 27.5px;
276
+ }
277
+ .button-rounded.size-small {
278
+ border-radius: 20px;
251
279
  }
252
280
 
253
281
  .progress-bar {
@@ -296,9 +324,22 @@ a:hover {
296
324
  color: #2AF135;
297
325
  }
298
326
 
327
+ .video-wrap {
328
+ position: relative;
329
+ padding-bottom: 56.25%;
330
+ }
331
+
332
+ .video-wrap iframe,
299
333
  .video-wrap video {
334
+ position: absolute;
335
+ border: 0;
336
+ display: block;
337
+ left: 0;
338
+ right: 0;
339
+ top: 0;
340
+ bottom: 0;
300
341
  width: 100%;
301
- height: auto;
342
+ height: 100%;
302
343
  }
303
344
 
304
345
  .image-wrap img {
@@ -306,6 +347,22 @@ a:hover {
306
347
  height: auto;
307
348
  }
308
349
 
350
+ .align-left {
351
+ text-align: left;
352
+ }
353
+
354
+ .align-right {
355
+ text-align: right;
356
+ }
357
+
358
+ .align-center {
359
+ text-align: center;
360
+ }
361
+
362
+ .align-justify {
363
+ text-align: justify;
364
+ }
365
+
309
366
  .space-below-0 {
310
367
  margin-bottom: 0;
311
368
  }
@@ -334,6 +391,34 @@ a:hover {
334
391
  margin-bottom: 60px;
335
392
  }
336
393
 
394
+ .space-above-0 {
395
+ margin-top: 0;
396
+ }
397
+
398
+ .space-above-1 {
399
+ margin-top: 5px;
400
+ }
401
+
402
+ .space-above-2 {
403
+ margin-top: 10px;
404
+ }
405
+
406
+ .space-above-3 {
407
+ margin-top: 15px;
408
+ }
409
+
410
+ .space-above-4 {
411
+ margin-top: 30px;
412
+ }
413
+
414
+ .space-above-5 {
415
+ margin-top: 45px;
416
+ }
417
+
418
+ .space-above-6 {
419
+ margin-top: 60px;
420
+ }
421
+
337
422
  .horizontal-padding-1 {
338
423
  padding-left: 5px;
339
424
  padding-right: 5px;
@@ -412,23 +497,14 @@ a:hover {
412
497
  }
413
498
 
414
499
  .content-wrap .slug {
415
- font-size: 20px;
416
- line-height: 24px;
417
- font-weight: bold;
418
500
  margin: 0;
419
501
  padding: 0;
420
502
  }
421
503
  .content-wrap h2 {
422
- font-size: 38px;
423
- line-height: 45px;
424
- font-weight: bold;
425
504
  margin: 0 0 5px 0;
426
505
  padding: 0;
427
506
  }
428
507
  .content-wrap .subtitle {
429
- font-size: 20px;
430
- line-height: 24px;
431
- font-weight: bold;
432
508
  margin: 0 0 5px 0;
433
509
  padding: 0;
434
510
  }
@@ -1,6 +1,10 @@
1
1
  import { Component, Prop, h } from '@stencil/core';
2
2
  export class BiggiveCallToAction {
3
3
  constructor() {
4
+ /**
5
+ * Space above component
6
+ */
7
+ this.spaceAbove = 0;
4
8
  /**
5
9
  * Space below component
6
10
  */
@@ -9,6 +13,10 @@ export class BiggiveCallToAction {
9
13
  * Default text colour
10
14
  */
11
15
  this.defaultTextColour = 'primary';
16
+ /**
17
+ * Slug size
18
+ */
19
+ this.slugSize = 4;
12
20
  /**
13
21
  * Slug colour
14
22
  */
@@ -21,10 +29,18 @@ export class BiggiveCallToAction {
21
29
  * Main title colour
22
30
  */
23
31
  this.mainTitleColour = '';
32
+ /**
33
+ * Main title size
34
+ */
35
+ this.mainTitleSize = 2;
24
36
  /**
25
37
  * Main title
26
38
  */
27
39
  this.mainTitle = null;
40
+ /**
41
+ * Main title size
42
+ */
43
+ this.subtitleSize = 4;
28
44
  /**
29
45
  * Subtitle colour
30
46
  */
@@ -67,12 +83,12 @@ export class BiggiveCallToAction {
67
83
  this.secondaryButtonColourScheme = 'primary';
68
84
  }
69
85
  render() {
70
- return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow },
86
+ return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow },
71
87
  h("div", { class: "sleeve" },
72
88
  h("div", { class: "content-wrap" },
73
- h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug),
74
- h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle),
75
- h("div", { class: 'slug text-colour-' + this.subtitleColour }, this.subtitle),
89
+ h("div", { class: 'slug heading-' + this.slugSize + ' text-colour-' + this.slugColour }, this.slug),
90
+ h("h2", { class: 'title heading-' + this.mainTitleSize + ' text-colour-' + this.mainTitleColour }, this.mainTitle),
91
+ h("div", { class: 'slug heading-' + this.subtitleSize + ' text-colour-' + this.subtitleColour }, this.subtitle),
76
92
  h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser),
77
93
  this.primaryButtonLabel != null && this.primaryButtonUrl != null ? (h("div", { class: "button-wrap" },
78
94
  h("biggive-button", { "colour-scheme": this.primaryButtonColourScheme, url: this.primaryButtonUrl, label: this.primaryButtonLabel }))) : null,
@@ -88,6 +104,24 @@ export class BiggiveCallToAction {
88
104
  "$": ["biggive-call-to-action.css"]
89
105
  }; }
90
106
  static get properties() { return {
107
+ "spaceAbove": {
108
+ "type": "number",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "number",
112
+ "resolved": "number",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": "Space above component"
120
+ },
121
+ "attribute": "space-above",
122
+ "reflect": false,
123
+ "defaultValue": "0"
124
+ },
91
125
  "spaceBelow": {
92
126
  "type": "number",
93
127
  "mutable": false,
@@ -124,6 +158,24 @@ export class BiggiveCallToAction {
124
158
  "reflect": false,
125
159
  "defaultValue": "'primary'"
126
160
  },
161
+ "slugSize": {
162
+ "type": "number",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "number",
166
+ "resolved": "number",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "Slug size"
174
+ },
175
+ "attribute": "slug-size",
176
+ "reflect": false,
177
+ "defaultValue": "4"
178
+ },
127
179
  "slugColour": {
128
180
  "type": "string",
129
181
  "mutable": false,
@@ -178,6 +230,24 @@ export class BiggiveCallToAction {
178
230
  "reflect": false,
179
231
  "defaultValue": "''"
180
232
  },
233
+ "mainTitleSize": {
234
+ "type": "number",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "number",
238
+ "resolved": "number",
239
+ "references": {}
240
+ },
241
+ "required": false,
242
+ "optional": false,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": "Main title size"
246
+ },
247
+ "attribute": "main-title-size",
248
+ "reflect": false,
249
+ "defaultValue": "2"
250
+ },
181
251
  "mainTitle": {
182
252
  "type": "string",
183
253
  "mutable": false,
@@ -196,6 +266,24 @@ export class BiggiveCallToAction {
196
266
  "reflect": false,
197
267
  "defaultValue": "null"
198
268
  },
269
+ "subtitleSize": {
270
+ "type": "number",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "number",
274
+ "resolved": "number",
275
+ "references": {}
276
+ },
277
+ "required": false,
278
+ "optional": false,
279
+ "docs": {
280
+ "tags": [],
281
+ "text": "Main title size"
282
+ },
283
+ "attribute": "subtitle-size",
284
+ "reflect": false,
285
+ "defaultValue": "4"
286
+ },
199
287
  "subtitleColour": {
200
288
  "type": "string",
201
289
  "mutable": false,
@@ -1,6 +1,13 @@
1
1
  export default {
2
2
  title: 'Components/Content',
3
3
  argTypes: {
4
+ spaceAbove: {
5
+ name: 'Space above',
6
+ control: {
7
+ type: 'select',
8
+ options: [0, 1, 2, 3, 4, 5, 6],
9
+ },
10
+ },
4
11
  spaceBelow: {
5
12
  name: 'Space below',
6
13
  control: {
@@ -15,6 +22,13 @@ export default {
15
22
  options: ['primary', 'secondary', 'tertiary', 'white', 'black'],
16
23
  },
17
24
  },
25
+ slugSize: {
26
+ name: 'Slug size',
27
+ control: {
28
+ type: 'select',
29
+ options: [1, 2, 3, 4, 5],
30
+ },
31
+ },
18
32
  slugColour: {
19
33
  name: 'Slug colour',
20
34
  control: {
@@ -25,6 +39,13 @@ export default {
25
39
  slug: {
26
40
  name: 'Slug',
27
41
  },
42
+ mainTitleSize: {
43
+ name: 'Main title size',
44
+ control: {
45
+ type: 'select',
46
+ options: [1, 2, 3, 4, 5],
47
+ },
48
+ },
28
49
  mainTitleColour: {
29
50
  name: 'Main title colour',
30
51
  control: {
@@ -35,6 +56,13 @@ export default {
35
56
  mainTitle: {
36
57
  name: 'Main title',
37
58
  },
59
+ subtitleSize: {
60
+ name: 'Subtitle size',
61
+ control: {
62
+ type: 'select',
63
+ options: [1, 2, 3, 4, 5],
64
+ },
65
+ },
38
66
  subtitleColour: {
39
67
  name: 'Subtitle colour',
40
68
  control: {
@@ -85,12 +113,16 @@ export default {
85
113
  };
86
114
  const Template = args => `
87
115
  <biggive-call-to-action
116
+ space-anove=${args.spaceAbove}
88
117
  space-below=${args.spaceBelow}
89
118
  default-text-colour="${args.defaultTextColour}"
119
+ slug-size="${args.slugSize}"
90
120
  slug-colour="${args.slugColour}"
91
121
  slug="${args.slug}"
122
+ main-title-size="${args.mainTitleSize}"
92
123
  main-title-colour="${args.mainTitleColour}"
93
124
  main-title="${args.mainTitle}"
125
+ subtitle-size="${args.subtitleSize}"
94
126
  subtitle-colour="${args.subtitleColour}"
95
127
  subtitle="${args.subtitle}"
96
128
  teaser-colour="${args.teaserColour}"
@@ -105,12 +137,16 @@ const Template = args => `
105
137
  `;
106
138
  export const CallToActionComponent = Template.bind({});
107
139
  CallToActionComponent.args = {
140
+ spaceAbove: 0,
108
141
  spaceBelow: 0,
109
142
  defaultTextColour: 'primary',
143
+ slugSize: 4,
110
144
  slugColour: '',
111
145
  slug: 'Test Slug',
146
+ mainTitleSize: 2,
112
147
  mainTitleColour: '',
113
148
  mainTitle: 'Test title',
149
+ subtitleSize: 4,
114
150
  subtitleColour: '',
115
151
  subtitle: 'Test subtitle',
116
152
  teaserColour: '',