@biggive/components 1.0.95 → 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 (244) 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 +24 -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 +24 -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 +24 -0
  56. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +214 -251
  57. package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +1 -1
  58. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +24 -0
  59. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.js +102 -116
  60. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +24 -0
  61. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.js +102 -112
  62. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +24 -0
  63. package/dist/collection/components/biggive-branded-image/biggive-branded-image.js +85 -96
  64. package/dist/collection/components/biggive-button/biggive-button.css +24 -0
  65. package/dist/collection/components/biggive-button/biggive-button.js +137 -153
  66. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +24 -0
  67. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +376 -440
  68. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +26 -0
  69. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +322 -385
  70. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +61 -0
  71. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +123 -124
  72. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +6 -0
  73. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +24 -0
  74. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +238 -292
  75. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +24 -0
  76. package/dist/collection/components/biggive-category-icon/biggive-category-icon.js +102 -116
  77. package/dist/collection/components/biggive-footer/biggive-footer.css +58 -1
  78. package/dist/collection/components/biggive-footer/biggive-footer.js +15 -39
  79. package/dist/collection/components/biggive-footer/biggive-footer.stories.js +8 -1
  80. package/dist/collection/components/biggive-form/biggive-form.js +12 -9
  81. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.css +557 -0
  82. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +95 -9
  83. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.stories.js +9 -0
  84. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.css +520 -0
  85. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.js +94 -0
  86. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.js +23 -0
  87. package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +12 -9
  88. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +24 -0
  89. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +51 -52
  90. package/dist/collection/components/biggive-grid/biggive-grid.css +39 -0
  91. package/dist/collection/components/biggive-grid/biggive-grid.js +68 -72
  92. package/dist/collection/components/biggive-header/biggive-header.css +94 -2
  93. package/dist/collection/components/biggive-header/biggive-header.js +64 -69
  94. package/dist/collection/components/biggive-header/biggive-header.stories.js +2 -1
  95. package/dist/collection/components/biggive-heading/biggive-heading.css +24 -0
  96. package/dist/collection/components/biggive-heading/biggive-heading.js +136 -152
  97. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +48 -11
  98. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +240 -283
  99. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +24 -0
  100. package/dist/collection/components/biggive-icon-group/biggive-icon-group.js +51 -54
  101. package/dist/collection/components/biggive-image/biggive-image.css +24 -0
  102. package/dist/collection/components/biggive-image/biggive-image.js +119 -133
  103. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +43 -5
  104. package/dist/collection/components/biggive-image-feature/biggive-image-feature.js +232 -270
  105. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +24 -0
  106. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +85 -94
  107. package/dist/collection/components/biggive-page-column/biggive-page-column.css +506 -1
  108. package/dist/collection/components/biggive-page-column/biggive-page-column.js +11 -7
  109. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +34 -1
  110. package/dist/collection/components/biggive-page-columns/biggive-page-columns.js +34 -36
  111. package/dist/collection/components/biggive-page-section/biggive-page-section.css +24 -0
  112. package/dist/collection/components/biggive-page-section/biggive-page-section.js +85 -93
  113. package/dist/collection/components/biggive-popup/biggive-popup.css +547 -0
  114. package/dist/collection/components/biggive-popup/biggive-popup.js +47 -0
  115. package/dist/collection/components/biggive-popup/biggive-popup.stories.js +8 -0
  116. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +24 -0
  117. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +68 -76
  118. package/dist/collection/components/biggive-quote/biggive-quote.css +24 -0
  119. package/dist/collection/components/biggive-quote/biggive-quote.js +85 -93
  120. package/dist/collection/components/biggive-search/biggive-search.css +24 -0
  121. package/dist/collection/components/biggive-search/biggive-search.js +74 -74
  122. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +24 -0
  123. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +85 -94
  124. package/dist/collection/components/biggive-tab/biggive-tab.css +24 -0
  125. package/dist/collection/components/biggive-tab/biggive-tab.js +34 -34
  126. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +24 -0
  127. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +51 -52
  128. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +33 -1
  129. package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +178 -208
  130. package/dist/collection/components/biggive-video/biggive-video.css +24 -0
  131. package/dist/collection/components/biggive-video/biggive-video.js +68 -72
  132. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +43 -5
  133. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +238 -278
  134. package/dist/components/biggive-article-card.js +1 -34
  135. package/dist/components/biggive-back-to-top.js +1 -1
  136. package/dist/components/biggive-basic-card.js +1 -34
  137. package/dist/components/biggive-beneficiary-icon.js +1 -16
  138. package/dist/components/biggive-boxed-content.js +1 -16
  139. package/dist/components/biggive-branded-image.js +1 -13
  140. package/dist/components/biggive-button2.js +2 -23
  141. package/dist/components/biggive-call-to-action.js +1 -61
  142. package/dist/components/biggive-campaign-card-filter-grid.js +55 -22
  143. package/dist/components/biggive-campaign-card.js +2 -49
  144. package/dist/components/biggive-campaign-highlights.js +1 -40
  145. package/dist/components/biggive-category-icon.js +1 -16
  146. package/dist/components/biggive-footer.js +4 -10
  147. package/dist/components/biggive-form-field-select-option.d.ts +11 -0
  148. package/dist/components/biggive-form-field-select-option.js +6 -0
  149. package/dist/components/biggive-form-field-select-option2.js +46 -0
  150. package/dist/components/biggive-form-field-select.js +1 -28
  151. package/dist/components/biggive-form-field-select2.js +44 -0
  152. package/dist/components/biggive-formatted-text.js +1 -7
  153. package/dist/components/biggive-grid.js +1 -10
  154. package/dist/components/biggive-header.js +13 -8
  155. package/dist/components/biggive-heading.js +1 -22
  156. package/dist/components/biggive-hero-image.js +1 -40
  157. package/dist/components/biggive-icon-group.js +1 -7
  158. package/dist/components/biggive-image-feature.js +1 -37
  159. package/dist/components/biggive-image.js +1 -19
  160. package/dist/components/biggive-misc-icon2.js +1 -13
  161. package/dist/components/biggive-page-column.js +1 -1
  162. package/dist/components/biggive-page-columns.js +1 -4
  163. package/dist/components/biggive-page-section.js +1 -13
  164. package/dist/components/biggive-popup.d.ts +11 -0
  165. package/dist/components/biggive-popup.js +6 -0
  166. package/dist/components/biggive-popup2.js +41 -0
  167. package/dist/components/biggive-progress-bar2.js +1 -10
  168. package/dist/components/biggive-quote.js +1 -13
  169. package/dist/components/biggive-search.js +5 -3
  170. package/dist/components/biggive-social-icon.js +41 -1
  171. package/dist/components/biggive-tab.js +1 -4
  172. package/dist/components/biggive-tabbed-content.js +1 -7
  173. package/dist/components/biggive-totalizer.js +1 -28
  174. package/dist/components/biggive-video-feature.js +1 -40
  175. package/dist/components/biggive-video.js +1 -10
  176. package/dist/components/fontawesome-icons.js +11 -21
  177. package/dist/components/index.d.ts +2 -0
  178. package/dist/components/index.js +2 -0
  179. package/dist/components/index2.js +164 -0
  180. package/dist/esm/biggive-article-card.entry.js +2 -35
  181. package/dist/esm/biggive-back-to-top_23.entry.js +599 -0
  182. package/dist/esm/biggive-basic-card.entry.js +2 -35
  183. package/dist/esm/biggive-beneficiary-icon.entry.js +4 -19
  184. package/dist/esm/biggive-boxed-content.entry.js +2 -17
  185. package/dist/esm/biggive-branded-image.entry.js +2 -14
  186. package/dist/esm/biggive-category-icon.entry.js +4 -19
  187. package/dist/esm/biggive-form.entry.js +1 -1
  188. package/dist/esm/biggive-formatted-text.entry.js +2 -8
  189. package/dist/esm/biggive-icon-group.entry.js +2 -8
  190. package/dist/esm/biggive-image.entry.js +2 -20
  191. package/dist/esm/biggive-quote.entry.js +2 -14
  192. package/dist/esm/biggive-search.entry.js +6 -4
  193. package/dist/esm/biggive-tab.entry.js +2 -5
  194. package/dist/esm/biggive-tabbed-content.entry.js +2 -8
  195. package/dist/esm/biggive-text-input.entry.js +1 -1
  196. package/dist/esm/biggive-video.entry.js +2 -11
  197. package/dist/esm/biggive.js +3 -3
  198. package/dist/esm/{fontawesome-icons-562459be.js → fontawesome-icons-ff9155ca.js} +11 -21
  199. package/dist/esm/index-7cfe62c2.js +164 -0
  200. package/dist/esm/{index-4395d470.js → index-b3c47751.js} +734 -495
  201. package/dist/esm/loader.js +3 -3
  202. package/dist/esm/polyfills/css-shim.js +1 -1
  203. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +2 -6
  204. package/dist/types/components/biggive-form-field-select/biggive-form-field-select.d.ts +17 -0
  205. package/dist/types/components/biggive-form-field-select/biggive-form-field-select.stories.d.ts +5 -0
  206. package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.d.ts +20 -0
  207. package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.d.ts +13 -0
  208. package/dist/types/components/biggive-header/biggive-header.d.ts +1 -0
  209. package/dist/types/components/biggive-popup/biggive-popup.d.ts +6 -0
  210. package/dist/types/components/biggive-popup/biggive-popup.stories.d.ts +5 -0
  211. package/dist/types/components.d.ts +73 -6
  212. package/dist/types/stencil-public-runtime.d.ts +20 -4
  213. package/hydrate/index.d.ts +1 -1
  214. package/hydrate/index.js +1133 -1561
  215. package/loader/package.json +1 -0
  216. package/package.json +4 -2
  217. package/dist/biggive/p-07962fc5.entry.js +0 -1
  218. package/dist/biggive/p-1024263c.entry.js +0 -1
  219. package/dist/biggive/p-1805f9ab.js +0 -2
  220. package/dist/biggive/p-1b78efa0.entry.js +0 -1
  221. package/dist/biggive/p-5dbda89c.entry.js +0 -1
  222. package/dist/biggive/p-5f1b0106.entry.js +0 -1
  223. package/dist/biggive/p-6326f936.entry.js +0 -1
  224. package/dist/biggive/p-72a6f0a8.entry.js +0 -1
  225. package/dist/biggive/p-74b5d4c7.entry.js +0 -1
  226. package/dist/biggive/p-7eee1e58.entry.js +0 -1
  227. package/dist/biggive/p-871707f4.js +0 -6
  228. package/dist/biggive/p-8f605036.entry.js +0 -1
  229. package/dist/biggive/p-9125d753.entry.js +0 -1
  230. package/dist/biggive/p-bdb476eb.entry.js +0 -1
  231. package/dist/biggive/p-c9aaa5c3.entry.js +0 -1
  232. package/dist/biggive/p-df6daa79.entry.js +0 -1
  233. package/dist/biggive/p-ec9b42b3.js +0 -6
  234. package/dist/biggive/p-f9388477.entry.js +0 -1
  235. package/dist/biggive/p-f98681a5.entry.js +0 -1
  236. package/dist/biggive/p-faa6817c.entry.js +0 -1
  237. package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +0 -923
  238. package/dist/cjs/biggive-form-field-select.cjs.entry.js +0 -19
  239. package/dist/cjs/index.es-d3570170.js +0 -201
  240. package/dist/components/biggive-social-icon2.js +0 -55
  241. package/dist/components/index.es.js +0 -169
  242. package/dist/esm/biggive-back-to-top_20.entry.js +0 -900
  243. package/dist/esm/biggive-form-field-select.entry.js +0 -15
  244. 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
  }
@@ -109,6 +109,10 @@ a:hover {
109
109
  fill: #000000;
110
110
  }
111
111
 
112
+ .fill-red {
113
+ fill: red;
114
+ }
115
+
112
116
  .background-colour-hover-primary:hover,
113
117
  .background-colour-primary {
114
118
  background-color: #2C089B;
@@ -214,6 +218,26 @@ a:hover {
214
218
  background-color: #FFFFFF;
215
219
  }
216
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
+
217
241
  .button-clear-primary {
218
242
  color: #2C089B;
219
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
  }
@@ -109,6 +109,10 @@ a:hover {
109
109
  fill: #000000;
110
110
  }
111
111
 
112
+ .fill-red {
113
+ fill: red;
114
+ }
115
+
112
116
  .background-colour-hover-primary:hover,
113
117
  .background-colour-primary {
114
118
  background-color: #2C089B;
@@ -214,6 +218,26 @@ a:hover {
214
218
  background-color: #FFFFFF;
215
219
  }
216
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
+
217
241
  .button-clear-primary {
218
242
  color: #2C089B;
219
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
  }
@@ -109,6 +109,10 @@ a:hover {
109
109
  fill: #000000;
110
110
  }
111
111
 
112
+ .fill-red {
113
+ fill: red;
114
+ }
115
+
112
116
  .background-colour-hover-primary:hover,
113
117
  .background-colour-primary {
114
118
  background-color: #2C089B;
@@ -214,6 +218,26 @@ a:hover {
214
218
  background-color: #FFFFFF;
215
219
  }
216
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
+
217
241
  .button-clear-primary {
218
242
  color: #2C089B;
219
243
  background-color: transparent;