@biggive/components 202307271559.0.0 → 202308021605.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/{p-4ac3c59d.entry.js → p-0d3008a2.entry.js} +1 -1
  3. package/dist/biggive/{p-e1f37ddb.entry.js → p-50d9a75b.entry.js} +1 -1
  4. package/dist/biggive/p-6f588def.entry.js +1 -0
  5. package/dist/biggive/p-98b25061.entry.js +1 -0
  6. package/dist/biggive/{p-c0f333bc.entry.js → p-9946cc08.entry.js} +1 -1
  7. package/dist/biggive/{p-a70e0902.entry.js → p-9c09a586.entry.js} +1 -1
  8. package/dist/biggive/{p-e0041d91.entry.js → p-e5f630d1.entry.js} +1 -1
  9. package/dist/cjs/biggive-accordion_42.cjs.entry.js +26 -26
  10. package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
  11. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  13. package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/biggive-image-card.cjs.entry.js +22 -28
  15. package/dist/cjs/biggive-table.cjs.entry.js +1 -1
  16. package/dist/cjs/biggive.cjs.js +1 -1
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/components/biggive-accordion/biggive-accordion.css +4 -4
  19. package/dist/collection/components/biggive-article-card/biggive-article-card.css +6 -6
  20. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +3 -3
  21. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +4 -4
  22. package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +9 -9
  23. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +1 -1
  24. package/dist/collection/components/biggive-button/biggive-button.css +5 -5
  25. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +1 -1
  26. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +1 -1
  27. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +1 -1
  28. package/dist/collection/components/biggive-carousel/biggive-carousel.css +1 -1
  29. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +4 -4
  30. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +1 -1
  31. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +1 -1
  32. package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.css +6 -6
  33. package/dist/collection/components/biggive-heading/biggive-heading.css +2 -2
  34. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +2 -2
  35. package/dist/collection/components/biggive-icon-button/biggive-icon-button.css +4 -4
  36. package/dist/collection/components/biggive-image-button/biggive-image-button.css +3 -3
  37. package/dist/collection/components/biggive-image-card/biggive-image-card.css +113 -241
  38. package/dist/collection/components/biggive-image-card/biggive-image-card.js +118 -129
  39. package/dist/collection/components/biggive-image-card/biggive-image-card.stories.js +105 -26
  40. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +1 -1
  41. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +6 -6
  42. package/dist/collection/components/biggive-page-section/biggive-page-section.css +1 -1
  43. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +1 -1
  44. package/dist/collection/components/biggive-quote/biggive-quote.css +2 -2
  45. package/dist/collection/components/biggive-sheet/biggive-sheet.css +4 -4
  46. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +8 -8
  47. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +9 -54
  48. package/dist/collection/components/biggive-table/biggive-table.css +6 -12
  49. package/dist/collection/components/biggive-timeline/biggive-timeline.css +13 -13
  50. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +2 -2
  51. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +1 -1
  52. package/dist/components/biggive-accordion.js +1 -1
  53. package/dist/components/biggive-article-card.js +1 -1
  54. package/dist/components/biggive-basic-card.js +1 -1
  55. package/dist/components/biggive-beneficiary-icon.js +1 -1
  56. package/dist/components/biggive-biography-card.js +1 -1
  57. package/dist/components/biggive-boxed-content.js +1 -1
  58. package/dist/components/biggive-button2.js +1 -1
  59. package/dist/components/biggive-call-to-action.js +1 -1
  60. package/dist/components/biggive-campaign-card.js +1 -1
  61. package/dist/components/biggive-campaign-highlights.js +1 -1
  62. package/dist/components/biggive-carousel2.js +1 -1
  63. package/dist/components/biggive-category-icon.js +1 -1
  64. package/dist/components/biggive-formatted-text.js +2 -2
  65. package/dist/components/biggive-generic-icon2.js +1 -1
  66. package/dist/components/biggive-heading.js +1 -1
  67. package/dist/components/biggive-hero-image.js +1 -1
  68. package/dist/components/biggive-icon-button.js +1 -1
  69. package/dist/components/biggive-image-button.js +1 -1
  70. package/dist/components/biggive-image-card.js +36 -42
  71. package/dist/components/biggive-image-feature.js +1 -1
  72. package/dist/components/biggive-misc-icon2.js +1 -1
  73. package/dist/components/biggive-page-section.js +1 -1
  74. package/dist/components/biggive-progress-bar2.js +1 -1
  75. package/dist/components/biggive-quote.js +1 -1
  76. package/dist/components/biggive-sheet.js +1 -1
  77. package/dist/components/biggive-social-icon2.js +1 -1
  78. package/dist/components/biggive-tabbed-content.js +1 -1
  79. package/dist/components/biggive-table.js +1 -1
  80. package/dist/components/biggive-timeline.js +1 -1
  81. package/dist/components/biggive-totalizer.js +1 -1
  82. package/dist/components/biggive-video-feature.js +1 -1
  83. package/dist/esm/biggive-accordion_42.entry.js +26 -26
  84. package/dist/esm/biggive-basic-card.entry.js +1 -1
  85. package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
  86. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  87. package/dist/esm/biggive-category-icon.entry.js +1 -1
  88. package/dist/esm/biggive-image-card.entry.js +22 -28
  89. package/dist/esm/biggive-table.entry.js +1 -1
  90. package/dist/esm/biggive.js +1 -1
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/types/components/biggive-image-card/biggive-image-card.d.ts +13 -13
  93. package/dist/types/components/biggive-image-card/biggive-image-card.stories.d.ts +31 -7
  94. package/dist/types/components.d.ts +24 -24
  95. package/hydrate/index.js +67 -73
  96. package/package.json +1 -1
  97. package/dist/biggive/p-5ff6d84f.entry.js +0 -1
  98. package/dist/biggive/p-b878559d.entry.js +0 -1
@@ -2,46 +2,40 @@ import { h } from '@stencil/core';
2
2
  export class BiggiveImageCard {
3
3
  constructor() {
4
4
  this.spaceBelow = 0;
5
- this.backgroundColour = 'white';
5
+ this.backgroundColour = 'primary';
6
6
  this.backgroundImageUrl = '';
7
- this.slug = undefined;
8
- this.slugColour = 'black';
9
- this.date = undefined;
10
- this.dateColour = 'black';
11
- this.mainTitle = undefined;
12
- this.mainTitleColour = 'black';
7
+ this.cardColour = 'white';
8
+ this.textColour = 'black';
13
9
  this.mainImageUrl = undefined;
14
10
  this.mainImageAltText = undefined;
15
- this.image1Url = undefined;
16
- this.image1AltText = undefined;
17
- this.image2Url = undefined;
18
- this.image2AltText = undefined;
19
- this.imageLabel = undefined;
20
- this.imageLabelColour = 'black';
11
+ this.textAlign = 'center';
12
+ this.mainTitle = undefined;
13
+ this.subtitle = undefined;
14
+ this.teaser = undefined;
15
+ this.icon = true;
16
+ this.iconColour = 'primary';
17
+ this.buttonAlign = 'center';
18
+ this.buttonStyle = 'standard';
21
19
  this.buttonLabel = undefined;
22
20
  this.buttonUrl = undefined;
23
- this.buttonColour = 'black';
21
+ this.buttonColourScheme = 'clear-primary';
24
22
  this.clipBottomLeftCorner = true;
25
23
  this.clipTopRightCorner = true;
24
+ this.headingLevel = 3;
25
+ this.addAnimation = false;
26
26
  }
27
27
  render() {
28
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: 'sleeve background-colour-' +
28
+ const HeadingTag = `h${this.headingLevel}`;
29
+ return (h("div", { class: 'container space-below-' +
30
+ this.spaceBelow +
31
+ ' background-colour-' +
29
32
  this.backgroundColour +
30
- ' text-colour-black ' +
31
- ' slug-colour-' +
32
- this.slugColour +
33
- ' date-colour-' +
34
- this.dateColour +
35
- ' main-title-colour-' +
36
- this.mainTitleColour +
37
- ' image-label-colour-' +
38
- this.imageLabelColour +
39
- ' button-colour' +
40
- this.buttonColour +
41
33
  ' clip-bottom-left-corner-' +
42
34
  this.clipBottomLeftCorner +
43
35
  ' clip-top-right-corner-' +
44
- this.clipTopRightCorner, style: { 'background-image': "url('" + this.backgroundImageUrl + "')" } }, h("div", { class: "content-wrap" }, h("div", { class: "meta" }, this.slug != '' ? h("div", { class: "slug text-colour-primary" }, this.slug) : null, this.date != '' ? h("div", { class: "date" }, this.date) : null), this.mainImageUrl != '' ? (h("div", { class: "main-image-container" }, h("div", { class: "image-wrap" }, h("img", { src: this.mainImageUrl, alt: this.mainImageAltText })))) : null, h("h3", { class: "title" }, h("a", { href: this.buttonUrl }, this.mainTitle)), this.image1Url != '' || this.image2Url != '' ? (h("div", { class: "image-group" }, this.image1Url != '' ? (h("div", { class: "image-container" }, h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.image1Url + "')" } }, h("img", { src: this.image1Url, alt: this.image1AltText })))) : null, this.image2Url != '' ? (h("div", { class: "image-container" }, h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.image2Url + "')" } }, h("img", { src: this.image2Url, alt: this.image2AltText })))) : null)) : null, this.imageLabel != '' ? h("div", { class: "image-label" }, this.imageLabel) : null, this.buttonLabel != null && this.buttonUrl != null ? (h("div", { class: "button-wrap align-right" }, h("biggive-button", { "colour-scheme": 'clear-' + this.buttonColour, url: this.buttonUrl, label: this.buttonLabel }))) : null))));
36
+ this.clipTopRightCorner +
37
+ ' add-animation-' +
38
+ this.addAnimation, style: { 'background-image': "url('" + this.backgroundImageUrl + "')" } }, h("a", { href: this.buttonUrl }, h("div", { class: 'sleeve background-colour-' + this.cardColour + ' text-colour-' + this.textColour + ' text-align-' + this.textAlign }, h("div", { class: "content-wrap" }, this.icon == true ? (h("div", { class: "icon" }, h("svg", { width: "53", height: "39", viewBox: "0 0 53 39", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M38.7009 13.6572L52.3535 38.6959H25.0386L38.7009 13.6572Z", class: "fill-black" }), h("path", { d: "M20.4789 36.4199L6.36785e-06 5.89713e-05L40.9724 6.61352e-05L20.4789 36.4199Z", class: 'fill-' + this.iconColour })))) : null, this.mainImageUrl != '' ? (h("div", { class: "main-image-container" }, h("div", { class: "image-wrap" }, h("img", { src: this.mainImageUrl, alt: this.mainImageAltText, title: this.mainImageAltText })))) : null, h(HeadingTag, { class: "title" }, this.mainTitle), h("div", { class: "subtitle" }, this.subtitle), h("div", { class: "teaser" }, this.teaser), this.buttonLabel != null && this.buttonUrl != null && this.buttonUrl != '' ? (h("div", { class: 'button-wrap align-' + this.buttonAlign }, h("biggive-button", { "colour-scheme": this.buttonColourScheme, label: this.buttonLabel }))) : null)))));
45
39
  }
46
40
  static get is() { return "biggive-image-card"; }
47
41
  static get encapsulation() { return "shadow"; }
@@ -101,7 +95,7 @@ export class BiggiveImageCard {
101
95
  },
102
96
  "attribute": "background-colour",
103
97
  "reflect": false,
104
- "defaultValue": "'white'"
98
+ "defaultValue": "'primary'"
105
99
  },
106
100
  "backgroundImageUrl": {
107
101
  "type": "string",
@@ -121,24 +115,7 @@ export class BiggiveImageCard {
121
115
  "reflect": false,
122
116
  "defaultValue": "''"
123
117
  },
124
- "slug": {
125
- "type": "string",
126
- "mutable": false,
127
- "complexType": {
128
- "original": "string",
129
- "resolved": "string",
130
- "references": {}
131
- },
132
- "required": false,
133
- "optional": false,
134
- "docs": {
135
- "tags": [],
136
- "text": ""
137
- },
138
- "attribute": "slug",
139
- "reflect": false
140
- },
141
- "slugColour": {
118
+ "cardColour": {
142
119
  "type": "string",
143
120
  "mutable": false,
144
121
  "complexType": {
@@ -157,28 +134,11 @@ export class BiggiveImageCard {
157
134
  "tags": [],
158
135
  "text": ""
159
136
  },
160
- "attribute": "slug-colour",
137
+ "attribute": "card-colour",
161
138
  "reflect": false,
162
- "defaultValue": "'black'"
163
- },
164
- "date": {
165
- "type": "string",
166
- "mutable": false,
167
- "complexType": {
168
- "original": "string",
169
- "resolved": "string",
170
- "references": {}
171
- },
172
- "required": false,
173
- "optional": false,
174
- "docs": {
175
- "tags": [],
176
- "text": ""
177
- },
178
- "attribute": "date",
179
- "reflect": false
139
+ "defaultValue": "'white'"
180
140
  },
181
- "dateColour": {
141
+ "textColour": {
182
142
  "type": "string",
183
143
  "mutable": false,
184
144
  "complexType": {
@@ -197,11 +157,11 @@ export class BiggiveImageCard {
197
157
  "tags": [],
198
158
  "text": ""
199
159
  },
200
- "attribute": "date-colour",
160
+ "attribute": "text-colour",
201
161
  "reflect": false,
202
162
  "defaultValue": "'black'"
203
163
  },
204
- "mainTitle": {
164
+ "mainImageUrl": {
205
165
  "type": "string",
206
166
  "mutable": false,
207
167
  "complexType": {
@@ -215,21 +175,16 @@ export class BiggiveImageCard {
215
175
  "tags": [],
216
176
  "text": ""
217
177
  },
218
- "attribute": "main-title",
178
+ "attribute": "main-image-url",
219
179
  "reflect": false
220
180
  },
221
- "mainTitleColour": {
181
+ "mainImageAltText": {
222
182
  "type": "string",
223
183
  "mutable": false,
224
184
  "complexType": {
225
- "original": "brandColour",
226
- "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
227
- "references": {
228
- "brandColour": {
229
- "location": "import",
230
- "path": "../../globals/brand-colour"
231
- }
232
- }
185
+ "original": "string",
186
+ "resolved": "string",
187
+ "references": {}
233
188
  },
234
189
  "required": false,
235
190
  "optional": false,
@@ -237,16 +192,15 @@ export class BiggiveImageCard {
237
192
  "tags": [],
238
193
  "text": ""
239
194
  },
240
- "attribute": "main-title-colour",
241
- "reflect": false,
242
- "defaultValue": "'black'"
195
+ "attribute": "main-image-alt-text",
196
+ "reflect": false
243
197
  },
244
- "mainImageUrl": {
198
+ "textAlign": {
245
199
  "type": "string",
246
200
  "mutable": false,
247
201
  "complexType": {
248
- "original": "string",
249
- "resolved": "string",
202
+ "original": "'left' | 'center' | 'right'",
203
+ "resolved": "\"center\" | \"left\" | \"right\"",
250
204
  "references": {}
251
205
  },
252
206
  "required": false,
@@ -255,10 +209,11 @@ export class BiggiveImageCard {
255
209
  "tags": [],
256
210
  "text": ""
257
211
  },
258
- "attribute": "main-image-url",
259
- "reflect": false
212
+ "attribute": "text-align",
213
+ "reflect": false,
214
+ "defaultValue": "'center'"
260
215
  },
261
- "mainImageAltText": {
216
+ "mainTitle": {
262
217
  "type": "string",
263
218
  "mutable": false,
264
219
  "complexType": {
@@ -272,10 +227,10 @@ export class BiggiveImageCard {
272
227
  "tags": [],
273
228
  "text": ""
274
229
  },
275
- "attribute": "main-image-alt-text",
230
+ "attribute": "main-title",
276
231
  "reflect": false
277
232
  },
278
- "image1Url": {
233
+ "subtitle": {
279
234
  "type": "string",
280
235
  "mutable": false,
281
236
  "complexType": {
@@ -289,10 +244,10 @@ export class BiggiveImageCard {
289
244
  "tags": [],
290
245
  "text": ""
291
246
  },
292
- "attribute": "image-1-url",
247
+ "attribute": "subtitle",
293
248
  "reflect": false
294
249
  },
295
- "image1AltText": {
250
+ "teaser": {
296
251
  "type": "string",
297
252
  "mutable": false,
298
253
  "complexType": {
@@ -306,15 +261,15 @@ export class BiggiveImageCard {
306
261
  "tags": [],
307
262
  "text": ""
308
263
  },
309
- "attribute": "image-1-alt-text",
264
+ "attribute": "teaser",
310
265
  "reflect": false
311
266
  },
312
- "image2Url": {
313
- "type": "string",
267
+ "icon": {
268
+ "type": "boolean",
314
269
  "mutable": false,
315
270
  "complexType": {
316
- "original": "string",
317
- "resolved": "string",
271
+ "original": "boolean",
272
+ "resolved": "boolean",
318
273
  "references": {}
319
274
  },
320
275
  "required": false,
@@ -323,16 +278,22 @@ export class BiggiveImageCard {
323
278
  "tags": [],
324
279
  "text": ""
325
280
  },
326
- "attribute": "image-2-url",
327
- "reflect": false
281
+ "attribute": "icon",
282
+ "reflect": false,
283
+ "defaultValue": "true"
328
284
  },
329
- "image2AltText": {
285
+ "iconColour": {
330
286
  "type": "string",
331
287
  "mutable": false,
332
288
  "complexType": {
333
- "original": "string",
334
- "resolved": "string",
335
- "references": {}
289
+ "original": "brandColour",
290
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
291
+ "references": {
292
+ "brandColour": {
293
+ "location": "import",
294
+ "path": "../../globals/brand-colour"
295
+ }
296
+ }
336
297
  },
337
298
  "required": false,
338
299
  "optional": false,
@@ -340,10 +301,11 @@ export class BiggiveImageCard {
340
301
  "tags": [],
341
302
  "text": ""
342
303
  },
343
- "attribute": "image-2-alt-text",
344
- "reflect": false
304
+ "attribute": "icon-colour",
305
+ "reflect": false,
306
+ "defaultValue": "'primary'"
345
307
  },
346
- "imageLabel": {
308
+ "buttonAlign": {
347
309
  "type": "string",
348
310
  "mutable": false,
349
311
  "complexType": {
@@ -357,21 +319,17 @@ export class BiggiveImageCard {
357
319
  "tags": [],
358
320
  "text": ""
359
321
  },
360
- "attribute": "image-label",
361
- "reflect": false
322
+ "attribute": "button-align",
323
+ "reflect": false,
324
+ "defaultValue": "'center'"
362
325
  },
363
- "imageLabelColour": {
326
+ "buttonStyle": {
364
327
  "type": "string",
365
328
  "mutable": false,
366
329
  "complexType": {
367
- "original": "brandColour",
368
- "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
369
- "references": {
370
- "brandColour": {
371
- "location": "import",
372
- "path": "../../globals/brand-colour"
373
- }
374
- }
330
+ "original": "string",
331
+ "resolved": "string",
332
+ "references": {}
375
333
  },
376
334
  "required": false,
377
335
  "optional": false,
@@ -379,9 +337,9 @@ export class BiggiveImageCard {
379
337
  "tags": [],
380
338
  "text": ""
381
339
  },
382
- "attribute": "image-label-colour",
340
+ "attribute": "button-style",
383
341
  "reflect": false,
384
- "defaultValue": "'black'"
342
+ "defaultValue": "'standard'"
385
343
  },
386
344
  "buttonLabel": {
387
345
  "type": "string",
@@ -417,18 +375,13 @@ export class BiggiveImageCard {
417
375
  "attribute": "button-url",
418
376
  "reflect": false
419
377
  },
420
- "buttonColour": {
378
+ "buttonColourScheme": {
421
379
  "type": "string",
422
380
  "mutable": false,
423
381
  "complexType": {
424
- "original": "brandColour",
425
- "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
426
- "references": {
427
- "brandColour": {
428
- "location": "import",
429
- "path": "../../globals/brand-colour"
430
- }
431
- }
382
+ "original": "string",
383
+ "resolved": "string",
384
+ "references": {}
432
385
  },
433
386
  "required": false,
434
387
  "optional": false,
@@ -436,9 +389,9 @@ export class BiggiveImageCard {
436
389
  "tags": [],
437
390
  "text": ""
438
391
  },
439
- "attribute": "button-colour",
392
+ "attribute": "button-colour-scheme",
440
393
  "reflect": false,
441
- "defaultValue": "'black'"
394
+ "defaultValue": "'clear-primary'"
442
395
  },
443
396
  "clipBottomLeftCorner": {
444
397
  "type": "boolean",
@@ -475,6 +428,42 @@ export class BiggiveImageCard {
475
428
  "attribute": "clip-top-right-corner",
476
429
  "reflect": false,
477
430
  "defaultValue": "true"
431
+ },
432
+ "headingLevel": {
433
+ "type": "number",
434
+ "mutable": false,
435
+ "complexType": {
436
+ "original": "1 | 2 | 3 | 4 | 5 | 6",
437
+ "resolved": "1 | 2 | 3 | 4 | 5 | 6",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": false,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": ""
445
+ },
446
+ "attribute": "heading-level",
447
+ "reflect": false,
448
+ "defaultValue": "3"
449
+ },
450
+ "addAnimation": {
451
+ "type": "boolean",
452
+ "mutable": false,
453
+ "complexType": {
454
+ "original": "boolean",
455
+ "resolved": "boolean",
456
+ "references": {}
457
+ },
458
+ "required": false,
459
+ "optional": false,
460
+ "docs": {
461
+ "tags": [],
462
+ "text": ""
463
+ },
464
+ "attribute": "add-animation",
465
+ "reflect": false,
466
+ "defaultValue": "false"
478
467
  }
479
468
  };
480
469
  }
@@ -15,30 +15,65 @@ export default {
15
15
  options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black', 'transparent'],
16
16
  },
17
17
  },
18
- backgroundColourHover: {
19
- name: 'Hover background colour',
18
+ backgroundImageUrl: {
19
+ name: 'Background image URL',
20
+ },
21
+ cardColour: {
22
+ name: 'Card colour',
23
+ control: {
24
+ type: 'select',
25
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black', 'transparent'],
26
+ },
27
+ },
28
+ textColour: {
29
+ name: 'Text colour',
20
30
  control: {
21
31
  type: 'select',
22
32
  options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black', 'transparent'],
23
33
  },
24
34
  },
25
- slug: {
26
- name: 'Slug',
35
+ icon: {
36
+ name: 'Icon',
27
37
  },
28
- date: {
29
- name: 'Date',
38
+ iconColour: {
39
+ name: 'Icon colour',
40
+ control: {
41
+ type: 'select',
42
+ options: [
43
+ 'primary',
44
+ 'secondary',
45
+ 'tertiary',
46
+ 'brand-1',
47
+ 'brand-2',
48
+ 'brand-3',
49
+ 'brand-4',
50
+ 'brand-5',
51
+ 'brand-6',
52
+ 'white',
53
+ 'black',
54
+ 'red',
55
+ 'clear-primary',
56
+ 'clear-secondary',
57
+ 'clear-tertiary',
58
+ 'clear-brand-1',
59
+ 'clear-brand-2',
60
+ 'clear-brand-3',
61
+ 'clear-brand-4',
62
+ 'clear-brand-5',
63
+ 'clear-brand-6',
64
+ 'clear-white',
65
+ 'clear-black',
66
+ ],
67
+ },
30
68
  },
31
69
  mainTitle: {
32
70
  name: 'Title',
33
71
  },
34
- imageUrl: {
35
- name: 'Image URL',
36
- },
37
- imageAltText: {
38
- name: 'Image alt text',
72
+ subtitle: {
73
+ name: 'Subtitle',
39
74
  },
40
- imageLabel: {
41
- name: 'Image Label',
75
+ teaser: {
76
+ name: 'Teaser',
42
77
  },
43
78
  buttonUrl: {
44
79
  name: 'Button URL',
@@ -46,35 +81,79 @@ export default {
46
81
  buttonLabel: {
47
82
  name: 'Button label',
48
83
  },
84
+ buttonColourScheme: {
85
+ name: 'Button colour scheme',
86
+ control: {
87
+ type: 'select',
88
+ options: [
89
+ 'primary',
90
+ 'secondary',
91
+ 'tertiary',
92
+ 'brand-1',
93
+ 'brand-2',
94
+ 'brand-3',
95
+ 'brand-4',
96
+ 'brand-5',
97
+ 'brand-6',
98
+ 'white',
99
+ 'black',
100
+ 'clear-primary',
101
+ 'clear-secondary',
102
+ 'clear-tertiary',
103
+ 'clear-brand-1',
104
+ 'clear-brand-2',
105
+ 'clear-brand-3',
106
+ 'clear-brand-4',
107
+ 'clear-brand-5',
108
+ 'clear-brand-6',
109
+ 'clear-white',
110
+ 'clear-black',
111
+ ],
112
+ },
113
+ },
114
+ clipBottomLeftCorner: {
115
+ name: 'Clip bottom left corner',
116
+ },
117
+ clipTopRight: {
118
+ name: 'Clip top right corner',
119
+ },
49
120
  },
50
121
  };
51
122
  const Template = (args) => `
52
123
  <biggive-image-card
53
124
  space-below="${args.spaceBelow}"
54
125
  background-colour="${args.backgroundColour}"
55
- background-colour-hover="${args.backgroundColourHover}"
56
- slug="${args.slug}"
57
- date="${args.date}"
58
- main-title="${args.mainTitle}"
59
- image-url="${args.imageUrl}"
60
- image-alt-text="${args.imageAltText}"
61
- image-label="${args.imageLabel}"
126
+ background-image-url="${args.backgroundImageUrl}"
127
+ card-colour="${args.cardColour}"
128
+ text-colour="${args.textColour}"
129
+ icon="${args.icon}"
130
+ icon-colour="${args.iconColour}"
131
+ mainTitle="${args.mainTitle}"
132
+ subtitle="${args.subtitle}"
133
+ teaser="${args.teaser}"
62
134
  button-label="${args.buttonLabel}"
63
135
  button-url="${args.buttonUrl}"
136
+ button-colour-ccheme="${args.buttonColourScheme}"
137
+ clip-bottom-left-corner="${args.clipBottomLeftCorner}"
138
+ clip-top-right-corner="${args.clipTopRightCorner}"
64
139
  >
65
140
  </biggive-image-card>
66
141
  `;
67
142
  export const ImageCardComponent = Template.bind({});
68
143
  ImageCardComponent.args = {
69
144
  spaceBelow: 4,
145
+ icon: true,
146
+ iconColour: 'primary',
70
147
  backgroundColour: 'white',
71
- backgroundColourHover: 'tertiary',
72
- slug: '• Blog Post • Mental Health',
73
- date: 'September 2022',
148
+ backgroundImageUrl: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
149
+ cardColour: 'white',
150
+ textColour: 'white',
74
151
  mainTitle: 'Sample main title',
75
- imageUrl: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
76
- imageAltText: 'Image description',
77
- imageLabel: 'By Joe Bloggs',
152
+ subtitle: 'Sample subtitle',
153
+ teaser: 'teaser',
78
154
  buttonUrl: '#',
79
155
  buttonLabel: 'Click here',
156
+ buttonColourScheme: 'clear-primary',
157
+ clipBottomLeftCorner: true,
158
+ clipTopRightCorner: true,
80
159
  };
@@ -76,7 +76,7 @@ a:hover {
76
76
 
77
77
  .text-colour-hover-grey-light:hover,
78
78
  .text-colour-grey-light {
79
- color: #F6F6F6;
79
+ color: #E8E8E8;
80
80
  }
81
81
 
82
82
  .text-colour-hover-grey-medium:hover,
@@ -76,7 +76,7 @@ a:hover {
76
76
 
77
77
  .background-colour-hover-grey-light:hover,
78
78
  .background-colour-grey-light {
79
- background-color: #F6F6F6;
79
+ background-color: #E8E8E8;
80
80
  }
81
81
 
82
82
  .background-colour-hover-grey-medium:hover,
@@ -142,7 +142,7 @@ a:hover {
142
142
  }
143
143
 
144
144
  .fill-grey-light {
145
- fill: #F6F6F6;
145
+ fill: #E8E8E8;
146
146
  }
147
147
 
148
148
  .fill-grey-medium {
@@ -243,10 +243,10 @@ a:hover {
243
243
  fill: #D7D7D7;
244
244
  }
245
245
  .misc-icon-item.colour-scheme-black {
246
- background-color: #F6F6F6;
246
+ background-color: #E8E8E8;
247
247
  }
248
248
  .misc-icon-item.colour-scheme-black svg {
249
- fill: #F6F6F6;
249
+ fill: #E8E8E8;
250
250
  }
251
251
  .misc-icon-item.colour-scheme-black {
252
252
  background-color: #8A8A8A;
@@ -363,10 +363,10 @@ a:hover {
363
363
  fill: #D7D7D7;
364
364
  }
365
365
  .misc-icon-item.colour-scheme-black {
366
- background-color: #F6F6F6;
366
+ background-color: #E8E8E8;
367
367
  }
368
368
  .misc-icon-item.colour-scheme-black svg {
369
- fill: #F6F6F6;
369
+ fill: #E8E8E8;
370
370
  }
371
371
  .misc-icon-item.colour-scheme-black {
372
372
  background-color: #8A8A8A;
@@ -347,7 +347,7 @@ a:hover {
347
347
  .container.background-color-grey-light:after,
348
348
  .container.background-color-grey-light .sleeve:before,
349
349
  .container.background-color-grey-light .sleeve {
350
- background-color: #F6F6F6;
350
+ background-color: #E8E8E8;
351
351
  color: #000000;
352
352
  }
353
353
 
@@ -89,7 +89,7 @@ a:hover {
89
89
  left: 0;
90
90
  bottom: 0;
91
91
  right: 0;
92
- background-color: #F6F6F6;
92
+ background-color: #E8E8E8;
93
93
  border-radius: 4px;
94
94
  }
95
95
  .progress-bar .slider .progress {