@biggive/components 0.0.21 → 0.0.23
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.
- package/dist/biggive/assets/images/logo-biggive-black.svg +6 -0
- package/dist/biggive/assets/images/quote.svg +4 -0
- package/dist/biggive/assets/images/triangles-combined.svg +5 -0
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-068c6901.entry.js +1 -0
- package/dist/biggive/p-1805f9ab.js +2 -0
- package/dist/biggive/p-19aac764.entry.js +1 -0
- package/dist/biggive/p-278fbc22.entry.js +1 -0
- package/dist/biggive/p-293fa43e.entry.js +1 -0
- package/dist/biggive/p-29921058.entry.js +1 -0
- package/dist/biggive/p-2c7ccc17.entry.js +1 -0
- package/dist/biggive/p-2d9408d3.entry.js +1 -0
- package/dist/biggive/p-3670bfe5.entry.js +1 -0
- package/dist/biggive/p-43c02e71.js +6 -0
- package/dist/biggive/p-46a368de.entry.js +1 -0
- package/dist/biggive/p-558ebb94.entry.js +1 -0
- package/dist/biggive/p-664bfe6e.entry.js +1 -0
- package/dist/biggive/p-7637ac94.entry.js +1 -0
- package/dist/biggive/p-78129441.entry.js +1 -0
- package/dist/biggive/p-8b5487c1.entry.js +1 -0
- package/dist/biggive/p-9125d753.entry.js +1 -0
- package/dist/biggive/p-a62e9af0.entry.js +1 -0
- package/dist/biggive/p-a6da36d4.js +6 -0
- package/dist/biggive/p-ab82bcf1.entry.js +1 -0
- package/dist/biggive/p-b4d5f946.entry.js +1 -0
- package/dist/biggive/p-c84740c3.entry.js +1 -0
- package/dist/biggive/p-cc6e33a6.entry.js +1 -0
- package/dist/biggive/p-db3da9bb.entry.js +1 -0
- package/dist/biggive/p-e0347718.entry.js +1 -0
- package/dist/biggive/p-e39db89c.entry.js +1 -0
- package/dist/biggive/p-ea35e2fe.entry.js +1 -0
- package/dist/biggive/p-ef6c1ed4.entry.js +1 -0
- package/dist/biggive/p-faa6817c.entry.js +1 -0
- package/dist/cjs/biggive-back-to-top_11.cjs.entry.js +365 -0
- package/dist/cjs/biggive-basic-card.cjs.entry.js +55 -0
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +45 -0
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +48 -0
- package/dist/cjs/biggive-branded-image.cjs.entry.js +35 -0
- package/dist/cjs/biggive-call-to-action.cjs.entry.js +83 -0
- package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +50 -0
- package/dist/cjs/biggive-campaign-card.cjs.entry.js +97 -0
- package/dist/cjs/biggive-category-icon.cjs.entry.js +45 -0
- package/dist/cjs/biggive-form-field-select.cjs.entry.js +19 -0
- package/dist/cjs/biggive-form.cjs.entry.js +19 -0
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +27 -0
- package/dist/cjs/biggive-grid.cjs.entry.js +31 -0
- package/dist/cjs/biggive-hero-image.cjs.entry.js +73 -0
- package/dist/cjs/biggive-icon-group.cjs.entry.js +27 -0
- package/dist/cjs/biggive-image-feature.cjs.entry.js +67 -0
- package/dist/cjs/biggive-image.cjs.entry.js +27 -0
- package/dist/cjs/biggive-page-section.cjs.entry.js +35 -0
- package/dist/cjs/biggive-quote.cjs.entry.js +35 -0
- package/dist/cjs/biggive-search.cjs.entry.js +36 -0
- package/dist/cjs/biggive-tab.cjs.entry.js +23 -0
- package/dist/cjs/biggive-tabbed-content.cjs.entry.js +27 -0
- package/dist/cjs/biggive-text-input.cjs.entry.js +19 -0
- package/dist/cjs/biggive-totalizer.cjs.entry.js +69 -0
- package/dist/cjs/biggive-video-feature.cjs.entry.js +67 -0
- package/dist/cjs/biggive-video.cjs.entry.js +27 -0
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/fontawesome-icons-110f532d.js +240 -0
- package/dist/cjs/{index-a275852e.js → index-87518c3f.js} +96 -1
- package/dist/{components/biggive-campaign-card2.js → cjs/index.es-d3570170.js} +62 -293
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/images/logo-biggive-black.svg +6 -0
- package/dist/collection/assets/images/quote.svg +4 -0
- package/dist/collection/assets/images/triangles-combined.svg +5 -0
- package/dist/collection/collection-manifest.json +34 -1
- package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +413 -0
- package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.js +17 -0
- package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.stories.js +8 -0
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +433 -0
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +226 -0
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +67 -0
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +474 -0
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.js +137 -0
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.stories.js +49 -0
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +408 -0
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.js +138 -0
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.stories.js +60 -0
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +425 -0
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.js +111 -0
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.stories.js +37 -0
- package/dist/collection/components/biggive-button/biggive-button.css +411 -0
- package/dist/collection/components/biggive-button/biggive-button.js +129 -0
- package/dist/collection/components/biggive-button/biggive-button.stories.js +42 -0
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +439 -0
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +380 -0
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.stories.js +124 -0
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +423 -108
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +191 -128
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.stories.js +105 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +438 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +151 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +43 -0
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +477 -0
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +339 -0
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.stories.js +89 -0
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +474 -0
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.js +137 -0
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.stories.js +49 -0
- package/dist/collection/components/biggive-footer/biggive-footer.css +458 -0
- package/dist/collection/components/biggive-footer/biggive-footer.js +68 -0
- package/dist/collection/components/biggive-footer/biggive-footer.stories.js +27 -0
- package/dist/collection/components/biggive-form/biggive-form.css +3 -0
- package/dist/collection/components/biggive-form/biggive-form.js +15 -0
- package/dist/collection/components/{demo-campaign-cards/demo-campaign-cards.css → biggive-form-field-select/biggive-form-field-select.css} +0 -0
- package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +15 -0
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.css +3 -0
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +15 -0
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +409 -0
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +63 -0
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.stories.js +52 -0
- package/dist/collection/components/biggive-grid/biggive-grid.css +421 -2
- package/dist/collection/components/biggive-grid/biggive-grid.js +73 -3
- package/dist/collection/components/biggive-grid/biggive-grid.stories.js +109 -0
- package/dist/collection/components/biggive-header/biggive-header.css +488 -0
- package/dist/collection/components/biggive-header/biggive-header.js +77 -0
- package/dist/collection/components/biggive-header/biggive-header.stories.js +20 -0
- package/dist/collection/components/biggive-heading/biggive-heading.css +445 -0
- package/dist/collection/components/biggive-heading/biggive-heading.js +130 -0
- package/dist/collection/components/biggive-heading/biggive-heading.stories.js +51 -0
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +489 -0
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +317 -0
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.stories.js +34 -0
- package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +417 -0
- package/dist/collection/components/biggive-icon-group/biggive-icon-group.js +65 -0
- package/dist/collection/components/biggive-icon-group/biggive-icon-group.stories.js +26 -0
- package/dist/collection/components/biggive-image/biggive-image.css +405 -0
- package/dist/collection/components/biggive-image/biggive-image.js +64 -0
- package/dist/collection/components/biggive-image/biggive-image.stories.js +26 -0
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +436 -0
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.js +290 -0
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.stories.js +96 -0
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +458 -0
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +113 -0
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.stories.js +44 -0
- package/dist/collection/components/biggive-page-column/biggive-page-column.css +3 -0
- package/dist/collection/components/biggive-page-column/biggive-page-column.js +14 -0
- package/dist/collection/components/biggive-page-column/biggive-page-column.stories.js +18 -0
- package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +422 -0
- package/dist/collection/components/biggive-page-columns/biggive-page-columns.js +45 -0
- package/dist/collection/components/biggive-page-columns/biggive-page-columns.stories.js +21 -0
- package/dist/collection/components/biggive-page-section/biggive-page-section.css +500 -0
- package/dist/collection/components/biggive-page-section/biggive-page-section.js +108 -0
- package/dist/collection/components/biggive-page-section/biggive-page-section.stories.js +48 -0
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +403 -0
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +92 -0
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.stories.js +35 -0
- package/dist/collection/components/biggive-quote/biggive-quote.css +417 -0
- package/dist/collection/components/biggive-quote/biggive-quote.js +108 -0
- package/dist/collection/components/biggive-quote/biggive-quote.stories.js +42 -0
- package/dist/collection/components/biggive-search/biggive-search.css +492 -0
- package/dist/collection/components/biggive-search/biggive-search.js +99 -0
- package/dist/collection/components/biggive-search/biggive-search.stories.js +15 -0
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +458 -0
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +113 -0
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.stories.js +44 -0
- package/dist/collection/components/biggive-tab/biggive-tab.css +405 -0
- package/dist/collection/components/biggive-tab/biggive-tab.js +43 -0
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +405 -0
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +63 -0
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.stories.js +37 -0
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +427 -0
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +239 -0
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.stories.js +77 -0
- package/dist/collection/components/biggive-video/biggive-video.css +405 -0
- package/dist/collection/components/biggive-video/biggive-video.js +64 -0
- package/dist/collection/components/biggive-video/biggive-video.stories.js +26 -0
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +436 -0
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +290 -0
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.stories.js +96 -0
- package/dist/collection/util/{campaign-groups.js → fontawesome-icons.js} +52 -6
- package/dist/components/biggive-back-to-top.d.ts +11 -0
- package/dist/components/biggive-back-to-top.js +33 -0
- package/dist/components/biggive-basic-card.d.ts +11 -0
- package/dist/components/biggive-basic-card.js +85 -0
- package/dist/components/biggive-beneficiary-icon.d.ts +11 -0
- package/dist/components/biggive-beneficiary-icon.js +63 -0
- package/dist/components/biggive-boxed-content.d.ts +11 -0
- package/dist/components/biggive-boxed-content.js +68 -0
- package/dist/components/biggive-branded-image.d.ts +11 -0
- package/dist/components/biggive-branded-image.js +54 -0
- package/dist/components/biggive-button.d.ts +11 -0
- package/dist/components/biggive-button.js +6 -0
- package/dist/components/biggive-button2.js +56 -0
- package/dist/components/biggive-call-to-action.d.ts +11 -0
- package/dist/components/biggive-call-to-action.js +120 -0
- package/dist/components/biggive-campaign-card-filter-grid.d.ts +11 -0
- package/dist/components/biggive-campaign-card-filter-grid.js +70 -0
- package/dist/components/biggive-campaign-card.js +136 -1
- package/dist/components/biggive-campaign-highlights.d.ts +11 -0
- package/dist/components/biggive-campaign-highlights.js +125 -0
- package/dist/components/biggive-category-icon.d.ts +11 -0
- package/dist/components/biggive-category-icon.js +63 -0
- package/dist/components/biggive-footer.d.ts +11 -0
- package/dist/components/biggive-footer.js +71 -0
- package/dist/components/biggive-form-field-select.d.ts +11 -0
- package/dist/components/biggive-form-field-select.js +33 -0
- package/dist/components/biggive-form.d.ts +11 -0
- package/dist/components/biggive-form.js +33 -0
- package/dist/components/biggive-formatted-text.d.ts +11 -0
- package/dist/components/biggive-formatted-text.js +44 -0
- package/dist/components/biggive-grid.js +44 -1
- package/dist/components/biggive-header.d.ts +11 -0
- package/dist/components/biggive-header.js +63 -0
- package/dist/components/biggive-heading.d.ts +11 -0
- package/dist/components/biggive-heading.js +60 -0
- package/dist/components/biggive-hero-image.d.ts +11 -0
- package/dist/components/biggive-hero-image.js +107 -0
- package/dist/components/biggive-icon-group.d.ts +11 -0
- package/dist/components/biggive-icon-group.js +44 -0
- package/dist/components/biggive-image-feature.d.ts +11 -0
- package/dist/components/biggive-image-feature.js +100 -0
- package/dist/components/biggive-image.d.ts +11 -0
- package/dist/components/biggive-image.js +44 -0
- package/dist/components/biggive-misc-icon.d.ts +11 -0
- package/dist/components/biggive-misc-icon.js +6 -0
- package/dist/components/biggive-misc-icon2.js +55 -0
- package/dist/components/{demo-campaign-cards.d.ts → biggive-page-column.d.ts} +4 -4
- package/dist/components/biggive-page-column.js +33 -0
- package/dist/components/biggive-page-columns.d.ts +11 -0
- package/dist/components/biggive-page-columns.js +39 -0
- package/dist/components/biggive-page-section.d.ts +11 -0
- package/dist/components/biggive-page-section.js +54 -0
- package/dist/components/biggive-progress-bar.d.ts +11 -0
- package/dist/components/biggive-progress-bar.js +6 -0
- package/dist/components/biggive-progress-bar2.js +49 -0
- package/dist/components/biggive-quote.d.ts +11 -0
- package/dist/components/biggive-quote.js +54 -0
- package/dist/components/biggive-search.d.ts +11 -0
- package/dist/components/biggive-search.js +54 -0
- package/dist/components/biggive-social-icon.d.ts +11 -0
- package/dist/components/biggive-social-icon.js +6 -0
- package/dist/components/biggive-social-icon2.js +55 -0
- package/dist/components/biggive-tab.d.ts +11 -0
- package/dist/components/biggive-tab.js +39 -0
- package/dist/components/biggive-tabbed-content.d.ts +11 -0
- package/dist/components/biggive-tabbed-content.js +44 -0
- package/dist/components/biggive-text-input.d.ts +11 -0
- package/dist/components/biggive-text-input.js +33 -0
- package/dist/components/biggive-totalizer.d.ts +11 -0
- package/dist/components/biggive-totalizer.js +93 -0
- package/dist/components/biggive-video-feature.d.ts +11 -0
- package/dist/components/biggive-video-feature.js +100 -0
- package/dist/components/biggive-video.d.ts +11 -0
- package/dist/components/biggive-video.js +44 -0
- package/dist/components/fontawesome-icons.js +238 -0
- package/dist/components/index.d.ts +34 -1
- package/dist/{esm/biggive-campaign-card_3.entry.js → components/index.es.js} +31 -289
- package/dist/components/index.js +34 -1
- package/dist/esm/biggive-back-to-top_11.entry.js +351 -0
- package/dist/esm/biggive-basic-card.entry.js +51 -0
- package/dist/esm/biggive-beneficiary-icon.entry.js +41 -0
- package/dist/esm/biggive-boxed-content.entry.js +44 -0
- package/dist/esm/biggive-branded-image.entry.js +31 -0
- package/dist/esm/biggive-call-to-action.entry.js +79 -0
- package/dist/esm/biggive-campaign-card-filter-grid.entry.js +46 -0
- package/dist/esm/biggive-campaign-card.entry.js +93 -0
- package/dist/esm/biggive-category-icon.entry.js +41 -0
- package/dist/esm/biggive-form-field-select.entry.js +15 -0
- package/dist/esm/biggive-form.entry.js +15 -0
- package/dist/esm/biggive-formatted-text.entry.js +23 -0
- package/dist/esm/biggive-grid.entry.js +27 -0
- package/dist/esm/biggive-hero-image.entry.js +69 -0
- package/dist/esm/biggive-icon-group.entry.js +23 -0
- package/dist/esm/biggive-image-feature.entry.js +63 -0
- package/dist/esm/biggive-image.entry.js +23 -0
- package/dist/esm/biggive-page-section.entry.js +31 -0
- package/dist/esm/biggive-quote.entry.js +31 -0
- package/dist/esm/biggive-search.entry.js +32 -0
- package/dist/esm/biggive-tab.entry.js +19 -0
- package/dist/esm/biggive-tabbed-content.entry.js +23 -0
- package/dist/esm/biggive-text-input.entry.js +15 -0
- package/dist/esm/biggive-totalizer.entry.js +65 -0
- package/dist/esm/biggive-video-feature.entry.js +63 -0
- package/dist/esm/biggive-video.entry.js +23 -0
- package/dist/esm/biggive.js +2 -2
- package/dist/esm/fontawesome-icons-e232deb7.js +238 -0
- package/dist/esm/{index-2280c7b8.js → index-4395d470.js} +94 -2
- package/dist/{cjs/biggive-campaign-card_3.cjs.entry.js → esm/index.es-64a64fa8.js} +31 -295
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/biggive-back-to-top/biggive-back-to-top.d.ts +3 -0
- package/dist/types/components/biggive-back-to-top/biggive-back-to-top.stories.d.ts +5 -0
- package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +39 -0
- package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +43 -0
- package/dist/types/components/biggive-beneficiary-icon/biggive-beneficiary-icon.d.ts +24 -0
- package/dist/types/components/biggive-beneficiary-icon/biggive-beneficiary-icon.stories.d.ts +34 -0
- package/dist/types/components/biggive-boxed-content/biggive-boxed-content.d.ts +23 -0
- package/dist/types/components/biggive-boxed-content/biggive-boxed-content.stories.d.ts +38 -0
- package/dist/types/components/biggive-branded-image/biggive-branded-image.d.ts +19 -0
- package/dist/types/components/biggive-branded-image/biggive-branded-image.stories.d.ts +23 -0
- package/dist/types/components/biggive-button/biggive-button.d.ts +23 -0
- package/dist/types/components/biggive-button/biggive-button.stories.d.ts +27 -0
- package/dist/types/components/biggive-call-to-action/biggive-call-to-action.d.ts +67 -0
- package/dist/types/components/biggive-call-to-action/biggive-call-to-action.stories.d.ts +87 -0
- package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +38 -26
- package/dist/types/components/biggive-campaign-card/biggive-campaign-card.stories.d.ts +70 -0
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +30 -0
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.d.ts +5 -0
- package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.d.ts +59 -0
- package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.stories.d.ts +58 -0
- package/dist/types/components/biggive-category-icon/biggive-category-icon.d.ts +24 -0
- package/dist/types/components/biggive-category-icon/biggive-category-icon.stories.d.ts +34 -0
- package/dist/types/components/biggive-footer/biggive-footer.d.ts +4 -0
- package/dist/types/components/{demo-campaign-cards/demo-campaign-cards.stories.d.ts → biggive-footer/biggive-footer.stories.d.ts} +1 -1
- package/dist/types/components/biggive-form/biggive-form.d.ts +3 -0
- package/dist/types/components/biggive-form-field-select/biggive-form-field-select.d.ts +3 -0
- package/dist/types/components/biggive-form-field-text-input/biggive-text-input.d.ts +3 -0
- package/dist/types/components/biggive-formatted-text/biggive-formatted-text.d.ts +11 -0
- package/dist/types/components/biggive-formatted-text/biggive-formatted-text.stories.d.ts +21 -0
- package/dist/types/components/biggive-grid/biggive-grid.d.ts +12 -0
- package/dist/types/components/biggive-grid/biggive-grid.stories.d.ts +28 -0
- package/dist/types/components/biggive-header/biggive-header.d.ts +8 -0
- package/dist/types/components/biggive-header/biggive-header.stories.d.ts +5 -0
- package/dist/types/components/biggive-heading/biggive-heading.d.ts +23 -0
- package/dist/types/components/biggive-heading/biggive-heading.stories.d.ts +35 -0
- package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +55 -0
- package/dist/types/components/biggive-hero-image/biggive-hero-image.stories.d.ts +5 -0
- package/dist/types/components/biggive-icon-group/biggive-icon-group.d.ts +11 -0
- package/dist/types/components/biggive-icon-group/biggive-icon-group.stories.d.ts +14 -0
- package/dist/types/components/biggive-image/biggive-image.d.ts +11 -0
- package/dist/types/components/biggive-image/biggive-image.stories.d.ts +17 -0
- package/dist/types/components/biggive-image-feature/biggive-image-feature.d.ts +51 -0
- package/dist/types/components/biggive-image-feature/biggive-image-feature.stories.d.ts +67 -0
- package/dist/types/components/biggive-misc-icon/biggive-misc-icon.d.ts +20 -0
- package/dist/types/components/biggive-misc-icon/biggive-misc-icon.stories.d.ts +31 -0
- package/dist/types/components/biggive-page-column/biggive-page-column.d.ts +3 -0
- package/dist/types/components/biggive-page-column/biggive-page-column.stories.d.ts +14 -0
- package/dist/types/components/biggive-page-columns/biggive-page-columns.d.ts +7 -0
- package/dist/types/components/biggive-page-columns/biggive-page-columns.stories.d.ts +14 -0
- package/dist/types/components/biggive-page-section/biggive-page-section.d.ts +19 -0
- package/dist/types/components/biggive-page-section/biggive-page-section.stories.d.ts +35 -0
- package/dist/types/components/biggive-progress-bar/biggive-progress-bar.d.ts +16 -0
- package/dist/types/components/biggive-progress-bar/biggive-progress-bar.stories.d.ts +24 -0
- package/dist/types/components/biggive-quote/biggive-quote.d.ts +19 -0
- package/dist/types/components/biggive-quote/biggive-quote.stories.d.ts +27 -0
- package/dist/types/components/biggive-search/biggive-search.d.ts +23 -0
- package/dist/types/components/biggive-search/biggive-search.stories.d.ts +5 -0
- package/dist/types/components/biggive-social-icon/biggive-social-icon.d.ts +20 -0
- package/dist/types/components/biggive-social-icon/biggive-social-icon.stories.d.ts +31 -0
- package/dist/types/components/biggive-tab/biggive-tab.d.ts +7 -0
- package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +11 -0
- package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.stories.d.ts +21 -0
- package/dist/types/components/biggive-totalizer/biggive-totalizer.d.ts +43 -0
- package/dist/types/components/biggive-totalizer/biggive-totalizer.stories.d.ts +54 -0
- package/dist/types/components/biggive-video/biggive-video.d.ts +11 -0
- package/dist/types/components/biggive-video/biggive-video.stories.d.ts +17 -0
- package/dist/types/components/biggive-video-feature/biggive-video-feature.d.ts +51 -0
- package/dist/types/components/biggive-video-feature/biggive-video-feature.stories.d.ts +67 -0
- package/dist/types/components.d.ts +1786 -77
- package/dist/types/util/{campaign-groups.d.ts → fontawesome-icons.d.ts} +11 -1
- package/hydrate/index.js +1868 -120
- package/package.json +9 -8
- package/readme.md +4 -0
- package/dist/biggive/p-89e49cb6.js +0 -2
- package/dist/biggive/p-e330fae6.entry.js +0 -11
- package/dist/collection/components/demo-campaign-cards/demo-campaign-cards.js +0 -14
- package/dist/collection/components/demo-campaign-cards/demo-campaign-cards.stories.js +0 -5
- package/dist/components/biggive-grid2.js +0 -30
- package/dist/components/demo-campaign-cards.js +0 -45
- package/dist/types/components/demo-campaign-cards/demo-campaign-cards.d.ts +0 -3
|
@@ -1,63 +1,70 @@
|
|
|
1
1
|
import { Component, Prop, h } from '@stencil/core';
|
|
2
|
-
import { CampaignGroupsService } from '../../util/campaign-groups';
|
|
3
2
|
export class BiggiveCampaignCard {
|
|
4
3
|
constructor() {
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
5
|
+
* Space below component
|
|
7
6
|
*/
|
|
8
|
-
this.
|
|
7
|
+
this.spaceBelow = 4;
|
|
9
8
|
/**
|
|
10
|
-
*
|
|
9
|
+
* e.g. "Match Funded".
|
|
11
10
|
*/
|
|
12
|
-
this.
|
|
11
|
+
this.campaignType = null;
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
15
|
-
|
|
13
|
+
* Full URL of a banner image.
|
|
14
|
+
*/
|
|
15
|
+
this.banner = '';
|
|
16
|
+
/**
|
|
17
|
+
* Display name of the charity's specific time-bound fundraising campaign.
|
|
16
18
|
*/
|
|
17
|
-
this.
|
|
19
|
+
this.campaignTitle = null;
|
|
18
20
|
/**
|
|
19
21
|
* Display name of the charity or non-profit.
|
|
20
22
|
*/
|
|
21
23
|
this.organisationName = null;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Label for the primary figure
|
|
24
26
|
*/
|
|
25
|
-
this.
|
|
27
|
+
this.primaryFigureLabel = null;
|
|
26
28
|
/**
|
|
27
|
-
*
|
|
29
|
+
* Amount for the primary figure
|
|
28
30
|
*/
|
|
29
|
-
this.
|
|
31
|
+
this.primaryFigureAmount = null;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Label for the secondary figure
|
|
32
34
|
*/
|
|
33
|
-
this.
|
|
35
|
+
this.secondaryFigureLabel = null;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
37
|
+
* Amount for the secondary figure
|
|
36
38
|
*/
|
|
37
|
-
this.
|
|
39
|
+
this.secondaryFigureAmount = null;
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
41
|
+
* Progress bar percentage
|
|
40
42
|
*/
|
|
41
|
-
this.
|
|
43
|
+
this.progressBarCounter = 100;
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
44
|
-
* tax relief, in major unit of currency e.g. pounds GBP.
|
|
45
|
+
* Donate button label
|
|
45
46
|
*/
|
|
46
|
-
this.
|
|
47
|
+
this.donateButtonLabel = 'Donate now';
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Donate button url
|
|
49
50
|
*/
|
|
50
|
-
this.
|
|
51
|
+
this.donateButtonUrl = null;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* Donate button colour scheme
|
|
53
54
|
*/
|
|
54
|
-
this.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
this.donateButtonColourScheme = 'primary';
|
|
56
|
+
/**
|
|
57
|
+
* More information button label
|
|
58
|
+
*/
|
|
59
|
+
this.moreInfoButtonLabel = 'Find out more';
|
|
60
|
+
/**
|
|
61
|
+
* More information button url
|
|
62
|
+
*/
|
|
63
|
+
this.moreInfoButtonUrl = null;
|
|
64
|
+
/**
|
|
65
|
+
* Donate button colour scheme
|
|
66
|
+
*/
|
|
67
|
+
this.moreInfoButtonColourScheme = 'clear-primary';
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* @returns Whole large currency units (e.g. pounds) formatted with symbol.
|
|
@@ -74,49 +81,29 @@ export class BiggiveCampaignCard {
|
|
|
74
81
|
}).format(amount);
|
|
75
82
|
}
|
|
76
83
|
render() {
|
|
77
|
-
return (h("div", { class:
|
|
84
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow.toString() },
|
|
78
85
|
h("div", { class: "sleeve" },
|
|
79
|
-
h("div", { class: "campaign-type" },
|
|
80
|
-
h("span", null, this.campaignType)),
|
|
86
|
+
this.campaignType.length > 0 ? (h("div", { class: "campaign-type" },
|
|
87
|
+
h("span", null, this.campaignType))) : null,
|
|
81
88
|
this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } },
|
|
82
|
-
h("img", { src: this.banner, class: "banner" }))) :
|
|
83
|
-
h("div", { class: "
|
|
84
|
-
h("
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
h("
|
|
95
|
-
|
|
96
|
-
h("
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
h("path", { d: iconDefinition.icon[4].toString() })))))),
|
|
101
|
-
h("div", { class: "meta-item" },
|
|
102
|
-
h("span", { class: "label" }, "Helping"),
|
|
103
|
-
h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" },
|
|
104
|
-
h("path", { d: iconDefinition.icon[4].toString() }))))))),
|
|
105
|
-
h("div", { class: "meta-wrap style-3" },
|
|
106
|
-
h("div", { class: "meta-item" },
|
|
107
|
-
h("span", { class: "label" },
|
|
108
|
-
"Match",
|
|
109
|
-
h("br", null),
|
|
110
|
-
"Funds Remaining"),
|
|
111
|
-
h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.matchFundsRemaining))),
|
|
112
|
-
h("div", { class: "meta-item" },
|
|
113
|
-
h("span", { class: "label" },
|
|
114
|
-
"Total",
|
|
115
|
-
h("br", null),
|
|
116
|
-
"Funds Received"),
|
|
117
|
-
h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.totalFundsRaised)))),
|
|
118
|
-
h("div", { class: "button-wrap" },
|
|
119
|
-
h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
|
|
89
|
+
h("img", { src: this.banner, class: "banner" }))) : (h("div", { class: "image-wrap banner" })),
|
|
90
|
+
h("div", { class: "title-wrap" },
|
|
91
|
+
h("h3", null, this.campaignTitle),
|
|
92
|
+
h("div", { class: "organisation-name" },
|
|
93
|
+
"By ",
|
|
94
|
+
this.organisationName)),
|
|
95
|
+
h("div", { class: "meta-wrap" },
|
|
96
|
+
h("div", { class: "meta-item" },
|
|
97
|
+
h("span", { class: "label" }, this.primaryFigureLabel),
|
|
98
|
+
h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))),
|
|
99
|
+
h("div", { class: "meta-item" },
|
|
100
|
+
h("span", { class: "label" }, this.secondaryFigureLabel),
|
|
101
|
+
h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))),
|
|
102
|
+
h("div", { class: "progress-bar-wrap" },
|
|
103
|
+
h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })),
|
|
104
|
+
h("div", { class: "button-wrap" },
|
|
105
|
+
h("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }),
|
|
106
|
+
h("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
|
|
120
107
|
}
|
|
121
108
|
static get is() { return "biggive-campaign-card"; }
|
|
122
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -127,43 +114,43 @@ export class BiggiveCampaignCard {
|
|
|
127
114
|
"$": ["biggive-campaign-card.css"]
|
|
128
115
|
}; }
|
|
129
116
|
static get properties() { return {
|
|
130
|
-
"
|
|
131
|
-
"type": "
|
|
117
|
+
"spaceBelow": {
|
|
118
|
+
"type": "number",
|
|
132
119
|
"mutable": false,
|
|
133
120
|
"complexType": {
|
|
134
|
-
"original": "
|
|
135
|
-
"resolved": "
|
|
121
|
+
"original": "number",
|
|
122
|
+
"resolved": "number",
|
|
136
123
|
"references": {}
|
|
137
124
|
},
|
|
138
125
|
"required": false,
|
|
139
126
|
"optional": false,
|
|
140
127
|
"docs": {
|
|
141
128
|
"tags": [],
|
|
142
|
-
"text": "
|
|
129
|
+
"text": "Space below component"
|
|
143
130
|
},
|
|
144
|
-
"attribute": "
|
|
131
|
+
"attribute": "space-below",
|
|
145
132
|
"reflect": false,
|
|
146
|
-
"defaultValue": "
|
|
133
|
+
"defaultValue": "4"
|
|
147
134
|
},
|
|
148
|
-
"
|
|
149
|
-
"type": "
|
|
135
|
+
"campaignType": {
|
|
136
|
+
"type": "string",
|
|
150
137
|
"mutable": false,
|
|
151
138
|
"complexType": {
|
|
152
|
-
"original": "
|
|
153
|
-
"resolved": "
|
|
139
|
+
"original": "string",
|
|
140
|
+
"resolved": "string",
|
|
154
141
|
"references": {}
|
|
155
142
|
},
|
|
156
143
|
"required": false,
|
|
157
144
|
"optional": false,
|
|
158
145
|
"docs": {
|
|
159
146
|
"tags": [],
|
|
160
|
-
"text": "
|
|
147
|
+
"text": "e.g. \"Match Funded\"."
|
|
161
148
|
},
|
|
162
|
-
"attribute": "
|
|
149
|
+
"attribute": "campaign-type",
|
|
163
150
|
"reflect": false,
|
|
164
151
|
"defaultValue": "null"
|
|
165
152
|
},
|
|
166
|
-
"
|
|
153
|
+
"banner": {
|
|
167
154
|
"type": "string",
|
|
168
155
|
"mutable": false,
|
|
169
156
|
"complexType": {
|
|
@@ -175,26 +162,27 @@ export class BiggiveCampaignCard {
|
|
|
175
162
|
"optional": false,
|
|
176
163
|
"docs": {
|
|
177
164
|
"tags": [],
|
|
178
|
-
"text": "
|
|
165
|
+
"text": "Full URL of a banner image."
|
|
179
166
|
},
|
|
180
|
-
"attribute": "
|
|
181
|
-
"reflect": false
|
|
167
|
+
"attribute": "banner",
|
|
168
|
+
"reflect": false,
|
|
169
|
+
"defaultValue": "''"
|
|
182
170
|
},
|
|
183
|
-
"
|
|
184
|
-
"type": "
|
|
171
|
+
"campaignTitle": {
|
|
172
|
+
"type": "string",
|
|
185
173
|
"mutable": false,
|
|
186
174
|
"complexType": {
|
|
187
|
-
"original": "
|
|
188
|
-
"resolved": "
|
|
175
|
+
"original": "string",
|
|
176
|
+
"resolved": "string",
|
|
189
177
|
"references": {}
|
|
190
178
|
},
|
|
191
179
|
"required": false,
|
|
192
180
|
"optional": false,
|
|
193
181
|
"docs": {
|
|
194
182
|
"tags": [],
|
|
195
|
-
"text": "
|
|
183
|
+
"text": "Display name of the charity's specific time-bound fundraising campaign."
|
|
196
184
|
},
|
|
197
|
-
"attribute": "
|
|
185
|
+
"attribute": "campaign-title",
|
|
198
186
|
"reflect": false,
|
|
199
187
|
"defaultValue": "null"
|
|
200
188
|
},
|
|
@@ -216,7 +204,7 @@ export class BiggiveCampaignCard {
|
|
|
216
204
|
"reflect": false,
|
|
217
205
|
"defaultValue": "null"
|
|
218
206
|
},
|
|
219
|
-
"
|
|
207
|
+
"currencyCode": {
|
|
220
208
|
"type": "string",
|
|
221
209
|
"mutable": false,
|
|
222
210
|
"complexType": {
|
|
@@ -228,13 +216,12 @@ export class BiggiveCampaignCard {
|
|
|
228
216
|
"optional": false,
|
|
229
217
|
"docs": {
|
|
230
218
|
"tags": [],
|
|
231
|
-
"text": "
|
|
219
|
+
"text": "e.g. 'GBP'."
|
|
232
220
|
},
|
|
233
|
-
"attribute": "
|
|
234
|
-
"reflect": false
|
|
235
|
-
"defaultValue": "null"
|
|
221
|
+
"attribute": "currency-code",
|
|
222
|
+
"reflect": false
|
|
236
223
|
},
|
|
237
|
-
"
|
|
224
|
+
"primaryFigureLabel": {
|
|
238
225
|
"type": "string",
|
|
239
226
|
"mutable": false,
|
|
240
227
|
"complexType": {
|
|
@@ -246,45 +233,49 @@ export class BiggiveCampaignCard {
|
|
|
246
233
|
"optional": false,
|
|
247
234
|
"docs": {
|
|
248
235
|
"tags": [],
|
|
249
|
-
"text": "
|
|
236
|
+
"text": "Label for the primary figure"
|
|
250
237
|
},
|
|
251
|
-
"attribute": "
|
|
238
|
+
"attribute": "primary-figure-label",
|
|
252
239
|
"reflect": false,
|
|
253
240
|
"defaultValue": "null"
|
|
254
241
|
},
|
|
255
|
-
"
|
|
256
|
-
"type": "
|
|
242
|
+
"primaryFigureAmount": {
|
|
243
|
+
"type": "number",
|
|
257
244
|
"mutable": false,
|
|
258
245
|
"complexType": {
|
|
259
|
-
"original": "
|
|
260
|
-
"resolved": "
|
|
246
|
+
"original": "number",
|
|
247
|
+
"resolved": "number",
|
|
261
248
|
"references": {}
|
|
262
249
|
},
|
|
263
250
|
"required": false,
|
|
264
251
|
"optional": false,
|
|
265
252
|
"docs": {
|
|
266
253
|
"tags": [],
|
|
267
|
-
"text": "
|
|
254
|
+
"text": "Amount for the primary figure"
|
|
268
255
|
},
|
|
269
|
-
"
|
|
256
|
+
"attribute": "primary-figure-amount",
|
|
257
|
+
"reflect": false,
|
|
258
|
+
"defaultValue": "null"
|
|
270
259
|
},
|
|
271
|
-
"
|
|
272
|
-
"type": "
|
|
260
|
+
"secondaryFigureLabel": {
|
|
261
|
+
"type": "string",
|
|
273
262
|
"mutable": false,
|
|
274
263
|
"complexType": {
|
|
275
|
-
"original": "string
|
|
276
|
-
"resolved": "string
|
|
264
|
+
"original": "string",
|
|
265
|
+
"resolved": "string",
|
|
277
266
|
"references": {}
|
|
278
267
|
},
|
|
279
268
|
"required": false,
|
|
280
269
|
"optional": false,
|
|
281
270
|
"docs": {
|
|
282
271
|
"tags": [],
|
|
283
|
-
"text": "
|
|
272
|
+
"text": "Label for the secondary figure"
|
|
284
273
|
},
|
|
285
|
-
"
|
|
274
|
+
"attribute": "secondary-figure-label",
|
|
275
|
+
"reflect": false,
|
|
276
|
+
"defaultValue": "null"
|
|
286
277
|
},
|
|
287
|
-
"
|
|
278
|
+
"secondaryFigureAmount": {
|
|
288
279
|
"type": "number",
|
|
289
280
|
"mutable": false,
|
|
290
281
|
"complexType": {
|
|
@@ -296,13 +287,13 @@ export class BiggiveCampaignCard {
|
|
|
296
287
|
"optional": false,
|
|
297
288
|
"docs": {
|
|
298
289
|
"tags": [],
|
|
299
|
-
"text": "
|
|
290
|
+
"text": "Amount for the secondary figure"
|
|
300
291
|
},
|
|
301
|
-
"attribute": "
|
|
292
|
+
"attribute": "secondary-figure-amount",
|
|
302
293
|
"reflect": false,
|
|
303
294
|
"defaultValue": "null"
|
|
304
295
|
},
|
|
305
|
-
"
|
|
296
|
+
"progressBarCounter": {
|
|
306
297
|
"type": "number",
|
|
307
298
|
"mutable": false,
|
|
308
299
|
"complexType": {
|
|
@@ -314,13 +305,13 @@ export class BiggiveCampaignCard {
|
|
|
314
305
|
"optional": false,
|
|
315
306
|
"docs": {
|
|
316
307
|
"tags": [],
|
|
317
|
-
"text": "
|
|
308
|
+
"text": "Progress bar percentage"
|
|
318
309
|
},
|
|
319
|
-
"attribute": "
|
|
310
|
+
"attribute": "progress-bar-counter",
|
|
320
311
|
"reflect": false,
|
|
321
|
-
"defaultValue": "
|
|
312
|
+
"defaultValue": "100"
|
|
322
313
|
},
|
|
323
|
-
"
|
|
314
|
+
"donateButtonLabel": {
|
|
324
315
|
"type": "string",
|
|
325
316
|
"mutable": false,
|
|
326
317
|
"complexType": {
|
|
@@ -332,13 +323,31 @@ export class BiggiveCampaignCard {
|
|
|
332
323
|
"optional": false,
|
|
333
324
|
"docs": {
|
|
334
325
|
"tags": [],
|
|
335
|
-
"text": "
|
|
326
|
+
"text": "Donate button label"
|
|
336
327
|
},
|
|
337
|
-
"attribute": "
|
|
328
|
+
"attribute": "donate-button-label",
|
|
329
|
+
"reflect": false,
|
|
330
|
+
"defaultValue": "'Donate now'"
|
|
331
|
+
},
|
|
332
|
+
"donateButtonUrl": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"mutable": false,
|
|
335
|
+
"complexType": {
|
|
336
|
+
"original": "string",
|
|
337
|
+
"resolved": "string",
|
|
338
|
+
"references": {}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": false,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": "Donate button url"
|
|
345
|
+
},
|
|
346
|
+
"attribute": "donate-button-url",
|
|
338
347
|
"reflect": false,
|
|
339
348
|
"defaultValue": "null"
|
|
340
349
|
},
|
|
341
|
-
"
|
|
350
|
+
"donateButtonColourScheme": {
|
|
342
351
|
"type": "string",
|
|
343
352
|
"mutable": false,
|
|
344
353
|
"complexType": {
|
|
@@ -350,11 +359,65 @@ export class BiggiveCampaignCard {
|
|
|
350
359
|
"optional": false,
|
|
351
360
|
"docs": {
|
|
352
361
|
"tags": [],
|
|
353
|
-
"text": "
|
|
362
|
+
"text": "Donate button colour scheme"
|
|
354
363
|
},
|
|
355
|
-
"attribute": "
|
|
364
|
+
"attribute": "donate-button-colour-scheme",
|
|
365
|
+
"reflect": false,
|
|
366
|
+
"defaultValue": "'primary'"
|
|
367
|
+
},
|
|
368
|
+
"moreInfoButtonLabel": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "string",
|
|
373
|
+
"resolved": "string",
|
|
374
|
+
"references": {}
|
|
375
|
+
},
|
|
376
|
+
"required": false,
|
|
377
|
+
"optional": false,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": "More information button label"
|
|
381
|
+
},
|
|
382
|
+
"attribute": "more-info-button-label",
|
|
383
|
+
"reflect": false,
|
|
384
|
+
"defaultValue": "'Find out more'"
|
|
385
|
+
},
|
|
386
|
+
"moreInfoButtonUrl": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"mutable": false,
|
|
389
|
+
"complexType": {
|
|
390
|
+
"original": "string",
|
|
391
|
+
"resolved": "string",
|
|
392
|
+
"references": {}
|
|
393
|
+
},
|
|
394
|
+
"required": false,
|
|
395
|
+
"optional": false,
|
|
396
|
+
"docs": {
|
|
397
|
+
"tags": [],
|
|
398
|
+
"text": "More information button url"
|
|
399
|
+
},
|
|
400
|
+
"attribute": "more-info-button-url",
|
|
356
401
|
"reflect": false,
|
|
357
402
|
"defaultValue": "null"
|
|
403
|
+
},
|
|
404
|
+
"moreInfoButtonColourScheme": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"mutable": false,
|
|
407
|
+
"complexType": {
|
|
408
|
+
"original": "string",
|
|
409
|
+
"resolved": "string",
|
|
410
|
+
"references": {}
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"optional": false,
|
|
414
|
+
"docs": {
|
|
415
|
+
"tags": [],
|
|
416
|
+
"text": "Donate button colour scheme"
|
|
417
|
+
},
|
|
418
|
+
"attribute": "more-info-button-colour-scheme",
|
|
419
|
+
"reflect": false,
|
|
420
|
+
"defaultValue": "'clear-primary'"
|
|
358
421
|
}
|
|
359
422
|
}; }
|
|
360
423
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Campaign Features',
|
|
3
|
+
argTypes: {
|
|
4
|
+
spaceBelow: {
|
|
5
|
+
name: 'Space below',
|
|
6
|
+
control: {
|
|
7
|
+
type: 'select',
|
|
8
|
+
options: [0, 1, 2, 3, 4, 5, 6],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
banner: {
|
|
12
|
+
name: 'Banner image url',
|
|
13
|
+
},
|
|
14
|
+
currencyCode: {
|
|
15
|
+
name: 'Currency code',
|
|
16
|
+
},
|
|
17
|
+
primaryFigureLabel: {
|
|
18
|
+
name: 'Primary figure label',
|
|
19
|
+
},
|
|
20
|
+
primaryFigureAmount: {
|
|
21
|
+
name: 'Primary figure amount',
|
|
22
|
+
},
|
|
23
|
+
secondaryFigureLabel: {
|
|
24
|
+
name: 'Secondary figure label',
|
|
25
|
+
},
|
|
26
|
+
secondaryFigureAmount: {
|
|
27
|
+
name: 'Secondary figure amount',
|
|
28
|
+
},
|
|
29
|
+
campaignTitle: {
|
|
30
|
+
name: 'Campaign title',
|
|
31
|
+
},
|
|
32
|
+
campaignType: {
|
|
33
|
+
name: 'Campaign type',
|
|
34
|
+
},
|
|
35
|
+
organisationName: {
|
|
36
|
+
name: 'Organisation name',
|
|
37
|
+
},
|
|
38
|
+
progressBarCounter: {
|
|
39
|
+
name: 'Progress bar counter',
|
|
40
|
+
},
|
|
41
|
+
donateButtonUrl: {
|
|
42
|
+
name: 'Donate button url',
|
|
43
|
+
},
|
|
44
|
+
donateButtonLabel: {
|
|
45
|
+
name: 'Donate button label',
|
|
46
|
+
},
|
|
47
|
+
donateButtonColourScheme: {
|
|
48
|
+
name: 'Donate button colour scheme',
|
|
49
|
+
control: {
|
|
50
|
+
type: 'select',
|
|
51
|
+
options: ['primary', 'secondary', 'tertiary', 'white', 'black', 'clear-primary', 'clear-secondary', 'clear-tertiary', 'clear-white', 'clear-black'],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
moreInfoButtonUrl: {
|
|
55
|
+
name: 'More info button url',
|
|
56
|
+
},
|
|
57
|
+
moreInfoButtonLabel: {
|
|
58
|
+
name: 'More info button label',
|
|
59
|
+
},
|
|
60
|
+
moreInfoButtonColourScheme: {
|
|
61
|
+
name: 'More info button colour scheme',
|
|
62
|
+
control: {
|
|
63
|
+
type: 'select',
|
|
64
|
+
options: ['primary', 'secondary', 'tertiary', 'white', 'black', 'clear-primary', 'clear-secondary', 'clear-tertiary', 'clear-white', 'clear-black'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
const Template = args => `
|
|
70
|
+
<biggive-campaign-card
|
|
71
|
+
space-below=${args.spaceBelow}
|
|
72
|
+
banner="${args.banner}"
|
|
73
|
+
currency-code="${args.currencyCode}"
|
|
74
|
+
primary-figure-label=${args.primaryFigureLabel}
|
|
75
|
+
primary-figure-amount=${args.primaryFigureAmount}
|
|
76
|
+
secondary-figure-label=${args.secondaryFigureLabel}
|
|
77
|
+
secondary-figure-amount=${args.secondaryFigureAmount}
|
|
78
|
+
campaign-title=${args.campaignTitle}
|
|
79
|
+
campaign-type=${args.campaignType}
|
|
80
|
+
organisation-name=${args.organisationName}
|
|
81
|
+
progress-bar-counter=${args.progressBarCounter}
|
|
82
|
+
donate-button-label=${args.donateButtonLabel}
|
|
83
|
+
donate-button-url=${args.donateButtonUrl}
|
|
84
|
+
more-info-button-label=${args.moreInfoButtonLabel}
|
|
85
|
+
more-info-button-url=${args.moreInfoButtonUrl}
|
|
86
|
+
</biggive-campaign-card>
|
|
87
|
+
`;
|
|
88
|
+
export const CampaignCardComponent = Template.bind({});
|
|
89
|
+
CampaignCardComponent.args = {
|
|
90
|
+
spaceBelow: 0,
|
|
91
|
+
banner: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
|
|
92
|
+
currencyCode: 'GBP',
|
|
93
|
+
primaryFigureLabel: 'Total raised',
|
|
94
|
+
primaryFigureAmount: 1000,
|
|
95
|
+
secondaryFigureLabel: 'Total remaining',
|
|
96
|
+
secondaryFigureAmount: 1000,
|
|
97
|
+
campaignTitle: 'My Campaign Title',
|
|
98
|
+
campaignType: 'Match funding',
|
|
99
|
+
organisationName: 'My Test Organisation',
|
|
100
|
+
progressBarCounter: 100,
|
|
101
|
+
donateButtonLabel: 'Donate now',
|
|
102
|
+
donateButtonUrl: '#',
|
|
103
|
+
moreInfoButtonLabel: 'More information',
|
|
104
|
+
moreInfoButtonUrl: '#',
|
|
105
|
+
};
|