@biggive/components 202303201542.0.0 → 202303301223.0.0
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-5406c558.entry.js → p-044de4a5.entry.js} +1 -1
- package/dist/biggive/p-0f955c67.entry.js +1 -0
- package/dist/biggive/{p-4402efe9.entry.js → p-12035aa2.entry.js} +1 -1
- package/dist/biggive/{p-42649676.entry.js → p-14a9d9a4.entry.js} +1 -1
- package/dist/biggive/{p-63abb338.entry.js → p-1e8f981c.entry.js} +1 -1
- package/dist/biggive/{p-b73fddaa.entry.js → p-241aed7a.entry.js} +1 -1
- package/dist/biggive/{p-f6dedf7d.entry.js → p-2fa6188d.entry.js} +1 -1
- package/dist/biggive/p-47d3c810.entry.js +1 -0
- package/dist/biggive/{p-87487165.entry.js → p-518fd1c9.entry.js} +1 -1
- package/dist/biggive/{p-2c639bd5.entry.js → p-58521290.entry.js} +1 -1
- package/dist/biggive/{p-ff8bc382.js → p-740166e9.js} +2 -2
- package/dist/biggive/{p-41588003.entry.js → p-76413b3e.entry.js} +1 -1
- package/dist/biggive/{p-26c0b6cf.entry.js → p-7be9d211.entry.js} +1 -1
- package/dist/biggive/{p-01d03da2.entry.js → p-d8ec56e6.entry.js} +1 -1
- package/dist/biggive/{p-f375edb7.entry.js → p-f224b742.entry.js} +1 -1
- package/dist/biggive/{p-ead5a5ce.entry.js → p-fe1f033c.entry.js} +1 -1
- package/dist/cjs/{biggive-accordion_35.cjs.entry.js → biggive-accordion_43.cjs.entry.js} +469 -50
- package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -2
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -2
- package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-header.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-popup-standalone.cjs.entry.js +1 -1
- package/dist/cjs/biggive-search.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +2 -2
- package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/{index-8dd1da4d.js → index-8dcaaf94.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/biggive-accordion/biggive-accordion.css +2 -2
- package/dist/collection/components/biggive-accordion/biggive-accordion.stories.js +3 -3
- package/dist/collection/components/biggive-article-card/biggive-article-card.css +36 -13
- package/dist/collection/components/biggive-article-card/biggive-article-card.js +258 -32
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +1 -1
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +1 -1
- package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +592 -1
- package/dist/collection/components/biggive-biography-card/biggive-biography-card.js +218 -8
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +1 -1
- package/dist/collection/components/biggive-button/biggive-button.css +110 -0
- package/dist/collection/components/biggive-carousel/biggive-carousel.css +18 -5
- package/dist/collection/components/biggive-carousel/biggive-carousel.js +18 -11
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +1 -1
- package/dist/collection/components/biggive-filtered-carousel/biggive-filtered-carousel.css +34 -0
- package/dist/collection/components/biggive-filtered-carousel/biggive-filtered-carousel.js +166 -0
- package/dist/collection/components/biggive-footer/biggive-footer.js +69 -5
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.css +420 -0
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.js +144 -0
- package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.stories.js +53 -0
- package/dist/collection/components/biggive-grid/biggive-grid.css +166 -6
- package/dist/collection/components/biggive-grid/biggive-grid.js +28 -4
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.css +418 -0
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.js +400 -0
- package/dist/collection/components/biggive-icon-button/biggive-icon-button.stories.js +116 -0
- package/dist/collection/components/biggive-image-button/biggive-image-button.css +369 -0
- package/dist/collection/components/biggive-image-button/biggive-image-button.js +401 -0
- package/dist/collection/components/biggive-image-button/biggive-image-button.stories.js +115 -0
- package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +3 -14
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +1 -1
- package/dist/collection/components/biggive-page-section/biggive-page-section.css +33 -1
- package/dist/collection/components/biggive-sheet/biggive-sheet.css +379 -0
- package/dist/collection/components/biggive-sheet/biggive-sheet.js +111 -0
- package/dist/collection/components/biggive-sheet/biggive-sheet.stories.js +34 -0
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +1 -1
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +9 -5
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +33 -3
- package/dist/collection/components/biggive-table/biggive-table.css +1 -1
- package/dist/collection/components/biggive-timeline/biggive-timeline.css +9 -11
- package/dist/collection/components/biggive-timeline/biggive-timeline.js +38 -5
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +1 -1
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +1 -1
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +1 -1
- package/dist/collection/util/helper-methods.js +6 -0
- package/dist/components/biggive-accordion.js +1 -1
- package/dist/components/biggive-article-card.js +44 -9
- package/dist/components/biggive-basic-card.js +1 -1
- package/dist/components/biggive-beneficiary-icon.js +1 -1
- package/dist/components/biggive-biography-card.js +40 -3
- package/dist/components/biggive-boxed-content.js +1 -1
- package/dist/components/biggive-button2.js +1 -1
- package/dist/components/biggive-carousel.js +1 -83
- package/dist/components/biggive-carousel2.js +92 -0
- package/dist/components/biggive-category-icon.js +1 -1
- package/dist/components/biggive-filtered-carousel.d.ts +11 -0
- package/dist/components/biggive-filtered-carousel.js +99 -0
- package/dist/components/biggive-footer.js +29 -8
- package/dist/components/biggive-generic-icon.d.ts +11 -0
- package/dist/components/biggive-generic-icon.js +6 -0
- package/dist/components/biggive-generic-icon2.js +59 -0
- package/dist/components/biggive-grid.js +5 -3
- package/dist/components/biggive-icon-button.d.ts +11 -0
- package/dist/components/biggive-icon-button.js +89 -0
- package/dist/components/biggive-image-button.d.ts +11 -0
- package/dist/components/biggive-image-button.js +83 -0
- package/dist/components/biggive-main-menu.js +3 -14
- package/dist/components/biggive-misc-icon2.js +1 -1
- package/dist/components/biggive-page-section.js +1 -1
- package/dist/components/biggive-sheet.d.ts +11 -0
- package/dist/components/biggive-sheet.js +60 -0
- package/dist/components/biggive-social-icon2.js +1 -1
- package/dist/components/biggive-tabbed-content.js +34 -4
- package/dist/components/biggive-table.js +1 -1
- package/dist/components/biggive-timeline.js +39 -6
- package/dist/components/biggive-tipping-slider.js +2 -2
- package/dist/components/biggive-totalizer.js +1 -1
- package/dist/components/helper-methods.js +8 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/esm/{biggive-accordion_35.entry.js → biggive-accordion_43.entry.js} +462 -51
- package/dist/esm/biggive-basic-card.entry.js +2 -2
- package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
- package/dist/esm/biggive-boxed-content.entry.js +2 -2
- package/dist/esm/biggive-category-icon.entry.js +2 -2
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-header.entry.js +1 -1
- package/dist/esm/biggive-icon-group.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-popup-standalone.entry.js +1 -1
- package/dist/esm/biggive-search.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +2 -2
- package/dist/esm/biggive-text-input.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +1 -1
- package/dist/esm/biggive.js +2 -2
- package/dist/esm/{index-801eebfb.js → index-341903f8.js} +3 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +17 -42
- package/dist/types/components/biggive-biography-card/biggive-biography-card.d.ts +12 -13
- package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +2 -1
- package/dist/types/components/biggive-filtered-carousel/biggive-filtered-carousel.d.ts +12 -0
- package/dist/types/components/biggive-footer/biggive-footer.d.ts +11 -0
- package/dist/types/components/biggive-generic-icon/biggive-generic-icon.d.ts +10 -0
- package/dist/types/components/biggive-generic-icon/biggive-generic-icon.stories.d.ts +38 -0
- package/dist/types/components/biggive-grid/biggive-grid.d.ts +3 -7
- package/dist/types/components/biggive-icon-button/biggive-icon-button.d.ts +28 -0
- package/dist/types/components/biggive-icon-button/biggive-icon-button.stories.d.ts +81 -0
- package/dist/types/components/biggive-image-button/biggive-image-button.d.ts +28 -0
- package/dist/types/components/biggive-image-button/biggive-image-button.stories.d.ts +78 -0
- package/dist/types/components/biggive-sheet/biggive-sheet.d.ts +15 -0
- package/dist/types/components/biggive-sheet/biggive-sheet.stories.d.ts +21 -0
- package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +3 -0
- package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +3 -0
- package/dist/types/components.d.ts +247 -126
- package/dist/types/util/helper-methods.d.ts +1 -0
- package/hydrate/index.js +545 -70
- package/package.json +1 -1
- package/dist/biggive/p-28e16ef9.entry.js +0 -1
- package/dist/biggive/p-4a1ba0c4.entry.js +0 -1
- package/dist/biggive/p-4adb4dce.entry.js +0 -1
- package/dist/biggive/p-87edb8c6.entry.js +0 -1
- package/dist/biggive/p-8feb91ae.entry.js +0 -1
- package/dist/cjs/biggive-article-card.cjs.entry.js +0 -31
- package/dist/cjs/biggive-biography-card.cjs.entry.js +0 -23
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +0 -22
- package/dist/esm/biggive-article-card.entry.js +0 -27
- package/dist/esm/biggive-biography-card.entry.js +0 -19
- package/dist/esm/biggive-formatted-text.entry.js +0 -18
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const biggiveCarouselCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-brand-1:hover,.text-colour-brand-1{color:#B30510}.text-colour-hover-brand-2:hover,.text-colour-brand-2{color:#6E0887}.text-colour-hover-brand-3:hover,.text-colour-brand-3{color:#50B400}.text-colour-hover-brand-4:hover,.text-colour-brand-4{color:#FFE500}.text-colour-hover-brand-5:hover,.text-colour-brand-5{color:#F07D00}.text-colour-hover-brand-6:hover,.text-colour-brand-6{color:#CBC8C8}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.text-colour-hover-grey-extra-light:hover,.text-colour-grey-extra-light{color:#D7D7D7}.text-colour-hover-grey-light:hover,.text-colour-grey-light{color:#E8E8E8}.text-colour-hover-grey-medium:hover,.text-colour-grey-medium{color:#8A8A8A}.text-colour-hover-grey-dark:hover,.text-colour-grey-dark{color:#4A4A4A}:host{display:contents}.container{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative}.container .items{overflow:hidden}.container .items .sleeve{display:flex;flex-flow:row wrap;min-width:100%}.container .navigation{padding:10px 0;text-align:right;display:flex;justify-content:end;position:relative;z-index:1}.container .navigation .button{margin-left:15px;display:block;width:30px;height:30px;padding:2.5px 10px;box-sizing:border-box;background-color:#FFFFFF;box-shadow:0px 0px 10px 0px rgba(0, 0, 0, 0.25);border-radius:50%;cursor:pointer;text-align:center}.container .navigation .button.prev{left:0}.container .navigation .button.next{right:0}.container .navigation .button svg{width:10px;height:10px}.container ::slotted(.hidden){display:none}.column-count-5 ::slotted(*){width:calc(20% - 24px);display:flex;flex-direction:column}.column-count-4 ::slotted(*){width:calc(25% - 22.5px);display:flex;flex-direction:column}.column-count-3 ::slotted(*){width:calc(33.3333333333% - 20px);display:flex;flex-direction:column}.column-count-2 ::slotted(*){width:calc(50% - 15px);display:flex;flex-direction:column}@media screen and (max-width: 768px){.column-count-2 ::slotted(*),.column-count-3 ::slotted(*),.column-count-4 ::slotted(*),.column-count-5 ::slotted(*){width:calc(50% - 15px)}}@media screen and (max-width: 576px){.column-count-2 ::slotted(*),.column-count-3 ::slotted(*),.column-count-4 ::slotted(*),.column-count-5 ::slotted(*){width:100%}}";
|
|
4
|
+
|
|
5
|
+
const BiggiveCarousel = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.currentTab = 0;
|
|
11
|
+
this.itemCount = 0;
|
|
12
|
+
this.itemWidthPx = 0;
|
|
13
|
+
this.columnGapPx = 0;
|
|
14
|
+
this.spaceBelow = 4;
|
|
15
|
+
this.columnCount = 3;
|
|
16
|
+
this.buttonBackgroundColour = 'white';
|
|
17
|
+
this.buttonIconColour = 'primary';
|
|
18
|
+
}
|
|
19
|
+
componentDidRender() {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
this.sleeve = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.sleeve');
|
|
22
|
+
let children = new Array();
|
|
23
|
+
Array.from(this.host.children).forEach(item => {
|
|
24
|
+
if (!item.classList.contains('hidden')) {
|
|
25
|
+
children.push(item);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
this.itemCount = children.length;
|
|
29
|
+
if (children.length > 0) {
|
|
30
|
+
this.columnGapPx = 30;
|
|
31
|
+
this.itemWidthPx = (((_b = this.sleeve.parentElement) === null || _b === void 0 ? void 0 : _b.offsetWidth) - (this.columnCount - 1) * this.columnGapPx) / this.columnCount;
|
|
32
|
+
this.sleeve.style.width = (this.itemWidthPx + this.columnGapPx) * children.length + 'px';
|
|
33
|
+
children.forEach(el => {
|
|
34
|
+
el.style.width = this.itemWidthPx + 'px';
|
|
35
|
+
el.style.marginRight = this.columnGapPx + 'px';
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/*
|
|
40
|
+
* Animates a transition to show the NEXT or PREVIOUS element in the carousel.
|
|
41
|
+
* Does nothing if there is no next or previous element.
|
|
42
|
+
*/
|
|
43
|
+
showTab(direction) {
|
|
44
|
+
const newTab = this.currentTab + (direction === 'PREV' ? -1 : 1);
|
|
45
|
+
if (newTab < 0 || newTab > this.itemCount - this.columnCount) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const pos = 0 - (this.itemWidthPx + this.columnGapPx) * newTab;
|
|
49
|
+
this.sleeve.style.transitionDuration = '0.3s';
|
|
50
|
+
this.sleeve.style.transitionTimingFunction = 'ease-out';
|
|
51
|
+
this.sleeve.style.transform = 'translate3d(' + pos + 'px, 0, 0)';
|
|
52
|
+
this.currentTab = newTab;
|
|
53
|
+
}
|
|
54
|
+
clickPrevHandler() {
|
|
55
|
+
this.showTab('PREV');
|
|
56
|
+
}
|
|
57
|
+
clickNextHandler() {
|
|
58
|
+
this.showTab('NEXT');
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return (h("div", { class: 'container column-count-' +
|
|
62
|
+
this.columnCount +
|
|
63
|
+
' space-below-' +
|
|
64
|
+
this.spaceBelow +
|
|
65
|
+
' button-background-colour-' +
|
|
66
|
+
this.buttonBackgroundColour +
|
|
67
|
+
' button-icon-colour-' +
|
|
68
|
+
this.buttonIconColour }, h("div", { class: "items" }, h("div", { class: "sleeve" }, h("slot", null))), h("div", { class: "navigation" }, h("div", { class: "button prev", onClick: () => this.clickPrevHandler(), title: "Previous" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.29311 14.5703L1.73926 8.01646L8.29311 1.46261", stroke: "#000000", "stroke-width": "2" }))), h("div", { class: "button next", onClick: () => this.clickNextHandler(), title: "Next" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.739117 1.46094L7.29297 8.01479L0.739118 14.5686", stroke: "#000000", "stroke-width": "2" }))))));
|
|
69
|
+
}
|
|
70
|
+
get host() { return this; }
|
|
71
|
+
static get style() { return biggiveCarouselCss; }
|
|
72
|
+
}, [1, "biggive-carousel", {
|
|
73
|
+
"spaceBelow": [2, "space-below"],
|
|
74
|
+
"columnCount": [2, "column-count"],
|
|
75
|
+
"buttonBackgroundColour": [1, "button-background-colour"],
|
|
76
|
+
"buttonIconColour": [1, "button-icon-colour"]
|
|
77
|
+
}]);
|
|
78
|
+
function defineCustomElement() {
|
|
79
|
+
if (typeof customElements === "undefined") {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const components = ["biggive-carousel"];
|
|
83
|
+
components.forEach(tagName => { switch (tagName) {
|
|
84
|
+
case "biggive-carousel":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
customElements.define(tagName, BiggiveCarousel);
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
} });
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { BiggiveCarousel as B, defineCustomElement as d };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { F as FontAwesomeIconsService } from './fontawesome-icons.js';
|
|
3
3
|
|
|
4
|
-
const biggiveCategoryIconCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-brand-1:hover,.background-colour-brand-1{background-color:#B30510}.background-colour-hover-brand-2:hover,.background-colour-brand-2{background-color:#6E0887}.background-colour-hover-brand-3:hover,.background-colour-brand-3{background-color:#50B400}.background-colour-hover-brand-4:hover,.background-colour-brand-4{background-color:#FFE500}.background-colour-hover-brand-5:hover,.background-colour-brand-5{background-color:#F07D00}.background-colour-hover-brand-6:hover,.background-colour-brand-6{background-color:#
|
|
4
|
+
const biggiveCategoryIconCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-brand-1:hover,.background-colour-brand-1{background-color:#B30510}.background-colour-hover-brand-2:hover,.background-colour-brand-2{background-color:#6E0887}.background-colour-hover-brand-3:hover,.background-colour-brand-3{background-color:#50B400}.background-colour-hover-brand-4:hover,.background-colour-brand-4{background-color:#FFE500}.background-colour-hover-brand-5:hover,.background-colour-brand-5{background-color:#F07D00}.background-colour-hover-brand-6:hover,.background-colour-brand-6{background-color:#62CFC9}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-grey-extra-light:hover,.background-colour-grey-extra-light{background-color:#D7D7D7}.background-colour-hover-grey-light:hover,.background-colour-grey-light{background-color:#E8E8E8}.background-colour-hover-grey-medium:hover,.background-colour-grey-medium{background-color:#8A8A8A}.background-colour-hover-grey-dark:hover,.background-colour-grey-dark{background-color:#4A4A4A}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-brand-1{fill:#B30510}.fill-brand-2{fill:#6E0887}.fill-brand-3{fill:#50B400}.fill-brand-4{fill:#FFE500}.fill-brand-5{fill:#F07D00}.fill-brand-6{fill:#CBC8C8}.fill-brand-mhf-turquoise{fill:#62CFC9}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-grey-extra-light{fill:#D7D7D7}.fill-grey-light{fill:#E8E8E8}.fill-grey-medium{fill:#8A8A8A}.fill-grey-dark{fill:#4A4A4A}.fill-red{fill:red}:host{display:contents}.container{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;display:flex;justify-content:flex-start}.container .label{padding-left:15px;font-size:11px;line-height:14px;width:60px;margin-top:auto;margin-bottom:auto}.category-icon-item{width:40px;height:40px;border-radius:50%;text-align:center;transition:all ease-in-out 0.5s;display:inline-block;margin-right:10px;width:30px;height:30px}.category-icon-item.colour-scheme-primary{background-color:#2C089B}.category-icon-item.colour-scheme-primary svg{fill:#FFFFFF}.category-icon-item.colour-scheme-secondary{background-color:#2AF135}.category-icon-item.colour-scheme-secondary svg{fill:#000000}.category-icon-item.colour-scheme-tertiary{background-color:#FF7272}.category-icon-item.colour-scheme-tertiary svg{fill:#000000}.category-icon-item.colour-scheme-brand-1{background-color:#B30510}.category-icon-item.colour-scheme-brand-1 svg{fill:#000000}.category-icon-item.colour-scheme-brand-2{background-color:#6E0887}.category-icon-item.colour-scheme-brand-2 svg{fill:#000000}.category-icon-item.colour-scheme-brand-3{background-color:#50B400}.category-icon-item.colour-scheme-brand-3 svg{fill:#000000}.category-icon-item.colour-scheme-brand-4{background-color:#FFE500}.category-icon-item.colour-scheme-brand-4 svg{fill:#000000}.category-icon-item.colour-scheme-brand-5{background-color:#F07D00}.category-icon-item.colour-scheme-brand-5 svg{fill:#000000}.category-icon-item.colour-scheme-brand-6{background-color:#CBC8C8}.category-icon-item.colour-scheme-brand-6 svg{fill:#000000}.category-icon-item.colour-scheme-white{background-color:#FFFFFF}.category-icon-item.colour-scheme-white svg{fill:#000000}.category-icon-item.colour-scheme-black{background-color:#000000}.category-icon-item.colour-scheme-black svg{fill:#FFFFFF}.category-icon-item.colour-scheme-black{background-color:#D7D7D7}.category-icon-item.colour-scheme-black svg{fill:#D7D7D7}.category-icon-item.colour-scheme-black{background-color:#E8E8E8}.category-icon-item.colour-scheme-black svg{fill:#E8E8E8}.category-icon-item.colour-scheme-black{background-color:#8A8A8A}.category-icon-item.colour-scheme-black svg{fill:#8A8A8A}.category-icon-item.colour-scheme-black{background-color:#4A4A4A}.category-icon-item.colour-scheme-black svg{fill:#4A4A4A}.category-icon-item:hover{background-color:#FFFFFF}.category-icon-item:hover svg{fill:#000000}.category-icon-item a{display:grid;position:relative;padding:10px;box-sizing:border-box;height:100%}.category-icon-item a svg{width:100%;height:100%}.category-icon-item a{padding:6px}";
|
|
5
5
|
|
|
6
6
|
const BiggiveCategoryIcon$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BiggiveFilteredCarousel extends Components.BiggiveFilteredCarousel, HTMLElement {}
|
|
4
|
+
export const BiggiveFilteredCarousel: {
|
|
5
|
+
prototype: BiggiveFilteredCarousel;
|
|
6
|
+
new (): BiggiveFilteredCarousel;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './biggive-carousel2.js';
|
|
3
|
+
|
|
4
|
+
const biggiveFilteredCarouselCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}:host{display:block}.filters{margin-bottom:15px}.filters .button{cursor:pointer;border-radius:20px;padding:5px 20px;margin-right:15px;font-size:13px;line-height:17px;background-color:#FF7272;color:#000000;border-color:#FF7272}.filters .button.active{background-color:#000000;border-color:#000000;color:#FFFFFF}";
|
|
5
|
+
|
|
6
|
+
const BiggiveFilteredCarousel$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.spaceBelow = 4;
|
|
12
|
+
this.columnCount = 3;
|
|
13
|
+
this.buttonBackgroundColour = 'white';
|
|
14
|
+
this.buttonIconColour = 'primary';
|
|
15
|
+
}
|
|
16
|
+
componentDidLoad() {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
const carousel = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('biggive-carousel');
|
|
19
|
+
const filterWrap = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.filters');
|
|
20
|
+
this.children = new Array();
|
|
21
|
+
Array.from(this.host.children).forEach(item => {
|
|
22
|
+
this.children.push(item);
|
|
23
|
+
});
|
|
24
|
+
let filters = [];
|
|
25
|
+
this.children.forEach(item => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
carousel.appendChild(item);
|
|
28
|
+
let itemFilters = [];
|
|
29
|
+
if (item.getAttribute('filters') != null) {
|
|
30
|
+
itemFilters = (_b = (_a = item.getAttribute('filters')) === null || _a === void 0 ? void 0 : _a.split('|')) !== null && _b !== void 0 ? _b : [];
|
|
31
|
+
filters.push(...itemFilters);
|
|
32
|
+
}
|
|
33
|
+
item.dataset['filters'] = JSON.stringify(itemFilters);
|
|
34
|
+
});
|
|
35
|
+
filters = [...new Set(filters)];
|
|
36
|
+
filters.forEach(filter => {
|
|
37
|
+
var button = document.createElement('span');
|
|
38
|
+
button.innerHTML = filter;
|
|
39
|
+
button.classList.add('button');
|
|
40
|
+
button.setAttribute('data-filter', filter);
|
|
41
|
+
button.addEventListener('click', e => {
|
|
42
|
+
var _a;
|
|
43
|
+
const button = e.target;
|
|
44
|
+
button.classList.toggle('active');
|
|
45
|
+
let appliedFilters = [];
|
|
46
|
+
let buttons = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.filters span.button.active');
|
|
47
|
+
buttons === null || buttons === void 0 ? void 0 : buttons.forEach(button => {
|
|
48
|
+
appliedFilters.push(button.getAttribute('data-filter'));
|
|
49
|
+
});
|
|
50
|
+
this.children.forEach(item => {
|
|
51
|
+
let itemFilters = JSON.parse(item.dataset['filters']);
|
|
52
|
+
if (appliedFilters.length == 0 || appliedFilters.filter(x => itemFilters.includes(x)).length > 0) {
|
|
53
|
+
item.classList.remove('hidden');
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
item.classList.add('hidden');
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
carousel.setAttribute('space-below', '0');
|
|
60
|
+
carousel.setAttribute('space-below', '1');
|
|
61
|
+
});
|
|
62
|
+
filterWrap.appendChild(button);
|
|
63
|
+
});
|
|
64
|
+
carousel.setAttribute('space-below', '0');
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "filters" }), h("biggive-carousel", { "space-below": "1", "column-count": this.columnCount, "button-background-colour": this.buttonBackgroundColour, "button-icon-colour": this.buttonIconColour })));
|
|
68
|
+
}
|
|
69
|
+
get host() { return this; }
|
|
70
|
+
static get style() { return biggiveFilteredCarouselCss; }
|
|
71
|
+
}, [1, "biggive-filtered-carousel", {
|
|
72
|
+
"spaceBelow": [2, "space-below"],
|
|
73
|
+
"columnCount": [2, "column-count"],
|
|
74
|
+
"buttonBackgroundColour": [1, "button-background-colour"],
|
|
75
|
+
"buttonIconColour": [1, "button-icon-colour"]
|
|
76
|
+
}]);
|
|
77
|
+
function defineCustomElement$1() {
|
|
78
|
+
if (typeof customElements === "undefined") {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const components = ["biggive-filtered-carousel", "biggive-carousel"];
|
|
82
|
+
components.forEach(tagName => { switch (tagName) {
|
|
83
|
+
case "biggive-filtered-carousel":
|
|
84
|
+
if (!customElements.get(tagName)) {
|
|
85
|
+
customElements.define(tagName, BiggiveFilteredCarousel$1);
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
case "biggive-carousel":
|
|
89
|
+
if (!customElements.get(tagName)) {
|
|
90
|
+
defineCustomElement$2();
|
|
91
|
+
}
|
|
92
|
+
break;
|
|
93
|
+
} });
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const BiggiveFilteredCarousel = BiggiveFilteredCarousel$1;
|
|
97
|
+
const defineCustomElement = defineCustomElement$1;
|
|
98
|
+
|
|
99
|
+
export { BiggiveFilteredCarousel, defineCustomElement };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, getAssetPath } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { m as makeURL } from './helper-methods.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './biggive-button2.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './biggive-social-icon2.js';
|
|
3
5
|
|
|
4
6
|
const biggiveFooterCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}:host{display:contents}.footer{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;color:#FFFFFF}nav{width:calc(33.3% - 20px);margin:0;padding:0}nav .heading{font-size:17px;line-height:24px;font-weight:bold;border-bottom:1px solid #FFFFFF;padding-bottom:10px;margin-bottom:10px}nav ul{margin:0;padding:0}nav ul li{margin:0;padding:0;list-style-type:none;margin-top:15px}nav ul li a{color:#FFFFFF;text-decoration:none}nav ul li a[class^=icon-],nav ul li a[class*=icon-]{padding-left:20px;background-repeat:no-repeat;background-size:auto 10px;background-position:left center}nav ul li a.icon-green{background-image:url(/assets/images/triangles-combined-green-match-white.svg)}nav ul li a.icon-children{background-image:url(/assets/images/triangles-combined-children-white.svg)}nav ul li a.icon-christmas{background-image:url(/assets/images/triangles-combined-christmas-challenge-white.svg)}nav ul li a.icon-green-match{background-image:url(/assets/images/triangles-combined-green-match-white.svg)}nav ul li a.icon-women-girls{background-image:url(/assets/images/triangles-combined-women-girls-white.svg)}nav ul li a.icon-mental-health{background-image:url(/assets/images/triangles-combined-mental-health-white.svg)}nav ul li a.icon-anchor-match{background-image:url(/assets/images/triangles-combined-anchor-white.svg)}nav ul li a.icon-emergency{background-image:url(/assets/images/triangles-combined-emergency-white.svg)}.row-top{background-image:url(/assets/images/biggive-triangle-green.svg);background-repeat:no-repeat;background-size:auto 75px;background-position:60px 30px;background-color:#2C089B;padding:100px 60px 60px 60px;display:flex;flex-wrap:wrap;justify-content:space-between}.row-top .button-wrap{margin-top:60px;width:100%;display:flex;flex-wrap:wrap;justify-content:space-between}footer .row-bottom{background-color:#000000;padding:60px 60px 15px 60px;border-top:1px solid #FFFFFF}footer .row-bottom .fr-logo{width:135px}footer .row-bottom .postscript-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}@media screen and (max-width: 768px){footer .row-bottom .postscript-wrap{flex-direction:column}}footer .row-bottom .nav.nav-postscript{text-align:right;flex-grow:1}@media screen and (max-width: 768px){footer .row-bottom .nav.nav-postscript{text-align:center}}footer .row-bottom .nav-postscript li{display:inline-block;margin-left:1rem}footer .row-bottom .nav-postscript li:first-child{margin-left:0}@media screen and (max-width: 768px){footer .row-bottom .nav-postscript li{display:block;width:100%;margin-left:0}}footer .row-bottom .social-icon-wrap{border-top:1px solid #FFFFFF;padding-top:30px;margin-top:30px;display:flex;align-items:center;justify-content:center;margin-bottom:30px}footer .row-bottom .social-icon-wrap .social-icon-item{margin:0 10px}footer .row-bottom p{text-align:center}@media screen and (max-width: 768px){.row-top{padding:15px}}@media screen and (max-width: 768px){nav{width:100%;margin-right:0;margin-bottom:30px}.row-top{background-size:auto 50px;padding-top:80px;padding-left:15px;background-position:15px 30px}.row-top .button-wrap *{width:100% !important}}";
|
|
5
7
|
|
|
@@ -9,6 +11,9 @@ const BiggiveFooter$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
9
11
|
this.__registerHost();
|
|
10
12
|
this.__attachShadow();
|
|
11
13
|
this.headingLevel = 5;
|
|
14
|
+
this.blogUrlPrefix = undefined;
|
|
15
|
+
this.experienceUrlPrefix = undefined;
|
|
16
|
+
this.usePresetFooter = false;
|
|
12
17
|
}
|
|
13
18
|
appendMenu(menuName) {
|
|
14
19
|
var node = this.host.querySelector(`[slot="${menuName}"]`);
|
|
@@ -17,25 +22,36 @@ const BiggiveFooter$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
componentDidRender() {
|
|
20
|
-
this.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
if (!this.usePresetFooter) {
|
|
26
|
+
this.appendMenu('nav-primary');
|
|
27
|
+
this.appendMenu('nav-secondary');
|
|
28
|
+
this.appendMenu('nav-tertiary');
|
|
29
|
+
this.appendMenu('nav-postscript');
|
|
30
|
+
}
|
|
24
31
|
}
|
|
25
32
|
render() {
|
|
26
33
|
const HeadingTag = `h${this.headingLevel}`;
|
|
27
|
-
|
|
34
|
+
const slotBasedFooter = () => {
|
|
35
|
+
return (h("footer", { class: "footer" }, h("div", { class: "row row-top" }, h("nav", { class: "nav nav-primary", "aria-labelledby": "footer-primary-heading" }, h(HeadingTag, { class: "heading", id: "footer-primary-heading" }, h("slot", { name: "nav-primary-title" }))), h("nav", { class: "nav nav-secondary", "aria-labelledby": "footer-secondary-heading-heading" }, h(HeadingTag, { class: "heading", id: "footer-secondary-heading" }, h("slot", { name: "nav-secondary-title" }))), h("nav", { class: "nav nav-tertiary", "aria-labelledby": "footer-tertiary-heading" }, h(HeadingTag, { class: "heading", id: "footer-tertiary-heading" }, h("slot", { name: "nav-tertiary-title" }))), h("div", { class: "button-wrap" }, h("biggive-button", { "colour-scheme": "white", url: "https://blog.thebiggive.org.uk/charities", label: "For charities" }), h("biggive-button", { "colour-scheme": "white", url: "https://blog.thebiggive.org.uk/funders", label: "For funders" }))), h("div", { class: "row row-bottom" }, h("div", { class: "postscript-wrap" }, h("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png'), alt: "Fundraising Regulator" }), h("nav", { class: "nav nav-postscript", "aria-label": "Legal" })), h("div", { class: "social-icon-wrap" }, h("slot", { name: "social-icons" })), h("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
|
|
36
|
+
};
|
|
37
|
+
const presetFooter = () => {
|
|
38
|
+
return (h("footer", { class: "footer" }, h("div", { class: "row row-top" }, h("nav", { class: "nav nav-primary", "aria-labelledby": "footer-primary-heading" }, h(HeadingTag, { class: "heading", id: "footer-primary-heading" }, h("div", { slot: "nav-primary-title" }, "Match Funding Opportunities")), h("ul", { slot: "nav-primary" }, h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'christmas-challenge'), class: "icon-christmas" }, "Christmas Challenge")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'green-match-fund'), class: "icon-green" }, "Green Match Fund")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'champions-for-children'), class: "icon-children" }, "Champions for Children")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'women-girls-match-fund'), class: "icon-women-girls" }, "Women and Girls Match Fund")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'kind2mind/'), class: "icon-mental-health" }, "Kind\u00B2Mind")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'emergency-campaigns/'), class: "icon-emergency" }, "Emergency Match Fund")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'run-your-own-campaign/)') }, "Run your own campaign")))), h("nav", { class: "nav nav-secondary", "aria-labelledby": "footer-secondary-heading-heading" }, h(HeadingTag, { class: "heading", id: "footer-secondary-heading" }, h("div", { slot: "nav-secondary-title" }, "Resources")), h("ul", { slot: "nav-secondary" }, h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'case-studies') }, "Case Studies")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'blog') }, "Blog")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'reports-insights') }, "Reports & Insights")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'press') }, "Press")))), h("nav", { class: "nav nav-tertiary", "aria-labelledby": "footer-tertiary-heading" }, h(HeadingTag, { class: "heading", id: "footer-tertiary-heading" }, h("div", { slot: "nav-tertiary-title" }, "About")), h("ul", { slot: "nav-tertiary" }, h("li", null, h("a", { href: makeURL('Experience', this.experienceUrlPrefix, 's/contact-us') }, "Contact us")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'our-story') }, "Our Story")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'our-people') }, "Our People")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'our-fees') }, "Our Fees")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'careers') }, "Careers")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'faqs') }, "FAQs"))), h("ul", { slot: "nav-postscript" }, h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'terms-and-conditions') }, "Terms and Conditions")), h("li", null, h("a", { href: makeURL('Blog', this.blogUrlPrefix, 'privacy') }, "Privacy Policy")))), h("div", { class: "button-wrap" }, h("biggive-button", { "colour-scheme": "white", url: makeURL('Blog', this.blogUrlPrefix, 'charities'), label: "For charities" }), h("biggive-button", { "colour-scheme": "white", url: makeURL('Blog', this.blogUrlPrefix, 'funders'), label: "For funders" }))), h("div", { class: "row row-bottom" }, h("div", { class: "postscript-wrap" }, h("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png'), alt: "Fundraising Regulator" }), h("nav", { class: "nav nav-postscript", "aria-label": "Legal" })), h("div", { class: "social-icon-wrap" }, h("div", { slot: "social-icons" }, h("biggive-social-icon", { service: "Facebook", url: "https://www.facebook.com/BigGive.org", "background-colour": "tertiary", "icon-colour": "black", wide: true }), h("biggive-social-icon", { service: "Twitter", url: "https://twitter.com/BigGive", "background-colour": "tertiary", "icon-colour": "black", wide: true }), h("biggive-social-icon", { service: "LinkedIn", url: "https://uk.linkedin.com/company/big-give", "background-colour": "tertiary", "icon-colour": "black", wide: true }), h("biggive-social-icon", { service: "YouTube", url: "https://www.youtube.com/channel/UC9_wH1aaTuZurJ-F9R8GDcA", "background-colour": "tertiary", "icon-colour": "black", wide: true }), h("biggive-social-icon", { service: "Instagram", url: "https://www.instagram.com/biggiveorg", "background-colour": "tertiary", "icon-colour": "black" }))), h("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
|
|
39
|
+
};
|
|
40
|
+
return this.usePresetFooter ? presetFooter() : slotBasedFooter();
|
|
28
41
|
}
|
|
29
42
|
get host() { return this; }
|
|
30
43
|
static get style() { return biggiveFooterCss; }
|
|
31
44
|
}, [1, "biggive-footer", {
|
|
32
|
-
"headingLevel": [2, "heading-level"]
|
|
45
|
+
"headingLevel": [2, "heading-level"],
|
|
46
|
+
"blogUrlPrefix": [1, "blog-url-prefix"],
|
|
47
|
+
"experienceUrlPrefix": [1, "experience-url-prefix"],
|
|
48
|
+
"usePresetFooter": [4, "use-preset-footer"]
|
|
33
49
|
}]);
|
|
34
50
|
function defineCustomElement$1() {
|
|
35
51
|
if (typeof customElements === "undefined") {
|
|
36
52
|
return;
|
|
37
53
|
}
|
|
38
|
-
const components = ["biggive-footer", "biggive-button"];
|
|
54
|
+
const components = ["biggive-footer", "biggive-button", "biggive-social-icon"];
|
|
39
55
|
components.forEach(tagName => { switch (tagName) {
|
|
40
56
|
case "biggive-footer":
|
|
41
57
|
if (!customElements.get(tagName)) {
|
|
@@ -43,6 +59,11 @@ function defineCustomElement$1() {
|
|
|
43
59
|
}
|
|
44
60
|
break;
|
|
45
61
|
case "biggive-button":
|
|
62
|
+
if (!customElements.get(tagName)) {
|
|
63
|
+
defineCustomElement$3();
|
|
64
|
+
}
|
|
65
|
+
break;
|
|
66
|
+
case "biggive-social-icon":
|
|
46
67
|
if (!customElements.get(tagName)) {
|
|
47
68
|
defineCustomElement$2();
|
|
48
69
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BiggiveGenericIcon extends Components.BiggiveGenericIcon, HTMLElement {}
|
|
4
|
+
export const BiggiveGenericIcon: {
|
|
5
|
+
prototype: BiggiveGenericIcon;
|
|
6
|
+
new (): BiggiveGenericIcon;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { F as FontAwesomeIconsService } from './fontawesome-icons.js';
|
|
3
|
+
|
|
4
|
+
const biggiveGenericIconCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-brand-1:hover,.background-colour-brand-1{background-color:#B30510}.background-colour-hover-brand-2:hover,.background-colour-brand-2{background-color:#6E0887}.background-colour-hover-brand-3:hover,.background-colour-brand-3{background-color:#50B400}.background-colour-hover-brand-4:hover,.background-colour-brand-4{background-color:#FFE500}.background-colour-hover-brand-5:hover,.background-colour-brand-5{background-color:#F07D00}.background-colour-hover-brand-6:hover,.background-colour-brand-6{background-color:#62CFC9}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-grey-extra-light:hover,.background-colour-grey-extra-light{background-color:#D7D7D7}.background-colour-hover-grey-light:hover,.background-colour-grey-light{background-color:#E8E8E8}.background-colour-hover-grey-medium:hover,.background-colour-grey-medium{background-color:#8A8A8A}.background-colour-hover-grey-dark:hover,.background-colour-grey-dark{background-color:#4A4A4A}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-brand-1{fill:#B30510}.fill-brand-2{fill:#6E0887}.fill-brand-3{fill:#50B400}.fill-brand-4{fill:#FFE500}.fill-brand-5{fill:#F07D00}.fill-brand-6{fill:#CBC8C8}.fill-brand-mhf-turquoise{fill:#62CFC9}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-grey-extra-light{fill:#D7D7D7}.fill-grey-light{fill:#E8E8E8}.fill-grey-medium{fill:#8A8A8A}.fill-grey-dark{fill:#4A4A4A}.fill-red{fill:red}:host{display:contents}.generic-icon-item{width:40px;height:40px;border-radius:50%;text-align:center;transition:all ease-in-out 0.5s;display:inline-block;margin-right:10px}.generic-icon-item.colour-scheme-primary{background-color:#2C089B}.generic-icon-item.colour-scheme-primary svg{fill:#FFFFFF}.generic-icon-item.colour-scheme-secondary{background-color:#2AF135}.generic-icon-item.colour-scheme-secondary svg{fill:#000000}.generic-icon-item.colour-scheme-tertiary{background-color:#FF7272}.generic-icon-item.colour-scheme-tertiary svg{fill:#000000}.generic-icon-item.colour-scheme-brand-1{background-color:#B30510}.generic-icon-item.colour-scheme-brand-1 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-2{background-color:#6E0887}.generic-icon-item.colour-scheme-brand-2 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-3{background-color:#50B400}.generic-icon-item.colour-scheme-brand-3 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-4{background-color:#FFE500}.generic-icon-item.colour-scheme-brand-4 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-5{background-color:#F07D00}.generic-icon-item.colour-scheme-brand-5 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-6{background-color:#CBC8C8}.generic-icon-item.colour-scheme-brand-6 svg{fill:#000000}.generic-icon-item.colour-scheme-white{background-color:#FFFFFF}.generic-icon-item.colour-scheme-white svg{fill:#000000}.generic-icon-item.colour-scheme-black{background-color:#000000}.generic-icon-item.colour-scheme-black svg{fill:#FFFFFF}.generic-icon-item.colour-scheme-black{background-color:#D7D7D7}.generic-icon-item.colour-scheme-black svg{fill:#D7D7D7}.generic-icon-item.colour-scheme-black{background-color:#E8E8E8}.generic-icon-item.colour-scheme-black svg{fill:#E8E8E8}.generic-icon-item.colour-scheme-black{background-color:#8A8A8A}.generic-icon-item.colour-scheme-black svg{fill:#8A8A8A}.generic-icon-item.colour-scheme-black{background-color:#4A4A4A}.generic-icon-item.colour-scheme-black svg{fill:#4A4A4A}.generic-icon-item:hover{background-color:#FFFFFF}.generic-icon-item:hover svg{fill:#000000}.generic-icon-item a{display:grid;position:relative;padding:10px;box-sizing:border-box;height:100%}.generic-icon-item a svg{width:100%;height:100%}@media screen and (max-width: 576px){.generic-icon-item{width:40px;height:40px;border-radius:50%;text-align:center;transition:all ease-in-out 0.5s;display:inline-block;margin-right:10px;width:30px;height:30px;margin:auto}.generic-icon-item.colour-scheme-primary{background-color:#2C089B}.generic-icon-item.colour-scheme-primary svg{fill:#FFFFFF}.generic-icon-item.colour-scheme-secondary{background-color:#2AF135}.generic-icon-item.colour-scheme-secondary svg{fill:#000000}.generic-icon-item.colour-scheme-tertiary{background-color:#FF7272}.generic-icon-item.colour-scheme-tertiary svg{fill:#000000}.generic-icon-item.colour-scheme-brand-1{background-color:#B30510}.generic-icon-item.colour-scheme-brand-1 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-2{background-color:#6E0887}.generic-icon-item.colour-scheme-brand-2 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-3{background-color:#50B400}.generic-icon-item.colour-scheme-brand-3 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-4{background-color:#FFE500}.generic-icon-item.colour-scheme-brand-4 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-5{background-color:#F07D00}.generic-icon-item.colour-scheme-brand-5 svg{fill:#000000}.generic-icon-item.colour-scheme-brand-6{background-color:#CBC8C8}.generic-icon-item.colour-scheme-brand-6 svg{fill:#000000}.generic-icon-item.colour-scheme-white{background-color:#FFFFFF}.generic-icon-item.colour-scheme-white svg{fill:#000000}.generic-icon-item.colour-scheme-black{background-color:#000000}.generic-icon-item.colour-scheme-black svg{fill:#FFFFFF}.generic-icon-item.colour-scheme-black{background-color:#D7D7D7}.generic-icon-item.colour-scheme-black svg{fill:#D7D7D7}.generic-icon-item.colour-scheme-black{background-color:#E8E8E8}.generic-icon-item.colour-scheme-black svg{fill:#E8E8E8}.generic-icon-item.colour-scheme-black{background-color:#8A8A8A}.generic-icon-item.colour-scheme-black svg{fill:#8A8A8A}.generic-icon-item.colour-scheme-black{background-color:#4A4A4A}.generic-icon-item.colour-scheme-black svg{fill:#4A4A4A}.generic-icon-item:hover{background-color:#FFFFFF}.generic-icon-item:hover svg{fill:#000000}.generic-icon-item a{display:grid;position:relative;padding:10px;box-sizing:border-box;height:100%}.generic-icon-item a svg{width:100%;height:100%}.generic-icon-item a{padding:6px}.generic-icon-item a{margin:auto}}.CaretRight{height:10px;width:10px;margin-right:0px}.CaretRight a{padding:0px}.MenuClose a svg{height:12px;width:12px}";
|
|
5
|
+
|
|
6
|
+
const BiggiveGenericIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.backgroundColour = 'primary';
|
|
11
|
+
this.iconColour = 'white';
|
|
12
|
+
this.iconGroup = undefined;
|
|
13
|
+
this.icon = undefined;
|
|
14
|
+
this.url = undefined;
|
|
15
|
+
}
|
|
16
|
+
getIcon() {
|
|
17
|
+
let icon;
|
|
18
|
+
if (this.iconGroup == 'beneficiary') {
|
|
19
|
+
icon = FontAwesomeIconsService.getBeneficiaryIcon(this.icon);
|
|
20
|
+
}
|
|
21
|
+
else if (this.iconGroup == 'misc') {
|
|
22
|
+
icon = FontAwesomeIconsService.getMiscIcon(this.icon);
|
|
23
|
+
}
|
|
24
|
+
else if (this.iconGroup == 'social') {
|
|
25
|
+
icon = FontAwesomeIconsService.getSocialIcon(this.icon);
|
|
26
|
+
}
|
|
27
|
+
else if (this.iconGroup == 'category') {
|
|
28
|
+
icon = FontAwesomeIconsService.getCategoryIcon(this.icon);
|
|
29
|
+
}
|
|
30
|
+
return icon;
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return (
|
|
34
|
+
// Note: the icon name prop is set as a css class too for any styling specific to certain icons
|
|
35
|
+
h("div", { class: 'generic-icon-item background-colour-' + this.backgroundColour + ' ' + this.icon }, h("a", { href: this.url }, this.getIcon() ? (h("svg", { width: this.getIcon().icon[0], height: this.getIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getIcon().icon[0] + ' ' + this.getIcon().icon[1] }, h("path", { d: this.getIcon().icon[4].toString() }))) : null)));
|
|
36
|
+
}
|
|
37
|
+
static get style() { return biggiveGenericIconCss; }
|
|
38
|
+
}, [0, "biggive-generic-icon", {
|
|
39
|
+
"backgroundColour": [1, "background-colour"],
|
|
40
|
+
"iconColour": [1, "icon-colour"],
|
|
41
|
+
"iconGroup": [1, "icon-group"],
|
|
42
|
+
"icon": [1],
|
|
43
|
+
"url": [1]
|
|
44
|
+
}]);
|
|
45
|
+
function defineCustomElement() {
|
|
46
|
+
if (typeof customElements === "undefined") {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const components = ["biggive-generic-icon"];
|
|
50
|
+
components.forEach(tagName => { switch (tagName) {
|
|
51
|
+
case "biggive-generic-icon":
|
|
52
|
+
if (!customElements.get(tagName)) {
|
|
53
|
+
customElements.define(tagName, BiggiveGenericIcon);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
} });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { BiggiveGenericIcon as B, defineCustomElement as d };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const biggiveGridCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}:host{display:contents}.grid{margin-bottom:15px;display:flex;flex-flow:row wrap}.space-between{justify-content:space-between}.grid ::slotted([slot=grid-item]){display:block}.column-count-
|
|
3
|
+
const biggiveGridCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}:host{display:contents}.grid{margin-bottom:15px;display:flex;flex-flow:row wrap}.space-between{justify-content:space-between}.grid ::slotted([slot=grid-item]){display:block}.column-count-2 ::slotted(*){width:50%;display:flex;flex-direction:column}.column-count-3 ::slotted(*){width:33.3333333333%;display:flex;flex-direction:column}.column-count-4 ::slotted(*){width:25%;display:flex;flex-direction:column}.column-count-5 ::slotted(*){width:20%;display:flex;flex-direction:column}.column-count-6 ::slotted(*){width:16.6666666667%;display:flex;flex-direction:column}.column-gap-1{justify-content:space-between}.column-gap-2{justify-content:space-between}.column-gap-3{justify-content:space-between}.column-gap-4{justify-content:space-between}.column-gap-5{justify-content:space-between}.column-gap-6{justify-content:space-between}.column-count-2.column-gap-1 ::slotted(*){width:calc(50% - 2.5px)}.column-count-2.column-gap-2 ::slotted(*){width:calc(50% - 5px)}.column-count-2.column-gap-3 ::slotted(*){width:calc(50% - 7.5px)}.column-count-2.column-gap-4 ::slotted(*){width:calc(50% - 15px)}.column-count-2.column-gap-5 ::slotted(*){width:calc(50% - 22.5px)}.column-count-2.column-gap-6 ::slotted(*){width:calc(50% - 30px)}.column-count-3.column-gap-1 ::slotted(*){width:calc(33.3333333333% - 3.3333333333px)}.column-count-3.column-gap-2 ::slotted(*){width:calc(33.3333333333% - 6.6666666667px)}.column-count-3.column-gap-3 ::slotted(*){width:calc(33.3333333333% - 10px)}.column-count-3.column-gap-4 ::slotted(*){width:calc(33.3333333333% - 20px)}.column-count-3.column-gap-5 ::slotted(*){width:calc(33.3333333333% - 30px)}.column-count-3.column-gap-6 ::slotted(*){width:calc(33.3333333333% - 40px)}.column-count-4.column-gap-1 ::slotted(*){width:calc(25% - 3.75px)}.column-count-4.column-gap-2 ::slotted(*){width:calc(25% - 7.5px)}.column-count-4.column-gap-3 ::slotted(*){width:calc(25% - 11.25px)}.column-count-4.column-gap-4 ::slotted(*){width:calc(25% - 22.5px)}.column-count-4.column-gap-5 ::slotted(*){width:calc(25% - 33.75px)}.column-count-4.column-gap-6 ::slotted(*){width:calc(25% - 45px)}.column-count-5.column-gap-1 ::slotted(*){width:calc(20% - 4px)}.column-count-5.column-gap-2 ::slotted(*){width:calc(20% - 8px)}.column-count-5.column-gap-3 ::slotted(*){width:calc(20% - 12px)}.column-count-5.column-gap-4 ::slotted(*){width:calc(20% - 24px)}.column-count-5.column-gap-5 ::slotted(*){width:calc(20% - 36px)}.column-count-5.column-gap-6 ::slotted(*){width:calc(20% - 48px)}.column-count-6.column-gap-1 ::slotted(*){width:calc(16.6666666667% - 4.1666666667px)}.column-count-6.column-gap-2 ::slotted(*){width:calc(16.6666666667% - 8.3333333333px)}.column-count-6.column-gap-3 ::slotted(*){width:calc(16.6666666667% - 12.5px)}.column-count-6.column-gap-4 ::slotted(*){width:calc(16.6666666667% - 25px)}.column-count-6.column-gap-5 ::slotted(*){width:calc(16.6666666667% - 37.5px)}.column-count-6.column-gap-6 ::slotted(*){width:calc(16.6666666667% - 50px)}@media screen and (max-width: 768px){.column-count-2 ::slotted(*),.column-count-3 ::slotted(*),.column-count-4 ::slotted(*),.column-count-5 ::slotted(*),.column-count-6 ::slotted(*){width:calc(50% - 15px)}}@media screen and (max-width: 576px){.column-count-2 ::slotted(*),.column-count-3 ::slotted(*),.column-count-4 ::slotted(*),.column-count-5 ::slotted(*),.column-count-6 ::slotted(*){width:100%}}";
|
|
4
4
|
|
|
5
5
|
const BiggiveGrid$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -10,15 +10,17 @@ const BiggiveGrid$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
10
10
|
this.spaceBelow = 4;
|
|
11
11
|
this.columnCount = 3;
|
|
12
12
|
this.spaceBetween = false;
|
|
13
|
+
this.columnGap = 0;
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
15
|
-
return (h("div", { class: 'grid column-count-' + this.columnCount + ' space-below-' + this.spaceBelow + (this.spaceBetween ? ' space-between' : '') }, h("slot", null)));
|
|
16
|
+
return (h("div", { class: 'grid column-count-' + this.columnCount + ' space-below-' + this.spaceBelow + ' column-gap-' + this.columnGap + (this.spaceBetween ? ' space-between' : '') }, h("slot", null)));
|
|
16
17
|
}
|
|
17
18
|
static get style() { return biggiveGridCss; }
|
|
18
19
|
}, [1, "biggive-grid", {
|
|
19
20
|
"spaceBelow": [2, "space-below"],
|
|
20
21
|
"columnCount": [2, "column-count"],
|
|
21
|
-
"spaceBetween": [4, "space-between"]
|
|
22
|
+
"spaceBetween": [4, "space-between"],
|
|
23
|
+
"columnGap": [2, "column-gap"]
|
|
22
24
|
}]);
|
|
23
25
|
function defineCustomElement$1() {
|
|
24
26
|
if (typeof customElements === "undefined") {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BiggiveIconButton extends Components.BiggiveIconButton, HTMLElement {}
|
|
4
|
+
export const BiggiveIconButton: {
|
|
5
|
+
prototype: BiggiveIconButton;
|
|
6
|
+
new (): BiggiveIconButton;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './biggive-generic-icon2.js';
|
|
3
|
+
|
|
4
|
+
const biggiveIconButtonCss = "a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-brand-1:hover,.background-colour-brand-1{background-color:#B30510}.background-colour-hover-brand-2:hover,.background-colour-brand-2{background-color:#6E0887}.background-colour-hover-brand-3:hover,.background-colour-brand-3{background-color:#50B400}.background-colour-hover-brand-4:hover,.background-colour-brand-4{background-color:#FFE500}.background-colour-hover-brand-5:hover,.background-colour-brand-5{background-color:#F07D00}.background-colour-hover-brand-6:hover,.background-colour-brand-6{background-color:#62CFC9}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-grey-extra-light:hover,.background-colour-grey-extra-light{background-color:#D7D7D7}.background-colour-hover-grey-light:hover,.background-colour-grey-light{background-color:#E8E8E8}.background-colour-hover-grey-medium:hover,.background-colour-grey-medium{background-color:#8A8A8A}.background-colour-hover-grey-dark:hover,.background-colour-grey-dark{background-color:#4A4A4A}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-brand-1:hover,.text-colour-brand-1{color:#B30510}.text-colour-hover-brand-2:hover,.text-colour-brand-2{color:#6E0887}.text-colour-hover-brand-3:hover,.text-colour-brand-3{color:#50B400}.text-colour-hover-brand-4:hover,.text-colour-brand-4{color:#FFE500}.text-colour-hover-brand-5:hover,.text-colour-brand-5{color:#F07D00}.text-colour-hover-brand-6:hover,.text-colour-brand-6{color:#CBC8C8}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.text-colour-hover-grey-extra-light:hover,.text-colour-grey-extra-light{color:#D7D7D7}.text-colour-hover-grey-light:hover,.text-colour-grey-light{color:#E8E8E8}.text-colour-hover-grey-medium:hover,.text-colour-grey-medium{color:#8A8A8A}.text-colour-hover-grey-dark:hover,.text-colour-grey-dark{color:#4A4A4A}:host{display:contents}.container{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px}.container a{display:block;text-decoration:none}.container a.full-width-true{display:block}.container.centered-true{text-align:center}.container.shadow-true{filter:drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.25))}.container.rounded-true{border-radius:10px}.container.background-padding-1{padding:5px}.container.background-padding-2{padding:10px}.container.background-padding-3{padding:15px}.container.background-padding-4{padding:30px}.container.background-padding-5{padding:45px}.container.background-padding-6{padding:60px}.container .sleeve{display:flex}.container .sleeve .text-wrap{margin:auto 0;text-decoration:none}.container .sleeve .text-wrap.text-padding-1{padding:0 5px}.container .sleeve .text-wrap.text-padding-2{padding:0 10px}.container .sleeve .text-wrap.text-padding-3{padding:0 15px}.container .sleeve .text-wrap.text-padding-4{padding:0 30px}.container .sleeve .text-wrap.text-padding-5{padding:0 45px}.container .sleeve .text-wrap.text-padding-6{padding:0 60px}.container .sleeve .arrow-wrap{margin:auto 0 auto auto}.container .sleeve .arrow-wrap.arrow-colour-primary .arrow-wrap svg path{stroke:#2C089B}.container .sleeve .arrow-wrap.arrow-colour-secondary .arrow-wrap svg path{stroke:#2AF135}.container .sleeve .arrow-wrap.arrow-colour-tertiary .arrow-wrap svg path{stroke:#FF7272}.container .sleeve .arrow-wrap.arrow-colour-brand-1 .arrow-wrap svg path{stroke:#B30510}.container .sleeve .arrow-wrap.arrow-colour-brand-2 .arrow-wrap svg path{stroke:#6E0887}.container .sleeve .arrow-wrap.arrow-colour-brand-3 .arrow-wrap svg path{stroke:#50B400}.container .sleeve .arrow-wrap.arrow-colour-brand-4 .arrow-wrap svg path{stroke:#FFE500}.container .sleeve .arrow-wrap.arrow-colour-brand-5 .arrow-wrap svg path{stroke:#F07D00}.container .sleeve .arrow-wrap.arrow-colour-brand-6 .arrow-wrap svg path{stroke:#62CFC9}.container .sleeve .arrow-wrap.arrow-colour-white .arrow-wrap svg path{stroke:#FFFFFF}.container .sleeve .arrow-wrap.arrow-colour-black .arrow-wrap svg path{stroke:#000000}.container .sleeve .arrow-wrap.arrow-colour-grey-extra-light .arrow-wrap svg path{stroke:#D7D7D7}.container .sleeve .arrow-wrap.arrow-colour-grey-light .arrow-wrap svg path{stroke:#E8E8E8}.container .sleeve .arrow-wrap.arrow-colour-grey-medium .arrow-wrap svg path{stroke:#8A8A8A}.container .sleeve .arrow-wrap.arrow-colour-grey-dark .arrow-wrap svg path{stroke:#4A4A4A}.container .icon-wrap{background-position:center center;background-size:cover}.container .icon-wrap.circle-true{border-radius:50%;overflow:hidden}.container .icon-wrap.size-small{width:30px;height:30px}.container .icon-wrap.size-medium{width:45px;height:45px}.container .icon-wrap.size-large{width:60px;height:60px}.container .icon-wrap.size-x-large{width:75px;height:75px}.container .icon-wrap.size-xx-large{width:90px;height:90px}.container .icon-wrap .misc-icon-item{width:100%;height:100%}.container .icon-wrap .misc-icon-item a{padding:20%}.container.arrow-colour-primary .arrow-wrap svg path{stroke:#2C089B}.container.arrow-colour-secondary .arrow-wrap svg path{stroke:#2AF135}.container.arrow-colour-tertiary .arrow-wrap svg path{stroke:#FF7272}.container.arrow-colour-brand-1 .arrow-wrap svg path{stroke:#B30510}.container.arrow-colour-brand-2 .arrow-wrap svg path{stroke:#6E0887}.container.arrow-colour-brand-3 .arrow-wrap svg path{stroke:#50B400}.container.arrow-colour-brand-4 .arrow-wrap svg path{stroke:#FFE500}.container.arrow-colour-brand-5 .arrow-wrap svg path{stroke:#F07D00}.container.arrow-colour-brand-6 .arrow-wrap svg path{stroke:#62CFC9}.container.arrow-colour-white .arrow-wrap svg path{stroke:#FFFFFF}.container.arrow-colour-black .arrow-wrap svg path{stroke:#000000}.container.arrow-colour-grey-extra-light .arrow-wrap svg path{stroke:#D7D7D7}.container.arrow-colour-grey-light .arrow-wrap svg path{stroke:#E8E8E8}.container.arrow-colour-grey-medium .arrow-wrap svg path{stroke:#8A8A8A}.container.arrow-colour-grey-dark .arrow-wrap svg path{stroke:#4A4A4A}";
|
|
5
|
+
|
|
6
|
+
const BiggiveIconButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.doButtonClick = createEvent(this, "doButtonClick", 7);
|
|
12
|
+
this.handleButtonClick = (event) => {
|
|
13
|
+
this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
|
|
14
|
+
};
|
|
15
|
+
this.spaceBelow = 1;
|
|
16
|
+
this.backgroundColour = 'white';
|
|
17
|
+
this.backgroundPadding = 0;
|
|
18
|
+
this.text = undefined;
|
|
19
|
+
this.textColour = 'black';
|
|
20
|
+
this.iconGroup = undefined;
|
|
21
|
+
this.icon = undefined;
|
|
22
|
+
this.url = undefined;
|
|
23
|
+
this.openInNewTab = false;
|
|
24
|
+
this.size = 'medium';
|
|
25
|
+
this.arrow = false;
|
|
26
|
+
this.arrowColour = 'black';
|
|
27
|
+
this.circle = false;
|
|
28
|
+
this.shadow = false;
|
|
29
|
+
this.centered = false;
|
|
30
|
+
this.rounded = false;
|
|
31
|
+
this.buttonId = undefined;
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return (h("div", { class: 'container space-below-' +
|
|
35
|
+
this.spaceBelow +
|
|
36
|
+
' background-colour-' +
|
|
37
|
+
this.backgroundColour +
|
|
38
|
+
' background-padding-' +
|
|
39
|
+
this.backgroundPadding +
|
|
40
|
+
' centered-' +
|
|
41
|
+
this.centered +
|
|
42
|
+
' rounded-' +
|
|
43
|
+
this.rounded +
|
|
44
|
+
' shadow-' +
|
|
45
|
+
this.shadow }, h("a", { href: this.url, target: this.openInNewTab ? '_blank' : '_self', id: this.buttonId }, h("div", { class: "sleeve", onClick: this.handleButtonClick }, h("div", { class: 'icon-wrap ' + ' size-' + this.size + ' circle-' + this.circle.toString() }, h("biggive-generic-icon", { iconGroup: this.iconGroup, icon: this.icon })), this.text != '' ? h("div", { class: 'text-wrap text-colour-' + this.textColour + ' text-padding-' + this.backgroundPadding }, this.text) : null, this.arrow ? (h("div", { class: 'arrow-wrap arrow-colour-' + this.arrowColour }, h("svg", { width: "8", height: "12", viewBox: "0 0 8 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.76912 1.0791L5.73828 6.04826L0.769121 11.0174", stroke: "black", "stroke-width": "2" })))) : null))));
|
|
46
|
+
}
|
|
47
|
+
static get style() { return biggiveIconButtonCss; }
|
|
48
|
+
}, [1, "biggive-icon-button", {
|
|
49
|
+
"spaceBelow": [2, "space-below"],
|
|
50
|
+
"backgroundColour": [1, "background-colour"],
|
|
51
|
+
"backgroundPadding": [2, "background-padding"],
|
|
52
|
+
"text": [1],
|
|
53
|
+
"textColour": [1, "text-colour"],
|
|
54
|
+
"iconGroup": [1, "icon-group"],
|
|
55
|
+
"icon": [1],
|
|
56
|
+
"url": [1],
|
|
57
|
+
"openInNewTab": [4, "open-in-new-tab"],
|
|
58
|
+
"size": [1],
|
|
59
|
+
"arrow": [4],
|
|
60
|
+
"arrowColour": [1, "arrow-colour"],
|
|
61
|
+
"circle": [4],
|
|
62
|
+
"shadow": [4],
|
|
63
|
+
"centered": [4],
|
|
64
|
+
"rounded": [4],
|
|
65
|
+
"buttonId": [1, "button-id"]
|
|
66
|
+
}]);
|
|
67
|
+
function defineCustomElement$1() {
|
|
68
|
+
if (typeof customElements === "undefined") {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const components = ["biggive-icon-button", "biggive-generic-icon"];
|
|
72
|
+
components.forEach(tagName => { switch (tagName) {
|
|
73
|
+
case "biggive-icon-button":
|
|
74
|
+
if (!customElements.get(tagName)) {
|
|
75
|
+
customElements.define(tagName, BiggiveIconButton$1);
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
case "biggive-generic-icon":
|
|
79
|
+
if (!customElements.get(tagName)) {
|
|
80
|
+
defineCustomElement$2();
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
} });
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const BiggiveIconButton = BiggiveIconButton$1;
|
|
87
|
+
const defineCustomElement = defineCustomElement$1;
|
|
88
|
+
|
|
89
|
+
export { BiggiveIconButton, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface BiggiveImageButton extends Components.BiggiveImageButton, HTMLElement {}
|
|
4
|
+
export const BiggiveImageButton: {
|
|
5
|
+
prototype: BiggiveImageButton;
|
|
6
|
+
new (): BiggiveImageButton;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|