@biggive/components 1.0.150 → 1.0.152

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 (76) hide show
  1. package/dist/biggive/assets/images/sample-champion.png +0 -0
  2. package/dist/biggive/biggive.esm.js +1 -1
  3. package/dist/biggive/p-377a619a.entry.js +1 -0
  4. package/dist/biggive/{p-da3857e8.js → p-630f723c.js} +1 -1
  5. package/dist/biggive/{p-02a35eb5.entry.js → p-69f60a7d.entry.js} +1 -1
  6. package/dist/biggive/p-6e1ded54.js +1 -0
  7. package/dist/biggive/p-7f50f525.entry.js +1 -0
  8. package/dist/biggive/{p-7ecbe1c0.entry.js → p-9bfc5cdf.entry.js} +1 -1
  9. package/dist/biggive/p-9c5bd60f.entry.js +1 -0
  10. package/dist/biggive/{p-89a40859.entry.js → p-f45f290c.entry.js} +1 -1
  11. package/dist/cjs/biggive-back-to-top_26.cjs.entry.js +30 -14
  12. package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -1
  13. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
  14. package/dist/cjs/biggive-biography-card.cjs.entry.js +23 -0
  15. package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
  16. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  17. package/dist/cjs/biggive.cjs.js +1 -1
  18. package/dist/cjs/{fontawesome-icons-1e9bb6f6.js → fontawesome-icons-6eeff79a.js} +1 -1
  19. package/dist/cjs/{index-7258f788.js → index-e177f1d2.js} +6 -0
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/collection/assets/images/sample-champion.png +0 -0
  22. package/dist/collection/collection-manifest.json +1 -0
  23. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +20 -1
  24. package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +5 -0
  25. package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +513 -0
  26. package/dist/collection/components/biggive-biography-card/biggive-biography-card.js +100 -0
  27. package/dist/collection/components/biggive-button/biggive-button.js +2 -0
  28. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +1 -0
  29. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +22 -1
  30. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +15 -14
  31. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +4 -4
  32. package/dist/collection/components/biggive-header/biggive-header.css +1 -1
  33. package/dist/collection/components/biggive-header/biggive-header.js +1 -1
  34. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +5 -15
  35. package/dist/collection/components/biggive-page-section/biggive-page-section.css +111 -0
  36. package/dist/collection/components/biggive-page-section/biggive-page-section.js +29 -1
  37. package/dist/collection/components/biggive-page-section/biggive-page-section.stories.js +10 -1
  38. package/dist/collection/components/biggive-quote/biggive-quote.css +1 -1
  39. package/dist/components/biggive-basic-card.js +3 -1
  40. package/dist/components/biggive-biography-card.d.ts +11 -0
  41. package/dist/components/biggive-biography-card.js +42 -0
  42. package/dist/components/biggive-button2.js +2 -0
  43. package/dist/components/biggive-campaign-card-filter-grid.js +5 -5
  44. package/dist/components/biggive-campaign-card.js +7 -3
  45. package/dist/components/biggive-header.js +2 -2
  46. package/dist/components/biggive-hero-image.js +1 -1
  47. package/dist/components/biggive-page-section.js +14 -3
  48. package/dist/components/biggive-quote.js +2 -2
  49. package/dist/components/biggive-search.js +1 -1
  50. package/dist/components/fontawesome-icons.js +1 -1
  51. package/dist/components/index.d.ts +1 -0
  52. package/dist/components/index.js +1 -0
  53. package/dist/components/index2.js +6 -1
  54. package/dist/esm/biggive-back-to-top_26.entry.js +30 -14
  55. package/dist/esm/biggive-basic-card.entry.js +2 -1
  56. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  57. package/dist/esm/biggive-biography-card.entry.js +19 -0
  58. package/dist/esm/biggive-category-icon.entry.js +2 -2
  59. package/dist/esm/biggive-search.entry.js +1 -1
  60. package/dist/esm/biggive.js +1 -1
  61. package/dist/esm/{fontawesome-icons-a644b74f.js → fontawesome-icons-f8ad1e3e.js} +1 -1
  62. package/dist/esm/{index-278aa0f2.js → index-deec8c9b.js} +6 -1
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +4 -0
  65. package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +3 -0
  66. package/dist/types/components/biggive-biography-card/biggive-biography-card.d.ts +19 -0
  67. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +6 -0
  68. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +1 -1
  69. package/dist/types/components/biggive-page-section/biggive-page-section.d.ts +4 -0
  70. package/dist/types/components/biggive-page-section/biggive-page-section.stories.d.ts +7 -0
  71. package/dist/types/components.d.ts +66 -0
  72. package/hydrate/index.js +68 -14
  73. package/package.json +1 -1
  74. package/dist/biggive/p-1f6529a5.entry.js +0 -1
  75. package/dist/biggive/p-3ebdb751.entry.js +0 -1
  76. package/dist/biggive/p-b4b8d56e.js +0 -1
@@ -0,0 +1,513 @@
1
+ body {
2
+ background-color: #D7D7D7;
3
+ }
4
+
5
+ h1, h3, h3, h4, h5, h6 {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ h1, .heading-1 {
10
+ font-size: 47px;
11
+ line-height: 60px;
12
+ font-weight: bold;
13
+ }
14
+
15
+ h2, .heading-2 {
16
+ font-size: 38px;
17
+ line-height: 45px;
18
+ font-weight: bold;
19
+ }
20
+
21
+ h3, .heading-3 {
22
+ font-size: 25px;
23
+ line-height: 32px;
24
+ font-weight: bold;
25
+ }
26
+
27
+ h4, .heading-4 {
28
+ font-size: 20px;
29
+ line-height: 24px;
30
+ font-weight: bold;
31
+ }
32
+
33
+ h5, .heading-5 {
34
+ font-size: 17px;
35
+ line-height: 24px;
36
+ font-weight: bold;
37
+ }
38
+
39
+ a {
40
+ color: inherit;
41
+ text-decoration: underline;
42
+ }
43
+ a:hover {
44
+ text-decoration: none;
45
+ }
46
+
47
+ .colour-primary {
48
+ color: #2C089B;
49
+ }
50
+
51
+ .colour-secondary {
52
+ color: #2AF135;
53
+ }
54
+
55
+ .colour-tertiary {
56
+ color: #FF7272;
57
+ }
58
+
59
+ .colour-white {
60
+ color: #FFFFFF;
61
+ }
62
+
63
+ .colour-black {
64
+ color: #000000;
65
+ }
66
+
67
+ .text-colour-hover-primary:hover,
68
+ .text-colour-primary {
69
+ color: #2C089B;
70
+ }
71
+
72
+ .text-colour-hover-secondary:hover,
73
+ .text-colour-secondary {
74
+ color: #2AF135;
75
+ }
76
+
77
+ .text-colour-hover-tertiary:hover,
78
+ .text-colour-tertiary {
79
+ color: #FF7272;
80
+ }
81
+
82
+ .text-colour-hover-white:hover,
83
+ .text-colour-white {
84
+ color: #FFFFFF;
85
+ }
86
+
87
+ .text-colour-hover-black:hover,
88
+ .text-colour-black {
89
+ color: #000000;
90
+ }
91
+
92
+ .fill-primary {
93
+ fill: #2C089B;
94
+ }
95
+
96
+ .fill-secondary {
97
+ fill: #2AF135;
98
+ }
99
+
100
+ .fill-tertiary {
101
+ fill: #FF7272;
102
+ }
103
+
104
+ .fill-white {
105
+ fill: #FFFFFF;
106
+ }
107
+
108
+ .fill-black {
109
+ fill: #000000;
110
+ }
111
+
112
+ .fill-red {
113
+ fill: red;
114
+ }
115
+
116
+ .background-colour-hover-primary:hover,
117
+ .background-colour-primary {
118
+ background-color: #2C089B;
119
+ }
120
+
121
+ .background-colour-hover-secondary:hover,
122
+ .background-colour-secondary {
123
+ background-color: #2AF135;
124
+ }
125
+
126
+ .background-colour-hover-tertiary:hover,
127
+ .background-colour-tertiary {
128
+ background-color: #FF7272;
129
+ }
130
+
131
+ .background-colour-hover-white:hover,
132
+ .background-colour-white {
133
+ background-color: #FFFFFF;
134
+ }
135
+
136
+ .background-colour-hover-black:hover,
137
+ .background-colour-black {
138
+ background-color: #000000;
139
+ }
140
+
141
+ .input-wrap {
142
+ display: flex;
143
+ justify-content: space-between;
144
+ }
145
+
146
+ .input-text {
147
+ font-family: "Euclid Triangle", sans-serif;
148
+ font-size: 17px;
149
+ line-height: 24px;
150
+ color: #000000;
151
+ padding: 5px 10px;
152
+ box-sizing: border-box;
153
+ width: 100%;
154
+ }
155
+ .input-text:focus {
156
+ outline: 0;
157
+ }
158
+ .input-text:placeholder {
159
+ color: #4A4A4A;
160
+ }
161
+
162
+ .button {
163
+ font-size: 17px;
164
+ line-height: 24px;
165
+ padding: 10px 30px;
166
+ border-radius: 5px;
167
+ border: 1px solid #000000;
168
+ background-color: #000000;
169
+ filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.22));
170
+ color: #FFFFFF;
171
+ display: inline-block;
172
+ text-decoration: none;
173
+ text-align: center;
174
+ transition: all ease-in-out 0.5s;
175
+ cursor: pointer;
176
+ }
177
+ .button:hover {
178
+ background-color: #FFFFFF;
179
+ color: #000000;
180
+ }
181
+ .button.size-small {
182
+ font-size: 13px;
183
+ line-height: 17px;
184
+ padding: 5px 15px;
185
+ }
186
+ .button.button.rounded-true {
187
+ border-radius: 27.5px;
188
+ }
189
+ .button.button.rounded-true.size-small {
190
+ border-radius: 20px;
191
+ }
192
+
193
+ .button-primary {
194
+ color: #FFFFFF;
195
+ background-color: #2C089B;
196
+ border-color: #2C089B;
197
+ }
198
+ .button-primary:hover {
199
+ color: #2C089B;
200
+ background-color: #FFFFFF;
201
+ }
202
+
203
+ .button-secondary {
204
+ color: #2C089B;
205
+ background-color: #2AF135;
206
+ border-color: #2AF135;
207
+ }
208
+ .button-secondary:hover {
209
+ background-color: #FFFFFF;
210
+ }
211
+
212
+ .button-tertiary {
213
+ color: #FFFFFF;
214
+ background-color: #FF7272;
215
+ border-color: #FF7272;
216
+ }
217
+ .button-tertiary:hover {
218
+ background-color: #FFFFFF;
219
+ }
220
+
221
+ .button-white {
222
+ color: #2C089B;
223
+ background-color: #FFFFFF;
224
+ border-color: #FFFFFF;
225
+ }
226
+ .button-white:hover {
227
+ color: #FFFFFF;
228
+ background-color: #2C089B;
229
+ }
230
+
231
+ .button-black {
232
+ color: #FFFFFF;
233
+ background-color: #000000;
234
+ border-color: #000000;
235
+ }
236
+ .button-black:hover {
237
+ color: #000000;
238
+ background-color: #FFFFFF;
239
+ }
240
+
241
+ .button-clear-primary {
242
+ color: #2C089B;
243
+ background-color: transparent;
244
+ text-decoration: underline;
245
+ box-shadow: none;
246
+ border: 0;
247
+ padding-left: 0;
248
+ padding-right: 0;
249
+ }
250
+ .button-clear-primary:hover {
251
+ text-decoration: none;
252
+ background-color: transparent;
253
+ }
254
+
255
+ .button-clear-secondary {
256
+ color: #2AF135;
257
+ background-color: transparent;
258
+ text-decoration: underline;
259
+ box-shadow: none;
260
+ border: 0;
261
+ padding-left: 0;
262
+ padding-right: 0;
263
+ }
264
+ .button-clear-secondary:hover {
265
+ text-decoration: none;
266
+ background-color: transparent;
267
+ }
268
+
269
+ .button-clear-tertiary {
270
+ color: #FF7272;
271
+ background-color: transparent;
272
+ text-decoration: underline;
273
+ box-shadow: none;
274
+ border: 0;
275
+ padding-left: 0;
276
+ padding-right: 0;
277
+ }
278
+ .button-clear-tertiary:hover {
279
+ text-decoration: none;
280
+ background-color: transparent;
281
+ }
282
+
283
+ .button-clear-white {
284
+ color: #FFFFFF;
285
+ background-color: transparent;
286
+ text-decoration: underline;
287
+ box-shadow: none;
288
+ border: 0;
289
+ padding-left: 0;
290
+ padding-right: 0;
291
+ }
292
+ .button-clear-white:hover {
293
+ color: #FFFFFF;
294
+ text-decoration: none;
295
+ background-color: transparent;
296
+ }
297
+
298
+ .button-rounded {
299
+ border-radius: 27.5px;
300
+ }
301
+ .button-rounded.size-small {
302
+ border-radius: 20px;
303
+ }
304
+
305
+ .progress-bar {
306
+ display: flex;
307
+ }
308
+ .progress-bar .slider {
309
+ margin: auto 15px auto 0;
310
+ position: relative;
311
+ flex-grow: 1;
312
+ }
313
+ .progress-bar .slider:before {
314
+ content: "";
315
+ position: absolute;
316
+ display: block;
317
+ top: 0;
318
+ left: 0;
319
+ bottom: 0;
320
+ right: 0;
321
+ background-color: #E8E8E8;
322
+ border-radius: 4px;
323
+ }
324
+ .progress-bar .slider .progress {
325
+ position: relative;
326
+ border-radius: 4px;
327
+ background-color: #000000;
328
+ height: 8px;
329
+ }
330
+ .progress-bar .counter {
331
+ font-weight: 700;
332
+ color: #000000;
333
+ font-size: 14px;
334
+ line-height: 18px;
335
+ }
336
+
337
+ .progress-bar-primary .slider .progress {
338
+ background-color: #2C089B;
339
+ }
340
+ .progress-bar-primary .counter {
341
+ color: #2C089B;
342
+ }
343
+
344
+ .progress-bar-secondary .slider .progress {
345
+ background-color: #2AF135;
346
+ }
347
+ .progress-bar-secondary .counter {
348
+ color: #2AF135;
349
+ }
350
+
351
+ .video-wrap {
352
+ position: relative;
353
+ padding-bottom: 56.25%;
354
+ }
355
+
356
+ .video-wrap iframe,
357
+ .video-wrap video {
358
+ position: absolute;
359
+ border: 0;
360
+ display: block;
361
+ left: 0;
362
+ right: 0;
363
+ top: 0;
364
+ bottom: 0;
365
+ width: 100%;
366
+ height: 100%;
367
+ }
368
+
369
+ .image-wrap img {
370
+ width: 100%;
371
+ height: auto;
372
+ }
373
+
374
+ .align-left {
375
+ text-align: left;
376
+ }
377
+
378
+ .align-right {
379
+ text-align: right;
380
+ }
381
+
382
+ .align-center {
383
+ text-align: center;
384
+ }
385
+
386
+ .align-justify {
387
+ text-align: justify;
388
+ }
389
+
390
+ .space-below-0 {
391
+ margin-bottom: 0;
392
+ }
393
+
394
+ .space-below-1 {
395
+ margin-bottom: 5px;
396
+ }
397
+
398
+ .space-below-2 {
399
+ margin-bottom: 10px;
400
+ }
401
+
402
+ .space-below-3 {
403
+ margin-bottom: 15px;
404
+ }
405
+
406
+ .space-below-4 {
407
+ margin-bottom: 30px;
408
+ }
409
+
410
+ .space-below-5 {
411
+ margin-bottom: 45px;
412
+ }
413
+
414
+ .space-below-6 {
415
+ margin-bottom: 60px;
416
+ }
417
+
418
+ .space-above-0 {
419
+ margin-top: 0;
420
+ }
421
+
422
+ .space-above-1 {
423
+ margin-top: 5px;
424
+ }
425
+
426
+ .space-above-2 {
427
+ margin-top: 10px;
428
+ }
429
+
430
+ .space-above-3 {
431
+ margin-top: 15px;
432
+ }
433
+
434
+ .space-above-4 {
435
+ margin-top: 30px;
436
+ }
437
+
438
+ .space-above-5 {
439
+ margin-top: 45px;
440
+ }
441
+
442
+ .space-above-6 {
443
+ margin-top: 60px;
444
+ }
445
+
446
+ .horizontal-padding-1 {
447
+ padding-left: 5px;
448
+ padding-right: 5px;
449
+ }
450
+
451
+ .horizontal-padding-2 {
452
+ padding-left: 10px;
453
+ padding-right: 10px;
454
+ }
455
+
456
+ .horizontal-padding-3 {
457
+ padding-left: 15px;
458
+ padding-right: 15px;
459
+ }
460
+
461
+ .horizontal-padding-4 {
462
+ padding-left: 30px;
463
+ padding-right: 30px;
464
+ }
465
+
466
+ .horizontal-padding-5 {
467
+ padding-left: 45px;
468
+ padding-right: 45px;
469
+ }
470
+
471
+ .horizontal-padding-6 {
472
+ padding-left: 60px;
473
+ padding-right: 60px;
474
+ }
475
+
476
+ .vertical-padding-1 {
477
+ padding-top: 5px;
478
+ padding-bottom: 5px;
479
+ }
480
+
481
+ .vertical-padding-2 {
482
+ padding-top: 10px;
483
+ padding-bottom: 10px;
484
+ }
485
+
486
+ .vertical-padding-3 {
487
+ padding-top: 15px;
488
+ padding-bottom: 15px;
489
+ }
490
+
491
+ .vertical-padding-4 {
492
+ padding-top: 30px;
493
+ padding-bottom: 30px;
494
+ }
495
+
496
+ .vertical-padding-5 {
497
+ padding-top: 45px;
498
+ padding-bottom: 45px;
499
+ }
500
+
501
+ .vertical-padding-6 {
502
+ padding-top: 60px;
503
+ padding-bottom: 60px;
504
+ }
505
+
506
+ :host {
507
+ display: block;
508
+ }
509
+
510
+ .container {
511
+ background-size: contain;
512
+ background-position: center center;
513
+ }
@@ -0,0 +1,100 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveBiographyCard {
3
+ constructor() {
4
+ this.spaceBelow = 0;
5
+ this.imageUrl = '';
6
+ this.fullName = '';
7
+ this.jobTitle = '';
8
+ }
9
+ render() {
10
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, this.imageUrl != '' ? (h("div", { class: "image-wrap", style: { 'background-image': "url('" + this.imageUrl + "')" } }, h("img", { src: this.imageUrl, alt: this.fullName, title: this.fullName }))) : null, h("h3", { class: "full-name" }, this.fullName), h("div", { class: "job-title" }, this.jobTitle)));
11
+ }
12
+ static get is() { return "biggive-biography-card"; }
13
+ static get encapsulation() { return "shadow"; }
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["biggive-biography-card.scss"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["biggive-biography-card.css"]
22
+ };
23
+ }
24
+ static get properties() {
25
+ return {
26
+ "spaceBelow": {
27
+ "type": "number",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "number",
31
+ "resolved": "number",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": "Space below component"
39
+ },
40
+ "attribute": "space-below",
41
+ "reflect": false,
42
+ "defaultValue": "0"
43
+ },
44
+ "imageUrl": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": "Full URL of the main image."
57
+ },
58
+ "attribute": "image-url",
59
+ "reflect": false,
60
+ "defaultValue": "''"
61
+ },
62
+ "fullName": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "Job title"
75
+ },
76
+ "attribute": "full-name",
77
+ "reflect": false,
78
+ "defaultValue": "''"
79
+ },
80
+ "jobTitle": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Job title"
93
+ },
94
+ "attribute": "job-title",
95
+ "reflect": false,
96
+ "defaultValue": "''"
97
+ }
98
+ };
99
+ }
100
+ }
@@ -2,6 +2,8 @@ import { h } from '@stencil/core';
2
2
  export class BiggiveButton {
3
3
  constructor() {
4
4
  this.handleButtonClick = (event) => {
5
+ // Don't also fire e.g. `<biggive-campaign-card>` click event.
6
+ event.stopPropagation();
5
7
  this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
6
8
  };
7
9
  this.spaceBelow = 1;
@@ -514,6 +514,7 @@ a:hover {
514
514
  font-size: 17px;
515
515
  line-height: 24px;
516
516
  filter: drop-shadow(-1px 3px 12px rgba(0, 0, 0, 0.25));
517
+ cursor: pointer;
517
518
  position: relative;
518
519
  height: 100%;
519
520
  background-color: #FFFFFF;
@@ -1,6 +1,9 @@
1
1
  import { h } from '@stencil/core';
2
2
  export class BiggiveCampaignCard {
3
3
  constructor() {
4
+ this.handleCardGeneralClick = (event) => {
5
+ this.doCardGeneralClick.emit({ event, url: this.moreInfoButtonUrl });
6
+ };
4
7
  this.spaceBelow = 4;
5
8
  this.campaignType = null;
6
9
  this.banner = null;
@@ -22,7 +25,7 @@ export class BiggiveCampaignCard {
22
25
  this.datetime = undefined;
23
26
  }
24
27
  render() {
25
- return (h("div", { class: 'container space-below-' + this.spaceBelow.toString() }, h("div", { class: "sleeve" }, this.campaignType !== null ? (h("div", { class: "campaign-type" }, h("span", null, this.campaignType))) : null, this.banner !== null ? (h("div", { class: "image-wrap banner", role: "presentation", style: { 'background-image': 'url(' + this.banner + ')' } })) : (h("div", { class: "image-wrap banner" })), h("div", { class: "title-wrap" }, h("h3", null, this.campaignTitle), h("div", { class: "organisation-name" }, "By ", this.organisationName)), h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "button-wrap" }, h("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel, isFutureCampaign: this.isFutureCampaign, isPastCampaign: this.isPastCampaign, datetime: this.datetime }), h("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
28
+ return (h("div", { class: 'container space-below-' + this.spaceBelow.toString(), onClick: this.handleCardGeneralClick }, h("div", { class: "sleeve" }, this.campaignType !== null ? (h("div", { class: "campaign-type" }, h("span", null, this.campaignType))) : null, this.banner !== null ? (h("div", { class: "image-wrap banner", role: "presentation", style: { 'background-image': 'url(' + this.banner + ')' } })) : (h("div", { class: "image-wrap banner" })), h("div", { class: "title-wrap" }, h("h3", null, this.campaignTitle), h("div", { class: "organisation-name" }, "By ", this.organisationName)), h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "button-wrap" }, h("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel, isFutureCampaign: this.isFutureCampaign, isPastCampaign: this.isPastCampaign, datetime: this.datetime }), h("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
26
29
  }
27
30
  static get is() { return "biggive-campaign-card"; }
28
31
  static get encapsulation() { return "shadow"; }
@@ -381,4 +384,22 @@ export class BiggiveCampaignCard {
381
384
  }
382
385
  };
383
386
  }
387
+ static get events() {
388
+ return [{
389
+ "method": "doCardGeneralClick",
390
+ "name": "doCardGeneralClick",
391
+ "bubbles": true,
392
+ "cancelable": true,
393
+ "composed": true,
394
+ "docs": {
395
+ "tags": [],
396
+ "text": ""
397
+ },
398
+ "complexType": {
399
+ "original": "{ event: object; url: string }",
400
+ "resolved": "{ event: object; url: string; }",
401
+ "references": {}
402
+ }
403
+ }];
404
+ }
384
405
  }