@biggive/components 202303201257.0.0 → 202303231047.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.
Files changed (157) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/{p-5406c558.entry.js → p-044de4a5.entry.js} +1 -1
  3. package/dist/biggive/p-0f955c67.entry.js +1 -0
  4. package/dist/biggive/{p-4402efe9.entry.js → p-12035aa2.entry.js} +1 -1
  5. package/dist/biggive/{p-42649676.entry.js → p-14a9d9a4.entry.js} +1 -1
  6. package/dist/biggive/p-15630ae5.entry.js +1 -0
  7. package/dist/biggive/{p-63abb338.entry.js → p-1e8f981c.entry.js} +1 -1
  8. package/dist/biggive/{p-b73fddaa.entry.js → p-241aed7a.entry.js} +1 -1
  9. package/dist/biggive/{p-f6dedf7d.entry.js → p-2fa6188d.entry.js} +1 -1
  10. package/dist/biggive/{p-87487165.entry.js → p-518fd1c9.entry.js} +1 -1
  11. package/dist/biggive/{p-2c639bd5.entry.js → p-58521290.entry.js} +1 -1
  12. package/dist/biggive/{p-ff8bc382.js → p-740166e9.js} +2 -2
  13. package/dist/biggive/{p-41588003.entry.js → p-76413b3e.entry.js} +1 -1
  14. package/dist/biggive/{p-26c0b6cf.entry.js → p-7be9d211.entry.js} +1 -1
  15. package/dist/biggive/{p-01d03da2.entry.js → p-d8ec56e6.entry.js} +1 -1
  16. package/dist/biggive/{p-f375edb7.entry.js → p-f224b742.entry.js} +1 -1
  17. package/dist/biggive/{p-ead5a5ce.entry.js → p-fe1f033c.entry.js} +1 -1
  18. package/dist/cjs/{biggive-accordion_35.cjs.entry.js → biggive-accordion_43.cjs.entry.js} +445 -32
  19. package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -2
  20. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
  21. package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -2
  22. package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
  23. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  24. package/dist/cjs/biggive-header.cjs.entry.js +1 -1
  25. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  26. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  27. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  28. package/dist/cjs/biggive-popup-standalone.cjs.entry.js +1 -1
  29. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  30. package/dist/cjs/biggive-table.cjs.entry.js +2 -2
  31. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  32. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive.cjs.js +2 -2
  34. package/dist/cjs/{index-8dd1da4d.js → index-8dcaaf94.js} +3 -0
  35. package/dist/cjs/loader.cjs.js +2 -2
  36. package/dist/collection/collection-manifest.json +5 -0
  37. package/dist/collection/components/biggive-accordion/biggive-accordion.css +2 -2
  38. package/dist/collection/components/biggive-accordion/biggive-accordion.stories.js +3 -3
  39. package/dist/collection/components/biggive-article-card/biggive-article-card.css +36 -13
  40. package/dist/collection/components/biggive-article-card/biggive-article-card.js +258 -32
  41. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +1 -1
  42. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +1 -1
  43. package/dist/collection/components/biggive-biography-card/biggive-biography-card.css +592 -1
  44. package/dist/collection/components/biggive-biography-card/biggive-biography-card.js +218 -8
  45. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +1 -1
  46. package/dist/collection/components/biggive-button/biggive-button.css +110 -0
  47. package/dist/collection/components/biggive-carousel/biggive-carousel.css +18 -5
  48. package/dist/collection/components/biggive-carousel/biggive-carousel.js +18 -11
  49. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +1 -1
  50. package/dist/collection/components/biggive-filtered-carousel/biggive-filtered-carousel.css +34 -0
  51. package/dist/collection/components/biggive-filtered-carousel/biggive-filtered-carousel.js +166 -0
  52. package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.css +420 -0
  53. package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.js +144 -0
  54. package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.stories.js +53 -0
  55. package/dist/collection/components/biggive-grid/biggive-grid.css +166 -6
  56. package/dist/collection/components/biggive-grid/biggive-grid.js +28 -4
  57. package/dist/collection/components/biggive-icon-button/biggive-icon-button.css +418 -0
  58. package/dist/collection/components/biggive-icon-button/biggive-icon-button.js +400 -0
  59. package/dist/collection/components/biggive-icon-button/biggive-icon-button.stories.js +116 -0
  60. package/dist/collection/components/biggive-image-button/biggive-image-button.css +369 -0
  61. package/dist/collection/components/biggive-image-button/biggive-image-button.js +401 -0
  62. package/dist/collection/components/biggive-image-button/biggive-image-button.stories.js +115 -0
  63. package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +1 -1
  64. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +1 -1
  65. package/dist/collection/components/biggive-page-section/biggive-page-section.css +33 -1
  66. package/dist/collection/components/biggive-sheet/biggive-sheet.css +379 -0
  67. package/dist/collection/components/biggive-sheet/biggive-sheet.js +111 -0
  68. package/dist/collection/components/biggive-sheet/biggive-sheet.stories.js +34 -0
  69. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +1 -1
  70. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +9 -5
  71. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +33 -3
  72. package/dist/collection/components/biggive-table/biggive-table.css +1 -1
  73. package/dist/collection/components/biggive-timeline/biggive-timeline.css +9 -11
  74. package/dist/collection/components/biggive-timeline/biggive-timeline.js +38 -5
  75. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +1 -1
  76. package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +1 -1
  77. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +1 -1
  78. package/dist/components/biggive-accordion.js +1 -1
  79. package/dist/components/biggive-article-card.js +44 -9
  80. package/dist/components/biggive-basic-card.js +1 -1
  81. package/dist/components/biggive-beneficiary-icon.js +1 -1
  82. package/dist/components/biggive-biography-card.js +40 -3
  83. package/dist/components/biggive-boxed-content.js +1 -1
  84. package/dist/components/biggive-button2.js +1 -1
  85. package/dist/components/biggive-carousel.js +1 -83
  86. package/dist/components/biggive-carousel2.js +92 -0
  87. package/dist/components/biggive-category-icon.js +1 -1
  88. package/dist/components/biggive-filtered-carousel.d.ts +11 -0
  89. package/dist/components/biggive-filtered-carousel.js +99 -0
  90. package/dist/components/biggive-generic-icon.d.ts +11 -0
  91. package/dist/components/biggive-generic-icon.js +6 -0
  92. package/dist/components/biggive-generic-icon2.js +59 -0
  93. package/dist/components/biggive-grid.js +5 -3
  94. package/dist/components/biggive-icon-button.d.ts +11 -0
  95. package/dist/components/biggive-icon-button.js +89 -0
  96. package/dist/components/biggive-image-button.d.ts +11 -0
  97. package/dist/components/biggive-image-button.js +83 -0
  98. package/dist/components/biggive-main-menu.js +1 -1
  99. package/dist/components/biggive-misc-icon2.js +1 -1
  100. package/dist/components/biggive-page-section.js +1 -1
  101. package/dist/components/biggive-sheet.d.ts +11 -0
  102. package/dist/components/biggive-sheet.js +60 -0
  103. package/dist/components/biggive-social-icon2.js +1 -1
  104. package/dist/components/biggive-tabbed-content.js +34 -4
  105. package/dist/components/biggive-table.js +1 -1
  106. package/dist/components/biggive-timeline.js +39 -6
  107. package/dist/components/biggive-tipping-slider.js +2 -2
  108. package/dist/components/biggive-totalizer.js +1 -1
  109. package/dist/components/index.d.ts +5 -0
  110. package/dist/components/index.js +5 -0
  111. package/dist/esm/{biggive-accordion_35.entry.js → biggive-accordion_43.entry.js} +438 -33
  112. package/dist/esm/biggive-basic-card.entry.js +2 -2
  113. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  114. package/dist/esm/biggive-boxed-content.entry.js +2 -2
  115. package/dist/esm/biggive-category-icon.entry.js +2 -2
  116. package/dist/esm/biggive-form.entry.js +1 -1
  117. package/dist/esm/biggive-header.entry.js +1 -1
  118. package/dist/esm/biggive-icon-group.entry.js +1 -1
  119. package/dist/esm/biggive-nav-group.entry.js +1 -1
  120. package/dist/esm/biggive-nav-item.entry.js +1 -1
  121. package/dist/esm/biggive-popup-standalone.entry.js +1 -1
  122. package/dist/esm/biggive-search.entry.js +1 -1
  123. package/dist/esm/biggive-table.entry.js +2 -2
  124. package/dist/esm/biggive-text-input.entry.js +1 -1
  125. package/dist/esm/biggive-video.entry.js +1 -1
  126. package/dist/esm/biggive.js +2 -2
  127. package/dist/esm/{index-801eebfb.js → index-341903f8.js} +3 -0
  128. package/dist/esm/loader.js +2 -2
  129. package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +17 -42
  130. package/dist/types/components/biggive-biography-card/biggive-biography-card.d.ts +12 -13
  131. package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +2 -1
  132. package/dist/types/components/biggive-filtered-carousel/biggive-filtered-carousel.d.ts +12 -0
  133. package/dist/types/components/biggive-generic-icon/biggive-generic-icon.d.ts +10 -0
  134. package/dist/types/components/biggive-generic-icon/biggive-generic-icon.stories.d.ts +38 -0
  135. package/dist/types/components/biggive-grid/biggive-grid.d.ts +3 -7
  136. package/dist/types/components/biggive-icon-button/biggive-icon-button.d.ts +28 -0
  137. package/dist/types/components/biggive-icon-button/biggive-icon-button.stories.d.ts +81 -0
  138. package/dist/types/components/biggive-image-button/biggive-image-button.d.ts +28 -0
  139. package/dist/types/components/biggive-image-button/biggive-image-button.stories.d.ts +78 -0
  140. package/dist/types/components/biggive-sheet/biggive-sheet.d.ts +15 -0
  141. package/dist/types/components/biggive-sheet/biggive-sheet.stories.d.ts +21 -0
  142. package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +3 -0
  143. package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +3 -0
  144. package/dist/types/components.d.ts +229 -126
  145. package/hydrate/index.js +517 -51
  146. package/package.json +1 -1
  147. package/dist/biggive/p-265a6be4.entry.js +0 -1
  148. package/dist/biggive/p-4a1ba0c4.entry.js +0 -1
  149. package/dist/biggive/p-4adb4dce.entry.js +0 -1
  150. package/dist/biggive/p-87edb8c6.entry.js +0 -1
  151. package/dist/biggive/p-8feb91ae.entry.js +0 -1
  152. package/dist/cjs/biggive-article-card.cjs.entry.js +0 -31
  153. package/dist/cjs/biggive-biography-card.cjs.entry.js +0 -23
  154. package/dist/cjs/biggive-formatted-text.cjs.entry.js +0 -22
  155. package/dist/esm/biggive-article-card.entry.js +0 -27
  156. package/dist/esm/biggive-biography-card.entry.js +0 -19
  157. package/dist/esm/biggive-formatted-text.entry.js +0 -18
@@ -0,0 +1,401 @@
1
+ import { h } from '@stencil/core';
2
+ export class BiggiveImageButton {
3
+ constructor() {
4
+ this.handleButtonClick = (event) => {
5
+ this.doButtonClick.emit({ event: event, url: event.target.parentElement.href });
6
+ };
7
+ this.spaceBelow = 1;
8
+ this.backgroundColour = 'white';
9
+ this.backgroundPadding = 0;
10
+ this.text = undefined;
11
+ this.textColour = 'black';
12
+ this.imageUrl = undefined;
13
+ this.imageStyle = 'cover';
14
+ this.url = undefined;
15
+ this.openInNewTab = false;
16
+ this.size = 'medium';
17
+ this.arrow = false;
18
+ this.arrowColour = 'black';
19
+ this.circle = false;
20
+ this.shadow = false;
21
+ this.centered = false;
22
+ this.rounded = false;
23
+ this.buttonId = undefined;
24
+ }
25
+ render() {
26
+ return (h("div", { class: 'container space-below-' +
27
+ this.spaceBelow +
28
+ ' background-colour-' +
29
+ this.backgroundColour +
30
+ ' background-padding-' +
31
+ this.backgroundPadding +
32
+ ' centered-' +
33
+ this.centered +
34
+ ' rounded-' +
35
+ this.rounded +
36
+ ' shadow-' +
37
+ 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: 'image-wrap ' + ' image-style-' + this.imageStyle + ' size-' + this.size + ' circle-' + this.circle.toString(), style: { backgroundImage: 'url(' + this.imageUrl + ')' } }), 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))));
38
+ }
39
+ static get is() { return "biggive-image-button"; }
40
+ static get encapsulation() { return "shadow"; }
41
+ static get originalStyleUrls() {
42
+ return {
43
+ "$": ["biggive-image-button.scss"]
44
+ };
45
+ }
46
+ static get styleUrls() {
47
+ return {
48
+ "$": ["biggive-image-button.css"]
49
+ };
50
+ }
51
+ static get properties() {
52
+ return {
53
+ "spaceBelow": {
54
+ "type": "number",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "spacingOption",
58
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
59
+ "references": {
60
+ "spacingOption": {
61
+ "location": "import",
62
+ "path": "../../globals/spacing-option"
63
+ }
64
+ }
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": ""
71
+ },
72
+ "attribute": "space-below",
73
+ "reflect": false,
74
+ "defaultValue": "1"
75
+ },
76
+ "backgroundColour": {
77
+ "type": "string",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "brandColour",
81
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
82
+ "references": {
83
+ "brandColour": {
84
+ "location": "import",
85
+ "path": "../../globals/brand-colour"
86
+ }
87
+ }
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": ""
94
+ },
95
+ "attribute": "background-colour",
96
+ "reflect": false,
97
+ "defaultValue": "'white'"
98
+ },
99
+ "backgroundPadding": {
100
+ "type": "number",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "spacingOption",
104
+ "resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
105
+ "references": {
106
+ "spacingOption": {
107
+ "location": "import",
108
+ "path": "../../globals/spacing-option"
109
+ }
110
+ }
111
+ },
112
+ "required": false,
113
+ "optional": false,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": ""
117
+ },
118
+ "attribute": "background-padding",
119
+ "reflect": false,
120
+ "defaultValue": "0"
121
+ },
122
+ "text": {
123
+ "type": "string",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "string",
127
+ "resolved": "string",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "attribute": "text",
137
+ "reflect": false
138
+ },
139
+ "textColour": {
140
+ "type": "string",
141
+ "mutable": false,
142
+ "complexType": {
143
+ "original": "brandColour",
144
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
145
+ "references": {
146
+ "brandColour": {
147
+ "location": "import",
148
+ "path": "../../globals/brand-colour"
149
+ }
150
+ }
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": ""
157
+ },
158
+ "attribute": "text-colour",
159
+ "reflect": false,
160
+ "defaultValue": "'black'"
161
+ },
162
+ "imageUrl": {
163
+ "type": "string",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "string",
167
+ "resolved": "string",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": ""
175
+ },
176
+ "attribute": "image-url",
177
+ "reflect": false
178
+ },
179
+ "imageStyle": {
180
+ "type": "string",
181
+ "mutable": false,
182
+ "complexType": {
183
+ "original": "string",
184
+ "resolved": "string",
185
+ "references": {}
186
+ },
187
+ "required": false,
188
+ "optional": false,
189
+ "docs": {
190
+ "tags": [],
191
+ "text": ""
192
+ },
193
+ "attribute": "image-style",
194
+ "reflect": false,
195
+ "defaultValue": "'cover'"
196
+ },
197
+ "url": {
198
+ "type": "string",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "string",
202
+ "resolved": "string",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": ""
210
+ },
211
+ "attribute": "url",
212
+ "reflect": false
213
+ },
214
+ "openInNewTab": {
215
+ "type": "boolean",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "boolean",
219
+ "resolved": "boolean",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": ""
227
+ },
228
+ "attribute": "open-in-new-tab",
229
+ "reflect": false,
230
+ "defaultValue": "false"
231
+ },
232
+ "size": {
233
+ "type": "string",
234
+ "mutable": false,
235
+ "complexType": {
236
+ "original": "'small' | 'medium' | 'large' | 'x-large' | 'xx-large'",
237
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"xx-large\"",
238
+ "references": {}
239
+ },
240
+ "required": false,
241
+ "optional": false,
242
+ "docs": {
243
+ "tags": [],
244
+ "text": ""
245
+ },
246
+ "attribute": "size",
247
+ "reflect": false,
248
+ "defaultValue": "'medium'"
249
+ },
250
+ "arrow": {
251
+ "type": "boolean",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "boolean",
255
+ "resolved": "boolean",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": ""
263
+ },
264
+ "attribute": "arrow",
265
+ "reflect": false,
266
+ "defaultValue": "false"
267
+ },
268
+ "arrowColour": {
269
+ "type": "string",
270
+ "mutable": false,
271
+ "complexType": {
272
+ "original": "brandColour",
273
+ "resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
274
+ "references": {
275
+ "brandColour": {
276
+ "location": "import",
277
+ "path": "../../globals/brand-colour"
278
+ }
279
+ }
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": ""
286
+ },
287
+ "attribute": "arrow-colour",
288
+ "reflect": false,
289
+ "defaultValue": "'black'"
290
+ },
291
+ "circle": {
292
+ "type": "boolean",
293
+ "mutable": false,
294
+ "complexType": {
295
+ "original": "boolean",
296
+ "resolved": "boolean",
297
+ "references": {}
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": ""
304
+ },
305
+ "attribute": "circle",
306
+ "reflect": false,
307
+ "defaultValue": "false"
308
+ },
309
+ "shadow": {
310
+ "type": "boolean",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "boolean",
314
+ "resolved": "boolean",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": ""
322
+ },
323
+ "attribute": "shadow",
324
+ "reflect": false,
325
+ "defaultValue": "false"
326
+ },
327
+ "centered": {
328
+ "type": "boolean",
329
+ "mutable": false,
330
+ "complexType": {
331
+ "original": "boolean",
332
+ "resolved": "boolean",
333
+ "references": {}
334
+ },
335
+ "required": false,
336
+ "optional": false,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": ""
340
+ },
341
+ "attribute": "centered",
342
+ "reflect": false,
343
+ "defaultValue": "false"
344
+ },
345
+ "rounded": {
346
+ "type": "boolean",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "boolean",
350
+ "resolved": "boolean",
351
+ "references": {}
352
+ },
353
+ "required": false,
354
+ "optional": false,
355
+ "docs": {
356
+ "tags": [],
357
+ "text": ""
358
+ },
359
+ "attribute": "rounded",
360
+ "reflect": false,
361
+ "defaultValue": "false"
362
+ },
363
+ "buttonId": {
364
+ "type": "string",
365
+ "mutable": false,
366
+ "complexType": {
367
+ "original": "undefined | string",
368
+ "resolved": "string | undefined",
369
+ "references": {}
370
+ },
371
+ "required": false,
372
+ "optional": false,
373
+ "docs": {
374
+ "tags": [],
375
+ "text": ""
376
+ },
377
+ "attribute": "button-id",
378
+ "reflect": false,
379
+ "defaultValue": "undefined"
380
+ }
381
+ };
382
+ }
383
+ static get events() {
384
+ return [{
385
+ "method": "doButtonClick",
386
+ "name": "doButtonClick",
387
+ "bubbles": true,
388
+ "cancelable": true,
389
+ "composed": true,
390
+ "docs": {
391
+ "tags": [],
392
+ "text": ""
393
+ },
394
+ "complexType": {
395
+ "original": "{ event: object; url: string }",
396
+ "resolved": "{ event: object; url: string; }",
397
+ "references": {}
398
+ }
399
+ }];
400
+ }
401
+ }
@@ -0,0 +1,115 @@
1
+ export default {
2
+ title: 'Components/Buttons',
3
+ argTypes: {
4
+ spaceBelow: {
5
+ name: 'Space below',
6
+ control: {
7
+ type: 'select',
8
+ options: [0, 1, 2, 3, 4, 5, 6],
9
+ },
10
+ },
11
+ backgroundColour: {
12
+ name: 'Background colour',
13
+ control: {
14
+ type: 'select',
15
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
16
+ },
17
+ },
18
+ imageUrl: {
19
+ name: 'Image URL',
20
+ },
21
+ imageStyle: {
22
+ name: 'Image style',
23
+ options: ['cover', 'contain'],
24
+ },
25
+ text: {
26
+ name: 'Text',
27
+ },
28
+ textColour: {
29
+ name: 'Text colour',
30
+ control: {
31
+ type: 'select',
32
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
33
+ },
34
+ },
35
+ url: {
36
+ name: 'Url',
37
+ },
38
+ openInNewTab: {
39
+ name: 'Open in new tab',
40
+ },
41
+ size: {
42
+ name: 'Size',
43
+ control: {
44
+ type: 'select',
45
+ options: ['small', 'medium', 'large', 'x-large', 'xx-large'],
46
+ },
47
+ },
48
+ arrow: {
49
+ name: 'Arrow',
50
+ options: [true, false],
51
+ },
52
+ arrowColour: {
53
+ name: 'Arrow colour',
54
+ control: {
55
+ type: 'select',
56
+ options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
57
+ },
58
+ },
59
+ circle: {
60
+ name: 'Circle',
61
+ options: [true, false],
62
+ },
63
+ shadow: {
64
+ name: 'Shadow',
65
+ options: [true, false],
66
+ },
67
+ centered: {
68
+ name: 'Centered',
69
+ options: [true, false],
70
+ },
71
+ rounded: {
72
+ name: 'Rounded',
73
+ options: [true, false],
74
+ },
75
+ },
76
+ };
77
+ const Template = args => `
78
+ <biggive-image-button
79
+ space-below="${args.spaceBelow}"
80
+ background-colour="${args.backgroundColour}"
81
+ background-padding="${args.backgroundPadding}"
82
+ text=${args.text}
83
+ textColour=${args.textColour}
84
+ image-url="${args.imageUrl}"
85
+ image-style="${args.imageStyle}"
86
+ url="${args.url}"
87
+ open-in-new-tab="${args.openInNewTab}"
88
+ size=${args.size}
89
+ arrow=${args.arrow}
90
+ arrowColour=${args.arrowColour}
91
+ circle=${args.circle}
92
+ shadow=${args.shadow}
93
+ centered=${args.centered}
94
+ rounded=${args.rounded}
95
+ </biggive-image-button>
96
+ `;
97
+ export const ImageButtonComponent = Template.bind({});
98
+ ImageButtonComponent.args = {
99
+ spaceBelow: 0,
100
+ backgroundColour: 'white',
101
+ backgroundPadding: 3,
102
+ text: 'This is the button text',
103
+ textColour: 'black',
104
+ imageUrl: '',
105
+ imageStyle: 'cover',
106
+ url: 'http://www.google.com',
107
+ openInNewTab: false,
108
+ size: 'medium',
109
+ arrow: true,
110
+ arrowColour: 'black',
111
+ circle: false,
112
+ shadow: false,
113
+ centered: false,
114
+ rounded: false,
115
+ };
@@ -104,7 +104,7 @@ export class BiggiveMainMenu {
104
104
  const blogUrl = (relativeUrl) => this.blogUrlPrefix + '/' + relativeUrl;
105
105
  const donateUrl = (relativeUrl) => this.donateUrlPrefix + '/' + relativeUrl;
106
106
  const experienceUrl = (relativeUrl) => this.experienceUrlPrefix + '/' + relativeUrl;
107
- const secondaryNavLinks = (h("ul", null, this.isLoggedIn && (h("li", null, h("a", { href: donateUrl('my-account') }, "My Account"))), h("li", null, h("a", { href: experienceUrl('s/contact-us') }, "Contact us")), h("li", null, h("a", { href: experienceUrl('charities/s/login') }, "Charity login"))));
107
+ const secondaryNavLinks = (h("ul", null, this.isLoggedIn && (h("li", null, h("a", { href: donateUrl('my-account') }, "My Account"))), h("li", null, h("a", { href: experienceUrl('s/contact-us') }, "Contact Us")), h("li", null, h("a", { href: experienceUrl('charities/s/login') }, "Charity Login"))));
108
108
  return (h(Host, null, h("div", { class: "row row-top" }, h("div", { class: "social-icon-wrap" }, h("biggive-social-icon", { service: "Facebook", url: "https://www.facebook.com/BigGive.org", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "Twitter", url: "https://twitter.com/BigGive", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "LinkedIn", url: "https://uk.linkedin.com/company/big-give", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "YouTube", url: "https://www.youtube.com/channel/UC9_wH1aaTuZurJ-F9R8GDcA", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "Instagram", url: "https://www.instagram.com/biggiveorg", "background-colour": "tertiary", "icon-colour": "black" })), h("div", { class: "nav-secondary" }, secondaryNavLinks)), h("nav", { role: "navigation", "aria-label": "Main Menu" }, h("div", { class: "navbar" }, h("div", { class: "logo" }, h("a", { href: this.donateUrlPrefix, "aria-label": "Home" }, h("svg", { version: "1.1", x: "0px", y: "0px", viewBox: "0 0 140.9 30" }, h("path", { d: "M51.9,6.1c-1.7,0-3.1-1.4-3.1-3s1.4-3,3.1-3C53.6,0,55,1.4,55,3S53.6,6.1,51.9,6.1z M49.3,23.8h5V7.7h-5V23.8z M68.5,7.7v1 c-0.8-0.7-2.3-1.4-4.1-1.4c-4.5,0-8.2,3.2-8.2,7.9c0,4.7,3.7,7.9,8.2,7.9c1.8,0,3.4-0.5,4.1-1.4v0.9c0,2.1-1.9,3.1-4.4,3.1 c-2.2,0-4-0.5-5.8-1.4V29c2.1,0.7,4.4,1,6,1c5,0,9.2-2,9.2-7.3v-15L68.5,7.7L68.5,7.7z M68.5,17.2c-0.7,1-1.9,1.4-3.2,1.4 c-2.1,0-3.8-1.2-3.8-3.4c0-2.2,1.7-3.4,3.8-3.4c1.3,0,2.5,0.6,3.2,1.5V17.2z M88.1,24.2c4,0,6.4-0.7,8.5-2V10h-11v4.7h5.8v4.1 c-0.8,0.2-1.8,0.4-3.2,0.4c-4.9,0-7.3-3.2-7.3-6.8c0-3.7,2.8-6.8,8-6.8c2.2,0,4.3,0.6,5.8,1.4V1.7c-1.5-0.6-3.4-1.1-6.1-1.1 c-7.6,0-13,5.3-13,11.8C75.5,19.1,80.4,24.2,88.1,24.2z M101.4,6.1c-1.7,0-3.1-1.4-3.1-3s1.4-3,3.1-3c1.8,0,3.2,1.4,3.2,3 S103.1,6.1,101.4,6.1z M98.8,23.8h5V7.7h-5V23.8z M115.1,15l-4.3-7.2H105l10.1,16.4l10.1-16.4h-5.8L115.1,15z M129.3,16.9h11.6 c0.1-7-4.2-9.5-8.4-9.5c-4.5,0-8.5,2.6-8.6,8.4c0,5.6,4.1,8.4,9.1,8.4c2.2,0,4.4-0.3,6.4-1.3v-4.4c-2.5,1.4-4.1,1.4-5.6,1.4 C131.7,19.8,129.5,19.2,129.3,16.9z M132.5,11.1c1.5,0,2.8,0.7,3,2.7h-6.2C129.6,11.9,131,11.1,132.5,11.1z M43.5,11.4 c1.2-1,1.8-2.4,1.8-4c0-3.1-3-6.3-7.3-6.3h-8v22.8h10.4c4.1,0,7.2-3,7.2-6.8C47.5,14.8,46.5,12.3,43.5,11.4z M35.2,5.7h2.4 C39,5.7,40,6.8,40,8c0,1.2-1,2.2-2.5,2.2h-2.4V5.7z M39.9,19.2h-4.7v-4.6h4.7c1.4,0,2.5,1,2.5,2.3C42.4,18.1,41.3,19.2,39.9,19.2z" }), h("path", { d: "M13.5,1l13.5,23H0L13.5,1z" })))), h("biggive-misc-icon", { class: "bx bx-menu", "background-colour": "white", "icon-colour": "black", icon: "MenuOpen", onClick: this.openMobileMenu }), h("div", { class: "nav-links" }, h("div", { class: "sidebar-logo" }, h("a", { href: this.donateUrlPrefix, "aria-label": "Home" }, h("svg", { version: "1.1", x: "0px", y: "0px", viewBox: "0 0 140.9 30", id: "mobileLogo" }, h("path", { d: "M51.9,6.1c-1.7,0-3.1-1.4-3.1-3s1.4-3,3.1-3C53.6,0,55,1.4,55,3S53.6,6.1,51.9,6.1z M49.3,23.8h5V7.7h-5V23.8z M68.5,7.7v1 c-0.8-0.7-2.3-1.4-4.1-1.4c-4.5,0-8.2,3.2-8.2,7.9c0,4.7,3.7,7.9,8.2,7.9c1.8,0,3.4-0.5,4.1-1.4v0.9c0,2.1-1.9,3.1-4.4,3.1 c-2.2,0-4-0.5-5.8-1.4V29c2.1,0.7,4.4,1,6,1c5,0,9.2-2,9.2-7.3v-15L68.5,7.7L68.5,7.7z M68.5,17.2c-0.7,1-1.9,1.4-3.2,1.4 c-2.1,0-3.8-1.2-3.8-3.4c0-2.2,1.7-3.4,3.8-3.4c1.3,0,2.5,0.6,3.2,1.5V17.2z M88.1,24.2c4,0,6.4-0.7,8.5-2V10h-11v4.7h5.8v4.1 c-0.8,0.2-1.8,0.4-3.2,0.4c-4.9,0-7.3-3.2-7.3-6.8c0-3.7,2.8-6.8,8-6.8c2.2,0,4.3,0.6,5.8,1.4V1.7c-1.5-0.6-3.4-1.1-6.1-1.1 c-7.6,0-13,5.3-13,11.8C75.5,19.1,80.4,24.2,88.1,24.2z M101.4,6.1c-1.7,0-3.1-1.4-3.1-3s1.4-3,3.1-3c1.8,0,3.2,1.4,3.2,3 S103.1,6.1,101.4,6.1z M98.8,23.8h5V7.7h-5V23.8z M115.1,15l-4.3-7.2H105l10.1,16.4l10.1-16.4h-5.8L115.1,15z M129.3,16.9h11.6 c0.1-7-4.2-9.5-8.4-9.5c-4.5,0-8.5,2.6-8.6,8.4c0,5.6,4.1,8.4,9.1,8.4c2.2,0,4.4-0.3,6.4-1.3v-4.4c-2.5,1.4-4.1,1.4-5.6,1.4 C131.7,19.8,129.5,19.2,129.3,16.9z M132.5,11.1c1.5,0,2.8,0.7,3,2.7h-6.2C129.6,11.9,131,11.1,132.5,11.1z M43.5,11.4 c1.2-1,1.8-2.4,1.8-4c0-3.1-3-6.3-7.3-6.3h-8v22.8h10.4c4.1,0,7.2-3,7.2-6.8C47.5,14.8,46.5,12.3,43.5,11.4z M35.2,5.7h2.4 C39,5.7,40,6.8,40,8c0,1.2-1,2.2-2.5,2.2h-2.4V5.7z M39.9,19.2h-4.7v-4.6h4.7c1.4,0,2.5,1,2.5,2.3C42.4,18.1,41.3,19.2,39.9,19.2z" }), h("path", { d: "M13.5,1l13.5,23H0L13.5,1z" }))), h("biggive-misc-icon", { class: "bx bx-x", "background-colour": "transparent", "icon-colour": "black", icon: "MenuClose", onClick: this.closeMobileMenu })), h("div", { id: "nav-primary" }, h("ul", { class: "links", slot: "nav-primary" }, h("li", null, h("a", { href: donateUrl('explore') }, "Explore Campaigns")), h("li", null, h("a", { href: blogUrl('charities') }, "For Charities")), h("li", null, h("a", { href: blogUrl('funders') }, "For Funders")), h("li", null, h("a", { onClick: this.noNav }, "Match Funding", h("biggive-misc-icon", { class: "bx bxs-chevron-down sub-menu-arrow arrow", "background-colour": "white", "icon-colour": "black", icon: "CaretRight" })), h("ul", { class: "sub-menu" }, h("li", null, h("a", { href: blogUrl('match-funding-explained') }, "Match Funding Explained")), h("li", null, h("a", { href: blogUrl('impact') }, "Match Funding Impact")), h("li", { class: "more" }, h("a", { onClick: this.noNav }, "Match Funding Opportunities", h("biggive-misc-icon", { class: "bx bxs-chevron-down sub-sub-menu-arrow arrow", "background-colour": "white", "icon-colour": "black", icon: "CaretRight" })), h("ul", { class: "sub-sub-menu" }, h("li", null, h("a", { href: blogUrl('christmas-challenge'), class: "icon-christmas" }, "Christmas Challenge")), h("li", null, h("a", { href: blogUrl('champions-for-children'), class: "icon-children" }, "Champions for Children")), h("li", null, h("a", { href: blogUrl('green-match-fund'), class: "icon-green-match" }, "Green Match Fund")), h("li", null, h("a", { href: blogUrl('women-girls-match-fund'), class: "icon-women-girls" }, "Women & Girls Match Fund")), h("li", null, h("a", { href: blogUrl('mental-health-match-fund/'), class: "icon-mental-health" }, "Mental Health Match Fund")), h("li", null, h("a", { href: blogUrl('anchor-match-fund/'), class: "icon-anchor-match" }, "Anchor Match Fund")), h("li", null, h("a", { href: blogUrl('emergency-campaigns/'), class: "icon-emergency" }, "Emergency Match Fund")))), h("li", null, h("a", { href: blogUrl('run-your-own-campaign/)') }, "Run your match funding campaign")))), h("li", null, h("a", { onClick: this.noNav }, "About Us", h("biggive-misc-icon", { class: "bx bxs-chevron-down sub-menu-arrow arrow", "background-colour": "white", "icon-colour": "black", icon: "CaretRight" })), h("ul", { class: "sub-menu" }, h("li", null, h("a", { href: blogUrl('our-people') }, "Our People")), h("li", null, h("a", { href: blogUrl('our-story') }, "Our Story")), h("li", null, h("a", { href: blogUrl('our-community') }, "Our Community")), h("li", null, h("a", { href: blogUrl('our-fees') }, "Our Fees")), h("li", null, h("a", { href: blogUrl('faqs') }, "FAQs")))), h("li", null, h("a", { onClick: this.noNav }, "Resources", h("biggive-misc-icon", { class: "bx bxs-chevron-down sub-menu-arrow arrow", "background-colour": "white", "icon-colour": "black", icon: "CaretRight" })), h("ul", { class: "sub-menu" }, h("li", null, h("a", { href: blogUrl('case-studies') }, "Case Studies")), h("li", null, h("a", { href: blogUrl('blog') }, "Blog")), h("li", null, h("a", { href: blogUrl('reports-insights') }, "Reports & Insights")), h("li", null, h("a", { href: blogUrl('press') }, "Press"))))), h("div", { class: "mobile-only" }, secondaryNavLinks)), h("div", { class: "mobile-social-icon-wrap mobile-only" }, h("biggive-social-icon", { service: "Facebook", url: "https://www.facebook.com/BigGive.org", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "Twitter", url: "https://twitter.com/BigGive", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "LinkedIn", url: "https://uk.linkedin.com/company/big-give", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "YouTube", url: "https://www.youtube.com/channel/UC9_wH1aaTuZurJ-F9R8GDcA", "background-colour": "tertiary", "icon-colour": "black" }), h("biggive-social-icon", { service: "Instagram", url: "https://www.instagram.com/biggiveorg", "background-colour": "tertiary", "icon-colour": "black" })))))));
109
109
  };
110
110
  return this.usePresetMenuContent ? presetContentMenu() : slotBasedMenu();
@@ -51,7 +51,7 @@ a:hover {
51
51
 
52
52
  .background-colour-hover-brand-6:hover,
53
53
  .background-colour-brand-6 {
54
- background-color: #CBC8C8;
54
+ background-color: #62CFC9;
55
55
  }
56
56
 
57
57
  .background-colour-hover-white:hover,
@@ -315,7 +315,7 @@ a:hover {
315
315
  .container.background-color-brand-6:after,
316
316
  .container.background-color-brand-6 .sleeve:before,
317
317
  .container.background-color-brand-6 .sleeve {
318
- background-color: #CBC8C8;
318
+ background-color: #62CFC9;
319
319
  color: #FFFFFF;
320
320
  }
321
321
 
@@ -333,4 +333,36 @@ a:hover {
333
333
  .container.background-color-black .sleeve {
334
334
  background-color: #000000;
335
335
  color: #FFFFFF;
336
+ }
337
+
338
+ .container.background-color-grey-extra-light:before,
339
+ .container.background-color-grey-extra-light:after,
340
+ .container.background-color-grey-extra-light .sleeve:before,
341
+ .container.background-color-grey-extra-light .sleeve {
342
+ background-color: #D7D7D7;
343
+ color: #000000;
344
+ }
345
+
346
+ .container.background-color-grey-light:before,
347
+ .container.background-color-grey-light:after,
348
+ .container.background-color-grey-light .sleeve:before,
349
+ .container.background-color-grey-light .sleeve {
350
+ background-color: #E8E8E8;
351
+ color: #000000;
352
+ }
353
+
354
+ .container.background-color-grey-medium:before,
355
+ .container.background-color-grey-medium:after,
356
+ .container.background-color-grey-medium .sleeve:before,
357
+ .container.background-color-grey-medium .sleeve {
358
+ background-color: #8A8A8A;
359
+ color: #FFFFFF;
360
+ }
361
+
362
+ .container.background-color-grey-dark:before,
363
+ .container.background-color-grey-dark:after,
364
+ .container.background-color-grey-dark .sleeve:before,
365
+ .container.background-color-grey-dark .sleeve {
366
+ background-color: #4A4A4A;
367
+ color: #FFFFFF;
336
368
  }