@biggive/components 1.0.119 → 1.0.121

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 (28) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-9b389ba1.entry.js +1 -0
  3. package/dist/cjs/biggive-back-to-top_24.cjs.entry.js +7 -41
  4. package/dist/cjs/biggive.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +9 -42
  7. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +9 -42
  8. package/dist/collection/components/biggive-footer/biggive-footer.js +1 -1
  9. package/dist/collection/components/biggive-header/biggive-header.js +2 -2
  10. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +2 -5
  11. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +3 -3
  12. package/dist/components/biggive-campaign-card.js +3 -20
  13. package/dist/components/biggive-campaign-highlights.js +3 -19
  14. package/dist/components/biggive-footer.js +1 -1
  15. package/dist/components/biggive-header.js +2 -2
  16. package/dist/components/biggive-progress-bar2.js +1 -4
  17. package/dist/components/biggive-social-icon.js +1 -1
  18. package/dist/esm/biggive-back-to-top_24.entry.js +7 -41
  19. package/dist/esm/biggive.js +1 -1
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +4 -12
  22. package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.d.ts +4 -12
  23. package/dist/types/components/biggive-progress-bar/biggive-progress-bar.d.ts +1 -2
  24. package/dist/types/components/biggive-social-icon/biggive-social-icon.d.ts +2 -2
  25. package/dist/types/components.d.ts +22 -38
  26. package/hydrate/index.js +11 -47
  27. package/package.json +1 -1
  28. package/dist/biggive/p-248739b8.entry.js +0 -1
@@ -287,10 +287,6 @@ export namespace Components {
287
287
  * e.g. "Match Funded".
288
288
  */
289
289
  "campaignType": string;
290
- /**
291
- * e.g. 'GBP'.
292
- */
293
- "currencyCode": string;
294
290
  /**
295
291
  * Donate button colour scheme
296
292
  */
@@ -320,9 +316,9 @@ export namespace Components {
320
316
  */
321
317
  "organisationName": string;
322
318
  /**
323
- * Amount for the primary figure
319
+ * Amount for the primary figure, formatted with currency symbol
324
320
  */
325
- "primaryFigureAmount": number;
321
+ "primaryFigureAmount": string;
326
322
  /**
327
323
  * Label for the primary figure
328
324
  */
@@ -332,9 +328,9 @@ export namespace Components {
332
328
  */
333
329
  "progressBarCounter": number;
334
330
  /**
335
- * Amount for the secondary figure
331
+ * Amount for the secondary figure, formatted with currency symbol
336
332
  */
337
- "secondaryFigureAmount": number;
333
+ "secondaryFigureAmount": string;
338
334
  /**
339
335
  * Label for the secondary figure
340
336
  */
@@ -388,13 +384,9 @@ export namespace Components {
388
384
  */
389
385
  "campaignTitle": string;
390
386
  /**
391
- * e.g. 'GBP'.
392
- */
393
- "currencyCode": string;
394
- /**
395
- * Amount for the primary figure
387
+ * Amount for the primary figure, formatted with currency symbol
396
388
  */
397
- "primaryFigureAmount": number;
389
+ "primaryFigureAmount": string;
398
390
  /**
399
391
  * Label for the primary figure
400
392
  */
@@ -412,9 +404,9 @@ export namespace Components {
412
404
  */
413
405
  "progressBarCounter": number;
414
406
  /**
415
- * Amount for the secondary figure
407
+ * Amount for the secondary figure, formatted with currency symbol
416
408
  */
417
- "secondaryFigureAmount": number;
409
+ "secondaryFigureAmount": string;
418
410
  /**
419
411
  * Label for the secondary figure
420
412
  */
@@ -765,7 +757,7 @@ export namespace Components {
765
757
  */
766
758
  "colourScheme": string;
767
759
  /**
768
- * Text
760
+ * Percentage to show + use for CSS width; round before input if desired
769
761
  */
770
762
  "counter": number;
771
763
  /**
@@ -807,11 +799,11 @@ export namespace Components {
807
799
  */
808
800
  "backgroundColour": string;
809
801
  /**
810
- * Background colour
802
+ * Icon colour
811
803
  */
812
804
  "iconColour": string;
813
805
  /**
814
- * service
806
+ * Service name
815
807
  */
816
808
  "service": string;
817
809
  /**
@@ -1539,10 +1531,6 @@ declare namespace LocalJSX {
1539
1531
  * e.g. "Match Funded".
1540
1532
  */
1541
1533
  "campaignType"?: string;
1542
- /**
1543
- * e.g. 'GBP'.
1544
- */
1545
- "currencyCode"?: string;
1546
1534
  /**
1547
1535
  * Donate button colour scheme
1548
1536
  */
@@ -1572,9 +1560,9 @@ declare namespace LocalJSX {
1572
1560
  */
1573
1561
  "organisationName"?: string;
1574
1562
  /**
1575
- * Amount for the primary figure
1563
+ * Amount for the primary figure, formatted with currency symbol
1576
1564
  */
1577
- "primaryFigureAmount"?: number;
1565
+ "primaryFigureAmount"?: string;
1578
1566
  /**
1579
1567
  * Label for the primary figure
1580
1568
  */
@@ -1584,9 +1572,9 @@ declare namespace LocalJSX {
1584
1572
  */
1585
1573
  "progressBarCounter"?: number;
1586
1574
  /**
1587
- * Amount for the secondary figure
1575
+ * Amount for the secondary figure, formatted with currency symbol
1588
1576
  */
1589
- "secondaryFigureAmount"?: number;
1577
+ "secondaryFigureAmount"?: string;
1590
1578
  /**
1591
1579
  * Label for the secondary figure
1592
1580
  */
@@ -1651,13 +1639,9 @@ declare namespace LocalJSX {
1651
1639
  */
1652
1640
  "campaignTitle"?: string;
1653
1641
  /**
1654
- * e.g. 'GBP'.
1655
- */
1656
- "currencyCode"?: string;
1657
- /**
1658
- * Amount for the primary figure
1642
+ * Amount for the primary figure, formatted with currency symbol
1659
1643
  */
1660
- "primaryFigureAmount"?: number;
1644
+ "primaryFigureAmount"?: string;
1661
1645
  /**
1662
1646
  * Label for the primary figure
1663
1647
  */
@@ -1675,9 +1659,9 @@ declare namespace LocalJSX {
1675
1659
  */
1676
1660
  "progressBarCounter"?: number;
1677
1661
  /**
1678
- * Amount for the secondary figure
1662
+ * Amount for the secondary figure, formatted with currency symbol
1679
1663
  */
1680
- "secondaryFigureAmount"?: number;
1664
+ "secondaryFigureAmount"?: string;
1681
1665
  /**
1682
1666
  * Label for the secondary figure
1683
1667
  */
@@ -2035,7 +2019,7 @@ declare namespace LocalJSX {
2035
2019
  */
2036
2020
  "colourScheme"?: string;
2037
2021
  /**
2038
- * Text
2022
+ * Percentage to show + use for CSS width; round before input if desired
2039
2023
  */
2040
2024
  "counter"?: number;
2041
2025
  /**
@@ -2081,11 +2065,11 @@ declare namespace LocalJSX {
2081
2065
  */
2082
2066
  "backgroundColour"?: string;
2083
2067
  /**
2084
- * Background colour
2068
+ * Icon colour
2085
2069
  */
2086
2070
  "iconColour"?: string;
2087
2071
  /**
2088
- * service
2072
+ * Service name
2089
2073
  */
2090
2074
  "service"?: string;
2091
2075
  /**
package/hydrate/index.js CHANGED
@@ -6472,7 +6472,6 @@ class BiggiveCampaignCard {
6472
6472
  this.banner = null;
6473
6473
  this.campaignTitle = null;
6474
6474
  this.organisationName = null;
6475
- this.currencyCode = undefined;
6476
6475
  this.primaryFigureLabel = null;
6477
6476
  this.primaryFigureAmount = null;
6478
6477
  this.secondaryFigureLabel = null;
@@ -6485,23 +6484,8 @@ class BiggiveCampaignCard {
6485
6484
  this.moreInfoButtonUrl = null;
6486
6485
  this.moreInfoButtonColourScheme = 'clear-primary';
6487
6486
  }
6488
- /**
6489
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
6490
- */
6491
- formatCurrency(currencyCode, amount) {
6492
- if (amount === null || isNaN(amount)) {
6493
- return '–';
6494
- }
6495
- return Intl.NumberFormat('en-GB', {
6496
- style: 'currency',
6497
- currency: currencyCode,
6498
- currencyDisplay: 'symbol',
6499
- minimumFractionDigits: 0,
6500
- maximumFractionDigits: 0,
6501
- }).format(amount);
6502
- }
6503
6487
  render() {
6504
- return (hAsync("div", { class: 'container space-below-' + this.spaceBelow.toString() }, hAsync("div", { class: "sleeve" }, this.campaignType !== null ? (hAsync("div", { class: "campaign-type" }, hAsync("span", null, this.campaignType))) : null, this.banner !== null ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : (hAsync("div", { class: "image-wrap banner" })), hAsync("div", { class: "title-wrap" }, hAsync("h3", null, this.campaignTitle), hAsync("div", { class: "organisation-name" }, "By ", this.organisationName)), hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "button-wrap" }, hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
6488
+ return (hAsync("div", { class: 'container space-below-' + this.spaceBelow.toString() }, hAsync("div", { class: "sleeve" }, this.campaignType !== null ? (hAsync("div", { class: "campaign-type" }, hAsync("span", null, this.campaignType))) : null, this.banner !== null ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : (hAsync("div", { class: "image-wrap banner" })), hAsync("div", { class: "title-wrap" }, hAsync("h3", null, this.campaignTitle), hAsync("div", { class: "organisation-name" }, "By ", this.organisationName)), hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.primaryFigureAmount)), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.secondaryFigureAmount))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "button-wrap" }, hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
6505
6489
  }
6506
6490
  static get style() { return biggiveCampaignCardCss; }
6507
6491
  static get cmpMeta() { return {
@@ -6513,11 +6497,10 @@ class BiggiveCampaignCard {
6513
6497
  "banner": [1],
6514
6498
  "campaignTitle": [1, "campaign-title"],
6515
6499
  "organisationName": [1, "organisation-name"],
6516
- "currencyCode": [1, "currency-code"],
6517
6500
  "primaryFigureLabel": [1, "primary-figure-label"],
6518
- "primaryFigureAmount": [2, "primary-figure-amount"],
6501
+ "primaryFigureAmount": [1, "primary-figure-amount"],
6519
6502
  "secondaryFigureLabel": [1, "secondary-figure-label"],
6520
- "secondaryFigureAmount": [2, "secondary-figure-amount"],
6503
+ "secondaryFigureAmount": [1, "secondary-figure-amount"],
6521
6504
  "progressBarCounter": [2, "progress-bar-counter"],
6522
6505
  "donateButtonLabel": [1, "donate-button-label"],
6523
6506
  "donateButtonUrl": [1, "donate-button-url"],
@@ -6632,7 +6615,6 @@ class BiggiveCampaignHighlights {
6632
6615
  this.spaceBelow = 0;
6633
6616
  this.banner = '';
6634
6617
  this.campaignTitle = null;
6635
- this.currencyCode = 'GBP';
6636
6618
  this.primaryFigureLabel = null;
6637
6619
  this.primaryFigureAmount = null;
6638
6620
  this.secondaryFigureLabel = null;
@@ -6643,22 +6625,8 @@ class BiggiveCampaignHighlights {
6643
6625
  this.secondaryStatIcon = null;
6644
6626
  this.secondaryStatText = null;
6645
6627
  }
6646
- /**
6647
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
6648
- */
6649
- formatCurrency(currencyCode, amount) {
6650
- if (amount === null || isNaN(amount)) {
6651
- return '–';
6652
- }
6653
- return Intl.NumberFormat('en-GB', {
6654
- style: 'currency',
6655
- currency: currencyCode,
6656
- currencyDisplay: 'symbol',
6657
- maximumFractionDigits: 0,
6658
- }).format(amount);
6659
- }
6660
6628
  render() {
6661
- return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, this.campaignTitle != null ? (hAsync("div", { class: "campaign-title" }, hAsync("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : null, hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.secondaryStatText))) : null))));
6629
+ return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, this.campaignTitle != null ? (hAsync("div", { class: "campaign-title" }, hAsync("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : null, hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.primaryFigureAmount)), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.secondaryFigureAmount))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.secondaryStatText))) : null))));
6662
6630
  }
6663
6631
  static get style() { return biggiveCampaignHighlightsCss; }
6664
6632
  static get cmpMeta() { return {
@@ -6668,11 +6636,10 @@ class BiggiveCampaignHighlights {
6668
6636
  "spaceBelow": [2, "space-below"],
6669
6637
  "banner": [1],
6670
6638
  "campaignTitle": [1, "campaign-title"],
6671
- "currencyCode": [1, "currency-code"],
6672
6639
  "primaryFigureLabel": [1, "primary-figure-label"],
6673
- "primaryFigureAmount": [2, "primary-figure-amount"],
6640
+ "primaryFigureAmount": [1, "primary-figure-amount"],
6674
6641
  "secondaryFigureLabel": [1, "secondary-figure-label"],
6675
- "secondaryFigureAmount": [2, "secondary-figure-amount"],
6642
+ "secondaryFigureAmount": [1, "secondary-figure-amount"],
6676
6643
  "progressBarCounter": [2, "progress-bar-counter"],
6677
6644
  "primaryStatIcon": [1, "primary-stat-icon"],
6678
6645
  "primaryStatText": [1, "primary-stat-text"],
@@ -6728,7 +6695,7 @@ class BiggiveFooter {
6728
6695
  }
6729
6696
  appendMenu(menuName) {
6730
6697
  var node = this.host.querySelector(`[slot="${menuName}"]`);
6731
- if (node !== undefined) {
6698
+ if (node !== null) {
6732
6699
  this.host.shadowRoot.querySelector(`.${menuName}`).appendChild(node);
6733
6700
  }
6734
6701
  }
@@ -6917,13 +6884,13 @@ class BiggiveHeader {
6917
6884
  }
6918
6885
  appendMenu(menuName) {
6919
6886
  var node = this.host.querySelector(`[slot="${menuName}"]`);
6920
- if (node != null) {
6887
+ if (node !== null) {
6921
6888
  this.host.shadowRoot.querySelector(`nav.${menuName}`).appendChild(node);
6922
6889
  }
6923
6890
  }
6924
6891
  componentDidRender() {
6925
6892
  this.appendMenu('nav-primary');
6926
- this.appendMenu('nav-secondry');
6893
+ this.appendMenu('nav-secondary');
6927
6894
  }
6928
6895
  render() {
6929
6896
  return (hAsync("header", { class: 'header space-below' + this.spaceBelow }, hAsync("div", { class: "row row-top" }, hAsync("div", { class: "social-icon-wrap" }, hAsync("slot", { name: "social-icons" })), hAsync("nav", { class: "nav nav-secondary" })), hAsync("div", { class: "row row-bottom" }, hAsync("div", { class: "logo-wrap" }, hAsync("a", { href: this.logoUrl }, hAsync("svg", { width: "149", height: "30", viewBox: "0 0 149 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", "aria-label": "Big Give" }, hAsync("title", null, "Big Give"), hAsync("path", { d: "M59.9362 6.08031C58.258 6.08031 56.8195 4.70363 56.8195 3.04015C56.8195 1.37667 58.258 0 59.9362 0C61.7342 0 63.1127 1.37667 63.1127 3.04015C63.1127 4.70363 61.7342 6.08031 59.9362 6.08031ZM57.4189 23.805H62.4534V7.74379H57.4189V23.805ZM76.5981 7.74379V8.71893C75.8189 7.97323 74.2606 7.34226 72.4626 7.34226C67.9674 7.34226 64.3114 10.5545 64.3114 15.2008C64.3114 19.9044 67.9674 23.0593 72.4626 23.0593C74.2606 23.0593 75.8189 22.543 76.5981 21.6826V22.6004C76.5981 24.6654 74.6801 25.6979 72.1629 25.6979C70.0052 25.6979 68.1472 25.239 66.4091 24.2639V29.0249C68.5068 29.7706 70.8443 30 72.4026 30C77.4371 30 81.6326 27.9924 81.6326 22.7151V7.68643H76.5981V7.74379ZM76.5981 17.2084C75.8788 18.1836 74.6801 18.6424 73.3616 18.6424C71.2639 18.6424 69.5257 17.4379 69.5257 15.2008C69.5257 13.021 71.2639 11.7591 73.3616 11.7591C74.6801 11.7591 75.8788 12.3327 76.5981 13.2505V17.2084ZM96.1368 24.2065C100.093 24.2065 102.55 23.5182 104.588 22.2562V9.98088H93.6196V14.6845H99.4332V18.8145C98.5942 19.044 97.6352 19.2161 96.2567 19.2161C91.342 19.2161 88.9446 16.0612 88.9446 12.3901C88.9446 8.71893 91.7016 5.56405 96.916 5.56405C99.0736 5.56405 101.171 6.13767 102.73 6.94073V1.72084C101.231 1.14723 99.3134 0.630979 96.6163 0.630979C89.0046 0.630979 83.6104 5.90822 83.6104 12.4474C83.5505 19.1013 88.4652 24.2065 96.1368 24.2065ZM109.442 6.08031C107.764 6.08031 106.326 4.70363 106.326 3.04015C106.326 1.37667 107.764 0 109.442 0C111.24 0 112.619 1.37667 112.619 3.04015C112.619 4.70363 111.18 6.08031 109.442 6.08031ZM106.925 23.805H111.96V7.74379H106.925V23.805ZM123.227 14.9713L118.972 7.74379H113.098L123.167 24.1491L133.237 7.74379H127.483L123.227 14.9713ZM137.372 16.9216H148.999C149.059 9.92352 144.804 7.39962 140.549 7.39962C136.053 7.39962 132.038 9.98088 131.978 15.7744C131.978 21.3958 136.113 24.1491 141.088 24.1491C143.246 24.1491 145.523 23.8623 147.501 22.8872V18.4704C144.984 19.847 143.366 19.9044 141.927 19.9044C139.769 19.847 137.552 19.2161 137.372 16.9216ZM140.608 11.1281C142.107 11.1281 143.425 11.8164 143.605 13.8241H137.372C137.732 11.8738 139.11 11.1281 140.608 11.1281ZM51.5453 11.3576C52.744 10.325 53.3433 9.00574 53.3433 7.34226C53.3433 4.24474 50.3466 1.03251 46.0313 1.03251H38V23.8623H48.4287C52.5042 23.8623 55.6209 20.8795 55.6209 17.0937C55.6209 14.7992 54.542 12.3327 51.5453 11.3576ZM43.2743 5.67878H45.6717C47.1101 5.67878 48.129 6.76865 48.129 7.97324C48.129 9.17782 47.1101 10.2103 45.6717 10.2103H43.2743V5.67878ZM47.9492 19.1587H43.2743V14.5698H47.9492C49.3876 14.5698 50.4665 15.6023 50.4665 16.8643C50.4665 18.1262 49.3876 19.1587 47.9492 19.1587Z", fill: "black" }), hAsync("path", { d: "M21.543 1.01514L35 23.9999H8.08594L21.543 1.01514Z", fill: "black" }), hAsync("path", { d: "M9.36142 16.9564L0 1H18.7228L9.36142 16.9564Z", fill: "#2AF135" })))), hAsync("div", { class: "nav-toggle", onClick: this.toggleNav }), hAsync("nav", { class: "nav nav-primary", "data-visible": "false" }))));
@@ -7344,11 +7311,8 @@ class BiggiveProgressBar {
7344
7311
  this.colourScheme = 'primary';
7345
7312
  this.counter = 100;
7346
7313
  }
7347
- getPercentage() {
7348
- return Math.round(this.counter);
7349
- }
7350
7314
  render() {
7351
- return (hAsync("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, hAsync("div", { class: "slider" }, hAsync("div", { class: "progress", style: { width: this.getPercentage() + '%' } })), hAsync("div", { class: "counter" }, this.getPercentage(), "%")));
7315
+ return (hAsync("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, hAsync("div", { class: "slider" }, hAsync("div", { class: "progress", style: { width: `${this.counter}%` } })), hAsync("div", { class: "counter" }, this.counter, "%")));
7352
7316
  }
7353
7317
  static get style() { return biggiveProgressBarCss; }
7354
7318
  static get cmpMeta() { return {
@@ -7409,7 +7373,7 @@ class BiggiveSocialIcon {
7409
7373
  return icon;
7410
7374
  }
7411
7375
  render() {
7412
- return (hAsync("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, hAsync("a", { href: this.url, target: "_blank" }, hAsync("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, hAsync("path", { d: this.getSocialIcon().icon[4].toString() })))));
7376
+ return (hAsync("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, hAsync("a", { href: this.url, "aria-label": `Big Give on ${this.service}`, target: "_blank" }, hAsync("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, hAsync("path", { d: this.getSocialIcon().icon[4].toString() })))));
7413
7377
  }
7414
7378
  static get style() { return biggiveSocialIconCss; }
7415
7379
  static get cmpMeta() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
- "version": "1.0.119",
3
+ "version": "1.0.121",
4
4
  "description": "Big Give Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",