@biggive/components 1.0.145 → 1.0.146

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.
@@ -44,6 +44,9 @@ const BiggiveButton = class {
44
44
  constructor(hostRef) {
45
45
  index.registerInstance(this, hostRef);
46
46
  this.doButtonClick = index.createEvent(this, "doButtonClick", 7);
47
+ this.handleButtonClick = (event) => {
48
+ this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
49
+ };
47
50
  this.spaceBelow = 1;
48
51
  this.colourScheme = 'primary';
49
52
  this.label = 'Click me';
@@ -52,9 +55,6 @@ const BiggiveButton = class {
52
55
  this.size = 'medium';
53
56
  this.rounded = false;
54
57
  }
55
- handleButtonClick(event) {
56
- this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
57
- }
58
58
  render() {
59
59
  return (index.h("div", { class: 'container space-below-' + this.spaceBelow }, index.h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, index.h("span", { onClick: this.handleButtonClick }, this.label))));
60
60
  }
@@ -454,7 +454,7 @@ const BiggiveImageFeature = class {
454
454
  this.buttonColourScheme = 'primary';
455
455
  }
456
456
  render() {
457
- return (index.h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, index.h("div", { class: "sleeve" }, index.h("div", { class: "content-wrap" }, index.h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), index.h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), index.h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (index.h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), index.h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (index.h("div", { class: "image-wrap" }, index.h("img", { src: this.imageUrl, alt: this.imageAltText, title: this.imageAltText }))) : null))));
457
+ return (index.h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, index.h("div", { class: "sleeve" }, index.h("div", { class: "content-wrap" }, index.h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), index.h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), index.h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (index.h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), index.h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (index.h("div", { class: "image-wrap" }, index.h("img", { src: this.imageUrl, alt: this.imageAltText }))) : null))));
458
458
  }
459
459
  };
460
460
  BiggiveImageFeature.style = biggiveImageFeatureCss;
@@ -32,7 +32,7 @@ const BiggiveImage = class {
32
32
  return height;
33
33
  }
34
34
  render() {
35
- return (index.h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, index.h("div", { class: "image-wrap" }, index.h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText, title: this.imageAltText }))));
35
+ return (index.h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, index.h("div", { class: "image-wrap" }, index.h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText }))));
36
36
  }
37
37
  };
38
38
  BiggiveImage.style = biggiveImageCss;
@@ -1,6 +1,9 @@
1
1
  import { h } from '@stencil/core';
2
2
  export class BiggiveButton {
3
3
  constructor() {
4
+ this.handleButtonClick = (event) => {
5
+ this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
6
+ };
4
7
  this.spaceBelow = 1;
5
8
  this.colourScheme = 'primary';
6
9
  this.label = 'Click me';
@@ -9,9 +12,6 @@ export class BiggiveButton {
9
12
  this.size = 'medium';
10
13
  this.rounded = false;
11
14
  }
12
- handleButtonClick(event) {
13
- this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
14
- }
15
15
  render() {
16
16
  return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, h("span", { onClick: this.handleButtonClick }, this.label))));
17
17
  }
@@ -24,7 +24,7 @@ export class BiggiveImage {
24
24
  return height;
25
25
  }
26
26
  render() {
27
- return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText, title: this.imageAltText }))));
27
+ return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText }))));
28
28
  }
29
29
  static get is() { return "biggive-image"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -16,7 +16,7 @@ export class BiggiveImageFeature {
16
16
  this.buttonColourScheme = 'primary';
17
17
  }
18
18
  render() {
19
- return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, alt: this.imageAltText, title: this.imageAltText }))) : null))));
19
+ return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, alt: this.imageAltText }))) : null))));
20
20
  }
21
21
  static get is() { return "biggive-image-feature"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -8,6 +8,9 @@ const BiggiveButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
8
8
  this.__registerHost();
9
9
  this.__attachShadow();
10
10
  this.doButtonClick = createEvent(this, "doButtonClick", 7);
11
+ this.handleButtonClick = (event) => {
12
+ this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
13
+ };
11
14
  this.spaceBelow = 1;
12
15
  this.colourScheme = 'primary';
13
16
  this.label = 'Click me';
@@ -16,9 +19,6 @@ const BiggiveButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
16
19
  this.size = 'medium';
17
20
  this.rounded = false;
18
21
  }
19
- handleButtonClick(event) {
20
- this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
21
- }
22
22
  render() {
23
23
  return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, h("span", { onClick: this.handleButtonClick }, this.label))));
24
24
  }
@@ -23,7 +23,7 @@ const BiggiveImageFeature$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
23
23
  this.buttonColourScheme = 'primary';
24
24
  }
25
25
  render() {
26
- return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, alt: this.imageAltText, title: this.imageAltText }))) : null))));
26
+ return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, alt: this.imageAltText }))) : null))));
27
27
  }
28
28
  static get style() { return biggiveImageFeatureCss; }
29
29
  }, [1, "biggive-image-feature", {
@@ -30,7 +30,7 @@ const BiggiveImage$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
30
30
  return height;
31
31
  }
32
32
  render() {
33
- return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText, title: this.imageAltText }))));
33
+ return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText }))));
34
34
  }
35
35
  static get style() { return biggiveImageCss; }
36
36
  }, [1, "biggive-image", {
@@ -40,6 +40,9 @@ const BiggiveButton = class {
40
40
  constructor(hostRef) {
41
41
  registerInstance(this, hostRef);
42
42
  this.doButtonClick = createEvent(this, "doButtonClick", 7);
43
+ this.handleButtonClick = (event) => {
44
+ this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
45
+ };
43
46
  this.spaceBelow = 1;
44
47
  this.colourScheme = 'primary';
45
48
  this.label = 'Click me';
@@ -48,9 +51,6 @@ const BiggiveButton = class {
48
51
  this.size = 'medium';
49
52
  this.rounded = false;
50
53
  }
51
- handleButtonClick(event) {
52
- this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
53
- }
54
54
  render() {
55
55
  return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, h("span", { onClick: this.handleButtonClick }, this.label))));
56
56
  }
@@ -450,7 +450,7 @@ const BiggiveImageFeature = class {
450
450
  this.buttonColourScheme = 'primary';
451
451
  }
452
452
  render() {
453
- return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, alt: this.imageAltText, title: this.imageAltText }))) : null))));
453
+ return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), h("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, alt: this.imageAltText }))) : null))));
454
454
  }
455
455
  };
456
456
  BiggiveImageFeature.style = biggiveImageFeatureCss;
@@ -28,7 +28,7 @@ const BiggiveImage = class {
28
28
  return height;
29
29
  }
30
30
  render() {
31
- return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText, title: this.imageAltText }))));
31
+ return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, h("div", { class: "image-wrap" }, h("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText }))));
32
32
  }
33
33
  };
34
34
  BiggiveImage.style = biggiveImageCss;
@@ -32,6 +32,6 @@ export declare class BiggiveButton {
32
32
  * Rounded corners
33
33
  */
34
34
  rounded: boolean;
35
- handleButtonClick(event: any): void;
35
+ private handleButtonClick;
36
36
  render(): any;
37
37
  }
package/hydrate/index.js CHANGED
@@ -6385,6 +6385,9 @@ class BiggiveButton {
6385
6385
  constructor(hostRef) {
6386
6386
  registerInstance(this, hostRef);
6387
6387
  this.doButtonClick = createEvent(this, "doButtonClick", 7);
6388
+ this.handleButtonClick = (event) => {
6389
+ this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
6390
+ };
6388
6391
  this.spaceBelow = 1;
6389
6392
  this.colourScheme = 'primary';
6390
6393
  this.label = 'Click me';
@@ -6393,9 +6396,6 @@ class BiggiveButton {
6393
6396
  this.size = 'medium';
6394
6397
  this.rounded = false;
6395
6398
  }
6396
- handleButtonClick(event) {
6397
- this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
6398
- }
6399
6399
  render() {
6400
6400
  return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, hAsync("span", { onClick: this.handleButtonClick }, this.label))));
6401
6401
  }
@@ -7122,7 +7122,7 @@ class BiggiveImage {
7122
7122
  return height;
7123
7123
  }
7124
7124
  render() {
7125
- return (hAsync("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, hAsync("div", { class: "image-wrap" }, hAsync("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText, title: this.imageAltText }))));
7125
+ return (hAsync("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow, style: { width: this.getWidth(), height: this.getHeight() } }, hAsync("div", { class: "image-wrap" }, hAsync("img", { src: this.imageUrl, style: { width: this.getWidth(), height: this.getHeight() }, alt: this.imageAltText }))));
7126
7126
  }
7127
7127
  static get style() { return biggiveImageCss; }
7128
7128
  static get cmpMeta() { return {
@@ -7163,7 +7163,7 @@ class BiggiveImageFeature {
7163
7163
  this.buttonColourScheme = 'primary';
7164
7164
  }
7165
7165
  render() {
7166
- return (hAsync("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "content-wrap" }, hAsync("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), hAsync("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), hAsync("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (hAsync("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), hAsync("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (hAsync("div", { class: "image-wrap" }, hAsync("img", { src: this.imageUrl, alt: this.imageAltText, title: this.imageAltText }))) : null))));
7166
+ return (hAsync("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "content-wrap" }, hAsync("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), hAsync("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle), hAsync("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null ? (hAsync("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })) : null), hAsync("div", { class: "graphic-wrap" }, this.imageUrl.length > 0 ? (hAsync("div", { class: "image-wrap" }, hAsync("img", { src: this.imageUrl, alt: this.imageAltText }))) : null))));
7167
7167
  }
7168
7168
  static get style() { return biggiveImageFeatureCss; }
7169
7169
  static get cmpMeta() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
- "version": "1.0.145",
3
+ "version": "1.0.146",
4
4
  "description": "Big Give Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",