@biggive/components 1.0.6 → 1.0.7

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 (156) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/{p-cc6e33a6.entry.js → p-160a5e39.entry.js} +1 -1
  3. package/dist/biggive/{p-e0347718.entry.js → p-1e31cbfc.entry.js} +1 -1
  4. package/dist/biggive/{p-8b5487c1.entry.js → p-2d38d3a4.entry.js} +1 -1
  5. package/dist/biggive/{p-a62e9af0.entry.js → p-39db6552.entry.js} +1 -1
  6. package/dist/biggive/p-49c2a10b.entry.js +1 -0
  7. package/dist/biggive/{p-ea35e2fe.entry.js → p-54026729.entry.js} +1 -1
  8. package/dist/biggive/{p-ef6c1ed4.entry.js → p-5cc16f87.entry.js} +1 -1
  9. package/dist/biggive/{p-db3da9bb.entry.js → p-5f7a3f5c.entry.js} +1 -1
  10. package/dist/biggive/{p-2d9408d3.entry.js → p-74bbb296.entry.js} +1 -1
  11. package/dist/biggive/p-7f91f67c.entry.js +1 -0
  12. package/dist/biggive/{p-78129441.entry.js → p-89e206e8.entry.js} +1 -1
  13. package/dist/biggive/{p-29921058.entry.js → p-9a74ac3d.entry.js} +1 -1
  14. package/dist/biggive/{p-3670bfe5.entry.js → p-9ed2bd19.entry.js} +1 -1
  15. package/dist/biggive/{p-7637ac94.entry.js → p-ac6bfc1e.entry.js} +1 -1
  16. package/dist/biggive/{p-068c6901.entry.js → p-b762b246.entry.js} +1 -1
  17. package/dist/biggive/{p-558ebb94.entry.js → p-b812b4f6.entry.js} +1 -1
  18. package/dist/biggive/{p-c84740c3.entry.js → p-be37287b.entry.js} +1 -1
  19. package/dist/biggive/{p-2c7ccc17.entry.js → p-be897395.entry.js} +1 -1
  20. package/dist/biggive/{p-46a368de.entry.js → p-ca786365.entry.js} +1 -1
  21. package/dist/biggive/{p-278fbc22.entry.js → p-cca1d092.entry.js} +1 -1
  22. package/dist/biggive/{p-664bfe6e.entry.js → p-e6631545.entry.js} +1 -1
  23. package/dist/biggive/p-ee459029.entry.js +1 -0
  24. package/dist/biggive/{p-19aac764.entry.js → p-ee77cf8d.entry.js} +1 -1
  25. package/dist/cjs/biggive-back-to-top_11.cjs.entry.js +19 -11
  26. package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
  27. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  29. package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
  30. package/dist/cjs/biggive-call-to-action.cjs.entry.js +6 -2
  31. package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +1 -1
  32. package/dist/cjs/biggive-campaign-card.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
  34. package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
  35. package/dist/cjs/biggive-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/biggive-hero-image.cjs.entry.js +1 -1
  37. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  38. package/dist/cjs/biggive-image-feature.cjs.entry.js +1 -1
  39. package/dist/cjs/biggive-image.cjs.entry.js +32 -2
  40. package/dist/cjs/biggive-page-section.cjs.entry.js +1 -1
  41. package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
  42. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  43. package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
  44. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
  45. package/dist/cjs/biggive-totalizer.cjs.entry.js +1 -1
  46. package/dist/cjs/biggive-video-feature.cjs.entry.js +1 -1
  47. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  48. package/dist/cjs/biggive.cjs.js +1 -1
  49. package/dist/cjs/loader.cjs.js +1 -1
  50. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +44 -0
  51. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +44 -0
  52. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +44 -0
  53. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +44 -0
  54. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +44 -0
  55. package/dist/collection/components/biggive-button/biggive-button.css +44 -0
  56. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +44 -0
  57. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +23 -1
  58. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.stories.js +9 -0
  59. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +44 -0
  60. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +44 -0
  61. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +44 -0
  62. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +44 -0
  63. package/dist/collection/components/biggive-footer/biggive-footer.css +44 -0
  64. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +44 -0
  65. package/dist/collection/components/biggive-grid/biggive-grid.css +44 -0
  66. package/dist/collection/components/biggive-header/biggive-header.css +44 -0
  67. package/dist/collection/components/biggive-heading/biggive-heading.css +44 -0
  68. package/dist/collection/components/biggive-heading/biggive-heading.js +45 -1
  69. package/dist/collection/components/biggive-heading/biggive-heading.stories.js +18 -0
  70. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +44 -0
  71. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +44 -0
  72. package/dist/collection/components/biggive-image/biggive-image.css +44 -0
  73. package/dist/collection/components/biggive-image/biggive-image.js +104 -2
  74. package/dist/collection/components/biggive-image/biggive-image.stories.js +30 -1
  75. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +44 -0
  76. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +44 -0
  77. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +44 -0
  78. package/dist/collection/components/biggive-page-section/biggive-page-section.css +44 -0
  79. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +44 -0
  80. package/dist/collection/components/biggive-quote/biggive-quote.css +44 -0
  81. package/dist/collection/components/biggive-search/biggive-search.css +44 -0
  82. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +44 -0
  83. package/dist/collection/components/biggive-tab/biggive-tab.css +44 -0
  84. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +44 -0
  85. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +44 -0
  86. package/dist/collection/components/biggive-video/biggive-video.css +44 -0
  87. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +44 -0
  88. package/dist/components/biggive-back-to-top.js +1 -1
  89. package/dist/components/biggive-basic-card.js +1 -1
  90. package/dist/components/biggive-beneficiary-icon.js +1 -1
  91. package/dist/components/biggive-boxed-content.js +1 -1
  92. package/dist/components/biggive-branded-image.js +1 -1
  93. package/dist/components/biggive-button2.js +1 -1
  94. package/dist/components/biggive-call-to-action.js +7 -2
  95. package/dist/components/biggive-campaign-card-filter-grid.js +1 -1
  96. package/dist/components/biggive-campaign-card.js +1 -1
  97. package/dist/components/biggive-campaign-highlights.js +1 -1
  98. package/dist/components/biggive-category-icon.js +1 -1
  99. package/dist/components/biggive-footer.js +1 -1
  100. package/dist/components/biggive-formatted-text.js +1 -1
  101. package/dist/components/biggive-grid.js +1 -1
  102. package/dist/components/biggive-header.js +1 -1
  103. package/dist/components/biggive-heading.js +12 -2
  104. package/dist/components/biggive-hero-image.js +1 -1
  105. package/dist/components/biggive-icon-group.js +1 -1
  106. package/dist/components/biggive-image-feature.js +1 -1
  107. package/dist/components/biggive-image.js +37 -3
  108. package/dist/components/biggive-misc-icon2.js +1 -1
  109. package/dist/components/biggive-page-columns.js +1 -1
  110. package/dist/components/biggive-page-section.js +1 -1
  111. package/dist/components/biggive-progress-bar2.js +1 -1
  112. package/dist/components/biggive-quote.js +1 -1
  113. package/dist/components/biggive-search.js +1 -1
  114. package/dist/components/biggive-social-icon2.js +1 -1
  115. package/dist/components/biggive-tab.js +1 -1
  116. package/dist/components/biggive-tabbed-content.js +1 -1
  117. package/dist/components/biggive-totalizer.js +1 -1
  118. package/dist/components/biggive-video-feature.js +1 -1
  119. package/dist/components/biggive-video.js +1 -1
  120. package/dist/esm/biggive-back-to-top_11.entry.js +19 -11
  121. package/dist/esm/biggive-basic-card.entry.js +1 -1
  122. package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
  123. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  124. package/dist/esm/biggive-branded-image.entry.js +1 -1
  125. package/dist/esm/biggive-call-to-action.entry.js +6 -2
  126. package/dist/esm/biggive-campaign-card-filter-grid.entry.js +1 -1
  127. package/dist/esm/biggive-campaign-card.entry.js +1 -1
  128. package/dist/esm/biggive-category-icon.entry.js +1 -1
  129. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  130. package/dist/esm/biggive-grid.entry.js +1 -1
  131. package/dist/esm/biggive-hero-image.entry.js +1 -1
  132. package/dist/esm/biggive-icon-group.entry.js +1 -1
  133. package/dist/esm/biggive-image-feature.entry.js +1 -1
  134. package/dist/esm/biggive-image.entry.js +32 -2
  135. package/dist/esm/biggive-page-section.entry.js +1 -1
  136. package/dist/esm/biggive-quote.entry.js +1 -1
  137. package/dist/esm/biggive-search.entry.js +1 -1
  138. package/dist/esm/biggive-tab.entry.js +1 -1
  139. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  140. package/dist/esm/biggive-totalizer.entry.js +1 -1
  141. package/dist/esm/biggive-video-feature.entry.js +1 -1
  142. package/dist/esm/biggive-video.entry.js +1 -1
  143. package/dist/esm/biggive.js +1 -1
  144. package/dist/esm/loader.js +1 -1
  145. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.d.ts +4 -0
  146. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.stories.d.ts +7 -0
  147. package/dist/types/components/biggive-heading/biggive-heading.d.ts +8 -0
  148. package/dist/types/components/biggive-heading/biggive-heading.stories.d.ts +14 -0
  149. package/dist/types/components/biggive-image/biggive-image.d.ts +18 -0
  150. package/dist/types/components/biggive-image/biggive-image.stories.d.ts +20 -0
  151. package/dist/types/components.d.ts +56 -0
  152. package/hydrate/index.js +85 -36
  153. package/package.json +1 -1
  154. package/dist/biggive/p-293fa43e.entry.js +0 -1
  155. package/dist/biggive/p-ab82bcf1.entry.js +0 -1
  156. package/dist/biggive/p-b4d5f946.entry.js +0 -1
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -1,6 +1,10 @@
1
1
  import { Component, Prop, h } from '@stencil/core';
2
2
  export class BiggiveHeading {
3
3
  constructor() {
4
+ /**
5
+ * Space above component
6
+ */
7
+ this.spaceAbove = 0;
4
8
  /**
5
9
  * Space below component
6
10
  */
@@ -17,6 +21,10 @@ export class BiggiveHeading {
17
21
  * Heading size
18
22
  */
19
23
  this.size = 1;
24
+ /**
25
+ * Text alignment
26
+ */
27
+ this.align = 'left';
20
28
  /**
21
29
  * Heading text
22
30
  */
@@ -24,7 +32,7 @@ export class BiggiveHeading {
24
32
  }
25
33
  render() {
26
34
  const Tag = this.htmlElement;
27
- return (h("div", { class: 'container space-below-' + this.spaceBelow },
35
+ return (h("div", { class: 'container align-' + this.align + ' space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow },
28
36
  h(Tag, { class: 'heading-colour-' + this.colour + ' heading-size-' + this.size }, this.text)));
29
37
  }
30
38
  static get is() { return "biggive-heading"; }
@@ -36,6 +44,24 @@ export class BiggiveHeading {
36
44
  "$": ["biggive-heading.css"]
37
45
  }; }
38
46
  static get properties() { return {
47
+ "spaceAbove": {
48
+ "type": "number",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "number",
52
+ "resolved": "number",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "Space above component"
60
+ },
61
+ "attribute": "space-above",
62
+ "reflect": false,
63
+ "defaultValue": "0"
64
+ },
39
65
  "spaceBelow": {
40
66
  "type": "number",
41
67
  "mutable": false,
@@ -108,6 +134,24 @@ export class BiggiveHeading {
108
134
  "reflect": false,
109
135
  "defaultValue": "1"
110
136
  },
137
+ "align": {
138
+ "type": "string",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "string",
142
+ "resolved": "string",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": false,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": "Text alignment"
150
+ },
151
+ "attribute": "align",
152
+ "reflect": false,
153
+ "defaultValue": "'left'"
154
+ },
111
155
  "text": {
112
156
  "type": "string",
113
157
  "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: {
@@ -29,23 +36,34 @@ export default {
29
36
  options: [1, 2, 3, 4, 5],
30
37
  },
31
38
  },
39
+ align: {
40
+ name: 'Text alignment',
41
+ control: {
42
+ type: 'select',
43
+ options: ['left', 'right', 'center', 'justify'],
44
+ },
45
+ },
32
46
  },
33
47
  };
34
48
  const Template = args => `
35
49
  <biggive-heading
50
+ space-above=${args.spaceAbove}
36
51
  space-below=${args.spaceBelow}
37
52
  colour="${args.colour}"
38
53
  html-element="${args.htmlElement}"
39
54
  size="${args.size}"
55
+ align="${args.align}"
40
56
  text="${args.text}"
41
57
  >
42
58
  </biggive-heading>
43
59
  `;
44
60
  export const HeadingComponent = Template.bind({});
45
61
  HeadingComponent.args = {
62
+ spaceAbove: 0,
46
63
  spaceBelow: 0,
47
64
  colour: 'primary',
48
65
  htmlElement: 'h1',
49
66
  size: '1',
67
+ align: 'left',
50
68
  text: 'This is the heading',
51
69
  };
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;
@@ -306,6 +306,22 @@ a:hover {
306
306
  height: auto;
307
307
  }
308
308
 
309
+ .align-left {
310
+ text-align: left;
311
+ }
312
+
313
+ .align-right {
314
+ text-align: right;
315
+ }
316
+
317
+ .align-center {
318
+ text-align: center;
319
+ }
320
+
321
+ .align-justify {
322
+ text-align: justify;
323
+ }
324
+
309
325
  .space-below-0 {
310
326
  margin-bottom: 0;
311
327
  }
@@ -334,6 +350,34 @@ a:hover {
334
350
  margin-bottom: 60px;
335
351
  }
336
352
 
353
+ .space-above-0 {
354
+ margin-top: 0;
355
+ }
356
+
357
+ .space-above-1 {
358
+ margin-top: 5px;
359
+ }
360
+
361
+ .space-above-2 {
362
+ margin-top: 10px;
363
+ }
364
+
365
+ .space-above-3 {
366
+ margin-top: 15px;
367
+ }
368
+
369
+ .space-above-4 {
370
+ margin-top: 30px;
371
+ }
372
+
373
+ .space-above-5 {
374
+ margin-top: 45px;
375
+ }
376
+
377
+ .space-above-6 {
378
+ margin-top: 60px;
379
+ }
380
+
337
381
  .horizontal-padding-1 {
338
382
  padding-left: 5px;
339
383
  padding-right: 5px;