@biggive/components 1.0.149 → 1.0.151

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 (87) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-377a619a.entry.js +1 -0
  3. package/dist/biggive/{p-da3857e8.js → p-630f723c.js} +1 -1
  4. package/dist/biggive/{p-02a35eb5.entry.js → p-69f60a7d.entry.js} +1 -1
  5. package/dist/biggive/p-6e1ded54.js +1 -0
  6. package/dist/biggive/{p-7ecbe1c0.entry.js → p-9bfc5cdf.entry.js} +1 -1
  7. package/dist/biggive/p-9c5bd60f.entry.js +1 -0
  8. package/dist/biggive/p-b91b0d0e.entry.js +1 -0
  9. package/dist/biggive/{p-89a40859.entry.js → p-f45f290c.entry.js} +1 -1
  10. package/dist/cjs/biggive-back-to-top_26.cjs.entry.js +37 -18
  11. package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -1
  12. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
  13. package/dist/cjs/biggive-biography-card.cjs.entry.js +23 -0
  14. package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
  15. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  16. package/dist/cjs/biggive.cjs.js +1 -1
  17. package/dist/cjs/{fontawesome-icons-1e9bb6f6.js → fontawesome-icons-6eeff79a.js} +1 -1
  18. package/dist/cjs/{index-7258f788.js → index-e177f1d2.js} +6 -0
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +20 -1
  22. package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +5 -0
  23. package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +513 -0
  24. package/dist/collection/components/biggive-biography-card/biggive-biography-card.js +100 -0
  25. package/dist/collection/components/biggive-button/biggive-button.css +16 -0
  26. package/dist/collection/components/biggive-button/biggive-button.js +59 -1
  27. package/dist/collection/components/biggive-button/biggive-button.stories.js +17 -0
  28. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +1 -16
  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-campaign-highlights/biggive-campaign-highlights.js +2 -2
  33. package/dist/collection/components/biggive-header/biggive-header.css +1 -1
  34. package/dist/collection/components/biggive-header/biggive-header.js +1 -1
  35. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +22 -2
  36. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +1 -1
  37. package/dist/collection/components/biggive-page-section/biggive-page-section.css +111 -0
  38. package/dist/collection/components/biggive-page-section/biggive-page-section.js +29 -1
  39. package/dist/collection/components/biggive-page-section/biggive-page-section.stories.js +10 -1
  40. package/dist/collection/components/biggive-quote/biggive-quote.css +1 -1
  41. package/dist/components/biggive-article-card.js +8 -2
  42. package/dist/components/biggive-basic-card.js +11 -3
  43. package/dist/components/biggive-biography-card.d.ts +11 -0
  44. package/dist/components/biggive-biography-card.js +42 -0
  45. package/dist/components/biggive-button2.js +18 -4
  46. package/dist/components/biggive-call-to-action.js +8 -2
  47. package/dist/components/biggive-campaign-card-filter-grid.js +17 -11
  48. package/dist/components/biggive-campaign-card.js +7 -3
  49. package/dist/components/biggive-campaign-highlights.js +1 -1
  50. package/dist/components/biggive-footer.js +8 -2
  51. package/dist/components/biggive-header.js +2 -2
  52. package/dist/components/biggive-hero-image.js +10 -4
  53. package/dist/components/biggive-image-feature.js +8 -2
  54. package/dist/components/biggive-page-section.js +14 -3
  55. package/dist/components/biggive-quote.js +2 -2
  56. package/dist/components/biggive-search.js +9 -3
  57. package/dist/components/biggive-video-feature.js +8 -2
  58. package/dist/components/fontawesome-icons.js +1 -1
  59. package/dist/components/index.d.ts +1 -0
  60. package/dist/components/index.js +1 -0
  61. package/dist/components/index2.js +6 -1
  62. package/dist/esm/biggive-back-to-top_26.entry.js +37 -18
  63. package/dist/esm/biggive-basic-card.entry.js +2 -1
  64. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  65. package/dist/esm/biggive-biography-card.entry.js +19 -0
  66. package/dist/esm/biggive-category-icon.entry.js +2 -2
  67. package/dist/esm/biggive-search.entry.js +1 -1
  68. package/dist/esm/biggive.js +1 -1
  69. package/dist/esm/{fontawesome-icons-a644b74f.js → fontawesome-icons-f8ad1e3e.js} +1 -1
  70. package/dist/esm/{index-278aa0f2.js → index-deec8c9b.js} +6 -1
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +4 -0
  73. package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +3 -0
  74. package/dist/types/components/biggive-biography-card/biggive-biography-card.d.ts +19 -0
  75. package/dist/types/components/biggive-button/biggive-button.d.ts +15 -0
  76. package/dist/types/components/biggive-button/biggive-button.stories.d.ts +11 -0
  77. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +6 -0
  78. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +1 -1
  79. package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +4 -4
  80. package/dist/types/components/biggive-page-section/biggive-page-section.d.ts +4 -0
  81. package/dist/types/components/biggive-page-section/biggive-page-section.stories.d.ts +7 -0
  82. package/dist/types/components.d.ts +90 -0
  83. package/hydrate/index.js +79 -19
  84. package/package.json +1 -1
  85. package/dist/biggive/p-1f6529a5.entry.js +0 -1
  86. package/dist/biggive/p-b0ab7ff2.entry.js +0 -1
  87. 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
+ }
@@ -517,4 +517,20 @@ a:hover {
517
517
  }
518
518
  .container a.full-width-true {
519
519
  display: block;
520
+ }
521
+ .container .msg-wrapper {
522
+ display: flex;
523
+ justify-content: center;
524
+ }
525
+ .container .msg-wrapper biggive-misc-icon {
526
+ margin-top: auto;
527
+ margin-bottom: auto;
528
+ }
529
+ .container .msg-wrapper p {
530
+ text-align: center;
531
+ }
532
+ @media screen and (max-width: 1200px) {
533
+ .container .msg-wrapper p {
534
+ font-size: 15px;
535
+ }
520
536
  }
@@ -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;
@@ -11,9 +13,12 @@ export class BiggiveButton {
11
13
  this.fullWidth = false;
12
14
  this.size = 'medium';
13
15
  this.rounded = false;
16
+ this.isFutureCampaign = false;
17
+ this.isPastCampaign = false;
18
+ this.datetime = undefined;
14
19
  }
15
20
  render() {
16
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, h("span", { onClick: this.handleButtonClick }, this.label))));
21
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, this.isFutureCampaign || this.isPastCampaign ? (h("div", { class: "msg-wrapper" }, h("biggive-misc-icon", { "background-colour": "white", "icon-colour": "black", icon: "Timer" }), this.isFutureCampaign ? h("p", null, "Launches ", this.datetime) : h("p", null, "Closed ", this.datetime))) : (h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, h("span", { onClick: this.handleButtonClick }, this.label)))));
17
22
  }
18
23
  static get is() { return "biggive-button"; }
19
24
  static get encapsulation() { return "shadow"; }
@@ -154,6 +159,59 @@ export class BiggiveButton {
154
159
  "attribute": "rounded",
155
160
  "reflect": false,
156
161
  "defaultValue": "false"
162
+ },
163
+ "isFutureCampaign": {
164
+ "type": "boolean",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "boolean",
168
+ "resolved": "boolean",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": "Boolean flag telling the component if the campaign is in the future (not open yet)."
176
+ },
177
+ "attribute": "is-future-campaign",
178
+ "reflect": false,
179
+ "defaultValue": "false"
180
+ },
181
+ "isPastCampaign": {
182
+ "type": "boolean",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "boolean",
186
+ "resolved": "boolean",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": "Boolean flag telling the component if the campaign is in the future (not open yet)."
194
+ },
195
+ "attribute": "is-past-campaign",
196
+ "reflect": false,
197
+ "defaultValue": "false"
198
+ },
199
+ "datetime": {
200
+ "type": "string",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "string",
204
+ "resolved": "string",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": "To be used alongside isFutureCampaign = true or isPastCampaign = true.\nIf either is true, we render out: 'Launches: ' + datetime or 'Closed: ' + datetime.\nPreferred format: DD/MM/YYYY, HH:MM\nDON-661."
212
+ },
213
+ "attribute": "datetime",
214
+ "reflect": false
157
215
  }
158
216
  };
159
217
  }