@biggive/components 1.0.96 → 1.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/biggive/assets/images/biggive-triangle-green.svg +21 -0
  2. package/dist/biggive/assets/images/cross.svg +11 -0
  3. package/dist/biggive/assets/images/menu.svg +11 -0
  4. package/dist/biggive/biggive.esm.js +1 -1
  5. package/dist/biggive/p-063c44ce.entry.js +1 -0
  6. package/dist/biggive/p-0892aade.entry.js +1 -0
  7. package/dist/biggive/{p-e39db89c.entry.js → p-38b36bc6.entry.js} +1 -1
  8. package/dist/biggive/p-41c6f1f3.entry.js +1 -0
  9. package/dist/biggive/p-60872399.entry.js +1 -0
  10. package/dist/biggive/p-6d144f96.js +2 -0
  11. package/dist/biggive/p-8742102b.entry.js +1 -0
  12. package/dist/biggive/p-88faca11.js +1 -0
  13. package/dist/biggive/p-9916d987.entry.js +1 -0
  14. package/dist/biggive/p-99f15121.entry.js +1 -0
  15. package/dist/biggive/p-9fa2a9b2.entry.js +1 -0
  16. package/dist/biggive/p-a13e0f3e.entry.js +1 -0
  17. package/dist/biggive/p-aa4e1a2a.js +1 -0
  18. package/dist/biggive/p-bfaf1239.entry.js +1 -0
  19. package/dist/biggive/p-c1570c9f.entry.js +1 -0
  20. package/dist/biggive/p-d1c2b64d.entry.js +1 -0
  21. package/dist/biggive/p-da0a4725.entry.js +1 -0
  22. package/dist/biggive/p-de0f70ee.entry.js +1 -0
  23. package/dist/biggive/p-e3b0c4ae.entry.js +1 -0
  24. package/dist/biggive/p-e546fe69.entry.js +1 -0
  25. package/dist/cjs/biggive-article-card.cjs.entry.js +2 -35
  26. package/dist/cjs/biggive-back-to-top_23.cjs.entry.js +625 -0
  27. package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -35
  28. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +4 -19
  29. package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -17
  30. package/dist/cjs/biggive-branded-image.cjs.entry.js +2 -14
  31. package/dist/cjs/biggive-category-icon.cjs.entry.js +4 -19
  32. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive-formatted-text.cjs.entry.js +2 -8
  34. package/dist/cjs/biggive-icon-group.cjs.entry.js +2 -8
  35. package/dist/cjs/biggive-image.cjs.entry.js +2 -20
  36. package/dist/cjs/biggive-quote.cjs.entry.js +2 -14
  37. package/dist/cjs/biggive-search.cjs.entry.js +7 -5
  38. package/dist/cjs/biggive-tab.cjs.entry.js +2 -5
  39. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +2 -8
  40. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  41. package/dist/cjs/biggive-video.cjs.entry.js +2 -11
  42. package/dist/cjs/biggive.cjs.js +3 -3
  43. package/dist/cjs/{fontawesome-icons-110f532d.js → fontawesome-icons-f33263c4.js} +45 -55
  44. package/dist/cjs/index-1fa2bbc6.js +196 -0
  45. package/dist/cjs/{index-87518c3f.js → index-ecfc2713.js} +734 -495
  46. package/dist/cjs/loader.cjs.js +3 -3
  47. package/dist/collection/assets/images/biggive-triangle-green.svg +21 -0
  48. package/dist/collection/assets/images/cross.svg +11 -0
  49. package/dist/collection/assets/images/menu.svg +11 -0
  50. package/dist/collection/collection-manifest.json +4 -2
  51. package/dist/collection/components/biggive-article-card/biggive-article-card.css +20 -0
  52. package/dist/collection/components/biggive-article-card/biggive-article-card.js +214 -253
  53. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +20 -0
  54. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.js +12 -11
  55. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +20 -0
  56. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +214 -251
  57. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +20 -0
  58. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.js +102 -116
  59. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +20 -0
  60. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.js +102 -112
  61. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +20 -0
  62. package/dist/collection/components/biggive-branded-image/biggive-branded-image.js +85 -96
  63. package/dist/collection/components/biggive-button/biggive-button.css +20 -0
  64. package/dist/collection/components/biggive-button/biggive-button.js +137 -153
  65. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +20 -0
  66. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +376 -440
  67. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +22 -0
  68. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +322 -385
  69. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +57 -0
  70. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +123 -124
  71. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +6 -0
  72. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +20 -0
  73. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +238 -292
  74. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +20 -0
  75. package/dist/collection/components/biggive-category-icon/biggive-category-icon.js +102 -116
  76. package/dist/collection/components/biggive-footer/biggive-footer.css +54 -1
  77. package/dist/collection/components/biggive-footer/biggive-footer.js +15 -39
  78. package/dist/collection/components/biggive-footer/biggive-footer.stories.js +8 -1
  79. package/dist/collection/components/biggive-form/biggive-form.js +12 -9
  80. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.css +557 -0
  81. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +95 -9
  82. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.stories.js +9 -0
  83. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.css +520 -0
  84. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.js +94 -0
  85. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.js +23 -0
  86. package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +12 -9
  87. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +20 -0
  88. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +51 -52
  89. package/dist/collection/components/biggive-grid/biggive-grid.css +35 -0
  90. package/dist/collection/components/biggive-grid/biggive-grid.js +68 -72
  91. package/dist/collection/components/biggive-header/biggive-header.css +90 -2
  92. package/dist/collection/components/biggive-header/biggive-header.js +64 -69
  93. package/dist/collection/components/biggive-header/biggive-header.stories.js +2 -1
  94. package/dist/collection/components/biggive-heading/biggive-heading.css +20 -0
  95. package/dist/collection/components/biggive-heading/biggive-heading.js +136 -152
  96. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +44 -11
  97. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +240 -283
  98. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +20 -0
  99. package/dist/collection/components/biggive-icon-group/biggive-icon-group.js +51 -54
  100. package/dist/collection/components/biggive-image/biggive-image.css +20 -0
  101. package/dist/collection/components/biggive-image/biggive-image.js +119 -133
  102. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +39 -5
  103. package/dist/collection/components/biggive-image-feature/biggive-image-feature.js +232 -270
  104. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +20 -0
  105. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +85 -94
  106. package/dist/collection/components/biggive-page-column/biggive-page-column.css +506 -1
  107. package/dist/collection/components/biggive-page-column/biggive-page-column.js +11 -7
  108. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +30 -1
  109. package/dist/collection/components/biggive-page-columns/biggive-page-columns.js +34 -36
  110. package/dist/collection/components/biggive-page-section/biggive-page-section.css +20 -0
  111. package/dist/collection/components/biggive-page-section/biggive-page-section.js +85 -93
  112. package/dist/collection/components/biggive-popup/biggive-popup.css +547 -0
  113. package/dist/collection/components/biggive-popup/biggive-popup.js +47 -0
  114. package/dist/collection/components/biggive-popup/biggive-popup.stories.js +8 -0
  115. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +20 -0
  116. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +68 -76
  117. package/dist/collection/components/biggive-quote/biggive-quote.css +20 -0
  118. package/dist/collection/components/biggive-quote/biggive-quote.js +85 -93
  119. package/dist/collection/components/biggive-search/biggive-search.css +20 -0
  120. package/dist/collection/components/biggive-search/biggive-search.js +74 -74
  121. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +20 -0
  122. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +85 -94
  123. package/dist/collection/components/biggive-tab/biggive-tab.css +20 -0
  124. package/dist/collection/components/biggive-tab/biggive-tab.js +34 -34
  125. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +20 -0
  126. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +51 -52
  127. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +29 -1
  128. package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +178 -208
  129. package/dist/collection/components/biggive-video/biggive-video.css +20 -0
  130. package/dist/collection/components/biggive-video/biggive-video.js +68 -72
  131. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +39 -5
  132. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +238 -278
  133. package/dist/components/biggive-article-card.js +1 -34
  134. package/dist/components/biggive-back-to-top.js +1 -1
  135. package/dist/components/biggive-basic-card.js +1 -34
  136. package/dist/components/biggive-beneficiary-icon.js +1 -16
  137. package/dist/components/biggive-boxed-content.js +1 -16
  138. package/dist/components/biggive-branded-image.js +1 -13
  139. package/dist/components/biggive-button2.js +2 -23
  140. package/dist/components/biggive-call-to-action.js +1 -61
  141. package/dist/components/biggive-campaign-card-filter-grid.js +55 -22
  142. package/dist/components/biggive-campaign-card.js +2 -49
  143. package/dist/components/biggive-campaign-highlights.js +1 -40
  144. package/dist/components/biggive-category-icon.js +1 -16
  145. package/dist/components/biggive-footer.js +4 -10
  146. package/dist/components/biggive-form-field-select-option.d.ts +11 -0
  147. package/dist/components/biggive-form-field-select-option.js +6 -0
  148. package/dist/components/biggive-form-field-select-option2.js +46 -0
  149. package/dist/components/biggive-form-field-select.js +1 -28
  150. package/dist/components/biggive-form-field-select2.js +44 -0
  151. package/dist/components/biggive-formatted-text.js +1 -7
  152. package/dist/components/biggive-grid.js +1 -10
  153. package/dist/components/biggive-header.js +13 -8
  154. package/dist/components/biggive-heading.js +1 -22
  155. package/dist/components/biggive-hero-image.js +1 -40
  156. package/dist/components/biggive-icon-group.js +1 -7
  157. package/dist/components/biggive-image-feature.js +1 -37
  158. package/dist/components/biggive-image.js +1 -19
  159. package/dist/components/biggive-misc-icon2.js +1 -13
  160. package/dist/components/biggive-page-column.js +1 -1
  161. package/dist/components/biggive-page-columns.js +1 -4
  162. package/dist/components/biggive-page-section.js +1 -13
  163. package/dist/components/biggive-popup.d.ts +11 -0
  164. package/dist/components/biggive-popup.js +6 -0
  165. package/dist/components/biggive-popup2.js +41 -0
  166. package/dist/components/biggive-progress-bar2.js +1 -10
  167. package/dist/components/biggive-quote.js +1 -13
  168. package/dist/components/biggive-search.js +5 -3
  169. package/dist/components/biggive-social-icon.js +41 -1
  170. package/dist/components/biggive-tab.js +1 -4
  171. package/dist/components/biggive-tabbed-content.js +1 -7
  172. package/dist/components/biggive-totalizer.js +1 -28
  173. package/dist/components/biggive-video-feature.js +1 -40
  174. package/dist/components/biggive-video.js +1 -10
  175. package/dist/components/fontawesome-icons.js +11 -21
  176. package/dist/components/index.d.ts +2 -0
  177. package/dist/components/index.js +2 -0
  178. package/dist/components/index2.js +164 -0
  179. package/dist/esm/biggive-article-card.entry.js +2 -35
  180. package/dist/esm/biggive-back-to-top_23.entry.js +599 -0
  181. package/dist/esm/biggive-basic-card.entry.js +2 -35
  182. package/dist/esm/biggive-beneficiary-icon.entry.js +4 -19
  183. package/dist/esm/biggive-boxed-content.entry.js +2 -17
  184. package/dist/esm/biggive-branded-image.entry.js +2 -14
  185. package/dist/esm/biggive-category-icon.entry.js +4 -19
  186. package/dist/esm/biggive-form.entry.js +1 -1
  187. package/dist/esm/biggive-formatted-text.entry.js +2 -8
  188. package/dist/esm/biggive-icon-group.entry.js +2 -8
  189. package/dist/esm/biggive-image.entry.js +2 -20
  190. package/dist/esm/biggive-quote.entry.js +2 -14
  191. package/dist/esm/biggive-search.entry.js +6 -4
  192. package/dist/esm/biggive-tab.entry.js +2 -5
  193. package/dist/esm/biggive-tabbed-content.entry.js +2 -8
  194. package/dist/esm/biggive-text-input.entry.js +1 -1
  195. package/dist/esm/biggive-video.entry.js +2 -11
  196. package/dist/esm/biggive.js +3 -3
  197. package/dist/esm/{fontawesome-icons-562459be.js → fontawesome-icons-ff9155ca.js} +11 -21
  198. package/dist/esm/index-7cfe62c2.js +164 -0
  199. package/dist/esm/{index-4395d470.js → index-b3c47751.js} +734 -495
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/esm/polyfills/css-shim.js +1 -1
  202. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +2 -6
  203. package/dist/types/components/biggive-form-field-select/biggive-form-field-select.d.ts +17 -0
  204. package/dist/types/components/biggive-form-field-select/biggive-form-field-select.stories.d.ts +5 -0
  205. package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.d.ts +20 -0
  206. package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.d.ts +13 -0
  207. package/dist/types/components/biggive-header/biggive-header.d.ts +1 -0
  208. package/dist/types/components/biggive-popup/biggive-popup.d.ts +6 -0
  209. package/dist/types/components/biggive-popup/biggive-popup.stories.d.ts +5 -0
  210. package/dist/types/components.d.ts +73 -6
  211. package/dist/types/stencil-public-runtime.d.ts +20 -4
  212. package/hydrate/index.d.ts +1 -1
  213. package/hydrate/index.js +1133 -1561
  214. package/loader/package.json +1 -0
  215. package/package.json +4 -2
  216. package/dist/biggive/p-10ba977a.entry.js +0 -1
  217. package/dist/biggive/p-114fac7c.entry.js +0 -1
  218. package/dist/biggive/p-1788f27c.entry.js +0 -1
  219. package/dist/biggive/p-1805f9ab.js +0 -2
  220. package/dist/biggive/p-1bf2e39d.entry.js +0 -1
  221. package/dist/biggive/p-26de9586.entry.js +0 -1
  222. package/dist/biggive/p-3116f3df.entry.js +0 -1
  223. package/dist/biggive/p-4368caaa.entry.js +0 -1
  224. package/dist/biggive/p-512c15ed.entry.js +0 -1
  225. package/dist/biggive/p-78406754.entry.js +0 -1
  226. package/dist/biggive/p-871707f4.js +0 -6
  227. package/dist/biggive/p-9125d753.entry.js +0 -1
  228. package/dist/biggive/p-96ddb8d1.entry.js +0 -1
  229. package/dist/biggive/p-a423663d.entry.js +0 -1
  230. package/dist/biggive/p-afde0b4b.entry.js +0 -1
  231. package/dist/biggive/p-b15292fe.entry.js +0 -1
  232. package/dist/biggive/p-ec9b42b3.js +0 -6
  233. package/dist/biggive/p-faa619ad.entry.js +0 -1
  234. package/dist/biggive/p-faa6817c.entry.js +0 -1
  235. package/dist/biggive/p-fb8447d1.entry.js +0 -1
  236. package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +0 -923
  237. package/dist/cjs/biggive-form-field-select.cjs.entry.js +0 -19
  238. package/dist/cjs/index.es-d3570170.js +0 -201
  239. package/dist/components/biggive-social-icon2.js +0 -55
  240. package/dist/components/index.es.js +0 -169
  241. package/dist/esm/biggive-back-to-top_20.entry.js +0 -900
  242. package/dist/esm/biggive-form-field-select.entry.js +0 -15
  243. package/dist/esm/index.es-5777380a.js +0 -169
@@ -1,92 +1,84 @@
1
- import { Component, Prop, h } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  export class BiggiveProgressBar {
3
3
  constructor() {
4
- /**
5
- * Space below component
6
- */
7
4
  this.spaceBelow = 0;
8
- /**
9
- * Colour Scheme
10
- */
11
5
  this.colourScheme = 'primary';
12
- /**
13
- * Text
14
- */
15
6
  this.counter = 100;
16
7
  }
17
8
  getPercentage() {
18
9
  return Math.round(this.counter);
19
10
  }
20
11
  render() {
21
- return (h("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow },
22
- h("div", { class: "slider" },
23
- h("div", { class: "progress", style: { width: this.getPercentage() + '%' } })),
24
- h("div", { class: "counter" },
25
- this.getPercentage(),
26
- "%")));
12
+ return (h("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "slider" }, h("div", { class: "progress", style: { width: this.getPercentage() + '%' } })), h("div", { class: "counter" }, this.getPercentage(), "%")));
27
13
  }
28
14
  static get is() { return "biggive-progress-bar"; }
29
15
  static get encapsulation() { return "shadow"; }
30
- static get originalStyleUrls() { return {
31
- "$": ["biggive-progress-bar.scss"]
32
- }; }
33
- static get styleUrls() { return {
34
- "$": ["biggive-progress-bar.css"]
35
- }; }
36
- static get properties() { return {
37
- "spaceBelow": {
38
- "type": "number",
39
- "mutable": false,
40
- "complexType": {
41
- "original": "number",
42
- "resolved": "number",
43
- "references": {}
44
- },
45
- "required": false,
46
- "optional": false,
47
- "docs": {
48
- "tags": [],
49
- "text": "Space below component"
50
- },
51
- "attribute": "space-below",
52
- "reflect": false,
53
- "defaultValue": "0"
54
- },
55
- "colourScheme": {
56
- "type": "string",
57
- "mutable": false,
58
- "complexType": {
59
- "original": "string",
60
- "resolved": "string",
61
- "references": {}
62
- },
63
- "required": false,
64
- "optional": false,
65
- "docs": {
66
- "tags": [],
67
- "text": "Colour Scheme"
68
- },
69
- "attribute": "colour-scheme",
70
- "reflect": false,
71
- "defaultValue": "'primary'"
72
- },
73
- "counter": {
74
- "type": "number",
75
- "mutable": false,
76
- "complexType": {
77
- "original": "number",
78
- "resolved": "number",
79
- "references": {}
16
+ static get originalStyleUrls() {
17
+ return {
18
+ "$": ["biggive-progress-bar.scss"]
19
+ };
20
+ }
21
+ static get styleUrls() {
22
+ return {
23
+ "$": ["biggive-progress-bar.css"]
24
+ };
25
+ }
26
+ static get properties() {
27
+ return {
28
+ "spaceBelow": {
29
+ "type": "number",
30
+ "mutable": false,
31
+ "complexType": {
32
+ "original": "number",
33
+ "resolved": "number",
34
+ "references": {}
35
+ },
36
+ "required": false,
37
+ "optional": false,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": "Space below component"
41
+ },
42
+ "attribute": "space-below",
43
+ "reflect": false,
44
+ "defaultValue": "0"
80
45
  },
81
- "required": false,
82
- "optional": false,
83
- "docs": {
84
- "tags": [],
85
- "text": "Text"
46
+ "colourScheme": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "string",
51
+ "resolved": "string",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Colour Scheme"
59
+ },
60
+ "attribute": "colour-scheme",
61
+ "reflect": false,
62
+ "defaultValue": "'primary'"
86
63
  },
87
- "attribute": "counter",
88
- "reflect": false,
89
- "defaultValue": "100"
90
- }
91
- }; }
64
+ "counter": {
65
+ "type": "number",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "number",
69
+ "resolved": "number",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": false,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": "Text"
77
+ },
78
+ "attribute": "counter",
79
+ "reflect": false,
80
+ "defaultValue": "100"
81
+ }
82
+ };
83
+ }
92
84
  }
@@ -218,6 +218,26 @@ a:hover {
218
218
  background-color: #FFFFFF;
219
219
  }
220
220
 
221
+ .button-white {
222
+ color: #2C089B;
223
+ background-color: #FFFFFF;
224
+ border-color: #FFFFFF;
225
+ }
226
+ .button-white:hover {
227
+ color: #FFFFFF;
228
+ background-color: #2C089B;
229
+ }
230
+
231
+ .button-black {
232
+ color: #FFFFFF;
233
+ background-color: #000000;
234
+ border-color: #000000;
235
+ }
236
+ .button-black:hover {
237
+ color: #000000;
238
+ background-color: #FFFFFF;
239
+ }
240
+
221
241
  .button-clear-primary {
222
242
  color: #2C089B;
223
243
  background-color: transparent;
@@ -1,108 +1,100 @@
1
- import { Component, Prop, h } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  export class BiggiveQuote {
3
3
  constructor() {
4
- /**
5
- * Space below component
6
- */
7
4
  this.spaceBelow = 0;
8
- /**
9
- * Default text colour
10
- */
11
5
  this.defaultTextColour = 'black';
12
- /**
13
- * Quote text
14
- */
15
6
  this.quote = '';
16
- /**
17
- * Attribution text
18
- */
19
7
  this.attribution = '';
20
8
  }
21
9
  render() {
22
- return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow },
23
- h("div", { class: "quote" }, this.quote),
24
- h("div", { class: "attribution" }, this.attribution)));
10
+ return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("div", { class: "quote" }, this.quote), h("div", { class: "attribution" }, this.attribution)));
25
11
  }
26
12
  static get is() { return "biggive-quote"; }
27
13
  static get encapsulation() { return "shadow"; }
28
- static get originalStyleUrls() { return {
29
- "$": ["biggive-quote.scss"]
30
- }; }
31
- static get styleUrls() { return {
32
- "$": ["biggive-quote.css"]
33
- }; }
34
- static get properties() { return {
35
- "spaceBelow": {
36
- "type": "number",
37
- "mutable": false,
38
- "complexType": {
39
- "original": "number",
40
- "resolved": "number",
41
- "references": {}
42
- },
43
- "required": false,
44
- "optional": false,
45
- "docs": {
46
- "tags": [],
47
- "text": "Space below component"
48
- },
49
- "attribute": "space-below",
50
- "reflect": false,
51
- "defaultValue": "0"
52
- },
53
- "defaultTextColour": {
54
- "type": "string",
55
- "mutable": false,
56
- "complexType": {
57
- "original": "string",
58
- "resolved": "string",
59
- "references": {}
60
- },
61
- "required": false,
62
- "optional": false,
63
- "docs": {
64
- "tags": [],
65
- "text": "Default text colour"
66
- },
67
- "attribute": "default-text-colour",
68
- "reflect": false,
69
- "defaultValue": "'black'"
70
- },
71
- "quote": {
72
- "type": "string",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "string",
76
- "resolved": "string",
77
- "references": {}
78
- },
79
- "required": false,
80
- "optional": false,
81
- "docs": {
82
- "tags": [],
83
- "text": "Quote text"
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["biggive-quote.scss"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["biggive-quote.css"]
22
+ };
23
+ }
24
+ static get properties() {
25
+ return {
26
+ "spaceBelow": {
27
+ "type": "number",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "number",
31
+ "resolved": "number",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": "Space below component"
39
+ },
40
+ "attribute": "space-below",
41
+ "reflect": false,
42
+ "defaultValue": "0"
84
43
  },
85
- "attribute": "quote",
86
- "reflect": false,
87
- "defaultValue": "''"
88
- },
89
- "attribution": {
90
- "type": "string",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "string",
94
- "resolved": "string",
95
- "references": {}
44
+ "defaultTextColour": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": "Default text colour"
57
+ },
58
+ "attribute": "default-text-colour",
59
+ "reflect": false,
60
+ "defaultValue": "'black'"
96
61
  },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": "Attribution text"
62
+ "quote": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "Quote text"
75
+ },
76
+ "attribute": "quote",
77
+ "reflect": false,
78
+ "defaultValue": "''"
102
79
  },
103
- "attribute": "attribution",
104
- "reflect": false,
105
- "defaultValue": "''"
106
- }
107
- }; }
80
+ "attribution": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Attribution text"
93
+ },
94
+ "attribute": "attribution",
95
+ "reflect": false,
96
+ "defaultValue": "''"
97
+ }
98
+ };
99
+ }
108
100
  }
@@ -218,6 +218,26 @@ a:hover {
218
218
  background-color: #FFFFFF;
219
219
  }
220
220
 
221
+ .button-white {
222
+ color: #2C089B;
223
+ background-color: #FFFFFF;
224
+ border-color: #FFFFFF;
225
+ }
226
+ .button-white:hover {
227
+ color: #FFFFFF;
228
+ background-color: #2C089B;
229
+ }
230
+
231
+ .button-black {
232
+ color: #FFFFFF;
233
+ background-color: #000000;
234
+ border-color: #000000;
235
+ }
236
+ .button-black:hover {
237
+ color: #000000;
238
+ background-color: #FFFFFF;
239
+ }
240
+
221
241
  .button-clear-primary {
222
242
  color: #2C089B;
223
243
  background-color: transparent;
@@ -1,11 +1,13 @@
1
- import { Component, h, Prop, State, Event } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import { faMagnifyingGlass, faX } from '@fortawesome/pro-solid-svg-icons';
3
3
  export class BigGiveSearch {
4
4
  constructor() {
5
- this.searchText = null;
6
5
  this.clearSearchText = () => {
7
6
  this.searchText = '';
8
7
  };
8
+ this.searchText = null;
9
+ this.placeholderText = undefined;
10
+ this.buttonText = undefined;
9
11
  }
10
12
  handleSearchTextChanged(event) {
11
13
  this.searchText = event.target.value;
@@ -19,81 +21,79 @@ export class BigGiveSearch {
19
21
  }
20
22
  }
21
23
  render() {
22
- return (h("div", { class: "padding-enclosure" },
23
- h("div", { class: "outer-container" },
24
- h("div", { class: "triangle triangle-before" }),
25
- h("div", { class: "inner-container" },
26
- h("h2", null, "Find a charity or project"),
27
- h("div", { class: "search-box" },
28
- h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" },
29
- h("path", { d: faMagnifyingGlass.icon[4].toString() })),
30
- h("input", { type: "text", value: this.searchText, placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) }),
31
- h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", id: "x-icon", viewBox: "0 0 512 512", onClick: () => this.clearSearchText() },
32
- h("path", { d: faX.icon[4].toString() }))),
33
- h("button", { onClick: () => this.handleSearchButtonPressed() }, this.buttonText)),
34
- h("div", { class: "triangle triangle-after" }))));
24
+ return (h("div", { class: "padding-enclosure" }, h("div", { class: "outer-container" }, h("div", { class: "triangle triangle-before" }), h("div", { class: "inner-container" }, h("h2", null, "Find a charity or project"), h("div", { class: "search-box" }, 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, placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) }), h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", id: "x-icon", viewBox: "0 0 512 512", onClick: () => this.clearSearchText() }, h("path", { d: faX.icon[4].toString() }))), h("button", { onClick: () => this.handleSearchButtonPressed() }, this.buttonText)), h("div", { class: "triangle triangle-after" }))));
35
25
  }
36
26
  static get is() { return "biggive-search"; }
37
27
  static get encapsulation() { return "shadow"; }
38
- static get originalStyleUrls() { return {
39
- "$": ["biggive-search.scss"]
40
- }; }
41
- static get styleUrls() { return {
42
- "$": ["biggive-search.css"]
43
- }; }
44
- static get properties() { return {
45
- "placeholderText": {
46
- "type": "string",
47
- "mutable": false,
48
- "complexType": {
49
- "original": "string",
50
- "resolved": "string",
51
- "references": {}
52
- },
53
- "required": false,
54
- "optional": false,
55
- "docs": {
56
- "tags": [],
57
- "text": "Defines the text displayed as the placeholder in the input field\nbefore the user types anything"
58
- },
59
- "attribute": "placeholder-text",
60
- "reflect": false
61
- },
62
- "buttonText": {
63
- "type": "string",
64
- "mutable": false,
65
- "complexType": {
66
- "original": "string",
67
- "resolved": "string",
68
- "references": {}
69
- },
70
- "required": false,
71
- "optional": false,
72
- "docs": {
73
- "tags": [],
74
- "text": "Defines the text on the search button"
75
- },
76
- "attribute": "button-text",
77
- "reflect": false
78
- }
79
- }; }
80
- static get states() { return {
81
- "searchText": {}
82
- }; }
83
- static get events() { return [{
84
- "method": "doSearch",
85
- "name": "doSearch",
86
- "bubbles": true,
87
- "cancelable": true,
88
- "composed": true,
89
- "docs": {
90
- "tags": [],
91
- "text": "This event `doSearch` event is emitted and propogates to the parent\ncomponent which handles it"
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["biggive-search.scss"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["biggive-search.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "placeholderText": {
41
+ "type": "string",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "string",
45
+ "resolved": "string",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": "Defines the text displayed as the placeholder in the input field\nbefore the user types anything"
53
+ },
54
+ "attribute": "placeholder-text",
55
+ "reflect": false
92
56
  },
93
- "complexType": {
94
- "original": "string",
95
- "resolved": "string",
96
- "references": {}
57
+ "buttonText": {
58
+ "type": "string",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "string",
62
+ "resolved": "string",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "Defines the text on the search button"
70
+ },
71
+ "attribute": "button-text",
72
+ "reflect": false
97
73
  }
98
- }]; }
74
+ };
75
+ }
76
+ static get states() {
77
+ return {
78
+ "searchText": {}
79
+ };
80
+ }
81
+ static get events() {
82
+ return [{
83
+ "method": "doSearch",
84
+ "name": "doSearch",
85
+ "bubbles": true,
86
+ "cancelable": true,
87
+ "composed": true,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "This event `doSearch` event is emitted and propogates to the parent\ncomponent which handles it"
91
+ },
92
+ "complexType": {
93
+ "original": "string",
94
+ "resolved": "string",
95
+ "references": {}
96
+ }
97
+ }];
98
+ }
99
99
  }
@@ -218,6 +218,26 @@ a:hover {
218
218
  background-color: #FFFFFF;
219
219
  }
220
220
 
221
+ .button-white {
222
+ color: #2C089B;
223
+ background-color: #FFFFFF;
224
+ border-color: #FFFFFF;
225
+ }
226
+ .button-white:hover {
227
+ color: #FFFFFF;
228
+ background-color: #2C089B;
229
+ }
230
+
231
+ .button-black {
232
+ color: #FFFFFF;
233
+ background-color: #000000;
234
+ border-color: #000000;
235
+ }
236
+ .button-black:hover {
237
+ color: #000000;
238
+ background-color: #FFFFFF;
239
+ }
240
+
221
241
  .button-clear-primary {
222
242
  color: #2C089B;
223
243
  background-color: transparent;