@biggive/components 1.0.139 → 1.0.141
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/biggive.esm.js +1 -1
- package/dist/biggive/{p-2d4bd95c.entry.js → p-5c78bf89.entry.js} +1 -1
- package/dist/biggive/{p-abbadeba.entry.js → p-7b0e6bb4.entry.js} +1 -1
- package/dist/biggive/{p-f3534578.entry.js → p-c9a8bb86.entry.js} +1 -1
- package/dist/cjs/biggive-back-to-top_26.cjs.entry.js +28 -16
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +4 -1
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +4 -4
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.js +20 -1
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.stories.js +5 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +29 -2
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +41 -3
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +21 -4
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +34 -0
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +39 -1
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.stories.js +10 -0
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +4 -1
- package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +1 -1
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +9 -4
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +5 -2
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +2 -2
- package/dist/collection/components/biggive-popup/biggive-popup.js +23 -4
- package/dist/collection/components/biggive-search/biggive-search.js +18 -5
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +64 -3
- package/dist/components/biggive-beneficiary-icon.js +1 -1
- package/dist/components/biggive-branded-image.js +5 -3
- package/dist/components/biggive-campaign-card-filter-grid.js +11 -4
- package/dist/components/biggive-campaign-highlights.js +7 -3
- package/dist/components/biggive-category-icon.js +1 -1
- package/dist/components/biggive-form-field-select2.js +1 -1
- package/dist/components/biggive-hero-image.js +1 -1
- package/dist/components/biggive-misc-icon2.js +2 -2
- package/dist/components/biggive-popup2.js +8 -4
- package/dist/components/biggive-search.js +2 -2
- package/dist/components/biggive-social-icon.js +1 -1
- package/dist/esm/biggive-back-to-top_26.entry.js +28 -16
- package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
- package/dist/esm/biggive-category-icon.entry.js +1 -1
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/biggive-branded-image/biggive-branded-image.d.ts +4 -0
- package/dist/types/components/biggive-branded-image/biggive-branded-image.stories.d.ts +3 -0
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +15 -1
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.d.ts +17 -0
- package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.d.ts +11 -0
- package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.stories.d.ts +6 -0
- package/dist/types/components/biggive-popup/biggive-popup.d.ts +3 -2
- package/dist/types/components.d.ts +40 -1
- package/hydrate/index.js +40 -23
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["biggive-back-to-top_26.cjs",[[1,"biggive-campaign-card-filter-grid",{"spaceBelow":[2,"space-below"],"intro":[1],"placeholderText":[1,"placeholder-text"],"buttonText":[1,"button-text"],"categoryOptions":[16],"beneficiaryOptions":[16],"locationOptions":[16],"fundingOptions":[16],"selectedLabel":[1,"selected-label"]},[[0,"doSelectChange","doOptionSelectCompletedHandler"]]],[1,"biggive-campaign-card",{"spaceBelow":[2,"space-below"],"campaignType":[1,"campaign-type"],"banner":[1],"campaignTitle":[1,"campaign-title"],"organisationName":[1,"organisation-name"],"primaryFigureLabel":[1,"primary-figure-label"],"primaryFigureAmount":[1,"primary-figure-amount"],"secondaryFigureLabel":[1,"secondary-figure-label"],"secondaryFigureAmount":[1,"secondary-figure-amount"],"progressBarCounter":[2,"progress-bar-counter"],"donateButtonLabel":[1,"donate-button-label"],"donateButtonUrl":[1,"donate-button-url"],"donateButtonColourScheme":[1,"donate-button-colour-scheme"],"moreInfoButtonLabel":[1,"more-info-button-label"],"moreInfoButtonUrl":[1,"more-info-button-url"],"moreInfoButtonColourScheme":[1,"more-info-button-colour-scheme"]}],[1,"biggive-campaign-highlights",{"spaceBelow":[2,"space-below"],"banner":[1],"campaignTitle":[1,"campaign-title"],"primaryFigureLabel":[1,"primary-figure-label"],"primaryFigureAmount":[1,"primary-figure-amount"],"secondaryFigureLabel":[1,"secondary-figure-label"],"secondaryFigureAmount":[1,"secondary-figure-amount"],"progressBarCounter":[2,"progress-bar-counter"],"primaryStatIcon":[1,"primary-stat-icon"],"primaryStatText":[1,"primary-stat-text"],"secondaryStatIcon":[1,"secondary-stat-icon"],"secondaryStatText":[1,"secondary-stat-text"]}],[1,"biggive-call-to-action",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"slugSize":[2,"slug-size"],"slugColour":[1,"slug-colour"],"slug":[1],"mainTitleColour":[1,"main-title-colour"],"mainTitleSize":[2,"main-title-size"],"mainTitle":[1,"main-title"],"subtitleSize":[2,"subtitle-size"],"subtitleColour":[1,"subtitle-colour"],"subtitle":[1],"teaserColour":[1,"teaser-colour"],"teaser":[1],"primaryButtonUrl":[1,"primary-button-url"],"primaryButtonLabel":[1,"primary-button-label"],"primaryButtonColourScheme":[1,"primary-button-colour-scheme"],"secondaryButtonUrl":[1,"secondary-button-url"],"secondaryButtonLabel":[1,"secondary-button-label"],"secondaryButtonColourScheme":[1,"secondary-button-colour-scheme"]}],[1,"biggive-footer"],[1,"biggive-hero-image",{"spaceBelow":[2,"space-below"],"colourScheme":[1,"colour-scheme"],"slug":[1],"slugColour":[1,"slug-colour"],"logo":[1],"mainImage":[1,"main-image"],"mainImageAlignHorizontal":[1,"main-image-align-horizontal"],"mainImageAlignVertical":[1,"main-image-align-vertical"],"mainTitle":[1,"main-title"],"mainTitleColour":[1,"main-title-colour"],"teaser":[1],"teaserColour":[1,"teaser-colour"],"buttonUrl":[1,"button-url"],"buttonLabel":[1,"button-label"],"buttonColourScheme":[1,"button-colour-scheme"]}],[1,"biggive-image-feature",{"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"imageUrl":[1,"image-url"],"slug":[1],"slugColour":[1,"slug-colour"],"mainTitle":[1,"main-title"],"mainTitleColour":[1,"main-title-colour"],"teaser":[1],"teaserColour":[1,"teaser-colour"],"buttonUrl":[1,"button-url"],"buttonLabel":[1,"button-label"],"buttonColourScheme":[1,"button-colour-scheme"]}],[1,"biggive-video-feature",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"videoUrl":[1,"video-url"],"slug":[1],"slugColour":[1,"slug-colour"],"mainTitle":[1,"main-title"],"mainTitleColour":[1,"main-title-colour"],"teaser":[1],"teaserColour":[1,"teaser-colour"],"buttonUrl":[1,"button-url"],"buttonLabel":[1,"button-label"],"buttonColourScheme":[1,"button-colour-scheme"]}],[1,"biggive-back-to-top"],[1,"biggive-branded-image",{"spaceBelow":[2,"space-below"],"imageUrl":[1,"image-url"],"logoUrl":[1,"logo-url"],"slug":[1],"charityName":[1,"charity-name"],"charityLocation":[1,"charity-location"]}],[1,"biggive-grid",{"spaceBelow":[2,"space-below"],"columnCount":[2,"column-count"],"columnGap":[2,"column-gap"]}],[1,"biggive-header",{"spaceBelow":[2,"space-below"],"logoUrl":[1,"logo-url"]}],[1,"biggive-heading",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"colour":[1],"htmlElement":[1,"html-element"],"size":[2],"align":[1],"text":[1]}],[1,"biggive-page-column"],[1,"biggive-page-columns",{"spaceBelow":[2,"space-below"]}],[1,"biggive-page-section",{"spaceBelow":[2,"space-below"],"sectionStyleTop":[1,"section-style-top"],"sectionStyleBottom":[1,"section-style-bottom"],"colourScheme":[1,"colour-scheme"]}],[1,"biggive-quote",{"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"quote":[1],"attribution":[1]}],[0,"biggive-social-icon",{"service":[1],"backgroundColour":[1,"background-colour"],"iconColour":[1,"icon-colour"],"url":[1]}],[1,"biggive-totalizer",{"spaceBelow":[2,"space-below"],"primaryColour":[1,"primary-colour"],"primaryTextColour":[1,"primary-text-colour"],"secondaryColour":[1,"secondary-colour"],"secondaryTextColour":[1,"secondary-text-colour"],"mainMessage":[1,"main-message"]}],[1,"biggive-totalizer-ticker-item",{"figure":[1],"label":[1]}],[1,"biggive-form-field-select",{"selectedValue":[1,"selected-value"],"selectedLabel":[1,"selected-label"],"spaceBelow":[2,"space-below"],"placeholder":[1]},[[0,"doOptionSelect","doOptionSelectCompletedHandler"]]],[1,"biggive-form-field-select-option",{"label":[1],"value":[1],"selectedValue":[32],"selectedLabel":[32]}],[0,"biggive-misc-icon",{"backgroundColour":[1,"background-colour"],"iconColour":[1,"icon-colour"],"icon":[1],"url":[1]}],[1,"biggive-popup",{"
|
|
17
|
+
return index.bootstrapLazy([["biggive-back-to-top_26.cjs",[[1,"biggive-campaign-card-filter-grid",{"spaceBelow":[2,"space-below"],"intro":[1],"searchText":[1,"search-text"],"placeholderText":[1,"placeholder-text"],"buttonText":[1,"button-text"],"categoryOptions":[16],"beneficiaryOptions":[16],"locationOptions":[16],"fundingOptions":[16],"selectedLabel":[1,"selected-label"]},[[0,"doSelectChange","doOptionSelectCompletedHandler"]]],[1,"biggive-campaign-card",{"spaceBelow":[2,"space-below"],"campaignType":[1,"campaign-type"],"banner":[1],"campaignTitle":[1,"campaign-title"],"organisationName":[1,"organisation-name"],"primaryFigureLabel":[1,"primary-figure-label"],"primaryFigureAmount":[1,"primary-figure-amount"],"secondaryFigureLabel":[1,"secondary-figure-label"],"secondaryFigureAmount":[1,"secondary-figure-amount"],"progressBarCounter":[2,"progress-bar-counter"],"donateButtonLabel":[1,"donate-button-label"],"donateButtonUrl":[1,"donate-button-url"],"donateButtonColourScheme":[1,"donate-button-colour-scheme"],"moreInfoButtonLabel":[1,"more-info-button-label"],"moreInfoButtonUrl":[1,"more-info-button-url"],"moreInfoButtonColourScheme":[1,"more-info-button-colour-scheme"]}],[1,"biggive-campaign-highlights",{"spaceBelow":[2,"space-below"],"banner":[1],"campaignTitle":[1,"campaign-title"],"primaryFigureLabel":[1,"primary-figure-label"],"primaryFigureAmount":[1,"primary-figure-amount"],"secondaryFigureLabel":[1,"secondary-figure-label"],"secondaryFigureAmount":[1,"secondary-figure-amount"],"progressBarCounter":[2,"progress-bar-counter"],"primaryStatIcon":[1,"primary-stat-icon"],"primaryStatText":[1,"primary-stat-text"],"secondaryStatIcon":[1,"secondary-stat-icon"],"secondaryStatText":[1,"secondary-stat-text"],"championName":[1,"champion-name"],"championUrl":[1,"champion-url"]}],[1,"biggive-call-to-action",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"slugSize":[2,"slug-size"],"slugColour":[1,"slug-colour"],"slug":[1],"mainTitleColour":[1,"main-title-colour"],"mainTitleSize":[2,"main-title-size"],"mainTitle":[1,"main-title"],"subtitleSize":[2,"subtitle-size"],"subtitleColour":[1,"subtitle-colour"],"subtitle":[1],"teaserColour":[1,"teaser-colour"],"teaser":[1],"primaryButtonUrl":[1,"primary-button-url"],"primaryButtonLabel":[1,"primary-button-label"],"primaryButtonColourScheme":[1,"primary-button-colour-scheme"],"secondaryButtonUrl":[1,"secondary-button-url"],"secondaryButtonLabel":[1,"secondary-button-label"],"secondaryButtonColourScheme":[1,"secondary-button-colour-scheme"]}],[1,"biggive-footer"],[1,"biggive-hero-image",{"spaceBelow":[2,"space-below"],"colourScheme":[1,"colour-scheme"],"slug":[1],"slugColour":[1,"slug-colour"],"logo":[1],"mainImage":[1,"main-image"],"mainImageAlignHorizontal":[1,"main-image-align-horizontal"],"mainImageAlignVertical":[1,"main-image-align-vertical"],"mainTitle":[1,"main-title"],"mainTitleColour":[1,"main-title-colour"],"teaser":[1],"teaserColour":[1,"teaser-colour"],"buttonUrl":[1,"button-url"],"buttonLabel":[1,"button-label"],"buttonColourScheme":[1,"button-colour-scheme"]}],[1,"biggive-image-feature",{"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"imageUrl":[1,"image-url"],"slug":[1],"slugColour":[1,"slug-colour"],"mainTitle":[1,"main-title"],"mainTitleColour":[1,"main-title-colour"],"teaser":[1],"teaserColour":[1,"teaser-colour"],"buttonUrl":[1,"button-url"],"buttonLabel":[1,"button-label"],"buttonColourScheme":[1,"button-colour-scheme"]}],[1,"biggive-video-feature",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"videoUrl":[1,"video-url"],"slug":[1],"slugColour":[1,"slug-colour"],"mainTitle":[1,"main-title"],"mainTitleColour":[1,"main-title-colour"],"teaser":[1],"teaserColour":[1,"teaser-colour"],"buttonUrl":[1,"button-url"],"buttonLabel":[1,"button-label"],"buttonColourScheme":[1,"button-colour-scheme"]}],[1,"biggive-back-to-top"],[1,"biggive-branded-image",{"spaceBelow":[2,"space-below"],"imageUrl":[1,"image-url"],"logoUrl":[1,"logo-url"],"slug":[1],"charityName":[1,"charity-name"],"charityLocation":[1,"charity-location"],"charityUrl":[1,"charity-url"]}],[1,"biggive-grid",{"spaceBelow":[2,"space-below"],"columnCount":[2,"column-count"],"columnGap":[2,"column-gap"]}],[1,"biggive-header",{"spaceBelow":[2,"space-below"],"logoUrl":[1,"logo-url"]}],[1,"biggive-heading",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"colour":[1],"htmlElement":[1,"html-element"],"size":[2],"align":[1],"text":[1]}],[1,"biggive-page-column"],[1,"biggive-page-columns",{"spaceBelow":[2,"space-below"]}],[1,"biggive-page-section",{"spaceBelow":[2,"space-below"],"sectionStyleTop":[1,"section-style-top"],"sectionStyleBottom":[1,"section-style-bottom"],"colourScheme":[1,"colour-scheme"]}],[1,"biggive-quote",{"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"],"quote":[1],"attribution":[1]}],[0,"biggive-social-icon",{"service":[1],"backgroundColour":[1,"background-colour"],"iconColour":[1,"icon-colour"],"url":[1]}],[1,"biggive-totalizer",{"spaceBelow":[2,"space-below"],"primaryColour":[1,"primary-colour"],"primaryTextColour":[1,"primary-text-colour"],"secondaryColour":[1,"secondary-colour"],"secondaryTextColour":[1,"secondary-text-colour"],"mainMessage":[1,"main-message"]}],[1,"biggive-totalizer-ticker-item",{"figure":[1],"label":[1]}],[1,"biggive-form-field-select",{"selectedValue":[1,"selected-value"],"selectedLabel":[1,"selected-label"],"spaceBelow":[2,"space-below"],"placeholder":[1]},[[0,"doOptionSelect","doOptionSelectCompletedHandler"]]],[1,"biggive-form-field-select-option",{"label":[1],"value":[1],"selectedValue":[32],"selectedLabel":[32]}],[0,"biggive-misc-icon",{"backgroundColour":[1,"background-colour"],"iconColour":[1,"icon-colour"],"icon":[1],"url":[1]}],[1,"biggive-popup",{"openFromOutside":[64],"closeFromOutside":[64]}],[1,"biggive-progress-bar",{"spaceBelow":[2,"space-below"],"colourScheme":[1,"colour-scheme"],"counter":[2]}],[1,"biggive-button",{"spaceBelow":[2,"space-below"],"colourScheme":[1,"colour-scheme"],"label":[1],"url":[1],"fullWidth":[4,"full-width"],"size":[1],"rounded":[4]}]]],["biggive-article-card.cjs",[[1,"biggive-article-card",{"spaceBelow":[2,"space-below"],"backgroundColour":[1,"background-colour"],"backgroundColourHover":[1,"background-colour-hover"],"textColour":[1,"text-colour"],"slug":[1],"date":[1],"mainTitle":[1,"main-title"],"imageUrl":[1,"image-url"],"imageLabel":[1,"image-label"],"buttonLabel":[1,"button-label"],"buttonUrl":[1,"button-url"]}]]],["biggive-basic-card.cjs",[[1,"biggive-basic-card",{"spaceBelow":[2,"space-below"],"backgroundColour":[1,"background-colour"],"backgroundImageUrl":[1,"background-image-url"],"cardColour":[1,"card-colour"],"textColour":[1,"text-colour"],"mainTitle":[1,"main-title"],"subtitle":[1],"iconColour":[1,"icon-colour"],"buttonLabel":[1,"button-label"],"buttonUrl":[1,"button-url"],"buttonColourScheme":[1,"button-colour-scheme"]}]]],["biggive-search.cjs",[[1,"biggive-search",{"searchText":[1,"search-text"],"placeholderText":[1,"placeholder-text"],"buttonText":[1,"button-text"]}]]],["biggive-beneficiary-icon.cjs",[[0,"biggive-beneficiary-icon",{"backgroundColour":[1,"background-colour"],"iconColour":[1,"icon-colour"],"icon":[1],"label":[1],"url":[1]}]]],["biggive-boxed-content.cjs",[[1,"biggive-boxed-content",{"spaceBelow":[2,"space-below"],"verticalPadding":[2,"vertical-padding"],"horizontalPadding":[2,"horizontal-padding"],"backgroundColour":[1,"background-colour"],"shadow":[4]}]]],["biggive-category-icon.cjs",[[0,"biggive-category-icon",{"backgroundColour":[1,"background-colour"],"iconColour":[1,"icon-colour"],"icon":[1],"label":[1],"url":[1]}]]],["biggive-form.cjs",[[1,"biggive-form"]]],["biggive-formatted-text.cjs",[[1,"biggive-formatted-text",{"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"]}]]],["biggive-icon-group.cjs",[[1,"biggive-icon-group",{"spaceBelow":[2,"space-below"],"label":[1]}]]],["biggive-image.cjs",[[1,"biggive-image",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"imageUrl":[1,"image-url"],"width":[2],"height":[2],"sizeUnit":[1,"size-unit"]}]]],["biggive-nav-group.cjs",[[1,"biggive-nav-group",{"inline":[4]}]]],["biggive-nav-item.cjs",[[1,"biggive-nav-item",{"url":[1],"label":[1],"iconColour":[1,"icon-colour"]}]]],["biggive-popup-standalone.cjs",[[1,"biggive-popup-standalone"]]],["biggive-tab.cjs",[[1,"biggive-tab",{"tabTitle":[1,"tab-title"]}]]],["biggive-tabbed-content.cjs",[[1,"biggive-tabbed-content",{"spaceBelow":[2,"space-below"],"defaultTextColour":[1,"default-text-colour"]}]]],["biggive-text-input.cjs",[[1,"biggive-text-input"]]],["biggive-video.cjs",[[1,"biggive-video",{"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"videoUrl":[1,"video-url"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -572,11 +572,14 @@ a:hover {
|
|
|
572
572
|
.beneficiary-icon-item a {
|
|
573
573
|
display: block;
|
|
574
574
|
position: relative;
|
|
575
|
-
padding:
|
|
575
|
+
padding: 8px;
|
|
576
576
|
box-sizing: border-box;
|
|
577
577
|
height: 100%;
|
|
578
578
|
}
|
|
579
579
|
.beneficiary-icon-item a svg {
|
|
580
580
|
width: 100%;
|
|
581
581
|
height: 100%;
|
|
582
|
+
}
|
|
583
|
+
.beneficiary-icon-item a {
|
|
584
|
+
padding: 6px;
|
|
582
585
|
}
|
|
@@ -566,21 +566,21 @@ a:hover {
|
|
|
566
566
|
margin-bottom: 5px;
|
|
567
567
|
width: fit-content;
|
|
568
568
|
}
|
|
569
|
-
.container #charityName, .container
|
|
569
|
+
.container #charityName, .container .charity-info {
|
|
570
570
|
font-size: 17px;
|
|
571
571
|
}
|
|
572
572
|
@media screen and (max-width: 768px) {
|
|
573
|
-
.container #charityName, .container
|
|
573
|
+
.container #charityName, .container .charity-info {
|
|
574
574
|
font-size: 16px;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
@media screen and (max-width: 576px) {
|
|
578
|
-
.container #charityName, .container
|
|
578
|
+
.container #charityName, .container .charity-info {
|
|
579
579
|
font-size: 15px;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
@media screen and (max-width: 450px) {
|
|
583
|
-
.container #charityName, .container
|
|
583
|
+
.container #charityName, .container .charity-info {
|
|
584
584
|
font-size: 14px;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
@@ -7,9 +7,10 @@ export class BiggiveBrandedImage {
|
|
|
7
7
|
this.slug = null;
|
|
8
8
|
this.charityName = null;
|
|
9
9
|
this.charityLocation = null;
|
|
10
|
+
this.charityUrl = null;
|
|
10
11
|
}
|
|
11
12
|
render() {
|
|
12
|
-
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "slug" }, this.slug), this.imageUrl !== undefined ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl }))) : null, this.logoUrl.
|
|
13
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "slug" }, this.slug), this.imageUrl !== undefined && this.imageUrl !== null ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl }))) : null, this.logoUrl !== undefined && this.logoUrl !== null ? h("div", { class: "logo-wrap", style: { 'background-image': "url('" + this.logoUrl + "')" } }) : null, this.charityName !== undefined && this.charityName !== null ? (h("a", { id: "charityName", href: this.charityUrl, target: "_blank" }, this.charityName)) : null, this.charityLocation !== undefined && this.charityLocation !== null ? h("div", { class: "charity-info" }, this.charityLocation) : null));
|
|
13
14
|
}
|
|
14
15
|
static get is() { return "biggive-branded-image"; }
|
|
15
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -132,6 +133,24 @@ export class BiggiveBrandedImage {
|
|
|
132
133
|
"attribute": "charity-location",
|
|
133
134
|
"reflect": false,
|
|
134
135
|
"defaultValue": "null"
|
|
136
|
+
},
|
|
137
|
+
"charityUrl": {
|
|
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": "Link to the charity's website"
|
|
150
|
+
},
|
|
151
|
+
"attribute": "charity-url",
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"defaultValue": "null"
|
|
135
154
|
}
|
|
136
155
|
};
|
|
137
156
|
}
|
|
@@ -7,6 +7,9 @@ export default {
|
|
|
7
7
|
charityName: {
|
|
8
8
|
name: 'Charity Name',
|
|
9
9
|
},
|
|
10
|
+
charityUrl: {
|
|
11
|
+
name: 'Charity URL',
|
|
12
|
+
},
|
|
10
13
|
spaceBelow: {
|
|
11
14
|
name: 'Space below',
|
|
12
15
|
control: {
|
|
@@ -29,6 +32,7 @@ const Template = args => `
|
|
|
29
32
|
<biggive-branded-image
|
|
30
33
|
charity-location="${args.charityLocation}"
|
|
31
34
|
charity-name="${args.charityName}"
|
|
35
|
+
charity-url="${args.charityUrl}"
|
|
32
36
|
space-below="${args.spaceBelow}"
|
|
33
37
|
image-url="${args.imageUrl}"
|
|
34
38
|
logo-url="${args.logoUrl}"
|
|
@@ -40,6 +44,7 @@ export const BrandedImageComponent = Template.bind({});
|
|
|
40
44
|
BrandedImageComponent.args = {
|
|
41
45
|
charityLocation: 'London',
|
|
42
46
|
charityName: 'The Big Give Trust',
|
|
47
|
+
charityUrl: 'https://thebiggive.org.uk',
|
|
43
48
|
spaceBelow: 4,
|
|
44
49
|
imageUrl: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
|
|
45
50
|
logoUrl: 'https://99designs-blog.imgix.net/blog/wp-content/uploads/2018/10/attachment_98611730-e1539290946446.png?auto=format&q=60&fit=max&w=930',
|
|
@@ -541,12 +541,18 @@ a:hover {
|
|
|
541
541
|
|
|
542
542
|
.sort-filter-wrap {
|
|
543
543
|
display: flex;
|
|
544
|
-
|
|
544
|
+
justify-content: flex-end;
|
|
545
545
|
margin-bottom: 30px;
|
|
546
546
|
text-align: right;
|
|
547
547
|
}
|
|
548
|
+
.sort-filter-wrap #clearFilters {
|
|
549
|
+
margin: auto 0 auto auto;
|
|
550
|
+
}
|
|
551
|
+
.sort-filter-wrap #clearFilters:hover {
|
|
552
|
+
cursor: pointer;
|
|
553
|
+
}
|
|
548
554
|
.sort-filter-wrap .sort-wrap {
|
|
549
|
-
margin-left:
|
|
555
|
+
margin-left: 15px;
|
|
550
556
|
}
|
|
551
557
|
.sort-filter-wrap .filter-wrap {
|
|
552
558
|
margin-left: 15px;
|
|
@@ -581,4 +587,25 @@ a:hover {
|
|
|
581
587
|
}
|
|
582
588
|
.icon > path {
|
|
583
589
|
fill: #2C089B;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
@media screen and (max-width: 768px) {
|
|
593
|
+
.sort-filter-wrap {
|
|
594
|
+
flex-wrap: wrap-reverse;
|
|
595
|
+
}
|
|
596
|
+
.sort-filter-wrap #clearFilters {
|
|
597
|
+
flex: 1 0 100%;
|
|
598
|
+
padding-top: 10px;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
@media screen and (max-width: 475px) {
|
|
602
|
+
.sort-filter-wrap {
|
|
603
|
+
flex-wrap: wrap-reverse;
|
|
604
|
+
}
|
|
605
|
+
.sort-filter-wrap .sort-wrap {
|
|
606
|
+
padding-top: 10px;
|
|
607
|
+
}
|
|
608
|
+
.sort-filter-wrap .sort-wrap, .sort-filter-wrap .filter-wrap {
|
|
609
|
+
flex: 1 0 100%;
|
|
610
|
+
}
|
|
584
611
|
}
|
|
@@ -2,7 +2,6 @@ import { h } from '@stencil/core';
|
|
|
2
2
|
import { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
|
|
3
3
|
export class BiggiveCampaignCardFilterGrid {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.searchText = null;
|
|
6
5
|
this.sortBy = null;
|
|
7
6
|
this.filterCategory = null;
|
|
8
7
|
this.filterBeneficiary = null;
|
|
@@ -11,6 +10,8 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
11
10
|
this.sortByPlaceholderText = 'Sort by';
|
|
12
11
|
this.handleApplyFilterButtonClick = () => {
|
|
13
12
|
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
13
|
+
console.log(this.el.shadowRoot.getElementById('filter-popup'));
|
|
14
|
+
this.el.shadowRoot.getElementById('filter-popup').closeFromOutside();
|
|
14
15
|
};
|
|
15
16
|
this.handleSearchButtonPressed = () => {
|
|
16
17
|
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
@@ -24,10 +25,14 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
this.handleFilterButtonClick = () => {
|
|
27
|
-
this.el.shadowRoot.getElementById('filter-popup').
|
|
28
|
+
this.el.shadowRoot.getElementById('filter-popup').openFromOutside();
|
|
29
|
+
};
|
|
30
|
+
this.handleClearFiltersClicked = () => {
|
|
31
|
+
this.doClearFilters.emit(true);
|
|
28
32
|
};
|
|
29
33
|
this.spaceBelow = 0;
|
|
30
34
|
this.intro = 'Find a charity or project';
|
|
35
|
+
this.searchText = null;
|
|
31
36
|
this.placeholderText = 'Search';
|
|
32
37
|
this.buttonText = 'Search';
|
|
33
38
|
this.categoryOptions = [];
|
|
@@ -68,7 +73,7 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
75
|
render() {
|
|
71
|
-
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", selectedLabel: this.selectedLabel, id: "sort-by" }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }), h("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "Filters" }), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }, this.categoryOptions.length === 0
|
|
76
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("a", { onClick: this.handleClearFiltersClicked, id: "clearFilters" }, "Clear Filters"), h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", selectedLabel: this.selectedLabel, id: "sort-by" }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }), h("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "Filters", fullWidth: true }), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }, this.categoryOptions.length === 0
|
|
72
77
|
? undefined
|
|
73
78
|
: this.categoryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
|
|
74
79
|
? undefined
|
|
@@ -128,6 +133,24 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
128
133
|
"reflect": false,
|
|
129
134
|
"defaultValue": "'Find a charity or project'"
|
|
130
135
|
},
|
|
136
|
+
"searchText": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "Optional search text prop. Useful for pre-populating the search field\nwhen the page is loaded with a search term already existing in the URL.\nThis can happen when sharing links, or if a donor goes to a campaign page\nafter searching, and then returns to the search results. In such a case,\nthe search box text will clear, unless we use this prop to populate it on\nrendering. DON-652."
|
|
149
|
+
},
|
|
150
|
+
"attribute": "search-text",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "null"
|
|
153
|
+
},
|
|
131
154
|
"placeholderText": {
|
|
132
155
|
"type": "string",
|
|
133
156
|
"mutable": false,
|
|
@@ -264,6 +287,21 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
264
287
|
"resolved": "{ searchText: string; sortBy: string; filterCategory: string; filterBeneficiary: string; filterLocation: string; filterFunding: string; }",
|
|
265
288
|
"references": {}
|
|
266
289
|
}
|
|
290
|
+
}, {
|
|
291
|
+
"method": "doClearFilters",
|
|
292
|
+
"name": "doClearFilters",
|
|
293
|
+
"bubbles": true,
|
|
294
|
+
"cancelable": true,
|
|
295
|
+
"composed": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "This event `doSearchAndFilterUpdate` event is emitted and propogates to the parent\ncomponent which handles it"
|
|
299
|
+
},
|
|
300
|
+
"complexType": {
|
|
301
|
+
"original": "boolean",
|
|
302
|
+
"resolved": "boolean",
|
|
303
|
+
"references": {}
|
|
304
|
+
}
|
|
267
305
|
}];
|
|
268
306
|
}
|
|
269
307
|
static get elementRef() { return "el"; }
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
//import { BiggiveCampaignCard } from 'biggive-campaign-card/biggive-campaign-card';
|
|
2
1
|
export default {
|
|
3
2
|
title: 'Components/Campaign Features',
|
|
4
|
-
|
|
3
|
+
argTypes: {
|
|
4
|
+
categoryOptions: {
|
|
5
|
+
name: 'Category Options',
|
|
6
|
+
},
|
|
7
|
+
beneficiaryOptions: {
|
|
8
|
+
name: 'Beneficiary Options',
|
|
9
|
+
},
|
|
10
|
+
locationOptions: {
|
|
11
|
+
name: 'Location Options',
|
|
12
|
+
},
|
|
13
|
+
fundingOptions: {
|
|
14
|
+
name: 'Funding Options',
|
|
15
|
+
},
|
|
16
|
+
searchText: {
|
|
17
|
+
name: 'Search Text',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
5
20
|
};
|
|
6
21
|
const Template = args => `
|
|
7
|
-
<biggive-campaign-card-filter-grid category-options="${args.categoryOptions}" beneficiary-options="${args.beneficiaryOptions}" location-options="${args.locationOptions}" funding-options="${args.fundingOptions}">
|
|
22
|
+
<biggive-campaign-card-filter-grid category-options="${args.categoryOptions}" beneficiary-options="${args.beneficiaryOptions}" location-options="${args.locationOptions}" funding-options="${args.fundingOptions}" search-text=${args.searchText}>
|
|
8
23
|
<biggive-grid slot="campaign-grid" column-count="3">
|
|
9
24
|
<biggive-campaign-card
|
|
10
25
|
campaign-type="Match Funded"
|
|
@@ -45,10 +60,12 @@ const Template = args => `
|
|
|
45
60
|
</biggive-campaign-card-filter-grid>
|
|
46
61
|
`;
|
|
47
62
|
document.addEventListener('doSearchAndFilterUpdate', $event => console.log($event));
|
|
63
|
+
document.addEventListener('doClearFilters', $event => console.log($event));
|
|
48
64
|
export const CampaignCardFilterGridComponent = Template.bind({});
|
|
49
65
|
CampaignCardFilterGridComponent.args = {
|
|
50
66
|
categoryOptions: ['ABC', 'DEF'],
|
|
51
|
-
beneficiaryOptions: ['ABC', 'DEF'
|
|
67
|
+
beneficiaryOptions: ['ABC', 'DEF'],
|
|
52
68
|
locationOptions: ['ABC', 'DEF'],
|
|
53
69
|
fundingOptions: ['ABC', 'DEF'],
|
|
70
|
+
searchText: '',
|
|
54
71
|
};
|
package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css
CHANGED
|
@@ -618,6 +618,40 @@ a:hover {
|
|
|
618
618
|
.container .stat-wrap .stat-item svg {
|
|
619
619
|
fill: #FF7272;
|
|
620
620
|
}
|
|
621
|
+
.container .championed-by {
|
|
622
|
+
text-align: left;
|
|
623
|
+
margin-left: 20px;
|
|
624
|
+
margin-top: 20px;
|
|
625
|
+
color: black;
|
|
626
|
+
font-size: 15px;
|
|
627
|
+
}
|
|
628
|
+
@media screen and (max-width: 768px) {
|
|
629
|
+
.container .championed-by {
|
|
630
|
+
font-size: 14px;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
@media screen and (max-width: 576px) {
|
|
634
|
+
.container .championed-by {
|
|
635
|
+
text-align: center;
|
|
636
|
+
margin-left: 0;
|
|
637
|
+
margin-bottom: 10px;
|
|
638
|
+
font-size: 13px;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
@media screen and (max-width: 450px) {
|
|
642
|
+
.container .championed-by {
|
|
643
|
+
font-size: 12px;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
.container .championed-by a {
|
|
647
|
+
text-decoration: none;
|
|
648
|
+
color: #2C089B;
|
|
649
|
+
}
|
|
650
|
+
@media screen and (max-width: 450px) {
|
|
651
|
+
.container .championed-by a {
|
|
652
|
+
display: block;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
621
655
|
@media screen and (max-width: 576px) {
|
|
622
656
|
.container {
|
|
623
657
|
padding: 15px;
|
package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js
CHANGED
|
@@ -13,9 +13,11 @@ export class BiggiveCampaignHighlights {
|
|
|
13
13
|
this.primaryStatText = null;
|
|
14
14
|
this.secondaryStatIcon = null;
|
|
15
15
|
this.secondaryStatText = null;
|
|
16
|
+
this.championName = null;
|
|
17
|
+
this.championUrl = null;
|
|
16
18
|
}
|
|
17
19
|
render() {
|
|
18
|
-
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null))));
|
|
20
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null), this.championName != null ? (h("div", { class: "championed-by" }, "Championed by ", h("a", { href: this.championUrl }, this.championName))) : null)));
|
|
19
21
|
}
|
|
20
22
|
static get is() { return "biggive-campaign-highlights"; }
|
|
21
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -246,6 +248,42 @@ export class BiggiveCampaignHighlights {
|
|
|
246
248
|
"attribute": "secondary-stat-text",
|
|
247
249
|
"reflect": false,
|
|
248
250
|
"defaultValue": "null"
|
|
251
|
+
},
|
|
252
|
+
"championName": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"mutable": false,
|
|
255
|
+
"complexType": {
|
|
256
|
+
"original": "string",
|
|
257
|
+
"resolved": "string",
|
|
258
|
+
"references": {}
|
|
259
|
+
},
|
|
260
|
+
"required": false,
|
|
261
|
+
"optional": false,
|
|
262
|
+
"docs": {
|
|
263
|
+
"tags": [],
|
|
264
|
+
"text": "Champion's name"
|
|
265
|
+
},
|
|
266
|
+
"attribute": "champion-name",
|
|
267
|
+
"reflect": false,
|
|
268
|
+
"defaultValue": "null"
|
|
269
|
+
},
|
|
270
|
+
"championUrl": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"mutable": false,
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "string",
|
|
275
|
+
"resolved": "string",
|
|
276
|
+
"references": {}
|
|
277
|
+
},
|
|
278
|
+
"required": false,
|
|
279
|
+
"optional": false,
|
|
280
|
+
"docs": {
|
|
281
|
+
"tags": [],
|
|
282
|
+
"text": "Link to all meta-campaigns funded by this champion.\nFor example: /christmas-challenge-2022/the-reed-foundation-22\nIn other words, it follows the following format:\n'/' + campaign.parentRef + '/' + campaign.championRef"
|
|
283
|
+
},
|
|
284
|
+
"attribute": "champion-url",
|
|
285
|
+
"reflect": false,
|
|
286
|
+
"defaultValue": "null"
|
|
249
287
|
}
|
|
250
288
|
};
|
|
251
289
|
}
|
|
@@ -14,6 +14,12 @@ export default {
|
|
|
14
14
|
campaignTitle: {
|
|
15
15
|
name: 'Camapign title',
|
|
16
16
|
},
|
|
17
|
+
championName: {
|
|
18
|
+
name: 'Champion name',
|
|
19
|
+
},
|
|
20
|
+
championUrl: {
|
|
21
|
+
name: 'Champion url',
|
|
22
|
+
},
|
|
17
23
|
currencyCode: {
|
|
18
24
|
name: 'Currency code',
|
|
19
25
|
},
|
|
@@ -59,6 +65,8 @@ const Template = args => `
|
|
|
59
65
|
space-below=${args.spaceBelow}
|
|
60
66
|
banner="${args.banner}"
|
|
61
67
|
campaign-title="${args.campaignTitle}"
|
|
68
|
+
champion-name="${args.championName}"
|
|
69
|
+
champion-url="${args.championUrl}"
|
|
62
70
|
currency-code="${args.currencyCode}"
|
|
63
71
|
primary-figure-label=${args.primaryFigureLabel}
|
|
64
72
|
primary-figure-amount=${args.primaryFigureAmount}
|
|
@@ -76,6 +84,8 @@ CampaignHighlightsComponent.args = {
|
|
|
76
84
|
spaceBelow: 0,
|
|
77
85
|
banner: 'https://media.istockphoto.com/vectors/childish-seamless-dotted-pattern-with-colorful-doodle-letters-fun-vector-id1208462693',
|
|
78
86
|
campaignTitle: 'this is my sample title',
|
|
87
|
+
championName: 'The Champion Name',
|
|
88
|
+
championUrl: 'https://thebiggive.org.uk',
|
|
79
89
|
currencyCode: 'GBP',
|
|
80
90
|
primaryFigureLabel: 'Total raised',
|
|
81
91
|
primaryFigureAmount: 1000,
|
|
@@ -572,11 +572,14 @@ a:hover {
|
|
|
572
572
|
.category-icon-item a {
|
|
573
573
|
display: block;
|
|
574
574
|
position: relative;
|
|
575
|
-
padding:
|
|
575
|
+
padding: 8px;
|
|
576
576
|
box-sizing: border-box;
|
|
577
577
|
height: 100%;
|
|
578
578
|
}
|
|
579
579
|
.category-icon-item a svg {
|
|
580
580
|
width: 100%;
|
|
581
581
|
height: 100%;
|
|
582
|
+
}
|
|
583
|
+
.category-icon-item a {
|
|
584
|
+
padding: 6px;
|
|
582
585
|
}
|
|
@@ -31,7 +31,7 @@ export class BiggiveFormFieldSelect {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { class: 'dropdown space-below-' + this.spaceBelow }, h("div", { class: "sleeve", onClick: this.toggleFocus, onMouseLeave: this.toggleFocus }, h("span", { class: "placeholder" }, this.selectedLabel === null ? this.placeholder : this.selectedLabel)), h("div", { class: "options" }, h("slot", null))));
|
|
34
|
+
return (h("div", { class: 'dropdown space-below-' + this.spaceBelow }, h("div", { class: "sleeve", onClick: this.toggleFocus, onMouseLeave: this.toggleFocus }, h("span", { class: "placeholder" }, this.selectedLabel === null || this.selectedLabel === undefined ? this.placeholder : this.selectedLabel)), h("div", { class: "options" }, h("slot", null))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "biggive-form-field-select"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -574,7 +574,7 @@ a:hover {
|
|
|
574
574
|
margin: 50px 0 15px 0;
|
|
575
575
|
padding: 0;
|
|
576
576
|
}
|
|
577
|
-
@media (max-width:
|
|
577
|
+
@media (max-width: 1200px) {
|
|
578
578
|
.container .content-wrap h1 {
|
|
579
579
|
font-size: 38px;
|
|
580
580
|
line-height: 45px;
|
|
@@ -614,7 +614,7 @@ a:hover {
|
|
|
614
614
|
flex-wrap: wrap;
|
|
615
615
|
}
|
|
616
616
|
.container .sleeve .content-wrap {
|
|
617
|
-
width:
|
|
617
|
+
width: 60%;
|
|
618
618
|
padding: 18vw 15px 15px 15px;
|
|
619
619
|
margin-bottom: 50px;
|
|
620
620
|
}
|
|
@@ -624,8 +624,13 @@ a:hover {
|
|
|
624
624
|
padding-bottom: 50%;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
@media screen and (max-width:
|
|
627
|
+
@media screen and (max-width: 768px) {
|
|
628
628
|
.container .sleeve .content-wrap {
|
|
629
|
-
|
|
629
|
+
width: 80%;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
@media screen and (max-width: 576px) {
|
|
633
|
+
.container .sleeve .content-wrap {
|
|
634
|
+
width: 100%;
|
|
630
635
|
}
|
|
631
636
|
}
|
|
@@ -554,7 +554,7 @@ a:hover {
|
|
|
554
554
|
.misc-icon-item a {
|
|
555
555
|
display: block;
|
|
556
556
|
position: relative;
|
|
557
|
-
padding:
|
|
557
|
+
padding: 8px;
|
|
558
558
|
box-sizing: border-box;
|
|
559
559
|
height: 100%;
|
|
560
560
|
}
|
|
@@ -614,7 +614,7 @@ a:hover {
|
|
|
614
614
|
.misc-icon-item a {
|
|
615
615
|
display: block;
|
|
616
616
|
position: relative;
|
|
617
|
-
padding:
|
|
617
|
+
padding: 8px;
|
|
618
618
|
box-sizing: border-box;
|
|
619
619
|
height: 100%;
|
|
620
620
|
}
|
|
@@ -622,6 +622,9 @@ a:hover {
|
|
|
622
622
|
width: 100%;
|
|
623
623
|
height: 100%;
|
|
624
624
|
}
|
|
625
|
+
.misc-icon-item a {
|
|
626
|
+
padding: 6px;
|
|
627
|
+
}
|
|
625
628
|
.misc-icon-item a {
|
|
626
629
|
margin: auto;
|
|
627
630
|
}
|
|
@@ -5,7 +5,7 @@ export class BiggiveMiscIcon {
|
|
|
5
5
|
this.backgroundColour = 'primary';
|
|
6
6
|
this.iconColour = 'white';
|
|
7
7
|
this.icon = null;
|
|
8
|
-
this.url =
|
|
8
|
+
this.url = undefined;
|
|
9
9
|
}
|
|
10
10
|
getMiscIcon() {
|
|
11
11
|
var icon = FontAwesomeIconsService.getMiscIcon(this.icon);
|
|
@@ -97,7 +97,7 @@ export class BiggiveMiscIcon {
|
|
|
97
97
|
},
|
|
98
98
|
"attribute": "url",
|
|
99
99
|
"reflect": false,
|
|
100
|
-
"defaultValue": "
|
|
100
|
+
"defaultValue": "undefined"
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
2
|
export class BiggivePopup {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
4
|
+
this.closeFromWithin = (event) => {
|
|
5
5
|
if (event.target.classList.contains('popup') || event.target.classList.contains('close')) {
|
|
6
6
|
this.el.shadowRoot.querySelector('.popup').setAttribute('data-visible', 'false');
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
async
|
|
10
|
+
async openFromOutside() {
|
|
11
11
|
this.el.shadowRoot.querySelector('.popup').setAttribute('data-visible', 'true');
|
|
12
12
|
}
|
|
13
|
+
async closeFromOutside() {
|
|
14
|
+
this.el.shadowRoot.querySelector('.popup').setAttribute('data-visible', 'false');
|
|
15
|
+
}
|
|
13
16
|
render() {
|
|
14
|
-
return (h("div", { class: "popup", onClick: this.
|
|
17
|
+
return (h("div", { class: "popup", onClick: this.closeFromWithin }, h("div", { class: "sleeve" }, h("div", { class: "header" }, h("div", { class: "close", onClick: this.closeFromWithin })), h("div", { class: "content" }, h("slot", null)))));
|
|
15
18
|
}
|
|
16
19
|
static get is() { return "biggive-popup"; }
|
|
17
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +30,23 @@ export class BiggivePopup {
|
|
|
27
30
|
}
|
|
28
31
|
static get methods() {
|
|
29
32
|
return {
|
|
30
|
-
"
|
|
33
|
+
"openFromOutside": {
|
|
34
|
+
"complexType": {
|
|
35
|
+
"signature": "() => Promise<void>",
|
|
36
|
+
"parameters": [],
|
|
37
|
+
"references": {
|
|
38
|
+
"Promise": {
|
|
39
|
+
"location": "global"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"return": "Promise<void>"
|
|
43
|
+
},
|
|
44
|
+
"docs": {
|
|
45
|
+
"text": "",
|
|
46
|
+
"tags": []
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"closeFromOutside": {
|
|
31
50
|
"complexType": {
|
|
32
51
|
"signature": "() => Promise<void>",
|
|
33
52
|
"parameters": [],
|